ubuntu 18 신규 설치
1> root 계정 활성화
osboxes@osboxes:~$ sudo passwd root
[sudo] password for osboxes:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
osboxes@osboxes:~$
2> sudo 계정 생성
osboxes@osboxes:~$ adduser firstpw
Adding user `firstpw' ...
Adding new group `firstpw' (1002) ...
Adding new user `firstpw' (1002) with group `firstpw' ...
Creating home directory `/home/firstpw' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for firstpw
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
root@osboxes:~# usermod -a -G sudo firstpw
root@osboxes:~#
3> ssh 서버 설정 및 root 접속 허용
root@osboxes:~# vi /etc/ssh/sshd_config
root@osboxes:~# xifconfig enp0s3 down
root@osboxes:~# xifconfig enp0s3 up
root@osboxes:~#
/etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
4> 고정 IP 설정 - Bridge Mode
root@osboxes:~# vi /etc/netplan/01-network-manager-all.yaml
root@osboxes:~# netplan apply
root@osboxes:~#
/etc/netplan/01-network-manager-all.yaml
network:
ethernets:
enp0s3:
addresses: [192.168.88.143/24]
gateway4: 192.168.88.254
nameservers:
addresses: [168.126.63.1,8.8.8.8]
dhcp4: no
eth1:
dhcp4: true
version: 2
5> ifconfig 설치
apt install net-tools -y
'프로...Linux' 카테고리의 다른 글
MySQL 몰아보기 (0) | 2021.06.15 |
---|---|
[Util-Script] mytop (0) | 2019.10.18 |
[Threads] 속성 및 내용 정리 (0) | 2019.09.19 |
[Process] Zombie (0) | 2019.05.28 |
[Perl] 인코딩 변환 (0) | 2019.04.03 |