It is currently Sat Jan 06, 2018 1:45 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 79 posts ]  Go to page 1 2 3 4 5 6 Next
Author Message
PostPosted: Fri Aug 17, 2007 10:13 am 
Offline
SmoothNovice

Joined: Thu Oct 09, 2003 3:33 am
Posts: 11
Hello. My name is Craig and I've been an avid user of Smoothwall for about three or four years now. In an effort to cut energy usage by reducing the number of systems in use at one time, I decided to merge the router with a file server (of course, only serving inside the GREEN network.)

As always, one should be very careful with adding new services - it should be fine when it comes to home networks such as mine where you can control what goes on with the systems inside the network. However, for businesses this isn't recommended. Moving on!

My old smoothwall:
Pentium III 450MHz
196MB RAM
1.5GB HD

My file server (for the Xbox among other things)
AMD Athlon 64 3200+
2GB RAM
A plethora of hard drives

My goal:
Repurpose the AMD Athlon XP 1800+ I had sitting around and turn it into a home router/server

Without further ado, here is what you need:
1) Install the Smoothwall 3.0 Developers Edition
2) Download the Samba source here
3) Some knowledge of vi - I will try to help a bit here

Instructions

1) Untar the Samba source
Code:
> tar xzvf samba-latest.tar.gz


2) Compile and install Samba (please note that actual directory name of the Samba source may vary, please adjust accordingly!
Code:
> cd ./samba-3.0.25b/source
> ./configure
> make
> make install


3) Add Samba to /etc/rc.d/rc.sysinit
Code:
vi /etc/rc.d/rc.sysinit


While in vi, use the arrow keys to scroll down to the bottom. Place the cursor right above the following line:

Code:
echo "Silencing kernel, syslog output on tty12"


Press the 'i' key to go into INSERT mode, then add the following right above the aforementioned line:

Code:
echo "Starting Samba"
/usr/local/samba/sbin/smbd


Press ESC to get out of INSERT mode and then type ':wq' to write file and then quit.

4) Create a new smb.conf file

This is where your mileage WILL vary. The following I have typed is tailored for my own system/network, where I am in complete control of all the systems connected to my network and am not worried about security issues from the inside. Also, I'm a newbie when it comes to Samba so if you could help optimize this for me, that'll be great.

Code:
vi /usr/local/samba/lib/smb.conf


It will appear as a new file. Press 'i' to go into insert mode and type/paste the following:

Code:
[global]
workgroup = WORKGROUP
netbios name = homeserver
security = user
interfaces = 192.168.0.1/24
preferred master = yes

[media]
path = /files
comment = Media for Xbox
guest ok = yes
writable = yes


When you've typed it all, press ESC to go out of INSERT mode and then type ":wq" to write the file and then quit.

Your best bet is to go back to the directory where you untared the Samba source code and go to the 'examples' folder and then open up smb.conf.default and follow the directions there. It's wonderfully commented and helped me a lot.

5) Add 'root' user to Samba
Code:
> cd /usr/local/samba/bin
> ./smbpasswd -a root
New SMB password:
Retype new SMB password:


Next course of action for me is to figure out how to get Serial ATA working in Smoothwall so I can use my SATA drives. :) Figure I'll have to recompile the kernel somehow. This is my first howto, so if there are any problems please don't hesitate to let me know. Thank you!

Special Thanks
The Smoothwall Team for such a great product! 4 years as a Smoothwall user and counting!
My friend Joe for testing my directions and letting me know about mistakes I made.


Last edited by Gangis on Sat Aug 18, 2007 12:08 am, edited 6 times in total.

Top
   
PostPosted: Fri Aug 17, 2007 10:59 am 
Offline
Alpha & Omega

Joined: Tue Jun 24, 2003 10:53 pm
Posts: 1103
Location: Somewhere in the UK
Gangis wrote:
Hello. My name is Craig and I've been an avid user of Smoothwall for about three or four years now. In an effort to cut energy usage by reducing the number of systems in use at one time, I decided to merge the router with a file server (of course, only serving inside the GREEN network.)

