LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2007, 08:23 AM   #1
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Rep: Reputation: 30
Linux Samba / Server recommendations ?


I have 2 spare machines lying around, one with XP installed and the other with a couple of Linux flavours. What I've been meaning to do for a while is to install one flavour of Linux on the linux machine along with SAMBA, so it acts as a file server, and link up the XP machine to it. The Linux box is a 128 RAM, 500Hz machine with a 20Gb HD. Neither of these machines are going to or are currently connected to the Internet so I cannot perform any automatic installs via apt / yum / yast. At some point I would like to learn about FTP setup / config and Web server config / setup by installing the various software on the same linux box. But I would like to get SAMBA up and running before I try the web/ftp project. Shall I install samba/httpd/ftp software all at once and then just start / configure the services I need or shall I just initially install SAMABA and install web/ftp when I fell more comfortable ( if my cd installation allows for it).
The final goal is :

1. Link my Linux and XP boxes together.
2. Install SAMBA on my linux box for file sharing with XP box.
3. Set up ftp server on Linux box so I can use ftp from XP box and upload / download files.
4. Set up web server on Linux box to serve pages to XP box.

It may seem tedious but it would be a way to learn a bit more about servers whilst making use of two spare machines.

Could anyone recommend the most appropriate all-in-one Linux Samba /httpd/ftp package that I can download and burn onto one CD and which most suits my needs and requirements ?


Thanks for your patience !!

Uncle.
 
Old 08-01-2007, 08:54 AM   #2
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Rep: Reputation: 16
I think a lot of distro's are right for you when you just want a samba/ftp/web(apache) server. And most distro's ofter them on cd (the website should be clear on this, I know slackware offers all of that on the install cd for example). If you are just starting, a distro with a graphical interface for all administration may be nice. I hear nice things about Ubuntu:http://www.ubuntu.com/products/WhatI.../serveredition If I were you I'd just install everything and find out about stuff as you play with it. I mean why wouldn't you install ftp/apache(web) even though you don't use it? 20Gb is enough and these thing are not big.

Ubuntu also has a large community of people that can help (try the irc channels, people are always willing to help there!).

