Server

Firewalls, routers, servers, switches, SANs, PBXes, security and related topics
Locked
User avatar
travis
Posts: 122
Joined: Sun Jul 10, 2005 12:37 pm

Server

Post by travis »

I want to set up a server, just for storage. The only operating systems I have are Windows 2000 pro and I can always get a distro of linux. How would I just set up a computer with like 3 shared drives? So everyone on our home network can access it?

Archived topic from Iceteks, old topic ID:3548, old post ID:28884
C2D E6400 @ 3.4ghz/Scythe Infinity
GA-965P-DS3
1GB G.Skill HZ @ DDR2 1000
BFG Nvidia 7600gt @ 632/1610
Seagate 7200.10 250GB
NEC DVD+/-RW
Antec NeoHE 550W
LG 21" Widescreen LCD
Chenming Server Case/Razer Copperhead/Logitech X-230
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Server

Post by Red Squirrel »

I'd install Debian and setup samba. Windows seems to crap out, aparantly, with drives that are too big, at least that's my experience... and by crap out, I mean really screw things up.

So I'd put linux, get 3 300GB drives or bigger, and a cheap CD-ROM drive should do. You don't need too much of a fast machine. An AMD 2000+ will do you just fine.

Partition 1 drive in two parts, like 40GB for OS and the rest data, then the other drives can have single partitions and distribute your files as you wish. Make sure to do backups though on multiple drives, you never know...

I'd have to write a tutorial on setting up a file server, actually.

Archived topic from Iceteks, old topic ID:3548, old post ID:28885
Honk if you love Jesus, text if you want to meet Him!
User avatar
travis
Posts: 122
Joined: Sun Jul 10, 2005 12:37 pm

Server

Post by travis »

Yeah, please. I have the 7 cds for debian and I wanted to get it running so bad but I could never get it up to the GUI it was always text. I wouldnt need 300 gig drives lol maybe like 2 300s.

Archived topic from Iceteks, old topic ID:3548, old post ID:28886
C2D E6400 @ 3.4ghz/Scythe Infinity
GA-965P-DS3
1GB G.Skill HZ @ DDR2 1000
BFG Nvidia 7600gt @ 632/1610
Seagate 7200.10 250GB
NEC DVD+/-RW
Antec NeoHE 550W
LG 21" Widescreen LCD
Chenming Server Case/Razer Copperhead/Logitech X-230
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Server

Post by Red Squirrel »

Actually you won't need the GUI. That's the beauty of linux, really, even in text mode, network is supported, unlike DOS. My server at home has no GUI. In fact you rather not have a GUI since it takes a reasonable amount of resources, and if it's just sitting at the login screen, no point in having a GUI.

Archived topic from Iceteks, old topic ID:3548, old post ID:28887
Honk if you love Jesus, text if you want to meet Him!
User avatar
travis
Posts: 122
Joined: Sun Jul 10, 2005 12:37 pm

Server

Post by travis »

Oh I see, see I was like trying to install packages like crazy to see if it would bring me to th GUI but it never would, probably because I am a complete linux n00b. So all I have to do is install the first CD and I am set? And then I just tell it the workgroup name?

Archived topic from Iceteks, old topic ID:3548, old post ID:28913
C2D E6400 @ 3.4ghz/Scythe Infinity
GA-965P-DS3
1GB G.Skill HZ @ DDR2 1000
BFG Nvidia 7600gt @ 632/1610
Seagate 7200.10 250GB
NEC DVD+/-RW
Antec NeoHE 550W
LG 21" Widescreen LCD
Chenming Server Case/Razer Copperhead/Logitech X-230
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Server

Post by Red Squirrel »

Yeah pretty much. All you need is samba. You might want to put apache php and mysql on there if you want to do web development, but if you're just sharing you can get away with just samba.

Archived topic from Iceteks, old topic ID:3548, old post ID:28914
Honk if you love Jesus, text if you want to meet Him!
User avatar
travis
Posts: 122
Joined: Sun Jul 10, 2005 12:37 pm

Server

Post by travis »

So, after I get the first cd installed and it welcomes me to my new debian system all I have to do is chose samba as a package that I want to install in apt? And then I just run it from the command line after I login?

