MATE: Difference between revisions

From Alpine Linux
No edit summary
Line 1: Line 1:
== Setup Xorg ==
Use Alpine's setup script:
{{cmd|# setup-xorg-base}}
Add any additional video drivers necessary:
{{cmd|# apk add xf86-video-ati}}
Add additional input drivers (if necessary)
{{cmd|# apk add xf86-input-synaptics}}
== Enable Community Repository ==
== Enable Community Repository ==


= Enable Community Repository =
Mate is available in the Community repository. Uncomment {{codeline|http://<url>/alpine/<version>/community}} in {{path|/etc/apk/repositories}}. For example:
Mate is available in the Community repository. Uncomment {{codeline|http://<url>/alpine/<version>/community}} in {{path|/etc/apk/repositories}}. For example:
{{cat|/etc/apk/repositories|<nowiki># /etc/apk/repositories
{{cat|/etc/apk/repositories|<nowiki># /etc/apk/repositories
Line 13: Line 22:


== Install MATE Desktop ==
== Install MATE Desktop ==
 
<!-- EDIT: Is it preferred to recommend users to install all available video drivers? Also, is using some bash piping and greping the most clear way to explain how to install these, and would this possibly break in future versions? --~~~~
Mate is available in the community repository.
The next commands are used to install all available video drivers and setup Xorg server:
 
The next commands are used to install all avaliable video drivers and setup Xorg server:
<pre>
<pre>
videodrivers=$(apk search --quiet --exact xf86-video* | grep -v -- '\-doc$')
videodrivers=$(apk search --quiet --exact xf86-video* | grep -v -- '\-doc$')
setup-xorg-base $videodrivers
setup-xorg-base $videodrivers
</pre>
</pre>
Now let us install a bunch of needed packages what includes all MATE Desktop packages avaliable in our Edge repository:
-->


Add extra necessary packages
<pre>
<pre>
apk add desktop-file-utils gtk-engines consolekit gtk-murrine-engine caja caja-extensions marco dbus lxdm udev hicolor-icon-theme sudo
# 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')
# mate_pkgs=$(apk search mate -q | grep -v '\-dev' | grep -v '\-lang' | grep -v '\-doc')
apk add $mate_pkgs
# apk add $mate_pkgs
</pre>
</pre>


In the next step we add some services to start up with the operating system:
Create a regular user:
{{Cmd|rc-update add lxdm
{{# Cmd|adduser -h /home/<user> -g "Full User Name" <user>}}
rc-update add dbus
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):
We will start D-Bus before other services in order to fix D-Bus configuration file (replace the hard coded 'system_bus_socket' path):
Starting D-Bus:
Starting D-Bus:
{{Cmd|rc-service dbus start}}
{{Cmd|# rc-service dbus start}}
 


EDIT: No longer necessary as of at least 3.8
Fixing the  D-Bus configuration file:
Fixing the  D-Bus configuration file:
<pre>
<pre>
Line 47: Line 53:
sed -i 's/\/var\/run\/dbus\/system_bus_socket/'$dbus_sock_path'/' /etc/dbus-1/system.conf
sed -i 's/\/var\/run\/dbus\/system_bus_socket/'$dbus_sock_path'/' /etc/dbus-1/system.conf
</pre>
</pre>
-->


{{Cmd|apk del mate-screensaver
{{Cmd|apk del mate-screensaver
Line 52: Line 59:
apk add mate-screensaver}}
apk add mate-screensaver}}


Adding avaliables True Type Fonts:
Add all available True Type Fonts:
<pre>
<pre>
ttfs=$(apk search -q ttf- | grep -v '\-doc')
ttfs=$(apk search -q ttf- | grep -v '\-doc')
Line 59: Line 66:


If you are running your Alpine from RAM, save the changes:
If you are running your Alpine from RAM, save the changes:
{{Cmd|lbu ci}}
{{Cmd|# lbu ci}}
 
Enable services to start on reboot
{{Cmd|# rc-update add lxdm}}
{{Cmd|# rc-update add dbus}}
{{Cmd|# rc-update add udev}}


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


It just so happens that the preceding sequence of steps makes an apparently broken Xfce4 install work properly as well.
<!--It just so happens that the preceding sequence of steps makes an apparently broken Xfce4 install work properly as well.-->


=== Misc ===
=== Misc ===
==== Disabling standby and screensaver ====
==== Disabling standby and screensaver ====
First of all check the actual configuration using xset:
Check the current configuration using xset:


{{Cmd|localhost:~$ sudo apk add xset
{{Cmd|localhost:~$ sudo apk add xset
localhost:~$ xset q
$ xset q
... cut ...
... cut ...
   Standby: 600    Suspend: 600    Off: 600
   Standby: 600    Suspend: 600    Off: 600
   DPMS is Enabled
   DPMS is Enabled
   Monitor is On
   Monitor is On
localhost:~$
 
}}
}}


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



Revision as of 23:11, 7 December 2018

Setup Xorg

Use Alpine's setup script:

# setup-xorg-base

Add any additional video drivers necessary:

# apk add xf86-video-ati

Add additional input drivers (if necessary)

# apk add xf86-input-synaptics

Enable Community Repository

Mate is available in the Community repository. Uncomment http://<url>/alpine/<version>/community in /etc/apk/repositories. For example:

Contents of /etc/apk/repositories

# /etc/apk/repositories #/media/sdb/apks http://mirror.csclub.uwaterloo.ca/alpine/v3.8/main http://mirror.csclub.uwaterloo.ca/alpine/v3.8/community #http://mirror.csclub.uwaterloo.ca/alpine/v3.8/testing

Install MATE Desktop

Add extra necessary packages

# 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

Create a regular user: {{# Cmd|adduser -h /home/<user> -g "Full User Name" <user>}}


apk del mate-screensaver ln -s /usr/etc/xdg/menus/ /etc/xdg/menus apk add mate-screensaver

Add all available True Type Fonts:

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

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

# lbu ci

Enable services to start on reboot

# rc-update add lxdm

# rc-update add dbus

# rc-update add udev

And finally, let us start the lxdm service and log in to our MATE Desktop

# rc-service dbus start

# rc-service udev start

# rc-service lxdm start


Misc

Disabling standby and screensaver

Check the current configuration using xset:

localhost:~$ sudo apk add xset $ xset q ... cut ... Standby: 600 Suspend: 600 Off: 600 DPMS is Enabled Monitor is On

To disable those timers issue the command:

localhost:~$ xset dpms 0 0 0

If you wanna check the timers again:

localhost:~$ xset q ... cut ... Standby: 0 Suspend: 0 Off: 0 DPMS is Enabled Monitor is On localhost:~$