728x90
반응형

Vmware 상에 설치된 우분투 아이피 설정 방법에 대해 알아보겠습니다. 

 

Vmware Newtwork 설정 매뉴에서 NAT 설정을 별도로 해주고 설정한 네트웍 정보를 

vmware 에서 설치된 우분투 네트워크  아이피를 설정해야 

호스트 컴퓨터에서 Vmware 에 설정된 Static IP 로 접속이 가능 합니다. 

 

VMware NAT 설정 

 

Edit -> Virtual Network Editor 매뉴를 선택후 NAT Settings 버튼을 눌러줍니다. 

 

Virtual Network Editor

NAT NetWork IP 정보 셋팅 

3 번 셋팅을 통해  호스트 컴퓨터(노트북) 와 우분투와 접속이 가능해집니다. 

Map Incoming Port 셋팅(포트 포워딩 ) 을 진행 해보겠습니다. 

아래 정보는 ssh 포트 포워딩을  하기위해 설정 하겠습니다. 

호스트 컴퓨터 1022 포트로  연결 시도시 우분투 ssh 22번 포트로  접속을 시도합니다. 

 

 

Ubuntu(우분투) Static IP 설정

이번에는 우분투 네트워크 아이피 설정을 셋하겠습니다. 

vmware 에서 설정한 ip 정보로 설정을 진행 주면 됩니다. 

 

IPV4 항목 항목을 아래와 같은 정보로 설정합니다. 앞서  vmware nat 정보 설정 값과 동일 합니다. 

우분투 IP 설정

설정이 완료 되면 터미널을 열어서  설정한 IP 정보로 잘 셋팅되어 있는지 확인하고 \

포털 사이트 접속이 잘되는지도 확인 합니다. 

 

 

 

호스트 PC (노트북) 포트 포워딩을 통한 우분투 접속 

 

아래 그림은 호스트 컴퓨터 1022 포트로 접속시 vmware 설정한 ip 정보로 포트 포워딩 하는 이해를 돕기 위한 설명입니다. 

 

콘솔 접속 -> 호스트 pc (1022) 포트 포워딩  ->vm ware ip port (22) 접속 

 

접속 성공 확인

 

 

접속 연결 실패시 확인 사항 

VMnet8 사용 상태 확인 

네트워크 연결 -> 고급 네트워크 설정 -> vmware network adapter vmnet8 사용 상태 확인 

윈도우 11 네트워크 연결 상태 확인

우분투 ssh 설치 상태 확인 

설치 및 방화벽 상태를 확인 합니다. 

ssh 설치 및 접속 방법은 https://growupcoding.tistory.com/24 자료를 확인하세요 

728x90
반응형

'06.OS > Linux' 카테고리의 다른 글

[Centos] Telnet 설치  (0) 2022.04.05
[Ubuntu] 우분투 ROOT 접속  (0) 2022.03.31
[CentOS]Host Name 변경  (0) 2022.03.26
[Ubuntu] Vmware Ubuntu20.04 LTS 설치  (0) 2022.03.26
[Shell]trap 을 활용한 리눅스(Signal) 시그널 처리  (0) 2022.03.25
728x90
반응형

호스트명 변경 방법

리눅스 에서 호스트명을 변경하고 확인하는 방법에 대해 알아 보겟습니다. 

1.hosts 파일 호스트 네임 등록

$ vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6


192.168.xx.xx centos7 my.centos7.com

등록된 호스트 명으로 network ping 테스트


[root@minsvr:/root]$ ping centos7
PING centos7 (192.168.17.xx) 56(84) bytes of data.
64 bytes from centos7 (192.168.xx.xx): icmp_seq=1 ttl=64 time=0.055 ms
64 bytes from centos7 (192.168.xx.xx): icmp_seq=2 ttl=64 time=0.051 ms
64 bytes from centos7 (192.168.xx.xx): icmp_seq=3 ttl=64 time=0.056 ms

--- centos7 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.051/0.054/0.056/0.002 ms

 

2. 서버 호스트명 직접 변경

//호스트 네임 직접변경
echo centos7 > /proc/sys/kernel/hostname

[root@centos7:/root]$ cat /proc/sys/kernel/hostname 
centos7

 

3. hostnamectl 을 이용한 호스트명 변경

[root@centos7:/root]$ hostnamectl set-hostname centos7_myserver
[root@centos7_myserver:/root]$ hostname 
centos7_myserver

728x90
반응형

'06.OS > Linux' 카테고리의 다른 글

[Ubuntu] 우분투 ROOT 접속  (0) 2022.03.31
[Ubuntu] Static IP 설정  (0) 2022.03.26
[Ubuntu] Vmware Ubuntu20.04 LTS 설치  (0) 2022.03.26
[Shell]trap 을 활용한 리눅스(Signal) 시그널 처리  (0) 2022.03.25
Ubuntu SSH 접속 방법  (0) 2022.03.20
728x90
반응형

vmware 최신 버전 에서 우분투 설치하는 법에 대해 알아 보겠습니다. 

vmware 16.2.3 버전에서 설치를 진행 해보도록 하겠습니다. 

 

Ubuntu 이미지 다운로드 

설치를 진행하기위해 우분투 를 다운로드 받습니다. 

설치를 진행하게될 버전은 20.04.4 LTS(Long Term Service) 버전입니다. 

https://ubuntu.com/download/desktop

 

Download Ubuntu Desktop | Download | Ubuntu

Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things.

ubuntu.com

 

Vmware Virtual Machine 생성 

우분투 설치를 위해 Vmware 에 가상 머신을 생성 합니다. 

 

 

우분투를 설치 사양을 설정 해 줍니다. 

 

네트워크 Type 을 지정해줍니다. 

 

Disk 생성 방식을 지정해 줍니다. 

 

Disk size 를 설정해 줍니다.  제 노트북은 여유공간이 80G 정도 남아 있어서 40G 정도로 설정 하겠습니다. 

 

Vmware 설정이 모두 완료 되었습니다. 

우분투 설치

설정이 모두 완료 되고 Finish 버튼을 누르면 Ubuntu 가 설치가 진행 됩니다. 

 

설치가 완료되었습니다. 

이제 우분투를 사용 하세요

 

728x90
반응형

'06.OS > Linux' 카테고리의 다른 글

[Ubuntu] Static IP 설정  (0) 2022.03.26
[CentOS]Host Name 변경  (0) 2022.03.26
[Shell]trap 을 활용한 리눅스(Signal) 시그널 처리  (0) 2022.03.25
Ubuntu SSH 접속 방법  (0) 2022.03.20
Ubuntu 명령어  (0) 2022.03.19
728x90
반응형

시그널(Signal) 이란? 

Signal 이란 프로세나 시스템에 이벤트를 전달하는 신호를 나타냅니다. 

일반적으로 흔시 하용하는 Ctrl +C 같은 경우도 Signal의 한 종류이다.

 

시그널(Signal) 종류

리눅스 콘솔 창 에서 kill -l 명령을 사용하면 시그널 리스트를 확인 할 수 있다. 

 

$ kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGBUS       8) SIGFPE       9) SIGKILL     10) SIGUSR1
11) SIGSEGV     12) SIGUSR2     13) SIGPIPE     14) SIGALRM     15) SIGTERM
16) SIGSTKFLT   17) SIGCHLD     18) SIGCONT     19) SIGSTOP     20) SIGTSTP
21) SIGTTIN     22) SIGTTOU     23) SIGURG      24) SIGXCPU     25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGIO       30) SIGPWR
31) SIGSYS      34) SIGRTMIN    35) SIGRTMIN+1  36) SIGRTMIN+2  37) SIGRTMIN+3
38) SIGRTMIN+4  39) SIGRTMIN+5  40) SIGRTMIN+6  41) SIGRTMIN+7  42) SIGRTMIN+8
43) SIGRTMIN+9  44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13
48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12
53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9  56) SIGRTMAX-8  57) SIGRTMAX-7
58) SIGRTMAX-6  59) SIGRTMAX-5  60) SIGRTMAX-4  61) SIGRTMAX-3  62) SIGRTMAX-2
63) SIGRTMAX-1  64) SIGRTMAX

