Posts

Showing posts with the label Tips

RHEL9 - Set static IP address

Requirement:  Assign static IP address on enp0s3 interface: ·        IP: 192.168.56.56 ·        netmask: 255.255.255.0 ·        gateway: 192.168.56.1 ·        dns: 8.8.8.8 1. Check information [root@barman ~]# systemctl status NetworkManager.service [root@barman ~]# NetworkManager --print-config [root@barman ~]# nmcli device   DEVICE  TYPE      STATE                   CONNECTION   enp0s8  ethernet  connected               enp0s8      enp0s3  ethernet  connected               enp0s3      lo      loopback  ...

RHEL8 - Create Local HTTP Yum/DNF Repository

  A.    Yum Server 1.       Install package httpd, createrepo 2.       Mount iso image for rhel8, edb4rhel8 [root@yum-server conf.d]# df –h … /dev/loop1               13G    13G      0 100% /edb /dev/loop2               14G    14G      0 100% /rhel8 3.       Copy all files from mount disks to repository [root@yum-server ~]# cp -r /rhel8/* /source/www/html/repo [root@ yum-server  ~]# cp -r /edb/* /source/www/html/repo/EDB 4.       Create Repository Metadata [root@ yum-server  ~]# createrepo /source/www/html/repo/BaseOS [root@yum-server ~]# createrepo /source/www/html/repo/AppStream [root@yum-server ~]# createrepo /source/www/html/repo/EDB   [root@yum-server ~]# ls -l /sourc...