Ubuntu 14.04 (trusty) Raspberry Pi 2 image


233 posts   Page 1 of 10   1, 2, 3, 4, 5 ... 10
by fo0bar » Tue Feb 17, 2015 7:26 am

I know there are a few other Ubuntu efforts in this forum, with the most popular appearing to be a Linaro-based image. The key points here are:
  • Ubuntu 14.04 LTS-based release, nearly everything is standard Ubuntu upstream (the rest are published in a PPA)
  • Ubuntu-compatible kernel package, with a Raspbian patchset on top of Ubuntu's 3.18.11 kernel
  • Minimal ubuntu-standard metapackage installed, useful for a server base (but you could install lubuntu-desktop/xubuntu-desktop/etc if you want)
Last edited by fo0bar on Mon Apr 06, 2015 6:30 am, edited 3 times in total.
Posts: 19
Joined: Tue Feb 17, 2015 7:10 am
by kjellhei » Tue Feb 17, 2015 12:39 pm
tried to install lubuntu-desktop.

first i extended the ext4 volume and created a swap partition.

started the pi2 and logged in.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lubuntu-desktop

when that's done i try to startx
blank screen - ctrl+alt+f2 shows that it stopped at loading glx.
Posts: 9
Joined: Tue Feb 17, 2015 12:34 pm
by kjellhei » Tue Feb 17, 2015 5:53 pm
I feel alittle stupid now. guess I just needed to reboot after install of the desktop. now for som config to get it to full hd sound and so on.
Posts: 9
Joined: Tue Feb 17, 2015 12:34 pm
by fo0bar » Tue Feb 17, 2015 6:12 pm
kjellhei wrote:I feel alittle stupid now. guess I just needed to reboot after install of the desktop. now for som config to get it to full hd sound and so on.


