우선, 어떤 디바이스가 USB 스틱인지를 찾아야 한다. 잘 못하면 다른 HDD 의 내용까지 날릴 수 있기 때문이다. USB 스틱을 PC/서버에 연결한 후에 dmesg 명령으로 어느 디바이스가 USB 스틱인지를 확인한다.

[ 69.902747] scsi 4:0:0:0: Direct-Access VBTM Store 'n' Go 5.00 PQ: 0 ANSI: 0 CCS
[ 69.903314] sd 4:0:0:0: Attached scsi generic sg3 type 0
[ 70.867573] sd 4:0:0:0: [sdy] 2013184 512-byte logical blocks: (1.03 GB/983 MiB)
[ 70.868085] sd 4:0:0:0: [sdy] Write Protect is off

위의 예에서는 sdy (/dev/sdy)가 USB 스틱이다. 다시 한번, 해당 디바이스가 USB 스틱인지 확인하기 바란다!

Debian 미러 사이트에서 boot.img.gz 과 netinstall iso 이미지를 다운로드 받는다.

# wget ftp://ftp.kr.debian.org/debian/dists/squeeze/main/installer-i386/current/images/hd-media/boot.img.gz
# wget ftp://ftp.kr.debian.org/debian-cd/6.0.3/i386/iso-cd/debian-6.0.3-i386-netinst.iso

boot.img.gz을 USB 스틱에 기록한다.

# zcat boot.img.gz > /dev/sdy

USB 스틱을 마운트하고 netinst.iso 이미지를 USB 스틱의 root 디렉토리에 복사한다.

# mkdir /mnt/usbstick
# mount /dev/sdy /mnt/usbstick
# cp debian-*-netinst.iso /mnt/usbstick
# umount /mnt/usbstick

이제 USB 스틱은 부팅이 되며, Debian netinstaller 를 시작할 수 있을 것이다.

'ETC > IT' 카테고리의 다른 글

IE9 에서 Flash 배경이 까맣게 나오는 현상 해결하기  (0) 2011.11.02
.tmux.conf  (0) 2011.11.01
FreeBSD 8.2 설치후 작업  (0) 2011.07.09
(Freeware for Business) 포토스케이프 : 국산 이미지 편집기  (0) 2011.07.06
SSHD 보안  (0) 2011.07.04

FreeBSD를 설치한 후에 작업을 편하게 하게 위해서, 몇가지 필요한 패키지를 설치하고, 설정할 것들이 있다. 이렇게만 해 놓으면 리눅스와 비교를 해도 어떤 차이가 있는지 제대로 알아차리지 못할 것이다. ^^

  1. sshd 부팅시 자동시작 설정 : /etc/rc.conf
    sshd_enable="yes"
    
  2. sshd_config 수정 / 재시작 : root로 로그인하는 것은 보안상 문제가 있지만, 편의를 위히 일단 이렇게 해놓자.
    # vi /etc/ssh/sshd_config
    PasswordAuthentication yes
    PermitRootLogin yes
    # /etc/rc.d/sshd restart
    
    이제, ssh 로 원격 접속한다.
  3. root, toor 계정쉘을 bash로 변경
    # pkg_add -r bash; rehash; chsh -s bash root; chsh -s bash toor
    
    쉘을 바꾸었으니, 로그아웃하고 다시 로그인하자.
  4. /etc/profile 에 PACKAGESITE 설정한다.
    export PACKAGESITE="ftp://ftp8.kr.freebsd.org/FreeBSD/ports/i386/packages-8.2-release/Latest/"
    # export PACKAGESITE="http://ftp2.kr.freebsd.org/FreeBSD/ports/i386/packages-8.2-release/Latest/"
    # export PACKAGESITE="http://mirror.yongbok.net/FreeBSD/ports/i386/packages-8.2-release/Latest/"
    # export PACKAGESITE="http://ftp.kaist.ac.kr/FreeBSD/ports/i386/packages-8.2-release/Latest/"
    # export PACKAGESITE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.2-release/Latest/"
    
    profile 적용
    # source /etc/profile
    
  5. Linux Emulation 적용 (htop 에서 Linux 의 /proc 을 이용한다)
    # echo 'linux_enable="YES"' >> /etc/rc.conf
    # kldload linux; pkg_add -r linux_base-f10
    # echo 'linproc /compat/linux/proc linprocfs rw 0 0' >> /etc/fstab; mount linproc
    
  6. 필요한 패키지 설치
    # pkg_add -r tmux vim-lite ntp gnuls htop git curl
    
  7. ntpd 적용/실행
    # echo 'ntpd_enable="yes"' >> /etc/rc.conf
    # /etc/rc.d/ntpd start
    
  8. gnuls alias 적용
    # echo 'alias ls="gnuls --color=always"' >> /etc/profile; source /etc/profile
    
  9. vim 적용
    # echo 'alias vi="vim"' >> /etc/profile; source /etc/profile
    
  10. 언어 설정
    # echo 'export LANG=ko_KR.UTF-8' >> /etc/profile; source /etc/profile
    

'ETC > IT' 카테고리의 다른 글

.tmux.conf  (0) 2011.11.01
USB 스틱으로 Debian 설치하기  (0) 2011.10.12
(Freeware for Business) 포토스케이프 : 국산 이미지 편집기  (0) 2011.07.06
SSHD 보안  (0) 2011.07.04
APF (Advanced Policy Firewall)  (0) 2011.06.23

이미지 편집을 위해서 보통 포토샵, 라이트룸 등을 많이 사용한다. 이는 상용 제품인데다가 덩치도 커서 사양이 낮은 PC에서는 운용하기 쉽지 않다. 대부분은 이미지 편집 프로그램을 사진 보정을 위해서 이용하며, 보정을 위한 기능도 간단하고 빠르게 몇가지만 사용하게 된다. RAW 이미지를 반드시 다루어야 하는 상황이 아니라면, 포토스케이프가 그 대안이 될 수 있을 것이다. 이것도 역시 모든 사람이 자유롭게 사용할 수 있는 프리웨어이며, 국산이다. 필자도 이 프로그램을 주요 이미지 편집프로그램으로 사용하고 있다. ^^

아래와 같은 기능들이 있으며, 상당히 많은 기능을 제공하고 있다. 이정도의 프로그램이면, 엄청난 시간과 노력이 들어갔을 텐데, 어떻게 이렇게 무료 봉사를 할 수 있는지 궁금하지만, 많이 사용해주고 좋아해주면 보답하는 것이 될 것이라 생각한다. ^^;

  • 사진뷰어: 폴더의 사진을 한눈에 보기, 슬라이드쇼
  • 사진편집: 크기/밝기/색상 조절, 역광보정, 액자, 말풍선, 모자이크, 글쓰기, 그리기, 자르기, 필터, 적목보정, 뽀샤시, 복제도장툴
  • 일괄편집: 여러 장을 한번에 변환하는 일괄처리
  • 페이지: 여러장을 템플릿 한장으로 만들기
  • 이어붙이기: 아래로, 옆으로, 바둑판으로 여러장을 한장으로 이어 붙이기
  • GIF애니메이션: 움직이는 GIF 사진으로 만들기
  • 인쇄: 증명사진,명함사진,여권사진이나 썸네일 인쇄
  • 사진분할: 한장의 사진을 여러장으로 분할
  • 화면캡쳐: 화면을 캡쳐해서 편집,저장하는 기능
  • 색상검출: 사진이나 웹상의 화면을 확대해서 색상을 알아내는 색상검출 기능
  • 이름변환: 사진이름 일괄변환
  • RAW변환: RAW 파일을 JPG 파일로 일괄변환
  • 종이: 줄노트,모눈종이,오선지,달력 출력
  • 얼굴검색: 인터넷에서 동일하거나 비슷한 얼굴을 검색
  • 사진북마크: 사진전문 즐겨찾기

사이트 주소는 http://www.photoscape.co.kr 이며, 마음껏 다운로드 받아서 설치하면 된다.

'ETC > IT' 카테고리의 다른 글

USB 스틱으로 Debian 설치하기  (0) 2011.10.12
FreeBSD 8.2 설치후 작업  (0) 2011.07.09
SSHD 보안  (0) 2011.07.04
APF (Advanced Policy Firewall)  (0) 2011.06.23
perl 스크립트를 통한 해킹 사고  (0) 2011.06.23

SSHD를 어쩔 수 없이 외부에 공개를 해야하는 경우, 반드시 보안처리를 해야한다. 예상하는 것보다 상당히 많은 해킹시도를 하기 때문이다. 최소한 아래 2가지 처리는 해주면 그나마 좀 낫지 않을까? 그러나, 가능하다면, SSHD 포트를 열어주지 말고, VPN을 이용하기 바란다.

