Hacker News user krisvancil wrote: How to install a Raspberry PI computer on your Android phone or tablet?
I’m using an old Raspberry Pi 3, but this would work on my Android device as well, so this is not really an Android thing.
The steps are simple: 1.
Open up an Android terminal.
Run: sudo apt-get install -y build-essential python-dev python-pip python-setuptools python-networking python-gcc sudo apt – get install – y – dev libpng-dev libgmp-dev cd libpng sudo apt install – w python-image-config python-glibc sudo apt update sudo apt upgrade sudo apt restore – y cd ../ cd ..
git clone git://github.com/krisvacil/raspberry-pi-android-setup.git cd raspberry-pi/python-android python setup.py install cd ..
sudo python setup-setup -s ../etc/rc.local -d.
You’ll need to update your rc.local file so that you get the correct configuration.
If you’re running Raspbian Jessie or later, you can update this file in the same way.
This will install a number of things, including the Raspi Pi software, the Android SDK, and the Android device drivers.
You can use these files to build a Raspberry pi.
For instructions on how to get this done, please see the Raspberry Pi wiki.
If your phone or tablets don’t have a Raspberry Pis micro SD card slot, you’ll need a mini-SD card.
You will also need to add a USB-to-Raspberry-Pi cable, and plug it into the Pi.
There are several versions of USB-To-Raspi, but all of them are essentially the same.
The USB-TO-Rasmian SD card reader is the cheapest and easiest option, as is the micro USB port.
But if you have other options, or you’re willing to pay a premium, you could try the USB-B, USB-E, and USB-S options.
There’s also an older USB-2 adapter, and you can also use an old Micro-USB adapter if you’re on a budget.
To get a working Raspberry Pi from the command line, you need to use the apt command, which you can do with either the following options: apt-cache search pi-setup apt-add-repository search pi cd /usr/local/src/pi-setup sudo apt search pi – setup sudo apt remove pi-init sudo apt reinstall pi-install If you have a Pi Model B+ or B+, you’ll probably need to change the device’s firmware.
You might need to run sudo apt add-repo search pi.
You may also need the apt-install package, as it will install all the necessary packages.
This command will download the required packages for the Raspberry pi, and then install them on the Pi’s SD card.
It will install the SD card firmware as well.
You should see something like this: apt add – source pi-usb-driver apt-debootstrap sudo apt debootstrap pi-dev-usb cd pi-util sudo apt dpkg -i pi-device-tools sudo apt purge pi-devices sudo apt clean -f sudo apt reboot sudo apt cache -u pi-storage-tools.txt sudo apt reset -f Now, the pi-utils will do the hard work of rebooting.
But, if you’ve installed the Android drivers and you want to remove them, you’re in luck!
The command below will do this for you.
sudo apt deactivate sudo apt erase pi-settings sudo reboot The above command removes the Android driver and reinstalls the drivers from the SD cards.
You don’t need to reboot for this to work.
After you’ve rebooted, you should see a screen like this.
If everything went well, the Raspberry Pis should reboot into a reboot menu: If everything was working, it should be displayed as a reboot prompt.
To test that everything is working, run sudo reboot and you should get a message that it has successfully booted into a Linux desktop.
If it did not boot, the error messages will say something like: Error: /dev/ttyACM0: No such file or directory.
It might be that your SD card doesn’t have enough space to install the Android Drivers.
In that case, it will ask you to reboot, which will reboot your phone into a full Linux desktop with a text file and some basic commands.
If that didn’t work, try restarting your phone.
If this doesn’t work then it’s likely that the Android Device Driver installed incorrectly, which means that the driver isn’t working.
You need to reinstall the Android Driver if you want it to work correctly.
This can be done with the following command: sudo dpkg –reinstall