PDA

View Full Version : Dreambox Telnet cmd needed



yassinov
3rd June, 2009, 04:42 PM
Hi !

Please im looking for dreambox useful Tenet commands !
i found somes here like (Backup or Flash) image !
is possible to remote (restart , keys , factory reset...) ?

satman
3rd June, 2009, 05:07 PM
Hi !

Please im looking for dreambox useful Tenet commands !
i found somes here like (Backup or Flash) image !
is possible to remote (restart , keys , factory reset...) ?

depends which dreambox.
500,7000



cd /tmp && eraseall /dev/mtd/3 && cp backup.img /dev/mtd/3 && reboot

for flashing image in telnet



cat /dev/mtd/3 > /tmp/backup.img

for making backup in /tmp directory

you can restart box


restart


use web interface to use remote control.

factory reseting box should be something like


eraseall /dev/mtd/1 && reboot


dont hold me to it :P

yassinov
3rd June, 2009, 05:32 PM
Thanks for answer & for useful info !

saytri
15th June, 2009, 08:40 AM
When I tried the code:

cd /tmp && eraseall /dev/mtd/3 && cp backup.img /dev/mtd/3 && reboot


It gave me this error:
-sh: eraseall: not found

I have a dm800 pvr. The link to backup the software works fine and it is uploaded to the tmp folder.

What am I doing wrong? Thanks.

despdan
15th June, 2009, 08:54 AM
When I tried the code:

cd /tmp && eraseall /dev/mtd/3 && cp backup.img /dev/mtd/3 && reboot


It gave me this error:
-sh: eraseall: not found

I have a dm800 pvr. The link to backup the software works fine and it is uploaded to the tmp folder.

What am I doing wrong? Thanks.That command you used won't work on your box because it's for .img images

saytri
15th June, 2009, 09:02 AM
But I have used this command to create an image file. and it has been created sucesfully.

cat /dev/mtd/3 > /var/tmp/backup.img

In temp folder now I have a file about 60mb named backup.img.

If there is no chance to get this to work is there a way to save the current firmware to a pc? or can I convert the image file to nfi?

thanks.

satman
15th June, 2009, 10:23 AM
openembedded backups are differenet, probably best looking at the dm600 backup methods ;)

despdan
15th June, 2009, 03:47 PM
As satman said you could try using dm600pvr backup method see below:

