Ubuntu / Xubuntu for the O2 Joggler.

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
jimeney
Posts: 122
Joined: Thu Oct 13, 2011 6:08 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by jimeney »

ilovemyjoggler wrote:
pete wrote:You could start with Buzz's base with nada on it if you want to play some (Ubuntu Base/Server 12.04 LTS (Precise) (Joggler Image v1.5 - 03/01/2014)

or

easier just to use Buzz's current Ubuntu builds and delete what you will not use on it as it already includes XBMC and Squeezeplay.
The icons are already there. You can also start up with either application if you want.
(Xubuntu 12.10 (Quantal) (Joggler Image v1.3 - 03/01/2014)

Found here:

http://joggler.exotica.org.uk/ubuntu/

Here trying this one lately...Xubuntu 14.04 LTS

http://www.jogglerwiki.com/forum/viewto ... 677#p21562

The build from a very light base would be a neato thing. Try both on two different sticks.

I am currently using two today dedicated for Squeezeplayer; one is really light with no GUI and remote controlled and the other has the Joggler GUI which too is remote controlled today via the "mothership".

Thanks Pete!

I know it looks like I asked a question then rudely disappeared but we've had phone and internet issues. :roll:

I do want to give this a try so the next thing is...
pete wrote:
Does the base have a GUI?
No but it is a one liner apt-get.
what is the one liner for the ubuntu base? Does it mean that the base will then have GUI for any added packages or do I need to add for each package?
jimeney wrote:Installing XBMC on sqpOS is possible, and actually very simple. In my experience works fine on EMMC with plenty of space free. I guess the trick is choosing the right base image, and SqueezePlay OS is perfect.
Apologies for hijacking this thread but I was intrigued by this as I didn't know squeezeplay os supports video. Jimeney have you actually accomplished this? If so, I cheekily ask if you would be willing to do a little guide? I'm interested in how you launch xbmc - do you get icon choices on boot?

Exploring all options at the moment. ;)

Thanks!
Yes - I had XBMC working fine, it could be however that I achieved this on sqPOS v1 which had hardware accelerated graphics drivers.

I have however had PLEX working on sqPOS v2 which is based on Ubuntu 12.04 - for SD content, it performs well.

What would be the real icing on the cake for me would be sqPOS v3 based on Ubuntu 14.04 - if only to have a real slim base image to work from.
jimeney
Posts: 122
Joined: Thu Oct 13, 2011 6:08 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by jimeney »

Plex and XBMC share a codebase. Before sqPOS v2 came out, I used the base image as a starting point and installed Plex by following the steps I noted in the following thread: http://www.jogglerwiki.com/forum/viewto ... 8&start=20

You should be able to replace these steps with apt-get install xmbc etc. and have working XBMC
ilovemyjoggler
Posts: 711
Joined: Sun May 13, 2012 4:42 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by ilovemyjoggler »

Thank you - will explore! :)
ilovemyjoggler
Posts: 711
Joined: Sun May 13, 2012 4:42 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by ilovemyjoggler »

Network manager is installed on the base image, yes? How do you open it to configure wifi connection? Googled and tried numerous commands none of which worked.
User avatar
BuZz
Site Admin
Posts: 1460
Joined: Fri Mar 04, 2011 1:15 am

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by BuZz »

no, the base image is just set up for dhcp for eth0 (/etc/network/interfaces). ive never configured network-manager without the gnome gui etc, but it might be possible (google network-manager console). to use wireless from the console you could use wpasupplicant. It will be fiddly compared to the on a desktop image with network-manager
User avatar
pete
Posts: 2950
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by pete »

Yup; here for a bit forgot to use network manager to configure the network and had originally gone to editing the interfaces. That caused me a bit of grief.

That said here is an example configuration.

Well this one is a bit much:

Code: Select all

