Wednesday, November 23, 2011

วิธีติดตั้ง webmin บน ubuntu โดยใช้ apt-get ครับ

เริ่มเลยครับ

+ แก้ไขไฟล์ sources.list ก่อนเลยครับเพื่อให้เราสามารถอัพเดทแพ็คเก็ต webmin ได้โดย

    # nano /etc/apt/sources.list

    โดยเติม

    # deb http://download.webmin.com/download/repository sarge contrib

    ลงไปในบรรทัดสุดท้ายครับ แล้วเซฟเลย

+  ทำการ fetch ตัว GPG key ครับโดย ดาวน์โหลด ตัว key  มาก่อนครับ เราจะทำกันในโฟลเดอร์ root ครับ ดังนี้
   
    # cd /root
    # wget http://www.webmin.com/jcameron-key.asc
    # apt-key add jcameron-key.asc

+  แล้วก็ทำการอัพเดท webmin เข้ามา

    # apt-get update

+  เมื่อ update เสร็จ เราก็สั่ง install ได้เลยครับ

    # apt-get install webmin

+  เสร็จแล้วก็เข้าไปในตัวจัดการ webmin ได้เลยครับ ไม่ต้องเซตอะไร

    https://ip-ของเรา:10000/

เสร็จแล้วครับ ง่ายๆ อิๆ ยิงฟันยิ้ม

ว่าแต่ทำให้สามารถดู webmin จากข้างนอกยังไงม่ายรู้ ช่วยที

$IPTABLES -A INPUT -i $EXTIF1 -p tcp -m tcp --dport 10000 --syn -j ACCEPT
ลองดูได้มั้ย

Installing the RPM

If you are using the RPM version of Webmin, first download the file from the downloads page , or run the command : wget http://prdownloads.sourceforge.net/webadmin/webmin-1.570-1.noarch.rpm and then run the command : rpm -U webmin-1.570-1.noarch.rpm The rest of the install will be done automatically to the directory /usr/libexec/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system's IP address.
If you want to connect from a remote server and your system has a firewall installed, see this page for instructions on how to open up port 10000.

Using the Webmin YUM repository

If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing : [Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
You should also fetch and install my GPG key with which the packages are signed, with the commands : wget http://www.webmin.com/jcameron-key.asc
rpm --import jcameron-key.asc
You will now be able to install with the command : yum install webmin All dependencies should be resolved automatically.

Supported RPM-Based Distributions

The Webmin RPM can be installed on Fedora, Redhat Enterprise, older Redhat versions, CentOS and all other distributions derived from Fedora or RHEL. In addition, it can be installed on systems running Mandriva, SuSE, TurboLinux, Caldera OpenLinux.

ติดตั้ง webmin

# import key สำหรับ webmin
rpm --import http://www.webmin.com/jcameron-key.asc

# install โปรแกรมต่างๆ รวมทั้ง webmin
yum -y install bind ntp httpd mysql mysql-devel mysql-server iptables sendmail php php-bcmath php-cli php-common php-devel php-gd php-imap php-mbstring php-mcrypt php-mhash php-mysql php-odbc php-pdo php-pear php-snmp php-soap php-tidy php-xml php-xmlrpc webmin perl-libwww-perl perl-Net-SSLeay libxml2 libxml2-devel perl





rpm --import http://www.webmin.com/jcameron-key.asc

rpm --import jcameron-key.asc




rpm --import http://www.webmin.com/jcameron-key.asc


gpg --import http://www.webmin.com/jcameron-key.asc


Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 11f63c51


Public key for webmin-1.570-1.noarch.rpm is not installed

ติดตั้ง webmin

wget http://prdownloads.sourceforge.net/webadmin/webmin-1.570-1.noarch.rpm

 
Design by sutoday | Bloggerized by storesu - suvachai | laikeng