Notices

Overclockers Forums > Overclockers.com Teams > Folding Team
Folding Team Join the Overclockers.com Protein-Folding Team and support medical research!
Forum Jump

Linux help...

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 09-24-11, 09:29 AM Thread Starter   #1
torin3
Member


 
torin3's Avatar 

Join Date: Dec 2004
Location: Seeing how many GPUs I can cram in one box

 
Linux help...


Ok, I'm back from vacation, and the past month and a half of heavy overtime, so I've actually got some time to spend on computer work.

I've managed to screw up the Samba install on my Ubuntu 10.10 install. Previously, I've just looked up an online how to do it, and it mostly worked, but this time, I seem to have looked up a bad way to do it.

Could someone point me to a way to clear out what I did and install and configure it properly? I'd really like to be able to monitor my folding client on it with HFM, and access the 3 extra NTFS drives I have in that computer.

Thanks!

__________________
Please fold for Team 32!
Board: EVGA 4-Way SLI Classified (E762)
Memory: GSkill Ripjaws 6x2GB DDR3
CPU: i7 970 at 4.26Ghz
Video card: 2x EVGA GTX 460
Cooling: EK Eddy CPU block and full coverage motherboard block & 2 120mmx240mm heater cores.
My Heat

Folding User Stats
torin3 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 10-05-11, 10:16 PM   #2
turbohans

 
turbohans's Avatar 

Join Date: Dec 2008
Location: n43, w86

 
Pretty easy, not sure about the drives but to get it working and sharing with windows just do the following.

Add yourself as a user.

Code:
sudo smbpasswd -a torrin3
then edit /etc/samba/smb.config

the one I have attached will bind to the "eth0" NIC adapter and share the root folder.

Code:
[global]
workgroup = Workgroup
server string = Torrin3 FaH server
netbios name = FAH
hosts allow = all
hosts deny = 0.0.0.0/0
guest ok = yes
interfaces = eth0
security = user
guest account = nobody
socket options = TCP_NODELAY IPTOS_LOWDELAY  
read raw = yes                     # Default  
write raw = yes                    # Default  
oplocks = yes                      # Default  
max xmit = 65535                   # Default  
dead time = 15                     # Default is 0  
getwd cache = yes  
lpq cache = 30

log file = /var/log/samba/samba.log
max log size = 50
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16777216 SO_SNDBUF=16777216
wins support = yes
hostname lookups = yes
passdb backend = tdbsam
max open files = 65536


[root folder]
comment = root
guest ok = no
writeable = yes
browseable = yes
public = no
Do those two steps then reboot your machine.

If you do not see the SMB shares in windows just type the hostname of your box in the address pane of a windows file manager preceded with two backslashes. EA. "\\yourlinuxbox"

__________________
This message was printed on 100% recycled electrons
i7-2600k@4.6ghz(1.380v), 16gb Corsair DDR3, Asus P8P67 Deluxe, gtx465, 3x500gb WD's
"It does not take knowledge to be genius, it takes a different way of thinking..."
And if you think about it too hard you will wonder why you did.
Build your computer Overclock it! find a cure.
Don't like looking out dirty windows? Live life without walls; Learn how to build an operating system
F@H - ExtremeOC

Last edited by turbohans; 10-05-11 at 10:33 PM.
turbohans is offline   QUOTE Thanks
Old 10-05-11, 10:33 PM Thread Starter   #3
torin3
Member


 
torin3's Avatar 

Join Date: Dec 2004
Location: Seeing how many GPUs I can cram in one box

 
About 2 days after I posted that, I went through again and blew away Samba and started from scratch. I can monitor it now, but it took a day after the install before I was able to see it from the Win 7 computer.

Also, I can't see it under the name I gave it (hordenix), but I can see it if I go by the IP assigned to it by my router (192.168.1.193). When I get a chance I'll post my smb.config file.

Also, part of the problem seems to be related to when I try to install Samba fresh, it doesn't do it quite right and I get an error when I try to share something (I forget the message, but it seems to be a common one when searching on it). Run package upgrade or do a manual config change, and it fixes it.