######################################################################
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
#
# A "#" character in the very first column makes the rest of the line
# be ignored. Blank lines are ignored. Lines may be indented freely.
# A "\" character at the very end of the line indicates the next line
# should be treated as a continuation of the current one.
#
# The "pre-up", "up", "down" and "post-down" options are valid for all
# interfaces, and may be specified multiple times. All other options
# may only be specified once.
#
# See the interfaces(5) manpage for information on what options are
# available.
######################################################################
# We always want the loopback interface.
#
# auto lo
# iface lo inet loopback
# An example ethernet card setup: (broadcast and gateway are optional)
#
# auto eth0
# iface eth0 inet static
#     address 192.168.0.42
#     network 192.168.0.0
#     netmask 255.255.255.0
#     broadcast 192.168.0.255
#     gateway 192.168.0.1
# A more complicated ethernet setup, with a less common netmask, and a downright
# weird broadcast address: (the "up" lines are executed verbatim when the
# interface is brought up, the "down" lines when it's brought down)
#
# auto eth0
# iface eth0 inet static
#     address 192.168.1.42
#     network 192.168.1.0
#     netmask 255.255.255.128
#     broadcast 192.168.1.0
#     up route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2
#     up route add default gw 192.168.1.200
#     down route del default gw 192.168.1.200
#     down route del -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2
# A more complicated ethernet setup with a single ethernet card with
# two interfaces.
# Note: This happens to work since ifconfig handles it that way, not because
# ifup/down handles the ':' any differently.
# Warning: There is a known bug if you do this, since the state will not
# be properly defined if you try to 'ifdown eth0' when both interfaces
# are up. The ifconfig program will not remove eth0 but it will be
# removed from the interfaces state so you will see it up until you execute:
# 'ifdown eth0:1 ; ifup eth0; ifdown eth0'
# BTW, this is "bug" #193679 (it's not really a bug, it's more of a
# limitation)
#
# auto eth0 eth0:1
# iface eth0 inet static
#     address 192.168.0.100
#     network 192.168.0.0
#     netmask 255.255.255.0
#     broadcast 192.168.0.255
#     gateway 192.168.0.1
# iface eth0:1 inet static
#     address 192.168.0.200
#     network 192.168.0.0
#     netmask 255.255.255.0
# "pre-up" and "post-down" commands are also available. In addition, the
# exit status of these commands are checked, and if any fail, configuration
# (or deconfiguration) is aborted. So:
#
# auto eth0
# iface eth0 inet dhcp
#     pre-up [ -f /etc/network/local-network-ok ]
#
# will allow you to only have eth0 brought up when the file
# /etc/network/local-network-ok exists.
# Two ethernet interfaces, one connected to a trusted LAN, the other to
# the untrusted Internet. If their MAC addresses get swapped (because an
# updated kernel uses a different order when probing for network cards,
# say), then they don't get brought up at all.
#
# auto eth0 eth1
# iface eth0 inet static
#     address 192.168.42.1
#     netmask 255.255.255.0
#     pre-up /path/to/check-mac-address.sh eth0 11:22:33:44:55:66
#     pre-up /usr/local/sbin/enable-masq
# iface eth1 inet dhcp
#     pre-up /path/to/check-mac-address.sh eth1 AA:BB:CC:DD:EE:FF
#     pre-up /usr/local/sbin/firewall
# Two ethernet interfaces, one connected to a trusted LAN, the other to
# the untrusted Internet, identified by MAC address rather than interface
# name:
#
# auto eth0 eth1
# mapping eth0 eth1
#     script /path/to/get-mac-address.sh
#     map 11:22:33:44:55:66 lan
#     map AA:BB:CC:DD:EE:FF internet
# iface lan inet static
#     address 192.168.42.1
#     netmask 255.255.255.0
#     pre-up /usr/local/sbin/enable-masq $IFACE
# iface internet inet dhcp
#     pre-up /usr/local/sbin/firewall $IFACE
# A PCMCIA interface for a laptop that is used in different locations:
# (note the lack of an "auto" line for any of these)
#
# mapping eth0
#    script /path/to/pcmcia-compat.sh
#    map home,*,*,*                  home
#    map work,*,*,00:11:22:33:44:55  work-wireless
#    map work,*,*,01:12:23:34:45:50  work-static
#
# iface home inet dhcp
# iface work-wireless bootp
# iface work-static static
#     address 10.15.43.23
#     netmask 255.255.255.0
#     gateway 10.15.43.1
#
# Note, this won't work unless you specifically change the file
# /etc/pcmcia/network to look more like:
#
#     if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi
#     get_info $DEVICE
#     case "$ACTION" in
#         'start')
#             /sbin/ifup $DEVICE
#             ;;
#         'stop')
#             /sbin/ifdown $DEVICE
#             ;;
#     esac
#     exit 0
# An alternate way of doing the same thing: (in this case identifying
# where the laptop is is done by configuring the interface as various
# options, and seeing if a computer that is known to be on each particular
# network will respond to pings. The various numbers here need to be chosen
# with a great deal of care.)
#
# mapping eth0
#    script /path/to/ping-places.sh
#    map 192.168.42.254/24 192.168.42.1 home
#    map 10.15.43.254/24 10.15.43.1 work-wireless
#    map 10.15.43.23/24 10.15.43.1 work-static
#
# iface home inet dhcp
# iface work-wireless bootp
# iface work-static static
#     address 10.15.43.23
#     netmask 255.255.255.0
#     gateway 10.15.43.1
#
# Note that the ping-places script requires the iproute package installed,
# and the same changes to /etc/pcmcia/network are required for this as for
# the previous example.
# Set up an interface to read all the traffic on the network. This
# configuration can be useful to setup Network Intrusion Detection
# sensors in 'stealth'-type configuration. This prevents the NIDS
# system to be a direct target in a hostile network since they have
# no IP address on the network. Notice, however, that there have been
# known bugs over time in sensors part of NIDS (for example see
# DSA-297 related to Snort) and remote buffer overflows might even be
# triggered by network packet processing.
#
# auto eth0
# iface eth0 inet manual
# 	up ifconfig $IFACE 0.0.0.0 up
#       up ip link set $IFACE promisc on
#       down ip link set $IFACE promisc off
#       down ifconfig $IFACE down
# Set up an interface which will not be allocated an IP address by
# ifupdown but will be configured through external programs. This
# can be useful to setup interfaces configured through other programs,
# like, for example, PPPOE scripts.
#
# auto eth0
# iface eth0 inet manual
#       up ifconfig $IFACE 0.0.0.0 up
#       up /usr/local/bin/myconfigscript
#       down ifconfig $IFACE down
This one is a bit shorter:

