Reply
Thread Tools
ibrakalifa's Avatar
Posts: 1,583 | Thanked: 1,203 times | Joined on Dec 2011 @ Everywhere
#51
subscribed sir,
__________________
~$
~#
 
Posts: 47 | Thanked: 41 times | Joined on Feb 2012
#52
Edit 3: Debian-m5-sulu up and running. Mr Qole, you Sir deserve every last Hertz of your N950's processor. What's more amazing is that it doesn't even appear to load the CPU while idle :O :O

Looking forward to many happy years of hacking with the N9.

P.S. Everything was done in normal mode. I have opensh and aegisctl installed along with Inception, it is all possible.

Last edited by user/zero; 2012-03-17 at 23:40.
 
Posts: 77 | Thanked: 42 times | Joined on Oct 2011 @ Sofia, Bulgaria
#53
Is it feasible to run a full bown Debian chroot not from an image, but from a dedicated partition? That would be awesome!
 
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#54
Originally Posted by qole View Post
I am linking to the tarball of my scripts. It is the beginnings of a .deb package, but I haven't figured out what I need to add to a .deb in Open Mode yet, and I wanted to get these scripts out there for you all to start using.

Basically just copy the files in the src/ directory into your phone's file system. I have made a "fake sudo" which is just an alias for "ssh root@localhost", but for it to work properly in scripts (i.e. no passwords), you should set up ssh key authentication.
Good news, I have success on running Easy Debian using Inception+opensh+"aegisctl -s" on my Nokia N9. Including LXDE, OpenOffice, etc. I will try to write a how-to-do-it (after recovering my N9, read below).

Bad news : it is not a good idea to replace "/etc/init/ssh.conf" because it is included in Aegis, see here more details. So I suggest to remove the "/src/etc/" folder of "HarmChom" (and explain what to edit in "sshd_config" or even "ssh.conf").

After copying the full content of "HarmChom/src/" and rebooting, ssh refused to accept connections on port 22. My attempts to fix this problem (removing openssh-server, etc) yielded a (almost) "bricked" N9. I am trying to recover it.

PS: I've recovered my N9 by flashing the firmware (so all software installed were lost). Ok, it is good because I will soon try to install Harmattan Open Mode (so Inception will be removed).
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.

Last edited by rcolistete; 2012-03-18 at 08:18. Reason: N9 recovered
 

The Following 2 Users Say Thank You to rcolistete For This Useful Post:
Posts: 92 | Thanked: 16 times | Joined on Jun 2011 @ Sacramento, CA USA
#55
BusyBox v1.20.0.git (MeeGo 3:1.20-0.1+0m7) built-in shell (ash)

Enter 'help' for a list of built-in commands.


~ # debian

sh: debian: Permission denied

~ # sh /bin/debian

Chroot dir specified: /.debian

/home/user/MyDocs/debian-m5-v3e.img.ext2 specified in ~/.chroot

/bin/debian: line 72: qchroot: Permission denied

~ #


Can someone help me please?
 
Posts: 245 | Thanked: 915 times | Joined on Feb 2012
#56
Originally Posted by vzp916 View Post
BusyBox v1.20.0.git (MeeGo 3:1.20-0.1+0m7) built-in shell (ash)

Enter 'help' for a list of built-in commands.


~ # debian

sh: debian: Permission denied

~ # sh /bin/debian

Chroot dir specified: /.debian

/home/user/MyDocs/debian-m5-v3e.img.ext2 specified in ~/.chroot

/bin/debian: line 72: qchroot: Permission denied

~ #


Can someone help me please?
Did you unzip the harmchom files into ~/MyDocs? If so, that won't work - put them anywhere outside of MyDocs and make sure the permissions are set correctly.
 
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#57
Now obsolete. See the easy-to-install Easy Debian Harmattan package.

Originally Posted by rcolistete View Post
Good news, I have success on running Easy Debian using Inception+opensh+"aegisctl -s" on my Nokia N9. Including LXDE, OpenOffice, etc. I will try to write a how-to-do-it (after recovering my N9, read below).
Detailed instructions to install Easy Debian to N9 (HarmChom) with Inception + opensh + aegisctl :

