create apt with custom proxy
~: sudo vim /etc/apt/apt.conf
or
~: sudo vim /etc/apt/apt.conf.d/myproxy.conf
Acquire{
HTTP::Proxy "http://192.168.20.100:1337";
HTTPS::Proxy "https://192.168.20.100:1337";
}
Acquire::HTTP::Proxy "http://192.168.20.100:1337";
Acquire::HTTPS::Proxy "https://192.168.20.100:1337";
Acquire::HTTP::Proxy "http://artemis:passw0rd@192.168.20.100:8080";
Acquire::HTTPS::Proxy "https://artemis:passw0rd@192.168.20.100:8080";
~: hostname
neko
~: hostnamectl
static hostname : neko
icon name : com-vm
Chassis : vm
Machine ID : c35ccd9a7f9a4743
Boot ID : b50321d91b89f924
Virtualization : oracle
Operating System : Ubuntu 23.2.2 LTS
Krenel : Linux 5.4.0.52-generic
Architecture : x86_64
in my case im gonna set new hostnam for my vm (No need to rebot)
~: hostnamectl set-hostname Artemis
~: hostnamectl set-hostname E-Artemis --pretty
~: hostnmectl
static hostname : Artemis or E-Artemis
icon name : com-vm
Chassis : vm
Machine ID : c35ccd9a7f9a4743
Boot ID : b50321d91b89f924
Virtualization : oracle
Operating System : Ubuntu 23.2.2 LTS
Krenel : Linux 5.4.0.52-generic
Architecture : x86_64
Or you can change with file (Require reboot)
~: sudo vim /etc/hostname
Artemis
~: sudo vim /etc/hosts
Artemis