Tuesday, February 14, 2023

red hat linux


1. connect to network. Modify the following network interface file

RedHat rhel no internet connection after install

vi /etc/sysconfig/network-scripts/ifcfg-ens33 (network interface)

https://www.youtube.com/watch?v=Skle0U2kvtE




2. https://access.redhat.com/solutions/253273

you need to register your new server. Create account on redhat and make sure go the developer portal for no-cost redhat registration

https://developers.redhat.com/articles/faqs-no-cost-red-hat-enterprise-linux#general

https://access.redhat.com/solutions/253273

subscription-manager register --username <username> --password <password> --auto-attach

3. install GUI, run (recommended)

# yum groupinstall "Server with GUI"

or For RHEL 7 Server you can target the "Server with GUI" group instead

# yum groupinstall "Server with GUI"
  • After installing the appropriate packages, change the default systemd boot target to graphical.target. If you run into any errors, try updating the system first with 'yum update'.

systemctl set-default graphical.target

  • To immediately switch to the GUI login, start the graphical.target:

systemctl isolate graphical.target

change the resolution in rhel applications -> system tool -> setting -> devices -> displays ->resolution

4 . mount to shared drive from windows 

https://www.youtube.com/watch?v=b14pq04jtDg

install samba protocol

sudo yum -y install samba-client samba-common cifs-utils

create a mapped folder

sudo mkdir -p /mnt/sharedfolder

sudo mount.cifs -v //WINBOX01/shared /mnt/winbox01 --verbose -o user=brainstrust,password=topsecret,domain=WINBOX01

check the mapped folder

df -kh

5. sudo yum install java-1.8.0-openjdk-devel

6. sudo yum install firefox

7. sudo -i -- to change to root

8. su -l user or exit to the user you have logged in with

9. /etc/ssh/sshd_config to open ssh port 22 (or others)