sudo: sorry, you must have a tty to run sudo
把以下注解掉就可以了(讓sudo可以不用tty, 在背景跑):
Defaults requiretty
但是為什麼Debian6不會有這個問題
badblocks -vs /dev/sdb
badblocks -nvs /dev/sdb
smartctl --attributes /dev/sdb
dd if=/dev/sdb of=sdb.img
apt-get install munin
apt-get install munin munin-node
/etc/init.d/munin-node restart
/etc/munin/apache.conf
setxbmap dvorak
setxbmap us
(keyboard-translate ?\C-x ?\C-u)
(keyboard-translate ?\C-u ?\C-x)
cmake_minimum_required (VERSION 2.6)
# 計劃名稱
project (XXX)
# 把原始碼都設成變數MY_SRCS
set (MY_SRCS foo.c bar.c...)
# include資料夾
include_directories (${XXX_SOURCE_DIR}/inc)
# 編譯C的參數
set (CMAKE_C_FLAGS "-O2 -g -W...")
# 設定執行檔
add_executable (runxxx ${MY_SRCS} )
# 加入libm
find_library(M_LIB m)
target_link_libraries(mpegdec ${M_LIB})
Resolution in pixels
Color depth | 640x480 800x600 1024x768 1280x1024
256 (8bit)| 769 771 773 775
32000 (15bit)| 784 787 790 793
65000 (16bit)| 785 788 791 794
16.7 Mill.(24bit)| 786 789 792 795
sudo apt-get install autoconf改幾個和BMP有關的檔(不然configure不過)
sudo apt-get install automake
sudo apt-get install libtool
autoreconf -vif參考:
./configure --with-mp4v2
make
sudo make install