• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need help setting up linux

Hi,

I'm trying to get a Linux server up and going to host html and mysql. I've got the installation done successfully of Mandrake 8.1 (only disk I have)

I'm posting from the machine right now.

I have a P3 500Mhz with 380MB of ram, 60GB drive, built in Intel 810 Graphicscard

The machine has two nic cards, a Dlink and a Belkin. The linux distribution has used a Realtek driver for both of them.

I have a public IP assigned to the Belkin, and a private IP assigned to the DLINK. I want to host HTML and mysql on the public IP, and I wanted
to have samba sharing setup on the private ip.

I go to the control panel and it says both nics are up and functioning.

However, I can't quite get the Samba share to work, I mean I would like to be able to find the other servers on the network. I can enter in the public IP at my browser and it posts
the apache startup page, so I know apache is working. But it says, welcome to "private IP" instead of the public ip, even though I requested the public IP.

Can any body give me some direction so I can get this figured out?
 
#add this line into your samba.conf
interfaces = 192.168.0.27/255.255.255.0

-- basically this will tell samba which interface to use. By default, samba will scan all available ethernet adapters and use all of them unless the .conf specifies otherwise.

-- so if your private ip range is 192.168.1.X then "interfaces = 192.168.0.X/255.255.255.0" will tell samba to only use that interface.


I've never messed with apache a whole lot, so I can't do anything other than to point you to Apache.org
 
You should also include the loopback in the list of interfaces for Samba to use, otherwise things will break.

But it says, welcome to "private IP" instead of the public ip, even though I requested the public IP.

Probbaly because you're connecting to the private interface since you're on that side of the network, by default Apache listens on all interfaces. Unless you change that in httpd.conf it'll work from the public interface as well. Run 'netstat -at' or 'lsof -i', you should see something like:

tcp 0 0 *:www *:* LISTEN

The *:www means all interfaces
 
Originally posted by: n0cmonkey
Please patch that system. Thank you.

working on it. i installed a really stripped set of applications, and i stopped as many as i could. i'm sure its not perfect, but i only bring the machine up when I work on it, which is maybe an hour or so a day.
 
Originally posted by: TechBoyJK
Originally posted by: n0cmonkey
Please patch that system. Thank you.

working on it. i installed a really stripped set of applications, and i stopped as many as i could. i'm sure its not perfect, but i only bring the machine up when I work on it, which is maybe an hour or so a day.

Thats fine, but remember that even though Linux doesn't have the same problems that Windows has in terms of worms and whatnot, it still is vunerable to crackers and individually targetted attacks.

The open source nature of the OS means that problems get fixed very quickly, but it also means that you need to have everything up to date to take advantage of the patches and bugfixes.

If you need newer versions you can download them from places like www.linuxiso.org, they have links to lots of different distros and newest versions are free as anything else.
 
ok, so i added the interface part to smb.conf in etc/samba, i listed the only interface as teh private one as 192.168.2.15/255.255.255.255 i still don't see anything in windows network neighborhood

what else could it be?

also, regarding the apache problem, where its listing the private IP instead of the public, what can I edit to fix that?
 
Back
Top