Archived topic from Iceteks, old topic ID:3548, old post ID:28916
C2D E6400 @ 3.4ghz/Scythe Infinity
GA-965P-DS3
1GB G.Skill HZ @ DDR2 1000
BFG Nvidia 7600gt @ 632/1610
Seagate 7200.10 250GB
NEC DVD+/-RW
Antec NeoHE 550W
LG 21" Widescreen LCD
Chenming Server Case/Razer Copperhead/Logitech X-230
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Server

Post by Red Squirrel »

Yep, that's basically it.

Oh, and you'll want to install apmd, which will make it so your system will shut itself off when you do a poweroff command, otherwise it just sits there waiting for you to hit the power button.

Archived topic from Iceteks, old topic ID:3548, old post ID:28920
Honk if you love Jesus, text if you want to meet Him!
User avatar
travis
Posts: 122
Joined: Sun Jul 10, 2005 12:37 pm

Server

Post by travis »

Once I get the extra machine I will definetely want to try out centOS. It has to have Samba on it. And even when I run samba will the drives show up on my windows box?

Archived topic from Iceteks, old topic ID:3548, old post ID:29100
C2D E6400 @ 3.4ghz/Scythe Infinity
GA-965P-DS3
1GB G.Skill HZ @ DDR2 1000
BFG Nvidia 7600gt @ 632/1610
Seagate 7200.10 250GB
NEC DVD+/-RW
Antec NeoHE 550W
LG 21" Widescreen LCD
Chenming Server Case/Razer Copperhead/Logitech X-230
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Server

Post by Red Squirrel »

Yep, you basically setup shares, then type \server from windows and map them to drives.

Here's my samba config to give you an idea how it works.

Code: Select all

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = galaxy
#domain logons = yes

# server string is the equivalent of the NT Description field
   server string = BORG File Server
   netbios name = borg


# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
;   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast


#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
#log level = 10
   log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
# package for details.
  security = user

map to guest = Bad Password 
  
  #=========================== DOMAIN LOGON STUFF ===============================

 # local master = yes
 # os level = 65
 # preferred master = yes
 # domain master = yes
 # logon script = %U_logon.bat
 # logon path = 


# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
  passdb backend = tdbsam guest
  #passdb backend = smbpasswd

  #smb passwd file = /etc/samba/smbpasswd

   obey pam restrictions = yes

;   guest account = nobody
   #invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
;   unix password sync = no

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
# sending the correct chat script for the passwd program in Debian Potato).
   passwd program = /usr/bin/passwd %u
   passwd chat = *EntersnewsUNIXspassword:* %n
 *RetypesnewsUNIXspassword:* %n
 .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
;   pam password change = no


########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;   printing = cups
;   printcap name = cups

# When using [print$], root is implicitly a 'printer admin', but you can
# also give this right to other users to add drivers and set printer
# properties
;   printer admin = @ntadmin


######## File sharing ########

# Name mangling options
;   preserve case = yes
;   short preserve case = yes


############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
;   domain master = auto

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

#======================= Share Definitions =======================
#[netlogon]
#path = /data/samba/netlogon/
#comment = The Domain logon service
#public = no
#guest ok = yes
#write list = ryan, administrator, root


[data2_rom]
path = /data2
browseable = yes
writeable = no
comment = Root of Data2 DRV
public = yes
create mode = 555
directory mode = 755
guest ok = no
valid users = ryan

[public]
path = /data/samba/public
comment = Public read only share
write list = ryan
public = yes
guest ok = yes

[shared]
path = /data/samba/shared
comment = main share
browseable = yes
writable = yes
guest ok = no
valid users=administrator,ryan


[customers]
path = /data/samba/shared/customers
comment = Customer Share
browseable = yes
guest ok = yes
writable = yes


[auclair]
path = /data/samba/shared/auclair
comment = Auclair
browseable = yes
writable = yes
valid users=administrator, auclair


[intranet]
path = /data/intranet
comment = Intranet files
browseable = yes
writable = yes
guest ok = no
valid users=administrator, ryan


[backup]
path = /data/samba/backup
comment = backup deposit directory
browseable = yes
writable = yes
guest ok = no
valid users=administrator,ryan

[backup_rom]
path = /data/samba/backup_rom
browseable = yes
writable = no
guest ok =no
valid users=administrator,ryan


[guest]
path = /data/samba/shared/guests
comment = Guest accessable share
browseable = yes
writable = yes
guest ok = yes
[code] 

