Raspberry PI CPU Temperature and current speed – bash script


echo Raspberry Pi SysInfo.
echo ---------------------
MHZ=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq)
TEMPE=$(cat /sys/class/thermal/thermal_zone0/temp)
TEMPS=$'\xc2\xb0'C

echo Hardware:
echo CPU Speed $(($MHZ/1000)) Mhz "|" CPU Temp $(($TEMPE/1000)) $TEMPS

output:


Raspberry Pi SysInfo.
---------------------
Hardware:
CPU Speed 850 Mhz | CPU Temp 28 °C


Ubuntu 12.04 – Gnome 3 close,minimize,maximize buttons

from terminal


<code>gconftool-2 --set "/apps/metacity/general/button_layout" --type string ":minimize,maximize,close"


Raspberry PI 512 MB RAM – memory split

New Raspberry PI 512 MB of RAM possible memory splits:


arm128_start.elf
arm192_start.elf
arm224_start.elf
arm240_start.elf
arm256_start.elf
arm384_start.elf
arm448_start.elf
arm496_start.elf


Raspberry Pi Debian – How to change swap size

sudo nano /etc/dphys-swapfile
sudo dphys-swapfile setup
sudo dphys-swapfile swapon


Linux – how to check which process is using most memory

ps -elf|awk '{print $10, $3, $4, $15, $16}'|sort -nr|head


Raspberry PI kiosk mode with Chromium.

1. Install chromium, x11-xserver-utils and unclutter

sudo apt-get update && apt-get upgrade -y
sudo apt-get install chromium x11-xserver-utils unclutter

2. We need to prevent screen from going blank and disable screen saver.
– edit /etc/xdg/lxsession/LXDE/autostart and comment # screen saver line and add those lines:

@xset s off
@xset -dpms
@xset s noblank
@chromium --kiosk --incognito http://some.web.

Done.


Slow Wifi, Problem Solved- Ubuntu 10.04, 10.10

1. The Debian Avahi (nss-mdns) Bug
There is a known bug doing the rounds in Debian based distros, this includes Ubuntu.
The problem is in the nsswitch.conf file where wins mdns causes a slowdown of DNS resolution on some machines.
https://bugs.launchpad.net/ubuntu/+s…ahi/+bug/94940
A simple workaround for this problem is to remove mdns4_minimal entry from the nsswitch.conf file, or change mdns4_minimal to just mdns4 (whichever works best for you):
Edit this file- /etc/nsswitch.conf
Scroll down to the entry which says:
hosts: files dns wins mdns4_minimal
and delete the mdns4_minimal entry. (I removed wins as well), s it looks like this:
hosts: files dns
2. Check your DNS in resolv.conf
You should only have two entries (usually) which are your Internet Service Provider’s DNS servers.
Check and/or edit your dns servers:
gksudo scite /etc/resolv.conf
It should look something like this:
search my.isp.com
nameserver 4.4.2.2
nameserver 4.4.2.4
You may have an extra IP address there, possibly your router (192.168.1.1), and if you haven’t got dns servers configured in your router config, this may cause a problem/slowdown as well. EG:
search my.isp.com
nameserver 192.168.1.1
nameserver 4.4.2.2
nameserver 4.4.2.4
Just remove the first one and leave the two ISP DNS server IP’s.

original link http://ubuntuforums.org/showthread.php?t=1487039&page=2