今天遇到怪事, 在 Windows 上用 putty 連線到 Pi 3, 進入到登入畫面後就停住了, 看了這篇照著修改有改善
簡單說, 修改這兩個檔案
/etc/ssh/ssh_config
/etc/ssh/sshd_config
新增一行在檔案最後面, 再重啟 sshd 服務即可
IPQoS 0x00
reference: https://expresshosting.net/ssh-hanging-authentication/
2017年7月20日 星期四
2017年7月18日 星期二
2017年7月17日 星期一
[Tips] 如何從google driver直接下載檔案
2017年7月16日 星期日
[RPi] advmame性能調校
修改 ~/.advance/advmame.rc 裡面 video 使用 SDL 會有明顯改善
device_video sdl
device_video_output fullscreen
256x224/display_mode sdl_256x240
reference: http://www.arcadeinfo.de/archive/index.php/t-2917.html
device_video sdl
device_video_output fullscreen
256x224/display_mode sdl_256x240
reference: http://www.arcadeinfo.de/archive/index.php/t-2917.html
2017年7月15日 星期六
[Tips] 錄桌面 & 影片剪輯軟體 @ Ubuntu
最近想要開始搞錄影, 會需要影片編輯, 還需要錄製桌面
錄桌面用 gtk-recordmydesktop 應該是最容易入門的, 只是還要轉檔
轉檔可以參考 Tsung 這篇:
https://blog.longwin.com.tw/2009/04/linux-record-recordmydesktop-2009/
$ mencoder out.ogv -nosound -ovc lavc -o out.avi
要有聲音的話需要安裝套件
$ sudo apt-get install flac lame
$ mencoder out.ogv -oac mp3lame -ovc lavc -o out.avi
錄桌面用 gtk-recordmydesktop 應該是最容易入門的, 只是還要轉檔
轉檔可以參考 Tsung 這篇:
https://blog.longwin.com.tw/2009/04/linux-record-recordmydesktop-2009/
$ mencoder out.ogv -nosound -ovc lavc -o out.avi
要有聲音的話需要安裝套件
$ sudo apt-get install flac lame
$ mencoder out.ogv -oac mp3lame -ovc lavc -o out.avi
[RPi] Joy Bonnet
今天在測試 Joy Bonnet, 不過好像上鍵壞掉, 只有下鍵可以用, 所以要稍微改一下程式
主要就是在判斷的部份要改成這樣
if (x != 1) and not analog_states[1]:
analog_states[1] = True
handle_button(1001) # send DOWN press
if (x == 1) and analog_states[1]:
analog_states[1] = False
handle_button(1001) # send DOWN release
補一下 RetroPie 的使用
https://gameroomsolutions.com/raspberry-pi-3-retropie-setup-easy-guide/
https://github.com/retropie/retropie-setup/wiki/First-Installation
sudo ~/RetroPie-Setup/retropie_setup.sh
主要就是在判斷的部份要改成這樣
if (x != 1) and not analog_states[1]:
analog_states[1] = True
handle_button(1001) # send DOWN press
if (x == 1) and analog_states[1]:
analog_states[1] = False
handle_button(1001) # send DOWN release
補一下 RetroPie 的使用
https://gameroomsolutions.com/raspberry-pi-3-retropie-setup-easy-guide/
https://github.com/retropie/retropie-setup/wiki/First-Installation
sudo ~/RetroPie-Setup/retropie_setup.sh
2017年7月14日 星期五
[Python] ASCII to Binary
https://stackoverflow.com/questions/18367007/python-how-to-write-to-a-binary-file
https://stackoverflow.com/questions/25168616/writing-binary-data-to-a-file-in-python
https://stackoverflow.com/questions/34687516/how-to-read-binary-files-as-hex-in-python
* https://stackoverflow.com/questions/7396849/convert-binary-to-ascii-and-vice-versa
https://stackoverflow.com/questions/25168616/writing-binary-data-to-a-file-in-python
https://stackoverflow.com/questions/34687516/how-to-read-binary-files-as-hex-in-python
* https://stackoverflow.com/questions/7396849/convert-binary-to-ascii-and-vice-versa
訂閱:
文章 (Atom)
