116 bytes added ,  31 August 2023
m
no edit summary
No edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:


# To '''permanently''' change the computer name<br>Edit <code>/etc/hostname</code> and <code>/etc/hosts</code>
# To '''permanently''' change the computer name<br>Edit <code>/etc/hostname</code> and <code>/etc/hosts</code>
# Restart hostname service <source lang="bash">
# Restart hostname service <syntaxhighlight lang="bash">
$ systemctl restart systemd-logind.service
$ systemctl restart systemd-logind.service
</source>
</syntaxhighlight>
# Use ''hostnamectl'' with ''set-hostname'' flag. <source lang="bash">
# Use ''hostnamectl'' with ''set-hostname'' flag. <syntaxhighlight lang="bash">
$ hostnamectl set-hostname NEW_NAME_HERE
$ hostnamectl set-hostname NEW_NAME_HERE
</source>
</syntaxhighlight>




= Snap (package manager) =
= Version specific =


{{testedon|2022-02-06|Ubuntu 20.04}}
* Ubuntu 22.04 LTS
 
**[https://linuxconfig.org/how-to-setup-sftp-server-on-ubuntu-22-04-jammy-jellyfish-linux How to setup SFTP server on Ubuntu 22.04]
<source lang="">
</source>