ubuntu service 管理程式 sys-rc-conf
網路重新啟動 sudo /etc/init.d/networking restart
First you need to install the following packages
sudo apt-get 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
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.420_all.deb
Now we have webmin_1.420_all.deb package install this package using the following command
sudo dpkg -i webmin_1.420_all.deb
This will complete the installation.
sudo apt-get install xorg
sudo apt-get install startx
sudo vi /etc/apt/sources.list
在 sources.list 中加入底下兩行
deb http://ppa.launchpad.net/lxde/ubuntu intrepid main
deb-src http://ppa.launchpad.net/lxde/ubuntu intrepid main
儲存以後
sudo apt-get update
sudo apt-get install lxde
SLIM
With this display manager, some manual configuration is needed. Please refer to their official document and write your /etc/slim.conf and ~/.xinitrc. The command you should put in your ~/.xinitrc to start LXDE is:
exec startlxde
No display manager, use startx
Run following command:
sudo update-alternatives --config x-session-manager
Then choose startlxde. The next time you run startx, LXDE will be started.
deb 安裝方式
sudo dpkg -i package_file.deb
sudo dpkg -r package_name
wget 指令用法
語法
wget [options] [URL-list]
URL 地址格式:可以使用如下格式的URL: http://host[:port]/path
例如: http://fly.cc.fer.hr/
3. 下載時可用的參數
�� -t 或-tries=NUMBER 連線中斷時,嘗試重新連線次數(0 為無限次),如wget -t 5
表示重新連線5 次,如果不能成功連線則停止程式。
�� -o 或-output-document=FILE 此選項目的是將抓取的文件寫入指定的檔案中,後面
要加入要被寫的檔案名。
wget –o 123.txt http://IP/index.htm 可將指定的index.htm 寫入本地端成為 123.txt
--nc 或 -no-clobber 不要除去本地端已存在之檔案
-c 或 -continue 除去本地端已存在之檔案並且重新伺服器取回
--dot-style=STYLE 設定抓檔時,每個逗點代表容量大小
-N 或 -timestamping 若遠第端檔案較本地端檔案為舊則不取回檔案
--timo-only 指取回新的檔案,不理會大小
--rewrite-older 如果遠端檔案比較新,就直接抓回來蓋掉本地端檔案
-S 或 -server-response 顯示伺服器的回應訊息
-T 或 -timeout=SECONDS 設定伺服器回應逾時時間,單位為秒
-w 或 -wait=SSECONDS 設定兩次連結取檔中間的等待時間,單位為秒
-Y 或 -proxy=on/off 啟用或關閉代理伺服器服務