Category: Linux

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 Next attach a subscription # subscription-manager list –available | awk ‘/Pool/ { system (“subscription-manager attach –pool=”$3) }’ […]

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

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 stop Stopping plexmediaserver. Cleaning up leftover child processes. 3) Copy the plex update to the current directory 3) Unzip the Plex update (the exact name of the update will be slightly different to what is shown) root@plex:/usr/local/share/plexmediaserver […]

Mount ISO images under Linux

Procedure to mount ISO images under Linux 1) You must login as a root user, if not root user then switch to root user using following command: $ su – 2) Create the directory i.e. mount point: # mkdir -p /mnt/disk 3) Use mount command as follows to mount iso file called disk1.iso: # mount […]

Next Page »