Enter your ssh-passphrase once, use it many times, even from crontab | Me in IT

Recently I wanted to set up rsync to backup my home directory to another machine using ssh. Since I have set up ssh keys with a passphrase, It proposed a problem with my rsync script. This is a dirty little fix I found. It is not perfect as I have to remember to open a console and enter my passphrase every time I restart my machine, but it suits my needs just fine.

 

Enter your ssh-passphrase once, use it many times, even from crontab | Me in IT.

My Arch Linux install

Right now I am having fun using Arch Linux. In my opinion, Arch is the best distro available.  I have installed it with and with out window managers, used openbox blackbox, gnome, lxde, lxqt and currently am running KDE and dual booting with Gnome on a separate hard drive. Normally reinstalling from scratch take a little bit of time. But I streamlined the process a bit by using my notes and installing off the other drive as opposed to booting with a live usb.

First I start the Arch system I want to keep and make sure I have installed arch-install-scripts available from the official repositories. This allows me to run arch-chroot after I have set up my drives to my liking and I am able to install arch from a desktop environment.  Anyone reading this can use the install guide from this point or take notes like I did and just copy and paste them onto your terminal. I know, some hardcore people will think “not hardcore enough” but that ok. Anyway, here are my notes, (copied from the Arch wiki)

 

pacstrap -i /mnt base base-devel

genfstab -U -p /mnt >> /mnt/etc/fstab
nano /mnt/etc/fstab
arch-chroot /mnt /bin/bash
nano /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
hwclock –systohc –utc
echo Arch-NINE > /etc/hostname
nano /etc/hosts
systemctl enable dhcpcd@enp5s0.service
passwd

mount -t efivarfs efivarfs /sys/firmware/efi/efivars # ignore if already mounted
pacman -S gummiboot
gummiboot install
nano /boot/loader/entries/arch.conf

title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sdc2 rw
blkid -s PARTUUID -o value /dev/sdxx

pacman-key –init && pacman-key –populate archlinux
useradd -m -g users -G wheel,video,storage -s /bin/bash tom
passwd tom

pacman -S sudo ttf-dejavu ttf-liberation xorg-server xorg-server-utils
EDITOR=nano visudo
pacman -S –needed xorg-apps
pacman -S dosfstools btrfs-progs
pacman -S mesa
pacman -S nvidia
infinality fonts

sudo nano /etc/pacman.conf

[infinality-bundle]
Server = http://bohoomil.com/repo/$arch

#[infinality-bundle-multilib]
#Server = http://bohoomil.com/repo/multilib/$arch

[infinality-bundle-fonts]
Server = http://bohoomil.com/repo/fonts

sudo pacman-key -r 962DDE58
sudo pacman-key –lsign-key 962DDE58

sudo pacman -Syy

sudo pacman -S infinality-bundle infinality-bundle-multilib ibfonts-meta-base

CHANGE BOOT LABEL
efibootmgr -d /dev/sdc -p 1 -c -L “KDE” -l /vmlinuz-linux -u “root=/dev/sdc2 rw initrd=/initramfs-linux.img”

exit
umount -R /mnt
reboot

I usually run my install to the finish.. such as, add my user, set my user password, install a wm or desktop environment etc as opposed to exiting and rebooting after installing gummiboot.

 

archkde