Fedora 16 安装后的一些事

1,安装chrome

从chrome的官网下载rpm安装包,但安装时可能会提示缺少lsb,用yum命令安装即可

#yum install redhat-lsb*


或者Add following to /etc/yum.repos.d/google-chrome.repo file

[google-chrome]
name=google-chrome - 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

yum install google-chrome-stable

2,添加rpmfusion源

#rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

#rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

#yum makecache


3,安装gnome-tweak-tool

采用gnome3之后,gnome-tweak-tool为配置桌面必不可少的工具

#yum install gnome-tweak-tool


4,安装桌面主题

#yum install gnome-shell-extension-theme-selector
#yum install gnome-shell-extension-common
#yum install gnome-shell-extension-user-theme
Load the GNOME Tweak Tool and go to Shell Extensions and click the "Use Theme Extension" switch. Now go to Theme>Shell Theme and click the box and locate your theme zip. Now you can select the theme in the dropdown box.
同时可以打开Applications Menu Extension,这样从桌面左上角Activities边上会多一个Fedora的图标,可以快速选择启动应用
一个比较好的桌面主题网址:http://browse.deviantart.com/customization/skins/linuxutil/desktopenv/gnome/gnome/

5,安装windows字体

在/usr/share/fonts目录下新建msfonts目录,将Windows系统内的字体复制到该目录下。

#chmod -R  755 /usr/share/fonts/msfonts

#fc-cache -fv


6,解决音乐播放器乱码问题

以root身份修改/etc/profile文件,在文件最后加入下面两行

export GST_ID3_TAG_ENCODING=GBK:UTF-8:GB18030
export GST_ID3V2_TAG_ENCODING=GBK:UTF-8:GB18030


7,安装多媒体解码器

#yum install ffmpeg ffmpeg-libs gstreamer-ffmpeg libmatrosca xvidcore libdvdread libdvdnav lsdvd
#yum install gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly

 

8, 删除旧内核

rpm -qa | grep kernel // 查看并列出所有内核
rpm -e kernel的名字 // 删除选定名字的内核


9, 安装vim

#yum install vim

#vi /etc/vimrc增加下面内容

" Add by cat
set shiftwidth=4
set tabstop=4
set expandtab


PS:gvim 

#yum install vim-X11


10, 如果希望启动后不进入图形桌面

# inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /etc/systemd/system/ctrl-alt-del.target
#
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To set a default target, run:
#
# ln -s /lib/systemd/system/<target name>.target /etc/systemd/system/default.target
# 
所以只需要执行下面的命令:
rm /etc/systemd/system/default.target
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target 

11,手工增加应用程序的快捷方式
Fedora 16的Gnome桌面环境下,应用图标可能存放在以下一些目录中:
/usr/share/applications
/usr/local/share/applications
~/.local/share/applications/
对于不是通过yum方式安装的应用程序,在Gnome桌面的Applications中是不会自动列出来的,需要手工处理一下,以Eclipse为例:
在/usr/share/applications目录下新增一个文件eclipse.desktop,内容如下即可:
[Desktop Entry]
Name=Eclipse J2EE
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;Development;X-Red-Hat-Extra;
Encoding=UTF-8
X-Desktop-File-Install-Version=1.0

12,Chrome浏览器安装FlashPlayer

1、下载adobe flash player源码包

2、解压并安装

#tar -zxvf install_flash_player_11_linux.x86_64.tar.gz

解压后会得到usr目录和libflashplayer.so文件

3、将usr合并拷贝到到系统usr里面

#cp -ri usr /

4、将动态链接库移到google-chrome安装目录

#mv libflashplayer.so /opt/google/chrome

#chown root:root libflashplayer.so

5、建立软链接

#ln -s /opt/google/chrome/libflashplayer.so /usr/lib/mozilla/plugins/

、重启google-chrome

7、启用flash player插件

在chrome地址栏输入about:plugins,然后将flash player插件启用

8、重启google-chrome

13, SCP替代FTP在本机与虚拟机之间传输文件

参考http://www.cnblogs.com/hitwtx/archive/2011/11/16/2251254.html的介绍

