Red Hat Enterprise Linux (RHEL) is a commercially supported Linux distribution.

learn more… | top users | synonyms (1)

1
vote
1answer
2k views

What starts the login prompt in RHEL?

I don't have a service in my run level that starts the login prompt, so I was wondering what does.
7
votes
3answers
12k views

How to set global environment variables at boot through a script, and have them available for an application that runs before login?

I have a service that runs at boot, and in that service it calls a bash script in the background that exports some environment variables. The problem I'm having is that those environment variables ...
1
vote
3answers
1k views

How to make a src.rpm unpack the source to whatever directory I want?

I'm trying to make an rpm that will unpack the source to a custom directory, such as /asdf. When I run it, it always errors out saying "cannot create %sourcedir /usr/src/redhat/SOURCES". Is there ...
0
votes
1answer
10k views

Installing gcc on rhel 6.1

GCC doesnt seem to be installed on my Rhel 6.1 machine. Also, when i did: sudo yum install gcc It barfed: Updating Red Hat repositories. Setting up Install Process No package gcc available. ...
1
vote
1answer
3k views

Install FFMPEG on RHEL/CentOS

I've been searching for hours now and trying various methods of installing FFMPEG on my CentOS server. This is what I have currently installed on my Ubuntu desktop: FFmpeg version ...
1
vote
1answer
644 views

redhat oauth.so missing

I tried to put the oauth on my redhat server, but since I got this message : PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/oauth.so' - /usr/lib/php/modules/oauth.so: ...
7
votes
1answer
15k views

How do I install g++ on RHEL6?

This question seems to have been asked here already. My IT department installed the OS so I don't know how to register it properly but I do have root access. Is there a way to get the same packages ...
1
vote
3answers
160 views

How to clean up my desktop?

Now, I see that my desktop running rhel 5.6 has run out of space. Now I need to clean it up. There must be some unintentional files adding up. What I would like to be able to do is list the files in ...
1
vote
2answers
2k views

Can a service script put inside init.d be called at startup and shutdown?

I'm running Red Hat 5.1. I have a script called sysinit that I added as a service using chkconfig --add sysinit. I have the following set in the file: #chkconfig 4 01 01 This creates one symlink ...
0
votes
1answer
2k views

Command line linux alternative for Windirstat/SpaceMonger? [duplicate]

Possible Duplicate: How to understand what's taking up space? What's a good command line utility/script to analyze a folder structure and find out what's taking up all the space? The ...
5
votes
2answers
10k views

Oracle Linux 6.1 guest on Virtualbox 4.1 can't connect to network

I just installed VirtualBox 4.1 on my Windows system, and then added a Solaris 11 Express guest and an Oracle Linux 6.1 guest. Both installs went smoothly. But while the Solaris 11 guest has network ...
5
votes
3answers
5k views

Using mdam --examine to write mdadm.conf

I'm trying to script the RAID setup for a (growing) number of identical servers. The advice I've seen for using mdadm suggests that once the RAID array has been created you can run mdadm --examine ...
1
vote
2answers
1k views

Red Hat Error Class Code: 49 When Attempting To Install Package

I am a Unix noob. I am currently working on a virtual machine that is running Red Hat 4.1.2-41. When I attempt to install a software package, I get the following error: ...
1
vote
1answer
2k views

.bashrc doesn't get executed

I have a user (non-root) which has a ~/.bashrc file with some aliases in it. But it doesn't look like the file is executed at log in time. If I do source ~/.bashrc then it does what it's supposed to. ...
0
votes
1answer
5k views

yum groupinstall “Development Libraries”

I am new to linux. I am looking at some configuration notes for a CentOS, but I am configuring a Redhat machine. I am not clear: What the below commands install? Why one might install these? ...
1
vote
3answers
640 views

How do I check if a distribution is Fedora-based?

The Python M2Crypto library requires a slightly different installation command if the Linux distribution is Fedora-core based (e.g., Fedora, RHEL, CentOS, Scientific Linux). Is there a way to check ...
0
votes
1answer
248 views

Offline documentation of an RPM spec file or how to retrieve an example

I am taking a Red Hat exam that is offline. I am having issues remembering the syntax for an RPM SPEC file. Can anyone suggest how to retrieve an example or some documentation that should already be ...
4
votes
3answers
4k views