__________________
Please fold for Team 32!
Board: EVGA 4-Way SLI Classified (E762)
Memory: GSkill Ripjaws 6x2GB DDR3
CPU: i7 970 at 4.26Ghz
Video card: 2x EVGA GTX 460
Cooling: EK Eddy CPU block and full coverage motherboard block & 2 120mmx240mm heater cores.
My Heat

Folding User Stats
torin3 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 10-05-11, 11:06 PM   #4
turbohans

 
turbohans's Avatar 

Join Date: Dec 2008
Location: n43, w86

 
did you change what is in "/etc/hostname" to "hordenix"?

Not sure about those errors but I know I was getting some before I noticed I had to put the "smbpasswd" command in haha

__________________
This message was printed on 100% recycled electrons
i7-2600k@4.6ghz(1.380v), 16gb Corsair DDR3, Asus P8P67 Deluxe, gtx465, 3x500gb WD's
"It does not take knowledge to be genius, it takes a different way of thinking..."
And if you think about it too hard you will wonder why you did.
Build your computer Overclock it! find a cure.
Don't like looking out dirty windows? Live life without walls; Learn how to build an operating system
F@H - ExtremeOC
turbohans is offline   QUOTE Thanks
Old 10-06-11, 01:21 AM Thread Starter   #5
torin3
Member


 
torin3's Avatar 

Join Date: Dec 2004
Location: Seeing how many GPUs I can cram in one box

 
Code:
[global]
    ; General server settings
    netbios name = hordenix
    server string =
    workgroup = WORKGROUP
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
    interfaces = lo, eth0, eth1
    bind interfaces only = true

    passdb backend = tdbsam
    security = user
    null passwords = true
    username map = /etc/samba/smbusers
    name resolve order = hosts wins bcast

    wins support = no

    printing = CUPS
    printcap name = CUPS

    syslog = 1
    syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
    ;valid users = %S
    ;create mode = 0600
    ;directory mode = 0755
    ;browseable = no
    ;read only = no
    ;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
    ;path = /var/lib/samba/netlogon
    ;admin users = Administrator
    ;valid users = %U
    ;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
    ;path = /var/lib/samba/profiles
    ;valid users = %U
    ;create mode = 0600
    ;directory mode = 0700
    ;writeable = yes
    ;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
    path = /var/lib/samba/printers
    browseable = yes
    guest ok = yes
    read only = yes
    write list = root
    create mask = 0664
    directory mask = 0775

[printers]
    path = /tmp
    printable = yes
    guest ok = yes
    browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

[MyFiles]
    path = /home
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = torin
    force group = torin
And yes, I confirmed that etc/hostname has hordenix in it.

__________________
Please fold for Team 32!
Board: EVGA 4-Way SLI Classified (E762)
Memory: GSkill Ripjaws 6x2GB DDR3
CPU: i7 970 at 4.26Ghz
Video card: 2x EVGA GTX 460
Cooling: EK Eddy CPU block and full coverage motherboard block & 2 120mmx240mm heater cores.
My Heat

Folding User Stats
torin3 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 10-06-11, 09:41 AM   #6
turbohans

 
turbohans's Avatar 

Join Date: Dec 2008
Location: n43, w86

 
What kind of router are you running? Probably something with that not allowing your host-names to resolve.

__________________
This message was printed on 100% recycled electrons
i7-2600k@4.6ghz(1.380v), 16gb Corsair DDR3, Asus P8P67 Deluxe, gtx465, 3x500gb WD's
"It does not take knowledge to be genius, it takes a different way of thinking..."
And if you think about it too hard you will wonder why you did.
Build your computer Overclock it! find a cure.
Don't like looking out dirty windows? Live life without walls; Learn how to build an operating system
F@H - ExtremeOC
turbohans is offline   QUOTE Thanks
Old 10-06-11, 04:17 PM Thread Starter   #7
torin3
Member


 
torin3's Avatar 

Join Date: Dec 2004
Location: Seeing how many GPUs I can cram in one box

 
Quote:
Originally Posted by turbohans View Post
What kind of router are you running? Probably something with that not allowing your host-names to resolve.
D-Link Dir-655. Using it instead of the one Verizon supplies for FiOS. My FiOS comes in over ethernet rather than coax. No TV usage from it.

