Linux

How to check HDD for bad clusters under Linux

To check HDD for bad clusters under Linux you should run following command

fsck -c /dev/sda3

Creatin a hard and soft links under Unix/Linux

For creation hard link use

mount --bind /media/sda3/src-dir /home/ftp/dest-dir # for directory
mount -o bind source_dir destination_dir # for directory example 2
ln src.txt dest.txt

For creating soft link use
ln -s src dst

For example vsftpd following only hard links and not follow for soft links.

Build XulRunner 1.9 on Linux

    Build instructions:
  • Download source code from mozilla using followinn command
    mkdir xulrunner19
    cd xulrunner19
    cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -r FIREFOX_3_0_RELEASE mozilla/client.mk
    cd mozilla
    make -f client.mk checkout MOZ_CO_PROJECT=xulrunner
  • Create a configuration file xulrunner.mozconfig
    Information about mozilla connfig file on Mozila
    An example of configuration file is here
     

Examples of Unix commands

Switching between version in svn

svn switch https://svn.jboss.org/repos/jbosstools/trunk /media/sda3/head/trunk  -r9271

Switching between different version of java in ubunut/debian
sudo update-alternatives --config java

Find connections to pc and look name of pc by ip
netstat -an
nslookup "IP"

Check ext3 partition after hard shutdown :)

e2fsck -p /dev/sda8

Remove mysql binary log files:
reset master;

Mounting smb share under fedora 8:
 

Syndicate content