[[PageOutline]] = note = * http://www.tecmint.com/11-lesser-known-useful-linux-commands/ * http://www.tecmint.com/10-lesser-known-linux-commands-part-2/ = 筆記 = * 將 Shell Script 轉為 Binary 執行檔: * http://www.datsi.fi.upm.es/~frosal/sources/shc.html * 記憶體釋放: * 指令: {{{ free -m sync echo 3 > /proc/sys/vm/drop_caches }}} * Reference: * http://xerspace.wordpress.com/2012/01/01/clean-linux-ubuntu-ram-usage/ * http://blog.linux.org.tw/~jserv/archives/002039.html * Number of created screens does not match number of detected devices. Configuration failed. * /etc/X11/xorg.conf {{{ # 調整解析度 Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" DefaultDepth 24 SubSection "Display" Depth 24 Modes "800x600" "1440x900" "1360x768" "1280x1024" "1280x960" "1152x864" "1024x768" EndSubSection EndSection }}} * 設定 Terminal 顏色: * vim ~/.bashrc」 * 搜尋「#force_color_prompt=yes」這一行字,找到之後將這一行開頭的 # 字號刪除。 * 重新登入 * Linux BStandard Base, LSB:規範如檔案路徑。 * http://en.wikipedia.org/wiki/Linux_Standard_Base * 檔案路徑: * /etc:設定檔案 * 如網路設定:Debian: /etc/netwrok,CentOS: /etc/sysconf。 * /var * /var/run:放置判斷用的 pid。 * /var/spool:放需要佇列的東西。 * 影片加速、合併: {{{ 至於快轉的方式,我在linux上是用mencoder來做。 以下這個指令大約快轉1000倍 mencoder -ovc lavc -nosound -fps 30000 -ofps 30000/1001 INPUT.MPG -o OUTPUT.MPG; 因為拍攝後,dv可能把影片分段存檔,所以在個別快轉後,再一起合併成一個檔。 mencoder -oac copy -ovc copy -idx -o ALL.MPG 1.MPG 2.MPG 3.MPG }}} = 相關資料 = * [wiki:wade/linux/bash] * [wiki:wade/linux/grub] * [wiki:wade/linux/kill] 刪除 process * [wiki:wade/linux/rpcgen] * [wiki:wade/linux/simpleDirectMediaLayer] 底層多媒體函式庫 * [wiki:wade/linux/screen] 指令:terminal 視窗管理員。 * [wiki:wade/linux/USB2Serial] USB 轉 RS232 相關。 * [wiki:wade/linux/RS232] linux RS232 測試相關。 * [wiki:wade/linux/daemon] 背景程式相關 * [wiki:wade/linux/git] git 版本控制器 * [wiki:wade/linux/netcat] netcat 提供網路 TCP 與 UPD 服務。 * [wiki:wade/linux/nohup] no-hup,hup 指的是 SIGHUP(hangup)信號,nohup 就是忽略SIGHUP這個信號。 = distribution = * [wiki:wade/linux/debian] * [wiki:wade/linux/ubuntu] = 套件 = * [wiki:wade/linux/font] 字型相關: = 書單 = * [http://www.books.com.tw/exep/prod/booksfile.php?item=F010157722 Embedded Linux: Hardware, Software, and Interfacing] * [http://tlsj.tenlong.com.tw/WebModule/BookSearch/bookSearchViewAction.do?isbn=9789861815497&sid=47202 Linux 程式設計教學手冊 (Beginning Linux Programming, 4/e) ] * [http://tlsj.tenlong.com.tw/WebModule/BookSearch/bookSearchViewAction.do?isbn=0471776130&sid=35922 Professional Linux Programming] * [http://tlsj.tenlong.com.tw/WebModule/BookSearch/bookSearchViewAction.do?isbn=9789866348174&sid=53683 Linux 驅動程式開發實戰 (Essential Linux Device Drivers) ] * [http://tlsj.tenlong.com.tw/WebModule/BookSearch/bookSearchViewAction.do?isbn=9867794737&sid=30777 Linux 驅動程式 (Linux Device Drivers, 3/e) ] = Reference = * 命令: * http://www.pcnet.idv.tw/pcnet/linux/linux_command.htm