Quantcast
Image

Search Results for: empty

How to start with an empty session in KDE

By  •  December 2, 2021

KDE will automatically start from where the user left off in their previous session. KDE, for example, keeps track of open applications and their window positioning when a user …
Read More

How to install Git on Ubuntu

By  •  December 2, 2023

Git is by far the most widely used distributed version control system while being free and open source. git client is not installed by default in the desktop variants …
Read More

How to redirect naked domain to www in cPanel

By  •  November 28, 2023

Naked domain (also called bare or non-www domain) is a domain name without the preceding www. Non-www domain is usually preferred because it's shorter. However, the www domain is …
Read More

How to prevent hotlinking in Apache

By  •  November 28, 2023

Hotlinking, often referred to as bandwidth theft, happens when other websites directly link to images or other media files hosted on your server. This can lead to increased server …
Read More

How to prevent hotlinking in Apache

By  •  November 28, 2023

Hotlinking, often referred to as bandwidth theft, happens when other websites directly link to images or other media files hosted on your server. This can lead to increased server …
Read More

How to extract tar.gz file in Linux

By  •  May 28, 2023

To extract a tar.gz file, the most basic syntax is as the following;

$ tar xvf filename.tar.gz

The command will extract the file to the current working directory. Current versions of the tar program doesn’t require the -z switch, as it auto detects the file format and extract accordingly.

To extract in verbose mode, and to a directory called /target, the following is the syntax;

$ tar xvf filename.tar.gz -C /target

How to install Git client in Ubuntu

By  •  May 28, 2023

Git is a by far the most widely used distributed version control system while being free and open source.

Despite the popularity, it’s not installed by default in Ubuntu. You can install the program by following these steps;

  1. Update apt‘s package list

    $ sudo apt -y update
  2. Install git-core package

    $ sudo apt -y install git-core
  3. Test by running git from the command line

    $ git
    usage: git [--version] [--help] [-C <path>] [-c name=value]
               [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
               [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
               [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
               <command> [<args>]
    
    These are common Git commands used in various situations:
    
    start a working area (see also: git help tutorial)
       clone      Clone a repository into a new directory
       init       Create an empty Git repository or reinitialize an existing one
    ------ snipped ------

If you prefer to use GUI-based Git client, you can choose any of the following packages to install via apt;

  • gitk
  • giggle
  • git-cola
  • git-gui
  • gitg

How to add or remove passphrase on SSH key

By  •  May 28, 2023

You can add or remove passphrase for your SSH private keys after creating your key pairs without creating a new key pair by using any of the following methods;

  1. Interactive ssh-keygen

    $ ssh-keygen -p
    Enter file in which the key is (/home/user/.ssh/id_rsa):
    Enter new passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved with the new passphrase.
  2. Inline ssh-keygen

    $ ssh-keygen -p -P old_passphrase -N new_passphrase -f /home/user/.ssh/id_rsa
    Your identification has been saved with the new passphrase.
  3. openssl

    $ openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new
    Enter pass phrase for /home/user/.ssh/id_rsa:
    writing RSA key

How to login without password in phpMyAdmin

By  •  May 28, 2023

You will get the below error when logging in to phpMyAdmin without password even if your actual MySQL account itself is passwordless. This is because phpMyAdmin is normally configured to disable passwordless login due to security reasons.

Login without a password is forbidden by configuration (see AllowNoPassword)

To enable passwordless MySQL login in phpMyAdmin, you’ll need to set AllowNoPassword option in phpMyAdmin‘s configuration to TRUE.

To enable the option, uncomment or add the following line;

$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

Depending on distributions, there could be multiple occurrences of that particular line. Ubuntu for example has the following 2 lines;

if (!empty($dbname)) {
    // other configuration options
    $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
    // it should be placed before the following line
    $i++;
}

// other configuration options
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

How to insert disk image to VM disc drive in VirtualBox

By  •  December 2, 2021

A virtual optical device is by default attached to the virtual machines in VirtualBox. You can insert a disk image into the optical drive to install an application or …
Read More

Top