install postmarketOS on 1p6t
This commit is contained in:
parent
15e8863558
commit
1d4f37b0ed
@ -1,2 +1,2 @@
|
||||
# docs
|
||||
misc documatation, my know how organized by theme
|
||||
misc documatation, my know how organized by themes
|
||||
|
@ -46,6 +46,7 @@ Device Start End Sectors Size Type
|
||||
|
||||
mount and install:
|
||||
````sh
|
||||
[ "ls /dev/sda1" == "/dev/sda1" ] && mknod /dev/sda1 b 8 1
|
||||
mkfs.vfat /dev/sda15
|
||||
mkfs.ext4 /dev/sda1
|
||||
mount /dev/sda1 /mnt
|
||||
|
55
linux/postmarketOS/install on oneplus6t
Normal file
55
linux/postmarketOS/install on oneplus6t
Normal file
@ -0,0 +1,55 @@
|
||||
credits && resources: https://wiki.postmarketos.org/wiki/
|
||||
|
||||
### Install
|
||||
````postmarket
|
||||
init
|
||||
install --split
|
||||
export
|
||||
shutdown
|
||||
cd /tmp/postmarketOS-export
|
||||
ls
|
||||
````
|
||||
| file | where to flash |
|
||||
|--|--|
|
||||
| boot.img | boot |
|
||||
| initramfs initramfs-extra | |
|
||||
oneplus-fajita-boot.img | vendor |
|
||||
oneplus-fajita-root.img | userdata
|
||||
| vmlinuz | |
|
||||
|
||||
````fastboot
|
||||
erase dtbo
|
||||
reboot
|
||||
````
|
||||
inside postmarketOS:
|
||||
````
|
||||
sudo resize2fs /dev/sda17
|
||||
````
|
||||
### CONNECT VIA USB
|
||||
````
|
||||
ip link set dev usb0 address 12:12:12:12:12:12
|
||||
dhclient -v usb0
|
||||
ip link set usb0 up
|
||||
````
|
||||
### DNS
|
||||
````
|
||||
echo nameserver 1.1.1.1 > /etc/resolv.conf
|
||||
````
|
||||
### INTERNET VIA USB
|
||||
````
|
||||
ip route add default via 172.16.42.2
|
||||
````
|
||||
#### persistent INTERNET VIA USB
|
||||
````
|
||||
echo 'ip route add default via 172.16.42.2' > /etc/local.d/usb_internet.start
|
||||
chmod +x /etc/local.d/usb_internet.start
|
||||
rc-update add local
|
||||
````
|
||||
#### on HOST
|
||||
````
|
||||
sysctl net.ipv4.ip_forward=1
|
||||
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
|
||||
iptables -A FORWARD -s 172.16.42.0/24 -j ACCEPT
|
||||
iptables -A POSTROUTING -t nat -j MASQUERADE -s 172.16.42.0/24
|
||||
iptables-save
|
||||
````
|
Loading…
Reference in New Issue
Block a user