Tuesday, July 9, 2019

DNF server with local repo in RHEL 8 - 5 steps

Find the below steps for DNF server configuration in RHEL8 with local repo (repository).
YUM server is called as DNF server in RHEL8. yum command still works, however it is recommended to use dnf command always as a better practice.

Step 1: Mount the iso image to a directory.
#mount -o loop rhel-8.0-x86_64-dvd.iso /opt/ 

Step 2: Copy the media repo file from the /opt location to /etc/yum.repos.d/ location and change the recommended permission with the below commands.
#cp -v /opt/media.repo /etc/yum.repos.d/rhel8.repo
#chmod 644 /etc/yum.repos.d/rhel8.repo

Step 3: Create a local repo file with the below contents.
#vi /etc/yum.repos.d/rhel8.repo
[InstallMedia-BaseOS]
name=Red Hat Enterprise Linux 8 - BaseOS
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///opt/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[InstallMedia-AppStream]
name=Red Hat Enterprise Linux 8 - AppStream
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///opt/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Step 4: Type the below commands to set up dnf server with local repo.
#dnf clean all
#subscription-manager clean
#dnf repolist

Make sure enabled=0 in the given file as we use local repo only instead of satellite repo.
#vi /etc/yum/pluginconf.d/subscription-manager.conf
[main]
enabled=0

Step 5: Install and test with the below commands to find whether the dnf is ready.
#dnf install nginx
#dnf install nginx mariadb php -y
#dnf install mariadb-server

Saturday, July 6, 2019

Install Pantheon Desktop environment in Ubuntu 18.04 LTS

Step 1: #add-apt-repository ppa:elementary-os/stable
Step 2: #apt install elementary-desktop
Step 3: Choose the environment as lightdm
Step 4: #reboot
Step 5: Select default desktop environment as Pantheon desktop.

How to install gedit plugins in Ubuntu 18.04 LTS

Step 1: Update the package index: # sudo apt-get update

Step 2: Install gedit-plugins deb package: # sudo apt-get install gedit-plugins