Howto: Set up a simple (insecure) Windows compatible network

How to do things, solutions, recipes, tutorials
Message
Author
lurahxp
Posts: 17
Joined: Wed 28 Nov 2007, 07:01
Location: indonesia, jawa tengah,jawa barat
Contact:

i succes samba,but how conect from win Xp?

#21 Post by lurahxp »

i delete libdm.so.0 then copy libdm.so.0.0.4 to libdm.so.0
i type /etc/rc.d/rc.samba start
its working. samba start without error

but i can see puppypc in windowsXp. then i dobel click, winXP asking username and passowrd. i fill
username: root
pasword : woofwoof
stil not working.

username: guest
pasword : (blank
stil not working.

then in my puppy i type

Code: Select all

# smbclient -L puppypc
Password: 
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.25b]

        Sharename       Type      Comment
        ---------       ----      -------
        puppypc section Disk      
        sharedstuff section Disk      
        IPC$            IPC       IPC Service (Samba 3.0.25b)
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.25b]

        Server               Comment
        ---------            -------
        PUPPYPC              Samba 3.0.25b

        Workgroup            Master
        ---------            -------
        WORKGROUP 

then in winXP
stil asking username and pasword
so, what i must do?
i want without pasword
and why reading Puppypc in winXP it'a need more time, not fast i hope,
like between windows

thanks, for help

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#22 Post by disciple »

Try making your smb.conf look more like mine.
e.g. you don't have a

Code: Select all

public = Yes 
line (You can either have it in the global section or repeated in the section for each share.

lurahxp
Posts: 17
Joined: Wed 28 Nov 2007, 07:01
Location: indonesia, jawa tengah,jawa barat
Contact:

thanks, its working with your smb.conf

#23 Post by lurahxp »

it's working. i remember, i got my smb.conf from another link in this forum. then i try with your smb.conf. i just change some line for fit my network

Code: Select all

workgroup=lb  
netbios name = puppypc1
and i fill semicolon in

Code: Select all

;;msdfs proxy = No
to un activated item
now i acces puppy from winxp or from another puppy it's fast like between windows

thanks very much disciple

tata888
Posts: 16
Joined: Wed 11 Jun 2008, 02:06

#24 Post by tata888 »

Could anyone please tell me on how to download full samba. as I keep having difficulties with the dependencies

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#25 Post by disciple »

If the samba in the official petget repository doesn't work (I think it should - at least if there is one in the Puppy 2 or 4 repositories), try http://dotpups.de/dotpups/Network/Samba-3.0.21c.pup
But the dotpup is huge, as it has a lot of unnecessay documentation and stuff, and if you have Puppy 4, you will also need to install the dotpup handler first.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#26 Post by jpeps »

disciple wrote:If the samba in the official petget repository doesn't work (I think it should - at least if there is one in the Puppy 2 or 4 repositories), try http://dotpups.de/dotpups/Network/Samba-3.0.21c.pup
But the dotpup is huge, as it has a lot of unnecessay documentation and stuff, and if you have Puppy 4, you will also need to install the dotpup handler first.
..so many alternatives; I really like PureFTPd...no config files, etc., just ftp from your windows computer & your /root/ftpd folder appears... simple as that....Turn it off when you're through.

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#27 Post by lcrimail »

I'm a beginner, very bginner!
i have puppy 4.0
I have a local area network.
I installed samba 3.0.26 and i did set smb.conf into etc/opt/samba/ directory as:

Code: Select all

;*******************section global*****************
[global]
public = Yes
;this is the name of the windows workgroup the computer should show up in, so should match whatever you use in any Windows computers
workgroup = ARCO
server string = Samba Server %v
security = share
log file = /var/log.%m
max log size = 50
server signing = No
paranoid server security = No
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
preferred master = No
domain master = No
dns proxy = No
ldap ssl = No
message command = /usr/local/bin/LinPopUp "%f" "%m" %s; rm %s
read only = No
case sensitive = No
;this line works for me, but I have commented it out as other people say it causes trouble with Windows XP clients.
;msdfs proxy = No
restrict anonymous = No
;this is the name of the computer on the network, so if you are dual-booting, it should match what your computer is called in Windows
netbios name = Puppylcrimail
max protocol = NT
;*******************section printers*****************
;I think Cups automatically shares printers with other PCs running CUPS, so this is mainly useful for Windows clients.
[printers]
browseable = yes
printable = yes
create mode = 0700
guest only = yes
use client driver = yes
path = /tmp
;*******************section green room*****************
[green room]
path = /mnt/home
guest ok = Yes
writeable = Yes
force user = root
;*******************section e*****************
[e]
path = /mnt/hdb5
guest ok = Yes
writeable = Yes
force user = root
;*******************section f*****************
[f]
path = /mnt/hdb6
guest ok = Yes
writeable = Yes
force user = root
;*******************section Puppy*****************
[Puppy]
path = /
guest ok = Yes
writeable = Yes
force user = root 
In my windows network I don't see puppy.


I removed samba and installed http://dotpups.de/dotpups/Network/Samba-3.0.21c.pup but don't change nothing.

What do i have to do?

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#28 Post by disciple »

After installing Samba and editing smb.conf, have you either rebooted the computer, or manually started Samba?
You need to. Look in pprocess, or run `top` in a terminal, and see if the smb.d and nmb.d processes are running. If they are, run `/etc/rc.d/rc.samba restart` in a terminal. If they are not, run `/etc/rc.d/rc.samba start` in a terminal.

BTW you would probably want to edit smb.conf more. You probably don't have hdb5 and hdb6 partitions, in which case you can't share them, and you probably don't want to share /mnt/home as "green room", although you may want to share it as something.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#29 Post by lcrimail »

I have done as you told me with puppy 4 and puppy 3.1

Samba don't start, it says: permission denied.

My smb.conf is:

Code: Select all

[global]
public = Yes
;this is the name of the windows workgroup the computer should show up in, so should match whatever you use in any Windows computers
workgroup = HOOD
server string = Samba Server %v
security = share
log file = /var/log.%m
max log size = 50
server signing = No
paranoid server security = No
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
preferred master = No
domain master = No
dns proxy = No
ldap ssl = No
message command = /usr/local/bin/LinPopUp "%f" "%m" %s; rm %s
read only = No
case sensitive = No
;this line works for me, but I have commented it out as other people say it causes trouble with Windows XP clients.
;msdfs proxy = No
restrict anonymous = No
;this is the name of the computer on the network, so if you are dual-booting, it should match what your computer is called in Windows
netbios name = Green Room
max protocol = NT 
[puppypc section]

path = /
guest ok = yes
writable = yes
force user = root
browseable = yes

[share section]

Path = /share
guest ok = yes
writable = yes
force user = root
browseable = yes 

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#30 Post by lcrimail »

Who wants to make a simple guide for us newbie?

If I don't resolve this ..I think to leave puppy

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#31 Post by disciple »

Samba don't start, it says: permission denied.
Good, we have found the problem.
For some strange reason either the samba daemons themselves, or the start script rc.samba, aren't set to be executable. From your description, I'm not sure which is the case.

If you see a message like this:
# /etc/rc.d/rc.samba start
bash: /etc/rc.d/rc.samba: Permission denied
Then right-click (in ROX) on rc.samba->File 'rc.samba'->Permissions, and choose to make it executable.

If you see a message like this:
# /etc/rc.d/rc.samba start
/etc/rc.d/rc.samba: line 14: /usr/sbin/nmbd: Permission denied
/etc/rc.d/rc.samba: line 15: /usr/sbin/smbd: Permission denied
then use the same method to make smbd and nmbd executable.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#32 Post by lcrimail »

I have configured rc.samba succesfully but when I execute /etc/rc.d/rc.samba start ...(see the image below).

I don't succeed to execute the libdm command...(see the image)
Attachments
Immagine 1.png
(16.48 KiB) Downloaded 3148 times

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#33 Post by lcrimail »

Otherwise when I execute Testparm this is the message:
Attachments
Immagine 2.png
(21.3 KiB) Downloaded 5011 times

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#34 Post by disciple »

Oh, OK. So you're using the official samba package again (the dotpup doesn't need libdm).

