1 頁 (共 2 頁)

Ubuntu 6.06 Server LTS 安裝試用

發表於 : 2006-07-19 19:15:20
yehlu
1.SSH Server
放入光碟
sudo apt-get install ssh

2.設定套件庫
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo vi /etc/apt/sources.list
把內容全部清光
複製貼上以下
####
# Dapper
####

## Major bug fix updates produced after the final release of the
## distribution.
deb http://tw.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ dapper universe main restricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://tw.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://tw.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe

3.更新

sudo apt-get update
sudo apt-get upgrade

4.安裝 Apache2
sudo apt-get install apache2
sudo /etc/init.d/apache2 restart
sudo apt-get install webalizer

/etc/apache2/apache2.conf

5.安裝 php4
sudo apt-get install php4
sudo apt-get install php4-cli
sudo apt-get install php4-mysql
sudo apt-get install php4-gd
sudo apt-get install php4-imap
sudo apt-get install php4-pear
sudo apt-get install phpMyAdmin

/etc/php4/apache2/php.ini

6.安裝MySQL
sudo apt-get install mysql-server
sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bkup

/etc/mysql/my.cnf
#bind-address = 127.0.0.1

7.找套件
sudo apt-cache search php4
列出套件
sudo apt-cache pkgnames | grep php
移除套件
apt-get remove

8.FTP
sudo apt-get install proftpd
選 standalone <----表示有人使用服務才啟動

9.校時
sudo ntpdate time.stdtime.gov.tw
sudo /etc/init.d/hwclock.sh restart

10.nmap
sudo apt-get install nmap

11.MTA
sudo apt-get install postfix
sudo apt-get install clamav
sudo apt-get install amavisd-new
sudo apt-get install spamassassin

/etc/postfix/main.cf

12.SAMBA
sudo apt-get install samba
sudo apt-get install samba-common
sudo apt-get install smbclient
sudo apt-get install smbfs

/etc/samba/smb.conf

其他套件

發表於 : 2006-07-19 20:07:55
yehlu
sudo apt-get install phpsysinfo
/usr/share/phpsysinfo/

sudo apt-get install phpbb
sudo apt-get install phpbb2-conf-mysql
sudo apt-get install phpbb2-languages
/usr/share/phpbb2/site/

/usr/share/phpmyadmin/

sudo apt-get install smarty

sudo apt-get install ncftp

sudo apt-get install lynx

sudo apt-get install unrar

切換到 root

發表於 : 2006-07-20 09:33:05
yehlu
http://www.ubuntu.org.tw/modules/newbb/ ... 77&forum=1

呵呵
這問題好多人問喔!
請使用sudo代替root
如果真要切換到root
可以使用
$ sudo su

Samba

發表於 : 2006-07-20 10:36:45
yehlu

Mac 遠端登入 Ubuntu 桌面

發表於 : 2006-07-20 16:15:46
yehlu
http://www.pots.com.tw/article.pl?sid=06/07/05/0941225

某位長輩說過:「越懶的人,就是越好的程式設計師」,我還沒得到驗證,不過倒是覺得,人越老惰性就越強 ^_^;

會想將 Mac 連上 Xwindow 的想法不是現在就有了,只是以往沒有那麼大的動力,加上自己的以往的 Linux Desktop 老是裝的 2266
而且懶得在這種事情上發揮實驗精神 (好吧,我承認我沒甚麼實驗精神...),那為何 Mac OSX 都附上了 X11 那麼久了,才來玩這一套呢?

起因是我的惰性突然膨脹到我不能控制的地步,因為我居然發現操控 KVM 做切換讓我十分不滿,也感到厭煩 :p
因為我不能一邊觀看 QuickTime 上面撥放的「Keroro 軍曹」,一邊寫我的 Code,一邊處理 Linux Desktop 上面的 GUI 指令
於是趁著我把工作機中最後一台 WindowXP 踢出我的機器的機會,我換上了 Ubuntu 6.06 LST Desktop 版本
想說不然就來玩一下 Mac 的 X11,順便看看可不可以把 KVM 踢出我的工作室,這樣老婆才不會老是嫌我的工作區域亂
(老婆:「一台小小的 KVM 跟那堆龐大且散落在桌上各個角落的書,我寧願幫你把書丟掉,這樣可以節省更多空間喔」我:Orz)

好吧,閒話休提,我是採用 XDMCP 方式連接 Ubuntu 的桌面,所以需要修改一下 gdm.conf
(在此以 Ubuntu 的 Gnome 環境做設定,請編輯 /etc/gdm/gdm.conf 這個設定檔)

