Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

2 votes
0 answers
2426 views
Dual booting Windows 10 and Scientific Linux 7
I've installed many versions of ubuntu along side windwos 7, 8 and 10, but a friend wanted me to install scientific linux 7 along side her Windows 10 on her laptop. Two questions: 1) Does Scientific Linux have an easy dual boot installer like Ubuntu does? 2) Any problems specific with Scientific Lin...
I've installed many versions of ubuntu along side windwos 7, 8 and 10, but a friend wanted me to install scientific linux 7 along side her Windows 10 on her laptop. Two questions: 1) Does Scientific Linux have an easy dual boot installer like Ubuntu does? 2) Any problems specific with Scientific Linux I might run into?
Lawrence Colombo (121 rep)
Nov 18, 2016, 08:20 PM • Last activity: Jul 9, 2025, 05:04 AM
2 votes
2 answers
5598 views
Apache httpd does not load index.html when a web app is installed
In a CentOS 7 installation I installed OrangeScrum (which is a standard PHP application copied to `/var/www/html`). When I type the server IP I get the Apache test page and if I have an `index.html` page it will be displayed. And when I type the `server-ip/orangescrum` for example I get the web app....
In a CentOS 7 installation I installed OrangeScrum (which is a standard PHP application copied to /var/www/html). When I type the server IP I get the Apache test page and if I have an index.html page it will be displayed. And when I type the server-ip/orangescrum for example I get the web app. All this is fine. Moving on to a server with Scientific Linux 7 I did the same, but when I install the app to the Apache and typing the server ip alone I get the app itself not the Apache status nor the index.html if any. Nothing has been done to httpd.conf except adding a virtual host definition like here What am I missing to do in order to get the root index or the Apache test pages to work?
3bdalla (441 rep)
Nov 14, 2017, 07:33 AM • Last activity: Jan 3, 2025, 07:42 PM
120 votes
8 answers
213059 views
Yum: How can I view variables like $releasever, $basearch & $YUM0?
I am setting up a yum repository, and need to debug some of the URLs in the yum.conf file. I need to know why is Scientific Linux trying to grab this URL, when I was expecting it to grab another URL: # yum install package http://192.168.1.100/pub/scientific/6.1/x86_64/repodata/repomd.xml: [Errno 14]...
I am setting up a yum repository, and need to debug some of the URLs in the yum.conf file. I need to know why is Scientific Linux trying to grab this URL, when I was expecting it to grab another URL: # yum install package http://192.168.1.100/pub/scientific/6.1/x86_64/repodata/repomd.xml : [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: sl. Please verify its path and try again The yum.conf(5) manpage gives some information about these variables: > Variables > > There are a number of variables you can use to ease maintenance of > yum's configuration files. They are available in the values of several > options including name, baseurl and commands. > > $releasever This will be replaced with the value of the version of the > package listed in distroverpkg. This defaults to the version of > 'redhat-release' package. > > $arch This will be replaced with your > architecture as listed by os.uname() in Python. > > $basearch This will be replaced with your base architecture in yum. > For example, if your $arch is i686 your $basearch will be i386. > > $YUM0-$YUM9 These will be replaced with the value of the shell > environment variable of the same name. If the shell environment > variable does not exist then the configuration file variable will not > be replaced. Is there a way to view these variables by using the yum commandline utility? I would prefer to not hunt down the version of the 'redhat-release' package, or manually get the value of os.uname() in Python.
Stefan Lasiewski (20733 rep)
Aug 29, 2011, 07:36 PM • Last activity: Dec 5, 2024, 09:18 PM
51 votes
4 answers
148432 views
How to reduce Volume Group size in LVM?
[root@localhost ~] vgdisplay --- Volume group --- VG Name vg_root System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 7 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 297,59 GiB PE Size 4,00 MiB Total PE 76182 Alloc PE / Size 59392 / 2...
[root@localhost ~] vgdisplay --- Volume group --- VG Name vg_root System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 7 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 297,59 GiB PE Size 4,00 MiB Total PE 76182 Alloc PE / Size 59392 / 232,00 GiB Free PE / Size 16790 / 65,59 GiB VG UUID XXXXXXXXXX PV: [root@localhost ~] pvdisplay --- Physical volume --- PV Name /dev/mapper/udisks-luks-uuid-ASDFASDF VG Name vg_root PV Size 297,59 GiB / not usable 2,00 MiB Allocatable yes PE Size 4,00 MiB Total PE 76182 Free PE 16790 Allocated PE 59392 PV UUID YYYYYYYYYYY So I have a VG with 65 GByte free space. But when I want to shrink this Volume Group about ~50 GByte: pvresize -tv --setphysicalvolumesize 247G /dev/mapper/udisks-luks-uuid-ASDFASDF Test mode: Metadata will NOT be updated and volumes will not be (de)activated. Using physical volume(s) on command line Test mode: Skipping archiving of volume group. /dev/mapper/udisks-luks-uuid-ASDFASDF: Pretending size is 517996544 not 624087040 sectors. Resizing volume "/dev/mapper/udisks-luks-uuid-ASDFASDF" to 624087040 sectors. Resizing physical volume /dev/mapper/udisks-luks-uuid-ASDFASDF from 0 to 63231 extents. /dev/mapper/udisks-luks-uuid-ASDFASDF: cannot resize to 63231 extents as later ones are allocated. 0 physical volume(s) resized / 1 physical volume(s) not resized Test mode: Wiping internal cache Wiping internal VG cache So the error message is: cannot resize to 63231 extents as later ones are allocated. **Q:** How can I defrag the vg_root so I can remove the unneeded part of it? p.s: I already found out that I only need to resize the PV to resize the VG, or are there any better commands to do the VG resize (ex.: what can I do if I would several VG's on a PV? ...)?
gasko peter (5634 rep)
Mar 12, 2013, 07:43 PM • Last activity: Nov 3, 2024, 01:00 PM
20 votes
5 answers
79828 views
Unable to Pull EPEL repository Metadata
Installing Nginx on Scientific Linux according [this documentation][1] fails: [vagrant@localhost ~]$ sudo su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epe l/6/x86_64/epel-release-6-8.noarch.rpm' Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch .rpm warning: /var/tm...
Installing Nginx on Scientific Linux according this documentation fails: [vagrant@localhost ~]$ sudo su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epe l/6/x86_64/epel-release-6-8.noarch.rpm' Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch .rpm warning: /var/tmp/rpm-tmp.gdSOR9: Header V3 RSA/SHA256 Signature, key ID 0608b89 5: NOKEY Preparing... ########################################### [100%] 1:epel-release ########################################### [100%] [vagrant@localhost ~]$ sudo yum install nginx Loaded plugins: security Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Pl ease verify its path and try again [vagrant@localhost ~]$ **Version information** [vagrant@localhost ~]$ uname -a Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Thu Nov 21 13:35:52 CST 2013 x86_64 x86_64 x86_64 GNU/Linux [vagrant@localhost ~]$ cat /etc/*{release,version} Scientific Linux release 6.5 (Carbon) Scientific Linux release 6.5 (Carbon) cat: /etc/*version: No such file or directory [vagrant@localhost ~]$ **Note:** sudo yum update -y was issued before starting the installation of nginx **Installation of other packages disabled** [vagrant@localhost ~]$ sudo yum install vim -y Loaded plugins: security Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Pl ease verify its path and try again [vagrant@localhost ~]$ **URLGRABBER Debugger Log** 2014-08-03 14:22:44,437 attempt 1/10: https://mirrors.fedoraproject.org/metalink ?repo=epel-6&arch=x86_64 INFO:urlgrabber:attempt 1/10: https://mirrors.fedoraproject.org/metalink?repo=ep el-6&arch=x86_64 2014-08-03 14:22:44,438 opening local file "/var/cache/yum/x86_64/6.5/epel/metal ink.xml.tmp" with mode wb INFO:urlgrabber:opening local file "/var/cache/yum/x86_64/6.5/epel/metalink.xml. tmp" with mode wb * About to connect() to mirrors.fedoraproject.org port 443 (#0) * Trying IP... * connected * Connected to mirrors.fedoraproject.org (IP) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * NSS error -8018 * Closing connection #0 * Problem with the SSL CA cert (path? access rights?) 2014-08-03 14:22:50,071 exception: [Errno 14] PYCURL ERROR 77 - "Problem with th e SSL CA cert (path? access rights?)" INFO:urlgrabber:exception: [Errno 14] PYCURL ERROR 77 - "Problem with the SSL CA cert (path? access rights?)" 2014-08-03 14:22:50,072 retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raisi ng INFO:urlgrabber:retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Pl ease verify its path and try again **Output yum update before and after attempt to install nginx** [vagrant@localhost ~]$ sudo yum update -y Loaded plugins: security Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Pl ease verify its path and try again [vagrant@localhost ~]$ **yum --disablerepo="epel" update** [vagrant@localhost ~]$ sudo yum --disablerepo="epel" update Loaded plugins: security Setting up Update Process No Packages marked for Update
030 (1588 rep)
Aug 3, 2014, 01:09 PM • Last activity: Aug 13, 2024, 01:04 PM
6 votes
1 answers
23355 views
Bonded network interface is not available after a reboot
I have some servers with multiple network interfaces, setup with bonding and some VLANs. Whenever I reboot the server, one of the bonded network interfaces is not reachable from other servers, nor can any traffic leave that interface. The status from ifconfig on that interface does indicate that the...
I have some servers with multiple network interfaces, setup with bonding and some VLANs. Whenever I reboot the server, one of the bonded network interfaces is not reachable from other servers, nor can any traffic leave that interface. The status from ifconfig on that interface does indicate that the link is up, however. Simply restarting the network at this point will restore everything to normal. The fact that everything works as expected after I restart the network makes me think that my configuration is correct, but it is something in the startup order that isn't working right on reboot, but gets straightened out when restarting the network. I have 7 identical servers with the same setup (other than IP addresses differing), and it happens on all of them, every time they are rebooted. A bit more details on the setup: - Servers: HP ProLiant DL380 - 6 network interfaces, setup as 3 bonded interfaces named: bondm, bondr, bondt. - 4 interfaces are built-in, the remaining 2 are in an add-on PCI card - bondm is configured with 2 VLANs - bondm is used as the default route - bondm is setup to use eth0 and eth2 - bondm is the interface that is failed on reboot **Update:** I've restested this with the exact same configuration and kickstart files, but with SL 6.2 vs 6.3. Everything is fine with 6.2, but I get this behavior with 6.3. Is it due to the different kernels? Here are some of the relevant config files from /etc/sysconfig/network-scripts: $ cat ifcfg-eth0 ifcfg-eth2 ifcfg-bondm ifcfg-bondm.132 ifcfg-bondm.832 DEVICE=eth0 BOOTPROTO=none NM_CONTROLLED=no ONBOOT=yes TYPE=Ethernet HWADDR=44:1E:A1:03:71:C4 SLAVE=yes MASTER=bondm ETHTOOL_OPTS="-s eth0 speed 1000 duplex full" DEVICE=eth2 HWADDR=44:1E:A1:03:71:C8 NM_CONTROLLED=no ONBOOT=yes SLAVE=yes MASTER=bondm ETHTOOL_OPTS="-s eth2 speed 1000 duplex full" DEVICE=bondm BOOTPROTO=none NM_CONTROLLED=no ONBOOT=yes TYPE=Ethernet IPV4_FAILURE_FATAL=yes IPV6INIT=no BONDING_OPTS="mode=active-backup miimon=100" DEVICE=bondm.132 BOOTPROTO=none NM_CONTROLLED=no ONBOOT=yes TYPE=Ethernet IPADDR=192.168.13.19 PREFIX=28 GATEWAY=192.168.13.17 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no BONDING_OPTS="mode=active-backup miimon=100" VLAN=yes DEVICE=bondm.832 BOOTPROTO=none NM_CONTROLLED=no ONBOOT=yes TYPE=Ethernet IPADDR=10.123.94.69 PREFIX=28 DEFROUTE=no IPV4_FAILURE_FATAL=yes IPV6INIT=no BONDING_OPTS="mode=active-backup miimon=100" VLAN=yes
wolfcastle (113 rep)
Jan 24, 2013, 03:51 PM • Last activity: Jul 12, 2024, 03:22 PM
0 votes
0 answers
93 views
TOTP app for SL7 (RHEL7), preferably RPM?
We are unfortunately stuck with Scientific Linux 7 (a RHEL 7 clone) for a while longer, until we prepare our move to Ubuntu later this year. Our organisation is now also starting to require MFA for email, and we need to try to find a TOTP app suitable for our Linux users (as a fallback option additi...
We are unfortunately stuck with Scientific Linux 7 (a RHEL 7 clone) for a while longer, until we prepare our move to Ubuntu later this year. Our organisation is now also starting to require MFA for email, and we need to try to find a TOTP app suitable for our Linux users (as a fallback option additional to smartphone apps, or for users without smartphones). **KeePassXC** does have TOTP capability, but sadly the EPEL RPMs only seem to be available for EL8 onwards. If there is a suitable older version somewhere in the KeePassXC git repo I don't know the appropriate magic to try to find it, unfortunately. As our systems are automatically configured, alternative app formats such as Flatpak, AppImage or snap unfortunately won't work. Does anyone know where a suitable older RPM or, if need be, compatible older source code could be found? I have also looked into **oathtool**, but its manual is rather cryptic as to how you actually get it to work, and if it really needs all the configuration and additional support scripts described in nixCraft's instructions for oathtool , it would unfortunately be just far too complicated for our end users to use. Alternatively, are there other TOTP apps that would be suitable for use with SL7/RHEL7?
dave559 (451 rep)
Jan 10, 2024, 05:54 PM
1 votes
1 answers
1474 views
How can I get a two-display Radeon HD 3470 graphics setup working with Scientific Linux 6.5?
I have Scientific Linux 6.5 (2.6.32-431.11.2.el6.x86_64) installed on a Dell OptiPlex 760 with a Radeon HD 3470 graphics card and two displays hooked up to it. I'm having difficulties setting resolutions appropriate for the displays and having the two displays not show the same screen. I am not an e...
I have Scientific Linux 6.5 (2.6.32-431.11.2.el6.x86_64) installed on a Dell OptiPlex 760 with a Radeon HD 3470 graphics card and two displays hooked up to it. I'm having difficulties setting resolutions appropriate for the displays and having the two displays not show the same screen. I am not an expert in Xorg configuration and I would appreciate some assistance in getting things working. The PCI device listing (
| grep VGA
) for the graphics card is as follows: 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV620 PRO [Radeon HD 3470] A more detailed listing (
-v -s $(lspci | awk '/VGA/{print $1}')
) is as follows: 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV620 PRO [Radeon HD 3470] (prog-if 00 [VGA controller]) Subsystem: Dell Device 3243 Flags: bus master, fast devsel, latency 0, IRQ 16 Memory at d0000000 (64-bit, prefetchable) [size=256M] Memory at fe9f0000 (64-bit, non-prefetchable) [size=64K] I/O ports at dc00 [size=256] Expansion ROM at fea00000 [disabled] [size=128K] Capabilities: Power Management version 3 Capabilities: Express Legacy Endpoint, MSI 00 Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: Vendor Specific Information: ID=0001 Rev=1 Len=010 Kernel modules: radeon The result of an
query (
-q
) is as follows: xrandr: Failed to get size of gamma for output default Screen 0: minimum 640 x 400, current 1280 x 1024, maximum 1280 x 1024 default connected 1280x1024+0+0 0mm x 0mm 1280x1024 0.0* 1152x864 0.0 1024x768 0.0 800x600 0.0 640x480 0.0 720x400 0.0 The modeline returned by the coordinated video timing utility
for the highest resolution capable by the main display (1680 x 1050) is as follows: cvt 1680 1050 # 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync If I try to use this with xrandr, I get the following: xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync xrandr: Failed to get size of gamma for output default The entire contents of the /etc/X11/xorg.conf file is as follows: Section "Device" Identifier "Videocard0" Driver "vesa" EndSection I am not sure what to do next in order to get the appropriate resolutions set and to get the two displays working as two separate displays (as opposed to having the mirror behaviour). --- UPDATE: I have attempted to install a driver for this graphics setup (
-8.97.100.7-1.x86_64.rpm
), but have run into difficulties regarding undefined symbol
. The ending contents of the file
.0.log
are as follows: [ 39.312] Initializing built-in extension XVideo [ 39.312] Initializing built-in extension XVideo-MotionCompensation [ 39.312] Initializing built-in extension SELinux [ 39.312] Initializing built-in extension XFree86-VidModeExtension [ 39.312] Initializing built-in extension XFree86-DGA [ 39.312] Initializing built-in extension XFree86-DRI [ 39.312] Initializing built-in extension DRI2 [ 39.312] (II) "glx" will be loaded by default. [ 39.312] (II) LoadModule: "glx" [ 39.338] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so [ 39.358] (II) Module glx: vendor="Advanced Micro Devices, Inc." [ 39.358] compiled for 6.9.0, module version = 1.0.0 [ 39.365] Loading extension GLX [ 39.366] (II) LoadModule: "fglrx" [ 39.366] (II) Loading /usr/lib64/xorg/modules/drivers/fglrx_drv.so [ 39.520] (EE) Failed to load /usr/lib64/xorg/modules/drivers/fglrx_drv.so: /usr/lib64/xorg/modules/drivers/fglrx_drv.so: undefined symbol: noXFree86DRIExtension [ 39.520] (II) UnloadModule: "fglrx" [ 39.520] (II) Unloading fglrx [ 39.520] (EE) Failed to load module "fglrx" (loader failed, 7) [ 39.520] (EE) No drivers available. [ 39.520] Fatal server error: [ 39.520] no screens found [ 39.520] (EE) Please consult the Red Hat, Inc. support at https://www.redhat.com/apps/support/ for help. [ 39.520] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 39.520] (EE)
d3pd (131 rep)
Mar 31, 2014, 11:22 AM • Last activity: Jun 14, 2022, 01:03 PM
4 votes
4 answers
4676 views
Can't monitor Kickstart post-install log
I'm installing Scientific Linux 7 (I've got no reason to this isn't the case with all RHEL forks though) with a Kickstart script that contains the following: %post --interpreter /bin/bash --log /root/postinstall.log # do stuff %end After install, the log file is there for inspection as expected. But...
I'm installing Scientific Linux 7 (I've got no reason to this isn't the case with all RHEL forks though) with a Kickstart script that contains the following: %post --interpreter /bin/bash --log /root/postinstall.log # do stuff %end After install, the log file is there for inspection as expected. But, using SL 6 I used to be able to change to TTY 2 and watch the log with tail -f /mnt/sysimage/root/postinstall.log. Now, it appears the log is created, but contents are not written until the post-install process is completed. Is there a way to monitor this progress? I've looked for the log file in /tmp/, /var/log/, /mnt/sysimage/tmp/, and /mnt/sysimage/var/log/ without any luck. If the log file isn't available, is there a way to send output to another TTY from a Kickstart post-install script? **Attempt 1:** %post --interpreter /bin/bash ( # do stuff echo foo echo bar echo baz ) | tee /root/postinstall.log > /dev/tty1 %end This almost works, however, line endings seem to be a problem. It's only doing an LF, not a CR on the screen. The above outputs this on TTY1: foo bar baz **Attempt 2:** %post --interpreter /bin/bash --log /root/postinstall.log echo "Changing output to TTY 3; press Alt-F3 to view" > /dev/tty1 exec 1>/dev/tty3 2>&1 #do stuff %end This outputs the data correctly to the screen, but logs nothing. It also has the curious side-effect of delaying the reboot for like 10 minutes after the script completes.
miken32 (588 rep)
Mar 10, 2017, 01:19 AM • Last activity: May 19, 2022, 08:38 AM
3 votes
2 answers
10007 views
Ignoring dependencies when installing with yum (Scientific Linux)
How can I ignore dependencies of a single package I am attempting to install using `yum` in Scientific Linux? The answer would presumably the same for CentOS/RHEL. To elaborate, I am looking to get the utility `lsb_release`, which I know would be put into `/usr/bin/lsb_release`. The command `yum wha...
How can I ignore dependencies of a single package I am attempting to install using yum in Scientific Linux? The answer would presumably the same for CentOS/RHEL. To elaborate, I am looking to get the utility lsb_release, which I know would be put into /usr/bin/lsb_release. The command yum whatprovides /usr/bin/lsb_release tells me that it is part of the redhat-lsb packages (for the respective architectures), but those have a bunch of dependencies, including some X11-related. Since I am only after the lsb_release program, I would like to dodge the "crud" that comes with the dependencies. How can I achieve that?
0xC0000022L (16938 rep)
Feb 15, 2013, 05:19 PM • Last activity: Mar 2, 2022, 11:35 AM
20 votes
5 answers
27717 views
How to debug a suspend problem?
I used to have Fedora 14 installed on this HP Compaq 610, and the suspend feature worked fine. Now that I've installed Scientific Linux 6.1 suspend doesn't work anymore. How do I debug/fix it?
I used to have Fedora 14 installed on this HP Compaq 610, and the suspend feature worked fine. Now that I've installed Scientific Linux 6.1 suspend doesn't work anymore. How do I debug/fix it?
LanceBaynes (41465 rep)
Dec 31, 2011, 08:12 PM • Last activity: Sep 9, 2021, 05:14 AM
0 votes
1 answers
37 views
Can't repartiton disk after scientific Linux (stubborn LVM)
I'm distro hopping from scientific Linux, but can't free any disk space. root@archiso~# lsblk NAME TYPE sda disk |-sda1 part |-sda2 part |-sl-swap lvm |-sl-home lvm |-sl-root lvm I've tried to reformat sda (dd, gparted ect) to no avail. I've also tried to use lvm tools to remove the volumes, no luck...
I'm distro hopping from scientific Linux, but can't free any disk space. root@archiso~# lsblk NAME TYPE sda disk |-sda1 part |-sda2 part |-sl-swap lvm |-sl-home lvm |-sl-root lvm I've tried to reformat sda (dd, gparted ect) to no avail. I've also tried to use lvm tools to remove the volumes, no luck, The volumes don't seem to exist! root@archiso~# lvs -v No volume groups found. root@archiso~# vgscan -v No volume groups found. root@archiso~# lvmdiskscan ... 1 disk 5 partitions 0 lvm physical volume whole disks 0 lvm physical volumes root@archiso~# lvscan -v No volume groups found. root@archiso~# pvscan No matching physical volumes found root@archiso~# ls /dev/mapper control sl-home sl-root sl-swap what on earth is going on?
cj wyett (1 rep)
Aug 11, 2021, 08:55 PM • Last activity: Aug 11, 2021, 09:24 PM
3 votes
1 answers
557 views
Restore open windows after restart/shutdown on Scientific Linux?
Is there a way in Scientific Linux to restore all open applications upon the last restart/shut down?
Is there a way in Scientific Linux to restore all open applications upon the last restart/shut down?
user997112 (1065 rep)
Aug 6, 2021, 12:36 PM • Last activity: Aug 6, 2021, 05:10 PM
0 votes
1 answers
125 views
KDE Autostart Missing Library
I'm trying to debug an issue with a SH script in my KDE autostart directory (~/.kde/Autostart). I'm running Scientific Linux 6.4 (kernel 2.6.32-754). The script simply launches an application. This application recently gained a new dependency for a library, and now the application will not start whe...
I'm trying to debug an issue with a SH script in my KDE autostart directory (~/.kde/Autostart). I'm running Scientific Linux 6.4 (kernel 2.6.32-754). The script simply launches an application. This application recently gained a new dependency for a library, and now the application will not start when launched via KDE Autostart because it complains it cannot find the library. To try a manual fix, I simply put a symbolic link in /usr/lib64 pointing towards the library, which is an unconventional location, and that fixed the problem. But our machines are setup via an automatic installer which needs to correct the environment variables so this library shows up on the library path. So I modified a script in /etc/profile.d which creates the environment variables for the user to add this directory with the library to the LD_LIBRARY_PATH for the user's profile. However, this did not fix the issue and the error is back. When I echo the LD_LIBRARY_PATH environment variable, I can clearly see that the directory has been added correctly, but KDE Autostart still doesn't seem to be able to see the library. Looks like the /etc/profile.d script is only run when a terminal is opened to setup the environment, but those variables are not set when the KDE Autostart script runs. I echo'd out the LD_LIBRARY_PATH variable from my Autostart script and it's empty. Where should I be setting up the LD_LIBRARY_PATH for it to be available to Autostart? In .bashrc? Is there something I'm missing? Does KDE Autostart execute these scripts as a user other than the profile where these Autostart scripts live? Or do they get their environment variables from elsewhere? Let me know if there's any other information that would be helpful.
Darin Beaudreau (67 rep)
Jul 13, 2021, 06:38 PM • Last activity: Jul 14, 2021, 03:02 PM
40 votes
3 answers
221293 views
User without a password - how can one login into that account from a non-root account
I have just started to use Scientific Linux (7.0) (although I assume this question might be distribution neutral..). The kernel version is 3.10.0-123.20.1.el7.x86_64. Coming back to my question. I switched to `root` account and from there created an new user account `test-account` using the command...
I have just started to use Scientific Linux (7.0) (although I assume this question might be distribution neutral..). The kernel version is 3.10.0-123.20.1.el7.x86_64. Coming back to my question. I switched to root account and from there created an new user account test-account using the command adduser test-account. It didn't prompt me for a password neither did I use the option to provide password. So I guess it's a "without password" account. I can login into this account from root account - which I suppose I'd be able to without providing password even if the test account had a password. However when I try to login into this(test-account) from a third account - it prompts me for password. And just pressing Enter doesn't work. Is it possible to login into this account from a non-root account. Is there a way (without switching to root or using sudo) ?
Lavya (1703 rep)
Mar 27, 2015, 05:53 PM • Last activity: Jan 5, 2021, 04:30 PM
0 votes
2 answers
234 views
Preventing screensaver in Scientific Linux 6.4
I've already posted this to the Super User exchange, but was told I may find an answer faster here. I'm attempting to add a feature to an application to keep the screen awake while the user is logged in. The reason for this is that I recently implemented touchscreen functionality to allow the user t...
I've already posted this to the Super User exchange, but was told I may find an answer faster here. I'm attempting to add a feature to an application to keep the screen awake while the user is logged in. The reason for this is that I recently implemented touchscreen functionality to allow the user to control the UI through a touchscreen. However, because we have an out-of-date Linux kernel, we have limited touchscreen functionality -- meaning that although the kernel has multitouch events defined, Xorg doesn't respond to touch at all. So I wrote a driver in the background of our Qt4 application to read touch events directly from /dev/input and to generate mouse events in the application. However, because these mouse events are not on a system-level and are contained within the Qt application, they do not keep the screen awake or wake it once the screensaver starts. The goal of the touchscreen is to remove the need of the keyboard and mouse for the user on our product, and not being able to wake the screensaver would kind of make it difficult to use it. The application already has a QTimer setup that fires every 60 seconds (in case some system process changes these settings while the application is being run) to "prevent the screensaver", but after looking at the command it was issuing, it's obvious why it doesn't work, because the command it's using is: xset s on So I changed the timer to instead issue the following commands: xset s off xset s noblank xset -dpms I also tried executing this command to attempt to prevent xdg-screensaver from launching: xwininfo -name "plasma-desktop" | grep "plasma" | cut -d' ' -f4 | xdg-screensaver suspend However, even with these changes, the screensaver eventually appears. Are there other settings I need to disable to prevent this? Assuming the screensaver that's appearing is the result of the OS launching **xdg-screensaver**, is there a way I could prevent the launching of that application while our application is logged in? Or is there some other way I should go about this? If it matters, we are running Scientific Linux 6.4 (kernel 2.6.32-754). **EDIT:** Forgot to mention, the desktop environment is KDE4. **EDIT:** I found a KSS file matching the screensaver that shows up. I tried renaming it, but that just resulting in a blank screensaver showing up in its place. I need to know how to disable the service that is launching it.
Darin Beaudreau (67 rep)
Oct 1, 2019, 08:06 PM • Last activity: Oct 16, 2019, 08:45 AM
21 votes
2 answers
10394 views
Why does Red Hat Linux use such an old kernel?
Why does RHEL (and its derivatives) use such an old kernel? It uses 2.6.32-xxx, which seems old to me. How do they support newer hardware with that kernel? As far as I know these kind of distributions do run on fairly modern hardware.
Why does RHEL (and its derivatives) use such an old kernel? It uses 2.6.32-xxx, which seems old to me. How do they support newer hardware with that kernel? As far as I know these kind of distributions do run on fairly modern hardware.
Markus (313 rep)
Jan 22, 2013, 07:55 PM • Last activity: Oct 11, 2019, 11:24 AM
2 votes
2 answers
110 views
Moving away from Scientific Linux
I am running Scientific Linux 7 with xfce in office... it took quite a while to get my environment productive (DevOps, ML Development python/miniconda, ...) and as this is for business not only private use I am interested to keep being productive in the most effective way. As Scientific Linux is dis...
I am running Scientific Linux 7 with xfce in office... it took quite a while to get my environment productive (DevOps, ML Development python/miniconda, ...) and as this is for business not only private use I am interested to keep being productive in the most effective way. As Scientific Linux is discontinued I have to get my things packed and move over to another distro which will be CentOS or more likely Fedora 30 (or any other Desktop-able RHEL 8 compatible distro). Things which I do on my workstation right now: - Logical Volumes for / and /home dynamically resized to fit my workload - running Postgres 11 Instance for development - Miniconda Environments for geoscience and torch for ml/dl tasks - terraform and ansible for cloud deployment and automation - ssh keyring setup - xfce Desktop on two screens - VPN Connections to some of our clients - Remmnia as RDP Client with a lot of configured connections I don't want to loose - ... and so on My question is how to safely get most of my tweaks over to the fresh installed distro? 1. Do I even need to format the /home partition? 2. If I don't format it and use the same usernames, will my ~/ Folder find its way back? 3. Better just copy data and profiles onto an external disk and copy back the things I need in the moment I really need it (I am afraid that I will have to keep this backup for years)? 4. which other parts of the filesystem should I backup? (How to know where for example Remmnia is saving its connection configurations) 5. Is there a dnf command to quickly export a list of installed packages which can be used for reinstall on the fedora machine then? Generally: How would YOU do that?
Jürgen Zornig (131 rep)
Sep 3, 2019, 09:33 AM • Last activity: Sep 3, 2019, 03:39 PM
4 votes
0 answers
1155 views
Install packages in CentOS without root from non enabled repository
I need to install a high number of packages in a computer running Scientific Linux 6 (based on RHEL 6) for which I don't have root access. After much tinkering and internet searching I found this answer: https://stackoverflow.com/questions/36651091/how-to-install-packages-in-linux-centos-without-roo...
I need to install a high number of packages in a computer running Scientific Linux 6 (based on RHEL 6) for which I don't have root access. After much tinkering and internet searching I found this answer: https://stackoverflow.com/questions/36651091/how-to-install-packages-in-linux-centos-without-root-user-with-automatic-depen?newreg=471e1d62101f49198e06af008be75e6e Which almost solves my problem: it enables me to download the .rpm packages and install them locally. It makes use of the yumdownloader command which I believe will take the name of the package e.g. gcc and find the latest version in my enabled repositories (in my case 4.4.7) and download the rpm file. I can successfully install this file following the instructions on the link (I download all rpm files to ~/rpm then run cd ~/centos && for file in ~/rpm/*.rpm; do rpm2cpio $file | cpio -id; done and adding this directories to my PATH and LD_LIBRARY_PATH does the trick. However the version of Linux I am using has some very old (for my purposes) packages so I need to install a more recent version of these packages. I have never used a CentOS/RHEL Linux machine before so I am a bit lost regarding the package manager but I believe if I added a more recent repository this problem would be solved, but since I am not root I cannot do that. Is there any way to call yumdownloader so that it uses a repository of my choosing to resolve the package and download a more recent version? What would be the recommended solution to my problem? I know I could somehow find the required version for my packages and individually download the correct .rpm file from the web but this would be very time consuming, I would like to know if there is an easier way. Thanks.
lobis (141 rep)
Jul 12, 2019, 06:10 PM • Last activity: Jul 12, 2019, 06:48 PM
1 votes
0 answers
180 views
How to install Visual Studio Code on CernVm?
I am trying to install vs code on CernVm but it shows the following errors: ```` Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package code.x86_64 0:1.35.1-1560350390.el7 will be installed --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for pac...
I am trying to install vs code on CernVm but it shows the following errors:
`
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package code.x86_64 0:1.35.1-1560350390.el7 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: code-1.35.1-1560350390.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: code-1.35.1-1560350390.el7.x86_64
--> Processing Dependency: libsecret-1.so.0()(64bit) for package: code-1.35.1-1560350390.el7.x86_64
--> Processing Dependency: libgtk-3.so.0()(64bit) for package: code-1.35.1-1560350390.el7.x86_64
--> Finished Dependency Resolution
Error: Package: code-1.35.1-1560350390.el7.x86_64 (code)
           Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: code-1.35.1-1560350390.el7.x86_64 (code)
           Requires: libgtk-3.so.0()(64bit)
Error: Package: code-1.35.1-1560350390.el7.x86_64 (code)
           Requires: libstdc++.so.6(GLIBCXX_3.4.14)(64bit)
Error: Package: code-1.35.1-1560350390.el7.x86_64 (code)
           Requires: libsecret-1.so.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
` I have gone through various websites trying to figure out how to install libstdc++.so.6 and am thoroughly confused now. I have no idea if the compiled to be download as a .rpm file is even available for CernVM or for Scientific Linux. Somewhere I read that vs code may be installed using dnf. So I added the EPEL repo-to no avail. I can't seem to get dnf installed no matter what. I have already tried yum update, yum upgrade, yum --obsoletes update etc commands and tried cleaning cache.....and what not--they have no effect on the error messages. Please help...remember that the main goal is to install VS Code(a solution that works for any reasonably old version of vs code is fine but that one that works for the latest version would be nice). **Env:**
`
$  cat /etc/issue
Welcome to CERN Virtual Machine, version 3.7.2.8
  based on Scientific Linux release 6.9 (Carbon)
  Kernel 4.1.44-30.cernvm.x86_64 on an x86_64
` running on VirtualBox Version 5.2.18 on Ubuntu 18
lineage (113 rep)
Jun 16, 2019, 07:36 PM
Showing page 1 of 20 total questions