Windows
Overview
This computer has been up and running for some time. I intend on documenting new applications that I add for development but also to back-document features and applications I use regularly.
Connecting to a remote server
PuTTY for remote connection
PuTTy has been around for a long time and still works wonderfully and is regularly maintained. PuTTY is used by Windows machines to connect to OpenSSH servers.
Here, I will only document actions needed to connect to a new Linux development server.
Generate a key pair
Generating a key pair and securely connecting to a remote Linux machine.
- Start PuTTYgen
- Change the Number of bits in a generated key to 2048.
- Click Generate to generate a new key pair.
- Add a password to the Key passphrase and Confirm passphrase. If you choose to not have a password, then do not enter these here.
- Save your public and private keys. The private key should not be shared but the public key may be freely shared.
- On the target Linux computer,
mkdir ~/.ssh
nano ~/.ssh/authorized_keys
.
- Copy the public key from the Windows PuTTYgen box and paste it into the authorized_keys file on your target. Save the file.
- Close PuTTYgen.
- Open PuTTY.
- Save a new session named target and put ip_address in the Host Name box.
- From the configuration Category pane, select Connection > SSH > Auth.
- Browse to select the private key you created earlier for authentication.
- Save the session.
- Test by clicking Open.
- You should be required to enter in the username to log in with and also the password used to protect the key.
TigerVNC for remote desktop
TigerVNC is used to connect to a desktop on a remote Linux server.
Install TigerVNC and connect
Download a vncviewer binary for Windows. The name of the file is likely vncviewer-ver.exe. Download the file to a location of your choice (I use C:\bin). Create a shortcut on the desktop and click to start the viewer.
See the above figure. In the VNC server box enter the ip address of the server to connect to follwed by :1, where 1 is the number of the desktop you started on the server. Click Connect and enter your password when requested.
Cannot connect?
If you are having trouble connecting, check the following:
- Make certain that Xtigervnc is listening on the 0.0.0.0:590x interface.
- Verify that you entered the correct ip address and port number into the vncviewer.
- Check your firewalls.
- On Windows, temporarily turn off the firewall and try to connect again.
- On Linux,
sudo ufw status
shows if the fire wall is active. If it is, temporarily disable it usingsudo ufw disable
and try to connect again. - If the problem is a firewall, correct the issue and move on. Firewalls are not yet part of this documentation.
Connecting to JupyterHub
Simply point your browser to the ip address of your server and append the port being served. The default port for JupyterHub is 8000, my JupyterHub.
Windows development environment
Most of these tools are already installed and working. Also, they are mostly simple and direct Windows installations. I will not be giving details on installation unless there is something unusual about the install.
My Windows tools
- Anaconda 3
- Python
- RStudio
- Julia
- Atom
- Juno
- VS Code
- Android Studio
- IntelliJ
- Octave
- MatLab
- Git
- VirtualBox
- TexMaker