# Install GogoCarto on Debian 10 Buster from scratch
## Server initial setup
We are assuming the machine will be named **gogocarto**, and the related domain **gogocarto.fr**, your ip v4 **100.101.102.103** and ip v6 **acab:acab:acab:acab::2**
DNS config : if you plan to use GogoCarto for multiples maps on subdomains as SAAS, don't forget to create a wildcard `*` A and AAAA entries so that every subdomains points to the right server
Use Debian 10 Buster minimal iso for server install
login as root and update system
```bash
apt update && apt upgrade -y
```
Change hostname for gogocarto
`hostnamectl set-hostname gogocarto`
Edit /etc/hosts file and change hostname to gogocarto :
`vi /etc/hosts`
```bash
# nameserver config
# IPv4
127.0.0.1 localhost.localdomain localhost
100.101.102.103 gogocarto gogocarto.fr
#
# IPv6
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
acab:acab:acab:acab::2 gogocarto gogocarto.fr
```
## Better security
Create admin user in sudo group and add your public key in /home/admin/.ssh/authorized_keys
```bash
apt install sudo
adduser admin
usermod -aGsudo admin
sudo-u admin vi /home/admin/.ssh/authorized_keys #add your key
```
Create gogocarto user (without special permissions)
```bash
adduser gogocarto
```
Allow gogocarto to stop/start cron (when deploying) : Add following to the end of /etc/sudoers