Linux

Installing websockify on Ubuntu 17.04 LTS

Example of installing websockify on Ubuntu 17.04 LTS using the command sudo apt-get install websockify.

Quick installation of websockify:

Step 1: Update system:

sudo apt-get update

Step 2: Install: websockify

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

sudo apt-get install websockify

Package Details

Package:websockify
Version:0.8.0+dfsg1-7
Maintainer:Ubuntu Developers
Home page:https://pypi.python.org/pypi/websockify
Description:WebSockets support for any application/server websockify was formerly named wsproxy and was part of the noVNC project. . At the most basic level, websockify just translates WebSockets traffic to normal socket traffic. Websockify accepts the WebSockets handshake, parses it, and then begins forwarding traffic between the client and the target in both directions. . Websockify supports all versions of the WebSockets protocol (Hixie and HyBi). The older Hixie versions of the protocol only support UTF-8 text payloads. In order to transport binary data over UTF-8 an encoding must used to encapsulate the data within UTF-8. . With Hixie clients, Websockify uses base64 to encode all traffic to and from the client. This does not affect the data between websockify and the server. . With HyBi clients, websockify negotiates whether to base64 encode traffic to and from the client via the subprotocol header (Sec-WebSocket-Protocol). The valid subprotocol values are 'binary' and 'base64' and if the client sends both then the server (the Python implementation) will prefer 'binary'. The 'binary' subprotocol indicates that the data will be sent raw using binary WebSocket frames. Some HyBi clients (such as the Flash fallback and older Chrome and iOS versions) do not support binary data which is why the negotiation is necessary.
Distro:Ubuntu 17.04
Release:
Repo/Section:universe/python

How to install websockify on Ubuntu 17.04?

First of all update your system with the command:

sudo apt-get update

Above command will download the package lists for Ubuntu 17.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 websockify is not installed on your compter then the command 'dpkg -L websockify' will give followin error.

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

Installing websockify:

After system update use the following command to install websockify:

sudo apt-get install websockify

Above command will confirm before installing the package on your Ubuntu 17.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 websockify from Ubuntu 17.04?

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

To remove the websockify following command is used:

sudo apt-get remove  websockify

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

sudo apt-get remove --auto-remove websockify

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

Completely removing websockify with all configuration files:

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

sudo apt-get purge websockify

or you can use following command also:

sudo apt-get purge --auto-remove websockify

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

Get our newsletter

Categories