Lubuntu 18.04如何設定中文注音鍵盤排列方式
Lubuntu 18.04 安裝完畢後, 預設注音使用酷音輸入法, 但是咖啡偶使用倚天的鍵盤排列方式
因此需要另外設定排列方式:
apt-get install fcitx-config-gtk*
這樣就可以在”偏好設定” -> “Fcitx 設定” 找到酷音輸入法的鍵盤配置, 修改成倚天排列方式囉
Lubuntu 18.04 安裝完畢後, 預設注音使用酷音輸入法, 但是咖啡偶使用倚天的鍵盤排列方式
因此需要另外設定排列方式:
apt-get install fcitx-config-gtk*
這樣就可以在”偏好設定” -> “Fcitx 設定” 找到酷音輸入法的鍵盤配置, 修改成倚天排列方式囉
Lubuntu 18.04 安裝chrome 瀏覽器之後,可以到應用程式商店安裝chrome遠端桌面
安裝完畢之後, 此時測試連線會出現無畫面的狀況
請加上以下指令(不需要sudo )即可解決
echo “lxsession -s LXDE -e LXDE” > ~/.xsession
systemctl restart chrome-remote-desktop
但是還是無法解決同時看同一畫面的問題,處理步驟如下:
1. sudo vi /opt/google/chrome-remote-desktop
2.修改連線數目
# FIRST_X_DISPLAY_NUMBER = 20
FIRST_X_DISPLAY_NUMBER = 0
3. 以下設定相關設定加上#
…
#while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
# display += 1
…
…
# logging.info(“Starting %s on display :%d” % (xvfb, display))
# screen_option = “%dx%dx24” % (max_width, max_height)
# self.x_proc = subprocess.Popen(
# [xvfb, “:%d” % display,
# “-auth”, x_auth_file,
# “-nolisten”, “tcp”,
# “-noreset”,
# “-screen”, “0”, screen_option
# ] + extra_x_args, env=self._x_env())
# if not self.x_proc.pid:
# raise Exception(“Could not start Xvfb.”)
4. 重啟chrome遠端桌面服務
systemctl restart chrome-remote-desktop
這樣重新遠端桌面連線, 就可以看到同一個畫面了
第1步當然是安裝chrome線上應用商店的remote desktop , 然後啟用後下載一個deb檔案安裝, 結果無法啟用遠端連線功能.
第2步(解法):
網路上找到的解法, 原來是路徑不一致以及上.
1. 帳號需要加到 “chrome-remote-desktop” 這個群組
sudo usermod -a -G chrome-remote-desktop <your account>
2. 這我沒做過,但網路上好多人說要做
mkdir ~/.chrome-remote-desktop-session file with “exec /usr/bin/lxsession -s Lubuntu -e LXDE” in it.
exec /usr/bin/lxsession -s Lubuntu -e LXDE 不是固定的 ,要參考 /usr/share/xsessions
3. mkdir ~/.config/chrome-remote-desktop directory.
4. mkdir /etc/chromium-browser/native-messaging-hosts
5. ln -s /etc/opt/chrome/native-messaging-hosts/* /etc/chromium-browser/native-messaging-hosts/
You should now have a ‘Enable Remote Connection’ button on the CRD extension page.
ps. 最後發現 chromium 已經不支援NaCI功能(Native Client), 因此一樣無法透過chromium進行遠端桌面連線連到別的地方, 但可以讓別地方連近來,功能只有一半,真是殘念.
只好乖乖安裝chrome, 然後移除chromium
以下是安裝chrome的方法
wget -q -O – https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add –
sudo sh -c ‘echo “deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main” >> /etc/apt/sources.list.d/google.list’
sudo apt-get update
sudo apt install google-chrome-stable
以下是移除chromium的方法
sudo apt-get remove chromium-browser –purge
rm -rf ~/.config/chromium
rm -rf ~/.cache/chromium
sudo rm -rf /etc/chromium
安裝 minikube 的時候遇到問題, 原來是我的筆電安裝 fedora 28 , 其中docker的版本是 18.x ,無法安裝.
minikube (0.26.1) , 說只能確定 17.x 可以安裝, 超過不保證能安裝.
因此, 不屈不撓 , 立馬重灌我的 acer cb3-111 chromebook, 把她安裝成 lubuntu 18.04 版, 最後終於成功安裝minikube .
安裝簡易步驟:
0. 安裝前先確認cpu支援vt-x(vmx)
more /proc/cpuinfo |grep vmx
1. 切換成root
sudo su –
2.安裝docker(17.12.1-ce)
apt install docker.io
systemctl start docker
systemctl enable docker
3. 安裝kubectl
https://kubernetes.io/docs/tasks/tools/install-kubectl
apt-get update && apt-get install -y apt-transport-https
apt install snapd
snap install kubectl –classic
chmod +x ./kubectl
mv ./kubectl /usr/local/bin/kubectl
4. 安裝minikube(0.26.1)
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
5. 執行minikube
minikube start –vm-driver=none
因為使用的是linux , 可以安裝docker, 所以步驟5執行minikube 時候, 請加上–vm-driver=none
或是linux有裝virtualbox 的時候, –vm-driver=virtualbox
6. 如何刪除迷你酷播
minikube delete
rm -rf ~/.minikube
rm -rf ~/.kube
rm -rf /usr/local/bin/minikube
Ubuntu 18.04 LTS 長期支援版4/26號出世啦 , 使用16.04 LTS 的大家趕快升級去
1. 先確認目前是最新版本
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt autoremove
2. 升級去
sudo apt-get install update-manager-core sudo do-release-upgrade
使用 MrChromebox 安裝full rom 之後, 就可以安裝獨立的linux , 咖啡偶的 acer CB3-111 bay trail 悲催安裝fedora 23後, 還是無法啟用音效. 原來在於要修改alsa
alsamixer
1.執行後先按F6, 然後利用左或右鍵, 選擇Left Speaker Left DAC ,Right Speaker Right DAC , 按下m鈕 取消靜音
2.然後先移除原本的目錄 /usr/share/alsa/ucm/GOOGLE-Gnawty-1.0-Gnawty , 再建立 /usr/share/alsa/ucm/GOOGLE-Gnawty-1.0-Gnawty 與/usr/share/alsa/ucm/chtmax98090 的連結, 請參考
# ln -s /usr/share/alsa/ucm/chtmax98090 /usr/share/alsa/ucm/GOOGLE-Gnawty-1.0-Gnawty
重開機, 執行pulse audio controller 選擇 speaker 輸出音效即可
PS: 目錄 GOOGLE-Gnawty-1.0-Gnawty 因bay trail 型號不同而不同
20180522後記
若安裝ubuntu 18.04 , 請參考
# git clone https://github.com/plbossart/UCM.git # cd UCM # cp -r chtmax98090/ /usr/share/alsa/ucm/ # ln -s /usr/share/alsa/ucm/chtmax98090 /usr/share/alsa/ucm/GOOGLE-Gnawty-1.0-Gnawty # cd /usr/share/alsa/ucm/GOOGLE-Gnawty-1.0-Gnawty # cp chtmax98090.conf GOOGLE-Gnawty-1.0-Gnawty.conf # alsaucm -c chtmax98090 set _verb HiFi set _enadev Speakers # alsactl store
這樣ubuntu 的 /usr/share/alsa/ucm 才能出現chtmax98090目錄 , 其中GOOGLE-Gnawty-1.0-Gnawty是我筆電的代號, 需要視情況修改.
若重開後出現破聲,可以試試看git下來的目錄 sof-chtmax98090裡面的檔案 覆蓋到 chtmax98090 目錄下
然後將相關檔名與檔案裡面的文字有關sofchtmax98090改成chtmax98090
再重新執行
alsaucm -c chtmax98090 set _verb HiFi set _enadev Speakers
alsactl store
Chromebook 刷 MrChromebok UEFI Full ROM , 安裝完 ubuntu 16.04 之後 , 居然無法開機, 需要手動選擇”檔案(file)” , 找到並點選 grubx64.efi 才能開機成功, 這根本擾人啊!
找了好久, 終於找到解決方式:
# sudo su –
# mkdir -p /boot/efi/EFI/BOOT
# cp /boot/efi/EFI/<linux 版本>/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.efi
因為我安裝的是ubuntu , 所以變成:
cp /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.efi
** 安裝Fedora 27卻沒有這問題
哇! 4月26日 最新版的 ubuntu 18.04 要釋出了! 而且還是長期支援(Long term support)版本, 代號 bionic beaver “神通廣大的河狸”.
因為目前筆電所安裝的 ubuntu 16.04 LTS 還沒辦法支援悲催(bay-trail)的音效, 想說連假最後一天, 上網搜尋,看看能不能找到解法,可惜沒有 XD.
但是, 突然之間, 我發現一個大亮點, 那就是 ubuntu 18.04 LTS beta 2 已於 4/6 釋出.
於是我再仔細找一下, 官方居然設定 4/26 日就是正式版釋出的日子, 太棒了! 用很新的 4.15 Linux 核心, 簡化ppa的使用, 16.04 LTS 可以直接升級, 不用重新安裝, 真是棒呆了!
Ubuntu 18.04 LTS Release Date, New Features and Upgrade Procedure
咖啡偶的筆電很輕, 是acer出的 chromebook (CB3-111)
但是被我拿來改裝成 ubuntu 16.04 ,改裝方式可以到 mrchromebox.tech 取經.
但是不建議大家把chromebook拿來改裝, 因為現在的chromebook可以直接安裝android相關程式,功能越來越強大! 可惜這台 CB3-111 太早買, 還無法安裝android程式.
這台記憶體有4G, 安裝筆電的時候, 除了需要安裝注音, 與輕量化外, 也可以考慮安裝 virtualbox 測試很多系統呢.
請到IT地窖練功中心第 10020 號練功吧. 附件是chromebook改裝的畫面
**我的CB3-111還要拆開筆電把某顆螺絲拔掉
1. vi /etc/dovecot/conf.d/10-auth.conf uncommand the following setting #!include auth-ldap.conf.ext as !include auth-ldap.conf.ext
2. vi /etc/dovecot/conf.d/auth-ldap.conf.ext
auth_username_format = %Lu
passdb ldap {
args = /etc/dovecot/dovecot-ldap.conf.ext
}
userdb static {
args = uid=501 gid=501 home=/home/vmail/%u
}
3. vi /etc/dovecot/dovecot-ldap.conf.ext
hosts = ad_server_ip
base = dc=test,dc=com,dc=tw
ldap_version = 3
auth_bind = yes
ldap_version = 3
auth_bind_userdn = test%u
pass_filter = (&(objectclass=person)(uid=%u))
ps. uid and gid must the same with postfix and directory in linux server
ex: create one user “vmail”
user id is 501 , gid is 501
4. postfix’s main.cf
virtual_mailbox_domains = $mydomain
virtual_mailbox_base = /home/vmail/
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf
virtual_uid_maps = static:501
virtual_gid_maps = static:501
virtual_alias_maps = hash:/etc/aliases,ldap:/etc/postfix/ldap-aliases-inner.cf
#smtp auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
#additional param
message_size_limit = 40960000
smtpd_helo_required = yes
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
bounce_queue_lifetime = 1d
maximal_queue_lifetime = 1d
data_directory = /var/db/postfix
header_checks = regexp:/etc/postfix/header_checks
smtp_host_lookup = native, dns
…
5. vi /etc/postfix/ldap-users.cf
server_host = ad_server_ip
search_base = dc=test,dc=com,dc=tw
version = 3
query_filter = (&(objectclass=*)(mail=%s))
result_attribute = samaccountname #Account from DC
result_format = %s/Maildir/
bind = yes
bind_dn = cn=ldap,cn=Users,dc=test,dc=com,dc=tw
bind_pw = ldappassword
6. vi //etc/sysconfig/saslauthd
# Directory in which to place saslauthd’s listening socket, pid file, and so
# on. This directory must already exist.
SOCKETDIR=/var/run/saslauthd
# Mechanism to use when checking passwords. Run “saslauthd -v” to get a list
# of which mechanism your installation was compiled with the ablity to use.
#MECH=pam
MECH=ldap
# Additional flags to pass to saslauthd on the command line. See saslauthd(8)
# for the list of accepted flags.
FLAGS=”-O /etc/postfix/saslauthd.conf -c -r”
7. vi /etc/postfix/saslauthd.conf
ldap_servers: ldap://ad_server_ip:389/
ldap_search_base: dc=test,dc=com,dc=tw
ldap_auth_method: bind
ldap_version: 3
ldap_bind_dn: cn=ldap,cn=Users,dc=test,dc=com,dc=tw
ldap_bind_pw: ldappassword
ldap_filter: (sAMAccountName=%u)
8. vi /etc/postfix/ldap-aliases-inner.cf
server_host = ad_server_ip
search_base = dc=test,dc=com,dc=tw
#scope = sub
query_filter = (memberOf:1.2.840.113556.1.4.1941:=CN=%s,OU=aliases_inner,DC=test,DC=com,DC=tw)
result_attribute = mail
result_format = %s
version = 3
bind = yes
bind_dn = cn=ldap,cn=Users,dc=test,dc=com,dc=tw
bind_pw = ldappassword