(interesting samba stuff snipped)

Next course of action for me is to figure out how to get Serial ATA working in Smoothwall so I can use my SATA drives. :) Figure I'll have to recompile the kernel somehow. This is my first howto, so if there are any problems please don't hesitate to let me know. Thank you!


Express 3 should support most SATA chips. What one are you having problems with?

_________________
Lawrence

Main author, SmoothWall project
http://www.smoothwall.org

Main author, IMSpector
http://www.imspector.org

Electronics blog
http://aslak3.blogspot.co.uk


Top
   
PostPosted: Fri Aug 17, 2007 4:39 pm 
Offline
SmoothNovice

Joined: Thu Oct 09, 2003 3:33 am
Posts: 11
aslak wrote:
Express 3 should support most SATA chips. What one are you having problems with?


Hi,

My motherboard is an ABIT NF7-S2 with a nForce 2 Ultra 400 chipset. I can't figure out exactly what SATA controller it uses, though.

Thanks!

BTW - edited original post, forgot a step (#5) at the end.


Top
   
PostPosted: Fri Aug 17, 2007 4:44 pm 
Offline
Alpha & Omega

Joined: Tue Jun 24, 2003 10:53 pm
Posts: 1103
Location: Somewhere in the UK
Gangis wrote:
aslak wrote:
Express 3 should support most SATA chips. What one are you having problems with?


Hi,

My motherboard is an ABIT NF7-S2 with a nForce 2 Ultra 400 chipset. I can't figure out exactly what SATA controller it uses, though.

Thanks!


If you can get lspci and lspci -n output (by running another linux on it and seeing if it works there?) I can have a look...

_________________
Lawrence

Main author, SmoothWall project
http://www.smoothwall.org

Main author, IMSpector
http://www.imspector.org

Electronics blog
http://aslak3.blogspot.co.uk


Top
   
 Post subject:
PostPosted: Fri Aug 17, 2007 5:26 pm 
Offline
SmoothNovice

Joined: Thu Oct 09, 2003 3:33 am
Posts: 11
Here you go. Works great on the Ubuntu Live CD. Thank you so much!

Code:
ubuntu@ubuntu:/files$ lspci
00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev c1)
00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1)
00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
00:01.0 ISA bridge: nVidia Corporation MCP2A ISA bridge (rev a3)
00:01.1 SMBus: nVidia Corporation MCP2A SMBus (rev a1)
00:02.0 USB Controller: nVidia Corporation MCP2A USB Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation MCP2A USB Controller (rev a1)
00:02.2 USB Controller: nVidia Corporation MCP2A USB Controller (rev a2)
00:06.0 Multimedia audio controller: nVidia Corporation MCP2S AC'97 Audio Controller (rev a1)
00:08.0 PCI bridge: nVidia Corporation MCP2A PCI Bridge (rev a3)
00:09.0 IDE interface: nVidia Corporation MCP2A IDE (rev a3)
00:0b.0 IDE interface: nVidia Corporation nForce2 Serial ATA Controller (rev a3)
00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
02:07.0 Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
02:08.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46)
02:0b.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 8d)

ubuntu@ubuntu:/files$ lspci -n
00:00.0 0600: 10de:01e0 (rev c1)
00:00.1 0500: 10de:01eb (rev c1)
00:00.2 0500: 10de:01ee (rev c1)
00:00.3 0500: 10de:01ed (rev c1)
00:00.4 0500: 10de:01ec (rev c1)
00:00.5 0500: 10de:01ef (rev c1)
00:01.0 0601: 10de:0080 (rev a3)
00:01.1 0c05: 10de:0084 (rev a1)
00:02.0 0c03: 10de:0087 (rev a1)
00:02.1 0c03: 10de:0087 (rev a1)
00:02.2 0c03: 10de:0088 (rev a2)
00:06.0 0401: 10de:008a (rev a1)
00:08.0 0604: 10de:008b (rev a3)
00:09.0 0101: 10de:0085 (rev a3)
00:0b.0 0101: 10de:008e (rev a3)
00:1e.0 0604: 10de:01e8 (rev c1)
01:00.0 0300: 10de:0322 (rev a1)
02:07.0 0200: 1317:0985 (rev 11)
02:08.0 0c00: 1106:3044 (rev 46)
02:0b.0 0200: 1106:3065 (rev 8d)
ubuntu@ubuntu:/files$


