MATE: Difference between revisions

From Alpine Linux
m (→‎TrueType fonts: Added todo to fix the directions)
 
(58 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{{Draft}}


== Install MATE Desktop ==
= Prerequisites =


For while MATE Desktop packages are in Edge, then we'll need to add its repository to our list. To do so, issue the following command:
* [[Installation|Install]] Alpine Linux
{{Cmd|echo http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories
* [[Setting_up_a_new_user#Creating_a_new_user|Create a user account]]
apk update}}
* [[Repositories#Enabling_the_community_repository|Enable the Community repository]]
* [[Alpine_setup_scripts#setup-xorg-base|Install Xorg]]
* [[D-Bus#Installation|Install and configure D-Bus]] with X11 add-ons


The next commands are used to install all avaliable video drivers and setup Xorg server:
<br>
<pre>
videodrivers=$(apk search --quiet --exact xf86-video* | grep -v -- '-doc$')
setup-xorg-base $videodrivers
</pre>
Now let us install a bunch of needed packages what includes all MATE Desktop packages avaliable in our Edge repository:


<pre>
= Install MATE Desktop =
apk add desktop-file-utils gtk-engines consolekit gtk-murrine-engine caja caja-extensions marco dbus lxdm udev hicolor-icon-theme sudo
mate_pkgs=$(apk search mate -q | grep -v '\-dev' | grep -v '\-lang' | grep -v '\-doc')
apk add $mate_pkgs
</pre>


In the next step we add some services to start up with the operating system:
{{Cmd|<nowiki># apk add mate-desktop-environment lxdm adwaita-icon-theme faenza-icon-theme
{{Cmd|rc-update add lxdm
# gvfs_pkgs=$(apk search gvfs -q &#124; grep -v '\-dev' &#124; grep -v '\-lang' &#124; grep -v '\-doc')
rc-update add dbus
# apk add $gvfs_pkgs</nowiki>}}
rc-update add udev}}


If you do not have a user other than root, it is time to do so. I am going to create a user called "monitor":
{{Cmd|adduser -h /home/monitor -g "Monitor User" monitor}}


We will start D-Bus before other services in order to fix D-Bus configuration file (replace the hard coded 'system_bus_socket' path):
If you are running your Alpine installation from RAM, save the changes:
Starting D-Bus:
{{Cmd|# lbu ci}}
{{Cmd|rc-service dbus start}}


Fixing the  D-Bus configuration file:
<br>
<pre>
dbus_sock_path=$(find / -name system_bus_socket)
dbus_sock_path=$(echo $dbus_sock_path | sed 's/\//\\&/g')
sed -i 's/\/var\/run\/dbus\/system_bus_socket/'$dbus_sock_path'/' /etc/dbus-1/system.conf
</pre>


Adding avaliables True Type Fonts:
Try starting dbus and lxdm. This will start the display manager and should allow you to login.
<pre>
{{Cmd|# rc-service lxdm start}}
ttfs=$(apk search -q ttf- | grep -v '\-doc')
apk add $ttfs
</pre>


<pre>
If it worked, enable the services to start on reboot
ln -s /usr/lib/libfreetype.so.6.11.3 /usr/lib/libfreetype.so.6
{{Cmd|# rc-update add lxdm}}
apk fix
</pre>


If you are running your Alpine from RAM, save the changes:
<br>
{{Cmd|lbu ci}}


And finally, let us start the lxdm service and log in to our MATE Desktop
= Misc =
{{Cmd|rc-service udev start
rc-service lxdm start}}


=== Misc ===
=== TrueType fonts ===
==== Disabling standby and screensaver ====
{{Todo|The directions below need improvement because they don't work well: They pull in many non-font packages.}}
First of all check the actual configuration using xset:
Add all available TrueType Fonts:
{{Cmd|<nowiki>$ ttfs=$(apk search -q ttf- &#124; grep -v '\-doc')
# apk add $ttfs</nowiki>}}


{{Cmd|localhost:~$ sudo apk add xset
=== Disabling standby and screensaver ===
localhost:~$ xset q
Check the current configuration using xset:
... cut ...
 
   Standby: 600    Suspend: 600   Off: 600
{{Cmd|# apk add xset
$ xset q}}
 
 
{{cat|xset q|
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:  off    01: Num Lock:    off    02: Scroll Lock: off
    03: Compose:    off    04: Kana:        off    05: Sleep:      off
    06: Suspend:    off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:    off    13: Mouse Keys:  off
  auto repeat delay:  500    repeat rate:  20
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  0    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  600    cycle:  0
Colors:
  default colormap:  0x22    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,built-ins
DPMS (Energy Star):
   Standby: 600    Suspend: 0   Off: 900
   DPMS is Enabled
   DPMS is Enabled
   Monitor is On
   Monitor is On
localhost:~$
}}
}}


To disable those timers issue the command?
{{Cmd|localhost:~$ xset dpms 0 0 0}}


If you wanna check the timers again:


{{Cmd|localhost:~$ xset q
To disable those timers issue the command:
... cut ...
{{Cmd|$ xset dpms 0 0 0}}
   Standby: 0    Suspend: 0    Off: 0
 
  DPMS is Enabled
Santiy check:
  Monitor is On
 
localhost:~$
{{Cmd|$ xset q &#124; grep Standby
}}
   Standby: 0    Suspend: 0    Off: 0}}
 
== See also ==
* [https://wiki.archlinux.org/title/MATE MATE - Archwiki]
* [https://wiki.gentoo.org/wiki/MATE MATE - Gentoo Wiki]
* [https://wiki.postmarketos.org/wiki/MATE MATE - postmarketOS Wiki]
 
[[Category:Desktop]]
[[Category:Desktop Environments]]

Latest revision as of 04:14, 9 January 2024

Prerequisites


Install MATE Desktop

# apk add mate-desktop-environment lxdm adwaita-icon-theme faenza-icon-theme # gvfs_pkgs=$(apk search gvfs -q | grep -v '\-dev' | grep -v '\-lang' | grep -v '\-doc') # apk add $gvfs_pkgs


If you are running your Alpine installation from RAM, save the changes:

# lbu ci


Try starting dbus and lxdm. This will start the display manager and should allow you to login.

# rc-service lxdm start

If it worked, enable the services to start on reboot

# rc-update add lxdm


Misc

TrueType fonts

Todo: The directions below need improvement because they don't work well: They pull in many non-font packages.


Add all available TrueType Fonts:

$ ttfs=$(apk search -q ttf- | grep -v '\-doc') # apk add $ttfs

Disabling standby and screensaver

Check the current configuration using xset:

# apk add xset $ xset q


Contents of xset q

Keyboard Control: auto repeat: on key click percent: 0 LED mask: 00000000 XKB indicators: 00: Caps Lock: off 01: Num Lock: off 02: Scroll Lock: off 03: Compose: off 04: Kana: off 05: Sleep: off 06: Suspend: off 07: Mute: off 08: Misc: off 09: Mail: off 10: Charging: off 11: Shift Lock: off 12: Group 2: off 13: Mouse Keys: off auto repeat delay: 500 repeat rate: 20 auto repeating keys: 00ffffffdffffbbf fadfffefffedffff 9fffffffffffffff fff7ffffffffffff bell percent: 0 bell pitch: 400 bell duration: 100 Pointer Control: acceleration: 2/1 threshold: 4 Screen Saver: prefer blanking: yes allow exposures: yes timeout: 600 cycle: 0 Colors: default colormap: 0x22 BlackPixel: 0x0 WhitePixel: 0xffffff Font Path: /usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,built-ins DPMS (Energy Star): Standby: 600 Suspend: 0 Off: 900 DPMS is Enabled Monitor is On


To disable those timers issue the command:

$ xset dpms 0 0 0

Santiy check:

$ xset q | grep Standby Standby: 0 Suspend: 0 Off: 0

See also