Code: Select all

iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254
And here is the wireless stuff.

http://bernaerts.dyndns.org/linux/74-ub ... ommandline
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
ilovemyjoggler
Posts: 711
Joined: Sun May 13, 2012 4:42 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by ilovemyjoggler »

BuZz wrote:no, the base image is just set up for dhcp
Ahh. That explains the error messages.

Thanks Pete. I'll definitely try this out (not the long version though!) ;)
User avatar
BuZz
Site Admin
Posts: 1460
Joined: Fri Mar 04, 2011 1:15 am

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by BuZz »

Pete - you can use the phpbb

Code: Select all

[code]
[/code] tags for pasting code/config snippets - easier to read/and copy/paste. I've amended your post anyway :)
tmohammad
Posts: 42
Joined: Sat Nov 12, 2011 11:58 am

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by tmohammad »

Hi Buzz,

Thanks for the latest 14.04 version. I seem to have lost a lot of disk space. On the older version I had about 1GB free now I only have 0.5 GB free.

I have a 8GB USB key but I cant get it to see the rest of the disk as I dont have a unix PC to run Gparted on. Windows disk management wont let me do it!

Would it not be possible for you to create a 8GB image with about 4GB free space for idiots like me who dont know how to extend partitions on USB keys?

Thanks in advance.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by castalla »

