Ubuntu 22.04 LTS에 몽고DB를 설치할 때 다음과 같은 에러가 발생하여 설치가 안되는 경우가 있다.

 

mongodb-org-mongos : Depends: libssl1.1 (>= 1.1.1) but it si not installable.

mongodb-org-server : Depends: libssl1.1 (>= 1.1.1) but it si not installable.

E: Unable to correct problems, you have held broken packages.

 

해결방법은 이전버전의 몽고DB를 설치하거나 libssl1.1을 설치하면 된다.

이전 버전을 설치하는 것은 몽고DB 홈페이지에서 찾아보면 있으니

libssl1.1 설치방법만 간단하게 소개합니다.

 

1. ubuntu@server: $ sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common

2. ubuntu@server: $ echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.list

3. ubuntu@server: $ sudo wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb  

4. ubuntu@server: $ sudo dpkg -i libssl1.1_1.1.1f-lubuntu2_amd64.deb

5. ubuntu@server: $ sudo apt update

6. ubuntu@server: $ sudo apt install libssl1.1

 

이렇게 하면 설치가 된다.

'Ubuntu Linux' 카테고리의 다른 글

Permission Denied while opening TCP Server on UBUNTU  (0) 2023.03.29
우분투 리눅스 고정 IP 설정하기  (0) 2020.11.12
인터넷 공유  (0) 2020.11.12
Locale 변경하기  (0) 2020.10.23
타임존 설정  (0) 2020.10.23
Posted by SmartPro
,

The TCP/IP port numbers below 1024 are special in that normal users are not allowed to run servers on them.

'Ubuntu Linux' 카테고리의 다른 글

Ubuntu 22.04 LTS 에 Mongo DB 설치하기  (0) 2023.05.22
우분투 리눅스 고정 IP 설정하기  (0) 2020.11.12
인터넷 공유  (0) 2020.11.12
Locale 변경하기  (0) 2020.10.23
타임존 설정  (0) 2020.10.23
Posted by SmartPro
,

고정 IP 설정할 장치명이 eth0 인 경우

 

/etc/network/interfaces 파일에 다음과 같이 변경한다.

(아이피를 192.168.10.10으로 고정하는 경우)

 

auto eth0

iface eth0 inet static

  address 192.168.10.10

  netmask 255.255.255.0

  gateway 192.168.10.1

  dns-nameservers 8.8.8.8 8.8.4.4

 

바로 적용하려면

# sudo systemctl restart networking.service

 

 

 

'Ubuntu Linux' 카테고리의 다른 글

Ubuntu 22.04 LTS 에 Mongo DB 설치하기  (0) 2023.05.22
Permission Denied while opening TCP Server on UBUNTU  (0) 2023.03.29
인터넷 공유  (0) 2020.11.12
Locale 변경하기  (0) 2020.10.23
타임존 설정  (0) 2020.10.23
Posted by SmartPro
,

인터넷 공유

Ubuntu Linux 2020. 11. 12. 09:04

인터넷 --- (eth0) 우분투 (eth1) --- 기기

 

우분투에서 eth0으로 인터넷에 연결되어 있고 eth1에 다른 장치와 연결되어 있을 때

다른 장치에서 인터넷이 되게 하려면...

 

1. eth1에 IP를 지정

  $ sudo ip addr add 10.0.0.1/24 dev eth1

 

2. 포워딩 설정

  $ sudo iptables -A FORWARD -o eth0 -i eth1 -s 10.0.0.0/24 -m conntrack --ctstate NEW -j ACCEPT

  $ sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT

  $ sudo iptables -t nat -F POSTROUTING

  $ sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

 

3. iptables 설정 저장 방법

  $ sudo iptables-save | sudo tee /etc/iptables.saw

 

4. iptables 설정 복원 방법

  $ sudo iptables-restore < /etc/iptables.saw

 

5. 포워딩 허용하기

  $ sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

 

6. 네트워크 재시작

  $ sudo systemctl restart networking

                   or

  $ sudo /etc/init.d/networking restart

 

 

 

 

※ 클라이언트가 우분투 인경우

 

1. IP 주소 할당

  $ sudo ip addr add 10.0.0.2/24 dev eth0

 

2. Default Gateway 설정

  $ sudo ip route add default via 10.0.0.1

 

'Ubuntu Linux' 카테고리의 다른 글

Permission Denied while opening TCP Server on UBUNTU  (0) 2023.03.29
우분투 리눅스 고정 IP 설정하기  (0) 2020.11.12
Locale 변경하기  (0) 2020.10.23
타임존 설정  (0) 2020.10.23
시스템 GUI모드로 시작하지 않기  (0) 2020.10.21
Posted by SmartPro
,

Locale 변경하기

Ubuntu Linux 2020. 10. 23. 08:59

1. locale 확인하기

    $ locale

 

2. 변경하기 1

  1) 한글 패키기 설치

    $ sudo apt install language-pack-ko

  2) Locale 설치

    $ sudo locale-gen ko_KR.UTF-8

 

3. 변경하기 2

  1) dpkg-reconfigure를 이용하기

    $ sudo dpkg-reconfigure locales

  2) ko_KR.UTF-8 을 스페이스로 선택후 엔터

 

4. 변경하기 3

  1) update-locale 사용

    $ sudo update-locale LANG=ko_KR.UTF-8 LC_MESSAGES=POSIX

 

5. 변경하기 4 - 직접 세팅하기

  1) /etc/default/locale 파일을 다음과 같이 수정

    LANG=ko_KR.UTF-8

    LC_MESSAGES=POSIX

