顯示具有 Mint 標籤的文章。 顯示所有文章
顯示具有 Mint 標籤的文章。 顯示所有文章

2022年8月8日 星期一

Linux Mint 21 安裝 SCJ6 (快倉輸入法)

在 Linux Mint 20.3 or Ubuntu 20.04 之前的版本,可以安裝 fcitx 和 fcitx-table-scj6 的方式,就可以安裝 快倉六 的輸入法,但是,在 fcitx5 之後,好像就沒那麼容易了! 

處理的方式,參考如下: 

sudo apt update
sudo apt install fcitx5 fcitx5-chinese-addons* fcitx5-rime

除了要安裝 fcitx5 之外,還要安裝 中州韻 輸入法,它的輸入法檔案是放在
/usr/share/rime-data
這個目錄裡,所以,我們先到
https://github.com/rime/rime-scj
下載檔案, 主要是 scj6.dict.yaml 和 scj6.schema.yaml 這二個檔案,將這二個檔案下載後,放到 /usr/share/rime-data  目錄下。

接下來,到
~/.local/share/fcitx5/rime
目錄下,建立 default.custom.yaml 檔案,檔案內容如下:

patch:
    schema_list:
        - schema: scj6 
   
"
menu/page_size"
: 9

 

若是要使用其他輸入法,也可以參考 /usr/share/rime-data 目錄下的檔案名稱,替換一下。

最後,重啟一下輸入法,應該就可以正常使用了! 


2022年3月31日 星期四

Dell Precision 3650 tower 安裝 ubuntu 20.04 or Linux Mint 20 的 NIC driver

 Dell Precision 3650 tower 的網路卡是 Intel I219-LM 整合型的網路卡,可以參考 https://askubuntu.com/questions/1344156/ubuntu-20-04-2-and-onboard-intel-i219-v 的內容進行。

若系統更新 kernel 的話,還需要重新再執行一次。

2019年9月29日 星期日

Linux Mint 19.2 install Nvidia Cuda


底下這篇的動作比較簡單,又沒出問題~~
https://mrprajesh.blogspot.com/2018/11/install-cuda-10-on-linux-mint-19-or.html

其中連到 Nvidia Cude 的網站如下
https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=deblocal

2019年9月17日 星期二

T480 雙顯卡在系統無法順利從 intel 切換為 Nvidia 的解決方案


T480 雙顯卡在 Linux MInt 18.3 ,安裝完 cuda driver 後,發現可以在視窗介面下從 Nvidia 轉換為 Intel ,但,就再也開不起它的對話框。
可以從指令模式下,簡單的用底下的指令就可以從 Intel 切換為 Nvidia 了。

sudo prime-select nvidia

重新登入後就可以了。

ref: https://unix.stackexchange.com/questions/438908/mint-18-3-does-not-boot-after-i-changed-graphics-card-from-nvidia-to-intel

2019年6月27日 星期四

ubuntu 18.04/Linux Mint 19.1 setting thinkpad Trackpoint


from: http://nrvale0.github.io/posts/adjusting-thinkpad-trackpoint-sensitivity-on-ubuntu-1604-and-others/

說明如下:
  1. 編輯 /etc/tmpfiles.d/trackpoint.conf 檔案
  2. 貼上以下內容
    w /sys/devices/platform/i8042/serio1/serio2/speed - - - - 255
    w /sys/devices/platform/i8042/serio1/serio2/sensitivity - - - - 175
  3. 執行以下指令
    sudo systemd-tmpfiles --prefix=/sys --create 
  4. 接著,要到 系統設定/滑鼠,將 自定義靈敏度 功能關閉
  5. 重新啟動系統,trackpoint 就很好用了~ 

2019年1月20日 星期日

Linux Mint 19.1 的字型顏色設定


參考這篇:
https://www.dedoimedo.com/computers/linux-mint-cinnamon-edit-theme.html

找到 cinnamon 及 gtk-3.0 , 將其中的 css 檔案的 #4a4a4a 改為 #000000 就能將字型改為純黑色了。

2017年11月28日 星期二

在 Linux Mint 18.2 使用 swift 4.02 出現的問題



from: https://bugs.swift.org/browse/SR-3794

在 Linux Mint 18.2 使用 swift 4.02 執行 import Glibc 時,會顯示錯誤訊息, 表示它找不到 函數要 include 的來源位置, 可以用類似以下方式指定要 include 的函數位置,就可以解決了。

