Raspberry Pi

From Holyheads Wiki
(Difference between revisions)
Jump to: navigation, search
m (Links)
Line 1: Line 1:
=Cockbook=
+
==Cockbook==
  
 
My collection of hints, tips and tricks  
 
My collection of hints, tips and tricks  
  
==Mounting USB drives==
+
===Mounting USB drives===
  
 
* [http://selfprogramming.bplaced.net/index.php/2012/10/23/automount-usb-drives-in-raspbian/| Automount USB-Drives in Raspbian]
 
* [http://selfprogramming.bplaced.net/index.php/2012/10/23/automount-usb-drives-in-raspbian/| Automount USB-Drives in Raspbian]
Line 14: Line 14:
 
  /dev/sda1 on /var/media/Holyhead type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
 
  /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===
 
+
* [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?
 
* How to install?
Line 31: Line 27:
 
  socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
 
  socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
  
=Some links=
+
 
 +
===Misc===
 +
 
 +
* Q: Why does my Pi restart when hotplugging a USB drive?
 +
** [http://thestuffsido.blogspot.de/2013/05/fixing-raspberry-pi-hotplugging.html]
 +
** [http://therandomlab.blogspot.de/2013/01/raspberry-pi-mod-to-avoid-shutdown-on.html]
 +
 
 +
* Q: Does Raspberry support WOL?<br/>
 +
: A: No: the Ethernet chip is connected via USB ([http://www.raspberrypi.org/forum/viewtopic.php?f=53&t=39714])
 +
 
 +
==Some links==
  
 
* [http://www.raspberrypi.org/downloads|New Out Of Box Software (Recommended)]
 
* [http://www.raspberrypi.org/downloads|New Out Of Box Software (Recommended)]
Line 43: Line 49:
 
* [[wikipedia:Raspberry_Pi| Raspberry Pi in Wikipedia]]
 
* [[wikipedia:Raspberry_Pi| Raspberry Pi in Wikipedia]]
  
=to be continued ...=
+
==to be continued ...==

Revision as of 20:07, 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)

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


Misc

  • Q: Why does my Pi restart when hotplugging a USB drive?
  • Q: Does Raspberry support WOL?
A: No: the Ethernet chip is connected via USB ([3])

Some links

Blogs, forums, etc:

to be continued ...

Personal tools