Advices on migration from an old Synology Nas to OMV

  • I only put scripts in /usr/local/bin if I want to be able to execute them anywhere and they are used more frequently. If they are seldom used I just leave in normal locations, if they came with a package.

  • Just a little update on my migration process:


    Thanks to the amazing help of tekkbebe, now on my OMV test box works fine the FTP server http://forums.openmediavault.o….php?f=19&t=3906&start=10
    If you read the thread linked, you will discover that was my modem/router "fault" :)
    Now with the new settings the FTP server works great.


    In my first post I listed a series of goals:


    -FTPS server (I have experimented in the last weeks with OMV but I haven't
    looked into it very well) Done!! (now works only the FTP server not FTPS. I will see in the next weeks how to test the FTPS server)
    -Use SnapRaid instead of the software RAID 5 (tested and I love it!) Done!!
    -Using aufs for pooling (not tested and a bit confused in how it works) Done!!
    -Backup the OMV box to the NasLite box via rsync (not tested yet) Done!!
    -Streaming server for my media (tested and it works flawlessly) Done!!
    -Backup up of my work pc (tested and it works flawlessly -much (a lot...) faster than
    the Synology Nas- Done!!


    Now i have to test three more things:
    -Transmission plugin
    -migration of a couple of win32 "console" programs (that i wrote) with wine
    -Automate the WOL of the NasLite box, and the shutdown via the "Expect" script
    I wrote. (I hope it's feasible in Debian...)



    Tonight I will start the Transmission plugin testing.

    • Offizieller Beitrag

    What are the console programs written in? Might be easier to port them than use wine without a gui (which I have done).

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    It seems that it is cross platform. Why run it under wine then?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Zitat von "ryecoaaron"

    It seems that it is cross platform. Why run it under wine then?


    I have developed software for almost 25 years, but only in Dos/Windows :D
    With that compiler (but is more correct to call it "pre-compiler") I have to pre-compile my source then I use the old Borland 5.5 C++ compiler to convert to the final .exe file.
    In linux I have no idea how to compile my programs... :D

    • Offizieller Beitrag

    Well, you are in luck. gcc is actually harbour's preferred compiler. Everything you need should be installed with:


    apt-get install build-essential make flex bison


    If you tell me how you compile programs now, I can probably help switch to gcc.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Sure thanks! :D


    I use this:

    Code
    compile.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 /Z /L xhb /L hbnf /L ortega /L socket /NX /C


    meaning:
    /Z Link Zip libraries
    /L Link additional [x]Harbour library
    /NX No run, compile and link only
    /C Create console EXE


    The "ortega" library is my personal functions library (I precompile it with borland 5.5 to create a .lib that I link to the final .exe)
    In linux it should work also, instead to create a .lib from my ortega.prg source, to compile the main program source file + the ortega.prg source.
    (example: big_program.prg + ortega.prg) to generate the executable.


    That calls this... (this one is long... :D)


    • Offizieller Beitrag

    Ok. I was wrong. You have more things dependent on Windows and Borland than I thought. If you have been working with C++ for that long, I wouldn't think it would take long to port it to Linux C++ using g++ (c++ linux compiler) and harbour. Maybe this would help??


    Also, wine may not work with your app. You might have good luck with dosemu though.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Zitat von "ryecoaaron"

    If you have been working with C++ for that long, I wouldn't think it would take long to port it to Linux C++ using g++ (c++ linux compiler) and harbour


    My programs are written in harbour (dBase syntax) then pre-compiled in "pcode" then the "pcode" is compiled with the Borland C++ that generates a .exe
    So in the end, I got a C++ program executable, without writing a single line of C++ :D
    I have written (a long time ago...) just little programs in Lattice C on my Amiga 500 :D


    Zitat von "ryecoaaron"

    Also, wine may not work with your app. You might have good luck with dosemu though.


    Thanks for this tip and your kindness, I will look into it. Thanks again.

    • Offizieller Beitrag

    If you aren't writing in C++ then it might be easier than I thought. Maybe this would work to compile your harbour code to linux executable?


    I do a lot of database program so this has me interested :)

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Zitat von "ryecoaaron"

    If you aren't writing in C++ then it might be easier than I thought. Maybe this would work to compile your harbour code to linux executable?


    I do a lot of database program so this has me interested :)


    I also work with databases (MySql), no more with harbour (but i still use it for batch programs on big "raw" data).
    It could seem old and surpassed but is a great and easy to learn and powerfull language.
    Thanks for the link, this seem interesting:


    I have to understand how to compile the harbour compiler (!? :D )

    • Offizieller Beitrag

    Here is how you install harbour on omv (as root):


    Code
    apt-get install build-essential fakeroot debhelper
    wget -O harbour-3.0.0.tar.bz2 http://downloads.sourceforge.net/project/harbour-project/source/3.0.0/harbour-3.0.0.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fharbour-project%2Ffiles%2Fsource%2F3.0.0%2F&ts=1394313963&use_mirror=hivelocity
    tar xvjf harbour-3.0.0.tar.bz2
    cd harbour-3.0.0
    fakeroot debian/rules clean binary
    cd ..
    dpkg -i harbour_2.0.0-1_amd64.deb


    Not sure why the package says 2.0.0... I didn't install it either. Hope it works.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks I'm compiling right now... :)


    Edit:
    It's simply amazing!


    This is the link to the newest sources: https://github.com/harbour/core/
    Then I followed your instructions:

    Code
    apt-get install build-essential bash git gcc binutils fakeroot debhelper valgrind upx uncrustify
    git clone https://github.com/harbour/core.git harbour-core
    fakeroot debian/rules binary
    dpkg -i harbour_3.2.0-1_amd64.deb


    I have written a little program with nano and is working in debian! I know that for you is normal but for me is simply mindblowing!!!
    I haven't understand many things, for example how it works if I want to use specific libraries, but just this for me is great!
    Thank you so much

    • Offizieller Beitrag

    It takes a while :) I would try installing the .deb on a VM first. Just in case it causes problems :)

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Zitat von "ryecoaaron"

    It takes a while :) I would try installing the .deb on a VM first. Just in case it causes problems :)


    Oops... too late :)
    I hope I haven't made much damage to my OMV installation.

    • Offizieller Beitrag

    It shouldn't. You can always remove it since it was installed using a .deb. Did it work?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Yep, missed your edit. Glad you found a more recent version of harbour.


    Well, that is great news :) Hopefully you can create native linux versions of your programs now.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!