:::

在Ubuntu 14.04上安裝Webmin指令腳本 / A Webmin Installation Script for Ubuntu 14.04

image

Webmin是遠端管理Linux的一大量器,甚至許多伺服器設定與管理都比直接使用桌面環境來得方便操作,更不用說可以省下查找指令與設定檔位置的麻煩了。不過一般時候Webmin安裝的時候無法直接從apt-get完成。以Ubuntu來說,必須要先加入Webmin的APT套件庫、加入GPG金鑰,然後才能使用apt-get安裝Webmin。

這學期我在教Ubuntu 14.04的時候,為了方便同學安裝Webmin,我參考Linux技術手札中的安裝教學,將Webmin指令檔整理成以下數行。同學可以直接在Ubuntu中複製、貼上這些指令,就能順利安裝Webmin。


Webmin安裝腳本 / Webmin Installation Script

  1. sudo su root
  2. echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list
  3. echo "deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" >>  /etc/apt/sources.list
  4. wget -q http://www.webmin.com/jcameron-key.asc -O- | apt-key add -
  5. apt-get update; apt-get install webmin -y

這個標亮效果是來自於Quick Highlighter。原本我都是用WLW的外掛程式來做程式標亮,但是換成OLW之後,就沒有外掛程式可以用了。現在改用其他網站的服務來做語法標亮看看,希望能夠順利。