X Forwarding in webtop

Today at work we had a lot of meetings as we’ve move from getting the release out the door to developing the new features. That usually means lots of design meetings. During one of them, my coworker showed me that he was able to X forward Firefox 12 from his dev desktop to his webtop (He has an Atrix with a bionic lapdock that has been modified to work with his Atrix). So I thought I’d play around with mine in this regard. I got Google Chrome 18 working, and I was suprised that it was just as snappy if not more so then the Firefox 8 browser included in our webtop 1.2. I also got eclipse working, and it was very usable.

It’s very simple to get X Forwarding to work with any linux system. ssh -XC ipAddress -p Port

once you’re logged in, you can go and fire up a few programs and background them by adding an & at the end.

$ firefox &
$ eclipse &

cake walk.

Linux on Android

So my coworker sent me his daily link for me this morning, and it was on Arch Linux running on Android, more specifically the Asus Transformer Prime (Which I also have). It was neat seeing how he set up his environment to get a terminal with a chroot into Arch Linux.

I’ve been studying how Motorola got webtop working on the Atrix. This website is most helpful when trying to figure out what’s going on: http://sites.google.com/site/androidnothize/nebtop/webtop I’ve I’ve been Hacking on the Atrix’s webtop getting it just the way I like it. I’m writing this post now from my Atrix. Here’s a little bit about my current setup:

I’ve Rooted my Atrix. Then I followed a few steps to move webtop to the SD card: http://forum.xda-developers.com/showthread.php?t=1294523

Webtop2sd copies the webtop partition (osh) from the device to the sd card, and then remounts things so that webtop starts from the sd card not the internal flash. This allows you to give webtop much more space, (I’ve given mine 7GB out of my 16GB card). it also allows to you safely install things and tweak things to your hearts content without really damaging your original webtop.

After you get webtop2sd install and working, and you’ve setup your new webtop environment, you’ve got to setup lxterminal and fix apt-get dependencies. webtop2sd places a few new icons on the awn tool bar in webtop, and the webtop connector one allows you to install lxterminal and it begins the fixing of apt-get. (follow the directions in the xda thread above)

after you get your terminal all setup if you want to fully run apt-get without issues you need to run webtopscripts. http://code.google.com/p/webtopscripts/ is where they are located.  The latest version as of this writing is version 1.7. This version includes a new gui to walk you through the install. it takes a while, maybe 20 minutes? and prompts you several times. After you get through it, you are ready to start installing some fun software!

I’ve installed a few apps to make life more fun on my webtop.
sudo apt-get install abiword konversation ssh vim

I believe lxpanel is already installed, if not install lxde. So I swapped out AWN for lxpanel to give me more of a kde/windows star bar/menu feel, and it chews up about half the space of AWN does, so that’s really nice.

To get lxpanel to start at boot edit the start-oshwt-2.sh file in /usr/local/bin folder.

edit this file:
sudo vim /usr/local/bin/start-oshwt-2.sh

#! /bin/sh
### BEGIN INIT INFO
# Provides:          start_lxde2.sh
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: started by adas user at login
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib

. /lib/lsb/init-functions

log_action_msg "Will now start OSHWT 2 scripts"

# start OSHWT 2 scripts
sfalv -i "lxpanel"
#sfalv -i "awn-autostart"
sfalv -i "webtop-panel"
#sfalv -i "webtop-wallpaper"
sfalv -i "evbridge"
sfalv -i "window_switcher"
sr-test avahi_start &

as you can see I added lxpanel and removed awn-autostart and webtop-wallpaper. I’ve discovered that lxsession is already running and doesn’t need to be started.

after that reboot of the phone you’ll find a nice new panel to great you and lots of free ram.

Getting the most out of busybox

On XDA I’ve posted a little bit about busybox and what subprograms are inside. Here’s the link: http://forum.xda-developers.com/showthread.php?t=1509517

I’ve found busybox’s vi, find and grep most useful when I’m poking around in a terminal on my Motorola Atrix. I hope this helps someone, I believe busybox can be installed stand alone from the market, and is included in some other applications. Once you have busybox installed, sym linking it’s apps to the /system/bin (or something else on the path) makes Android a little bit more like linux.