리눅스를 인스톨 완료 후에 개발자를 위해 추가적으로 인스톨 해야 하는 것을 정리 ( 우분투 기준 )
셋업 방법은 별도 기록하지 않음 (직접 찾아 보기)
sudo passwd root <- root 의 password를 설정한다
su root <- root 계정으로 들어가 tools 를 인스톨한다.
apt-get update
apt-get upgrade
apt-get -y install openssh-server ssh telnetd telnet
apt-get -y install xinetd tftpd tftp
apt-get -y install vim
apt-get -y install samba samba-common-bin
apt-get -y install nfs-common nfs-kernel-server portmap
apt-get -y install vsftpd
apt-get -y install busybox
apt-get -y install minicom
apt-get -y install bison flex build-essential libncurses5-dev libncursesw5-dev
계정을 추가 한다.
useradd -m test <- 계정을 생성하고 home directory 까지 만든다.
passwd test <- 계정의 password를 설정한다.
sudo nano /etc/sudoers
test ALL=(ALL) NOPASSWD: ALL
tftp root 설정
su root
mkdir -p /tftp
chmod 777 /tftp
ln -s /home/<user>/tftp tftp_<user>
vi /etc/xinetd.d/tftp
service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftp disable = no per_source = 11 cps = 100 2 flags = IPv4 }
/etc/init.d/xinetd restart 해 주고 나니
Error code 2: Access violation
찾은 해결책은 아래와 같습니다. (/etc/inetd.conf를 수정합니다)
저 파일의 내용물중 tftp관련 줄을 #(주석처리) 해 주고
tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot(혹은 원하는 디렉토리..)
또는
tftp dgram udp wait root /usr/sbin/tcpd /usr/sbin/in.tftpd -s /tftp(혹은 원하는 디렉토리.)
라고 하고 다시 xinetd restart 를 합니다.
'OS > Linux' 카테고리의 다른 글
| Linux minicom에서 terminal resize 방법 (2) | 2024.07.11 |
|---|---|
| linux iperf V 2.0.9 (0) | 2017.12.15 |
| perl telnet serialport install 하기 (0) | 2015.11.27 |
| unix 파일<-> dos 파일 전환(VIM) (0) | 2015.04.04 |
| Window VIM 에서 ^M 제거하는 방법 (0) | 2015.03.05 |