regolith-desktop icon indicating copy to clipboard operation
regolith-desktop copied to clipboard

Add Debian Buster spin

Open jalfonsi opened this issue 6 years ago • 38 comments

It would be nice to have a pure Debian-based spin with nice customizations, Buster is very soon to be released next month. Also armhf and/or arm64 debian packages would be make easy to create spins for RaspberryPi based on Raspbian and Armbian for SD boards.

jalfonsi avatar Jun 16 '19 07:06 jalfonsi

Hi @jalfonsi and thanks for your feedback! I confess to not having a clue as to how I'd take this on. I searched and found this page, which gives many options but no clear definition of a happy path to achieve the goal. Can you suggest links that clarify the actual preferred approach to having something like Regolith available on Debian? I would also need some equivalent of Cubic to generate the LiveCD installer from packages, but searching doesn't immediately give me many options.

kgilmer avatar Jun 16 '19 14:06 kgilmer

I think actually you would need a service to build debs, I have seen something like opensuse buildservice. Maybe you should ask or join the Bunsenlabs team which provides a Debian derivative based on another WM ( Openbox).

jalfonsi avatar Jun 16 '19 15:06 jalfonsi

I asked on the bunsenlabs forum: https://forums.bunsenlabs.org/viewtopic.php?pid=87487#p87487

kgilmer avatar Jun 17 '19 01:06 kgilmer

I think it's most important that you provide a repo with debs specific to pure Debian Buster (both i686/i686_x64/armhf/arm64) and then let users add it to the sources list in their own installation.

jalfonsi avatar Jun 17 '19 06:06 jalfonsi

the Bunsen Labs forum was a great suggestion @jalfonsi . I have a rough idea of what needs to be done.

kgilmer avatar Jun 20 '19 03:06 kgilmer

#61 needs to be complete before starting on this.

kgilmer avatar Jul 08 '19 01:07 kgilmer

I think after moving to a CI system that builds packages we could probably more easily create releases for multiple distros.

leosunmo avatar Oct 08 '19 20:10 leosunmo

For anyone looking for a workaround, I was able to get regolith working on Debian Buster with these commands, although I have not fully tested that everything is working.

echo "deb http://ppa.launchpad.net/kgilmer/regolith-stable/ubuntu disco main" > /etc/apt/sources.list.d/regolith.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 76458020C35556DC
apt update
apt install devscripts build-essential cdbs libxcb1-dev gperf pkg-config xutils-dev
wget http://archive.ubuntu.com/ubuntu/pool/main/x/xcb-util/xcb-util_0.4.0.orig.tar.gz
wget http://archive.ubuntu.com/ubuntu/pool/main/x/xcb-util/xcb-util_0.4.0-0ubuntu3.debian.tar.xz
tar -xvf xcb-util_0.4.0.orig.tar.gz
cd xcb-util-0.4.0
tar -xvf ../xcb-util_0.4.0-0ubuntu3.debian.tar.xz
dpkg-buildpackage -b
cd ..
apt install ./libxcb-util1_0.4.0-0ubuntu3_amd64.deb
apt install compton fonts-font-awesome fonts-source-code-pro-ttf gnome-control-center gnome-flashback gnome-screensaver gnome-settings-daemon i3-gaps-wm i3xrocks nautilus nordic paper-icon-theme regolith-assets regolith-compton-config regolith-conky-config regolith-gnome-flashback regolith-i3-gaps-config regolith-i3xrocks-config regolith-rofi-config regolith-st regolith-styles regolith-xeventbind rofi software-properties-gtk unclutter-xfixes xeventbind xrescat

iwalton3 avatar Nov 08 '19 19:11 iwalton3

Wow, that's fantastic @iwalton3 ! That's a big help, thanks!

kgilmer avatar Nov 09 '19 02:11 kgilmer

if I read correctly @iwalton3 comment, the only "missing" package on debian is xcb-util1 0.4 while debian has only xcb-util0 0.3.

