LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-15-2003, 04:05 PM   #1
alypius
Member
 
Registered: Apr 2003
Location: Washington DC
Distribution: Slackware 9.0(file/web server), Redhat 6.0(Stereo/mp3 player), Redhat 9.0(Work)
Posts: 47

Rep: Reputation: 15
Redhat 9 and Gnome


I'm trying to run Redhat 9 with Gnome on an IBM Thinkpad 390e. Everything will run fine until I edit a config file, the files I'm trying to edit are:

/etc/xinetd.conf
/etc/services
/etc/profile

In /etc/xinetd.conf I'm adding the line:
swat stream tcp nowait.400 root /usr/sbin/swat swat

In /etc/services I'm adding:
swat 901/tcp

And in profile:
mount -t smbfs -o username=x,password=x //server/folder
/usr/folder

I know this is a really quick and dirty method for mounting an smb filesystem on boot, but since this is a laptop fstab won't work. Or it doesn't seem to, anyway. That is related to the PCMCIA config. But back to the original issue:

When any one of these files has been changed gnome won't start all the way. If it's either services or xinetd.conf I just get the redhat loading screen and nothing happens. If it's profile I don't even get the loading screen. The system appears to have frozen.

I can use crtl+alt+backspace to get back to the login, but that doesn't help much since I'm trying to run this computer, not look at a login screen. Any thoughts on what the hell is happening?
 
Old 07-08-2003, 04:58 AM   #2
wjlroe
LQ Newbie
 
Registered: Jul 2003
Location: Brighton, England
Distribution: Gentoo
Posts: 2

Rep: Reputation: 0
Hi,

First of all, is there any reason for manually configuring swat as you have done? RedHat's Swat package adds those lines itself and all you need do is add swat to the current runlevel and start it from RedHat's Service configurator. Either way, Swat isn't needed to mount another machine's share, just to configure your own shares.

The first problem is that the login manager (gdm) will execute /etc/profile first so a problem there will halt everything. I don't see anything wrong with the line you mention, but it would still be preferable to mount network shares in /etc/fstab. Here's how:

1. Add the approprite line to /etc/profile, to use the example you posted:
//server/folder /usr/folder smbfs defaults,rw,user,username=x,password=x,workgroup=x

2. This will only be mounted when the netfs service starts so you will need to make sure 'netfs' is added to your default runlevel and is started. You can do this from RedHat's Service Configuration program as well.

Those steps will take the pressure off Gnome, netfs is designed to try it's hardest to mount your network shares but it won't stop your computer if it fails.

The problem with putting that in /etc/profile is that _every_ time you login, it will try to mount that share again, without unmounting it. It may even help to put 'unmount //server/folder' first, as a last resort.

Hope it works out!

Regards,

Will
 
Old 07-08-2003, 09:36 AM   #3
alypius
Member
 
Registered: Apr 2003
Location: Washington DC
Distribution: Slackware 9.0(file/web server), Redhat 6.0(Stereo/mp3 player), Redhat 9.0(Work)
Posts: 47

Original Poster
Rep: Reputation: 15
The reason I was mounting them from rc.local is that redhat 9 loads drivers in a completely nonsensical way so that when fstab is trying to mount the drives the pcmcia drivers aren't loaded and smb get's shot all to hell.

What's more, RH9 doesn't (or didn't at the time) support any version of smb fully, which caused the machine to freeze when I tried to mount more than one drive. The first drive would mount just fine, but the second drive froze the machine at boot and it wouldn't load gnome or anything beyond that point.

Which is all irrelevant anyway because I switched to Slackware after redhat went completely nuts and refused load any text in gnome at all. This was probably due to my experimentation with wine, but who cares? Slackware has been running flawlessly for the last two weeks.

Thanks, though. :-)
 
Old 07-16-2003, 07:16 PM   #4
nerotique
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware 11 / Ubuntu 6.06
Posts: 22

Rep: Reputation: 15
I had a similar problem, but I just wound up writing my own service. The only question I have now is, how do I make that service appear in redhat-service-config under gnome? Any ideas. . .?
 
Old 07-17-2003, 08:58 AM   #5
alypius
Member
 
Registered: Apr 2003
Location: Washington DC
Distribution: Slackware 9.0(file/web server), Redhat 6.0(Stereo/mp3 player), Redhat 9.0(Work)
Posts: 47

Original Poster
Rep: Reputation: 15
That's way outta my league. . . :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat 9.0 and Gnome? Different to the typical Gnome! Boggit Linux - Newbie 1 08-26-2003 10:14 PM
gnome 2.2 on redhat 8 -- how ? nigels Linux - Software 0 06-17-2003 12:47 PM
Redhat 8 and Gnome 2.2 mrjeep Linux - General 2 02-18-2003 08:36 PM
Bypassing lokkit, gnome-lokkit and redhat-config-securitylevel on RedHat 8.0 Son77 Linux - Security 3 10-18-2002 04:35 AM
Gnome 2.0 on Redhat 7.3 wickdgin Linux - Software 15 07-10-2002 12:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration