Skip to main content

Posts

Showing posts with the label RHEL

Red Hat: Notes

Red Hat

Why Red Hat name, you might ask? The company co-founder, Marc Ewing explains why the Linux company chose the name Red Hat in a ComputerWorld's article Ever wonder how Red Hat got its name? .

RHEL: yum install gnuplot

[tuyendq@rhel1 ~]$ which gnuplot /usr/bin/which: no gnuplot in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/tuyendq/.local/bin:/home/tuyendq/bin) [tuyendq@rhel1 ~]$ sudo yum install gnuplot Loaded plugins: product-id, search-disabled-repos, subscription-manager Resolving Dependencies --> Running transaction check ---> Package gnuplot.x86_64 0:4.6.2-3.el7 will be installed --> Processing Dependency: gnuplot-common = 4.6.2-3.el7 for package: gnuplot-4.6.2-3.el7.x86_64 --> Processing Dependency: libcairo.so.2()(64bit) for package: gnuplot-4.6.2-3.el7.x86_64 --> Processing Dependency: libgd.so.2()(64bit) for package: gnuplot-4.6.2-3.el7.x86_64 --> Processing Dependency: libpango-1.0.so.0()(64bit) for package: gnuplot-4.6.2-3.el7.x86_64 --> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: gnuplot-4.6.2-3.el7.x86_64 --> Running transaction check ---> Package cairo.x86_64 0:1.15.12-3.el7 will be installed --> Processing Dependency:...

RHEL: Install Powershell Core

Check if Powershell Core is installed by trying running pwsh command. [tuyendq@rhel1 ~]$ pwsh -bash: pwsh: command not found [tuyendq@rhel1 ~]$ sudo yum install -y powershell Loaded plugins: product-id, search-disabled-repos, subscription-manager epel/x86_64/metalink | 22 kB 00:00 epel | 4.7 kB 00:00 (1/3): epel/x86_64/updateinfo | 986 kB 00:00 (2/3): epel/x86_64/primary_db | 6.6 MB 00:00 (3/3): jdoss-wireguard/x86_64/primary_db | 3.8 kB 00:01 No package powershell available. Error: Nothing to do [tuyendq@rhel1 ~]$ curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 193 100 193 0 ...

RHEL: Install MySQL

[tuyendq@DangQuocTuyen ~]$ sudo yum list mysql Loaded plugins: product-id, search-disabled-repos, subscription-manager Error: No matching Packages to list [tuyendq@DangQuocTuyen ~]$ sudo yum install mysql Loaded plugins: product-id, search-disabled-repos, subscription-manager Resolving Dependencies --> Running transaction check ---> Package mariadb.x86_64 1:5.5.60-1.el7_5 will be installed --> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-5.5.60-1.el7_5.x86_64 --> Running transaction check ---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================= Package Arch Version Repository Size ================================...

Zabbix

Install zabbix agent on RHEL 7 # rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm Install zabbix agent # yum install zabbix-agent Start zabbix agent # service zabbix-agent start Open firewall port 10050/tcp # firewall-cmd --zone=public --permanent --add-port=10050/tcp

Linux command: wget

wget - World Wide Web get

RHEL: firewall-cmd

firewall-cmd - firewall d c om m an d line client

RHEL root folder is full

Check free disk: df -h Check deleted files: lsof | grep deleted

Red Hat Enterprise Linux Developer Subscription

subscription-manager register subscription-manager subscribe subscription-manager list subscription-manager repos --list-enabled