scp 可以在 2个 linux 主机间复制文件; 

命令基本格式: 
       scp [可选参数] file_source file_target 

====== 
从 本地 复制到 远程 
====== 
* 复制文件: 
        * 命令格式: 
                scp local_file remote_username@remote_ip:remote_folder 
                或者 
                scp local_file remote_username@remote_ip:remote_file 
                或者 
                scp local_file remote_ip:remote_folder 
                或者 
                scp local_file remote_ip:remote_file 
* 复制目录: 
        * 命令格式: 
                scp -r local_folder remote_username@remote_ip:remote_folder 
                或者 
                scp -r local_folder remote_ip:remote_folder 

====== 
从 远程 复制到 本地 
====== 
从 远程 复制到 本地,只要将 从 本地 复制到 远程 的命令 的 后2个参数 调换顺序 即可; 

最简单的应用如下 : 

scp 本地用户名 @IP 地址 : 文件名 1 远程用户名 @IP 地址 : 文件名 2 

[ 本地用户名 @IP 地址 :] 可以不输入 , 可能需要输入远程用户名所对应的密码 . 

可能有用的几个参数 : 

-v 和大多数 linux 命令中的 -v 意思一样 , 用来显示进度 . 可以用来查看连接 , 认证 , 或是配置错误 . 

-C 使能压缩选项 . 

-P 选择端口 . 注意 -p 已经被 rcp 使用 . 

-4 强行使用 IPV4 地址 . 

-6 强行使用 IPV6 地址 .

 

注意两点:

1.如果远程服务器防火墙有特殊限制,scp便要走特殊端口,具体用什么端口视情况而定,命令格式如下:
#scp -p 4588 remote@www.abc.com:/usr/local/sin.sh /home/administrator
2.使用scp要注意所使用的用户是否具有可读取远程服务器相应文件的权限。


14,查看软件的安装路径
有时通过yum命令安装完一个软件,但发现不知道该软件的执行/配置路径在哪,可以通过下面方式查看
a)查看rpm包名,例如valgrind
# rpm -qa|grep valgrind
valgrind-3.6.1-6.fc16.x86_64
b)查看rpm安装路径
# rpm -ql valgrind-3.6.1-6.fc16.x86_64

15,安装启动NFS服务
安装NFS服务
#yum install nfs-utils*
#yum install portmap

启用NFS服务
# systemctl enable nfs-server.service
ln -s '/lib/systemd/system/nfs-server.service' '/etc/systemd/system/multi-user.target.wants/nfs-server.service'

检查NFS服务是否被启用
# systemctl is-enabled nfs-server.service
enabled

启动NFS服务
# systemctl start nfs-server.service
或者用service命令
# service nfs-server restart
Redirecting to /bin/systemctl  restart nfs-server.service

查看NFS服务状态
# systemctl status nfs-server.service
nfs-server.service - NFS Server
 Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled)
 Active: active (running) since Sun, 29 Apr 2012 11:08:59 +0800; 1min 46s ago

本地测试
# showmount -e localhost
# mount localhost:/media/Photos /mnt
# umount /mnt

对于Win7如果需要访问NFS服务,需激活NFS客户端功能
控制面板--->程序和功能--->打开或关闭Windows功能--->NFS服务--->勾选NFS客户端

16,Linux远程桌面
Fedora同样可以通过远程桌面的方式访问Win机器,并且这种方式可以利用系统剪贴板在两个系统之间copy-paste一些数据
全屏访问:rdesktop -f Win's IP
自定义分辨率访问:rdesktop -g 1800x1012 Win's IP

