PDA

View Full Version : BackTrack 5 (arm) released


Pages : [1] 2

fatcobrah
2011-05-10, 17:52
Finally BackTrack 5 released and here is the link to download
backtrack (http://www.backtrack-linux.org/downloads/)

Size: 1GB
Flavor: GNOME
Arch: arm
Image: IMG
http://www.backtrack-linux.org/xoom/photo.jpg


http://i56.tinypic.com/wkmk34.jpg

special thx to SuperDumb (http://talk.maemo.org/showpost.php?p=1005268&postcount=64) for the N900 pics


http://blog.l-lacker.com/wp-content/uploads/2011/05/IMG_7595.jpg
Backtrack 5 on Galaxy S

HOW TO RUN BACKTRACK 5 ON THE N900

Instructions :

(Be sure you have rootsh & easy-chroot)

Put the bt5.img anywhere (eg: /home/user/Mydocs/bt5 )
you can download the image here (http://www.megaupload.com/?d=0YFHJO1A)
open Terminal
sudo gainroot
mkdir /mnt/bt5
qchroot /home/user/MyDocs/bt5/bt5.img /mnt/bt5/
export USER=root
vncpasswd (Needs to be done once for setting up a password)
vncserver -geometry 800x470
startvnc
Now go back to open VNC and leave terminal open in background
In VNC use this settings :
The adress is 127.0.0.1:590x
x Is the number you see when you typed "startvnc" inside BT5. You will see something like this :
"Log file is /home/user/.vnc/Nokia-N900:x.log"
Mine was "Log file is /home/user/.vnc/Nokia-N900:1.log", so i have 127.0.0.1:5901
Enter password you choosed before, log in have fun.
When done and VNC is closed, do this to shutdown BT5:
Go back to opend terminal
stopvnc
exit
qumount /mnt/bt5
exit

Credits Goes to Superdump (http://talk.maemo.org/showpost.php?p=1006083&postcount=83) For his amazing job :D

aathava
2011-05-10, 18:02
How to run it in chroot

fatcobrah
2011-05-10, 18:06
How to run it in chroot

i don't know :( and i really need to know :P

Mentalist Traceur
2011-05-10, 18:32
People who need to know something learn it. Only those really screwed by circumstances can need something and not find a way to get to it. If you can post talk.maemo.org and download this image, you realistically must have the resources to figure out how to use it.

Capt'n Corrupt
2011-05-10, 19:06
People who need to know something learn it. Only those really screwed by circumstances can need something and not find a way to get to it. If you can post talk.maemo.org and download this image, you realistically must have the resources to figure out how to use it.

Some people need a little help. It's ok to ask or to admit that you don't know something.

fatcobrah
2011-05-10, 19:13
Some people need a little help. It's ok to ask or to admit that you don't know something.

100% true
i think that's why programmers exist

Mentalist Traceur
2011-05-10, 19:16
Some people need a little help. It's ok to ask or to admit that you don't know something.
Asking is fine, though less so when the information is easily searchable (but in this case it's not something easy to search unless you already know what to look for, so I didn't count that against him either). Admitting you don't know is also fine.

My problem was with the "need" notion.

mr_pingu
2011-05-10, 19:38
Would love to run this on my n900 but I lack the knowledge to do it on my own sow I really need a guide. Which is not available, though not strange at all at the date of release.
Hope someone will manage to run this on his n900 and is willing to tell me :D

sr00t
2011-05-10, 20:09
finally backtrack5 released and here is the link to download
backtrack (http://www.backtrack-linux.org/downloads/)

Size: 1GB
Flavor: GNOME
Arch: arm
Image: IMG

If this means we'll have native backtrack working on N900, I'll only say "F*ck Yeah :D!!!!!!!!"

-Tyler-
2011-05-10, 20:17
If this means we'll have native backtrack working on N900, I'll only say "F*ck Yeah :D!!!!!!!!"

Yeah this is like a ****ing dream come true :D

misiak
2011-05-10, 20:54
I'm downloading the image now, will try to run it in chroot first and then maybe boot with multiboot. Generally you can try yourself by downloading image and extracting it to your N900 and following instructions from http://talk.maemo.org/showpost.php?p=752676&postcount=51 modyfing them accordingly... I guess the biggest difference will be changing in one of the first commands "mkdir -p /mnt/ubuntu && mount /dev/mmcblk1p2 /mnt/ubuntu" to "mkdir -p /mnt/backtrack && mount /path/to/extracted/image/backtrack/file /mnt/backtrack" and changing path "/mnt/ubuntu" to "/mnt/backtrack" everywhere... but it's just my guess at the moment, I'm still waiting for the image to download ;)

Edit: README file says it was developed for Motorola Xoom and has its default screen resolution and there are instructions for installing on Xoom into chroot... ok, trying to run it on N900 anyway, please wait :P

misiak
2011-05-10, 21:14
Well, impossible to copy the file, it is too big (~5gb) and windows complained that the size of file is above file system limitation. Don't have a spare >4GB memory card at the moment, so I won't do anything more with it. (But if anyone is up to it, you can writing bt5.img file to newly created partition on sd card and proceed further)

mr_pingu
2011-05-10, 21:18
Is you memory card formatted in FAT32? FAT32 doesnt support files greater than 4GB, format it in NTFS to support files bigger than 4GB ;)

misiak
2011-05-10, 21:20
Is you memory card formatted in FAT32? FAT32 doesnt support files greater than 4GB, format it in NTFS to support files bigger than 4GB ;)

Yeah I know. My internal memory is formatted as FAT (it was formatted that way by Nokia). All my memory cards have less than 2GB of free space now and I won't have more time untill weekend to play with this... But i plan to wipe my 8Gb card on the weekend, format it as ext3 and extract there the contents of bt5.img file. Will let you know the result when I find time to do that ;)

fatcobrah
2011-05-10, 21:22
Well, impossible to copy the file, it is too big (~5gb) and windows complained that the size of file is above file system limitation. Don't have a spare >4GB memory card at the moment, so I won't do anything more with it. (But if anyone is up to it, you can writing bt5.img file to newly created partition on sd card and proceed further)

why dont u try the mass storage ?

misiak
2011-05-10, 21:30
why dont u try the mass storage ?

Because I don't feel like repartitioning my mass storage, I feel ok with it being ~30GB ;) Or maybe I understood you wrong and you meant something else?

fatcobrah
2011-05-10, 21:36
Because I don't feel like repartitioning my mass storage, I feel ok with it being ~30GB ;) Or maybe I understood you wrong and you meant something else?

it's ok
i mean to mount bt5.img as the same way used in nitdroid (eMMC)
and use multiboot with it :)

mr_pingu
2011-05-10, 21:37
I can wait :)

Why format mass, its good the way it is by default 28GB of FAT which can be read from every pc. Let the removable memory do the dirty jobs as they can be removed.

Let me find a 8GB card also, althoug I dont come as far you would come. Hope I can find some card :P

misiak
2011-05-10, 21:45
it's ok
i mean to mount bt5.img as the same way used in nitdroid (eMMC)
and use multiboot with it :)

I will try to do it the same way ;) But my NITDroid is also on my external card. I really don't feel like repartitioning internal eMMC memory... If I succeed, I will write detailed step by step instruction on how to do it with memory card and be used with multiboot and point what you should change to install it on eMMC. But I will not test it on eMMC myself ;)

karam
2011-05-10, 21:49
it's ok
i mean to mount bt5.img as the same way used in nitdroid (eMMC)
and use multiboot with it :)

it is not possible to mount it like nitdroid cause nitdroid is mounted to the mmcblk0p2
(optfs) nitdroid is not more than 100 mb so that is fine but bt5.img is 5gb so it is only possible with >4gb sd card or hexing the emmc.bin bafore flashing n900 to make the optfs from 2gb(default) till 9gb>(anysize) or repartitioning the mmcblk0p1 (MyDocs) and this is pretty dangerous but i have tried it before and no problems

misiak
2011-05-10, 21:51
I can wait :)

Why format mass, its good the way it is by default 28GB of FAT which can be read from every pc. Let the removable memory do the dirty jobs as they can be removed.

Let me find a 8GB card also, althoug I dont come as far you would come. Hope I can find some card :P

Do you have a Linux desktop? I'm afraid it will be needed to repartition the sd card and write the image to it...

Edit: or not :P I have an idea, but it needs to wait at least till tommorow

mr_pingu
2011-05-10, 22:03
Do you have a Linux desktop? I'm afraid it will be needed to repartition the sd card and write the image to it...

Not yet :P N900 introduced me to linux and I liked it but last time I tried to install ubuntu (dualboot) the installer crashed lol. I don't feel to format my HDD en start with linux only, also I tried the new unity livecd but it lags too much. So need to find a 10.10 image and make my usb bootable again and try again :P Or if you have any other suggestion for a other distro ur welcome. Remember I am quite a beginner but I can learn really fast( some gift from heaven) and want to have a customizable distro :D

sr00t
2011-05-10, 23:06
Please, everyone who is trying to boot it, update in this thread the progress of it.
I find it REALLY important to take it as a new project like NITDroid. Making Backtrack 5 usable with customized drivers for N900 chipsets would be a milestone for this NIT model.

mr_pingu
2011-05-11, 05:03
I dont get it why they release it for the xoom without custom drivers. N900 is already capable of packet injection and then the take the xoom:
http://www.offensive-security.com/backtrack/backtrack-5-on-a-motorola-xoom/

read that, they only can run it at chroot yet and dont use custom drivers. Also I heard ubuntu had drivers for ARM and PowerVR SGX, so it could be possible to use these drivers for BT5 too.
Shouldn't we contact the BT team to tell that the n900 is a nice target too :P

kingoddball
2011-05-11, 05:14
Will this even work if it's compiled and designed for the xoom?

Our tools are just fine anyway :D Port the tools we don't have :)
Just make Maemo into the ultimate hacking OS by porting all the tools we need :D love live Maemo!

(Although I will download and try boot. Looks nice!)

mr_pingu
2011-05-11, 05:21
That will do it for me also :P We already have the important ones like aircrack-ng, kismet, wireshark, nmap. But technically it should also be possible to run that image in a chroot and use the n900 drivers. load injection driver and then load the chroot, what about that?

sudarsan_avs
2011-05-11, 05:40
I am new to backtrack, can any one pls tell me the key features / applications which can use on n900 if we install it... bcos spending 5GB of space should be of good use, will this OS detect Wifi / 3G?

Thanks in advance!!!

fatcobrah
2011-05-11, 05:43
I will try to do it the same way ;) But my NITDroid is also on my external card. I really don't feel like repartitioning internal eMMC memory... If I succeed, I will write detailed step by step instruction on how to do it with memory card and be used with multiboot and point what you should change to install it on eMMC. But I will not test it on eMMC myself ;)

karam said that it's impossible to mount it bcoz of it's size so try it on ur MicroSD :)

it is not possible to mount it like nitdroid cause nitdroid is mounted to the mmcblk0p2
(optfs) nitdroid is not more than 100 mb so that is fine but bt5.img is 5gb so it is only possible with >4gb sd card or hexing the emmc.bin bafore flashing n900 to make the optfs from 2gb(default) till 9gb>(anysize) or repartitioning the mmcblk0p1 (MyDocs) and this is pretty dangerous but i have tried it before and no problems

if i use the script which gives me all of the internal memory http://talk.maemo.org/showpost.php?p=768794&postcount=1
i think this way will let me mount it from eMMC right?

mr_pingu
2011-05-11, 05:48
Its a penetration testing OS which includes all security related tools like aircrack-ng and zenmap, wireshark. You can also say its a hacking os, but pentesting sounds better :D

If you will manage to boot or chroot it we would be really happy;)

fatcobrah
2011-05-11, 05:51
I dont get it why they release it for the xoom without custom drivers.
...
Shouldn't we contact the BT team to tell that the n900 is a nice target too :P

dont wast ur time ! they wont listen to u
they want bt5 to run on the xoom
as they said:
"we have got a modified version of an Ubuntu 10.04 ARM image, chrooted on a Motorola Xoom. The tablet is running a modified, overclockable kernel (from 1.0 to 1.5 GHz) "

so does bt5 need at least 1.5 GHz to be stable ?

Will this even work if it's compiled and designed for the xoom?

Our tools are just fine anyway :D Port the tools we don't have :)
Just make Maemo into the ultimate hacking OS by porting all the tools we need :D love live Maemo!

(Although I will download and try boot. Looks nice!)

nice but it's amazing to see the full image working on the n900 :D

kingoddball
2011-05-11, 05:54
it's not working though.... is it??
build for xoom?

fatcobrah
2011-05-11, 06:00
it's not working though.... is it??
build for xoom?

never tested ! hehe

"A basic ARM BackTrack image which can be chrooted into from android enabled devices" this what they've said

