Kali Linux Without GUI

Kali Linux installations typically include a GUI by default but running Kali Linux without GUI maybe the only way to run it on a low spec hardware or to improve system performance. This guide explores how to use Kali Linux without GUI and why many advanced users prefer this streamlined approach.

Kali Linux Without GUI SSH and Remote Desktop - 3

Disabling the GUI on Kali Linux

To temporarily set up Kali Linux without GUI while keeping the graphical components installed:

  1. Open a terminal window in your current Kali Linux installation.
  2. Run this command to configure Kali Linux without GUI boot mode:
sudo systemctl set-default multi-user.target
  1. Reboot your system to apply the Kali Linux without GUI setting:
sudo reboot
  1. After reboot, your Kali Linux without GUI environment will present a simple login prompt without loading any desktop environment.

Re-enabling the GUI (If Needed)

If you’ve been running Kali Linux without GUI but need to temporarily access graphical tools:

  1. From your Kali Linux without GUI terminal, run:
sudo systemctl set-default graphical.target
  1. Reboot your Kali Linux system:
sudo reboot
  1. Your Kali Linux will now boot with the GUI enabled again.

Completely Removing the GUI from Kali Linux

For a permanent Kali Linux without GUI setup that saves disk space:

  1. Ensure you’re logged into your Kali Linux with administrator privileges.
  2. Remove the Xfce desktop environment to fully commit to Kali Linux without GUI:
sudo apt purge --autoremove xfce4* kali-desktop-xfce libxfce4*
  1. This command transforms your system into a pure Kali Linux without GUI installation by removing all desktop environment components.

Install GUI on Kali Linux

If you completely removed the GUI components from your Kali Linux without GUI setup and need to restore them:

  1. In your Kali Linux without GUI environment, run:
sudo apt update
sudo apt install kali-desktop-xfce
  1. Configure Kali Linux to boot with the GUI:
sudo systemctl set-default graphical.target
  1. Reboot your Kali Linux system:
sudo reboot

Command line tools in Kali Linux without GUI

When running Kali Linux without GUI, you’ll need these essential command-line tools:

    • Process management: Monitor your Kali Linux without GUI system with ps, top, btop, and htop
    • Package management: Kali Linux without GUI software installation uses apt commands
    • Terminal multiplexers: Enhance your Kali Linux without GUI experience with tmux or screen
    • File management: In Kali Linux without GUI, use ls, cd, mv, cp, and rm
    • Text editing: Kali Linux without GUI text editors include nano, vim, and emacs
    • Network tools: Kali Linux without GUI network management uses ifconfig, ip, netstat, , and ss

For web access in your Kali Linux without GUI environment, install these text-based browsers:

  • Lynx: A lightweight browser for Kali Linux without GUI (sudo apt install lynx)
  • W3m: Another browser option for Kali Linux without GUI (sudo apt install w3m)
  • Links: A feature-rich browser for Kali Linux without GUI (sudo apt install links)

Conclusion

Just ensure the specific tools you need function properly in a Kali Linux without GUI environment before making the switch. I kind of like the option where I can just connect to my Kali remotely using Remote Desktop client or SSH depending on what I am doing.

That’s it.

Leave your solution or comment to help others.

This site uses Akismet to reduce spam. Learn how your comment data is processed.