How to Use Samba-TNG Server in Puppy

How to do things, solutions, recipes, tutorials
Message
Author
disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#46 Post by disciple »

I think Apple PCs support SAMBA, but a quick google indicates that maybe I*P*A*D*S don't... but can if you install an app called "FileBrowser" or something. I may have not have that quite straight though...
Last edited by disciple on Tue 29 Mar 2011, 08:41, edited 1 time in total.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#47 Post by smokey01 »

I really liked the simplicity of your HTTP solution but unfortunately it didn't work for me.

To access a Windows share from Puppy:

1. Declare a shared folder on the Windows machine.

2. Launch Puppy and run Pnethood or lameSMBxplorer from the Network menu.

---------------------------

To access a Puppy share from a Windows machine or another Puppy:

You need to run a server on the host Puppy machine. This could be a full Samba server or an ftp server, but here is my favourite method.

1. Go here and install the Python PET. Did this

2. Set up a share folder anywhere on your Puppy system and put some files in it. Yes, did this too

3. Open the folder in ROX. Yes

4. Open a terminal window inside the folder by pressing the backtick key (above the Tab key). Yes

5. Type the command
Code:
python -m SimpleHTTPServer This setup the server but it said the address was 0.0.0.0:8000

6. Minimize the terminal window, but don't close it.

7. Identify your Puppy server's IP address with the command
Code:
ifconfig
This gave me 192.168.0.2

8. Go to the client machine and open a web browser.

9. Type in the URL
Code:
http://puppy.server.ip.address:8000
I typed in http://192.168.0.2 and the connection was refused

Now if I typed the above into the sever computer that is connected to the wireless router it displayed the shared directory. When I tried this from a laptop running either puppy or windows the connection was refused. Any ideas?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#48 Post by rcrsn51 »

9. Type in the URL
Code:
http://puppy.server.ip.address:8000
I typed in http://192.168.0.2 and the connection was refused
You need to type

Code: Select all

http://192.168.0.2:8000
Are you forgetting the 8000? Are you running a firewall?

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#49 Post by smokey01 »

rcrsn51 wrote:
9. Type in the URL
Code:
http://puppy.server.ip.address:8000
I typed in http://192.168.0.2 and the connection was refused
You need to type

Code: Select all

http://192.168.0.2:8000
Are you forgetting the 8000? Are you running a firewall?
I typed http://192.168.0.2:8000 and it works ok from the host/server computer but I guess that is inside the firewall. I will try a clean install and leave the firewall off.

I just tried a live session of Lupu 5.2.1 without the firewall and it worked great.

Thanks for you help. Much appreciated.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#50 Post by rcrsn51 »

Glad to help. Your next problem is to upload files from the I*P*A*D to Puppy. Like disciple said, you will need to find out what client software is available for it.

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#51 Post by smokey01 »

rcrsn51 wrote:Glad to help. Your next problem is to upload files from the I*P*A*D to Puppy. Like disciple said, you will need to find out what client software is available for it.
What do you know about PureFTPd server and HTTPd?

This might work.

http://itunes.apple.com/us/app/ftp-on-t ... 87363?mt=8

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#52 Post by technosaurus »

I have to say, I love the simplicity of TNG. If only there was a ntfs-TNG :)

I'll see what can be done to get busybox httpd to play nice. If the code turns out to be hackable it may be useful to port some applets to busybox too.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

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

#53 Post by disciple »

disciple wrote:I think Apple PCs support SAMBA, but a quick google indicates that maybe piece of crap's don't...
Hmmm. I think an anti-spam script has become overenthusiastic with automatically editing posts.
Perhaps it should check if the poster has over a thousand posts or has been a member for a year or something ;)
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#54 Post by Flash »

I told the forum to change "i P a d" to "piece of crap" to discourage spammers. I think it has worked pretty well. To get around it, misspell i P a d somehow. I use i-Pad. You can edit your post to that effect.

SBP
Posts: 43
Joined: Wed 06 Apr 2011, 15:45

A small modification to the samba-start

#55 Post by SBP »

Hi rcrsn51, thank you for your samba-start pet you made for me.

I have changed it a bit so that it would also mount my USB-HDD (somehow it was not always available even though I did not change anything). But now with your modified script in the start-up folder it is always mounted - and shared using SAMBA.

