Difference between revisions of "Raspberry Pi"
Rafahsolis (talk | contribs) |
Rafahsolis (talk | contribs) |
||
| Line 47: | Line 47: | ||
<nowiki>sudo apt-get install wget git-core</nowiki> | <nowiki>sudo apt-get install wget git-core</nowiki> | ||
2. Format an USB with FAT32, and connect it to the Raspberry (First turn off the raspberry)<br /> | 2. Format an USB with FAT32, and connect it to the Raspberry (First turn off the raspberry)<br /> | ||
| − | 3. Set up a mount point for the USB drive.<br /> | + | 3. Set up a mount point for the USB drive. <br /> |
| + | 3.1 Create directory<br /> | ||
| + | 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> | ||
| + | note: /dev/sda1 should correspond to usb drive you want to map, pi = user that will own the drieve | ||
Revision as of 21:26, 25 March 2015
Installing Raspbian
1. Download Raspbian image from here.
2. Format SD card using FAT32.
sudo mkdosfs -F 32 -v /dev/mmcblk0
3. Install squashed file sistem on SD card.
sudo dd bs=4M if="/home/linux/2013-02-09-wheezy-raspbian.img" of=/dev/mmcblk0
Raspbian default username & password
By default the username and password are:
Username: pi
Passowrd:raspberry
WiFi setup
1. Scan wifi networks available:
sudo iwlist wlan0 scan
2. Write down the ESSID (wifi network name) and IE (authentication used) 3. Edit /etc/wpa_supplicant/wpa_supplicant.conf, add the following at the bottom of the file.
network={
ssid="The_ESSID_from_earlier"
psk="Your_wifi_password"
}
4. If after a few seconds the Raspberry WiFi isn't connected:
sudo ifdown wlan0 sudo ifup wlan0
Domain name setup
To change the domain server:
Edit /etc/hosts
Edit /etc/hostname
Commit changes by runing:
sudo /etc/init.d/hostname.sh
ssh rsa key setup
1. If you don't have an rsa key generate one by runing:
ssh-keygen -t rsa -C user@domain
2. Upload the .pub rsa key to the raspberry
3. Add the .pub key to ~/.ssh/authorized_keys
cat rsa_key.pub >> ~/.ssh/authorized_keys
Git server
1. Install Git:
sudo apt-get install wget git-core
2. Format an USB with FAT32, and connect it to the Raspberry (First turn off the raspberry)
3. Set up a mount point for the USB drive.
3.1 Create directory
3.2 Edit /etc/fstab, add line:
/dev/sda1 /home/pi/usbdrv vfat uid=pi,gid=pi,umask=0022,sync,auto,nosuid,rw,nouser 0 0
note: /dev/sda1 should correspond to usb drive you want to map, pi = user that will own the drieve