본문 바로가기

전체 글197

ProFTPd에서 홈 생성 설정 CreateHome on dirmode 777 이렇게 하면 권한이 디렉토리가 777이 될 줄 알았는데...계속 700... 이유는 설정이 잘못되었던 것... CreateHome on 777 dirmode 777 2012. 3. 21.
우분투 부팅시 프로그램 자동 실행 리눅스를 부팅할 때 자신이 만든 프로그램이 실행 될 수 있도록 등록하려면 아래와 같이 하면 된다. /etc/rc.local 파일을 열어 마지막 줄에 자신을 프로그램을 등록(백그라운드로 실행될 수 있도록 한다.) $ sudo vim /etc/rc.local ./my_prgram & 2012. 3. 17.
Install NginX with optional module via apt-get Add repository: $ sudo add-apt-repository ppa:nginx/stable Edit /etc/apt/sources.list.d/nginx-stable-lucid.list, add dpkg-src: deb http://ppa.launchpad.net/nginx/stable/ubuntu lucid main deb-src http://ppa.launchpad.net/nginx/stable/ubuntu lucid main $ sudo apt-get update $ sudo apt-get install dpkg-dev $ sudo apt-get build-dep nginx Get sources: $ apt-get source nginx Edit nginx_1.0.13/debian/r.. 2012. 3. 13.
64bit 서버에서 32bit 프로그램 실행하기(우분투) $ 32bit_commad -bash: ./32bit_commad: No such file or directory 우분투 서버 커널을 업데이트하고 위와 같은 메시지가 나온다면??? 64비트 서버에서 32비트 프로그램 실행하면 위와 같은 메시지가 나온다.. 우분투 기준으로 이럴땐 간단하게 아래와 같이 패키지 하나 설치해준다. $ sudo aptitude install ia32-libs 좀 더 자세한 내용은 아래 사이트 참고. http://maketecheasier.com/run-32-bit-apps-in-64-bit-linux/2009/08/10 2012. 3. 9.
How to install PyTables on Ubuntu $ sudo apt-get install libhdf5-serial-dev $ sudo aptitude install python-tables To test the installation, run python or ipython and: >>> import tables >>> tables.test() 2012. 3. 7.
how to make reverse complement of sequence in shell file content format(tab seperate) seq_1 atgagagataac seq_2 tagcgattcaca output file format(fasta type) >seq_1 atgagagataac >seq_1_recom gttatctctcat >seq_2 tagcgattcaca >seq_2_recom tgtgaatcgcta $ cat "sequence file" | while read id seq; do echo -e ">$id\n$seq"; recom_seq=$(echo $seq | rev | tr "atgc" "tacg"); recom_id="$id"_revom; echo -e ">$recom_id\n$recom_seq"; done > outout.fasta ex) $ awk .. 2012. 3. 5.