Skip to content

Instantly share code, notes, and snippets.

View squidds's full-sized avatar
🪼

Lenny S squidds

🪼
View GitHub Profile
@squidds
squidds / gist:4d17f240cbe3721e317a652d7913e535
Created November 15, 2022 13:56
copy of Armbian Waydroid
============================x64 debian=====================================
# upgrade kali linux kernel from 5.7 to 5.9+(download from: http://old.kali.org/kali/pool/main/l/linux/)
$ sudo dpkg -i linux-image-5.9.0-kali1-amd64_5.9.1-1kali2_amd64
# install header file(download from: https://http.kali.org/kali/pool/main/l/linux/):
$ sudo dpkg -i linux-kbuild-5.9_5.9.1-1kali2_amd64.deb linux-headers-5.9.0-kali1-common_5.9.1-1kali2_all.deb linux-headers-5.9.0-kali1-amd64_5.9.1-1kali2_amd64.deb
$ git clone https://github.com/diyism/anbox-modules.git
$ cd anbox-modules
$ sudo ./INSTALL.sh
#reboot
#don't need to add binder.devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder to grub boot parameters
(002441) [07:20:06] % chmod 666 -R /dev/binder
(002441) [07:20:06] % chmod 666 -R /dev/vndbinder
(002441) [07:20:06] % chmod 666 -R /dev/hwbinder
(002441) [07:20:06] Container manager is waiting for session to load
(003285) [07:20:30] Save session config: /var/lib/waydroid/session.cfg
(003285) [07:20:30] UserMonitor service is not even started
(003285) [07:20:30] Clipboard service is not even started
(002441) [07:20:30] % /usr/lib/waydroid/data/scripts/waydroid-net.sh start
vnic is waydroid0
(002441) [07:20:31] % mount /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
@squidds
squidds / pacman-init.sh
Created November 5, 2022 00:43
arch-lxc-init
#!/usr/bin/env bash
# Init pacman mirror
curl -s -L "https://www.archlinux.org/mirrorlist/?country=US&country=CA&protocol=https&ip_version=4" | sed -e 's/^#Server/Server/' -e '/^#/d' > /etc/pacman.d/mirrorlist
# Init key
pacman-key --init
# Init archlinux key
pacman-key --populate archlinux
# Sync repo
yes '' | pacman -Syyu
[root@alxc ~]# pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: key 677055694ADCAFA5 marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
Welcome to postmarketOS! o/
This distribution is based on Alpine Linux.
First time using postmarketOS? Make sure to read the cheatsheet in the wiki:
-> https://postmarketos.org/cheatsheet
You may change this message by editing /etc/motd.
pine64-pinebookpro:~$ sudo waydroid log
[sudo] password for user:
{
"position": "top",
"height": 30,
"modules-left": ["sway/workspaces"],
"modules-right": ["pulseaudio", "network", "battery", "custom/date", "clock", "custom/power"],
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{icon}",
paru -Syu
[sudo] password for squidd:
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
there is nothing to do
:: Looking for AUR upgrades
:: Looking for devel upgrades