LTman
2011-05-11, 07:14
Has anybody got this working yet
I would try this if i had an 8gb sd card i am pretty sure that "!booting" it would be easy its getting it work properly that is the problem
Has anybody tried chrooting into it
P.S move this thread to alternatives since it is a possible alternative os for the n900 not a competitor

fatcobrah
2011-05-11, 08:04
The Readme file:

BackTrack 5 ARM Edition Quick Start

This image has been developed and tested on the Motorola Xoom. Your mileage may vary on other devices.
As this image runs in a chroot, you will need to have your device rooted. There are numerous tutorials on the subject online and are not included here.


***Rooting your device will potentially void its warranty and we are not in any way resposible if you brick your device while rooting it.
***

### IMPORTANT POINTS ###


1. Since the image runs in a chroot, there is no root password set.

2. There are 2 scripts under /usr/bin/ 'startvnc' and 'stopvnc' that are set to start with the Xoom's default resolution.

3. The current vnc password is set to 'toortoor' and can be changed by running 'vncpasswd'

4. This image is a work in progress and suggestions/tips from the community are always welcome.



### GETTING STARTED ###


1. Once you have downloaded the ARM BT package, save the files in a convenient location. The steps below assume they are in the platform-tools folder of the Android SDK.


2. Go to your platform-tools directory and proceed to make a directory on the device to store BT5:
./adb shell
mkdir /sdcard/BT5
exit


3. Copy over the busybox install files:
./adb push busybox /sdcard/
./adb push installbusybox.sh /sdcard


4. Install busybox on the device:
./adb shell
cd /sdcard/
sh installbusybox.sh
exit


5. Transfer the required BT5 files to the device:
./adb push fsrw /sdcard/BT5/
./adb push mountonly /sdcard/BT5/
./adb push bootbt /sdcard/BT5/
./adb push bt5.img.gz /sdcard/BT5/
./adb push unionfs /sdcard/BT5/


6. Uncompress the image and start BT5:
./adb shell
su
cd /sdcard/BT5
gunzip bt5.img.gz
sh bootbt

If all goes well, you'll be in the BT5 chroot:

# sh bootbt
net.ipv4.ip_forward = 1
root@localhost:/# ls /pentest/
backdoors database exploits passwords scanners stressing voip
cisco enumeration forensics python sniffers tunneling web
root@localhost:/#

mr_pingu
2011-05-11, 08:24
so that means we need to run it in chroot instead of booting. Becuz we need the kernel of the device, or didn't I understand it right?

fatcobrah
2011-05-11, 08:39
so that means we need to run it in chroot instead of booting. Becuz we need the kernel of the device, or didn't I understand it right?

ya i think so we need to run it in chroot
but is this limitid to android phones?

ivyking
2011-05-11, 09:06
It runs on chroot just fine , however some one has to do the work to get it to work like easy debian .

if you just want a basic chroot :

extract the image on your pc .

use dd to get the image onto a partition on your sdcard ,

then check that partition for errors and resize the file system to fit the partition .

disconnect your n900 from pc and reboot if you have repartitioned the sdcard .

then mkdir mnt/bt5 and then mount /dev/mmcblk1pX /mnt/bt5
chroot /mnt/bt5

thats all .

kingoddball
2011-05-11, 09:27
We need Qole! :)

mno@8
2011-05-11, 09:51
Running BAT 5 on the N900 is quite nice. I really would like to do that: BT 5 is much more than wireless cracking.
However, I do believe that the N900 is not right device to do a full penetration exercise.

karam
2011-05-11, 11:37
karam said that it's impossible to mount it bcoz of it's size so try it on ur MicroSD :)



if i use the script which gives me all of the internal memory http://talk.maemo.org/showpost.php?p=768794&postcount=1
i think this way will let me mount it from eMMC right?

well that is correct it will work but believe you don't wanna have all the internal memory

the best way is to backup your rootfs and optfs with backupmenu application
then hex the emmc.bin (vannial defaul) and reflash your n900 with the hexed emmc then restore you backup

btw to hex the emmc open the emmc.bin file with any hex editor and search for string partition you will see a bit below numbers :
2048 change them for ex : 8192 to have 8 gb optfs so MyDocs will be 22 gb after the reflash

and to restore backup with backupmenu (if you don't know) you will see 3 options 1:restore rootfs 2:restore rootf and optfs 3:restore optfs
it is recomended by me to restore the optfs then the rootfs and not restoring them together
cause restoring them together has made a f**ken problem to me
i had to reflash my n900 to a previos firmware then to the newst firrmware :) strange problem

azkay
2011-05-11, 12:21
Just ordered an 8gb class 10, was going to get 16gb but didnt want to pay $20 more, lolol.

Hope it gets here by friday, dont want to wait until monday, with express postage.

fatcobrah
2011-05-11, 14:26
It runs on chroot just fine , however some one has to do the work to get it to work like easy debian .
...

then mkdir mnt/bt5 and then mount /dev/mmcblk1pX /mnt/bt5
chroot /mnt/bt5

thats all .

how to edit the (img) file ?

We need Qole! :)

i sent him a msg :)



well that is correct it will work but believe you don't wanna have all the internal memory

the best way is to backup your rootfs and optfs with backupmenu application
then hex the emmc.bin (vannial defaul) and reflash your n900 with the hexed emmc then restore you backup

cause restoring them together has made a f**ken problem to me
i had to reflash my n900 to a previos firmware then to the newst firrmware :) strange problem

is this safe ? after doing this i can use it normal with (kernel-power,overclock,nitdroid,...etc) right?

Captwheeto
2011-05-11, 15:06
Why would we want this :S I mean it's neat having another OS but isn't 'pentesting' a paid script kiddie (from the standards I saw when we had two in for government auditing)? And I doubt there's even one professional one on these entire forums.

We should push for a better hacking environment if that's what we want. An OS with gcc, nasm, an up to date perl, python, vim and scapy. Wouldn't that be more than enough?

azkay
2011-05-11, 16:21
Why would we want this :S I mean it's neat having another OS but isn't 'pentesting' a paid script kiddie (from the standards I saw when we had two in for government auditing)? And I doubt there's even one professional one on these entire forums.

We should push for a better hacking environment if that's what we want. An OS with gcc, nasm, an up to date perl, python, vim and scapy. Wouldn't that be more than enough?

Different definitions of a skiddie.
I see a skiddie as someone who uses things without any idea on how it works and just wants to use it for the end result.

On the other hand, theres others who know how it works and like to use it because its just easier than repetition. On the other hand, theres some who use it as a learning tool.

sr00t
2011-05-11, 16:22
Why would we want this :S I mean it's neat having another OS but isn't 'pentesting' a paid script kiddie (from the standards I saw when we had two in for government auditing)? And I doubt there's even one professional one on these entire forums.

We should push for a better hacking environment if that's what we want. An OS with gcc, nasm, an up to date perl, python, vim and scapy. Wouldn't that be more than enough?

You don't need to point that out. I see Backtrack as a tool for learning IT security. You don't need to be a CISSP pro to enjoy using it. You don't even need to use it in a real target.
I'm not even saying that it would fill the void left by neopwn. As you can see, neopwn project had a lot of interest of the users.
It would be nice having it ported to N900, and I think that this statement explains it by itself, we don't need to justify it.

les_garten
2011-05-11, 16:29
You don't need to point that out. I see Backtrack as a tool for learning IT security. You don't need to be a CISSP pro to enjoy using it. You don't even need to use it in a real target.
I'm not even saying that it would fill the void left by neopwn. As you can see, neopwn project had a lot of interest of the users.
It would be nice having it ported to N900, and I think that this statement explains it by itself, we don't need to justify it.

Exactly!!

Why should I have to justify the App that makes my Phone go "MOO" when I pick it up!!

fatcobrah
2011-05-11, 17:40
it's all about how to push the N900 to the maximum and challenge everything

ivyking
2011-05-11, 18:04
how to edit the (img) file

you don't need to edit the img file at all..
you just dd it to a partition whether it is on the internal emmc or on your sdcard , later Xephyr needs to be configured to provide an easy debian like usage for this .

If you want to install this to the internal emmc , that's quite easy , it's basically the same as installing any OS to your internal emmc .

install backup menu , connect your n900 to pc , press "w"
then wait ~15 seconds , all partitions on the emmc and the sdcard should appear on your pc as mass storage device .
unmount all partitions if your distribution automatically mounts them .
then fire up gparted . select the 27 GB device (emmc)
right click on the first partition and click shrink , shrink it about 7GB then move the second partition (the ext3 /home partition) to the left and expand it more ex. to 3GB if you want , this gives you more space to install apps in maemo .
now move the swap partition also to the left .
all free space should be on the right .
right click on the free space and click new partition .
I recommend creating an extended partition here as you can have only 4 primary partitions .
inside that extended partition create any other partitions you might want .
for the purpose of installing BT , just create one ext2 partition inside .
click apply .
if you followed what I said it should be /dev/sdb5
exit gparted.
now extract the image , then dd the image to /dev/sd5 :
open a terminal , cd to where you downloaded the image.

gzip -d ./bt5.img.gz
sudo e2fsck -y ./bt5.img
sudo dd if=./bt5.img of=/dev/sdb5
# wait for a long while : 5-15 min maybe more , you can get #progress indication with pv or bar .
sudo e2fsck -y /dev/sdb5
sudo resize2fs /dev/sdb5

disconnect your n900 from pc , and reboot it .
in maemo :
root
mkdir /mnt/bt5
mount /dev/mmcblk0p5 /mnt/bt5

to chroot :

chroot /mnt/bt5

now wait for Qole to finish his scripts to give you easy BT5 !

fatcobrah
2011-05-11, 18:17
you don't need to edit the img file at all..
you just dd it to a partition whether it is on the internal emmc or on your sdcard , later Xephyr needs to be configured to provide an easy debian like usage for this .

If you want to install this to the internal emmc , that's quite easy , it's basically the same as installing any OS to your internal emmc .

install backup menu , connect your n900 to pc , press "w"
then wait ~15 seconds , all partitions on the emmc and the sdcard should appear on your pc as mass storage device .
unmount all partitions if your distribution automatically mounts them .
then fire up gparted . select the 27 GB device (emmc)
right click on the first partition and click shrink , shrink it about 7GB then move the second partition (the ext3 /home partition) to the left and expand it more ex. to 3GB if you want , this gives you more space to install apps in maemo .
now move the swap partition also to the left .
all free space should be on the right .
right click on the free space and click new partition .
I recommend creating an extended partition here as you can have only 4 primary partitions .
inside that extended partition create any other partitions you might want .
for the purpose of installing BT , just create one ext2 partition inside .
click apply .
if you followed what I said it should be /dev/sdb5
exit gparted.
now extract the image , then dd the image to /dev/sd5 :
open a terminal , cd to where you downloaded the image.

gzip -d ./bt5.img.gz
sudo e2fsck -y ./bt5.img
sudo dd if=./bt5.img of=/dev/sdb5
# wait for a long while : 5-15 min maybe more , you can get #progress indication with pv or bar .
sudo e2fsck -y /dev/sdb5
sudo resize2fs /dev/sdb5

disconnect your n900 from pc , and reboot it .
in maemo :
root
mkdir /mnt/bt5
mount /dev/mmcblk0p5 /mnt/bt5

to chroot :

chroot /mnt/bt5

now wait for Qole to finish his scripts to give you easy BT5 !

wow :D i dont like shrinking the internal memory coz i'v never do it :S
u mean i can do this way insted of running 32GB eMMC rootfs?
wt do u prefer ?

ivyking
2011-05-11, 18:46
wow :D i dont like shrinking the internal memory coz i'v never do it :S
u mean i can do this way insted of running 32GB eMMC rootfs?
wt do u prefer ?

what do you mean by 32GB rootfs ??
what I wrote was how to shrink MyDocs to leave space for new partitions as someone asked about installing to the internal memory instead of the sdcard .

fatcobrah
2011-05-11, 19:12
what do you mean by 32GB rootfs ??
what I wrote was how to shrink MyDocs to leave space for new partitions as someone asked about installing to the internal memory instead of the sdcard .

