Manjaro Difference between pages "Cfdisk Basic Partitioning Scenarios" and "SLiM Configuration"

Difference between pages "Cfdisk Basic Partitioning Scenarios" and "SLiM Configuration"

From Manjaro
(Difference between pages)
imported>Verityproductions
 
imported>Verityproductions
 
Line 1: Line 1:
=A Two Partition Scenario=
=Overview=


In this scenario, Boot, Root, and Home will be combined into a single bootable partition (SDA1). A seperate swap partition will also be created in the remaining space, using a logical partition (SDA2/SDA5).
{{tip|Since version 1.6.2, SLiM will automatically find installed desktop environments and window managers.}}


==Creating the Partitions==
[[File:slim.png|thumb|left|375px]]


[[File: NewPpart-082.png|thumb|left|375px]]


SLiM - the '''S'''imple '''L'''og'''i'''n '''M'''anager - is currently the default Display Manager for the Manjaro Openbox (ManjaroBox) flavour.


Use the left and right arrow keys to select the available options in ''cfdisk''. The up and down arrow keys are used to select disk space / partitions. In this instance, Manjaro is being installed on a clean hard disk with no existing partitions or data. '''New''' has been highlighted to create the first new partition.
SLiM is highly configurable with an abundance of extra themes available. Since version 1.6.2, it is suitable for less experienced users as it can now automatically detect any installed desktop environments and window managers. However, users installing SLiM manually will still need to make an amendment to the '''.xinitrc'' configuration file for it to work properly.
<br clear="all" />
 
 
 
= Configuring SLiM to Start Desktop Environments =
 
{{tip|It is not necessary to take any action for Manjaro Openbox (ManjaroBox) release 0.8.8 and onwards.}}
 
 
'''Users who have installed an earlier version of SLiM''' (e.g. provided with the Manjaro Openbox 0.8.7.1 release and earlier) will need to manually edit both the ''SLiM configuration file'' (slim.conf) and the ''X-Windows initialisation file'' (.xinitrc) in order to enable the new auto-detect feature. '''Users who have manually installed the latest version of SLiM''' will only need to manually edit the ''.xinitrc'' file. The amendments required are themselves very quick and easy to implement.
 
 
==Edit the SLiM Configuration File==
 
The purpose of checking and/or editing this file is to ensure that SLiM will automatically detect installed desktop environments and window managers. You will need to first open your terminal in order to edit the '''SLiM configuration file'''. The syntax of the command to do this is:
 
sudo [text editor] /etc/slim.conf
 
 
For example, if you wish to edit the file using ''Geany'' (provided with the Openbox flavour) then enter:
 
gksu geany /etc/slim.conf
 
 
Otherwise, if you wish to edit the file using ''Gedit'' (provided with the XFCE flavour) then enter:
 
sudo gedit /etc/slim.conf


Press <enter> to continue.
<br clear="all" />


[[File: newprimary-082.png|thumb|left|375px]]


==Ensure SLiM Automatically Detects Installed Environments==


The first step will be to define if it is a Primary or Logical Partition. In this instance, '''Primary''' has been selected.
Once the SLiM configuration file has been opened, it will be necessary to ensure that the following line is present:


Press <enter> to continue.
sessiondir /usr/share/xsessions/
<br clear="all" />


[[File: newPsize-082.png|thumb|left|375px]]


'''Users who had a previous version of SLiM installed''' must replace the '''sessions''' command with the above '''sessiondir''' command. For example, '''users who installed Manjaro Openbox 0.8.7.1 or earlier''' should first find the following section:


The second step is to define the size of the partition. In this instance, 40,949MB (40GB) out of a total of 42,949MB (42GB), has been allocated, with the intention to leave approximately 2000MB (2GB) remaining for the swap partition.
'''# Available sessions (first one is the default).'''
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
'''<font color="green">sessions            xfce,gnome3,kde,cinnamon,razor-qt,openbox,lxde,mate </font color>'''


{{tip|If, for example, the intention was to leave 20GB of unallocated space on the author's hard drive to install another operating system later, then 20949MB (20GB) would be allocated instead. Once the 2GB swap partition was allocated, this would leave 20GB of space remaining. An installer used by a distro like Mint or Ubuntu would even automatically detect and use this unallocated space for installation alongside Manjaro.}}


Once the value has been set, press <enter> to continue.
And make the necessary amendment so that it now looks like this:
<br clear="all" />


'''# Available sessions (first one is the default).'''
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
'''<font color="green">sessiondir /usr/share/xsessions/</font color>'''


[[File: newPplace-082.png|thumb|left|375px]]


Once satisfied that the ''sessiondir'' command is present and/or has replaced the old ''sessions'' command, save and close the file. The next - and final - step necessary is to edit and configure the '''X-Windows Initialisation File'''.


The third (and final) step is to define where the partition starts on your hard drive (i.e. from the beginning or the end of the available space). As with this instance - unless you have a specific reason to do otherwise - it is recommended to always start your partition(s) at the beginning of your hard drive / available space on your hard drive.


Once the selection has been highlighted, press <enter> to continue.
==Open the X-Windows Initialisation File==
<br clear="all" />


[[File: NewPboot-082.png|thumb|left|375px]]
{{tip|The ''.xinitrc'' file is already owned by you, so there is no need to use the 'sudo' or 'gksu' commands to edit it.}}




This partition must also be bootable, as it is intended to contain the Boot/GRUB. To mark it as such, the '''Bootable''' flag/option has been highlighted.
The .xinitrc is responsible for actually starting your installed desktop environment(s). You will need to first open your terminal in order to edit the '''X-Windows initialisation file'''. The syntax of the command to do this is:


{{note|Unless you intend to use an existing bootable partition (i.e. used by an existing Linux operating system), then you must also do the same for the partition where you intended to store the GRUB.}}
sudo [text editor] ~/.xinitrc


Press <enter> to continue.
<br clear="all" />


[[File: NewLpart-082.png|thumb|left|375px]]
'''Don't forget the dot'''. For example, if you wish to edit the file using ''Geany'', then enter:


geany ~/.xinitrc


Note that the partition  - listed as sda1 - has now been flagged as ''boot''.


With this complete, the swap partition will now be created. This is undertaken by first selecting the free space underneath the partition, and then highlighting the '''New''' option.
Otherwise you could use the ''Gedit'' text editor instead, by entering the command:


Press <enter> to continue.
gedit ~/.xinitrc
<br clear="all" />


[[File: NewLogical-082.png|thumb|left|375px]]


==Ensure the X-Windows Initialisation File Runs Installed Environments==


As before, the first step is to define the type of partition to be used. In this instance, for illustrative purposes, the swap partition has been defined as a '''Logical''' partition, although it would make no real difference if it were defined as a primary partition instead.
{{warning|SLiM no longer seems to support a default session. It will therefore be necessary to select what desktop environment or window manager you wish to use by first pressing the '''<F1>''' key, prior to entering your username and password.}}


Press <enter> to continue.
<br clear="all" />


[[File: logicalPsize-082.png|thumb|left|375px]]
Once the .xinitrc configuration file has been opened, it will be necessary to ensure that the following line is present <u>at the very end of the configuration file</u>:


exec $1


Again, the second step is to define the size of the new partition. In this instance, the remaining space of 2GB has been allocated, which has already been listed by default.


Press <enter> to continue.
'''Users who had a previous version of SLiM installed''' must completely replace both the previous '''case "$1"''' and '''DEFAULTSESSION=''' commands listed below with the '''exec $1''' command. For example, '''users who installed Manjaro Openbox 0.8.7.1 or earlier''' should first find the following section:
<br clear="all" />


[[File: swapdefine-082.png|thumb|left|375px]]


DEFAULTSESSION=openbox-session
case "$1" in
    openbox) exec openbox-session ;;
      xfce) exec xfce4-session ;;
      gnome3) exec gnome-session ;;
      kde) exec startkde ;;
      cinnamon) exec gnome-session-cinnamon ;;
      razor-qt) exec razor-session ;;
      lxde) exec lxsession ;;
      mate) exec mate-session ;;
      *) exec $DEFAULTSESSION ;;
esac


As this newly created partition is intended to be used as a swap partition, it is necessary to specifically define its type as such. To do so, the '''Type''' option has been highlighted.


Press <enter> to continue.
And make the necessary amendment so that it now looks like this:
<br clear="all" />


[[File: typedefine-082.png|thumb|left|375px]]
exec $1




