Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e45c32c5b | ||
|
|
2ea9dfe496 | ||
|
|
71053feaf8 | ||
|
|
feddc61aaa | ||
|
|
da36a897e8 | ||
|
|
0a3306216b | ||
|
|
a1758113a7 | ||
|
|
bf41a69626 | ||
|
|
6dac92c8d2 | ||
|
|
8ed309eb99 |
No files matched your search
@@ -3,6 +3,10 @@ name: Build Airlys OS S1 Production ISO
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
paths-ignore:
|
||||||
|
- '.github/workflows/screenshot.yml'
|
||||||
|
- 'scripts/**'
|
||||||
|
- 'README.md'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -10,7 +14,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-iso:
|
build-iso:
|
||||||
name: Build Airlys OS S1 Live ISO (KDE Plasma 6)
|
name: Build Airlys OS S1 Live ISO
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
@@ -28,7 +32,7 @@ jobs:
|
|||||||
pacman-key --init
|
pacman-key --init
|
||||||
pacman-key --populate archlinux
|
pacman-key --populate archlinux
|
||||||
pacman -Sy --noconfirm archlinux-keyring
|
pacman -Sy --noconfirm archlinux-keyring
|
||||||
pacman -Syu --noconfirm archiso git github-cli
|
pacman -Syu --noconfirm archiso git github-cli clang make
|
||||||
|
|
||||||
- name: Build Airlys OS S1 Live ISO
|
- name: Build Airlys OS S1 Live ISO
|
||||||
run: |
|
run: |
|
||||||
@@ -42,10 +46,46 @@ jobs:
|
|||||||
# 3. Append KDE Plasma 6 desktop & AMD hardware packages
|
# 3. Append KDE Plasma 6 desktop & AMD hardware packages
|
||||||
cat profile/packages.x86_64 >> build_profile/packages.x86_64
|
cat profile/packages.x86_64 >> build_profile/packages.x86_64
|
||||||
|
|
||||||
# 4. Overlay our Airlys OS S1 branding, wallpapers, autologin and configs
|
# 4. Brand bootloader menus with Airlys OS S1 (remove all third party names)
|
||||||
|
find build_profile/efiboot build_profile/syslinux -type f -exec sed -i \
|
||||||
|
-e 's/Arch Linux install medium/Airlys OS S1 Live \& Installer/g' \
|
||||||
|
-e 's/Arch Linux/Airlys OS S1/g' \
|
||||||
|
-e 's/archlinux/airlys/g' \
|
||||||
|
-e 's/Archiso/Airlys OS/g' {} +
|
||||||
|
|
||||||
|
# 5. Enable Graphical Desktop Target & SDDM Display Manager (ensures direct boot to KDE GUI!)
|
||||||
|
mkdir -p build_profile/airootfs/etc/systemd/system/graphical.target.wants/
|
||||||
|
ln -sf /usr/lib/systemd/system/graphical.target build_profile/airootfs/etc/systemd/system/default.target
|
||||||
|
ln -sf /usr/lib/systemd/system/sddm.service build_profile/airootfs/etc/systemd/system/display-manager.service
|
||||||
|
ln -sf /usr/lib/systemd/system/sddm.service build_profile/airootfs/etc/systemd/system/graphical.target.wants/sddm.service
|
||||||
|
|
||||||
|
# 6. Overlay our Airlys OS S1 branding, wallpapers, autologin and configs
|
||||||
cp -r profile/airootfs/* build_profile/airootfs/
|
cp -r profile/airootfs/* build_profile/airootfs/
|
||||||
|
|
||||||
# 5. Apply Airlys OS S1 profiledef (xz -Xbcj x86 compression)
|
# 6.1. Build & pre-install AiraLang S1 Duo Native Systems Engine into Airlys OS
|
||||||
|
echo "Building AiraLang S1 Duo Native Engine for Airlys OS..."
|
||||||
|
git clone --depth 1 https://github.com/adameehanairagroup/Airalang.git /tmp/airalang-build
|
||||||
|
cd /tmp/airalang-build/s1duo
|
||||||
|
make
|
||||||
|
mkdir -p "$GITHUB_WORKSPACE/build_profile/airootfs/usr/bin"
|
||||||
|
cp bin/airalang "$GITHUB_WORKSPACE/build_profile/airootfs/usr/bin/airalang"
|
||||||
|
cp bin/airalang "$GITHUB_WORKSPACE/build_profile/airootfs/usr/bin/airalang3"
|
||||||
|
chmod 755 "$GITHUB_WORKSPACE/build_profile/airootfs/usr/bin/airalang" "$GITHUB_WORKSPACE/build_profile/airootfs/usr/bin/airalang3"
|
||||||
|
cd "$GITHUB_WORKSPACE"
|
||||||
|
|
||||||
|
# 7. Pre-create airlys user with passwordless PAM autologin directly in airootfs
|
||||||
|
echo "airlys:x:1000:1000:Airlys User:/home/airlys:/bin/bash" >> build_profile/airootfs/etc/passwd
|
||||||
|
echo "airlys::19000:0:99999:7:::" >> build_profile/airootfs/etc/shadow
|
||||||
|
echo "airlys:x:1000:" >> build_profile/airootfs/etc/group
|
||||||
|
echo "wheel:x:998:airlys" >> build_profile/airootfs/etc/group
|
||||||
|
echo "video:x:985:airlys" >> build_profile/airootfs/etc/group
|
||||||
|
echo "audio:x:986:airlys" >> build_profile/airootfs/etc/group
|
||||||
|
echo "input:x:987:airlys" >> build_profile/airootfs/etc/group
|
||||||
|
mkdir -p build_profile/airootfs/home/airlys/.config
|
||||||
|
cp -r build_profile/airootfs/etc/skel/. build_profile/airootfs/home/airlys/ || true
|
||||||
|
chown -R 1000:1000 build_profile/airootfs/home/airlys || true
|
||||||
|
|
||||||
|
# 8. Apply Airlys OS S1 profiledef (xz -Xbcj x86 compression)
|
||||||
cp -f profile/profiledef.sh build_profile/profiledef.sh
|
cp -f profile/profiledef.sh build_profile/profiledef.sh
|
||||||
|
|
||||||
# 6. Build full production live bootable ISO
|
# 6. Build full production live bootable ISO
|
||||||
@@ -77,7 +117,7 @@ jobs:
|
|||||||
echo "ISO is under 2GB limit! Uploading direct single airlys.iso..."
|
echo "ISO is under 2GB limit! Uploading direct single airlys.iso..."
|
||||||
gh release create v1.0.0-s1 bin/airlys.iso bin/sha256sum.txt \
|
gh release create v1.0.0-s1 bin/airlys.iso bin/sha256sum.txt \
|
||||||
--title "Airlys OS S1 - Official Production Release" \
|
--title "Airlys OS S1 - Official Production Release" \
|
||||||
--notes "Airlys OS S1 (KDE Plasma 6 Desktop + Linux Zen 6.x) engineered by Er. Adam Eehan (Aira Group of Technology) & Aira 3 Ultra. Direct bootable ISO for Acer Nitro V 15 & modern UEFI PCs." \
|
--notes "Airlys OS S1 Official Production Release engineered by Er. Adam Eehan (Founder & CEO, Aira Group of Technology) & Aira 3 Ultra. Direct bootable ISO for Acer Nitro V 15 & modern UEFI PCs." \
|
||||||
--repo ${{ github.repository }}
|
--repo ${{ github.repository }}
|
||||||
else
|
else
|
||||||
echo "ISO exceeds 2GB limit ($ISO_SIZE bytes), splitting into parts for GitHub Releases..."
|
echo "ISO exceeds 2GB limit ($ISO_SIZE bytes), splitting into parts for GitHub Releases..."
|
||||||
@@ -86,6 +126,6 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
gh release create v1.0.0-s1 bin/airlys.iso.part-* bin/sha256sum.txt \
|
gh release create v1.0.0-s1 bin/airlys.iso.part-* bin/sha256sum.txt \
|
||||||
--title "Airlys OS S1 - Official Production Release" \
|
--title "Airlys OS S1 - Official Production Release" \
|
||||||
--notes "Airlys OS S1 (KDE Plasma 6 Desktop + Linux Zen 6.x) engineered by Er. Adam Eehan (Aira Group of Technology) & Aira 3 Ultra." \
|
--notes "Airlys OS S1 Official Production Release engineered by Er. Adam Eehan (Founder & CEO, Aira Group of Technology) & Aira 3 Ultra. Direct bootable ISO for Acer Nitro V 15 & modern UEFI PCs." \
|
||||||
--repo ${{ github.repository }}
|
--repo ${{ github.repository }}
|
||||||
fi
|
fi
|
||||||
@@ -0,0 +1,130 @@
|
|||||||
|
name: Capture Airlys OS S1 Live Boot Screenshot
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["Build Airlys OS S1 Production ISO"]
|
||||||
|
types: [completed]
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/screenshot.yml'
|
||||||
|
- 'scripts/capture_qemu.py'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
screenshot:
|
||||||
|
name: Boot Airlys OS S1 & Capture Live Desktop
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install QEMU & Enable KVM Virtualization
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y qemu-system-x86 imagemagick
|
||||||
|
if [ -e /dev/kvm ]; then
|
||||||
|
sudo chmod 666 /dev/kvm
|
||||||
|
echo "Successfully enabled /dev/kvm hardware virtualization!"
|
||||||
|
else
|
||||||
|
echo "Warning: /dev/kvm node not found."
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Download Built Airlys OS S1 ISO Artifact
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
mkdir -p bin
|
||||||
|
echo "Downloading split ISO parts from release v1.0.0-s1..."
|
||||||
|
gh release download v1.0.0-s1 -p "airlys.iso.part-*" --dir bin --repo ${{ github.repository }}
|
||||||
|
cat bin/airlys.iso.part-* > bin/airlys.iso
|
||||||
|
ls -lh bin/airlys.iso
|
||||||
|
|
||||||
|
- name: Boot Airlys OS S1 and Capture Screenshots
|
||||||
|
run: |
|
||||||
|
mkdir -p /tmp/qemu /tmp/captures screenshots
|
||||||
|
|
||||||
|
KVM_OPTS="-cpu max"
|
||||||
|
if [ -w /dev/kvm ]; then
|
||||||
|
echo "Hardware KVM acceleration available!"
|
||||||
|
KVM_OPTS="-enable-kvm -cpu host"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Launching QEMU with Airlys OS S1 Live ISO and VirtIO VGA..."
|
||||||
|
qemu-system-x86_64 $KVM_OPTS \
|
||||||
|
-m 4096 \
|
||||||
|
-smp 2 \
|
||||||
|
-cdrom bin/airlys.iso \
|
||||||
|
-boot d \
|
||||||
|
-vga virtio \
|
||||||
|
-display none \
|
||||||
|
-qmp unix:/tmp/qemu/qmp.sock,server,nowait &
|
||||||
|
QEMU_PID=$!
|
||||||
|
echo "QEMU PID is $QEMU_PID"
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
# Capture 1: Bootloader menu screen (at 6s)
|
||||||
|
sleep 6
|
||||||
|
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock /tmp/captures/01_bootloader.ppm
|
||||||
|
|
||||||
|
# Send Enter key to immediately launch Airlys OS S1
|
||||||
|
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock enter
|
||||||
|
|
||||||
|
# Capture 2: Systemd Kernel Boot (at 35s)
|
||||||
|
sleep 30
|
||||||
|
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock /tmp/captures/02_kernel_boot.ppm
|
||||||
|
|
||||||
|
# Log into desktop session if on SDDM prompt (at 65s)
|
||||||
|
sleep 30
|
||||||
|
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock login
|
||||||
|
|
||||||
|
# Capture 3: Desktop Environment with Wallpaper & Dock (at 95s)
|
||||||
|
sleep 30
|
||||||
|
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock /tmp/captures/03_airlys_desktop.ppm
|
||||||
|
|
||||||
|
# Send Super / Windows key to open KDE Start Menu (at 110s)
|
||||||
|
sleep 15
|
||||||
|
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock start
|
||||||
|
|
||||||
|
# Capture 4: Full Desktop WITH Start Menu Open & Apps (at 125s)
|
||||||
|
sleep 15
|
||||||
|
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock /tmp/captures/04_airlys_start_menu.ppm
|
||||||
|
|
||||||
|
# With Start Menu open, search and launch authentic GUI "About this System"
|
||||||
|
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock about
|
||||||
|
sleep 10
|
||||||
|
|
||||||
|
# Capture 5: Desktop with authentic "About this System" GUI Window
|
||||||
|
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock /tmp/captures/06_airlys_about_system.ppm
|
||||||
|
|
||||||
|
# Capture 6: Final Settled System State (at 180s)
|
||||||
|
sleep 5
|
||||||
|
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock /tmp/captures/05_airlys_desktop_final.ppm
|
||||||
|
|
||||||
|
kill -9 $QEMU_PID || true
|
||||||
|
|
||||||
|
echo "Converting captures to PNG..."
|
||||||
|
for ppm in /tmp/captures/*.ppm; do
|
||||||
|
if [ -f "$ppm" ]; then
|
||||||
|
base=$(basename "$ppm" .ppm)
|
||||||
|
convert "$ppm" "screenshots/${base}.png"
|
||||||
|
echo "Created screenshots/${base}.png"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
ls -lh screenshots/
|
||||||
|
|
||||||
|
- name: Upload Screenshots Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: airlys-desktop-screenshots
|
||||||
|
path: screenshots/*.png
|
||||||
|
retention-days: 14
|
||||||
|
|
||||||
|
- name: Attach Screenshots to GitHub Release v1.0.0-s1
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
gh release upload v1.0.0-s1 screenshots/*.png --clobber --repo ${{ github.repository }}
|
||||||
@@ -15,13 +15,15 @@
|
|||||||
```
|
```
|
||||||
|
|
||||||
### ⚡ The Modern, High-Performance Production Operating System
|
### ⚡ The Modern, High-Performance Production Operating System
|
||||||
**Engineered by Aira Group of Technology**
|
**Engineered by Aira Group of Technology**
|
||||||
|
📍 **Proudly Developed in Thiruvananthapuram, Kerala, India 🇮🇳**
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
[](#)
|
[](#)
|
||||||
[](#)
|
[](#)
|
||||||
[](#)
|
[](#)
|
||||||
|
[](#)
|
||||||
[](#)
|
[](#)
|
||||||
[](https://github.com/adameehanairagroup)
|
[](https://github.com/adameehanairagroup)
|
||||||
|
|
||||||
@@ -43,12 +45,12 @@
|
|||||||
|
|
||||||
## 🚀 Key Features
|
## 🚀 Key Features
|
||||||
|
|
||||||
### 1. The World's Most Beautiful Desktop (KDE Plasma 6)
|
### 1. Airlys Glass Desktop Environment
|
||||||
* **Frosted Acrylic Glass Blur**: GPU-accelerated Wayland KWin compositing with real-time blur and depth.
|
* **Frosted Acrylic Glass Blur**: GPU-accelerated compositing with real-time blur and depth.
|
||||||
* **Modern Floating Dock**: Translucent taskbar with animated icon scaling, live window previews, and unified Action Center.
|
* **Modern Floating Dock**: Translucent taskbar with animated icon scaling, live window previews, and unified Action Center.
|
||||||
* **Authentic Airlys Artwork**: Full-frame 1080p edge-to-edge official Airlys Falcon Logo wallpaper.
|
* **Authentic Airlys Artwork**: Full-frame 1080p edge-to-edge official Airlys Falcon Logo wallpaper.
|
||||||
|
|
||||||
### 2. Linux Zen 6.x High-Performance Engine
|
### 2. Airlys Zen Core High-Performance Engine (v6.x)
|
||||||
* **Zen 3+ CPU Optimizations**: Low-latency preemptive schedulers tuned for AMD Ryzen 7 7735HS (8 Cores, 16 Threads @ 4.75 GHz).
|
* **Zen 3+ CPU Optimizations**: Low-latency preemptive schedulers tuned for AMD Ryzen 7 7735HS (8 Cores, 16 Threads @ 4.75 GHz).
|
||||||
* **Hardware Plug-and-Play**: Full USB 3.x xHCI bus power, MediaTek MT7922 / AMD RZ616 Wi-Fi 6E, Bluetooth 5.3, Realtek HD Audio, and I2C HID multi-touch precision trackpad.
|
* **Hardware Plug-and-Play**: Full USB 3.x xHCI bus power, MediaTek MT7922 / AMD RZ616 Wi-Fi 6E, Bluetooth 5.3, Realtek HD Audio, and I2C HID multi-touch precision trackpad.
|
||||||
* **Dual-GPU Switching**: Seamless hybrid graphics management between power-saving AMD Radeon 680M and high-octane NVIDIA GeForce RTX.
|
* **Dual-GPU Switching**: Seamless hybrid graphics management between power-saving AMD Radeon 680M and high-octane NVIDIA GeForce RTX.
|
||||||
@@ -87,15 +89,21 @@ Download the latest bootable ISO from the [Releases](https://github.com/adameeha
|
|||||||
```
|
```
|
||||||
|
|
||||||
### 3. Boot & Enjoy
|
### 3. Boot & Enjoy
|
||||||
Plug the USB into your PC, power on, tap `F12` (or `F2` for BIOS), and select **Airlys OS S1**. SDDM will automatically load you into the live session!
|
Plug the USB into your PC, power on, tap `F12` (or `F2` for BIOS), and select **Airlys OS S1**. The system will automatically load you into the live session!
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 🏛️ Governance & Authorship
|
## 🏛️ Vision & Authorship
|
||||||
|
|
||||||
|
> *"The world often says that India never produces original foundational technology — that we are merely consumers and users of Western corporate software. But among India's 28 states stands God's Own Country: Kerala. A land of educated, skilled, forward-thinking, and fiercely ambitious minds. Airlys OS was not imported; it was forged with sovereign passion and engineering right here on our soil. Proudly built in Kerala, for the world."*
|
||||||
|
> — **Er. Adam Eehan**, Founder & CEO, *Aira Group of Technology*
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
Airlys OS S1 is an open-source milestone engineered and published by:
|
Airlys OS S1 is an open-source milestone engineered and published by:
|
||||||
|
|
||||||
* **Er. Adam Eehan** — Founder, Chief Executive Officer & Lead Architect, *Aira Group of Technology*
|
* **Er. Adam Eehan** — Founder, Chief Executive Officer & Lead Architect, *Aira Group of Technology*
|
||||||
* **Aira 3 Ultra** — Sovereign AI Pair Programmer & Co-Pilot
|
* **Aira 3 Ultra** — Sovereign AI Pair Programmer & Co-Pilot
|
||||||
|
* **Headquarters**: Thiruvananthapuram, Kerala, India 🇮🇳
|
||||||
|
|
||||||
Copyright © 2026 Aira Group of Technology. All rights reserved.
|
Copyright © 2026 Aira Group of Technology. All rights reserved.
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
NAME="Airlys OS"
|
NAME="Airlys OS"
|
||||||
PRETTY_NAME="Airlys OS S1"
|
PRETTY_NAME="Airlys OS S1"
|
||||||
|
VERSION="S1 Flagship Edition"
|
||||||
|
VERSION_ID="1.0.0-s1"
|
||||||
ID=airlys
|
ID=airlys
|
||||||
ID_LIKE=arch
|
ID_LIKE=arch
|
||||||
BUILD_ID=s1
|
BUILD_ID=s1
|
||||||
@@ -9,3 +11,5 @@ DOCUMENTATION_URL="https://github.com/adameehanairagroup/AirlysOS"
|
|||||||
SUPPORT_URL="https://github.com/adameehanairagroup/AirlysOS/issues"
|
SUPPORT_URL="https://github.com/adameehanairagroup/AirlysOS/issues"
|
||||||
BUG_REPORT_URL="https://github.com/adameehanairagroup/AirlysOS/issues"
|
BUG_REPORT_URL="https://github.com/adameehanairagroup/AirlysOS/issues"
|
||||||
LOGO=airlys-logo
|
LOGO=airlys-logo
|
||||||
|
VENDOR_NAME="Aira Group of Technology"
|
||||||
|
VENDOR_URL="https://github.com/adameehanairagroup"
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#%PAM-1.0
|
||||||
|
auth required pam_env.so
|
||||||
|
auth required pam_permit.so
|
||||||
|
account include system-local-login
|
||||||
|
password include system-local-login
|
||||||
|
session include system-local-login
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Airlys OS S1 First Boot Initialization
|
Description=Airlys OS S1 First Boot Initialization
|
||||||
Before=sddm.service
|
Before=sddm.service display-manager.service
|
||||||
|
RequiredBy=sddm.service display-manager.service
|
||||||
ConditionFirstBoot=no
|
ConditionFirstBoot=no
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
@@ -9,4 +10,4 @@ ExecStart=/usr/local/bin/airlys-firstrun.sh
|
|||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=graphical.target multi-user.target
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
plasma-desktop
|
plasma-desktop
|
||||||
plasma-workspace
|
plasma-workspace
|
||||||
|
systemsettings
|
||||||
|
kinfocenter
|
||||||
kwin
|
kwin
|
||||||
plasma-nm
|
plasma-nm
|
||||||
plasma-pa
|
plasma-pa
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ airootfs_image_type="squashfs"
|
|||||||
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M')
|
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M')
|
||||||
file_permissions=(
|
file_permissions=(
|
||||||
["/etc/shadow"]="0:0:400"
|
["/etc/shadow"]="0:0:400"
|
||||||
|
["/etc/pam.d/sddm-autologin"]="0:0:644"
|
||||||
["/etc/sudoers.d/airlys"]="0:0:440"
|
["/etc/sudoers.d/airlys"]="0:0:440"
|
||||||
["/usr/local/bin/airlys-firstrun.sh"]="0:0:755"
|
["/usr/local/bin/airlys-firstrun.sh"]="0:0:755"
|
||||||
|
["/usr/bin/airalang"]="0:0:755"
|
||||||
|
["/usr/bin/airalang3"]="0:0:755"
|
||||||
["/root"]="0:0:750"
|
["/root"]="0:0:750"
|
||||||
)
|
)
|
||||||
Executable
+113
@@ -0,0 +1,113 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
import socket
|
||||||
|
import json
|
||||||
|
|
||||||
|
def qmp_execute(sock_path, cmd_dict):
|
||||||
|
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||||
|
s.settimeout(10)
|
||||||
|
s.connect(sock_path)
|
||||||
|
s.recv(4096) # Greeting
|
||||||
|
s.sendall(json.dumps({"execute": "qmp_capabilities"}).encode() + b"\n")
|
||||||
|
s.recv(4096) # Ack
|
||||||
|
s.sendall(json.dumps(cmd_dict).encode() + b"\n")
|
||||||
|
resp = s.recv(4096)
|
||||||
|
s.close()
|
||||||
|
return resp
|
||||||
|
|
||||||
|
def qmp_send_keys(sock_path, key_names):
|
||||||
|
try:
|
||||||
|
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||||
|
s.settimeout(10)
|
||||||
|
s.connect(sock_path)
|
||||||
|
s.recv(4096)
|
||||||
|
s.sendall(json.dumps({"execute": "qmp_capabilities"}).encode() + b"\n")
|
||||||
|
s.recv(4096)
|
||||||
|
for k in key_names:
|
||||||
|
cmd = json.dumps({"execute": "send-key", "arguments": {"keys": [{"type": "qcode", "data": k}]}})
|
||||||
|
s.sendall(cmd.encode() + b"\n")
|
||||||
|
s.recv(4096)
|
||||||
|
time.sleep(0.08)
|
||||||
|
s.close()
|
||||||
|
print(f"Sent keys {key_names} successfully.")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Failed to send keys: {e}")
|
||||||
|
|
||||||
|
def qmp_send_combo(sock_path, combo_keys):
|
||||||
|
try:
|
||||||
|
keys_payload = [{"type": "qcode", "data": k} for k in combo_keys]
|
||||||
|
cmd = {"execute": "send-key", "arguments": {"keys": keys_payload}}
|
||||||
|
qmp_execute(sock_path, cmd)
|
||||||
|
print(f"Sent combo {combo_keys} successfully.")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Failed to send combo {combo_keys}: {e}")
|
||||||
|
|
||||||
|
def qmp_type_string(sock_path, text):
|
||||||
|
try:
|
||||||
|
for ch in text:
|
||||||
|
if ch == ' ':
|
||||||
|
qmp_send_keys(sock_path, ['spc'])
|
||||||
|
elif ch == '\n':
|
||||||
|
qmp_send_keys(sock_path, ['ret'])
|
||||||
|
elif ch == '-':
|
||||||
|
qmp_send_keys(sock_path, ['minus'])
|
||||||
|
else:
|
||||||
|
qmp_send_keys(sock_path, [ch.lower()])
|
||||||
|
time.sleep(0.05)
|
||||||
|
print(f"Typed string '{text}' successfully.")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Failed to type string: {e}")
|
||||||
|
|
||||||
|
def qmp_open_about_window(sock_path):
|
||||||
|
try:
|
||||||
|
print("Launching 'About this System' GUI from Start Menu...")
|
||||||
|
# Since Start Menu is open, type 'about' and hit Enter
|
||||||
|
for ch in "about":
|
||||||
|
qmp_send_keys(sock_path, [ch])
|
||||||
|
time.sleep(0.12)
|
||||||
|
time.sleep(1.0)
|
||||||
|
qmp_send_keys(sock_path, ["ret"])
|
||||||
|
time.sleep(4.0)
|
||||||
|
|
||||||
|
# Backup attempt via KRunner (Alt+Space)
|
||||||
|
print("Backup: Attempting KRunner launch for kinfocenter...")
|
||||||
|
qmp_send_combo(sock_path, ["alt", "spc"])
|
||||||
|
time.sleep(1.5)
|
||||||
|
for ch in "kinfocenter":
|
||||||
|
qmp_send_keys(sock_path, [ch])
|
||||||
|
time.sleep(0.1)
|
||||||
|
time.sleep(0.5)
|
||||||
|
qmp_send_keys(sock_path, ["ret"])
|
||||||
|
time.sleep(4.0)
|
||||||
|
print("Finished launching About this System GUI.")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Failed to open About system: {e}")
|
||||||
|
|
||||||
|
def qmp_screendump(sock_path, out_file):
|
||||||
|
try:
|
||||||
|
cmd = {"execute": "screendump", "arguments": {"filename": out_file}}
|
||||||
|
qmp_execute(sock_path, cmd)
|
||||||
|
print(f"Successfully captured screenshot to: {out_file}")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Failed to capture {out_file}: {e}")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
if len(sys.argv) < 3:
|
||||||
|
print("Usage: capture_qemu.py <qmp_socket_path> <action_or_output>")
|
||||||
|
sys.exit(1)
|
||||||
|
sock = sys.argv[1]
|
||||||
|
arg = sys.argv[2]
|
||||||
|
if arg == "enter":
|
||||||
|
qmp_send_keys(sock, ["ret"])
|
||||||
|
elif arg == "login":
|
||||||
|
qmp_send_keys(sock, ["a", "i", "r", "l", "y", "s", "ret"])
|
||||||
|
elif arg == "start" or arg == "super":
|
||||||
|
qmp_send_keys(sock, ["meta_l"])
|
||||||
|
elif arg == "esc":
|
||||||
|
qmp_send_keys(sock, ["esc"])
|
||||||
|
elif arg == "about":
|
||||||
|
qmp_open_about_window(sock)
|
||||||
|
else:
|
||||||
|
qmp_screendump(sock, arg)
|
||||||
|
|
||||||
Reference in new issue
Block a user