macOS OrbStack
- Download from web or use homebrew
brew install orbstack - Linux Distributions
- Linux Machines
- Networking / Direct Access
- Basic SSH access and Ansible Setup
Orb List
orb list
Create VM
orb create --help
orb create ubuntu VM_NAME
### orb create --arch amd64 ubuntu VM_NAME
Connect to machine
orb ### default machine and user will be started / used
orb -m VM_NAME ### login to VM_NAME as default user
orb -m VM_NAME -u root ### login to VM_NAME as root
Initial setup - Ubuntu cloud-config
~/Documents/Scripts/orbstack-ubuntu.yml
#cloud-config
#proxy: http://IP:PORT/
package_update: true
package_upgrade: true
users:
- name: USER
shell: /bin/bash
sudo: "ALL=(ALL) NOPASSWD:ALL"
ssh_authorized_keys:
- ssh-rsa ...
runcmd:
- echo "alias s='sudo su -'" >> /home/USER/.bashrc
packages:
- software-properties-common
- bash-completion
- sudo
- dialog
- tzdata
- netcat-openbsd
- net-tools
- rsync
- git
- vim
- curl
- wget
Run command to create ubuntu VM using this config
orb create ubuntu testvm -c ~/Documents/Scripts/orbstack-ubuntu.yml --isolated
If you want
### Turn off unattended upgrades
# echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox
sudo apt purge unattended-upgrades
Orb Start, Stop, Logs ...
for i in $(orb list -q) ; do echo "Stopping [ $i ] ... " ; orb stop $i ; done
orb start VM_NAME
orb stop VM_NAME
orb logs VM_NAME
Universal SSH config (can be used in VSCode / code)
### OrbStack - EXAMPLE (change user and vm name)
Host orb-prionotes
HostName 127.0.0.1
Port 32222
User USER@prionotes
IdentityFile ~/.orbstack/ssh/id_ed25519
IdentitiesOnly yes
Host orb-ipad
HostName 127.0.0.1
Port 32222
User USER@ipad
IdentityFile ~/.orbstack/ssh/id_ed25519
IdentitiesOnly yes
Clone VM
orb clone VM_NAME VM_NAME_CLONE
Delete VM
orb delete VM_NAME
Set default Orb VM
orb default
orb default VM_MAME
List all commands
orbctl --help
Xrdp GUI
sudo apt install -y xrdp xorgxrdp
sudo apt install -y xfce4 xfce4-goodies
echo "xfce4-session" | tee .xsession
Error on Ubuntu 24.10
In user's home log .xorgxrdp.10.log is error
expected xrdp client_info version 20230425, got 20210723
(EE) Incompatible xrdp version detected - please recompile(EE)
Xrdp and xorgxrdp have been compiled at different versions in Oracular
Can be resolved by early upgrading to plucky from this reddit thread
wget -c http://archive.ubuntu.com/ubuntu/dists/plucky/main/dist-upgrader-all/current/plucky.tar.gz
tar zxvf plucky.tar.gz
./plucky
Web Browser
Latest stable Firefox
sudo add-apt-repository ppa:mozillateam/ppa
Prioritize apt version over snap one
echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
Package: firefox
Pin: version 1:1snap*
Pin-Priority: -1
' | sudo tee /etc/apt/preferences.d/mozilla-firefox
Install
sudo apt install firefox
Data Storage
du -sh ~/Library/Group\ Containers/HUAQ24HBR6.dev.orbstack/data