Top
   
 Post subject:
PostPosted: Fri Aug 17, 2007 7:39 pm 
Online
SmoothModGod Admin

Joined: Thu Mar 11, 2004 8:20 pm
Posts: 5438
Location: TX, USA
Gangis wrote:
Code:
00:09.0 IDE interface: nVidia Corporation MCP2A IDE (rev a3)
00:0b.0 IDE interface: nVidia Corporation nForce2 Serial ATA Controller (rev a3)
ubuntu@ubuntu:/files$


Looks like an old nF2 IDE emulation of SATA. IIRC, there were lots of problems with that chipset and SATA on linux. Have you successfully installed a 2.6.x based linux distro onto the SATA drive? If so which one (including version) and which chipset drivers did it use? Just because lspci lists the device does not mean it is being used, nor that the kernel has loaded or built in drivers for it.

_________________
I drive an ice-cream truck covered with human skulls.
READ. LEARN. EVOLVE. -Dominus


Top
   
 Post subject:
PostPosted: Fri Aug 17, 2007 7:43 pm 
Offline
SmoothNovice

Joined: Thu Oct 09, 2003 3:33 am
Posts: 11
Yes, it works perfectly fine. I can mount it (ext3) and access all the files. Works on Ubuntu Edgy Eft and Feisty Fawn. In fact, I used Ubuntu to partition and format as ext3 so I could use it on the Smoothwall.

As for the chipset drivers, I don't know how to figure out which one... I'm in almost every way a linux novice. Thanks.


Top
   
PostPosted: Sat Aug 18, 2007 12:00 am 
Offline
SmoothMaster
User avatar

Joined: Thu May 18, 2006 4:15 am
Posts: 15595
Location: Central NC, USA
Gangis wrote:
5) Add 'root' user to Samba
Code:
> cd /usr/local/samba/bin
> ./smbpasswd -a root
New SMB password:
Retype new SMB password:


FWIW: you can change the above to this...
Code:
> /usr/local/samba/bin/smbpasswd -a root
New SMB password:
Retype new SMB password:

you don't need to change directory to the bin directory... simply include the full path and you'll be ok...

thanks for this, too... i finally saw where it had been done for SWE2 but i never got to it... this will be very handy in replacing an old PI200 non-MMX box that has been having problems for a while... now to just get that disk moved over and mounted again ;)

_________________
There is no 'I' in 'Team' - Cuius testiculos habes, habeas cardia et cerebellum.
#1 - SWE3.0u9 - Intel Quad Q8200/2.3Ghz/2Gb RAM/13Gb HD - eth0 - 192.168.x.1 - RealTek8139 | eth2 - 192.168.z.1 - RealTek8139 | eth1 - PPPoE/DSL - RealTek8139
#2 - SWE3.0u9 - Intel PIII 800mhz/384M/20Gig - eth1 - 192.168.x.2 - SMC2-1211TX | eth0 - DHCP/Wifi - DFE-530TX+
#3 - SWE3.0u9 - Intel Celeron 1Ghz/256M/20Gig - eth0 - 192.168.w.1 - 3Com 3c595 | eth0 - DHCP/LAN - MX987x5


Last edited by wkitty42 on Sat Aug 18, 2007 12:22 am, edited 1 time in total.

Top
   
PostPosted: Sat Aug 18, 2007 12:06 am 
Offline
SmoothNovice

Joined: Thu Oct 09, 2003 3:33 am
Posts: 11
wkitty42 wrote:
Gangis wrote:
5) Add 'root' user to Samba
Code:
> cd /usr/local/samba/bin
> ./smbpasswd -a root
New SMB password:
Retype new SMB password:


