Computer
-
Clean up old kernel in grub list (Ubuntu)Computer/linux 2011. 1. 28. 00:23
check the current kernel [] uname -a Linux coffee 2.6.32-27-generic #49-Ubuntu SMP ... [] cd boot [] ls vmlinuz-* vmlinuz-2.6.32-26-generic [] apt-get remove linux-image-2.6.32-26-generic I didn't try to run apt-get autoremove, but I don't know it works or not
-
Using parted, add a new 2TiB HDDComputer/linux 2011. 1. 26. 02:14
stupid, RHEL..... [] /sbin/parted /dev/sdb GNU Parted 1.8.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) help check NUMBER do a simple check on the file system cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER copy file system to another partition help [COMMAND] prints general help, or help on COMMAND mklabel,mktable LABEL-TYPE create a new disklabel (partition tab..
-
ssh connection without typing passwordComputer/linux 2011. 1. 19. 14:29
Generate Key... # 1) [A] ssh-keygen -t dsa -b 1024 -f $HOME/ssh-key # 2) [A] scp ssh-key.pub B:~/.ssh/ # 3) [B] cat B:~/.ssh/ssh-key.pub >> $HOME/.ssh/authorized_keys [B] chmod 700 $HOME/.ssh/authorized_keys # 4) [B] rm ssh-key.pub # 5) [A] alias B='ssh -i ~/.ssh/ssh-key -Y -C user@B' Make config ... [A] emacs .ssh/config Host * ForwardX11 yes ForwardAgent yes VisualHostKey yes PermitLocalComman..
-
Error read: Connection reset by peer when sshfs is using.Computer/linux 2010. 12. 21. 00:16
sshfs -o nonempty user@aaa: /home/user/links/ check the following line (or similar) exists in /etc/ssh/sshd_config of aaa Subsystem sftp /usr/libexec/openssh/sftp-server sometime, change the path of sftp-server or install some..., and restart sshd server.
-
FAT32 format in LinuxComputer/linux 2010. 10. 31. 12:54
Before the format, using fdisk must do create new partitions for ext4 and fat32 mkfs.vfat -n ks.vfat -F 32 /dev/sdh2 mkfs.vfat 3.0.1 (23 Nov 2008) mkfs.ext4dev -L ks.ext4 -m 0 /dev/sdh1 mke2fs 1.41.3 (12-Oct-2008) Filesystem label=ks.ext4 OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 424320 inodes, 1694849 blocks 0 blocks (0.00%) reserved for the super user First data block=0..
-
strtok을 사용하지 말자.Computer/linux 2010. 8. 24. 14:05
취미 생활로 혼자 만들고 있는 조그마한 성경 구절 찾아서 캔버스에 비출수 있는 프로그램 코딩중. 이상한 버그를 발견했는데... 1:5 절을 입력하면, 1) prototype query에선 1:5절이 출력되는데 2) 바로 연이어 new query를 실행하면 15 가 출력이 되었다. 재미있는 현상이라 무시할 수 가 없어서 라인 별로 따라가 보니.. strtok를 사용한 함수 이후에 delimiters 로 정의내린 것을 제외한 나머지가 원본의 문서를 바꾸는 것을 발견했다. 뭐 그래서 1) 구글링 with strtok modify original string https://www.securecoding.cert.org/confluence/display/cplusplus/STR06-CPP.+Do+not+assum..
-
awk with a running average and sample deviationComputer/linux 2010. 8. 18. 01:02
# License : http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en # Author: Jeong Han Lee # email : jeonghan 'dot' lee 'at' gmail 'dot' com # Date: Thursday, August 19 10:39:49 EDT 2010 # Version: 0.0.1 # # This script can calculate a running mean, a sample deviation # , and a standard deviation from xterm output. # # History: # 0.0.1 Thursday, August 19 10:41:44 EDT 2010 # # # How to use......