Champollion would have loved the Arduino for sure
Ctrl-C/Ctrl-V for sudo actions, cursor and Ctrl-C/Ctrl-V inside the nano file editor then Ctrl-X to save the file
Julien
Thanks!
Djoulle,
when I launch:
sudo apt-get install chromium x11-xserver-utils unclutter
there are 3 last lines:
E: Unable to locate package chromium
E: Unable to locate packet x11-xserver-utils
E: Unable to locate packet unclutter
I found this to launch before (Google is our friend)
sudo apt-get update && apt-get upgrade -y
and this time, there was a looooong process running
</latest news>
Then, when I launch sudo nano /etc/xdg/lxsession/LXDE/autostart it opens an empty file!
So I made a "search -name “autostart” and I found one in /home/pi but when I open it it shows plenty of escape code (sorry I can’t make a hard copy). There was a text at the bottom of the editor saying something like “Read 5 lines (Converted from Mac format)”
Note also that it does not understant “startx” command as suggested by MobeyDuck
Thanks
Olivier
You have to use a desktop environnement to run a browser and launch it on boot, the one used here is LXDE :
sudo apt-get install -y lxde xserver-xorg
/etc/xdg/lxsession/LXDE/autostart is the file with the command to execute on LXDE boot :
this part is to disable the screensaver and the monitor power saving mode :
comment # screen saver line
@xset s off
@xset -dpms
@xset s noblank
this line is for launching Chrome in fullscreen (kiosk mode) with some other useful settings for a touchscreen and the Volumio web UI as the default home page :
@chromium --kiosk --incognito --user-data-dir --disable-touch-editing --enable-touch-events volumio.local
Julien
Julien,
I’ll test this this evening and keep you informed. I realize Linux world is maybe not for me
Youve stated that you used:
sudo apt-get update && apt-get upgrade -y
Unfortunately this breaks volumio 1.5 (don’t know for earlier and later versions)
What djoulle posted should work, if you have LXDE installed
Don’t give up this easy! magic doesn’t happen in one day
Just do it step-by-step
Connect your Raspberry Pi and boot volumio
We already know there isn’t a display server so it should be installed
sudo apt-get update
(only updates repository’s doenst break stuff)
sudo apt-get install lxde xserver-xorg
Now LXDE should be installed
Check if it is working (startx)
Make LXDE auto start at bootup
Install a browser and make it start at bootup
See djoulle reply thats probably the easiest way.
For the errors you are getting:
Looks like the repository’s for chromiom are unavailable same go’s for x11-xserver-utils and unclutter.
I dont know whether or not and why x11-server-utils and unclutter would be needed since i dont know what they would do…
But before you can install them using apt-get the repository’s need to be added. Unfortunatly, i dont do this often enough so i completely forgot where to add is and my google skills are failing me
MobeyDuck is right, it’s really easier that it seems
I didn’t try it, but he must be right also about the apt-get upgrade -y breaking Volumio 1.5 (apt-get upgrade -y upgrades a lot of components and Michalangelo the creator of Volumio has made a fantastic work to optimize some components for better sound/perfomance, upgrading them can break some essential things).
Burn a fresh Volumio 1.5 on your SD, login using ssh and here is the full set of commands to install the LXDE Desktop environnement, install Chrome and have it lauched in fullscreen mode on boot on your touchscreen with the Volumio webUI :
sudo apt-get update
sudo apt-get install -y lxde xserver-xorg
sudo reboot
sudo apt-get install chromium x11-xserver-utils unclutter
sudo nano /etc/xdg/lxsession/LXDE/autostart
comment # screen saver line and add these lines :
@xset s off
@xset -dpms
@xset s noblank
@chromium --kiosk --incognito --user-data-dir --disable-touch-editing --enable-touch-events http://volumio.local
sudo reboot
If you’r still booting in the bash mode on your touchscreen (command line mode) :
sudo raspi-config > 3. Enable boot to desktop > “Destok log in as user ‘pi’ at the graphical desktop”
Cheers
Julien
Oh Gosh I screwed up
Ok, I will restart from scratch and follow religiously what you said. And I will try to understand because currently, the light bulb is still off
Many thanks. I’ll keep you informed.
Olivier
Hello,
So, I am stuck at the step:
sudo nano /etc/xdg/lxsession/LXDE/autostart
because, it opens an empty file.
I looked in the /etc/xdg (from the root because by default I am in home/pi) and there are 2 files (user-dirs.conf & user-dirs.defaults) plus one a directory called “autostart” with one file in it (mpd.desktop)
So where can I find it?
Another think: how can I have a french keyboard by default? with numlock ON?
Thanks!!
Olivier
This can best be done using raspi-config for this do:
sudo raspi-config
And go to option 4 Internationalisation Options (i would swear that it should’ve been written with an Z not S but wikipedia says both)
Looks like this folder isn’t created, im following the steps as i type this to see whats up.
Ill probably need this when the official screen is released
---- edit ----
All right, so i just installed lxde, but this didnt work… the partition was full. So I’ve increased the partition size using a complete detour to get gparted working on my notebook.
After re-flashing and re-sizing the partition I’ve given it a 2nd try.
NOTE:
I’m intentionally installing one-by-one, to see if and where it go’s wrong if it go’s wrong.
Turns out it does…
apt-get install lxde
When installing lxde there are some (40) packages that want to be upgraded
The following packages will be upgraded:
alsa-base dmsetup dpkg gcc-4.9-base ifupdown initscripts kmod libacl1
libcrypt-openssl-bignum-perl libcrypt-openssl-rsa-perl libcups2
libcurses-perl libdevmapper1.02.1 libexif12 libgcrypt11 libgcrypt11-dev
libgomp1 libhtml-parser-perl libkmod2 liblocale-gettext-perl
libnet-ssleay-perl liborc-0.4-0 libpulse0 librtmp-dev libselinux1
libsocket6-perl libstdc++6 libterm-readkey-perl libtext-charwidth-perl
libtext-iconv-perl libva1 libvpx1 libx11-6 libxcb1 perl perl-base
perl-modules plymouth sysvinit-utils udev
40 upgraded, 506 newly installed, 1 to remove and 435 not upgraded.
Upgrading these will break stuff I hate it when stuff breaks. SO basicly this stops the volumio part of volumio working…
Yes I’ve also followed the other steps, and it turns out that the initial apt-get install lxde also installs xserver-xorg and x11-xserver-utils, so these can be skipped. Unclutter is used to make the cursor disappear when it isn’t used. For me this isn’t useful, so i skipped it.
Good news is that apt-get install has an option to not install upgrades “–no-upgrade”, so im going to re flash now and try this.
sudo apt-get update
sudo apt-get install lxde --no-upgrade
sudo apt-get install chromium
Oh and the “missing folders” were created during installation, and LXDE did autostart without needing to change a thing. But for your usage you probably want it to auto-login and start chromium.
@djoulle, Any idea if there is a good on screen keyboard?
I’m running out of ideas…
Ive tried to --no-upgrade the upgrade packages, but that doesn’t do any thing…
So I’ve put the packages on hold, disallowing upgrades. Then those darn dependency’s keep nagging they need it all…
like this one
The following packages have unmet dependencies:
kmod : Breaks: alsa-base (<= 1.0.25+3) but 1.0.25+3 is to be installed
Kmod breaks alsa-base so alsa-base needs to be updated…
[spoiler]kmod messes something up and an other one needs to be updated sounds like the wrong way around to me… [/spoiler]
Mabey it is possible to install an older version of LXDE and dependency’s, but i don’t know how to do that and what version does work…
OK, I’m lost in this jungle
Thanks anyway.
Olivier
Don’t give up
Take a look at the result (it’s Volumio with a custom webUI theme on a small 2.8" touchscreen) :
I’ve started the setup from scratch to test it with Volumio 1.5 as I was previously using it with 1.41. But it’s not working, my touchscreen drivers and the Chromium installation are not working with the new “Jessie” debian kernel used on Volumio 1.5.
So here are all the steps for the Volumio 1.41 version :
-
Burn a fresh Volumio 1.41 on your SD boot and login
-
Increase the partition size
sudo fdisk /dev/mmcblk0
Command : d (delete the partition won't delete the content, it's just a partition table update)
Partition number : 3
Command : n
Select : default
Partition number : 3
Partition start : default
Partition end : default
Command : w
sudo reboot
Expand the updated partition
sudo resize2fs /dev/root
Check the updated partition size, you should now use the whole SD capacity.
df -h
-
Install your touch screen drivers
-
Install LXDE desktop environnement
sudo apt-get update
sudo apt-get install -y xserver-xorg xinit xserver-xorg-video-fbdev lxde lxde-common
- Install and configure Chromium browser and LXDE
sudo apt-get install chromium x11-xserver-utils unclutter
sudo nano /etc/xdg/lxsession/LXDE/autostart
comment # screen saver line and add those lines (disable screensaver and sleep mode + boot Chromium in fullscreen mode with volumio)
#@xscreensaver -no-splash
@xset s off
@xset -dpms
@xset s noblank
@chromium --kiosk --incognito --user-data-dir --disable-touch-editing --enable-touch-events http://volumio.local
Reboot while making a prayer to linux gods
Cheers
Julien
HI guys!
djoulle, do you followed the adafruit´s tutorial to install the drivers of touch screen?
I have a capacitive version of this touch screen…
Yes I used the “DIY Installer script”, but this one is for the resistive model only :
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/easy-install
Your model should be this one :
https://learn.adafruit.com/adafruit-2-8-pitft-capacitive-touch/easy-install
The resistive model works fine with a stylus, I would be very curious to know if the capacitive model is really close to a Iphone style touchscreen.
If you need a hand for the setup, don’t hesitate to ask
Julien
Julien, Thanks for the answer =D
but bad news about the installation… =(
take a look…
[code][ADAFRUIT] Starting image modification
–2014-12-03 20:07:31-- http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)… 54.231.8.1
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.8.1|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 184818 (180K) [application/octet-stream]
Saving to: `libraspberrypi-bin-adafruit.deb’
100%[======================================>] 184,818 239K/s in 0.8s
2014-12-03 20:07:33 (239 KB/s) - `libraspberrypi-bin-adafruit.deb’ saved [184818/184818]
–2014-12-03 20:07:33-- http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)… 54.231.8.1
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.8.1|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 672150 (656K) [application/octet-stream]
Saving to: `libraspberrypi-dev-adafruit.deb’
100%[======================================>] 672,150 206K/s in 3.2s
2014-12-03 20:07:36 (206 KB/s) - `libraspberrypi-dev-adafruit.deb’ saved [672150/672150]
–2014-12-03 20:07:36-- http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)… 54.231.8.1
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.8.1|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 31480442 (30M) [application/octet-stream]
Saving to: `libraspberrypi-doc-adafruit.deb’
100%[======================================>] 31,480,442 1.06M/s in 46s
2014-12-03 20:08:22 (672 KB/s) - `libraspberrypi-doc-adafruit.deb’ saved [31480442/31480442]
–2014-12-03 20:08:22-- http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)… 54.231.17.137
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.17.137|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 444188 (434K) [application/octet-stream]
Saving to: `libraspberrypi0-adafruit.deb’
100%[======================================>] 444,188 105K/s in 4.1s
2014-12-03 20:08:27 (105 KB/s) - `libraspberrypi0-adafruit.deb’ saved [444188/444188]
–2014-12-03 20:08:27-- http://adafruit-download.s3.amazonaws.com/raspberrypi-bootloader-adafruit-20140917-1.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)… 54.231.17.137
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.17.137|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 24337034 (23M) [application/octet-stream]
Saving to: `raspberrypi-bootloader-adafruit-20140917-1.deb’
100%[======================================>] 24,337,034 259K/s in 37s
2014-12-03 20:09:05 (637 KB/s) - `raspberrypi-bootloader-adafruit-20140917-1.deb’ saved [24337034/24337034]
[PITFT] Updating apt cache…
Hit http://mirrordirector.raspbian.org wheezy Release.gpg
Hit http://mirrordirector.raspbian.org wheezy Release
Hit http://mirrordirector.raspbian.org wheezy/main Sources
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Reading package lists… Done
[PITFT] Installing Adafruit kernel…
Selecting previously unselected package libraspberrypi-bin-adafruit.
dpkg: considering removing libraspberrypi-bin in favour of libraspberrypi-bin-adafruit …
dpkg: yes, will remove libraspberrypi-bin in favour of libraspberrypi-bin-adafruit
(Reading database … 34260 files and directories currently installed.)
Unpacking libraspberrypi-bin-adafruit (from …/libraspberrypi-bin-adafruit.deb) …
Selecting previously unselected package libraspberrypi-dev-adafruit.
Unpacking libraspberrypi-dev-adafruit (from …/libraspberrypi-dev-adafruit.deb) …
Selecting previously unselected package libraspberrypi-doc-adafruit.
Unpacking libraspberrypi-doc-adafruit (from …/libraspberrypi-doc-adafruit.deb) …
Selecting previously unselected package libraspberrypi0-adafruit.
dpkg: considering removing libraspberrypi0 in favour of libraspberrypi0-adafruit …
dpkg: yes, will remove libraspberrypi0 in favour of libraspberrypi0-adafruit
Unpacking libraspberrypi0-adafruit (from …/libraspberrypi0-adafruit.deb) …
Selecting previously unselected package raspberrypi-bootloader-adafruit.
dpkg: considering removing raspberrypi-bootloader in favour of raspberrypi-bootloader-adafruit …
dpkg: yes, will remove raspberrypi-bootloader in favour of raspberrypi-bootloader-adafruit
Unpacking raspberrypi-bootloader-adafruit (from …/raspberrypi-bootloader-adafruit-20140917-1.deb) …
Adding ‘diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack’
Adding ‘diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack’
Adding ‘diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack’
Adding ‘diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack’
Adding ‘diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack’
Adding ‘diversion of /boot/kernel_cutdown.img to /usr/share/rpikernelhack/kernel_cutdown.img by rpikernelhack’
Adding ‘diversion of /boot/kernel_emergency.img to /usr/share/rpikernelhack/kernel_emergency.img by rpikernelhack’
Adding ‘diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack’
Adding ‘diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack’
Adding ‘diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack’
dpkg: error processing /tmp/raspberrypi-bootloader-adafruit-20140917-1.deb (–install):
trying to overwrite ‘/lib/firmware/mts_gsm.fw’, which is also in package firmware-linux-nonfree 0.36+wheezy.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Memory split is now set in /boot/config.txt.
You may want to use raspi-config to set it
Removing ‘diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack’
Removing ‘diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack’
Removing ‘diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack’
Removing ‘diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack’
Removing ‘diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack’
Removing ‘diversion of /boot/kernel_cutdown.img to /usr/share/rpikernelhack/kernel_cutdown.img by rpikernelhack’
Removing ‘diversion of /boot/kernel_emergency.img to /usr/share/rpikernelhack/kernel_emergency.img by rpikernelhack’
Removing ‘diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack’
Removing ‘diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack’
Removing ‘diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack’
dpkg: dependency problems prevent configuration of libraspberrypi0-adafruit:
libraspberrypi0-adafruit depends on raspberrypi-bootloader-adafruit; however:
Package raspberrypi-bootloader-adafruit is not installed.
dpkg: error processing libraspberrypi0-adafruit (–install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libraspberrypi-bin-adafruit:
libraspberrypi-bin-adafruit depends on libraspberrypi0-adafruit (= 1.20130902-1); however:
Package libraspberrypi0-adafruit is not configured yet.
dpkg: error processing libraspberrypi-bin-adafruit (–install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libraspberrypi-dev-adafruit:
libraspberrypi-dev-adafruit depends on libraspberrypi0-adafruit (= 1.20130902-1); however:
Package libraspberrypi0-adafruit is not configured yet.
dpkg: error processing libraspberrypi-dev-adafruit (–install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libraspberrypi-doc-adafruit:
libraspberrypi-doc-adafruit depends on libraspberrypi0-adafruit (= 1.20130902-1); however:
Package libraspberrypi0-adafruit is not configured yet.
dpkg: error processing libraspberrypi-doc-adafruit (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
/tmp/raspberrypi-bootloader-adafruit-20140917-1.deb
libraspberrypi0-adafruit
libraspberrypi-bin-adafruit
libraspberrypi-dev-adafruit
libraspberrypi-doc-adafruit
[/code]
Here is the problem:
libraspberrypi0-adafruit depends on raspberrypi-bootloader-adafruit; however:
Package raspberrypi-bootloader-adafruit is not installed.
Everything depends on raspberrypi-bootloader-adafruit
To solve try:
sudo apt-get install raspberrypi-bootloader-adafruit
If you get further errors please paste them here and we go on.
Please mind that you’re changin the kernel, there could be issues with Volumio since it uses a custom built one.
Assuming we get to the point this device will install, wouldn’t updates to the Volumio kernel potentially conflict in the future? I would think device driver code should be a separate module…
mumapu,
I had the same issue with the manual install, but not using the automatic “DIY Installer script”, you should have one for the capacitive model as well.
best
julien
Julien, michelangelo…
I had the same problem using both the script ready and manual installation.
I think could be a problem with the files.
What do you think? Help meeeeeee =D
thanks!