Install Webmin in Ubuntu

Preparing your system
First you need to install the following packages
sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
Now download the latest webmin using the following command or from here
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.470_all.deb
Now we have webmin_1.470_all.deb package install this package using the following command
sudo dpkg -i webmin_1.470_all.deb
This will complete the installation.
Using the Webmin APT repository
If you like to install and update Webmin via APT, edit the /etc/apt/sources.list file on your system
sudo vi /etc/apt/sources.list
add the line
deb http://download.webmin.com/download/repository sarge contrib
Save and exit the file
You should also fetch and install my GPG key with which the repository is signed, with the commands : cd /root
wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
You will now be able to install with the commands
sudo apt-get update
sudo apt-get install webmin

แก้ปัญหา warning! chassis has been opened

ปัญหาเกิดจากค่า chassis ใน bios ถูกตั้งค่าให้เป็น Enable ซึ่งเมื่อเราเริ่มเปิด (Boot) เครื่องต่อไปก็จะมีข้อความเตือน Warning! chassis has been opened เป็นตัวหนังสือสีแดง ก่อนเข้าสู้หน้า windows  และจะมีข้อความแจ้งให้เรากด F1 เพื่อเข้าสู่ขั้นตอนต่อไปของการ Boot windows วิธีแก้ไขก็เพียงเข้าไปปิด chassis has been opened ใน bios ให้เป็น Disable เพียงเท่านี้ Warning! chassis has been opened เป็นตัวหนังสือสีแดง ก็จะลาจากเราไป

Command Firewall On Ubuntu

ufw enable – turn on the firewall
ufw disable – turn off the firewall
ufw default allow – allow all connections by default
ufw default deny – drop all connections by default
ufw status – current status and rules
ufw allow port – allow traffic on port
ufw deny port – block port
ufw deny from ip – block ip adress

Solaris Note!

.    = Cerrent Diretrory
..    = Parent Diretrory
tail    = 10 บrecord later
wc    = Word Count
lp    = Printer file (Sytex   =  lp -d (see /printer))
: lpstat -0  =  chack Status Printer
: Cancel Printer = Cancel Job Printer

cp    = copy file base
cp -r    = copy Diretory to PWD
cp -i    = copy :Ask copy File  Exc: cp -ri = copy ask copy all file , cp file* dir3
mv    = Sytax : mv file* dir3   ,  mv dir2 dir3 = move dir2 to Diretrory dir3
: mv -i source target = Confirm File Move
: $ pwd
/export/home/user1
$ ls practice
mailbox    project2    projection    research    results
$ mv practice letters
$ ls letters
mailbox    project2    projection    research    res
Create File :::::::::
touch    = Exc : touch filename   : Creating Empty Files
echo    = echo>file
VI    = Vi save file
symbolic Link = Shut cut    Exe : lrwxrwxrwx   1 root root    30 2010-08-12 15:02 vmlinuz -> boot/vmlinuz-2.6.32-2
:  Syntex : ln -s source_file target_file

::::::::::::::
VI
Edit Mode To Command Mode :  ESC
Command To Edite Mode
i,I = Insert    (i = Insert text),(I = Top Insert text)
a,A = Appent    (a = Appent back Cerser),(A =Appent Last Cerser)
o,O = Insert Record    (o = Insert Under Cerser),(O = Insert On cerser)
hjkl = Top,Last,Life,Right

Setup Radius Server On Ubuntu

Install Radius : sudo apt-get install freeradius freeradius-utils freeradius-mysql freeradius-ldap
Restart Service : sudo /etc/init.d/freeradius restart
Test Radius : sudo radtest your_name your_password 127.0.0.1 0 testing123
OK : Sending Access-Request of id 232 to 127.0.0.1 port 1812
User-Name = “your-name”
User-Password = “your_password”
NAS-IP-Address = 255.255.255.255
NAS-Port = 0
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=232, length=20
Edit Config : gedit /etc/freeradius/clients.conf
-” client 10.0.1.0/24 {
secret          = mytestkey
shortname       = private-network”
EX : 10.0.1.0/24 = Ip Address Accept   /24 = Subnet 255.255.255.0
Reload Radius Server :  sudo /etc/init.d/freeradius force-reload
Test Readius Server : sudo radtest root root 10.12.10.X 0 radius  ” 10.12.10.x = Your Ip Address