Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The Raspberry PiIntroduction | ||||||||
Line: 83 to 83 | ||||||||
You can get rid of it by defining the environment variable NO_AT_BRIDGE: export NO_AT_BRIDGE=1 which I do in the system-wide bash initialization script /etc/bash.bashrc. All subsequent bash shells will have this environment variable set up and the problem will be gone. | ||||||||
Added: | ||||||||
> > | We had some difficulties to access the Pis on the network because the IP addresses kept changing. Finally we opted for fixed IP adresses which can be configured in /etc/dhcpcd.conf as shown below:
![]() | |||||||
The hardware access libraries wiringPi and pigpio we will install from source code using git (see below).
Installing wiringPi | ||||||||
Line: 103 to 107 | ||||||||
When you enable VNC in raspi-config the tightvncserver will be installed and run on your system. I use the Remmina Remote Desktop Client which seems to be the standard remote desktop client on PC Ubuntu. However, when running it on the Raspberry Pi server I get an authorization failure which I can get rid of by modifying the authorization method on tightvcnserver from Unix authorization to VNC authorization. You define a password, which you also used on the client (PC) side. | ||||||||
Added: | ||||||||
> > | When running VNC without a physical screen attached to the Raspberry Pi you may experience that the desktop window on the PC become very small. This can be fixed by edition the /boot/config.txt on Raspbian. You must set the bramebuffer width and height as shown below.
![]() | |||||||
-- ![]() Comments | ||||||||
Line: 111 to 119 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The Raspberry PiIntroduction | ||||||||
Line: 71 to 71 | ||||||||
After that we will have to sync the apt packages to the repository which we do with sudo apt update and upgrade all packages to the latest version: sudo apt upgrade. | ||||||||
Changed: | ||||||||
< < | Now you may install additional packages like emacs or other commands you may be missing using apt install package name. The hardware access libraries wiringPi and pigpio we will install from source code using git (see below). | |||||||
> > | Now you may install additional packages like emacs or other commands you may be missing using apt install package name.
When running emacs I get this nasty warning:
![]() | |||||||
Installing wiringPiFirst I create a new group named ucc and a new user uccstaff which I make a member of this new group: | ||||||||
Line: 98 to 106 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The Raspberry PiIntroduction | ||||||||
Line: 67 to 67 | ||||||||
| ||||||||
Changed: | ||||||||
< < | Go through all the options in raspi-config, make sure you understand what they mean and set them up to your liking. | |||||||
> > | Go through all the options in raspi-config, make sure you understand what they mean and set them up to your liking. One important thing to do is setting up the correct keyboard layout. This must be done in the localization options in raspi-config. If you do it in Preferences->Mouse and Keyboard Settings, then it will only be active when logged in but not on the logging screen. This may cause you problems when trying to log in because your password will not be recognized due to the wrong keyboard layout. | |||||||
Changed: | ||||||||
< < | After that we will have to sync the apt packages to the repository which we do with sudo apt update. After that we upgrade the system to the latest version of all packages: sudo apt upgrade. | |||||||
> > | After that we will have to sync the apt packages to the repository which we do with sudo apt update and upgrade all packages to the latest version: sudo apt upgrade. | |||||||
Changed: | ||||||||
< < | Now you may install additional packages like pigpio, wiringpi, emacs ... using apt install package name | |||||||
> > | Now you may install additional packages like emacs or other commands you may be missing using apt install package name. The hardware access libraries wiringPi and pigpio we will install from source code using git (see below). Installing wiringPiFirst I create a new group named ucc and a new user uccstaff which I make a member of this new group: addgroup ucc adduser uccstaff usermod -a -G ucc uccstaff Then reboot the machine to activate these changes. Create the directory /opt/ucc/src belonging to uccstaff and group ucc. This is where the source files of wiringPi and pigpio will be stored. Then we download the wiringPi source code![]() | |||||||
The remote desktop | ||||||||
Changed: | ||||||||
< < | When you enable VNC in raspi-config the tightvncserver will be installed and run on your system. I use the Remmina Remote Desktop Client which seems to be the standard remote desktop client on PC Ubuntu. However, when running it on the Raspberry Pi server I get an authorization failure which I can get rid of by modifying the authorization method on tightvcnserver fro Unix authorization to VNC authorization. You define a password, which you also use on the client (PC) side. | |||||||
> > | When you enable VNC in raspi-config the tightvncserver will be installed and run on your system. I use the Remmina Remote Desktop Client which seems to be the standard remote desktop client on PC Ubuntu. However, when running it on the Raspberry Pi server I get an authorization failure which I can get rid of by modifying the authorization method on tightvcnserver from Unix authorization to VNC authorization. You define a password, which you also used on the client (PC) side. | |||||||
-- ![]() |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The Raspberry PiIntroduction | ||||||||
Line: 69 to 69 | ||||||||
| ||||||||
Added: | ||||||||
> > | After that we will have to sync the apt packages to the repository which we do with sudo apt update. After that we upgrade the system to the latest version of all packages: sudo apt upgrade. | |||||||
Now you may install additional packages like pigpio, wiringpi, emacs ... using apt install package name
The remote desktop |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The Raspberry PiIntroduction | ||||||||
Line: 22 to 22 | ||||||||
Normally the OS is installed on a micro SD card and boot from there. Version 3 of the board however also allows to boot from a USB stick, which has easier access.
Bringing up Raspbian | ||||||||
Changed: | ||||||||
< < | The operating system can be downloaded here ![]() | |||||||
> > | The operating system can be downloaded here ![]() ![]() | |||||||
Changed: | ||||||||
< < | Once you have prepared the card, downloaded and unpacked the OS you can copy it to the SD card or USB stick. Make sure to find out which device corresponds to your SD card (/dev/mmcblk0p1 ?) or you USB stick (/dev/sdX where X is your device letter. Make damned sure you know the device letter without doubt because otherwise you may overwrite your hard disk and your PC will not boot any more!) | |||||||
> > | Once you have prepared the card, downloaded and unpacked the OS you can copy it to the SD card or USB stick. Make sure to find out which device corresponds to your SD card (/dev/mmcblk0p1 ?) or you USB stick (/dev/sdX where X is your device letter). Make damned sure you know the device letter without doubt because otherwise you may overwrite your hard disk and your PC will not boot any more!) One way to find out the device letter is this: Before inserting the SD card into yout PC SD card slot, type ls /dev/sd*, which will give you the names of all hard disk partitions installed on your system. Then insert the SD card into the reader and redo the same command. The disk you have added is the one you want to use. | |||||||
Copy the OS image to the SD card or USB stick with: | ||||||||
Changed: | ||||||||
< < | dd bs=4M if=2017-07-05-raspbian-jessie.img of=/dev/sdX status=progress conv=fsync | |||||||
> > | sudo dd bs=4M if=2017-07-05-raspbian-jessie.img of=/dev/sdX status=progress conv=fsync
This may take a while. Eject the SD card (right click on its icon in the task bar and select eject, then re-insert it and make sure you can see 2 partitions. The first one is named "boot" and you may want to rename the second one to "root" with the command:
sudo tune2fs -L root /dev/sdX2 (replace the X with your disk letter again).
Once done, eject the SD card again and install the device in your Raspberry Pi and boot.
You can also unpack the Raspbian file system by loop mounting it onto your Linux system. | |||||||
Changed: | ||||||||
< < | This may take a while. Once done, install the device in your Raspberry Pi and boot. | |||||||
> > | Before doing this, create 2 directories: /media/loop1 and /media/loop2. | |||||||
Changed: | ||||||||
< < | You can also unpack the Raspbian file system by loop mounting it onto your Linux system. Since there are 2 partitions in the image in addition to the boot loader, you must specify the offset of each file system (boot and root) when mounting them. You can find out these offsets with fdisk -l imageName.img. | |||||||
> > | Since there are 2 partitions in the image in addition to the boot loader, you must specify the offset of each file system (boot and root) when mounting them. You can find out these offsets with fdisk -l imageName.img. | |||||||
Changed: | ||||||||
< < | Multiplying the start sector offset by 512 (size of a sector) gives you the offset needed for the mount command. | |||||||
> > | Multiplying the start sector offset by 512 (size of a sector) gives you the offset needed for the mount command. In case of the boot partition this is 8192*512 = 4194304. The W95 FAT32 file system is the boot partition and the Linux file system is the root partition. | |||||||
![]() | ||||||||
Changed: | ||||||||
< < | You can then copy the contents of /media/loop into a directory you call boot and do the same thing for the root file system. | |||||||
> > | You can then copy the contents of /media/loop into a directory you call boot and do the same thing for the root file system | |||||||
Changed: | ||||||||
< < | For copying I use: | |||||||
> > | For copying you must first cd to /media/loop1, then I use: | |||||||
Changed: | ||||||||
< < | tar cvpf - * | (cd /opt/ucc/micros/raspberry/raspbian-stretch-2017-09-07/b(r)oot; tar xvf -) | |||||||
> > | tar cvpf - * | (cd /opt/ucc/micros/raspberry/raspbian-stretch-2017-09-07/b(r)oot; tar xvf -) This rather complex looking tar command does the actual copy, keeping the file permissions and ownership intact. In fact it created a tar archive file which is again un-tared in the destination directory /opt/ucc/micros/raspberry/raspbian-stretch-2017-09-07/boot in case of the boot file system. | |||||||
(use either boot or root).
Setting up the systemOnce Raspbian is up and running you will have a user pi with password raspberry to log in. This user has the UID 1000 and GID 1000. Unfortunately on my PC Ubuntu system these are the UID and GID of user uli, my main user name. This causes trouble when we want to easily log in through ssh or copy files with scp. I therefore modified the UID and GID for user pi to be 1001 to free 1000 for user uli. | ||||||||
Changed: | ||||||||
< < | I created a new user uli, added him to the sudoers list (usermod -a -G sudo uli) such that I can easily become super user. Then I modified the UID and GID or pi and uli as described here.![]() | |||||||
> > | I created a new user uli, added him to the sudoers list (usermod -a -G sudo uli) such that I can easily become super user. Then I modified the UID and GID of pi and uli as described here.![]() | |||||||
Once all this is correctly set up you will have to run raspi-config as super user and enable
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The Raspberry PiIntroduction | ||||||||
Line: 39 to 39 | ||||||||
![]() | ||||||||
Added: | ||||||||
> > | For copying I use: tar cvpf - * | (cd /opt/ucc/micros/raspberry/raspbian-stretch-2017-09-07/b(r)oot; tar xvf -) (use either boot or root). | |||||||
Setting up the systemOnce Raspbian is up and running you will have a user pi with password raspberry to log in. This user has the UID 1000 and GID 1000. Unfortunately on my PC Ubuntu system these are the UID and GID of user uli, my main user name. This causes trouble when we want to easily log in through ssh or copy files with scp. I therefore modified the UID and GID for user pi to be 1001 to free 1000 for user uli. |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The Raspberry PiIntroduction | ||||||||
Line: 31 to 31 | ||||||||
dd bs=4M if=2017-07-05-raspbian-jessie.img of=/dev/sdX status=progress conv=fsync
This may take a while. Once done, install the device in your Raspberry Pi and boot. | ||||||||
Added: | ||||||||
> > |
You can also unpack the Raspbian file system by loop mounting it onto your Linux system. Since there are 2 partitions in the image in addition to the boot loader, you must specify the offset of each file system (boot and root) when mounting them. You can find out these offsets with fdisk -l imageName.img.
Multiplying the start sector offset by 512 (size of a sector) gives you the offset needed for the mount command.
![]() | |||||||
Setting up the systemOnce Raspbian is up and running you will have a user pi with password raspberry to log in. This user has the UID 1000 and GID 1000. Unfortunately on my PC Ubuntu system these are the UID and GID of user uli, my main user name. This causes trouble when we want to easily log in through ssh or copy files with scp. I therefore modified the UID and GID for user pi to be 1001 to free 1000 for user uli. | ||||||||
Line: 53 to 61 | ||||||||
Comments | ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
The Raspberry PiIntroductionThe Raspberry Pi is a small computer powerful enough to run a full blown operating system like Linux. The 3rd version of this machine features
The Raspberry Pi 3 board Raspberry Pi documentationThe Raspberry Pi has a huge user community making sure that documentation![]() Bringing up RaspbianThe operating system can be downloaded here![]() dd bs=4M if=2017-07-05-raspbian-jessie.img of=/dev/sdX status=progress conv=fsync
This may take a while. Once done, install the device in your Raspberry Pi and boot.
Setting up the systemOnce Raspbian is up and running you will have a user pi with password raspberry to log in. This user has the UID 1000 and GID 1000. Unfortunately on my PC Ubuntu system these are the UID and GID of user uli, my main user name. This causes trouble when we want to easily log in through ssh or copy files with scp. I therefore modified the UID and GID for user pi to be 1001 to free 1000 for user uli. I created a new user uli, added him to the sudoers list (usermod -a -G sudo uli) such that I can easily become super user. Then I modified the UID and GID or pi and uli as described here.![]()
The remote desktopWhen you enable VNC in raspi-config the tightvncserver will be installed and run on your system. I use the Remmina Remote Desktop Client which seems to be the standard remote desktop client on PC Ubuntu. However, when running it on the Raspberry Pi server I get an authorization failure which I can get rid of by modifying the authorization method on tightvcnserver fro Unix authorization to VNC authorization. You define a password, which you also use on the client (PC) side. --![]() Comments |