You could create a USB live Gparted - boot your windows PC with the usb Gparted - then resize the ubuntu usb. It's easy to use.
tmohammad
Posts: 42
Joined: Sat Nov 12, 2011 11:58 am

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by tmohammad »

ok, usb partition extended. now have 4.2GB free. Thanks

next big issue is there is no screensaver. my joggler used to cycle through 100s of pictures when idle...

how do i install that funtionality...i used to have glslideshow installed. cant find it in 14.04
User avatar
BuZz
Site Admin
Posts: 1460
Joined: Fri Mar 04, 2011 1:15 am

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by BuZz »

http://xubuntu.org/news/screen-locking- ... ntu-14-04/

remove lightlocker and install xscreensaver etc.
tmohammad
Posts: 42
Joined: Sat Nov 12, 2011 11:58 am

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by tmohammad »

thanks Buzz... all working now.

dont know if I'm imagining this but this latest version seems signicantly faster than previous versions.

Anyone tell me if its possible to install Navi-X on XMBC? tried to instaa from zip file but it errors about dependencies??

thanks again to all.
parrafin23
Posts: 40
Joined: Mon Jun 09, 2014 8:04 am
Location: Nroway

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by parrafin23 »

Hey guys.. new to this forum, and great work you guys are doing. Now I have a openframe 7 i think its called.. a Telio branded one with detc?? phone thingy.. I managed to delete the os and im stuck in bootloader mode, It says telio on the screen and nothing more. i got it for free from a friend. I managed to run linux from a usb stick, so I know its working, Now.. How do I install linux to the internal memory? (im no linux man) All i would like for this little unit is to be able to stream music from the net or my local network.

I got xubuntu running and squeezeplay installed, Listening to it now, works perfectly. Just the way i would like it, but Is it possible to get this installed on the internal memory? so i can drop the usb drive hangin out of the back of it?

got a Ir reciever for mouse and keyboard and a usb stick type verbatim with xubuntu connected to a unpowered usb hub. running fine..

I admit, I need a how to / step by step guide on how i can install xubuntu to the internal flash if possible

I have installed Gparted, running it and i see in /dev/mmcblk0 (1.86GiB)

Partition unallocated
Filesystem unallocated
Size : 1.86GiB

It looks to me that there is nothing on it at all.

Help!!

Mr.P
User avatar
hawsey
Posts: 2069
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by hawsey »

I managed to write the base image to a Usb stick and it boots up fine and I get a prompt Joggler login with a flashing cursor , I type Joggler then I get a prompt Password , but it won't let me type .
I want to use BuZz's instructions to get a minimal desktop using the sudo apt get command .
I know I am missing something really obvious here .
Any ideas please .
Cheers
Happy Joggling
User avatar
JimbobVFR400
Posts: 264
Joined: Fri Jul 20, 2012 8:39 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by JimbobVFR400 »

When you type the password it doesn't look like you are. Just type it and press return.
User avatar
hawsey
Posts: 2069
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by hawsey »

Cheers JimbobVFR400 will give it another go this evening :-)
Happy Joggling
User avatar
hawsey
Posts: 2069
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by hawsey »

That did it , thanks ,
It is going to have to be baby steps for me I think ! So I got through to what I think is a terminal and typed in the sudo apt get thing to get me a minimal desktop and it seemed to start to download then I had to hit a y/n so I hit y and it said something like 350 mb are required but then it failed saying do sudo fix or sudo update , I tried both being careful to type it in exactly as written but no joy and it also said do you have root ..

So then I typed in the thermal psv thing and I got the writing up ending in splash as expected and I added thermal psv =80 but I don't know how to save and exit !,
I am not very good am I , he he .
I wrote this to a 16 gb usb stick but have not re sized yet but will do but don't think lack of memory is my issue yet .
Any ideas please
Thanks
Happy Joggling
Juggler
Posts: 249
Joined: Thu Apr 21, 2011 2:34 am

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by Juggler »

