Archive for year 2009
How to disable Firewall in Fedora or Debian Linux systems
Jan 14th
If you have come across a problem of not able to access a service like httpd even if the server is running, most probably the Firewall is blocking the port. The quick way of checking it is to disable Firewall and try again. However this method of disabling firewall may not be recommended on production servers.
The following command tells you if firewall (iptables) is active on the Fedora Linux system.
[root@techpulp ~]# /sbin/service iptables status Table: filter Chain INPUT (policy ACCEPT) num target prot opt source destination 1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 More >
WebDAV – Resolve – (405 Method Not Allowed) in response to PROPFIND request for ‘/svn’
Jan 14th
While configuring WebDAV with Apache for accessing SVN repository using web service, if there is a small misconfiguration related to “Location” directive you will see the following error:
svn: Server sent unexpected return value (405 Method Not Allowed) in response to PROPFIND request for '/svn'
Most probably you would have configured a trailing “/” character along with the location as shown below which requires correction.
<Location /svn/> DAV svn SVNPath /project/svn </Location>
You should remove trailing “/” from the path “/svn/” given in the “Location” directive and the modified one looks like this.
<Location /svn> DAV svn SVNPath /project/svn </Location>
If you haven’t made the above More >
How to generate random password using Bash shell scripting
Jan 14th
All Linux systems have a special device “/dev/urandom” which can throw random bytes while reading. But this device gives binary data which may contain non-printable characters. However as we need human-readable characters for a password, we can pick all alpha-numeric characters out the random binary data read from the special device.
The following script reads a binary stream from /dev/urandom and picks up first 8 alpha-numeric characters and form a 8-chracter long random password. If you want to change the length of the password, change “-c8” option given to “head” to anything you want. For example “-c16” will give you 16-character More >
How to safely reboot a frozen Linux system
Jan 14th
If your Linux system is frozen completely and there is absolutely no response and you are planning to unplug the power cable for hard reboot, there is a way to graciously reboot the system without unplugging the cable.
First of all ensure that your system is actually frozen:
Try Ctrl+Alt+Backspace combination if you are using graphical mode. If it doesn’t work, then try “Ctrl+Alt+F1“, “Ctrl+Alt+F2” etc to see if you can get to a shell in text mode.
If the Linux system doesn’t respond to any of the above attempts, you can do the following to graciously reboot the system.
- Press Alt+SysReq
- Press the following sequence More >
FTP – How to upload/download or delete directories recursively
Jan 14th
The standard FTP program doesn’t support recursive operations on directories. The ncftp command supports recursive operations. This is very useful if your web hosting supports only FTP transfer.
First of all, check if ncftp command is already present in your Linux system.
[neo@techpulp ~]# ncftp bash: ncftp: command not found [neo@techpulp ~]#
If it is not present, then install appropriate package using “yum“.
[root@techpulp ~]# yum -y install ncftp
The following shows how to use ncftp to use a specific login instead of anonymous login.
[neo@techpulp ~]# ncftp -u neo liz.techpulp.com NcFTP 3.2.2 (Aug 18, 2008) by Mike Gleason (http://www.NcFTP.com/contact/). Connecting to 127.0.0.1... (vsFTPd 2.0.7) Logging in... Password More >
How to control system services in Fedora Linux
Jan 14th
Fedora Linux systems come with a command called “service” which can be used to control the system-wide services while the system is running. Typically each system service provides at least four operations: start, stop, restart, status. Using the “service” command, you can start, stop or restart a system service as shown below. The following example shows how to start and web server (httpd service).
[root@techpulp ~]# /sbin/service httpd start
Starting httpd: [ OK ]
[root@techpulp ~]#
Similarly you can stop a service (httpd in this case) as shown below.
[root@techpulp ~]# /sbin/service httpd stop
Stopping httpd: [ OK ]
[root@techpulp ~]#
To know if More >
How to move icons/components/widgets on KDE4 panel
Jan 10th
You can move panel components like start menu button, task bar, pager, system tray, clock and other widgets on the panel and rearrange them to suit your needs. The same can be done not only on the main panel of KDE4 but also with any new panel that you might have created. Follow these steps to do it.
- Click on the far right plasma button to open panel settings.
- Now move the mouse cursor back on to the panel and drag which ever widget you want to move. Typically whenever a widget become movable, it shows four-arrowed image on the widget. Then More >


Recent Comments