__________________
Please fold for Team 32!
Board: EVGA 4-Way SLI Classified (E762)
Memory: GSkill Ripjaws 6x2GB DDR3
CPU: i7 970 at 4.26Ghz
Video card: 2x EVGA GTX 460
Cooling: EK Eddy CPU block and full coverage motherboard block & 2 120mmx240mm heater cores.
My Heat

Folding User Stats
torin3 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 10-06-11, 06:22 PM   #8
ChasR
Senior Member

 
ChasR's Avatar 

Join Date: Apr 2004
Location: Atlanta

 
If you turn on guest access to the shared folder, Samba is almost automatic.

__________________

All ppd from friends and family. Many thanks to HayesK for his support and congrats on being the #1 Folder on Team 32. Special thanks to ChrisC and ColinC


Folding User Stats
ChasR is offline Folding Profile   QUOTE Thanks
Old 10-08-11, 11:26 PM   #9
harlam357
Senior Fold-a-holic

 
harlam357's Avatar 

Join Date: Sep 2004
Location: @Home... Folding@Home

 
Bingo... I used to set up Samba the "old fashioned" way as you are doing but yielded to ChasR's "quick and easy" way. The only issue I have is that I must access via IP and not hostname... and with VMs that DHCP assigned IP can change from time to time. Otherwise, quick and easy.

harlam357 is offline Folding Profile Heatware Profile   QUOTE Thanks
Old 10-08-11, 11:57 PM   #10
tuigi69



Join Date: Apr 2009
Location: Sierra Vista, AZ

 
Quote:
Originally Posted by harlam357 View Post
Bingo... I used to set up Samba the "old fashioned" way as you are doing but yielded to ChasR's "quick and easy" way. The only issue I have is that I must access via IP and not hostname... and with VMs that DHCP assigned IP can change from time to time. Otherwise, quick and easy.
Used to have the same problems. I gave mine "computer" names and am able to access them via VNC and HFM using the computer names. Don't have to worry about the changing IP's. Also if you're running the premade linux folding VM, there is an option in the Folding setup to assign IP's to the VM.
tuigi69 is offline Folding Profile   QUOTE Thanks
Old 11-26-11, 10:09 PM Thread Starter   #11
torin3
Member


 
torin3's Avatar 

Join Date: Dec 2004
Location: Seeing how many GPUs I can cram in one box

 
Just a quick note. I had a power outage about 2 weeks ago that lasted longer than my UPS had battery power. Now, I can't access the share anymore. I can see windows shares from the ubuntu machine, but not ubuntu shares from the windows machine.

__________________
Please fold for Team 32!
Board: EVGA 4-Way SLI Classified (E762)
Memory: GSkill Ripjaws 6x2GB DDR3
CPU: i7 970 at 4.26Ghz
Video card: 2x EVGA GTX 460
Cooling: EK Eddy CPU block and full coverage motherboard block & 2 120mmx240mm heater cores.
My Heat

Folding User Stats
torin3 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 11-26-11, 10:13 PM   #12
thideras
Banned Neckbeard Moderator
Premium Member #3

 
thideras's Avatar 

Join Date: May 2006
Location: South Dakota

 
Is the Samba service running ("service smb status")?
Is iptables stopping the connection ("service iptables stop")?

__________________
Desktop: Gigabyte Z77X-UD5H | 3570k 4.6 GHz | 32 GB GSkill Ares | GTX 570 | 180 GB Intel & 2 TB total | Arch Linux and Windows 7
Main server: 37 TB raw disk | 2x Opteron 6134 | Asus KGPE-D16 | 48 GB RAM | LSI 8708EM2 | CentOS 6.2
VM Server 1: Dell R510 | 2x E5645 | 128 GB RAM | 4x 300 GB Velociraptor | Xen Cloud Platform (XCP)
VM Server 2: Dell R710 | 2x E5645 | 288 GB RAM | 8x 300 GB Velociraptor | Xen Cloud Platform (XCP)
"That's not overkill, or a lot. That's just thiderastic." -txus.palacios

Current projects: Rackmount Overkill (New) | 30/45 hard drive server
Articles: Rack Mounting 101 | Dell Perc 5/i Throughput Benchmarks
Past projects: Software RAID | The Dragon Case
My Website