17,增加stardict词库
星际译王是linux下比较常用的词典工具,默认安装完成后词库非常少,以致很多单词可能都查不到 :(
然后按照说明解压到/usr/share/stardict/dic目录下即可

18,禁止vim自动产生备份文件
使用Vim修改文件后系统会自动生成一个带~的备份文件,比较烦,禁止vim做这个事的办法:
1. 找到Vim安装目录(/usr/share/vim/vim73)
2. 编辑文件vimrc_example.vim
3. 找到这一句:if has("vms")
   把判断里的if部分保留,else部分注释掉, 修改后如下:
if has("vms")
  set nobackup      " do not keep a backup file, use versions instead
"else
"  set backup       " keep a backup file
endif

19, 安装和配置samba服务
安装samba服务
#yum install samba
配置samba服务
#vi /etc/samba/smb.conf
修改如下内容
hosts allow = 127. 192.168.122.
增加如下内容
[data]
comment = Data Share
path = /data
public = yes
writable = yes
printable = no
write list = +cat
增加samba用户
# smbpasswd -a cat
把防火墙中的samba服务打开
启动samba服务
# chkconfig smb on  ← 设置 Fedora Samba 自启动
# chkconfig nmb on  ← 设置 nmb 自启动

#service smb start ← 启动 Fedora Samba 服务
Starting SMB services: [ OK ]
#service nmb start  ← 启动 nmb 服务
Starting NMB services: [ OK ]

解除selinux中对samba的限制
# getsebool -a|grep samba
#setsebool –P samba_enable_home_dirs on
#setsebool –P samba_export_all_ro on
#setsebool –P samba_export_all_rw on

20,安装USB无线网卡驱动
自从光纤入户改变了家里的网络布局,书房里的台式机也只能通过增加无线网卡来访问网络,网卡型号为cisco linksys ae1200,其在Fedora 16下的驱动安装方法参照了http://ubuntuforums.org/archive/index.php/t-1805830.html
1. First remove all prior work with this (replace bcmwlhigh5 with bcmwlhigh6 if you tried installing vista or win7 drivers):
sudo ndiswrapper -e bcmwlhigh5
sudo modprobe -rf ndiswrapper
sudo rm /etc/modprobe.d/ndiswrapper.conf
sudo rm -rf /etc/ndiswrapper/*
sudo depmod -a
I would restart the computer now just to be safe.

2. Next, I had to build version 1.57 of ndiswrapper as the one in the ubuntu repositories didnt work, instructions for removing your current version and downloading/building/installing the new version can be found here: http://ubuntuforums.org/showpost.php?p=11612708&postcount=11133a. After that is done, you must make sure you've got the right files in the folder with the winxp inf file.
Download the XP driver here if you need it (You MUST use the windows xp drivers): http://homedownloads.cisco.com/downloads/driver/1224667593495/AE1200xp.zip3b. Extract those to an easy place to find them. After you extract them, delete the following files from the folder (probably unnecessary but do it just in case): AE1200xp.sys, AE2500xp.sys, bcmh43xx.cat, bcmwlcoi.dll

4. Now you need to add the following lines to bcmwlhigh5.inf:
Open in a text editor and put the cursor at the begining of line 178 and paste these lines:

[Linksys_AE1200.files.NTamd64] 
AE1200xp64.sys,,,6 

[Linksys_AE2500.files.NTamd64] 
AE2500xp64.sys,,,6 

Adding "amd64" after "NT" on lines 76, 83, 87 and 94 is NOT necessary, it would just try to make the inf use the 32bit versions of the .sys files which doesn't work (and I've had you delete those files just in case you did amend those lines).

5. Blacklist other bcm modules to keep them from loading
echo -e "blacklist bcm43xx\nblacklist b43\nblacklist b43legacy\nblacklist ssb" | sudo tee -a /etc/modprobe.d/blacklist.conf

6. Time to install! Finally, I know.
Here's the commands (PLEASE READ THE NOTES BELOW FIRST):
sudo ndiswrapper -i /home/adam/Desktop/XP/bcmwlhigh5.inf **CHANGE TO YOUR LOCATION**
sudo ndiswrapper -m -ma -mi
sudo depmod -a
sudo modprobe ndiswrapper

为了在系统启动过程中自动执行modprobe ndiswrapper,需在/etc/sysconfig/modules/目录下新建一个ndiswrapper.modules文件,文件内容仅为modprobe ndiswrapper即可

21,修改启动选项
安装完Fedora16后,默认grub的超时时间是5秒,有时候根本来不及选择,所以需要修改/boot/grub2/grub.cfg文件,查找timeout选项的位置修改即可
set timeout=60
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值