For system, network and cloud administrators
Assumming your graphical user interface (GUI) hasn’t started after you logged in, you can manually do so by typing the following command:startx
Now, depending on your X Window System GUI (GNOME, KDE, Unity, etc.), the command above starts your desktop.
OpenVPN is a software compatible with both Windows and Linux, often used in corporations for creating secure connections towards their own internal IT infrastructure.
Open your Ubuntu terminal and type:
sudo apt-get install openvpn openvpn-systemd-resolved
Open your Ubuntu terminal and type:
sudo openvpn --config path-to-openvpn-config-file.ovpn
After running OpenVPN, the system will require you to enter your local super user (if prompted) and after that, for your OpenVPN user and password.
Whenever I’d leave my computer open for more than 30-40 minutes without touching it, I’d always find it locked or with my VPN disconnected (which is really frustrating, especially when working remotely).
The command below will disable sleeping on your computer and it will keep it awake even if your laptop is not connected to a power source. So, open your terminal and type:
sudo pmset sleep 0
This article’s purpose is to show you how to force the web browser redirect your insecure HTTP web site to secure HTTPS by using .htaccess.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 