Linux

ubuntu 설치 후 기초 작업 ( 한글, green-tunnel , ... )

TheFanStory 2019. 11. 7. 11:18

[ ubuntu 최초 설치는 영문으로 ]

 

한글로 설지하면  Downloads -> "다운로드" ,  Documents -> "문서" 들로 바뀌어서 관리하기 불편하다.

 

 

[ 한글 설정 ]

 

프로그램 표시 ( 왼쪽 하단 "시작" 버튼 위치 )

ㄴ 언어지원

ㄴ 언어 설치/제거 에서 "한국어" 체크 확인

 

프로그램 표시 ( 왼쪽 하단 "시작" 버튼 위치 )

ㄴ 설정

ㄴ 지역 및 언어

ㄴ 언어 - "한국어" 선택  ( 폴더 이름 한글로 변경 안함 , 다시 묻지 않음 선택 )

ㄴ 입력소스 - "한국어(한글)" 추가, 나머지 모두 삭제

입력소스 - "한국어(한글)" 클릭후 톱니바퀴 ( ibus-setup 이 뜬다 ) 를 눌러 3번식, 한글/한자 키 설정

 

 

 

 

[ green-tunnel 설치 ]

 

정부의 인터넷 검열을 막기 위해 green-tunnel  설치

gui 버전도 있지만 cli 버전으로 간편하게 설치한다.

 

 

1. npm 설치

 

sudo apt-get install npm

 

 

2.  npm 으로 green-tunnel 설치

 

 

 

 

3. 서비스로 등록하여 부팅시 자동으로 실행되도록 설정

 

1) /etc/systemd/system/green-tunnel.service  로 아래 내용을 작성 ( root 권한 필요 )

ㄴ port 8008 에서 8008 은 임의의 다른 포트를 지정하거나 , 생략하면 랜덤 ( green-tunnel 디폴트설정이 랜덤 ) 포트 할당됨.

[Unit]
Description=GreenTunnel bypasses DPI (Deep Packet Inspection) systems
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/gt --port 8008
TimeoutSec=15
Restart=always

[Install]
WantedBy=multi-user.target

* ExecStart 의 경로는  whereis gt  명령어로 확인

 

 

 

2 ) 재시작시 실행되도록 등록

 

sudo systemctl enable green-tunnel

sudo systemctl start green-tunnel

 

 

3) green-tunnel 로딩 여부 확인

 

sudo systemctl list-units --type=service

 

 

4) 네트워크 에서 proxy 설정

 

desktop 환경에서는 우상단 네트워크 아이콘을 통해 프록시 설정

이더넷(~~)에 연결됨

ㄴ (유선)네트워크 설정

ㄴ 네트워크 프록시

ㄴ 수동 - 127.0.0.1 , 포트 입력 

ㄴ 무시할 호스트 (localhost,127.0.0.1,::1) 삭제 ( 현재 사용중인 서버의 트래픽도 proxy 를 통하게 하기 위해 )

 

cli 환경에서는 아래 링크 참조

https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-configure-proxy-on-ubuntu-18-04/

 

How to configure proxy settings on Ubuntu 18.04 - Serverlab

Overview Proxies are commonly found on business networks, but they are increasingly becoming popular for personal use. The following tutorial will show you multiple ways of setting your proxy in Ubuntu 18.04, allowing you to browse the Internet with additi

www.serverlab.ca