swift -I ~/apps/swift-4.0.2-RELEASE-ubuntu16.04/usr/lib/swift/clang/include/

後面的路徑,是 swift 解壓縮(或安裝)的資料夾位置。




2017年11月8日 星期三

Stop / remove / delete all Docker containers


ref source:
https://coderwall.com/p/ewk0mq/stop-remove-all-docker-containers
https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes

若要停止、移除、刪掉 Docker images 檔案,可以用以下方式處理:
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker ps -a -q) 
 
 

How To install Docker in Linux Mint 18.2


source: http://budthapa.pro/blog/show/6/How-To-install-Docker-in-Linux-Mint-18.2



Docker for Linux Mint is availabe as a free Community Edition (CE). Installation is easy and straigh forward. We will install a stable release of docker.
OS Requirements
  • Linux Mint 18.2 (LTS)
  • Architecture: x86_64
If you've the older version installed already, uninstall it
$ sudo apt-get remove docker docker-engine docker.io
Add repositories
$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Since, Linux Mint 18.2 (sonya) is based on Ubuntu 16.04 (xenial), we've to use the release codename of Ubuntu 16.04 i.e. xenial. Also, we'll use the latest stable version
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
If you are using Linux Mint 16 (petra), you've to use the release codename "trusty"
To check the release codename of you Linux Mint pc, In your terminal type:
lsb_release -rc
You'll see the release and codename printed in the terminal as
Release: 18.2
Codename: sonya
Now, update the pc
$ sudo apt update

Finally, we'll Install docker community version (CE) in Linux mint 18.2

$ sudo apt install docker-ce
Check if the docker is properly installed by typing
$ docker version
You'll get the output like this:
Client:
 Version:      17.06.2-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   cec0b72
 Built:        Tue Sep  5 20:00:17 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.06.2-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   cec0b72
 Built:        Tue Sep  5 19:59:11 2017
 OS/Arch:      linux/amd64
 Experimental: false
 Running hello world in docker is easy, Just run
$ sudo docker run hello-world
You must be root user to use docker

Running docker command as non root user

If you are a single user and don't want to enter your password everytime while executing docker command, you have to add the current user in docker group.
$ sudo groupadd docker #this is most likely already created while installing docker
$ sudo gpasswd -a $USER docker
$ newgrp docker # you might need to logout if the changes are not working
$ docker run hello-world # check if docker is working without sudo
 

2017年6月9日 星期五

Linux Mint 17.3 修改預設的字型顏色


sudo gedit  /usr/share/themes/Mint-X/gtk-3.0/gtk-main.css

2017年5月31日 星期三

Linux Mint 18.1 安裝後的幾個設定





TrackPoint 的設定

參考 http://webnexus.de/?p=10
設定如下

Trackpoint sensitivity

Although the trackpoint aswell as trackpoint scrolling worked out of the box the sensitivity was sort of sluggish. To permanently improve the sensitivity I added a new rule as described here: https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X220

In /etc/udev/rules.d/98-trackpoint.rules I added the following lines:

# Set the trackpoint speed and sensitivity
ACTION=="add",SUBSYSTEM=="input",ATTR{name}=="TPPS/2 IBM TrackPoint",ATTR{device/sensitivity}="255",ATTR{device/speed}="110"

To switch sensitivity on the go (settings will be lost on reboot) you can also use configure-trackpoint from the thinkpad-extras repo:

sudo add-apt-repository ppa:linrunner/thinkpad-extras
sudo apt-get update
sudo apt-get install configure-trackpoint


Fcitx 中文輸入法的設定


參考 http://cloverhsc.blogspot.tw/2016/12/linux-mint-18-fcitx.html
設定如下


開機之後fcitx 不會自動啟用。後來去看了 mint控制台的『系統啟動應用程式』發現 Fcitx Qt IMPanel 內容它是去執行
/usr/share/fcitx-qimpanel/fcitx-qimpanel-autostart
這應該是要執行
/usr/bin/fcitx
才對,修改為正確的值,重新啟動後就正常使用了。



中文字型變成標楷或細明的問題

參考 https://magiclen.org/linux-font-remove-kai/
設定如下

sudo apt-get remove fonts-arphic-ukai fonts-arphic-uming直接移除這二套字型就可以了。