[chroot] HP TouchPad

Install Arch Linux ARM on other devices.

Re: [chroot] HP TouchPad

Postby Varemenos » Thu Sep 22, 2011 3:37 pm

Can someone prepare a "Beginners guide" similar to the one of Arch Linux's wiki?
mostly getting a desktop environment ready and stuff
Varemenos
 
Posts: 21
Joined: Tue Aug 30, 2011 6:44 am

Re: [chroot] HP TouchPad

Postby dodgejcr » Thu Sep 22, 2011 6:13 pm

$this->bbcode_second_pass_quote('crimsonredmk', 'd')odjecjr, you win many internets, expect them to be delivered shortly. :D I'll coordinate with webos-internals to get our package included into Xecutah so editting their file won't be necessary.

We also have to slim down the chroot a little bit. Ubuntu's was ~65MB, ours is bigger - not good for a lightweight distro!


Sounds great! Also let me know about details, icon, changelog, and whatever else needs to be packaged into that ipk so that we can make it look purdy. Im all over it if webos-internals decides to change the way they handle it again. I will find the new methods and implement them quick, fast, and in a hurry. Crimsonredmk, I hope you dont mind but I wrote up a little tutorial on the android development site that I am a member of. They recently started a board for the touchpad and I want to get some of the guys that dont know about this place a little push in the right direction. The thread is here: http://forum.sdx-developers.com/index.php?topic=17570.0

$this->bbcode_second_pass_quote('Varemenos', 'C')an someone prepare a "Beginners guide" similar to the one of Arch Linux's wiki?
mostly getting a desktop environment ready and stuff


A beginners guide would be kind of a mess but I found that LXDE is about the most functional DE available for the chroot. XFCE is almost there but I have strange button issues with it (letter P does not work for some reason). Installing LXDE is simple.
$this->bbcode_second_pass_code('', 'pacman -S lxde')
It will give you the options of which packages to select. Select 1 2 3 4 5 6 7 8 9 (10 or 11 but not both) 12 13 14 15. Be sure to only select one lxsession (10 or 11) as they will conflict with one another. After it is installed you can start it by simply:
$this->bbcode_second_pass_code('', 'lxsession')

You will notice that there is no official package for pcmanfm (preferred file manager for LXDE) but I have found the package with some googlefu. I have no idea where these packages come from or who they were by or else I would give proper credit, but I checked them out and they seem safe and legit. You can find them HERE. To install download both libfm and pcmanfm and execute:
$this->bbcode_second_pass_code('', 'pacman -U libfm-0.1.16-5-armv7h.pkg.tar.xz pcmanfm-0.9.9-6-armv7h.pkg.tar.xz #use tab completion, it will help')
Maybe we can get an official package in the armv7 repo sometime :D

chromium-dev is available in the repo and runs nicely. Install it with:
$this->bbcode_second_pass_code('', 'pacman -S chromium-dev')
You will notice that it does not allow you to run as root by default so you need to run it specifying the user data dir:
$this->bbcode_second_pass_code('', 'chromium-dev --user-data-dir /root/')
should work fine or you can point it else where. Other than that, its pretty straight forward. Let me know if you have any particular questions as I have been messing with it for a while now.
dodgejcr
 
Posts: 19
Joined: Thu Sep 01, 2011 5:40 am
Location: Freenode: #gen-dev #sdx-developers #archlinux-arm

Re: [chroot] HP TouchPad

Postby Varemenos » Thu Sep 22, 2011 6:54 pm

Thanks man, my 3 main problems are:
1) i cant find rc.conf which is kinda weird :? (i only ran the arch linux x86 version so far so idk how things are in the ARM one).
2) is there a way to make it the chroot login as user instead of root?
3) proper shutdown/reboot, is there any way to do it? or do we just swipe up and close the window? cause i didnt find a way to do it properly, yet.

Thats pretty much it for now
Varemenos
 
Posts: 21
Joined: Tue Aug 30, 2011 6:44 am

Re: [chroot] HP TouchPad

Postby dodgejcr » Thu Sep 22, 2011 7:07 pm

$this->bbcode_second_pass_quote('Varemenos', '
')1) i cant find rc.conf which is kinda weird :? (i only ran the arch linux x86 version so far so idk how things are in the ARM one).


Yeah its not in the chroot. Im not an expert at all and this is really one of the first chroot environments I have delt with but my only guess is that most of the configuration in the rc.conf (daemons, modules, networks) is all done by the device that is mounting the FS as chroot (the touchpad in this case) so the rc.conf isnt needed. I could be wrong and if I am, please correct me as I have a thirst for knowledge and the more I know the better.


$this->bbcode_second_pass_quote('Varemenos', 'T')hanks man, my 3 main problems are:
2) is there a way to make it the chroot login as user instead of root?


I havent really found a simple way. I have tried editing the chroot-wrapper.sh to do a simple su - (username) after the mounts but that doesnt work out so well. I will keep looking through the files but again, this being a chroot Im not sure if that is possible.

$this->bbcode_second_pass_quote('Varemenos', 'T')hanks man, my 3 main problems are:
3) proper shutdown/reboot, is there any way to do it? or do we just swipe up and close the window? cause i didnt find a way to do it properly, yet.
Thats pretty much it for now


Proper shutdown is pretty much just swiping the card up. The 'chroot' is just a filesystem mounted and the root dir changed. By swiping the card up and closing, you basically unmount that filesystem and it stays exactly the same way it was for the next mount (minus running processes and whatnot). You could technically have a script unmount the fs but it is not needed.
dodgejcr
 
Posts: 19
Joined: Thu Sep 01, 2011 5:40 am
Location: Freenode: #gen-dev #sdx-developers #archlinux-arm
Top

Re: [chroot] HP TouchPad

Postby Varemenos » Fri Sep 23, 2011 1:30 pm

Thanks for your fast replies man,

I also tried the chroot-wrapper.sh too but couldnt get it to work. I also thought it might be possible to make chroot run another sh script at startup but im not sure how to make it work.

Anyway, another thing i noticed is since im wifi connection sometimes package retrievals with pacman returns errors, do you think this will be a problem? Im talking about instead of downloading all the dependencies it fails to download 1 or 2 of them.

And 1 more thing, did you find a way to perform a right-click?
Varemenos
 
Posts: 21
Joined: Tue Aug 30, 2011 6:44 am

Re: [chroot] HP TouchPad

Postby dodgejcr » Fri Sep 23, 2011 3:14 pm

$this->bbcode_second_pass_quote('Varemenos', 'T')hanks for your fast replies man,

I also tried the chroot-wrapper.sh too but couldnt get it to work. I also thought it might be possible to make chroot run another sh script at startup but im not sure how to make it work.

Anyway, another thing i noticed is since im wifi connection sometimes package retrievals with pacman returns errors, do you think this will be a problem? Im talking about instead of downloading all the dependencies it fails to download 1 or 2 of them.

And 1 more thing, did you find a way to perform a right-click?


I will play with the running a script inside of a script later today, it may not work but you never know until you try. Figure in the chroot-wrapper or the xterm script. There is also the upstart script that starts everything with xecutah that I will play with as well. Some times the applications will break if mess with them too much but I will alter it before packaging it up to make sure things go smoothly.

I dont know of a simple way to emulate a right click but I would assume there is some way. Maybe an application for linux can handle it. If not maybe some tweaking with xorg. Beats me but I havent really found that to be too crippling on this chroot just yet.
dodgejcr
 
Posts: 19
Joined: Thu Sep 01, 2011 5:40 am
Location: Freenode: #gen-dev #sdx-developers #archlinux-arm
Top

Re: [chroot] HP TouchPad

Postby dodgejcr » Fri Sep 23, 2011 7:37 pm

Just an FYI, I bought a micro bluetooth keyboard to hopefully help out with typing on the touchpad and in the chroot. I had no idea if it would work or not so I didnt want to spend more than $20 on it. Well it arrived today and I couldnt be happier. Just about every function works on it (minus the obvious like volume, screen brightness, media controls and alt) and it helps out alot in the chroot. Arrow keys, and ctrl make it perfect. I think most bluetooth keyboards will work but if you are interested and dont want to play the guessing game, heres the one I bought.

http://www.geeks.com/details.asp?InvtId=PA-BK03-PB

Im sure you can get them cheaper with enough googling around but thats not a bad deal.
dodgejcr
 
Posts: 19
Joined: Thu Sep 01, 2011 5:40 am
Location: Freenode: #gen-dev #sdx-developers #archlinux-arm

Re: [chroot] HP TouchPad

Postby Varemenos » Fri Sep 23, 2011 11:42 pm

Ohh, i forgot to let you know, i found out yesterday a way to use the ESC, CTRL and arrow keys.

CTRL = hold 'T' key till its special chars show up and then hit the last char that looks like a 'p' and then press 'C' key.
ESC = same process but instead of 'C' you switch the keyboard to special keys and press '[' key.

For the key arrows you press "U" till its specials chars show up and then those chars are the arrow keys. I didnt exactly need them yet except the 'U' with that ^ over it which is the 'up' key.
Varemenos
 
Posts: 21
Joined: Tue Aug 30, 2011 6:44 am

Re: [chroot] HP TouchPad

Postby dodgejcr » Sat Sep 24, 2011 5:31 am

$this->bbcode_second_pass_quote('Varemenos', 'O')hh, i forgot to let you know, i found out yesterday a way to use the ESC, CTRL and arrow keys.

CTRL = hold 'T' key till its special chars show up and then hit the last char that looks like a 'p' and then press 'C' key.
ESC = same process but instead of 'C' you switch the keyboard to special keys and press '[' key.

For the key arrows you press "U" till its specials chars show up and then those chars are the arrow keys. I didnt exactly need them yet except the 'U' with that ^ over it which is the 'up' key.



I knew about the ctrl and esc. I had no clue about the arrow keys... huh. Oh well I didnt much like the keyboard taking up my precious screen space anyway. I still think for $20 it was worth every penny. Im starting on those script ideas here in a few so hopefully I can get that working.
dodgejcr
 
Posts: 19
Joined: Thu Sep 01, 2011 5:40 am
Location: Freenode: #gen-dev #sdx-developers #archlinux-arm
Top

Re: [chroot] HP TouchPad

Postby dodgejcr » Fri Sep 30, 2011 6:08 am

Crimsonredmk, I need your input on all the ipk information for webos Internals. All that details is stored in the ipk and I can set it all when I package it. I want to see this out there for people without the xecutah altering or anything like that. I know you are busy but hit me up any time. I want to see this succeed for the people who would rather not use a debian based linux distro. If I need to learn how to stip the rootfs to make it smaller let me know and I will start doing my research on that. thanks :D
dodgejcr
 
Posts: 19
Joined: Thu Sep 01, 2011 5:40 am
Location: Freenode: #gen-dev #sdx-developers #archlinux-arm

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 13 guests