Giter Club home page Giter Club logo

linux_gui_remote_access_instructions's Introduction

linux_gui_remote_access_instructions

Инструкция по удаленному доступу к Linux GUI (Debian)

В самом начале

Шаг первый. Установка GUI

$ apt-get update
$ apt-get install --no-install-recommends xserver-xorg xserver-xorg-core xfonts-base xinit libgl1-mesa-dri x11-xserver-utils

Шаг второй. Установим Xfce

Стандартная установка:

$ apt-get update
$ apt-get install xfce4 xfce4-terminal

Полная установка:

$ apt-get update
$ apt-get install task-xfce-desktop

Шаг третий. Настраиваем удаленный доступ

$ apt-get install xrdp
$ systemctl enable xrdp
$ systemctl start xrdp

Шаг четвертый. Запускаем RDP-клиент

Для Windows RDP-клиент можно скачать здесь: https://www.microsoft.com/en-us/download/details.aspx?id=50042

Дополнительно

  • Debain: ошибка, -bash: sudo: command not found (ответ)

По умолчанию sudo не установлен в Debian, но вы можете установить его. Сначала включите su-mode:

su -

Установите sudo, запустив:

apt-get install sudo -y

После этого вам нужно будет поиграться с пользователями и разрешениями. Дайте право sudo своему собственному пользователю.

usermod -aG sudo yourusername

Убедитесь, что в вашем файле sudoers добавлена группа sudo. Выполнить:

visudo

Изменить файл sudoers и добавить в него следующую строку (если он отсутствует):

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

Чтобы изменения вступили в силу, вам необходимо полностью перезагрузить или перезагрузить устройство.

  • Установка браузера Chrome
$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
$ sudo sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
$ sudo apt-get update
$ sudo apt-get install google-chrome-stable
$ sudo google-chrome-stable --no-sandbox

По поводу --no-sandbox, описано тут puppeteer/puppeteer#3698

  • Установка Wine
$ sudo dpkg --add-architecture i386
$ wget -nc https://dl.winehq.org/wine-builds/Release.key
$ sudo apt-key add Release.key
$ sudo add-apt-repository "deb https://dl.winehq.org/wine-builds/ubuntu/ artful main"
$ sudo apt-get update
$ sudo apt-get install --install-recommends winehq-stable
  • Установка GIT
$ apt-get install git
  • Установка OpenSSH
$ sudo apt install openssh-server
  • Добавление SSH ключа в Linux

Сначала необходимо запустить ssh-agent

$ eval `ssh-agent -s`

Если файлы ключа были получены с другого компьютера, может понадобиться изменить параметры доступа к ним. На примере файла git_rsa:

$ chmod 400 ~/.ssh/git_rsa

Затем можно добавить ключ в ssh-agent

$ ssh-add ~/.ssh/git_rsa

Затем можно добавить файл секретного ключа

Проверка наличия ключа id_rsa.pub

$ cat ~/.ssh/id_rsa.pub 

Добавление ключа в authorized_keys

$ cat /tmp/id_rsa.john.pub >> ~/.ssh/authorized_keys
  • Установка 7zip
$ sudo apt update
$ sudo apt install p7zip-full p7zip-rar

Чтобы разорхивировать архив

$ 7z e <имя_архива>
$ 7z x <имя_архива>

linux_gui_remote_access_instructions's People

Contributors

newyaroslav avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.