An open API service indexing awesome lists of open source software.

https://github.com/axect/hep-cosmo

Administrate HEP-COSMO server
https://github.com/axect/hep-cosmo

Last synced: 21 days ago
JSON representation

Administrate HEP-COSMO server

Awesome Lists containing this project

README

          

# HEP-COSMO Server Administrate

## 1. Admin
### - Mathematica

The license file of Mathematica is in `/home/probe/.Mathematica`
Thus if an user wants to use, then
```bash
sudo cp -r /home/probe/.Mathematica /home/[user]/
```

### - Fail2Ban

Administer can unban ip
```bash
fail2ban-client set sshd unbanip [ip Adress]
```

## 2. User
### - Python
If any user want to install python package, then should use virtualenv.

```bash
cd ~

# Default : python2
virtualenv [envname]
# If you want to use python3 then
virtualenv -p python3 [envname]

# Activate
. [envname]/bin/activate

# Install Package
pip install [package]

# Deactivate
deactivate
```

### - Print

```bash
# In your Nexus account (connected by ssh)
lpr -o [options] [filename]
```

For example,

```bash
# Example - Print 1 - 10 pages with two sided long edge of blabla.pdf
lpr -o page-ranges=1-10 -o sides=two-sided-long-edge blabla.pdf
```

### - SSH Proxy

* Edit or make `~/.ssh/config`

* e.g. Hive :

```config
Host Hive
HostName [IP_NUM]
User [User_Name]
ProxyCommand ssh -W [IP_NUM]:22 [User_Name_2]@nexus.yonsei.ac.kr
```

* `[IP_NUM]` is internal ip number. Now (2018/5/28: Hive is located at **192.168.1.3** permanently)
* `[User_Name]` is your user name in Hive
* `[User_Name_2]` is your user name in nexus

```sh
ssh [Host]
```

### - SSH Port forwarding

```sh
ssh -N -f -L localhost:[Port_Num]:localhost:[Port_Num] [User_Name]@[Host]
```

* `[Port_Num]` is port number which you want to use. (e.g. 8123)
* `[Host]` is host name of server (e.g. `nexus.yonsei.ac.kr` or `Hive`)
* `[User_Name]` is your user name of server

### - Tensorflow (GPU Version)

```sh
nvidia-docker run --name [Container_Name] -it -p [Port_Num]:8888 tensorflow/tensorflow:latest-gpu
```

* `[Container_Name]` will be name of your container. Write your preference.
* `[Port_Num]` should be 4 digits (Do not use 8888)
* If you finish your calculation, then plz shutdown jupyter server

### - R Server

```sh
# In your Laptop or Desktop
# You should make .ssh/config file (I wrote it above)
ssh -N -f -L localhost:8787:localhost:8787 [Your_Hive_Account]@Hive
```

Then connect [R Server](localhost:8787) in your browser. And sign in your hive accounts. Finish!

## Port List

* dkang: 7570 ~ 7579
* ban94gy: 3270 ~ 3279
* axect: 8400 ~ 8409
* dycheong: 5340 ~ 5349