[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Why haven't you guys installed a Debian chroot on your phones?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 53
Thread images: 7
File: IMG_20160219_194235~01.jpg (1 MB, 3263x2490) Image search: [Google]
IMG_20160219_194235~01.jpg
1 MB, 3263x2490
Why haven't you guys installed a Debian chroot on your phones?
I have and now I can program my atmega32 right on my phone (using a USB keyboard, or maybe not ), then compile the code, and burn it to the microcontroller.
>>
WTF is this?
>>
>>53062084
A pocket computer and an atmega32 dev board
>>
File: 1391029536498.gif (85 KB, 501x585) Image search: [Google]
1391029536498.gif
85 KB, 501x585
green text on black background confirm OP is le infamous hakkur 4chang
>>
>>53062182
Gives the best visibility in low brightness, can't blame me can you ?
>>
What's the point? There's not that much that you can't do on Android compared to Ganoo Lenox. Sure, you need root and a million stupid buggy workarounds, but it's doable.
>>
>>53062327
There are no workarounds at all, it's all very straightforward
>>
because i have an arch chroot on my phone
>>
>>53062065
Because Arch Linux is better.
>>
>>53062344
I meant workarounds for Android to do regular loonix stuff
>>
File: IMG_20160111_203835.jpg (3 MB, 2368x3200) Image search: [Google]
IMG_20160111_203835.jpg
3 MB, 2368x3200
>>53062065
>debian chroot

Dumb nigger stop falling into the memedroid meme, my phone IS GNU/Linux
>>
>>53062519
You heard that right
That's what I'm talking about
None, no workarounds
>>
>>53062578
what phone is that?
>>
Because my phone already runs gentoo
>>
File: hacking.jpg (93 KB, 533x700) Image search: [Google]
hacking.jpg
93 KB, 533x700
>>53062065
>using sparkfun boards
>ever
I bet you have a Mac too you poser.
>>
>>53062861
your phone was built in 2011 it was compiling gentoo until now.
>>
>>53062869
Sorry it's a 10$Chinese board called "ultra AVR"
Try again
>>
TERMUX
>>
>>53062199
you kidding me nigger?
>>
File: images-15.jpg (13 KB, 470x313) Image search: [Google]
images-15.jpg
13 KB, 470x313
>>53062842
Nokia N9 and N950
>>
>>53062908
Very limited repo
Can't add repos
Great if you just want a compiler and a few other things tho
>>
>>53062951
But anon green text on black background gives excellent visibility
What do you use?
>>
>>53063058
the ultimate contrast!
white text on black background.
Even reduces power consumption on amoled display
>>
How are you passing USB-OTG to the chrooted Debian?
>>
>>53063802
I bound the /dev to Debian chroot's /dev with this command

mount -o bind /dev /debian/dev

And then chroot'ed into Debian image
>>
>>53063913
does this work on any android
>>
>>53064624
It should work as long as you have busybox installed, which is 99% of the rooted phones. I have done the same with /sdcard to access it from inside of chroot. Also you need su permission to mount anything

mount -o bind /sdcard /debian/sdcard
>>
>>53062065
>virtualizing another OS on top of lagdroid
Have fun with that VM not having enough RAM because lagdroid is sucking it all up like an Indonesian whore
>>
>>53062065
Why is it Debian under Android and not Android under Debian on your phone? You should know which deserves the wider access.
That being said, I'm not sure how to do it and I'm going to just blindly follow some guide I found. Wish me luck.

>>53064953
It's not VM, it's chroot. Basically Debian and Android run in parallel using the same kernel and you use Android's interface to access Debian.
>>
>>53064953
lol its not a VM, its just a debian image mounted and chrooted into.

>>53065073
I'll help you out m8, im assuming you're running a debian (apt based in short) distro

>first step, install debootstrap
sudo apt-get install debootstrap


>then we make an image, i used a 2GB one, but it can be as small as 200MB. Following code will make a 1 GB file, you can replace the '1024' with whatever you need
dd if=/dev/zero of=image.img bs=1M count=0 seek=1024


>then we format the file as ext4
mkfs.ext4 -F image.img


Continuing...
>>
>>53065141
Doesn't change how Android is still going to be sucking up all of your RAM like an Indonesian whore.
>>
>>53064953
>le lagdroid maymay
Found the crapplecuck
>>
>>53065141
>then we mount the drive
mkdir $HOME/a
sudo mount image.img $HOME/a


>now we finally install debian in the 1 GB file. It can even install ubuntu btw.
cd $HOME
sudo debootstrap --variant=minbase --arch=armhf --foreign jessie $HOME/a

Now what the command does is, it install a 'minbase' Debian "jessie" system for a 'foreign' armhf machine

Continuing...

>>53065189
iFag defending his fisher price OS
>>
I suppose this can be done with any distro, and not just Debian, no?
>>
File: 1455846814059.png (1 MB, 771x971) Image search: [Google]
1455846814059.png
1 MB, 771x971
Literally what the fuck is the point when you can use a PC for that much faster and easier, all your really showing is that your phone is a toy that can do "fun" but ultimately useless things.
>>
>>53065224
>>53065238
>implying I use applel shit
I use a netbook because fuck toy OSes. It has worse specs than the smartphone it replaced but still performs significantly better because Android is a garbage OS. Even reading threads on 4chan from that smartphone was more of a chore than enjoyable.
>>
>>53065189
My CM 13 uses 715 MB in total on average (3 hours), with 358MB used by Android OS and 116MB by system UI. Settings page show only timed average so can't tell you peak usage and I'm not bothered enough to search for some program to check it.

>>53065281
You can do those PC things with a portable machine.
>>
>>53063553
Very little power saved doing that. The way your eyes work black background + colored text would better than black/white
>>
>>53065238
>now if it executes without any errors, your Debian partition is done! We just need to unmount it
sudo umount $HOME/a

After this is done, your PC can rest. You now just have to copy the image.img to your phone. Internal memory root will do, sdcard will too, but i personally dont like the idea because sdcard is detatchable.
Copy this script in an install.sh in the folder your image.img is.
#!/bin/sh
mount -o remount,rw /
mkdir /debian
busybox mount image.img /debian
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
chroot /debian /debootstrap/debootstrap --second-stage

>then open you favorite terminal emulator and 'cd' right to your image.img directory
>Then run the install the shell script 'install.sh' as superuser ('su')
You should then see some stuff unpacking and intalling, that does it, its installed!~
In my finaly post i will tell you how to use it, you're 90% done


>>53065257
True, if the distro has an ARM port
Usually Debian just happens to be easy to build from scratch, but it would work with arch, or kali or any other distro.

>>53065281
Its a hobby anon, hobby doesn't have to be productive now does it?
>>
>>53065333
>my bloated OS and UI only use 474 MB
kek, how much of the rest of that RAM being used is various apps that you don't want to use that Android loads anyways just to slow your device down?
>>
>>53062065
you might be interested in this: http://www.hobbyking.com/hobbyking/store/__27195__Atmel_Atmega_Socket_Firmware_Flashing_Tool.html
>>
>>53065466
If you substract 474 from 715 you get 241. And that includes also the applications I want it to load.
>>
>>53065466
all. it uses all of the left over ram with cached apps. there is no "empty" ram in android.
>>
>>53065443
>True, if the distro has an ARM port
Silly question maybe, but what stops NetBSD from running on Android then?
>>
>>53065494
How much RAM total? From the phones I've seen, your OS and UI are using between 1/4 and 1/2 of your RAM which is completely unacceptable.
>>
>>53065559
3GB, it's a tablet.
>>
File: Screenshot_2016-02-20_00-24-45.png (49 KB, 724x459) Image search: [Google]
Screenshot_2016-02-20_00-24-45.png
49 KB, 724x459
>>53065443
HAHA holy shit im talking like a drunkard in that post, pardon the grammatical mistakes
>tfw english is first language
Anyway

To log into the debian chroot, just run this script.

#!/bin/sh
mount -o remount,rw /
mkdir /debian
busybox mount /sdcard/image.img /debian
export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
mkdir /debian/sdcard
mount -o bind /sdcard /debian/sdcard
mount -o bind /dev /debian/dev
mount -o bind /proc /debian/proc
export LD_PRELOAD=""
chroot /debian /bin/bash -l

Note: In the 4th line, replace the /sdcard/image.img with wherever your image.img is located.
Run the script as superuser, now you should log right into the chroot.
DONE!

Oh and also type these commands INSIDE the chroot, they'll give you internet, i wont explain them.
echo -e "domain local\nsearch local\n" >> /etc/resolv.conf
echo -e "# DNS Google\nnameserver 8.8.8.8\nnameserver 8.8.4.4\n" >> /etc/resolv.conf

You should now add a few repos to /etc/apt/sources.list, here's mine in the pic

>>53065545
I dont know much about BSD, but i guess its because debian here runs on top of android kernel, which is basically linux. NetBSD however has its own different kernel which makes it incompatible with Android kernel (aka modified Linux)
>>
>>53065607
Thank you, kind anon!
>>
>>53065607
>NetBSD however has its own different kernel which makes it incompatible with Android kernel (aka modified Linux)
Yeah, but with an unlocked bootloader you can swap the kernel for another... what's the catch?
>>
>>53065645
If everything falls well into place, there's still the issue of drivers to worry about

desu you can run any distro on any architecture given enough time and efforts
>>
>>53062065
Because I want to be able to make and take calls on my phone.
>>
>>53063553
Greatest contrast is yellow on black though
Although nobody uses that because it's gross
>>
>>53063913
Not a good idea. You can potentionally fuck up some low level shit.
Thread replies: 53
Thread images: 7

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.