Archive for the ‘networking’ Category

Enable ssh on Ubuntu. Setup ssh server

September 4th, 2017 No comments

The following commands allow to enable ssh on your Ubuntu machine.

sudo apt-get update
sudo apt-get install openssh-server

Once ssh is set up you will be able to connect using an ssh client and also using tools like WinSCP

Enable network navigation in Lubuntu File Manager

August 10th, 2013 No comments

Fortunately, it is possible to view Samba drives in Lubuntu by installing a couple of missing packages

One of the first shortcomings you will find when you compare the file managers that exist between Ubuntu and Lubuntu is the absence of a way to  browse through network drives that exists in Ubuntu (via Nautilus).

This is because there are a couple of packages that are not activated by default.  All you need to do in order to have network folder functionality in the Lubuntu File Manager (PCManFM) are packages fuse-utils and gvfs-backends.  You can install them as follows:

sudo apt-get update
sudo apt-get install fuse-utils
sudo apt-get install gvfs-backends

After installation, you can then access Windows shares using menu option ‘Go’ -> ‘Network drives’ from the File Manager.





Shut down and restart WiFi from Lubuntu desktop

July 28th, 2013 No comments

I wanted to shut down and restart WiFi using the command line using Lubuntu Precise Pangolin.

This is a desktop that uses a component called Network Manager.

It is possible to achieve this from the command line by running:

nmcli nm wifi off

It can be run as it is withouth the sudo command.

In order to switch wifi back on, the command is:

nmcli nm wifi on

An alternative

An alternative is to use the rfkill command.  This is one that disables the WiFi device completely without going through NetworkManager.  For this command to work, you need to execute with the sudo command as follows:

sudo rfkill block wifi <wifi lan ID>

For example

sudo rfkill block wifi wlan0

in order to restart the Wifi from the command line this way, you use the rfkill unblock command:

sudo rfkill unblock wifi wlan0