maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [TUTORIAL-WIP] N900-LINUX: Ubuntu, Fedora and Archlinux (https://talk.maemo.org/showthread.php?t=66531)

qole 2010-12-19 10:25

Re: [TUTORIAL-WIP] Ubuntu, Fedora and Archlinux using Easy-Debian
 
The problem with Android is that it has no X-Server, so you can run command line Debian or you can run GUI apps in a VNC session. There's nothing like the cool stuff you can do in Maemo... yet. Someday, soon, someone might make an X Server for Android, and then... watch out! All of Linux will be available.

kingoddball 2010-12-19 20:13

Re: [TUTORIAL-WIP] Ubuntu, Fedora and Archlinux using Easy-Debian
 
Hi Qole,
I didn't mean to run Android on N900 via a chroot. That's been shot down already.

I meant is it possible to put MAEMO into a chroot?? :D
Run Maemo on top of Maemo. Then I might take that over onto a droid device. Android devices can run linux via chroot's, similar to how you guys do it with N900 :)

juandp77 2010-12-19 22:03

Re: [TUTORIAL-WIP] Ubuntu, Fedora and Archlinux using Easy-Debian
 
so if anyone want to try here it is ubuntu-n900.deb

if you had previous version please do this:

Code:

sudo rm /usr/bin/ubuntu-lxde
also remove all the desktop entries

now install the .deb file and open ubuntu chroot

Code:

nano /usr/bin/xephwm5
copy this:

Code:

#!/bin/sh
##################################
#Change these two variables to the WM of your choice.
WMNAME="$1" ; WMEXEC="$2"
[ "x$WMNAME" != x ] ||  WMNAME="Xephyr"
[ "x$WMEXEC" != x ] ||  WMEXEC="startlxde2"
##################################
export DISPLAY=:0
export TSLIB_TSDEVICE=/dev/input/event3
#export TSLIB_CALIBFILE=/etc/pointercal
export GTK_MODULES=libgtkstylus.so
zenity --display=:0 --info --text="Welcome to Ubuntu LXDE. This window is needed to gain keyboard focus in LXDE. Click OK." &
/usr/bin/Xephyr :2 -screen 800x480 -br -ac &
while [ "x$PARWIN" = "x" ] ; do
  # wait for Xephyr window to appear
  export PARWIN=`wmctrl -l | grep -i $WMNAME | awk '{print $1}'`
  echo "($PARWIN)"
done
DISPLAY=:2 ; habak -mf /usr/share/fonts/truetype/DroidSans-Bold.ttf \
    -ht 'Ctrl-back to return to dashboard.'
DISPLAY=:0 ; wmctrl -i -r $PARWIN -T 'Easy Ubuntu'
wmctrl -i -r $PARWIN -b toggle,fullscreen
while [ "x$TWOWIN" = "x" ] ; do
  # wait for Zenity dialog to pop up...
  export TWOWIN=`wmctrl -l | grep -i Information | awk '{print $1}'`
done
#echo window id: $TWOWIN
wmctrl -i -a $TWOWIN
#/sbin/qobi-wmhint-fix $PARWIN
/usr/bin/set-focus $PARWIN
wmctrl -i -a $PARWIN
/usr/bin/$WMEXEC
killall Xephyr
export DISPLAY=:0

save it and exit now open Ubuntu LXDE

let me know if it works

Enjoy it!!!

kingoddball 2010-12-19 22:57

Re: [TUTORIAL-WIP] Ubuntu, Fedora and Archlinux using Easy-Debian
 
Whats the differences with this new and the original one you posted?

juandp77 2010-12-19 23:04

Re: [TUTORIAL-WIP] Ubuntu, Fedora and Archlinux using Easy-Debian
 
Quote:

Originally Posted by kingoddball (Post 900170)
Whats the differences with this new and the original one you posted?

.deb package install all the scripts automatically,
keyboard focus fixed
power button fixed

some scripts are:

ubbie: starts ubuntu chroot shell as user (doesn't evaluate /home/user/.profile)

ubbie command: runs ubuntu command as user (if command includes file names, those need to be given with absolute path)

sudo ubuntu: starts ubuntu chroot shell as root (this is the command issued by the "Ubuntu chroot" app)

closeall: unmount debain and ubuntu at the same time in order to be able to use usb mass storage mode

frostbyte 2010-12-19 23:09

Re: [TUTORIAL-WIP] Ubuntu, Fedora and Archlinux using Easy-Debian
 
Quote:

Originally Posted by juandp77 (Post 900140)
so if anyone want to try here it is ubuntu-n900.deb

if you had previous version please do this:

Code:

sudo rm /usr/bin/ubuntu-lxde
also remove all the desktop entries

now install the .deb file and open ubuntu chroot

Code:

nano /usr/bin/xephwm5
copy this:

Code:

#!/bin/sh
##################################
#Change these two variables to the WM of your choice.
WMNAME="$1" ; WMEXEC="$2"
[ "x$WMNAME" != x ] ||  WMNAME="Xephyr"
[ "x$WMEXEC" != x ] ||  WMEXEC="startlxde2"
##################################
export DISPLAY=:0
export TSLIB_TSDEVICE=/dev/input/event3
#export TSLIB_CALIBFILE=/etc/pointercal
export GTK_MODULES=libgtkstylus.so
zenity --display=:0 --info --text="Welcome to Ubuntu LXDE. This window is needed to gain keyboard focus in LXDE. Click OK." &
/usr/bin/Xephyr :2 -screen 800x480 -br -ac &
while [ "x$PARWIN" = "x" ] ; do
  # wait for Xephyr window to appear
  export PARWIN=`wmctrl -l | grep -i $WMNAME | awk '{print $1}'`
  echo "($PARWIN)"
done
DISPLAY=:2 ; habak -mf /usr/share/fonts/truetype/DroidSans-Bold.ttf \
    -ht 'Ctrl-back to return to dashboard.'
DISPLAY=:0 ; wmctrl -i -r $PARWIN -T 'Easy Ubuntu'
wmctrl -i -r $PARWIN -b toggle,fullscreen
while [ "x$TWOWIN" = "x" ] ; do
  # wait for Zenity dialog to pop up...
  export TWOWIN=`wmctrl -l | grep -i Information | awk '{print $1}'`
done
#echo window id: $TWOWIN
wmctrl -i -a $TWOWIN
#/sbin/qobi-wmhint-fix $PARWIN
/usr/bin/set-focus $PARWIN
wmctrl -i -a $PARWIN
/usr/bin/$WMEXEC
killall Xephyr
export DISPLAY=:0

save it and exit now open Ubuntu LXDE

let me know if it works

Enjoy it!!!

Thanks again, I'll give this one a shot. Also, what's the latest on Arch repos? All I'm after, at least for now, is a web browser + jre/jdk so I can run a java applet via the web browser.

juandp77 2010-12-19 23:14

Re: [TUTORIAL-WIP] Ubuntu, Fedora and Archlinux using Easy-Debian
 
Quote:

Originally Posted by frostbyte (Post 900174)
Thanks again, I'll give this one a shot. Also, what's the latest on Arch repos? All I'm after, at least for now, is a web browser + jre/jdk so I can run a java applet via the web browser.

hi frostbyte currently there aren't news about archlinux, what I'm planing to do is to use the plugbox rootfs but there is a problem with gcc version and xorg-server, some developer told me that they are planing to launch a new release in a few weeks that fixes that issue so meanwhile I'm working in improving ubuntu

frostbyte 2010-12-19 23:31

Re: [TUTORIAL-WIP] Ubuntu, Fedora and Archlinux using Easy-Debian
 
Ok, thanks for the update. I'm a fan of Arch (still learning) but happy to run with Easy Debian/Ubuntu.

juandp77 2010-12-20 00:03

Re: [TUTORIAL-WIP] Ubuntu, Fedora and Archlinux using Easy-Debian
 
@frostbyte, to be honest with you I started all this with the aim of get archlinux on my n900 (I'm a archlinux fan to), later I realize that this could be used in others arm based linux distro

So guys if you installed please let me know if there are some problem or if it works well. Thanks

try-alls 2010-12-20 00:12

Re: [TUTORIAL-WIP] Ubuntu, Fedora and Archlinux using Easy-Debian
 
installed your deb file but i need the ubuntu install from extras havin searched repos its not the can i use the .lzma's from you OP


All times are GMT. The time now is 21:58.

vBulletin® Version 3.8.8