nexus 5 ubuntu & maruos & Plasma & sailfishos & alpine

alpine:

rc-update add docker but failed
dockerd --debug fix problems

rc-service docker restart

docker ps -aq

error-1: enable iptables MASQUERADE module

failed to start daemon: Error initializing network controller: Error creating default "bridge" network: Failed to Setup IP tables: Unable to enable NAT rule:  (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE: Warning: Extension MASQUERADE revision 0 not supported, missing kernel module?
iptables v1.8.9 (nf_tables):  RULE_INSERT failed (No such file or directory): rule in chain POSTROUTING
 (exit status 4))
/home/nexus # nft list tables
table inet filter
table ip nat
table ip filter
-/home/nexus # modprobe -n -v ipt_MASQUERADE
+/home/nexus # lsmod | grep nf_nat_masquerade_ipv4

-/home/nexus # modprobe ipt_MASQUERADE
+/home/nexus # modprobe nf_nat_masquerade_ipv4

/home/nexus # rc-service iptables restart
/home/nexus # rc-service docker restart

mount -o rw,remount /
systemctl set-default multi-user.target/ graphical.target 

maruos:

https://maruos.com/docs/user/tips.html

Settings > System > Developer options 

and enabling Android debugging (adb) and Root access (adb only)

`Root access`
adb root 
adb shell
lxc-start -n default

maru/maru


systemctl enable ssh
systemctl start ssh

apt-get install x11vnc
x11vnc -forever -display :0 -usepw

apt-get install kmod
modprobe tun
https://maruos.com/downloads/

Plasma

https://plasma-mobile.org/

https://wiki.postmarketos.org/wiki/Google_Nexus_5_(lg-hammerhead)

https://wiki.postmarketos.org/wiki/Category:Interface

https://wiki.postmarketos.org/wiki/Xfce4

i am success insatlled on linux(root-user) and phosh(or console-ui) !!!
download platform-tools
download pmbootstrap

$ pmbootstrap init //phosh-ui
$ pmbootstrap install

#fastboot
# !!!must be root user by sudo, fastboot = witch fastboot path

#pmbootstrap
# !!!must not be root user

$ sudo fastboot format system
$ pmbootstrap flasher flash_rootfs --partition userdata
$ pmbootstrap flasher flash_kernel
$ sudo fastboot reboot


https://wiki.archlinux.org/title/display_manager

nmtui //wifi

lg-hammerhead:/home/nexus# apk search postmarketos-ui-
sxmo-common-bluetooth-1.9.0-r1
postmarketos-ui-phosh-qt_tweaks-18-r3
postmarketos-ui-mate-5-r5
postmarketos-ui-fbkeyboard-1-r6
postmarketos-ui-plasma-mobile-3.8-r2
postmarketos-ui-xfce4-0.5.1-r7
postmarketos-ui-sway-logo-key-alt-3-r6
postmarketos-ui-sxmo-de-sway-1.9.0-r1
postmarketos-ui-weston-6-r4
postmarketos-ui-plasma-bigscreen-extras-0.2-r14
sxmo-common-qt_tweaks-1.9.0-r1
postmarketos-ui-sxmo-de-dwm-1.9.0-r0
postmarketos-ui-glacier-0.1-r4
postmarketos-ui-shelli-3-r5
postmarketos-ui-phosh-18-r3
postmarketos-ui-plasma-desktop-2-r9
postmarketos-ui-phosh-firefox-18-r3
postmarketos-ui-gnome-3-r1
postmarketos-ui-lxqt-0.1-r5
postmarketos-ui-asteroid-0.1-r3
postmarketos-ui-sway-3-r6
postmarketos-ui-plasma-mobile-extras-3.8-r2
postmarketos-ui-i3wm-0.3-r12
postmarketos-ui-console-0.1-r4
postmarketos-ui-plasma-bigscreen-0.2-r14
lg-hammerhead:/home/nexus# 

Ubuntu touch

https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html

https://ubports.com/

ubuntu-touch-16.04-lts-2333

armv7l

Using

https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html

mount -o rw,remount /
apt-get update 

service ssh start
# service --status-all |grep ssh

service zerotier-one start

Login

# shell
adb -s 06a1d62e0aca329e shell 
sudo su
<登录密码(设置->安全隐私)

# 添加_apt更新用户
grep _apt /etc/passwd /etc/shadow
adduser _apt --force-badname

# 可读写系统
mount -o rw,remount /

# 正常更新
apt-get update 
apt-get full-update

SSH

nano /etc/ssh/sshd_config

# 启用ipv6&ipv4监听
ListenAddress ::
ListenAddress 0.0.0.0

# 允许root用户登录
# PermitRootLogin without-password
PermitRootLogin yes

# 重启服务 ubuntu16,no systemctl
service ssh restart

# login with passwd
ssh phablet@192.168.x.x
ssh root@192.168.x.x

# login by pubkey
touch authorized_keys
nano /root/.ssh/authorized_keys
chmod 644/755 /root/.ssh/authorized_keys
service ssh restart

install

ssh root@192.168.x.x -i "private.key"
apt-get install curl

reboot and upstart

# /etc/init/intbird.conf
# /usr/share/upstart/sessions/intbird.conf
# ~/.local/share/upstart/intbird.conf
# ~/.config/upstart/intbird.conf

http://upstart.ubuntu.com/cookbook/upstart_cookbook.pdf