Fedora 13 Release Note
Get Fedora
How To Upgrade From Fedora 12 To Fedora 13 (Desktop & Server)
Fedora Moblin Spin
原本手上 Fedora 12 Desktop 想用 yum 方式 upgrade ,不過網路問題,最後改用 DVD 升級方式。升級之後能正常開機。
若想用新的東西,可以安裝 Fedora 13 。
for Fedora 12
modify /etc/gdm/custom.conf
[daemon] TimedLoginEnable=true AutomaticLoginEnable=true AutomaticLogin=your_account TimedLogin=your_account TimedLoginDelay=0
for Windows 2003 Server
Run -> Regedt32.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon DefaultUserName=your_account DefaultPassword=your_password AutoAdminLogon=1
Install Skype on Fedora 12
sudo wget http://fedorasolved.org/multimedia-solutions/skype.repo -O /etc/yum.repos.d/skype.repo sudo yum update sudo yum install -y libX11.i686 libv4l.i686 skype --nogpgcheck
link: Installing Skype
安裝完 Fedora 12 之後,進行一些調整以及安裝軟體。
增加 sudo user
su - visudo # 將 %wheel ALL=(ALL) ALL 註解拿掉 usermod -G wheel -a your_account
增加 yum install 速度
sudo yum install -y yum-plugin-fastestmirror
增加 rpmfusion / adobe repos
sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm sudo rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
安裝 Virtualbox
sudo yum install -y kernel-PAE-devel dkms gcc su -c 'wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | rpm --import -' su -c 'wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo' sudo yum update sudo yum install -y VirtualBox sudo usermod -G vboxusers -a `whoami`
安裝 Dropbox
sudo yum install -y nautilus-devel libnotify-devel python-docutils wget https://www.dropbox.com/download?dl=packages/nautilus-dropbox-0.6.1.tar.bz2 tar xvjf nautilus-dropbox-0.6.1.tar.bz2 cd nautilus-dropbox ./configure sudo make install
登入時啟動 dropbox
system -> startup Applications -> Startup Programs -> Add -> Name: Dropbox / Command : dropbox start -i
安裝 flash player
sudo yum install -y flash-plugin
安裝 pcmanx-gtk2
sudo yum install -y intltool gcc-c++ libtool wget http://pcmanx-gtk2.googlecode.com/svn/website/release/pcmanx-gtk2-0.3.9.tar.bz2 tar xvjf pcmanx-gtk2-0.3.9.tar.bz2 cd pcman-gtk2 ./configure --disable-libtool-lock
安裝 Truecrypt
sudo yum install nss-pkcs11-devel fuse-devel wxGTK wxGTK-devel gnome-keyring-devel # 到 truecrypt 官方網站取得 source tar xvzf truecrypt.source.tar.gz cd truecrypt_source make # make 過程中若出現 # ./Common/SecurityToken.cpp:660: error: ‘CKR_NEW_PIN_MODE’ was not declared in this scope # ./Common/SecurityToken.cpp:661: error: ‘CKR_NEXT_OTP’ was not declared in this scope # 將這兩行註解,重新make sudo cp Main/truecrypt /usr/local/bin
安裝 w32codes
cd /tmp wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2 tar -jxvf all-20071007.tar.bz2 su -c 'mkdir -p /usr/local/lib/codecs' su -c 'cp all-20071007/* /usr/local/lib/codecs' rm -rf /tmp/all-20071007*
安裝字體
sudo yum install -y cjkuni-ukai-fonts cjkuni-uming-fonts taipeifonts wqy-bitmap-fonts sudo yum install -y google-droid-fonts-common google-droid-sans-fonts google-droid-sans-mono-fonts google-droid-serif-fonts
安裝軟體
sudo yum install -y smplayer sudo yum install -y stardict stardict-dic-en stardict-dic-zh_TW sudo yum install -y htop iotop vnstat sudo yum install -y homebank Zim revelation filezilla gnome-do gnome-do-plugins cups-pdf terminator xpdf xchm mozilla-adblockplus sudo yum install -y wp_tray gnome-applet-timer gnome-sshmenu sshmenu samba smbfs sshfs synergy p7zip subversion cowsay
播放Mp3 檔案
sudo yum install -y gstreamer-plugins-ugly
調整 sysctl.conf
## increase TCP max buffer size setable using setsockopt() net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 ## increase Linux autotuning TCP buffer limits ## min, default, and max number of bytes to use ## set max to at least 4MB, or higher if you use very high BDP paths net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 65536 16777216 ## don't cache ssthresh from previous connection net.ipv4.tcp_no_metrics_save = 1 net.ipv4.tcp_moderate_rcvbuf = 1 ## recommended to increase this for 1000 BT or higher net.core.netdev_max_backlog = 2500 ## for 10 GigE, use this, uncomment below ## net.core.netdev_max_backlog = 30000 ## Turn off timestamps if you're on a gigabit or very busy network ## Having it off is one less thing the IP stack needs to work on ## net.ipv4.tcp_timestamps = 0 ## disable tcp selective acknowledgements. net.ipv4.tcp_sack = 0 ##enable window scaling net.ipv4.tcp_window_scaling = 1 vm.swappiness=10
調整 fstab
UUID=f5ddb653-9427-4c60-a5c9-4f970a92f572 / ext4 noatime 1 1 UUID=90da04ed-8b6f-4d2f-bedb-66c2486b2c25 /home ext4 noatime 1 2 UUID=b7512395-fd43-4d48-abc0-9b8418ad8649 /share ext4 noatime 1 2 UUID=adaed9ae-38ce-47a4-885f-d963ddb4b3ce swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 tmpfs /tmp tmpfs mode=1777 0 0 tmpfs /var/tmp tmpfs mode=1777 0 0
調整 firefox
about:config network.dns.disableIPv6 -> true network.http.pipelining -> true network.http.pipelining.maxrequests -> 8 network.http.proxy.pipelining -> true browser.cache.disk.parent_directory -> /tmp
參考資料:
The Unofficial Fedora® FAQ
Fedora Guide
Truecrypt 6.2 Install guide fro fedora
How to install virtualbox 3 on Fedora 12
雖然沒有機器和時間玩,就順便紀錄一下一些東東。
Fedora 12 Release Notes
Fedora 12 Installation Guide
Fedora 12 Installation Quick Start Gudie
Fedora 12 User Guide
mod_cband 是 apache2 用來控制流量 module ,和 apache 1.3 mod_bandwidth / mod_limitpconn 不太一樣。
首先下載 mod-cband 原始檔, wget http://cband.linux.pl/download/mod-cband-0.9.7.4.tgz ,不過 cband.linux.pl 一直無法讀取,只好透過 Google 找到 mod-cbnad-0.9.7.5.tgz
環境: Ubuntu 8.04 / Apache 2
./configure ; make ; sudo make install
LoadModule cband_module /usr/lib/apache2/modules/mod_cband.so
sudo /etc/init.d/apache2 restart
環境:Centos 5 / Apache 2
./configure –with-apxs=/usr/sbin/apxs ; make ; sudo make install
sudo service httpd restart
在 apache2 主要設定檔,請加上
CBandScoreFlushPeriod 1
CBandRandomPulse On
針對Vhost 設定內加上
CBandSpeed 1024 10 30
CBandRemoteSpeed 20kb/s 3 3
CBandSpeed 參數為此 Vhost 維持 1024kbps ,每秒最多 10 requests ,最多 30 open connections
CBandRemoteSpeed 參數為每個 User 連線每秒 20kb
設定之後,請重新啟動 apache2
參考資料:Manage Apache Download Speed And Traffic Limits With mod_cband
環境:Centos 5 / Apache 2 / PHP 5
到 Zend Optimizer 下載 Linux 32bits 版本。
解開 ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz ,執行 ./install ,按照畫面步驟安裝完成。
測試是否安裝成功,執行 phpinfo(); ,出現
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
表示安裝成功。
Centos 5 沒有 iftop 套件,只好自己編譯安裝。
yum install libpcap-devel ncurses-devel
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
tar xvzf iftop-0.17.tar.gz
cd iftop-0.17
./configure –prefix=/usr/local
make ; make install
用法
iftop -n -i eth0
https://www.redhat.com/archives/fedora-announce-list/2008-March/msg00011.html
The full release notes are available at:
http://fedoraproject.org/f9-beta-relnotes