Monday, June 3, 2013

Webmin and virtualmin installation centOS

 Webmin installation :

Create a respository :

vi /etc/yum.repos.d/webmin.repo


[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

wq!

wget http://www.webmin.com/jcameron-key.asc
 

rpm --import jcameron-key.asc

yum install webmin

Open port 10000 to access webmin :


iptables -I INPUT -p tcp --dport 10000 -j ACCEPT

To install virtualmin :
 

Make a script below

vi virtualmininstall.sh

curl http://software.virtualmin.com/gpl/scripts/install.sh > install.sh ; chmod 755 ./install.sh ; ./install.sh ;

wq!


Make the script executable

 chmod +x virtualmininstall.sh
 

Execute the script :  

sh virtualmininstall.sh

After the installation is complete login to server using :

https://serverip:10000
username :  root
password :

 

Screen commands..

Screen commands:
=============

screen -ls :  This will list screen name and state
screen -ls  will show whether screen is in "detached" or "attached" state

To reattach "detached" screen : screen -r <screen name>

Leaving screen :   Press down ctrl + A together and type D (ctrl A + D)

When u type screen -ls if the screen is attached, then do the below

screen -D <screen name>
screen -r <screen name>

To enter a name for the screen : Screen -S test