Ubuntu Tips

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
      #刪除ibus
      sudo apt-get remove ibus
      #添加源
      sudo add-apt-repository ppa:fcitx-team/fcitx-nightly
      #升級源
      sudo apt-get update
      #安裝fcitx
      sudo 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 nocp
set backspace=indent,eol,start
set whichwrap=b,s,<,>


syntax on
set autoindent

set expandtab
set ts=4
set sw=4
set softtabstop=4

set 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.0
    Type=Application
    Terminal=false
    Icon[en_GB]=/home/logicworld/Programs/eclipse/icon.xpm
    Name[en_GB]=Eclipse
    Exec=/home/logicworld/Programs/eclipse/eclipse
    Comment[en_GB]=Eclipse
    Name=Eclipse
    Comment=Eclipse
    Icon=/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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章