TELNET COMMANDS
In this guide you can find all the major commands you can use telnet to the Dreambox, or at least even if some can not be used on the decoder but it 's helpful to know if you use linux.
LIST CONTROL:
Gestione_files_e_directory
The Wildcard
other Concepts
Managing disks and magnetic media
List Assembly Image
The Devices
File system
COPY UN files do msdos disk 1.4
Format a floppy disk windows compatible scam
COPY a diskette
Processes & Multitasking
Commands for the Device Manager
Commands Archiving
Basic commands for the System Administrator and the user
Commands CONFIGURATION
VERIFICATION State ports
Startup and shutdown
Starting and stopping EMU
changing Channels
Change MAC address
Change the data and time
Come ONE Create SWAP file
Managing files and directories
ls lists files in the current directory
ls | more displays the contents of the current directory by putting the breaks of bottom
ls -a lists files in the current directory including hidden files
ls -l displays the contents of the current directory with more information
ls -F shows the contents of the current directory with symbols indicating the type of file or dir
ls dir [1234] corresponds to "ls dir1 dir2 dir3 dir4"
dir * ls displays the contents of all directories that start with the word say
mkdir dir creates the directory named dir
mkdir / dir creates the directory name directory to the root directory (root)
pwd communicates what the current directory (print working directory)
dir file shows the contents of the current directory and specifies the type of files
du dir exhibition space over K
dir tree shows the contents of the current directory in an organized way
rm -r dir removes a directory dir
rm -rf dir removes a directory dir although not 'empty and without prompting
rmdir dir removes a directory dir and if 'empty
touch file creates the file named "file"
rm file deletes the file
cat file show the content of a file
blackberries file shows the contents of a file
less file shows the contents of a file
cp file1 dir copy file1 in dir
cp file1 file2 copies file1 file2
cp file1 / dir * copy file1 in the directory, starting at the root, starting with the name directory
mv file1 file2 move file1 file2 (can 'be used to rename)
mv file1 dir moves file1 into directory dir
echo file * displays all files beginning with the filename
cat file1 file2> file3 concatenates file1 and file2 and copies them in file3
chmod + r file adds the permission to read the file (other values ​​wx)
chmod -r removes the file permission to read the file (other values ​​wx)
chmod 755 file adds the read and execute permissions to the file indicated, usually it is used only for executable files
find / dir -name file -print searches for the file filename from the directory dir
find / dir -name \ * -print file searches for files that end with the word file from the directory dir
grep word / dir search for all files in the directory dir (located in the root) word word
The wildcard
* name means 'everything' (files and / or directories) that begins with the command name "
name [1-4] means "name1 name2 name3 nome4"
Name xx means "all files or directories starting with name ending in xx and have any character in the middle"
NOTICE: Be careful when using the command rm -r. * Erase everything!
Other concepts
command> output sends the command output file or output device
command >> output pipe the output of the command in the file or device output (stdout)
command <output takes the command input from the file or device output (standard input)
command 2> send errors in files or output device (standard error)
command1 | command2 pipe the output of command1 with the input of command2 (pipe)
Managing disks and magnetic media
Linux does not allow disk management as DOS; the disks are first "mounted" (mounted in the logical sense) in a directory, then you can use directory accessing on which are mounted, before removing them are "removed".
Mount: mount -t file_system device directory_montaggio
Remove: umount directory_montaggio
Only root and few others can mount and unmount disks.
Directory mounting
The bar / indicates that must be subdir of the root.
Mount directory: / cdrom / floppy / mnt
The devices
/ Dev / fd0 the floppy A:
/ Dev / fd0u11440 the floppy A: indicating the size (instead of "u" you can 'be "H")
/ Dev / hda first unit 'master IDE / EIDE
/ Dev / hda1 First partition of the first unit 'master (usually C
/ Dev / hda2 second partition of the first unit 'master
/ Dev / hdb first unit 'slave (usually the cdrom)
/ Dev / hdb1 partition before the first unit 'slave
/ Dev / hdc second joined 'master (usually a possible second HD)
/ Dev / hdc1 first partition of the second unit 'master
/ Dev / hdd second unit 'slave IDE / EIDE
/ Dev / HDD1 first partition of the second unit 'slave IDE / EIDE
/ Dev / sda first unit 'SCSI
/ Dev / sda1 partition before first unit 'SCSI
/ Dev / lp0 parallel port (usually the printer)
/ Dev / lp1 second parallel port
/ Dev / ttyS0 first serial port output
/ Dev / cua1 second serial port (usually a modem eventually) in output
/ Dev / ttyS0 first serial port (usually the mouse) input
/ Dev / ttyS1 second serial input
/ Dev / tty1 first virtual console (the one which issued the commands). You can 'switch to that console with the [Alt + F1]
/ Dev / tty2 second virtual console (the one which issued the commands). You can 'switch to that console with the [Alt + F2]
/ Dev / tty3 third virtual terminal (the one which issued the commands). You can 'switch to that console with the [Alt + F3]
/ Dev / tty4 fourth virtual console (the one which issued the commands). You can 'switch to that console with the [Alt + F4]
/ Dev / null the null device
File system
It can often not be necessary to indicate the type of file system because the system is able to recognize it alone. Actually it uses the file system specified in the configuration file / etc / fstab.
mount -t filesystem / dev / hda1 / mnt mount the file system on the first partition in the directory / mnt
mount / dev / hdb / cdrom mount the cdrom directory cdrom
mount / dev / fd0 / floppy mount the floppy A: / floppy
umount / cdrom unmounts the cdrom
df disk space
Copy a file on diskette msdos 1.4
mount -t msdos / dev / fd0 / floppy mount the floppy
cp file / floppy copy the file
umount / floppy removing the floppy
Format a floppy disk compatible with Windows
fdformat / dev / fd0u1440 low-level format the floppy
mkfs.msdos / dev / fd0 format the floppy msdos fat for compatibility 'with windows
Instead of msdos you could put vfat, ext2, ext3, etc ... but also to work on windows you must use msdos.
Copy a disk
cp / dev / fd0 copia.dsk copies the disk in a file named copia.dsk
copia.dsk cp / dev / fd0 in hard copy copia.dsk
rm removes copia.dsk copia.dsk
Processes & Multitasking
Command & sends multitasking running the command "command"
ps communicates the list of active processes and their identification
ps f communicates the list of active processes and their dependence
pstree communicates the list of active processes and their dependence
Kill 100 terminates the process number 100
lprm clear 2 finishes the job in the print number 2
lprm to end all jobs in print
lpstat displays the jobs in printing
Commands for the management of devices
lpr -Pascii file print printer ascii file
Archive controls
tar zxfv file.tgz -C dir unzip the files in the directory dir
decompresses files gunzip file.gz
Essential controls for the system administrator and the user
whoami communicates the user name with which you entered
logname communicates who you are
passwd user changes the password of the user
informs users connected users
share communicates space HD
umask -s communicates the mask of the default permissions
umask 077 removes all default permissions when creating a file
Configuration commands
gpm sect mouse
xf86config configures X11k
SuperProbe find the video card clock
XF86Setup X11 interface to configure X11
nntp server sets the News
Smailconfig sets the mail server
Check Status doors
To check, from the outside, if a port (for example the 12000) is open:
1. Open telnet;
2. connect to the decoder by typing the IP address (host name);
3. log in with username and password;
4. type the command netstat -t (for TCP ports);
5. type the command netstat -u (for ports udp).
Startup and shutdown
Before launching the following commands enters the folder / tmp with the command: "cd / tmp"
Put on standby
wget http: // root: dreambox@127.0.0.1/cgi-bin/admin? command = standby & requester WebIf = -O / dev / null -q
Lights from standby
wget http: // root: dreambox@127.0.0.1/cgi-bin/admin? command = wakeup & requester WebIf -0 = / dev / null -q
Restart the decoder
wget http: // root: dreambox@127.0.0.1/cgi-bin/admin? command = reboot & requester WebIf -0 = / dev / null -q
Off the decoder
wget http: // root: dreambox@127.0.0.1/cgi-bin/admin? command = shutdown & requester WebIf -0 = / dev / null -q
Each command above must be written on the same line.
Thanks vanescar for suggestions.
Start and Stop EMU
To stop an EMU the procedure and 'the following:
ps displays the active processes, something like this:
85 S 10400 root / bin / enigma
113 root 10400 S N / bin / enigma
162 10400 root R N / bin / enigma
111 root 424 S telnetd
112 root 800 S -sh
2008 R 158 root /var/bin/CCcam_2.1.1
159 2008 S root /var/bin/CCcam_2.1.1
160 2008 S root /var/bin/CCcam_2.1.1
161 2008 S root /var/bin/CCcam_2.1.1
R 165 root 640 ps
killall CCcam_2.1.1 closes all processes with the given name (CCcam_2.1.1)
rm -rf / tmp / * clears the / tmp folder, typically the emu tracks the channel where you are, ecm, and other details concerning the encoding by creating temporary files that may park on this folder and until They erased even if we restart another emu probably will not work '
To start an EMU the procedure and 'the following:
ls / var / bin displays the folder containing the executable of emu installed, useful to see the exact name of the EMU to start
./var/bin/CCcam_2.1.1 & Start emu (CCcam_2.1.1)
ps we check that between the active processes is present emu started (CCcam_2.1.1):
113 root 10432 S N / bin / enigma
162 10432 root R N / bin / enigma
111 root 424 S telnetd
112 root 804 S -sh
1956 R 178 root ./var/bin/CCcam_2.1.1
179 1956 S root ./var/bin/CCcam_2.1.1
180 1956 S root ./var/bin/CCcam_2.1.1
181 1956 S root ./var/bin/CCcam_2.1.1
R 182 root 640 ps
Changing Channels
Telnet you can 'change the channel. To do this is necessary to know some data of the channel we want to tune. The command to run and ':
http://127.0.0.1/cgi-bin/zapTo?path=1:0:Type:SID:TransponderID:NetworkID:Namespace:0:0:0:
where instead of the words written in bold are put channel data as we turned on. This data can be found on the files that make up the settings, eg, / var / tuxbox / config / enigma / or services on the various file userbouquet.XXXX.tv. For example to put on BBC1 simple command:
wget http: // root: dreambox@127.0.0.1/cgi-bin/zapTo? path = 1: 0: 1: d49: 1450: 13e: 820000: 0: 0: 0:
The above command should be written on the same line.
Change MAC Address
On dreambox and 'can change the MAC address directly via telnet using the following commands, but remember, restarting the decoder back to the original MAC address.
ifconfig eth0 down off the LAN network
ifconfig eth0 hw ether 00: 09: 34: AA: BB: CC sets the new MAC address
ifconfig eth0 up active network lan
Change date and time
To set the date 13/12/2010 and 20:30 to give the command:
dates -s 201112132030
Where the first four numbers are the year, following two other numbers with the month, then the day, then hour and minute.
How to create a SWAP File
Create a file size of 16MB
dd if = / dev / zero of = / var / mnt / swapfile bs = 1024 count = 16384
Format it as a swap file
mkswap / var / mnt / swapfile
Activate the swap file
swapon / var / mnt / swapfile
PLEASE NOTE
Some commands might not work if you do not send the execution from a directory where you have the just rights.
NOT THE AUTHOR OF THAT 'WAS REPORTED HERE, I HAVE ONLY TOOK THE COST OF COLLECT information and organize.
THANKS GO TO THE MANY PEOPLE WHO HAVE PROVIDED ALL THIS INFORMATION.