User Tools

Site Tools


Sidebar






newpage

communitycloud:freifunk:openwrt

This is an old revision of the document!


OpenWRT

Linux distribution for embedded devices

Installation

search for your router model in: http://wiki.openwrt.org to find specific instructions

Basic Config

Install LUCI web interface

opkg update
opkg install luci
/etc/init.d/uhttpd enable
/etc/init.d/uhttpd start

reach the webiface at http://router_IP/

Install Bash & setup .bashrc

opkg update
opkg install bash

edit /etc/passwd and replace /bin/ash for /bin/bash in the line starting with root:

echo ". $HOME/.bashrc" > /root/.bash_profile

put your custom .bashrc in /root/.bashrc

SSH publickey authentication

you can do this in the webiface or manually:

copy your key from your desktop to the router's /tmp/ dir:

scp ~/.ssh/id_rsa.pub root@<router IP>:/tmp

log in to the router and move the key:

cat /tmp/id_rsa.pub >> /etc/dropbear/authorized_keys
chmod 0600 authorized_keys

http://wiki.openwrt.org/doc/howto/usb.essentials

communitycloud/freifunk/openwrt.1347073670.txt.gz · Last modified: 2012/09/08 05:07 by tkilla