You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/how-to-guides/customise-multipass/set-up-a-graphical-interface.md
+86-5Lines changed: 86 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,11 @@ You can display the graphical desktop in various ways. In this document, we desc
14
14
15
15
## Using RDP
16
16
17
-
The images used by Multipass do not come with a graphical desktop installed. For this reason, you will have to install a desktop environment (here we use `ubuntu-desktop` but there are as many other options as flavours of Ubuntu exist) along with the RDP server (we will use `xrdp` but there are also other options such as `freerdp`).
17
+
The images used by Multipass do not come with a graphical desktop installed. For this reason, you will have to install a desktop environment. Here, we use `ubuntu-desktop` but there are as many other options as flavours of Ubuntu exist. You also have to install the RDP server. We will use `xrdp`or `gnome-remote-desktop`but there are also other options such as `freerdp`.
18
18
19
-
To do this, first you need to log into a running Multipass instance. Start by listing your instances:
19
+
### Set up the XRDP server
20
+
21
+
First, you need to log into a running Multipass instance. Start by listing your instances:
20
22
21
23
```{code-block} text
22
24
multipass list
@@ -50,9 +52,78 @@ sudo passwd ubuntu
50
52
51
53
You will be asked to enter and re-enter a password.
52
54
53
-
You are done on the server side!
55
+
You are done on the server side! Quit the Ubuntu shell on the running instance with the `exit` command. Proceed to {ref}`connect-to-the-instance-with-an-rdp-client`.
56
+
57
+
### Set up the GNOME Remote Desktop server
58
+
59
+
1. Create the following `cloud-init.yaml` configuration file:
Replace `<your-password>` with a secure password on the highlighted lines.
87
+
88
+
1. Launch the configured Multipass instance:
89
+
90
+
```text
91
+
multipass launch \
92
+
-vvvv
93
+
--memory 12G \
94
+
--cpus=2 \
95
+
--disk 30G \
96
+
--timeout 600 \
97
+
--cloud-init ./cloud-init.yaml 25.10
98
+
```
99
+
100
+
The command sets the timeout to 10 minutes because the default timeout of 5 minutes isn't enough to initialise the instance.
101
+
102
+
1. List your instances:
103
+
104
+
```text
105
+
multipass list
106
+
```
107
+
108
+
Sample output:
54
109
55
-
Quit the Ubuntu shell on the running instance with the `exit` command, and take note of the IP address to connect to. You can find the instance's IP address in the output of `multipass list` from the first step above, or you can use the `multipass info` command as well.
1. Proceed to {ref}`connect-to-the-instance-with-an-rdp-client`.
122
+
123
+
(connect-to-the-instance-with-an-rdp-client)=
124
+
### Connect to the instance with an RDP client
125
+
126
+
Find the instance's IP address in the output of `multipass list`, or you can use the `multipass info` command:
56
127
57
128
```{code-block} text
58
129
multipass info headbanging-squid
@@ -84,14 +155,24 @@ If the IP address of the instance is not displayed in the output of `multipass l
84
155
85
156
````{group-tab} Linux
86
157
87
-
On Linux, there are applications such as Remmina to visualise the desktop (make sure the package `remmina-plugin-rdp` is installed in your host along with `remmina`).
158
+
On Linux, there are applications such as Remmina to visualise the desktop.
159
+
160
+
Make sure that the Remmina packages are installed:
161
+
162
+
```text
163
+
sudo apt install remmina remmina-plugin-rdp
164
+
```
88
165
89
166
To directly launch the client, run the following command:
90
167
91
168
```{code-block} text
92
169
remmina -c rdp://10.49.93.209
93
170
```
94
171
172
+
```{note}
173
+
To enable audio, open the Remmina application instead of connecting directly. Create a connection and set {guilabel}`Audio output mode` to {guilabel}`Local` in Advanced settings. Confirm with {guilabel}`Save and Connect`.
174
+
```
175
+
95
176
The system will ask for a username (`ubuntu`) and the password set above, and then the Ubuntu desktop on the instance will be displayed.
0 commit comments