
Gaining remote access to your Kali Linux machine is a powerful capability, essential for managing your system from anywhere. Installing a reliable remote desktop solution like NoMachine provides a seamless and secure way to connect to your graphical environment. The process is straightforward and can be completed using a few simple commands in the terminal.
To begin, you’ll need to download the NoMachine package designed for Debian-based distributions, which Kali Linux is. Visit the official NoMachine website using your web browser on your Kali system or another computer. Navigate to the download section and select the appropriate Linux package (specifically the .deb
file) for your system architecture (most likely 64-bit). Save this file to a location on your Kali machine.
Once the download is complete, open your terminal. Use the cd
command to navigate to the directory where you saved the .deb
file. The installation is handled by the dpkg package manager. Execute the following command, replacing [package_name.deb]
with the actual name of the file you downloaded:
sudo dpkg -i [package_name.deb]
During this installation, you might encounter dependency errors. This is a common hurdle that is easily overcome. Simply run the following command to automatically resolve and install any missing dependencies:
sudo apt --fix-broken install
This command will fetch and install all necessary packages required by NoMachine, completing the installation process smoothly.
After the installation is finished, the NoMachine server service should start automatically. It’s good practice to verify its status. You can do this using the command:
sudo systemctl status nxserver
Ensure the output shows the service as active (running). If for some reason it’s not running, you can manually start it with:
sudo systemctl start nxserver
For convenience, you can also enable the service to start automatically every time your system boots:
sudo systemctl enable nxserver
With the server successfully installed and running on your Kali Linux machine, you are now ready to connect from a client device. Install the NoMachine client on the computer or mobile device you wish to connect from. Open the client application, enter the IP address or hostname of your Kali machine, and follow the prompts to establish the connection. You will typically be asked to authenticate using your Kali user credentials.
By following these steps, you can effectively and quickly set up NoMachine on your Kali Linux system, gaining reliable remote desktop access whenever you need it. Enjoy the convenience of managing your system from afar.
Source: https://kifarunix.com/install-nomachine-remote-desktop-tool-on-kali-linux-2020/