maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Competitors (https://talk.maemo.org/forumdisplay.php?f=4)
-   -   BackTrack 5 (arm) released (https://talk.maemo.org/showthread.php?t=72933)

sequel7 2011-05-18 01:58

Re: BackTrack 5 (arm) released
 
Eh, well, it's not that different. If anything breaks, we'll worry about it later.

http://pastie.org/1907031

azkay 2011-05-18 07:59

Re: BackTrack 5 (arm) released
 
Ive just chrooted into the bt5 image on my laptop with qemu, im going to try cleaning it up a little, removing uneeded stuff, maybe get rid of gnome and get xfce or something.

maxxdout 2011-05-18 12:28

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by azkay (Post 1008858)
Ive just chrooted into the bt5 image on my laptop with qemu, im going to try cleaning it up a little, removing uneeded stuff, maybe get rid of gnome and get xfce or something.

i gotta try this in qemu later. last night i tried this script, slightly modiefied, executed from n900 https://wiki.kubuntu.org/ARM/n900/ it is supposed to add key maps and optimize ubuntu for n900 using some work from the meego n900 git. didnt quite work, so i think ill try it on a freshly extracted image today. it might be of interest to you if we can get it working.

azkay 2011-05-18 16:07

Re: BackTrack 5 (arm) released
 
According to apt-get, gnome isnt even in the image.
I apt-get --purge remove gnome gnome-core gnome-desktop-environment, none of them are installed.

So confused.

Captwheeto 2011-05-18 16:28

Re: BackTrack 5 (arm) released
 
See what comes up with

dpkg --get-selections | grep gnome

or go through the list by hand?

azkay 2011-05-18 17:00

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by Captwheeto (Post 1009307)
See what comes up with

dpkg --get-selections | grep gnome

or go through the list by hand?

Thanks, ended up doing apt-get --purge remove gnome*, took everything off.
Still ends up being 4gb.

I think ill try starting from scratch, then using the backtrack repos.
A clean chroot install of Squeeze is 1.1gb, in an image it would be a lot smaller I assume. Now to install xorg, xfce and see if I can get that much running.

shanewalsh247 2011-05-18 19:58

Re: BackTrack 5 (arm) released
 
looking forward to someone getting this running properly, vnc doesnt really cut the mustard(too slow, unresponsive and unreliable), i like the xephyr window idea from Misiak looks promising.

sequel7 2011-05-18 20:39

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by shanewalsh247 (Post 1009468)
looking forward to someone getting this running properly, vnc doesnt really cut the mustard(too slow, unresponsive and unreliable), i like the xephyr window idea from Misiak looks promising.

Are you actually having problems with VNC on yours, or have you not tried it yet? I actually find mine to work sufficiently well. I think any real problems with it are due to the N900 being underpowered for what we're using it for, and I doubt anything else will bring any major improvements. Let me know if I turn out to be wrong!

To be honest, I'm more excited about being able to run the tools in terminal anyway, for which you don't need VNC. A lot of the tools you would actually want a GUI for aren't even included in the BT5 ARM image to begin with (Wireshark, Maltego, etc). The biggest benefit to having BackTrack at all imho is that they've gone through all the effort of getting the dependencies working properly. That's something I've just never had the spare time to really do on my N900.

misiak 2011-05-18 20:46

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by shanewalsh247 (Post 1009468)
looking forward to someone getting this running properly, vnc doesnt really cut the mustard(too slow, unresponsive and unreliable), i like the xephyr window idea from Misiak looks promising.

But reboots the phone after loading desktop :(

Did anyone actually try using the apps even from command line? I think I might have screwed my partition with Backtrack, because while I try running some apps from Backtrack in command line I get error "cannot execute binary file"... Could someone check if for example "john" command works or shows some error? (I call it the same way as it works on my desktop Backtrack, so I don't think it's john's error message)

SuperDumb 2011-05-18 20:56

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by sequel7 (Post 1009488)
To be honest, I'm more excited about being able to run the tools in terminal anyway, for which you don't need VNC. A lot of the tools you would actually want a GUI for aren't even included in the BT5 ARM image to begin with (Wireshark, Maltego, etc). The biggest benefit to having BackTrack at all imho is that they've gone through all the effort of getting the dependencies working properly. That's something I've just never had the spare time to really do on my N900.

100% with you.
And real sad to see they did not put aircrack in there :mad:

shanewalsh247 2011-05-18 20:57

Re: BackTrack 5 (arm) released
 
true about all the tools being at our fingertips from command line chroot(could be worse), didnt try running any yet was too busy tryin to get the vnc stable, at least my keyboard works fine. Gonna try and install a few packages through easy debian while im at it.

mr_pingu 2011-05-18 21:05

Re: BackTrack 5 (arm) released
 
I think I did something wrong too becuz I get if I run for example
Aircrack-ng -h
Aircrack-ng: command not found

right from the chrooted xterm ;) If I use vnc and open terminal same problem =/

Edit: nevermind, think I need to get sleep. But like you misiak, I also get cannot execute binary file when trying to run john

misiak 2011-05-18 21:11

Re: BackTrack 5 (arm) released
 
2 Attachment(s)
Quote:

Originally Posted by mr_pingu (Post 1009504)
But like you misiak, I also get cannot execute binary file when trying to run john

That's just strange...

I attached logs of booting with command "xephwm5 1>logstdout.txt 2>logstderr.txt". Maybe someone more inteligent will find out what's wrong before I find it in the Internet. The interesting part is the end of logstderr.txt (they say "fatal error" and device reboots almost the same second so I guess that they are connected with the reason of rebooting?):

Quote:

Originally Posted by logstderr.txt
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 92 requests (90 known processed) with 0 events remaining.
gnome-session[2132]: WARNING: Detected that screensaver has left the bus
Window manager warning: Fatal IO error 104 (Connection reset by peer) on display ':1.0'.
gnome-screensaver: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
bluetooth-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.

(gnome-panel:2165): GLib-GObject-CRITICAL **: g_object_run_dispose: assertion `G_IS_OBJECT (object)' failed
gnome-power-manager: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.

I googled "Fatal IO error 11 (Resource temporarily unavailable) on X server" and found some solutions (happily most about Ubuntu :P), but none worked in this case. Could it be the case of too slow I/O operations on device...?

azkay 2011-05-18 21:18

Re: BackTrack 5 (arm) released
 
I cant even get a clean squeeze+xorg+xfce4 chrooted with xephyr

misiak 2011-05-18 21:28

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by azkay (Post 1009520)
I cant even get a clean squeeze+xorg+xfce4 chrooted with xephyr

What do you mean? You cannot start window menager from the Easy Debian image from Qole?

And according to my previous post - does anyone have any idea what is wrong? Or how I could debug further? If someone else is interested and has skills to run this, I can upload image of my partition now and all scripts I modified... I even tried custom swap partition and using "swapon" in Backtrack, still nothing...

azkay 2011-05-18 21:31

Re: BackTrack 5 (arm) released
 
I mean, I installed an arm debian squeeze, chrooted into it, but cant get it working through xephyr.

SuperDumb 2011-05-18 21:33

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by mr_pingu (Post 1009504)
I think I did something wrong too becuz I get if I run for example
Aircrack-ng -h
Aircrack-ng: command not found

right from the chrooted xterm ;) If I use vnc and open terminal same problem =/

Edit: nevermind, think I need to get sleep. But like you misiak, I also get cannot execute binary file when trying to run john

Not the only one. Aircrack is not installed on my backtrack too.
even apt-get install aircrack-ng does nothing.
Dont know if i should put this inside the img, or just use the one on the maemo side, that works ;)

misiak 2011-05-18 21:49

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by azkay (Post 1009536)
I mean, I installed an arm debian squeeze, chrooted into it, but cant get it working through xephyr.

Have you tried "apt-get install xserver-xephyr wmctrl" and copying scripts from Easy Debian? ( /usr/bin/{startlxde1|xeph*|fix-focus} and maybe some others if it complains when run "xephwm5")

sequel7 2011-05-18 22:05

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by SuperDumb (Post 1009494)
100% with you.
And real sad to see they did not put aircrack in there :mad:

yeah, I was really disappointed to see that as well. I believe the reasoning behind it is that since they expected this to be primarily run on Android devices, and there are no Android wireless injection drivers (that I'm aware of), it wasn't worth putting the time in to get AirCrack itself. :-(

sequel7 2011-05-18 22:09

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by misiak (Post 1009492)
Did anyone actually try using the apps even from command line? I think I might have screwed my partition with Backtrack, because while I try running some apps from Backtrack in command line I get error "cannot execute binary file"... Could someone check if for example "john" command works or shows some error? (I call it the same way as it works on my desktop Backtrack, so I don't think it's john's error message)

For some reason John is included, but compiled for x86, and so it won't run on the ARM processor in the N900. You should be able to download John and compile it for ARM yourself though, I would think. John has a really easy compiling process, but I've never tried it on ARM.

What other apps are doing that for you? I imagine the problem is the same, but I haven't come across any others yet.

misiak 2011-05-18 22:23

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by sequel7 (Post 1009574)
For some reason John is included, but compiled for x86 [...]

What can I say... LOL :D

Quote:

Originally Posted by sequel7 (Post 1009574)
You should be able to download John and compile it for ARM yourself though, I would think. John has a really easy compiling process, but I've never tried it on ARM.

I know it's easy ;) And if we are compiling it by ourselfes anyway, we can compile it with some nice patches: http://www.disenchant.ch/blog/teachi...ashes/106.html ;)

Quote:

Originally Posted by sequel7 (Post 1009574)
What other apps are doing that for you? I imagine the problem is the same, but I haven't come across any others yet.

Other problems were probably caused by damaged microSD card, I'm now wiping my card and copying files to it again, then I will repeat the whole process with writing short tutorial in case anyone else is interested in running Backtrack in chroot and xephyr (like Easy Debian) and will be able to help (now I know only that after trying to start window manager. cpu is going crazy, ram is goin crazy and then phone suddenly reboots, I still don't know what is the cause).

Edit: reported "john" issue in the bugs section of official BT5 forum.

sequel7 2011-05-19 01:25

Re: BackTrack 5 (arm) released
 
Another good thing to keep in mind is that since BT5 is based off of a reasonably modern Ubuntu, and usually comes with a lot of compiling dependencies installed or easily available, it should be easy to compile the tools that it's missing.

This is as compared to navigating the nightmare that is dependencies in Maemo. Plus, in the chroot there are no worries of breaking Maemo itself.

azkay 2011-05-19 01:31

Re: BackTrack 5 (arm) released
 
I think ive gone and broken something, dont know what ive done but now terminal doesnt stay open. If I run terminal, itll sit there blank with the loading circle in the top bar, then after a few seconds it closes.

Any ideas? Google found nothing.

Restart fixed it

Raaage.
exec: 25: /usr/bin/lxsession: not found

sequel7 2011-05-19 01:47

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by misiak (Post 1009555)
I think ive gone and broken something, dont know what ive done but now terminal doesnt stay open. If I run terminal, itll sit there blank with the loading circle in the top bar, then after a few seconds it closes.

Any ideas? Google found nothing.

Restart fixed it

It'll happen again. You're running out of RAM. You’ll need to add a swap partition. It makes stuff go a lot smoother. I used gparted on my laptop to shrink my memory card’s ext3 parition down a bit and added a 2GB swap partition (overkill, but why not). Then you can either add it in /etc/fstab on your N900, or use the quick and dirty way of `swapon /dev/mmcblk1p2` or whatever your partition is. Run `free` to find out if it worked.

That's what I did anyway.

azkay 2011-05-19 01:54

Re: BackTrack 5 (arm) released
 
Some errors about not able to load failsafe sessions now.
Also, when I chroot into my debian setup, instead of the root@n900 or whatever, it has \h:\w$, commands work fine but I cant do anything like up, down, tab, etc.

Any ideas?
I think I messed up my image. Time to start again.

sequel7 2011-05-19 02:25

Re: BackTrack 5 (arm) released
 
Azkay, see my previous post. I originally quoted the wrong message somehow. Your issues sound like what happened to me when I started running out of RAM.

azkay 2011-05-19 03:26

Re: BackTrack 5 (arm) released
 
Its not a ram issue, well it doesnt look like it.
Ive got the window up, ive got it "running" xfce- an error box saying:

Unable to load a failsafe session
Unable to determine failsafe session name. Possible causes xconfd isn't running (D-Bus setup problem);
environment variable $XDG_CONFIG_DIRS is set incorrectly (must include "/etc") or xfce4-session is installed incorrectly.

sequel7 2011-05-19 03:27

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by azkay (Post 1009654)
Its not a ram issue, well it doesnt look like it.
Ive got the window up, ive got it "running" xfce- an error box saying:

Unable to load a failsafe session
Unable to determine failsafe session name. Possible causes xconfd isn't running (D-Bus setup problem);
environment variable $XDG_CONFIG_DIRS is set incorrectly (must include "/etc") or xfce4-session is installed incorrectly.

I can't speak for sure about your xfce errors, but the terminal crashing sounds like exactly the problem I was having due to no free memory.

azkay 2011-05-19 04:00

Re: BackTrack 5 (arm) released
 
Terminal crashing I fixed with a reboot- it was happening with the normal maemo terminal, with nothing else running.

Ive got it sort of working. If I startx -- :2 from inside the chroot, it runs xfce ontop of maemo, flickering and half invisible. If I su root or su azkay inside the chroot and try, I get the failsafe session error connecting to xephyr and such. Im making n osense.

I think ive got it

azkay 2011-05-19 04:10

Re: BackTrack 5 (arm) released
 
http://img715.imageshack.us/img715/9...1051914064.png

Though, terminal nor firefox run in it.
"Failed to execute default Terminal Emulator. Input/output error.".

Actually, I think the shortcuts are just pointing to the wrong place. Too bad the screen size is too small so I cant move windows. Keyboard doesnt do anything either. Oh well, small steps.

Got the window proper size, now I just need to figure out how to change the resolution.
Might just use openbox instead of xfce4, less annoying, 50mb instead of 250mb.

azkay 2011-05-19 08:39

Re: BackTrack 5 (arm) released
 
So far I have a working debian image, a working openbox and a wallpaper.
qchroot /home/user/MyDocs/squeeze_arm.img /mnt/deb
su root
./startbt5

Now to work on getting the keyboard working, then organising the theme/menus, then installing stuff.

//EDIT::
Keyboard working.

I would do all of this for the bt5 image, but I think its pretty borked in general. I cant even stay chrooted into it for more than 10 seconds without the ssh/putty connection getting disconnected.

Now to theme/menu/install.
What should I install on it?

Anyway, should be awake in about 12 hours. Hold out until then and ill post my current image. Uploading it before I leave.

//EDIT::
The image will be available at http://www.azkay.com/squeeze_arm.rar in about 15 minutes from this last edit.

Code:

CRC32: A453F8E5
MD5: 2948B696B30902343DAD4B03158DBBF5
SHA-1: 104741B7F426B9475EBC891EB7466BABBAD520E1

It currently has openbox, firefox, scite and working keyboard.
Tomorrow ill work on it more, adding the backtrack repos etc.

to use:
Code:

sudo gainroot
cd /home/user/MyDocs
wget http://www.azkay.com/squeeze_arm.rar
unrar(?) - Forgot the command to unrar under linux, uploaded it from my Windows install- my bad.

mkdir /mnt/bt5
qchroot squeeze_arm.img /mnt/bt5
su root
./startbt5

Click anywhere on the wallpaper to bring up the menu. Terminal/Browser works, rest ill have to add in as I install.

Have fun.

//EDIT::
Uploaded

misiak 2011-05-19 12:13

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by azkay (Post 1009776)
[...]
qchroot /home/user/MyDocs/squeeze_arm.img /mnt/deb
su root
./startbt5
[...]
mkdir /mnt/bt5
qchroot squeeze_arm.img /mnt/bt5
su root
./startbt5
[...]

I don't know if it is a result of my messing with my N900 or it is normal, but I noticed that when I mount any image at /mnt/something, tracker and thumbnailer are going crazy and don't stop untill unmounting... Maybe mounting it somewhere like /.something (for example /.backtrack) would be better? Easy Debian mounts itself at /.debian, ubuntu mounts at /.ubuntu, etc., so it is also standard behaviour ;)

sequel7 2011-05-19 13:29

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by misiak (Post 1009927)
I don't know if it is a result of my messing with my N900 or it is normal, but I noticed that when I mount any image at /mnt/something, tracker and thumbnailer are going crazy and don't stop untill unmounting... Maybe mounting it somewhere like /.something (for example /.backtrack) would be better? Easy Debian mounts itself at /.debian, ubuntu mounts at /.ubuntu, etc., so it is also standard behaviour ;)

It shouldn't make any difference, as long as it's not being mounted on top of something important that already exists. /mnt/ is just a good logical place to mount things, but you can really mount stuff just about anywhere.

Putting a . in front of a file/directory name in Linux (and others) just makes it a hidden file, essentially. Only real difference is it won't show up in an `ls` without the -a flag.

misiak 2011-05-19 14:42

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by sequel7 (Post 1010030)
It shouldn't make any difference, as long as it's not being mounted on top of something important that already exists. /mnt/ is just a good logical place to mount things, but you can really mount stuff just about anywhere.

Putting a . in front of a file/directory name in Linux (and others) just makes it a hidden file, essentially. Only real difference is it won't show up in an `ls` without the -a flag.

I know it shouldn't and that /mnt is a good place to mount, I remember times when everything was mounted there (there was no /media like now)

I also know about dot in front of file/directory names, it also won't show in graphical file managers by default (most managers I know have some option to show hidden files beginning with dot).

But on my device somehow it also makes a difference for tracker and thumbnailer and maybe it also does on others' devices, just wanted to share that ;)

SuperDumb 2011-05-19 15:01

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by azkay (Post 1009776)
......
Now to theme/menu/install.
What should I install on it? .......

If you dont have all of this, maby ask for the missing ones ??

Quote:

Originally Posted by karam (Post 1004683)
well not a full list cause it will take for ever
but most of the important programs are instalable i already have in my debian chroot:
aircrack-ng -in maemo and debian-
dsnif -in maemo and debian-
ettercap-ng -maemo- only- the talk.maemo version not the broken repo one
mdk3 -debian-
cowpatty -debian-
w3af -debian-
sslstrip - in maemo and debian-
genpmk -debian-
nikto -debian-
john the ripper -maemo and debian-
grimwepa -maemo and debian- but i use it mostly with debian cause it has a stable oprnjre-6
gerix-wifi-cracker-ng -debian-
fasttrack -debian-
metasploit3 with all db drivers -debian- as well as maemo but no db drivers msfgui works also
armitage -debian- a gui for metasplot3
dnsspoof -maemo and debian-
urlsnarf -maemo and debian-
arpspoof -maemo and debian-
driftnet -maemo and debian-

well i guess those are the most apps i have

i will upload if some requested me an image that has all these and more i guess but it will take a week cause i have a dial up down speed 4kbs and upload is 2kbs
***ken internet in my country (syria)

Will sure save time :)

mr_pingu 2011-05-19 15:06

Re: BackTrack 5 (arm) released
 
Wow somebody did already start with that :) I think I will follow and make also an easy debian / easy backtrack, probably the best. Even better would be a bootable OS and then add apps to it. Well but I don't know anything about alternative OS which are bootable except NITdroid. =/

edit: Wow didn't knew that this was possible: http://ianlawrence.info/random-stuff...le-on-the-n900

If kubuntu can be installed why not ubuntu 10.04 + LXDE and enable backtrack + arm repos. Just I am not smart enough for this :(

sequel7 2011-05-19 15:45

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by mr_pingu (Post 1010104)
If kubuntu can be installed why not ubuntu 10.04 + LXDE and enable backtrack + arm repos. Just I am not smart enough for this :(

For what it's worth, the BackTrack team highly discourages trying to add BackTrack repos into a normal Ubuntu install, as they have done a lot of tweaking with both the kernel and the packages, and you're likely to screw stuff up by trying to mix the two. You're welcome to try it, but be warned.

Also, what benefit do you expect to get from putting BT repos onto Ubuntu 10.04, since BT is based off of 10.04 anyway? Just LXDE? Not trying to criticize, just curious.

mr_pingu 2011-05-19 15:56

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by sequel7 (Post 1010148)
For what it's worth, the BackTrack team highly discourages trying to add BackTrack repos into a normal Ubuntu install, as they have done a lot of tweaking with both the kernel and the packages, and you're likely to screw stuff up by trying to mix the two. You're welcome to try it, but be warned.

Also, what benefit do you expect to get from putting BT repos onto Ubuntu 10.04, since BT is based off of 10.04 anyway? Just LXDE? Not trying to criticize, just curious.

Yes for it seemed that was easier than modify the BT image to use lxde ;) But like I said I am quite new to linux at all and also to the n900 and I half don't know what is possible on a n900. I am a quite fast learner tho...

azkay 2011-05-19 23:48

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by mr_pingu (Post 1010104)
Wow somebody did already start with that :) I think I will follow and make also an easy debian / easy backtrack, probably the best. Even better would be a bootable OS and then add apps to it. Well but I don't know anything about alternative OS which are bootable except NITdroid. =/

I wouldnt want it bootable unless I knew how to add phone support; calls & sms. After all, I use my N900 as a phone- no point not being able to receive calls/sms while in another OS.

sequel7 2011-05-20 00:42

Re: BackTrack 5 (arm) released
 
Hey guys, regarding memory issues and swap space, a MarshmallowGoat pointed out on my blog that we can probably use swap files instead of making partitions. I hadn't thought of that, but I bet he's right.

https://wiki.archlinux.org/index.php/Swap#Swap_file


All times are GMT. The time now is 07:07.

vBulletin® Version 3.8.8