E2ShellCommands


Revision history for E2ShellCommands


Revision [4768]

Last edited on 2013-10-31 15:00:06 by J3r03n5ky
Additions:
Most uptodate commands [[http://www.opensat4all.com/forums/tutorials/article/15-dreambox-enigma2-busybox-telnet-commands/ here]].
Deletions:
Most uptodate commands [[http://www.opensat4all.com/forums/tutorials/article/15-dreambox-enigma2-busybox-telnet-commands/]]here.


Revision [4767]

Edited on 2013-10-31 14:59:19 by J3r03n5ky
Additions:
Most uptodate commands [[http://www.opensat4all.com/forums/tutorials/article/15-dreambox-enigma2-busybox-telnet-commands/]]here.
[[HomePage PLi� Wiki HomePage]] : [[DM500 DM500]] : [[DM500plus DM500+]] : [[DM56xx DM56xx]] : [[DM500hd DM500HD]] : [[DM600 DM600]] : [[DM7000 DM7000]] : [[DM7020 DM7020]] : [[DM7025 DM7025]] : [[DM800 DM800]] : [[DM8000 DM8000]] : [[vuplus VU+]]
Deletions:
====Enigma2 tuner Telnet.====
==={{color c="gray" text="Common Unix/Linux commands used via Telnet."}}===
{{googletranslate}}
##Be aware: don't translate the code, keep it English##
=Version 1.15=
==Note:==
OpenPLi image version __2.x__ uses **opkg** package manager, OpenPli image version __1.x__ uses **ipkg** package manager.
**OPKG documentation can be found [[http://wiki.openmoko.org/wiki/Opkg/Documentation here]].**
So if you're a OpenPli-1.0 user, then type ipkg instead of opkg in the package manager related command examples below.
Requirements:
- Linux & OS-X & BEOS & BSD & other Unix like operating systems: **Terminal** type: **telnet boxip** where boxip is the ip number of your enigma2 tuner. If that doesn't work, check here: Linux [[http://aplawrence.com/Linux/enable_telnet.html howto]] + OS-X [[http://www.wikihow.com/Use-Telnet-on-Mac-OS-X howto]].
- Windows doesn't have a telnet client, so you need to install one: **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]]** (Linux(see package manager, but better is to use terminal) + windows) See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure Putty.
For detailed explanations of UNIX (Linux) commands see:
[[http://busybox.net/downloads/BusyBox.html Busybox telnet reference]] or [[http://en.wikipedia.org/wiki/List_of_Unix_utilities List of Unix utilities on Wikipedia]]
Note: The tuner runs a small subset of these commands, and some commands are quite limited in their support for extra options. But they aren't dramatically different.
==Start a telnet session==
Use a telnet client and configure the Enigma2 tuner ip address in settings of telnet client.
//Linux has by default a telnet client installed, it can be used by typing telnet in the terminal. Linux And OS-X users can get a Telnet client if not already their by using their package manager (search for telnet). Windows doesn't have any telnet client, so you need to manually install one.//
//Login as user root, hit enter button, and type the password if prompted (default=dreambox on a Dreambox tuner)//
==See all compatible commands.==
Login with telnet client, when telnet client is logged in, press TAB TAB (so 2x TAB button)
==Type smarter not faster.==
The TAB key will also "auto-complete" commands and options for you. So instead of a full file name, you can usually just type a part of the name and press TAB. Pressing TAB again will display a list of possible matches.
==Change Enigma2 tuner root password.==
//Note: Minimal 5 and maximal 8 characters long, and can consist of UPPERCASE/lowercase letters and numbers.//
%%passwd%%
==Solving a jammed Enigma2 tuner.==
%%killall enigma2%%
==Reboot a Enigma2 tuner.==
%%reboot%%
==Reload Enigma2 tuner settings.==
//Note: Change X in:
0, reloading lamedb and Userbouquets
1, reloading lamedb only
2, reloading Userbouquets only//
%%wget -qO - http://127.0.0.1/web/servicelistreload?mode=X%%
==Change powerstate of a Enigma2 tuner.==
//Note: Change password in your used root password!//
Standby:
%%wget -O /dev/null -q http://root:password@localhost/web/powerstate?newstate=0%%
DeepStandby:
%%wget -O /dev/null -q http://root:password@localhost/web/powerstate?newstate=1%%
Reboot:
%%wget -O /dev/null -q http://root:password@localhost/web/powerstate?newstate=2%%
Restart Enigma2:
%%wget -O /dev/null -q http://root:password@localhost/web/powerstate?newstate=3%%
Wakeup from Standby:
%%wget -O /dev/null -q http://root:password@localhost/web/remotecontrol?command=116%%
==Basic navigation.==
cd (”change directory”), will take you back to your $HOME directory
%%cd%%
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 /path/to/directory%%
Typing cd .. moves you up one directory from your current location.
%%cd ..%%
To see which directory you are in, type pwd (”print (display) working directory”).
%%pwd%%
Just as it sounds, use exit to log out.
%%exit%%
==Creating and deleting directories.==
To create a new directory, type mkdir (”make directory”) and specify the new directory’s name.
%%mkdir directoryname%%
To delete an empty directory, type rmdir (”remove directory”) and the directory’s name.
%%rmdir directoryname%%
==Install & remove & list packages.==
To get a package to /tmp directory on Enigma2 tuner and unzip it:
%%cd /tmp
wget exact-package-name.ipk.zip
unzip exact-package-name.ipk.zip%%
Installation:
%%opkg install exact-package-name.ipk%%
or
%%opkg packagename%%
Uninstall:
%%opkg remove exact-package-name.ipk%%
List installed packages:
%%opkg list_installed%%
List all packages:
%%opkg list%%
List only enigma2 plugin packages:
%%opkg list enigma2-plugin*%%
//To filter the list, added the filtered word after the command between two stars, example: opkg list_installed *plugin*//
==Update Open-Pli Enigma2 tuner.==
%%init 4
opkg update && opkg upgrade
init 3
exit%%
==Create Enigma log (see what Enigma does).==
%%init 4
enigma2%%
or
%%init 4
/bin/sh /usr/bin/enigma2.sh%%
//Telnet will output Enigma2 activity. To stop press CTRL-C.//
To resume normal operation:
%%init 3%%
==Create Enigma screenshot.==
%%grab /tmp/screenshot.bmp%%
//After that go with ftp client or network browser to /tmp/ directory of Enigma2 tuner/pvr and download the screenshot.bmp file. Type "grab" to see more options, for saving jpg/png files and mixing video and OSD.//
==Listing files.==
To display a list of files and subdirectories in your current directory, type ls (”list”)
%%ls%%
To see a more complete list which includes hidden files or files that begin with a “.” (dot), type ls -a.
%%ls -a%%
To list all files and directories in long format which will provide details about each file and directory, type ls -la.
%%ls -la%%
To list all directories and files, sorted by size, in long format, type ls -lS.
%%ls -lS%%
To list all files and directories in long format by time modified, type ls -lta.
%%ls -lta%%
==Copying files.==
Copy the contents of one file to another file, resulting in two copies of the same file on your account.
%%cp oldfilename newfilename%%
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.
%%cp directory/* destinationdirectory%%
Copy a whole directory tree, including subdirectories:
%%cp -r /etc/enigma2 /hdd/backup/%%
This will create /hdd/backup/enigma2, and copy everything in it.
==Searching files and directories.==
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.)
%%find -name ‘n*’%%
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.)
%%grep -inw text filename%%
==Displaying / comparing file content.==
Counts and displays the number of lines, number of words, and number of characters of the given file.
%%wc filename%%
Displays the entire contents of a file.
%%cat filename%%
Shows the content of the file, including line numbers (nl=number lines).
%%nl filename%%
Displays the contents of a file one screen at a time. Press the SPACEBAR to display the next screen of text.
%%more filename%%
Compares the contents of the two named files and reports the first different character found and the line number.
%%cmp 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.)
%%diff filename1 filename2%%
==Moving, renaming, and deleting files.==
Use to rename a file (mv fileA fileB), move a file (mv fileA /dirA/), or both (mv fileA /dirB/fileB).
%%mv oldfilename newfilename%%
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.)
%%rm -i filename%%
==Changing permissions.==
Changes the permissions on a filename or directory as specified. (First go with cd command to directory where the file is.)
%%chmod permissions filename%%
//This permission is only nessesary if a script (*.sh) or specific type of file won't work/handle properly. Normally you don't need to give permission to new files. For "normal" files (configs, plugins, etc.) the mode should simply be 600 or 666.
For root access use whatever is most intuitive to you, 700, 755, 777 is all ok. (On your dreambox at least.)
Advisable is 700 to signify these files are meant to be used by root only. //
More chmod info can be found [[http://www.analysisandsolutions.com/code/chmod.htm in this link]].
Here a example of a chmod for a script file,// %%chmod 755 HackSat_Key_downloader_userscript.sh%%
You can also add or remove permissions using letters (you can see them with "ls -l", as described above), which is handy for multiple files, to strip away "execute" permission from all files, or to add "read" and "execute" to all .sh files, or make all files read-only (not writable):
%%chmod a-x *
chmod a+rx *.sh
chmod a-w *%%
==Archives and compression.==
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)).
To create, list or extract from gzip compressed archives, use the extra "z" switch. Note that "-czf" if identical to "-c -z -f". Most archives were created this way.
%%tar -cvf filename.tar directoryname
tar -czvf filename.tar.gz directoryname%%
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 -tvf filename.tar
tar -tvzf filename.tar.gz%%
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. The files will be placed in the current directory. 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
%%tar -xvf filename.tar
tar -xzvf filename.tar.gz%%
Instead of the -z switch, you can use gzip on the commandline to compress single files. This is much less efficient though. The filename will automatically change from filename.tar to filename.tar.gz (appending .gz to the file extension).
%%gzip filename.tar%%
This command (g”unzip”) is used to uncompress a .gz file, which will also result in the filename being changed back to filename.tar. Alternatively, you can use gzip -d (for “decompress”) in place of gunzip.
%%gunzip filename.tar.gz%%
Sometimes ".tar.gz" is abbreviated to ".tgz".
You may also encounter "bzip2" files, typically named filename.tar.bz2. To uncompress these, type the following:
%%bunzip filename.tar.bz2 | tar xvf -%%
(notice the vertical bar and the dash at the end)
==To reboot and stop the Enigma2 (Dreambox!) tuner to upload & install a image by computer browser.==
Be shure you only do this if you want to reflash the Enigma2 tuner. Because your Enigma2 tuner will boot with DHCP active so that you can upload a new image by browser on a computer.
%%mount /boot -o remount,rw
rm /boot/*
reboot%%
==Dreambox DM8000: Changing Oled display brightness.==
Check brightness setting:
%%cat /proc/stb/lcd/oled_brightness%%
Configure brightness setting (between 0-255, as example 30)
%%echo 30 » /proc/stb/lcd/oled_brightness%%
[[HomePage PLi® Wiki HomePage]] : [[DM500 DM500]] : [[DM500plus DM500+]] : [[DM56xx DM56xx]] : [[DM500hd DM500HD]] : [[DM600 DM600]] : [[DM7000 DM7000]] : [[DM7020 DM7020]] : [[DM7025 DM7025]] : [[DM800 DM800]] : [[DM8000 DM8000]] : [[vuplus VU+]]


Revision [4193]

Edited on 2011-08-29 01:56:00 by Jeroensky
Additions:
[[HomePage PLi® Wiki HomePage]] : [[DM500 DM500]] : [[DM500plus DM500+]] : [[DM56xx DM56xx]] : [[DM500hd DM500HD]] : [[DM600 DM600]] : [[DM7000 DM7000]] : [[DM7020 DM7020]] : [[DM7025 DM7025]] : [[DM800 DM800]] : [[DM8000 DM8000]] : [[vuplus VU+]]
Deletions:
[[HomePage PLi® Wiki HomePage]] : [[DM500 DM500]] : [[DM500plus DM500+]] : [[DM56xx DM56xx]] : [[DM500hd DM500HD]] : [[DM600 DM600]] : [[DM7000 DM7000]] : [[DM7020 DM7020]] : [[DM7025 DM7025]] : [[DM800 DM800]] : [[DM8000 DM8000]] : [[vuplus Vu+ Duo]]


Revision [4166]

Edited on 2011-08-27 13:22:07 by Jeroensky [update telnet command for unix like(os-x & Linux]
Additions:
- Windows doesn't have a telnet client, so you need to install one: **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]]** (Linux(see package manager, but better is to use terminal) + windows) See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure Putty.
//Linux has by default a telnet client installed, it can be used by typing telnet in the terminal. Linux And OS-X users can get a Telnet client if not already their by using their package manager (search for telnet). Windows doesn't have any telnet client, so you need to manually install one.//
Deletions:
- Windows doesn't have a telnet client, so you need to install one: **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]]** (Linux(see package manager, but better is to use terminal) + windows)
//Linux And OS-X users can get a Telnet client by using their package manager (search for telnet). Linux has by default a telnet client installed. Windows doesn't have a good telnet client, so you need to manually install one like **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PuTTY]]**. See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure PuTTY.//


Revision [4165]

Edited on 2011-08-27 13:18:04 by Jeroensky [update telnet command for unix like(os-x & Linux]
Additions:
- Windows doesn't have a telnet client, so you need to install one: **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]]** (Linux(see package manager, but better is to use terminal) + windows)
Deletions:
- Windows doesn't have a telnet client, so you need to install one: **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -PuTTY]]** (Linux(see package manager, but better is to use terminal) + windows)


Revision [4164]

Edited on 2011-08-27 13:16:43 by Jeroensky [update telnet command for unix like(os-x & Linux]
Additions:
- Linux & OS-X & BEOS & BSD & other Unix like operating systems: **Terminal** type: **telnet boxip** where boxip is the ip number of your enigma2 tuner. If that doesn't work, check here: Linux [[http://aplawrence.com/Linux/enable_telnet.html howto]] + OS-X [[http://www.wikihow.com/Use-Telnet-on-Mac-OS-X howto]].
- Windows doesn't have a telnet client, so you need to install one: **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -PuTTY]]** (Linux(see package manager, but better is to use terminal) + windows)
Deletions:
**-Terminal** type: **telnet boxip** where boxip is the ip number of your enigma2 tuner. If that doesn't work, check here: Linux [[http://aplawrence.com/Linux/enable_telnet.html howto]] + OS-X [[http://www.wikihow.com/Use-Telnet-on-Mac-OS-X howto]].
Windows doesn't have a telnet client, so you need to install one. **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -PuTTY]]** (Linux(see package manager, but better is to use terminal) + windows)


Revision [4163]

Edited on 2011-08-27 13:14:17 by Jeroensky [update telnet command for unix like(os-x & Linux]
Additions:
**-Terminal** type: **telnet boxip** where boxip is the ip number of your enigma2 tuner. If that doesn't work, check here: Linux [[http://aplawrence.com/Linux/enable_telnet.html howto]] + OS-X [[http://www.wikihow.com/Use-Telnet-on-Mac-OS-X howto]].
Windows doesn't have a telnet client, so you need to install one. **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -PuTTY]]** (Linux(see package manager, but better is to use terminal) + windows)
Deletions:
**[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -PuTTY]]** (Linux(see package manager) + windows)
**-Terminal** type: **telnet boxip** where boxip is the ip number of your enigma2 tuner. (Linux [[http://aplawrence.com/Linux/enable_telnet.html howto]] + OS-X [[http://www.wikihow.com/Use-Telnet-on-Mac-OS-X howto]])


Revision [4162]

Edited on 2011-08-27 13:08:34 by Jeroensky [update telnet command for unix like(os-x & Linux]
Additions:
**-Terminal** type: **telnet boxip** where boxip is the ip number of your enigma2 tuner. (Linux [[http://aplawrence.com/Linux/enable_telnet.html howto]] + OS-X [[http://www.wikihow.com/Use-Telnet-on-Mac-OS-X howto]])
Deletions:
**-Terminal** (Linux [[http://aplawrence.com/Linux/enable_telnet.html howto]] + OS-X [[http://www.wikihow.com/Use-Telnet-on-Mac-OS-X howto]])


Revision [4132]

Edited on 2011-04-22 19:58:21 by hemispherical1 [update telnet command for unix like(os-x & Linux]
Deletions:
==To flash an image using telnet.==
//This method will only work with a .img image file.//
~1) Rename the image file to backup.img
~1) FTP the image file to the /tmp folder on the Enigma2 tuner
Telnet to your box and paste the following command:
%%cd /tmp && eraseall /dev/mtd3 && cp backup.img /dev/mtd3 && reboot%%
==To backup an image using telnet.==
%%cat /dev/mtd3 > /tmp/backup.img%%
~1) FTP to the box and navigate to the /tmp
~1) Here you will find the backup.img file.
==To copy an image from your PC to the Enigma2 tuner 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 Enigma2 tuner 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 Enigma2 tuner ready to be flashed.//


Revision [4131]

Edited on 2011-04-21 08:55:21 by Jeroensky [version 1.15: changed /dev/mtd/3 to /dev/mtd3]
Additions:
%%opkg list enigma2-plugin*%%
Deletions:
%%opkg list "enigma2-plugin*"%%


Revision [4130]

Edited on 2011-04-19 12:12:23 by Jeroensky [version 1.15: changed /dev/mtd/3 to /dev/mtd3]
Additions:
%%cd /tmp && eraseall /dev/mtd3 && cp backup.img /dev/mtd3 && reboot%%
Deletions:
%%cd /tmp && eraseall /dev/mtd/3 && cp backup.img /dev/mtd/3 && reboot%%


Revision [4129]

Edited on 2011-04-19 12:06:33 by Jeroensky [updated to version 1.15 because of updated backup image command.]
Additions:
=Version 1.15=
%%cat /dev/mtd3 > /tmp/backup.img%%
Deletions:
=Version 1.14=
%%cat /dev/mtd/3 » /tmp/backup.img%%


Revision [4120]

Edited on 2011-03-03 20:56:32 by Jeroensky [changed ipkg into opkg]
Additions:
OpenPLi image version __2.x__ uses **opkg** package manager, OpenPli image version __1.x__ uses **ipkg** package manager.
**OPKG documentation can be found [[http://wiki.openmoko.org/wiki/Opkg/Documentation here]].**
So if you're a OpenPli-1.0 user, then type ipkg instead of opkg in the package manager related command examples below.
%%opkg install exact-package-name.ipk%%
%%opkg packagename%%
%%opkg remove exact-package-name.ipk%%
%%opkg list_installed%%
%%opkg list%%
%%opkg list "enigma2-plugin*"%%
//To filter the list, added the filtered word after the command between two stars, example: opkg list_installed *plugin*//
opkg update && opkg upgrade
Deletions:
OpenPLi image version __1.x__ uses **ipkg** package manager, OpenPli image version __2.x__ uses **[[https://code.google.com/p/opkg/ opkg]]** package manager. **OPKG documentation can be found [[http://wiki.openmoko.org/wiki/Opkg/Documentation here]].**
So if you're a OpenPli-2.0 user, then type opkg instead of ipkg in the package manager related command examples below.
%%ipkg install exact-package-name.ipk%%
%%ipkg packagename%%
%%ipkg remove exact-package-name.ipk%%
%%ipkg list_installed%%
%%ipkg list%%
%%ipkg list "enigma2-plugin*"%%
//To filter the list, added the filtered word after the command between two stars, example: ipkg list_installed *plugin*//
ipkg update && ipkg upgrade


Revision [4112]

Edited on 2011-01-08 18:44:42 by Jeroensky [add opkg documentation link]
Additions:
OpenPLi image version __1.x__ uses **ipkg** package manager, OpenPli image version __2.x__ uses **[[https://code.google.com/p/opkg/ opkg]]** package manager. **OPKG documentation can be found [[http://wiki.openmoko.org/wiki/Opkg/Documentation here]].**
Deletions:
OpenPLi image version __1.x__ uses **ipkg** package manager, OpenPli image version __2.x__ uses **[[https://code.google.com/p/opkg/ opkg]]** package manager.


Revision [4110]

Edited on 2010-12-21 21:51:29 by Jeroensky [added OpenPli-2.0 opkg note]
Additions:
**[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -PuTTY]]** (Linux(see package manager) + windows)
Deletions:
**[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -PuTTY]]** (windows)


Revision [4109]

Edited on 2010-12-21 20:12:04 by Jeroensky [added OpenPli-2.0 opkg note]
Additions:
OpenPLi image version __1.x__ uses **ipkg** package manager, OpenPli image version __2.x__ uses **[[https://code.google.com/p/opkg/ opkg]]** package manager.
So if you're a OpenPli-2.0 user, then type opkg instead of ipkg in the package manager related command examples below.
Deletions:
OpenPLi image version __1.x__ uses **ipkg** package manager, Openpli image version __2.x__ uses **[[https://code.google.com/p/opkg/ opkg]]** package manager.
So if you're a OpenPli 2.0 user, then type opkg instead of ipkg in the package manager related command examples below.


Revision [4108]

Edited on 2010-12-21 20:11:05 by Jeroensky [added OpenPli-2.0 opkg note]
Additions:
OpenPLi image version __1.x__ uses **ipkg** package manager, Openpli image version __2.x__ uses **[[https://code.google.com/p/opkg/ opkg]]** package manager.
So if you're a OpenPli 2.0 user, then type opkg instead of ipkg in the package manager related command examples below.
Deletions:
Enigma version __1.x__ uses **ipkg** package manager, Enigma version __2.x__ uses **[[https://code.google.com/p/opkg/ opkg]]** package manager.
So if you're a Enigma 2.0 user, then type opkg instead of ipkg in these examples below.


Revision [4107]

Edited on 2010-12-21 18:11:20 by Jeroensky [added enigma2.0 opkg note]
Additions:
=Version 1.14=
==Note:==
Enigma version __1.x__ uses **ipkg** package manager, Enigma version __2.x__ uses **[[https://code.google.com/p/opkg/ opkg]]** package manager.
So if you're a Enigma 2.0 user, then type opkg instead of ipkg in these examples below.
Deletions:
=Version 1.13=


Revision [4044]

Edited on 2010-11-06 12:30:47 by Jeroensky [Multi OS requirements ;-)]
Additions:
**-Terminal** (Linux [[http://aplawrence.com/Linux/enable_telnet.html howto]] + OS-X [[http://www.wikihow.com/Use-Telnet-on-Mac-OS-X howto]])
Deletions:
**-Terminal** (Linux + OS-X) [[http://aplawrence.com/Linux/enable_telnet.html Linux howto]])


Revision [4043]

Edited on 2010-11-06 12:26:40 by Jeroensky [Multi-OS requirements ;-)]
Additions:
Requirements:
**[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -PuTTY]]** (windows)
**-Terminal** (Linux + OS-X) [[http://aplawrence.com/Linux/enable_telnet.html Linux howto]])


Revision [4037]

Edited on 2010-11-04 22:34:36 by Jeroensky [added url for nessesary software]
Additions:
//Linux And OS-X users can get a Telnet client by using their package manager (search for telnet). Linux has by default a telnet client installed. Windows doesn't have a good telnet client, so you need to manually install one like **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PuTTY]]**. See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure PuTTY.//
Deletions:
//Linux And OS-X users can get a Telnet client by using their package manager (search for telnet). Linux has by default a telnet client installed. Windows doesn't have a good telnet client, so you need to manually install one like **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]]**. See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure Putty.//


Revision [4036]

Edited on 2010-11-04 22:33:31 by Jeroensky [added url for nessesary software]
Additions:
//Linux And OS-X users can get a Telnet client by using their package manager (search for telnet). Linux has by default a telnet client installed. Windows doesn't have a good telnet client, so you need to manually install one like **[[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]]**. See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure Putty.//
Deletions:
//Linux And OS-X users can get a Telnet client by using their package manager (search for telnet). Linux has by default a telnet client installed. Windows doesn't have a good telnet client, so you need to manually install one like Putty. See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure PuTTY.//


Revision [4031]

Edited on 2010-11-04 22:13:26 by Jeroensky [add aware of code translation]
Additions:
##Be aware: don't translate the code, keep it English##
=Version 1.13=
Deletions:
@@Be aware: don't translate the code, keep it English@@
##Version 1.13##


Revision [4030]

Edited on 2010-11-04 22:12:12 by Jeroensky [add aware of code translation.]
Additions:
{{googletranslate}}
@@Be aware: don't translate the code, keep it English@@
Deletions:
{{googletranslate}} @@Be aware: don't translate the code, keep it English@@


Revision [4029]

Edited on 2010-11-04 22:11:24 by Jeroensky [add aware of code translation.]
Additions:
{{googletranslate}} @@Be aware: don't translate the code, keep it English@@
Deletions:
{{googletranslate}}


Revision [4028]

Edited on 2010-11-04 22:08:49 by Jeroensky [added googletranslate]

No Differences

Revision [4027]

Edited on 2010-11-04 22:07:47 by Jeroensky [added googletranslate]
Additions:
====Enigma2 tuner Telnet.====
==={{color c="gray" text="Common Unix/Linux commands used via Telnet."}}===
{{googletranslate}}
Deletions:
===Enigma2 tuner Telnet: common Unix/Linux Commands used via Telnet.===


Revision [4005]

Edited on 2010-08-04 00:49:16 by Jeroensky [add reload settings command]
Additions:
//Note: Minimal 5 and maximal 8 characters long, and can consist of UPPERCASE/lowercase letters and numbers.//
Deletions:
Minimal 5 and maximal 8 characters long, and can consist of UPPERCASE/lowercase letters and numbers.


Revision [4004]

Edited on 2010-08-04 00:44:05 by Jeroensky [added reload settings comand]
Additions:
##Version 1.13##
==Reload Enigma2 tuner settings.==
//Note: Change X in:
0, reloading lamedb and Userbouquets
1, reloading lamedb only
2, reloading Userbouquets only//
%%wget -qO - http://127.0.0.1/web/servicelistreload?mode=X%%
Deletions:
##Version 1.12##


Revision [3936]

Edited on 2010-07-23 19:44:47 by Jeroensky [changed "changing permissions"]
Additions:
//This permission is only nessesary if a script (*.sh) or specific type of file won't work/handle properly. Normally you don't need to give permission to new files. For "normal" files (configs, plugins, etc.) the mode should simply be 600 or 666.
For root access use whatever is most intuitive to you, 700, 755, 777 is all ok. (On your dreambox at least.)
Advisable is 700 to signify these files are meant to be used by root only. //
Deletions:
//This permission is only nessesary if a script (*.sh) or specific type of file won't work/handle properly. Normally you don't need to give permission to new files. For "normal" files (configs, plugins, etc.) the mode should simply be 600
(-rw-------) or 666 (-rw-rw-rw-). For root access use whatever is most intuitive to you, 700, 755, 777 is all ok. (On your dreambox at least.) Advisable is 700 to signify these files are meant to be used by root only. //


Revision [3935]

Edited on 2010-07-23 19:43:21 by Jeroensky [changed chmod explanation.]
Additions:
//This permission is only nessesary if a script (*.sh) or specific type of file won't work/handle properly. Normally you don't need to give permission to new files. For "normal" files (configs, plugins, etc.) the mode should simply be 600
(-rw-------) or 666 (-rw-rw-rw-). For root access use whatever is most intuitive to you, 700, 755, 777 is all ok. (On your dreambox at least.) Advisable is 700 to signify these files are meant to be used by root only. //
More chmod info can be found [[http://www.analysisandsolutions.com/code/chmod.htm in this link]].
Deletions:
//This permission is only nessesary if a script (*.sh) or specific type of file won't work/handle properly. Normally you don't need to give permission to new files. And don't use too much permissions because that can be unsafe. For example 777 is pure evil. More chmod info can be found [[http://www.analysisandsolutions.com/code/chmod.htm in this link]].


Revision [3934]

Edited on 2010-07-23 19:33:22 by Jeroensky [cleanup, correct typo's, added spaces to look more nice.]
Additions:
Use a telnet client and configure the Enigma2 tuner ip address in settings of telnet client.
//Linux And OS-X users can get a Telnet client by using their package manager (search for telnet). Linux has by default a telnet client installed. Windows doesn't have a good telnet client, so you need to manually install one like Putty. See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure PuTTY.//
Login with telnet client, when telnet client is logged in, press TAB TAB (so 2x TAB button)
==Type smarter not faster.==
Deletions:
//Use a telnet client and configure the Enigma2 tuner ip address in settings of telnet client.//
Linux And OS-X users can get a Telnet client by using their package manager (search for telnet). Linux has by default a telnet client installed. Windows doesn't have a good telnet client, so you need to manually install one like Putty. See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure PuTTY.
Login with telnet client, when telnet client is logged in, press Tab Tab (so 2x TAB button)
==Type smarter not faster==


Revision [3933]

Edited on 2010-07-23 19:31:15 by Jeroensky [cleanup, and typo correction.]

No Differences

Revision [3932]

Edited on 2010-07-23 19:29:28 by Jeroensky [typo correction.]
Additions:
//Use a telnet client and configure the Enigma2 tuner ip address in settings of telnet client.//
Linux And OS-X users can get a Telnet client by using their package manager (search for telnet). Linux has by default a telnet client installed. Windows doesn't have a good telnet client, so you need to manually install one like Putty. See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure PuTTY.
Deletions:
//Use a telnet client configure Enigma2 tuner ip address in settings.//
Linux And OS-X users can get a Telnet client by using their package manager (search for telnet). Windows doesn't have a good telnet client, so you need to manually install one like Putty. See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure PuTTY.


Revision [3931]

Edited on 2010-07-23 19:25:16 by Jeroensky [cleaned up a bit.]
Additions:
Linux And OS-X users can get a Telnet client by using their package manager (search for telnet). Windows doesn't have a good telnet client, so you need to manually install one like Putty. See [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear this link ]]for a detailed description on how to configure PuTTY.
Deletions:
See: [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear A detailed description on how to configure PuTTY]], as added bonus, this allows you to securely access your box from anywhere in the world.


Revision [3930]

Edited on 2010-07-23 19:21:25 by Jeroensky [Reference link to top of page together with wikipedia link.]
Additions:
##Version 1.12##
[[http://busybox.net/downloads/BusyBox.html Busybox telnet reference]] or [[http://en.wikipedia.org/wiki/List_of_Unix_utilities List of Unix utilities on Wikipedia]]
Deletions:
##Version 1.11##
[[http://en.wikipedia.org/wiki/List_of_Unix_utilities List of Unix utilities on Wikipedia]]
@@Busybox telnet reference http://busybox.net/downloads/BusyBox.html @@


Revision [3929]

Edited on 2010-07-23 17:28:38 by Jeroensky [add chmod info]
Additions:
##Version 1.11##
//This permission is only nessesary if a script (*.sh) or specific type of file won't work/handle properly. Normally you don't need to give permission to new files. And don't use too much permissions because that can be unsafe. For example 777 is pure evil. More chmod info can be found [[http://www.analysisandsolutions.com/code/chmod.htm in this link]].
Here a example of a chmod for a script file,// %%chmod 755 HackSat_Key_downloader_userscript.sh%%
Deletions:
##Version 1.10##
//This permission is only nessesary if a script (*.sh) or specific type of file won't work/handle properly. Normally you don't need to give permission to new files. And don't use too much permissions because that can be unsafe. For example 777 is pure evil. More chmod info can be found [[http://www.analysisandsolutions.com/code/chmod.htm in this link]]. Here a example of a chmod for a script file,// %%chmod 755 HackSat_Key_downloader_userscript.sh%%


Revision [3928]

Edited on 2010-07-23 17:27:50 by Jeroensky [added chmod info]
Additions:
//This permission is only nessesary if a script (*.sh) or specific type of file won't work/handle properly. Normally you don't need to give permission to new files. And don't use too much permissions because that can be unsafe. For example 777 is pure evil. More chmod info can be found [[http://www.analysisandsolutions.com/code/chmod.htm in this link]]. Here a example of a chmod for a script file,// %%chmod 755 HackSat_Key_downloader_userscript.sh%%
Deletions:
//This permission is only nessesary if a script (*.sh) or specific type of file won't work/handle properly. Normally you don't need to give permission to new files. And don't use too muck permissions(can be unsafe), for example 777 is evil. More chmod info can be found [[http://www.analysisandsolutions.com/code/chmod.htm in this link]]. Here a example of a chmod for a script file,// %%chmod 755 HackSat_Key_downloader_userscript.sh%%


Revision [3927]

Edited on 2010-07-23 17:26:24 by Jeroensky [added extra chmod info]
Additions:
//This permission is only nessesary if a script (*.sh) or specific type of file won't work/handle properly. Normally you don't need to give permission to new files. And don't use too muck permissions(can be unsafe), for example 777 is evil. More chmod info can be found [[http://www.analysisandsolutions.com/code/chmod.htm in this link]]. Here a example of a chmod for a script file,// %%chmod 755 HackSat_Key_downloader_userscript.sh%%
Deletions:
//For example,// %%chmod 755 HackSat_Key_downloader_userscript.sh%%


Revision [3926]

Edited on 2010-07-23 11:48:30 by MiLo [added extra chmod info]
Additions:
For detailed explanations of UNIX (Linux) commands see:
[[http://en.wikipedia.org/wiki/List_of_Unix_utilities List of Unix utilities on Wikipedia]]
Note: The tuner runs a small subset of these commands, and some commands are quite limited in their support for extra options. But they aren't dramatically different.
==Start a telnet session==
See: [[http://www.milosoftware.com/dreambox/en/index.php?body=dropbear A detailed description on how to configure PuTTY]], as added bonus, this allows you to securely access your box from anywhere in the world.
//Login as user root, hit enter button, and type the password if prompted (default=dreambox on a Dreambox tuner)//
==Type smarter not faster==
The TAB key will also "auto-complete" commands and options for you. So instead of a full file name, you can usually just type a part of the name and press TAB. Pressing TAB again will display a list of possible matches.
Deletions:
//Login with user root, hit enter button, and type the used password (default= dreambox , on a Dreambox tuner)//


Revision [3925]

Edited on 2010-07-21 17:04:56 by Jeroensky [Another typo correction version 666]
Additions:
unzip exact-package-name.ipk.zip%%
Deletions:
upzip exact-package-name.ipk.zip%%


Revision [3924]

Edited on 2010-07-20 15:46:42 by Jeroensky [some typo corrections, it's beautiful, far out man ;-)]
Additions:
##Version 1.10##
Deletions:
##Version 1.09##


Revision [3923]

Edited on 2010-07-20 14:33:46 by Jeroensky [some typo corrections (it's beautiful ;-) )]

No Differences

Revision [3922]

Edited on 2010-07-20 14:30:19 by Jeroensky [type correction]
Additions:
@@Busybox telnet reference http://busybox.net/downloads/BusyBox.html @@
Deletions:
@@Busybox telnet reference http://busybox.net/downloads/BusyBox.html@@


Revision [3921]

Edited on 2010-07-20 14:27:49 by Jeroensky [typo correction]
Additions:
%%cd /tmp
wget exact-package-name.ipk.zip
upzip exact-package-name.ipk.zip%%
%%init 4
ipkg update && ipkg upgrade
init 3
exit%%
%%init 4
enigma2%%
%%init 4
/bin/sh /usr/bin/enigma2.sh%%
//Telnet will output Enigma2 activity. To stop press CTRL-C.//
To resume normal operation:
%%mount /boot -o remount,rw
rm /boot/*
reboot%%
Deletions:
%%cd /tmp%%
%%wget exact-package-name.ipk.zip%%
%%upzip exact-package-name.ipk.zip%%
%%init 4%%
%%ipkg update && ipkg upgrade%%
%%init 4%%
%%enigma2%%
%%init 4%%
%%/bin/sh /usr/bin/enigma2.sh%%
//Telnet will output Enigma2 activity. To stop press CTRL-C, enter %%init 3%% to resume normal operation.//
%%mount /boot -o remount,rw%%
%%rm /boot/*%%


Revision [3920]

Edited on 2010-07-20 14:19:48 by Jeroensky [typo correction]
Additions:
//To filter the list, added the filtered word after the command between two stars, example: ipkg list_installed *plugin*//
Deletions:
//To filter the list, added the filtered word after the command between two stars example: ipkg list_installed *plugin*//


Revision [3919]

Edited on 2010-07-20 14:14:56 by Jeroensky [type correction]
Additions:
//To filter the list, added the filtered word after the command between two stars example: ipkg list_installed *plugin*//
Deletions:
//To filter the list, added the filtered word after the command between two stars ** example: ipkg list_installed *plugin*//


Revision [3918]

Edited on 2010-07-20 14:12:40 by Jeroensky [typo correction]
Additions:
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.)
Deletions:
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.)


Revision [3917]

Edited on 2010-07-20 13:53:06 by Jeroensky [typo correction]
Additions:
Just as it sounds, use exit to log out.
Deletions:
Just as it sounds, use exit to log out. Alternatively, you can type logout.


Revision [3916]

Edited on 2010-07-20 13:51:22 by Jeroensky [typo correction]
Additions:
%%wget -O /dev/null -q http://root:password@localhost/web/powerstate?newstate=3%%
Deletions:
%%wget -O /dev/null -q http://root:password@localhost/web/powerstate?newstate=3%%)


Revision [3915]

Edited on 2010-07-20 08:50:54 by MiLo [typo correction]
Additions:
List only enigma2 plugin packages:
%%ipkg list "enigma2-plugin*"%%
//To filter the list, added the filtered word after the command between two stars ** example: ipkg list_installed *plugin*//
//Telnet will output Enigma2 activity. To stop press CTRL-C, enter %%init 3%% to resume normal operation.//
//After that go with ftp client or network browser to /tmp/ directory of Enigma2 tuner/pvr and download the screenshot.bmp file. Type "grab" to see more options, for saving jpg/png files and mixing video and OSD.//
Copy a whole directory tree, including subdirectories:
%%cp -r /etc/enigma2 /hdd/backup/%%
This will create /hdd/backup/enigma2, and copy everything in it.
You can also add or remove permissions using letters (you can see them with "ls -l", as described above), which is handy for multiple files, to strip away "execute" permission from all files, or to add "read" and "execute" to all .sh files, or make all files read-only (not writable):
%%chmod a-x *
chmod a+rx *.sh
chmod a-w *%%
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)).
To create, list or extract from gzip compressed archives, use the extra "z" switch. Note that "-czf" if identical to "-c -z -f". Most archives were created this way.
%%tar -cvf filename.tar directoryname
tar -czvf filename.tar.gz directoryname%%
%%tar -tvf filename.tar
tar -tvzf filename.tar.gz%%
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. The files will be placed in the current directory. 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
%%tar -xvf filename.tar
tar -xzvf filename.tar.gz%%
Instead of the -z switch, you can use gzip on the commandline to compress single files. This is much less efficient though. The filename will automatically change from filename.tar to filename.tar.gz (appending .gz to the file extension).
This command (g”unzip”) is used to uncompress a .gz file, which will also result in the filename being changed back to filename.tar. Alternatively, you can use gzip -d (for “decompress”) in place of gunzip.
Sometimes ".tar.gz" is abbreviated to ".tgz".
You may also encounter "bzip2" files, typically named filename.tar.bz2. To uncompress these, type the following:
%%bunzip filename.tar.bz2 | tar xvf -%%
(notice the vertical bar and the dash at the end)
Deletions:
//To filter the list, added the filtered word after the command between two stars ** example: ipkg list *plugin*//
//Telnet will output Enigma2 activity. To stop press CTRL-C//
//After that go with ftp client or network browser to /tmp/ directory of Enigma2 tuner/pvr and download the screenshot.bmp file.//
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 -cfv filename.tar directoryname%%
%%tar -tvf 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
%%tar -xvf 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).
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.)
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 -czvf filename.tgz directoryname%%
This command is used to uncompress and extract the files from a .tgz archive.
%%tar -xzvf filename.tgz%%


Revision [3914]

Edited on 2010-07-20 00:54:32 by jonc [added menu links]
Additions:
[[HomePage PLi® Wiki HomePage]] : [[DM500 DM500]] : [[DM500plus DM500+]] : [[DM56xx DM56xx]] : [[DM500hd DM500HD]] : [[DM600 DM600]] : [[DM7000 DM7000]] : [[DM7020 DM7020]] : [[DM7025 DM7025]] : [[DM800 DM800]] : [[DM8000 DM8000]] : [[vuplus Vu+ Duo]]
Deletions:
[[HomePage PLi® Wiki HomePage]] : [[DM500 DM500]] : [[DM500plus DM500+]] : [[DM56xx DM56xx]] : [[DM500hd DM500HD]] : [[DM600 DM600]] : [[DM7000 DM7000]] : [[DM7020 DM7020]] : [[DM7025 DM7025]] : [[DM800 DM800]] : [[unstable List of Categories]]


Revision [3913]

Edited on 2010-07-20 00:52:14 by jonc [added menu links]
Additions:
----
[[HomePage PLi® Wiki HomePage]] : [[DM500 DM500]] : [[DM500plus DM500+]] : [[DM56xx DM56xx]] : [[DM500hd DM500HD]] : [[DM600 DM600]] : [[DM7000 DM7000]] : [[DM7020 DM7020]] : [[DM7025 DM7025]] : [[DM800 DM800]] : [[unstable List of Categories]]


Revision [3907]

Edited on 2010-07-19 21:30:31 by Jeroensky [finalizing telnet]
Deletions:
{{Telnet Busybox commands}}{{telnet}}
----
CategoryWiki


Revision [3906]

Edited on 2010-07-19 21:28:22 by Jeroensky [finalizing]
Additions:
{{Telnet Busybox commands}}{{telnet}}
Deletions:
{{Telnet Busybox commands}}{{Use a telnet session}}


Revision [3905]

Edited on 2010-07-19 21:27:41 by Jeroensky [filanizing (learning wiki too)]
Additions:
{{Telnet Busybox commands}}{{Use a telnet session}}
Deletions:
{{MyPages}}{{Enigma2 Telnet Busybox commands}}


Revision [3904]

Edited on 2010-07-19 21:25:41 by Jeroensky [finalizing telnet busybox collection]
Additions:
{{MyPages}}{{Enigma2 Telnet Busybox commands}}
Deletions:
{{MyPages}}{{nocomments}}


Revision [3903]

Edited on 2010-07-19 21:22:47 by Jeroensky [finalizing telnet busybox collection]
Additions:
@@Collected by [[https://sites.google.com/site/jeroenskyterritory/ Jeroensky TeRrItOrY]]. All credits 4 creators.@@
Deletions:
@@These commands are collected by [[https://sites.google.com/site/jeroenskyterritory/ Jeroensky TeRrItOrY]]. All credits goes to the creators, and not to me ;-)@@


Revision [3902]

Edited on 2010-07-19 21:20:05 by Jeroensky [Finalizing Enigma2 telnet / busybox wiki]
Additions:
===Enigma2 tuner Telnet: common Unix/Linux Commands used via Telnet.===
##Version 1.09##
//Use a telnet client configure Enigma2 tuner ip address in settings.//
//Login with user root, hit enter button, and type the used password (default= dreambox , on a Dreambox tuner)//
==See all compatible commands.==
Login with telnet client, when telnet client is logged in, press Tab Tab (so 2x TAB button)
==Change Enigma2 tuner root password.==
%%passwd%%
Minimal 5 and maximal 8 characters long, and can consist of UPPERCASE/lowercase letters and numbers.
==Solving a jammed Enigma2 tuner.==
%%killall enigma2%%
==Reboot a Enigma2 tuner.==
%%reboot%%
==Change powerstate of a Enigma2 tuner.==
//Note: Change password in your used root password!//
Standby:
%%wget -O /dev/null -q http://root:password@localhost/web/powerstate?newstate=0%%
DeepStandby:
%%wget -O /dev/null -q http://root:password@localhost/web/powerstate?newstate=1%%
Reboot:
%%wget -O /dev/null -q http://root:password@localhost/web/powerstate?newstate=2%%
Restart Enigma2:
%%wget -O /dev/null -q http://root:password@localhost/web/powerstate?newstate=3%%)
Wakeup from Standby:
%%wget -O /dev/null -q http://root:password@localhost/web/remotecontrol?command=116%%
==Basic navigation.==
cd (”change directory”), will take you back to your $HOME directory
%%cd%%
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 /path/to/directory%%
Typing cd .. moves you up one directory from your current location.
%%cd ..%%
To see which directory you are in, type pwd (”print (display) working directory”).
%%pwd%%
Just as it sounds, use exit to log out. Alternatively, you can type logout.
%%exit%%
==Creating and deleting directories.==
To create a new directory, type mkdir (”make directory”) and specify the new directory’s name.
%%mkdir directoryname%%
To delete an empty directory, type rmdir (”remove directory”) and the directory’s name.
%%rmdir directoryname%%
==Install & remove & list packages.==
To get a package to /tmp directory on Enigma2 tuner and unzip it:
%%cd /tmp%%
%%wget exact-package-name.ipk.zip%%
%%upzip exact-package-name.ipk.zip%%
Installation:
%%ipkg install exact-package-name.ipk%%
or
%%ipkg packagename%%
Uninstall:
%%ipkg remove exact-package-name.ipk%%
List installed packages:
%%ipkg list_installed%%
List all packages:
%%ipkg list%%
//To filter the list, added the filtered word after the command between two stars ** example: ipkg list *plugin*//
==Update Open-Pli Enigma2 tuner.==
%%init 4%%
%%ipkg update && ipkg upgrade%%
%%init 3%%
%%exit%%
==Create Enigma log (see what Enigma does).==
%%init 4%%
%%enigma2%%
or
%%init 4%%
%%/bin/sh /usr/bin/enigma2.sh%%
//Telnet will output Enigma2 activity. To stop press CTRL-C//
==Create Enigma screenshot.==
%%grab /tmp/screenshot.bmp%%
//After that go with ftp client or network browser to /tmp/ directory of Enigma2 tuner/pvr and download the screenshot.bmp file.//
==Listing files.==
To display a list of files and subdirectories in your current directory, type ls (”list”)
%%ls%%
To see a more complete list which includes hidden files or files that begin with a “.” (dot), type ls -a.
%%ls -a%%
To list all files and directories in long format which will provide details about each file and directory, type ls -la.
%%ls -la%%
To list all directories and files, sorted by size, in long format, type ls -lS.
%%ls -lS%%
To list all files and directories in long format by time modified, type ls -lta.
%%ls -lta%%
==Copying files.==
Copy the contents of one file to another file, resulting in two copies of the same file on your account.
%%cp oldfilename newfilename%%
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.
%%cp directory/* destinationdirectory%%
==Searching files and directories.==
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.)
%%find -name ‘n*’%%
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.)
%%grep -inw text filename%%
==Displaying / comparing file content.==
Counts and displays the number of lines, number of words, and number of characters of the given file.
%%wc filename%%
Displays the entire contents of a file.
%%cat filename%%
Shows the content of the file, including line numbers (nl=number lines).
%%nl filename%%
Displays the contents of a file one screen at a time. Press the SPACEBAR to display the next screen of text.
%%more filename%%
Compares the contents of the two named files and reports the first different character found and the line number.
%%cmp 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.)
%%diff filename1 filename2%%
==Moving, renaming, and deleting files.==
Use to rename a file (mv fileA fileB), move a file (mv fileA /dirA/), or both (mv fileA /dirB/fileB).
%%mv oldfilename newfilename%%
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.)
%%rm -i filename%%
==Changing permissions.==
Changes the permissions on a filename or directory as specified. (First go with cd command to directory where the file is.)
%%chmod permissions filename%%
//For example,// %%chmod 755 HackSat_Key_downloader_userscript.sh%%
==Archives and compression.==
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 -cfv filename.tar directoryname%%
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 -tvf 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
%%tar -xvf 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).
%%gzip filename.tar%%
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.)
%%gunzip filename.tar.gz%%
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 -czvf filename.tgz directoryname%%
This command is used to uncompress and extract the files from a .tgz archive.
%%tar -xzvf filename.tgz%%
==To reboot and stop the Enigma2 (Dreambox!) tuner to upload & install a image by computer browser.==
Be shure you only do this if you want to reflash the Enigma2 tuner. Because your Enigma2 tuner will boot with DHCP active so that you can upload a new image by browser on a computer.
%%mount /boot -o remount,rw%%
%%rm /boot/*%%
%%reboot%%
==To flash an image using telnet.==
//This method will only work with a .img image file.//
~1) Rename the image file to backup.img
~1) FTP the image file to the /tmp folder on the Enigma2 tuner
Telnet to your box and paste the following command:
%%cd /tmp && eraseall /dev/mtd/3 && cp backup.img /dev/mtd/3 && reboot%%
==To backup an image using telnet.==
%%cat /dev/mtd/3 » /tmp/backup.img%%
~1) FTP to the box and navigate to the /tmp
~1) Here you will find the backup.img file.
==To copy an image from your PC to the Enigma2 tuner 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 Enigma2 tuner 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 Enigma2 tuner ready to be flashed.//
==Dreambox DM8000: Changing Oled display brightness.==
Check brightness setting:
%%cat /proc/stb/lcd/oled_brightness%%
Configure brightness setting (between 0-255, as example 30)
%%echo 30 » /proc/stb/lcd/oled_brightness%%
@@Busybox telnet reference http://busybox.net/downloads/BusyBox.html@@
@@These commands are collected by [[https://sites.google.com/site/jeroenskyterritory/ Jeroensky TeRrItOrY]]. All credits goes to the creators, and not to me ;-)@@


Revision [12]

The oldest known version of this page was created on 2008-05-26 10:49:27 by webmaster [Finalizing Enigma2 telnet / busybox wiki]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki