Changes

Jump to navigation Jump to search
400 bytes added ,  21:38, 25 March 2015
Line 51: Line 51:  
3.2 Edit /etc/fstab, add line:
 
3.2 Edit /etc/fstab, add line:
 
  <nowiki>/dev/sda1 /home/pi/usbdrv vfat uid=pi,gid=pi,umask=0022,sync,auto,nosuid,rw,nouser 0 0</nowiki>
 
  <nowiki>/dev/sda1 /home/pi/usbdrv vfat uid=pi,gid=pi,umask=0022,sync,auto,nosuid,rw,nouser 0 0</nowiki>
note: /dev/sda1 should correspond to usb drive you want to map, pi = user that will own the drieve
+
note: /dev/sda1 should correspond to usb drive you want to map, pi = user that will own the drieve<br />
 +
4. reboot Raspberry and check if the usb mounts correctly with lsblk<br />
 +
5. For each repository:<br />
 +
5.1 create a folder and cd into it.<br />
 +
5.2 git init --bare<br />
 +
5.3 add origin to your local git repository. Example:
 +
<nowiki>git remote add pi pi@10.0.1.64:/home/pi/usbdrv/justdiedbot.git</nowiki>
 +
5.4 push your repository into raspberry. Example:
 +
<nowiki>git push pi master</nowiki>

Navigation menu