How to Use Samba-TNG Server in Puppy
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
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
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
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
Change it toSBP wrote: append initrd=initrd.gz libata.dma=3 pmedia=ataflash pfix=copy
Code: Select all
append initrd=initrd.gz libata.dma=3 pmedia=ataflash pfix=copy,nox,fsck
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
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
Actually I planned to use WinSCP from my windows computer to log into the Puppy, then remove pfix=nox,fsck once again, and reboot.
Do you think that this would be possible?
One last question - I have not been able to figure out how to power off my puppy using SSH commands.
I have tried:
wmpoweroff
poweroff
shutdown
halt ---- resulted in a freeze
so the only way is to pull the power, and I don't like to do it in this way. Do you have a solution, as my only way into puppy is through SSH client?
Do you think that this would be possible?
One last question - I have not been able to figure out how to power off my puppy using SSH commands.
I have tried:
wmpoweroff
poweroff
shutdown
halt ---- resulted in a freeze
so the only way is to pull the power, and I don't like to do it in this way. Do you have a solution, as my only way into puppy is through SSH client?
Here is what I think is happening.SBP wrote:I have tried:
wmpoweroff
poweroff
shutdown
halt ---- resulted in a freeze
1. You boot the server using pfix=nox.
2. To shut the server down at its own keyboard, you would use "poweroff".
3. This script runs two commands
Code: Select all
/etc/rc.d/rc.shutdown
busybox poweroff
5. The first command drops the network connection, so the second command never executes.
6. The server is left running.
If you just type "busybox poweroff" at the client, the server shuts down, but somewhat ungracefully. However, the pfix=fsck on the next reboot seems to fix everything.
However, if you boot the server all the way to X, then run "wmpoweroff" from the client, everything shuts down gracefully. I don't know why.
Yep, seems weird to me too . The "reboot" command would probably fail too.. I wonder?However, if you boot the server all the way to X, then run "wmpoweroff" from the client, everything shuts down gracefully. I don't know why.
As a rough work-around maybe you could install acpid? This should allow you to just press the power button and cleanly shut down.
http://distro.ibiblio.org/pub/linux/dis ... 100603.pet
That is the version I have in spup and it works well. Also works in lupu, I just tested from within X and had a clean shutdown, also tested outside of X by exiting to the prompt, hit the power button, if you have sound configured you hear 1 bark, then shutdown is clean.
HTH
Puppy Linux Blog - contact me for access
That works.01micko wrote:As a rough work-around maybe you could install acpid? This should allow you to just press the power button and cleanly shut down
1. Boot the server using pfix=nox.
2. Login using ssh.
3. Type "acpid". Normally, this gets loaded from /root/Startup.
Or maybe "/root/Startup/acpi" would be better.
4. Hit the power button.
5. Server shuts down gracefully.
Thanks.
Or better yet, open /etc/rc.d/rc.sshd, go to Line 70 and change
to
Now the poweroff and reboot commands work correctly from the ssh client.
Code: Select all
stop
;;
Code: Select all
#stop
;;
Yes but doesn't that cause ssh to turn off uncleanly? I can see that acpid is not the correct solution.
On some thought maybe some hacking is involved.
Say, in the 'poweroff' script send a flag to /tmp before rc.shutdown runs, (of course this is very situation specific, so "if ssh is running then send flag to /tmp") then in the stop) case in /etc/rc.d/rc,sshd have a test for the flag and then stop, then run busybox poweroff? Or are we chasing our tails.. as I guess once the "stop" sig is sent then that's it!
Perplexing.
Ok, that silly idea probably wont work but pizzasgood has some ideas here
On some thought maybe some hacking is involved.
Say, in the 'poweroff' script send a flag to /tmp before rc.shutdown runs, (of course this is very situation specific, so "if ssh is running then send flag to /tmp") then in the stop) case in /etc/rc.d/rc,sshd have a test for the flag and then stop, then run busybox poweroff? Or are we chasing our tails.. as I guess once the "stop" sig is sent then that's it!
Perplexing.
Ok, that silly idea probably wont work but pizzasgood has some ideas here
Puppy Linux Blog - contact me for access
Code: Select all
nohup poweroff &
This works too.
Code: Select all
nohup reboot &
I downloaded and installed the pet and as per instructions, opened a terminal and typed "samba-start"
I got a command not found.
I thought this thing was supposed to work.
I also have tried it with a fresh install of lupu 520.
So I guess you just can call me Stupid from now on.
I say this because I had also tried Gmartin's instructions on a Samba package and failed there too.
I got a command not found.
I thought this thing was supposed to work.
I also have tried it with a fresh install of lupu 520.
So I guess you just can call me Stupid from now on.
I say this because I had also tried Gmartin's instructions on a Samba package and failed there too.
It is just Stupid me returning your query.
I went with the wrong approach and seeing two -tng files and assuming wrongly that the one with a six in it was the latest version, I did not have five downloaded.
It did work.
I could see the specified directory on a WinXP networked PC.
I guess I can blame it on all the pain pills I am taking for my progressively worse degenerative authritus.
I went with the wrong approach and seeing two -tng files and assuming wrongly that the one with a six in it was the latest version, I did not have five downloaded.
It did work.
I could see the specified directory on a WinXP networked PC.
I guess I can blame it on all the pain pills I am taking for my progressively worse degenerative authritus.
Hi,
I have been using Samba-TNG for a while now just typing samba-start in terminal when I want to share stuff, but have only recently installed the autostart pet.
Strangely, samba seems to start, and if I search the network, I can see this machine, but there are no shares. I can only see them after a restart, ie samba-stop then samba-start.
Not a biggy, but any solutions would be appreciated
Thanks
I have been using Samba-TNG for a while now just typing samba-start in terminal when I want to share stuff, but have only recently installed the autostart pet.
Strangely, samba seems to start, and if I search the network, I can see this machine, but there are no shares. I can only see them after a restart, ie samba-stop then samba-start.
Not a biggy, but any solutions would be appreciated
Thanks
Last edited by p310don on Thu 16 Jun 2011, 15:08, edited 1 time in total.
The shares are a bunch of internal hard drives that automount with start mount.
Included in the shares is the drive with Puppy's save file and puppy on it, which is of course mounted upon boot, but it doesn't share either.
Can the autostart be set to include a time delay after finding a live network, say ten seconds? How would I do that if I could to test if that's it?
Included in the shares is the drive with Puppy's save file and puppy on it, which is of course mounted upon boot, but it doesn't share either.
Can the autostart be set to include a time delay after finding a live network, say ten seconds? How would I do that if I could to test if that's it?
Samba auto-start puts a script in your /root/Startup folder. You could add a sleep command at the top of the script.p310don wrote:The shares are a bunch of internal hard drives that automount with start mount.
Included in the shares is the drive with Puppy's save file and puppy on it, which is of course mounted upon boot, but it doesn't share either.
Can the autostart be set to include a time delay after finding a live network, say ten seconds? How would I do that if I could to test if that's it?
Code: Select all
#!/bin/sh
sleep 10
while [ 1 ]; do
...