In this article we describe Debian 8.5 installation we’ll use to compile Openelec for Orange Pi PC, Enigma2 images and other operations for embedded devices.
Download AMD64 Debian 8.5 iso
Proceed with the operating system installation on your system. It is recommended to use a virtual machine like VirtualBox. Use at least 4 GB of ram and 50 GB of hard disk.
Using VirtualBox it is possible the virtual disk creation with dynamic space allocation. After the operating system installation log on into the system with the user created during the installation; we used the “sviluppo” user id. It is possible to log on to the linux system using the graphical interface or through ssh to the IP address of the Debian system.
Add to sudo group the user created in the Debian installation; open a shell command window and execute
1 |
id |
In our case we have the following output
1 2 |
sviluppo@debian8:~$ id uid=1000(sviluppo) gid=1000(sviluppo) groups=1000(sviluppo),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),108(netdev),115(bluetooth),118(lpadmin),119(scanner) |
sviluppo user doesn’t belong to sudo group. Execute the command
1 |
su - |
Enter the root password when required and execute
1 |
root@debian8:~# adduser user sudo |
In our example
1 |
root@debian8:~# adduser sviluppo sudo |
Reboot the system
1 |
root@debian8:~# reboot |
At the reboot log on into Debian and proceed to add the packages repositories, if not already present. Go to the /etc/apt folder
1 |
cd /etc/apt |
Backup the original file
1 |
sudo cp sources.list sources.list.back |
Edit the file using for example the vi editor
1 |
sudo vi sources.list |
It is possible to comment out the lines positioning at the beginning of the line, press i to go in editing mode and add the # character. Pressing the ESC key we go into reading mode and it is possible to move in the file using the arrow keys. In case of errors in editing mode it is possible to avoid the last change using the key ESC+u.
Comment out the lines
1 2 |
#deb http://security.debian.org/ jessie/updates main contrib #deb-src http://security.debian.org/ jessie/updates main contrib |
Add the following lines
1 2 3 4 5 6 7 8 |
deb http://httpredir.debian.org/debian jessie main contrib non-free deb-src http://httpredir.debian.org/debian jessie main contrib non-free deb http://httpredir.debian.org/debian jessie-updates main contrib non-free deb-src http://httpredir.debian.org/debian jessie-updates main contrib non-free deb http://security.debian.org/ jessie/updates main contrib non-free deb-src http://security.debian.org/ jessie/updates main contrib non-free |
To add the lines press o keys to go into writing mode with an empty new line; with copy and paste we can add all the lines or proceed manually for each of them.
To save the file and quit press ESC+:wq.
It is possible to use one of the text editors available in Desktop Envinroment on which we logged into to edit and save the file. For example to use pluma editor open a shell command windows and execute
1 2 |
xhost + sudo pluma |
From pluma open the file /etc/apt/sources.list, make the changes described above and save the file.
Update the repository lists and the packages
1 2 |
sudo apt-get update sudo apt-get upgrade |
Install the development packages
1 |
sudo apt-get install dpkg-dev |
Install an ftp server to use for files transfer
1 |
sudo apt-get install vsftpd |
After the installation open the file /etc/vsftpd.conf and uncomment the following parameter
1 |
#write_enable=YES |
Open the file with vi or pluma as superuser
1 |
sudo vi /etc/vsftpd.conf |
With vi editor search the string with the command
1 |
/write_enable |
Delete the # character positioning the cursor on it and pressing the x key.
1 |
write_enable=YES |
Save and quit with ESC+:wq.
Restart the ftp server using the command
1 |
sudo service vsftpd restart |
We have now the envinronment to compile, modify, develop our embedded systems.