1. 安裝fedora19後的初始化配置
1.1. 防火牆
如果你的電腦處於區域網路內,那麼防火牆是不需要的的,停止它!
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service1.2. SELinux
停止SELinux,如果你不需要它。
sudo vi /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#
enforcing - SELinux security policy is enforced.
#
permissive - SELinux prints warnings instead of enforcing.
#
disabled - SELinux is fully disabled.
SELINUX= disabled # change
# SELINUXTYPE= type of policy in use. Possible values are:
#
targeted - Only targeted network daemons are protected.
#
strict - Full SELinux protection.
SELINUXTYPE=targeted
2. 安裝rpmfusion源
它有非常多的免費和非免費的軟體,音視頻解碼器。
Fedora 14的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-14.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-14.noarch.rpm
Fedora 15的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-15.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-15.noarch.rpm
Fedora 16的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-16.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-16.noarch.rpm
Fedora 17的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-17.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-17.noarch.rpm
Fedora 18的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm
Fedora 19的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-19.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-19.noarch.rpm
3. 安裝一下有用的一些軟體包
sudo yum -y install yum-fastestmirror unrar thunderbird emacs ibus-table \
redhat-lsb gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg \
compat-libstdc++-33 NetworkManager-devel python-gevent tracker-ui-tools qemu \
libpciaccess-devel xorg-x11-util-macros llvm-devel mtdev* mutt msmtp tftp \
tftp-server policycoreutils-gui mtd-utils mtd-utils-ubi vim ibus-pinyin \
gnome-tweak-tool ckermit stardict stardict-dic-zh_CN stardict-dic-en \
ibus-table-chinese-wubi-haifeng gnash smplayer vlc samba pidgin pidgin-sipe \
meld expect glibc-static ncurses-static genromfs cmake ccache p7zip nmap \
gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly gstreamer1-libav
4. 升級一下系統:
sudo yum -y update
5.安裝chrome
32位系統:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.rpm
sudo rpm -ivh google-chrome-stable_current_i386.rpm
64位系統:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
sudo rpm -ivh google-chrome-stable_current_x86_64.rpm
6. 安裝 flash plugin
32位系統:
wget http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
sudo rpm -ivh adobe-release-i386-1.0-1.noarch.rpm
64位系統:
wget http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
sudo rpm -ivh adobe-release-x86_64-1.0-1.noarch.rpm
sudo yum -y install flash-plugin
7. 安裝音視頻解壓器:
wget http://mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
tar jxf all-20110131.tar.bz
32位系統:
sudo mkdir -p /usr/lib/codecs
sudo cp all-20110131/* /usr/lib/codecs
64位系統:
sudo mkdir -p /usr/lib64/codecs
sudo cp all-20110131/* /usr/lib64/codecs
8. 配置samba
sudo smbpasswd -a -U your_username #設定登陸的使用者名稱和密碼,你可以運行 whoami 查看你的使用者名稱
sudo systemctl enable smb.service # 開機啟動samba
sudo systemctl start smb.service # 立即啟動samba
sudo systemctl restart smb.service # 立即重啟samba
sudo firewall-cmd --permanent --zone=public --add-service=samba # 配置防火牆,讓其它電腦能訪問你的電腦。
下面是一個簡單配置樣本:
mkdir /home/public
chmod 777 /home/public
[share]
comment = Galen's Share
path = /home/public
writable = yes
valid users = your_username
# 你可以運行 whoami 查看你的使用者名稱
配置好後,記得重啟samba (sudo systemctl restart smb.service)
9. 配置NFS
sudo systemctl enable nfs-server.service # 開機啟動NFS
sudo systemctl start nfs-server.service # 立即啟動NFS
sudo systemctl restart nfs-server.service # 立即重啟NFS
# 關閉防火牆, 否則會出現(mount: RPC: Unable to receive; errno = No route to host)
sudo systemctl status firewalld.service
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
下面是一個簡單配置樣本:
vi /etc/exports
/home/nfsroot *(rw,sync,no_subtree_check)
10. 配置IME
以前的im-chooser不能正常使用了。否則會出現:“GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._imsettings_2derror_2dquark.Code5: Current desktop isn't targeted by Input Method.”
1. 在螢幕右上方點擊你的使用者名稱,會出現下拉式功能表,點“系統設定/System Settings", 類似windows的控制台。
2. 點“地區&語言/Region&Language”
3. 的“輸入源/Input Sources“中點添加按鈕,添加你想要IME,
如果沒有你想要的IME,在控制台輸入下面這條指令, 以顯示所有的IME:
gsettings set org.gnome.desktop.input-sources show-all-sources true
4. 在”快速鍵/Shortcut Setting"中,設定"Switch to next source"為 Ctrl+Space.