THEAARBS - 2019-03-10 23:57:41

Theatomheart’s Auto-Rice Bootstrapping Scripts (THEAARBS) THEAARBS will automatically setup my Arch Linux configuration and workflow. Credit Many thanks to Luke Smith and his YouTube channel for demonstrating why I should switch to I3. THEAARBS is directly lifted forked from Luke’s LARBS scripts. Getting THEAARBS is easy Open a terminal as root and run the following command: curl -sSL theatomheart.net/theaarbs.sh | bash Or, since piping to bash is risky, review the script before running it:

Arch Linux Install - 2019-03-10 14:13:25

Boot your computer to a USB drive with the latest Arch Linux iso, then follow these steps: Ping a public DNS or IP address to make sure you’re connected to the internet. ping 8.8.8.8 Turn NTP on timedatectl set-ntp true Prepare your disk Use lsblk to determine which disk to prepare. This example will use disk sda. fdisk to set partitions fdisk /dev/sda Create new partitions. # Delete existing partitions, if needed d -- delete partition [Enter] -- default partition number # Repeat until no partitions exist # Boot partition n -- new partition p -- primary [Enter] -- default partition number [Enter] -- default first sector +200M -- last sector # Swap partition (change +8G to match 100% or 150% of your RAM size) n -- new partition p -- primary [Enter] -- default partition number [Enter] -- default first sector +8G -- last sector # Root partition n -- new partition p -- primary [Enter] -- default partition number [Enter] -- default first sector +50G -- last sector # Home partition n -- new partition p -- primary [Enter] -- default partition number [Enter] -- default first sector [Enter] -- uses the rest of the drive space # Write the changes to finish fdisk w Create filesystems mkfs.

How To Linux Server - 2019-03-01 03:47:15

For Pi-Hole servers, I have a post with some tips on How to Pi-Hole Also check out my ASSSS – A Simple Server Sync Script for an example of a backup job that can be automated on your server to sync data to a backup repo. Packages sudo apt-get install vim ranger tmux htop neofetch rsync msmtp curl my tmux config mkdir -p ~/.config/tmux curl theatomheart.net/raw/.config/tmux/tmux.conf >~/.config/tmux/tmux.conf Setup msmtp for notifications Create a ~/.

How To SSH - 2018-12-11 00:27:03