root 로그인 막기
# vi /etc/ssh/sshd_config
PermitRootLogin no
# /etc/init.d/sshd restart
DenyHosts
  • Official Site
  • Install (CentOS)
    # yum install denyhosts
    
  • 동작 확인 : 어떤 IP를 통해서 로그인 실패하였는지 확인, 사실, denyhosts는 /var/log/secure 로그를 확인하여 처리하지만, lastb 로 확인하여도 그다지 상관없을 것이다.
    # lastb -i
    root     ssh:notty    123.140.148.160  Mon Jul  4 06:49 - 06:49  (00:00)
    root     ssh:notty    123.140.148.160  Mon Jul  4 06:49 - 06:49  (00:00)
    root     ssh:notty    123.140.148.160  Mon Jul  4 06:49 - 06:49  (00:00)
    root     ssh:notty    123.140.148.160  Mon Jul  4 06:49 - 06:49  (00:00)
    root     ssh:notty    123.140.148.160  Mon Jul  4 06:49 - 06:49  (00:00)
    root     ssh:notty    178.18.19.114    Sun Jul  3 14:17 - 14:17  (00:00)
    root     ssh:notty    178.18.19.114    Sun Jul  3 14:17 - 14:17  (00:00)
    root     ssh:notty    178.18.19.114    Sun Jul  3 14:17 - 14:17  (00:00)
    root     ssh:notty    178.18.19.114    Sun Jul  3 14:16 - 14:16  (00:00)
    root     ssh:notty    178.18.19.114    Sun Jul  3 14:16 - 14:16  (00:00)
    root     ssh:notty    178.18.19.114    Sun Jul  3 14:16 - 14:16  (00:00)
    root     ssh:notty    211.214.218.118  Sun Jul  3 10:00 - 10:00  (00:00)
    root     ssh:notty    211.214.218.118  Sun Jul  3 10:00 - 10:00  (00:00)
    root     ssh:notty    193.253.228.193  Sun Jul  3 06:05 - 06:05  (00:00)
    root     ssh:notty    193.253.228.193  Sun Jul  3 06:04 - 06:04  (00:00)
    wcostiga ssh:notty    195.70.27.20     Sun Jul  3 01:14 - 01:14  (00:00)
    wcostiga ssh:notty    195.70.27.20     Sun Jul  3 01:14 - 01:14  (00:00)
    root     ssh:notty    221.10.252.53    Sun Jul  3 01:14 - 01:14  (00:00)
    jroyds   ssh:notty    195.70.27.20     Sun Jul  3 01:14 - 01:14  (00:00)
    jroyds   ssh:notty    195.70.27.20     Sun Jul  3 01:14 - 01:14  (00:00)
    root     ssh:notty    221.10.252.53    Sun Jul  3 01:14 - 01:14  (00:00)
    cdimasci ssh:notty    195.70.27.20     Sun Jul  3 01:14 - 01:14  (00:00)
    cdimasci ssh:notty    195.70.27.20     Sun Jul  3 01:14 - 01:14  (00:00)
    root     ssh:notty    221.10.252.53    Sun Jul  3 01:14 - 01:14  (00:00)
    goodrich ssh:notty    195.70.27.20     Sun Jul  3 01:14 - 01:14  (00:00)
    root     ssh:notty    221.10.252.53    Sun Jul  3 01:14 - 01:14  (00:00)
    goodrich ssh:notty    195.70.27.20     Sun Jul  3 01:14 - 01:14  (00:00)
    root     ssh:notty    221.10.252.53    Sun Jul  3 01:14 - 01:14  (00:00)
    
    btmp begins Sun Jul  3 01:14:34 2011
    
    차단 등록된 IP 확인
    # cat /etc/hosts.deny
    #
    # hosts.deny    This file describes the names of the hosts which are
    #               *not* allowed to use the local INET services, as decided
    #               by the '/usr/sbin/tcpd' server.
    #
    # The portmap line is redundant, but it is left to remind you that
    # the new secure portmap uses hosts.deny and hosts.allow.  In particular
    # you should know that NFS uses portmap!
    
    
    sshd: 221.10.252.53
    sshd: 195.70.27.20
    sshd: 193.253.228.193
    sshd: 211.214.218.118
    sshd: 178.18.19.114
    sshd: 123.140.148.160
    

+ Recent posts