You can get libdm from http://www.murga-linux.com/puppy/viewto ... 728#145728

Make a link to it called libdm.so.0, and make sure it is executable.

Hopefully that will be the last problem to solve
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#35 Post by lcrimail »

the response is like the photo in attachment.

now how can i browse the windows network from puppy?
Attachments
Immagine 1.png
(10.96 KiB) Downloaded 3116 times

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#36 Post by lcrimail »

ip ip urrà!!!!

i can see puppy computer in windows network, i can share with windows.

Into my mac computer I don't see puppy, it's compatible samba with mac?

I have another problem, i would like to do the same thing in puppy 4.0 but samba 3.026 installs itself in another directory, the opt directory, and it doesn't install properly because rc.samba file doesn't exist.

If I digit this command into terminal:

/usr/sbin/smbd

puppy says: no such file or directory

What do I have to do?

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#37 Post by disciple »

smbd must be somewhere else. Try just running `smbd` in a terminal. If nothing happens, I guess you can search for it with pfind.
But I think even if it doesn't have rc.samba, that package must have some way of starting itself automatically when you boot puppy.
Into my mac computer I don't see puppy, it's compatible samba with mac?

Maybe try googling it. I don't know how old your mac is - if I remember correctly, newer macs can use samba, but don't by default.
now how can i browse the windows network from puppy?
With pnethood or LinNeighborhood - one should be built into your Puppy.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#38 Post by lcrimail »

Puppy4
smbd is into /opt/samba/sbin directory.
rc.samba doesn't exist
I write this line "/opt/samba/sbin/smbd" into rc.local. Samba starts when i boot puppy4 but computer is invisible on the lan.
If I ping...puppy4 receives the package.

Pnethood do see all the network but none computer puppy4.

My mac do see other pc with windows on the lan but not puppy4

I should test with puppy3.1

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#39 Post by disciple »

I think you need to run nmbd for Puppy to show up on the network, and smbd to share things.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#40 Post by lcrimail »

wow i resolved also with puppy 4 and it's more simple than 3.1

thank you!!!!

Ciaooooo

Post Reply