[color=#888888][size=85]Archived topic from Iceteks,  old topic ID:3548, old post ID:29101[/size][/color]
Honk if you love Jesus, text if you want to meet Him!
User avatar
travis
Posts: 122
Joined: Sun Jul 10, 2005 12:37 pm

Server

Post by travis »

How would I setup shares?

Archived topic from Iceteks, old topic ID:3548, old post ID:29102
C2D E6400 @ 3.4ghz/Scythe Infinity
GA-965P-DS3
1GB G.Skill HZ @ DDR2 1000
BFG Nvidia 7600gt @ 632/1610
Seagate 7200.10 250GB
NEC DVD+/-RW
Antec NeoHE 550W
LG 21" Widescreen LCD
Chenming Server Case/Razer Copperhead/Logitech X-230
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Server

Post by Red Squirrel »

This is a good example:

Code: Select all

[public]
path = /data/samba/public
comment = Public read only share
write list = ryan
public = yes
guest ok = yes
[code]

The part in [ ] is the name of it.
path is the path on the server itself that the share "points" to.
Comment is whatever apears in windows when you go to network places and click on the share.
Write List is a coma seperated list of users that have write access to the share (optional, as you can make everyone or no one have write access)
Public makes it so the share apears in the list.
Guest Ok makes it so guests can access it.

So in this case, this share can be written to by ryan, while everyone else can only read.  But you can put writable = yes to make it so anyone can write to it.  

The user ryan has to be a user on the server which matches with the user on the client.  So you would create a linux user and give it a password of abc and a windows user with the same username with the same password.  So when you log in to windows as that user, you have whatever accesses are available from the linux server.

This is why a domain is nice, as you dont need to worry about password syncronization.  but I've had bad luck with a domain on a home network so I would not recomend it unles you want to take chances of having to migrate back to a workgroup.

 

[color=#888888][size=85]Archived topic from Iceteks,  old topic ID:3548, old post ID:29103[/size][/color]
Honk if you love Jesus, text if you want to meet Him!
User avatar
travis
Posts: 122
Joined: Sun Jul 10, 2005 12:37 pm

Server

Post by travis »

Thats what I am on now..... just to share a printer.

Archived topic from Iceteks, old topic ID:3548, old post ID:29105
C2D E6400 @ 3.4ghz/Scythe Infinity
GA-965P-DS3
1GB G.Skill HZ @ DDR2 1000
BFG Nvidia 7600gt @ 632/1610
Seagate 7200.10 250GB
NEC DVD+/-RW
Antec NeoHE 550W
LG 21" Widescreen LCD
Chenming Server Case/Razer Copperhead/Logitech X-230
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Server

Post by Red Squirrel »

You can share printers with samba, never done it though.

Archived topic from Iceteks, old topic ID:3548, old post ID:29106
Honk if you love Jesus, text if you want to meet Him!
Cold Drink
Posts: 96
Joined: Fri Jul 16, 2004 1:04 pm

Server

Post by Cold Drink »

Code: Select all

printcap name = /etc/printcap
printing = lprng

[printers]
path = /var/spool/samba
comment = Printers
printable = yes
use client driver = yes
valid users = @users[code] 

[color=#888888][size=85]Archived topic from Iceteks,  old topic ID:3548, old post ID:29109[/size][/color]
User avatar
travis
Posts: 122
Joined: Sun Jul 10, 2005 12:37 pm

Server

Post by travis »

I just got my laptop on debian. I want to make a 25 gig partition, and have that be shared over my local network. How would I do this. I just did a netinstall and installed all the packages.

Archived topic from Iceteks, old topic ID:3548, old post ID:29169
C2D E6400 @ 3.4ghz/Scythe Infinity
GA-965P-DS3
1GB G.Skill HZ @ DDR2 1000
BFG Nvidia 7600gt @ 632/1610
Seagate 7200.10 250GB
NEC DVD+/-RW
Antec NeoHE 550W
LG 21" Widescreen LCD
Chenming Server Case/Razer Copperhead/Logitech X-230
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Server

Post by Red Squirrel »

To share it you could use samba. To mount shares from other servers is more involved. It's with smbmount, I'd have to dig up the backup script I wrote to get the full command.

Archived topic from Iceteks, old topic ID:3548, old post ID:29174
Honk if you love Jesus, text if you want to meet Him!
Locked