I myself started with Slackware and then went on to Gentoo though both of them are kind of hard to install (don't know how much you know about Linux though).

Good luck, I'd be happy to answer more questions.
 
Old 08-01-2007, 03:55 PM   #3
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Original Poster
Rep: Reputation: 30
Thanks teek. I've been using Linux for quite some time but have never attempted something like this. I will stick with Ubuntu server edition and take it from there. I feel quite confident at the Linux end but still a bit vary when thinking about configuring the XP machine to see the Samba share.

Uncle
 
Old 08-02-2007, 02:58 AM   #4
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Rep: Reputation: 16
I have the same setup as you (with Gentoo Linux) and setting up the XP box was very, very easy. I guess Ubuntu server has a graphical way of setting it up but if you have the "netbios name = myserver" set right in your smb.conf file you will find your samba share by typing \\myserver in the path field in windows explorer. Otherwise, \\ip-address-of-the-server will also work. You can also connect it as a network drive.

The "security = xxx" should also be set to the way you want it but that is al describe in the smb.conf.example (in Gentoo linux at least).

I can even tunnel samba through SSH and use my samba share from work as though it was a local drive (very cool!)

I can post any of the files if you fail to get it working, just let me know.

Seriously, I think you will have it working surprisingly fast

This is an older version but will probably work:

http://www.howtoforge.com/samba_setup_ubuntu_5.10

As I said, otherwise, just try the irc channels (using xchat or something, connect to freenode and look for samba/ubuntu channels).

Good luck!
 
Old 08-02-2007, 05:10 AM   #5
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Original Poster
Rep: Reputation: 30
Thanks a loot teek ! I am going to start the "project" any moment now so apologies in advance if I flood you with queries !!!!

Regards,
Uncle-C

ps: http://www.linuxquestions.org/questi...52#post2845552

Last edited by uncle-c; 08-02-2007 at 09:35 AM.
 
Old 08-02-2007, 01:24 PM   #6
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
Arrow Samba Server - home network linux/windows

Hey there,

So that is awesome that you are doing this home network. Don't be afraid of the Windows configuration. It is really easy actually. See because LINUX ROCKS and your setting up Samba well the silly Windows boxes actually will find the Samba share, that is if they are hooked up to the network which they will be. Basically the only thing you need to make sure of or at least I would recommend is making sure that the Samba Server will be on the same "domain" or as windows calls it "workgroup."

Once you have your Samba server setup and running you will need to map the drives from your Windows box or multiple boxes follow my guide on how to map a network drive. Of course your share names will be different as will your users...

Good luck and have fun! If you need more help I would be glad to help in anyway....
 
Old 08-02-2007, 03:22 PM   #7
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Original Poster
Rep: Reputation: 30
Thanks guys ! I do need your help after today's exploits
OK here goes !
Installed Ubuntu 7.04 server edition.Everything went ok.
Had to browse the CD to install all the Samba debian files and managed to find the one dependency, libcupsys2, on the net.
Samba was installed with no problems, smb.conf configured and up and running.

I assigned the Ubuntu box an IP of 192.168.0.1 with the command

Code:
 ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
Went into XP,

Network Connection -> TCP/IP -> Add , configured WINS , IP of 192.168.0.1 etc.
Manually assigned the IP 192.168.0.2 to the XP box.
Rebooted.
Pinged from Ubuntu ( 192.168.0.1 ) to XP ( 192.168.0.2) worked fine and visa versa. Excellent I thought, the machines are hooked up.
The fun started when I tried to map the network drive.
On Ubuntu I had edited the /etc/network/interfaces file. Here it is :

Code:
 
auto eth0
iface eth0 net static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1 ( also tried leaving this blank )
I restarted the network session /etc/init.d/networking restart
and got the following error message:

Code:
/etc/network/interfaces :6:
unknown address type
ifdown : couldn't find interfaces file "etc/network/interfaces
unknown address type
ifup : couldn't find interfaces file "etc/network/interfaces"
FAIL
I assume that this basically states that the network is not up ?
When I came to mapping the drive in windows I tried putting in both name (\\ubuntu\home\samba) and IP address (\\192.168.0.1\home\samba) in the address fields. I made sure that the correct samba user name and password were used but still got the error :

Code:
Drive cannot be mapped because no network was found .
I can still ping successfully between the two machines. Just from first thoughts I fear that my etc/network/interfaces file is not correctly configured. Any pointers ?

Here is my /etc/host file as well :

Code:
127.0.0.1 local host
192.168.0.1 ubuntu
Thanks !


Uncle

Last edited by uncle-c; 08-02-2007 at 05:35 PM.
 
Old 08-03-2007, 03:16 AM   #8
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Rep: Reputation: 16
Quick question, you don't have a router to which the two pc's are connected to? You just hook the two pc's together, network card to network card? If so, I have no experience doing it that way...
 
Old 08-03-2007, 08:50 AM   #9
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Original Poster
Rep: Reputation: 30
Thanks for the help teek ! I'm just linking two PCs together with a cross over patch cable nic to nic and no hub/router. I got the problem sorted. There was an error in the etc/network/interfaces file :

Code:
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1 ( also tried leaving this blank )
I had left out the i !!!!!!!!!!
Can leave out the network, broadcast and gateway lines.
Also I had to re-adjust one line ( force group = ) in the smb.conf file.

Thanks for all the kind help and advice. Much appreciated.

All good wishes,
Uncle-c

Last edited by uncle-c; 08-03-2007 at 08:51 AM.
 
  


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
Linux web server book recommendations? pxumsgdxpcvjm Linux - General 1 08-22-2005 01:51 PM
Linux Server Configuration Recommendations... TuxFreak Linux - Hardware 11 11-24-2004 05:04 PM
Linux Server Recommendations Urlryn Linux - General 9 03-08-2004 07:16 PM
Linux Server software recommendations firewall proxy email fax etc motiv8d Linux - Software 2 11-23-2003 12:38 PM
Linux on IRC - Server Recommendations? tobz Linux - General 2 07-27-2003 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:01 AM.

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