본문 바로가기

전체 글197

summary of vim fold zf#j creates a fold from the cursor down # lines. zf/string creates a fold from the cursor to string . zj moves the cursor to the next fold. zk moves the cursor to the previous fold. zo opens a fold at the cursor. zO opens all folds at the cursor. zm increases the foldlevel by one. zM closes all open folds. zr decreases the foldlevel by one. zR decreases the foldlevel to zero -- all folds will b.. 2010. 11. 11.
rsync를 이용한 백업 우분투 Rsync 백업방법https://help.ubuntu.com/community/rsync http://ttongfly.net/zbxe/?mid=linux&page=10&document_srl=43334 http://system.neulwon.com/xe/linux_backup/170http://blog.naver.com/psy909/140048666997 http://piki.thoth.kr/?document_srl=987448 2010. 11. 4.
32bit deb package 64bit ubuntu에 설치하기 패키지를 다운로드(예 : package_i386.deb) 임시 디렉토리 생성(예 : tmp) mkdir tmp tmp 디렉토리에 해당 패키지 풀기 dpkg-deb -x package_i386.deb tmp control 파일들을 풀기: dpkg-deb --control package_i386.deb tmp/DEBIAN Architecture parameter를 "i386"에서 "all"로 변경: sed -i "s/i386/all/" tmp/DEBIAN/control deb 파일로 재패키징: dpkg -b tmp package_amd64.deb 패키지 설치 : sudo dpkg -i package_amd64.deb 2010. 11. 2.
MySQL 데이터베이스 dump하면서 압축하기 MySQL 데이터베이스 dump하면서 압축하기 mysqldump -u user-id -p password -Q --lock-tables=false db_name | gzip -c | cat > db_name.sql.gz MySQL 데이터베이스 dump하면서 압축하고 원격서버에 저장하기 mysqldump -u user-id -p password -Q --lock-tables=false db_name | gzip -c | ssh user@host 'cat > /tmp/yourfile.sql.gz' 2010. 10. 15.
apache2+php5에서 메일보내기 postfix 설치후 sendmail_path = /usr/sbin/sendmail -t -i 아직 테스트는 안해봄...될 길.. 2010. 10. 7.
apache2+php5에서 메일보내기 postfix 설치후 sendmail_path = /usr/sbin/sendmail -t -i 아직 테스트는 안해봄...될 길.. 2010. 10. 7.