歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> Ubuntu快速設置指南

Ubuntu快速設置指南

日期:2017/2/27 14:27:45   编辑:更多Linux
  當你剛剛安裝完畢之後,我們來花10分鐘設置一下系統,讓其有一個更加舒適的中文環境。1. 修改你的源,並升級到最新的系統:sudo gedit /etc/apt/sources.list在編輯器裡,刪除所有東西,並在加上下面的行:deb http://archive.ubuntu.org.cn/ubuntu hoary main restricted universe multiversedeb http://archive.ubuntu.org.cn/ubuntu hoary-security main restricted universe multiversedeb http://archive.ubuntu.org.cn/ubuntu hoary-updates main restricted universe multiversedeb http://archive.ubuntu.org.cn/ubuntu-cn hoary main universe multiverse restricteddeb http://archive.ubuntu.org.cn/backports hoary-backports main universe multiverse restricteddeb http://archive.ubuntu.org.cn/backports hoary-extras main universe multiverse restricted保存,關閉編輯器2. 系統升級(如果出現需要輸入[Y/n] 或 [y/N] 一律輸入 y 並 回車):sudo apt-get updatesudo apt-get dist-upgrade3. 安裝中文語言支持:設置本地local環境:sudo dpkg-reconfigure locales確保 zh_CN.UTF-8 被選擇,同時也默認local為 zh_CN.UTF-8sudo apt-get install language-pack-zh language-pack-zh-base language-support-zh安裝中文字體(如果出現需要輸入[Y/n] 或 [y/N] 一律輸入 y 並 回車):sudo apt-get install ttf-arphic-newsungsudo apt-get install ttf-vera-yuan4. 安裝輸入法,你可以在SCIM和fcitx輸入法中任選一種安裝SCIM:sudo apt-get install scim scim-gtk2-immodule scim-modules-socket scim-modules-table scim-pinyin scim-tables-zh scim-input-padsudo sh -c " echo 'eXPort XMODIFIERS=@im=SCIM ; export GTK_IM_MODULE="scim" ; scim -d ' > /etc/X11/Xsession.d/95xinput "sudo chmod +755 /etc/X11/Xsession.d/95xinputfcitx:sudo apt-get install fcitxsudo sh -c " echo 'export XMODIFIERS=@im=fcitx ; export GTK_IM_MODULE="fcitx" ; fcitx ' > /etc/X11/Xsession.d/95xinput "sudo chmod +755 /etc/X11/Xsession.d/95xinput5. 設置LC_ALL和其它屬性:sudo gedit /etc/environment在編輯器裡,將內容修改如下:LANGUAGE="zh_CN:zh:en_US:en"LC_ALL=zh_CN.UTF-8LANG=zh_CN.UTF-8GST_ID3_TAG_ENCODING=GBK保存,關閉編輯器好了,注銷一下電腦。(系統 -> 注銷 -> 注銷) 這時候,輸入法 (按 Ctrl + 空格 鍵激活輸入法) 都應該可以使用了,並且整個界面都是中文的了。6. 安裝Java環境(如果出現需要輸入[Y/n] 或 [y/N] 一律輸入 y 並 回車):sudo apt-get install sun-j2re1.57. 安裝QQ:wget -c http://lumaqq.Linuxsir.org/download/2004/lumaqq_2004-linux_gtk2_x86_no_jre.tar.gzsudo tar zxvf lumaqq_2004-linux_gtk2_x86_no_jre.tar.gz -C /opt/wget -c http://lumaqq.linuxsir.org/download/patch/lumaqq_2004_patch_2005.05.09.13.55.zipsudo unzip -o lumaqq_2004_patch_2005.05.09.13.55.zip -d /opt/LumaQQ/libsudo chown -R root:root /opt/LumaQQ/sudo chmod -R 755 /opt/LumaQQ/sudo gedit /usr/share/applications/LumaQQ.desktop在新增的文件內加入下面這幾行[Desktop Entry]Name=LumaQQComment=QQ ClientExec=/opt/LumaQQ/lumaqqIcon=/opt/LumaQQ/QQ.pngTerminal=falseType=ApplicationCategories=Application;Network;保存編輯過的文件安裝完成後的快捷方式在(應用程序 -> internat -> LumaQQ)。8. 安裝英漢辭典(如果出現需要輸入[Y/n] 或 [y/N] 一律輸入 y 並 回車):sudo apt-get install stardict stardict-common stardict-cdict-gb stardict-cedict-gb stardict-hanzim stardict-langdao-ce-gb stardict-langdao-ec-gb stardict-oxford-gb stardict-xdict-ce-gb stardict-xdict-ec-g安裝完成後的快捷方式在(應用程序 -> 附件 -> 星際譯王)10. 升級你的內核,讓系統更快.如果你的電腦是Inter芯片,則用如下命令:sudo apt-get install linux-686如果是AMD芯片,則使用:sudo apt-get install linux-k7




Copyright © Linux教程網 All Rights Reserved