Include:Setup-desktop: Difference between revisions

From Alpine Linux
m (Clarified on the community Repository)
(Add note about an extra step required for getting a desktop in a Hyper-V guest)
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Tip|Before installing a desktop, you may want to create a non-privileged [[Setting_up_a_new_user#Creating_a_new_user|user account]] for security reasons.}}
{{Note|Before installing any desktop,
<br>
* Create a non-privileged [[Setting_up_a_new_user#Creating_a_new_user|user account]] for security reasons, if you skipped this step during [[Installation]].  
{{Note|To Install any desktop environment, ensure that <code>community</code> repository is [[Repositories#Managing_repositories|enabled]]. Quickstart Installation utility [[Alpine_setup_scripts#setup-desktop|setup-desktop]] automatically does this. }}
* [[Repositories#Managing_repositories|Enable]] community repository. [[Setup-desktop#Installation_using_setup-desktop|Setup-desktop]] script automatically does this for you.
* Install [[graphics driver]] for your video hardware.


= Quickstart Installation =
If you are using Hyper-V and Xorg refuses to start, blacklist the <code>hyperv_drm</code> module by adding it to the <code>/etc/modprobe.d/blacklist.conf</code> file.}}


The Alpine Linux utility for setting up any desktop quickly is [[Alpine_setup_scripts#setup-desktop|setup-desktop]]. Most commonly used desktop environements can be quickly installed with this utility, which is part of the standard Alpine Linux installation package {{pkg|alpine-conf|repo=main}}.
== Installation using setup-desktop ==
 
The Alpine Linux script for setting up a desktop quickly is [[Alpine_setup_scripts#setup-desktop|setup-desktop]].  


{{Cmd|# setup-desktop}}
{{Cmd|# setup-desktop}}


On running the above command, you will be prompted for the desktop name.
On running the above command, you will be prompted to select a desktop environment.


{{Cmd|Which desktop environment? ('gnome', 'plasma', 'xfce', 'mate', 'sway' or 'none') [none]}}
{{Cmd|Which desktop environment? ('gnome', 'plasma', 'xfce', 'mate', 'sway' or 'none') [none]}}


Once you have chosen the desktop environment, this utility installs the chosen desktop along with all the necessary dependencies, standard utilities, commonly used applications and {{pkg|firefox|repo=main}} as browser. This utility also activates the necessary services like dbus etc..   
Once you have chosen a desktop environment, this script installs the chosen desktop along with all the necessary packages, {{pkg|firefox|repo=community}} browser and adds the necessary services to run on startup. You can reboot when complete and the system will boot into a graphical login screen with the desktop environment. Depending on the desktop chosen, the script also activates the necessary services like dbus, elogind, login manager etc..   


To view all the packages that are installed by the utility for the chosen desktop you can issue the below command:
To view all the packages that are installed by the script for the chosen desktop you can issue the below command:


{{Cmd|# cat /sbin/setup-desktop}}
{{Cmd|# cat /sbin/setup-desktop}}

Revision as of 21:02, 20 November 2024

Note: Before installing any desktop, If you are using Hyper-V and Xorg refuses to start, blacklist the hyperv_drm module by adding it to the /etc/modprobe.d/blacklist.conf file.

Installation using setup-desktop

The Alpine Linux script for setting up a desktop quickly is setup-desktop.

# setup-desktop

On running the above command, you will be prompted to select a desktop environment.

Which desktop environment? ('gnome', 'plasma', 'xfce', 'mate', 'sway' or 'none') [none]

Once you have chosen a desktop environment, this script installs the chosen desktop along with all the necessary packages, firefox browser and adds the necessary services to run on startup. You can reboot when complete and the system will boot into a graphical login screen with the desktop environment. Depending on the desktop chosen, the script also activates the necessary services like dbus, elogind, login manager etc..

To view all the packages that are installed by the script for the chosen desktop you can issue the below command:

# cat /sbin/setup-desktop