Tag Archives: RHEL

Files copied to FTP server not shown

By RHCE

I had copied 2 files to an FTP server which I deployed on my RHEL 5.8 server. The ownership I kept for the files are for the user, ftp. But, I do not see the files on the FTP location using either accessing through Windows explorer or the browser. The ftp location is ftp://10.101.17.80/incoming. The files are visible on the server when I login using root in the location, /var/ftp/incoming.

I hope, my query is clear.

Please revert with the reply to my query.

Regards

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Root and non-root user not able to delete the file

By sukhdip

Hi!! one strange problem occurred with my RHEL 5 box.
i’m having logs folder with ownership of non-root user. Created some files with root user under logs folder.
here is the scene:

Code:

-rw-r----- 1 root root 1048227 Feb 28 12:34 SystemOut_13.02.28_12.34.10.log
-rw-r----- 1 root root 415920 Mar 14 16:41 SystemOut.log
-rw-r----- 1 root root 20902127 Mar 2 22:15 trace_13.03.02_22.25.53.log
-rw-r----- 1 root root 2579956 Mar 14 16:41 trace.log


I’m not able to delete the files with both users.
Below error is coming up

Quote:

rm: cannot remove `SystemOut_13.02.28_12.34.10.log’: Read-only file system


I tried lsattr and chattr, below the output of both:

Code:

------------- /opt/IBM/WebSphere/AppServer/profiles/xyz/logs/server1/


Code:

chattr: Read-only file system while setting flags on /opt/IBM/WebSphere/AppServer/profiles/xyz/logs/server1/


Chown and chmod not able to work. Again Read-only file system error is coming up.
Help needed also want to understand the reasons.

Immediate help will be appreciated.
Thanks.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Screen Resolution on External Monitor from RHEL 6.3

By rchaud10

Hey everyone,

I have a KVM or External monitor (19″ Dell) that I am trying to hook up to a laptop running RHEL 6.3 (via VGA which is the only option). When I connect it, and go to System->Preferences->Display, the max resolution option it provides me for these external devices is 1280×1024. Now, the KVM should provide a maximum resolution capability of 1600×1200, and the Dell monitor should have a capability of 1920×1080. Neither of those come up. How do I get this to work? I was reading online that Red Hat OS needs to be configured for the graphics card on the laptop in order to provide higher resolutions. I would hope it’s simpler to this. Any hints or tips?

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Adjusting conntrack in RHEL 6.4

By sevmax

Hi Everyone!
I’m tweaking RHEL6 for high traffic load and was going to changenet.netfilter.nf_conntrack_max, net.nf_conntrack_max and net.netfilter.nf_conntrack_tcp_timeout_established variables like did it previously. But RHEL6 returns an error «unknown key».

Command
sysctl -a | grep conntrack
returns empty value

Command
sysctl -a | grep netfilter
returns just

net.netfilter.nf_log.0 = NONE
…
net.netfilter.nf_log.10 = NONE

PLease advice how to adjust conntrack settings in RHEL 64.?

Thank you in advance!

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

How can I do this in VI editor?

By kraljic

version info :
vi availabe with RHEL 5.4
I have a text file with 10,000 lines. I want to copy lines from 5000th line to 7000th and redirect to a file. Any idea how I can do this?

Note:
The above scenario is just an example. In my actual requirement, the file has 14 million lines and I want to copy 2000 lines after the 12th million line 🙂

BTW.I’ve just realised that the vi editor we use in RHEL is actually VIM



$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
$
$ which vi
/bin/vi


…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

FTP drag & drop

By RHCE

I have enabled FTP for my RHEL 5.8 server. I want to drag a file from my windows session and drop it to the FTP browser session but I am not able to do it as the file is not dragging.

I hope my query is clear that the drag & drop from the windows session to the FTP browser session running on Red Hat Linux is not working.

Please revert with the reply to my query.

Regards

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Partitions necessary in RHEL 6

By RHCE

I had a query as to what are the partitions that should be necessary in RHEL 6. My knowledge says that

Code:

1) /
2) /home
3) Swap
4) /boot


should be sufficient. But, I am seeing in my production environment which is RHEL 5 that there are partitions also for

Code:

1) /var
2) /tmp
3) /usr


Are there any advantages of having separate partitions for /var, /tmp & /usr?

I hope my query is clear that are the partitions of /var, tmp & /usr necessary.

Please revert with the reply to my query.

Regards

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Copy on right click not available on FTP URL

By RHCE

I had a query that if the ftp service is enabled on a RHEL server, then, why is the right-click on the URL which is like:

Code:

ftp://10.101.18.19


does not yield a save-as box? But if I do a ftp to the server like

Code:

ftp


the mget for a file works.

I hope my query is clear that the file cannot be downloaded from the URL but a command line ftp for the file works.

Please revert with the reply to my query.

Regards

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

You' dont have any Linux partition- Rescue Mode

By ahsanpmd

I accidently deleted fstab file from one of the compute nodes of the cluster (RHEL 5.3). Due to this no filesystem/directory is mounted on the system during bootup. I started system in rescue mode but it says You don’t have any linux partitions. Press return to get a shell. The system will reboot automatically when you exit from the shell
I thought about creating new fstab (I have a backup file) in /mnt/sysimage/etc/
but I am not able to see /mnt/sysimage as there is nothing mounted.
fdisk -l shows this (attached in snapshot)

How can I mount my system again!

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

awk – printing the passwd file

By westmoreland

I’ve got a number of RHEL systems and I’m trying to use awk to read and format the output of /etc/passwd. But I’d like to display the host name of the system at the beginning of each line of output.

I’ve got it working without the adding the host name in this script:

Code:

#!/bin/bash

#HOST=`hostname -s`

awk -F: '
BEGIN {printf ("%-20s%-8s%-8s%-45s%-30s%-20sn", "Username", "UID", "GID", "Description", "Home Directory", "Shell")}

$3 > 100 && $3 < 50000 {printf ("%-20s%-8s%-8s%-45s%-30s%-20sn", $1,$3,$4,$5,$6,$7) }

' /etc/passwd


Here’s the output and it’s the way I want it except for the host name. I don’t think it copied and pasted well below:

Quote:

Username UID GID Description Home Directory Shell
rrdcached 101 102 rrdcached /var/rrdtool/rrdcached /sbin/nologin
nagios 501 100 /home/nagios /bin/bash
powersdp 502 504 /home/powersdp /bin/bash
westmorc 503 505 …read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Xming Vs ssh connect to RHEL server from Windows machine

By RHCE

I am able to connect a RHEL server from my Windows machine using Putty (via ssh). My question is what is the advantage of using Xming instead of Putty? Is it that Xming would enable a graphical connect from the Windows machine to RHEL server?

I hope my question is clear that what is the advantage of using Xming over Putty.

Please revert with the reply to my query.

Regards

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Graphically connect RHEL server from Windows 7 Professional

By RHCE

I want to connect RHEL server from my windows 7 Professional machine graphically. I logged into 1 RHEL server with IP, 10.101.17.80 using Putty from my Windows 7 professional machine. Now from this server, 10.101.17.80, I want to connect to another RHEL server 10.101.17.79. I used,


ssh –X 10.101.17.79


from 10.101.17.80 but it is not connecting graphically and only doing a normal ssh connect.

I hope, my query is clear that it is not connecting graphically from 10.101.17.80 to 10.101.17.79.

Please revert with the reply to my query.

Regards

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

RHEL 5.5 NIC Bonding

By tjcooper

I am new to linux. I have a falconstor CDP installation which runs on RHEL 5.5 (Tikanga). There is a vendor option to bond nics in either 802.3ad or round robin, I choose 802.3ad. The server is connected to a Cisco 3750 switch.

The problem is dropped packets and eth03 wont come up in the PO (suspended). I am getting reports of dropped packets. When I look at the network files, things dont look right. I am not posting this without doing homework, I have spent the last couple days looking into RHEL NIC Bonding. At this point, I need help, before I make the changes I think are necessary. I dont think Eth0 should have an IP and I am not entirely sure what kind of load-balancing RHEL supports.

This is what is on the server

DEVICE=bond0
IPADDR=192.168.0.27
NETMASK=255.255.255.0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
MTU=1500
BONDING_OPTS=”mode=4 miimon=100 updelay=60000″

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
#IPADDR=192.168.0.27
#NETMASK=255.255.255.0
HWADDR=00:23:7d:e1:f8:66
DHCP_HOSTNAME=
MTU=1500
MASTER=bond0
SLAVE=yes

DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
#IPADDR=10.0.0.3
#NETMASK=255.255.255.0
TYPE=Ethernet
HWADDR=00:23:7d:e1:f8:68
DHCP_HOSTNAME=
MTU=1500
MASTER=bond0
SLAVE=yes

DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
#IPADDR=10.0.0.4
#NETMASK=255.255.255.0
TYPE=Ethernet
HWADDR=00:23:7d:e1:f8:6a
DHCP_HOSTNAME=
MTU=1500
MASTER=bond0
SLAVE=yes

DEVICE=eth3
ONBOOT=yes
BOOTPROTO=none
#IPADDR=10.0.0.5
#NETMASK=255.255.255.0
TYPE=Ethernet
HWADDR=00:23:7d:e1:f8:6c
DHCP_HOSTNAME=
MTU=1500
MASTER=bond0
SLAVE=yes

Modprobe.config
alias bond0 bonding
alias eth0 bnx2
alias eth1 bnx2
alias eth2 bnx2
alias eth3 bnx2
alias scsi_hostadapter cciss
alias scsi_hostadapter1 libata
alias scsi_hostadapter2 ata_piix
options scsi_mod max_luns=1
options sd_mod max_scsi_disks_fs=1
options bonding max_bonds=1
options bond0 miimon=100 mode=4 updelay=60000

CISCO SWITCH

*each port looks like this

interface GigabitEthernet1/0/5
switchport access vlan 500
switchport mode access
switchport nonegotiate
channel-group 1 mode active
spanning-tree portfast
end
*load-balance

SCHQYADR3750#show etherchannel load-balance
EtherChannel Load-Balancing Operational State (src-mac):
Non-IP: Source MAC address
IPv4: Source MAC address
IPv6: Source IP address

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Installation of R12.1.1 on RHEL 6.1

By rehantayyab82

i run Health Check/Validation for “Oracle E-Business Suite Release 12 (12.1.1) Preinstall (Linux x86 and x86_64)”

im getting following errors :

1.Some of the required software tools for the the application tier of Oracle E-Business Suite Release 12 (12.1.1) installation were not found. Check your installation.
linux32 is not in /usr/bin as required. ( how to resolve ?? )

2.i added search fgho.com in /etc/resolve.conf but still getting error message( The DNS server failed to resolve the nslookup using host.domain.)

3.i set hard nproc 16384 but getting error message ( Increase the limit for maximum processes to 16384 or higher.)

4.i set kernel.msgmnb = 65536 but getting error message (Increase the limit for file descriptors to 65536 or higher.)

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Install google chrome browser in RHEL

By pandu345

Hi All,

This is my operating system.
Red Hat Enterprise Linux Server release 5.7 (Tikanga).
This is a64 bit version

Code:

[root@oim11gdevlab tmp]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
[root@oim11gdevlab tmp]# uname -a
Linux oim11gdevlab 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@oim11gdevlab tmp]#


I have been trying to install any web browser and was never successful.

Code:

[root@oim11gdevlab tmp]# !346
yum install google-chrome-stable
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.i386 0:24.0.1312.69-180721 set to be updated
--> Processing Dependency: libcurl.so.4 for package: google-chrome-stable
--> Processing Dependency: libc.so.6(GLIBC_2.11) for package: google-chrome-stable
--> Processing Dependency: libXcomposite.so.1 for package: google-chrome-stable
--> Running transaction check
---> Package google-chrome-stable.i386 0:24.0.1312.69-180721 set to be updated
--> Processing Dependency: libcurl.so.4 for package: google-chrome-stable
--> Processing Dependency: libc.so.6(GLIBC_2.11) for package: google-chrome-stable
---> Package libXcomposite.i386 0:0.3-5.1 set to be updated
--> Finished Dependency Resolution
google-chrome-stable-24.0.1312.69-180721.i386 from google-chrome has depsolving problems
--> Missing Dependency: libcurl.so.4 is needed by package google-chrome-stable-24.0.1312.69-180721.i386 (google-chrome)
google-chrome-stable-24.0.1312.69-180721.i386 from google-chrome has depsolving problems
--> Missing Dependency: libc.so.6(GLIBC_2.11) is needed by package google-chrome-stable-24.0.1312.69-180721.i386 (google-chrome)
Error: Missing Dependency: libcurl.so.4 is needed by package google-chrome-stable-24.0.1312.69-180721.i386 (google-chrome)
Error: Missing Dependency: libc.so.6(GLIBC_2.11) is needed by package google-chrome-stable-24.0.1312.69-180721.i386 (google-chrome)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.


Please help.

Thanks

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Unable To Activate Ethernet Network Device in RHEL 5.5 – e100 device eth0 does not seem to be presen

By Tanmoy

Hi All,

Could anyone please help to resolve the below problem.
I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error.
#ifup eth0
e100 device eth0 does not seem to be present, delaying initialization.
I spent 2 days for the above and go through with several suggestion found by googling. But no luck.
Please help me.

Below are the some command & result which i executed on my machine.

[root@localhost ~]# ls /sys/class/net show
ls: show: No such file or directory
/sys/class/net:
lo sit0
[root@localhost ~]# lspci -vv | grep -i net
00:19.0 Ethernet controller: Intel Corporation Unknown device 1503 (rev 05)
[root@localhost ~]# dmesg | grep eth
You have mail in /var/spool/mail/root
[root@localhost ~]#
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-194.el5PAE #1 SMP Tue Mar 16 22:00:21 EDT 2010 i686 i686 i386 GNU/Linux
[root@localhost ~]# lspci | grep -i eth
00:19.0 Ethernet controller: Intel Corporation Unknown device 1503 (rev 05)

[root@localhost ~]# lspci
00:00.0 Host bridge: Intel Corporation Unknown device 0100 (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Unknown device 1503 (rev 05)
00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b5)
00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Unknown device 1c5c (rev 05)
00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 05)
01:00.0 PCI bridge: Integrated Technology Express, Inc. Unknown device 8892 (rev 30)

[root@localhost ~]# lspci -nnk
lspci: invalid option — k
Usage: lspci []

-v Be verbose
-n Show numeric ID‘s
-b Bus-centric view (PCI addresses and IRQ‘s instead of those seen by the CPU)
-x Show hex-dump of the standard portion of config space
-xxx Show hex-dump of the whole config space (dangerous; root only)
-xxxx Show hex-dump of the 4096-byte extended config space (root only)
-s [[[[]:]]:][][.[]] …read more
Source: FULL ARTICLE at The UNIX and Linux Forums