FWIW: you can change the above to this...
Code:
> cd /usr/local/samba/bin/smbpasswd -a root
New SMB password:
Retype new SMB password:

you don't need to change directory to the bin directory... simply include the full path and you'll be ok...

thanks for this, too... i finally saw where it had been done for SWE2 but i never got to it... this will be very handy in replacing an old PI200 non-MMX box that has been having problems for a while... now to just get that disk moved over and mounted again ;)


You're right... but in your example, I would remove 'cd' entirely as this will work:
Code:
> /usr/local/samba/bin/smbpasswd -a root


Thank you. :)


Top
   
 Post subject:
PostPosted: Sat Aug 18, 2007 12:21 am 
Offline
SmoothMaster
User avatar

Joined: Thu May 18, 2006 4:15 am
Posts: 15595
Location: Central NC, USA
oops!! :oops: that was an editing error ;) i've fixed it in my original 8)

_________________
There is no 'I' in 'Team' - Cuius testiculos habes, habeas cardia et cerebellum.
#1 - SWE3.0u9 - Intel Quad Q8200/2.3Ghz/2Gb RAM/13Gb HD - eth0 - 192.168.x.1 - RealTek8139 | eth2 - 192.168.z.1 - RealTek8139 | eth1 - PPPoE/DSL - RealTek8139
#2 - SWE3.0u9 - Intel PIII 800mhz/384M/20Gig - eth1 - 192.168.x.2 - SMC2-1211TX | eth0 - DHCP/Wifi - DFE-530TX+
#3 - SWE3.0u9 - Intel Celeron 1Ghz/256M/20Gig - eth0 - 192.168.w.1 - 3Com 3c595 | eth0 - DHCP/LAN - MX987x5


Top
   
 Post subject:
PostPosted: Sat Aug 18, 2007 12:28 am 
Online
SmoothModGod Admin

Joined: Thu Mar 11, 2004 8:20 pm
Posts: 5438
Location: TX, USA
Gangis wrote:
Yes, it works perfectly fine. I can mount it (ext3) and access all the files. Works on Ubuntu Edgy Eft and Feisty Fawn. In fact, I used Ubuntu to partition and format as ext3 so I could use it on the Smoothwall.

As for the chipset drivers, I don't know how to figure out which one... I'm in almost every way a linux novice. Thanks.
Hmm ok. If I get time this weekend I'll check the RC1 kernel config and see if the nforce chipset support is included. For the longest time the nforce ethernet driver was not part of the standard smoothwall distro, not sure why, I'll check on that one too (they are separate modules (chipset vs nic driver)). If the nf2 support is in the same driver as the nf4 support then I believe it *IS* included since one of my test boxes has an nforce 4 chipset.

Let me get this straight: (Pick the Scenario below, or completely, and clearly, describe your scenario)

1.) You cannot install to the SATA drive? (Remember, SW3 is designed to only recognize *ONE* harddrive. Whichever one it snags first, thats it. No others. I have seen reports where this has caused problems as under varying circumstances, the second drive is recognized first on a reboot, and then the drive where the OS is installed, is not recognized, and it won't boot.

2.) You install to the IDE drive, but cannot mount the SATA drive? This would not be supported anyway, see above.

ONE MASS STORAGE DEVICE
ONE OPTICAL DRIVE

That is it. No other combination is supported at this point.

_________________
I drive an ice-cream truck covered with human skulls.

READ. LEARN. EVOLVE. -Dominus


Top
   
 Post subject:
PostPosted: Sat Aug 18, 2007 12:44 am 
Offline
SmoothNovice

Joined: Thu Oct 09, 2003 3:33 am
Posts: 11
That would be door #2... Oh boy. I wasn't aware of that. What I wanted to do was turn my Smoothwall into a file server for my internal home network to serve DVDs and TV shows to my Xbox over the network without having to turn on my desktop PC to save on electricity.

Is it a limitation imposed by the kernel used in the Smoothwall? Would it be possible for me to build a custom kernel to add in that feature?

