Synology Markdown



Markdown Syntax Guide SourceForge uses markdown syntax everywhere to allow you to create rich text markup, and extends markdown in several ways to allow for quick linking to other artifacts in your project. Synology, PHP, and the mysql Extension Written by David Schlottman on May 13th, 2018 May 13th, 2018. 3 Comments This week I installed a few new items on my Synology NAS server so that I could better familiarize myself with PHP and MySQL.

When I want to change my nas,
I use Hyper backup software to backup my nas,
Copy from my nas to USB device.

  • Since synology's dms doesn't provide any auto-backup for it's configuration i've made a smile script that can be run at from the 'Task Scheduler'. The script invokes synoconfbkp cli command that will dump the config file to provided folder. I use dropbox's folder in my case (This will sync my files to DropBox account). It append a date.
  • Synology, PHP, and the mysql Extension Written by David Schlottman on May 13th, 2018 May 13th, 2018. 3 Comments This week I installed a few new items on my Synology NAS server so that I could better familiarize myself with PHP and MySQL.
Synology Markdown

But when I run the copy task,
it tells me 'Run command fail'

So I reboot the nas,
and then I see 'The storage is full, you can't login.' message.

Login with SSH,
I see the partation /dev/md0 100% used.

I cost a lot time to find the reason,
finally I figure it out.

Run df -h command you will see something like this,
the /dev/md0 is 100% used.

Now the purpose is to solve this problem.

First, You can see the /dev/md0 is mounted on /,
the root folder.

It means every folder in root may used the space,
You must find it out yourself.

In my case,
the Hyper backup software copy file into /volumeUSB1 folder,
This is the problem:
the /volumeUSB1/ folder is under the /, not USB device!
The right USB device folder is /volumeUSB1/usbshare1-2/

So I delete the files under /volumeUSB1/,
and reboot nas,
I can login again.

1, Find where the /dev/md0 is mounted.
2, Find which folder used the space.
3, Delete the files.
4, Reboot.

The fear

Since my child is born, I realised many things. Samsung usb driver for mobile mac. And one of them is how much time and energy are precious resources. For example, you don’t get to have so much time anymore to take care of you digital life. This can potentially have bad consequences.

Synology Nas Markdown

And as things start to pile up like disorganised notes, unsorted pictures,… you start growing a fear that at some point, something is gonna happen and some things will get lost. If you’re using 3rd party softwares or services, one of these things could be due to one of the services shuting down and suddenly you need to transfer all the files to somewhere else.

So the challenge is to find systems to organise you life that are portable, easy & enjoyable to use and that don’t require too much maintenance.

As I have less time to take care of all that, I try to simplify all my processes and think about how can they can survive the years. Macroscop for mac os.

Awesome note for mac. By the way, this is quite hard for me as I’m quite a «tool freak».

Atom & Markdown to the rescue

As I’m a programmer, I use Atom everyday for my work. So I told myself that it would be actually silly not to use it to read and write all the notes I could have taken in the past.

I used be a heavy Evernote user back in days until they announced their new pricing model. Then I switched to Synology Notes, partly because they had an import script from Evernote.

Now I still haven’t found a great way to transfer the old notes (hence my current portability concerns) but I started to experiment with Atom to write the new ones.

When you work in a raw text environment, the easiest way to write decent notes is to use markdown. Also you have a ton of markdown editors on the market, so even if Atom dies, I’ll probably find something to replace it.

Now Markdown has little support in Atom by default but there are a great bunch of plugin that make it much better.

I experimented with all of them and ended up with a selection of what I believe are the most convenient. You will probably have a different setup than mine. That’s totally ok and This why I love Atom.

The setup

There are mainly 4 parts that you should be concerned with:

  1. The writing experience: Is the syntax highlighting good enough to quickly scan the page? Are they snippets to make you write faster?

  2. The previewing part: Sometime, you really need to see how the text is gonna look. Also useful when writing markdown slides.

  3. Navigating / searching: This goes without saying. Though I haven’t experimented with a lot heavy files, Code repos have a lot of them and the experience is pretty fast.

  4. The exporting/sync part: You want to find a way to keep all this sync between all your devices or share it to world.

Synology Notes Markdown

So here is the list of packages you will need to replicate my setup for markdown:

Basic language support

Synology Markdown

For better previewer, slides generator, code highlighting, table of content generator and auto open + a million other more advanced features.

Adds tons of features to make Atom an even better Markdown/AsciiDoc editor!

Works great with static blogging as well. Try it with Jekyll, Octopress, Hexo or any of your favorite static blog engines.

To mark github flavored md task as done.

Markdown

Adds a neat toolbar when too lazy to type.

Super useful sidebar that shows you the document structure ala google docs.

A nice theme

A great syntax theme. Good balance quality between code and md support.

Nas

Gotchas

One of the remaining «not perfect» things is that you now need a place to store the medias that you want to display in all those markdown files.

One solution I found was to have a medias folder for each top level folder. Though sometimes, you would still want a more local folder with assets in case you’re preparing a presentation for example.

For syncing I could use git but I find dropbox a better fit in this case, and it still fits within the portability concerns I had.

If you have comments or suggestions about this setup don’t hesitate to reach out on twitter or mastodon :)