Want to talk directly to all the moderators at once? Call the Mod Hotline!
thideras is online now Author Profile Benching Profile Heatware Profile   QUOTE Thanks
Old 11-26-11, 10:19 PM   #13
\dev\goat
Member

 
\dev\goat's Avatar 

Join Date: May 2003
Location: South Carolina

 
make sure to edit the windows 7 hosts file
C:\Windows\System32\drivers\etc

Gotta change the file from read only and the directory to read and write for users (prob wanna change it back afterwards)

and add the names of your servers and clients
192.168.0.1 fileserver1
192.168.0.2 foldingcomputer1

etc

Then you should be able to access your shares with hostnames

edit: access them easily from the startmenu by typing in the "search files and folders box" \\hostname\sharedfoldername

__________________
Watercooled (build log)
i7-2600k 5ghz 1.5v -- 2x MSI GTX570 SLI
8gb Samsung LV -- Silverstone Raven RV02
128gb Crucial m4 -- 240gb mushkin chronos -- 60gb mushkin chronos -- 8tb server
Corsair TX850 -- Dell u2711 2560x1440
\dev\goat is offline Heatware Profile   QUOTE Thanks
Old 11-26-11, 10:35 PM Thread Starter   #14
torin3
Member


 
torin3's Avatar 

Join Date: Dec 2004
Location: Seeing how many GPUs I can cram in one box

 
Quote:
Originally Posted by thideras View Post
Is the Samba service running ("service smb status")?
Well, smb doesn't work because the version of Samba that Ubuntu grabbed when I told it to install it runs under "smbd". And "service smbd status" says that it is running.

Quote:
Is iptables stopping the connection ("service iptables stop")?
iptables comes back "unrecognized service".

__________________
Please fold for Team 32!
Board: EVGA 4-Way SLI Classified (E762)
Memory: GSkill Ripjaws 6x2GB DDR3
CPU: i7 970 at 4.26Ghz
Video card: 2x EVGA GTX 460
Cooling: EK Eddy CPU block and full coverage motherboard block & 2 120mmx240mm heater cores.
My Heat

Folding User Stats
torin3 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 11-26-11, 10:40 PM Thread Starter   #15
torin3
Member


 
torin3's Avatar 

Join Date: Dec 2004
Location: Seeing how many GPUs I can cram in one box

 
Quote:
Originally Posted by \dev\goat View Post
make sure to edit the windows 7 hosts file
C:\Windows\System32\drivers\etc

Gotta change the file from read only and the directory to read and write for users (prob wanna change it back afterwards)

and add the names of your servers and clients
192.168.0.1 fileserver1
192.168.0.2 foldingcomputer1

etc

Then you should be able to access your shares with hostnames

edit: access them easily from the startmenu by typing in the "search files and folders box" \\hostname\sharedfoldername
Tried it. Still doesn't work.

__________________
Please fold for Team 32!
Board: EVGA 4-Way SLI Classified (E762)
Memory: GSkill Ripjaws 6x2GB DDR3
CPU: i7 970 at 4.26Ghz
Video card: 2x EVGA GTX 460
Cooling: EK Eddy CPU block and full coverage motherboard block & 2 120mmx240mm heater cores.
My Heat

Folding User Stats
torin3 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 11-27-11, 01:53 AM   #16
DismorphiC
Member



Join Date: Apr 2009
Location: Folding in So Cal

 
If all else fails install SWAT or my favorite shortcut to the usual Linux admin stuff - Webmin. Not sure what apt-get install it is (I just do 'emerge webmin' in Gentoo) but you'll find it at http://localhost:10000 when it's running.

If it's not started, you can do /etc/init.d/webmin start or service webmin start if you're using upstart.

__________________
Fold something besides laundry... and do it for Team 32!!
Gentoo 2.6.32-r2 x86_64 | Asus P6T7 WS Supercomputer | i7 960@3.8Ghz | 12GB DDR3-2000 | GTX 285 | RAID-0 2x300GB 15k SAS
DismorphiC is offline   QUOTE Thanks
Old 11-27-11, 11:03 AM   #17
\dev\goat
Member

 
\dev\goat's Avatar 

