Webtop Reloaded - Atrix 4G Android Development

SEE LATEST UPDATE AT THE BOTTOM OF POST.
After quite a bit of tinkering, I have finally gotten to a point where I have nice spartan webtop. It's sad that it doesn't come this way from the factory. I am dropping a few pics, and if there is enough interest, I can share some of the files and mods needed. I am no dev so, don't expect a pretty script you can run to make it one click, but it shouldn't be to hard to replicate. I am pretty much running a full lxde desktop with all of the appropriate hooks and dependencies to allow you to use it pretty "normally". All of the preferences apps, tools, panels work properly. The lxde menus are all intact as well.
I have not destroyed my system and rebuilt it from scratch, but the basics are pretty straight forward.
1. [webtop] webtop2sd 2.0.1
2. WebTopScripts - Fixing apt-get dependencies on WebTop
After you have completed those setups, you will need to modify your startup scripts like so:
WARNING DRAGONS AHEAD, TURN BACK IF YOU ARE NOT COMFORTABLE BREAKING STUFF!!
sudo apt-get install nano (it's just easier this way )
sudo nano -w /usr/local/bin/start-oshwt-1.sh
Bottom of start-oshwt-1.sh
# Cache Firefox files to improve startup times
#[ -x /usr/bin/firefox-readahead ] && /usr/bin/firefox-readahead &
# start OSHWT 1 scripts
update-font.sh
sfalv -w "webdaemon -d -n"
#gnome-settings-daemon **NOTE** Leave this uncommented if you want to keep webtop-panel
lxde-settings
#sfalv -i "xscreensaver"
#sfalv -i "aiw -d"
sfalv -i "docking_manager"
fcitx
webtop-smartfolder-monitor
webtop-refresh-bookmark
Click to expand...
Click to collapse
Press Ctrl+x and overwrite that file.
nano -w /usr/local/bin/start-oshwt-2.sh
Bottom of start0oshwt-s.sh
# start OSHWT 2 scripts
#sfalv -i "awn-autostart"
#sfalv -i "webtop-panel"
#sfalv -i "webtop-wallpaper"
sfalv -i "lxpanel"
sfalv -i "pcmanfm"
sfalv -i "evbridge"
sfalv -i "window_switcher"
sr-test avahi_start &
Click to expand...
Click to collapse
Ctrl+x and overwrite
What we are basically doing is stopping startup of all non-essential services, and the lxde+gnome soup that Motorola used, and reverting to all ldxe pieces. You should be able to customize you panel, icons, and desktop by just right-clicking as you normally would in lxde. All of the existing icons from awn should still show up in the lxde menu. It's so simple , once I got it all working, that I am not sure why Motorola choose to slap all the random gui stuff together.
Getting the window manager to behave was a little trickier, the theme is hard to get changed and I don't remember which setting worked. I will have to revert to find the right process. I also wanted to nuke the desktop compositing, but it looks like it is baked in somewhere, and I was never able to completely disable it.
Updates 2011/1/16:
I personally hate the default window decoration. I choose to switch to Metabox
Window Decoration
Change the default window decoration:
Edit /osh/etc/gconf/gconf.
Find the section name="metacity"
Change the <stringvalue>webtop-theme</stringvalue> to something like Metabox
Click to expand...
Click to collapse
XFCE4 Notes
In order to get a fully functioning xfce4 session, you need to use the following settings...For bonus points, running xfwm4 seems to disable compositing as well, so there is a gconf flag I can probably find to turn it off by default later.
--start-oshwt-1.sh--
gnome-settings-daemon
--start-oshwt-2.sh--
sfalv -i "xfce4-panel"
sfalv -i "xfwm4 --replace"
#NOTE: The --replace tells linux to replace the active WM after it is started, there is a cludge of scripts that startup lxsession and call the default window managers that I am still untangling.
Click to expand...
Click to collapse
Disable desktop compositing (shadows)
To disable compositing run this from lxterminal:
gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool false
Click to expand...
Click to collapse
Why does switching themes not work?
I ran across the primary reason that theme switchers are broken. Motorola did something really silly and hardcoded gtk to include the gtkrc of the webtop theme by default.
Open /osh/etc/gtk-2.0/gtkrc and comment out the include line. Once you comment out this line, you can use normal theme tools to swap settings. The best tool is going to be gnome-appearance-properties. ENJOY!
Click to expand...
Click to collapse

Please do. Peace
MB860 - ROM junkie

berniesteven said:
Please do. Peace
MB860 - ROM junkie
Click to expand...
Click to collapse
+1
Does it work with 2.3.6?

I would be interested also, thanks.

Nice looking peace of work man!

Yea, please share this! Looks a lot better than what I'm running! +1

Please share. It seems very interesting.

Yes! Yes!
Beer Money may be available if your of age!!!

I can help you make a nice script if you pm me
sent from my AL60R!THM Atrix

My first post and so worth it lol. Please share would be much appreciated ...

Shouldn't be to difficult to reconstruct. I have consolidated most of it to the startup scripts and used pieces that should already be present.

Dude this is nice. I was looking to get LXDE running on my webtop, but it is already on there.
This is quick and easy just edit the 2 files and you have LXDE running without having to use Synaptic to add anything.

I want to put iOs on my webtop or windows

This is really slick. the only problem I have right now is that awn manager can't save the config file & I had to start aiw from lxterm

ycavan said:
This is really slick. the only problem I have right now is that awn manager can't save the config file & I had to start aiw from lxterm
Click to expand...
Click to collapse
If you are using my files, you aren't using awn anymore. lxpanel has it's own settings. Just right click on the panel and choose "Add/Remove Panel Items". You can add whatever icons/executables you want to the panel. I have icons for lxterm, firefox, ysclient and aiw on my dock.

blingmaster said:
Dude this is nice. I was looking to get LXDE running on my webtop, but it is already on there.
This is quick and easy just edit the 2 files and you have LXDE running without having to use Synaptic to add anything.
Click to expand...
Click to collapse
Yup, the main reason I used the other steps were to add programs I needed like tsclient for vnc and remote desktop connections. I have profiles for all of my windows and linux servers, so the laptop running fullscreen rdp is actually very very very productive. I use virtual servers I rent with linux and windows via rdp on the web, and I have all of my heavy-lifting tools on-call 24/7.

ssmr2t said:
I want to put iOs on my webtop or windows
Click to expand...
Click to collapse
Remote Desktop FtW...

But how is this dev ? Its like theming webtop really .......

helfrez said:
I also wanted to nuke the desktop compositing, but it looks like it is baked in somewhere, and I was never able to completely disable it.
Click to expand...
Click to collapse
dude if you can make that happen you will be my personal hero for at least a week =D
dicksteele said:
But how is this dev ? Its like theming webtop really .......
Click to expand...
Click to collapse
i agree it's not exactly dev, but it's hard to fit this into the other categories.. i know i probably come off like i'm defending my own theme switching thread, but eh. this seems like the best place for this stuff. maybe we need a webtop specific forum?

Post about a separate subforum here http://forum.xda-developers.com/showthread.php?t=976354
We really need one place to collaborate on things. Either one main one or a separate one on each device subcategory that supports webtop.

Related

Better Terminal Emulator Magic

Just showed up in the market. Awesome works the 1.5 soft keyboard. Has its quirks but does have some good uses, an update was put out this morning to fix the enter key problem.
great find! it's so hard to sort through the **** apps these days. can't wait until we get a well needed market update.
Just to let people know they have a message saying it doesn't work on some modified Roms. I'm on 6.0h and it didnt work for me. it went into a force close loop even when i wasnt using it.
Its a step in the right direction, but its not all there quite yet. VERY HELPFUL though
1) There is a problem getting the <enter> key working. I find that I need to roll around the scroll button a bit before the enter key will work after starting or switching users.
** another way to deal with this is to use a different shell. For some reason, using full bash instead of sh works. There are other (great) advantages to this (more on that later).
2) You can't see what you're typing when in landscape mode, which is the only way that the VK is actually practical -- keys are too small to use effectively in portrait.
3) If you use a colored shell, the colors screw up when switching to/from the vk. Must be something to do with how he's buffering and redrawing the console.
On using bash instead of sh...
Advantages:
1) color
2) BASH HISTORY
3) scroll wheel = arrow keys
4) lots more -- http://en.wikipedia.org/wiki/Bash
How:
copy bash into some executable part of the filesystem
create a bashrc file anywhere at all in the filesystem.
put in your bashrc the following:
Code:
PS1="[\w]\\$ "
HISTFILE=/some/path/file/with/write/permissions
** this is of course a regular shell script, so add whatever startup code you like in there, like a custom PATH, etc.
IN the "better terminal emulator" program, menu --> preferences --> command line and set it to "/path/to/bash --rcfile /path/to/bashrc"
And of course, running the following:
Code:
su -c "/path/to/bash --rcfile /path/to/bashrc"
will give you root with bash and the same setup as your regular user, including a shared history file (note that the history file is only updated when bash EXITS and so it is current as of the moment you initially LAUNCHED the terminal app.
Note: I like to write that su -c line into a wrapper I call "subash" that I place in the path.
bash is attached for convenience, its a .tar.gz file with an extra extension to confuse the newbs (and trick the forum filter into allowing it).
@lbcoder
Thanks Great tip!
@lbcoder
Thanks Great tip!
using bash as default shell
Id love to use bash, its the shell im used to and since Im not that good at *nix having bash would help, 1 cyanogen rom had ash(i think) and then none of the scripts floating around worked and so they needed to be edited(something that sounds a bit tedious)
Id also like a decent prompt, maybe color ls and all those bells and whistles, I think this could be well received with all the bugs worked out and maybe a script that would make any scripts found on the device into a format that bash needs...
the biggest is the lack of history, I have used a good variety of linux and unix shells and droids is the first without cmd history, a prompt with 'pwd' and tab auto complete...
cant we just get a REAL shell, is that so wrong?
bhang
Job Control
lbcoder said:
On using bash instead of sh...
Advantages:
1) color
2) BASH HISTORY
3) scroll wheel = arrow keys
4) lots more ...
Click to expand...
Click to collapse
Very nice and very useful. Thanks for providing this!
One feature lost in this build of bash: Job Control (^Z, jobs, fg, bg, and %number commands to manipulate jobs). Hitting Ctrl-Z suspends the bash shell and all its child processes.
The existing sh shell supports job control. This build of bash does not.
I'm going to have to learn how to set up a cross-compilation environment. Another project to add to the list...

mobile view on webtop

ok as you are aware motorola have a closed source app called mobile view,
My aim is to reverse engineer it to see if we can port it to other distros i.e like gentop / debian.
PROGRESS:
i have already somewhat worked out and have (with errors) a fully working debian wheezy running with some of the webtop apps working and a few errors, I.e sound not working
i have so far got the fact of the program is called aiw it is launched via aiw -d on boot of webtop, In the start-webtop-1.sh script .
i've located all the files it uses to run i can also see the fact it is wrote in c (c assembly to be precise) .
TO DO:
I should have some what of a base code of it by the end of next week. I've learnt alot about the webtop in the last month and i am continuing to learn it till i know it inside and out.
Also i will be started a git repo later for some of my other work
I.e the full debian wheezzy with gnome and gnome panel working on boot
i don't know how to make it into an easy install so help would be nice on that
If any of you wish to help with this then please let me know its not for the faint hearted also mods if you have a problem with this then please let me know / remove the post.
MOD EDIT:
This dude is looking for folks to help him reverse engineer mobile view, a closed source application on the Atrix, for porting it to gentoo or debian. Hopefully he will edit his thread and use some commas or bullets!
MY EDIT:
I Have re-edited it with commas and full stops and capital letters i'm sorry if some of you were unable to read / understand this
MOD EDIT:
I added some badly needed formatting Good luck!
First step is find a keyboard with punctuation symbols on it so you can communicate with the rest of the development community. After that all things are possible.
sorry i do personally suck at grammer
Trying to read this made me mad. :/
Sent from my MB860 using XDA App
Op has serious development intent. Let's try to keep it on topic now that things have been edited.
there we go edited
I'd very much love to see this happen for a couple reasons
1. I imagine this could be used with a linux based PC to run AIW?
2. We could **** all dependency holding like we do in the current ubuntu setups and have a no-break upgradable linux OS.
Little side bit, though might provide incite as to why some apps have issues
Been looking into VNC server on web-top on my How Too in the general section and as I was working on it I noticed that the ported moto applications such as firfox aiw awn and a few others only function only in the adas hdmi environment such as DISPLAY=:0 as set up by a few scripts in /etc/init.d I was wondering as you mess with your development on this if you manage to find out how to set X to share for Xvnc to utilize or can point me in the right set of files to look at I would appreciate it.
-DjAzin
Djazin said:
Little side bit, though might provide incite as to why some apps have issues
Been looking into VNC server on web-top on my How Too in the general section and as I was working on it I noticed that the ported moto applications such as firfox aiw awn and a few others only function only in the adas hdmi environment such as DISPLAY=:0 as set up by a few scripts in /etc/init.d I was wondering as you mess with your development on this if you manage to find out how to set X to share for Xvnc to utilize or can point me in the right set of files to look at I would appreciate it.
-DjAzin
Click to expand...
Click to collapse
aiw and firefox will run in any enviroment there is some security policy's that were set by motorola that only allow certain process to run / access certain files and would autokill things that it it didnt think should be running and shouldnt be running by a certain user ie adas is the only user allowed to start awn and firefox if you try starting it from root it will kill it straight away i will find out the commnds i used to disable this amd post it up later i,m currently out and about atm and not near my computer

[Guide] Ubuntu chroot on rooted TPT

Hey ThinkPadders,
So I found myself needing to do some programming on the road this weekend but dont have access to a laptop. So I'm plugging in a bunch of peripherals to my TPT and hoping to work off it. (UPDATE: It worked great! Just ran out of space in my pre-allocated image, see update #2 below) Forgive me if the outcome is a bit rough or this exists elsewhere, I'm in a bit of a rush but thought I'd throw this quickly out to anyone who may find it usefull (or is nice enough to complete it).
There's just a small modification from the Ubuntu on android instructions on AndroLinux. Sorry I cant post links as a crappy member X_x, but I think you know what to do with this:
www.androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
Change the mount calls in each of the scripts from:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
to:
mount -o remount,rw -t yaffs2 /dev/block/mmcblk0p3 /system
That's about it. I've installed build essentials just with apt-get and got simple STL c++ to compile, so things seem good so far.
Here are pics of the TPT running vnc and ssh to localhost. I attached modified scripts if you dont want to do it yourself. All credit should go to Max Lee at AndroLinux and Charan Singh.
(And a hurrah for getting our kernel source!!)
UPDATE #1 (2-27-2012):
Terminal/ssh usages are great, but experiences with the stock ubuntu GUI are a little slow (probably due to the lack of tegra drivers on tested distributions). You can improve this GREATLY by using a lighter weight windows manager (lxde, xfce, unity 2d, etc).
UPDATE #2 (2-28-2012):
Also, you can skip using an image entirely. Since then I've partitioned a 32GB sdcard into 10GB fat32 + 22GB ext2 partitions and just directly copied a preinstalled/debootstrap'ed ubuntu and mounted it. This way you don't have to pre-allocate space with an image and can use both partitions for general storage (the fat32 is just for windows specific access). You could probably use space on the internal sdcard if you like. But I have a 16GB model so I went straight for an external solution.
I can extend this guide or create a one-click windows script to handle the entire setup/installation if there's interest.
This is really cool, thanks for sharing this info with the rest of us.
Thanks! I run Ubuntu on all my computers, now I can run it on my TPT!
Cool stuff anapmac.
I too have an ubuntu chroot on my thinkpad (actually just copied the loop file from my droid x and didn't even have to change any settings)
Just a tip: I highly recommend swapping out the default window manager for lxde.
lxde is much more lightwight and will run a lot faster.
Also, you may want to try pointing apt at the debian repositories, debian seems to have more complete ARM repositories than ubuntu does.
How about libre office. Could it run in an usable speed on ubuntu on android, or would it do it if ubuntu only could get installed?
Hey,
could anyone help me...i managed to do all and it finally worked.
but i don't think it is quite useable, so what d0 I have to do to make all steps undone?
thanks for your help.
dan
thanks for posting the changes required to get this working. I got it working with the ubuntu.img from the guide at androlinux.com
I've used the instructions there also to build an image of from ubuntu 11.10. I simply replaced the ubuntu.img with my own and all is working ok. I'm currently installing unity to see how slow it will be. or if it works at all.
hidd3n_bit said:
Cool stuff anapmac.
I too have an ubuntu chroot on my thinkpad (actually just copied the loop file from my droid x and didn't even have to change any settings)
Just a tip: I highly recommend swapping out the default window manager for lxde.
lxde is much more lightwight and will run a lot faster.
Also, you may want to try pointing apt at the debian repositories, debian seems to have more complete ARM repositories than ubuntu does.
Click to expand...
Click to collapse
Thanks for the tip. I did find loading firefox somewhat slow when I took the screenshots. This past weekend though I was only accessing the distribution through a terminal emulator (just ran the bootubuntu script to setup the chroot). After working with it, I'm very satisfied with this setup I'm planning to buy an external SD to use host a large ubuntu image (or anything else that's ARM compatible?). Maybe I'll look into the GUI if I get a chance.
There's also a native ubuntu setup on some android devices. That would be interesting to see how well the GUI performs when android isn't running next to it. Luckily for me, the terminal is perfect since I use vim
danjac said:
Hey,
could anyone help me...i managed to do all and it finally worked.
but i don't think it is quite useable, so what d0 I have to do to make all steps undone?
thanks for your help.
dan
Click to expand...
Click to collapse
Hey danjac,
when you exit out of the shell that bootubuntu launches, it unmounts the required loopback and folders for you. The setup script, ubuntu.sh, simply copies a few files into known locations (deleting any existing files from previous runs). These files are:
/system/bin/fsrw
/system/bin/bootubuntu
/system/bin/unionfs
/system/bin/mountonly
You can just delete these by hand. Otherwise, I've attached a shortened version of the setup script (now only contains the clean-up and not the file copies) that does just this. Besides those files you just need to delete your ubuntu image file. Also, I dont believe the mounts (calls to losetup and mount) persist through reboots. Someone please correct me on that if I'm wrong. But if true, you wont have anything ubuntu related running if you've done a simple reboot lately. It is probably best to reboot before running this script. FYI, the script is run from the TPT's terminal (either using a terminal app or adb).
baser5nature said:
thanks for posting the changes required to get this working. I got it working with the ubuntu.img from the guide at androlinux.com
I've used the instructions there also to build an image of from ubuntu 11.10. I simply replaced the ubuntu.img with my own and all is working ok. I'm currently installing unity to see how slow it will be. or if it works at all.
Click to expand...
Click to collapse
Cool. Let me know how it goes. I'm curious how well we can get an ubuntu GUI to run under chroot. I really like the integration it gives. Though we're probably running on software rendering no matter what UI we use. Nvidia released linux tegra drivers for hardware acceleration:
(H)ttp://developer.nvidia.com/linux-tegra
(curse you linking!!! still too forum newb for this)
hopefully I (or anyone ) can get time to mess around with this.
Hey danjac,
when you exit out of the shell that bootubuntu launches, it unmounts the required loopback and folders for you. The setup script, ubuntu.sh, simply copies a few files into known locations (deleting any existing files from previous runs). These files are:
/system/bin/fsrw
/system/bin/bootubuntu
/system/bin/unionfs
/system/bin/mountonly
You can just delete these by hand. Otherwise, I've attached a shortened version of the setup script (now only contains the clean-up and not the file copies) that does just this. Besides those files you just need to delete your ubuntu image file. Also, I dont believe the mounts (calls to losetup and mount) persist through reboots. Someone please correct me on that if I'm wrong. But if true, you wont have anything ubuntu related running if you've done a simple reboot lately. It is probably best to reboot before running this script. FYI, the script is run from the TPT's terminal (either using a terminal app or adb).
Click to expand...
Click to collapse
Hey Anapmac,
thank you very much for the information/script.
You are right, it does not survive a reboot.
Once again, thanks for your help.
I'm going to give this a go, looks really cool.
Canonical have just announced Ubuntu for Android which looks pretty amazing.
Oh, yes.
http://www.pcworld.com/businesscent...tu_android_addon_designed_to_replace_pcs.html
Cant wait until having really time to try it......
Yea, my dreams are coming true! I hope they're not picky about using the dock though. I'd still rather just open up a local terminal and work from there (for those of you who keep line widths in code, the character width can perfectly be 80 in portrait mode using android terminal emulator ). Should work anyway though, seems like a chroot solution with dock integration. Either way, that makes for an AWESOME thin client to access any workstations. Add that to having a mobile data plan, who needs to be in the office! Love being able to fiddle with these devices so much.
I wasn't able to get unity to work, I'm really not that strong in linux though. Based on things I've read around other linux forums, it's not likely to get it to work, but luckily canonical is taking care of that for us.
I tried gnome-classic and it worked ok, I wouldn't call it unusable, tried ubuntu-2d and 3d and they just don't work, finally settled with xfce after installing xubuntu-desktop via apt-get and then messing with the xstartup in /root/.vnc to start xfce with vnc.
vncserver -geometry 1280x752 fits perfectly in the screen space available without hiding the honeycomb status bar.
Although android vnc works quite well for free. I grabbed Jump Desktop back when it was on sale, and the mouse integration feels more like a native install.
I've been using Terminal Emulator in android to edit files and things with my folio keyboard, but there are a few annoying things with that. the vol-dwn button as Ctrl only works with onscreen keyboards, so I have to take the thinkpad out of the folio keyboard for certain keystrokes in apps like vi and nano. Funny enough the enter key on my onscreen keyboards, isn't accepted when saving a file with nano. I have to return to the folio keyboard to hit enter... wierd.
Anapmac said:
Cool. Let me know how it goes. I'm curious how well we can get an ubuntu GUI to run under chroot. I really like the integration it gives. Though we're probably running on software rendering no matter what UI we use. Nvidia released linux tegra drivers for hardware acceleration:
(H)ttp://developer.nvidia.com/linux-tegra
(curse you linking!!! still too forum newb for this)
hopefully I (or anyone ) can get time to mess around with this.
Click to expand...
Click to collapse
Sent from my ThinkPad Tablet using Tapatalk
Thanks for checking on that baser.
I've been plugging in a full keyboard whenever I wanted to code, so I'm not sure what issues come from using the folio. I did experience some funky keyboard (hardware) mappings when I was using the GUI though. I'd have to do some remappings of the keyboard keys to get it 100% working, I figure we could probably do the same for the folio. For instance, my caps lock key is normally mapped to ctrl. If the folio has one it may be a good solution (I've never really seen one and I'm assuming it doesnt have a ctrl or alt from your experiences).
As for the GUI responsiveness, I tried using a ubuntu image which was compiled with the nvidia tegra drivers (see Linux for Tegra for details, but dont try their test image). It FELT more responsive to me, but I didnt get a chance to run solid benchmarks on my different distributions though. My experience using the ubuntu GUI on the TPT is pretty slim, so I could be completely wrong on that visible speedup.
I got a hold of a nice big 32GB sd card over the weekend, so I plan to put a large ubuntu/debian distribution on it this weekend. I'll try to get some updates on the keyboard issues and tegra drivers around then.
Check it out, there are tegra drivers in the next ubuntu arm release
https://launchpad.net/ubuntu/precise/armel/nvidia-tegra
It's to be released in april. I'm sure this has to do with canonical's android announcement. Sweet! I'm curious, so I may look into setting up a 12.04 distro this weekend to see if there's a noticeable speed up.
So, I definitely understand the desktop usage awesomeness. But I'm still not sure what android (mobile) gains from getting an ubuntu GUI. It seems all the added benefit comes from the command line tools, where android apps can cover any graphical needs. Thoughts?
One-click?
UPDATE #2 (2-28-2012):
Also, you can skip using an image entirely. Since then I've partitioned a 32GB sdcard into 10GB fat32 + 22GB ext2 partitions and just directly copied a preinstalled/debootstrap'ed ubuntu and mounted it. This way you don't have to pre-allocate space with an image and can use both partitions for general storage (the fat32 is just for windows specific access). You could probably use space on the internal sdcard if you like. But I have a 16GB model so I went straight for an external solution.
I can extend this guide or create a one-click windows script to handle the entire setup/installation if there's interest.
Click to expand...
Click to collapse
A one-click script would be awesome! I know there's others who would appreciate it as well, I'm just gona take one for the n00b team and ask for it. No rush, if you have time it'd be great but either way thanks for your work!
tutorial
can anyone please guid me to a tutorial for this? if it's possible do with android terminal emulator.....l'm a noob ,just don't know how to do it
Hey guys!
Since the ubuntu touch preview came out yesterday, I thought I'll give this thread a bump. What do you guys think about it? Can we port this to our good old TPT? I just stumbled over the Porting howto: https://wiki.ubuntu.com/Touch/Porting
I mean, thanks to Koshu, we have CM10 running, so porting should work? But I have to admit that I don't have a lot of experience with this kind of stuff
ChiefOHara said:
Hey guys!
Since the ubuntu touch preview came out yesterday, I thought I'll give this thread a bump. What do you guys think about it? Can we port this to our good old TPT? I just stumbled over the Porting howto:
I mean, thanks to Koshu, we have CM10 running, so porting should work? But I have to admit that I don't have a lot of experience with this kind of stuff
Click to expand...
Click to collapse
This would realy be very cool.

Ubuntu for Vivid

Saw a thread a while back asking about the super-cool Ubuntu for Android on the Vivid. Unfortunately, we'll probably never see this for the Vivid, but we do have a comparable alternative...
Using the images from the Linux on Android Project we can run a virtual instance of Ubuntu and VNC into it.
This will probably work on any ROM, so long as you're rooted with busybox.
Before we start, install android-vnc-viewer and Android Terminal Emulator. Other VNC / Terminal apps will probably work, but the following instructions will be for these apps, specifically.
Okay, now...
Make an "ubuntu" directory on your SD card (internal/external, doesn't matter. You'll need at least 3 gigs of space though). For the purpose of these instructions, I'll refer to it as /sdcard/ubuntu.
Grab this script and unzip it as /sdcard/ubuntu/ubuntu.sh
Then download either (or both, whatever) the full-sized, Gnome-based image, or the smaller, LXDE image. Unzip as /sdcard/ubuntu/ubuntu.img
Open up Terminal Emulator, type "su" and hit enter. A superuser prompt will pop up (or that SuperSU thing, whatever you use). Accept/Agree/Whatever to allow root.
Now you're at a root shell. Go to your ubuntu directory by typing "cd /sdcard/ubuntu" (/sdcard/ext_sd/ubuntu for external card) and pressing enter.
Type "sh ubuntu.sh" and hit enter. This will start the launch script.
When it asks for a screen resolution, type "960x540" (the resolution of the Vivid).
A bunch of stuff will fill the terminal. When you see "[email protected]:/#", celebrate! You have Ubuntu running!
Now, unless you want CLI only... hit your home button (leave terminal running in the background) and launch android-vnc-viewer.
Enter whatever for the nickname, and the following settings:
Password: ubuntu
Address: localhost
Port: 5900
Color Format: 24-bit color (4 bpp)​
Now click "Connect" in the top-left corner. Hopefully you'll see Ubuntu! Now add a bluetooth keyboard/mouse and an MHL, and proceed to rubbing it in your Apple-fanboy-friends faces.
When you're done, head back into Android Terminal Emulator and type "exit".
NOTES:
I don't take credit for any of this. This is 100% Zachary Powell et al @ the Linux on Android Project.
I really don't see how anyone could screw a phone up with this, but standard disclaimer applies. I'm not responsible for anything, anywhere, ever.
This post is kind of long, but this is really super easy. Good luck!
The problem is this need this loop support in the kernel and none of the kernel people in this thread responded to my request for it.
Kernel stuff was not my cup of tea so never could get this running
Works perfect on Virtuous, which uses the Faux kernel. I don't know of any kernels that DON'T support loopback, which is why I said it should work on just about any ROM. Haven't tested on any others though.
Did this aeons ago. It works flawlessly, but the GUI is mad slow. Works fine for command-line business, though.
Cool story. It's been out for less than six months, but I guess that could be aeons. This is for people who haven't seen it.
Also, the GUI is extremely fast. With an MHL it's totally usable as a full computer. Did you try with LXDE?
kxhawkins said:
Cool story. It's been out for less than six months, but I guess that could be aeons. This is for people who haven't seen it.
Also, the GUI is extremely fast. With an MHL it's totally usable as a full computer. Did you try with LXDE?
Click to expand...
Click to collapse
I just realized that we are not talking about the exact same thing.
This has existed for aeons (Feb 1 2011). Same theory and application, but based on Karmic 9.10 and very slow indeed.
Hmm, might have to give this one a try.
Yea, ran that on my old X10. Bad hardware + bad implementation. This is 10.10, and they have a working beta for 12.10.
The LOA project really got it right. Especially running LXDE. Gnome is obviously slower.
IMO it's a good replacement for the official Ubuntu project.
It would be nice to install a custom arch linux or a debian netinstall with only the necessary things to work, fluxbox, xfce, lxde or some lightwheight desktop manager and see what happens. With the micro usb 2 hdmi cable and attached to a big screen it would be a real killer.
With some time I can prepare a custom debian or arch linux image to our devices.
Sent from my HTC PH39100 using Tapatalk 2
Archector said:
It would be nice to install a custom arch linux or a debian netinstall with only the necessary things to work, fluxbox, xfce, lxde or some lightwheight desktop manager and see what happens. With the micro usb 2 hdmi cable and attached to a big screen it would be a real killer.
With some time I can prepare a custom debian or arch linux image to our devices.
Click to expand...
Click to collapse
The micro usb to hdmi is an MHL adapter. And yes, it makes it awesome.
LOA has a working debian image (http://sourceforge.net/projects/linuxonandroid/files/Debian/Image/) and are working on Arch.
A bare bones Arch installation with LXDE would be amazing, but alas, I have no spare time for side-projects anymore =(. I'm sure I wouldn't be the only one very appreciative if you could put it together.
I'm personally thinking about doing a portable HDD installation of a completely barebones Ubuntu from CLI, and just dropping pure XFCE on it. I think I've just found my testing platform.
I just made the switch from Mint Debian Edition to Arch. I love it, but I just can't get used to XFCE. Gnome 3 is just too awesome.
However, if I had Arch with LXDE / XFCE on the Vivid, I would probably replace a few computers with Monitor+Keyboard+Mouse+MHL terminals.
kxhawkins said:
I just made the switch from Mint Debian Edition to Arch. I love it, but I just can't get used to XFCE. Gnome 3 is just too awesome.
Click to expand...
Click to collapse
I like Gnome 2 and 3. LXDE has a few issues with the way it runs hardware (primarily its ability to manage laptop touchpads) as tested on Lubuntu 11.10, and that's when I made the switch to using XFCE instead. I'm not really a fan of Unity.
Anybody know why I get this error when running the scripy?
No, that's strange. Have you tried with the Terminal Emulator from OP?
And I know it shouldn't matter, but try cd'ing into /sdcard/ubuntu and then trying to execute the sh.
kxhawkins said:
No, that's strange. Have you tried with the Terminal Emulator from OP?
And I know it shouldn't matter, but try cd'ing into /sdcard/ubuntu and then trying to execute the sh.
Click to expand...
Click to collapse
Same result with terminal/cding, .
Try better terminal emulator app that worked for me.
Sent from my HTC PH39100 using xda premium
Mjones307 said:
Try better terminal emulator app that worked for me.
Sent from my HTC PH39100 using xda premium
Click to expand...
Click to collapse
Same result. 'qt' isn't even in the script so I don't know what's up. I can run other other scripts np.

Create, Edit & Install A Custom Watch Face for the Gear 2 Neo

This is not a full blown, how to program tutorial. It's a simple "Getting started with Tizen SDK for Wearables"
First, you will need to Download and Install the Tizen SDK for Wearables.
Once installed, Start the Tizen IDE.
We need to make a quick emulator to emulate our Gear 2 Neo.
On the lower left panel, the Connection Explorer, click on the first icon to start the Emulator Manager.
Click "Add New".
Choose a Name in the Detail panel, ie 'Gear2Neo'
Change the 'Density' to 278. Leave the rest of the settings default.
Click [Confirm]
Give it a moment to create your emulator.
Now your Gear 2 Neo emulator has been created.
Start your emulator by clicking the blue 'Play/Run' button at the bottom of your newly created emulator.
You can minimize the Connection Explorer now.
Once the emulator starts, you can choose to right click on it, and click "Always on top"
Next, Maximize the Tizen IDE.
Let's start playing with a sample project.
Click File > New > Tizen Wearable Web Project.
In the new window, click Sample > Web App > ClockWidget > and choose a Project name (ie. MyWatchFace)
You will now be back to the Tizen IDE and you will have a project (MyWatchFace?) in the Project Explorer.
Double click on the name of the project and you will see the project files.
You can edit these with custom images and code or you can just test the stock project.
At the top of the Tizen IDE, click on the green Play/Run button. This will install and start the project on the emulator. It will also build a file in your Project Explorer named the same as your project, but ending with a .wgt extention. In this case, MyWatchFace.wgt. This file can be pushed directly to your Gear 2 via USB using SDB.
At this point you should have a pretty plain and simple black watchface on your emulator thanks to the sample we just built, but let's add a custom background.
Make a custom 320x320 pixel image to use as a background with photoshop, gimp, etc. I'll name mine 'mywatchface.jpg'. Now paste it into your Project Explorer.
While you are in the Project Explorer, double click on the css folder.
Next, double click on the style.css to open that style file.
Locate the background: #000 line and replace it with this line.. background: url(../mywatchface.jpg);
Click the Save icon to save the style.css.
Click the green Play/Run button to install and build the new version.
If you don't see the new watch face load immediately on the emulator, you may need to go into settings on the emulator and select the new watch face.
Now that we have played with the ClockWidget sample and edited the css to add a custom background, we can play around with java coding and more down the road, but let's put this watch face onto our Gear 2 Neo.
You will need to copy the MyWatchFace.wgt file that was built in the Project Explorer into the same directory that your SDB.exe is located... (ie. C:\Tizen\tizen-wearable-sdk\tools)
It's easier if you make sure that the emulator is no longer running.
Turn on USB Debugging (Settings/Gear Info) and then plug your watch into your PC/Laptop via USB.
If you have issues with your computer detecting your watch, you may need to install the Samsung USB drivers for your watch.
Start a CMD Prompt
Switch to the directory with the SDB.exe and MyWatchFace.wgt
Run a simple test to see if the watch is being seen..
Type: sdb devices
If you get an error, something is wrong. You should see "List of devices attached" and one should be a series of numbers and letters and display as "SM-R381"
Now that you know the device can be seen, you can push your watch face to the Gear 2 Neo.
Type: sdb install MyWatchFace.wgt
You will see text scroll by and then it will indicate that it is done. You should now have a new watch face on your watch!!
To manually uninstall the watch face, you will need to look at in your Project Explorer, Open the config.xml and click the Source tab at the bottom to locate the package id for this app.. In my case, it's package="rlfNgozRkA"
Type: sdb uninstall rlfNgozRkA
Now have fun. Share your experiences, ask questions.. and most of all.. Share your custom watch faces here for everyone. As a community we can all help each other learn how to program for our Tizen wearables.
<- Please click Thank You!
Breach said:
This is not a full blown, how to program tutorial. It's a simple "Getting started with Tizen SDK for Wearables"//cut//Thank You!
Click to expand...
Click to collapse
Thank you for this .. . it is a great way for us to start!
I actually would like to make a 24 hour analogue watch face --something like military time or international time, but to start off this will be very helpful!
I noticed when I DL the Tizen SDK, I thought it asked me to install Java --how much of that do I need to install (there seem to be several Java options for my Windows 7 64bit system! Or, can I skip that?
sorry to bug you with such a basic question, but I am trying to get it right step-by-step! :good:
Awesome, Thanks for taking the time to make this :victory:
markbc01 said:
Thank you for this .. . it is a great way for us to start!
I actually would like to make a 24 hour analogue watch face --something like military time or international time, but to start off this will be very helpful!
I noticed when I DL the Tizen SDK, I thought it asked me to install Java --how much of that do I need to install (there seem to be several Java options for my Windows 7 64bit system! Or, can I skip that?
sorry to bug you with such a basic question, but I am trying to get it right step-by-step! :good:
Click to expand...
Click to collapse
I already had Java JDK installed, but you can grab it here if you need it...
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7-netbeans-download-432126.html
Once installed, you will probably want to put it into your Environmental Variables.. Just right click on the "This PC" icon on your desktop. Then click 'Properties' and then 'Advanced System Settings', then click the [Enviromental Variables] button. Scroll down until you find PATH. It should have a several paths, add the following to the beginning... C:\Program Files\Java\jdk1.7.0_51\bin; (Note that this path will depend on where you installed the Java JDK and the version)
You can save it. To test it.. Open a CMD Prompt and type javac and if you get an error, something didn't work.
neonfreak20 said:
Awesome, Thanks for taking the time to make this :victory:
Click to expand...
Click to collapse
It was my pleasure. I am learning too.. but I figured I would share what I learn so that we can all learn together..
.
.
thank you soo much for this , had this installed for a while now been playing around a bit but this has been so helpful.
only problem I have is my background image isn't showing up ,
I have background: url(../mywatchface.jpg); set in the style.css and pasted "mywatchface.jpg" into "mywwatchface" project but when I set the above and hit save then the green start, it loads however the watch emulator that is open doesn't change , and I have no errors in the problems box.
ex-28 said:
thank you soo much for this , had this installed for a while now been playing around a bit but this has been so helpful.
only problem I have is my background image isn't showing up ,
I have background: url(../mywatchface.jpg); set in the style.css and pasted "mywatchface.jpg" into "mywwatchface" project but when I set the above and hit save then the green start, it loads however the watch emulator that is open doesn't change , and I have no errors in the problems box.
Click to expand...
Click to collapse
I was having this issue also, and it may not be the answer to your issue but to the right of the play button (to run it on the emulator), there is a dropdown. Make sure you select the one you want to run. By default, mine kept running the same one.
thanks for the reply but I wonder if this has something to do with it .
when the emulator opends , I get an error see screen shot.
compositor warning your screen does not support OpenGL.
Falling back to software engine.
when I click ok I get the watch face but still no background under the play button menue its set to mywatchface
im running windows 7 Enterprise 32 bit.
trying to good it but all I can come up with is for Linux users.
ex-28 said:
thank you soo much for this , had this installed for a while now been playing around a bit but this has been so helpful.
only problem I have is my background image isn't showing up ,
I have background: url(../mywatchface.jpg); set in the style.css and pasted "mywatchface.jpg" into "mywwatchface" project but when I set the above and hit save then the green start, it loads however the watch emulator that is open doesn't change , and I have no errors in the problems box.
Click to expand...
Click to collapse
Is the image the proper size (320 x 320)? Are you sure you saved it as a jpg? (If you save as a png or something else, you will need to edit the background url.) Are you sure the mywatchface.jpg is in the root of your project and not in the css or js folder? Are you sure there is no typo in your style.css?
I noticed that in your comment, there is a typo in your project name. Is there a typo in your project name or only in your comment above?
Breach said:
Is the image the proper size (320 x 320)? Are you sure you saved it as a jpg? (If you save as a png or something else, you will need to edit the background url.) Are you sure the mywatchface.jpg is in the root of your project and not in the css or js folder? Are you sure there is no typo in your style.css?
I noticed that in your comment, there is a typo in your project name. Is there a typo in your project name or only in your comment above?
Click to expand...
Click to collapse
type only in comment as far as I see. and I belive the image is in the correct folder.
mywatchface.jpg looking at it it was at 320x240 changed it now to 320x320.
testing in a second here
yup same results wont load the background I just see the black background with a white digital watch and the date under it as in screenshot.
sorry I attached screenshot now forgot it.
ex-28 said:
type only in comment as far as I see. and I belive the image is in the correct folder.
mywatchface.jpg looking at it it was at 320x240 changed it now to 320x320.
testing in a second here
yup same results wont load the background I just see the black background with a white digital watch and the date under it as in screenshot.
sorry I attached screenshot now forgot it.
Click to expand...
Click to collapse
What are the settings in your emulator?
ex-28 said:
thank you soo much for this , had this installed for a while now been playing around a bit but this has been so helpful.
Click to expand...
Click to collapse
What version of the Tizen for Wearables IDE are you running? Version : 1.0.0b1 ?
Breach said:
What are the settings in your emulator?
Click to expand...
Click to collapse
just clock and display
helps if I select the watch face I guess.,. lol now I get it , thank you soo much
Breach said:
What are the settings in your emulator?
What version of the Tizen for Wearables IDE are you running? Version : 1.0.0b1 ?
Click to expand...
Click to collapse
running
Version : 1.0.0b2
Build id : 20140411-1449
ex-28 said:
helps if I select the watch face I guess.,. lol now I get it , thank you soo much
Click to expand...
Click to collapse
Glad we got it sorted out. Enjoy.. After you get it tweaked the way you like, give it a custom name and feel free to share your watchface.wgt here for everyone to try out.
Breach said:
Glad we got it sorted out. Enjoy.. After you get it tweaked the way you like, give it a custom name and feel free to share your watchface.wgt here for everyone to try out.
Click to expand...
Click to collapse
maybe add that to the op that once you make the changes you have to go into settings on the emulator and select the new watch face , lol , I just had a brain fart moment there. but totally forgot and maybe helpful for new users
ex-28 said:
maybe add that to the op that once you make the changes you have to go into settings on the emulator and select the new watch face , lol , I just had a brain fart moment there. but totally forgot and maybe helpful for new users
Click to expand...
Click to collapse
Done.
only problem I had I was getting an error so I deleated my project compleatlly and started over , but its still throwing the same error.
when I click on the green Play/Run button to start the project under problems window I have Description Resource Path Location Type
Expected '===' and instead saw '=='. main.js /MyWatchFace/js line 135 JavaScript Problem
it highlights this if (e.keyName == 'back') {
removed and restarted it again and same thing. any ideas ?
this is happening before I make any changes to any files , and just following the steps in op
Here are a couple very basic animated analog watch faces as samples..
.
them are nice ! iris pulse looks good
Q is there anyway to have shortcuts at the bottom on an analog clock ? just wondering if possible.
and when we pop a .wgt into the tools folder and install it via cmd , how do you uninstall it ? as theres no package id in the sdk anymore
ex-28 said:
only problem I had I was getting an error so I deleated my project compleatlly and started over , but its still throwing the same error.
when I click on the green Play/Run button to start the project under problems window I have Description Resource Path Location Type
Expected '===' and instead saw '=='. main.js /MyWatchFace/js line 135 JavaScript Problem
it highlights this if (e.keyName == 'back') {
removed and restarted it again and same thing. any ideas ?
this is happening before I make any changes to any files , and just following the steps in op
Click to expand...
Click to collapse
That makes no sense, first because there was no change made to the main.js, and secondly because that is the eventListener and it should be '==' and not '==='

Categories

Resources