Showing posts with label linux command. Show all posts
Showing posts with label linux command. Show all posts

Tuesday, 27 March 2012

Disk Usage - du

to check how much disk usage in each directory on Linux box, we use

#du /home


Monday, 26 March 2012

How to setup SVN on Ubuntu for personal use

This will show you how to set up svn for personal use on Ubuntu

*install relevant software 
#sudo apt-get install subversion    //this is subversion command line tools
#sudo apt-get install apache2        //this is apache2 webserver
#sudo apt-get install libapache2-svn  //this is sub-version extension for apache2

*Then
#sudo service apache2 restart       //restart apache webserver


*Configure apache config file
1.edit file in /etc/apache2/mods-enable/dav_svn.conf

#sudo nano /etc/apache2/mods-enable/dav_svn.conf


2.create directory for svn as we use in above configuration file

#sudo svnadmin create /home/svn

*Then restart apache2 again
#sudo service apache2 restart


Test, just open web-browser and type
 http://localhost/svn


That is.






Monday, 19 March 2012

Linux Add NIC and Gateway command

# Adding new network interface command

ifconfig eth0 192.168.1.112 netmask 255.255.255.0 up

# Adding new virtual network interface command

ifconfig eth0:0 192.168.10.112 netmask 255.255.255.0 up

# Adding Default Gateway

route add default gw 192.168.1.1