Tue, Oct 22, 2019

Install Brother printer and scanner MFC-L2700DW on Arch Linux

Install sane pacman -S sane Install brother-mfc-l2700dw and brscan4 trizen -S brother-mfc-l2700dw brscan4 Config the scanner functionality, by IP, brsaneconfig4 -a name=<CHOSEN NAME> model=MFC-L2700DW ip=<IP ADDRESS> or by host name brsaneconfig4 -a name=<CHOSEN NAME> model=MFC-L2700DW nodename=<HOSTNAME> In CUPS (localhost:631), configure new printer with IPP/driverless and driverless CUPS driver. Test Print something ... Scan something scanimage --format=png > test.png

Read more about Install Brother printer and scanner MFC-L2700DW on Arch Linux
Thu, Oct 10, 2019

2019 10 10 Backup LUKS header

Create a directory only accessible by root with a ramfs mkdir /root/<tmp> mount ramfs /root/<tmp> -t ramfs To create a backup image cryptsetup luksHeaderBackup /dev/<device> --header-backup-file /root/<tmp>/<file>.img To encrypt the image with gpg gpg2 --recipient <User ID> --encrypt /root/<tmp>/<file>.img Then move the encrypted file around. Finally, unmount ramfs directory umount /root/<tmp> See also https://wiki.archlinux.org/index.php/Dm-crypt/Device_encryption#Backup_and_restore

Read more about 2019 10 10 Backup LUKS header
Wed, Oct 9, 2019

2019 10 09 Setup Secure SSH Proxy Account

Create user useradd -m -s /sbin/nologin proxy Setup ssh cd /home/proxy mkdir .ssh touch .ssh/authorized_keys chown -R proxy:proxy .ssh chmod 700 .ssh chmod 640 .ssh/authorized_keys Set further restrictions if necessary. In /etc/ssh/sshd_config, add Match User proxy X11Forwarding no Add some user key echo "some SSH key" >> .ssh/authorized_keys Restart sshd systemctl restart sshd To start a SOCKSv5 proxy on localhost:8080, execute ssh -D 8080 proxy@proxyhost -N and leave it running.

Read more about 2019 10 09 Setup Secure SSH Proxy Account
Wed, Oct 9, 2019

2019 10 09 Setup Secure SSH Tunnel Account

Create user useradd -m -s /sbin/nologin tunnel Setup ssh cd /home/tunnel mkdir .ssh touch .ssh/authorized_keys chown -R tunnel:tunnel .ssh chmod 700 .ssh chmod 640 .ssh/authorized_keys Set further restrictions if necessary. In /etc/ssh/sshd_config, add Match User tunnel PermitOpen 5.6.7.8:22 X11Forwarding no Add some user key echo "some SSH key" >> .ssh/authorized_keys Restart sshd systemctl restart sshd On your work station open two terminals. On the first one,

Read more about 2019 10 09 Setup Secure SSH Tunnel Account
Tue, Apr 23, 2019

2019 04 23 Extend Partition and Filesystem on Adjacent Partitions

1. boot on live USB 2. mount 3. backup And also backup partition information of fdisk -l /dev/sdX. 4. umount 5. delete both partitions To delete /dev/sdXY run fdisk /dev/sdX d Y p # to check w 6. create new partition Use same type and same first block as before fdisk /dev/sdX n e/p Y p w 7. check filesystem Run e2fsck e2fsck -f /dev/sdXY y y y y .

Read more about 2019 04 23 Extend Partition and Filesystem on Adjacent Partitions
Mon, Apr 8, 2019

Encrypted USB key

So easy!

Read more about Encrypted USB key
Wed, Apr 3, 2019

2019 04 03 Installing Syncthing

https://github.com/syncthing/syncthing

Read more about 2019 04 03 Installing Syncthing
Sun, Jan 20, 2019

Elementary Os 5.0 on HP spectre X360

plug usb boot esc esc esc esc BIOS Setup > System Configuration > System Power Scheme SET TO [Balance] save and exit esc esc esc esc boot from usb (UEFI) install elementary OS The account and LVM + encrypt password will be in the layout you choose. shutdown remove usb boot AppCenter > Updates install nvidia and intel drivers install OS updates restart System Settings > Mouse & Touchpad > Pointer speed: maximum

Read more about Elementary Os 5.0 on HP spectre X360
Thu, Jan 3, 2019

Encrypted Install With Arch Linux on UEFI

So easy!

Read more about Encrypted Install With Arch Linux on UEFI
Wed, Jan 2, 2019

Format Storage Device Linux

Very handy!

Read more about Format Storage Device Linux