Differences between revisions 1 and 12 (spanning 11 versions)
Revision 1 as of 2017-01-30 03:29:34
Size: 939
Editor: ChengLim
Comment:
Revision 12 as of 2017-01-31 22:12:09
Size: 2187
Editor: ChengLim
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
Package installation

Terminal
commands:
'''Package installation '''
Line 18: Line 16:
'''VNC server configuration'''
Line 19: Line 18:
VNC server configuration:
Terminal commands:
* `#!/bin/sh`
* `[ -x
/etc/vnc/xstartup ] && exec /etc/vnc/xstartup`
* `
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources`
* `
xsetroot -solid grey`
* `
vncconfig -iconic & `x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & gnome-panel &
gnome-settings-daemon & metacity & nautilus &`
{{{# !/bin/sh [no spaces] [-x /etc/vnc/startup] && exec /etc/vnc/startup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & gnome-panel & gnome-settings-daemon & metacity & nautilus }}} '''Adding users'''

{{{
sudo adduser newusername
sudo usermod -aG sudo newusername
Line 28: Line 24:
== Display ==
{{{#!wiki
xxx
== Keras setup ==
Install and run Anaconda:

{{{
ls /opt/anaconda3
sudo bash [name of anaconda .sh file]

pip install theano
pip install keras
apt-get install git
Line 32: Line 35:
Home folder: Edit `keras.json` and change `tensorflow` to `theano`

Install CUDA 8 and CUDNN:

http://askubuntu.com/questions/788323/change-runlevel-on-16-04

http://askubuntu.com/questions/481414/install-nvidia-driver-instead-nouveau (top solution)

Add CUDA directory `cuda/bin` to path

Copy `cudnn.h` to cuda include directory

Copy shared libraries to cuda library

Make `.theanorc` in home directory

Set CUDA/root environment variable

Change ldconfig in cuda lib directory: `sudo ldconfig /usr/local/cuda/lib64` ''(unclear how often we have to do this -- each restart? Per user?)''

== Mount Farnsworth ==
Only needs to be done once: Will only unmount if we do so explicitly or if Agnew/Farnsworth gets rebooted (or if their network connection dies)

Install cifs-utils package: `sudo apt-get install cifs-utils` `sudo mkdir /mnt/eeg_data_analysis` (or whatever the share is named)

`sudo mount -t cifs -o username=matt //farnsworth/eeg_data/analysis /mnt/eeg_data_analysis/` (replace username with your Farnsworth username)

Setup for deep learning workstation

This page covers the steps for setting up a machine primarily intended for deep learning analyses. This is assuming Ubuntu has already been installed.

Initial setup

Package installation

openssh-server
sudo apt-get install tightvncserver
sudo apt-get install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

VNC server configuration

# !/bin/sh [no spaces]  [-x /etc/vnc/startup] && exec /etc/vnc/startup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & gnome-panel & gnome-settings-daemon & metacity & nautilus  Adding users

sudo adduser newusername
sudo usermod -aG sudo newusername

Keras setup

Install and run Anaconda:

ls /opt/anaconda3
sudo bash [name of anaconda .sh file]

pip install theano
pip install keras
apt-get install git

Home folder: Edit keras.json and change tensorflow to theano

Install CUDA 8 and CUDNN:

http://askubuntu.com/questions/788323/change-runlevel-on-16-04

http://askubuntu.com/questions/481414/install-nvidia-driver-instead-nouveau (top solution)

Add CUDA directory cuda/bin to path

Copy cudnn.h to cuda include directory

Copy shared libraries to cuda library

Make .theanorc in home directory

Set CUDA/root environment variable

Change ldconfig in cuda lib directory: sudo ldconfig /usr/local/cuda/lib64 (unclear how often we have to do this -- each restart? Per user?)

Mount Farnsworth

Only needs to be done once: Will only unmount if we do so explicitly or if Agnew/Farnsworth gets rebooted (or if their network connection dies)

Install cifs-utils package: sudo apt-get install cifs-utils sudo mkdir /mnt/eeg_data_analysis (or whatever the share is named)

sudo mount -t cifs -o username=matt //farnsworth/eeg_data/analysis /mnt/eeg_data_analysis/ (replace username with your Farnsworth username)

rapwiki: DeepLearningSetup (last edited 2018-07-17 02:17:11 by ChengLim)