Category: Linux

  • Linux Command Line Text Editors Essentials

    Linux Command Line Text Editors Essentials

    Linux Command Line Text Editors Essentials Nano Related Links Nano ctrl + c = temporary show line numbersalt + c = show line numbers and characterctrl + k = remove linectrl + w = search Related Nano Essentials How to Create a Command Alias in Linux Find Command in Linux Linux Users Linux Groups Displaying…

  • Symbolic Link Essentials

    Symbolic Link Essentials

    Symbolic Link Essentials Examples Related Links Examples ln -s target link ln -s /mnt/nas/downloads/ /home/u/Downloads Related Displaying Network Statistics in Linux Find Command in Linux IP Forwarding in Linux Linux IP Essentials Linux Routing Essentials Linux Users Linux Groups LUKS: Linux Unified Key Setup Essentials NetPlan Essentials Set Sound Output Device via Command Line tar…

  • Grep Essentials

    Grep Essentials

    Switch/Flag Description -A How many lines after -B How many lines befoe -C Context , Number of lined before & after match -i Case insensitive Related SSH Tunneling Essentials Working With SSH Keys How to Find Text Within Files ripgrep Essentials Links

  • UFW Essentials

    UFW Essentials Installing UFW Enable UFW Disable UFW Adding Rules Removing Rules Checking Satus Locations IPv4 IPv6 Related Links Installing UFW sudo apt updatesudo apt install ufw Enable UFW sudo ufw enable Disable UFW sudo ufw disable Adding Rules sudo ufw allow from 10.0.0.0/24 to any port 22:77 proto tcp comment ‘Custom-FROM LAN10’sudo ufw allow…

  • How to Blank the Screen on a Linux Desktop

    How to Blank the Screen on a Linux Desktop

    How to Blank the Screen on a Linux Desktop RelatedLinks Had the need to blank the screen on a Linux laptop overnight to reduce power consumption. sudo apt-install gnome-screensaver Now the screen can be blanked with the following command line command. gnome-screensaver-command -a Create Launcher Shortcut For times when the screen needs to be blanked…

  • Rsync Essentials

    Rsync Essentials

    rsync -aHxvK –delete –stats /path/to/source/dir/ /path/to/destination/dir -a, –archiveEquivelent of -rlptgoD (no -H,-A,-X) -H, –hard-linksPreserve hard links -x, –xattrsPreserve extended attributes -v, –verbose -K, –keep-dirlinks Treat symlinked dir on receiver as dir –delete Wil delete files from the destintion that no longer exist in the source. –statsProvides some file-transfer stats –log-file=/home/user/rsync.logSave a log file to /home/user/rsync.log…

  • Create OpenSSL CA (Certificate Authority) for Dev/Test Purposes

    How to create a non production highly insecure CA for dev/test purposes. Create Basic Framework CA Config File Client Config File CA:-Create-Private-Key-&-Self-Signed-Certificate Inspect-the-CA-Self-Signed-Certificate Inspect-the-CA-Self-Signed-Certificate-for-its-Purpose/Ability Client:-Generate-Private-Key-&-Certificate-Signing-Request-(CSR) Inspect-the-CSR-(Certificate-Signing-Request) CA:-Sign-the-CSR Inspect-the-new-Client-Certificate Making-the-Certificate-Authority-Trusted Notes Create Basic Framework touch openssl-ca.cnf openssl-client.cnf index.txt serial.txtecho ’01’ > serial.txt There should now be 4 files index.txt openssl-ca.cnf openssl-client-cnf serial.txt CA Config File Edit…

  • Install WireGuard on Raspberry Pi Zero W

    Install WireGuard on Raspberry Pi Zero W

    Installing WireGuard on a Raspberry Pi Zero is slightly different to the normal Install WireGuard on Raspberry Pi Raspbian method. Update System Install Prerequisites Clone WireGuard Repository Compile WireGuard Updating WireGuard Auto Start Check Status Stop Service Disable Auto Start Generating Keys Commands Only Related Links Update System Hit:1 http://archive.raspberrypi.org/debian buster InReleaseGet:2 http://raspbian.raspberrypi.org/raspbian buster InRelease…

  • Install WireGuard on Raspberry Pi Raspbian

    Install WireGuard on Raspberry Pi Raspbian

    Install WireGuard on Raspbian Buster Install Make WireGuard Auto Start Automatically Generating Keys Related Links Install Soon it will be as easy as sudo apt install wireguard Until then here is how it can be done. sudo apt updatesudo apt upgradesudo apt install raspberrypi-kernel-headers After this operation, 163 MB of additional disk space will be…

  • WireGuard Essentials

    WireGuard Essentials Install Wireguard Ubuntu 20.04 + Install WireGuard on Ubuntu Pre 19.10 Generate Server Keys Setup Firewall Enable Packet Forwarding Install Open Resolv Setup Server Interface Online Server Interface Generating Client Keys Add Client To Server As Peer Install QR Generator Generate QR Code Make WireGuard Auto Start Automatically Problems and Fixes Related Links…

  • Auto Connect OpenVPN Client Startup Raspian

    How to have an OpenVPN client connect on system Startup. How to set up a persistant OpenVPN client connection on Raspian. Ensure *.conf file is located in /etc/openvpn/*.ovpn files will not work, they will need to be renamed to *.conf.Renaming a ovpen file to conf is ok and does work. Edit /etc/default/openvpn Ensure a similar…

  • How to change Nautilus background to black

    How to change the background color of Nautilus. sudo apt install -y gnome-tweaks gnome-tweaks Applications>Themes Applications>Adwaita-dark

  • How To Install Google Chrome on Ubuntu Linux

    How To Install Google Chrome on Ubuntu Linux

    How To Install Google Chrome on Ubuntu Linux Related Links How To Install Google Chrome on Ubuntu Linux sudo wget -q -O – https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add – sudo sh -c ‘echo “deb http://dl-ssl.google.com/linux/chrome/deb stable main” >> /etc/apt/sources.list.d/google.list’sudo apt-get updatesudo apt-get install -y google-chrome-stable Tested with Ubuntu 1710 Related Move Files If They Exist…