Posts mit dem Label linux werden angezeigt. Alle Posts anzeigen
Posts mit dem Label linux werden angezeigt. Alle Posts anzeigen

Samstag, 27. Oktober 2012

Installing Bodhi Linux on Raspberry Pi

Bodhi Linux is a Linux Distribution leveraging the fast, customizable, and beautiful Enlightenment Desktop. Enlightenment coupled with a minimal set of utilities such as a browser, text editor, and package management tools form the solid foundation of Bodhi Linux.

This should also work for other distributions like Raspbian, Occidentalis, etc ... which are available as SD-Card image.

First download the Bodhi Linux ARMHF Image from Bodhi Linux


The files are hosted on Sourceforge and are available there: http://sourceforge.net/projects/bodhilinux/files/ARMHF/Pi/

There are also the md5sums and SHA1 checksums available to check your downloaded files, if the download worked correctly.
On any Linux machine there should be the md5sum command available.
For windows user are also programs like winmd5sum available to do this check. If this check was successful, can extract the *.tar.gz file.

Writing the image to Sd-Card 

For windows user there is the tool win32-image-writer available. You can download it from https://launchpad.net/win32-image-writer/+download. Do not try to drag and drop or otherwise copy over the image without using dd or Win32DiskImager – it won’t work. If this explanation doesn' t helped you, there is a beginners guide on http://elinux.org/RPi_Easy_SD_Card_Setup .

For the Linux/*nix Users:
Check your devices directory with
$ ls /dev/sd*
Insert your SD-Card to your sd-card slot on your computer.
Then check again your devices directory, the new device (your SD-card) should now be listed as a new entry in this directory. Your first Harddisk is normally /dev/sda, and /dev/sda1, /dev/sda2 for your partitions.
Your SD-Card should be something like /dev/sdb.

We can easily use the old unix tool dd.

The command needs the parameters InputFile and OutputFile and BlockSize.

dd if=image.img of=/path/to/drive bs=1M

Take care to don't mismatch if and of, or take the wrong device-path.

Then unmount the sd-card and insert it to your Raspberry Pi.

Your Raspberry Pi should boot now with Bodhi.

Check my other Tutoria for First Steps after Install


Sonntag, 21. Oktober 2012

static IP address on a Raspberry Pi and Debian GNU/Linux

Connect to your Raspberry Pi with SSH

If you don't know your IP address, you can either use the hostname. The ipscanner from my former post should help you finding out the IP address from your Raspberry Pi.

# ssh pi@yourIPaddress
pi@raspberrypi.lan's password: 

pi@raspberrypi ~ $ cd /etc/network
pi@raspberrypi /etc/network $ sudo vi interfaces




The output should look similar like this.

auto lo

iface lo inet loopback
iface eth0 inet dhcp


auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
        wpa-ssid "my-network-ssid"
        wpa-psk "my-wifi-password"




now change the line"iface lo inet loopback" to your demands:

iface eth0 inet static
# your IP Address 
        address 10.0.0.220
your netmask
        netmask 255.255.255.0
 # your router/modem used as your gateway
        gateway 10.0.0.138


Lines starting with `#' are ignored. Note that end-of-line comments are NOT supported, comments must be on a line of their own.

Then make a reboot:

pi@raspberrypi ~ $ sudo reboot

Your Pi should reboot now with the new ip address.


There is a good manual available for the interface.

pi@raspberrypi ~ $ man interfaces


The static Method
       This method may be used to define Ethernet interfaces with statically allocated IPv4 addresses.
 

Options  
  • address address Address (dotted quad/netmask) required
  • netmask mask Netmask (dotted quad or CIDR)  
  • broadcast broadcast_address Broadcast address (dotted quad, + or -). Default value: "+"
  • gateway address - Default gateway (dotted quad)






Montag, 24. September 2012

Cron Tutorials



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

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

Dienstag, 31. Juli 2012

openWRT Performance

http://wiki.openwrt.org/doc/howto/performance

http://wiki.openwrt.org/inbox/benchmark.openssl

http://wiki.openwrt.org/doc/howto/bwmon
http://it.toolbox.com/blogs/database-soup/testing-disk-speed-the-dd-test-31069

SWAP wih openWRT

http://wiki.openwrt.org/doc/uci/fstab

:!: The package block-mount is required:
  1. Install
    opkg update
    opkg install block-mount
  2. enable (make it start automatically on every boot up)
    /etc/init.d/fstab enable
  3. and start (right now)
    /etc/init.d/fstab start
Whenever you change your configuration, restart this to make it take effect:
/etc/init.d/fstab restart
 
 
 
usefull commands
 
df 
free 
mounts



package swap-utils
 mkswap, swapon and swapoff.
 
cat /proc/meminfo  

http://www.linuxhotbox.com/adminguide/lnag_drives.html#swap
 
 
www.thegeekstuff.com/2010/08/how-to-add-swap-space/ 
 
 
 
http://linux.about.com/library/cmd/blcmdl8_swapon.htm
 
 

FSTAB
http://wiki.openwrt.org/doc/uci/fstab#notes

Howto Swapfile
https://forum.openwrt.org/viewtopic.php?id=12419
 
 
 



Montag, 30. Juli 2012

openWRT Samba share

How to Share a Directory to Win/Linux Environment. 

http://tldp.org/HOWTO/SMB-HOWTO-8.html


Force user = root
force directory mode = 0777
force create mode = 0777
force group = root
# deny  user = root



http://wiki.openwrt.org/doc/hardware/performance#real-world.sambantfs.performance
https://forum.openwrt.org/viewtopic.php?id=27750

https://forum.openwrt.org/viewtopic.php?pid=127938#p127938


http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/speed.html
https://dev.openwrt.org/ticket/9992

https://calomel.org/samba_optimize.html


http://linux.about.com/od/commands/l/blcmdl.htm
http://linux.about.com/od/commands/l/blcmd.htm
http://linux.about.com/od/commands/l/blcmdl5_fstab.htm
http://linux.about.com/od/commands/l/blcmdl8_mount.htm
http://linux.about.com/library/cmd/blcmdl8_mkswap.htm
http://linux.about.com/

http://h-wrt.com/de/doc/hd