Posts

Showing posts from April, 2020

Compiling "file" with spksrc for synology NAS

Read the disclaimer This article describes how to compile "file" for synology devices, package it and install it. You can get "file" sources at: https://github.com/file/file ftp://ftp.astron.com/pub/file/ The package described in this guide is will download the content from that repository. The "file" command is "a file type guesser", that is, a command-line tool that tells you in words what kind of data a file contains. The original spksrc already contains a file package, that only compiles the binaries : https://github.com/SynoCommunity/spksrc/tree/master/cross/file This package fills the gap and provides the command line utilities from the shell: file This guide is the same that https://dayandnightcoding.blogspot.com/2020/04/compiling-cpulimit-with-spksrc-for.html You can follow the different steps there. I'll document only the steps referring specifically to "file". Clone the repository and make setup ...

Compiling flac with spksrc for synology NAS

Image
Read the disclaimer This article describes how to compile flac for synology devices, package it and install it. You can get the flac sources at  http://flac.sourceforge.net/ The package described in this guide is will download the content from that repository. Flac is a set of tools enabling lossless audio compression. The original spksrc already contains a flac package, that only compiles the binaries : https://github.com/SynoCommunity/spksrc/tree/master/cross/flac This package fills the gap and provides the command line utilities from the shell: flac metaflac This guide is the same that https://dayandnightcoding.blogspot.com/2020/04/compiling-cpulimit-with-spksrc-for.html You can follow the different steps there. I'll document only the steps referring specifically flac . Clone the repository and make setup It's documented here :  https://github.com/SynoCommunity/spksrc/wiki/Developers-HOW-TO on the ubuntu host start a terminal choose ...

Compiling shntool with spksrc for synology NAS

Image
Read the disclaimer This article describes how to compile shntool for synology devices, package it and install it. You can get the shntool sources at  https://github.com/flacon/shntool The package described in this guide is will download the content from that repository. shntool is a multi-purpose WAVE data processing and reporting utility that supports various lossless audio formats. This guide is the same that : https://dayandnightcoding.blogspot.com/2020/04/compiling-cpulimit-with-spksrc-for.html You can follow the different steps there. I'll document only the steps referring specifically shntool. Clone the repository and make setup It's documented here :  https://github.com/SynoCommunity/spksrc/wiki/Developers-HOW-TO on the ubuntu host start a terminal choose a folder for the git clone root git clone https://github.com/youpla/spksrc.git cd spksrc/ make setup Compile the shntool package for your architecture in a terminal navigate to the sh...

Compiling cuetools with spksrc for synology NAS

Image
Read the disclaimer This article describes how to compile cuetools for synology devices, package it and install it. You can get the cuetools sources at https://github.com/svend/cuetools The package described in this guide will download the content from that repository. cuetools is a set of utilities for working with Cue Sheet (cue) and Table of Contents (toc) files. This guide is the same that : https://dayandnightcoding.blogspot.com/2020/04/compiling-cpulimit-with-spksrc-for.html You can follow the different steps there. I'll document only the steps referring specifically to cuetools Clone the repository and make setup It's documented here :  https://github.com/SynoCommunity/spksrc/wiki/Developers-HOW-TO on the ubuntu host start a terminal choose a folder for the git clone root git clone https://github.com/youpla/spksrc.git cd spksrc/ make setup Compile the cuetools package for your architecture in a terminal navigate to the cuetools folder ...

Testing a package compiled with spksrc for synology NAS

Image
Read the  disclaimer Now that you've compiled a package, you can test it on a device. See :  https://dayandnightcoding.blogspot.com/2020/04/compiling-cpulimit-with-spksrc-for.html Ways to test:  Online demo @ synology.com Using a blank device Online demo Synology provides online demo at  https://demo.synology.com/ There's no terminal window there to my knowledge, but you can use the scheduler as a workaround. Go to the "package center" clic "settings" and select "any publisher" Select "manual install" Reminder : the demo platform is x64 while writing this article. Select your x64 compiled package. In this example : "cpulimit_x64-6.1_0.2-0.spk"   Now you can see your package in the "package center" In order to test it, you can go to "control panel"  "task scheduler" Create>scheduled task>user-defined script Select "admin" Thi...

Compiling cpulimit with spksrc for synology NAS

Image
Read the disclaimer This article discribes how to compile cpulimit for synology devices, package it and install it. I've set up a forked repository of spksrc at  https://github.com/youpla/spksrc There I publish some tools. You can get cpulimit sources at https://github.com/opsengine/cpulimit The package described in this guide is will download the content from that repository. cpulimit is a simple program which attempts to limit the cpu usage of a process expressed in percentage, not in cpu time. The apprehensible quality of this software is allowing you to run demanding software without rendering the NAS unusable. In order to compile the software there are two possibilities. a virtual machine a docker container In this example I'll rely on a virtual machine running Ubuntu . There are many steps involved in getting a virtual machine ready that are beyond this article scope, here are some basic steps: chose an hypervisor  install Ubuntu install th...