Linux: apt upgrade results in gconf2 errors

Update after initial Mint 19.1 install resulting in gconf2 errors

Update repo info

sudo apt update

Upgrade packages

sudo apt upgrade

then get gconf2 errors

So Configure dpkg....

sudo dpkg --configure -a
sudo apt upgrade
sudo apt-get install -f

Enable SSH if needed

sudo apt-get install openssh-server
sudo systemctl is-enabled ssh
sudo systemctl is-active ssh

or in one line

sudo apt-get install openssh-server && sudo systemctl is-enabled ssh && sudo systemctl is-active ssh


Clean up repos

sudo apt upgrade

sudo apt-get clean

 

 

Linux: Ubuntu 18.04.3 Change hostname ( for SAMBA, etc )

https://linuxize.com/post/how-to-change-hostname-on-ubuntu-18-04/

hostnamectl

hostnamectl
bamboo

sudo hostnamectl set-hostname jira
hostnamectl
jira

hosts

sudo cp /etc/hosts /etc/hosts.bak
sudo nano /etc/hosts
127.0.1.1 bamboo

127.0.0.1 jira


EDIT cloud.cfg ( if cloud-init installed )

ls -l /etc/cloud/cloud.cfg

setup@bamboo:~$ ls -la /etc/cloud/cloud.cfg
-rw-r--r-- 1 root root 3612 May 11  2019 /etc/cloud/cloud.cfg


Search for preserve_hostname and change the value from false to true:

sudo nano /etc/cloud/cloud.cfg
# This will cause the set+update hostname module to not operate (if true)
preserve_hostname: false

# This will cause the set+update hostname module to not operate (if true)
preserve_hostname: true

Bash: date command

`date +"%y%m%d"`.tgz

$ echo `date +"%y%m%d"`.tgz
191125.tgz

$ echo `date +"%Y%m%d"`.tgz
20191125.tgz


$ date --help
Usage: date [OPTION]...
Tags
Subscribe to