That's good to hear (it working after a reboot, not feeling stupid). I was getting scared because while I didn't test a full *ubuntu-desktop environment (the only spare SD card I had for final testing was a 2GB card), I did install xinit and glxgears to make sure I could startx and see GLX acceleration.
Posts: 19
Joined: Tue Feb 17, 2015 7:10 am
by GMR73 » Tue Feb 17, 2015 7:23 pm
Great to see another Ubuntu image up and running so quickly. I am currently running the Linaro/Ubuntu image which I am very happy with. (Still can't get over seeing a RPI running Ubuntu so well) Will be installing this as soon as I find another SD card, looks like I am going to have to buy a handful to keep up.
Posts: 7
Joined: Sat Feb 14, 2015 10:53 pm
by kjellhei » Tue Feb 17, 2015 7:51 pm
sound is not working in desktop mode. no card detected
Posts: 9
Joined: Tue Feb 17, 2015 12:34 pm
by fo0bar » Wed Feb 18, 2015 1:23 am
kjellhei wrote:sound is not working in desktop mode. no card detected


snd_bcm2835 is not loaded automatically. Do "sudo modprobe snd_bcm2835", then add "snd_bcm2835" to /etc/modules.
Posts: 19
Joined: Tue Feb 17, 2015 7:10 am
by kjellhei » Wed Feb 18, 2015 9:49 am
thanks, it worked.
Posts: 9
Joined: Tue Feb 17, 2015 12:34 pm
by geev03 » Thu Feb 19, 2015 7:26 am
For remote GUI access, install xrdp , sudo apt-get install xrdp and make these changeshttp://www.tweaking4all.com/software/linux-software/use-xrdp-remote-access-ubuntu-14-04/

Also,Microsoft Remote Desktop https://play.google.com/store/apps/details?id=com.microsoft.rdc.android&hl=en_GBis useful to access RPi2-Ubuntu from Android / Apple devices...
Posts: 42
Joined: Thu Jun 07, 2012 12:40 pm
Location: London, UK
by Ryatzu » Thu Feb 19, 2015 8:10 am
I noticed that the grafics aren't smooth on the xubuntu desktop.
Do we need to run some soort of command to activate it? The resolution also can't be changed.
Hope you are working on this.
Posts: 10
Joined: Fri Aug 24, 2012 11:03 am
by kjellhei » Thu Feb 19, 2015 10:45 pm
to edit resolution

http://elinux.org/RPiconfig

I use a (lx)terminal and give leafpad root rights.
Code: Select all
sudo leafpad

and then edit the config file

edit:
this is the gui option.
Posts: 9
Joined: Tue Feb 17, 2015 12:34 pm
by RobHenry » Fri Feb 20, 2015 11:08 pm
This is a really great image - thanks - I'm surprised this thread has not had more interest.

One issue that is really bugging me is that the video core libraries are many releases behind. After installing libraspberrypi0 and libraspberrypi-bin, vcgencmd version gives me a date of Dec 19 2014. Is it possible to pull more up to date sources into the ppa providing these packages?

Thanks again for a really good ubuntu image.
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK
by cjan » Sat Feb 21, 2015 4:45 am
how to setup wifi on, without wired & wireless-tools pre-install?
try to setup /etc/network/interfaces with no luck.
Posts: 247
Joined: Sun May 06, 2012 12:00 am
by geev03 » Sat Feb 21, 2015 7:59 am
>Ryatzu » Thu Feb 19, 2015 8:10 am
>I noticed that the grafics aren't smooth on the xubuntu desktop.

Please check if the following history is useful .
to get a fully working Ubuntu desktop

Code: Select all
sudo resize2fs /dev/mmcblk0p2
  df
  sudo apt-get install dphys-swapfile
  sudo apt-get install openssh-server
  free
  sudo reboot   
  sudo apt-get install lubuntu-desktop

 
  sudo apt-get update
  sudo apt-get upgrade
  free
  sudo apt-get install xrdp

  sudo startx

  sudo reboot
  free
  sudo /etc/init.d/xrdp start
  ifconfig
  ~
  sudo /etc/init.d/xrdp restart

  sudo apt-get install language-pack-en
  sudo modprobe snd_bcm2835
  echo snd_bcm2835 | sudo tee -a /etc/modules
  udo apt-get install xubuntu-desktop
  sudo apt-get install xubuntu-desktop

  sudo apt-get install xserver-xorg

  sudo apt-get install xrdp
 
  sudo apt-get install mc
 
  sudo apt-get install xfce4
  sudo echo xfce4-session >~/.xsession
  sudo nano /etc/xrdp/startwm.sh
  sudo service xrdp restart
 
Posts: 42
Joined: Thu Jun 07, 2012 12:40 pm
Location: London, UK
by fo0bar » Sat Feb 21, 2015 6:32 pm
RobHenry wrote:One issue that is really bugging me is that the video core libraries are many releases behind. After installing libraspberrypi0 and libraspberrypi-bin, vcgencmd version gives me a date of Dec 19 2014. Is it possible to pull more up to date sources into the ppa providing these packages?


Done. I've uploaded a build based on Raspbian's 1.20150212-1, the latest available:

$ vcgencmd version
Feb 12 2015 17:30:56
Copyright (c) 2012 Broadcom
version 571f5d2143489e4300d7e2ed5b1a73f33f3b13e5 (clean) (release)
Posts: 19
Joined: Tue Feb 17, 2015 7:10 am
by RobHenry » Sat Feb 21, 2015 7:12 pm
fo0bar wrote:Done. I've uploaded a build based on Raspbian's 1.20150212-1, the latest available:

$ vcgencmd version
Feb 12 2015 17:30:56
Copyright (c) 2012 Broadcom
version 571f5d2143489e4300d7e2ed5b1a73f33f3b13e5 (clean) (release)

Installed successfully with apt-get upgrade.

This resolves a few peculiarities, such as the revision and serial # not being reported correctly in /proc/cpuinfo and gpu_mem_1024= not being recognised in config.txt. I've experienced some stability issues over the last few days which I suspect may be firmware related so am hoping they will also be resolved. Will report back with detail if not.

Thanks.
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK
by mimi123 » Sun Feb 22, 2015 12:54 pm
Ryatzu wrote:I noticed that the grafics aren't smooth on the xubuntu desktop.
Do we need to run some soort of command to activate it? The resolution also can't be changed.
Hope you are working on this.

fbturbo
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm
by joaodriessen » Tue Feb 24, 2015 11:02 am
Great that it's possible to boot ubuntu 14.04 on a raspberry pi!

Is it possible to run Unity?

After installing ubuntu-desktop, loging in from the graphical login screen gets me to a desktop with no icons or menu, basically a white cursor with ubuntu background image.
(Installed xserver-xorg-video-fbturbo and added new section to xorg.conf)
Posts: 8
Joined: Fri Oct 18, 2013 9:36 pm
by fo0bar » Tue Feb 24, 2015 7:11 pm
joaodriessen wrote:Is it possible to run Unity?

After installing ubuntu-desktop, loging in from the graphical login screen gets me to a desktop with no icons or menu, basically a white cursor with ubuntu background image.
(Installed xserver-xorg-video-fbturbo and added new section to xorg.conf)


I've tried ubuntu-desktop, ubuntu-gnome-desktop, lubuntu-desktop, xubuntu-desktop, and kubuntu-desktop. ubuntu-desktop and ubuntu-gnome-desktop don't display anything, presumably because both Unity and GNOME 3 require 3D compositing which isn't available on the Raspberry Pi. lubuntu-desktop and xubuntu-desktop work fine. kubuntu-desktop works, but is very slow until you turn off all the desktop effects.

fbturbo is a nice addition which doesn't seem to have any downsides, but all it does is accelerate window moving and scrolling on the Pi.
Posts: 19
Joined: Tue Feb 17, 2015 7:10 am
by joaodriessen » Tue Feb 24, 2015 7:17 pm
is there a way to check that fbturbo is running/working?
Posts: 8
Joined: Fri Oct 18, 2013 9:36 pm
by fo0bar » Wed Feb 25, 2015 3:42 am
joaodriessen wrote:is there a way to check that fbturbo is running/working?


Check /var/log/Xorg.0.log and look for a line like:

(II) FBTURBO(0): processor: ARM Cortex-A7
Posts: 19
Joined: Tue Feb 17, 2015 7:10 am
by codyrigney92 » Wed Feb 25, 2015 7:08 pm
Hey guys,

I was able to get the Pi Camera working on this image. Thank you for providing this OS image! I did NOT install the libraspberrypi-bin or libraspberrypi-dev because when I did they didn't work with the camera. First thing is to add this to /boot/config.txt:

Code: Select all
start_x=1
gpu_mem=128

Then you have to build raspberry pi userland yourself and make some changes. Just git clone https://github.com/raspberrypi/userland then apply this diff to it:

Code: Select all
diff --git a/buildme b/buildme
index ce8f516..7cef87d 100755
--- a/buildme
+++ b/buildme
@@ -2,10 +2,11 @@

 if [ "armv6l" = `arch` ]; then
        # Native compile on the Raspberry Pi
+       export LDFLAGS="-Wl,--no-as-needed"
        mkdir -p build/raspberry/release
        pushd build/raspberry/release
        cmake -DCMAKE_BUILD_TYPE=Release ../../..
-       make
+       make -j4
        if [ "$1" != "" ]; then
         sudo make install DESTDIR=$1
        else
diff --git a/makefiles/cmake/toolchains/arm-linux-gnueabihf.cmake b/makefiles/cmake/toolchains/arm-linux-gnueabihf.cmake
index 575cc0e..a5bebcd 100644
--- a/makefiles/cmake/toolchains/arm-linux-gnueabihf.cmake
+++ b/makefiles/cmake/toolchains/arm-linux-gnueabihf.cmake
@@ -10,7 +10,8 @@ SET(CMAKE_ASM_COMPILER arm-linux-gnueabihf-gcc)
 SET(CMAKE_SYSTEM_PROCESSOR arm)

 #ADD_DEFINITIONS("-march=armv6")
-add_definitions("-mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard")
+#add_definitions("-mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard")
+add_definitions("-march=armv7-a -mfpu=neon -mfloat-abi=hard")

 # rdynamic means the backtrace should work
 IF (CMAKE_BUILD_TYPE MATCHES "Debug")

and run buildme. You may want to run buildme as root so it can install to the proper places, then you may have to add /opt/vc/bin to your PATH. Otherwise it resides in build/bin/. Also you may want to do
Code: Select all
export LD_LIBRARY_PATH=/opt/vc/lib/:$LD_LIBRARY_PATH
before you run your app so that it knows to use the new libraries you compiled rather than the old. (For some reason the old ones were still in /usr/lib/ and were taking priority).

Raspivid and still will only work from a desktop session, so I installed VNC and ran it from the VNC session and it worked!

Quick tip for getting VNC running:

Install xubuntu-desktop:
Code: Select all
sudo apt-get install xubuntu-desktop

Install tightvncserver:
Code: Select all
sudo apt-get install tightvncserver

Run
Code: Select all
tightvncserver
then kill it with
Code: Select all
tightvncserver -kill :1

Edit ~/.vnc/xstartup so that it looks like this:


Code: Select all
#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
#/etc/X11/Xsession
startxfce4

Run
Code: Select all
tightvncserver

And you should be up and running!
Posts: 57
Joined: Fri Dec 14, 2012 2:04 am
by fo0bar » Fri Feb 27, 2015 3:49 am
codyrigney92 wrote:I was able to get the Pi Camera working on this image. Thank you for providing this OS image! I did NOT install the libraspberrypi-bin or libraspberrypi-dev because when I did they didn't work with the camera.


I'm not sure why the libraspberrypi packages from the PPA wouldn't have worked. That library is built directly from https://github.com/raspberrypi/userland. The buildme patch would have no effect since it's in the "armv6l" block, and arm-linux-gnueabihf.cmake is a cross-compile target, which the patch effectively makes into a native build (with the same flags as what gcc gives it anyway).

The only thing I can think of is the firmware, which had a bad build in the PPA for about a day this week.
Posts: 19
Joined: Tue Feb 17, 2015 7:10 am
by jk43 » Fri Feb 27, 2015 11:19 am
Hi,
Everything working fine with your image except for USB serial console.
I have added "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 rootwait" to "/boot/firmware/cmdline.txt" but my usb console screen shows only "Uncompressing Linux... done, booting the kernel." and nothing.
Any idea?
Posts: 1
Joined: Fri Feb 27, 2015 11:13 am
by eriktheitalian » Fri Feb 27, 2015 1:57 pm
Broadcom Videocore IV and lots of arm gpu not supporting open gl 2.0 desktop mode. Some things can be change in the future with new vc4 drivers. (http://cgit.freedesktop.org/mesa/mesa/l ... rivers/vc4)

I remember kde's kwin window manager supports opengl es modes... May be can be use. Raspberry inventors doing bigger plans over wayland/weston.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"
User avatar
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm