For system, network and cloud administrators

How to start a GUI from the command line in Linux?

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.


How to install an run OpenVPN?

OpenVPN is a software compatible with both Windows and Linux, often used in corporations for creating secure connections towards their own internal IT infrastructure.

Install OpenVPN on Ubuntu 18.04/20.04 LTS

Open your Ubuntu terminal and type:

sudo apt-get install openvpn openvpn-systemd-resolved 

Run OpenVPN on Ubuntu 18.04/20.04 LTS

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.


How to disable computer from sleeping?

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).

macOS

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


How to properly format your USB drive with CMD or PowerShell

How to properly format your USB drive with CMD or PowerShell

If you’re seeing three dots instead of the name of your USB drive on your Windows, then you need to know how to properly format it with CMD or PowerShell.


How to force browser redirect insecure HTTP to secure HTTPS, on your website

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.

  1. Generate your own free OpenSSL certificate for your website.
  2. Create a file called .htaccess and PASTE the following code into it (NOTE: the file must be created inside the root of your website; for example, inside the www/ or public_html/ folder of your website):
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  3. Test your work by typing inside a private window of your web browser, your domain but without the http or www. For example, type just yourdomain.com and check your browser’s return:
How to force browser redirect insecure HTTP to secure HTTPS, on your website
busy.network example

Follow BusyNetwork