1. 將 [daemon] 這個 Segment 下的 RemoteGreeter=/usr/lib/gdm/gdmlogin 這一行的 mark 拿掉
2. 將 [xdmcp] 這個 Segment 下的 Enable=false 改為 Enable=true
3. 重啟 gdm

接下來啟動 Mac 上面的 X11的 xterm,開始我們的連結作業,依序輸入以下指令
1. xhost +[ip] ([ip]填上你要鍊結的機器 ip)
2. Xnest :1 -query [ip] -geometry 1024x768
([ip]填上你要鍊結的機器 ip, 1024x768 表示開出來的視窗大小,雖然以 X 代替 Xnest 也可以,但是要看你的 X11 如何設定囉)


接下來就可以看見美美的 gdmlogin 畫面囉 ^_^

網路卡設定方式

發表於 : 2006-07-26 16:51:04
schumi
http://macblog2.wordpress.com/2006/06/2 ... %E5%AE%9A/

Ubuntu(Debian) 用的是 /etc/network/interfaces

查看電腦上有哪些網卡
ifconfig -a

常見的 DHCP 設定方式如下:
auto eth0
iface eth0 inet dhcp

Static IP 設定方式如下:
auto eth0
iface eth0 inet static
address 10.10.10.25
netmask 255.255.255.0
gateway 10.10.10.1

文字模式的編輯器

發表於 : 2006-07-27 10:44:17
schumi
指令 nano

ex: nano /etc/network/interface

SAMBA

發表於 : 2006-07-27 18:49:48
yehlu

列出套件內容

發表於 : 2006-08-05 18:48:18
yehlu
dpkg -L barcode

gcc

發表於 : 2006-08-05 19:03:21
yehlu
gcc
make
libc6

proftpd for xinetd

發表於 : 2006-08-07 13:51:13
yehlu
apt-get install xinetd

/etc/xinetd.d/proftpd
service ftp
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/proftpd
server_args = -c /etc/proftpd.conf
log_on_success += DURATION USERID
log_on_failure += USERID
}

/etc/proftpd.conf
ServerType inetd
TimesGMT Off

/etc/hosts.allow
ALL:127.0.0.1

/etc/hosts.deny
ALL: ALL: Deny

升級到6.06.1

發表於 : 2006-08-10 09:41:50
schumi
更新核心只要在root 下 apt-get upgrade 即可

安裝webmin

發表於 : 2006-08-11 00:39:38
schumi
安裝 webmin (各版本webmin ->http://prdownloads.sourceforge.net/webadmin)
各版本 http://sourceforge.net/project/showfile ... e_id=13391
http://www.ubuntu.org.tw/modules/newbb/ ... 46&forum=7

mkdir /opt/webmin/
cd /opt/webmin/
wget http://nchc.dl.sourceforge.net/sourcefo ... 290.tar.gz
gzip -cd webmin-1.290.tar.gz | tar xvf -
cd webmin-1.290
mv * ../
cd ..
rm webmin-1.290 -r -f
apt-get install libauthen-pam-perl libnet-ssleay-perl libpam-runtime openssl perl perl-modules
./setup.sh
/etc/init.d/webmin start
chmod 740 /etc/init.d/webmin

控制系統服務

發表於 : 2006-08-12 07:43:25
yehlu
http://moto.debian.org.tw/viewtopic.php?t=252

apt-get install sysvconfig

apt-get install rcconf

新竹縣教育網 APT

發表於 : 2006-08-15 11:47:12
yehlu
####
# Dapper
####

# apt.ubtw

deb http://apt.nc.hcc.edu.tw/ubuntu dapper-updates main restricted universe multiverse
deb-src http://apt.nc.hcc.edu.tw/ubuntu dapper-updates main restricted universe multiverse

deb http://apt.nc.hcc.edu.tw/ubuntu dapper main universe multiverse restricted
deb-src http://apt.nc.hcc.edu.tw/ubuntu dapper main universe multiverse restricted

deb http://apt.nc.hcc.edu.tw/ubuntu dapper-backports main universe multiverse restricted
deb-src http://apt.nc.hcc.edu.tw/ubuntu dapper-backports main universe multiverse restricted

deb http://apt.nc.hcc.edu.tw/ubuntu dapper-security main restricted universe multiverse
deb-src http://apt.nc.hcc.edu.tw/ubuntu dapper-security main restricted universe multiverse