说明:原来用的是x64的ubuntu 11.10,昨天转到x64的fedora 16,下面是转过来的一些过程。

 

     # sudo yum -y install wget gcc gcc-c++ openssl openssl-devel

一、wireless

     # wget http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_64-v5_100_82_112.tar.gz

     # mkdir wameide

     # tar xzvf hybrid-portsrc_x86_64-v5_100_82_112.tar.gz -C wameide/

     # yum -y install kernel-devel-$(uname -r)

     # cd wameide

     # make clean

     # make

     # cp wl.ko /lib/modules/`uname -r`/kernel/net/wireless/wl.ko

     # cd /lib/modules/`uname -r`/kernel/net/wireless/

     # depmod

     # modprobe wl

     # lsmod|grep "b43\|ssb\|wl"    #注:如果有结果,就rmmod掉它。

     # modprobe lib80211

     # insmod wl.ko

 

 

二、Video && Audio

     # 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

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

     # modprobe snd_pcm_oss  #注:如果只有图像而没声音的话(audio_setup: Can't open audio device /dev/dsp: No such file or directory)。

 

 

三、其它项

     # yum list|grep ibus 

     # yum -y install ibus-table-chinese-wubi-jidian.noarch

     # yum -y install gconf-editor rdesktop gnome-tweak-tool  truecrypt

       fedora16下打开Windows文本文件乱码

     #gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8', 'GB18030', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']"

     #gsettings set org.gnome.gedit.preferences.encodings shown-in-menu "['UTF-8', 'GB18030', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']"

       fedora17解决文本文件乱码问题

      #sudo yum install dconf-editor

       按下Alt-F2,输入dconf-editor,在org--->gnome--->gedit--->preferences--->encodings,
       在auto-detected的value项中加入'GB18030', 写在第二位;
       在shown-in-menu的value项中加入'GB18030', 写在第二位。

     #vi /etc/resolv.conf 

     #按Ctrl+Z挂起该程序 

     #bg %1 

     #jobs -l;fg %1 

     ************************** 

     #nohup ./test.sh & 

     #jobs;fg%2 

     #kill -9 %1;jobs 强制中止该jobs 

     #kill -15 %1&&jobs 按正常程序方式中止jobs 

     ************************** 

     #service atd start 

     #at 23:23 

      at>echo "hello">/dev/tty1 

     最后用Ctrl+D来提交任务。 

     #atq 

     #atrm 1 

     /etc/at.allow和/etc/at.deny文件 

     ************************** 

     #batch 23:00 2011-2-2  它仅在cpu工作负载小于0.8的时候才进行。 

     at>/bin/mail root -s "ok"</root/.bashrc 

     ************************** 

     #crontab -e -u root 

      分钟 小时 日期 月份 星期 

      30 8 * * 1-5 shutdown -h now  周一到周五的8:30关机 

      0 8-18/2 */3 * * 每隔3天的8点到18点之间每隔2小时 

     #crontab -l -u root 

     #crontab -r -u root   移除所有 

     /etc/cron.allow和/etc/cron.deny文件 

 

 

四、Conky

     # yum  install  conky

     # wget http://blog.fedora-fr.org/public/bioinfornatics/conky/beautiful_conky.tar.xz

     # tar -xvf beautiful_conky.tar.xz

     # cd beautiful_conky; ./install.sh CHXX0008

     # vi ~/.bash_profile (删除下面的两行,我们改用其它方式启动此软件)

       conky -c ~/.conky/weather.conky &

       conky -c ~/.conky/conkyrc &

     # gnome-session-properties (添加以下命令启动conky)

       conky -c ~/.conky/conkyrc &

     # yum -y install hddtemp

     # hddtemp /dev/sda  (用此命令测试硬盘温度)

     # yum -y install lm_sensors

     # sensors-detect  (全部输入yes)

     # sensors (用此命令测试CPU温度)

     # 最后贴个我的/home/wameide/.conky/conkyrc的详细配置参数

# Conky settings #

background yes

update_interval 1

cpu_avg_samples 2

net_avg_samples 2

override_utf8_locale yes

double_buffer yes

no_buffers yes

text_buffer_size 2048

#imlib_cache_size 0

#temperature_unit fahrenheit

 

# Window specifications #

own_window yes

#own_window_type override

own_window_type normal

own_window_transparent yes

own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0

border_outer_margin 0

minimum_size 200 250

maximum_width 300

alignment tr

gap_x 30

gap_y 0

 

# Graphics settings #

draw_shades no

draw_outline no

draw_borders no

draw_graph_borders no

 

# Text settings #

use_xft yes

xftfont caviar dreams:size=8

xftalpha 0.5

uppercase no

temperature_unit celsius

default_color FFFFFF

 

# Lua Load  #

lua_load ~/.conky/clock_rings.lua

lua_draw_hook_pre clock_rings

TEXT

${voffset 2}${color FF6600}${font caviar dreams:size=14}${time %A}${font}${voffset -8}${alignr 80}${color FFFFFF}${font caviar dreams:size=30}${time %e}${font}

 

${color FFFFFF}${voffset -30}${color FFFFFF}${font caviar dreams:size=14}${time %Y}${font}   ${voffset -10} ${color FFFFFF}${font caviar dreams:size=14}${time %b}${font}${color FF6600}

 

 

 

${voffset 100}

${color FFFFFF}${goto 80}${voffset 20}${cpu cpu0}% ${voffset 0}${cpu cpu1}% ${voffset 0}${cpu cpu2}% ${voffset 0}${cpu cpu3}%${color FF6600}${goto 30}CPU

${color FFFFFF}${goto 120}${voffset 40}${memperc}%${color FF6600}${goto 50}Ram

${color FFFFFF}${goto 120}${voffset 0}${cpu mem}%${color FF6600}${goto 50}Mem

${color FFFFFF}${goto 130}${voffset 20}${swapperc}%${color FF6600}${goto 80}Swap

${color FFFFFF}${goto 160}${voffset 40}${fs_used_perc /}%${color FF6600}${goto 100}Disk

${color FFFFFF}${goto 190}${voffset 30}${downspeed wlan0}${color FF6600}${goto 120}Net Down

${color FFFFFF}${goto 190}${voffset 0}${upspeed wlan0}${color FF6600}${goto 120}Net Up

 

 

${offset 10}${color FFFFFF}${font caviar dreams:size=8}System: ${exec uname -nr}

${offset 10}${color FFFFFF}${font caviar dreams:size=8}Disk /  CPU: ${exec hddtemp /dev/sda|cut -d ':' -f 3}  ${exec sensors|grep temp1|cut -c 16-22}

${offset 10}${color FFFFFF}${font caviar dreams:size=8}Uptime: ${uptime_short}

${offset 10}${color FFFFFF}${font caviar dreams:size=8}Processes: ${processes}

${offset 10}${color FFFFFF}${font caviar dreams:size=8}Running: ${running_processes}