Skip to content

Instantly share code, notes, and snippets.

@CalfCrusher
Forked from xErik/kali-headless.md
Created January 27, 2023 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CalfCrusher/344f7e20d9ebeb4f1876eac908ef421b to your computer and use it in GitHub Desktop.
Save CalfCrusher/344f7e20d9ebeb4f1876eac908ef421b to your computer and use it in GitHub Desktop.
Configuring Headless (no X, GUI) Kali, Running In VirtualBox

Kali Headless Mode Configuration

Disabling the GUI/X/Head

systemctl set-default multi-user.target
systemctl get-default # shows new default mode
reboot

In headless mode, start the graphical user interface with this command: gmd3. The automatic ScreenLock will through you back to the console. This can be avoided by setting Settings > Privacy > ScreenLock to off.

Console Keyboard Configuration

The console uses a default keyboard configuration. Configure it:

dpkg-reconfigure keyboard-configuration
service keyboard-setup restart

Size of Console Screen

The console window is probably too small. Configure it:

vi /etc/default/grub

Then add this line: GRUB_CMDLINE_LINUX_DEFAULT="splash vga=792"

Kali GUI Mode Configuration

Resetting from headless mode to GUI mode:

systemctl set-default graphical.target
systemctl get-default # shows new default mode
reboot

Shared-Folder and USB 2.0

Shared-Folder and USB 2.0 requires the Oracle VM VirtualBox Extension Pack to be installed via VirtualBox. Installations starts by double clicking the download.

Installing Node

https://ariejan.net/2011/10/24/installing-node-js-and-npm-on-ubuntu-debian/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment