Skip to main content
16 votes

Yum: How can I view variables like $releasever, $basearch & $YUM0?

For a full dump you can use: yum config-manager --dump dnf config-manager --dump To dump variables you can use: yum config-manager --dump-variables dnf config-manager --dump-variables yum-config-...
Stephanie's user avatar
  • 161
3 votes

User without a password - how can one login into that account from a non-root account

User with empty password sudo useradd test-user-0 echo test-user-0:U6aMy0wojraho | sudo chpasswd -e su test-user-0 The password prompt still shows unfortunately. But if you just hit enter without ...
Ciro Santilli OurBigBook.com's user avatar
3 votes

Chroot gone wrong, can't ssh with user

Try 'mount --bind' the following directories. Make sure you do /dev first then /dev/pts. root-shell> mount --bind /dev /var/jail/dev root-shell> mount --bind /dev/pts /var/jail/dev/pts Regards, ...
David Loh's user avatar
3 votes

Time drift and wrong timezone within NTP configuration

If your /etc/localtime is pointing to /usr/share/zoneinfo/EET, that timezone definition includes European Summer Time (= European DST) and between the last Sunday of March and the last Sunday of ...
telcoM's user avatar
  • 114k
3 votes

Why does Red Hat Linux use such an old kernel?

Here is a table of kernel versions used in each RHEL release so far. To summarize: RHEL 2.1 (released in 2002) used kernel version 2.4.9. RHEL 3 (released in 2003, based on RHL 9) used kernel version ...
telcoM's user avatar
  • 114k
3 votes

How to debug a suspend problem?

If you want only to get when you suspended/resumed the system, you can try this: cat /var/log/syslog | grep 'systemd-sleep' | grep "Suspending\|resumed"; Feb 7 10:44:23 dmatej-lenovo systemd-sleep[...
dmatej's user avatar
  • 191
2 votes

Yum: How can I view variables like $releasever, $basearch & $YUM0?

For CentOS 8 Stream, which uses more variables like $stream - you can also do this:- # cd /etc/dnf/vars;grep . * which reveals them thusly:- contentdir:centos infra:stock stream:8-stream
cnd's user avatar
  • 209
2 votes

How to remove acpi warnings

According to RHEL documentation: This message is informational only. It does not indicate anything is wrong and can be safely ignored. Root Cause The system hardware defines a 32-bit register size ...
Șerban's user avatar
  • 21
2 votes

Can't monitor Kickstart post-install log

Redirect your output to /dev/pts/0 instead.
Andy's user avatar
  • 21
2 votes

How to reduce Volume Group size in LVM?

Previous answers helped me solve this problem, but I needed to automate it and so wrote pvshrink # ./pvshrink /dev/vda2 Moving 50 blocks from 714 to 664 /dev/vda2: Moved: 4.00% /dev/vda2: Moved: ...
pdw's user avatar
  • 21
1 vote
Accepted

Moving away from Scientific Linux

Do I even need to format the /home partition? You don't need to, but... If I don't format it and use the same usernames, will my ~/ Folder find its way back? Yes. But the format and options of ...
markgraf's user avatar
  • 2,894
1 vote
Accepted

How can I make a script that opens terminal window, executes commands in it and remains open on Scientific Linux?

The terminal will close after the command is completed. To leave the terminal open, I generally prevent the script from completing, e.g. with a prompt as follows: while [[ \$response != q ]]; do read ...
Sparhawk's user avatar
  • 20.5k
1 vote

How does scientific linux 7 get updates while it's based on RHEL 7?

Scientific Linux is a rebuild of RHEL (permitted by the RHEL license). Updates are received via the SL channel. Fermilab, the makers of SL, does not offer support to the general public. Clearly ...
dr_'s user avatar
  • 32.4k
1 vote

you haven't created a /boot/efi partition

As MichaelBay mentioned, your EFI partition needs to be formatted with FAT32. However, I understand that the way it's mounted can be confusing. Especially since it can be distro-specific. According ...
Emmanuel Rosa's user avatar
1 vote

Updating GFortran on Scientific Linux 7?

Please edit as necessary. And thank you Knud Larson for the reference repo packages. In order for my version of to SL7 to even see a more recent version of GFortran to download, I attempted to ...
lori's user avatar
  • 31
1 vote

Updating GFortran on Scientific Linux 7?

If the package manager installed is yum (I noticed it in your question's tags), you can use the following to update GNU Fortran to the latest version available: $ yum update gcc-gfortran
aliceinpalth's user avatar
  • 1,683
1 vote

Apache httpd does not load index.html when a web app is installed

In Scientific Linux 7, you copied the contents of orangescrum to /var/www/html/index.html instead of copying the whole directory to make it look like this /var/www/html/orangescrum/index.html
Bruce Malaudzi's user avatar
1 vote

Yum: How can I view variables like $releasever, $basearch & $YUM0?

Getting the value for $arch should really be as simple as arch="$(arch)" or arch="$(uname --machine)" but if you really want to know what yum's value for $arch is, try: bash-4.2# arch="$(python -c '...
bfs's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible