Linux OS / Software

How to Setup VPN and RDP Connection on Lubuntu 18.04

Share this post

To setup VPN connection on Lubuntu 18.04. (Ubuntu’s light version) platform you need to install VPN Cisco Client (vpnc)

sudo apt-get install network-manager-vpnc network-manager-vpnc-gnome

After installing the necessary files, right-click on the network icon ( bottom right corner ), then go to Edit Networks and then Add New. From the drop-down menu select the Cisco Compatible VPN (vpnc).

vpnc-linux-cisco ipsec-vpn
Vpnc – Linux Cisco IPSec

After that you will see a window where you need to fill the parameters such as: Connection name, Gateway, User name, Group name, …

linux-ipsec-config
Linux-IPSec configuration

After fill all fields, you can try to connect to VPN.

If you are having problems with a VPN such as breaking a connection or not being able to connect, you need to check if you have a firewall turned on (if so, turn it off) or set the Encryption method on Week in the Advanced tab

Linux - IPSec Advanced Settings
Linux – IPSec Advanced Settings

If everything is set, you can connect to VPN. In the code below you have shortcuts for ConnectVPN and DisconnectVPN because on Lubuntu 18.04. no status icons for connect and disconnect state.

Version=1.0
Name=Your Connection name
Comment=Connect to Connection name
Exec=nmcli con up id "Connection name"
Icon=network-manager
Terminal=false
Type=Application
[Desktop Entry]
Version=1.0
Name=Your Connection name
Comment=Connect to Connection name
Exec=nmcli con down id "Connection name"
Icon=network-manager
Terminal=false
Type=Application

If you need to connect on one of the servers using RDP, the easiest way to do this is through Remmina. Install the remmina using the following command.

sudo apt-get install remmina

After installing, run Remmina and set up the connection using the parameters of your server.

Remmina-Basic settings
Remmina-Basic settings

When the parameters are set, you can start the connection by marking the RDP connection you have made and clicking Connect.

If you want, you can also make a shortcut to start the RDP Remmina Connection by copying the following code

[Desktop Entry]
Version=1.0
Name=MIS2Open
Comment=Connect to remote desktops
TryExec=remmina
Exec=remmina /home/<computer name>/.local/share/remmina/<remmina id>.remmina
Icon=/usr/share/icons/hicolor/128x128/apps/mis.ico
Terminal=false
Type=Application
Actions=
Categories=GTK;GNOME;X-GNOME-NetworkSettings;Network;
Actions=Profile;Tray;
Keywords=VNC;XDMCP;RDP;
X-Ubuntu-Gettext-Domain=remmina

[Desktop Action Profile]
Name=Create a New Connection Profile
Exec=remmina --new
OnlyShowIn=Unity;

[Desktop Action Tray]
Name=Start Remmina Minimized
Exec=remmina --icon
OnlyShowIn=Unity;

Related Stories

%d bloggers like this: