PDA

View Full Version : LINUX servers


Sc00by
05-10-03, 01:25 AM
Mostly for Rob I think.

I have installed RedHat 8 on my 'spare' machine and it won't init to level 5 (so I can't telnet or ftp to it atm)

The error I'm getting is:

INIT: Id 'x' respawning too fast: disabled for 5 minutes. :huh:

Any ideas? (INIT 3 works fine BTW, but won't let me telnet or ftp in :( )

OK sussed it I didn't install the GUI and it's trying to load it, which now begs the question why can't I ftp or telnet into it when it's in run level 3, cos I should be able to! I switched all the firewall stuff off during the install. Is it something to do with IPtables? I vaguely remember having problems of that kind with the one at work, but I can't remember what they were or how I fixed it :(

Dunno why I haven't just deleted this post, but what the hell I'll keep editing it for the time being. Telnet doesn't work because there isn't a telnet server! But that's OK cos I've downloaded PuTTy (http://www.chiark.greenend.org.uk/~sgtatham/putty/) which is what I use at work and that will do ssh; which is installed on the server :D Looks like there isn't a ftp server installed either, but that is likewise OK cos I installed SAMBA, just got to work out how the hell I make it work now...

Any advice would be greatly appreciated (assuming I don't work it out for myself before you read this...)

--edit number 94-- No I can't get SAMBA to play. I can't see the damn server from windows :( Though I can't get 'smbclient'* in LINUX to connect to it's self either so I've done something wrong...

*smbclient //192.168.11.39/public [password]
added interface ip=192.168.11.39 bcast=192.168.11.255 nmask=255.255.255.0
error connecting to 127.0.0.1:139 (Connection refused)
Error connecting to 127.0.0.1 (Connection refused)

Thoughts? Me I think it's something to do with the security settings, but I can't see what's wrong. Though as it's now gone 4 AM (and I've been at this for a while) I can't actually see the screen any more, which probably isn't helping :D

McBain
05-10-03, 07:54 AM
No I can't get SAMBA to play. I can't see the damn server from windows :(
I have no idea when it comes to Linux, but if it helps, windows can't see our linux box either, if we stick the IP in though, we're rockin.

wintermute
05-10-03, 10:32 AM
You have to make sure and tick the FTP and Telnet servers when you do the setup, I don't think they're part of the default install anyway. I certainly had to install the ftp server afterwards on the one I set up on Monday, anyway. If you get it through up2date (have to download the new certificate first BTW), the ftp server is called 'vsftpd' which is what threw me (I was expecting 'ftpd'). The SSH is part of the standard install as far as I can tell, but then I never use it :)

As for iptables, I just turn them off, as well as any other services that aren't required (because then you're less vulnerable anyway, and your network is behind a firewall already). The command for editing running services is 'ntsysv', though you may need to type '/usr/sbin/ntsysv'

Samba is loads of fun. Remember and set up the usernames and passwords first, and if you're going to make any shared folders remember and set permissions so that the samba process can actually read them (777 should work I think).

Rob

Sc00by
05-10-03, 12:13 PM
[I have no idea when it comes to Linux, but if it helps, windows can't see our linux box either, if we stick the IP in though, we're rockin.

I can see the one at work in my windows domain, but I think that's the difference, SAMBA has a oad of controls to make it work with windows domains, but they aren't there for workgroups :(

I can't get at it from the IP either... I'll figure it out, it's probably permissions

--edit-- OK I'm a noob :oops: It wasn't switched on!

Thanks Rob :thumbs:

wintermute
05-10-03, 01:02 PM
I'll bring our smbconf file over tonight, we can compare and contrast.

Rob

Sc00by
05-10-03, 01:09 PM
I was hoping you'd say that :D I'll try and get ftp setup before you get here, but I'm not promising anything...

Though the machine only has 20 GB of HDD space so it's not going to be a file server or anything, but I need a way of getting games onto it so I can install them - Yes I _could_ just burn them to cd, but why? when I've got a network and all these cool tools to play with? :D

wintermute
30-11-03, 12:35 PM
Spent the last ~12 hours re-installing my Linux desktop machine with Fedora Core 1 (http://fedora.redhat.com) and it seems to be a big improvement.

Setting up Samba and CUPS (Common Unix Printing System) through Gnome was a breeze (not checked if the machine is visible in the workgroup yet, but that doesn't bother me too much). I can now browse the network again (though I think my inability to do that was due to the slight accident I had with RH8 which my system never fully recovered from). Graphical printing is also now possible, I wish I'd used CUPS the last time I tried to set the printer up.

Only problems so far, an issue with plugins in Mozilla and the fact that the upgrade option didn't work out too well for me (booted me into KDE instead of Gnome, and all sorts of stuff stopped working). However that did at least lead to me learning how to write CDRs from the command line ;) And the upgrade from RH9.0 went fine for me on the machine at work on Friday night, so for now I'm putting that down to my dodgy install on this machine. Now just got to get mp3 support re-installed and it's all ready to rock.

Plan to upgrade the file server to FC1 in the near future (though possibly that'll end up being a re-install on a new HDD), I'll let you know how it goes.

Rob

wintermute
01-12-03, 01:02 AM
Woo hoo! Got my Flash plugin working - had to install the compat-libstdc++-7.3-2.96.118.i386.rpm and it all worked!

Rob