[Q] Xperia X8 and Debian - XPERIA X8 General

Hi!
Since last week I'm trying to run Debian on Xperia X8. I've already googled a bit and didn't found any information about this topic so I'm now trying the tutorials available for G1, Nexus One an Xperia X10 but with no luck.
Right now I'm stuck after installing Debian on my X8 running Floyo 0.30, because I'm not able to run it - after executing "sh /sdcard/debian/bootdeb" (of course as a root) I receive error:
chroot: can't execute '/bin/bash': No such file or directory
Click to expand...
Click to collapse
Did someone face similar problem ? Or maybe You got some information, that running Debian on X8 is impossible ? I would appreciate any help.
Thanks in advance,
Chris.

krzysiek_grucha said:
Hi!
Since last week I'm trying to run Debian on Xperia X8. I've already googled a bit and didn't found any information about this topic so I'm now trying the tutorials available for G1, Nexus One an Xperia X10 but with no luck.
Right now I'm stuck after installing Debian on my X8 running Floyo 0.30, because I'm not able to run it - after executing "sh /sdcard/debian/bootdeb" (of course as a root) I receive error:
Did someone face similar problem ? Or maybe You got some information, that running Debian on X8 is impossible ? I would appreciate any help.
Thanks in advance,
Chris.
Click to expand...
Click to collapse
Hello again!
I fought very well since yesterday and today I can tell You guys that I think it is working . I didn't test it much, but I can log into Debian, so that's somthing to start with .
First of all please notice, that this is not my port of Debian Linux, I just followed instructions available at (link was here) and it worked for me so I'm describing the whole process so maybe someone else will use it.
Unfortunatelly I was not able to post links in this guide due to XDA-DEVELOPERS.COM policies. I apologize authors of guides/startup scripts for removing their homepages. I will correct it as soon as I will be able to post links in my replies. If You need the links send me a PM and I will send it to You.
The guide from the above link is for HTC Dream (I guess), but it is also working on my Xperia X8 with Floyo 0.30 (Thanks to Racht !). I'm not sure if it will work on stock Xperia X8 ROM, but You can try.
Please also notice, that I'm not responsible for any damage to Your software/hardware caused by this guide. You're doing everything at Your own responsibility!
Before continuing You must know, that this guide is only for ROOTed devices. You wont be able to do anything without root access.
Perform a full system backup via xRecovery before doing anything. It'll help You to restore the system if something will go wrong.
So, after the short intro we should get going with the guide:
1) First of all follow the instructions available at (link was here) to download the Debian package (I tested it for 750 version of this package, but I think it'll work for 1,5GB also - the only difference is in the space available in You Debian installation after running it).
2) After downloading run /sdcard/debian/installer.sh as described in the above guide. I actually don't know what it is doing, but it is important to run it from for e.g. adb shell (please remember to check "USB Debugging" in Settings->Applications->For programmers before connecting via adb shell). Why it is important to do it this way ? Because I did it like this and it is working .
3) Now, I don't know if this is really important, but looking on the startup scripts for Ubuntu from Xperia X10 I changed my startup script (/sdcard/debian/bootdeb) in the following way:
# Based on Saurik's remount.sh - modified by Mark Walker of
# Email
modprobe ext2
clear
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
echo "Android Filesytem remounted as read/write"
export kit=/sdcard/debian
export bin=/system/bin
export mnt=/data/local/mnt
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
# busybox insmod ext2
mknod /dev/loop255 b 7 255
clear
echo " "
echo " a888a "
echo " d888888b "
echo " 8P YP Y88 "
echo " 8|o||o|88 "
echo " 8. .88 "
echo " 8 ._. Y8. "
echo " d/ 8b. "
echo " .dP . Y8b. "
echo " d8: ::88b. "
echo " d8 Y88b "
echo " :8P :888 "
echo " 8a. : _a88P "
echo " ._/ Yaa_ : .| 88P| "
echo " \ YP | 8P \. "
echo " / \._____.d| .| "
echo " --..__)888888P ._.|"
echo " "
echo " "
mount -o loop,noatime $kit/debian.img $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
echo "Custom Linux Pseudo Bootstrapper V2.1 - by Mark Walker"
echo "WEB: "
echo "EML: "
echo " "
sleep 1
echo "Starting init process"
sleep 1
echo "INIT: Debian booting....."
sleep 1
echo "Running Linux Kernel"
sysctl -w net.ipv4.ip_forward=1
sleep 1
echo "AutoMounter started"
sleep 1
echo "Type EXIT to end session"
echo "Make sure you do a proper EXIT for a clean kill of Debian!"
echo " "
chroot $mnt /bin/bash
#After exit command is executed clear it all up
echo " "
echo "Shutting down Debian........"
sleep 1
fuser -k /data/local/mnt
#busybox umount -f /data/local/mnt/dev/pts /data/local/mnt/proc /data/local/mnt/sys
#busybox umount /data/local/mnt
fuser -k /dev/block/loop2
#losetup -d /dev/block/loop2
echo "Processes killed......"
echo "Loopback device shutdown - success"
echo "Debian down"
echo "Coded by Mark Walker"
echo ""
echo ""
echo " "
echo "Rebooting device to ensure clean takedown........."
sleep 2
reboot
Click to expand...
Click to collapse
As You can see I only modified line:
mknod /dev/loop255 b 7 255
Click to expand...
Click to collapse
Because I was not sure if the loop2 device (it is set by default in this script) is free in Xperia X8 so I used loop255.
4) Now we'll proceed to the part which is causing the most of problems - Debian startup. The above guide for HTC Dream suggest us to run a command:
su
sh /sdcard/debian/bootdeb
Click to expand...
Click to collapse
In every terminal You are able to run (including Terminal Emulator for Android, adb shell etc.), but I'm telling You, that these methods will fail and will cause Your phone to reboot after few seconds. Don't worry, I shouldn't brick X8, but as I said I cannot guarantee nothing. Every single case is different.
I suggest You to install SSHDroid from the Market, run it and allow it tu run as a superuser, then download Putty to Your PC and log in into Your Xperia X8 as a root (with "admin" as a default password, unless You changed it) and run the command from Putty:
su
sh /sdcard/debian/bootdeb
Click to expand...
Click to collapse
It's done ! You're logged into Debian, now try to test the new environment, because I'm not sure what can be done in this installation .
I will now proceed to install VNC server in my Debian and maybe some GUI to access it later, but I'll post any new results if there will be some .

