Sonntag, 21. Oktober 2012

To-Do after install on Raspberry Pi


First check your IP which your Raspberry Pi has got in your network from your DHCP Server or Router.

Angry IP Scanner (or simply ipscan) is an open-source and cross-platform network scanner designed to be fast and simple to use. It scans IP addresses and ports as well as has many other features.



If you found out your IP address connect with SSH to your Raspberry Pi.

with hostname

# ssh pi@raspberry.lan 
or with ip

# ssh pi@yourIPaddress

Standard Login: 
User:pi Password: raspberry

cave@cave:~> ssh pi@raspberrypi.lan
pi@raspberrypi.lan's password:

Linux raspberrypi 3.2.27+ #160 PREEMPT Mon Sep 17 23:18:42 BST 2012 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Type 'startx' to launch a graphical session

Last login: Sun Oct 21 15:03:41 2012 from cave.lan
pi@raspberrypi ~ $ 




make an update for your Operating System.
# sudo apt-get update
# sudo apt-get upgrade


then you can run
# sudo raspi-config


Start the update at first. Then change your settings for following points.
  • change_pass - sets the password for your User "pi"
  • expand_rootfs - to grow the second partition and fill the SD-Card
  • keyboard
  • locales
  • timezone
  • memory split - define the amount of RAM CPU and GPU
  • update - update the raspi-config tool. 
  • overclock - sets 5 different overclock settings. With this tool it should not void your warranty. After your system is running without problems, try out some
After that, make a reboot, and connect again with SSH.

Now your system is updated and ready for use. You have also learned how to use the raspi-config tool.

Samstag, 20. Oktober 2012

Install Raspberry Pi images on SD-Card




The Raspberry Pi is supported from several different Linux distributions.
Here is a list of the most available distributions.



Debian


  • Bodhi Linux  - derived from Raspbian featuring the Enlightenment Desktop. Enlightenment is a lightweight Desktop Environment but also nice looking


  • Occidentalis - derived from Raspbian, Hardware-Hacking friendly. Comes with support for SPI, I2C, PWM, kernel Modules...





Arch

Arch Linux ARM is based on Arch Linux, which aims for simplicity and full control to the end user. Note that this distribution may not be suitable for beginners. The latest version of this image uses the hard-float ABI, and boots to a command prompt in around ten seconds.



HTPC

The Raspberry Pi can also be used as a Home Theater PC. The XBMC developers were provided with early Alpha Boards to port XBMC to the Raspberry Pi Board and support the Videocore IV GPU.
  • OpenELEC - Open Embedded Linux Entertainment Center, Image Download, distribution only developed for XBMC. Fast running 
  •  RaspBMC - Raspbmc is a minimal Linux distribution based on Debian that brings XBMC to your Raspberry Pi.

Installation with a Linux/Unix PC

  • Download and check the MD5SUM/SHA256SUM from the image after downloading.
  • put the SD-Card into your computer
  • check your actually mounted partitions with "ls /dev/sd*"
  • run the command "dmesg | tail" to see on witch path your sd-card is available. 
  • now there should be the new device available. check it with "ls /dev/sd*" 
  • One thing worth noting though is that /path/to/drive should not include any partition number. An example path would be something like: /dev/sdb 
  • sudo dd if=image.img of=/path/to/drive bs=1M  DD is a tool which reads data from if(Input File) and writes it to of(Output File). Please take care to not mix up the if & of parameters!!!

Repartitioning

After writing the image file onto the SD-Card there are two partitions on it. The first partiton /dev/sdb1 is a ~65MB FAT32 partition with the bootloader and ELF and config.txt files, etc ... . The second partition is mostly a ext partition with the root filesystem. But this partition is not as big as the SD-Card size. In Raspbian there is the Raspi-config tool, which offers a possibility to resize and grow the partition to use the whole SD-Card.

There are several partitioning tools available. But i mostly use the Program Gparted.
For this tool are 2 specialised LIVE Distros available.
With these tools it is easy to repartition the SD-Card, and grow and resize the second partition.




Freitag, 28. September 2012

unbrick WR703n

This is copied directly from Here http://forums.openpilot.org/blog/52-fertitos-blog/. All due honor goes directly to the creators. 

Unbrick wr703n wifi router

http://forums.openpilot.org/blog/52/entry-92-unbrick-wr703n-wifi-router/

It worked form me perfectly with a CP210x USB TTL serial bridge, little soldering problems, and some initial tinkerings with the TFTP server.

It is copied because i don't want to loose this important information if the blog goes maybe offline.



----------------- QUOTE BEGIN -----------------

Hello,
if like myself you push the thing a little too far, you should find this usefull ;)

If nothing is responding anymore on your router :

locate the GND, TX and RX on the board :
Posted Image

solder some wire on it, this is very difficult, because it is really small and the solder doesn't stick well on it. Once it is done, glue everything and let some easy access wire, that could be usefull after.

Plug a 3.3V ttl serial adapter (pl2303, ftdi, ...) on the wire and open a serial terminal (minicom, realterm, docklight, ...) @ 115200/8/N/1/XON-XOFF.

power on the wr703n and quiclky send "tpl" followed by enter to the terminal, this will make the wr703n enter in rescue U-boot hornet.

install a small tftp server on your computer (ex: http://tftpd32.jounin.net/) and plug an ethernet cable between your computer and the wr703n.
Configure the IP adress of your computer to 192.168.1.100 and put the file
openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
on the tftp server.

On the serial terminal enter the following lines :

hornet> tftpboot 0x81000000 openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
hornet> erase 0x9f020000 +0x3c0000
hornet> cp.b 0x81000000 0x9f020000 0x3c0000
hornet> bootm 9f020000

wait until it has uploaded and another extra couple of second before reset.

unplug the power, wait a bit, replug, the system should be freshly working...

;)

----------------- QUOTE END -----------------


Montag, 24. September 2012

Cron Tutorials



http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/

http://martybugs.net/wireless/openwrt/cron.cgi

Freitag, 10. August 2012

openWRT Bridge with Relayd (Pseudobridge)


Recipe for Bridging with Atheros Chipsets


Works for TP-Link TL-WR703n as an example.

based on this two links
http://trac.gateworks.com/wiki/relayd
http://wiki.openwrt.org/doc/recipes/relayclient
https://forum.openwrt.org/viewtopic.php?pid=173467#p173467


Connect your Router with your WAN-Router Device (modem, switch, ... )
root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install relayd

root@OpenWrt:~# opkg install luci-proto-relay
root@OpenWrt:~# opkg install wpad

root@OpenWrt:~# /etc/init.d/relayd enable

set ip Address of the LAN to something different
root@OpenWrt:/etc/config vi network
config interface lan
        option ifname   eth0
        option type     bridge
        option proto    static
        option ipaddr   10.0.1.1 
        option netmask  255.255.255.0

reboot or restart network.
root@OpenWrt:~# /etc/init.d/network restart

Set your IP Address of your PC to 10.0.1.2
Connect your Router with your PC.
disable any DHCP.

Connect to Luci with your browser to 10.0.1.1


Go to network, wifi make a scan
join your wifi,

make all your settings for the Wifi device, at this part a new interface is created

Go to Network->Interfaces
Edit the new created interface (WWAN) for example

Make a static or dhcp adress here.
disable any DHCP.

Create a new Interface "stabridge" in the Interface section.
use the "relay bridge" protocol

Relay between networks WWAN and LAN.

check
lan/wwan is set to IP address in a different net
interface stabridge is set to relay between lan/eth0 and wwan/wlan0
wlan0/wwan is interface is assigned

change Firewall rules



Zone Forwarding, set to Accept


DONE




Tightvncserver keyboard mismapped/scram




http://ubuntuforums.org/showpost.php?p=7296323&postcount=7

https://wiki.archlinux.org/index.php/TightVNC

http://markus.revti.com/2009/11/ubuntu-9-04-keyboard-mapping-problem-on-tight-vnc/

http://www.tips5.com/how-to-fix-keyboard-mapping-issue-of-gnome-vnc-in-ubuntu

Montag, 6. August 2012

mumuDVB on openWRT and FSG-3

Work in process

http://ocsovszki-dorian.blogspot.co.at/2011/10/tp-link-wr1043nd-openwrt-dvb-t-with.html
https://forum.openwrt.org/viewtopic.php?pid=144920


http://wiki.openwrt.org/doc/howto/usb.video#applications

Howto for NSLU2
http://mumudvb.braice.net/mumudrupal/node/36
http://wiki.openwrt.org/doc/devel/packages

WL500gp with DVB-T stick
http://wl500g.info/showthread.php?24049-DVB-T-Streaming-mit-wl500gp

http://masu.6f.sk/index.php/Nsa310_dvbt

http://www.csquad.org/tag/mumudvb/ <-- need google translator

https://forum.openwrt.org/viewtopic.php?id=12357

 root@fsg3:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 048d:9135 Integrated Technology Express, Inc. Zolid Mini DVB-T Stick


[  820.358795] usb 1-5: new high-speed USB device number 4 using ehci_hcd
r


Bus 002 Device 005: ID ffc0:0040
Bus 001 Device 004: ID 1bcf:2881 Sunplus Innovation Technology Inc.
Bus 002 Device 004: ID 8086:0189 Intel Corp.
Bus 003 Device 004: ID 048d:9135 Integrated Technology Express, Inc. Zolid Mini DVB-T Stick



[13532.230198] usb 3-1: new high-speed USB device number 5 using xhci_hcd
[13532.250902] usb 3-1: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[13532.250913] usb 3-1: ep 0x2 - rounding interval to 32768 microframes, ep desc says 0 microframes
[13532.250921] usb 3-1: ep 0x84 - rounding interval to 32768 microframes, ep desc says 0 microframes
[13532.250928] usb 3-1: ep 0x85 - rounding interval to 32768 microframes, ep desc says 0 microframes
[13532.252395] it913x: Chip Version=02 Chip Type=9135
[13532.253837] it913x: Dual mode=0 Remote=5 Tuner Type=6b
[13532.254874] dvb-usb: found a 'ITE 9135 Generic' in cold state, will try to load a firmware
[13532.258261] dvb-usb: did not find the firmware file. (dvb-usb-it9137-01.fw) Please see linux/Documentation/dvb/
for more details on firmware-problems. (-2)
[13532.258271] it913x: DEV it913x Error




http://linuxtv.org/wiki/index.php?title=ITE_IT9135&oldid=30816












T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=048d ProdID=9135 Rev= 2.00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0m