Jump to content

Recommended Posts

Posted

Just curious...I've got two Linux (Ubuntu) computers connected to a router. Both have Samba installed. I've set "area name" in both of them. When I define a folder "shared" in one computer, Firestarter gives messages of blocked "samba trafic" in another. Nothing comes through, though. I close Firestarter, no change. How to proceed?

Posted

Hi UrmasWhy do you use Samba ?? Are you running Windows ?:hysterical: BrunoPS: Firestarter is a fronted to IPtables . . . you will have to stop iptables at boot to stop the firewall :)PS2: Why are you running a software firewall if you have a hardware firewall in your router ?

Posted
Hi UrmasWhy do you use Samba ?? Are you running Windows ?:hysterical: BrunoPS: Firestarter is a fronted to IPtables . . . you will have to stop iptables at boot to stop the firewall :)PS2: Why are you running a software firewall if you have a hardware firewall in your router ?
No windoze... if you have a better program, we'll use it.Software firewall has been installed on the other computer from day one... router is brand new, remember... you think I oughta remove software firewalls?
Posted

LOL . . yep the software firewalls make no sense . . so uninstall them ( including iptables )See Samba is for communicating between Linux and Windows computers . . . . For Linux to Linux we again have 2 options:1). The official Linux to Linux way: NFS . . . . not really easy to set up but it works and if set up correctly is safe.Read about it: What is NFS How to set up: NFS HowTo2) The easy way: Set up a local LAN ftp-server ( not accessible outside the LAN ) Only advisable and safe if you are behind a router. ( Mandriva has a wizard to set it up and you can copy the config files to other distros . . . :hysterical: )You can use your pref FTP prog to transfer files up and down.The choice is yours :angry: ( but even if you choose #2 the links on NFS are a good read ! ):angry: Bruno

Posted
1). The official Linux to Linux way: NFS . . . . not really easy to set up but it works and if set up correctly is safe.
Let's do this... I installed NFS on both computers.Shall I uninstall Firestarter & iptables (and/or Samba) before we go on? :hysterical:
Posted

Yep better uninstall Firestarter and iptables . . . . . samba will not be bothering us so better leave that alone. ( dunno what depenedencies it will take with it when uninstalling ) You could stop it starting at boot though.I am not using NFS myself but if you follow the howto you should be fine . . . they do a good job explaining it. :hysterical: :angry: Bruno

Posted
. . . they do a good job explaining it.
Yeah... chapter and verse. :angry: Good thing I found "Readers' Digest version":http://www.ubuntuforums.org/showthread.php?t=249889Gotta do some readin' & mullin'... remember the famous Finnish last words (#3278, Ice Fishing):
"D*** quick to drill the ice when it's this thin."
:hysterical:
Posted

Why not just let Firestarter open a port for Samba? Samba is not just for Linux-Windows communications. It is also used in Linux only network environments because it is more secure than NFS.

Posted
Samba is not just for Linux-Windows communications. It is also used in Linux only network environments because it is more secure than NFS.
Is it ? I'll have to remember that !Thanks Peachy :hysterical: :angry: Bruno
Posted

Bruno, I sometimes use Samba to share between Linux boxes. It provides things like access control lists and passwords that NFS doesn't. Plus, if you want to replace a Microsoft Active Directory with a Linux LDAP-based directory service this is what you'd use.

Posted (edited)
Why not just let Firestarter open a port for Samba?
Errr... tell me more:Here's the Firestarter log from one machine... gate 138 (and occasional 137):kuvakaappaus3nx2.pngWhat kind of policy to create? This isn't enough... or I'm doing something else wrong:kuvakaappaus4eg9.png :) Edited by Urmas
Posted (edited)

D'oh... that was SOOOO easy... I just did the same kind of firewall configuration on the other machine... WORKS!kuvakaappaus5cf4.png :) Are there any "safety considerations" involved here?

Edited by Urmas
Posted
Bruno, I sometimes use Samba to share between Linux boxes. It provides things like access control lists and passwords that NFS doesn't.
I hear that NFS is much faster though . . . . . ;)
... WORKS!
:) . . . Kudos Urmas ! . . . . :thumbup: B) Bruno
Posted

Question: I tried to share my music collection (in an external USB HD)... no go... then I copied it to ext3 storage partition... no go, either... content not readable. :)

Posted

From my personal experience NFS is faster in Linux to Linux only network.It is also more "compatible" since I have my movies and music and everything on my home Linux server and can't get any of the movie players to play movie over samba.If I mount the NFS share, I have not such problem, movies play like I am accessing local volume.Again, this is from my personal experience with home Linux server.Maybe there is a way to enable movie playing over samba but I never bothered to investigate further.

Posted

zox, I can stream movies across a Samba connection by mounting the remote Samba share to a local directory. Otherwise, it doesn't stream properly. I have noticed that in SUSE it's not as simple to mount smb shares. It can be done but you have to use CIFS as the filesystem and you must do it as root. For example I use this command:

sudo mount -t cifs -o username=pchee,password=xxxxxxxx,uid=1000,gid=100 //192.168.1.104/TV ~/multimedia
Posted
Question: I tried to share my music collection (in an external USB HD)... no go... then I copied it to ext3 storage partition... no go, either... content not readable. :)
??? . . . . did you check ownership on the files you copied to the ext3 storage partition ???( My guess is on the external USB HD they did not belong to 500:500 . . and the transfer to the ext3 storage partition did not change that . . . . it should actually play from both locations without problems ):thumbup: Bruno
Posted
( My guess is on the external USB HD they did not belong to 500:500 . . and the transfer to the ext3 storage partition did not change that . . . . it should actually play from both locations without problems )
Problem solved... minus the streaming, but that's a non-issue: transferring files to ext3 partition DID make them "500:500", but I had give permissions to group "others" before they could be opened in the other computer. :wacko: Problems were between display & chair... again. :hysterical:
Posted
Problems were between display & chair... again.
LOL . . . . can happen to the best of us :DB) Bruno
Posted (edited)

Okay... printing... let's do it here instead of a new thread, because I think I'm close (no cigar, of course :thumbsup: ) with Samba (this is Ubuntu):On the "client" machine (the one NOT having the printer connected to it), I choose "Add Printer"... Network Printer... next, I choose "smb", not "cups"... the wizard sees the other computer, "MASIINA", and it sees the "PSC-750" connected to it:kuvakaappausob4.pngI choose 'em... next, the printer/driver questions, just like with a local printer:kuvakaappaus1wm1.pngFinally, it asks for "Description" and "Location"... dunno if they'd make a difference. :hmm: kuvakaappaus2hd0.pngAnyways... all done... the printer is ready... that sounds sooooo nice... would be downright ecstatic if it printed. B) I bet I'm missing something really trivial here (again).OR... if you think it's easier with some other way, please do tell me! :blink:

Tum vetustus Väinämöinen verbum facit, ita fatur: „Quonam hospitem inducam, meum ursulum dilectum? Num in horreum immittam aut in nubilari ponam?"--Kalevala XLVI 223-228
:whistling:EDIT: I had a nice surprise while playing with Suse: it has Samba preinstalled, and it "saw" the shared folders from the other machines "just like that". The not-so-nice surprise with Suse: after playing with Samba printer setup (without success, of course) I discovered that those settings are "root" in Suse; now I can't remove the non-functional printer... at least as user. :teehee: :wacko: Edited by Urmas
Posted

Why not use "cups" . . . since you will have the cups-server running already on the computer your printer is connected to.Just configure cups on the other computer and it will automatically find the IP address of the server.:thumbsup: Bruno

Posted
Just configure cups on the other computer...
Err... would that be with the Printer Setup Wizard? Or through browser? :thumbsup:
Posted
Err... would that be with the Printer Setup Wizard?
Yep . . . bingo !:thumbsup: Bruno
Posted (edited)
Just configure cups on the other computer and it will automatically find the IP address of the server.
Nope... I choose cups, it wants ME to enter "URI"... it gives two examples:
ipp://networkname/printers/<name>http://networkname:631/printers/<name>

Networkname? <name>?

Alice: Would you tell me, please, which way I ought to go from here?The Cat: That depends a good deal on where you want to get toAlice: I don't much care where.The Cat: Then it doesn't much matter which way you go.Alice: …so long as I get somewhere.The Cat: Oh, you're sure to do that, if only you walk long enough.
:thumbsup: Edited by Urmas
Posted

Okay . . . easy:Look at my URI:

ipp://10.0.0.154:631/printers/HPPSC1310_1

now the 10.0.0.154 is the IP address of the computer the printer is connected . . . . the :631 is the port for the cups server so that is the same for you . . . . I assume the last part is know to you ( or look on the sever-computer in the KDE control center --> Peripherals --> Printers --> URI :thumbsup: )B) Bruno

Posted
now the 10.0.0.154 is the IP address of the computer the printer is connected . . .
:thumbsup: B) IP address given by the router?
Posted

Yep look at output "ifconfig eth0" :thumbsup: ( of the computer the printer is connected . . . )B) Bruno

Posted

Yess!smileeh3.gif Now... I have the "shared partition" mounted, I can share files between the two computers, I can print over the network... :thumbsup: B) :teehee: Err... one tiny fly in the ointment:

EDIT: I had a nice surprise while playing with Suse: it has Samba preinstalled, and it "saw" the shared folders from the other machines "just like that". The not-so-nice surprise with Suse: after playing with Samba printer setup (without success, of course) I discovered that those settings are "root" in Suse; now I can't remove the non-functional printer... at least as user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...