DIY: 10$ Raspberry Pi 4 alternative Samsung A5 with Alpine Linux PostmarketOS SSH docker pinephone

Sdílet
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

Komentáře • 21

  • @chilledbroccoli899
    @chilledbroccoli899 Před 2 lety +3

    This is so useful I can see if a can use it as use as possible

  • @BetagameTest
    @BetagameTest Před 2 lety +3

    The only problem it is the gpio functions but good work man

    • @Henry-sv3wv
      @Henry-sv3wv Před 2 lety +1

      maybe an arduino on the usb OTG works as "GPIO"?!
      but can you charge it with an active hub at the same time?!

    • @Henry-sv3wv
      @Henry-sv3wv Před 7 měsíci

      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 ...

  • @digitalpotato4867
    @digitalpotato4867 Před rokem +1

    I was very happy to find a tutorial like this until finding out that postmarketOs says camera doesn't work.

  • @blamayam
    @blamayam Před 2 lety +1

    Great tutorial. Very helpful

  • @user-bw4wi8ox7b
    @user-bw4wi8ox7b Před rokem +1

    اتمنى لك التوفيق والنجاح أنا ضيفه جديده في انتظارك احلى لايك 👍

  • @ldersovski5245
    @ldersovski5245 Před rokem +1

    can you please make another tutorial about installing postmarketos and docker with twrp

  • @smokehead5318
    @smokehead5318 Před 2 lety +1

    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?

    • @Le.Chiffre
      @Le.Chiffre  Před 2 lety

      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

  • @inkontainableargs6
    @inkontainableargs6 Před 7 měsíci

    Dualboot androoid and pm from sd. Os is this possible

  • @abcdeath4951
    @abcdeath4951 Před 10 měsíci

    please new tutorial

    • @Le.Chiffre
      @Le.Chiffre  Před 10 měsíci +1

      Can you specify your request?

    • @abcdeath4951
      @abcdeath4951 Před 9 měsíci

      i want your telegram

    • @abcdeath4951
      @abcdeath4951 Před 9 měsíci

      my samsung a5 sm-a5000 model

    • @Le.Chiffre
      @Le.Chiffre  Před 9 měsíci

      @@abcdeath4951I wish I have telegram :) you can write here

    • @Le.Chiffre
      @Le.Chiffre  Před 9 měsíci

      ​@@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?

  • @Nocommentsuwu
    @Nocommentsuwu Před 8 měsíci

    Yeah it cool,