NSLU2-Linux
view · edit · print · history

Puppy.PuppyUsage History

Hide minor edits - Show changes to markup

September 21, 2005, at 11:17 AM by peteru --
Changed lines 6-8 from:
  • puppy does not operate on multiple files, so you can not use wildcards such as FileName-*.rec. Instead you must run the puppy command for each file that you wish processed.
to:
  • puppy does not operate on multiple files, so you can not use wildcards such as FileName-*.rec. Instead you must run the puppy command for each file that you wish processed. There are some examples further on that show you how it's done.
Changed lines 23-31 from:
 Usage: puppy [-pPtv] [-d <device>] -c <command> [args]
  -p             - packet header output to stderr
  -P             - full packet dump output to stderr
  -v             - verbose output to stderr
  -q             - quiet transfers - no progress updates
  -d <device>    - USB device (must be usbfs)
                   for example /proc/bus/usb/001/003
  -c <command>   - one of size, dir, get, put, rename, delete, mkdir, reboot, cancel, turbo
  args           - optional arguments, as required by each command=]
to:
 Usage: puppy [-pPqv] [-d <device>] -c <command> [args]
 -p             - packet header output to stderr
 -P             - full packet dump output to stderr
 -q             - quiet transfers - no progress updates
 -v             - verbose output to stderr
 -d <device>    - USB device (must be usbfs)
                  for example /proc/bus/usb/001/003
 -c <command>   - one of size, dir, get, put, rename, delete, mkdir, reboot, cancel, turbo
 args           - optional arguments, as required by each command

 Version: 1.12, Compiled: Sep 21 2005=]
Deleted lines 35-36:

The turbo command takes either 0 (zero) or 1 (one) as the argument to disable or enable turbo mode. Once turbo is enabled, it will persist until explicitly turned off.

Changed line 66 from:

Downloading a recording from the Toppy, with turbo mode enabled.

to:

Downloading a recording from the Toppy.

Changed line 70 from:
 puppy -t -c get 'DataFiles\Happy Tree Friends Christmas Special.rec' 'TreeFriends.rec'
to:
 puppy -c get 'DataFiles\Happy Tree Friends Christmas Special.rec' 'TreeFriends.rec'
Changed line 76 from:
 puppy -c put ProgressBarKeys.tap 'ProgramFiles\Auto Start\ProgressBarKeys.tap'
to:
 puppy -c put usbmon_1.3.tap 'ProgramFiles\Auto Start\usbmon.tap'
Deleted line 87:
Added lines 110-125:

Turbo mode

Turbo mode is not recommended because it has a severe negative impact on the performance of the Toppy. It will disable the remote control and prevent recording of shows.

The turbo command takes either 0 (zero) or 1 (one) as the argument to disable or enable turbo mode. Once turbo is enabled, it will persist until explicitly turned off.

