Category: Linux

Plagiarized pretty much everything from this fantastic article: https://forums.centos.org/viewtopic.php?t=53452 fdisk /dev/sdc mkfs.ext3 /dev/sdc mkdir /boot/tmp mount /dev/sdc1 /boot/tmp cp mykeyfile /boot/tmp grep linux16 /boot/grub2/grub.cfg luks-… cryptsetup luksAddKey /dev/disk/by-uuid/0501aed9-6234-484a-9faf-3a6882be00c6 /boot/tmp/mykeyfile cryptsetup luksAddKey /dev/disk/by-uuid/1584e28a-5842-48b7-42c2-158a215dc31e /boot/tmp/mykeyfile vi /etc/dracut.conf.d/usb-decrypt.conf omit_dracutmodules+=”systemd” filesystems+=”ext3″ :wq! dracut -fv …

CentOS 7: LUKS key on a USB drive Read More »

Prerequisites: Fedora 29 Apache MariaDB # rpm -Uvh http://rpms.famillecollet.com/fedora/remi-release-29.rpm # dnf –enablerepo=remi,remi-test install phpMyAdmin If you’re looking to log on remotely – like from a Windows machine, enable remote logins. Keep in mind everyone can access the login screen.Replace   …

Install PhpMyAdmin Fedora 29 – quick Read More »

Tagged with: , ,

I have multiple files with same suffix and need to remove the suffix.

Tagged with: , , , , , ,

Stop Bareos services: # systemctl stop bareos-dir; systemctl stop bareos-fd; systemctl stop bareos-sd Remove files: # rm -R /var/lib/bareos/storage/ # rm /var/lib/bareos/* Drop & create database cd /usr/lib/bareos/scripts ./drop_bareos_database ./create_bareos_database ./make_bareos_tables ./grant_bareos_privileges Restart Bareos services: # systemctl start bareos-dir; systemctl …

Reset Bareos 18.2 on Fedora 29 Read More »

Tagged with: , , , , ,

Thanks to @jackson over at linuxhelp.com, with a couple of tweaks, I was able to install Bareos 18.2 on Fedora 28 Server.   Here is the original article: https://www.linuxhelp.com/how-to-install-bareos-in-centos You’re choice of a VM or bare metal machine.  I choose VMware …

Install Bareos 18.2 and webui in Fedora 29 Server Read More »

Tagged with: , , , , , , , , ,

I screwed up several times.  I usually maintain two redundant backup drives; a raid and a single 5TB drive backup.  A few months ago, a customer on a limited budget needed a high capacity raid for something-or-another.   So I told …

Recovering Data From A Partially Formatted ext4 Drive Read More »

Two machines, a file server and a workstation.. File server AND workstation: Add host name entries, :wq. # vi /etc/hosts 192.168.1.127 FileServer 192.168.1.128 WorkStation Install the required software, enable and start rpc bind. # dnf -y install install nfs-utils libnfsidmap …

Fedora 27 – Configure NFS Server and Client Read More »

Tagged with: , , , , , , , , , , ,

Cake. # dnf -y install autofs # systemctl enable autofs # systemctl start autofs

Tagged with: , , , , , , ,

‘reboot’ and ‘shutdown’ won’t work in a script, so add a fully pathed reboot or shutdown directly into root’s crontab # crontab -e Add the line to reboot at midnight everyday, shutdown at 10pm everynight 0 0 * * * …

Fedora 23,24,25,26,27 – reboot or shutdown with cron Read More »

Tagged with: , , , , , , , ,

Enable sftp ONLY # useradd dave # groupadd sftpusers # usermod -G sftpusers dave # vi /etc/ssh/sshd_config – 140G – comment out and add a line below #Subsystem sftp /usr/libexec/openssh/sftp-server Subsystem sftp internal-sftp – add to the end Match Group …

Fedora 26,27 – Enable sftp ONLY and TigerVNC server Read More »

Tagged with: , , , ,