初步認識Ubuntu系統

因爲最近Microsoft針對版權保護,爲公司開源節流,研究了Ubuntu 18.0.4,我是安裝在DELL latitude系列及Inspiron系列機器上都有測試,完美兼容(平常辦公沒有任何問題)。

            首先說說安裝,兩款型號的機器都須要更改BIOS,latitude開機按F2,選擇System Configuration選項下找SATA Operation選項,再選擇AHCI選項(默認爲RAID)。Inspiron系列機器我開機近BIOS,Setting下面的Secure Boot下一級的Secure Boot Enable的選項中的Enable更改成Disable(默認爲Enable),

            安裝netstat命令
            sudo apt-get install net-tools
            安裝vim
            sodo apt-get install vim

            安裝就不用多說了,主要說說安裝之後的事吧,我用英文安裝,須要安裝中文輸入法(屌絲用拼音,就安裝搜狗拼音輸入法吧),
            一、安裝fcitx輸入架構
            sudo apt install fcitx    或者在應用商店裏搜索fcitx安裝Fitx和Ficx Configuration
            二、在瀏覽器下載搜狗拼音輸入法(Linux版),根據本身的系統下載
            三、在圖像界面下雙擊執行
            四、安裝
            五、安裝成功後進入「設置」Settings,在系統右上角
            六、Region&Language區域和語言--Manage Installed Languages管理已安裝的語言--Keyboard Input Method System鍵盤輸入法系統選擇「fictx」--Apply System-wide應用到整個系統(應用後會直接註銷,若是沒有用能夠重啓系統)
            七、點擊桌面右上角的鍵盤圖標--Configure Current Input Method配置當前輸入法--點擊+號圖標--去掉Only Show Current Language(只顯示當前語言)前面的鉤--找到Sogou Pinyin--點擊「OK」按鈕【保留原有的Keyboard-English(US)】   
            八、中英文切換是Ctrl+空格,(shift是中英切換)

            安裝打印機
            一、右上角點擊「設置」Settings
            二、選擇Devices設備
            三、Printes打印機--Add添加--輸入打印機IP--jetdirect-printer--Add--FUJI XEROX--Fuji Xerox                

            安裝chrome瀏覽器
            sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
            wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -
            sudo apt update
            sudo apt install google-chrome-stable
            就能夠在資源庫打開瀏覽器了

            配置句柄數(若是做爲服務器使用,句柄數決定了鏈接數。默認是ubuntu 20,過小了因此要更改)
            ulimit -n  #查看句柄數
            修改配置

        sudo vim /etc/security/limits.conf

        #添加以下四行
        *        hard     nofile              204800
        *        soft      nofile              204800
        *        hard     noproc           204800
        *        soft      noproc           204800

   sudo vim /etc/systemd/system.conf
     #添加下面這句
     DefaultLimitNOFILE=204800

     重啓後生效,
         ulimit -n        #查看更改結果

     卸載

            剔除在線用戶:
            若是要ssh鏈接ubuntu,須要安裝openssh-server
            sudo apt-get install openssh-server
            w--查看在線用戶
            pkill -KILL -t pts/0          #pts/0爲w指令看到的用戶終端號
相關文章
相關標籤/搜索