i know but i am talikg about using this way (http://talk.maemo.org/showpost.php?p=768794&postcount=1) :)

misiak
2011-05-11, 21:32
[ ... ]
then fire up gparted . select the 27 GB device (emmc)
right click on the first partition and click shrink , shrink it about 7GB then move the second partition (the ext3 /home partition) to the left and expand it more ex. to 3GB if you want , this gives you more space to install apps in maemo .
now move the swap partition also to the left .
all free space should be on the right .
right click on the free space and click new partition .
[ ... ]

Nice tutorial for people with a bit of knowledge (but noobs still won't do that in my oppinion, too little informations and too little step-by-step instructions :P). I will try doing more or less the same way soon. I'm planning to do some more things after chrooting from maemo (making it as also a separate boot option in multiboot). But I have one huuuge remark (about the sentence I marked in bold). You don't need to have all free space on the right. You can just resize MyDocs partition (it will wipe MyDocs data, so backup first) and create partition berween MyDocs and /home partitions, just we have to name it in partition table with a number greater, than 3. The source of this information is wiki page http://wiki.maemo.org/Repartitioning_the_flash#Some_remarks : Maemo hardcodes the MyDocs partition as /dev/mmcblk0p1 in several applications. If you keep a VFAT partition, make sure it is the first partition (partitions in the table do not need to have the same order as on the disk). Otherwise you have to modified several scripts belonging to ke-recv.
So if I understand correctly, only the order of partitions in partition table is relevant. And modyfing only MyDocs partition (and leaving /home and swap stay where they are) is a little bit safer in my oppinion, as it is not necessary to move these partitions and one does not have to make a backup of them and restore them later - less operations = less possibilities of making mistake and bricking device.

karam
2011-05-11, 22:31
is this safe ? after doing this i can use it normal with (kernel-power,overclock,nitdroid,...etc) right?

it is 100% safe and you can use antthying all what you did is change
the optfs from 2gb > 8gb and you can change it o anysize you want
and changed the MyDocs from 30 gb > 22 gb :)
sry for late answer

qole
2011-05-12, 04:41
Thank you all for thinking of me and sending me PMs. However I don't really have the motivation to build a Easy Debian style chroot image of this, since I don't really have any interest in "pentesting" at the moment.

Also, most (if not all) of these tools are fairly standard, open source apps installable in Easy Debian right from the Debian repositories, and many of them are available in Maemo, too.

Sorry... :(

fatcobrah
2011-05-12, 05:03
it is 100% safe and you can use antthying all what you did is change
the optfs from 2gb > 8gb and you can change it o anysize you want
and changed the MyDocs from 30 gb > 22 gb :)
sry for late answer

i think im gonna do it but after sending my n900 to nokia care again and again and again bcoz of the bad quality :(

Thank you all for thinking of me and sending me PMs. However I don't really have the motivation to build a Easy Debian style chroot image of this, since I don't really have any interest in "pentesting" at the moment.

Also, most (if not all) of these tools are fairly standard, open source apps installable in Easy Debian right from the Debian repositories, and many of them are available in Maemo, too.

Sorry... :(

hmmm you are right but we would like to have the whole system running on our devices + i think N900 better than motorola :P
anyways can u give us any instructions which can help us ?
thx :)

kingoddball
2011-05-12, 05:56
Can anyone get a full list of installed programs in BackTrack??
I will just install all tools in Easy Deb

karam
2011-05-12, 07:29
Can anyone get a full list of installed programs in BackTrack??
I will just install all tools in Easy Deb

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)

ivyking
2011-05-12, 07:45
Can anyone get a full list of installed programs in BackTrack??
I will just install all tools in Easy Deb

the full output of

aptitude search '~i'

is here http://pastebin.com/raw.php?i=6uax8H11

a clean list is in the attached file: cleanList.txt

cleanList.txt contains only package names of non automatically installed packages , and has no package description on each line .

kingoddball
2011-05-12, 08:21
Good men!!

Thank's very much!

Why don't we just install all these prog's in Easy Debian and build our own versions? :D

Straycat
2011-05-12, 08:23
...
now wait for Qole to finish his scripts to give you easy BT5 !

:')

quole is my hero!

linuxguru
2011-05-12, 09:56
I can make an ' easy BT5 ' !

but as "Qole" said , that pointless because BT5 is a ubuntu-based so its very easy to install them in maemo ,

also try to use the offensive security repo

regards

daperl
2011-05-12, 10:37
One word: qchroot (found in the easy-chroot package)

Go down that loop device rabbit hole and all your prayers will be answered. First, of course, create a proper image with some room to grow.

And yes, qole is a god.

shanewalsh247
2011-05-12, 18:27
so looking forward to someone putting up a detailed explanation of how to boot backtrack from sd, doesnt look very promising at the mo.

SuperDumb
2011-05-13, 02:24
Just giving Backtrack a go on the N900 with android :rolleyes:

http://www8.pic-upload.de/19.05.11/cou4e1lrxhh.jpg
http://i56.tinypic.com/wkmk34.jpg

Not real fast, even if overclocked. Will have a look tomorrow how to get it up in maemo.

azkay
2011-05-13, 03:03
Great. The card I ordered came in today.
They sent me an SD card instead of a MicroSD card.

What shouldve been over night express post is going to turn into a week.

Estel
2011-05-13, 08:33
Side note: I strongly encourage everyone to repartition internal eMMC by using method #8 in wiki.

I was amongst few first "big" things that i did with my N900 (first week of having it, if i remember correctly), and that was my first linux device - Yea, despite my love to open source idea & practice, i wasn't involved in linux, cause i never was motivated enough to start learning it. shame on me. Sure, i was able to do some thing on it, but i was FAR away from even linux power user, not to mention gurus.

So, what i want to say by this post is that reformatting using backupmenu + aptosid (or whatever you want) on virtual machine/ live Cd / whatever again is easy simple and straightforward. You can also delete/resize swap partition if You use swap on microSD and do similiar things in one run.

I created other partitions - one for Easy debian (NOT as image file on partition, extracted) and another for nitdroid - obviously everything is running much faster.

So, dedicated partition for backtrack would also improve performance. Also, i agree with qole that there is no need for this in fact - you can built Your own in ED - but the same apply for x86 version of backtrack, still many people - including me - was using it for some time, cause it packs many things and save work for You. Even Easy debian incorporate some cool aps in base image - GIMP etc. no matter than user can install it, if he want ;) So pentests aren't as useless as some thought.

another thing - i strongly DISCOURAGE regular users from running 32GB rotfs. At least whole topic about this - it is mainly targeted at developers who wan't to test their aplications without optifing first, and if You use 32GB rotfs in daily basics, you will encounter big performance drop.

fatcobrah
2011-05-13, 09:25
Just giving Backtrack a go on the N900 with android :rolleyes:

http://i54.tinypic.com/rsfl88.jpg

Not real fast, even if overclocked. Will have a look tomorrow how to get it up in maemo.

wow amazing :D im gonna put these pics on the first post :D :D
did u use the class 6 MicroSD?

mr_pingu
2011-05-13, 14:30
Side note: I strongly encourage everyone to repartition internal eMMC by using method #8 in wiki.

I was amongst few first "big" things that i did with my N900 (first week of having it, if i remember correctly), and that was my first linux device - Yea, despite my love to open source idea & practice, i wasn't involved in linux, cause i never was motivated enough to start learning it. shame on me. Sure, i was able to do some thing on it, but i was FAR away from even linux power user, not to mention gurus.

So, what i want to say by this post is that reformatting using backupmenu + aptosid (or whatever you want) on virtual machine/ live Cd / whatever again is easy simple and straightforward. You can also delete/resize swap partition if You use swap on microSD and do similiar things in one run.

I created other partitions - one for Easy debian (NOT as image file on partition, extracted) and another for nitdroid - obviously everything is running much faster.

So, dedicated partition for backtrack would also improve performance. Also, i agree with qole that there is no need for this in fact - you can built Your own in ED - but the same apply for x86 version of backtrack, still many people - including me - was using it for some time, cause it packs many things and save work for You. Even Easy debian incorporate some cool aps in base image - GIMP etc. no matter than user can install it, if he want ;) So pentests aren't as useless as some thought.

another thing - i strongly DISCOURAGE regular users from running 32GB rotfs. At least whole topic about this - it is mainly targeted at developers who wan't to test their aplications without optifing first, and if You use 32GB rotfs in daily basics, you will encounter big performance drop.


But how to use these partitions? Install the easy debian chroot and then boot into easy debian or boot maemo and use easy debian chroot as partition or bootable image?

Capt'n Corrupt
2011-05-13, 14:57
Very cool stuff!

What are some of your plans with this OS?

shardul
2011-05-13, 15:17
Instructions guys.

SuperDumb
2011-05-13, 16:42
I will be home in about six hours. Then i can make the howto for the nitdroid solution if you like.

shanewalsh247
2011-05-13, 17:31
do you reckon it will run better off of nitdroid or from the sd on maemo?

maxxdout
2011-05-13, 20:14
just confirmed. i dd the image to an sd. mounted it with easy chroot. ran the included startvnc script and vnc'd into it at localhost:2. just like they do it on android... just on maemo ;-) ill play more with it and ill report back!

SuperDumb
2011-05-13, 21:24
So i wait to see results. Still trying to find a way without vnc.It is not very useable on android. How is it on maemo ? My nitdroid and BT5 are both on EMMC.

arend79
2011-05-13, 22:19
I tried the same and got only errors.
Can you provide the steps you took.
thnx

maxxdout
2011-05-13, 22:26
im only at 600 mhz at the moment with bt5 on sd. speed comparable to easy debian. having some issue that may have to do with localization (all the keys do crazy stuff). over the weekend i wanna look into that and editing the startvnc script to make it fit the n900 screen. i think it will be nice and useable once sorted.
we have to look into using xephyr like easy debian does. ill probably tool around with that next week.

maxxdout
2011-05-13, 22:28
I tried the same and got only errors.
Can you provide the steps you took.
thnx

absolutely but ill be out of town over the weekend. ill do a how too sunday or monday on how i did it

kingoddball
2011-05-13, 23:18
Nitdroid runs from SD which is slower than NAND.

If we can run in Maemo it will be much faster.

skykooler
2011-05-13, 23:43
If we can run this from a chroot in Nitdroid, can it be booted from multiboot using the nitdroid kernel?

SuperDumb
2011-05-14, 01:23
When i do this VNC thing on maemo side, it is freezing my Phone :mad:
Did not happen in nitdroid.
I need to add some things to my image i made and upload hopefully tomorrow it so you can give it a go yourself :)

Estel
2011-05-14, 05:36
But how to use these partitions? Install the easy debian chroot and then boot into easy debian or boot maemo and use easy debian chroot as partition or bootable image?

Boot in Maemo and use easy debian partition (not IMAGE, image is extracted to new partition) AS a chroot :)

You use it exact same way as Easy Debian image, with difference that ED is extracted to partition (not inside image) and performance is MUCH better.

Depending on speed of SD card, extracted image can be faster on SD or on eMMC - i don't care, just use it inside eMMC, cause i got SD class 2.

Anyway, even on SD class 2, access is much faster on native partition, than inside image.

same apply to backtrack.

SuperDumb
2011-05-14, 11:34
Uploading img as i type :)
Will post a howto when finished later.
I will make a howto for the Maemo side, since i want to look into scripts on Nitdroid side.
Dont know why, i like the nitdroid version more.

SuperDumb
2011-05-14, 12:11
Here is how i did it :

(Be sure you have rootsh & easy-chroot)
Everything typed in terminal is blue
- Put the bt5.img anywhere (i did it in /home/user/Mydocs/bt5, so rest of the howto is based on that but can be changed)
- open Terminal
- sudo gainroot
- mkdir /mnt/bt5 (needs to be done only first time to create the folder)
- qchroot /home/user/Mydocs/bt/bt5.img /mnt/bt5/ (when you see root@chroot you are good to go)
- export USER=root
- vncpasswd (Needs to be done once for setting up a password)
- vncserver -geometry 800x470
- startvnc
Now go back to open VNC and leave terminal open in background
In VNC use this settings :
The adress is 127.0.0.1:590x
x Is the number you see when you typed "startvnc" inside BT5. You will see something like this :
"Log file is /home/user/.vnc/Nokia-N900:x.log"
Mine was "Log file is /home/user/.vnc/Nokia-N900:1.log", so i have 127.0.0.1:5901
Enter password you choosed before, log in have fun.
When done and VNC is closed, do this to shutdown BT5:
Go back to opend terminal
- stopvnc
- exit
- qumount /mnt/bt5
- exit
- exit

Hope i did not miss something, will put the link with the img as soon as it is up (bout 1h30 left)
Will be away until tonight, hope it works.

karam
2011-05-14, 12:34
Thanks for your hard work superdump but is it usable ?
and what are the changes in the image you are uploading

les_garten
2011-05-14, 14:08
Here is how i did it :

(Be sure you have rootsh & easy-chroot)
Everything typed in terminal is blue
- Put the bt5.img anywhere (i did it in /home/user/Mydocs/bt5, so rest of the howto is based on that but can be changed)
- open Terminal
- sudo gainroot
- mkdir /mnt/bt5 (needs to be done only first time to create the folder)
- qchroot /home/user/Mydocs/bt/bt5.img /mnt/bt5/ (when you see root@chroot you are good to go)
- Export USER=root
- vncpasswd (Needs to be done once for setting up a password)
- vncserver -geometry 800x480
- startvnc
Now go back to open VNC and leave terminal open in background
In VNC use this settings :
The adress is 127.0.0.1:590x
x Is the number you see when you typed "startvnc" inside BT5. You will see something like this :
"Log file is /home/user/.vnc/Nokia-N900:x.log"
Mine was "Log file is /home/user/.vnc/Nokia-N900:1.log", so i have 127.0.0.1:5901
Enter password you choosed before, log in have fun.
When done and VNC is closed, do this to shutdown BT5:
Go back to opend terminal
- stopvnc
- exit
- qumount /mnt/bt5
- exit
- exit

