A desktop machine will make it easier for you to manage your Duniter instance thanks to a graphical interface.
Your instance will be up as long as you keep your computer and Duniter software on. If you close your software or shut down your computer, Duniter will be able to resync with the network when you restart it.
> Once you are done with the installation, you can follow [the desktop user's guide](https://forum.duniter.org/t/duniter-desktop-guide/902) to understand how to use Duniter.
## GNU/Linux
### Ubuntu 64 bits
1. Go to the [releases page](https://github.com/duniter/duniter/releases) and choose the latest build. You have to download the file with `.deb` extension.
1. Go to the [releases page](https://github.com/duniter/duniter/releases) and choose the latest build. You have to download the file with `.deb` extension.
2. Process the installation by opening the file with `GDebi` (or with `dpkg` software if you prefer to use it).
The software will be installed on path `/home/[user]/.duniter/`. To launch it, go this folder and launch:
```bash
./nw/nw
```
The graphical interface should now show up.
## Windows
1. Go to the [releases page](https://github.com/duniter/duniter/releases) and choose the latest build. You have to download the file with `.exe` extension.
2. Process the installation by a double-click on the downloaded `.exe` file.
4. Duniter is now installed, by default it will be launched at the end of the installation. You can launch it in the Windows menus "Start > Programs > Duniter > Duniter".
> It may occur that the downloaded file misses the `.exe` extension. This is a Windows protection. You have to circumvent it by renaming the file and add `.exe` to the end of the name to be able to execute it.
## MacOS
> Coming soon.
> Meanwhile, you can try the [Linux/Other distributions] section which will probably work. Please contact us on [our forum](https://forum.duniter.org) if you have any difficulty or succeed with this procedure, we lack a Mac user for testing.
# Server
For the most advanced users, a server install allows you to have a node up 100% of the time since a server is made to run forever.
You will control your instance using *command line tools*, but if you want you could also access the graphical interface using a web browser. Note how this is an even more advanced usage and requires security skills for not opening an admin access to your node.
> Once you are done with the installation, you can follow [the command line user's guide](https://forum.duniter.org/t/duniter-command-line-guide/903) to understand how to use Duniter.
## GNU/Linux
### Ubuntu/Debian package (64 bits)
1. Go to the [releases page](https://github.com/duniter/duniter/releases) and choose the latest build. You have to download the file with `.deb` extension.
2. Process the installation by launching `dpkg -i` on the downloaded file. This requires root credentials.
```bash
dpkg -i[downloaded_file_name].deb
```
3. Launch the daemon with:
```bash
duniter start
```
If you want to launch the node with the administration web interface:
```bash
duniter webstart
```
### YunoHost
A [YunoHost package](https://github.com/duniter/duniter_ynh) is available.
### Other distributions (64 bits)
1. Go to the [releases page](https://github.com/duniter/duniter/releases) and choose the latest build. Download the file with `.tar.gz` extension.
2. Extract the tarball: `tar zxvf duniter-*.tar.gz`.
3. Run it with `./nw/nw`.
### Automated install script
Duniter can be easily installed on most Linux machines (either 32bits or 64bits) using the following command:
> **Do not launch this command as root.** [It won't work, we know it](https://github.com/duniter/duniter/issues/412).
>2 lines will be added to your shell init script to make `duniter` command available for your user.
### Docker
A [Docker installation guide](https://github.com/duniter/duniter/blob/master/docker/README.md) is available.
### NPM
You can use Node Package Manager to install Duniter. This an equivalent method to "build from source". To process, use the following commands (**requires Node.js >= 5.9.1**):
> **Do not launch this command as root.** [It won't work, we know it](https://github.com/duniter/duniter/issues/412).
```bash
git clone https://github.com/duniter/duniter
cd duniter
npm install
```
You can check installed version by using:
```bash
./duniter.sh --version
0.20.x
```
You can launch Duniter using:
```bash
export DEV_MODE=true
./duniter.sh start
```
## Windows
Their is no difference with the [Windows Desktop](#windows) installation. A server usage with Windows is just a never shut down desktop for Duniter.
If you already have a Duniter node up & running, then you might want to update it to have the latest bug fixes and evolutions. This guide is here to help you out for processing the update.
# Updating
Updating your instance is essentially equivalent to stopping your node and repeat the installation process. The existing installation just gets overriden.
So, to update you have to:
* stop your node (check the [desktop](https://forum.duniter.org/t/duniter-desktop-guide/902) or [command line](https://forum.duniter.org/t/duniter-command-line-guide/903) user's guide to know how do to it)
* follow the [installation](https://github.com/duniter/duniter/blob/master/doc/install-a-node.md) guide to update your node