- see the 1st message of this topic to copy the content HarmChom.tgz to "/home/user";
- as user, in "/home/user" with Terminal :
$ mkdir HarmChom
$ tar -xvzf HarmChom.tgz
$ cd HarmChom/src/bin
$ chmod 755 *
$ devel-su
and type the password (rootme is the default one);
# cd ~user/HarmChom/src/bin
# cp * /bin/
# mkdir /.debian
# chmod 777 /.debian
# exit
- as user :
$ cd ~/HarmChom/src
$ cp -R home/* /home

- install the nano editor from Nokia Store, then from Terminal as user:
$ nano ~/.profile
and add the following line to the end :
export PATH=/sbin:/usr/sbin:$PATH
Now exit nano and Terminal, openning again the Terminal;

- check if the content of "/home/user/.chroot" is correct (pointing to the debian image file you want, etc);
- the default image is "~/MyDocs/debian-m5-v3e.img.ext2" which can be downloaded in compressed form (lzma format, 300 MB) from qole.files;
- using a desktop computer, uncompress .lzma file using :
$ 7z e debian-m5-v3e.img.ext2.lzma
7z is part of 7zip package for Linux, but there are other softwares for Linux and Windows for uncompressing lzma format. Copy the "debian-m5-v3e.img.ext2" file (1.5GB) from desktop PC to "/home/user/MyDocs/" directory of Nokia N9 using USB cable (ior WiFi, but using USB is faster);
- or using Nokia N9, become root, install "xz-utils" ("# apt-get install xz-utils"), copy "debian-m5-v3e.img.ext2.lzma" to "/home/user/MyDocs/", then, as user in Terminal :
$ cd ~/MyDocs
$ xz -d debian-m5-v3e.img.ext2.lzma

- install Inception, opensh and aegisctl, see the Inception web page and copy the 3 .deb files to some directory and type :
$ devel-su
and type the password (rootme is the default one);
# dpkg -i inception_0.1_armel.deb
# pasiv
confirming with yes;
# incept opensh_1.00_armel.deb
and type the password (rootme is the default one);
# incept aegisctl_1.2_armel.deb
and type the password (rootme is the default one);
# exit

- to start Easy Debian :
$ opensh
Once after reboot, inside opensh :
# aegisctl -s
Without the above command the chroot will not work !
# debian
so all command line softwares are available. All softwares can be launched outside LXDE, e.g., OpenOffice Writer :
[root@chroot: /] oowriter &
To toggle fullscreen :
[root@chroot: /] wmctrl -r writer -b toggle,fullscreen
So, in this case, oowriter doesn't match the title (check with "wmctrl -l"), but "writer".

Only 1st time configuration of LXDE, from 1st post of this topic, download xephwm and suxephwm to "/home/user/" of your Nokia N9/N950, then, inside debian :
[root@chroot: /]cd ~
[root@chroot: /]chmod +755 xephwm suxephwm
[root@chroot: ~]cp xephwm suxephwm /usr/bin

Finally, to launch the LXDE windows manager :
[root@chroot: ~] suxephwm
To launch using the "Debian LXDE" icon, edit using :
$ nano ~/.local/share/applications/lxde.desktop
and change the "Exec" line to :
Exec=/usr/bin/invoker --type=e /bin/opensh -c "debian suxephwm"
Save with "ctrl+o" then exit (ctrl+x). Now the icon works with Easy Debian + Inception.

The same Easy Debian image can be used on Maemo 4, Maemo 5 and MeeGo 1.2 Harmattan, so read the Easy Debian Wiki about using Easy Debian.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.

Last edited by rcolistete; 2012-08-05 at 19:38. Reason: Citation of Easy Debian Harmattan package
 

The Following 10 Users Say Thank You to rcolistete For This Useful Post:
Posts: 47 | Thanked: 41 times | Joined on Feb 2012
#58
Which image are you guys using? I've only tried debian-m5-sulu so far but the one Mr Qole was using for his demo also seemed very nice. Was it debian-m5-v3e?
 
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#59
Originally Posted by user/zero View Post
Which image are you guys using? I've only tried debian-m5-sulu so far but the one Mr Qole was using for his demo also seemed very nice. Was it debian-m5-v3e?
Yeah, I am using debian-m5-v3e from qole.files as a base image, so I have expanded it to 2GB and I am installing some programming/scientific softwares.

The Estel and Sulu images don't work with suxephwm, giving an error of +kb option unknown.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.
 

The Following User Says Thank You to rcolistete For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#60
Originally Posted by YavkatA View Post
Is it feasible to run a full bown Debian chroot not from an image, but from a dedicated partition? That would be awesome!
At least one Nokia N9 user has succeded partitionning.

But as Easy Debian on N9 is already fast, I am not sure that the work and risk is worth.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.

Last edited by rcolistete; 2012-03-18 at 14:12. Reason: Fixed misspelling
 

The Following User Says Thank You to rcolistete For This Useful Post:
Reply

Tags
chroot, debian, harmattan

Thread Tools

 
Forum Jump


All times are GMT. The time now is 18:05.