Labels

Friday, July 5, 2019

Build scientific environment with Termux in Chromebook

bashrc
/data/data/com.termux/files/usr/etc/bash.bashrc

open new session
ctrl alt c

to next session
ctrl alt n

download file from google drive
curl gdrive.sh | sh -s https://drive.google.com/open?id=YOUR_SHARE_ID

Google Drive client for the commandline
https://github.com/odeke-em/drive

SSH login without password
a@A:~> ssh-keygen -t rsa
a@A:~> ssh b@B mkdir -p .ssh
a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'

add user
sudo adduser mpiu --uid 999

Setting up SSH host shortnames
https://www.howtogeek.com/75007/stupid-geek-tricks-use-your-ssh-config-file-to-create-aliases-for-hosts/


/data/data/com.termux/files/usr/etc/bash.bashrc
show color for different extension
LS_COLORS=$LS_COLORS:'di=1;34:*.c=01;32:*.tex=01,31:*.py=01;35:*.c=01;32:*.pdf=0;36:'
export LS_COLORS

change font color in vim
edit in .vimrc
colo desert
syntax on

No comments:

Post a Comment