Network resources

How to add guest user on my virtual server?

Add a guest
Guest login name should be easy to identify and no space or special characters. 
ie. John Foo = john.foo
$ sudo useradd john.foo

Add guest password
$ sudo passwd john.foo
  Make a strong passwd for your guest and ask your guest  to call you for passwd.

Add guest to sshfs mounting group
$ sudo usermod -a -G fuse john.foo

Delete guest users account and all of their files
$ sudo userdel john.foo

FAQ Category

SSH without a password. Setup SSH Keys on a Linux / Unix System.

On you local Mac/Linux laptop/workstation do:
$ mkdir .ssh
$ ssh-keygen -t rsa -b 4096 -f .ssh/mykeys
It will generate 2 files:  mykeys   and    mykeys.pub inside the .ssh folder.
Use ' ssh-copy-id' command' to copy the keys to our Virtual server.

Notes: Mac OSX does not have' ssh-copy-id' command. 
Download here:  https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh

$ sudo curl https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-id
$ sudo chmod +x /usr/local/bin/ssh-copy-id

Now you can copy the newly generated key to Virtual server. (Replace 'stty2u' with your users login name)
$ /usr/local/bin/ssh-copy-id -i .ssh/mykeys stty2u@rcloud.stat.ubc.ca

Add your key to your laptop/workstation.
$ssh-add .ssh/mykeys

Test it
$ssh stty2u@rcloud.stat.ubc.ca

You should not be asked for password.
FAQ Category

How to mount/unmount StatNet home directory using sshfs?

We use "sshfs" to mount your StatNet home directory securely.
For your convenient, we created a sshfs script in "/usr/local/bin/statfiles".
For usage, type 'statfiles' at the command line terminal.

Notes: If you are running batch jobs, you should mount and unmount statfiles manually.
A) To manually Mount:
$statfiles mount
$cd statfiles

B) To manually  unmount
$cd
$statfiles unmount


Howto  Use "sshfs" to mount your StatNet home storage automatically
1) Edit .bash_profile and remove these hashes, using vim or emacs.
   $ emacs .bash_profile
        ...
        statfiles mount
        sync
        cd statfiles
       ...
2) To unmount statfiles after logout
Edit .bash_login and remove these hashes
   $ emacs .bash_logout
        ...
        cd ~
        sync
        /usr/local/bin/statfiles unmount
       ...
3)Logout and Login your VM again.
   You need to supply your StatNet passwd twice.  One for your VM and one for your StatNet Home directory to mount.
4) Confirm your StatNet location
   $ pwd
   $ ls
5) Now you can start running your code.
   $ program your_code here.

Do not save anything important on your local VM disk since it has limited snapshot and backup.
Your local VM files is saved for 7 days and every hours.

FAQ Category

How do I access my virtual server?

1) Using Ssh
Windows
SSHSecureShell https://owncloud.stat.ubc.ca/index.php/s/JDRoPRAeWrUHIZH
or Putty
http://www.chiark.greenend.org.uk/~sgtatham/putty/

Mac/Linux
Open a Terminal and type
ssh stat.ubc.ca -l {your login name without these parentheses}

Save your working data on
/usr/local/data/username

If you don't have the data folder ready, Email our IT help group

2) Using screen and Xpra
/Computing/FAQ/Answer/faq.php?faq=798&category=23

FAQ Category

What is my VM specs and softwares and how do I use it?

I) Virtual server specs:
RHEL6 64 bit OS.
initially has min 4 CPUs, 8Gb of RAM and
40Gb NFS mount of storage with 7 days local disk snapshot only.
You should use StatNet home directory as your main storage for better backup.
At anytime your project needs to have more CPU/Ram, email help at stat with brief
a explanation of why you need more resources.

Host: v{your_login_name}.stat.ubc.ca

Login/Passwd are the same as your StatNet
After you login, your VM will NOT mount your StatNet Home directory.
This is because we want you to understand how sshfs mounting work.
We created a sshfs script in "/usr/local/bin/statfiles"

II) Software installed:
 Matlab
 Maple
 Atlas
 Sage
 Octave
 Blas
 Lapack
 Numpy
 R statistics
 Spicy
 Xppaut
 Xrpa/Screen for running app nohup remotely.
 Opensource development tools

Screen
http://www.gnu.org/software/screen/
Xpra
http://xpra.org/
http://winswitch.org/
 

FAQ Category

How can I access the AMS MathSciNet publication database from home/off-campus?

From within the campus, the AMS MathSciNet publication database can be accessed directly at

http://www.ams.org/mathscinet/

Due to the fact that this database is a paid service via a subscription fee, direct access is only available from campus networks. However you can access MathSciNet from off-campus (e.g. ADSL connection from home) by proxying your request through the UBC Library system. You must have a valid library card to validate your request. The instructions on how to accomplish this are here:

http://www.library.ubc.ca/home/proxyinfo/proxyhelp.html

FAQ Category