Join Date: May 2003
Location: South Carolina

 
make sure you're restarting both samba daemons each time you make changes to the configuration files

sudo restart smbd
sudo restart nmbd

__________________
Watercooled (build log)
i7-2600k 5ghz 1.5v -- 2x MSI GTX570 SLI
8gb Samsung LV -- Silverstone Raven RV02
128gb Crucial m4 -- 240gb mushkin chronos -- 60gb mushkin chronos -- 8tb server
Corsair TX850 -- Dell u2711 2560x1440
\dev\goat is offline Heatware Profile   QUOTE Thanks
Old 11-27-11, 03:51 PM Thread Starter   #18
torin3
Member


 
torin3's Avatar 

Join Date: Dec 2004
Location: Seeing how many GPUs I can cram in one box

 
Quote:
Originally Posted by \dev\goat View Post
make sure you're restarting both samba daemons each time you make changes to the configuration files

sudo restart smbd
sudo restart nmbd
Restarted both, and verified that they were both running.

Windows still says that it is actively refusing the connection.

The router does see the ubuntu computer and gives me the internal IP, and proper hostname for it.

__________________
Please fold for Team 32!
Board: EVGA 4-Way SLI Classified (E762)
Memory: GSkill Ripjaws 6x2GB DDR3
CPU: i7 970 at 4.26Ghz
Video card: 2x EVGA GTX 460
Cooling: EK Eddy CPU block and full coverage motherboard block & 2 120mmx240mm heater cores.
My Heat

Folding User Stats
torin3 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 11-27-11, 04:09 PM   #19
thideras
Banned Neckbeard Moderator
Premium Member #3

 
thideras's Avatar 

Join Date: May 2006
Location: South Dakota

 
Since it is saying "actively refused", that generally means you can find the error on the server. Check the logs for hints, they are normally in /var/log. I'd check "security" and the samba folder for the computer you are trying to access it from.

__________________
Desktop: Gigabyte Z77X-UD5H | 3570k 4.6 GHz | 32 GB GSkill Ares | GTX 570 | 180 GB Intel & 2 TB total | Arch Linux and Windows 7
Main server: 37 TB raw disk | 2x Opteron 6134 | Asus KGPE-D16 | 48 GB RAM | LSI 8708EM2 | CentOS 6.2
VM Server 1: Dell R510 | 2x E5645 | 128 GB RAM | 4x 300 GB Velociraptor | Xen Cloud Platform (XCP)
VM Server 2: Dell R710 | 2x E5645 | 288 GB RAM | 8x 300 GB Velociraptor | Xen Cloud Platform (XCP)
"That's not overkill, or a lot. That's just thiderastic." -txus.palacios

Current projects: Rackmount Overkill (New) | 30/45 hard drive server
Articles: Rack Mounting 101 | Dell Perc 5/i Throughput Benchmarks
Past projects: Software RAID | The Dragon Case
My Website


Want to talk directly to all the moderators at once? Call the Mod Hotline!
thideras is online now Author Profile Benching Profile Heatware Profile   QUOTE Thanks
Thanks!
torin3 (11-27-11)
Old 11-27-11, 04:31 PM   #20
\dev\goat
Member

 
\dev\goat's Avatar 

Join Date: May 2003
Location: South Carolina

 
I think i see the problem, windows 7 and vista require this line to be uncommented I think, and it's missing completely from your config file that you posted.

encrypt passwords = yes

by default it's commented out, above the "passdb backend" and "obey passdm" section, right where that blank hole is in your [global] section that you posted.

Mine wouldn't work until i added that line.

Add it in and then
sudo restart smbd
sudo restart nmbd

and give that a shot

__________________
Watercooled (build log)
i7-2600k 5ghz 1.5v -- 2x MSI GTX570 SLI
8gb Samsung LV -- Silverstone Raven RV02
128gb Crucial m4 -- 240gb mushkin chronos -- 60gb mushkin chronos -- 8tb server
Corsair TX850 -- Dell u2711 2560x1440

Last edited by \dev\goat; 11-27-11 at 04:38 PM.
\dev\goat is offline Heatware Profile   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Overclockers.com Teams > Folding Team
Folding Team Join the Overclockers.com Protein-Folding Team and support medical research!
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 02:41 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?