Monday, July 4, 2011

Apache : Compiling and installing

STEP 1:Download $ lynx http://httpd.apache.org/download.cgi

STEP 2:Extract $ gzip -d httpd-NN.tar.gz //Where NN must be replaced with the version number
$ tar xvf httpd-NN.tar
$ cd httpd-NN
STEP 3:Configure $ ./configure --prefix=PREFIX //Where PREFIX has to replaced with the installation directory

STEP 4:Compile
$ make

STEP 5:Install
$ make install
STEP 6:Customize
$ vi PREFIX/conf/httpd.conf
STEP 7:Test
$ PREFIX/bin/apachectl -k start

Mount an external NTFS usb Drive

STEP 1:Plug in your USB drive and got to the TERMINAL and type in "dmesg",you can see some similar output as pasted below,

"SCSI device sda: 39070080 512-byte hdwr sectors (20004 MB) sda: assuming drive cache: write through sda: sda1 Attached scsi disk sda at scsi2, channel 0, id 0, lun 0 USB Mass Storage device found at 2"
Note the line where it says "sda:sda1".It states that its a sda disk pinting to sda1

STEP 2:Now its pretty straight forward,

mount -t ntfs /dev/sda1 /some/folder


Wednesday, August 11, 2010

Install and Configure Telnet : Fedora

STEP 1:Install Telnet package

yum install telnet-server
yum install xinetd

STEP 2:
Edit the following and find the line for disable and change it from the value "yes" to "no".

# vim /etc/xinetd.d/telnet

STEP 3:
Restart the xinetd deamon

STEP 4:
Inorder to configure Telnet for root logins

Simply edit the file /etc/securetty and add the following to the end of the file:

pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
This will allow up to 10 telnet sessions to the server as root

Friday, August 6, 2010

Command to search package name in Linux

Ubuntu:

#apt-cache search package name

Fedora:

#yum list package name

Thursday, July 29, 2010

How to unmount while device is busy

Sometimes You might get the following error messages while unmounting
# umount /dev/sda2/
umount: /dev/sda2:device is busy
Try the below command
# fuser -m /dev/sda2
It will show the process id which is causing it
If you get the process id then you can umount!!!!!!

Sunday, July 25, 2010

Fedora:How to restore deleted desktop panel

STEP 1:Make a directory
[antony@localhost ~]$ mkdir bak
STEP 2:Move the following files
[antony@localhost ~]$ mv {.gnome*,.gconf*} bak/
STEP 3
:Reboot

Enable root login in GUI Fedora

STEP 1:Open the terminal and edit
vim /etc/pam.d/gdm
Comment the following line #auth required pam_succeed_if.so user != root quiet
STEP 2: Also Edit /etc/pam.d/gdm-password
Comment the following line #auth required pam_succeed_if.so user != root quiet
Done...