How to install Ubuntu TV on Ubuntu 11.10:


*There is a Ubuntu 12.04 port, but it is rather unstable and not much newer.
*I also link to a PPA, but it is broken.
*This guide assumes your user is called "ubuntu"
*Ubuntu 11.10 seems to use lightdm as the display manager.
You can download Ubuntu 11.10 here.


Prerequisites:
You need Ubuntu 11.10 installed.
Have apt mirror (in /etc/apt/sources.list file) pointed to http://old-releases.ubuntu.com/ubuntu .
Have Ubuntu 11.10 fully updated.
Also best to have gpu drivers installed. Will be very slow without GPU support, but can do without if you're running in a virtual machine for example.

We will install from source:
sudo apt-get build-dep unity-2d
sudo apt-get install bzr dconf-tools ffmpeg gnome-common libdeclarative-multimedia libutouch-geis-dev ffmpegthumbnailer gstreamer0.10-ffmpeg mesa-utils
bzr branch lp:~s-team/ubuntutv/trunk ubuntu-tv
*The bzr clone will fail due to outdated certificates, can get alternative source from here and extract it.
cd ubuntu-tv
cmake .
make -j$(nproc)
cd ..
bzr branch lp:~s-team/ubuntutv/unity-lens-video
*The bzr clone will fail due to outdated certificates, can get alternative source from here and extract it.
cd unity-lens-video
./autogen.sh --prefix=/usr --sysconfdir=/etc
sudo make install
cd ..
Make these directories:
mkdir ~/Videos/unity/ && mkdir ~/Videos/unity/local/ && mkdir ~/Videos/unity/local/featured && mkdir ~/Videos/unity/local/rented && mkdir ~/Videos/unity/local/purchased && mkdir ~/Videos/unity/local/recorded

Generate thumbnails for your videos:

/usr/lib/unity-lens-video/create_tmb.sh ~/Videos/unity/local/featured
/usr/lib/unity-lens-video/create_tmb.sh ~/Videos/unity/local/rented
/usr/lib/unity-lens-video/create_tmb.sh ~/Videos/unity/local/purchased
/usr/lib/unity-lens-video/create_tmb.sh ~/Videos/unity/local/recorded

To refresh the video list (will no longer work due to broken web API's like BBC's)
cd
cd ubuntu-tv/shell/dash/epgdata
python refreshdata.py
cd

Install unity-2d: *IGNORE THIS SECTION, since we can't boot from /usr/local.
cp -a /usr/share/backgrounds/warty-final-ubuntu.png ~/ubuntu-tv/libunity-2d-private/Unity2d/warty-final-ubuntu.jpg
*Rename png to jpg, its actually is a jpg that was mislabeled.
cd ~/ubuntu-tv/
sudo make install

Set the formFactor D-Conf key to “tv”:
GSETTINGS_SCHEMA_DIR=ubuntu-tv/data gsettings set com.canonical.Unity2d form-factor tv

Prepare your environment if you’re running unity-2d, you need to kill unity-2d-panel, unity-2d-places, unity-2d-launcher, unity-2d-spread (twice):
killall unity-2d-{panel,places,launcher,spread} && killall unity-2d-{panel,places,launcher,spread}
Run it like so:

metacity --replace &
cd ubuntu-tv
./shell/app/unity-2d-shell -opengl

To have Ubuntu TV Star at boot:

1. Keep the /home/ubuntu/ubuntu-tv there, it might not work if moved elsewhere.
You can delete the unity-lens-video directory, and the archive files.

2.create a /opt/start-ubuntu-tv.sh script. add this code then make it exactable:

#!/bin/bash
GSETTINGS_SCHEMA_DIR=ubuntu-tv/data gsettings set com.canonical.Unity2d form-factor tv
killall unity-2d-{panel,places,launcher,spread} && killall unity-2d-{panel,places,launcher,spread}
metacity --replace &
/home/ubuntu/ubuntu-tv/shell/app/unity-2d-shell -opengl

Make it exactable by: #sudo chmod +x /opt/start-ubuntu-tv.sh
3. Create a /etc/xdg/autostart/ubuntutv.desktop file and add this code and make it executable:

[Desktop Entry]
Categories=
Comment[en_CA]=Ubuntu TV Auto Launch
Comment=Ubuntu TV Auto Launch
Exec=/opt/start-ubuntu-tv.sh
GenericName[en_CA]=
GenericName=
Icon=folder-remote
MimeType=
Name[en_CA]=Ubuntu TV auto launch
Name=Ubuntu TV auto launch
NoDisplay=true
OnlyShowIn=GNOME;Unity;
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-GNOME-Autostart-Delay=3
X-KDE-SubstituteUID=false
X-KDE-Username=
#X-Ubuntu-Gettext-Domain=gnome-user-share

Make it exactable by: #sudo chmod +x /etc/xdg/autostart/ubuntutv.desktop
4. Edit the /etc/lightdm/lightdm.conf and have this code:

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu-2d
autologin-user=ubuntu

5. Do not forget to uninstall vm tools #sudo apt-get uninstall open-vm-tools -y && sudo apt-get autoremove --purge .
Also check in Gnome Settings that the display is a good resolution (like 1080p) and that auto lock and sleep is disabled

6. Make sure the resolution is good (like 1080p). No open-vm-tools if running in a virtual machine.
Also best if you can get GPU acceleration working. Then power off, create disk back up and reboot!
It should auto login to Ubuntu TV within 15 seconds after Plymouth splash screen.

Note about Music section and one other unnamed section.
This there is proof from the official trailer for Ubuntu TV by it now showcasing the music, YouTube and any categories not TV OR Movies.
They sever where developed besides having an icon in the dashboard. There is no source code on launchpad.
An old Austin Evans YouTube video from Jan 2012 shows the two categories also grayed out like how the current build runs.


Sources:
https://branden-g.ca/Notes/Tech-Help/Linux-Repair/Linux-Apps-Setup/1-Install-Linux-apps-and-drivers/Drivers/Fix-ubuntu-12.04-no-gpu-recognized.php
https://www.ubuntufree.com/how-to-install-ubuntu-tv/
https://www.ubuntufree.com/what-is-ubuntu-tv-how-much-will-it-cost/
https://launchpad.net/ubuntutv
https://askubuntu.com/questions/94148/what-is-ubuntu-tv
https://www.howtogeek.com/whatever-happened-to-ubuntu-tv/
https://wiki.ubuntu.com/UbuntuTV/Contributing
[YouTube] Ubuntu TV - Installation and Setup! Does it Still Work? by SudoTech (Feb 2017)
https://askubuntu.com/questions/166224/how-do-i-install-the-intel-graphics-driver-in-my-system
https://launchpad.net/api/1.0/~u2t/+archive/bleedingedge
https://bazaar.launchpad.net/~ubuntutv-dev-team/ubuntutv/trunk/files
https://launchpad.net/~nilarimogard/+archive/ubuntu/test3
https://askubuntu.com/questions/94089/how-do-i-install-ubuntu-tv-on-my-computer
https://code.launchpad.net/ubuntutv
https://askubuntu.com/questions/48321/how-do-i-start-applications-automatically-on-login
https://christitus.com/lightdm-configuration/
https://askubuntu.com/questions/221849/all-video-thumbnails-fail-to-be-generated
https://askubuntu.com/questions/2608/nautilus-video-thumbnails-without-totem#115855


Back