ArchivesCategory: Linux


To create aliases in Debian do the following. Be sure you are in your home directory. nano .bashrc add the following line at the end of .bashrc alias shortcutname = [commandgoes here] or create a .bash_aliases file and add all your aliases to that.Continue Reading


Open Dolphin as root. # pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin or Add a bookmark and paste command see image or Create a shell script 1. create a file called and inside the document add this. #!/bin/bash pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin 2. run script # sh runasroot.shContinue Reading


Linux short cuts Basic Commands List files / Show Hidden file / long listing ls / ls – a / ls -la Remove/delete Files rm filename Display files permissions in number format i.e “0755” stat -c ‘%a – %n’ * change directory / home directory / root Directory cd directory / cd ~ / cd […]Continue Reading


Create Virtual Host that can be access locally for wordpress development. Create Directory sudo mkdir /var/www/wordpress.local Create test html file sudo nano /var/www/wordpress.local/index.html Add code to test fie <html> <head><title>wordpress.local</title></head> <body>wordpress.local</body> </html> Apache comes with a default virtaul host file call 000-default.conf. We will use that as a template. sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/wordpress.local.conf Open virtual […]Continue Reading


sudo apt install -y php-json php-mbstring Install phpMyAdmin phpMyAdmin package is not yet available in Debian repository for Debian 10. So, we need to download the tar package from the official website. wget Extract the phpMyAdmin tarball using the following command. tar -zxvf phpMyAdmin- Move the phpMyAdmin set up to the desired location. sudo […]Continue Reading


Create file in home directory called .mylogin.cnf add the following [client] user = username password = password set permissions to chmod 600 /home/alienfactory/.mylogin.cnf Cron all DB 0 1 * * * /usr/bin/mysqldump –defaults-extra-file=/home/alienfactory/.mylogin.cnf -u username –single-transaction –quick –lock-tables=false –all-databases > full-backup-$(date +\%F).sql Cron Specific DB 0 1 * * * /usr/bin/mysqldump –defaults-extra-file=/home/alienfactory/.mylogin.cnf -u app_user –single-transaction […]Continue Reading