Posted on

Raspberry Pi – Some useful stuff

raspberry-case-1300

Default Login for Raspberry Pi

The default login is:
User: pi
Password: raspberry

Config Menu of Raspberry Pi

sudo raspi-config

Making Screenshots

Sometimes it is pretty useful to make a couple of screenshots from the system. One of the easiest tools over here is scrot.

Install scrot on your Raspberry:

sudo apt-get install scrot

Make a directory for your screenshots and go into it:

mkdir screenshots
cd screenshots

And now just make a screenshot

scrot
scrot -cd 10 myname.png

The second one creates a screenshot with a countdown of the delay of 10 seconds and stores it with the filename myname.png.

Static IP Address for the Wireless Interface

First we add the iface homewireless part in the file /etc/network/interfaces

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface homewireless inet static
address 192.168.2.155
netmask 255.255.255.0
gateway 192.168.2.1

iface default inet dhcp

This configuration defines the static IP address for the interface named “homewireless”. Now we need to assign this name to our wireless interface. The configuration for our wireless interface can be found at /etc/wpa_supplicant/wpa_supplicant.conf. There we add the one line id_str="homewireless" to assign the name we used before to the interface.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="ciscoasa"
        psk="a29bd4a9"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        auth_alg=OPEN
        id_str="homewireless"
}

Now we can restart the network services with sudo /etc/init.d/networking restart and use sudo ifup wlan0 to make sure that our network is up and running now.