revive Ubuntu 24.04

This commit is contained in:
Ciro Santilli
2024-09-24 20:23:27 +01:00
parent 7d5bc0c898
commit 9c62faf2a0
3 changed files with 26 additions and 5 deletions

View File

@@ -18,7 +18,27 @@ https://zenodo.org/badge/latestdoi/64534859[image:https://zenodo.org/badge/64534
https://twitter.com/dakami/status/1344853681749934080[Dan Kaminski-approved]™ https://en.wikipedia.org/wiki/Dan_Kaminsky[RIP]. https://twitter.com/dakami/status/1344853681749934080[Dan Kaminski-approved]™ https://en.wikipedia.org/wiki/Dan_Kaminsky[RIP].
TL;DR: xref:qemu-buildroot-setup-getting-started[xrefstyle=full] TL;DR: xref:qemu-buildroot-setup-getting-started[xrefstyle=full] tested on Ubuntu 24.04:
....
git clone https://github.com/cirosantilli/linux-kernel-module-cheat
cd linux-kernel-module-cheat
sudo apt install docker
python3 -m venv .venv
. .venv/bin/activate
./setup
./run-docker create
./run-docker sh
....
This leaves you inside a Docker shell. Then inside Docker:
....
./build --download-dependencies qemu-buildroot
./run
....
and you are now in a Linux userland shell running on QEMU with everything built fully from source.
The source code for this page is located at: https://github.com/cirosantilli/linux-kernel-module-cheat[]. Due to https://github.com/isaacs/github/issues/1610[a GitHub limitation], this README is too long and not fully rendered on github.com, so either use: The source code for this page is located at: https://github.com/cirosantilli/linux-kernel-module-cheat[]. Due to https://github.com/isaacs/github/issues/1610[a GitHub limitation], this README is too long and not fully rendered on github.com, so either use:

View File

@@ -1,3 +1,4 @@
Cython==0.29.15 Cython==0.29.15
china-dictatorship @ https://github.com/cirosantilli/china-dictatorship/releases/download/0.0.74/china_dictatorship-0.0.74-py3-none-any.whl china-dictatorship @ https://github.com/cirosantilli/china-dictatorship/releases/download/0.0.74/china_dictatorship-0.0.74-py3-none-any.whl
pexpect==4.6.0 pexpect==4.6.0
setuptools==75.1.0

8
setup
View File

@@ -6,14 +6,15 @@ if [ $# -eq 1 ]; then
else else
y= y=
fi fi
if [ -f /.dockerenv ]; then indocker="$(set +e; grep -q docker /proc/1/cgroup; echo $?)"
if [ "$indocker" -eq 0 ]; then
sudo= sudo=
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
else else
sudo=sudo sudo=sudo
fi fi
$sudo apt-get update if [ "$indocker" -eq 0 ]; then
if [ -f /.dockerenv ]; then $sudo apt update
apt install -y software-properties-common apt install -y software-properties-common
add-apt-repository -y ppa:git-core/ppa add-apt-repository -y ppa:git-core/ppa
$sudo apt update $sudo apt update
@@ -25,6 +26,5 @@ $sudo apt-get install $y \
$git \ $git \
python3 \ python3 \
python3-pip \ python3-pip \
python3-distutils \
; ;
python3 -m pip install -r requirements.txt python3 -m pip install -r requirements.txt