Michael's cwm desktop (minimal): Difference between revisions

From Alpine Linux
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Michael's base installation procedure|..continuing from basic install..]]
[[Michael's base installation procedure|..continuing from basic install..]]


{{cmd|apk add mesa-dri-gallium}}
{{cmd|# apk add mesa-dri-gallium}}


add the following lines to .xinitrc:
add the following lines to .xinitrc:
Line 15: Line 15:
(also, technically, the wallpaper will have to wait until I download the appropriate file..)
(also, technically, the wallpaper will have to wait until I download the appropriate file..)


{{cmd|setup-xorg-base}}
{{cmd|# setup-xorg-base}}
{{cmd|apk add cwm}}
{{cmd|# apk add cwm}}
{{cmd|apk add xrandr feh}}
{{cmd|# apk add xrandr feh}}


{{cmd|apk add firefox}} (because it's easy, and allows you to test sound)
{{cmd|# apk add firefox}} (because it's easy, and allows you to test sound)


create .cwmrc in your users home folder and add the following line to it:
create .cwmrc in your users home folder and add the following line to it:
Line 27: Line 27:
--> leave root!:
--> leave root!:


{{cmd|return}}
{{cmd|# return}}


launch cwm:
launch cwm:


{{cmd|startx}}
{{cmd|$ startx}}


--------------
--------------
Line 39: Line 39:
{{cmd|ctrl-alt-shift-q}}
{{cmd|ctrl-alt-shift-q}}
uninstall firefox
uninstall firefox
{{cmd|apk del firefox}}
{{cmd|# apk del firefox}}
and install flatpak (necessary for ungoogled chromium)
and install flatpak (necessary for ungoogled chromium)
...
...
add xterm so that we can do all this from inside cwm, because we need to make sure that d-bus is properly launched for this user, and that happens when we run startx, and to check, we need xterm.
add xterm so that we can do all this from inside cwm, because we need to make sure that d-bus is properly launched for this user, and that happens when we run startx, and to check, we need xterm.
{{cmd|apk add xterm}}
{{cmd|# apk add xterm}}
{{cmd|return}}
{{cmd|# return}}
{{cmd|startx}}
{{cmd|$ startx}}
{{cmd|echo $DBUS_SESSION_BUS_ADDRESS}} -does- provide an output.  good. :-)
{{cmd|echo $DBUS_SESSION_BUS_ADDRESS}} -does- provide an output.  good. :-)
become root again, then:
become root again, then:
{{cmd|apk add polkit}} (or polkit-elogind?)
{{cmd|# apk add polkit}} (or polkit-elogind?)
{{cmd|rc-update add polkit}}
{{cmd|# rc-update add polkit}}
{{cmd|rc-service polkit start}}
{{cmd|# rc-service polkit start}}
------------
------------
{{cmd|apk add xdg-desktop-portal xdg-desktop-portal-gtk}}
{{cmd|# apk add xdg-desktop-portal xdg-desktop-portal-gtk}}
{{cmd|apk add flatpak}}
{{cmd|# apk add flatpak}}
{{cmd|flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo}}
<<warning! the following must be done as a user, if you do it as root, it won't work!>>
At this point, flathub recommends that you restart (that means reboot, right? your system, so I'll do that.)
{{cmd|$ flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo}}
{{cmd|reboot}}
At this point, flathub recommends that you restart (that means reboot, right? your system, so I'll do that.) <alpine seems to think you can just log-out the user and log-back in.. haven't tested it.. I do know that logging out and back in results in software getting found. Flathub says something funny that confuses me.
<drop back to root>
{{cmd|# reboot}}
--------------------
--------------------
--------------------
--------------------
Back in cwm,
Logged back in as user:
 
{{cmd|$ flatpak --user install chromium}}
/home/legolas # flatpak install flathub io.github.ungoogled_software.ungoogled_chromium                                                                                                                                             
Select the option you want, then confirm when instructed.
 
Note that the directory                                                                                                                                                                                                           
 
'/root/.local/share/flatpak/exports/share'                                                                                                                                                                                           
 
is not in the search path set by the XDG_DATA_DIRS environment variable, so                                                                                                                                                         
applications installed by Flatpak may not appear on your desktop until the                                                                                                                                                           
session is restarted.                                                                                                                                                                                                 
 
Looking for matches…                                                                                                                                                                                               
error: Unable to load summary from remote flathub: GPG verification enabled, but no summary found (check that the configured URL i                                                                                                    n remote config is correct)                                                                                                                                                                                                         
/home/legolas # return                                                                                                                                                                                                     
~ $ flatpak --user install io.github.ungoogled_software.ungoogled_chromium                                                                                                                                                           
Looking for matches…                                                                                                                                                                                                                 
error: No remote refs found for ‘io.github.ungoogled_software.ungoogled_chromium’                                                                                                                                                   
~ $ flatpak --user search chromium                                                                                                                                                                                                   
No matches found                                                                                                                                                                                                                     
~ $ flatpak --user install chromium                                                                                                                                                                                                  
Looking for matches…                                                                                                                                                                                               
error: No remote refs found for ‘chromium’                                                                                                                                                                                           
~ $ flatpak --user search firefox                                                                                                                                                                                                   
No matches found                                                                                                                                                                                   
 
-------------------------
-------------------------
 
Later, after some more tom-foolery that may just have messed up the system further, I get:
 
/home/legolas # flatpak update
 
Note that the directory
 
'/root/.local/share/flatpak/exports/share'
 
is not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
 
Looking for updates…
 
Nothing to do.
 
----------------------
and
----------------------
 
/home/legolas # flatpak update --appstream
 
Note that the directory
 
'/root/.local/share/flatpak/exports/share'
 
is not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
 
Updating appstream data for remote flathub
Error updating: Error updating appstream2: No such ref 'appstream2/x86_64' in remote flathub; Error updating appstream: No such ref 'appstream/x86_64' in remote flathub

Latest revision as of 11:02, 25 May 2025

..continuing from basic install..

# apk add mesa-dri-gallium

add the following lines to .xinitrc:

xrandr --output eDP-1 --brightness 0.3

# feh --bg-fill /home/legolas/wallpaper/valley_of_flowers.jpg

exec dbus-launch --exit-with-session cwm

note that last line. it is currently the only thing I do to start the d-bus session for my user. I think there is more I have to do.

(also, technically, the wallpaper will have to wait until I download the appropriate file..)

# setup-xorg-base

# apk add cwm

# apk add xrandr feh

# apk add firefox

(because it's easy, and allows you to test sound)

create .cwmrc in your users home folder and add the following line to it:

bind-key CM-e /usr/bin/firefox

--> leave root!:

# return

launch cwm:

$ startx



with that test completed, exit cwm (cause I feel like it)

ctrl-alt-shift-q

uninstall firefox

# apk del firefox

and install flatpak (necessary for ungoogled chromium) ... add xterm so that we can do all this from inside cwm, because we need to make sure that d-bus is properly launched for this user, and that happens when we run startx, and to check, we need xterm.

# apk add xterm

# return

$ startx

echo $DBUS_SESSION_BUS_ADDRESS

-does- provide an output. good. :-)

become root again, then:

# apk add polkit

(or polkit-elogind?)

# rc-update add polkit

# rc-service polkit start


# apk add xdg-desktop-portal xdg-desktop-portal-gtk

# apk add flatpak

<<warning! the following must be done as a user, if you do it as root, it won't work!>>

$ flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

At this point, flathub recommends that you restart (that means reboot, right? your system, so I'll do that.) <alpine seems to think you can just log-out the user and log-back in.. haven't tested it.. I do know that logging out and back in results in software getting found. Flathub says something funny that confuses me. <drop back to root>

# reboot



Logged back in as user:

$ flatpak --user install chromium

Select the option you want, then confirm when instructed.