Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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:
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:
And in profile:
mount -t smbfs -o username=x,password=x //server/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?
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.
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.