List all RPM packages installed from repo “X”

How can I get a list of all of the RPM packages that have been installed on my system from a particular repo (e.g., "epel")?
0
votes
6answers
7k views

Script to check for read only filesystem

How can I check a bunch of systems to find any filesystem that are mounted read-only? Possibly via a script?
3
votes
3answers
3k views

Which device is using this logical volume?

I'm trying to remove an LVM logical volume, which I believe is not currently in use. However, when I attempted to remove it, I get an error: # lvremove /dev/vg_service1/lv_home Logical volume ...
1
vote
2answers
282 views

Check version of RPM package available in upstream repo if I have a custom one installed

I have a RHEL6.1 machine that's registered with Redhat. I needed to install a customized version of a package (in my case, qemu-kvm), which I installed via RPM. I can see the version info for my ...
0
votes
1answer
927 views

no default repositories in yum

I am trying to install gtk-murrine-engine on my RedHat Linux Client 5.5 using yum install. It says package not available. It appears that there only exists some local repositories in yum , pertaining ...
2
votes
1answer
155 views

Can't see the free disk space of the drive

I am installing redhat 6 with pendrive, I get only two drives option for installing one is the whole hard disk and the other is pendrive, but I've created a free logical disk of 30 GB in windows. I am ...
1
vote
3answers
72k views

How to find path where jdk installed?

I'm a newbie to Linux so please forgive me for asking such stupid question! I'd installed jdk1.7.0.rpm package in RHEL6. Where I do find the path and to execute my first java program?
4
votes
1answer
5k views

Can't explain “crash” entries in output of the 'last' command

Last shows "crash" at 12:02 and 14:18, but the system didn't stop working at that time. The reboot at 15:03, on the other hand, was to recover from an actual crash - our system stopped responding at ...
3
votes
2answers
1k views

How to start the cron daemon

I am using RHEL 5.4 I killed the cron daemon accidentally. I wanted to stop a cron task, didn't know how to do it, ended up killing the cron daemon itself. How do I start it again?
2
votes
1answer
130 views

“Short read block” error trying to boot RHEL

I changed my network configurations from static IP to DHCP and removed the DNS entry, etc. Then I rebooted the computer, but am now unable to boot, I get an error message along the lines of "short ...
53
votes
7answers
16k views

What is the Linux equivalent to C:\Program Files?

I understand that in Windows as well as Linux and Unix, a program|application|software can be installed in any directory. Also if packages are installed using the distribution's packaging system, ...
1
vote
1answer
1k views

New SL6 system: No hostname?

This is in regards to Scientific Linux 6.1 system, but should also apply to CentOS 6.1 & RHEL 6.1. I am setting up a new Scientific Linux 6.1 system, using kickstart and DHCP (via xCAT). This ...
2
votes
1answer
597 views

Mounting Windows share on startup without storing password in plain text

I have the following in my /etc/fstab on a Red Hat 5 system: //share/folder /mnt/folder cifs username=<my username>,password=<my password>,ro,soft,nounix Can I replace this with ...
4
votes
1answer
260 views

Confused about PAM configuration stanza and the roles of the control-flag parameters

I just begun studying for the RHCE. While on the topic of PAM configuration, I was a little perplexed with this stanza from /etc/pam.d/system-auth: auth required pam_env.so auth ...
2
votes
2answers
12k views

Red Hat Enterprise Linux 6: /boot/grub/menu.lst or /boot/grub/grub.conf?

I have a brand new Scientific Linux 6 system, but this same question should apply to CentOS 6, RHEL6 or any RHEL6-derivative. I see that /boot/grub contains a menu.lst as well as a grub.conf file. ...
3
votes
1answer
385 views

Vanishing permission on device file (RHEL 6.1)

I want to set world read/write permissions on a raw block device file (yeah, I know). I can set the permission to 666, but it goes back to 660 immediately after I touch it or write to it. Why? ...
5
votes
2answers
6k views

How does createrepo work. How does yum understand parse its files. A conceptual explanation

I am not looking for a how-to on creating a repo (createrepo) or using yum. I want to understand how they work together. I want to know what files yum looks at and why, what those files contain. I ...
4
votes
1answer
1k views

Making the Spotify Linux client (for Debian) run on RHEL

I'm trying to convince the Spotify Linux client to run from my home directory on a RHEL 6 machine (I don't have root privs, and running the Windows client through Wine results in audio stutter since ...
6
votes
5answers
6k views

Does AIX really beat Red Hat Enterprise Linux?

Our company plan to upgrade our servers, and at the same, we would use AIX over Red Hat Enterprise Linux. I asked my boss the reason of choosing AIX, he said it is because AIX is more powerful. I ...
3
votes
2answers
5k views

Run getty on a serial port on startup on RHEL

I want to put a getty on ttyS2 on a RHEL 6.1 box so I can use IPMI's serial-over-ethernet functionality to log in to a machine when SSH isn't working. In the past (on Ubuntu?), I used to add a line ...
4
votes
2answers
486 views

'man' page is too narrow (not taking advantage of terminal size)

I'm making my first 'man' page and I'm using groff to do it. However, when I "compile" it and view it, it only takes up a certain amount of columns in my terminal. I've tried viewing other man pages ...
1
vote
1answer
2k views

RHEL Time Changes Automatically

I Have a RHEL 6.1 server and it's date/time changes automatically even after I change the time settings. Could someone point out how to fix this issue? Note** I suspect this happens when rhn ...
5
votes
3answers
4k views

Change /dev/sd* for USB Linux install?

I am trying to install Scientific Linux 6.1 (which is literally RedHat Enterprise Linux without the branding) by booting its installer from my USB drive. The installer starts fine, but two things ...
5
votes
1answer
4k views

Is there any difference between e2fsck and e4fsck on CentOS / RHEL systems?

ext4.wiki.kernel.org makes it sound like e2fsck was simply renamed to e4fsck so that e4fsprogs and e2fsprogs could coexist without overlapping. However, there is no mention of any difference in the ...
2
votes
3answers
2k views

Linux + how to verify mirror configuration on linux red-hat

I have an IBM blade server and we've installed RedHat Linux on the machine. How can we check if we have both disks running as a mirror, or if everything is only running on a single disk? What ...
1
vote
2answers
748 views

Are there programs that work for Red Hat but not Ubuntu?

And vice versa? What about other distributions too?
0
votes
4answers
1k views

Package repository for which Fedora version would be best match for RHEL / CentOS / Scientific Linux 6.0?

I am using Scientific Linux 6.0, which is based on RHEL (RedHat) 6.0. I want to install some package (LXDE), which is present in repositories for Fedora, but which I didn't found either in Scientific ...
5
votes
4answers
1k views

Selinux is denying access to mysqld

I have a script that dumps a mysql database. It then compresses the file and this gets stored in my home folder by using cron. The problem is I seem to be getting an error message. mysqldump: ...
1
vote
2answers
2k views

Check the Existence of a Network Interface Card Redhat

I'm aware that I can use ethtool eth0|eth1|eth2 to check the existence of a NIC. But I wonder where the files are on the machine that contain information of an existing interface, as I need to use ...
1
vote
2answers
3k views

How to hibernate a RHEL6 machine?

I am using RHEL6 and I don't see a hibernate option for it. Doesn't RHEL6 have a hibernate option? I tried pm-hibernate from command line but it said: PM: Cannot find swap device, try swapon -a ...
5
votes
1answer
3k views

Changing Redhat Network Settings From DHCP to STATIC IP Via Configuration Files

In order to make the statically assigned IP work, I have already modified the file /etc/sysconfig/network-scripts/ifcfg-eth0 as follows: DEVICE=eth0 IPADDR=10.33.17.143 NETMASK=255.255.255.0 ...
0
votes
4answers
23k views

How to read NTFS drives in Linux (RHEL 6)?

My system is on dual boot. I have installed both RHEL 6 and win7 in it. I use RHEL mostly and I want to use my windows' NTFS drive in RHEL. How can I do it? Tell me the procedure.
6
votes
1answer
3k views

Why does redirection (>) not work sometimes but appending (>>) does?

While studying for the RHCE, I came across a situation where stdin redirection does not work in bash: # file /tmp/users.txt /tmp/users.txt: cannot open `/tmp/users.txt' (No such file or directory) ...