Mint

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

Mint: Mint 19 Cinnamon: Install Notes

Linux Mint 19.1 Cinnamon Install Notes
==============================================

Users/Groups
=======================
add admin - setup
add & chmod 777 /home/shares/vm
add /iso , /vm-shared
sudo -H system-config-samba

 

 

 

RDP
=======================
rdesktop -g 1920x1000 -a 16 192.168.0.101

SECURITY CAM
share
smb://WORKGROUP;username@HOSTNAMEORIPADDRESS/PATH

 

 

Tags
Subscribe to Mint