How to using vimwiki with ssh on a nextcloud raspi server?

75 views
Skip to first unread message

Stefan Pfister

unread,
Jul 11, 2019, 4:06:57 AM7/11/19
to vimwiki
How can I expand my raspi which acts as a nextcloud server at home? I want to use vim with vimwiki in a shell account on the raspi server. The problem is: the vimwiki folder is on my nextcloud storage on this raspi server. I can work with it from other clients at home, which have the Nextcloud Desktop Client installed.

Two problems:

1. How can I access the files in the vimwiki folder via ssh on the raspi server?

2. How can I make the nextcloud system scan the changed files in the background automatically?

Thanks,

Steve

Nudin

unread,
Aug 11, 2019, 8:35:11 AM8/11/19
to vimwiki
Hi,

I'm not sure I understand your problem. Vimwiki saves all its pages in files in a folder that you can configure. So you can configure it to be in your nextcloud managed folder.

If you have your vimwiki files on your raspberry you can ether:
  • ssh into the raspi and run vimwiki there (ideally inside screen or tmux to be able to reconnect)
  • mount you vimwiki-folder with sshfs to a local folder and run vimwiki locally
  • use vim's build in ssh-support to access the vimwiki-files (enabling ssh-multiplexing in you ssh-config highly recommended!)
  • use nextcloud to sync the wikis
If you need more info about any of those points, feel free to ask.

Cheers,
 M

Stefan Pfister

unread,
Aug 11, 2019, 9:03:58 AM8/11/19
to vim...@googlegroups.com
Thanks for the answer. I'm using vimwiki on my local pc and sync the local vimwiki folder with the remote folder on my raspberry pi which acts as a nextcloud server. The remote vimwiki folder is in the php stack of the nc storage. For the syncing I use the nextcloud desktop client.

Wish or goal is to connect remotely via ssh or some kind of shell or terminal to use the vim on the raspi itself with the vimwiki folder on the raspi which lies in the nextcloud storage.

Problem: I have no access via ssh to this folder. I can only use the webinterface. There is no ssh user for the nextcloud storage.

Until now: nobody has a solution for this use case.

The only way is at the moment to use a folder outside of the nextcloud storage. But I don't want this.

I'm using now termux on my android, installed and configured vim and vimwiki  and sync my local vimwiki folder with foldersync. But in a perfect world it should be easier simply to connect to the raspi with ssh and use the remote vim on the raspi without any kind of installation on the client android.

Cu
Steve

--
You received this message because you are subscribed to the Google Groups "vimwiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vimwiki+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vimwiki/92373fb5-a952-4acb-abff-b2654305ec9f%40googlegroups.com.

Nudin

unread,
Aug 11, 2019, 9:19:56 AM8/11/19
to vimwiki


Am Sonntag, 11. August 2019 15:03:58 UTC+2 schrieb Stefan Pfister:
Problem: I have no access via ssh to this folder. I can only use the webinterface. There is no ssh user for the nextcloud storage.

So can you connect to your raspi via ssh at all? If so your problem is an issue of the file permissions?

M


 
Steve

'Nudin' via vimwiki <vim...@googlegroups.com> schrieb am So., 11. Aug. 2019, 14:35:
Hi,

I'm not sure I understand your problem. Vimwiki saves all its pages in files in a folder that you can configure. So you can configure it to be in your nextcloud managed folder.

If you have your vimwiki files on your raspberry you can ether:
  • ssh into the raspi and run vimwiki there (ideally inside screen or tmux to be able to reconnect)
  • mount you vimwiki-folder with sshfs to a local folder and run vimwiki locally
  • use vim's build in ssh-support to access the vimwiki-files (enabling ssh-multiplexing in you ssh-config highly recommended!)
  • use nextcloud to sync the wikis
If you need more info about any of those points, feel free to ask.

Cheers,
 M


Am Donnerstag, 11. Juli 2019 10:06:57 UTC+2 schrieb Stefan Pfister:
How can I expand my raspi which acts as a nextcloud server at home? I want to use vim with vimwiki in a shell account on the raspi server. The problem is: the vimwiki folder is on my nextcloud storage on this raspi server. I can work with it from other clients at home, which have the Nextcloud Desktop Client installed.

Two problems:

1. How can I access the files in the vimwiki folder via ssh on the raspi server?

2. How can I make the nextcloud system scan the changed files in the background automatically?

Thanks,

Steve

--
You received this message because you are subscribed to the Google Groups "vimwiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim...@googlegroups.com.

Stefan Pfister

unread,
Aug 11, 2019, 9:45:12 AM8/11/19
to vim...@googlegroups.com
The problems are not only the file permissions. The nc storage is not updated too. You change a file with vim and the nextcloud server does not update his db. It simply doesn't work in connection with nextcloud. There is no solid solution. You have to change the permissions and manually update the nextcloud db after every file change. This makes the work difficult.

To unsubscribe from this group and stop receiving emails from it, send an email to vimwiki+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vimwiki/e93df601-6cbc-44d1-904f-44cd1ff5233c%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages