A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Showing posts with label setup. Show all posts
Showing posts with label setup. Show all posts

Set up Joplin

## Install

Install node 12+

Then:
```
NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin

sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin
```


## Configure

```
joplin help config
joplin config sync.target 7 # dropbox
joplin sync # then follow instructions
```

Ubuntu Linux setup basics

For username "foo":

$ adduser foo

$ passwd foo

$ sudo usermod -aG sudo foo

mkdir -p /home/foo/.ssh

$ cat the_public_key.pem >> /home/foo/.ssh/authorized_keys

chown -R foo:foo /home/foo/.ssh

$ chmod 700 /home/foo/.ssh

$ chmod 600 /home/foo/.ssh/authorized_keys
Disable default account:
$ usermod -s /usr/sbin/nologin default_username

Notes:
  • Not useradd.
  • Even when logging in with just SSH key, user must have a password. It will only be used for sudo commands.

Sudoers basics