For things I did learn in kindergarden consult Robert Fulghum's book
# Download
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
# Run and follow instructions on screen
bash Miniconda3-latest-Linux-x86_64.sh
~/.bashrc
configuring your baseline shell (all commands here get execute when opening a new window or after typing bash
)~/.ssh/config
configuring your ssh connection~/.ssh/config
to include (as example connection to lxplus)
Host lxplus*
HostName lxplus7.cern.ch
User <your-user-name>
ForwardX11 yes
ForwardAgent yes
ForwardX11Trusted yes
Host *_f
RemoteForward 52572 127.0.0.1:52572
ExitOnForwardFailure yes
ssh lxplus
ssh lxplus_f
rmate
while in your conda env -> pip install rmate
~/.rmate.rc
and enter the following:
port: 52572
rmate dummy_file.py
will open a new file called "dummy_file.py" in your local editor window, which gets synced automatically to the remote. The connection will obviously get interrupted if your ssh connection gets interrupted~/.ssh/config
again to include one new line
Host lxplus*
HostName lxplus7.cern.ch
User <your-user-name>
ForwardX11 yes
ForwardAgent yes
ForwardX11Trusted yes
Host *_f
LocalForward localhost:8800 localhost:8800
ExitOnForwardFailure yes
ssh lxplus_f
which uses the above configpip install jupyter
~/.bashrc
for convenience
alias jup="jupyter notebook --ip=127.0.0.1 --port 8800 --no-browser"
screen
such that it doesn't die if you get disconnected and you can still use the terminaljup
in your terminal will start a notebook print bunch of stuff including a link looking like this, which you can open in your local browser to view the remote notebook or http://127.0.0.1:8800/?token=e36d18232a77b59af020ea09c76f495bde
~/.ssh/config
on the first remote with the same forward option as your local machine.~/.ssh/config
such as:Host *_f2
LocalForward localhost:8801 localhost:8801
RemoteForward 52573 127.0.0.1:52573
ExitOnForwardFailure yes
jup
alias in ~/.bashrc
and the port number in ~/rmate.rc
https
or SSH
.https
git push
will require typing your username
and passwoord
SSH
~/.bashrc
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa # or replace id_rsa with whatever you named your key
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing