# Desktop Wallet

### **LINUX**

1\. Install dependencies\
DEBIAN:\
&#x20;`sudo apt-get install python`\
&#x20;`sudo apt-get install golang`\
&#x20;`sudo apt-get install git`\
&#x20;`sudo apt-get install make`

*<mark style="color:green;">Continue with 2., the git-clone and go run commands are the same for Debian and Arch.</mark>*

*<mark style="color:green;">Your python version might vary due to your computers architecture. Mind your terminals output.</mark>*

\
ARCH:\
`sudo pacman -S python go git make`\
\
2\. Clone from GitHub and run the client. Three commands:\
`git clone https://github.com/ness-network/ness`\
\
`cd ness`\
\
`sudo go run cmd/privateness/privateness.go -disable-pex -log-level=debug -launch-browser=true -enable-all-api-sets=true -gui-dir="ness/src/gui/static/" -enable-gui=true`\
\
3\. A new browser tab opens with a Skycoin wallet tab. Create a wallet or enter your seed phrase. Done!\
If it doesn't, open it manually in your browser: [`http://127.0.0.1:6660/#/wallets`](http://127.0.0.1:6660/#/wallets)

### **WINDOWS**

1\. Install dependencies\
GoLang: <https://go.dev/dl>\
Cmake: <https://cmake.org/download>\
GitHub: [https://git-scm.com<br>](https://git-scm.com/)\
After GitHub Installation is done, set up a user by typing  **`git init`**   in the shell that has opened. Then close the shell.\
For reference, read the process in detail here: <https://golangdocs.com/install-go-windows>\
\
2\. Open a new GIT CMD terminal via your start menu. Type the following commands:\
\
`git clone https://github.com/ness-network/ness`\
\
`cd ness/`\
\
`go run cmd/privateness/privateness.go -disable-pex -log-level=debug -launch-browser=true -enable-all-api-sets=true -gui-dir="ness/src/gui/static/" -enable-gui=true`\
\
3\. A new browser tab opens with a Skycoin wallet tab. Create a wallet or enter your seed phrase.\
If it doesn't, open it manually in your browser: `http://127.0.0.1:6660/#/wallets`

## Troubleshooting: Go version outdated on 3B+

If you hit a brick wall installing `privatness`, you might have run afoul with the Go version installed on your 3B+ using `sudo apt install golang`, don't worry. [This comprehensive guide](https://www.e-tinkers.com/2019/06/better-way-to-install-golang-go-on-raspberry-pi/) (from 2019) shows you how to install the latest GoLang manually as the latest version. Respectfully I mirror and update this guide:

### Installing the latest GoLang on your Raspberry 3B+

*<mark style="color:green;">\[January 2022 update]</mark>* The current stable version available at [Golang official website](https://golang.org/dl/) is **v1.17.6**, and there is a distribution packaged for ARMv6 CPU available that is suitable for Raspberry Pi 3 (and some earlier models). Right click on the link that has **armv6l** on it to copy the link url, and type `wget` on Raspberry Pi terminal and paste the link to download the golang:\ <img src="https://3618766406-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2jO9IzyAVKPfOCFzi1gi%2Fuploads%2F2718RNKwMCQ9OXfgsUFy%2Fgolang%20install%201.png?alt=media&#x26;token=bb006c17-1f4d-4302-9d33-db5707ed05d9" alt="" data-size="original">

```
wget https://go.dev/dl/go1.17.6.linux-armv6l.tar.gz
```

Decompress the downloaded package and move it to `/usr/local` directory:

```
sudo tar -C /usr/local -xzf go1.17.6.linux-armv6l.tar.gz
rm go1.17.6.linux-armv6l.tar.gz
```

We now need to add the PATH environment variable that are required for the system to recongize where the Golang is installed. To do that, edit the `~/.profile` file:

```
nano ~/.profile
```

Scroll all the way down to the end of the file and add the following:

```
PATH=$PATH:/usr/local/go/bin
GOPATH=$HOME/golang
```

I’m going to store my Golang projects at the `~/golang` directory, if you like to store it somewhere else or want to have the directory named `go` instead of `golang`, feel free to change the `GOPATH=$HOME/golang` to something else. Finally we need to make the system aware of the new profile.

```
source ~/.profile
```

Type `which go` to find out where the Golang installed and `go version` to see the installed version and platform.

```
user@3bplus:~ $ which go
/usr/local/go/bin/go
user@3bplus:~ $ go version
go version go1.17.6 linux/arm
```

Golang organizes its code files based on a pre-defined [code organization](https://golang.org/doc/code.html#Organization) structure. So let’s create the project directories:

```
mkdir golang
mkdir golang/src
```

It’s all done, and ready to write the first Go programming.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://privateness-network.gitbook.io/privateness-network/desktop-wallet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