I don't know anything about X programming but I find it strange as the xcb-util1 0.4 has been released since 2014 and has been packaged in Ubuntu since at least Xenial 16.04.

It's very intriguing: why has Debian never bothered to upgrade libxcb-util?

But, in the meantime, I think that the it would be interesting to know what are the main difference between both libraries.

In regolith, the only custom package that depends of libxcb-util1 is i3-gaps-wm. @kgilmer : you could maybe change the package to have a (libxcb-util1|libxcb-util0) dependancy so @iwalton3 could test (I assume they provide the same binaries).

From what I've investigated, everything else should work (rofi also depends on libxcb-util1 in Ubuntu but the exact same version seems to work with libxcb-util0 in Debian).

ploum avatar Nov 20 '19 20:11 ploum

@ploum i3-gaps-wm does not work with libxcb-util0. Prior to building the package from source, I attempted to make a package that depended on libxcb-util0 and provided libxcb-util1 as a virtual package. The window manager would not load at all with that setup, so I had to compile libxcb-util1 from source.

iwalton3 avatar Nov 20 '19 21:11 iwalton3

Thanks for testing this. So the question is wheter i3-gaps-wm really depends on something new in xcb-util 0.4 or if it's just a compilation thing (as i3 is in Debian, I would think it's the later).

Anyway, I believe the real way of fixing this is having xcb-util 0.4 packaged in Debian. The good news is that my tweet about the issue connected me with the Debian maintainer. The issue is known and was acknowledged today in https://tracker.debian.org/pkg/xcb-util so I guess we can expect things to move.

ploum avatar Nov 21 '19 08:11 ploum

Relevant: https://wiki.debian.org/CreatePackageFromPPA

kgilmer avatar Feb 16 '20 20:02 kgilmer

Any chance we'll see any more movement on this? Unfortunately I wasn't able to just follow the recommended commands from @iwalton3 - but will try to create the package from the PPA. Regardless, I think many Debian and debian-based distro users would love to be able to try Regolith!

ryanleesipes avatar Sep 23 '20 14:09 ryanleesipes

Hi @ryanleesipes I can't promise anything but there may be some news on this front soon. I'll update this ticket if and when we have something to announce. Would you be wanting to install Regolith/Debian via an installer or install the Regolith desktop into an existing Debian instance?

kgilmer avatar Sep 24 '20 03:09 kgilmer

My personal use case is an existing Debian installation.

ryanleesipes avatar Sep 24 '20 15:09 ryanleesipes

+1 for existing Debian install

semanticdreamer avatar Sep 24 '20 15:09 semanticdreamer

I would love to try it here on my existing Debian install too, is there something that I can help with?

haruanm avatar Oct 02 '20 13:10 haruanm

ps: couldn't make the i3-gaps-wm work from the package on Debian bullseye, I was already using a compiled version of https://github.com/Airblader/i3 in the master branch with my i3 here, but when I install it trough package I lose the i3 and I have this error when trying to open regolith: WhatsApp Image 2020-10-02 at 11 25 05

Could you say from which source should I generate the i3-gaps-wm package to test?

haruanm avatar Oct 02 '20 14:10 haruanm

@haruanm the source for i3-gaps is here: https://github.com/Airblader/i3, which is the same thing you have. The i3-gaps that is packages with Regolith is the same as the i3-gaps repo.

kgilmer avatar Oct 09 '20 04:10 kgilmer

@iwalton3 Thanks for the script, it worked like a charm.

Still, I got used to the Regolith 1.5 on my ubuntu install and tried to modify your script to install the latest release on debian 10.7. It is working like a charm so far.

I don't know which ubuntu distro to go with here, took bionic as it should predate buster easily. Also the xcb-util install might not be needed anymore, left that in just to be sure.

