代码: 全选
sudo apt-get install cairo-dock cairo-dock-plug-ins cairo-clock
终端输入gconf-editor, 勾选/apps/metacity/general/compositing_manager这个键值即可
配置启动cairo-dock替代gnome-panel
运行gconf-editor,定位到 desktop-->gnome-->session-->required_components
然后把 键名 panel 的值改成 cairo-dock (原来是 gnome-panel)
在开机启动加入命令cairo-dock -o -c 关闭opengl 否则自启动后弹出提示是否选择opengl --------------------------------------------------------------------------------------------------------------------------------------------------
安装HardWare Sensors Monitor:查看系统温度 效果
代码: 全选
sudo apt-get install hddtemp sensors-applet
代码: 全选
sensors-detect
在panel上右键添加到面板 选HardWare Sensors Monitor 如下图 Monitor上右键--首选项--Sensors---展开hddtemp--选中硬盘 显示温度 --------------------------------------------------------------------------------------------------------------------------------------------------
查看UUID:
代码: 全选
sudo blkid
代码: 全选
less /etc/fstab
代码: 全选
ls -al /dev/disk/by-uuid
设定swap分区的LABEL:
代码: 全选
mkswap -L LABEL名称 /dev/分区名称
代码: 全选
swapon -a
代码: 全选
tune2fs -L LABEL名称 /dev/分区名称
代码: 全选
sudo e2label /dev/分区名称 名称 例如:sudo e2label /dev/sda1 boot
代码: 全选
tune2fs -l /dev/分区名称
代码: 全选
sudo apt-get install ntfs-config
代码: 全选
sudo gedit /etc/fstab
wine显示方框字
1、首先拷贝simsun.ttc字体进入~/.wine/drive_c/windows/Fonts/
2、修改注册表文件~/.wine/system.reg:
代码: 全选
将[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes] 中的:
“MS Shell Dlg”=”Tahoma”
“MS Shell Dlg 2″=”Tahoma”
改为:
“MS Shell Dlg”=”SimSun”
“MS Shell Dlg 2″=”SimSun”
删除旧内核
代码: 全选
sudo aptitude purge ~ilinux-image-.*\(\!`uname -r`\)
解决Flash网页听歌乱码
代码: 全选
sudo gedit /etc/fonts/conf.d/49-sansserif.conf
------------------------------------------------------------------------------------------------------------------------------------------------
安装ibus拼音并设置ibus自启动
代码: 全选
sudo apt-get install ibus-pinyin
im-switch -s ibus -z default
保持xp和ubuntu时间同步
代码: 全选
sudo gedit /etc/default/rcS 修改 "UTC=no"
默认开启小键盘
代码: 全选
sudo apt-get install numlockx
sudo gedit /etc/gdm/Init/Default
代码: 全选
if [ -x /usr/bin/numlockx ]; then
numlockx on
fi
system---adminstration---login screen 解锁 勾选第二项
------------------------------------------------------------------------------------------------------------------------------------------------
修改grub默认启动时间10秒至3秒:
代码: 全选
sudo gedit /etc/default/grub
sudo update-grub
图片存放路径 用以替换系统自带图标
/usr/share/icons/gnome/24x24/places/start-here.png 主菜单图标位置 24x24像素 清爽主题
/usr/share/icons/Humanity/places/24/start-here.svg Ubuntu Logo 默认主题
更换ubuntu logo 后终端执行 sudo killall gnome-panel 即可看到效果
/usr/share/backgrounds 桌面背景图片
/usr/share/pixmaps 应用程序图标路径
/usr/share/icons/hicolor/32x32/apps 可用于自定义应用程序启动器图标修改
/usr/share/images/xsplash xwindow 启动画面
/etc/xdg/autostart 自启动程序存放位置
------------------------------------------------------------------------------------------------------------------------------------------------
系统自带电影播放机totem安装解码器支持播放RMVB: 消除mplayer错误提示
error :could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc
mplayer -- preferences -- video --x 11 另 codecs -- video -- codec family -- FFmpeg 设置此二项解决错误提示
----------------------------------------------------------------------------------------------------------------------------------------------
http://www.google.com/chrome/intl/en/eu ... e_i386_deb chrome安装包下载
firefox仿chrome皮肤扩展:chromifox
压缩解压
代码: 全选
sudo install cabextract zip unzip p7zip rar unrar
系统工具 ubun-student优化设置 ; gnome-art-ng GNOME主题壁纸选择工具
-----------------------------------------------------------------------------------------------------------------------------------------------------------
安装微米黑
代码: 全选
sudo aptitude install ttf-wqy-microhei
代码: 全选
sudo gedit /etc/fonts/conf.d/69-language-selector-zh-cn.conf
代码: 全选
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>WenQuanYi Micro Hei</string>
<string>AR PL UMing CN</string>
<string>AR PL ShanHeiSun Uni</string>
<string>WenQuanYi Bitmap Song</string>
<string>Bitstream Vera Serif</string>
<string>DejaVu Serif</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>WenQuanYi Micro Hei</string>
<string>Bitstream Vera Sans</string>
<string>DejaVu Sans</string>
<string>WenQuanYi Zen Hei</string>
<string>AR PL UMing CN</string>
<string>AR PL ShanHeiSun Uni</string>
<string>WenQuanYi Bitmap Song</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>WenQuanYi Micro Hei Mono</string>
<string>Bitstream Vera Sans Mono</string>
<string>DejaVu Sans Mono</string>
<string>WenQuanYi Zen Hei</string>
<string>AR PL UMing CN</string>
<string>AR PL ShanHeiSun Uni</string>
<string>WenQuanYi Bitmap Song</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
</edit>
</match>
</fontconfig>
编译安装tar.gz源代码文件
代码: 全选
sudo apt-get install build-essential
tar zxvf XXX.tar.gz -C /路径名
cd 源代码目录
./configure
make
make install
代码: 全选
cd 源代码目录
make clean
./configure
make uninstall
conky.sh
#!/bin/bash
sleep 20 ; conky
conky.sh
#!/bin/bash
sleep 15 && conky -d /home/maxsys/.conkyrc
/etc/X11/rgb.txt 系统自带颜色查询
conky.desktop文件,然后放到~/.config/autostart目录里
文件内容:
代码:
[Desktop Entry]
Type=Application
Name=Conky
Exec=conky
Icon=system-run
Comment=
代码: 全选
background yes
override_utf8_locale yes
font Sans:size=9
xftfont Sans:size=9
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
#own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 170 5
maximum_width 170
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
gap_x 10
gap_y 50
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none
out_to_console no
#default_color white
default_color green
default_shade_color black
default_outline_color white
TEXT
${font sans:style=Bold:pixelsize=30}${alignc}${time %H:%M:%S}
$alignc${color #ddaa00}${font }today: ${time %Y-%m-%d-%H-%M-%S}
${color }UpTime:$alignr${color }$uptime
${color white}$stippled_hr
${color white}CPU Temp:$alignr${color } $acpitemp°C
${color white}CPU Used:$alignr${color } $cpu%
${color white}$stippled_hr
${color }Processes:$alignr${color }$processes ($running_processes running)
${color white}$stippled_hr
${color }Highest CPU:$alignr PID CPU%
${color #ddaa00}${top name 1}$alignr${top pid 1} ${top cpu 1}
${color lightgrey}${top name 2}$alignr${top pid 2} ${top cpu 2}
${color lightgrey}${top name 3}$alignr${top pid 3} ${top cpu 3}
${color white}$stippled_hr
${color }Highest MEM:$alignr PID MEM%
${color #ddaa00}${top_mem name 1}$alignr${top_mem pid 1} ${top_mem mem 1}
${color lightgrey}${top_mem name 2}$alignr${top_mem pid 2} ${top_mem mem 2}
${color lightgrey}${top_mem name 3}$alignr${top_mem pid 3} ${top_mem mem 3}
${color white}$stippled_hr
${color}eth0(U):${color #325a96} $alignr${upspeed eth0}k/s
${color}eth0(D):${color #325a96} $alignr${downspeed eth0}k/s
${color}Total Download:${color #325a96} $alignr${totaldown eth0}
${color}Total Up: ${color #325a96} $alignr${totalup eth0}
${color white}$stippled_hr
${color }MEM:${color} $memperc%$alignr$mem/$memmax
${membar 3,160}
${color }Hard Drive Temp: $alignr${hddtemp /dev/sda} °C
${color }ROOT:$alignr${color}${fs_used /}/${fs_size /}
${fs_bar 3,160 /}
${color }HOME:$alignr${color}${fs_used /home}/${fs_size /home}
${fs_bar 3,160 /home}
${alignc}Kernel: $kernel on $machine
ies4linux
http://hi.baidu.com/tkocn/blog/item/b8d ... 7a2b1.html
有些软件必须依赖ie浏览器才能使用,比如同花顺等等,真是不爽。自己配置在wine下安装又很麻烦,还好又ies4linux可以节省一点配置时间,但linux就是与众不同,ies4linux也不是可以一挥而就的,呵呵,下面我把安装过程写下来,备用。
1.根据ies4linux官方的安装步骤,如下,有两点注意:
代码:
wget http://www.tatanka.com.br/ies4linux/dow ... est.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux
a.第二步,输入ies4后就按个TAB,名字不一定是ies4linux-latest.tar.gz哦。
b.最后一步不要执行!GUI安装经常崩溃。
2.查看选项代码。修改locale:CN,无GUI安装:
代码:
./ies4linux --help
得到,执行代码如下:
代码:
./ies4linux --locale CN --no-gui
3.系统在安装过程中,几乎必然会出现错误,当然不排除不出错的可能
两种出错情况:一是部分文件暂时没有下载下来;二是某个文件下载到一半出现错误,MFC42.cab就是例子。
实践可知,即使是无GUI安装也可能会出现如上中断错误信息,多试几次就OK了,对于第二种错误需要找到未完整下载的文件,删除之,以便下一次重新下载。安装的临时文件在这里:/home/YOURNAME/.ies4linux/downloads/ie6/CN,把出错文件删除。
继续敲入:
代码:
./ies4linux --locale CN --no-gui
直到完整把ie安装所需文件全部下载。
4.这是我三次执行如上命令,中途删除了一次没有完整下载导致中断的MFC42.cab,最终得到的屏幕信息:
代码:
chris@ubuntu:~/ies4linux-2.99.0.1$ ./ies4linux --locale CN --no-gui
IEs4Linux 2 is developed to be used with recent Wine versions (0.9.x). It seems that you are using an old version. It's recommended that you update your wine to the latest version (Go to: winehq.com).
IEs4Linux will:
- Install Internet Explorers: 6.0
- Using IE locale: CN
- Install Adobe Flash 9.0
- Install everything at: /home/chris/.ies4linux
[ OK ]
Downloading everything we need
Downloading from microsoft.com:
DCOM98.EXE
mfc42.cab
249973USA8.exe
ADVAUTH.CAB
CRLUPD.CAB
HHUPD.CAB
IEDOM.CAB
IE_EXTRA.CAB
IE_S1.CAB
100% IE_S2.CAB
IE_S5.CAB
IE_S4.CAB
100% IE_S3.CAB
IE_S6.CAB
SETUPW95.CAB
FONTCORE.CAB
FONTSUP.CAB
VGX.CAB
SCR56EN.CAB
Downloading from macromedia.com:
swflash.cab
[ OK ]
Installing IE 6
Initializing
Creating Wine Prefix
Extracting CAB files
Installing IE 6
Installing DCOM98
Installing TTF Fonts
Installing ActiveX MFC42
Installing RICHED20
Installing registry
Finalizing
[ OK ]
Installing Flash Player 9
Extracting files
Installing flash on ie6
Finalizing
[ OK ]
IEs4Linux installations finished!
To run your IEs, type:
ie6
安装成功,嘎嘎。
注意:依赖ie的软件,在安装的时候,必须通过此ie浏览器下载,并按“运行”而不是“保存”。
因为ies4linux虽然依赖wine但是ies4linux却有自己的安装目录,藏在ie6这个文件夹下面,如果使用‘保存’后安装的话,会安装到wine的目录里,还是不能运行ie。
在终端返回一大堆无法联接的错误信息的时候"Ctrl+c"中断掉它,这时转到能上网的机器或系统上下载这些文件
根据[ubuntu下离线安装ies4linux]这篇文章把其中你下载不成功的文件单独下载下来
viewtopic.php?f=121&t=201295
按照列表中的位置把上面提到的共20个下载文件部署正确,根目录就是当前的"downloads"目录!在再次运行ies4linux之前还要先安装一个 cabextract包,然后就可以重新运行ies4linux进行安装了,安装结束,桌面上会有个IE的快捷方式,双击即可。
------------------------------------------------------------------------------------------------------------
wine qq2008 去winehq.org下载wine1.1.33 deb包 安装完成后便是中文版 源里的是wine1.0.1英文版
/home/maxsys/.wine/drive_c/windows/system32/Macromed/Flash/flash.ocx
注册文件
env WINEPREFIX="/home/maxsys/.wine" wine regsvr32 "C:\windows\system32\Macromed\Flash\Flash.ocx"
http://wine.budgetdedicated.com/archive/index.html download wine 1.1.32
wine 1.1.32
全局 xp qq xp
mfc42.dll msvcp60.dll riched20.dll riched32.dll 原装
最后装nvidia驱动
http://dl.qvod.com/QvodSetup3.exe
WINEPREFIX=~/.ies4linux/ie6 wine ~/.ies4linux/ie6/drive_c/Program\ Files/QvodSetup3.exe
WINEPREFIX=~/.ies4linux/ie6 wine ~/.ies4linux/ie6/drive_c/Program\ Files/WebPlayer.exe
---------------------------------------------------------------------------------------------------------------------------------------------------
完全卸载wine
清理以下四个目录中的信息即安全删除了程序信息:
$HOME/.config/menus/applications-merged/wine* (好像是xml文件,有乱码也没有关系,不会影响显示!)
$HOME/.local/share/applications/wine (直接影响开始程序菜单中的显示!)
$HOME/.local/share/desktop-directories/wine*
$HOME/.local/share/icons/????_*.xpm (程序图标)
---------------------------------------------------------------------------------------------------------------------------------------------