Ubuntu Tips

来源:互联网 发布:淘宝客服培训内容 编辑:程序博客网 时间:2024/05/04 17:37

Installation

Ubuntu Settings

  1. Tweak

Software list

  1. tree
  2. cloc
  3. g++
  4. vim
  5. 拼音输入法
    1. ibus-pinyin(sudo apt-get install ibus-pinyin //安装拼音引擎 ibus-setup //弹出设置框)(That is a mess under Ubuntu 13.10)
    2. fcitx pinyin
      #删除ibussudo apt-get remove ibus#添加源sudo add-apt-repository ppa:fcitx-team/fcitx-nightly#升级源sudo apt-get update#安装fcitxsudo apt-get install fcitx fcitx-config-gtk fcitx-sogoupinyin#切换输入法im-switch -s fcitx -z default#重启或注销
    3. Fcitx小企鵝 输入法界面比较漂亮(找了一圈,还是不知道怎么换皮肤,在Ubuntu13.10下面好像有问题。fcitx-classic-ui好像没有用。)
    4. Ubuntu Kylin与搜狗共同开发的输入法,看这里。
      1. 如果遇到“请启用fcitx-qimpanel面板程序,以便更好的享受搜狗输入法!”,那么在命令行中敲入如下命令。
        #重载 fcitx, 开启 qimpanel:fcitx -r --enable fcitx-qimpanel#然后启动 fcitx-qimpanel:fcitx-qimpanel


  6. WPS for linux
    1. 13.10安装方法
    2. 字体问题
    3. 14.04安装(64位)
      1. 下载安装包,注意不要下载beta版本(我试过装不上wps-office_8.1.0.3724~b1p2_i386.deb),下载alpha版本(wps-office_9.1.0.4945~a16p3_i386)
      2. sudo dpkg -i wps-office_9.1.0.4945~a16p3_i386.deb (过程中会出现包依赖错误)
      3. sudo apt-get install -f (拯救一下破损的包依赖)
  7. 金山快盘Linux版

配置文件

.bashrc

  1. PS1="\[\e[32m\][\u \w]\$\n\t>\[\e[m\]"
    设置结果:

  2. d

.vimrc

set nocpset backspace=indent,eol,startset whichwrap=b,s,<,>syntax onset autoindentset expandtabset ts=4set sw=4set softtabstop=4set nu
  1. vim中的tab和space

驱动

无线网卡驱动

看这里。

如果,设备ID为ID 0bda:8179 Realtek Semiconductor Corp,其芯片型号为RTL8188EUS,我的网卡名字是fast FW150US,那么,Realtek官网上是没有这个驱动,驱动在这里。

如果,设备是Realtek的,那么可以看看这个列表里面有没有你的芯片型号。

Tips

文件浏览器

  1. Open Terminal Here — Ubuntu
  2. How to add an option to create a new file with a specific extension in right click menu

桌面

  1. Ubuntu Gnome3的状态栏系统托盘是隐藏在下面的,按一下Win+M就可以出来了。
  2. 将命令行工具添加到Gnome Dock,看这里。(其中,添加*.desktop文件的方法,经测试可以成功使用。)
    Add eclipse.desktop to /home/logicworld/.local/share/applications with the following content.
    #!/usr/bin/env xdg-open[Desktop Entry]Version=1.0Type=ApplicationTerminal=falseIcon[en_GB]=/home/logicworld/Programs/eclipse/icon.xpmName[en_GB]=EclipseExec=/home/logicworld/Programs/eclipse/eclipseComment[en_GB]=EclipseName=EclipseComment=EclipseIcon=/home/logicworld/Programs/eclipse/icon.xpm
  3. 另一种等价的方案是使用gnome-desktop-item-edit, 具体看这里。

安全

  1. How to secure your Linux system

Firewall

Netfilter&iptables

iptables is the userspace command line program used to configure the Linux 2.4.x and later packet filtering ruleset. It is targeted towards system administrators.
Since Network Address Translation is also configured from the packet filter ruleset, iptables is used for this, too.
The iptables package also includes ip6tables. ip6tables is used for configuring the IPv6 packet filter.

  1. iptables防火墙配置详解
  2. Basic Guide on IPTables (Linux Firewall) Tips / Commands
  3. Quick HOWTO : Ch14 : Linux Firewalls Using iptables(最详细)

FirewallBuilder

多平台GUI,支持iptables。

ufw(Uncomplicated Firewall)

方便配置iptables。

远程桌面

服务器端xrdp:Ubuntu 13.10 install 不同的版本安装方法略有不同,主要是因为Unity的出现导致xrdp不是很兼容。

其他

  1. 在开机时自动挂载硬盘分区,看这里。
  2. Install kernel headers 看这里。
  3. 将其他分区挂载到home目录上,看这里。
  4. 查看Linux文件夹、分区大小的相关命令du/df/fdsik/
  5. 转换文件编码  iconv -f gb2312 -t utf8 filename
  6. How to Easily Setup a Dictionary in Ubuntu Linux?
  7. 安装多个ISO在一个USB盘中
  8. Multiboot_USB_drive
  9. Installation/FromLinux

0 0
原创粉丝点击