Step 1: Create the RSA key pair on the connecting (client) computer ssh-keygen -t rsa You’ll be asked where to save the key. ‘~/.ssh/id_rsa’ is the default. The entire keygen process should look similar to this: ssh-keygen -t rsa Output Generating public/private rsa key pair. Enter file in which to save the key (/home/demo/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/demo/.

Useful Cron Examples - 2018-11-15 20:29:22

Syntax Linux crontab has six fields. 1-5 fields defines the date and time of execution. The 6’th fields are used for command or script to be executed.The Linux crontab syntax are as following: [Minute] [hour] [Day_of_the_Month] [Month_of_the_Year] [Day_of_the_Week] [command] Astrics (*) – Matches anything Define range – You can define range using the hypen like: 1-10 or 20-30 or sun-fri or feb-apr Define multiple range – You can define multiple ranges with command seprated like: jan-mar,jul-sep How to Add/Edit Crontab To add or update job in crontab, use below command.

Useful DD Commands - 2018-11-15 20:29:22

Duplicate several drives concurrently dd if=/dev/sda | tee >(dd of=/dev/sdb) | dd of=/dev/sdc If you have some drive imaging to do, you can boot into any liveCD and use a commodity machine. The drives will be written in parallel. To improve efficiency, specify a larger block size in dd: dd if=/dev/sda bs=64k | tee >(dd of=/dev/sdb bs=64k) | dd of=/dev/sdc bs=64k To image more drives, insert them as additional arguments to tee:

How To Pi-Hole - 2018-09-15 20:29:22

Install curl -sSL https://install.pi-hole.net | bash Gravity Lists https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts https://mirror1.malwaredomains.com/files/justdomains http://sysctl.org/cameleon/hosts https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt https://hosts-file.net/ad_servers.txt https://smokingwheels.github.io/Pi-hole/allhosts http://someonewhocares.org/hosts/hosts https://www.malwaredomainlist.com/hostslist/hosts.txt https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt Fix static IP assignment Edit the file /etc/network/interfaces Make sure you have lines that look something like: # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.1 Fixing HTTPS Issues That Cause Slow-Loading Pages Pi-hole is only handling the DNS queries and doesn’t know about the other protocols that are taking place.

Raspberry Pi Stuff - 2018-06-10 20:19:03

As the Raspberry Pi doesn’t have a conventional BIOS, the various system configuration parameters that would normally be kept and set using the BIOS are now stored in a text file named “config.txt”. The Raspberry Pi config.txt file is read by the GPU before the ARM core is initialized. This file is an optional file on the boot partition. It would normally be accessible as /boot/config.txt from Linux, but from Windows (or OS X) it would be seen as a file in the accessible part of the card.

Current Winning Conky - 2018-01-20 21:25:07

My current favorite Conky config that I use nowhere. background no xinerama_head 1 use_xft yes xftfont Monospace:size=10 xftalpha 0.1 update_interval 2 total_run_times 0 own_window yes own_window_type normal own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes text_buffer_size 256 draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color gray default_shade_color red default_outline_color green alignment top_right gap_x 10 gap_y 10 no_buffers no uppercase no cpu_avg_samples 2 net_avg_samples 1 override_utf8_locale yes use_spacer none own_window_argb_value 0 own_window_argb_visual yes own_window_colour 000000 minimum_size 0 0 # Gris color2 6D6D6D # Blanco color3 FFFFFF # Verde color4 20B2AA # Morado color5 99297B # Rosa pálido color6 D2CBDD TEXT ${color4}╔════════════════════╗ ║${offset 15}${font Monospace:normal:size=10}${color6}SYSTEM: ${color5}$nodename ${offset 9}${color4}├──────────────────────┐ ${color4}├════════════════════╝ ${alignr}│ └─╾┄${offset 15}${font Monospace:normal:size=10}${color6}${offset 24}Up Time: ${color5}$uptime ${color4}${alignr}│ ${offset 16}└┄${offset 15}${font Monospace:normal:size=10}${color6}Local Time: ${color5}$time ${color4}${alignr}│ ${color2}${alignr}${voffset 4}${battery_short}${color4} ${battery_bar 14,140}${voffset -4}${color4}┨ ${offset 88}┌───────────────┶┷┷┷┷┷┷┷┷┷┷┷┷┷┷┵─╝ ${offset 8} ╔══┴══╗ ${offset 32} ║${offset 9}${font Monospace:normal:size=10}${color6}NET${color4}${offset 7}├──┬┄┄ ${color6}PUBLIC:${color5}${execi 3600 wget -q -O /dev/stdout http://checkip.

How To Use SFTP to Securely Transfer Files with a Remote Server - 2018-01-11 00:27:03

By Justin Ellingwood How to Connect with SFTP By default, SFTP uses the SSH protocol to authenticate and establish a secure connection. Because of this, the same authentication methods are available that are present in SSH. Although passwords are easy to use and set up by default, we recommend you create SSH keys and transfer your public key to any system that you need to access. This is much more secure and can save you time in the long run.

How to Rescue a Non-booting GRUB 2 on Linux - 2018-01-11 00:27:03

By Carla Schroder Once upon a time we had legacy GRUB, the Grand Unified Linux Bootloader version 0.97. Legacy GRUB had many virtues, but it became old and its developers did yearn for more functionality, and thus did GRUB 2 come into the world. GRUB 2 is a major rewrite with several significant differences. It boots removable media, and can be configured with an option to enter your system BIOS.

PPTP VPN - 2017-09-15 20:29:22

Install pptp-linux package sudo apt-get install pptp-linux Create a PPTP connection profile sudo pptpsetup --create <nameofvpn> --server <vpn.server.com> --username vpnuser When you hit ENTER you should be asked for the VPN password. The profile will be saved in /etc/ppp/peers/ To enable the VPN connection sudo pon <profilename> You can see your PPTP connection using ifconfig -s. It should be listed under ppp0. To kill the VPN connection

Mount SMB Network Drives in Linux - 2017-08-26 20:11:38

In order to mount the drive, you need to have cifs-utils installed on your system. sudo pacman -S cifs-utils sudo apt-get install cifs-utils Mounting network folders You might have public folders on your network drive that can be accessed by anyone without having to provide any credentials. These are mounted in the same way as password-protected folders (we will mount these in the next section), but with a few different options.

VNC Setup is Easy - 2017-08-26 20:03:33

Install x11vnc sudo pacman -S --noconfirm x11vnc Store VNC password to a file x11vnc -storepasswd By default this will store your password at ~/.vnc/passwd Add this command to your startup script x11vnc -forever -rfbauth /home/[username]/.vnc/passwd For Raspberry Pi If the Raspberry Pi is headless, you may want to add the following lines to /boot/config.txt hdmi_force_hotplug=1 hdmi_group=1 hdmi_mode=16

Hide Your Processes From Other Users in Linux - 2017-08-26 14:52:20

All modern multi-tasking operating systems, including Linux, run a series of processes for each of the tasks being executed. A notepad application is a process, a terminal window is a process, the SSH server is a process, each SSH connection is a process and so on. Linux schedules the various system resources (CPU time, memory, I/O) so that each process get an opportunity to run. To see the list of current processes running, you can use the ps command.

How To Encrypt Directories/Partitions With eCryptfs - 2017-08-26 14:37:49

This example provides steps for encrypting an existing home directory Install eCryptfs apt-get install ecryptfs-utils Backup existing Home directory cp -pfr /home/[username]/ /tmp/ Mount /home/[username] with the file system type ecryptfs mount -t ecryptfs /home/[username] /home/[username] Select cipher: aes Select key bytes: 16 Enable plaintext passthrough (y/n) [n]: <-- ENTER Enable filename encryption (y/n) [n]: <-- ENTER Would you like to proceed with the mount (yes/no)? : <-- yes Would you like to append sig.

Linux Command Line Guide - 2017-08-22 20:20:23

Commands dealing with managing files, directories, compressing and extracting, encrypting, etc… …can be reviewed in my (THEAARBS) ranger rc.conf file. Extract commands can be reviewed in my (THEAARBS) extract script. Secure Shell Run command [c] as a user [u] on host [h] ssh [u]@[h] [c] Run GUI command on host [h] as user [u] ssh -f -Y [u]@[h] xeyes Forward connections to host [h]:8080 ssh -g -l 8080:localhost:80 root@[h] Forward connections from host [h]:1434 to imap

Disk Cloning in Linux - 2017-03-03 11:17:41

The dd command utility is a simple yet powerful and useful command available in Unix and Linux systems which is used to convert and copy files. Unix like systems treat all devices as files and these device files are located in the /dev directory in your system. So typically your hard disk drive is a file in the /dev directory with the prefix of hd or sd (depending on IDE or SCSI driver).

ASSSS -- A Simple Server Sync Script - 2018-05-06 03:11:46

Raw #!/bin/bash # A Simple Server Sync Script ### Required packages # rsync -- runs the data sync process # cifs-utils -- for windows/smb shares # sshfs -- for ssh mounts # msmtp -- for email notifications ### User-defined variables # Name the backup job BackupName="Client Name Backup" # The path where logs should be stored LogFolder="$HOME/Logs/client" # The path to the source/root folder to be backed up SourcePath="/media/clientmounts/client-name" # The path to the backup target/repository TargetPath="/media/repo-name/client-name/sync" # The command used to mount the backup source SourceMountCommand="sshfs hostname.