'Ubuntu Linux' 카테고리의 다른 글

우분투 리눅스 고정 IP 설정하기  (0) 2020.11.12
인터넷 공유  (0) 2020.11.12
타임존 설정  (0) 2020.10.23
시스템 GUI모드로 시작하지 않기  (0) 2020.10.21
우분투 리눅스 IP주소 확인하기  (0) 2020.10.12
Posted by SmartPro
,

타임존 설정

Ubuntu Linux 2020. 10. 23. 08:53

1. timezonectl 사용

  # timedatectl set-timezone 'Asia/Seoul'

  # timedatectl set-timezone 'GMT'

 

  ** 타임존 목록 확인은?

     # timedatectl list-timezones

 

2. tzdata를 링크

  $ sudo apt install tzdata

  $ ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime

  $ ln -sf /usr/share/zoneinfo/GMT /etc/localtime

 

 

'Ubuntu Linux' 카테고리의 다른 글

인터넷 공유  (0) 2020.11.12
Locale 변경하기  (0) 2020.10.23
시스템 GUI모드로 시작하지 않기  (0) 2020.10.21
우분투 리눅스 IP주소 확인하기  (0) 2020.10.12
커맨드 라인 토런트 클라이언트  (0) 2020.10.12
Posted by SmartPro
,

부팅 후에 x윈도우를 시작하지 않게 하려면

 

$ sudo systemctl set-default multi-user.target

 

또는

 

# echo "false" > /etc/X11/default-display-manager

 

이렇게 한 후에 재부팅 하면 된다.

'Ubuntu Linux' 카테고리의 다른 글

Locale 변경하기  (0) 2020.10.23
타임존 설정  (0) 2020.10.23
우분투 리눅스 IP주소 확인하기  (0) 2020.10.12
커맨드 라인 토런트 클라이언트  (0) 2020.10.12
우분투 버전 확인하기  (0) 2020.10.12
Posted by SmartPro
,

1. hostname 명령어

    # hostname -I   (대문자i)

    192.168.0.42

 

2. ip 명령어

    # ip addr show

 

3. ifconfig 명령어

    # ifconfig

 

※ ifconfig가 안될 때

    #sudo apt install net-tools

 

'Ubuntu Linux' 카테고리의 다른 글

Locale 변경하기  (0) 2020.10.23
타임존 설정  (0) 2020.10.23
시스템 GUI모드로 시작하지 않기  (0) 2020.10.21
커맨드 라인 토런트 클라이언트  (0) 2020.10.12
우분투 버전 확인하기  (0) 2020.10.12
Posted by SmartPro
,

GUI가 없는 리눅스 환경에서 사용할 수 있는 토런트 클라이언트

 

1. rTorrent

  a. 설치 방법

      # apt install rtorrent

  b. 토런트 파일 추가 방법

      # rtorrent "토런트 파일"

  c. 웹 인터페이스 (rtpg-www)

      # apt install rtpg-www  (설치)

  d. rtpg-www 설정하기

      1) # sudo a2enmod scgi

      2) # sudo a2ensite rtpg.apache.conf   (아파치에 rtpg 설정하기)

      3) # sudo invoke-rc.d apache2 reload (아파치 재시작)

      4) # echo "scgi_port = localhost:5000" >> ~/.rtorrent.rc    (.rtorrent.rc 파일 생성)

  e. 클라이언트 PC의 hosts 파일에 rtpg에 대한 IP 주소 추가한다.

      예를 들어 rtorrent 가 설치된 리눅스PC의 아이피가 192.168.1.10 이면

      클라이언트가 윈도우 일 때 C:\Windows\System32\drivers\etc\hosts 파일에 다음과 같이 추가한다.

          192.168.1.10 rtpg

  f. 웹브라우저에서 http://rtpg 로 접속

  g. 만약에 500 서버 에러가 발생하면 perl의 라이브러리가 설치되지 않았을 경우가 많다.

     그러면 다음과 같이 실행해 준다.

      # sudo apt install libcgi-pm-perl

 

 

2. Aria2

 

3. Transmission-CLI

'Ubuntu Linux' 카테고리의 다른 글

Locale 변경하기  (0) 2020.10.23
타임존 설정  (0) 2020.10.23
시스템 GUI모드로 시작하지 않기  (0) 2020.10.21
우분투 리눅스 IP주소 확인하기  (0) 2020.10.12
우분투 버전 확인하기  (0) 2020.10.12
Posted by SmartPro
,

1. 일반적인 커널 정보 확인하기

# uname -a

Linux odroid 4.14.180-178 #1 SMP PREEMPT Wed Sep 2 12:39:45 -03 2020 armv7l armv7l armv7l GNU/Linux

 

2. OS 버전 확인 1

# cat /etc/issue
Ubuntu 18.04.5 LTS \n \l

 

3. OS 버전 확인 2

# cat /etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"

 

4. OS 버전 확인 3

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic

 

5. OS 버전 확인 4

# cat /etc/os-release

NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.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=bionic
UBUNTU_CODENAME=bionic

 

6. OS 비트 확인

# getconf LONG_BIT
32

 

 

'Ubuntu Linux' 카테고리의 다른 글

Locale 변경하기  (0) 2020.10.23
타임존 설정  (0) 2020.10.23
시스템 GUI모드로 시작하지 않기  (0) 2020.10.21
우분투 리눅스 IP주소 확인하기  (0) 2020.10.12
커맨드 라인 토런트 클라이언트  (0) 2020.10.12
Posted by SmartPro
,