MATE: Difference between revisions

From Alpine Linux
mNo edit summary
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Setup Xorg ==
Use Alpine's setup script:
{{cmd|# setup-xorg-base}}


Add any additional video drivers necessary:
= Prerequisites =
{{cmd|# apk add xf86-video-ati}}


Add additional input drivers (if necessary)
* [[Installation|Alpine Installation]]
{{cmd|# apk add xf86-input-synaptics}}
* [[Setting_up_a_new_user#Creating_a_new_user|Create user accounts]]
* [[Alpine_setup_scripts#setup-xorg-base|Graphical base environment]]
* [[Enable_Community_Repository#Using_community_repositories|Enabled "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:
{{cat|/etc/apk/repositories|<nowiki># /etc/apk/repositories


#/media/sdb/apks
= Install MATE Desktop =
http://mirror.csclub.uwaterloo.ca/alpine/v3.11/main
http://mirror.csclub.uwaterloo.ca/alpine/v3.11/community
#http://mirror.csclub.uwaterloo.ca/alpine/v3.11/testing
</nowiki>
}}


== 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? --~~~~
<!-- 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? --~~~~
The next commands are used to install all available video drivers and setup Xorg server:
The next commands are used to install all available video drivers and setup Xorg server:
Line 27: Line 16:
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
-->


-->
<!-- This is obsolete: There is a meta package mate-desktop-environment
<!-- This is obsolete: There is a meta package mate-desktop-environment
Add extra necessary packages. The following command will add all components of the MATE Desktop except for the {{Pkg|*-dev}}, {{Pkg|*-lang}}, and {{Pkg|*-doc}} packages. If you would like man pages added, omit {{Path|&#124; grep -v '\-doc'}}
Add extra necessary packages. The following command will add all components of the MATE Desktop except for the {{Pkg|*-dev}}, {{Pkg|*-lang}}, and {{Pkg|*-doc}} packages. If you would like man pages added, omit {{Path|&#124; grep -v '\-doc'}}
Line 37: Line 26:
}}
}}
-->
-->
{{Cmd|<nowiki># apk add mate-desktop-environment dbus dbus-x11 lxdm udev adwaita-icon-theme faenza-icon-theme sudo
 
 
{{Cmd|<nowiki># apk add mate-desktop-environment dbus dbus-x11 lxdm adwaita-icon-theme faenza-icon-theme sudo
# gvfs_pkgs=$(apk search gvfs -q &#124; grep -v '\-dev' &#124; grep -v '\-lang' &#124; grep -v '\-doc')
# gvfs_pkgs=$(apk search gvfs -q &#124; grep -v '\-dev' &#124; grep -v '\-lang' &#124; grep -v '\-doc')
# apk add $gvfs_pkgs</nowiki>
# apk add $gvfs_pkgs</nowiki>
}}
}}


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


<!--
<!--
Line 49: Line 38:
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
EDIT: No longer necessary as of at least 3.8
Line 58: Line 46:
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>
-->  
-->
<!--What is going on here??-->
 
 
{{Cmd|<nowiki># apk del mate-screensaver
{{Cmd|<nowiki># apk del mate-screensaver
# ln -s /usr/etc/xdg/menus/ /etc/xdg/menus
# ln -s /usr/etc/xdg/menus/ /etc/xdg/menus
# apk add mate-screensaver</nowiki>}}
# apk add mate-screensaver</nowiki>}}


Add all available True Type Fonts:
* What is going on here??
{{Cmd|<nowiki>$ ttfs=$(apk search -q ttf- &#124; grep -v '\-doc')
 
# apk add $ttfs</nowiki>
 
}}


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|<nowiki># rc-update add lxdm
# rc-update add dbus
# rc-update add udev</nowiki>}}


And finally, start the dbus, udev, and lxdm. This will start the display manager and allow you to login.
 
Try, starting dbus and lxdm. This will start the display manager and should allow you to login.
{{Cmd|<nowiki># rc-service dbus start
{{Cmd|<nowiki># rc-service dbus start
# rc-service udev start
# rc-service lxdm start</nowiki>}}
# rc-service lxdm start</nowiki>}}
If it worked, enable the services to start on reboot
{{Cmd|<nowiki># rc-update add dbus
# rc-update add lxdm</nowiki>}}


<!--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 =
 
=== True type fonts ===
 
Add all available True Type Fonts:
{{Cmd|<nowiki>$ ttfs=$(apk search -q ttf- &#124; grep -v '\-doc')
# apk add $ttfs</nowiki>
}}
 
=== Disabling standby and screensaver ===
=== Disabling standby and screensaver ===
Check the current configuration using xset:
Check the current configuration using xset:

Revision as of 19:04, 9 May 2021

Prerequisites


Install MATE Desktop

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



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

  • What is going on here??


If you are running your Alpine 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 dbus start # rc-service lxdm start

If it worked, enable the services to start on reboot

# rc-update add dbus # rc-update add lxdm


Misc

True type fonts

Add all available True Type Fonts:

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

Disabling standby and screensaver

Check the current configuration using xset:

$ sudo 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