Friday, April 1, 2011

Maemo internals for everyone – Linux console


Few simple commands:
  • df -h – command is acronym from disk free, so it will show you free space on every storage in your device, -h option makes output more human-readable, works much faster than going to options, scrolling to memory info and running it
  • uptime – shows for how long system is running and average processor load for last 1, 5 and 15 minutes
  • uname -a – shows information about kernel, hostname and system
  • sudo gainroot – gain root/administrator rights, available after installing rootsh

Now that you know how to gain root (administrator, superuser, whatever you want to call it) rights you should be carefull with what you are doing! The things listed below shouldn’t harm your device, but be sure not to misspell any of the commands! You can see on my screenshots that I have some other hostname than most of you, it’s old habit from the times when I was maintaining several servers.
  • echo your_host_name > /etc/hostname – allow to change hostname, not much of use for now, applies after reboot
  • ping dadri2berlin.blogspot.com – well known command used to test internet connection, available on numerous operating systems,  you can put any address instead of dadri2berlin.blogspot.com, press Ctrl+C to stop pinging; for some reason ping isn’t available without root rights.
  • ifconfig – shows detailed information about network interfaces
  • dpkg -l|more – shows full list of software packages installed in the system, press space for next page or Q to quit, this is part of Debian packaging system
  • apt-get update – downloads latest software catalogues, if update is available you will notice usual exclamation mark in status area, this is part of Advanced Packaging Too
The list given here is just small piece of possible uses of console, if you are Linux user you will probably find more things you can do on the Nokia N900.

54 tip and trick