#!/bin/sh
while [ 1 ]; do
ping -c 1 8.8.8.8
[ $? -eq 0 ] && break
sleep 5
done
mkdir /mnt/sdb1
ntfs-3g /dev/sdb1 /mnt/sdb1
samba-start


I would like use this small Puppu computer as a music server, and therefore it needs to run without a monitor and keyboard.

You wrote ......."Then you could boot Puppy with the "pfix=nox,fsck" argument and run headless!"
But where do I use this command, and also should I then put your Samba-start script into the rc.locale?
Just copy paste or?

Steen

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Re: A small modification to the samba-start

#56 Post by rcrsn51 »

You wrote ......."Then you could boot Puppy with the "pfix=nox,fsck" argument and run headless!"But where do I use this command?
In the GRUB menu.lst file, such as

Code: Select all

 kernel /vmlinuz .....pfix=nox,fsck
and also should I then put your Samba-start script into the rc.locale? Just copy paste or?
I haven't tried this, but I would just paste the lines of your script into /etc/rc.d/rc.local and see if it works there. If you are booting with nox, it may not work in /root/Startup.

SBP
Posts: 43
Joined: Wed 06 Apr 2011, 15:45

#57 Post by SBP »

Sorry very NOOB in Linux, So I can't find any menu.lst file

How or where should I find it?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#58 Post by rcrsn51 »

Go to the root of your Puppy partition and find the folder /boot/grub.

I just tested this with no monitor and it appears to work. The problem with removing the keyboard is that some BIOSs won't start without one.

SBP
Posts: 43
Joined: Wed 06 Apr 2011, 15:45

#59 Post by SBP »

I am really sorry for being so studpid, but how?

Do I start the file browser in Puppy, or do I ssh into puppy from another computer, anyway I can't see any boot folder.

Using the newest Puppy

I have used the file finder = Pfind - it did not find any menu.lst (mark in All files).

Regarding putting the script in the rc.local file - it was fine, and started up after a reboot.
Last edited by SBP on Thu 07 Apr 2011, 20:13, edited 1 time in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#60 Post by rcrsn51 »

Click on the icon at the bottom of the screen that represents the partition in which Puppy is installed. Do you not see a folder named boot?

SBP
Posts: 43
Joined: Wed 06 Apr 2011, 15:45

#61 Post by SBP »

No, I can't see any boot dir.

I see the following dir:
archive
automake
bin
dev
etc
home
initrd
lib
lost+found
mnt
opt
proc
root
sbin
selinux
sys
tmp
usr
var

and these files
boot.msg
extlinux.conf
fskme.flg
help2.msg
help.msg
initrd.gz
Idlinux.sys
logo.16
lupu_525.sfs
vmlinux

Thats all, and show hidden files are marked

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#62 Post by rcrsn51 »

Are you booting off your hard drive or a flash drive? It appears that your bootloader is extlinux, not GRUB. How did you install Puppy on this machine?

In any case, you need to add the "pfix=nox,fsck" in your extlinux.conf file. Please post its contents.

SBP
Posts: 43
Joined: Wed 06 Apr 2011, 15:45

#63 Post by SBP »

Thank you for your continued help.

I boot from a 500 mb Flash HDD (the computer is a thin client Siemens Futro S400).
As far as I remember I installed from a CD to the HDD.

This is the content of the file:

default puppy
display boot.msg
prompt 1
timeout 50

F1 boot.msg
F2 help.msg
F3 help2.msg

label puppy
kernel vmlinuz
append initrd=initrd.gz libata.dma=3 pmedia=ataflash pfix=copy

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#64 Post by rcrsn51 »

SBP wrote: append initrd=initrd.gz libata.dma=3 pmedia=ataflash pfix=copy
Change it to

Code: Select all

append initrd=initrd.gz libata.dma=3 pmedia=ataflash pfix=copy,nox,fsck

SBP
Posts: 43
Joined: Wed 06 Apr 2011, 15:45

#65 Post by SBP »

YES it is working

Thank you so much, it is starting fine without monitor, keyboard and mouse, and the drive is mounted and shared by your samba-tng.pet using the start script you provided (and I modified a bit).

Thank you, it was only yesterday I started using Puppy, and I must say that you have a very nice community, and very helpful.

Steen

Post Reply