Working Frontend GUI for Android 16 Linux Development Environment
XFCE4 GUI + SSH Setup (Debian / Linux) # Update system (upgrade optional) sudo apt update && sudo apt upgrade -y # Install XFCE4 and required GUI packages sudo apt install xorg xserver-xorg-core x11-xserver-utils xinit dbus-x11 xwayland xfce4 xfce4-goodies xfwm4 xfdesktop4 xfce4-panel xfce4-session xfce4-settings https://pastebin.com/e9fe5X2z #Configure Weston (Wayland Compositor) mkdir -p ~/.config nano ~/.config/weston.ini Paste: ----------------------------------------------------------------------- [core] # Enable XWayland support xwayland=true [autostart] path=xfce4-session ----------------------------------------------------------------------- Save: CTRL + X → Y → Enter Configure X Session nano ~/.xsession Paste: ----------------------------------------------------------------------- #!/bin/sh # Force proper X11 behavior export DISPLAY=:0 export GDK_BACKEND=x11 export QT_QPA_PLATFORM=xcb export XDG_SESSION_TYPE=x11 # Start XFCE session with DBus exec dbus-run-session xfce4-session ----------------------------------------------------------------------- Save: CTRL + X → Y → Enter Make it executable: chmod +x ~/.xsession # SSH Server Setup sudo apt update sudo apt install -y openssh-server Edit SSH config: sudo nano /etc/ssh/sshd_config Change: # Change default port Port 8022 # Enable password login (if needed) PasswordAuthentication yes # Restart SSH Service sudo systemctl restart ssh sudo systemctl restart sshd Check status: sudo ss -tulpen | grep ssh ps aux | grep sshd 📱 ADB + SSH Connection (From PC) adb devices adb forward tcp:8022 tcp:8022 Connect: ******LOGIN WITH LOCALHOST ssh droid@localhost -p 8022 You can set up : ssh -L 8022:127.0.0.1:8022 [email protected] I DID NOT DEMO FURTHER SSH WITH SSH -L OR SSH -R.... Basic Firewall Rules (iptables) # Allow SSH on port 8022 sudo iptables -A INPUT -p tcp --dport 8022 -j ACCEPT # Allow established connections sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT Optional (restrict to local network): sudo iptables -A INPUT -p tcp --dport 8022 -s 192.168.1.0/24 -j ACCEPT sudo iptables -A INPUT -p tcp --dport 8022 -j DROP Useful Starter Packages sudo apt update && sudo apt upgrade -y sudo apt install net-tools iproute2 openssh-server git curl wget htop python3 man adb toilet figlet nmap cron imagemagick libtool tmux which ffmpeg clang usbutils
Download
0 formatsNo download links available.