neurobin / JLIVECD

Live cd/dvd customization tool
https://neurobin.org/projects/softwares/unix/JLIVECD/
GNU General Public License v2.0
89 stars 24 forks source link

Xubuntu 20.10 #27

Open DwarfFighterCleric opened 3 years ago

DwarfFighterCleric commented 3 years ago

I'm having issues on Xubuntu (Xfce)... Seems like I can't run apps like xfce4-panel or xfce4-settings-manager inside of the Chroot environment, I suspect that Systemd is mixing up the Host and the Chroot environments together. Error message is "Failed to connect to D-BUS session", "There is already a running instance".
I can run Thunar inside of the Chroot, but it doesn't save settings.
Ever faced issues like these?
I want to clarify that I've used this excellent tool in the past with Xubuntu 16.04 and had zero issues.
Did Systemd bring problems to how we can use Chroot? Any recent updated tutorials on Chroot that you recommend out there? I can only find outdated ones. I'm not sure if Xubuntu 16.04 already had systemd, maybe yes.
I'm also noticing issues with Xfce not being able to keep settings across reboots too. Ever seen any of this happening in your ISO's?
...
Well, the plan B would be: finish creating the ISO only with terminal commands that I can run, and then later on copy the contents of my Host Machine xfce4 and panel settings inside of /etc/skel/.config, and other graphical settings that I want. Maybe copy to /etc/xdg/ too... Would this suffice? Any input?

DwarfFighterCleric commented 3 years ago

Oh, I forgot to say: the script initially didn't work. I had to manually edit FUNCS.SH into a working state. It would throw errors during rsync, and would not extract Filesystem.Squashfs.
Any particular reason for using chown 1000:1000 inside of the script?
I changed to my username and it worked.
Also there's a problem in line 388 (quotes inside of quotes inside of double quotes, I guess) I had to change other things too. Here's the link to the fixed file, so you can update the project with it.
https://www.dropbox.com/sh/hz3sjqqfp9esqhg/AADAF_9GRd51L8Ca22HQSs3va?dl=0

neurobin commented 3 years ago

"There is already a running instance".

This is how the new systems work now. We have to find a solution to work it around.

Any particular reason for using chown 1000:1000 inside of the script?

The project directory should be owned by current user. 1000 was the current user in earlier systems.

Also there's a problem in line 388 (quotes inside of quotes inside of double quotes, I guess)

You should edit the file directly on Github and submit it. It will automatically create a pull request.

DwarfFighterCleric commented 3 years ago

Okay, a fix was found. For those who did not follow the other discussion, this is the command that will allow you to run GUI apps inside of the Chroot and therefore be able to setup your custom graphical settings:

gksu dbus-run-session <name-of-the-app>
gksu dbus-run-session xfce4-settings-manager  
gksu dbus-run-session xfce4-panel  

You can close this now, thanks.

Oh almost forgot, here is the updated link with the new files I had modified (I re-uploaded the entire program files instead of just uploading the single FUNCS.SH file)
These new updated files will allow you to create a custom ISO out of Xubuntu 20.10 (should be compatible with any other Ubuntu variant) and MX Linux (Debian-based... minor adjustments in the script required for other distros, particularly the name and location of the Squashfs file)
LINK:
https://www.dropbox.com/sh/s61370wofadlny5/AAA6s0rjAz1QW9N1fJihYhBia?dl=0