2019年5月30日 星期四

vino-server (vnc-server) for xubuntu (xfce4 ubuntu)

感謝這篇重要文章
ubuntu 18.04 開始因為拿掉 vino-preferences 整合到 gnome 控制臺裡的關係, 桌面環境如果用的不是 gnome 等於就無法設定, 作者說有兩種方法, 一是裝 gnome-control-center, 但這個套件太多看了就不想裝了, 我也沒有試這條路, 我試的是使用 gsettings 設定.

將以下的內容存成一個 .sh 檔案 chmod a+x 後執行它.
唯須特別注意的是 password 必需 8 碼以上, 否則無效

#!/bin/bash
#
# Display all the preferences
#
gsettings list-recursively org.gnome.Vino
#
# [x] Allow other users to control your desktop
#     NOTE: Reverse Boolean
#
gsettings set org.gnome.Vino view-only false
#
# [ ] You must confirm each access to this machine
#
gsettings set org.gnome.Vino prompt-enabled false
#
# [ ] Require the user to enter this password
#
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.Vino authentication-methods "['none']"
gsettings set org.gnome.Vino vnc-password keyring
#
# [x] Require the user to enter this password
#
# Step 1. Ask for password (NOTE: Only tested with `bash` and `zsh`)
echo -n "VNC Password: " && read -s password < /dev/tty && echo ""
# Step 2. Set the preferences
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino vnc-password "$(echo $password | base64)"
# Step 3. Clear the `$password` variable
unset password
#
# [ ] Automatically configure UPnP router to open and forward ports
#
gsettings set org.gnome.Vino use-upnp false
#
# Show Notification Area Icon
#
# ( ) always  // Always
# (o) client  // Only when someone is connected
# ( ) never   // Never
#
gsettings set org.gnome.Vino icon-visibility client

2019年5月5日 星期日

UCC 曼巴

曼巴,就是曼特寧+巴西,一般來講曼特寧偏苦偏醇,巴西偏甜而後韻豐富,這樣的混搭可以有相當好的互補。但是呢... 曼特寧是不是真的苦到醇到很有曼特寧味,巴西是不是甜甚至有一點偏酸,就這幾年品嘗下來的感想是,看是哪裡產的豆子,哪一家烘焙的豆子,會有著很大很大的不一樣。就像有人喝到巴西的豆子會偏酸可能會覺得有點奇怪是一樣的... 好的進入正題。這次要講的是 UCC 的廉價版曼巴,至於碳焙則是有很重的油味我就不想拿了....

全聯特價 89 一包,至於品質嘛,我只能說很對的起它 89 元的價格。它很香,手沖時濃度下降的速度卻很快,平常 4 人份耶加雪菲粉,所用的的水量,這個豆子我只建議用一半,也就是 2 人份粉的水量。因為在這之後澀味會加重很多。至於水溫個人建議 80 度,不要太高,理由也是不要那麼快讓豆子析出澀味。
目前我試到這樣沖出來的效果最好,咖啡湯量少了一半,所以也濃了一倍,不喜歡太濃口味的個人甚至建議加到一倍 (也就是等量) 的水,仍舊好喝。甚至裡面還有點牛奶味....

個人比較懶只有喝黑咖啡,所以都沒有試過裡面加大量的牛奶,可能加牛奶很適合也說不定。