$  help kill
kill: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
    Send a signal to a job.
    
    Send the processes identified by PID or JOBSPEC the signal named by
    SIGSPEC or SIGNUM.  If neither SIGSPEC nor SIGNUM is present, then
    SIGTERM is assumed.
    
    Options:
      -s sig    SIG is a signal name
      -n sig    SIG is a signal number
      -l        list the signal names; if arguments follow `-l' they are
        assumed to be signal numbers for which names should be listed
    
    Kill is a shell builtin for two reasons: it allows job IDs to be used
    instead of process IDs, and allows processes to be killed if the limit
    on processes that you can create is reached.
    
    Exit Status:
    Returns success unless an invalid option is given or an error occurs.

 

시그널(Signal) 종류 및 설명 

리눅스 시그널 종류

 

trap을 이용한 Signal 처리 예제

 무한으로 수행되는 쉘 코드로 trap 을 이용한 시그널 처리 동작에 대해 알아보겠습니다. 

소개하는 코드는 1 초마다 현재 수행되고 있는 loop.sh 프로세스를 확인하고 

CTRL +C 시그널을 포착해서 프로그램을 종료하는 예제입니다. 

 

loop.sh 수행 순서

while loop 수행 : loop count : [1]

사용자 CTRL+C (​SIGINT:2  시그널 발생​) => _int() 함수 호출 => kill -15 (SIGTERM ) 시그널 발생 
=>_term() 함수 호출 => kill -9로 loop.sh 프로세스 종료

 

loop.sh

#!/bin/bash

loop_cnt=0
echo "=================================="
echo "======= LOOP SHELL PROCESS ======="
echo "=================================="

ps -ef|grep loop.sh
process=`ps -ef|grep loop.sh |awk '{print $2}'`
echo "PROCESS_ID:[ $process ]"

########### SIGTERM handler ############
function _term() {
 echo "SIGTERM Event call"
 kill -9 $process
}

########### SIGINT handler ############
function _int() {
 echo "SIGINT Event call"
 kill -15 $process

}


trap _term SIGTERM

trap _int SIGINT

while true
do
loop_cnt=`expr $loop_cnt + 1`

echo "loop count : [$loop_cnt]"

sleep 1

done

 

수행 결과

728x90
반응형

'06.OS > Linux' 카테고리의 다른 글

[CentOS]Host Name 변경  (0) 2022.03.26
[Ubuntu] Vmware Ubuntu20.04 LTS 설치  (0) 2022.03.26
Ubuntu SSH 접속 방법  (0) 2022.03.20
Ubuntu 명령어  (0) 2022.03.19
우분투 Chrom(크롬)설치  (0) 2022.03.09
728x90
반응형

우분투 서버에 다른 PC에서 SSH로 접속하는 방법에 대해 알아보겠습니다. 

제가 설치한 우분투 버전은 Ubuntu 20.04.4 LTS 입니다. 

지금부터 설치와 접속 방법에 대해 소개하겠습니다. 

 

Open ssh Server Install 

sudo apt update

sudo apt install openssh-server

 

min@min-server:~/바탕화면$ su - root
암호: 
root@min-server:~# apt update
기존:1 https://dl.google.com/linux/chrome/deb stable InRelease
받기:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                  
기존:3 http://kr.archive.ubuntu.com/ubuntu focal InRelease                                            
받기:4 http://kr.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                           
받기:5 http://kr.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
받기:6 http://kr.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [616 kB]
받기:7 http://kr.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,642 kB]
받기:8 http://kr.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [23.8 kB]
받기:9 http://kr.archive.ubuntu.com/ubuntu focal-updates/multiverse i386 Packages [8,460 B]
내려받기 2,627 k바이트, 소요시간 3초 (800 k바이트/초)           
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
패키지 23이(가) 업그레이드되었습니다. 'apt list --upgradable'를 실행하여 확인해 보십시오.
root@min-server:~# sudo apt install openssh-server
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
다음의 추가 패키지가 설치될 것입니다 :
  ncurses-term openssh-sftp-server ssh-import-id
제안하는 패키지:
  molly-guard monkeysphere ssh-askpass
다음 새 패키지를 설치할 것입니다:
  ncurses-term openssh-server openssh-sftp-server ssh-import-id
0개 업그레이드, 4개 새로 설치, 0개 제거 및 23개 업그레이드 안 함.
688 k바이트 아카이브를 받아야 합니다.
이 작업 후 6,010 k바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] y
받기:1 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 ncurses-term all 6.2-0ubuntu2 [249 kB]
받기:2 http://kr.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-sftp-server amd64 1:8.2p1-4ubuntu0.4 [51.5 kB]
받기:3 http://kr.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-server amd64 1:8.2p1-4ubuntu0.4 [377 kB]
받기:4 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 ssh-import-id all 5.10-0ubuntu1 [10.0 kB]
내려받기 688 k바이트, 소요시간 2초 (284 k바이트/초)
패키지를 미리 설정하는 중입니다...
Selecting previously unselected package ncurses-term.
(데이터베이스 읽는중 ...현재 194432개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../ncurses-term_6.2-0ubuntu2_all.deb ...
Unpacking ncurses-term (6.2-0ubuntu2) ...
Selecting previously unselected package openssh-sftp-server.
Preparing to unpack .../openssh-sftp-server_1%3a8.2p1-4ubuntu0.4_amd64.deb ...
Unpacking openssh-sftp-server (1:8.2p1-4ubuntu0.4) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a8.2p1-4ubuntu0.4_amd64.deb ...
Unpacking openssh-server (1:8.2p1-4ubuntu0.4) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../ssh-import-id_5.10-0ubuntu1_all.deb ...
Unpacking ssh-import-id (5.10-0ubuntu1) ...
openssh-sftp-server (1:8.2p1-4ubuntu0.4) 설정하는 중입니다 ...
openssh-server (1:8.2p1-4ubuntu0.4) 설정하는 중입니다 ...
Creating config file /etc/ssh/sshd_config with new version
Creating SSH2 RSA key; this may take some time ...
3072 SHA256:oN/4NemlZx06om65/xj6en+ZfJL1vnNLEUpS85tluh4 root@min-server (RSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:sIwnjEfSdu/Pqb0jQwVrigRwrJUtTizyGrqu3Fjgjqg root@min-server (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:LS1OyULLQ0ZywTGiap8KJOW2NzL61r0L4+C7+uWz888 root@min-server (ED25519)
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
rescue-ssh.target is a disabled or a static unit, not starting it.
ssh-import-id (5.10-0ubuntu1) 설정하는 중입니다 ...
Attempting to convert /etc/ssh/ssh_import_id
ncurses-term (6.2-0ubuntu2) 설정하는 중입니다 ...
Processing triggers for systemd (245.4-4ubuntu3.15) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for ufw (0.36-6ubuntu1) ...
내용 작성

 

SSH 실행 상태 확인 및  활성화 (sudo systemctl status ssh)

sudo systemctl status ssh

sudo systemctl enable ssh

sudo systemctl start ssh 

sudo systemctl restart ssh 

sudo systemctl stop ssh

 

$ sudo systemctl status ssh 
[sudo] min의 암호: 
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2022-03-19 11:26:10 KST; 22min ago
       Docs: man:sshd(8)
             man:sshd_config(5)
   Main PID: 4744 (sshd)
      Tasks: 1 (limit: 13936)
     Memory: 1.0M
     CGroup: /system.slice/ssh.service
             └─4744 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups

 3월 19 11:26:10 min-server systemd[1]: Starting OpenBSD Secure Shell server...
 3월 19 11:26:10 min-server sshd[4744]: Server listening on 0.0.0.0 port 22.
 3월 19 11:26:10 min-server sshd[4744]: Server listening on :: port 22.
 3월 19 11:26:10 min-server systemd[1]: Started OpenBSD Secure Shell server.

SSH 서버가 중지 상태일때  모습니다. 

 

root@min-server:~# sudo systemctl stop ssh 
root@min-server:~# sudo systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Sat 2022-03-19 11:53:01 KST; 3s ago
       Docs: man:sshd(8)
             man:sshd_config(5)
    Process: 6437 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
    Process: 6438 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=0/SUCCESS)
   Main PID: 6438 (code=exited, status=0/SUCCESS)

 3월 19 11:52:33 min-server systemd[1]: Starting OpenBSD Secure Shell server...
 3월 19 11:52:33 min-server sshd[6438]: Server listening on 0.0.0.0 port 22.
 3월 19 11:52:33 min-server sshd[6438]: Server listening on :: port 22.
 3월 19 11:52:33 min-server systemd[1]: Started OpenBSD Secure Shell server.
 3월 19 11:53:01 min-server systemd[1]: Stopping OpenBSD Secure Shell server...
 3월 19 11:53:01 min-server sshd[6438]: Received signal 15; terminating.
 3월 19 11:53:01 min-server systemd[1]: ssh.service: Succeeded.
 3월 19 11:53:01 min-server systemd[1]: Stopped OpenBSD Secure Shell server.

 

방화벽 상태 확인 및 비 활성화(Firewall)

sudo ufw allow ssh

sudo ufw status

 

root@min-server:~# sudo ufw allow ssh
규칙이 업데이트됐습니다
규칙이 업데이트됐습니다(v6)
root@min-server:~# sudo ufw status
상태: 비활성
root@min-server:~# 

 

SSH 클라이언트 접속 

접속해볼 클라이언트 테스트 계정을 생성해 보겠습니다. 

저는 앞으로 Docker 를 공부해 볼 계획이라 docker-test 계정을 생성하겠습니다. 

테스트 절차는 아래 내용으로 진행 하겠습니다. 

 

1. 테스트 계정 생성 

2. 우분투 서버 IP 정보 확인 

3.리눅스 테스트 계정 접속 

4. 리모트 서버(윈도우 노트북 -> 우분투 테스트 계정 접속)

 

테스트 계정 생성 

# adduser docker-test
'docker-test' 사용자를 추가 중...
새 그룹 'docker-test' (1001) 추가 ...
새 사용자 'docker-test' (1001) 을(를) 그룹 'docker-test' (으)로 추가 ...
'/home/docker-test' 홈 디렉터리를 생성하는 중...
'/etc/skel'에서 파일들을 복사하는 중...
새  암호: 
새  암호 재입력: 
passwd: 암호를 성공적으로 업데이트했습니다
docker-test의 사용자의 정보를 바꿉니다
새로운 값을 넣거나, 기본값을 원하시면 엔터를 치세요
이름 []: 
방 번호 []: 
직장 전화번호 []: 
집 전화번호 []: 
기타 []: 
정보가 올바릅니까? [Y/n] 

 

우분투 서버 IP 정보 확인 

# ifconfig
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 180.64.82.103  netmask 255.255.255.192  broadcast 180.64.82.127
        inet6 fe80::8129:3259:2d4c:d494  prefixlen 64  scopeid 0x20<link>
        ether bc:5f:f4:38:74:e5  txqueuelen 1000  (Ethernet)
        RX packets 27950  bytes 27074047 (27.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17481  bytes 3314029 (3.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 868  bytes 84762 (84.7 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 868  bytes 84762 (84.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

리눅스 테스트 계정 접속 

# ssh docker-test@180.64.82.103
The authenticity of host '180.64.82.103 (180.64.82.103)' can't be established.
ECDSA key fingerprint is SHA256:sIwnjEfSdu/Pqb0jQwVrigRwrJUtTizyGrqu3Fjgjqg.
Are you sure you want to continue connecting (yes/no/[fingerprint])? y
Please type 'yes', 'no' or the fingerprint: yes
Warning: Permanently added '180.64.82.103' (ECDSA) to the list of known hosts.
docker-test@180.64.82.103's password: 
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-35-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

22 updates can be applied immediately.
추가 업데이트를 확인하려면 apt list --upgradable 을 실행하세요.

Your Hardware Enablement Stack (HWE) is supported until April 2025.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

 

리모트 서버(윈도우 노트북 -> 우분투 테스트 계정 접속)

윈도우 노트북 SecureCRT 에서 우분투 접속을 하려고 하니 아래와 같은 에러가 발생합니다. 

Key exchange failed.
No compatible key exchange method. The server supports these methods: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

/etc/ssh/sshd_config 를 수정 해서 문제를 해결하겠습니다. 

 

vi /etc/ssh/sshd_config

KexAlgorithms +diffie-hellman-group1-sha1
Ciphers +aes128-cbc

systemctl restart sshd

위 작업을 수행하니 이제 정상 접속이 되고 있네요 

 

728x90
반응형
728x90
반응형

우분투 버전 확인 기본 명령어 

lsb_release -a 명령어를 사용하면 현재 설치된 우분투 버전 정보가 확인 가능 합니다. 

 

 lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

현재 데스크탑에 설치된 우분투 버전은 Ubuntu 20.04.4 LTS 입니다.

 

기타 명령어 

cat /etc/issue

cat /etc/os-release

hostnamectl

 

 

min@min-server:~/바탕화면$ cat /etc/issue
Ubuntu 20.04.4 LTS \n \l


min@min-server:~/바탕화면$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

min@min-server:~/바탕화면$ hostnamectl
   Static hostname: min-server
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: e10702539e504a0fa045f0529579781f
           Boot ID: 85fa0694820a45b9af1cfe85be3ae16f
  Operating System: Ubuntu 20.04.4 LTS
            Kernel: Linux 5.13.0-35-generic
      Architecture: x86-64

728x90
반응형
728x90
반응형

우분투 크롬 (Chrom) 설치

우부투(Ubuntu)설치시에 크롬은 기본 설치 되어 있지 않습니다.
기본 설치된 브라우저는 파이어 폭스가 설치 되어있습니다.
이번 포스팅에서는 Ubuntu 20.04.4 LTS 버전에서 크롬을 설치 하는 방법에 대해 알아 보겠습니다.
* 우분투 버전 정보 확인 방법
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

 

우분투 다운로드 (Ubuntu)

단축키(Ctrl+Alt+T) 또는 응용프로그램에서 터미널을  wget 명령을 이용해서 구글 크롬의 최신 .deb package 파일을다운로드 해야합니다.

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

Chrome Install (크롬 설치)

sudo apt install ./google-chrome-stable_current_amd64.deb

우분투 (Chrome) 크롬 실행

정상적으로 크롬이 설치 되었다면 우분투 프로그램 선택 하면 크롬 부라우저가 추가된것으로 확인 할수 있습니다.

이제부터 크롬 브라우져를 통해 웹 서칭을 할수 있겠네요 ^^

 

 

728x90
반응형
728x90
반응형

우분투에서는 기본적으로 윈도우 처럼 그림판 프로그램이 없어 캡쳐된 이미지를 편집 할 수 없습니다.

캡쳐된 이미지를 편집하기 위한 방법에 대해 이번 포스팅에서는 알아 보겠습니다.

우분투 이미지 캡쳐 방법

Ctrl +Shift + Print  단축 키로 그림을 캡쳐  할수 있고 Ctrl +v 로 캡쳐된 이미지를 붙여 넣기 할수 있습니다.

 

그림판 설치 (kolourpaint4)

sudo apt-get install kolourpaint4

그림판 팩키지 설치

그림판 실행 (kolourpaint4)

정상적으로 설치 되었다면 우분투 프로그램 매뉴 화면을 클릭해서 kolourpaint4 실행시켜서 캡쳐된 이미지를 편집 할수 있습니다.

실행화면

 

728x90
반응형

'06.OS > Linux' 카테고리의 다른 글

[Ubuntu] Vmware Ubuntu20.04 LTS 설치  (0) 2022.03.26
[Shell]trap 을 활용한 리눅스(Signal) 시그널 처리  (0) 2022.03.25
Ubuntu SSH 접속 방법  (0) 2022.03.20
Ubuntu 명령어  (0) 2022.03.19
우분투 Chrom(크롬)설치  (0) 2022.03.09

+ Recent posts