LAN上の ホスト全てを確認する
sudo nmap -sP -PI 192.168.1.0/24
Ubuntuの日本語のディレクトリ名を英語にする
LANG=C xdg-user-dirs-gtk-update
Ubuntu8.04のVimでrails.vimが頻繁に落ちる
ソースから最新のVimをインストールすると解決した。
sudo apt-get install xorg-dev libgnome2-dev libncurses5-dev
wget ftp://ftp.jp.vim.org/pub/vim/unix/vim-7.2.tar.bz2
./configure --with-features=huge --with-gnome
./configure --enable-gui=gtk2 --with-features=huge --enable-multibyte --enable-xim --enable-rubyinterp --enable-gnome-check --with-x --with-gnome
make
sudo make install
pythonでssh
easy_install paramiko
import ssh
s = ssh.Connection('example.com')
s.put('hello.txt')
s.get('goodbye.txt')
s.execute('du -h --max-depth=0')
s.close()
http://commandline.org.uk/python/2008/may/29/sftp-python-really-simple-ssh/
Mercurialを使う
新規ファイル登録と不在ファイルの自動削除
hg addremove
まとめてコミット
hg commit -A
Ubuntuに画像認識ライブラリOpenCVをインストールする
sudo apt-get install libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev libtiff4-dev
wget http://nchc.dl.sourceforge.net/sourceforge/opencvlibrary/opencv-1.0.0.tar.gz
tar xzfv opencv-1.0.0.tar.gz
cd opencv-1.0.0
./configure
make && sudo make install && sudo ldconfig
sudo apt-get install libmagick++9-dev
gem install objectdetect