Change terminal tab color in Ubuntu 18.04

I am exactly looking for the same as these guys:

How to make selected tab in terminal more prominent
Customizing terminal tab color in Ubuntu 17.10

They use this file:


But I can’t find it in my Kubuntu 18.04

Is there any new solution for 18.04 ?


Go to Source
Author: user204415

Postgresql: can’t start service database system was shut down

I install Postgresql using

sudo apt install postgresql postgresql-contrib

then I run

sudo systemctl restart postgresql

then I run

sudo systemctl status postgresql

It says

Active: active (exited) since ... 1s ago

So it looks like the restart command exits immediately.

the /var/log/postgresql/postgresql-12-main.log says:

2020-08-13 23:58:39.553 MSK [47081] LOG:  received fast shutdown request
2020-08-13 23:58:39.607 MSK [47081] LOG:  aborting any active transactions
2020-08-13 23:58:39.613 MSK [47081] LOG:  background worker "logical replication launcher" (PID 47088) exited with exit code 1
2020-08-13 23:58:39.613 MSK [47083] LOG:  shutting down
2020-08-13 23:58:39.888 MSK [47081] LOG:  database system is shut down
2020-08-13 23:58:40.246 MSK [47200] LOG:  starting PostgreSQL 12.2 (Ubuntu 12.2-4) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-8ubuntu1) 9.3.0, 64-bit
2020-08-13 23:58:40.247 MSK [47200] LOG:  listening on IPv4 address "", port 5432
2020-08-13 23:58:40.293 MSK [47200] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-08-13 23:58:40.470 MSK [47201] LOG:  database system was shut down at 2020-08-13 23:58:39 MSK
2020-08-13 23:58:40.508 MSK [47200] LOG:  database system is ready to accept connections


set -e

# Provides:     postgresql
# Required-Start:   $local_fs $remote_fs $network $time
# Required-Stop:    $local_fs $remote_fs $network $time
# Should-Start:     $syslog
# Should-Stop:      $syslog
# Default-Start:    2 3 4 5
# Default-Stop:     0 1 6
# Short-Description:    PostgreSQL RDBMS server

# Setting environment variables for the postmaster here does not work; please
# set them in /etc/postgresql/<version>/<cluster>/environment instead.

[ -r /usr/share/postgresql-common/init.d-functions ] || exit 0

. /usr/share/postgresql-common/init.d-functions

# versions can be specified explicitly
if [ -n "$2" ]; then
    versions="$2 $3 $4 $5 $6 $7 $8 $9"

case "$1" in
        if [ "$1" = "start" ]; then
    if [ -z "`pg_lsclusters -h`" ]; then
        log_warning_msg 'No PostgreSQL clusters exist; see "man pg_createcluster"'
        exit 0
    for v in $versions; do
        $1 $v || EXIT=$?
    exit ${EXIT:-0}
    LS=`pg_lsclusters -h`
    # no clusters -> unknown status
    [ -n "$LS" ] || exit 4
    echo "$LS" | awk 'BEGIN {rc=0} {if (match($4, "down")) rc=3; printf ("%s/%s (port %s): %sn", $1, $2, $3, $4)}; END {exit rc}'
    for v in $versions; do
        reload $v
        echo "Usage: $0 {start|stop|restart|reload|force-reload|status} [version ..]"
        exit 1

exit 0

How do I fix it?

PS: The problem I’m having is that Postgresql wont’ start. After the restart command its status should be active (running) while it is active (exited).

Go to Source
Author: parsecer

Kubuntu 18: Dolphin as FTP

When editing code online, I use Dolphin for FTP. I can double-click and the file opens in my editor, no problem. When I save in the editor, it uploads the changes. It’s ideal.

Right now, the double-clicked file just comes down to a random temp location, and since I have many files that are similarly named, it gets confusing in a hurry. Is it possible to control the location where the file is downloaded when operating in that way?

Go to Source
Author: Bill in Kansas City

How can I install more than one Desktop Environment in my Ubuntu without damaging the system?

How can I install more than one Desktop Environment in my Ubuntu without damaging the system? I want just to try those desktop. I know I can install them by sudo apt install kubuntu/xubuntu/lubuntu-desktop . But it will remove my existing Desktop Environment, right? I want that whenever I want to change the Desktop Environment, I will log out and log in to that. Is it possible to do that? Don’t say to download ISO image of Kubuntu, Xubuntu, Lubuntu as I want to see them in my current installation.

Go to Source
Author: Akib Azmain