Raspberry Pi

From Holyheads Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with ".. under construction ...")
 
Line 1: Line 1:
.. under construction ...
+
=Cockbook=
 +
 
 +
My collection of hints, tips and tricks
 +
 
 +
==Mounting USB drives==
 +
 
 +
* [http://selfprogramming.bplaced.net/index.php/2012/10/23/automount-usb-drives-in-raspbian/| Automount USB-Drives in Raspbian]
 +
 
 +
* Slow USB drive performance?
 +
** Mount with option ''''noatime'''' or ''''relatime''''
 +
** Mount ''without'' option sync (e.g. keep default async)
 +
** Auto mount done by OpenElec:
 +
 
 +
/dev/sda1 on /var/media/Holyhead type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
 +
 
 +
==Misc==
 +
 
 +
* [http://thestuffsido.blogspot.de/2013/05/fixing-raspberry-pi-hotplugging.html| Why does my Pi restart when hotplugging a USB drive?]
 +
 
 +
==Samba server / NAS==
 +
 
 +
* How to install?
 +
** [http://jankarres.de/2013/11/raspberry-pi-samba-server-installieren/| Raspberry Pi: Samba Server installieren] (German)
 +
** [http://www.welzels.de/blog/projekte/raspberry-pi/low-budget-nas-mit-einem-raspberry-pi/ Low Budget NAS mit einem Raspberry PI] (German)
 +
 
 +
* Slow performance?
 +
** see 'Slow USB drives' above
 +
** use Raspbian, etc without GUI to get as much CPU power for file-transfer as possible (OpenELEC or RaspBMC constantly result in about 10-20% CPU load when idle, use ''top'' to check!)
 +
** Try adhusting 'socket options' in (see /etc/samba/smb.conf). I did not yet try this, some websites I found recommend to the disable the 'socket options', some recommend to use the following line:
 +
 
 +
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
 +
 
 +
=Links=
 +
 
 +
* [http://www.raspberrypi.org/downloads|New Out Of Box Software (Recommended)]
 +
 
 +
Blogs, forums, etc:
 +
 
 +
* [http://forum.stmlabs.com/forumdisplay.php?fid=6| Stm Labs Forum / Raspbmc]
 +
* [http://www.welzels.de/blog/projekte/raspberry-pi/| Wel!s Blog] (German)
 +
* [http://jankarres.de/category/raspberry-pi/| Raspberry Pi Blog of Jan Karres] (German)
 +
 
 +
* [[wikipedia:Raspberry_Pi| Raspberry Pi in Wikipedia]]
 +
 
 +
=to be continued ...=

Revision as of 19:59, 28 December 2013

Contents

Cockbook

My collection of hints, tips and tricks

Mounting USB drives

  • Slow USB drive performance?
    • Mount with option 'noatime' or 'relatime'
    • Mount without option sync (e.g. keep default async)
    • Auto mount done by OpenElec:
/dev/sda1 on /var/media/Holyhead type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

Misc

Samba server / NAS

  • Slow performance?
    • see 'Slow USB drives' above
    • use Raspbian, etc without GUI to get as much CPU power for file-transfer as possible (OpenELEC or RaspBMC constantly result in about 10-20% CPU load when idle, use top to check!)
    • Try adhusting 'socket options' in (see /etc/samba/smb.conf). I did not yet try this, some websites I found recommend to the disable the 'socket options', some recommend to use the following line:
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536

Links

Blogs, forums, etc:

to be continued ...

Personal tools