Work in progress. Incomplete. What you read here may not work for you. Needs proofreading.
When you start up a VirtualNET VM, it doesn't have anything installed to let you run things graphically inside it. In other words, there's no graphical interface and if you want to do stuff in your VM, you have to do it via the command line. You can't use graphical editors like gedit
, and you can't use graphical programs like gimp
, firefox
, wireshark
or graphical file browsers.
It doesn't haven't to stay like this.
You can easily set up a graphical environment in your VirtualNET VM. Keep in mind though, that your VirtualNET VMs are not hugely powerful and don't have a lot of memory, so doing amazing things might best be done inside a normal VLAB session instead.
What I'll show you here is how to set up your own VNC server in your VM, not unlike the one you connect to in VLAB. This means that you'll be able to use a VNC viewer to connect to and do things graphically in your VM.
pacman
.These instructions are for Arch Linux and will install fvwm
and xfce4
window managers and desktops.
pacman -S vncserver xterm fvwm xfce4
mkdir .vnc
fvwm2
as your window manager/desktop, create the file .vnc/xstartup
containing:
exec fvwm2
xfce4
as your window manager/desktop, create the file .vnc/xstartup
containing:
exec xfce4
exec vncserver <BLAH>
If this is the first time you have started vncserver
, you will be prompted to create a password for this and future VNC sessions with your VMs. Make it a good/hard-to-guess one to prevent other users getting access to your new graphical environment.
vncviewer 172.Q.X.Y:<num>
Notes:
vncserver
running, or there's one left over that you started earlier <num> may be different. When you start vncserver
it outputs a number of diagnostic messages which include the actual <num> value you should use.vncserver
.Installing additional graphical software can be done with pacman
. You'll need to decide what you want yourself. Here's how to install gimp
and firefox
(run as root in the VM):
pacman -S gimp firefox