Linux

Ubuntu OS 초기 설정하기

포드맨 2024. 4. 29. 17:08

(-) Wired Connected   >  Wired Settings  >  IP / GW / DNS  설정

 

$ sudo passwd root

 

$ echo  nameserver  8.8.8.8   >   /etc/resolv.conf



$ sudo   apt   update
$ sudo   apt   install    openssh-server
$ sudo   apt   install    vim
$ sudo   apt   install    curl




$ vi   /etc/ssh/sshd_config
{
         PermitRootLogin   yes 
         GSSAPIAuthentication   no
         UseDNS   no
}


$ service    ssh    restart

 

 

 

 

[우분투 네트워크 설정]

   $  nmtui

 

 

$ vi     /etc/netplan/01-network-manager-all.yaml
---------------------------------------------------------------------------------
# This is the network config written by 'subiquity'
network:
      ethernets:
              ens192:
                      addresses:
                      - 192.168.1.100/24
                      nameservers:
                          addresses: [8.8.8.8, 8.8.4.4]
                      routes:
                         - to: default
                          via: 192.168.1.1
      version: 2
---------------------------------------------------------------------------------

 

$ sudo     netplan    apply