Because TARI.COM was taken.
  • Nav
  • Bottom
  • Tux
  • Kowalski
  • Rico
  • Skipper
  • Private
  • Comment
  • Contact
  • Top
  • There are no visitor comments on this page

    Post-Install Configuration (Manjaro MATE)

    Below is a collection of commands and snippets I have put together over the years. Pick out the parts you find useful, and create your own one-click system configuration shell script.

    Encrypted Home partition

    If you have a default Manjaro installation with full disk encryption, your Home is not separated from the rest of the system. Here is how to add a separate Home partition - make sure your encryption password matches the one you used during installation.

    sudo cryptsetup luksFormat --type luks2 $PARTITION
    sudo cryptsetup open /dev/$PARTITION Home
    sudo mkfs.ext4 /dev/mapper/Home
    sudo mkdir /mnt/home
    sudo mount /dev/mapper/Home /mnt/home
    sudo rsync --recursive --links --hard-links --perms --executability --acls --xattrs --owner --group --times --whole-file --progress --ignore-times "/home/$USER" /mnt/home
    sudo "Home UUID=$(lsblk --nodeps --noheadings -o UUID $PARTITION) /crypto_keyfile.bin luks" | sudo tee -a /etc/crypttab
    sudo "/dev/mapper/Home /home ext4 defaults,noatime 0 2" | sudo tee -a /etc/fstab
    sudo cryptsetup luksAddKey $PARTITION /crypto_keyfile.bin
    sudo umount /mnt/home
    sudo rmdir /mnt/home

    Swap file

    If you don't create a Swap partition during installation, Manjaro will not create a Swap file for you.

    sudo fallocate -l 5G /swapfile
    sudo chmod 600 /swapfile
    sudo mkswap /swapfile
    sudo swapon /swapfile
    echo "/swapfile none swap defaults 0 0" | sudo tee -a /etc/fstab

    Software settings

    Here are some settings for sources and updates.

    sudo sed -i "s@RefreshPeriod = 6@RefreshPeriod = 24@" /etc/pamac.conf
    sudo sed -i "s@#RemoveUnrequiredDeps@RemoveUnrequiredDeps@" /etc/pamac.conf
    sudo sed -i "s@#EnableAUR@EnableAUR@" /etc/pamac.conf
    sudo sed -i "s@#CheckAURUpdates@CheckAURUpdates@" /etc/pamac.conf
    #sudo sed -i "s@#DownloadUpdates@DownloadUpdates@" /etc/pamac.conf
    sudo sed -i "s@#CheckAURVCSUpdates@CheckAURVCSUpdates@" /etc/pamac.conf

    Upgrade the whole system

    This will pull all available updates, so be patient.

    pamac upgrade --aur

    Install Additional Software

    This is what I usually add to a system, change the list to suit your needs.

    #Ayatana indicators
    pamac build ayatana-ido libayatana-indicator-gtk3 libayatana-appindicator-gtk3 ayatana-indicator-application ayatana-indicator-power ayatana-indicator-session ayatana-indicator-messages ayatana-indicator-datetime network-manager-applet-indicator mate-ayatana-indicator-applet
    #Ubuntu look
    pamac build ubuntu-mate-themes ubuntu-mate-icon-themes humanity-icon-theme
    pamac build caja-rename unity-mail my-weather-indicator-git desktop-webmail
    sudo pamac install pamac-tray-appindicator redshift evolution dconf-editor telegram-desktop mplayer smplayer aisleriot trash-cli inkscape gimp strawberry mkvtoolnix-gui

    Automagically delete old trash

    This checks the trash on reboot and removes anything older than 30 days.

    (crontab -l 2>/dev/null; echo "@reboot /usr/bin/trash-empty 30") | crontab -

    Login screen

    Some fixes and settings.

    sudo sed -i "s/^hidden-shells=\/bin\/false \/usr\/bin\/nologin$/hidden-shells=\/bin\/false \/usr\/bin\/nologin \/sbin\/nologin/" /etc/lightdm/users.conf
    echo "activate-numlock=true" | sudo tee -a /etc/lightdm/slick-greeter.conf

    Handler for mailto: links

    If you're using a webmail host not listed in the Desktop Webmail application, add it like this:

    sudo echo -e "" | sudo tee -a /usr/share/desktop-webmail/webmailers.ini
    sudo echo -e "[PROVIDER_NAME]" | sudo tee -a /usr/share/desktop-webmail/webmailers.ini
    sudo echo -e "ID=1" | sudo tee -a /usr/share/desktop-webmail/webmailers.ini
    sudo echo -e "URL=https://PROVIDER_URL" | sudo tee -a /usr/share/desktop-webmail/webmailers.ini
    sudo echo -e "INBOX=https://PROVIDER_COMPOSE_URL%s" | sudo tee -a /usr/share/desktop-webmail/webmailers.ini
    sudo echo -e "ICON=http://PROVIDER_URL/favicon.ico" | sudo tee -a /usr/share/desktop-webmail/webmailers.ini
    echo -e "[Config]" > $HOME/.config/desktop-webmail/desktop-webmail.ini
    echo -e "remember=false" >> $HOME/.config/desktop-webmail/desktop-webmail.ini
    echo -e "default-provider=PROVIDER_NAME" >> $HOME/.config/desktop-webmail/desktop-webmail.ini
    echo -e "default-url=https://PROVIDER_COMPOSE_URL%s" >> $HOME/.config/desktop-webmail/desktop-webmail.ini
    echo -e "default-inbox=https://PROVIDER_URL" >> $HOME/.config/desktop-webmail/desktop-webmail.ini

    Configure MATE

    Here are some settings for the UI. Change them to whatever you see fit.

    # Some indicator settings
    gsettings set org.ayatana.indicator.datetime show-date true
    gsettings set org.ayatana.indicator.datetime show-day true
    gsettings set org.ayatana.indicator.session user-show-menu false
    gsettings set org.ayatana.indicator.session suppress-restart-menuitem true
    # Set the wallpaper
    gsettings set org.mate.background picture-filename "/SOME/PATH/IMAGE.jpg"
    # Set the visibility of some icons on your Desktop
    gsettings set org.mate.caja.desktop computer-icon-visible false
    gsettings set org.mate.caja.desktop home-icon-visible false
    gsettings set org.mate.caja.desktop trash-icon-visible false
    gsettings set org.mate.caja.desktop volumes-visible false
    # Set the date format of files in Caja to yyyy-MM-dd hh:mm:ss
    gsettings set org.mate.caja.preferences date-format "iso"
    # Tell Caja to use detailed lists by default
    gsettings set org.mate.caja.preferences default-folder-viewer 'list-view'
    # Enable the Delete command in Caja
    gsettings set org.mate.caja.preferences enable-delete true
    # Disable sound preview
    gsettings set org.mate.caja.preferences preview-sound 'never'
    # Show hidden files in Caja
    gsettings set org.mate.caja.preferences show-hidden-files true
    # Disable window animation effects
    gsettings set org.mate.interface enable-animations false
    # Set the order and position of window controls
    gsettings set org.mate.interface gtk-decoration-layout "menu:minimize,maximize,close"
    # Hide input-related menus
    gsettings set org.mate.interface show-input-method-menu false
    gsettings set org.mate.interface show-unicode-menu false
    # Set toolbars to display icons with text below
    gsettings set org.mate.interface toolbar-style both
    # Disable keyboard sounds
    gsettings set org.mate.Marco.general audible-bell false
    # Set the order and position of window controls
    gsettings set org.mate.Marco.general button-layout "menu:minimize,maximize,close"
    # Center new windows on screen
    gsettings set org.mate.Marco.general center-new-windows true
    # Maximise new windows (except the ones listed below)
    gsettings set org.mate.maximus exclude-class "['mate-terminal', 'galculator']"
    gsettings set org.mate.maximus no-maximize false
    # Keep maximised windows decorated
    gsettings set org.mate.maximus undecorate false
    # Disallow autorun on media insertion
    gsettings set org.mate.media-handling autorun-never true
    gsettings set org.mate.media-handling automount-open false
    # Always show notifications on the specified monitor
    gsettings set org.mate.NotificationDaemon theme "coco"
    gsettings set org.mate.NotificationDaemon monitor-number 1
    gsettings set org.mate.NotificationDaemon use-active-monitor false
    # Show this number of items in the places menu
    gsettings set org.mate.panel.menubar max-items-or-submenu 10
    # Hide the Menu Bar icon
    gsettings set org.mate.panel.menubar show-icon false
    # Set Pluma's colours to classic
    gsettings set org.mate.pluma color-scheme "classic"
    # Disable right margin in Pluma
    gsettings set org.mate.pluma display-right-margin false
    # Tell Pluma to convert tabs to spaces
    gsettings set org.mate.pluma insert-spaces true
    # Disable wrapping in Pluma
    gsettings set org.mate.pluma wrap-mode GTK_WRAP_NONE
    # Some power management
    gsettings set org.mate.power-manager action-critical-battery "suspend"
    # Disable the suspend button
    gsettings set org.mate.power-manager button-suspend "nothing"
    # Hide the systray power icon
    gsettings set org.mate.power-manager icon-policy "never"
    # Turn off monitors after specified number of seconds
    gsettings set org.mate.power-manager sleep-display-ac 3600
    # Disable screensaver
    gsettings set org.mate.screensaver mode "blank-only"
    # Disallow user switching when screen is locked
    gsettings set org.mate.screensaver user-switch-enabled false
    # Activate power saving after a certain number of minutes
    gsettings set org.mate.session idle-delay 60
    # Disable keyboard sounds
    gsettings set org.mate.sound input-feedback-sounds false
    # Set Sticky Notes to green
    gsettings set org.mate.stickynotes default-color "rgb(138,226,52)"
    # Set default Sticky Notes size
    gsettings set org.mate.stickynotes default-height 200
    gsettings set org.mate.stickynotes default-width 300

    Disable overwrite prompt for cp

    sed -i '/alias cp="cp -i".*/d' $HOME/.bashrc

    Fix Pamac's tray and indicator

    cp /etc/xdg/autostart/pamac-tray.desktop $HOME/.config/autostart
    cp /etc/xdg/autostart/pamac-tray-appindicator.desktop $HOME/.config/autostart
    echo "X-MATE-Autostart-enabled=false" >> $HOME/.config/autostart/pamac-tray.desktop
    echo "Hidden=true" >> $HOME/.config/autostart/pamac-tray.desktop
    sed -i "/OnlyShowIn.*/d" $HOME/.config/autostart/pamac-tray-appindicator.desktop
    Add your comment to this page

    Note: If you wish to report a bug, request a feature, or ask a question about an application - please do so by using the appropriate Launchpad link on the application's page.

    9 + 2 =
    Please wait, this could take a second...