Register

Welcome to the RDI-Board Community.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


Donate Now Goal amount for this month: 100 EUR, Received: 100 EUR (100%)
Donate to support this site...

Results 1 to 10 of 10
  1. #1
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default Comenzi Linux utile pentru Dreambox

    Dintr-un material mult mai amplu, am facut o selectie de comenzi utile pentru posesorii de Dreambox.

    File & Directory Commands


    • pwd: The pwd command will allow you to know in which directory you're located (pwd stands for "print working directory"). Example: "pwd" in the Desktop directory will show "~/Desktop". Note that the Gnome Terminal also displays this information in the title bar of its window - see the example screenshot at the top of this page.
    • ls: The ls command will show you the files in your current directory. Used with certain options, you can see sizes of files, when files were made, and permissions of files. Example: "ls ~" will show you the files that are in your home directory.
    • cd: The cd command will allow you to change directories. When you open a terminal you will be in your home directory. To move around the file system you will use cd. Examples:
      • To navigate into the root directory, use "cd /"
      • To navigate to your home directory, use "cd" or "cd ~"
      • To navigate up one directory level, use "cd .."
      • To navigate to the previous directory (or back), use "cd -"
      • To navigate through multiple levels of directory at once, specify the full directory path that you want to go to. For example, use, "cd /var/www" to go directly to the /www subdirectory of /var/. As another example, "cd ~/Desktop" will move you to the Desktop subdirectory inside your home directory.

    • cp: The cp command will make a copy of a file for you. Example: "cp file foo" will make a exact copy of "file" and name it "foo", but the file "file" will still be there. If you are copying a directory, you must use "cp -r directory foo" (copy recursively).
    • mv: The mv command will move a file to a different location or will rename a file. Examples are as follows: "mv file foo" will rename the file "file" to "foo". "mv foo ~/Desktop" will move the file "foo" to your Desktop directory but will not rename it. You must specify a new file name to rename a file.
      • To save on typing, you can substitute '~' in place of the home directory.
      • Note that if you are using mv with sudo you can use the ~ shortcut, because the terminal expands the ~ to your home directory. However, when you open a root shell with sudo -i or sudo -s, ~ will refer to the root account's home directory, not your own.

    • rm: Use this command to remove or delete a file in your directory.
    • rmdir: The rmdir command will delete an empty directory. To delete a directory and all of its contents recursively, use rm -r instead.
    • mkdir: The mkdir command will allow you to create directories. Example: "mkdir music" will create a directory called "music".
    • man: The man command is used to show you the manual of other commands. Try "man man" to get the man page for man itself. See the "Man & Getting Help" section down the page for more information.


    System Information Commands


    • df: The df command displays filesystem disk space usage for all mounted partitions. "df -h" is probably the most useful - it uses megabytes (M) and gigabytes (G) instead of blocks to report. (-h means "human-readable")
    • du: The du command displays the disk usage for a directory. It can either display the space used for all subdirectories or the total for the directory you run it on. Example:


    [email protected]:~$ du /media/floppy
    1032 /media/floppy/files
    1036 /media/floppy/
    [email protected]:~$ du -sh /media/floppy
    1.1M /media/floppy/
    • -s means "Summary" and -h means "Human Readable"


    • free: The free command displays the amount of free and used memory in the system. "free -m" will give the information using megabytes, which is probably most useful for current computers.
    • top: The top command displays information on your Linux system, running processes and system resources, including CPU, RAM & swap usage and total number of tasks being run. To exit top, press "q".
    • uname -a: The uname command with the -a option prints all system information, including machine name, kernel name & version, and a few other details. Most useful for checking which kernel you're using.
    • lsb_release -a: The lsb_release command with the -a option prints version information for the Linux release you're running, for example:


    [email protected]:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 6.06 LTS
    Release: 6.06
    Codename: dapper
    • ifconfig reports on your system's network interfaces.



    Options

    The default behaviour for a command may usually be modified by adding a --option to the command. The ls command for example has an -s option so that "ls -s" will include file sizes in the listing. There is also a -h option to get those sizes in a "human readable" format.
    Options can be grouped in clusters so "ls -sh" is exactly the same command as "ls -s -h". Most options have a long version, prefixed with two dashes instead of one, so even "ls --size --human-readable" is the same command.
    Luati-le pe rand si incercati-le!
    Va recomand in special comanda top, va arata ce aplicatii mananca resursele Dreamului (procesor si memorie).

    Enjoy!

    Sursa.


    PS
    Nu ar strica sa faceti un backup inainte de a va juca in Dream



  2. #2
    Moderator Expert
    Join Date
    Jul 2006
    Location
    blowfish me....
    Posts
    2,474
    Posts Thanks / Likes

    Default

    cu adduser nu v-as sfatui ..... dar adaug
    ps -aux = vizionare toate procesele ce ruleaza.
    kill -9 numarul din stanga al procesului = opreste procesul
    init 3 si
    init 4 = oprire si repornire enigma(2)

  3. #3
    Banned Expert
    RDI - Board Banned Avatar

    Join Date
    Oct 2006
    Location
    pe mapamond
    Posts
    4,171
    Posts Thanks / Likes

    Default

    Super,multumim!
    Adaug si eu una;
    passwd-schimbarea parolei

  4. #4
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    Eu folosesc si killall nume_proces_de_ucis, e mai comod decat kill -9.
    Sunt multe, mai turnati si altele.

  5. #5
    Târnacopist Expert
    Join Date
    Dec 2005
    Location
    /home/satwien/
    Posts
    6,001
    Posts Thanks / Likes

    Default

    Quote Originally Posted by sinangel View Post
    cu adduser nu v-as sfatui .....
    Corect, poate bloca Dreamul, mai ales daca e DM500. Am sters comanda ...

  6. #6
    Gold Member Expert
    RDI - Board Default Avatar

    Join Date
    Sep 2005
    Location
    Tr. Severin
    Posts
    3,273
    Posts Thanks / Likes

    Default

    Quote Originally Posted by SatWien View Post
    Sunt multe, mai turnati si altele.
    busybox http://www.busybox.net/

  7. #7
    Junior Member Teacher
    Join Date
    Mar 2008
    Posts
    204
    Posts Thanks / Likes

    Default

    Ar fi foarte util sa fie pus postul mai vizibil fiindca utilitatea este foarte mare.

  8. #8
    Membrana Expert
    Join Date
    Aug 2005
    Location
    Tomis Nord
    Posts
    1,604
    Posts Thanks / Likes

    Default

    Referitor la crond. Ce comenzi trebuie sa adaug sa pornesc un script cu crond?
    Adica:
    In crontab editez o linie asa : 4 * * * * /var/etc/pielea/mea.sh , unde mea.sh are atribut 755.

    Daca intru in telnet iar in directorul /var/etc/pielea tastez direct mea.sh nu se intampla nimic , dar daca lansez ./mea.sh acesta porneste fara probleme .

    Avand in vedere linia din crontab , eu nu cred ca scriptul mea.sh va fi pornit . Cred ca lipseste ceva .
    spersanutiiamulttimpsacitesticanuamsemnatura

  9. #9
    Junior Member Teacher
    Join Date
    Jun 2007
    Location
    26.12°E / 44.42°N
    Posts
    473
    Posts Thanks / Likes

    Default

    nu am avut probleme sa rulez scripturi asa cum spui tu, insa am o alta problema legata de crond
    la fiecare restart (de box, nu enigma2), crond desi este setat sa porneasca automat, il gasesc oprit
    solutia este o comanda /var/script/crond_script.sh start dar bineinteles ca de cele mai multe ori uit asa ca serviciul este deocamdata inutil, cel putin pentru mine..

    are cineva idee care este scriptul de "autorun", unde as putea sa umblu pentru a rezolva acest lucru?

  10. #10
    Member Mentor
    Join Date
    Aug 2006
    Location
    Earth
    Posts
    815
    Posts Thanks / Likes

    Post

    "cat /proc/bus/usb/devices" > to check if your pen is recognized
    "dmesg|more" > to check for errors
    "iwconfig" and "ifconfig" >for network configuration
    "lsmod | grep rt73" >check if rt73 drivers are loaded

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to Top