Flashing a Dreambox Image using Telnet

April 7th, 2008

To flash an image using Telnet

This method will only work with a .img image file.

  • Rename the image file to backup.img
  • FTP the image file to the /tmp folder on the dreambox
  • Telnet to your box and paste the following command:
cd /tmp && eraseall /dev/mtd/3 && cp backup.img /dev/mtd/3 && reboot

To telnet, click START > RUN and type Telnet ip.address.of.dreambox A command window will appear, enter username root and password dreambox.

To backup an image using Telnet

  • Telnet to the box and paste the following command:
cat /dev/mtd/3 > /tmp/backup.img
  • FTP to the box and navigate to the /tmp
  • Here you will find the backup.img file.

How to copy an image from your PC to the Dreambox via Telnet

First of all, you need to have a mounted directory from your PC. Make sure you have the image.img file in your mounted directory on your PC. Telnet to the dreambox and paste this command:

cp /hdd/movie/image.img /tmp/image.img

The img will be copied from your mounted directory to the /tmp folder on the dreambox ready to be flashed. Good Luck! If you have any questions, please visit our Dreambox Forum.

Services and Bouquets

April 7th, 2008

Services and Bouquets

When you do a transponder scan on your dreambox, automatic or manual, a services file is automatically generated with the frequencies and services ids of all the channels found. If you have successfully done a services scan and found all the channels, there’s no need to copy over additional services files.

So you’ve managed to get all your channels and set up your bouquets just the way you want them. The first thing you want to do is back them up to your PC for safe keeping. If you need to flash the image again, for whatever reason, it’s always good to have the services and bouquets backed up, then you simply copy the files to the box instead of setting them up from scratch again. Neutrino and Enigma are different in the way they store the services and bouquets.

Enigma

With enigma images, the services file doesn’t have an extention and is stored in the following location:

services - /var/tuxbox/config/enigma

With enigma, each bouquet you create has it’s own userbouquet file. These files are stored in:

userbouquet.*****.tv - /var/tuxbox/config/enigma/cable

There’s also a file called bouquets (without extention) in /var/tuxbox/config/enigma that you want to backup as well.

So when you’re backing them up to your PC you want to copy the ’services’ and ‘bouquets’ files from ../enigma and all the ‘userbouquet’ files from ../enigma/cable folder.

Once you’ve copied them back to your dreambox, use the browser reload commands below. They won’t take effect unless they are reloaded.
Some images may have a ‘ReloadChannels’ option, usually in the BLUE button menu or User Features menu, this can also be used to reload the channels.

Neutrino

With neutrino images, the file system is more like the dbox2.

services.xml - /var/tuxbox/config/zapit
ubouquets.xml - /var/tuxbox/config/zapit

All your bouquets are stored in the ubouquet.xml file instead of an individual file in enigma.

Same as above, you will need to reload the channels before they will take effect. On neutrino images, there’s usually an option in the Services Menu to reload channels.

Reloading Services and Bouquets after transferring (using Enigma/Gemini)

Once you have transfered your backed up services and bouquets to /var/tuxbox/config/enigma, follow these instructions.

To reload services…

Open web browser and paste the following command into the address bar:

http://192.168.xxx.xxx/cgi-bin/reloadSettings

(replace x with your own ip address)
To reload bouquets…Open web browser and paste the following command into the address bar:

http://192.168.xxx.xxx/cgi-bin/reloadUserBouquets

Good Luck!

If you have any questions, please visit out Dreambox Forum.

Creating your own Dreambox Boot Logo

April 3rd, 2008

How to create your own startup, shutdown, radio, scan and mp3 logos

The dimension of these pictures must be 720×576 pixels in PAL format.
Path where the boot image is stored is /root/platform/kernel and is called bild.
Path where the other pictures are stored is /var/tuxbox/config/enigma/pictures.

The program we will use to create the pictures is called TMPGEnc.

  1. Download TMPGEnc from official site
  2. Unzip the file to your chosen destination.
  3. Double click the ‘TPMGEnc.exe MPEG Encoder’ file and click ‘OK’ on the small pop up window. Then click ‘Cancel’ on the ‘Project Wizard (1/5)’ window that appears.
  4. Next screen, bottom right…’Stream type’, check the box ‘ES (Video only)’.
  5. Next, bottom left…’Video source:’ click on ‘Browse’ and select the background/photo that you want as your new logo.
  6. Next, bottom left… ‘Output file name:’ click on browse and choose the path for your finished ‘new’ boot background/photo and edit the name to ‘bild’ (minus the ‘….’ and in lower case) ie: the line that apperars in the ‘Output file name:’ should read similar to C:\Documents and Settings\Whatever\My Documents\bild ( the actual name of the photo does NOT appear).
  7. Next, bottom right…click on ‘Setting’ and check that the value settings are:

…..’Stream type:’ = MPEG-1 Video
…..’Size’ = 720 x576 pixels
…..’Aspect ratio:’ = 1:1 (VGA)
…..’Frame rate:’ = 25 fps
…..’Rate control mode:’ = Constant bitrate (CBR)
…..’Bitrate:’ = 12000
…..’Motion search precision:’ = Normal

When checked, click ‘OK’ to exit the screen.

Top left click ‘Start’, if all is goes well, the ‘100%’ bar appears and your completed ‘bild’ file is in your chosen ‘Output…’ location.

*** If You want to change the boot picture before compressing the image (after the ‘make rebuild-flash’ command ) , just copy it into /tuxbox-cvs/root/cdkflash/boot/root/platform/kernel before executing the ‘make flash-compress’ command.

Thanks to Fergy for initial guide

If you have any questions, please visit our Dreambox Forum.

UK Infobar ‘Now and Next’ EPG Mod

April 2nd, 2008

UK Infobar ‘Now and Next’ EPG Modification

UK cable doesn’t conform to the dvb-c standard. So we need to modify the source code so that it displays the now and next program information on the infobar. Without this mod, there will be no now and next epg.
Make sure you have completed this part of the build before continuing with this mod.

You will need to patch a .diff file for this to work. The .diff file can be downloaded at:

http://www.digital-kaos.co.uk/forums/showthread.php?p=3663#post3663

Extract the zip file and copy the ‘infopmt.diff’ file to the tuxbox-cvs directory.

In a terminal window, change into the tuxbox-cvs directory.

cd tuxbox-cvs

Copy and paste this command:

patch -p1 < infopmt.diff

This should patch the into your source code. If not errors appear, all is fine. Sometimes the source is modified and the .diff will not work. You will need to see which line fails and alter it according to the new source.

Now copy and paste these commands to complete the image.

cd cdk

rm .enigma

make .enigma

make rebuild-flash

make flash-compress

The image should compile into a complete.img file as per the Creating your Own Dreambox Image blog.

Good Luck

If you have any questions, please visit our Dreambox Forum.

Common Unix/Linux Commands used via Telnet

April 1st, 2008

Common Unix/Linux Commands used via Telnet

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.

Add to Technorati Favorites