How to install a full desktop on a Multipass virtual machine for easier Linux development – TechRepublic

Register for your free TechRepublic membership or if you are already a member, sign in using your preferred method below.
We recently updated our Terms and Conditions for TechRepublic Premium. By clicking continue, you agree to these updated terms.
Invalid email/username and password combination supplied.
An email has been sent to you with instructions on how to reset your password.
By registering, you agree to the Terms of Use and acknowledge the data practices outlined in the Privacy Policy.
You will also receive a complimentary subscription to TechRepublic’s News and Special Offers newsletter and the Top Story of the Day newsletter. You may unsubscribe from these newsletters at any time.
Username must be unique. Password must be a minimum of 6 characters and have any 3 of the 4 items: a number (0 through 9), a special character (such as !, $, #, %), an uppercase character (A through Z) or a lowercase (a through z) character (no spaces).
How to install a full desktop on a Multipass virtual machine for easier Linux development
Your email has been sent
If Multipass is your virtual machine environment of choice, and you wish you could add a GUI to your VMs, wish no more. Jack Wallen shows you how to do just that.
Multipass is still one of my favorite virtual machine systems. With this command-line tool, I can very quickly spin up a virtual instance of Ubuntu in seconds. These VMs can be used for testing, development and other use cases.
SEE: Business leaders as developer: The rise of no-code and low-code software (free PDF) (TechRepublic)
But what if you prefer to develop within a graphic environment? Or what if the app or service you’re building needs a GUI for early testing? In that case, you might benefit from installing a desktop within a Multipass VM. I’m going to show you how to do just that.
To make this work, you’ll need a running instance of Multipass. If you don’t already have that working, give How to use Multipass, a new tool for launching virtual machines a quick read and you’ll be up to speed in no time.
The first thing we’ll do is launch a new instance of Ubuntu and access the shell. Find out what iterations of Ubuntu are available with the command:
multipass find
The results should list out each version of Ubuntu that’s available for use with Multipass. Let’s deploy a virtual machine with Ubuntu 21.10, with the command:
multipass launch daily:21.10
Once the VM launches, you should see it’s randomly generated name listed. If you miss it, you can locate it with the command:
multipass list
To access the shell for the new VM, issue the command:
multipass shell NAME
Where NAME is the randomly assigned name.
You should now find yourself at the bash prompt of the virtual machine.
Now, we’re going to install both a desktop and an RDP server. First, update apt with the command:
sudo apt-get update
When that completes, install the desktop and RDP server with:
sudo apt-get install ubuntu-desktop xrdp -y
The installation should take a few minutes. Once it completes, create a new user with the command:
sudo adduser USERNAME
Where USERNAME is a username you’ll log in with.
Finally, give the new user sudo access with:
sudo usermod -aG sudo USERNAME
Where USERNAME is the user you just created.
To access the newly-installed desktop, you will first have to discover the IP address of the VM. For that, remain within the VM shell and issue the command:
ip a
You should see an IP address such as 10.171.55.156, which will be the address for the VM.
To access the desktop, you’ll use an RDP client (such as Remmina on Linux). When the Remmina window opens (Figure A), type the VM IP address and hit Enter on your keyboard.
Figure A
You should then see the login screen (as presented by Remmina–Figure B).
Figure B
Type the new username/password combination you created from within the Multipass VM shell and you’ll then be presented with the Ubuntu desktop (Figure C).
Figure C
And that’s all there is to adding a GUI to your Multipass virtual machine environments. If you prefer to develop with a GUI or need one to test an application, you now have the ability to do so.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.
You don’t want to miss our tips, tutorials, and commentary on the Linux OS and open source applications.
How to install a full desktop on a Multipass virtual machine for easier Linux development
Your email has been sent
Your message has been sent
TechRepublic Premium content helps you solve your toughest IT issues and jump-start your career or next project.
These 11 cloud-to-cloud solutions back up your organization’s data so you’ll be covered in the event of deletions, malware or outages. Compare the best online cloud backup services now.
You can use a mobile device to speak with another person directly through the Teams app. Lance Whitney shows you how to use this handy feature.
A phishing technique called Browser in the Browser (BITB) has emerged, and it’s already aiming at government entities, including Ukraine. Find out how to protect against this new threat.
With so many project management software options to choose from, it can seem daunting to find the right one for your projects or company. We’ve narrowed them down to these nine.
Start-ups, DARPA and Accenture Ventures announce research partnerships, new hardware and strategic investments.
Procuring software packages for an organization is a complicated process that involves more than just technological knowledge. There are financial and support aspects to consider, proof of concepts to evaluate and vendor negotiations to handle. Navigating through the details of an RFP alone can be challenging, so use TechRepublic Premium’s Software Procurement Policy to establish …
Recruiting a Security Analyst with the right combination of technical expertise and experience will require a comprehensive screening process. This hiring kit from TechRepublic Premium includes a job description, sample interview questions and a basic want ad that you can customize for your business to find, interview, recruit and hire the best candidates for a …
Recruiting a DevOps engineer with the right combination of technical expertise and experience will require a comprehensive screening process. This hiring kit from TechRepublic Premium includes a job description, sample interview questions and a basic want ad that you can customize for your business to find, interview, recruit and hire the best candidates for a …
Video game writing jobs are in demand. Recruiting a video game/quest writer with the right combination of technical expertise and experience will require a comprehensive screening process. This hiring kit from TechRepublic Premium includes a job description, sample interview questions and a basic want ad that you can customize for your business to find, interview, …

source

We will be happy to hear your thoughts

Leave a reply

LINXGO
Logo
Compare items
  • Total (0)
Compare