Category: Linux

Install PhpMyAdmin Fedora 29 – quick

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  

Tagged with: , ,

Remove the same part of many filenames via command line

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

Tagged with: , , , , , ,

Reset Bareos 18.2 on Fedora 29

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

Tagged with: , , , , ,

Install Bareos 18.2 and webui in Fedora 29 Server

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

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

Recovering Data From A Partially Formatted ext4 Drive

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

Fedora 27 – Configure NFS Server and Client

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

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

Fedora 27 LXQT – Automount USB drive

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

Tagged with: , , , , , , ,

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

‘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 * * *

Tagged with: , , , , , , , ,

Fedora 26,27 – Enable sftp ONLY and TigerVNC server

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

Tagged with: , , , ,

Change Fedora LUKS passphrase

Open a command tool Enter current passphrase in slot 0 Add new passphrase into slot 1 > su – Password: xxxxxx # cryptsetup luksAddKey /dev/sdc1 If you delete both slots…You’ve lost everything. Delete original passphrase in slot 0 # cryptsetup

Tagged with: , , , , ,
Top