Category: Linux
-
Crontab explained
-
Cannot boot because missing external disk
See man pages fstab(5) and mount(8). Using the nofail mount option will ignore missing drives during boot. nofail Do not report errors for this device if it does not exist. So your fstab line should instead look like: UUID=6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external ext4 defaults,nofail 0 0
-
Failed to set MokListRT: Invalid Parameter after updating a RedHat VM
On some hardware, the UEFI firmware seems too old to let shim-x64 write all the EFI variables due to memory constraints you can get around this by adding this line to /etc/yum.conf exclude=shim-x64,mokutil If you’ve already updated and need to fix the problem, try the instructions HERE
-
Creating and extending Linux LVMs
Notes on how to create or add disk, volume groups and logical volume in Linux (RedHat) 1. First add disk to system by what ever means your system requires. 2. Find name of disk using fdisk # fdisk -l /dev/sd* | grep i ‘Disk’ For my examples below, it would have listed sdb but not…
-
RHEL Subscriptions
To be able to use YUM on an RHEL server you need to register it with the RedHat servers. NB: You can do this with a Developer account, which is free! First register the system # subscription-manager register –auto-attach that enter your username and password. or add –username=<username> –password=<password> onto the end of the above…
-
Yum groups
# yum groups list # yum groups info “Development Tools” # yum groups install “Server with GUI”
-
Setting up SSH to use key pairs
If you SSH to the same server a lot and don’t want to type the password each time you can configure SSH so you don’t have to. First login to your terminal as normal and run $ ssh-keygen This will ask you the name of the key pair file you want to use. It will…
-
SELinux and Ports
Here is an example of how ports are controlled by SELinux. Say that the port that apache uses was changed to 1000 when you start apache you get these errors [root@server01 conf]# systemctl status httpd httpd.service – The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/httpd.service.d └─php-fpm.conf Active: failed (Result: exit-code)…
-
SELinux and file contexts
apache root document folder was changed from normal folder to /repos folder attempting to get index.html resutls in an error [root@server01 repos]# curl localhost/index.html Forbidden You don’t have permission to access /index.html on this server. set the correct context on the new folder [root@server01 repos]# semanage fcontext -a -t httpd_sys_content_t “/repos(/.*)?” check the context [root@server01…
-
How to manually update Plex in a FreeNAS jail
Pre-Update Steps Login to the servers as root Download the update to the server 1) change to the plexmeduaserver directory root@plex:/ # cd/usr/local/share/plexmediaserver 2) stop the plexmediaserver service root@plex:/usr/local/share/plexmediaserver # service plexmediaserver stopStopping plexmediaserver.Cleaning up leftover child processes. 3) Copy the plex update to the current directory 3) Unzip the Plex update (the exact name…