Skip to content

Instantly share code, notes, and snippets.

@Kr0ff
Created July 11, 2024 17:24
Show Gist options
  • Save Kr0ff/11def6692244249627732dcb09272851 to your computer and use it in GitHub Desktop.
Save Kr0ff/11def6692244249627732dcb09272851 to your computer and use it in GitHub Desktop.
# Basically to get a desktop session on Kali linux or other distro in Orbstack under MacOS (ARM)
# You need to install the server packages for X2Go and X11
# The example is for Kali linux but the approach is similar for other distros
# Create a container
orbctl create -a amd64 kali -u user01 -p
# orbctl run -m kali id # To verify the container is running with the user you created
# uid=501(user01) gid=501(user01) groups=501(user01),4(adm),27(sudo),44(video),50(staff)
# Install the required packages
orbctl run -m kali sudo apt install x2goserver x11vnc dbus-x11 kali-desktop-lxde
# Install xQuarz on your Mac and X2Go Client
http://code.x2go.org/releases/X2GoClient_latest_macosx_10_13.dmg # https://wiki.x2go.org/doku.php/doc:installation:x2goclient#os_x
https://github.com/XQuartz/XQuartz/releases/download/XQuartz-2.8.5/XQuartz-2.8.5.pkg # https://www.xquartz.org/
# Lastly create your X2Go session using the client
# It's likely you'll have to start SSH service every time your in the container
# Alternatively, enable the service to start with the container
#!!!!!!!!!!!!!!!!!!!!
# !!! DISCLAIMER !!!
#!!!!!!!!!!!!!!!!!!!!
# When you create a service in an Orbstack container
# It is also exposed directly on your Mac
# This means when you connect your Mac to a network, anyone will be able to connect to your container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment