Raspberry

> Fjosegr

Cron and Crontab usage and examples. Cron Cron is a daemon that executes scheduled commands.

Cron is started automatically from /etc/init.d on entering multi-user runlevels. Cron searches its spool area (/var/spool/cron/crontabs) for crontab files (which are named after accounts in /etc/passwd); crontabs found are loaded into memory. Note that crontabs in this directory should not be accessed directly - the crontab command should be used to access and update them. Cron also reads /etc/crontab, which is in a slightly different format. Cron then wakes up every minute, examining all stored crontabs, checking each command to see if it should be run in the current minute.

Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on /etc/crontab) has changed, and if it has, cron will then examine the modtime on all crontabs and reload those which have changed. Only jobs that run at a particular time (not specified as @hourly, nor with '*' in the hour or minute specifier) are affected.
Manual Page for vncserver(1)
Vncserver - a wrapper to launch an X server for VNC. vncserver [:display] [-geometry widthxheight] [-depth depth] [-pixelformat rgbNNN|bgrNNN] [-name desktop-name] [Xvnc-options...]

Networking - wifi setup for multiple networks. I recently stumbled across a console application that sorts all the wireless configuration hell out.

You can also use this tool to configure the LAN interface. sudo apt-get install wicd-curses It will install quite a few other packages but ir uns its own daemon in the background. This manages the networks and makes sure you connect to the ones you want. Run it with sudo wicd-curses If you get a message saying no networks detected press P (must be capital so use [SHIFT]p) and type in wlan0 in the wireless interface field and press F10 to save.
Raspberry Pi WiFi configuration. Configuring WPA2 using wpa_supplicant on the Raspberry Pi. To use WPA2 pre-shared key on the Raspberry Pi, you will first need to add a network configuration to “/etc/wpa_supplicant/wpa_supplicant.conf”.

Note the lack of space in “network={“. ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="Your SSID Here" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="YourPresharedKeyHere" } After you have modified wpa_supplicant.conf, you will need to change the “wlan0″ section of “/etc/network/interfaces”.
Raspberry Pi and the Serial Port. Raspberry Pi and the Serial Port By default the Raspberry Pi’s serial port is configured to be used for console input/output.

Whilst this is useful if you want to login using the serial port, it means you can't use the Serial Port in your programs. To be able to use the serial port to connect and talk to other devices (e.g. Arduino), the serial port console login needs to be disabled. Needless to say you will need some other way to login to the Raspberry Pi, and we suggest doing this over the network using an SSH connection. Disable Serial Port Login To enable the serial port for your own use you need to disable login on the port. The first and main one is /etc/inittab This file has the command to enable the login prompt and this needs to be disabled.

Getting Started With Raspberry Pi. Servidor casero con Raspberry Pi: DNS local con actualizaciones DHCP. Bytes y formas de sacarle partido. Raspberry Pi Blog: Turn Raspberry Pi into a wireless access point. In this post I will demonstrate how to transform the Raspberry Pi into a Wireless Access Point.

The majority of this post accompanies what is portrayed here yet I have included a couple more steps. The process may look a little bit lengthy but it can be finished under 10 minutes. Each time you need to alter or make new record, case in point -[ /etc/udhcpd.conf ] you can utilize "sudo nano /etc/udhcpd.conf". 1. The very first thing to do is to check if the dongle is being detected.Fire up the terminal and type :-lsusb If any adapter is detected you should get a message like this:-Bus 001 Device 005: ID 07d1:3c09 D-Link System DWA-140 RangeBooster N Adapter(rev.B1) [Ralink RT2870] 2.Now you'll need to install the "iw" tool to check which modes are supported by your wireless dongle.

Raspberry Pi Blog: Turn Raspberry Pi into a wireless access point. Interfacing with a Wiimote - Physical Computing with Raspberry Pi. Difficulty: intermediate This tutorial will show you how to connect a Wiimote to the Pi over Bluetooth.

You will then be able to read input from it, including the state of the buttons and accelerometer and send it output, e.g. changing the LED state and playing with rumble. It is recommended to use one of our SD cards or images, if you are not then you will need: python-cwiid and to set your Bluetooth in discoverable mode with sudo hciconfig hci0 piscan. Log into your Pi and start a Python console (or ipython if you want tab completion and other extra features). python To be able to use the Wiimote we have to import the necessary library so: import cwiid Connecting a Wiimote and saving it as wm to use later is now as simple as simultaneously pressing 1 + 2 on your Wiimote to make it discoverable then running: wm = cwiid.Wiimote() This is however liable to fail a few times and not estabalish a connection but raise a RuntimeError, we will handle this when writing a fuller script. wm.state.

From gc-linux Our port of the Linux kernel to the Nintendo Wii supports the internal wireless LAN daughter card when booted via BootMii. The following sections describe the necessary steps to configure a wifi connection on Debian-based distributions (like whiite-linux). Preparing the firmware files The Nintendo Wii WLAN card requires a system provided firmware to operate. The team leaded by Francesco Gringoli and Lorenzo Nava from the Universita' degli Studi di Brescia has developed a custom firmware compatible with the Nintendo Wii WLAN card and distributed under the GNU General Public License.