Hope i did not miss something, will put the link with the img as soon as it is up (bout 1h30 left)
Will be away until tonight, hope it works.


Hi,
Good stuff. Thanx!

Do you need the NeoPwn drivers to do anything with this? Do you need one of the custom kernels to use it?

SuperDumb
2011-05-14, 14:11
Link to image (http://www.megaupload.com/?d=0YFHJO1A)
It is the original img, just resized to work on vfat.
Edit : Lol it could be that there is a password for unzipping the img. If so, its maemo .
Had tested 7zip with password.

SuperDumb
2011-05-14, 14:26
Hi,
Good stuff. Thanx!

Do you need the NeoPwn drivers to do anything with this? Do you need one of the custom kernels to use it?

Just the plain img. Nothing needed to get BT5 up and running. I will maby have a look what can be done when i have it running the way i want it in nitdroid. I use nitdroid more then maemo.Just made this for you guys to play around.

les_garten
2011-05-14, 16:49
Just the plain img. Nothing needed to get BT5 up and running. I will maby have a look what can be done when i have it running the way i want it in nitdroid. I use nitdroid more then maemo.Just made this for you guys to play around.


So it will inject packets with just this image?

SuperDumb
2011-05-14, 21:48
So it will inject packets with just this image?

Dont think so. Please tell me somebody that im wrong :p
Looks like a flu is coming to hit me :mad:
I dont hope so, but i dont think that i will test much more the next days.
Maby maxxdout will find something to make it better till im fine again.
So long

mr_pingu
2011-05-14, 21:58
maybe packetinjection works in maemo and not in NITdroid as when you chroot the maemo kernel is still used which contains also the packet injection drivers. Assuming you have power-kernel 47 or 46wl1.
or am I wrong, I almost dont know anything about chrooting, except its running an OS mounted to some point in another OS

Else I am goint to look at easy debian and make my own image with much bt5 tools included and will post with noob-friendly instructions, but since I am a noob too it can take a little while

Gi0
2011-05-14, 22:48
@SuperDumb
Thank you for your guide, works like a charm (a tiny typo on "Export USER=root" command, since it seems its case sensitive and 'export' does the trick)!
Have you tried typing anything in BT? N900 keyboard doesnt seem to work as its supposed to, i m guessing it has something to do with keymappings.

windows7
2011-05-15, 00:37
Here is how i did it :

(Be sure you have rootsh & easy-chroot)
Everything typed in terminal is blue
- Put the bt5.img anywhere (i did it in /home/user/Mydocs/bt5, so rest of the howto is based on that but can be changed)
- open Terminal
- sudo gainroot
- mkdir /mnt/bt5 (needs to be done only first time to create the folder)
- qchroot /home/user/Mydocs/bt/bt5.img /mnt/bt5/ (when you see root@chroot you are good to go)
- Export USER=root
- vncpasswd (Needs to be done once for setting up a password)
- vncserver -geometry 800x480
- startvnc
Now go back to open VNC and leave terminal open in background
In VNC use this settings :
The adress is 127.0.0.1:590x
x Is the number you see when you typed "startvnc" inside BT5. You will see something like this :
"Log file is /home/user/.vnc/Nokia-N900:x.log"
Mine was "Log file is /home/user/.vnc/Nokia-N900:1.log", so i have 127.0.0.1:5901
Enter password you choosed before, log in have fun.
When done and VNC is closed, do this to shutdown BT5:
Go back to opend terminal
- stopvnc
- exit
- qumount /mnt/bt5
- exit
- exit

Hope i did not miss something, will put the link with the img as soon as it is up (bout 1h30 left)
Will be away until tonight, hope it works.

i'm experiencing a problem.
Unzipped archive with 7zip and copy bt5.img to recommended folder.
But now seeing following error, what is happening & how can i fix it?

/mnt/bt5 # qchroot /home/user/MyDocs/bt5/bt5.img /mnt/bt5/
..stripping trailing slash...
Mounting...
using image file: /home/user/MyDocs/bt5/bt5.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
mounting /home/user/MyDocs/bt5/bt5.img on loop
.../home/user/MyDocs/bt5/bt5.img mounted on loop0
.
..
...
....
mount: mounting /var/run/pulse on /mnt/bt5/var/run/pulse failed: No such file or directory
Everything set up, running chroot...
chroot: cannot execute /bin/sh: Exec format error
/mnt/bt5 # cd
/home/user # qchroot /home/user/MyDocs/bt5/bt5.img /mnt/bt5/
..stripping trailing slash...
/mnt/bt5 has a qmount already!
/home/user/MyDocs/bt5/bt5.img already mounted on /mnt/bt5...
Everything set up, running chroot...
chroot: cannot execute /bin/sh: Exec format error
/home/user #

windows7
2011-05-15, 00:50
i'm experiencing a problem.
Unzipped archive with 7zip and copy bt5.img to recommended folder.
But now seeing following error, what is happening & how can i fix it?

/mnt/bt5 # qchroot /home/user/MyDocs/bt5/bt5.img /mnt/bt5/
..stripping trailing slash...
Mounting...
using image file: /home/user/MyDocs/bt5/bt5.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
mounting /home/user/MyDocs/bt5/bt5.img on loop
.../home/user/MyDocs/bt5/bt5.img mounted on loop0
.
..
...
....
mount: mounting /var/run/pulse on /mnt/bt5/var/run/pulse failed: No such file or directory
Everything set up, running chroot...
chroot: cannot execute /bin/sh: Exec format error
/mnt/bt5 # cd
/home/user # qchroot /home/user/MyDocs/bt5/bt5.img /mnt/bt5/
..stripping trailing slash...
/mnt/bt5 has a qmount already!
/home/user/MyDocs/bt5/bt5.img already mounted on /mnt/bt5...
Everything set up, running chroot...
chroot: cannot execute /bin/sh: Exec format error
/home/user #

well found an unrelated post that may explain why this is happening:
http://talk.maemo.org/showpost.php?p=778163&postcount=22

this was in response to this:
http://talk.maemo.org/showpost.php?p=777982&postcount=19

resuming = bad img because of missing files

Gi0
2011-05-15, 01:03
resuming = bad img because of missing files
The img, if downloaded correcty from the link SuperDump gave, works like a charm. Try downloading again in case something went wrong.

windows7
2011-05-15, 01:06
The img, if downloaded correcty from the link SuperDump gave, works like a charm. Try downloading again in case something went wrong.

how did you extracted it?

Gi0
2011-05-15, 01:19
On windows, winrar did the job

windows7
2011-05-15, 01:28
On windows, winrar did the job

just re-downloaded (deleted old files) and using 7zip unziped it in windows 7 and copied it accross via mas storage but same problem.

gone try again with winrar

Gi0
2011-05-15, 01:43
Cant think of anything that might causing this. Maybe try with a downloader, jdownloader is a good choice.
MD5 of the img currently in my N900
0e1211c5ba7ba3debe1c472e5a0e5b96

windows7
2011-05-15, 03:47
On windows, winrar did the job

no joy with winrar twice either.

something is broken in the img

hawaii
2011-05-15, 04:59
Nothing is wrong with the image archive. You're not extracting it properly or you didn't fetch the entire archive.

I'm not able to get to a desktop, however. The VNC daemon fires up just fine, but X server seems to be stuck at the checkerboard, indicating no WM has started.

michaelxy
2011-05-15, 06:01
- vncpasswd (Needs to be done once for setting up a password)

Where can I get this package ? There is a x11vnc but this package has no vncpasswd or comes the vncpasswd from the bt5.img ?

azkay
2011-05-15, 06:19
Getting the same error as above, "mount: mounting /var/run/pulse on /mnt/bt5/var/run/pulse failed:", tried winrar and 7zip.

7z file:
CRC32: 3152AB1A
MD5: 4F378F01B35B598D0B7F7B8177499CB2
SHA-1: 6647B06B741123F6DEF998B1F258308A6C4E4868

bt5.img:
CRC32: EA4D18A8
MD5: 0E1211C5BA7BA3DEBE1C472E5A0E5B96
SHA-1: 5909E268486B1D7018B1CF0CDA8A6B374C2CCE33

windows7
2011-05-15, 08:05
Getting the same error as above, "mount: mounting /var/run/pulse on /mnt/bt5/var/run/pulse failed:", tried winrar and 7zip.

7z file:
CRC32: 3152AB1A
MD5: 4F378F01B35B598D0B7F7B8177499CB2
SHA-1: 6647B06B741123F6DEF998B1F258308A6C4E4868

bt5.img:
CRC32: EA4D18A8
MD5: 0E1211C5BA7BA3DEBE1C472E5A0E5B96
SHA-1: 5909E268486B1D7018B1CF0CDA8A6B374C2CCE33

well at least i'm not going mad.

I will try from a diferent machine or vm in case that has something do with and report back.

Estel
2011-05-15, 09:29
Here is how i did it :

(Be sure you have rootsh & easy-chroot)
Everything typed in terminal is blue
- Put the bt5.img anywhere (i did it in /home/user/Mydocs/bt5, so rest of the howto is based on that but can be changed)
- open Terminal
- sudo gainroot
- mkdir /mnt/bt5 (needs to be done only first time to create the folder)
- qchroot /home/user/Mydocs/bt/bt5.img /mnt/bt5/ (when you see root@chroot you are good to go)
- Export USER=root
- vncpasswd (Needs to be done once for setting up a password)
- vncserver -geometry 800x480
- startvnc
Now go back to open VNC and leave terminal open in background
In VNC use this settings :
The adress is 127.0.0.1:590x
x Is the number you see when you typed "startvnc" inside BT5. You will see something like this :
"Log file is /home/user/.vnc/Nokia-N900:x.log"
Mine was "Log file is /home/user/.vnc/Nokia-N900:1.log", so i have 127.0.0.1:5901
Enter password you choosed before, log in have fun.
When done and VNC is closed, do this to shutdown BT5:
Go back to opend terminal
- stopvnc
- exit
- qumount /mnt/bt5
- exit
- exit

Hope i did not miss something, will put the link with the img as soon as it is up (bout 1h30 left)
Will be away until tonight, hope it works.

Again, if someone want it to work faster (better performance), don't use image, but reformat Your internal eMMC and divide a separate partition for backtrack. i'll repost SuperDumb's instructions here, (so all credits except changes goes to him) with new things and things changed to get it working on native partition written in RED:

(Be sure you have rootsh & easy-chroot)
- extract bt5 image to Your chosen partition. In our example, it will be fourth partition on eMMC, so path to it is:
/dev/mmcblk0p4
- open Terminal

root

- mkdir /mnt/bt5 (needs to be done only first time to create the folder)
- qchroot /dev/mmcblk0p4 /mnt/bt5/ (when you see root@chroot you are good to go)
- export USER=root
- vncpasswd (Needs to be done once
for setting up a password)
- vncserver -geometry 800x480
- startvnc
Now go back to open VNC and leave terminal open in background
In VNC use this settings :
The adress is 127.0.0.1:590x
x Is the number you see when you typed "startvnc" inside BT5. You will see something like this :
"Log file is /home/user/.vnc/Nokia-N900:x.log"
Mine was "Log file is /home/user/.vnc/Nokia-N900:1.log", so i have 127.0.0.1:5901
Enter password you choosed before, log in have fun.
When done and VNC is closed, do this to shutdown BT5:
Go back to opend terminal
- stopvnc
- exit
- qumount /mnt/bt5
- exit
- exit

If those was helpful to You, don't mind hitting "Thanks". Not that i did extensive testing, thought, because I'm totally not interested in backtrack mobile - all of it's "functionalities" and much more can be achieved by just using Easy Debian and installing proper packages.

Also, if anyone interested, injection drivers should work with bt (if bt developers didn't screwed something badly) inside chroot - there is no reason why it shouldn't. anyway, it works in Easy Debian.

Have fun, kids ;)

Gi0
2011-05-15, 10:33
Just a tip. After using SuperDump's way and exiting terminal, i couldnt get media player to play anything (something about audio in use)and all calls were working only via speaker, no matter if i had earphones on or if i tried to disable speaker mode.
Fire up conky or plain terminal and get xtightvnc's PID (if you dont have conky, use 'top' in terminal). After getting the PID just enter
kill Enter-PID-Number-here
SuperDump any clues on the keyboard thing?All my keys are messed up, tried 2 different vnc viewers on N900 and 1 from my computer,still no luck. Any idea what's wrong?

windows7
2011-05-15, 10:37
well at least i'm not going mad.

I will try from a diferent machine or vm in case that has something do with and report back.

no luck, repeated process in another pc and same thing.
something is wrong with content of .img file i think

azkay
2011-05-15, 10:39
Tried using Xephyr instead of vnc?

lolloo
2011-05-15, 11:22
so backtrack will make my Skype calls more clear and less choppy ??

azkay
2011-05-15, 11:24
so backtrack will make my Skype calls more clear and less choppy ??
Where are you getting Skype out of all this?

michaelxy
2011-05-15, 11:41
on my n900 is no vncpasswd

SuperDumb
2011-05-15, 12:30
As i told, this was just a img to toy around for you guys.
Since you get problems, i can look and see if i find something.Dont expect to much, im not a unix pro. I will make a new img tongight to see if your errors will go away when mounting. Lokking for a keyboard fix.
What i found out :
When set vncserver -geometry 800x470 is fits the N900 screen. No scrolling anymore.
on my n900 is no vncpasswd

vncpasswd should be done inside the chrooted bt5

maxxdout
2011-05-15, 14:08
wow superdumb you went nuts on this! good work. ill probably give your image a try. still when i get home tonight ill post the steps on doing it to an ext2 formatted sd and chrooting (incase anyones interested) its nice for me to have my install on sd cause i also own an openpandora and i could just swap my sd right over to it and see if it will boot.

Gi0
2011-05-15, 14:23
There's similar work done with xperia here (http://www.backtrack-linux.org/forums/backtrack-5-fixes/40635-bt-arm-image-optimization.html)
I ve downloaded their img too, (about 200megs smaller, no idea why). Gave it a try, again with Superdump's walkthrough. Its working, kinda slower though. Keyboard thing still there. Maybe those with problem might want to take a shot at it.

Radicalz38
2011-05-15, 14:25
Hi superdumb I have just checked this thread and wanna ask... Since you just said you just reduced the image and nothing else does backtrack really work? or is it just a simple proof of concept to show that it is capable of running on n900 but without any driver support or useable for pentesting?

Gi0
2011-05-15, 14:33
Hi superdumb I have just checked this thread and wanna ask... Since you just said you just reduced the image and nothing else does backtrack really work? or is it just a simple proof of concept to show that it is capable of running on n900 but without any driver support or useable for pentesting?
Havent tried injection yet but everything i ve tried since yesterday is working like its supposed to.

azkay
2011-05-15, 14:48
There's similar work done with xperia here (http://www.backtrack-linux.org/forums/backtrack-5-fixes/40635-bt-arm-image-optimization.html)
I ve downloaded their img too, (about 200megs smaller, no idea why). Gave it a try, again with Superdump's walkthrough. Its working, kinda slower though. Keyboard thing still there. Maybe those with problem might want to take a shot at it.

Tried Xephyr instead of VNC?

fabfour
2011-05-15, 15:11
well im a noob but i want to learn
so i follow this guide and everithing is fine

some remarks for noobs like me
1) u have to pre install rootfs easy-chroot and a vnc client ( i choose presence vnc ) and p7zip-full
2) the dowload and unzip take a long time cos I have only my dearer N900 to connect to internet and as computer
4) I follow all the steps from this guide and i have some errors that i have succesfully resolve by a little bit of googling around
5) I had also 1 error from the image : missing directory var/lib/pulse or whatever but i just mkdir this ( in chroot) and fixed
6) the step vncserver -geometry 800x470 : its better to edit the file /usr/bin/startvnc and change it there)