A list of (hexadecimal) codes corresponding to the available types of partition will be displayed. It will be necessary to press a key to continue and enter the appropriate code.
To clarify for newer users, the entire ''.xinitrc'' file should now look like this:


In this instance - as illustrated - the code '''82''' has been typed in to define the partition type as swap.


Once the code has been typed in, press <enter> to continue.
#!/bin/sh
<br clear="all" />
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
## Ensure that the D-Bus Communication System is running properly to fix
## File management, authentication, and other essential system processes
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
    eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi
## Ensure that GTK themes are applied uniformly in the Desktop Environment
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
## Where the default Home folders have not already been created, generate them
if [ -x /usr/bin/xdg-user-dirs-update ]; then
    /usr/bin/xdg-user-dirs-update
fi
## Ensure that obmenu-generator (a pipe menu) is set to the user.
## Needs only to be run once, so last sed command hashes the sed
## commands!
sed 's/_user_/'$(whoami)'/' ~/.config/obmenu-generator/schema.pl -i
sed 's/_user_/'$(whoami)'/' ~/.config/obmenu-generator/config.pl -i
exec $1


[[File: writepartv2-082.png|thumb|left|375px]]




Note that the swap partition has been listed as '''sda5'''. This is because primary partitions only range from sda1 to sda4, while logical partitions always start from sda5. Also note that sda5 is listed as a swap partition.
Once satisfied that the ''exec $1'' command is present and/or has replaced the old ''case "$1"'' and ''DEFAULTSESSION='' commands, save and close the file. Now reboot the system for the changes to take effect.


With both partitions created and defined, the partition table must now be written to the hard disk. To do so, the '''write''' option must be highlighted, before pressing <enter> to continue.
=Selecting Multiple Desktop Environments=


Upon doing so a warning message will appear. It will also be necessary to confirm your intention to write the new partitions by typing in '''yes''' at the prompt and then pressing <enter> again.
[[File:slimsessions.png|thumb|left|375px]]
<br clear="all" />


[[File: cfdiskquit-082.png|thumb|left|375px]]


{{Note|Again, there is no longer a 'default session', so you will have to manually pick the installed desktop you wish. This includes even where only Openbox has been installed, as it is possible to use this window manager with the KDE desktop environment.}}


With the partitions completed and written, highlight '''quit''' to exit from ''cfdisk''.


Press <enter> to continue.
Where two or more desktop environments have be installed (or at least just Openbox), then they can be cycled and selected by pressing the '''F1''' key on the SLiM login screen.
<br clear="all" />
<br clear="all" />




==Finalising the Disk Preparation==
= Previewing Installed Themes =


[[File: partitiondone-082.png|thumb|left|375px]]
Thankfully, it is not necessary to repeatedly edit the SLiM configuration file and re-boot your system in order to see what the installed themes look like. More conveniently, they can instead be previewed in the terminal. To do so, once the themes have of course been installed:


1. Change to the directory that contains the themes by entering the following command:


You will be returned to the hard disk selection menu. Highlight '''Done''' as the disk partitioning has been completed.
cd /usr/share/slim/themes/


Press <enter> to continue.
<br clear="all" />


[[File: partitionmsg-082.png|thumb|left|375px]]
2. List the installed themes available by entering the following command:
 
ls




A message will appear stating that it will now be necessary to select the appropriate partitions to use for the Manjaro installation.
3. Preview any and all installed themes listed. The syntax of the command to do so is:


Press <enter> to continue.
slim -p [name of theme]
<br clear="all" />


[[File: selectdiskagain-082.png|thumb|left|375px]]


For example, to preview a listed theme called ''mindlock'', the following command would be entered


As before,The installer will automatically detect and display all hard discs connected to your system. Where more than one drive is present on your system, highlight the drive partitioned earlier.
slim -p mindlock


Press <enter> to continue.
<br clear="all" />


[[File: confirmswap-082.png|thumb|left|375px]]
To exit from a theme currently being previewed, simply type '''exit''' into the ''user name'' field and then press <enter>


= Changing Themes =


'''Select the appropriate partition to use for the Swap'''. In this instance, the swap partition is '''sda5''', which has been highlighted for selection.
[[File:slimmindlock.png|thumb|left|375px]]


Press <enter> to continue.
<br clear="all" />


[[File: swapwarn-082.png|thumb|left|375px]]
{{tip|There may be even more themes available from the '''[[Arch User Repository]]'''.}}




