byzanz 看起來更好用, 直接輸出成 gif, 可以說是長得放 youtube, 短的就用 gif
reference: https://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast
2017年7月30日 星期日
2017年7月25日 星期二
2017年7月24日 星期一
2017年7月22日 星期六
[RPi] 從外部連回 Pi
如果沒辦法控制外部的 Router 或是 Firewall, 大概有兩種方法, 一個是使用外部的 reverse SSH tunel, 例如這篇介紹的
另外一種就是要使用外部的服務, 例如 dataplicity 但通常需要搭配 ddns 服務
或者直接使用 weaved, 可開啟 SSH 或是 HTTP 等, 使用方法可看官網教學, 還有 dexterindustries 這篇(記得要 connect 以後會發配一個 domain name)
另外一種就是要使用外部的服務, 例如 dataplicity 但通常需要搭配 ddns 服務
或者直接使用 weaved, 可開啟 SSH 或是 HTTP 等, 使用方法可看官網教學, 還有 dexterindustries 這篇(記得要 connect 以後會發配一個 domain name)
[Tips] 使用 DynDNS 連回自己的電腦
1. 先使用 10 minute mail 註冊一個 noip 帳號, 要記得帳號密碼
2. 然後下載原始碼後編譯
$ cd ~
$ wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
$ tar xf noip-duc-linux.tar.gz
$ cd noip-2.1.9-1/
$ sudo make install
接著就會問你問題, 參考如下
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin;fi
if [ ! -d /usr/local/etc ]; then mkdir -p /usr/local/etc;fi
cp noip2 /usr/local/bin/noip2
/usr/local/bin/noip2 -C -c /tmp/no-ip2.conf
Auto configuration for Linux client of no-ip.com.
Multiple network devices have been detected.
Please select the Internet interface from this list.
By typing the number associated with it.
0 eth0
1 eth0
2 wlan0
3 eth1
3
Please enter the login/email string for no-ip.com foo@bar.net
Please enter the password for user 'foo@bar.net' *******
Only one host [foo.ddns.net] is registered to this account.
It will be used.
Please enter an update interval:[30]
Do you wish to run something at successful update?[N] (y/N) y
Please enter the script/program name foo
New configuration file '/tmp/no-ip2.conf' created.
mv /tmp/no-ip2.conf /usr/local/etc/no-ip2.conf
設定檔路徑為 /usr/local/etc/no-ip2.conf
3. 啟動 client, 會重新註冊 IP
sudo /usr/local/bin/noip2
如果沒問題的話, 應該就可以從外部看到 foo.ddns.net 的結果了
reference:
* http://www.darwinbiler.com/dynamic-dns-using-raspberry-pi/
* http://www.awesomeweirdness.com/projects-diy/raspberrypi/setup-noip-client-raspberry-pi/
這篇寫得不錯, 應該會有兩個東西要設定, 另一個是把 DUC 當 service 跑起來
DUC Client 和 No-IP DUC Client service
* http://sizious.com/2017/04/30/how-to-properly-install-no-ip-dynamic-update-client-duc-under-raspbian/
備註; 如果在防火牆後面可以使用 dataplicity 這服務
2. 然後下載原始碼後編譯
$ cd ~
$ wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
$ tar xf noip-duc-linux.tar.gz
$ cd noip-2.1.9-1/
$ sudo make install
接著就會問你問題, 參考如下
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin;fi
if [ ! -d /usr/local/etc ]; then mkdir -p /usr/local/etc;fi
cp noip2 /usr/local/bin/noip2
/usr/local/bin/noip2 -C -c /tmp/no-ip2.conf
Auto configuration for Linux client of no-ip.com.
Multiple network devices have been detected.
Please select the Internet interface from this list.
By typing the number associated with it.
0 eth0
1 eth0
2 wlan0
3 eth1
3
Please enter the login/email string for no-ip.com foo@bar.net
Please enter the password for user 'foo@bar.net' *******
Only one host [foo.ddns.net] is registered to this account.
It will be used.
Please enter an update interval:[30]
Do you wish to run something at successful update?[N] (y/N) y
Please enter the script/program name foo
New configuration file '/tmp/no-ip2.conf' created.
mv /tmp/no-ip2.conf /usr/local/etc/no-ip2.conf
設定檔路徑為 /usr/local/etc/no-ip2.conf
3. 啟動 client, 會重新註冊 IP
sudo /usr/local/bin/noip2
如果沒問題的話, 應該就可以從外部看到 foo.ddns.net 的結果了
reference:
* http://www.darwinbiler.com/dynamic-dns-using-raspberry-pi/
* http://www.awesomeweirdness.com/projects-diy/raspberrypi/setup-noip-client-raspberry-pi/
這篇寫得不錯, 應該會有兩個東西要設定, 另一個是把 DUC 當 service 跑起來
DUC Client 和 No-IP DUC Client service
* http://sizious.com/2017/04/30/how-to-properly-install-no-ip-dynamic-update-client-duc-under-raspbian/
備註; 如果在防火牆後面可以使用 dataplicity 這服務
2017年7月20日 星期四
[RPi] SSH Hangs After Authentication on Raspberry Pi 3
今天遇到怪事, 在 Windows 上用 putty 連線到 Pi 3, 進入到登入畫面後就停住了, 看了這篇照著修改有改善
簡單說, 修改這兩個檔案
/etc/ssh/ssh_config
/etc/ssh/sshd_config
新增一行在檔案最後面, 再重啟 sshd 服務即可
IPQoS 0x00
reference: https://expresshosting.net/ssh-hanging-authentication/
簡單說, 修改這兩個檔案
/etc/ssh/ssh_config
/etc/ssh/sshd_config
新增一行在檔案最後面, 再重啟 sshd 服務即可
IPQoS 0x00
reference: https://expresshosting.net/ssh-hanging-authentication/
訂閱:
文章 (Atom)