hawsey wrote:That did it , thanks ,
It is going to have to be baby steps for me I think ! So I got through to what I think is a terminal and typed in the sudo apt get thing to get me a minimal desktop and it seemed to start to download then I had to hit a y/n so I hit y and it said something like 350 mb are required but then it failed saying do sudo fix or sudo update , I tried both being careful to type it in exactly as written but no joy and it also said do you have root ..

So then I typed in the thermal psv thing and I got the writing up ending in splash as expected and I added thermal psv =80 but I don't know how to save and exit !,
I am not very good am I , he he .
I wrote this to a 16 gb usb stick but have not re sized yet but will do but don't think lack of memory is my issue yet .
Any ideas please
Thanks
When I put a base image of a flash drive, this is what I typically do (note lines with a $ at the beginning are commands to type in, there is no need to type the $, and apologies in advance, I'm no Linux expert.. ) :

$ sudo -s

This gives you superuser privileges and stays that way till you ctrl-d

$ apt-get update

This updates whatever with all the latest releases from the repositories

$ apt-get -s upgrade

This will show you what is going to happen to bring your Ubuntu up to the latest versions, without actually doing it. You can pipe to less to page a screen at a time : $ apt-get -s upgrade | less

$ apt-get upgrade

This will actually do the upgrade and will take a bit of time to download, then install.

You've now got an up-to-date Ubuntu ! If your using 14.04 or 12.04 this should all go ok. I have done these frequently and recently and have had few problems.

You can now install your minimal desktop. But to be honest, don't expect a great deal. I haven't done it for a while, but there is not much configured in the desktop that I could see and I concluded it would need more work doing to it. But have a go and see. You won't know unless you do it and don't let me put you off. If you can get what you need from the terminal, then it may be worth persevering there. It could also help reduce the issues that may come up. Anyway, try the desktop and see what you think. You can always go back to where you have come from. And the more you do it the quicker it will become to do it again in the future.

I'm not sure where you would be with commands now. But to get out of the sudo -s, just type ctrl-d. If you want to shutdown, I usually find that

$ sudo poweroff

does the trick. For some reason, if I use shutdown -now, I get problems after doing the first upgrade after a fresh installation.

For resizing your flash drive partition, I'd personally recommend PartEdMagic - this is an excellent collection of tools. It can also be legally shared, as I understand it (hope I won't be banned here for this..). A torrent for the latest version is here :

http://www.magnetdl.com/file/1269991/pa ... 014-06-10/

This is a live Linux distro. You can use a tool like unetbootin, Rufus or UniversalUSBInstaller, to name a few to write this to a USB flash drive and make it bootable. Then you would boot a PC/laptop with the PartEDMagic USB drive, put your Joggler flash drive into the PC/Laptop, and start GPartEd. From GPartEd you should be able to choose your Joggler drive and can then manipulate the partitions on there.

You could of course get a dedicated GPartEd distro, which I think there is one. But personally, PartEdMagic is the bees knees when it comes to really useful tools for disk related activities. It also has clonezilla on there, which you could use to take an image of your Joggler USB drive when you have it at a known good state. That way you can play with other installations/configurations and if it all goes awry, you can go back to a known good state, by writing your good Joggler image back to the Joggler USB flash drive. And then continue your Joggler adventures from there.

HTH - and I make no claims to this being anywhere near the right way. There are probably some much better ways and this may be considered risky due to having superuser privileges all the time.
User avatar
pete
Posts: 2950
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by pete »

Great news hawsey!

Yup; here wiped the old Joggler Ubuntu configuration and installed the most current this past week. It is very nice and quick. (this is using an SSD USB stick and an SSD PATA drive).
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
Post Reply