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无线网卡驱动
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