2shared - download dm600 backup plugin.rar (http://www.2shared.com/file/5456156/9a1cb97d/dm600_backup_plugin.html)

saytri
15th June, 2009, 04:36 PM
I tried it and when I go to plugins this error is comming:

Some plugins are not available:
Extensions/TuxboxPlugins. (No module named pluginrunner)

Thanks for your help so far. I am still a newbie sorry.

satman
17th June, 2009, 10:09 AM
plugin may not be compatible(dm800 running e2!) but im sure the script method should do fine.

saytri
19th June, 2009, 05:14 PM
plugin may not be compatible(dm800 running e2!) but im sure the script method should do fine.


What script method are you refaring to? Is it this:

Chmod all the files in usr/bin to 755
Chmod /usr/lib/tuxbox/plugins/flexmenu.so to 755
Chmod /usr/lib/tuxbox/plugins/flexmenu.cfg to 644
Chmod /etc/tuxbox/config/shellexec.conf to 775

Because after I made everything this error is on screen:

Some plugins are not available:
Extensions/TuxboxPlugins. (No module named pluginrunner)

I simply have no idea what to do. :(

osborne82
21st June, 2009, 09:01 AM
What script method are you refaring to? Is it this:

Chmod all the files in usr/bin to 755
Chmod /usr/lib/tuxbox/plugins/flexmenu.so to 755
Chmod /usr/lib/tuxbox/plugins/flexmenu.cfg to 644
Chmod /etc/tuxbox/config/shellexec.conf to 775

Because after I made everything this error is on screen:

Some plugins are not available:
Extensions/TuxboxPlugins. (No module named pluginrunner)

I simply have no idea what to do. :(

what image are you using ?


cheers
osborne82

saytri
21st June, 2009, 07:16 PM
The Gemini2 Project 4.20 DM800

manias-21
15th July, 2009, 01:57 PM
pluguins,

menu,
pluguins,
download pluguis,
backup firmwar.

install and bakcup.

Chimaera
15th July, 2009, 02:35 PM
Telnet Commands Basic Navigation

cd
When typed by itself, cd (”change directory”), will take you back to your $HOME directory
cd /path/to/directory
To change to a specific directory, type cd followed by the path to the directory. If it is a subdirectory of the current directory, you can just type the directory name.
cd ..
Typing cd .. moves you up one directory from your current location.
pwd
To see which directory you are in, type pwd (”print (display) working directory”).
exit
Just as it sounds, use exit to log out. Alternatively, you can type logout.
Creating and Deleting Directories

mkdir directoryname
To create a new directory, type mkdir (”make directory”) and specify the new directory’s name.
rmdir directoryname
To delete an empty directory, type rmdir (”remove directory”) and the directory’s name.
Listing Files

ls
To display a list of files and subdirectories in your current directory, type ls (”list”)
ls -a
To see a more complete list which includes hidden files or files that begin with a “.” (dot), type ls -a.
ls -la
To list all files and directories in long format which will provide details about each file and directory, type ls -la.
ls -lS
To list all directories and files, sorted by size, in long format, type ls -lS.
ls -lta
To list all files and directories in long format by time modified, type ls -lta.
Copying Files

cp oldfilename newfilename
Will copy the contents of one file to another file, resulting in two copies of the same file on your account.
cp directory/* destinationdirectory
Will copy the contents of one directory to another directory. Make sure you have created the destination directory before trying to copy files to it - see mkdir above. Results in two copies of the files on your account; one copy in the existing directory and another in the destination directory.
Searching FIles and Directories

find -name ‘n*’
The find command can be used to locate files or a group of files. It can also be used to display directories. The example given will find all file and directory names within the current directory and subdirectories of it that begin with the letter n. (You can also explore using the locate command - type info locate and/or man locate for usage information.)
grep -inw text filename
Can be used to locate text in a specific file or directory of files (use * in place of filename to search all of the files in the current directory). The -i argument indicates the search is to disregard cASe, the -n instructs to show the corresponding line number, and -w tells it to match only based on the whole word. (This doesn’t even begin to touch on the power of grep and its many uses. In addition to its searching capability, the grep command can be used in combination with other commands to act as a filter. It also allows the use of “wildcards”. Two other variations of grep are also available, egrep and fgrep. To begin your quest for more information, type man grep and/or info grep.)
Displaying / Comparing File Content

wc filename
Counts and displays the number of lines, number of words, and number of characters of the given file.
cat filename
Displays the entire contents of a file.
nl filename
Shows the content of the file, including line numbers (nl=number lines).
more filename
Displays the contents of a file one screen at a time. Press the SPACEBAR to display the next screen of text.
cmp filename1 filename2
Compares the contents of the two named files and reports the first different character found and the line number.
diff filename1 filename2
Compares the contents of the two named files and reports all of the differences found. (Can also be used for comparing the contents of two directories.)
Moving, Renaming, and Deleting Files

mv oldfilename newfilename
Can be used to rename a file (mv fileA fileB), move a file (mv fileA /dirA/), or both (mv fileA /dirB/fileB).
rm -i filename
Removes (deletes) the specified file. (The -i is not necessary, but is recommended as it will prompt you to confirm the action first. When prompted, type y to confirm or type n if you changed your mind.)
Changing Permissions

chmod permissions filename
Changes the permissions on a filename or directory as specified. For example, chmod 755 startup.sh.
Archives and Compression

tar -cfv filename.tar directoryname
To archive a directory and all of its contents including subdirectories, navigate to where the directory is located and type the above command, replacing filename.tar with the name you wish to give the archive file and directoryname with the name of the directory you wish to archive. Alternatively, you can archive a select group of individual files (or directories) by specifying each file name in place of directoryname separated by spaces, like tar -cvf filename.tar fileA fileB fileC. Note: When creating a tar file (aka “tarball”) be sure to specify the name you wish to give the tar file! (TAR indicates Tape ARchive, as it was originally a tape archiving program. The -c means “create”, v means “verbose” (which basically says tell me what you’re doing), and the f indicates that a filename will follow (filename.tar)).
tar -tvf filename.tar
Typing this command will result in a list of the contents of the tar file. This is generally a good thing to do before unpacking the tar file to be sure there are no matching filenames which will result in files being unintentionally overwritten.
tar -xvf filename.tar
You can see the similarities to the command used to tar the file. This time, though, you use -x to “extract” instead of the -c used to create. You can also extract only certain select files (or directories) by specifying the individual names, separated by spaces, after the tar filename, such as tar -xvf filename.tar fileA fileC
gzip filename.tar
This utility, gzip (gnu zip), is used for compression. Normally, when you wish to compress a set of files, you willtar them first then compress them using this command. In doing so, the filename will automatically change from filename.tar to filename.tar.gz (appending .gz to the file extension).
gunzip filename.tar.gz
This command (g”unzip”) is used to uncompress a .tar.gz file, which will also result in the filename being changed back to filename.tar. Once it has been uncompressed, you can then untar it using the tar command above. (Alternatively, you can use gzip -d (for “decompress”) in place of gunzip.)
tar -czvf filename.tgz directoryname
This command, which uses a z switch (”zip”), allows you to take a bit of a shortcut instead of using the tar and gzip commands separately. The example will result in a compressed archive named filename.tgz.
tar -xzvf filename.tgz
This command is used to uncompress and extract the files from a .tgz archive.

slickjdip
13th February, 2010, 04:25 PM
I used this method of backup and restore of my image:
BACKUP your image:
1) Telnet to your dreambox, login as root
2) type in "cat /dev/mtd/3 > /var/tmp/backup.img"
3) you can download this image to your pc via ftp


RESTORE your image:
1) login to dreambox via ftp as root
2) upload the backup.img file from your pc to the dreambox in /var/tmp/
3) telnet to the box as root
4) type "cd /var/tmp"
5) type "eraseall /dev/mtd/3 && cp backup.img /dev/mtd/3"
6) type "reboot"

The issue is on restore eraseall is not recognised:
-sh: eraseall: not found

Any ideas?