# 我的linux日常生活-5. 安裝常用軟體 ###### tags: `我的linux日常生活` 在這篇我會簡單介紹幾個常用軟體,例如:新酷音輸入法、Office等。 ## 注音輸入法-新酷音輸入法 一般安裝完作業系統時如果語言是選擇繁體中文,系統就會預設安裝新酷音輸入法。如果是選擇其他語系就需要特別另外安裝。 只需要下這條指令就可以了 ```shell sudo apt-get install fcitx-chewing ``` 我自身經驗當中,有遇到的輸入法選擇選擇新酷音輸入法,所以我這邊選擇 fcitx 相關套件重新安裝。相關指令如下: ```shell sudo apt remove fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4 fcitx-frontend-qt5:amd64 fcitx-googlepinyin:amd64 fcitx-m17n:amd64 fcitx-module-dbus fcitx-module-kimpanel fcitx-module-lua fcitx-module-x11 fcitx-modules fcitx-pinyin fcitx-sunpinyin fcitx-table fcitx-table-amharic fcitx-table-malayalam-phonetic fcitx-table-wubi fcitx-ui-classic fcitx5-module-quickphrase-editor sudo apt-get install fcitx fcitx-tools fcitx-config* fcitx-frontend* fcitx-module* fcitx-ui-* sudo apt-get install fcitx-chewing ``` ## Office軟體-LiberOffice 文書處理上仍然離開不了Office 軟體,這邊我安裝LiberOffice,如果要全部安裝只需要下這條,系統就會全數安裝Office 所有功能: ```shell sudo apt install libreoffice ``` 但是在實際應用方面,我只會用到World、excel這兩個功能,指令如下: ```shell sudo apt install libreoffice-writer # world sudo apt install libreoffice-calc #excel ``` ## 聽音樂的好夥伴-Spotify 在Debian 安裝Spotify 比較麻煩一些,因為它並非自由軟體,沒有收錄在Debian 的套件清單當中,所以我必須在 sources list 新增來項目 指令如下 ```shell curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add - echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list sudo apt-get update && sudo apt-get install spotify-client ``` ## 影像處理工具-GIMP 如果在工作上有需要處理影像作業,可以安裝GIMP 替代 Adobe Photoshop ,GIMP 只是一項選擇你也可以自行上網找相關替代資源。 ```shell sudo apt install gimp ``` ## 筆記型電腦的必備輔助軟體-fusuma 如果你是把Ubuntu安裝在筆記行電腦中,在操作的過程中多窩少少會需要依賴觸控板,這邊我還蠻推薦 fusuma 這套軟體。因為這挑可以自由的設定觸控板手勢,安裝指令如下: ```shell sudo apt-get install libinput-tools sudo apt-get install ruby sudo gem install fusuma sudo apt-get install xdotool gsettings set org.gnome.desktop.peripherals.touchpad send-events enabled mkdir -p ~/.config/fusuma #建立觸控板手勢參數檔 vim ~/.config/fusuma/config.yml #設定觸控板手勢 ``` 安裝完成之後將設定輸入到 ~/.config/fusuma/config.yml,下面試我自己行慣的設定 ```yaml swipe: 3: left: command: 'xdotool key alt+Left' #上一個歷程 right: command: 'xdotool key alt+Right' #下一個歷程 up: command: 'xdotool key super+Up' #開新分頁 down: command: 'xdotool key super+Down' #關閉程式 4: left: command: 'xdotool key super+Right' #將視窗移至右邊 right: command: 'xdotool key super+Left' #將視窗移至左邊 up: command: 'xdotool key super+a' #顯示應用程式 down: command: 'xdotool key super' #顯示概覽 pinch: 2: in: command: 'xdotool key ctrl+plus' #縮小 threshold: 0.1 out: command: 'xdotool key ctrl+minus' #放大 threshold: 0.1 threshold: swipe: 0.1 pinch: 0.1 interval: swipe: 0,1 pinch: 0.1 ``` 設定完成之後可以輸入下面這條指令確認設定是不是符合你自己需要的 ```shell sudo fusuma #啟動試試看是不是符合你的操作 sudo fusuma -d # -d代表背景執行 ``` 最後在將設定設定為啟動gome 桌面時自動啟動 fusuma ```shell gnome-session-properties #設定啟動game桌面的參數 ``` ## Linux上的Notepad++-notepadqq 作為一個工程師常常需要打開不同語言的腳本,原本在windows我自己是習慣使用Notepad++,但是踏進linux之後發現Notepad++ 只能透過wine執行,後來我在網路上找到了 notepadqq ,下面是在Debian安裝的方式: 打開 sources.list ```shell sudo vim /etc/apt/sources.list ``` 新增下面兩個資套件來源 ```shell deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu trusty main deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu trusty main ``` 新增公鑰 ```shell sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 63DE9CD4 ``` 更新並安裝 ```shell sudo apt-get update sudo apt-get install notepadqq ``` ## 螢幕截圖工具-flameshot flameshot 使一款螢幕截圖工具,截完圖之後可以在圖片上進行註記重點。以下是安裝方式及易用的基本設定。 安裝 ```shell sudo apt install flameshot ``` gome 新增快捷鍵 ![gome 新增快捷鍵](https://i.imgur.com/VEwiYBn.png "gome 新增快捷鍵") ```shell flameshot gui ``` ## 參考資料 [新酷音輸入法](http://chewing.im/) [Debian安装Notepadqq,Linux系统下的Notepad++编辑器](https://ywnz.com/linuxjc/509.html) [LibreOffice installation on Ubuntu](https://wiki.ubuntu.com/LibreOffice) [fusuma](https://github.com/iberianpig/fusuma) [flameshot](https://github.com/flameshot-org/flameshot)