echo "deb http://ppa.launchpad.net/regolith-linux/release/ubuntu bionic main" > /etc/apt/sources.list.d/regolith.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EFC31B0AE9F1000B38E37FC8C0930F305A0E0FEF
apt update
apt install devscripts build-essential cdbs libxcb1-dev gperf pkg-config xutils-dev
# create setup folder
mkdir rego-setup && cd rego-setup/
wget http://archive.ubuntu.com/ubuntu/pool/main/x/xcb-util/xcb-util_0.4.0.orig.tar.gz
wget http://archive.ubuntu.com/ubuntu/pool/main/x/xcb-util/xcb-util_0.4.0-0ubuntu3.debian.tar.xz
tar -xvf xcb-util_0.4.0.orig.tar.gz
cd xcb-util-0.4.0
tar -xvf ../xcb-util_0.4.0-0ubuntu3.debian.tar.xz
dpkg-buildpackage -b
cd ..
apt install ./libxcb-util1_0.4.0-0ubuntu3_amd64.deb
# remove the install folder
cd .. && rm -R rego-setup
apt install regolith-desktop-standard

allumik avatar Dec 12 '20 17:12 allumik

A bit of progress..

VirtualBox_debian-buster test_14_02_2021_21_54_42

kgilmer avatar Feb 15 '21 05:02 kgilmer

@kgilmer any way I can help test your progress? I did the procedure above and it works, but I'd like to help out.

fredericve avatar Mar 16 '21 08:03 fredericve

Hi @fredericve thanks for the offer! Yes very soon if you are able to, there will be something available for testing. I have sort of cleared the "proof of concept" phase of development and am now getting everything cleaned up and simplified for general use in Regolith 2.0. I will update this thread when it stabilizes to a sufficient degree that I would not be wasting your time. :smile:

kgilmer avatar Mar 18 '21 15:03 kgilmer

Hi @fredericve thanks for the offer! Yes very soon if you are able to, there will be something available for testing. I have sort of cleared the "proof of concept" phase of development and am now getting everything cleaned up and simplified for general use in Regolith 2.0. I will update this thread when it stabilizes to a sufficient degree that I would not be wasting your time. 😄

Thats good to hear, would open the possebility for a more easy setup on raspberry pi 2/3. Good job.

gojirrrra avatar Apr 10 '21 21:04 gojirrrra

Progress has been slower than I'd estimated. But progress continues...

VirtualBox_bullseye-test_19_08_2021_20_51_39

kgilmer avatar Aug 20 '21 03:08 kgilmer

I suppose the progress is in the debian/bullseye branch? Can I already start testing that one?

fredericve avatar Sep 21 '21 08:09 fredericve

Regolith 2.0 on Debian is a work in progress. It's basically functional at this point, but there are still big changes ahead before 2.0 becomes stable so I do not recommend using it for anything other than testing. But, yes testing would be fantastic! You can install directly into an existing buster or bullseye system using the new package repo: https://github.com/regolith-linux/package-repo See the readme for installation details.

kgilmer avatar Sep 21 '21 22:09 kgilmer

Hello, I have been using Regolith on Debian Buster for some time now, I added the ubuntu ppa and just for the regolith installation I also added official ubuntu repositories because of dependencies, which I removed after I got regolith. Yeah, really not pretty solution lmao. You might remember me from some questions I had on slack a while back.

Now, I want to upgrade from Buster to Bullseye, I want newer versions of packages and debian is very anoying in this regard. Of course, apt full-upgrade wants to remove regolith and everything, so, I am asking, how stable is the debian version? Should I proceed with the upgrade and than come with a way to get regolith back or should I try the debian version now on buster or should I just wait a bit for the release? Thanks, regolith is awesome :)

sukulent avatar Sep 25 '21 09:09 sukulent

@sukulent have you seen the Bullseye apt src?

https://github.com/regolith-linux/package-repo#debian---bullseye---amd64

You could give this a try, by means of editing/ adopting your existing apt config and then updating…

semanticdreamer avatar Sep 26 '21 09:09 semanticdreamer