Skip to main content

The first thing you need to do after RHEL 8 installation.



1 - First we need to setup a hostname for our new machine.
# hostnamectl set-hostname venom.thread.com

2 - Now you need to set up your IP address as you need.

3 - After all this, you need to configure yum server for package installation.
In order to configure yum, you have three options-
- Standalone Yum
- Network-Based Yum
- Third Party Yum (rpm fusion, epel release)

a- Standalone Yum - 
         Standalone yum is a type of yum server which will work for one particular machine. If you want to configure standalone yum then follow these instructions-

- First, you need to insert your bootable RHEL 8 DVD in your new redhat machine.
- Mount that DVD under /mnt-
# mount /dev/cdrom /mnt
- Now change your directory inside /etc/yum.repos.d
 # touch Appstream.repo BaseOS.repo      -you can define your own name.
Now we need to edit these two files now I'm starting with Appstream.repo-
 # vim AppStream.repo
 [AppStream] 
 name = AppStream repo
 baseurl = file:////mnt/AppStream
 enable = 1
 gpgcheck = 0
save and exit. 
# vim BaseOS.repo
 [BaseOS] 
 name = BaseOS repo
 baseurl = file:////mnt/BaseOS
 enable = 1
 gpgcheck = 0
save and exit.

This configuration is only for a temporary basis-
If you want this configuration permanent then you can copy everything from AppStream and BaseOS to any other directory, and put that entry inside these two repo files.

b - Network-Based Yum - 
       In order to configure the network-based yum server, we have to download and install "createrepo" package. Previous versions of Redhats come with the pre-installed createrepo package but in this version, we need to install "createrepo" package from external sources.
Now we need to set a static IP address to our server machine-
# nmcli connection add con-name static type ethernet ifname enp2s0 ipv4.addresses 192.168.0.5/24 ipv4.gateway 192.168.0.1 ipv4.dns 192.168.0.1 connection.autoconnect yes ipv4.method manual
# nmcli connection up static
 Now we need to install httpd/vsftpd package. After this, we have to copy all packages inside the document root of respective service. I'm gonna show you with httpd service.
# yum install httpd -y
Create a directory under /var/www/html
# mkdir /var/www/html/packages
Now copy all the rpm packages inside /var/www/html/packages
# cp -rv /mnt/AppStream/Packages/* /var/www/html/packages
# cp -rv /mnt/BaseOS/Packages/* /var/www/html/packages
Now we need to create repo file inside yum.repos.d directory.
# vim /etc/yum.repos.d/http.repo
[httpd-yum]
name = httpd based yum server
baseurl = http://192.168.0.5/packages
enable = 1
gpgcheck = 0
save and exit

Now we need to run createrepo command to activate the repository.
# createrepo-v /var/www/html/packages
Now we can check repolist.
# yum repolist all 
It's done.

c - Third Party Yum - 
         We need to download rpm fusion package and epel-release package from official website and install it.
# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -ivh  epel-release-latest-7.noarch.rpm
Now it's done. 

If you have any doubt comment below.
If you want to contact me mail me johntheh4cker
 

Comments

Popular posts from this blog

How to install BlackArch Linux in VirtualBox

In this blog, I'm going to show you how to install BlackArch Linux in VirtualBox/VMWare. Open your VirtualBox application and click on create a new virtual machine from the main menu. Assign a minimum 2GB ram minimum. Add hard-disk of at least 50GB. Now boot the newly created VM and start the installation process. First, select Boot Black arch Linux, and if you have Nvidia graphics then select Boot BlackArch Linux (nonfree). First thing first you need to login in your new BlackArch live session. The default username and password is root & blackarch. Now after this open terminal and type first command #blackarch-install- #blackarch-install After that, you need to follow the instructions. - Select the second option Install from black arch Live-ISO and hit enter.   - Now you need to select the output method quiet or verbose, here I'm selecting the second option verbose mode.  - Now select your locale settings, according to your locality, her...

How to install and setup Manjaro-i3 for the first time.

Hey, guys today I'm going to show you how to install and setup Manjaro-i3. In this case, first of all, we need to know what is Manjaro and the difference between Manjaro & Manjaro-i3. What is Manjaro? Manjaro is an opensource Linux distribution based on ArchLinux. Its basically used for personal work or we can say that this distribution is the workstation edition of ArchLinux. What is i3? i3 is a desktop environment used in many distributions. It looks good and clean. If you are good at remembering shortcuts and commands then this is for you. It's a lightweight desktop environment. If you are switching to i3 from a gnome desktop environment then you will find some dificulties to use it, but you will learn very quickly. In my opinion, this is the most beautiful desktop environment I have ever used. Now let's take a look at how to install it in VirtualBox . First of all, create a virtual machine with at least 2 GB ram and 40 GB HDD space. Now a...

Object storage configuration through MinIO

Object storage configuration through MinIO   Hi guys, in this blog I'm going to explain to you how to set up an object storage server in your local system through MinIO object storage. What is Object Storage - Object storage is a computer data storage architecture that manages data as objects. It can directly store files, unlike block storage. What is MinIO - Minio is a popular open-source object storage server. The service stores unstructured data such as photos, videos, log files, backups, and container/VM images, and can even provide a single object storage server that pools multiple drives spread across many servers. Prerequisites - Ram - 2GB (testing), 4GB recommended. HDD - As per your requirements. Static IP address. If you want to host it on the web then get a domain name. Configuration - First thing you need to update your server. # sudo apt update -y Now you need to download “minio” package by using the following command - # wget https://dl.min.io...