PDA

View Full Version : Tutorial: Dreambox and Telnet...



me1960
26-12-08, 22:16
If you connect your dreambox trough network you can do a lot. If you want to learn and to use some better solutions it is time to learn how to work with telnet. Before i have described operations with FTP so now we can start with second network protocol Telnet.

Now on your PC clik on Start ---> Run, and there type telnet ip ( e.g telnet 127.0.0.1 ) , so on place where i write ip type ip of your dreambox. You will se that in greet message you have name of Image which you have install on your box, version of it and kernel version. Now you need to enter password and username. Username and password will be by default:

username: root
password: dreambox

Some images doesn't have password and it will not ask for you to enter it there. When you are logged in you will see message something like this:


Code:
BusyBox v1.00-pre10 (2004.11.04-00:21+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.root@dreambox ~ >

Text which i bold upper is sign that will allow you to type commands in command prompt. For the beggining you need to change your password which is on default dreambox. Command for changing old password is passwd and it will ask you to enter new password and to repeat it. If all was succes. there will be information on screen Password Changed. This is standard procedure if you are going to use your dream on internet or for C$ for security reasons because if you stay your pass by default anybody can use your connection ip and port 23 to enter on your box and have root access, so he can make lot of damage.

Now type command ps

ps is process, and that command will show list of active process on your dm. White every proccess you will find number on which that process was started that is called PID number ( process id), and on the right you will se description like this:

303 root 580 S /sbin/inetd
358 root 1232 S /bin/emud
359 root 1720 S /bin/emud
361 root 10004 S /bin/enigma

If you want to stop some process which running you need to type command kill -9 and PID number, something like this:

kill -9 303 and that command will kill process 303 root 580 S /sbin/inetd

If some procces have more numbers you need to kill first proccess and when parent process is killed all child process wil be killed to. There is also more one way to kill process with command killall and name of proces something like this:

root@dreambox ~ > killall newcamd

If you want to see what is in some directory use command ls ( ls is same as list).
If you want to see every info type ls -l, or want to se a hidden files type ls -a

example :


Code:
root@dreambox ~ > ls -l /var/bin
root@dreambox ~ > ls -a /var/binIf you want to change place, directory in which you are now or to enter it you will use command CD:

root@dreambox ~ > cd var

and than you will be in directory /var .

root@dreambox /var

If you want to back in a previous dir. type cd ..

root@dreambox /var/bin
root@dreambox ~ > cd ..
oot@dreambox /var

If you want to copy some file from one directory to other command is cp and example:

cp /var/bin/newcamd.ppc /tmp/


lb romana ( google translate ) :
Dacă vă conectaţi-vă dreambox jgheab de reţea puteţi face o mulţime. Dacă doriţi să invăţaţi şi de a folosi unele soluţii mai bine este timpul pentru a afla cum să lucreze cu telnet. Inainte de i-au descris atat de operaţiuni cu FTP, acum ne putem incepe cu două Telnet de protocol de reţea.

Acum apasa pe PC pe Start ---> Run, şi de acolo de tip telnet IP (de exemplu: telnet 127.0.0.1), asa ca pe locul unde i scrie tip de IP a dvs. de IP dreambox. Aveţi in care se va salut mesaj aveţi nume de imagine care le-aţi instala de pe cutie, de-o versiune şi versiunea kernel-ului. Acum, trebuie să introduceţi numele de utilizator şi parola. Numele de utilizator şi parola va fi in mod implicit:

nume de utilizator: root
parola: dreambox

Anumite imagini nu are parolă şi nu va cere să vă introduceţi-l acolo. Cand sunteţi autentificat, veţi vedea mesajul ceva de genul:


Cod:
Busybox v1.00-pre10 (2004.11.04-00:21 +0000) incorporat de coajă (frasin)
Introduceţi 'help' pentru o listă a construit-in-commands.root @ dreambox ~>

Text aldin care i superioară este semnul care vă va permite să tastaţi comenzile in promptul de comandă. Pentru inceput, trebuie să vă schimbaţi parola, care este implicit pe dreambox. Comandă pentru a modifica parola de vechi este passwd şi vi se va cere să introduceţi noua parolă şi să repetaţi-o. Dacă totul a fost de succes. acolo va fi de informaţii de pe ecran Parola a fost schimbată. Aceasta este procedura standard, dacă aveţi de gand să vă folosiţi de vis de pe internet sau pentru C $ din motive de securitate, pentru că dacă ai sta-vă trece in mod implicit, oricine poate să utilizaţi conexiunea dvs. de IP şi portul 23 pentru a intra pe casetă şi să aibă acces root, deci, el a se pot face multe daune.

Acum, de tip comanda ps

ps este proces, şi care comandă vă va afişa lista de proces activ de pe dm. Alb in fiecare proces, veţi găsi numărul de la care acest proces a inceput a fost că se numeşte numărul PID (id-ul de proces), şi pe dreptul de ai se va descriere de genul:

303 rădăcină 580 S / sbin / inetd in
1232 rădăcină 358 S / bin / emud
1720 rădăcină 359 S / bin / emud
10004 rădăcină 361 S / bin / enigma

Dacă doriţi să opriţi procesul de unele care să fie difuzate trebuie să tastaţi comanda ucide -9 PID şi numărul, ceva de genul:

-9 303 omoare şi că procesul de comandă va ucide 303 rădăcină 580 S / sbin / inetd in

Dacă unele procces avea mai multe numere de care aveţi nevoie pentru a ucide primul proces şi, atunci cand procesul părinte este ucis toate copil proces va fi ucis la. Există, de asemenea, mai mult un mod de a ucide cu procesul de comanda killall şi numele de proces ceva de genul:

root @ dreambox ~> killall newcamd

Dacă doriţi să vedeţi ce este, in unele directorul de utilizare comanda ls (ls este aceeaşi cu lista).
Dacă doriţi să vedeţi fiecare info tastaţi ls-l, sau doresc să se un tip de fişiere ascunse ls-un

exemplu:


Cod:
root @ dreambox ~> ls-l / var / bin
root @ dreambox ~> ls-a / var / binIf doriţi să schimbaţi locul, directorul in care sunt acum sau să vă introduceţi-l va folosi comanda CD-ul:

root @ dreambox ~> cd var

decat tine şi va fi in directorul / var.

root @ dreambox / var

Dacă doriţi să-l inapoi intr-un precedent dir. tastaţi cd ..

root @ dreambox / var / bin
root @ dreambox ~> cd ..
oot @ dreambox / var

Dacă doriţi să copiaţi unele fişier de la un alt director pentru a comanda este de cp şi de exemplu:

cp / var / bin / newcamd.ppc / tmp /