Tag Archives: RHEL

Steps to install RHEL 6.0

By RHCE

I wanted clarity on the steps to install RHEL 6.0. The steps are as follows:-

1) Download the ISO image from the Red Hat site.
2) Burn it into DVD.
3) Download boot.iso from Red Hat (Is this step required or ISO image can install RHEL 6.0 by itself?)
4) Start installation from DVD.

Request to please confirm the steps specially with regards to whether boot.iso is really required.

Please revert with the reply to my query.

Regards

Source: FULL ARTICLE at The UNIX and Linux Forums

Adding multiple iptables_MODULES

By RHCE

I have a RHEL 5.8 server and I am trying to implement a writable FTP server. I need to add the following module as below,

Code:

IPTABLES_MODULES=”nf_conntrack_ftp nf_nat_ftp”


But there is already a module like this,

Code:

IPTABLES_MODULES=”ip_conntrack_netbios_ns”


My query is how to add 2 IPTABLES_MODULES.

I hope, my question is clear.

Please revert with the reply to my query.

Regards

Source: FULL ARTICLE at The UNIX and Linux Forums

Using grep with hyphens

By woodson2

This is on a RHEL 6 box with bash 4.1.2

I’m trying to to use grep to only find those lines containing matches that form whole words.

The -w option works fantastic unless of course that word has a hyphen.

The problem is I will get a hit on “test-group” which is a good thing, but I will also get a hist on “test” which is bad because the group test doesn’t exist. It appears that once grep hits a hyphen it treats the preceding text as a whole word.

Any ideas would be greatly appreciated.

Next time no groups with hyphens..

Thanks

Source: FULL ARTICLE at The UNIX and Linux Forums

To make an ftp server writable

By RHCE

I want to implement an FTP server on RHEL 5.8 system where the users can upload files either from RHEL or Windows systems but am not able to copy files to it from a browser session. For eg.

URLftp://10.101.17.80/incoming

I want to copy files from to it from my Windows Google chrome browser session.

I have done following steps to make FTP server writable on my RHEL 5.8 server:-


mkdir /var/ftp/incoming
chgrp ftp /var/ftp/incoming
chmod 730 /var/ftp/incoming
semange fcontext –a -t public_content_rw_t ‘/var/ftp/incoming(/.)?’
setsebool –P allow_ftpd_anon_write on
Changes in /etc/vsftpd/vsftpd.coonf
anon_uploads=yes
chown_uploads=yes
chown_username=daemon
anon_umask=077


Can you please let me know if I have missed out anything or some wrong steps that I am not able to copy files to the /incoming folder from the Windows brower session.

Please revert with the reply to my query.

Regards

Source: FULL ARTICLE at The UNIX and Linux Forums

Installing EBS 12.1.1 on RHEL 6.1 x86_64‏

By rehantayyab82

i am in process to install R12.1.1 on RHEL 6.1.

while installing pre-requisite on RHEL 6.1 i am facing following error :

rpm -ivh xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm

error: Failed dependencies:
libX11.so.6 is needed by xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386
libXext.so.6 is needed by xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386

xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm is 32 bit rpm but it is written in oracle doccumentation to install this 32 bit rpm on 64 bit operating system also.
when i search for dependencies they are already present.

locate libX11.so.6

/usr/lib64/libX11.so.6
/usr/lib64/libX11.so.6.3.0

how do i solve such errors ?

Source: FULL ARTICLE at The UNIX and Linux Forums

Installing the C compiler

By Aj_rev

Hello Unixians,

I downloaded an ISO image of RHEL 6 from the web using a torrent and am trying to install it in my windows pc (dual boot). I was able to complete the installation. I now want to connect my USB hard drive. As you all know, its NTFS formatted and I had to install an NTFS package. I hit an error that there are no c compilers in the path. Now i tried to install the GCC (GNU C compiler) but the installation failed with and error “Nothing to do”. Is there any work around for this or should I register with Red Hat? Thank you all for your time.

Regards,

Source: FULL ARTICLE at The UNIX and Linux Forums

Change hostid to particullar string

By brusell

Hello guys,
currently I’m working on migration services from physical to virtual server (RHEL 6). One form applications is binded to hostid of old server.
I put value of hostid from old server to the /etc/hostid on new server, but output of hostid command is giving nonsenses then.

Code:

[root@oldserver ~]# hostid
17acc883


Code:

[root@newserver tmp]# hostid
18ac2644
[root@newserver tmp]# echo 17acc883 > /etc/hostid
[root@newserver tmp]# hostid
63613731


Can anybody help??

Thanks.

Source: FULL ARTICLE at The UNIX and Linux Forums

RIP configuration in RHEL 6.3

By reddybs

Hi,

Can someone please help me configuring RIP (Routing Information Protocol v2 ). I have tried few manuals and posts from networking sites and i didnt get a clear picture.

This is what i have done:
1. Installed routed package and started routed service.

however, Dynamic routes are not updating on the server.

If someone can help me with the steps it would be great.

Thanks,
Sai

Source: FULL ARTICLE at The UNIX and Linux Forums

RHEL6 Diskless Remote boot fail

By aninmuk

Hi guys,

I’ve been trying to set up a server for disk-less booting of remote machines on a network. The server host OS is RHEL6 and I have configured dhcp, tftp and nfs services which are proven to be working since I am able to install RHEL6 through pxe boot. Now I want it to serve for disk-less booting. Below are steps which I have done and then the problems I got-

1. Configure dhcp, tftp, nfs and set up for pxe booting. Tested to be working by installing RHEL through network.

2. Install dracut-network package, copy the kernel from /boot of the host server to temp and generate an initramfs with network support.

#dracut initramfs_diskless.img vmlinuz-2.6.32-279.el6.x86_64
This gave the error-

find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/’: No such file or directory
find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/’: No such file or directory
find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/’: No such file or directory
find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/’: No such file or directory
find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/’: No such file or directory
find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/’: No such file or directory

so I removed the vmliuz from the filename and dracut showed no errors.

3. Copy the entire root filesystem of a RHEL6 desktop installation to a location on the server, except the contents of /proc and /sys and export the location over nfs.

4. Add the following lines to default file inside pxelinux.cfg

label diskless
menu label Boot into diskless RHEL6
kernel vmlinuz-2.6.32-279.el6.x86_64
append initrd=initramfs_diskless.img root=nfs4:: rw rdshell rdinitdebug

5. Try to pxe boot a machine on the network.

Output at client side-

kernel and initramfs loads up,
ADDRCONF(NETDEV_CHANGE):eth0: link becomes ready
dracut:Mounted root filesystem
SELinux: Disabled at runtime
dracut: switching root
+ [ -f /etc/capsdrop ]
+ exec switch_root /sysroot /sbin/init

INFO: task init:1 blocked for more than 120 secs
“echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message.

Then it shows a bunch of memory addresses with system calls and hangs.

Please help !!!!!!!!!!

Source: FULL ARTICLE at The UNIX and Linux Forums

vnc password hit from Retina

By bitlord

Hello,
I’m having an issue with VNC. Security at work says that they scanned my servers (Solaris, RHEL, SLES) and found that you don’t need a password to access a VNC session. I have tested this and you can’t login to the VNC session without a password. Can someone tell what the Retina scanner may be finding. I can’t find the setting that would be the issue. I have not made any changes to the default vnc files.

Any help would be great.

Source: FULL ARTICLE at The UNIX and Linux Forums

Permissions problem with cifs.mount

By Zarake

hi,

I have the following permission problems with cifs.mount : a share on a VNXe (EMC NAS) is accessed by two RHEL 5.9 accounts (authenticated by Active Directory); One account has read+wite permission to the share , the second one has only read permission. Both accounts uses the following mount command:

mount -t cifs –verbose -o sec=krb5,cifsacl,multiuser //NAS/share/mount_point

First, the multiuser option is rejected (but the mounting is done). Moreover both accounts can write to the share, ignoring the NTFS permissions. What is going on ?

Source: FULL ARTICLE at The UNIX and Linux Forums

How to configure vnc on RHEL 6.1?

By rehantayyab82

i am first time using RHEL 6.1

i have to configure vnc on this server to access desktop remotely for this server.

i installed these rpm :

rpm -ivh VNC-Server-5.0.3-Linux-x64.rpm
rpm -ivh VNC-Viewer-5.0.3-Linux-x64.rpm

there is no directory /etc/sysconfig/vncserver in RHEL 6 as it was in RHEL 5.

please tell me how to proceed to configure vnc on this server ?

Source: FULL ARTICLE at The UNIX and Linux Forums

User (Profile) Specific Start Menu for RHEL 6.1 using KDE 4.3.4

By Gromit

I installed RHEL 6.1 with KDE 4.3.4 using LDAP on a PC and have now the problem to specifiy a user/Profile specific start menu.

I have used already the kmenuedit tool and tailored for one user a specific menu, successfully.
I changed as an example the konsole submenu.
The kmenuedit was generating a user specific file kde-konsole.setup of the edited menu file an stores it in the directory [B].local/share/applications/[/B]. This file was generated from the global menu file kde4-konsole.desktop stored in the directory /usr/share/applications/kde4/.
My question is, where can I store this generated user/profile that it is used when a new generated user is logging in the first time.
Before RHEL 6.x/ KDE 4.x always a mechanism with the /etc/skel directories was used, which seems to be not longer used.

Addtionally I had a look on the kiostool, but that does not longer work correctly for RHEL 6.x/KDE 4.x.

Does anyone have suggestions to solve this problem?

Source: FULL ARTICLE at The UNIX and Linux Forums