본문 바로가기

리눅스

우분투에서 GateOne을 설치하고 사용하는 방법

728x90

우분투에서 GateOne을 설치하고 사용하는 방법

GateOne은 다양한 종류의 SSH 서버에 대한 웹 기반 접근을 제공하는 오픈 소스 도구입니다. Windows, macOS, Linux에서 사용할 수 있습니다.

테스트 환경

  • 운영체제 정보
$ lsb_release -d
Description:	Ubuntu 22.04.3 LTS

1. 필수 패키지 설치

sudo apt-get update
sudo apt-get install -y python3-pip python3-setuptools
sudo pip3 install --upgrade setuptools

2. GateOne 설치

sudo pip3 install tornado==5.1.1
sudo pip3 install gateone
$ sudo pip3 install gateone
Collecting gateone
  Using cached gateone-1.2.0.tar.gz (12.0 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      Python 3.X support requires the 2to3 tool.
      It normally comes with Python 3.X but (apparenty) not on your distribution.
      Please find out what package you need to get 2to3and install it.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

오류가 발생하여 GateOne을 직접 pip으로 설치하지 말고, 다른 배포 방법을 사용합니다.

git clone https://github.com/liftoff/GateOne.git
cd GateOne
sudo python3 setup.py install
$ sudo python3 setup.py install
Python 3.X support requires the 2to3 tool.
It normally comes with Python 3.X but (apparenty) not on your distribution.
Please find out what package you need to get 2to3and install it.

가상 환경 사용

sudo apt-get install -y python3.10-venv
python3 -m venv venv
source venv/bin/activate
$ source venv/bin/activate
(venv) root@ubuntu-init:GateOne$
(venv) root@ubuntu-init:GateOne$ pip install gateone
Collecting gateone
  Using cached gateone-1.2.0.tar.gz (12.0 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      /root/GateOne/venv/lib/python3.10/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      error in gateone setup command: use_2to3 is invalid.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

 

실패 ㅠㅠ

728x90