maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Chroot Scripts for Harmattan Open Mode (https://talk.maemo.org/showthread.php?t=82114)

YavkatA 2012-05-11 01:31

Re: Chroot Scripts for Harmattan Open Mode
 
I'll upload it and give you a link during the weekend.

meego_leenooks 2012-05-11 02:29

Re: Chroot Scripts for Harmattan Open Mode
 
ok, thank you

hardkorek 2012-05-11 09:46

Re: Chroot Scripts for Harmattan Open Mode
 
It is possible to create also smaller image for 16GB version?

www.rzr.online.fr 2012-05-11 10:09

Re: Chroot Scripts for Harmattan Open Mode
 
4GB will fit in your 16GB , but I am sure I can shrink it to 1GB by uninstalling unwanted stuff ...

BTW, I am wondering if we can a full hildon/gtk env that way, will it be any use ?

meego_leenooks 2012-05-11 11:31

Re: Chroot Scripts for Harmattan Open Mode
 
> I am sure I can shrink it to 1GB by uninstalling unwanted stuff ...

it will be great.

YavkatA 2012-05-11 23:12

Re: Chroot Scripts for Harmattan Open Mode
 
I'll try to remove some unnecessary packages and provide 2 versions of the image:
~ 1 - 1.5 GB image for 16GB versions
3.9 GB image for 64 GB versions

I'm still working on removing locales and other unneeded packages.

If you have any requests about what you want included in the image, I'm listening.

www.rzr.online.fr 2012-05-12 00:18

Re: Chroot Scripts for Harmattan Open Mode
 
mosh
autossh
screen
debbootrap
nfs
samba
hildon but it moved out of debian afaik ?

Btw are non debian scripts utils packaged and published as deb somewhere ?

Also I am wondering if there are stuff to resurect from mer.deb project ?

Feel free to ping me I have interest in this project , do you ?

https://mobile.twitter.com/rzrfreefr...05332359688192

YavkatA 2012-05-12 09:13

Re: Chroot Scripts for Harmattan Open Mode
 
yavor-debian-lite chroot image 0.1.0

Total: 1.7 GB
Used Space: 1.4 GB
Free Space: 0.3 GB


Based on Debian Squeeze

Features:
- LXDE desktop environment
- Multimedia: Aqualung, MPD ( and MPC client), VLC, TuxGuitar
- Graphics: GIMP
- Internet: linuxdcpp, Iceweasel (a.k.a. Firefox for Debian)
- Office: OpenOffice, GNUmeric

Services:
- Nginx (Serves MyDocs with HTTP auth)
- Samba (Serves MyDocs with user auth)
- OpenVPN (not configured)
- NFS ( client-side only, server-side needs nfsd kernel module)
- Mosh

Dev:
- python 2.6, 3.1
- Java, jedit
- perl
- build-essential
- screen
- debootstrap
- autossh

In the works:
- CUPS
- Avahi
- TOR


Default Terminal: bash

Download Link:
click here
click here to download torrent ( temporary, much faster )

MD5:
Code:

432012a45aa967ae667ed05d734ec69b
Instructions:
(Assuming you are running in open mode, additional steps might be required for Inception)

1. download image and copy to /home/user/MyDocs/.chroot/

2. download javispedro's xmimd from here and install it

3. download rcolistete's xmimd.sh to your /home folder

4. download qole's HarmChom scripts, extract somewhere and copy the contents of HarmChom/src to / (skip /HarmChom/src/etc for now )

5. open /home/user/.chroot and edit the IMGFILE line as follows:
Code:

IMGFILE=/home/user/MyDocs/.chroot/yavor-debian-lite.img.ext4
to enter chroot shell (bash):
Code:

# debian
to enter chroot and execute [cmd]:
Code:

# debian [cmd]

change timezone:
Code:

debian# dpkg-reconfigure tzdata
change password:
Code:

debian# passwd
change password for samba share:
Code:

debian# smbpasswd
change password for nginx web auth:
Code:

debian# htpasswd /etc/nginx/htaccess root
to start LXDE:
Code:

debian# xephwm-id
to enable VKB (from an outside terminal):
Code:

$ ~/xmimd.sh
to stop chroot (from an outside terminal):
Code:

# closechroot
Big thanks to javispedro, qole and rcolistete for making this possible! :)

I have another image, identical to this one, which has been expanded to 3.9 GB, so plenty of room to play around and install new things. However, I haven't found a file sharing service that allows that kind of file size (yet).

Questions and suggestions welcome!

www.rzr.online.fr 2012-05-12 09:36

Re: Chroot Scripts for Harmattan Open Mode
 
thanks

13hours to go to get :

http://depositfiles.com/files/5llm5n...-lite.img.ext4

Let me suggest to share it on p2p too

I will try it out today ...and add a sshserver in higher port ..

BTW is LXDE suitable for a touchscreen ?

michaelmhk 2012-05-12 14:09

Re: Chroot Scripts for Harmattan Open Mode
 
Quote:

Originally Posted by javispedro (Post 1190976)
http://depot.javispedro.com/nit/harm/xmim/landscape.png

Here's a first release: http://depot.javispedro.com/nit/harm..._1.0_armel.deb. xmim should be installed in Harmattan, not inside Easy Debian.

Currently it is very hard to set up, so not for the faint of heart. It can be scripted up if it proves to be something that is worthwhile for the average chroot user.

You need two terminals; one inside Easy Debian and the other outside of it. Best to use SSH otherwise you'll end up tired of window switching and something will probably crash in the middle :P

1. After booting Easy Debian, you will first need to get the window ID of the _Xephyr_ window. This can be done from the terminal that is outside of Easy Debian. Just run xwininfo and tap once on Xephyr. xwininfo will print something like:
Code:

xwininfo: Window id: 0x4200002 "Xephyr on :1 ( ... )"
Here, 0x4200002 is the window id.

2. Now you need to start xmim (I hope you installed the above .deb by now!). Run:
Code:

xmimd -d :1 -x 0x4200002 -v
Replace 0x4200002 with the xephyr window id you got in the above step.

A detailed explanation: -d means the X11 display to use. So we point it to the Xephyr one (":1").
"-x WIN" means "xephyr mode". It will assume that the virtual keyboard is running on a different X Server, and that on THAT other X Server the window id for the Xephyr window is WIN.
Failure to get this option right will cause the virtual keyboard to never popup or to pop up "in the background"!

3. Now get into the terminal inside the chroot. You have to set a few environment variables:
Code:

export GTK_IM_MODULE=xim
export XMODIFIERS="@im=xmim"

4. You can now run any Easy Debian application from that terminal! For example, "oowriter".

As soon as you focus a text box, the virtual keyboard will popup! You can pop it down by "swiping it down", or by tapping outside the text field, as usual. If you unfocus the text box and focus it again the virtual keyboard will show again.

xmim should also print some stuff such as "XIM_OPEN", etc. Otherwise, communication between oowriter and xmim is broken.


There are also some added benefits for N950 users: sticky keys (Fn, Shift, etc) and the SYM key now work as they should, as well as long-pressing a key. The virtual keyboard will not pop up if the real keyboard is open.

Also, xmim can be used with forwarded _desktop_ X11 apps too! You just have to drop the -d and -x options to let it connect to the main X server in the N9/50.

Great! I used it with java and it works great.
However, Chinese character input become symbol(no Unicode support?), Swype copy & paste did not work.


All times are GMT. The time now is 17:40.

vBulletin® Version 3.8.8