Tari.in
 100% Microsoft incompatible.
Tux Kowalski Rico Skipper Private Comment Contact
Welcome Friends,

This is my little corner of the Web where I keep my bits and pieces of know-how. Some of it I've written myself, some of it I've overheard at the market, and some of it has been told to me by little voices. I hope you find something useful on these pages and pass it on to others, correct me where you think I should be corrected, and comment where you feel you need to - all that we can make Linux even better and more popular.
There are no visitor comments on this page

Post-Install Configuration (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.

Ubuntu MATE screenshot

A Few GUI Shortcuts...

While you're tweaking things in the Terminal, you might want to do some configuration through the graphical user interface.

# Software settings
software-properties-gtk

# Set up monitors
mate-display-properties

# Change keyboard layouts
mate-keyboard-properties

# Audio settings
mate-volume-control

# Set the locales
gnome-language-selector

# Show the control centre
mate-control-center

Repositories

This will enable some extra repositories

# This will add the Indicator Stickynotes repo
sudo add-apt-repository ppa:umang/indicator-stickynotes

# This will add the My Weather Indicator repo
sudo add-apt-repository ppa:atareao/atareao

# This will add the repo for Monkey's Audio, Nero AAC, Network Optix tsMuxeR, The Odio and Unity Mail
sudo add-apt-repository ppa:robert-tari/main

Update the Package List

You must do this if you have made changes to your repository lists.

sudo apt-get update

Update the Whole System

This will pull all available updates, so be patient.

sudo apt-get dist-upgrade

Popularity Contest

Help developers by allowing your system to report anonymous statistics.

sed -e 's/PARTICIPATE="no"/PARTICIPATE="yes"/' /etc/popularity-contest.conf > /tmp/popularity-contest.conf && sudo mv /tmp/popularity-contest.conf /etc/popularity-contest.conf

Install Additional Software

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

sudo apt-get install -y unity-mail aisleriot my-weather-indicator indicator-stickynotes trash-cli libav-tools gksu gnome-gmail synaptic p7zip-full cryptsetup inkscape unattended-upgrades samba gimp ubuntu-restricted-extras smplayer chromium-browser gdebi default-jre glipper pidgin-extprefs clementine cifs-utils odio tsmuxer mkvtoolnix-gui

About the SpiderOak Cloud Storage

This is something I had been using instead of Ubuntu One long before it became extinct. I needed something that worked on both Ubuntu and Debian, so I tested it, and I've been using my free 10GB happily ever since. Here are a few good reasons: SpiderOak integrates well into all systems, it has an indicator and fantastic UI with tons of great options, and your 2GB account grows by 1GB every time you refer somebody! Give it a try, you will not regret it.

# Uncomment the one you need
# ARCH="i386"
ARCH="x86_64"
cd /tmp
wget "https://spideroak.com/getbuild?platform=ubuntu&arch=$ARCH" -O spideroak.deb
sudo gdebi spideroak.deb
rm spideroak.deb

Remove Unwanted Software

These are the ones I never use - you make you own list

sudo apt-get remove --purge plank synapse hexchat thunderbird rhythmbox vlc deja-dup

Set up Automatic Updates

This will always download and install everything in the background.

echo -e 'APT::Periodic::Enable "1";\nAPT::Periodic::Update-Package-Lists "1";\nAPT::Periodic::Download-Upgradeable-Packages "1";\nAPT::Periodic::Unattended-Upgrade "1";\nAPT::Periodic::AutocleanInterval "5";\nAPT::Periodic::RandomSleep "1";' | sudo tee /etc/apt/apt.conf.d/10periodic > /dev/null && cd /etc/apt/sources.list.d && PPAs="" && for PPA in *-ubuntu-*-`lsb_release -cs`.list; do if grep -q "deb http://ppa.launchpad.net/" "$PPA"; then PPA="${PPA/-ubuntu-/-}"; PPAs="$PPAs\n\t\"LP-PPA-${PPA/-`lsb_release -cs`\.list/:\${distro_codename}}\";"; fi; done && sed -e "s@Unattended-Upgrade::Allowed-Origins {@Unattended-Upgrade::Allowed-Origins {$PPAs@" -e 's@//.*"\${distro_id}:\${distro_codename}-updates@\t"\${distro_id}:\${distro_codename}-updates@' -e 's@//.*"\${distro_id}:\${distro_codename}-backports@\t"\${distro_id}:\${distro_codename}-backports@' /etc/apt/apt.conf.d/50unattended-upgrades > /tmp/50unattended-upgrades && sudo mv /tmp/50unattended-upgrades /etc/apt/apt.conf.d/50unattended-upgrades

Favourites Menu

This recreates the favourites list shown in Caja and File Dialogs. Below is just an example, change it to your liking.

echo "file://$(xdg-user-dir DOCUMENTS) $(xdg-user-dir DOCUMENTS | cut -d "/" -f 4)" | tee "$HOME/.gtk-bookmarks"
echo "file://$(xdg-user-dir DOWNLOAD) $(xdg-user-dir DOWNLOAD | cut -d "/" -f 4)" | tee -a "$HOME/.gtk-bookmarks"
echo "file://$(xdg-user-dir MUSIC) $(xdg-user-dir MUSIC | cut -d "/" -f 4)" | tee -a "$HOME/.gtk-bookmarks"
echo "file://$(xdg-user-dir PICTURES) $(xdg-user-dir PICTURES | cut -d "/" -f 4)" | tee -a "$HOME/.gtk-bookmarks"
echo "file://$(xdg-user-dir VIDEOS) $(xdg-user-dir VIDEOS | cut -d "/" -f 4)" | tee -a "$HOME/.gtk-bookmarks"
echo "file://$HOME/FOLDER1 FOLDER1" | tee -a "$HOME/.gtk-bookmarks"
echo "file://$HOME/FOLDER2 FOLDER2" | tee -a "$HOME/.gtk-bookmarks"
echo "file:///FOLDER3 FOLDER3" | tee -a "$HOME/.gtk-bookmarks"

Configure the Web Server

This set of commands configures Apache. This is merely a bunch of examples - you will need to adjust them to suit your needs.

# Set your server name
echo "ServerName localhost" | sudo tee -a /etc/apache2/apache2.conf

# If you already have your site definitions stored, activate them
sudo cp --target-directory /etc/apache2/sites-available /SOMEPATH/default.conf /SOMEPATH/SOMESITE1.COM.LOCAL.conf /SOMEPATH/SOMESITE2.COM.LOCAL.conf ...
sudo a2ensite SOMESITE1.COM.LOCAL
sudo a2ensite SOMESITE2.COM.LOCAL
echo "127.0.1.1 SOMESITE1.COM.LOCAL" | sudo tee -a /etc/hosts > /dev/null
echo "127.0.1.1 SOMESITE2.COM.LOCAL" | sudo tee -a /etc/hosts > /dev/null

# Restart the server
sudo service apache2 restart

Configure MATE

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

# 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 home-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 "close,minimize,maximize:"

# 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 "close,minimize,maximize:"

# Center new windows on screen
gsettings set org.mate.Marco.general center-new-windows true

# Disable software compositing manager
gsettings set org.mate.Marco.general compositing-manager false

# Get green titlebar buttons
gsettings set org.mate.Marco.general theme "Ambiant-MATE"

# 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

# Disallow autorun on media insertion
gsettings set org.mate.media-handling autorun-never true
gsettings set org.mate.media-handling automount-open false

# Show this number of items in the places menu
gsettings set org.mate.panel.menubar max-items-or-submenu 10

# Always show notifications on the specified monitor
gsettings set org.mate.NotificationDaemon monitor-number 1
gsettings set org.mate.NotificationDaemon use-active-monitor 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

# Disable the suspend button
gsettings set org.mate.power-manager button-suspend "nothing"

# Always show power icon
gsettings set org.mate.power-manager icon-policy "always"

# 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

# Set window manager
gsettings set org.mate.session.required-components windowmanager "marco-compton"

# Disable keyboard sounds
gsettings set org.mate.sound input-feedback-sounds false

Mono icon set tweaks

This preserves a consistent "Ubuntu look" in the Notification/Indicator area.

mkdir -p "$HOME/.icons/ubuntu-mono-dark/status/24"
mkdir -p "$HOME/.icons/Ambiant-MATE/status/24"

# Keyboard/mouse battery
ln -sf "/usr/share/icons/ubuntu-mono-dark/status/24/gpm-keyboard-060.svg" "$HOME/.icons/ubuntu-mono-dark/status/24/gpm-ac-adapter.svg"
ln -sf "/usr/share/icons/ubuntu-mono-dark/status/24/gpm-keyboard-060.svg" "$HOME/.icons/Ambiant-MATE/status/24/gpm-ac-adapter.svg"

# Clementine
mkdir -p "$HOME/.config/Clementine/customiconset/icons/22x22"
mkdir -p "$HOME/.config/Clementine/customiconset/icons/32x32"
mkdir -p "$HOME/.config/Clementine/customiconset/icons/48x48"
ln -sf "/usr/share/icons/ubuntu-mono-$THEME/apps/24/clementine-panel-grey.png" "$HOME/.config/Clementine/customiconset/icons/22x22/clementine-panel-grey.png"
ln -sf "/usr/share/icons/ubuntu-mono-$THEME/apps/24/clementine-panel.png" "$HOME/.config/Clementine/customiconset/icons/22x22/clementine-panel.png"
ln -sf "/usr/share/icons/ubuntu-mono-$THEME/apps/24/clementine-panel-grey.png" "$HOME/.config/Clementine/customiconset/icons/32x32/clementine-panel-grey.png"
ln -sf "/usr/share/icons/ubuntu-mono-$THEME/apps/24/clementine-panel.png" "$HOME/.config/Clementine/customiconset/icons/32x32/clementine-panel.png"
ln -sf "/usr/share/icons/ubuntu-mono-$THEME/apps/24/clementine-panel-grey.png" "$HOME/.config/Clementine/customiconset/icons/48x48/clementine-panel-grey.png"
ln -sf "/usr/share/icons/ubuntu-mono-$THEME/apps/24/clementine-panel.png" "$HOME/.config/Clementine/customiconset/icons/48x48/clementine-panel.png"

Marco + Compton configuration

This will give you hardware accelerated window shadows and fading. You can change the numbers if you don't like what you see.

cat > "$HOME/.config/marco-compton.conf" << EOL
backend = "glx"
vsync = "opengl-swc";
detect-rounded-corners = true;
paint-on-overlay = true;
glx-no-stencil = true;
glx-swap-method = "undefined";
unredir-if-possible = true;
inactive-opacity-override = true;
mark-wmwin-focused = true;
shadow = true;
shadow-radius = 6;
shadow-offset-x = -6;
shadow-offset-y = -6;
shadow-opacity = 0.7;
no-dnd-shadow = true;
shadow-exclude = ["window_type='tooltip'", "window_type='notify'", "! name~=''", "name='Notification'", "name='Plank'", "name='Docky'", "name='Kupfer'", "name*='compton'", "class_g='Conky'", "class_g='Kupfer'", "class_g='Synapse'", "class_g?='Notify-osd'", "class_g?='Cairo-dock'", "class_g='Cairo-clock'", "_GTK_FRAME_EXTENTS@:c"];
xinerama-shadow-crop = true;
fading = true;
fade-delta = 4;
fade-in-step = 0.03;
fade-out-step = 0.03;
EOL

Tidy up your SpiderOak

This removes all incremental backups, leaving only the latest version of your cloud backups - thus freeing up space.

SpiderOakONE --purge-historical-versions all
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.

Name
Comment
Prove you're human
6 + 2 =
Please wait, this could take a second...