Hey guys id love to try this on my phone could one of you maybe make a more noob-friendly guide and also this should be on developement forum but awesome work guys
Sent from my X8 using XDA Premium App

dmcb123 said:
Hey guys id love to try this on my phone could one of you maybe make a more noob-friendly guide and also this should be on developement forum but awesome work guys
Sent from my X8 using XDA Premium App
Click to expand...
Click to collapse
Hi !
I'll prepare something more friendly as soon as I'll have 10 or more posts . As for now I must tell You that it REALLY ROCKS ! I've already set up Debian to run as a web server with Apache (hahaha !) so it looks to be fully functional on X8. Now I'm fighting with setting up FTP server and soon I will show You my first web page set up on Android device .

krzysiek_grucha said:
Hi !
I'll prepare something more friendly as soon as I'll have 10 or more posts . As for now I must tell You that it REALLY ROCKS ! I've already set up Debian to run as a web server with Apache (hahaha !) so it looks to be fully functional on X8. Now I'm fighting with setting up FTP server and soon I will show You my first web page set up on Android device .
Click to expand...
Click to collapse
Aw man you're teasing me not fair haha well i really hope this picks up speed and im sure if it was posted in developement section a lot of people would be interested

dmcb123 said:
Aw man you're teasing me not fair haha well i really hope this picks up speed and im sure if it was posted in developement section a lot of people would be interested
Click to expand...
Click to collapse
So, I think I need to "spam" a little in this thread to get these 10 posts so I'll be able to move to Development section

Hope the Admin won't be angry on me

1 left to go...

And that's it ! Today I'll move to Development section, but please give me some time to prepare some "User friendly" guide. I'll try to upload some screen shots and the most important one - the corrected startup script which will let You to run Debian without the trick with "SSHDroid", but directly from Your terminal emulator. I'll post the link to the thread on Development section in this thread as soon as it'll be finished.

Hmmmm... Still can't post on Devs...

comment on some useless topics.

Can i ask what is debian?
Sent from my X8 using Tapatalk

proadi96 said:
Can i ask what is debian?
Sent from my X8 using Tapatalk
Click to expand...
Click to collapse
Hi proadi96 !
Debian is a Linux distribution (http://www.debian.org/index.pl.html). It's an operating system.

krzysiek_grucha said:
Hi proadi96 !
Debian is a Linux distribution (http://www.debian.org/index.pl.html). It's an operating system.
Click to expand...
Click to collapse
so, what's the benefit of having debian on our phones?

SpyderX said:
so, what's the benefit of having debian on our phones?
Click to expand...
Click to collapse
Hi SpyderX!
Actually for normal user there's no benefit at all. Unfortunatelly I'm not a normal user and what I'm trying to do is to port aircrack-ng to Android.
Aircrack-ng is a WEP cracking utility which will allow me to wardrive a little bit . But to gain that I first needed to install Debian to recompile aircrack-ng for ARM so I'll be able to run it .

krzysiek_grucha said:
Hi SpyderX!
Actually for normal user there's no benefit at all. Unfortunatelly I'm not a normal user and what I'm trying to do is to port aircrack-ng to Android.
Aircrack-ng is a WEP cracking utility which will allow me to wardrive a little bit . But to gain that I first needed to install Debian to recompile aircrack-ng for ARM so I'll be able to run it .
Click to expand...
Click to collapse
Well, I´m not a dev, but as I can see, you don´t need debian running on X8 to do this. You just need android sources and setup the environment to build your app, and then pack it as an apk file. The processor you may define it during the program compilation phase. (as a flag to the compiler).

biscoitu said:
Well, I´m not a dev, but as I can see, you don´t need debian running on X8 to do this. You just need android sources and setup the environment to build your app, and then pack it as an apk file. The processor you may define it during the program compilation phase. (as a flag to the compiler).
Click to expand...
Click to collapse
Hello biscoitu !
I'm also not a developer, so I tried my best to satisfy my requirements. That's the solution which I've found out . Your solution is much simplier, but today I'm a little bit tired, but proud of myself, because I've got what I wanted

dmcb123 said:
Aw man you're teasing me not fair haha well i really hope this picks up speed and im sure if it was posted in developement section a lot of people would be interested
Click to expand...
Click to collapse
As I promised I prepared some more "newbie friendly" guide. It is available at: http://forum.xda-developers.com/showthread.php?p=17379419#post17379419.
I hope I will help someone facing issues with Debian installation .

Hello... Can you inform me if wep.cracking works? I mean are there drivers for mobiles? I like the idea, what about backtrack?
Sent from my LT15i using xda premium

shtreber said:
Hello... Can you inform me if wep.cracking works? I mean are there drivers for mobiles? I like the idea, what about backtrack?
Sent from my LT15i using xda premium
Click to expand...
Click to collapse
Hi shtreber!
Unfortunatelly I didn't find any drivers for WiFi card in X8 which are able to inject packets or set up the interface in monitor mode, but I'm not the first one who had such idea. Debian on X8 is a very "fresh" topic, but on other devices like HTC for e.g. it is working since some time, so I think the developers will be able to prepare some drivers in the future.
As for the BackTrack Linux I think it should be possible to run this distribution just like Debian, because as I said in one of the previous posts it seems to be an "universal" way to run Linux on Android. There can be some minor changes which should be easy to fix. Only thing which will change is the debootstrap image of Linux filesystem which You'll mount into Android. I even found some information on the internet, where user actually ran BackTrack on his device. If I'm not mistaken it was X10.
Right now I'm preparing to run Ubuntu on X8. If I'll be able to do this it means that every distribution (which is ready to run on ARM platform like Debian) is installable on Android. I will keep You informed about progress.

Related

Ubuntu 11.04 unity-2d VNC

Hi guys,
I'm really new here, I can't post in this thread: http://forum.xda-developers.com/showthread.php?t=836022
I created a working ubuntu11.04 .img, with unity-2d. I don't know if anybody cares, it was funny to make.
It is just a minimal install with unity-2d and tightvncserver. Really minimal. Firefox, office applications, anything else DOES NOT installed.
However, you can install anything using apt-get install.
I installed wget and nano, because it was needed to configure the vnc. I plan to make a bigger one with all the programs and stuff installed. Maybe tomorrow. Or next week.
How to use: Unzip, rename to ubuntu.img and simply replace the original ubuntu.img with this one. Use root as user/nickname and ubuntu as password, as usual.
Download link to .img:
Download link to the other files needed:
Links tomorrow. "New" .img too.
If you are a mod and you're reading this, please move this post it the thread I linked in the beginning, or anywhere where this post is in its place.
-Sorry for my english.
Please help! Give me additional space by using my referral: http://db.tt/W0knUea
edit1: So, now I've got 10 comments, I don't have to write everything in separate comments. What I've done yet: make some simple script to automatically turn on/off the vncserver (1024x600, tab native res, I found it enough), and get tired of the resource hungriness of unity-2d. I mean it needs about the same CPU power (I guess) as the galaxy tab has, and it needs about 200MB RAM. But this is to run native. The VNC version is far from native, so it's slow as f..., I mean, very slow. Then I looked for a little less resource-hungry desktop environment, and I found lxde. I made an image with that. It's slow too, but much faster than unity-2d. I need to configure it a little more, to be more touch-friendly. And I want to do a few other thing, and write a how to make your own .img file thing. If you want to do it now, here some links, I will write about it sometimes.
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
https://wiki.ubuntu.com/ARM/RootfsFromScratch
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
http://galaxytabhacks.com/galaxy-ta...tall-ubuntu-linux-on-galaxy-tab-10-1-tabuntu/
http://androlinux.com/android-ubuntu-development/how-to-build-chroot-arm-ubuntu-images-for-android/
I also suggest reading mount, umount and rootstock man pages.
This image works quite well. As with every VNC build, its a bit slow and Unity doesn't help that (even in its nice Unity-2d form), but if you want Ubuntu on your Tab this is a pretty sweet image. Ultra-lightweight, too. Nice work, OP!
Firstly, thankyou for not making 10 spam posts just to get this posted in the Development section, shouldnt take you long to get 10 posts under your belt in this thread then I'll move it into the dev section for you
Good job by the way..
how to run this?
http://forum.xda-developers.com/showthread.php?t=836022
It's writen down here.
The link to the files is in the first post.
Do I write 'bootubuntu' in command line instead of 'bootlinux' or do I have to change the filename of 'bootubuntu' file? I guess first of the two is correct, but it's better to ask than to brick
Oh and is the AndroidSDK really needed? I don't see anything about usage of it in instruction....
maslak666 said:
Do I write 'bootubuntu' in command line instead of 'bootlinux' or do I have to change the filename of 'bootubuntu' file? I guess first of the two is correct, but it's better to ask than to brick
Oh and is the AndroidSDK really needed? I don't see anything about usage of it in instruction....
Click to expand...
Click to collapse
Hi!
The SDK is not strictly necessary since you could use a Terminal Emulator to run the necessary commands but using an ADB shell is just bit easier sometimes. That being said, you should install the SDK if you ever want to do much with an Android. It's easy to install and very powerful.
And yes, write bootubuntu instead of bootlinux when prompted. I know what you mean
Allright, I went through it and now got it installed . But I can't see firefox nor any office application... How to access them? Also can't get into terminal to write 'apt-install' there.....
maslak666 said:
But I can't see firefox nor any office application... How to access them?
Click to expand...
Click to collapse
sisa7 said:
Really minimal. Firefox, office applications, anything else DOES NOT installed.
However, you can install anything using apt-get install.
Click to expand...
Click to collapse
I'll write a howto tonight or next day or I don't know. I need to study to university too. You need adb or android terminal emulator (from the market) to use apt. Short version: when your prompt is "[email protected]:/#" simply do this command: "apt-get install firefox"
Just poked around a little. Now I know (or at least I think I now) what else I have to do.
http://dl.dropbox.com/u/41806444/bootubuntu2
Cleaned up version of bootubuntu. Copy it to /sdcard/ubuntu and simply run it. You need to use the sh command, so type "sh bootubuntu2" in android terminal emulator or adb shell in /sdcard/ubuntu foler.
Oh, sorry I forgot to mention, this script only works with overcome kernel and rom. You shold modify the
mount -o remount,rw -t ext4 /dev/block/stl9 /system
and the
mount -o remount,ro -t ext4 /dev/block/stl9 /system
rows. Enter "mount" to android terminal to see your /system dir type and path.
Synaptic looks like to work, software-center doesn't even start.
To really enjoy full linux distros like this, one should have a swap-enabled kernel. Instead, kernel on the Tab has no swap, and if you dare open some large app, the lack of ram makes it slow and unresponsive.
This is the main problem imho.
Ernesto de Bernardis
N900 - Galaxy Tab 7"
sisa7 said:
Oh, sorry I forgot to mention, this script only works with overcome kernel and rom. You shold modify the
mount -o remount,rw -t ext4 /dev/block/stl9 /system
and the
mount -o remount,ro -t ext4 /dev/block/stl9 /system
rows. Enter "mount" to android terminal to see your /system dir type and path.
Click to expand...
Click to collapse
Or keep it simple silly
mount -o remount,rw /dev/block/stl9 /system
mount -o remount,ro /dev/block/stl9 /system
cdesai said:
Or keep it simple silly
mount -o remount,rw /dev/block/stl9 /system
mount -o remount,ro /dev/block/stl9 /system
Click to expand...
Click to collapse
The /dev/block/stl9 part is changing too.
debernardis said:
one should have a swap-enabled kernel. Instead, kernel on the Tab has no swap
Click to expand...
Click to collapse
Thanks. I didn't know this is the problem. I will try out http://forum.xda-developers.com/showthread.php?t=483110 this and see what happens.
@sisa7 do you have any update?
debernardis said:
@sisa7 do you have any update?
Click to expand...
Click to collapse
Yep.
This email is an automated notification from Dropbox that your Public links have been temporarily suspended for generating excessive traffic. Your Dropbox will continue to function normally with the exception of Public links.
This suspension is temporary (3 days for the first time).
Sorry guys. Anybody know a decent upload site?
Also, I'm working on LXDE desktop. But the university makes me busy, so I haven't got too much time. Sorry.
Minus.com
Box.net
Multiupload.com
Is this still alive?
I tried installing the one in the other [MOD] Forum but when I try to install apps to Ubuntu I get a conection "404" error
Do you guys think this image will work?

[NO LONGER SUPPORTED][GUIDE] How to Triple Boot CM9, WebOS, and Arch Linux

ATTENTION!
This guide is outdated and I can no longer support it as I no longer own an HP Touchpad.
Disclaimer
This guide is intended for users who already have a Cyanogenmod firmware dual-booting with WebOS via Moboot. I, in no way shape or form, take any credit for this. I am simply posting this as a simple, step-by-step guide on how to triple boot (as there aren't any that I have found in this section). All credits go to their respective developers. I am in no way, shape, or form anything beyond an amateur developer who happens to be an advanced Linux and Android user. Also, I cannot be held liable for any issues you may encounter while or after following this guide.
Original Arch Linux port post can be found here: http://forum.xda-developers.com/showthread.php?t=1364034
Obvious Bugs and Things That Don't Work
-Wifi signal is a bit weak
-Camera
-Sound
-Microphone
-Bluetooth (apparently there's a fix for this floating around one of the Ubuntu threads)
-Compositing
-Multi-touch (no right click :/)
Prerequisites
-Cyanogenmod (Touchpad)
-Moboot (Touchpad)
-Novacom Driver (computer)
-Novaterm (computer)
-WebOS SDK (computer)
On Your Touchpad...
-Boot into WebOS
-Connect to your computer via USB (do NOT select USB Drive mode)
-At the home screen in the "Just Type..." search bar, type the following:
Code:
webos20090606
-You will see "Developer Mode" in the search results, open it and turn the toggle in the right hand corner of the card on
-Now stop touching it and get onto your computer
On Your Computer...
-Open Novaterm (if you are running a Linux distribution, this can simply be done in a terminal by becoming root and executing the command "novaterm"
-Now let's make some terminal love!
Mount the boot directory as readable/writable:
Code:
mount -o rw,remount /boot
Change directories to the boot directory:
Code:
cd /boot
CURL!
Code:
curl -O http://archlinuxarm.org/mirror/touchpad/uImage.ArchLinuxARM
CURL AGAIN!
Code:
curl -O http://archlinuxarm.org/mirror/touchpad/moboot.splash.ArchLinuxARM.tga
Change directories to the temporary directory:
Code:
cd /tmp
Kill this process thing!
Code:
pkill -SIGUSR1 cryptofs
Unmount the internal media:
Code:
umount /media/internal
ECHO!
Code:
echo
Resize to make room for Arch (I suggest at least 3000M, but no more than 4000M)
Code:
resizefat /dev/store/media 3000M
Resize partition:
Code:
lvm.static lvresize -L -4096M /dev/store/media
Make a new partition:
Code:
lvm.static lvcreate -L 4096M -n arch-root store
EXT3!
Code:
mkfs.ext3 /dev/store/arch-root
Let's make a directory called "linux":
Code:
mkdir linux
Mount linux:
Code:
mount /dev/store/arch-root linux
Change directories to linux!
Code:
cd linux
CURL AGAIN!
Code:
curl -O http://archlinuxarm.org/mirror/touchpad/ArchLinuxARM-touchpad-2011.12-alpha2.tar.gz
Untar! (this will take a bit...)
Code:
tar xzf ArchLinuxARM-touchpad-2011.12-alpha2.tar.gz
Well... we don't need that tarball anymore, so...
Code:
rm ArchLinuxARM-touchpad-2011.12-alpha2.tar.gz
CHANGE DIRECTORY!!!!
Code:
cd ..
Unmount the linux directory:
Code:
umount linux
Reboot! (You may have to do this a few times, you may get errors... you may keep trying?!)
Code:
reboot
Love Thy Arch
That's it, you're done. I advise opening a terminal once you're booted and updating the system with the "pacman -Syu" command (it definitely improves touch screen a bunch).
???
Profit
nice, might try this real soon when I get a chance, thanks
worked like a CHARM took forever to download and untar but its PERFECT thanks bro
Might give this a shot this weekend.
Sent from my myTouch_4G_Slide using Tapatalk
i'm getting a curl error 6 that it cant resolve dns archlinuxarm.org
i can goto the site in a browser and nslookup works in another terminal...
does my tablet need to be on wifi for this?
edit: it sure does.
In what way would this guide change to install ubuntu instead.? Thsnks
Sent from my XT910 using XDA App
djgavb said:
In what way would this guide change to install ubuntu instead.? Thsnks
Sent from my XT910 using XDA App
Click to expand...
Click to collapse
I want to know too.
added archlinux to my previous dual booting touchpad yesterday and i can no longer write to my external storage now!
I boot into webos and connect via usb I can still see my files but can't write
and CM9 can't see the partition at all....please help!
If i have to delete them, it's okay, but i just want it to work again in android. thanks in advance
getting this error on the very first CURL curl: (23) Failed writing body (714 != 4880)
i encountered MANY MANY issues trying to install this with my previous install of CM9...
had CWM, WebOS, CM9. still failed on many attempts to install from nova.
its best practice to doctor, install cm9, THEN follow these steps, will install perfectly! using right now
only issue im having is pacman command wont run, even with sudo, continuing to troubleshoot
edit** hmmm...after first reboot, arch refuses to load, and my CM9 wont display "sd" card to check uImage.archlinuxarm for commands/paths, same djxstream. WebOS internalz wont install either to view on touchpad :/
got it to work. i didnt have some dependencies installed. How do you bring up the keyboard to type in the terminal?
edit: ok found it.
---------- Post added at 04:03 AM ---------- Previous post was at 03:50 AM ----------
Solidus_n313 said:
i encountered MANY MANY issues trying to install this with my previous install of CM9...
had CWM, WebOS, CM9. still failed on many attempts to install from nova.
its best practice to doctor, install cm9, THEN follow these steps, will install perfectly! using right now
only issue im having is pacman command wont run, even with sudo, continuing to troubleshoot
edit** hmmm...after first reboot, arch refuses to load, and my CM9 wont display "sd" card to check uImage.archlinuxarm for commands/paths, same djxstream. WebOS internalz wont install either to view on touchpad :/
Click to expand...
Click to collapse
did you make sure u were connected to the internet? it worked for me with sudo
zcrugby said:
got it to work. i didnt have some dependencies installed. How do you bring up the keyboard to type in the terminal?
edit: ok found it.
---------- Post added at 04:03 AM ---------- Previous post was at 03:50 AM ----------
did you make sure u were connected to the internet? it worked for me with sudo
Click to expand...
Click to collapse
yeah, got it running after setting up wifi, took like 2 min after posting that, but arch still isnt loading :/
zcrugby said:
got it to work. i didnt have some dependencies installed. How do you bring up the keyboard to type in the terminal?
edit: ok found it.
Click to expand...
Click to collapse
mate, it really helps others if instead you say:
"ok found it, and in case someone needs it, it was like this..."
agree? ;-)
thx
k, got it going, had to start from SCRATCH. wiped partitions, rebuild, doctor to 3.0.0, installed CM9 then arch-linux.
runs great! just working on getting BT running (post 254):
http://forum.xda-developers.com/showthread.php?t=1304475&page=26
I installed XServer and XTerm and Ubuntu Chroot, then got LXDE on there. It runs fine, but I used WebOS Doctor to make a 4GB EXT partition by editing a text file in Linux. I followed a tutorial to do this awhile back. Now I want to tri-boot the actual 0.0.4 Ubuntu, CM9, and WebOS. 1. Is this even possible? 2. Will the 4GB EXT interfere with anything and what do I have to do to that partition?
---
works just fine the instruction a perfect thanks
did try to install applications but no go anyone get firefox or chrome installed ?
unistall arch just in case arch sh
http://dl.dropbox.com/u/68908006/ArchUninstall.sh
anyone want to give it a go see if it works for you
anyone having problems with install can try this and then rerun the install instructions lol just saying hope this helps other people it worked for me but do it at your own risk
i just mod it from other distro unistall sh
run this from webos in terminal
cd /media/internal
cp ArchUninstall.sh /tmp
cd /tmp
sh ArchUninstall.sh
For anyone having issues with installing apparently, run "pacman -Syu". If it doesn't work, please post your output here.
Sent from my htc_shooter using XDA
Bluetooth/Wifi
Solidus_n313 said:
k, got it going, had to start from SCRATCH. wiped partitions, rebuild, doctor to 3.0.0, installed CM9 then arch-linux.
runs great! just working on getting BT running (post 254):
http://forum.xda-developers.com/showthread.php?t=1304475&page=26
Click to expand...
Click to collapse
Anyone tried this?:
sudo depmod -a
sudo gedit /etc/modules
sudo update-rc.d bcattach_srv defaults
sudo reboot
That is the fix for the UBU install, just checking to see if this works on a TP with Arch already installed. I just havent gotten around to installing this yet but want all my ducks in a row for when I do. Thanks.
This may even help the already working WIFI.
edit: After the second command, a text editor should open up. Add "ath6kl" without the quotes to the bottom of the file, push save, close the editor, and go on the the next commands. If the touchscreen stops responding, hold power and home until the device turns off and boot back into Ubuntu and try again. It's a known bug. The last command should reboot the device again. Boot back into Ubuntu and you should have working wifi and bluetooth.
ORIG post :http://code.google.com/p/hp-touchpad-ubuntu/wiki/Installation <===THANKS!!!

[HOW-TO] Lenovo IdeaTab A1000 Rooting

HOW TO ROOT YOUR LENOVO IDEATAB A1000​
<DISCLAIMER>​
By attempting these steps, your warranty will be void. Even worse than that, it might cause crashes, freezes, random explosions, 2nd degree burns, or even turn your beloved tab into $100+ paperweight. What works on mine might not work on yours, so don't attempt if you don't know what you're doing. Do at your own risk. Corrections are welcome. I must admit that I'm not an expert, so any info I posted might be wrong, and I can't offer you much help. I'm not responsible for anything arising from the use of this how-to. I can only wish you good luck.
<WHY ROOT?>​
- Without root or OTA upgrades (at time of writing, Indonesian customers still can't get it), you'll be stuck with ~500MB internal memory. That's annoying.
- You're stuck with the default IO scheduler (cfq) and governor (hybrid, haven't heard that one..)
- You have an incredibly large amount of bloatware you can't get rid of, in that already cramped up internal storage
- Did I mention freedom?
<REQUIREMENTS>​
This method is originally used to root Acer Iconia B1-A71. Somehow I noticed that the two actually has the same chipset, MTK8317 (if it really was relevant ). So I tried the method, and through sheer n00b's luck, it worked like a charm!
Lenovo IdeaPad A1000-G --> 4GB storage, 2G/EDGE. This method haven't been tested on A1000-T/F, different storage cap (16GB, etc.) or other variants, but it should work with slight modification. Screenshots of my specs are attached below. Remember, proceed at your own risk!
A Linux System. Never tried on Windows or Mac. I personally used Linux Mint 15. The source post uses Ubuntu.
working ADB (android-tools-adb). You can get this from synaptics, apt-get, etc. If your system can detect adb devices, you should be fine.
Superuser Binary
Busybox Binary (You can get these two from the links on original post. XDA says noobs can't post links :'( )
ORIGINAL THREAD
<CREDITS>​
XDA Senior Member entonjackson, for writing such a noob-friendly how-to for rooting Acer Iconia B1-A71 and for allowing me to use it for this how-to.
XDA Member alba81, for discovering the method as acknowledged on the original post by entonjackson
All awesome gurus on XDA which I can't mention one by one.
<THE STEPS>​
1. Extract the android sdk to your home folder, e.g. a user named Bob will use like /home/bob
2. Open a terminal
3. Now plug your A1000 into your machine and turn on Debugging Mode (Go into Settings -> Developer Tools, turn on Developer tools, then turn on USB Debugging Mode)
4. Now back at the keyboard of your Linux machine in your terminal type:
Code:
sudo adb devices
The output should be something like:
Code:
123456789ABCDEF device
If it's not, google for it. Somehow your Linux hasn't detected the A1000, although the android sdk for Linux brings all needed drivers with it.
If your device was found, congratulations. The adb connection between your linux machine and your tablet is intact.
5. Now extract the downloaded busybox archive to your home folder, in it there should be a busybox binary. So Bob does:
Code:
sudo ./adb push /home/bob/busybox /data/local/tmp
Code:
sudo ./adb shell
Code:
chmod 755 /data/local/tmp/busybox
6. You should copy the busybox binary into a directory where you can access it as a plain non-root user on the tablet. We need this binary. so we can apply unix tools like telnet, dd, cat, etc. But for now we need it to establish a telnet session between our tablet and our linux machine.
(This point is written on original post. Seems important, but as soon as I finished step 5, I can use those tools)
7. Dial *#*#3646633#*#* to enter Engineer Mode
8. Go to Connectivity -> CDS Information -> Network Utility
9. type the following command:
Code:
/data/local/tmp/busybox telnetd -l /system/bin/sh -p 1234
Advice from original poster: copy and paste it from the browser on your tablet, because dependent on which keyboard app installed, this can be freakin tricky. In the next step you will learn, why it's so important why this command should be correct.
10. Tap on Run. You won't get any feedback, so you will never know if the entered command runs properly or not. That's why you should make sure the command is ok.
Now we have started our telnet server on the tablet.
11. Back in the terminal type:
Code:
/data/local/tmp/busybox telnet 127.0.0.1 1234
If you now get an error like couldn't find busybox or something, then either adb push failed or you forgot to chmod, in step 5
12. Now enter:
Code:
cat /proc/dumchar_info
You should get a bunch of lines, try to find a line containing the partition named android
{..... partition list .....}
android 0x0000000028A00000 0x00000000020E8000 2 /dev/block/mmcblk0p3
{..... partition list .....}
13. We will create a dump of our android system. This is the point where different variants *MIGHT* have different parameters. This step is important, as wrong parameter will result in unmountable image.
Stop. Take a deep breath. If you're not familiar with dd, find a good doc of it. There's a plethora of them.
Get yourself a programmer's calculator (Linux Mint 15 has one built in).
Here's what you'll do :
Convert the hex number on the 3rd column into decimal. In my case (0x20E8000) will yield 34504704. Divide by 4096. The result (8424) goes to the skip parameter.
Convert the hex number on the 2nd column. In my case (0x28A00000) will yield 681574400. Divide by 4096. The result (166400) goes to the count parameter.
So the full dd command will look like :
Code:
dd if=/dev/block/mmcblk0 bs=4096 skip=8424 count=166400 | gzip > /cache/system.img.gz
Do a full sanity check before hitting enter! It will take about 5 minutes.
14. After it's finished we must make the image readable for adb, so we do:
Code:
chmod 777 /cache
and
Code:
chmod 777 /cache/system.img.gz
15. Leave the telnet, and then adb shell session by:
Code:
exit
Code:
exit
16. Now we pull our image by
Code:
sudo adb pull /cache/system.img.gz
wait 1-2 minutes.
It should be then located inside /home/bob. It did for me. If not, do a search . It should be a .gz, extract it right there (or /home/bob if it isn't there)
17. Now we need to modify our system image by adding the tiny but helpful su binary. Extract the SU binary to /home/bob.
18. We create a folder where we will mount our system image to. To create it do:
Code:
sudo mkdir /media/a1000
19. Now we mount it:
Code:
sudo mount -o loop /home/bob/system.img /media/a1000
if it fails, then you entered wrong parameters on step 13
20. Now we copy our SU binary to our mounted system image:
Code:
sudo cp /home/bob/su /media/a1000/bin
21. the su binary needs to have the proper rights to make it usable, so we 'suid' it with:
Code:
sudo chmod 06755 /media/a1000/bin/su
22. Let's unmount our baby by:
Code:
sudo umount /media/a1000
and because bob doesn't like a messed up system, he does:
Code:
sudo rm -rf /media/a1000
because he hopefully won't need it anymore.
23. We have to gzip it again to bring it back to where it belongs to. this we do by:
Code:
cd /home/bob
Code:
gzip /home/bob/system.img
24. So here we are now, we made it to the final Boss fight! The next steps are dangerous and should be performed with caution. We copy back our modified system image, which can brick your device, if you do a mistake! Enter adb shell again :
Code:
sudo adb shell
25. Remove the old boring image:
Code:
rm /cache/system.img.gz
26. Leave adb shell
Code:
exit
27. copy our cool new system image containing the su binary:
Code:
sudo adb push /home/bob/system.img.gz /cache
28. Enter adb shell again
Code:
sudo adb shell
29. Usually the telnet server on the tablet is still running, at least in my case it's been like that. That's why we can directly connect to the telnet server with:
Code:
/data/local/tmp/busybox telnet 127.0.0.1 1234
If this doesn't work, then obviously your telnet server isn't running anymore. So on your tablet if the telnet command is still entered (see step 9), tap on Run again and repeat step 29.
30. Now this is the most dangerous step in this how to (no it wasn't the mkdir one). You can copy following command to make sure everything is fine and paste it into your telnet session on your linux terminal.
<WARNING! SANITY CHECK! MAKE SURE *ALL* THE DD PARAMETERS MATCH THE FIRST DD (STEP 13) OR YOUR A1000 WILL TURN INTO A VERY EXPENSIVE PAPERWEIGHT!>
Code:
[B]/data/local/tmp/busybox zcat /cache/system.img.gz | dd of=/dev/block/mmcblk0 bs=4096 seek=8424 count=166400[/B]
After 1-2 minutes you're done, if your tablet or pc or yourself didn't catch fire, everything's fine.
31. Leave telnet / adb shell by doing
Code:
exit
Code:
exit
32. Reboot your A1000 via ADB, then exit
Code:
sudo adb reboot
Code:
exit
33. Unplug your tablet from PC
34. Install Superuser (No, not SuperSU, cause it won't work!). I personally use Superuser by ChainsDD, from Play Store
35. Be lucky. Your tablet and thus you are now free!
Don't forget to hit thanks, if this helps ​
hi, after step 13 (i double checked the command), i get this error
Code:
/system/bin/sh: can't create /cache/system.img.gz: Permission denied
/dev/block/mmcblk0: cannot open for read: Permission denied
I have the WiFi 4G version
Im too stuck in step 13.....nothing wrong with the script, can u give me a solution?
Im using A1000G also
@ts
Your guide work perfectl, in windows enviroment but mount step still need linux,
I've question are you using DirectoryBinding? Mine always close when playing Real Racing, its very annoying
You have suggeztion or alternative for DirectoryBinding?
Root with Windows ?
Hi,
I am a new member because i bought this tblet but i can't root. I don't have a linux environment, so there is a solution with W8 Pro 64 ?
Thanks a lot for you help,
ulisez said:
hi, after step 13 (i double checked the command), i get this error
Code:
/system/bin/sh: can't create /cache/system.img.gz: Permission denied
/dev/block/mmcblk0: cannot open for read: Permission denied
I have the WiFi 4G version
Click to expand...
Click to collapse
have you chmod-ed the busybox (or is the chmod successful without error)? Try chmod-ing the /cache before attempting step 13. It seems that you still don't have access to the NAND device (mmcblk0). Have you updated firmware via OTA?
artonelico said:
Im too stuck in step 13.....nothing wrong with the script, can u give me a solution?
Im using A1000G also
Click to expand...
Click to collapse
Do you encounter the same error message like ulisez had? Could you post the screenshot of the partition list (the lines after you execute dumchar_info)?
rmage said:
@ts
Your guide work perfectl, in windows enviroment but mount step still need linux,
I've question are you using DirectoryBinding? Mine always close when playing Real Racing, its very annoying
You have suggeztion or alternative for DirectoryBinding?
Click to expand...
Click to collapse
I personally use Link2SD by Bulent Akpinar to link apps to 2nd partition on my SDcard.
Letsar said:
Hi,
I am a new member because i bought this tblet but i can't root. I don't have a linux environment, so there is a solution with W8 Pro 64 ?
Thanks a lot for you help,
Click to expand...
Click to collapse
The original developer who posted the method (entonjackson) plans to integrate the method in the next release his toolkit, the Acer Iconia Toolkit. I think you should check his thread : http://forum.xda-developers.com/showthread.php?t=2240029
sammymaddog said:
have you chmod-ed the busybox (or is the chmod successful without error)? Try chmod-ing the /cache before attempting step 13. It seems that you still don't have access to the NAND device (mmcblk0). Have you updated firmware via OTA?
Do you encounter the same error message like ulisez had? Could you post the screenshot of the partition list (the lines after you execute dumchar_info)?
I personally use Link2SD by Bulent Akpinar to link apps to 2nd partition on my SDcard.
The original developer who posted the method (entonjackson) plans to integrate the method in the next release his toolkit, the Acer Iconia Toolkit. I think you should check his thread : http://forum.xda-developers.com/showthread.php?t=2240029
Click to expand...
Click to collapse
Link2SD doesn't link app data, do you have any option?
yes i had same message with ulyses, by the way im from indonesia too can i contact you through chat client?
oh yeah im using windows 7 and using cmd as a terminal in linux
thx before bro
sammymaddog said:
The original developer who posted the method (entonjackson) plans to integrate the method in the next release his toolkit, the Acer Iconia Toolkit. I think you should check his thread : http://forum.xda-developers.com/showthread.php?t=2240029
Click to expand...
Click to collapse
Ok, i see his toolkit. It's very good. I'll wait
rmage said:
Link2SD doesn't link app data, do you have any option?
Click to expand...
Click to collapse
I'm not sure whether the stock kernel of our devices supports init.d, thus supports CronMod/Data2SD. Lenovo locked our bootloader, and currently there's no way around it. So I personally think, Link2SD method are the best option for now.
Let's give it several months until our dev gurus bring their miracles upon this device
The attached image shows mt6577 Hardware, can u provide the Soc details please
Hi, Can any one upload Lenovo ideatab A1000 system.img
in step 20, it appears you are writing to a /bin directory on the android system. However such a directory is not visible either through shell or the system telnet account.
Do I need to understand something else about android to make sense of this.
regards
vidya
one month gone past but the op seems to be in caves or has bricked the device
STOCK ROM
CAN ANY BODY PROVIDE ME A STOCK ROM OF THIS DEVISE
I HV ROOTED SUCCESSFULLY BY A VERY EASY METHOD
BUT SCREWED UP WHILE UPDATING IT SO PLZ PLZ HELP ME OUT
THE DEVICE BOOTS BUT ALL THE APP CRASHES :crying::crying:
VR.gtmini said:
The attached image shows mt6577 Hardware, can u provide the Soc details please
Click to expand...
Click to collapse
VR.gtmini said:
one month gone past but the op seems to be in caves or has bricked the device
Click to expand...
Click to collapse
sorry to make you wait. I'm a last grader university student, and final project stuffs have got me pinned down. Hope you understand
Actually the SoC is MT8317. For some god-knows reason Mediatek have made this SoC with signatures similar to MT6577. But somehow CPU tweaker correctly detects the SoC (MT8317). Maybe it's the CPU-Z bug?
unknown_world said:
Hi, Can any one upload Lenovo ideatab A1000 system.img
Click to expand...
Click to collapse
zod0070 said:
CAN ANY BODY PROVIDE ME A STOCK ROM OF THIS DEVISE
I HV ROOTED SUCCESSFULLY BY A VERY EASY METHOD
BUT SCREWED UP WHILE UPDATING IT SO PLZ PLZ HELP ME OUT
THE DEVICE BOOTS BUT ALL THE APP CRASHES :crying::crying:
Click to expand...
Click to collapse
I'm uploading the modified .img. Let's pray my old HSPA modem won't catch fire by the morning.
vidyadhara said:
in step 20, it appears you are writing to a /bin directory on the android system. However such a directory is not visible either through shell or the system telnet account.
Do I need to understand something else about android to make sense of this.
regards
vidya
Click to expand...
Click to collapse
I think you got it wrong. The write process does not take place on the device. It's on the loop-mounted .img in /mnt/a1000 on your computer (step 18-19). Cheers!
Here's the ALREADY BUSYBOX-ED .img for Ideapad A1000-G 4GB EDGE version. Hope it helps :
www dropbox com/s/rmpnz7c285t5sqz/system.7z
sammymaddog said:
Here's the ALREADY BUSYBOX-ED .img for Ideapad A1000-G 4GB EDGE version. Hope it helps :
www.dropbox.com/s/rmpnz7c285t5sqz/system.7z
Click to expand...
Click to collapse
Thanks for coming back, could u post the MD5 of the system.7z & system.zip.
Also could u provide simple way/steps to directly flash this .img without extracting existing stock system image
My tab A1000-G
do you have stockROM for lenovo A1000G
I need this :crying:
raffly said:
do you have stockROM for lenovo A1000G
I need this :crying:
Click to expand...
Click to collapse
Don't worry, the above link is a stock Lenovo A1000 G ROM, but with pre-root files having no superuser app. Just extract the .7z file
System.7z MD5: 658CA71AC8A230B244F267513857F9A5

(help) kali linux on galaxy s5 sm-g900f

hello guys sorry for my english, but at the time is possibile to have kali linux on android 4.4.2 of galaxy s5??? i try a lot of guide but nothing, thanks
Yes there is a way. I am running Kali Linux on my Galaxy s5 now!!
Download linux deploy and install Kali linux from there.
GL!
la2o said:
Yes there is a way. I am running Kali Linux on my Galaxy s5 now!!
Download linux deploy and install Kali linux from there.
GL!
Click to expand...
Click to collapse
i've already tried but nothing , maybe can you send me a pvt message with a little guide for the installation?? p.s. i have a sdcard of 8 gb
I tried Linux on Android but it gives invalid argument mounting the loop device. Linux Deploy has an option to not use a loop device and install to a folder I think. Not positive. Try Advanced Linux Installer. That might work. It costs but it's way better than the free version. Try Standard Linux Installer first if you like.
Could you please add some note on how you managed to install?
I am trying with several options, but always get stuck on a "dd: permission denied" creating the volume
Z
I'll try to provide that info. What you're seeing likely means where it's trying to write isn't allowed. Try changing the install location to somewhere safe like /data/kali or something. Also I just found out the S5 won't do ext2 so if you're trying to do a loop device use ext4 if possible. Sorry I don't have more info at the moment.
I am having the same issue. What SU app are you using? I am using SuperSU, I read that SuperSU might be the problem but I do not know the conditions on how to switch SU apps. Hopefully we can find a solution.
Just got running.
use a terminal emulator as root
cd /data/data/ru.meefik.linuxdeploy/linux/bin
rm sh chroot
ln -s /system/bin/mksh sh
ln -s /system/xbin/busybox chroot
make sure your file location is on your sd card
change image size to appropriate size.
also change to ext4 file system
DipSprayArc said:
Just got running.
use a terminal emulator as root
cd /data/data/ru.meefik.linuxdeploy/linux/bin
rm sh chroot
ln -s /system/bin/mksh sh
ln -s /system/xbin/busybox chroot
make sure your file location is on your sd card
change image size to appropriate size.
also change to ext4 file system
Click to expand...
Click to collapse
Can you explain this deeper? I typed that in an emulater but no luck
DipSprayArc said:
Just got running.
use a terminal emulator as root
cd /data/data/ru.meefik.linuxdeploy/linux/bin
rm sh chroot
ln -s /system/bin/mksh sh
ln -s /system/xbin/busybox chroot
make sure your file location is on your sd card
change image size to appropriate size.
also change to ext4 file system
Click to expand...
Click to collapse
Also here are screen shots of my errors, settings, and anything else I figured might be useful to you. Thanks for help in advance.
I think it's long overdue for a Galaxy S4/5 guide. I know tinkering must be done and there are several issues to negotiate. I've found scattered info here and there but nothing definitive. Complete Linux Installer or Linux Deploy. Either/or. The only way I've ever got Linux to work is by installing to a directory and doing a chroot into it and doing a debootstrap.
Please&ty.
Is the stock WiFi radio compatible with packet injection or monitor mode on the S5 that you know of? I never put much effort into the install after I had such as hard time initially, attempting to install it to my extSdCard.
Solution
Hi there, I tried to install the kali distro in a s5 (g900f) with de Linux Deploy v 1.5.5 and I couldnt, i downloaded the 1.4 and neither but with de v 1.3 I could make it!
So if you are having any troubles with the installation, just download a previous version from the project's github (here)
Hope it helps!
su error
[email protected]:~$ su
Password:
su: Authentication failure
[email protected]:~$ sudo -i
sudo: PERM_ROOT: setresuid(0, -1, -1): Permission denied
[email protected]:~$
And now ?
plz help bro

[Working] Enable multiuser on Lollipop

Enable Multi-User setting in Lollipop for MOTO E fully Working​
Requisites
1:Moto E With Lollipop
2:Root Moto E
3:Android Sdk With ADB
Now Do This​
INSTRUCTIONS
1:Enabled USB Debugging, and connect via USB ur device
2:Go to ur Pc Open CMD and type -cd C:\Android SDK\sdk\platform-tools [Enter]
3:Type-adb shell [Enter]
4: Type-su [Enter] (SuperSU may ask you to allow this on ur device - do so)
Now Type the following, EXACTLY in order, EXACTLY as shown​
5:Type-mount -o remount,rw /system [Enter]
6:Type-echo fw.max_users=3 >> /system/build.prop && echo fw.show_multiuserui=1>> /system/build.prop && reboot [Enter]
After Do All That You Will See Ur Device Reboot Automatically.
Congrats You have successfully enabled Multi-user setting.
Go To settings and You Will See a New User Settings In your Device.....
Always take backup of orignal build.prop.
If your phone not starting go to twrp mount system go to file manager copy paste original build.prop [yes twrp recovery can do this] and then again select the file and chmod 755 and your phone will be back to normal and also will start
There is an even more simple guide and i guess you just copied that stuff and posted with the adb instructions added. Grow up man, there is no need for creating a mess around here by creating more threads about the same thing which already have been explained so beautifully and clearly !! Atleast you might have considered stating your source !
Source -
http://forum.xda-developers.com/showthread.php?t=3033585
Sent from my XT1022 using XDA Free mobile app
Hay bro i create this thread because ur procedure not work for me.....
dharsayantan said:
Hay bro i create this thread because ur procedure not work for me.....
Click to expand...
Click to collapse
Its fine buddy, I meant no offence. Just wanted to make the point that u shud at least mention the source of your knowledge so that the true credit goes to the one who truly deserves it ! That's it! Rest, carry on the good work for there will be many who will find your work useful.
Sent from my XT1022 using XDA Free mobile app
sory
sory for all mess my fault

Categories

Resources