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-...
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 ...
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,
...
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 ...
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 ...
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[...
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
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 ...
2
votes
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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
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 '...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
scientific-linux × 152rhel × 21
yum × 18
centos × 13
software-installation × 12
rpm × 10
gnome × 9
linux × 7
repository × 6
partition × 5
package-management × 5
system-installation × 5
fedora × 4
boot × 4
audio × 4
lvm × 4
grub × 4
firefox × 4
networking × 3
filesystems × 3
wifi × 3
usb × 3
virtualbox × 3
dual-boot × 3
upgrade × 3