dmesg 查看目前系統訊息
因訊息都很多....
可以透過 grep 去針對要的訊息列表
dmesg | grep usb
2018年2月24日 星期六
2017年11月11日 星期六
2017年11月3日 星期五
2017年10月14日 星期六
raspbian 設定固定IP
sudo vim /etc/network/interfaces 編輯網路設定
auto eth0
iface eth0 inet static
address 192.168.2.8
netmask 255.255.255.0
gateway 192.168.2.254
尤其 static 表示 靜態 IP
sudo /etc/init.d/networking restart 重新啟動網路
也可以在視窗 >右上方網路圖示
2017年10月8日 星期日
raspbian 查看kernel版本與更新
uname -a
kernel版本說明
自從 Raspbian 從 Wheezy 升級到 Jessie
幾個改變的地方:
1. 預設開機進入桌面環境,原本為純文字模式。
2. Raspbian 預設安裝的 GUI 程式使用 GTK+3 開發,原本為 GTK+2。
3. 預設安裝 LibreOffice 辦公室軟體和 Claws Mail 電子郵件軟體。
4. 預設安裝 BlueJ 的 Java 開發環境和 Greenfoot 的 Java 程式設計教學軟體。
5. 新增 raspi-config 的視窗設定工具。
6. 新增小工具,可安全移除 USB 儲存裝置(如隨身碟)。
7. 可以用一般使用者權限存取 GPIO,原本需要使用 sudo 提昇權限。
8. 預設安裝 scrot,可以使用 Print screen 快捷鍵抓取螢幕畫面。
升級方法:
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=121880
kernel版本說明
自從 Raspbian 從 Wheezy 升級到 Jessie
幾個改變的地方:
1. 預設開機進入桌面環境,原本為純文字模式。
2. Raspbian 預設安裝的 GUI 程式使用 GTK+3 開發,原本為 GTK+2。
3. 預設安裝 LibreOffice 辦公室軟體和 Claws Mail 電子郵件軟體。
4. 預設安裝 BlueJ 的 Java 開發環境和 Greenfoot 的 Java 程式設計教學軟體。
5. 新增 raspi-config 的視窗設定工具。
6. 新增小工具,可安全移除 USB 儲存裝置(如隨身碟)。
7. 可以用一般使用者權限存取 GPIO,原本需要使用 sudo 提昇權限。
8. 預設安裝 scrot,可以使用 Print screen 快捷鍵抓取螢幕畫面。
升級方法:
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=121880
2017年9月30日 星期六
raspbian 的 kernel img
位於 /boot
一般 內定啟動是 kernel.img
而緊急kernel 是 kernel_emergency.img(kernel7.img)
若因特殊狀況, 要使用 緊急kernel
那就到 config.txt (在 /boot)
增加一行: kernel=kerel_emergency.img(kernel7.img)
一般 內定啟動是 kernel.img
而緊急kernel 是 kernel_emergency.img(kernel7.img)
若因特殊狀況, 要使用 緊急kernel
那就到 config.txt (在 /boot)
增加一行: kernel=kerel_emergency.img(kernel7.img)
2017年9月23日 星期六
raspbian 安裝 moc音樂播放
sudo apt-get install moc
mocp
執行於後台, 跟其他工作無關
-s: 停止播放
-G:暫停播放或繼續撥放
-f:播放下一首歌
-r:播放上一首歌
-i:顯示現在歌曲訊息
-x: 停止播放跳出
man mocp
------------------------------------------------------------
Music On Console (version 2.5.0, revision 2668)
Usage:
mocp [OPTIONS]... [FILE]...
-V --version Print program version and exit
-h --help Print usage and exit
-D --debug Turn on logging to a file
-S --server Only run the server
-F --foreground Run server in foreground and log to stdout
-R --sound-driver LIST Use the first valid sound driver from LIST
(sndio, oss, alsa, jack, null)
-m --music-dir Start in MusicDir
-a --append Append the files/directories/playlists passed in
the command line to playlist and exit
-q --enqueue Add the files given on command line to the queue
-c --clear Clear the playlist and exit
-p --play Start playing from the first item on the playlist
-l --playit Play files given on the command line without modifying
the playlist
-s --stop Stop playing
-f --next Play the next song
-r --previous Play the previous song
-x --exit Shutdown the server
-T --theme theme Use the selected theme file (read from ~/.moc/themes
if the path is not absolute)
-C --config FILE Use the specified config file instead of the default
-O --set-option NAME=VALUE
Override the configuration option NAME with VALUE
-M --moc-dir DIR Use the specified MOC directory instead of the default
-P --pause Pause
-U --unpause Unpause
-G --toggle-pause Toggle between playing and paused
-v --volume (+/-)LEVEL Adjust the PCM volume
-y --sync Synchronize the playlist with other clients
-n --nosync Don't synchronize the playlist with other clients
-A --ascii Use ASCII characters to draw lines
-i --info Print information about the currently playing file
-Q --format FORMAT Print formatted information about the currently
playing file
-e --recursively Alias for -a
-k --seek N Seek by N seconds (can be negative)
-j --jump N{%,s} Jump to some position of the current track
-o --on <controls> Turn on a control (shuffle, autonext, repeat)
-u --off <controls> Turn off a control (shuffle, autonext, repeat)
-t --toggle <controls> Toggle a control (shuffle, autonext, repeat)
-----------------------------------------------------------------------
mocp
執行於後台, 跟其他工作無關
-s: 停止播放
-G:暫停播放或繼續撥放
-f:播放下一首歌
-r:播放上一首歌
-i:顯示現在歌曲訊息
-x: 停止播放跳出
man mocp
------------------------------------------------------------
Music On Console (version 2.5.0, revision 2668)
Usage:
mocp [OPTIONS]... [FILE]...
-V --version Print program version and exit
-h --help Print usage and exit
-D --debug Turn on logging to a file
-S --server Only run the server
-F --foreground Run server in foreground and log to stdout
-R --sound-driver LIST Use the first valid sound driver from LIST
(sndio, oss, alsa, jack, null)
-m --music-dir Start in MusicDir
-a --append Append the files/directories/playlists passed in
the command line to playlist and exit
-q --enqueue Add the files given on command line to the queue
-c --clear Clear the playlist and exit
-p --play Start playing from the first item on the playlist
-l --playit Play files given on the command line without modifying
the playlist
-s --stop Stop playing
-f --next Play the next song
-r --previous Play the previous song
-x --exit Shutdown the server
-T --theme theme Use the selected theme file (read from ~/.moc/themes
if the path is not absolute)
-C --config FILE Use the specified config file instead of the default
-O --set-option NAME=VALUE
Override the configuration option NAME with VALUE
-M --moc-dir DIR Use the specified MOC directory instead of the default
-P --pause Pause
-U --unpause Unpause
-G --toggle-pause Toggle between playing and paused
-v --volume (+/-)LEVEL Adjust the PCM volume
-y --sync Synchronize the playlist with other clients
-n --nosync Don't synchronize the playlist with other clients
-A --ascii Use ASCII characters to draw lines
-i --info Print information about the currently playing file
-Q --format FORMAT Print formatted information about the currently
playing file
-e --recursively Alias for -a
-k --seek N Seek by N seconds (can be negative)
-j --jump N{%,s} Jump to some position of the current track
-o --on <controls> Turn on a control (shuffle, autonext, repeat)
-u --off <controls> Turn off a control (shuffle, autonext, repeat)
-t --toggle <controls> Toggle a control (shuffle, autonext, repeat)
-----------------------------------------------------------------------
訂閱:
文章 (Atom)






