Manjaro Difference between pages "Plymouth" and "Proper ~/.xinitrc File"

Difference between pages "Plymouth" and "Proper ~/.xinitrc File"

From Manjaro
(Difference between pages)
imported>Maparillo
 
imported>Dalto
(Removed outdated link to openrc startup)
 
Line 1: Line 1:
This page is a short version of the [https://wiki.archlinux.org/index.php/Xinitrc original Arch Wiki page]. For more information, look there.


Plymouth is an application that runs very early in the boot process (even before the root filesystem is mounted) that provides a graphical boot animation while the boot process happens in the background.
'''It is only for advanced users, who know how to fix broken systems and know their way around the terminal.'''


The 0.8.10 Manjaro main editions use Plymouth by default.


== Installation ==
=General Information=


Plymouth is available from the Manjaro repositories. However, some steps need to be followed to set it up properly.
The <code>~/.xinitrc</code> file in your home directory is executed by the command <code>startx</code>. In general, it is used to start your [https://wiki.manjaro.org/index.php?title=Install_Desktop_Environments Desktop Environment].


The steps from https://wiki.archlinux.org/index.php/Plymouth#Installation apply, except the last step.
Usually, your [https://wiki.manjaro.org/index.php?title=Install_Display_Managers Display/Login Manager]calls <code>startx</code>, but you can also start it manually when needed.


When rebuilding the initrd image, the "linux" preset does not exist. Use the one that corresponds to you kernel version:
=~/.xinitrc File=


sudo mkinitcpio -p linux<version>
The <code>~/.xinitrc</code> file is located in your home directory and it is a hidden file. Here is an example of a default <code>~/.xinitrc</code> file:


If you do not know what value to use, look in the {{ic|/etc/mkinitcpio.d}} directory. It contains all available presets (files with the .preset extension). For example:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi
# exec enlightenment_start
# exec i3
# exec mate-session
# exec xmonad
# exec startlxqt
# exec startlxde
# exec awesome
# exec bspwm
# exec gnome-session
# exec gnome-session --session=gnome-classic
# exec startkde
# exec startxfce4
# exec startfluxbox
# exec openbox-session
# exec cinnamon-session
# exec pekwm
# exec catwm
# exec dwm
# exec startede
# exec icewm-session
# exec jwm
# exec monsterwm
# exec notion
# exec startdde      # deepin-session


sudo mkinitcpio -p linux49
'''Remove the <code>#</code> symbol at the beginning of the code line belonging to your Desktop Environment''' (beginning with <code># exec</code>) and save the <code>~/.xinitrc</code> file.


Note that in order to enable Plymouth on boot you must edit {{ic|/etc/default/grub}} and add the word "''splash''" to the list of arguments for the following line, as shown:


GRUB_CMDLINE_LINUX_DEFAULT="quiet"
=Troubleshooting=


GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
If you are using the Net Edition of Manjaro or a Community Edition, it can happen that the your <code>~/.xinitrc</code> file is missing parts or contains wrong code.
In this case, your system will show error messages and it will refuse to boot your Desktop Environment. It is even possible that your system is caught in a loop, in which it constantly keeps trying to execute <code>startx</code>.


Make sure not to remove anything else that may already be there.
If this happens, get a tty by pressing <code>CTRL + ALT + F2</code> (or any other funktion key - try all function keys from <code>F1</code> to <code>F7</code>).
When you have a tty, you can log into your system, [[Install Display Managers]] or edit your <code>~/.xinitrc</code> file using  <code>nano</code> or <code>vim</code> (this might has to be installed before you can use it).


== Configuration ==
See https://wiki.archlinux.org/index.php/Plymouth#Configuration
== Removal ==
4 or 5 steps are needed to remove Plymouth. They are:
* Remove plymouth hook from ''/etc/mkinitcpio.conf''  (For disk encryption users should plymouth-encrypt to encrypt)
* Regenerate the initramfs for your kernel with '''sudo mkinitcpio -p linux<version>'''
* Remove the word splash & quiet from the Grub command line options via editing ''/etc/default/grub''
* Update Grub config file with '''sudo update-grub'''
* Configure display manager:
** [https://classicforum.manjaro.org/index.php?topic=14213.msg128429#msg128429 For Xfce]
** [https://classicforum.manjaro.org/index.php?topic=14213.msg139844#msg139844 For KDE, replacing kdm with sddm for most newer installs, and systemctl can generally be successful without sudo].
After that the plymouth package and its themes can be removed. For example:
  $ sudo pacman -Rsn plymouth-theme-manjaro-elegant
  $ sudo pacman -Rsn plymouth
== Forum Support ==
Have a look at the following link: [https://forum.manjaro.org/index.php?topic=14213.0 Plymouth]


[[Category:Contents Page]]
[[Category:Contents Page]]

Revision as of 19:05, 18 May 2019

This page is a short version of the original Arch Wiki page. For more information, look there.

It is only for advanced users, who know how to fix broken systems and know their way around the terminal.


General Information

The ~/.xinitrc file in your home directory is executed by the command startx. In general, it is used to start your Desktop Environment.

Usually, your Display/Login Managercalls startx, but you can also start it manually when needed.

~/.xinitrc File

The ~/.xinitrc file is located in your home directory and it is a hidden file. Here is an example of a default ~/.xinitrc file:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec enlightenment_start
# exec i3
# exec mate-session
# exec xmonad
# exec startlxqt
# exec startlxde
# exec awesome
# exec bspwm
# exec gnome-session
# exec gnome-session --session=gnome-classic
# exec startkde
# exec startxfce4
# exec startfluxbox
# exec openbox-session
# exec cinnamon-session
# exec pekwm
# exec catwm
# exec dwm
# exec startede
# exec icewm-session
# exec jwm
# exec monsterwm
# exec notion
# exec startdde       # deepin-session

Remove the # symbol at the beginning of the code line belonging to your Desktop Environment (beginning with # exec) and save the ~/.xinitrc file.


Troubleshooting

If you are using the Net Edition of Manjaro or a Community Edition, it can happen that the your ~/.xinitrc file is missing parts or contains wrong code. In this case, your system will show error messages and it will refuse to boot your Desktop Environment. It is even possible that your system is caught in a loop, in which it constantly keeps trying to execute startx.

If this happens, get a tty by pressing CTRL + ALT + F2 (or any other funktion key - try all function keys from F1 to F7). When you have a tty, you can log into your system, Install Display Managers or edit your ~/.xinitrc file using nano or vim (this might has to be installed before you can use it).

Cookies help us deliver our services. By using our services, you agree to our use of cookies.