'''Confirm that you wish to format your chosen partition.'''
A particularly strong feature of SLiM that has attracted many users is the abundance of varied and wide-ranging themes available for it. Moreover, these themes are very easy to set. To install all available themes for SLiM from the official Manjaro repositories, enter the following command in the terminal:


Press <enter> to continue.
sudo pacman -S slim-themes archlinux-themes-slim
<br clear="all" />
<br clear="all" />


[[File: confirmroot-082.png|thumb|left|375px]]


== Open the SLiM Configuration File ==


'''Select the appropriate partition to use for the Root'''. Again, this is where Manjaro itself (and later, any newly installed applications for it) will be stored. In this instance, it's an easy choice as the only remaining partition available is '''sda1'''.
You will need to first open your terminal in order to edit the '''SLiM configuration file'''. The syntax of the command to do this is:


Press <enter> to continue.
sudo [text editor] /etc/slim.conf
<br clear="all" />


[[File: confirmFS-082.png|thumb|left|375px]]


For example, if you wish to edit the file within the terminal using nano (a standard terminal-based text editor) then enter:


'''Set the file system to manage your files'''. If you are unsure which file system to choose, as illustrated, then it is recommend to highlight [http://en.wikipedia.org/wiki/Ext4 ext4], as this is one of the latest and perhaps most widely used Linux file systems.
sudo nano /etc/slim.conf


Press <enter> to continue
<br clear="all" />


[[File: ConfirmRT-082.png|thumb|left|375px]]
Otherwise - if you have installed the full version of Manjaro (i.e. not the NET-Edition) - you may find it easier to use the pre-installed ''gedit'' text editor instead. This will open the configuration file up as a document, making it easier to read and edit. To use gedit instead, the command is:


sudo gedit /etc/slim.conf


'''Confirm that you wish to format your chosen partition.'''


Press <enter> to continue.
== Set the Desired Theme ==
<br clear="all" />


[[File: mntBoot-082.png|thumb|left|375px]]
{{warning|Make sure that you list the name of the desired theme correctly.}}




'''Select any other partitions to mount at bootup.''' If a separate ''Boot Partition'' had been created, it would be selected here. Upon pressing <enter> to continue, it would then be necessary to select which file system to use for it (e.g. ext4), and then to confirm that it is to be mounted at '/boot'.
Enabling the automatic login is undertaken in the following section, located near the bottom of the SLiM configuration file:


Once completed, the process would also be repeated for any other relevant partitions, such as if a separate ''Home Partition'' had been created. '''In essence, it will be necessary to select and mount all of the partitions you had created for your Manjaro installation so that they will all be available for use upon booting up'''.
# current theme, use comma separated list to specify a set to
# randomly choose from
<font color="green">'''current_theme      default'''</font color>


However, as in this instance only two partitions had been created (one of which combines Boot, Root, and Home), there are no further partitions to select.


Press <enter> to continue.
To change the theme, simply replace the name of the current theme listed after the '''current_theme''' command (e.g. default) with the name of the desired theme to set. As an example, SliM has been configured to use the ''mindlock'' theme:
<br clear="all" />


[[File: ConfirmPart-082.png|thumb|left|375px]]
# current theme, use comma separated list to specify a set to
# randomly choose from
<font color="green">'''current_theme      mindlock'''</font color>




'''Review and confirm the mounted partitions.''' A confirmation message will appear, listing all of the partitions to mounted during the bootup of your Manjaro installation. Ensure that all of your intended partitions have been listed, and that they have been listed correctly (e.g. purposes and file systems). If something is amiss, highlight ''No'' to be taken back.
Once your amendments have been completed, you can save your changes and close the configuration file by:


Again, in this instance, the message confirms that sda5 is to be mounted as the Swap Partition, and that sda1 is to be mounted (using the ext4 file system) for everything else.
* '''nano''': Press CTRL and 'x' to exit, 'y' to save, and <enter> to finish, or
* '''gedit''': Select the 'save' option and then close the window.


Press <enter> to continue.


<br clear="all" />
=SLiM Login Commands=


[[File: mntsuccess-082.png|thumb|left|375px]]
{{tip|This section may prove especially useful if SLiM has been misconfigured in some way!}}




After a few moments, a message will appear to confirm that the partitions have been successfully mounted.
SLiM also provides a number of basic functions in addition to logging into a desktop environment. To use these features, simply enter the following commands into the user name field:


Press <enter> to continue.
* '''exit''' - Return to the command line
<br clear="all" />
* '''halt''' - Shutdown the system
* '''reboot''' - Reboot the system
* '''console''' - Launch the terminal


[[File: Pewgoback-082.png|thumb|left|375px]]




'''Return to the Main Menu.''' As this step has been completed, highlight '''Main menu''' and press <enter> to be taken back to the installer's main menu.
[[Category:Contents Page]]
<br clear="all" />

Revision as of 18:45, 13 November 2013

Overview

Tip
Since version 1.6.2, SLiM will automatically find installed desktop environments and window managers.


SLiM - the Simple Login Manager - is currently the default Display Manager for the Manjaro Openbox (ManjaroBox) flavour.

SLiM is highly configurable with an abundance of extra themes available. Since version 1.6.2, it is suitable for less experienced users as it can now automatically detect any installed desktop environments and window managers. However, users installing SLiM manually will still need to make an amendment to the '.xinitrc configuration file for it to work properly.


Configuring SLiM to Start Desktop Environments

Tip
It is not necessary to take any action for Manjaro Openbox (ManjaroBox) release 0.8.8 and onwards.


Users who have installed an earlier version of SLiM (e.g. provided with the Manjaro Openbox 0.8.7.1 release and earlier) will need to manually edit both the SLiM configuration file (slim.conf) and the X-Windows initialisation file (.xinitrc) in order to enable the new auto-detect feature. Users who have manually installed the latest version of SLiM will only need to manually edit the .xinitrc file. The amendments required are themselves very quick and easy to implement.


Edit the SLiM Configuration File

The purpose of checking and/or editing this file is to ensure that SLiM will automatically detect installed desktop environments and window managers. You will need to first open your terminal in order to edit the SLiM configuration file. The syntax of the command to do this is:

sudo [text editor] /etc/slim.conf


For example, if you wish to edit the file using Geany (provided with the Openbox flavour) then enter:

gksu geany /etc/slim.conf


Otherwise, if you wish to edit the file using Gedit (provided with the XFCE flavour) then enter:

sudo gedit /etc/slim.conf


Ensure SLiM Automatically Detects Installed Environments

Once the SLiM configuration file has been opened, it will be necessary to ensure that the following line is present:

sessiondir /usr/share/xsessions/


Users who had a previous version of SLiM installed must replace the sessions command with the above sessiondir command. For example, users who installed Manjaro Openbox 0.8.7.1 or earlier should first find the following section:

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            xfce,gnome3,kde,cinnamon,razor-qt,openbox,lxde,mate 


And make the necessary amendment so that it now looks like this:

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessiondir /usr/share/xsessions/


Once satisfied that the sessiondir command is present and/or has replaced the old sessions command, save and close the file. The next - and final - step necessary is to edit and configure the X-Windows Initialisation File.


Open the X-Windows Initialisation File

Tip
The .xinitrc file is already owned by you, so there is no need to use the 'sudo' or 'gksu' commands to edit it.


The .xinitrc is responsible for actually starting your installed desktop environment(s). You will need to first open your terminal in order to edit the X-Windows initialisation file. The syntax of the command to do this is:

sudo [text editor] ~/.xinitrc


Don't forget the dot. For example, if you wish to edit the file using Geany, then enter:

geany ~/.xinitrc


Otherwise you could use the Gedit text editor instead, by entering the command:

gedit ~/.xinitrc


Ensure the X-Windows Initialisation File Runs Installed Environments

Warning
SLiM no longer seems to support a default session. It will therefore be necessary to select what desktop environment or window manager you wish to use by first pressing the <F1> key, prior to entering your username and password.


Once the .xinitrc configuration file has been opened, it will be necessary to ensure that the following line is present at the very end of the configuration file:

exec $1


Users who had a previous version of SLiM installed must completely replace both the previous case "$1" and DEFAULTSESSION= commands listed below with the exec $1 command. For example, users who installed Manjaro Openbox 0.8.7.1 or earlier should first find the following section:


DEFAULTSESSION=openbox-session

case "$1" in
    openbox) exec openbox-session ;;
     xfce) exec xfce4-session ;;
     gnome3) exec gnome-session ;;
     kde) exec startkde ;;
     cinnamon) exec gnome-session-cinnamon ;;
     razor-qt) exec razor-session ;;
     lxde) exec lxsession ;;
     mate) exec mate-session ;;
     *) exec $DEFAULTSESSION ;;
esac


And make the necessary amendment so that it now looks like this:

exec $1


To clarify for newer users, the entire .xinitrc file should now look like this:


#!/bin/sh

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

## Ensure that the D-Bus Communication System is running properly to fix
## File management, authentication, and other essential system processes

if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
    eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi


## Ensure that GTK themes are applied uniformly in the Desktop Environment

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"


## Where the default Home folders have not already been created, generate them

if [ -x /usr/bin/xdg-user-dirs-update ]; then
   /usr/bin/xdg-user-dirs-update
fi

## Ensure that obmenu-generator (a pipe menu) is set to the user.
## Needs only to be run once, so last sed command hashes the sed
## commands!

sed 's/_user_/'$(whoami)'/' ~/.config/obmenu-generator/schema.pl -i
sed 's/_user_/'$(whoami)'/' ~/.config/obmenu-generator/config.pl -i


exec $1


Once satisfied that the exec $1 command is present and/or has replaced the old case "$1" and DEFAULTSESSION= commands, save and close the file. Now reboot the system for the changes to take effect.

Selecting Multiple Desktop Environments

Slimsessions.png


Note
Again, there is no longer a 'default session', so you will have to manually pick the installed desktop you wish. This includes even where only Openbox has been installed, as it is possible to use this window manager with the KDE desktop environment.


Where two or more desktop environments have be installed (or at least just Openbox), then they can be cycled and selected by pressing the F1 key on the SLiM login screen.


Previewing Installed Themes

Thankfully, it is not necessary to repeatedly edit the SLiM configuration file and re-boot your system in order to see what the installed themes look like. More conveniently, they can instead be previewed in the terminal. To do so, once the themes have of course been installed:

1. Change to the directory that contains the themes by entering the following command:

cd /usr/share/slim/themes/


2. List the installed themes available by entering the following command:

ls


3. Preview any and all installed themes listed. The syntax of the command to do so is:

slim -p [name of theme]


For example, to preview a listed theme called mindlock, the following command would be entered

slim -p mindlock


To exit from a theme currently being previewed, simply type exit into the user name field and then press <enter>

Changing Themes

Slimmindlock.png



Tip
There may be even more themes available from the Arch User Repository.


A particularly strong feature of SLiM that has attracted many users is the abundance of varied and wide-ranging themes available for it. Moreover, these themes are very easy to set. To install all available themes for SLiM from the official Manjaro repositories, enter the following command in the terminal:

sudo pacman -S slim-themes archlinux-themes-slim



Open the SLiM Configuration File

You will need to first open your terminal in order to edit the SLiM configuration file. The syntax of the command to do this is:

sudo [text editor] /etc/slim.conf


For example, if you wish to edit the file within the terminal using nano (a standard terminal-based text editor) then enter:

sudo nano /etc/slim.conf


Otherwise - if you have installed the full version of Manjaro (i.e. not the NET-Edition) - you may find it easier to use the pre-installed gedit text editor instead. This will open the configuration file up as a document, making it easier to read and edit. To use gedit instead, the command is:

sudo gedit /etc/slim.conf


Set the Desired Theme

Warning
Make sure that you list the name of the desired theme correctly.


Enabling the automatic login is undertaken in the following section, located near the bottom of the SLiM configuration file:

# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       default


To change the theme, simply replace the name of the current theme listed after the current_theme command (e.g. default) with the name of the desired theme to set. As an example, SliM has been configured to use the mindlock theme:

# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       mindlock


Once your amendments have been completed, you can save your changes and close the configuration file by:

  • nano: Press CTRL and 'x' to exit, 'y' to save, and <enter> to finish, or
  • gedit: Select the 'save' option and then close the window.


SLiM Login Commands

Tip
This section may prove especially useful if SLiM has been misconfigured in some way!


SLiM also provides a number of basic functions in addition to logging into a desktop environment. To use these features, simply enter the following commands into the user name field:

  • exit - Return to the command line
  • halt - Shutdown the system
  • reboot - Reboot the system
  • console - Launch the terminal
Cookies help us deliver our services. By using our services, you agree to our use of cookies.