adonis@ubuntu10:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  libdbd-mysql-perl: Depends: perl (>= 5.10.1-12) but 5.10.1-8ubuntu2 is installed
                     Depends: libdbi-perl (>= 1.610.90) but 1.50-1 is installed
                     Depends: perl-dbdabi-94 but it is not installable
  libdbi-perl: Depends: perlapi-5.8.4 but it is not installable
               Depends: libplrpc-perl but it is not installed
  openwebmail: Depends: perl-suid but it is not installed
               Depends: libnet-ldap-perl but it is not installed
               Depends: libpgperl but it is not installable or
                        libpg-perl but it is not installed
               Depends: wwwconfig-common but it is not installed
               Recommends: spamassassin but it is not installed
               Recommends: clamav but it is not installed
E: Unmet dependencies. Try using -f.

蒼穹 發表在 痞客邦 留言(0) 人氣()

$ sudo vim /etc/network/interfaces
up route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.2.1

蒼穹 發表在 痞客邦 留言(0) 人氣()

$sudo vim /etc/apache2/apache2.conf
加入
ServerName 127.0.0.1
重新啟動.....OK

蒼穹 發表在 痞客邦 留言(0) 人氣()

當mail服務器架設好了之後,往往很容易被當成廣告信Server來寄信,利用SMTP Auth認證方式,只有透過帳號密碼認證過的User才能寄信
1.安裝SASL套件
$sudo apt-get install sasl2-bin
2.新增並編輯此檔
$sudo vim /etc/postfix/sasl/smtpd.conf
log_level: 3
pwcheck_method: saslauthd
mech_list: plain login

蒼穹 發表在 痞客邦 留言(0) 人氣()

要查看哪些服務有啟動or要設定啟動狀態不需要一筆一筆輸入指令,安裝sysv-rc.conf就可以直接做設定
$ sudo apt-get install sysv-rc-conf
輸入指令查看
$ sudo sysv-rc-conf
上下左右鍵:移動,空白space鍵:選擇是否啟動,q鍵:離開

蒼穹 發表在 痞客邦 留言(0) 人氣()

一開始選擇安裝SSH服務or下指令安裝
$sudo apt-get install openssh-server
編輯sshd_config
$sudo /etc/ssh/sshd_config
Port 2233
PermitRootLogin yes
進階設定連結IP與服務
$sudo vim /etc/hosts.allow
#設定此網段可以透過ssh連接Ubuntu Server
sshd: 192.168.0.0/24 : allow
$sudo vim /etc/hosts.deny
#設定此IP不能透過ssh連接Server
sshd:123.34.33.212:deny
#靜止所有的連接
ALL:ALL

蒼穹 發表在 痞客邦 留言(0) 人氣()

1.下載套件
http://www.webmin.com/
我是在Ubunto10 Server安裝,之前下載webmin_1.510-2_all.deb無法安裝成功,
所以下載webmin_1.510_all.deb就可以安裝成功,如果不行請多試試以前的版本吧

2.在安裝Webmin時會告訴你還需要哪些套件需要安裝,安裝其它的套件如下:
sudo apt-get install libmd5-perl libnet-ssleay-perl libauthen-pam-perl libio-pty-perl  
3.修改$ sudo vim /etc/apt/sources.list,把倒數8跟9的註解拿掉
$ sudo apt-get update
$ sudo apt-get dist-upgrade
4.比較麻煩的是[libmd5-perl]套件,去網路上可以搜尋到[libmd5-perl_2.03-1_all.deb]套件做安裝
sudo dpkg -i libmd5-perl_2.03-1_all.deb

蒼穹 發表在 痞客邦 留言(0) 人氣()

mail01.JPG
安裝postfix
$sudo apt-get install postfix

接下來會有兩個設定
1.選擇[Internet Site] 
2.輸入@後面的顯示方式[abc.com.tw]


 

蒼穹 發表在 痞客邦 留言(0) 人氣()

使用PieTTY 登入Linux系統可以顯示中文字
進入設定畫面,點選
[windows]=>[Translation]=>[Received data assumed.......character set:]將[Use font encoding]下拉選擇
[UTF-8] 就可以顯示中文字囉

蒼穹 發表在 痞客邦 留言(0) 人氣()

安裝套件
$ sudo apt-get install vsftpd

sudo vim /etc/vsftpd.conf

蒼穹 發表在 痞客邦 留言(0) 人氣()

安裝NTP套件
$ sudo apt-get install ntp
更新日期時間指令
$ sudo ntpdate time.stdtime.gov.tw
如果出現以下訊息:請先停止ntp服務
27 May 15:37:14 ntpdate[2466]: the NTP socket is in use, exiting
$ sudo /etc/init.d/ntp stop
$ sudo ntpdate time.stdtime.gov.tw

蒼穹 發表在 痞客邦 留言(0) 人氣()

安裝squid proxy
$ sudo apt-get install squid

修改設定檔squid.conf
$ sudo vi /etc/squid/squid.conf
#將3128port改成8080port
http_port 3128===>http_port 8080

蒼穹 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。