How to start a graphical desktop environment inside the virtual environment of cubic that can be done forwarding X through ssh....but how ?

Asked by Marietto

Hello.

I'm using Cubic on Ubuntu 22.04.

It's good,I like it,but it misses an important feature. When I'm inside the virtual environment,I can't start a graphical desktop manager that will help a LOT to customize the iso. I know why I can't,but I don't know how to achieve this goal. Basically what's wrong is the network configuration. The virtual environment lacks of an internal IP number,that can be given to it using a different network connection scheme,such a network bridge. Instead at the moment inside of it I have the same network interfaces of the host OS ad when I try to forwarding X through ssh I will be connected to the host IP,like you can see below :

https://ibb.co/gw7Mp0d

Is there a way to correct this ? There are a lot of elements on the graphical interface of the OS that I want to customize that can't be easily configured ONLY through the Terminal. If I could do it moving them through a graphical desktop manager, it will help a LOT with the customizing. Im using Cubic 2022.06.72.

I think that it is much cool and useful if I can start a desktop manager session inside the CUBIC virtual environment so that I can customize a lot of GUI elements in REAL TIME easier than doing it on the Terminal. I also suspect that my method is faster and more precise than that of copying the conf file from another OS,configured as I want. All of this can be done if the virtual environment had its own IP number. So,there will be no need to run VirtualBOX.

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ajay Gumma (ag17india) said (last edit ):
#1

Here is how to get it to work. Install a fresh copy of Ubuntu or any debian based derivative of Ubuntu and configure it to your hearts content.

Then goto the file manger. Press CTRL + H.

***** IMPORTANT : DO NOT SELECT : user-dirs and user-locales in .config **************

You will see a hidden folder with .config : goto that folder. Select all files except for 2. especially XFCE if you have customised it.
and select all of the files except these 2 i told you not to touch and copy them.

Open Cubic :

Load the iso

get to the chroot screen

Now got the terminal and with sudo permissions open the /etc/skel/ folder path.

Now create .config there if there isnt one already

paste the copied config files into etc/skel/.config/

This will mean that each time a new user is created the changes you made to the UI of the system will persist.

But make sure the same theme files and same software you installed in the base system are all installed on the cubic build version.

DONE.

You have successfully without the need of a GUI made the changes to the GUI of the ROM you want to build. No need of X11.

If you're scared to do this on bare metal hardware. Then use a VM. Simple. Copy the configs and upload them to a cloud provider or drag them out to the host machine with guest additions and Bidirectional drop enabled on Virtual box.

Finished.

Thank me later.

Revision history for this message
Marietto (marietto2008) said (last edit ):
#2

I've already installed my customized copy of ubuntu 22.04 on a separate disk. Unfortunately inside /etc/skel I don't have /.config ; and on that system I've configured xfce4 to start automatically. It does not seem to be easy as you may think. I would like to save time,so can you explain how to accomplish the points below ? maybe I will understand what to do further if you can clarify how to accomplish these 3 points :

1) how to start automatically lxde as default dm for every user created.

2) how to choose lxde instead of unity as default dm as soon as ubuntu booted the first time

3) how to do this : sudo usermod -a -G libvirt test ; if I should not create the user test and if it's not a good idea to start virt-manager as root

thanks.

Can you help with this problem?

Provide an answer of your own, or ask Marietto for more information if necessary.

To post a message you must log in.