Remote notebooks

jaap-karssenberg edited this page Oct 25, 2013 · 2 revisions
Clone this wiki locally

Notebooks on a share drive

When you run a notebook on e.g. a remote share drive, you may get into trouble with the notebook index. To avoid such issues, enable the "shared notebook" option either in the properties dialog, or by modifying the notebook.zim config file. This will tell zim to use the cache folder in your home drive to store the index instead (as determined by XDG_CACHE_HOME).

Remote connection by ssh

Multiple Computers and You Don't Want to Sync? Run Zim Remotely

Suppose you have a main Linux desktop computer on your desk in your office/lab, and you have a laptop you carry around with you and/or a desktop at home. If you don't want to sync, you can just work from one central file storage location.

First, make sure you have openssh-server and zim installed on the remote host. To avoid password prompts, create a an SSH key pair on the local host (from inside a terminal window):

  • ssh-keygen

Use the defaults and leave the 'passphrase' field empty. (Or learn how to use an ssh key agent.)

Install it on the remote host:

  • ssh-copy-id USER@REMOTE

Zim runs remotely, files stored remotely

Create a launcher on the local host with this command line:

  • ssh -XC USER@REMOTE zim --no-daemon

Zim runs locally and accesses remote files

Install sshfs. Use your local desktop's file manager to mount ssh://USER@REMOTE/home/USER. Or mount the remote folder from a terminal:

  • mkdir -p ~/mnt/REMOTE
  • sshfs USER@REMOTE:/home/USER ~/mnt/REMOTE

Browse into the mounted path, find your Notebook's folder, and double-click the notebook.zim file.