Vnc server linux удалить

Как удалить Real VNC в Ubuntu 14.04

Ну, в названии почти все сказано, я установил Real VNC.

Сначала я скачал общий установщик 5.2.3 64-битный отсюда:

tar -xvf VNC-5.2.3-Linux-x64-ANY.tar.gz 

Теперь мне больше не нужен VNC, поэтому я хочу удалить его, но я не знаю, как это сделать.

Кто-нибудь знает, как это сделать?

1 ответ

Есть два способа.

Скачайте архив с файлами deb и распакуйте архив, и да, я уверен

tar xf VNC-5.2.3-Linux-x64-DEB.tar.gz 
sudo dpkg -i VNC-Server-5.2.3-Linux-x64.deb VNC-Viewer-5.2.3-Linux-x64.deb 

И удалить пакеты. Это также удалит файлы из установки через ./vncinstall

sudo apt-get purge realvnc-vnc-server sudo apt-get purge realvnc-vnc-viewer 

Сценарий путь

Нет скрипта для удаления установленных файлов. Но вы можете использовать это, протестировано на моей собственной системе:

#!/bin/bash sudo rm /usr/share/man/man1/vncviewer.1 sudo rm /usr/share/man/man1/vncaddrbook.1 sudo rm /usr/share/man/man1/vncserver-x11.1 sudo rm /usr/share/man/man1/Xvnc.1 sudo rm /usr/share/man/man1/vncserver-virtual.1 sudo rm /usr/share/man/man1/vncserver-virtuald.1 sudo rm /usr/share/man/man1/vncserver-x11-serviced.1 sudo rm /usr/share/man/man1/vncpasswd.1 sudo rm /usr/share/man/man1/vnclicense.1 sudo rm /usr/share/man/man1/vncinitconfig.1 sudo rm /etc/pam.d/vncserver sudo rm -r /root/.vnc sudo rm -r /usr/lib/vnc sudo rm -r /usr/share/vnc sudo rm -r /usr/lib/cups/vnc sudo rm -r /usr/lib/cups/backend/vnc sudo rm -r /usr/share/vnc sudo rm -r /etc/vnc for f in vncviewer vncaddrbook vncserver-x11 vncserver-x11-core Xvnc Xvnc-core \ vncserverui vncserver-virtual vncserver-virtuald \ vncserver-x11-serviced vncpasswd vnclicense vnclicensewiz \ vnclicensehelper vncpipehelper vncinitconfig vncserver; do sudo rm "/usr/bin/$f" done 

Источник

tightvncserver on Ubuntu 20.04 LTS (Focal Fossa)

This guide covers the steps necessary to install tightvncserver package:

2. Uninstall / Remove tightvncserver package

Here is a brief guide to show you how to uninstall tightvncserver package:

3. Details of tightvncserver package

Package: tightvncserver
Architecture: amd64
Version: 1.3.10-0ubuntu5
Priority: optional
Section: universe/x11
Source: tightvnc
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Ola Lundqvist
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1847
Provides: vnc-server, xserver
Depends: libc6 (>= 2.15), libjpeg8 (>= 8c), libx11-6, zlib1g (>= 1:1.1.4), perl:any, x11-common | xserver-common, x11-utils, xauth
Recommends: xfonts-base, x11-xserver-utils
Suggests: tightvnc-java
Filename: pool/universe/t/tightvnc/tightvncserver_1.3.10-0ubuntu5_amd64.deb
Size: 662900
MD5sum: 3af0020f4758752adf36718d190e6943
SHA1: 08d788330270d20ff8b13f9e9dde8066e71cdb2a
SHA256: d702f1e30e88f619a2eac9f2de7ade59d5954e346fa865f6cc499330f4376b7a
Homepage: http://www.tightvnc.com
Description: virtual network computing server software
Description-md5: 212aadc6932fc1ffc49df1c9619bc26a

Читайте также:  Чем удалить разделы linux

4. References on Ubuntu 20.04 LTS (Focal Fossa)

5. The same packages on other Linux Distributions

tightvncserver (1.3.10-0ubuntu4) Ubuntu 18.04 LTS (Bionic Beaver)

tightvncserver (1.3.10-0ubuntu3) Ubuntu 16.04 LTS (Xenial Xerus)

tightvncserver (1.3.10-0ubuntu5) Ubuntu 20.10 (Groovy Gorilla)

tightvncserver (1:1.3.10-3) Ubuntu 21.10 (Impish Indri)

tightvncserver (1:1.3.10-5) Ubuntu 22.04 LTS (Jammy Jellyfish)

tightvncserver (1:1.3.9-9+deb10u1) Debian 10 (Buster)

Источник

How to uninstall Real VNC in Ubuntu 14.04

I installed everything. Now I don’t need VNC anymore so I want to uninstall it but I don’t know how to do this. Does anybody know how to do it?

1 Answer 1

There are two ways…

The deb way

Download the archive with deb files and extract the archive, and yes, I’m sure

tar xf VNC-5.2.3-Linux-x64-DEB.tar.gz 
sudo dpkg -i VNC-Server-5.2.3-Linux-x64.deb VNC-Viewer-5.2.3-Linux-x64.deb 

And remove the packages. This will also remove the files from the installation via ./vncinstall

sudo apt-get purge realvnc-vnc-server sudo apt-get purge realvnc-vnc-viewer 

The script way

There is no script to remove the installed files. But you could use this, tested on my own system:

#!/bin/bash sudo rm /usr/share/man/man1/vncviewer.1 sudo rm /usr/share/man/man1/vncaddrbook.1 sudo rm /usr/share/man/man1/vncserver-x11.1 sudo rm /usr/share/man/man1/Xvnc.1 sudo rm /usr/share/man/man1/vncserver-virtual.1 sudo rm /usr/share/man/man1/vncserver-virtuald.1 sudo rm /usr/share/man/man1/vncserver-x11-serviced.1 sudo rm /usr/share/man/man1/vncpasswd.1 sudo rm /usr/share/man/man1/vnclicense.1 sudo rm /usr/share/man/man1/vncinitconfig.1 sudo rm /etc/pam.d/vncserver sudo rm -r /root/.vnc sudo rm -r /usr/lib/vnc sudo rm -r /usr/share/vnc sudo rm -r /usr/lib/cups/vnc sudo rm -r /usr/lib/cups/backend/vnc sudo rm -r /usr/share/vnc sudo rm -r /etc/vnc for f in vncviewer vncaddrbook vncserver-x11 vncserver-x11-core Xvnc Xvnc-core \ vncserverui vncserver-virtual vncserver-virtuald \ vncserver-x11-serviced vncpasswd vnclicense vnclicensewiz \ vnclicensehelper vncpipehelper vncinitconfig vncserver; do sudo rm "/usr/bin/$f" done 

Источник

How to install tightvncserver On Ubuntu 16.04 Lts? Uninstall and remove tightvncserver Package

In this tutorial you will learn how to update and install tightvncserver On Ubuntu 16.04 Lts? Learn how to uninstall and completely remove the package tightvncserver from Ubuntu 16.04 LTS Operating System.

Читайте также:  Linux install development package

Quick installation of tightvncserver:

Step 2: Install: tightvncserver

Ater updaing the OS run following command to install the packae:

sudo apt-get install tightvncserver

How to install tightvncserver on Ubuntu 16.04?

How to install tightvncserver On Ubuntu 16.04 Lts? Uninstall and remove tightvncserver Package

First of all update your system with the command:

Above command will download the package lists for Ubuntu 16.04 on your system. This will update the list of newest versions of packages and its dependencies on your system.

After downloading the latest package list with the help of above you can run the installation process.

If tightvncserver is not installed on your compter then the command ‘dpkg -L tightvncserver’ will give followin error.

deepak@deepakub16:~$ dpkg -L tightvncserver dpkg-query: package 'tightvncserver' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. deepak@deepakub16:~$

After system update use the following command to install tightvncserver:

sudo apt-get install tightvncserver

Above command will confirm before installing the package on your Ubuntu 16.04 Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.

How to uninstall/remove tightvncserver from Ubuntu 16.04?

Now we will see the commands for uninstalling the tightvncserver from Ubuntu 16.04. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.

To remove the tightvncserver following command is used:

sudo apt-get remove tightvncserver

Following command is used to remove the tightvncserver package along with its dependencies:

sudo apt-get remove --auto-remove tightvncserver

This will remove tightvncserver and all its dependent packages which is no longer needed in the system.

Completely removing tightvncserver with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge tightvncserver

or you can use following command also:

sudo apt-get purge --auto-remove tightvncserver

Above command will remove all the configuration files and data associated with tightvncserver package. You can can’t recover the delete data, so, use this command with care.

Читайте также:  Select lines in file linux

Copyright © DevManuals.net 2016

Источник

🖥️ Как убить сеансы окон VNC на Linux

VNC (Virtual Network Computer) – это кроссплатформенная система отображения с низкой пропускной способностью.

VNC – это система для удаленного управления компьютером и совместного использования рабочих столов по сети с помощью графического интерфейса.

Для доступа к удаленному рабочему столу требуется VNC-сервер, установленный на удаленной системе, программа просмотра VNC на системе, с которой осуществляется доступ, и, опционально, защищенное SSH-соединение.

Иногда вам может потребоваться завершить определенную сессию VNC с компьютера Linux.

В этой статье описаны шаги по завершению сеанса VNC из командной строки с помощью команды vncserver.

1. Остановите всю службу VNC:

2. Остановить отдельные сеансы VNC.

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

Например, если вы назначили сессию VNC 1 (:1) для пользователя “nix”, войдите в систему под именем “nix” и выполните следующую команду:

3. Чтобы снова начать сеанс VNC:

4. Команда для запуска нового сеанса VNC:

5. Найдите запущенные сеансы VNC-сервера (сначала войдите в систему как связанный пользователь):

Примечание: Также откройте на брандмауэре, чтобы разрешить все входящие подключения (новые сессии) к VNC Server.

Уничтожение всех сеансов VNC

Вы также можете использовать следующую команду для уничтожения всех запущенных сеансов VNC-сервера:

$ vncserver -kill :* Killing Xtigervnc process ID 1607. success! Killing Xtigervnc process ID 5287. success!

Заключение

Вы запускаете сервер VNC на удаленном сервере баз данных Linux, выполнив команду vncserver и указав номер порта.

Как и другие демоны Linux, такие как httpd, который обычно слушает порт номер 80, и sshd, который обычно слушает порт номер 22, сервер VNC по умолчанию слушает порт номер 5901.

Если вы указываете номер порта при запуске vncserver, фактический номер порта будет плюс 5900.

Например, если вы запустили vncserver :9, то VNC-сервер прослушивает порт номер 5909.

Чтобы вручную остановить VNC-сервер на сервере баз данных Linux, выполните команду Linux vncserver -kill и укажите тот же номер порта, который вы использовали при запуске VNC-сервера.

# /usr/bin/vncserver -kill :9 Killing Xvnc process ID 13836

Источник

Оцените статью
Adblock
detector