1.啟動sshd

編輯 /etc/rc.conf

新增

ssh_enable="YES"

inetd_enable="YES"

編輯/etc/inetd.conf

把這二行的#拿掉

ssh     stream  tcp     nowait  root    /usr/sbin/sshd          sshd -i -4
ssh     stream  tcp6    nowait  root    /usr/sbin/sshd          sshd -i -6

2.更新port tree

cd /usr/ports

portsnap fetch extract

make update

cd /usr/src
make update

3.安全性更新(懶人法)

freebsd-update fetch  (抓官方編譯好的bin檔)
freebsd-update install (把抓下來的檔案進行安裝)

編輯/etc/crontab

新增一行

0 3 * * * /usr/sbin/freebsd-update cron

這樣每天3點就會自動更新

4.安裝mysql

cd /usr/ports/databases/mysql50-server

make WITH_CHARSET=utf8 install clean (用port進行安裝)

mysql_install_db

/usr/local/share/mysql/mysql.server start

設定密碼

/usr/local/bin/mysqladmin -u root password ‘ooxx’

設定開機後啟動

/usr/local/bin/mysqld_safe –user=mysql  &


set prompt="%/>"

下這個指令.就很像DOS的PROMPT $p$g囉


1.#joe /etc/yum.repos.d/CentOS-Base.repo

2.把扛色的字加在後面
[base]
name=CentOS-$releasever – Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch
&repo=os&cc=tw

[update]
name=CentOS-$releasever – Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch
&repo=updates&cc=tw


這二行是設成用centos上的server,去找台灣mirror站來用


diy_livecd.jpg
這個網站蠻好玩的
http://custom.nimblex.net/
可以自己去定義想要的Linux Live CD
只要點一點
最後就會給你一個Link去下載iso
下載完只要燒出來
就是你定義的樣子
有興趣的人可以玩看看

新聞來自Linuxtoy.org
NimbleX是一個以Slackware為基礎的小型LiveCD套件,具有特色的是
NimbleX可透過線上的Custom NimbleX服務,可讓使用者在其網站上
自定LiveCD所需的套件內容,過程中無須瞭解其他製作細節,只要挑選
需要使用的軟體即可。