Turn turbo mode on: (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 puppy -c turbo 1

(:tableend:)

Turn turbo mode off: (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 puppy -c turbo 0

(:tableend:)

September 21, 2005, at 11:03 AM by peteru -- Added bulk downloads
Added lines 105-110:

This will download all files from the ICE directory on the Toppy to the current directory. (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

  puppy -c dir ICE | awk '/^f/ { system(sprintf("puppy -c get \"ICE\\%s\" \"%s\"\n", substr($0, 49), substr($0,49))) }' 

(:tableend:)

August 27, 2005, at 07:20 PM by odvdveer -- new puppy options due to version 1.11
Deleted line 25:
  -t             - turbo mode on for file xfers
Changed line 30 from:
  -c <command>   - one of size, dir, get, put, rename, delete, mkdir, reboot, cancel
to:
  -c <command>   - one of size, dir, get, put, rename, delete, mkdir, reboot, cancel, turbo
Added lines 34-35:

The turbo command takes either 0 (zero) or 1 (one) as the argument to disable or enable turbo mode. Once turbo is enabled, it will persist until explicitly turned off.

January 27, 2005, at 02:17 PM by peteru --
Deleted lines 87-88:
Deleted lines 96-105:

Mounting a share from a network connected PC and transfering files directly to the PC.

table border=0 width=100% bgcolor=#eeffee? cell?

 cd
 mkdir -p /mnt/smb/computername/sharename
 smbmount //computername/sharename /mnt/smb/computername/sharename -o username=myName,password=myPassword
 ln -s /mnt/smb/computername/sharename sharename
 puppy -c get 'DataFiles\Enterprise-4.rec' sharename/video/Enterprise/Rajiin.rec

tableend?

Deleted lines 101-122:

tableend?

Upgrading the NSLU2 to handle large files and making new files accessible to everyone.

table border=0 width=100% bgcolor=#eeffee? cell?

 ipkg update
 ipkg install busybox

tableend?

Put the following lines into a file named ~/.profile table border=0 width=100% bgcolor=#eeeeff? cell?

 PATH=/opt/sbin:/opt/bin:$PATH
 export PATH
 umask 0

tableend?

Changing file permissions

The following will grant both read and write permissions for the named file to all users: table border=0 width=100% bgcolor=#eeffee? cell?

 chmod a+rw FileName
January 27, 2005, at 12:39 PM by peteru --
Changed line 14 from:
 cd /share/hdd/data/public
to:
 cd /share/hdd/data/public
Changed line 22 from:
 puppy[=
to:
 puppy[=
Changed line 38 from:
 puppy -c size[=
to:
 puppy -c size[=
Changed line 47 from:
 puppy -c dir[=
to:
 puppy -c dir[=
Changed line 56 from:
 puppy -c dir 'DataFiles'[=
to:
 puppy -c dir [='DataFiles?'
Changed line 69 from:
 puppy -t -c get 'DataFiles\Happy Tree Friends Christmas Special.rec' 'TreeFriends.rec'
to:
 puppy -t -c get 'DataFiles\Happy Tree Friends Christmas Special.rec' 'TreeFriends.rec'
Changed line 75 from:
 puppy -c put ProgressBarKeys.tap 'ProgramFiles\Auto Start\ProgressBarKeys.tap'
to:
 puppy -c put ProgressBarKeys.tap 'ProgramFiles\Auto Start\ProgressBarKeys.tap'
Changed line 81 from:
 puppy -c rename 'DataFiles\Pingu.rec' 'DataFiles\Pingu\Pingu-20.rec'
to:
 puppy -c rename 'DataFiles\Pingu.rec' 'DataFiles\Pingu\Pingu-20.rec'
Changed lines 87-90 from:
 puppy -c delete 'DataFiles\Johnny Mnemonic.rec'
to:
 puppy -c delete 'DataFiles\Johnny Mnemonic.rec'
Changed line 96 from:
 puppy -c reboot
to:
 puppy -c reboot
Changed line 102 from:
 '''[=cd
to:
 [=cd
Changed line 106 from:
 puppy -c get 'DataFiles?\Enterprise-4.rec' sharename/video/Enterprise/Rajiin.rec=]'''
to:
 puppy -c get 'DataFiles?\Enterprise-4.rec' sharename/video/Enterprise/Rajiin.rec=]
Changed lines 113-135 from:
  for i in *.tgd; do puppy -c put $i ProgramFiles\\$i ; done 
to:
  for i in *.tgd; do echo Uploading $i ; puppy -c put $i ProgramFiles\\$i ; done 

tableend?

Upgrading the NSLU2 to handle large files and making new files accessible to everyone.

table border=0 width=100% bgcolor=#eeffee? cell?

 ipkg update
 ipkg install busybox

tableend?

Put the following lines into a file named ~/.profile table border=0 width=100% bgcolor=#eeeeff? cell?

 PATH=/opt/sbin:/opt/bin:$PATH
 export PATH
 umask 0

tableend?

Changing file permissions

The following will grant both read and write permissions for the named file to all users: table border=0 width=100% bgcolor=#eeffee? cell?

 chmod a+rw FileName
January 27, 2005, at 12:23 PM by peteru --
Added lines 96-105:

Mounting a share from a network connected PC and transfering files directly to the PC.

table border=0 width=100% bgcolor=#eeffee? cell?

 cd
 mkdir -p /mnt/smb/computername/sharename
 smbmount //computername/sharename /mnt/smb/computername/sharename -o username=myName,password=myPassword
 ln -s /mnt/smb/computername/sharename sharename
 puppy -c get 'DataFiles\Enterprise-4.rec' sharename/video/Enterprise/Rajiin.rec

tableend?

January 23, 2005, at 07:46 AM by peteru --
Added lines 1-8:

Some general points

  • Please remember that puppy runs under Linux and therefore all input is case sensitive, so FileName.rec is not the same as filename.rec as far as puppy is concerned.
  • The Toppy uses the backslash (\) as the directory separator. In contrast, Linux uses the forward slash (/) to separate directories.
  • The backslash is used by Linux shells as a special escape character to modify the meaning of the character that follows it. To prevent this behaviour (and to allow spaces in file names), the filename arguments should be enclosed in single forward quotes (') - usually found on the right hand side of the keyboard, near the enter key. An alternative is to escape the backslash itself and use the \\ idiom. If this is all too confusing, just make sure you follow the supplied examples.
  • puppy does not operate on multiple files, so you can not use wildcards such as FileName-*.rec. Instead you must run the puppy command for each file that you wish processed.
Added line 28:
  -q             - quiet transfers - no progress updates
Changed line 31 from:
  -c <command>   - one of size, dir, get, put, rename, delete, reboot, cancel
to:
  -c <command>   - one of size, dir, get, put, rename, delete, mkdir, reboot, cancel
Deleted line 35:
Deleted line 44:
Deleted line 53:
Deleted line 69:
 100.00%
Changed lines 72-82 from:

Please remember that this is Linux and Linux is case sensitive! So Tree is not equal to tree. Also note the direction of the slash on the NSLU2 side.

to:

Uploading a TAP to the Auto Start directory

table border=0 width=100% bgcolor=#eeffee? cell?

 puppy -c put ProgressBarKeys.tap 'ProgramFiles\Auto Start\ProgressBarKeys.tap'

tableend?

Moving a recording to a different directory

table border=0 width=100% bgcolor=#eeffee? cell?

 puppy -c rename 'DataFiles\Pingu.rec' 'DataFiles\Pingu\Pingu-20.rec'

tableend?

Deleted line 84:
Changed lines 90-94 from:

Downloading a tap to the Auto Start directory

to:

Rebooting the Toppy

table border=0 width=100% bgcolor=#eeffee? cell?

 puppy -c reboot

tableend?

Added lines 96-97:

Copying multiple files

This shell command will copy all Topfield Guide Data (.tgd) files from current directory to the Toppy.

Changed line 100 from:
 puppy -c put ProgressBarKeys?.tap 'ProgramFiles\Auto Start\ProgressBarKeys.tap'
to:
  for i in *.tgd; do puppy -c put $i ProgramFiles\\$i ; done 
Added line 102:
January 13, 2005, at 10:17 PM by odvdveer --
Added line 67:

Please remember that this is Linux and Linux is case sensitive! So Tree is not equal to tree. Also note the direction of the slash on the NSLU2 side.

December 30, 2004, at 10:14 PM by odvdveer --
Added line 75:

Downloading a tap to the Auto Start directory

Added lines 77-80:

table border=0 width=100% bgcolor=#eeffee? cell?

 puppy -c put ProgressBarKeys?.tap 'ProgramFiles\Auto Start\ProgressBarKeys.tap'

tableend?

December 26, 2004, at 12:51 AM by peteru --
Changed lines 1-11 from:

Just typing puppy on the command line will show a short description of the options accepted. This page shows examples of the most common tasks.

to:

Changing current directory to the NSLU2 public data directory.

This is not really a puppy command, but it makes it easier to upload and download data from the directory where it resides, rather than having to supply long pathnames.

table border=0 width=100% bgcolor=#eeffee? cell?

 cd /share/hdd/data/public

tableend?

Getting an overview of puppy command line arguments

Just typing puppy on the command line will show a short description of the options accepted. This page shows further examples of the most common tasks.

December 26, 2004, at 12:41 AM by peteru --
Changed lines 1-65 from:

Describe PuppyUsage here.

to:

Just typing puppy on the command line will show a short description of the options accepted. This page shows examples of the most common tasks. table border=0 width=100% bgcolor=#eeffee? cell?

 puppy
 Usage: puppy [-pPtv] [-d <device>] -c <command> [args]
  -p             - packet header output to stderr
  -P             - full packet dump output to stderr
  -t             - turbo mode on for file xfers
  -v             - verbose output to stderr
  -d <device>    - USB device (must be usbfs)
                   for example /proc/bus/usb/001/003
  -c <command>   - one of size, dir, get, put, rename, delete, reboot, cancel
  args           - optional arguments, as required by each command

tableend?

Finding disk capacity and amount of free space

table border=0 width=100% bgcolor=#eeffee? cell?

 puppy -c size
 Total   78148608 kiB   76317 MiB   74 GiB
 Free    28578816 kiB   27909 MiB   27 GiB

tableend?

Listing the top level directories on the Toppy

table border=0 width=100% bgcolor=#eeffee? cell?

 puppy -c dir
 d                    0 Wed Jan  1 00:00:00 2003 DataFiles
 d                    0 Wed Jan  1 00:00:00 2003 ProgramFiles
 d                    0 Wed Jan  1 00:00:00 2003 MP3

tableend?

Listing the recordings on the Toppy

table border=0 width=100% bgcolor=#eeffee? cell?

 puppy -c dir 'DataFiles'
 d                    0 Thu Jan  1 09:59:59 1970 ..
 f           1751955456 Fri Dec 24 15:00:00 2004 3rd Rock from the Sun.rec
 f            624701440 Thu Dec 23 23:00:00 2004 Happy Tree Friends Christmas Special.rec
 f           2747820032 Tue Dec  7 23:45:00 2004 Voyager-2.rec
 f           7255777280 Sat Dec 25 23:25:00 2004 Johnny Mnemonic.rec

tableend?

Downloading a recording from the Toppy, with turbo mode enabled.

This command will transfer a recorded program from the Toppy to the current directory on the NSLU2. The resulting file will be named TreeFriends.rec table border=0 width=100% bgcolor=#eeffee? cell?

 puppy -t -c get 'DataFiles\Happy Tree Friends Christmas Special.rec' 'TreeFriends.rec'
 100.00%

tableend?

Deleting a recording

table border=0 width=100% bgcolor=#eeffee? cell?

 puppy -c delete 'DataFiles\Johnny Mnemonic.rec'

tableend?

view · edit · print · history · Last edited by peteru.
Based on work by peteru and odvdveer.
Originally by peteru.
Page last modified on September 21, 2005, at 11:17 AM