1:重启gnome桌面系统命令
sudo /etc/init.d/gdm restart
2:重启kde桌面系统命令
sudo /etc/init.d/kdm restart
--------------------------------------------------------------
ubuntu下安装搜狗linux输入法
源是这里:https://launchpad.net/~fcitx-team/+archive/nightly
输入以下命令安装:
1 | #首先添加源 |
2 | sudo apt-add-repository ppa:fcitx-team/nightly |
3 | sudo apt-get update |
4 |
5 | #如果以前使用或安装过fcitx,需要把他删除掉 |
6 | sudo apt-get remove fcitx* |
7 | #安装sogou输入法 |
8 | sudo apt-get install fcitx-sogoupinyin |
字库很ok,感觉还不错。
转: http://my.oschina.net/winktj/blog/119220--------------------------------------------------------------
ubuntu 为应用程序设置桌面图标:
以eclipse为例子:
在终端中输入
sudo gedit /usr/share/applications/eclipse.desktop
[Desktop Entry]
Encoding=UTF-8
Name=eclipse
Comment=Eclipse IDE
Exec=/home/lenovo/developer/eclipse/eclipse
Icon=/home/lenovo/developer/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Development;
-----------------------------------------------------------------------------------------
安装可以选择桌面效果的插件,有了这个插件可以在登录解面选择不同的桌面
sudo apt-get install gnome-tweak-tool # 高级配置工具 (推荐安装)
-----------------------------------------------------------------------------------------
打开windows上的txt文档出现中文乱码问题解决:
在终端中执行:
gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8', 'GB18030', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']"
--------------------------------------------------------------------------------------------------------------
chrome 启用java
Issue the following commands.
- Type/Copy/Paste: sudo -s
- this will change you into root
- Type/Copy/Paste: mkdir -p /opt/google/chrome/plugins
- this will create a directory called /opt/google/chrome/plugins
- Type/Paste/Copy: cd /opt/google/chrome/plugins
- this will change you into the google chrome plugins directory,make sure you are in this directory before you make the symbolic link
- Type/Paste/Copy: ln -s /usr/local/java/jre1.7.0_09/lib/i386/libnpjp2.so
- this will create a symbolic link from the Java JRE( Java Runtime Environment ) pluginlibnpjp2.so to your Google Chrome web browser