Thanks for the heads up and clarification.


Top
   
 Post subject:
PostPosted: Sat Aug 18, 2007 12:48 am 
Offline
SmoothMaster
User avatar

Joined: Thu May 18, 2006 4:15 am
Posts: 15595
Location: Central NC, USA
hey moderator! any chance we can split this thread into two... one for the samba addon and another for the driver stuff?? ;) ;)

_________________
There is no 'I' in 'Team' - Cuius testiculos habes, habeas cardia et cerebellum.
#1 - SWE3.0u9 - Intel Quad Q8200/2.3Ghz/2Gb RAM/13Gb HD - eth0 - 192.168.x.1 - RealTek8139 | eth2 - 192.168.z.1 - RealTek8139 | eth1 - PPPoE/DSL - RealTek8139
#2 - SWE3.0u9 - Intel PIII 800mhz/384M/20Gig - eth1 - 192.168.x.2 - SMC2-1211TX | eth0 - DHCP/Wifi - DFE-530TX+
#3 - SWE3.0u9 - Intel Celeron 1Ghz/256M/20Gig - eth0 - 192.168.w.1 - 3Com 3c595 | eth0 - DHCP/LAN - MX987x5


Top
   
 Post subject:
PostPosted: Sat Aug 18, 2007 1:05 am 
Offline
SmoothNovice

Joined: Thu Oct 09, 2003 3:33 am
Posts: 11
wkitty42 wrote:
hey moderator! any chance we can split this thread into two... one for the samba addon and another for the driver stuff?? ;) ;)


Well, as soon as I find out where the limitation lies, I'll consider the SATA HD matter closed, since the onus is pretty much on myself to see if I can get around that limitation. If I do figure it out, I'll post another thread in this forum.


Top
   
 Post subject:
PostPosted: Sat Aug 18, 2007 1:54 am 
Online
SmoothModGod Admin

Joined: Thu Mar 11, 2004 8:20 pm
Posts: 5438
Location: TX, USA
Gangis wrote:
That would be door #2... Oh boy. I wasn't aware of that. What I wanted to do was turn my Smoothwall into a file server for my internal home network to serve DVDs and TV shows to my Xbox over the network without having to turn on my desktop PC to save on electricity.

Is it a limitation imposed by the kernel used in the Smoothwall? Would it be possible for me to build a custom kernel to add in that feature?

Thanks for the heads up and clarification.
Nah, it isn't a kernel limitation at all, it is a limitation of the current setup code. When scsi support (and sata/pata) was added, the setup code was tweaked. This is sort of a side effect. Certainly not intentional, and I am fairly confident that it will be addressed in future versions. The 'target' for the smoothwall project is a dedicated, stand alone, firewall/router appliance. That's it, end of story. It was never intended to be a file server, SIP server, yadda, yadda. It is unfortunate that the current state, especially when the hardware support underneath is so much more expansive, and modern now, that the legacy code bites us on the bum a bit here in that it limits us to just one mass storage, and one optical drive, otherwise, mayhem will ensure.

SWE3's main goal was to be an evolution of the project to a wider hardware platform (scsi, sata, and expanded gigabit nic support), but it is still, first and foremost, intended to be a *DEDICATED* firewall/router and closely allied functions (vpn server (gimped somewhat), IDS, and web-proxy). That is it.

Now that being said, I think you should seriously look into the ClarkConnect project. That project was intended from the get-go to be the swiss-army knife of firewall/router distros. It certainly has better multi-purpose support by design. It might meet your needs better.

You could always install a monster single HD :twisted: (really a bad idea, lol).

Sorry to be the bummer tent. Since the project is open source, you, or anyone, is more than welcome to tweak the setup code to work around this current gotcha :wink: It just isn't a priority at this late stage of the project lifecycle.

_________________
I drive an ice-cream truck covered with human skulls.

READ. LEARN. EVOLVE. -Dominus


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 79 posts ]  Go to page 1 2 3 4 5 6 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited