DIY: 10$ Raspberry Pi 4 alternative Samsung A5 with Alpine Linux PostmarketOS SSH docker pinephone
Vložit
- čas přidán 6. 09. 2024
- DIY How to install PostmarketOS (Alpine Linux) to Samsung A5 2015 (A500F) BARE METAL without Android, run docker / portainer / pihole ARM64 and make alternative for Raspberry Pi 4 2GB with all futures in budget 10$. Cheapest Pinephone.
wiki.postmarke...
Prerequisites:
1. Heimdall (Odin for Linux)
$ sudo apt install heimdall-flash
2. PostmarketOS Installation: (wiki.postmarke...)
$ git clone gitlab.com/pos...
$ cd pmbootstrap && python3 setup.py install
3. Flash bootloader github.com/msm... for Samsung A5 is lk2nd-msm8916.img
Put phone into fastboot mode: Volume Down + Power + Home
$ heimdall flash --BOOT lk2nd-msm8916.img
Once you see lk2nd fastboot screen with green START you can build software
Building software:
$ pmbootstrap init
Then:
$ pmbootstrap install
Prepare phone:
$ fastboot erase system
$ pmbootstrap flasher flash_rootfs --partition userdata
$ pmbootstrap shutdown
$ fastboot reboot
Install docker (after connecting to WiFi) and connect via SSH
$ ssh [username created during installation]@[IP address of samsung]
$ apk add docker
$ addgroup [username] docker
$ rc-update add docker boot
$ reboot (to make addgroup username docker alive)
& apk add docker-compose
& apk add py-pip python3-dev libffi-dev openssl-dev gcc libc-dev make
& pip3 install docker-compose
Portainer:
docker volume create portainer_data
docker run -d -p 8000:8000 -p 9000:9000 --name portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce
Pihole:
Note: ServerIP should be replaced with your external ip.
docker run -d \
--name pihole \
-p 53:53/tcp -p 53:53/udp \
-p 80:80 \
-e TZ="Europe/Warsaw" \
-e WEBPASSWORD= \
-v "${PIHOLE_BASE}/etc-pihole:/etc/pihole" \
-v "${PIHOLE_BASE}/etc-dnsmasq.d:/etc/dnsmasq.d" \
--dns=192.168.1.222 --dns=1.1.1.1 \
--restart=unless-stopped \
--hostname pi.hole \
-e VIRTUAL_HOST="pi.hole" \
-e PROXY_LOCATION="pi.hole" \
-e ServerIP="192.168.1.222" \
pihole/pihole:latest
Watchtower (auto update all containers):
docker run --name watchtower -v /var/run/docker.sock:/var/run/docker.sock --restart unless-stopped containrrr/watchtower --schedule "0 0 4 * * *"
Mysterium Node VPN
docker run --cap-add NET_ADMIN -d -p 4449:4449 --name myst -v myst-data:/var/lib/mysterium-node mysteriumnetwork/myst:latest service --agreed-terms-and-conditions
This is so useful I can see if a can use it as use as possible
The only problem it is the gpio functions but good work man
maybe an arduino on the usb OTG works as "GPIO"?!
but can you charge it with an active hub at the same time?!
then you can't put external power on it like a raspberry pi
But i want a cheap linux phone like this to experiment with ...
I was very happy to find a tutorial like this until finding out that postmarketOs says camera doesn't work.
Great tutorial. Very helpful
اتمنى لك التوفيق والنجاح أنا ضيفه جديده في انتظارك احلى لايك 👍
can you please make another tutorial about installing postmarketos and docker with twrp
Hi,
Can You make a little bit more step-by-step guide? Do I need PC linux to do it or can I do in via Windows?
But it is step by step.. there are no other steps. You can follow description there are all comments.
This is applicable for Samsung A5 - in other phones my be vary
Dualboot androoid and pm from sd. Os is this possible
please new tutorial
Can you specify your request?
i want your telegram
my samsung a5 sm-a5000 model
@@abcdeath4951I wish I have telegram :) you can write here
@@abcdeath4951only these models are supported A5000 does not exists
wiki.postmarketos.org/wiki/Devices
I dont have this phone anymore to record once again but where did you stuck?
Yeah it cool,