ok now i have that seems a ubuntu look alike ( thanks to the op and mr qole) with pentesting environment). I have to figure now how to play with all the stuff and how i can inject packets
thanks superdumb

Gi0
2011-05-15, 15:14
Tried Xephyr instead of VNC?
Νop,havent tried yet since vnc is working all right.
Think there ll be any advantages in that from the keyboard problem perspective?

azkay
2011-05-15, 15:19
Νop,havent tried yet since vnc is working all right.
Think there ll be any advantages in that from the keyboard problem perspective?

Using Xephyr on my laptop ive never had keyboard problems. I mean, its worth a try? Im copying the image over to my laptop to try shrink it because I dont have an sd card >4gb

Gi0
2011-05-15, 15:22
Will give it a shot then!Thank you
As far as the img size, no need to get a >4gb card, get the img file from SuperDump's link with the resized img or the one i posted from the xperia boards. That what i m using.

azkay
2011-05-15, 15:36
The resized image didnt work for me, the link you posted ive followed it but it keeps telling me there no space left on my output image to copy everything. Guess I have to make it a little bigger?

stevomanu
2011-05-15, 15:38
Link to image (http://www.megaupload.com/?d=0YFHJO1A)
It is the original img, just resized to work on vfat.
Edit : Lol it could be that there is a password for unzipping the img. If so, its maemo .
Had tested 7zip with password.

link is dead can anybody else reupload it please will add it to my dropbox account an post link aswell !! :cool:

Gi0
2011-05-15, 15:44
The resized image didnt work for me, the link you posted ive followed it but it keeps telling me there no space left on my output image to copy everything. Guess I have to make it a little bigger?
Sounds like a good guess

link is dead can anybody else reupload it please will add it to my dropbox account an post link aswell !! :cool:
I m uploading it to filesonic but its gonna take a while since i m on 1mbit upload:rolleyes:
Edit:I ve just checked the link, its working fine. Give it another shot.

stevomanu
2011-05-15, 15:55
i keep getting this error its been same messgae since yesterday ?

The file you are trying to access is temporarily unavailable. Please try again later.

what size is the new image then ??

Sounds like a good guess


I m uploading it to filesonic but its gonna take a while since i m on 1mbit upload:rolleyes:
Edit:I ve just checked the link, its working fine. Give it another shot.

Gi0
2011-05-15, 16:09
Then ones i ve tried (SuperDump's and the xperia boards one) are ~3,4GB and ~3.2GB respectivly. But i didnt use my 4GB sd card, i copied em in MyDocs folder and used /mnt/bt5 to mount them, all in eMMC
I m still uploading, just in case, but the file is still there.Will post a filesonic link later

shanewalsh247
2011-05-15, 16:15
i take it nobody has got it booted from sd yet, wud be nice to have it as a standalone os.

maxxdout
2011-05-15, 16:16
just had an idea. not near my computer to try it though. im gonna try the same process with a regular ubuntu arm image and see if the keyboard problem persists. if it works we can troubleshoot in reverse. still wont be home till later on tonight though if anyone gets bored and wants to give it a go..

maxxdout
2011-05-15, 16:23
i take it nobody has got it booted from sd yet, wud be nice to have it as a standalone os.

would be cool. but seeing as our maemo drivers are already patched for injection im really pushing the chroot idea.

azkay
2011-05-15, 17:04
Odd. Even after making the image smaller myself, im still getting


mount: mounting /var/run/pulse on /mnt/bt5/var/run/pulse failed: No such file or directory
Everything set up, running chroot...
chroot: cannot execute /bin/sh: Exec format error

windows7
2011-05-15, 17:06
well im a noob but i want to learn
so i follow this guide and everithing is fine

some remarks for noobs like me
1) u have to pre install rootfs easy-chroot and a vnc client ( i choose presence vnc ) and p7zip-full
2) the dowload and unzip take a long time cos I have only my dearer N900 to connect to internet and as computer
4) I follow all the steps from this guide and i have some errors that i have succesfully resolve by a little bit of googling around
5) I had also 1 error from the image : missing directory var/lib/pulse or whatever but i just mkdir this ( in chroot) and fixed
6) the step vncserver -geometry 800x470 : its better to edit the file /usr/bin/startvnc and change it there)

ok now i have that seems a ubuntu look alike ( thanks to the op and mr qole) with pentesting environment). I have to figure now how to play with all the stuff and how i can inject packets
thanks superdumb

thank you for step 5, that worked.

now i got one further error:
chroot: cannot execute /bin/sh: Exec format error

can someone help me?

i do understand to check the file permissions is something like:
ls -l /bin/sh
lrwxrwxrwx 1 root root 7 Sep 29 2010 /bin/sh -> busybox

but i don't know what i'm doing

thank you in advance

azkay
2011-05-15, 17:10
Maybe it has something to do with a few months back trying to chroot x86 with qemu. Ill have to look into it.

fatcobrah
2011-05-15, 17:16
bt5 successfully run on my n900 1 time from 6 trails and all trails end with reboot (it was running on 1000 Mhz)
big thanks to Superdump :D
have anyone uploaded the image again ?i wanna update the first post :D

stevomanu
2011-05-15, 17:30
maybe packetinjection works in maemo and not in NITdroid as when you chroot the maemo kernel is still used which contains also the packet injection drivers. Assuming you have power-kernel 47 or 46wl1.
or am I wrong, I almost dont know anything about chrooting, except its running an OS mounted to some point in another OS

Else I am goint to look at easy debian and make my own image with much bt5 tools included and will post with noob-friendly instructions, but since I am a noob too it can take a little while

good idea dude , am awaiting you finished project ..

Gi0
2011-05-15, 17:46
have anyone uploaded the image again ?i wanna update the first post :D
23 mins to go. The original img is still there though

fatcobrah
2011-05-15, 17:51
23 mins to go. The original img is still there though

thx man .already updated the 1st post :D

Gi0
2011-05-15, 18:10
Mirror to ShadowDump's img
http://www.filesonic.com/file/1004385351
MD5 of 7z arhive
3d3d8ddd703fb0d78c8d8fc86f8a3365
MD5 of img
0e1211c5ba7ba3debe1c472e5a0e5b96

edit: Unfortunately filesonic free download wont work, cause its limited to 400MB per file. I ll leave it uploaded in case anyone has an account there.

azkay
2011-05-15, 18:13
Mirror to ShadowDump's img
http://www.filesonic.com/file/1004385351
MD5 of 7z arhive
3d3d8ddd703fb0d78c8d8fc86f8a3365
MD5 of img
0e1211c5ba7ba3debe1c472e5a0e5b96

Download Error
The file that you're trying to download is larger than 400Mb.
Upgrade to Premium to download files of any size!

lol

windows7
2011-05-15, 18:14
Mirror to ShadowDump's img
http://www.filesonic.com/file/1004385351
MD5 of 7z arhive
3d3d8ddd703fb0d78c8d8fc86f8a3365
MD5 of img
0e1211c5ba7ba3debe1c472e5a0e5b96

Download Error The file that you're trying to download is larger than 400Mb.

this file server needs premium accounts for files larger then 400mb

azkay
2011-05-15, 18:18
I have no idea why im getting the /bin/sh error.

stevomanu
2011-05-15, 18:23
Mirror to ShadowDump's img
http://www.filesonic.com/file/1004385351
MD5 of 7z arhive
3d3d8ddd703fb0d78c8d8fc86f8a3365
MD5 of img
0e1211c5ba7ba3debe1c472e5a0e5b96

what size is this ?

windows7
2011-05-15, 18:26
i would upload it with my fast connection but my .img seems faulty...

michaelxy
2011-05-15, 18:30
I get the error

chroot: cannot execute /bin/sh: Exec format error

/bin/sh ---help

gets:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) multi-call binary

Gi0
2011-05-15, 18:32
Damn,no idea filesonic had that kind of restriction for free downloads. /sign
Gonna check for a workaround or i ll upload in parts again.
Size 548.1 MBs

windows7
2011-05-15, 18:39
i would upload it with my fast connection but my .img seems faulty...

I'm uploading the one i downloaded and which i cannot get it to work here, hopefully works for you.

Gi0
2011-05-15, 18:40
Good,since our MD5s are the same, we re talking about the same img, so no prob.
(..it would be another 1.30hrs to upload for me :rolleyes: )

stevomanu
2011-05-15, 18:53
Good,since our MD5s are the same, we re talking about the same img, so no prob.
(..it would be another 1.30hrs to upload for me :rolleyes: )

thanks for file size , what about using dropbox thats great an file size is good from there good quality provider .. .. just an idea

Gi0
2011-05-15, 19:16
thanks for file size , what about using dropbox thats great an file size is good from there good quality provider .. .. just an idea
Already started uploading the file in 2 parts in order to be available to free users. Windows7 will probably post links a lot faster than me but at least we will have multiple mirrors:)

windows7
2011-05-15, 19:28
I'm uploading the one i downloaded and which i cannot get it to work here, hopefully works for you.

short link here:
http://ifile.it/swqbnri

full link here:
http://ifile.it/swqbnri/bt5.7z.001


should come down at about 6MB per second

azkay
2011-05-15, 20:37
Still not working. This is stupid.

windows7
2011-05-15, 20:42
Still not working. This is stupid.

link is working

can someone double check the file signature?


just to make sure is not damage.

azkay
2011-05-15, 20:45
link is working

can someone double check the file signature?


just to make sure is not damage.

I mean, when I qchroot it I still get
chroot: cannot execute /bin/sh: Exec format error

skykooler
2011-05-15, 20:49
Download Error The file that you're trying to download is larger than 400Mb.

this file server needs premium accounts for files larger then 400mb

Maybe upload it to mediafire?

azkay
2011-05-15, 20:49
http://www.forums.internettablettalk.com/showpost.php?p=989619&postcount=77

Now I dont know if its from back then thats ruined something or something else.

windows7
2011-05-15, 20:51
I mean, when I qchroot it I still get
chroot: cannot execute /bin/sh: Exec format error

well that makes 2 of us.

Let's hope someone here double checks the file signature in the re-uploaded file, to make sure is not damaged in anyway.

I'm gone try the same procedure on a third machine to see if problem can be with unzipping archive.

windows7
2011-05-15, 20:52
Maybe upload it to mediafire?

where it is can be download at 6MB, why mediafire?

http://talk.maemo.org/showpost.php?p=1006950&postcount=148

azkay
2011-05-15, 21:50
well that makes 2 of us.

Let's hope someone here double checks the file signature in the re-uploaded file, to make sure is not damaged in anyway.

I'm gone try the same procedure on a third machine to see if problem can be with unzipping archive.

Ive tried the original image, the second link, the mirrored link, resizing the original image, unraring, 7ziping, still nothing.

windows7
2011-05-15, 22:07
just to confirm, just repeated the process with windows 2008 r2 but same problem:

chroot: cannot execute /bin/sh: Exec format error

shanewalsh247
2011-05-15, 22:19
just got bt5 up and running on my n900 through vnc on maemo, works o.k. but a standalone o.s. running from boot off of an sd would be much much better! still trawling the net to see if its a possibility

windows7
2011-05-15, 22:26
just got bt5 up and running on my n900 through vnc on maemo, works o.k. but a standalone o.s. running from boot off of an sd would be much much better! still trawling the net to see if its a possibility

what download link did you use?

Gi0
2011-05-15, 22:31
just got bt5 up and running on my n900 through vnc on maemo, works o.k. but a standalone o.s. running from boot off of an sd would be much much better! still trawling the net to see if its a possibility
Have you tried to type anything?Does your keyboard work ok?

@Windows7
I m guessing its time to check the software of your N900. I mean maybe something is missing?Just guessing..

shanewalsh247
2011-05-15, 22:31
the first one on page 9 of this thread

sequel7
2011-05-15, 22:31
I believe I have solved the exec format error problem. You have to be running the power users kernel. I was testing mine on a fresh flash of N900 and was receiving that same error myself.

Do a ` apt-get install kernel-power* `, reboot, and try chrooting again.

shanewalsh247
2011-05-15, 22:34
keyboard works ok on presence vnc but is all in caps on vnc viewer, vnc viewer seems to be a good bit more responsive too... would still prefer it to be a system in itself

Gi0
2011-05-15, 22:39
I believe I have solved the exec format error problem. You have to be running the power users kernel. I was testing mine on a fresh flash of N900 and was receiving that same error myself.

Do a ` apt-get install kernel-power* ` and try chrooting again.
Just adding feedback in case its needed, i have power users kernel installed


keyboard works ok on presence vnc but is all in caps on vnc viewer, vnc viewer seems to be a good bit more responsive too... would still prefer it to be a system in itself
Great..so i guess its my configuration that is doing weird things with my keyboard:confused:

sequel7
2011-05-15, 22:49
presencevnc seems to be working quite well for me.

jamesgloucester
2011-05-15, 23:13
Got it working on my N900.

Problems i have are:

- Keyboard not typing anything like what i'm entering.
- Screen resolution is not 800x480 (i assuming it's currently at the BT5 default)

Whenever i try to change the resolution i get a couple of errors regarding locale settings and bad display name "Nokia-N900:1"

EDIT: Fixed the resolution by editing /usr/bin/startvnc myself.
Still getting locale errors when running startvnc and the messed up keyboard, but slowly getting there :-)

Gi0
2011-05-15, 23:32
Had an idea about the keyboard(..wonder why i havent checked earlier). I checked Text Input on my N900 settings. I had Hardware Keyboard set to Greek. Turned it to English,Netherlands full of hope but still no luck. Messed up characters.

To those without a keyboard problem, whats your Text Input Settings on your N900?

@jamesgloucester
Answer the above question pls

Edit:Also, does anyone have UKeyboard (http://maemo.org/downloads/product/Maemo5/ukeyboard/) installed ?

sequel7
2011-05-16, 00:09
To those without a keyboard problem, whats your Text Input Settings on your N900?

Edit:Also, does anyone have UKeyboard (http://maemo.org/downloads/product/Maemo5/ukeyboard/) installed ?

Hardware layout: English, Nederlands
No check
Check
Check
Check
1st language: English (USA)
2nd language: Not in use
Dictionary: English (USA)

azkay
2011-05-16, 00:31
Im still getting the exec format error. apt-get install power-kernel*'d

sequel7
2011-05-16, 00:36
Im still getting the exec format error. apt-get install power-kernel*'d

And the install went through okay, and you rebooted?

azkay
2011-05-16, 01:11
And the install went through okay, and you rebooted?

Yep yep, ive a feeling im going to be not so lucky.

sequel7
2011-05-16, 03:03
Yep yep, ive a feeling im going to be not so lucky.

Can you post the output of `uname -a` ? And also do an `md5sum ./bt5.img` ?

azkay
2011-05-16, 03:16
Linux Nokia-N900 2.6.28-omap1 #1 PREEMPT Sun Aug 8 09:50:47 BST 2010 armv7l unknown

af67c2a3ce874178945d6a30d8391beb /home/user/MyDocs/bt5.img

Do I have to specifically choose which kernel to load or something?

sequel7
2011-05-16, 03:36
You shouldn't have had to if the power kernel was installed successfully, it should just be loaded when you reboot. And that's definitely not it.

Also, my bt5.img has an md5sum of ea9da7e254ab93986ceb9164847d8d88. I'm using the one directly downloaded from BackTrack's site though, not the one from page one of this thread. Your problem is definitely that the power kernel isn't running though. I'm not sure why.

azkay
2011-05-16, 04:02
So, apparently I didnt have extras devel so it didnt find it, just installed other kernel-power stuff.

Anyway, now it installed and everything- reboot, still the same output from uname -a

Yeah. This is weird, no matter how many times I reinstall/restart, it wont install.
Was using: apt-get install --reinstall -y kernel-power kernel-power-flasher

razzvi18
2011-05-16, 05:09
Hardware layout: English, Nederlands
No check
Check
Check
Check
1st language: English (USA)
2nd language: Not in use
Dictionary: English (USA)

I have also:

Hardware layout: English, Nederlands
Virtual keyboard checked
word completion notchecked
auto capitalisation not checked
insert space not checked
1st language: English (UK)
2nd language: Not in use
Dictionary: English (UK)

And presence vnc but the keyboard is not workind properly

azkay
2011-05-16, 05:21
Saw
apt-get install kernel-power-bootimg
apt-get install --reinstall multiboot-kernel-power

As ive got maemo/nitdroid dualbooting, reinstalling multiboot removes bootimg.

Bah.

Finally got it working.
apt-get remove kernel-power*

then reinstalled it all again. qchroots fine now.

azkay
2011-05-16, 07:56
If I apt-get install xserver-xephyr, then try running it; Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 I get:


[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
[xkb] Can't rename /var/tmp/filekmxB8B to /var/lib/xkb/server-02D8252E59564A234380F1E5417646A9DB3B7452.xkm, error: Invalid cross-device link
(EE) XKB: Couldn't compile keymap
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.

Fatal server error:
Failed to activate core devices.


More fun to troubleshoot. Seems theres a keyboard problem whether you go VNC or Xephyr

misiak
2011-05-16, 10:13
Saw
apt-get install kernel-power-bootimg
apt-get install --reinstall multiboot-kernel-power

As ive got maemo/nitdroid dualbooting, reinstalling multiboot removes bootimg.

Bah.

Finally got it working.
apt-get remove kernel-power*

then reinstalled it all again. qchroots fine now.

In new kernel power (47) the package multiboot-kernel-power is OBSOLETE and kernel-power-bootimg has all files which were needed for multiboot (so new kernel-power-bootimg package is the combination of old kernel-power-bootimg and multiboot-kernel-power packages), so It was OK that it removed multiboot-kernel-power.

windows7
2011-05-16, 10:26
Saw
apt-get install kernel-power-bootimg
apt-get install --reinstall multiboot-kernel-power

As ive got maemo/nitdroid dualbooting, reinstalling multiboot removes bootimg.

Bah.

Finally got it working.
apt-get remove kernel-power*

then reinstalled it all again. qchroots fine now.

I will try that tonight, cheers.

Mr. Incredible
2011-05-16, 12:59
I've copied the bt5.img to /Mydocs/bt5/
When I run "qchroot /home/user/Mydocs/bt/bt5.img /mnt/bt5/" I get an error "The image specified (/home/user/Mydocs/bt/bt5.img) does a regular nor a block special file. First paramenter must be an image file or partition."
What's wrong?

Edit:
It's "MyDocs" and /bt5/
I should write the path correctly.

sequel7
2011-05-16, 13:23
I've copied the bt5.img to /Mydocs/bt5/
When I run "qchroot /home/user/Mydocs/bt/bt5.img /mnt/bt5/" I get an error "The image specified (/home/user/Mydocs/bt/bt5.img) does a regular nor a block special file. First paramenter must be an image file or partition."
What's wrong?

Edit:
It's "MyDocs"

Check that your bt5.img MD5 sum matches one of the ones previously mentioned in here.

md5sum /home/user/MyDocs/bt/bt5.img

fatcobrah
2011-05-16, 13:43
I've copied the bt5.img to /Mydocs/bt5/
When I run "qchroot /home/user/Mydocs/bt/bt5.img /mnt/bt5/" I get an error "The image specified (/home/user/Mydocs/bt/bt5.img) does a regular nor a block special file. First paramenter must be an image file or partition."
What's wrong?

Edit:
It's "MyDocs"

so u have to type
qchroot /home/user/MyDocs/bt5/bt5.img /mnt/bt5/
not
qchroot /home/user/MyDocs/bt/bt5.img /mnt/bt5/

gabby131
2011-05-16, 14:02
according to wikipedia, BackTrack is freakin' huge hacking m*****f****n' tool! with training online??!!! holy smokes!!!

sequel7
2011-05-16, 14:08
so u have to type
qchroot /home/user/MyDocs/bt5/bt5.img /mnt/bt5/
not
qchroot /home/user/MyDocs/bt/bt5.img /mnt/bt5/

heh, good catch. I missed that he said bt5 in the first line.

sequel7
2011-05-16, 14:09
according to wikipedia, BackTrack is freakin' huge hacking m*****f****n' tool! with training online??!!! holy smokes!!!

It's actually an operating system with a whole bunch of tools compiled and ready for use. And yes, there is fantastic training available at offsec.com

gabby131
2011-05-16, 14:33
It's actually an operating system with a whole bunch of tools compiled and ready for use. And yes, there is fantastic training available at offsec.com

hmmm....great....reading upon documentations, its a killer! but i may find myself a hard time catching up on it.

sequel7
2011-05-16, 14:43
hmmm....great....reading upon documentations, its a killer! but i may find myself a hard time catching up on it.

Head here - http://www.backtrack-linux.org/downloads/

Download an ISO or a VM image or whatever, boot it up, and screw around for a bit. You'll figure it out :-)

mr_pingu
2011-05-16, 16:04
Here is how i did it :

(Be sure you have rootsh & easy-chroot)
Everything typed in terminal is blue
- Put the bt5.img anywhere (i did it in /home/user/Mydocs/bt5, so rest of the howto is based on that but can be changed)
- open Terminal
- sudo gainroot
- mkdir /mnt/bt5 (needs to be done only first time to create the folder)
- qchroot /home/user/Mydocs/bt/bt5.img /mnt/bt5/ (when you see root@chroot you are good to go)
- export USER=root
- vncpasswd (Needs to be done once for setting up a password)
- vncserver -geometry 800x470
- startvnc
Now go back to open VNC and leave terminal open in background
In VNC use this settings :
The adress is 127.0.0.1:590x
x Is the number you see when you typed "startvnc" inside BT5. You will see something like this :
"Log file is /home/user/.vnc/Nokia-N900:x.log"
Mine was "Log file is /home/user/.vnc/Nokia-N900:1.log", so i have 127.0.0.1:5901
Enter password you choosed before, log in have fun.
When done and VNC is closed, do this to shutdown BT5:
Go back to opend terminal
- stopvnc
- exit
- qumount /mnt/bt5
- exit
- exit

Hope i did not miss something, will put the link with the img as soon as it is up (bout 1h30 left)
Will be away until tonight, hope it works.

Had some time today and downloaded the img..


/mnt/bt5 gets created in / on the n900 itself? Is that right or should it be in /MyDocs/mnt/bt5?
Dont like the idea it sits in /, wont that take up rootfs space?

Gi0
2011-05-16, 16:20
Had some time today and downloaded the img..


/mnt/bt5 gets created in / on the n900 itself? Is that right or should it be in /MyDocs/mnt/bt5?
Dont like the idea it sits in /, wont that take up rootfs space?

You just mount it there (think of it like inserting a dvd in your computer). When you re done, you unmount it (remove the dvd) and you re good to go.

michaelxy
2011-05-16, 16:49
Thanks 4 to info with the not installed power kernel!
Than I dont install this kernel only because of bt5 - the risc of instability etc. is to high 4 me. With easy debian I can install most of the hacking tools 2.

mr_pingu
2011-05-16, 17:01
Thanks that made me understand but have the same as Mr. Incredible, so I think my download is corrupted or something.

Mr. Incredible
2011-05-16, 17:11
@mr_pingu
There is a typo in SuperDumb's how to (http://talk.maemo.org/showpost.php?p=1006083&postcount=83). (path should be /bt5/)
Use the description in the first post.

But it still won't work. I have another MD5 sum then the ones posted.
I'm redownloading the .img from ifile.it now.

sequel7
2011-05-16, 17:50
Thanks 4 to info with the not installed power kernel!
Than I dont install this kernel only because of bt5 - the risc of instability etc. is to high 4 me. With easy debian I can install most of the hacking tools 2.

For what it's worth, running BT5 in a chroot is exactly the same level of risk as running Debian in a chroot, no more and no less. The kernel is different, true, but it isn't going to cause instability. Also, to be honest, if stability is paramount to you, you should be using a phone that actually has official updates put out for it once in awhile.

sequel7
2011-05-16, 17:52
/mnt/bt5 gets created in / on the n900 itself? Is that right or should it be in /MyDocs/mnt/bt5?
Dont like the idea it sits in /, wont that take up rootfs space?

As Gi0 kind of said, it won't take up any of your rootfs space at all. Mounting an image like you are doing is basically similar to creating a link. While you you can access the data at /mnt/bt5, it is not actually stored there. It's stored wherever you put bt5.img.

krunge
2011-05-16, 17:59
One can run "x11vnc -storepasswd" to achieve the same effect as vncpasswd.

More info: http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd

arnoldux
2011-05-16, 19:02
made it work all the way except at the vncstart part, it is supposed to be mounted and all and with the vnc server up and running but when i use presence vnc to connect, it always says connection lost... sttrange

after that i used vncstop and at the end said no proccess to kill or something like that, so vncstart necer worked?

what do you guys suggest

cheers

edit: made it work somehow.... but i still havent been able to change the display to 800x470

sequel7
2011-05-16, 19:15
made it work all the way except at the vncstart part, it is supposed to be mounted and all and with the vnc server up and running but when i use presence vnc to connect, it always says connection lost... sttrange

after that i used vncstop and at the end said no proccess to kill or something like that, so vncstart necer worked?

what do you guys suggest

cheers

with VNC running, do an `lsof -i -P -n` and see if it lists the VNC server as having a port open, it should be 5901 by default.

Unhuman
2011-05-16, 19:28
Got it working, but is it just me or is it ABSOLUTELY unusable due to slow speed?:D
EDIT: Hm the problem is more of that vnc crashed randomly.. like it just stops running and my vnc viewer crashes :mad:

Gi0
2011-05-16, 19:29
Got it working, but is it just me or is it ABSOLUTELY unusable due to slow speed?
i m overclocked to 1Ghz and its working pretty good

Capt'n Corrupt
2011-05-16, 19:30
Got it working, but is it just me or is it ABSOLUTELY unusable due to slow speed?

But it's a full OSS POSIX environment!

sequel7
2011-05-16, 19:34
Got it working, but is it just me or is it ABSOLUTELY unusable due to slow speed?:D
EDIT: Hm the problem is more of that vnc crashed randomly.. like it just stops running and my vnc viewer crashes :mad:

Yeah, speed wise I'm doing fine on a 1ghz overclock. It could also be an issue of your memory card's speed.

For crashing, I found that my N900 was running out of memory awfully fast. If you do a `free`, you'll likely see that you have 3-4 megs free at most. To solve this, I ended up using gparted on a linux box to shrink my data partition on my mem card and added a swap partition. Once the swap partition is added, you can either add the swap partition to /etc/fstab, or run `swapon <partition dev name>`, and it'll stay till you reboot. Run `free` to test if it worked, you should see available swap space. That solved random crashing for me at any rate.

arnoldux
2011-05-16, 19:43
Got it working, but is it just me or is it ABSOLUTELY unusable due to slow speed?:D
EDIT: Hm the problem is more of that vnc crashed randomly.. like it just stops running and my vnc viewer crashes :mad:

same here, i canmake it work (sometimes) and presence vnc crashes randomly :S

i use ir overclocked to 850 ideal

mr_pingu
2011-05-16, 19:48
by whom does the keyboard work normally? and what are your settings?

Gi0
2011-05-16, 19:58
I ended up using gparted on a linux box to shrink my data partition on my mem card and added a swap partition. Once the swap partition is added, you can either add the swap partition to /etc/fstab, or run `swapon <partition dev name>`, and it'll stay till you reboot. Run `free` to test if it worked, you should see available swap space. That solved random crashing for me at any rate.
Sounds like i should also create a swap partition.To paraphrase someone famous "50 MBs should be enough for everyone" huh? How much are you using?


by whom does the keyboard work normally? and what are your settings?

Check some posts back, i ve asked the same question, got some answers that -unfortunately- didnt work. Post your settings too, just in case we find a pattern for us that keyboard doesnt work.

mr_pingu
2011-05-16, 20:15
Hardware keyboard layout: English, Nederlands
yes virtual keyboard
yes Word completion
yes Auto capitalisation
yes Insert space after word

1 language: English Dictionary: English
2nd language: Nederlands Dictionary:Nederlands

Maybe its with the locale settings not in keyboard setttings....

sequel7
2011-05-16, 20:17
Sounds like i should also create a swap partition.To paraphrase someone famous "50 MBs should be enough for everyone" huh? How much are you using?

I decided to go for overkill and gave it 2gb, but all things considered you should be comfortably fine with 512mb or so I would figure. Memory card speed will have a huge impact on the speed of your system using swap on it, so keep that in mind. I don't remember what card I'm using in mine, but it's running perfectly reasonably.

mr_pingu
2011-05-16, 20:30
Possible to make about 800 mb swap of eMMC? I don't have a memory card yet :(

Gi0
2011-05-16, 20:33
Maybe its with the locale settings not in keyboard setttings....
Gave them a shot, still no luck. Give it a try just in case.

I decided to go for overkill and gave it 2gb, but all things considered you should be comfortably fine with 512mb or so I would figure. Memory card speed will have a huge impact on the speed of your system using swap on it, so keep that in mind. I don't remember what card I'm using in mine, but it's running perfectly reasonably.

That much huh?I m thinking on creating it on system partition, not the card itself.Thanx for the tip!

mr_pingu
2011-05-16, 20:51
Did you noticed this message when starting vnc?
/home/user # qchroot /home/user/MyDocs/bt5/bt5.img /mnt/bt5/
..stripping trailing slash...
Mounting...
using image file: /home/user/MyDocs/bt5/bt5.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
mounting /home/user/MyDocs/bt5/bt5.img on loop
.../home/user/MyDocs/bt5/bt5.img mounted on loop0
.
..
...
....
mount: mounting /var/run/pulse on /mnt/bt5/var/run/pulse failed: No such file or directory
Everything set up, running chroot...
[root@chroot: /]export USER=root
[root@chroot: /]vncserver -geometry 800x470
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "en_US",
LC_ADDRESS = "en_US",
LC_MONETARY = "en_US",
LC_NUMERIC = "en_US",
LC_TELEPHONE = "en_US",
LC_MESSAGES = "en_US",
LC_IDENTIFICATION = "en_US",
LC_MEASUREMENT = "en_US",
LC_TIME = "en_US",
LC_NAME = "en_US",
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
xauth: (argv):1: bad display name "Mr_Pingu:1" in "add" command

New 'X' desktop is Mr_Pingu:1

Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/user/.vnc/Mr_Pingu:1.log

mr_pingu
2011-05-16, 20:52
Did you noticed this message when starting vnc?
/home/user # qchroot /home/user/MyDocs/bt5/bt5.img /mnt/bt5/
..stripping trailing slash...
Mounting...
using image file: /home/user/MyDocs/bt5/bt5.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
mounting /home/user/MyDocs/bt5/bt5.img on loop
.../home/user/MyDocs/bt5/bt5.img mounted on loop0
.
..
...
....
mount: mounting /var/run/pulse on /mnt/bt5/var/run/pulse failed: No such file or directory
Everything set up, running chroot...
[root@chroot: /]export USER=root
[root@chroot: /]vncserver -geometry 800x470
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "en_US",
LC_ADDRESS = "en_US",
LC_MONETARY = "en_US",
LC_NUMERIC = "en_US",
LC_TELEPHONE = "en_US",
LC_MESSAGES = "en_US",
LC_IDENTIFICATION = "en_US",
LC_MEASUREMENT = "en_US",
LC_TIME = "en_US",
LC_NAME = "en_US",
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
xauth: (argv):1: bad display name "Mr_Pingu:1" in "add" command

New 'X' desktop is Mr_Pingu:1

Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/user/.vnc/Mr_Pingu:1.log

sequel7
2011-05-16, 20:56
Did you noticed this message when starting vnc?
.
..
...
....

yes, but it still seems to work fine for me.

azkay
2011-05-16, 21:39
I was getting locale "warnings" too when I apt-get install xserver-xephyr'd.

mr_pingu
2011-05-16, 21:48
Do you run it from android to prevent keyboard issue?

Also it doesnt utillise the inbuilt swap so when RAM is full it just crashes =/

But the strangest part is still: the keyboard problem

sequel7
2011-05-16, 23:13
Do you run it from android to prevent keyboard issue?

Also it doesnt utillise the inbuilt swap so when RAM is full it just crashes =/

But the strangest part is still: the keyboard problem

I've actually not been using the qchroot method, I've been using the bootbt script, modified as detailed on my blog - https://seventhoctober.net/2011/05/backtrack-5-on-nokia-n900/

You might trying doing it that way. It shouldn't make any difference, but maybe it does.

daperl
2011-05-16, 23:17
For getting rid of those locale messages, maybe there's something that helps here:

http://talk.maemo.org/showthread.php?p=794143&postcount=107

SuperDumb
2011-05-17, 00:24
You can get rid of this error messages by typing this inside the chrooted image before starting vnc:
export LANGUAGE=en_US
export LC_ALL=en_US
I did not find anything usefull yet to get that keyboard up and running.
I tested a Xorg.conf, used the whole /lib/modules from maemo, every time it ends up with strange symbols.

sequel7
2011-05-17, 00:51
You can get rid of this error messages by typing this inside the chrooted image before starting vnc:.

After looking at https://bugs.archlinux.org/task/15388, I found that the following fixes mine:

locale-gen
export LC_ALL=en_US.utf8

arnoldux
2011-05-17, 00:57
i dont mind about getting those errors, has long has backtrack works, the problem is that when i open a terminal window inside backtrack i get all kind of stuff, including those errorrs:

LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "en_US",
LC_ADDRESS = "en_US",
LC_MONETARY = "en_US",
LC_NUMERIC = "en_US",
LC_TELEPHONE = "en_US",
LC_MESSAGES = "en_US",
LC_IDENTIFICATION = "en_US",
LC_MEASUREMENT = "en_US",
LC_TIME = "en_US",
LC_NAME = "en_US",
LANG = "en_US"

with my language of course, are you guys referring to those? or when mounted?

even so, for the people that have problem with the swap, you can hex edit the iso emmc file to get a lot more swap memory and app install memory, i did that when i flashed, i gues you guys wont flash but its the easiest way to get more mem wihtout the trouble of gparted and otther partition apps

cheerrs

maxxdout
2011-05-17, 01:39
You can get rid of this error messages by typing this inside the chrooted image before starting vnc:

I did not find anything usefull yet to get that keyboard up and running.
I tested a Xorg.conf, used the whole /lib/modules from maemo, every time it ends up with strange symbols.

right there with ya. i found a thread back in the archives that semi documents the keyboard problem on ubuntu 9.10 arm but the modules and xorg on that thread dont work haha. this is driving me nuts but also keeping me occupied... so i guess i cant complain

jamesgloucester
2011-05-17, 02:05
Had an idea about the keyboard(..wonder why i havent checked earlier). I checked Text Input on my N900 settings. I had Hardware Keyboard set to Greek. Turned it to English,Netherlands full of hope but still no luck. Messed up characters.

To those without a keyboard problem, whats your Text Input Settings on your N900?

@jamesgloucester
Answer the above question pls

Edit:Also, does anyone have UKeyboard (http://maemo.org/downloads/product/Maemo5/ukeyboard/) installed ?
Sorry for not getting back sooner.

Keyboard settings are UK, Nederlands
1st language UK, dictionary UK
No 2nd language

I can fix the locale issue using the method described by sequel7 (tried both US and GB)

Still getting keyboard issues though :(

I don't have ukeyboard installed (could installing this help?)
EDIT: I'm using presenceVNC

Gi0
2011-05-17, 02:33
Same here,tried a couple of compinations on Locale and Text Input, nothing seems to work. I have the UKeyboard installed, no help also.
I ve also tried presenceVNC besides VNC Viewer on my N900. I ve also tried RealVCN while connecting from my windows machine, no luck again.
/me puzzled

mr_pingu
2011-05-17, 05:27
even so, for the people that have problem with the swap, you can hex edit the iso emmc file to get a lot more swap memory and app install memory, i did that when i flashed, i gues you guys wont flash but its the easiest way to get more mem wihtout the trouble of gparted and otther partition apps

cheerrs

Well, that's not really the problem. Its more like when I run free in the chrooted xterm I see only 2-4 mb free of RAM and about 500 mb free of swap but still Backtrack/ presence VNC crash constantly...

maxxdout
2011-05-17, 12:35
Well, that's not really the problem. Its more like when I run free in the chrooted xterm I see only 2-4 mb free of RAM and about 500 mb free of swap but still Backtrack/ presence VNC crash constantly...

FYI real vnc doesnt seem to crash very often, it runs nicely in fullscreen. also im thinking this meego n900 keymap possibly be made to work with bt5. look here https://meego.gitorious.org/meego-device-adaptation/n900_nokia-n900-configs/merge_requests/4
[/URL] looking more into this after work, my eyes were burning last night and i had to stop

maxxdout
2011-05-17, 13:14
those keymaps i was just talking about are used in this kubuntu ARM setup script!!! https://wiki.kubuntu.org/ARM/n900/ as part of nokia-n900-configs. looks promising!

sequel7
2011-05-17, 14:12
FYI real vnc doesnt seem to crash very often, it runs nicely in fullscreen

do you mean a real vnc client on the N900? I didn't see an install package for it, was I just not looking hard enough?

maxxdout
2011-05-17, 14:44
sorry, the default vnc viewer. it has same symbol as realvnc. it doesnt have the nice toolbar like presence but once we figure out the keyboard issue mapping custom keys shouldnt be an issue

sr00t
2011-05-17, 14:50
Getting this error guys.
Nokia-N900:~# qchroot /home/user/MyDocs/downloads/BT5-GNOME-ARM/bt5.img /mnt/bt5/
..stripping trailing slash...
Mounting...
using image file: /home/user/MyDocs/downloads/BT5-GNOME-ARM/bt5.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
mounting /home/user/MyDocs/downloads/BT5-GNOME-ARM/bt5.img on loop
Mount failure!
mount: mounting /dev/loop0 on /mnt/bt5 failed: Invalid argument
Cancelling chroot...

Nokia-N900:~# md5sum /home/user/MyDocs/downloads/BT5-GNOME-ARM/bt5.img
4f378f01b35b598d0b7f7b8177499cb2 /home/user/MyDocs/downloads/BT5-GNOME-ARM/bt5.img
Nokia-N900:~#


Searched through the post and I didn't find any solution.. I don't see any missing files..
Please help me!

sequel7
2011-05-17, 15:00
mount: mounting /dev/loop0 on /mnt/bt5 failed: Invalid argument
Cancelling chroot...[/CODE]

...

Searched through the post and I didn't find any solution.. I don't see any missing files..
Please help me!

Does /mnt/bt5 exist?

misiak
2011-05-17, 15:46
Getting this error guys.
[...]
using image file: /home/user/MyDocs/downloads/BT5-GNOME-ARM/bt5.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
mounting /home/user/MyDocs/downloads/BT5-GNOME-ARM/bt5.img on loop
Mount failure!
[...]
Please help me!

Well, maybe not very creative, but what if you try to rename bt5.img to bt5.ext3 for example? I haven't checked if bt5.img is ext2 or ext3, I just mounted it on my PC and copied all files to my custom ext3 formatted sd card and forgot about .img file :P


You should be able to rename bt5.img to bt5.ext3 via file manager, then just replace in the command bt5.img to bt5.ext3 ;)

If it doesn't work, just rename bt5.ext3 back to bt5.img (to avoid future confusion).

Btw, after some tweaking and copying scripts from Easy Debian (and "apt-get install xserver-xephyr wmctrl") I've managed to run gnome desktop in chroot, but it crashed in less than 10 seconds - there were parts of BackTrack desktop and Maemo desktop visible alltogether on the screen - and all apps totally lost all focus, could not click anything and had to reboot... happened 3 times in a row while trying to use different DISPLAY variable values. I stopped trying again due to lack of time. And "apt-get install lxde" and trying to use unmodified Easy Debian scripts crashed on installing some packages (lxde-icon-theme or something similar was the problem, it returned errors with "broken pipe" and could not continue). Tried with both uncommented Ubuntu repositories (it looks like this image is just modded Ubuntu arm...? look at /etc/apt/sources.list) and copied repositories from Easy Debian's /etc/apt/sources.list, both seem to fail at installation.

About my attempts to run desktop in chroot: if anyone wants to try, that's what i made:
- uncommented repostitories in /etc/apt/sources.list
- "apt-get update" and "apt-get install xserver-xephyr wmctrl"
- copied scripts from Easy Debian - /usr/bin/xephwm5 and other which it uses and tweaked them
Then it was trying to start but showed some strange things on screen and had to reboot phone.
- tried "apt-get install lxde" and copying all /usr/bin/xeph* and /usr/bin/set-focus and /usr/bin/startlxde* scripts (and few others maybe, I don't remember) and run it without modification - on my phone the installation of lxde failed.

sr00t
2011-05-17, 15:56
Well, maybe not very creative, but what if you try to rename bt5.img to bt5.ext3 for example? I haven't checked if bt5.img is ext2 or ext3, I just mounted it on my PC and copied all files to my custom ext3 formatted sd card and forgot about .img file :P


You should be able to rename bt5.img to bt5.ext3 via file manager, then just replace in the command bt5.img to bt5.ext3 ;)

If it doesn't work, just rename bt5.ext3 back to bt5.img (to avoid future confusion).
.

Thanks for the quick answer misiak.
I did an "mv bt5.img bt5.ext3" but it shows the same output, only with "fs type is ext3", but then the same than before error shows up :-/. Thanks anyways.

If someone more knows whats happening, just tell me.


EDIT:
BTW trying to qchroot in MyDocs's VFAT partition, it is ok?

misiak
2011-05-17, 16:12
Thanks for the quick answer misiak.
I did an "mv bt5.img bt5.ext3" but it shows the same output, only with "fs type is ext3", but then the same than before error shows up :-/. Thanks anyways.

If someone more knows whats happening, just tell me.


EDIT:
BTW trying to qchroot in MyDocs's VFAT partition, it is ok?

Yes, Easy Debian also stores Debian image on MyDocs partition (or SD card) and it works, so it's not the case...

And I want to add to my previous post that after a reboot now "apt-get install lxde xserver-xephyr wmctrl" worked. After copying of /usr/bin/xeph* and /usr/bin/startlxde* and /usr/bin/set-focus (and maybe other scripts, just see if it complains) command "xephwm5" opened a BackTrack desktop, just in lxde, not default Gnome (and apps in the menu are not showing correctly), but hey, it's some progress :P Anyway, if I understand correctly and this is just modified arm Ubuntu, we could just add the backtrack arm repositories to some clean Easy Debian image (or maybe better - Ubuntu which works on N900- NITUbuntu?), apt-get all packages, customize lxde menus and have "Easy Backtrack" far easier... I will try to do this now (if I succeed, I will upload the image), for me now better news than "BackTrack 5 (arm) released" is
deb http://all.repository.backtrack-linux.org revolution main microverse non-free testing
deb http://source.repository.backtrack.linux.org revolution main microverse non-free testing
deb http://armel.repository.backtrack-linux.org revolution main microverse non-free testing in /etc/apt/sources.list, because it basically means there is now existing official Debian repository with BackTrack tools running in armel Debian :)

mr_pingu
2011-05-17, 17:03
Everybody having keyboard issues, use sequels script. https://seventhoctober.net/2011/05/backtrack-5-on-nokia-n900/,

It worked for me now I need to try the other vnc client as presence crashes alot :(

Misiak that would be nice too, I already was thinking of making a Backtrack version from Easy Debian. Didn't do anything yet, just some thinking ;)

misiak
2011-05-17, 17:18
Misiak that would be nice too, I already was thinking of making a Backtrack version from Easy Debian. Didn't do anything yet, just some thinking ;)

I'm actually thinking of customizing Ubuntu from http://talk.maemo.org/showthread.php?t=66531 or http://talk.maemo.org/showthread.php?t=58083 as it would be closer to this original BackTrack image (it looks Ubuntu-based anyway) ;)

mr_pingu
2011-05-17, 17:34
It not only looks but BackTrack is based on Ubuntu ;) From version 5 of backtrack they use 10.04, Backtrack 4 used 9.04 if I recall correctly when I was using backtrack on my laptop some time ago ;) Then I got a N900 and stopped playing with backtrack but still dreaming to run it on the N900. Now its possible :D

Well we have actually 2 choices: 1 Make Backtrack from Easy Debian
2 Make backtrack from Ubuntu ARM (10.04 would be best I think)

SuperDumb
2011-05-17, 23:14
Big thx to sequel for modifying the script. Runs sweet.

daperl
2011-05-17, 23:51
@sr00t

Here are some repositories to add to /etc/apt/sources.list:

deb http://repository.maemo.org/ fremantle/sdk free non-free
deb http://repository.maemo.org/ fremantle/tools free non-free

Then try:

sudo apt-get update
sudo apt-get install file
file <file path>

This should be the signature:

Linux rev 1.0 ext2 filesystem data (large files)

misiak
2011-05-17, 23:57
In my attempts to get rid of VNC, I got it to show gnome-desktop in Xephyr window while in chroot (like Easy Debian), but it rebooted after few seconds (although it showed desktop for a moment - progress! :) )... Probably due to N900 out of RAM (it was reaching 100% at the moment of reboot), but I need to investigate further. What I did (if you want to follow, first download the backtrackscripts.tar file attached to this post, these are modified Easy Debian scripts):
WARNING! Only for "professionals" at the moment, just need some feedback and maybe help ;P
# n900 Maemo part
sudo gainroot
mount /path/to/img/file/or/partition /mnt/bt5
cd /mnt/bt5
tar -xf /path/to/downloaded/backtrackscripts.tar
mount -o bind /dev /mnt/bt5/dev
mount -o bind /proc /mnt/bt5/proc
mount -t devpts none /mnt/bt5/dev/pts
mount -o bind /tmp /mnt/bt5/tmp
mount -o bind /var/tmp /mnt/bt5/var/tmp
mount -o bind /dev/shm /mnt/bt5/dev/shm
mount -o bind /sys /mnt/bt5/sys
leafpad /mnt/bt5/etc/apt/sources.list
# now uncomment (remove "#" from the beggining of) all lines beginning with "deb"
# save the file, exit
# so now into chroot
chroot /mnt/bt5
apt-get update
apt-get install xserver-xephyr wmctrl
useradd -m misiak
su -c xephwm5 misiak

Now a new window should open (disregard any Easy-Debian or LXDE captions, now these are just scripts from Easy Debian with few modifications) and you should see BackTrack loading. If someone really followed my steps, please report if it rebooted after loading the desktop or it worked ;)

Edit: it seems adding user and running xephwm5 as user ("misiak" in my case) makes it load fully and run for a little longer, but still reboot :/ Investigating further (creating swap partition on microsd now and will try to use "swapon /dev/mmcblk1p4" right after chrooting)

Gi0
2011-05-18, 01:01
@Sequel7
Post a reply with your script attached or the pastie link.Just to get my thanx and the credits you deserve:)

sequel7
2011-05-18, 01:55
@Sequel7
Post a reply with your script attached or the pastie link.Just to get my thanx and the credits you deserve:)

I've actually not been using the qchroot method, I've been using the bootbt script, modified as detailed on my blog - https://seventhoctober.net/2011/05/backtrack-5-on-nokia-n900/

You might trying doing it that way. It shouldn't make any difference, but maybe it does.

Glad it helps :-)

I'd rather not post the pastie link directly, as the steps leading up to it are a little different than the ones listed here.

sequel7
2011-05-18, 01:58
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
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
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
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
See what comes up with

dpkg --get-selections | grep gnome

or go through the list by hand?

azkay
2011-05-18, 17:00
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
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
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
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
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: