Your comments

I myself am a HUGE fan of open source, not that i dislike Ubooquity and why Tom is not opensourcing it, but i look at the problems the open source community has had in the past when companies become owner of something...(Oracle after taking over Sun with java (OpenJDK), mysql (MariaDB), OpenOffice (LibreOffice), Later we saw OwnCloud (NextCloud), Nagios about 10 years ago (Icinga2), QT as of last year (making QT closed source) and not to forget the whole mess with CentOS (RockyLinux, AlmaLinux). If tomorrow Tom gets a big bag of golden nuggets for Ubooquity, well that means we will be migrating to an alternative. No hate towards Tom (your work has been much appreciated the last i believe 8 years when i started to use it), as its his project that he started and his choice to do whatever he wants with it, but i just do not trust companies whatsoever. The only assurance that i have is using open source software.

So thanks majora2007, for pointing towards an open source alternative.

[SOLVED]

For people who want something similair. 

Map a Network Drive on Linux

https://sit.teamdynamix.com/TDClient/1865/Portal/KB/ArticleDet?ID=849

When you have created the network drive, in your adminpage on your Ubooquity, you just browse to your mounted directory. There you can browse through until you find the directory that you want to use. You just gotta love Linux. As if you are playing with lego. :).

More information please?? What are you trying to achieve?

Is your server (where Ubooquity is running) not in your network or in your network and you trying to access it? So please give some more details.

isn't Java a "little" bit on the heavy side for a Raspberry pi?

Anyways, search on google for an example of a Rasbian script. Im not exatcly sure if they are the same as Ubuntu 18.04. However, the concept is mostly the same.

Just have your path of java use a jar file (ubooquity.jar) and the options you want it to use. For example something like this

/usr/bin/java -jar Ubooquity.jar --workdir <path> --headless --libraryport <port> --remoteadmin --adminport <different port than libraryport>

I'm not that very familiar with unix. In Linux i just use the path of java and tell it to open a *.jar file (ubooquity.jar). Off course java is installed on my NAS (headless). With it i use --libraryport, --headless, --remoteadmin, --adminport, --workdir (working directory.

In the directory that you have your ubooquity, there is a folder called "logs". In there, there is a log file that you can open an look at the output of it. 

My advice is to put ubooquity.jar on a different directory. I create a special directory somewhere else. With it, it has then the permissions to create folders/files when opened. Logs are also part of it. With a startup script i open with Linux Ubuntu 18.04 server Ubooquity at startup.

This is my startup-script

[Unit]

Description=Ubooquity

After=network.target

[Service]

User=<USERNAME>

WorkingDirectory=/opt/ubooquity

ExecStart=/usr/bin/java -jar Ubooquity.jar --headless --libraryport <PORT> --remoteadmin --adminport <PORT>

[Install]

WantedBy=multi-user.target

To test if it does work try it this way

/usr/bin/java -jar Ubooquity.jar --workdir /opt/ubooquity --headless --libraryport <PORT> --remoteadmin --adminport <PORT>

Remember, you need java or the opensource alternative JDK. The library port cannot be the same as adminport. To access your administration page from another computer, --remoteadmin needs to be also included. To access administrator page go to

<IPADRES PC>:<adminport>/administrator


Also have your ubooquity.jar with the next permissions 

 

sudo chmod a+x Ubooquity.jar

It has changed since version 2.*

You have to update your/change your systemd service to this or just the line you are using to what i used in the execStart but changed to your situation off course.


[Unit]
Description=Ubooquity
After=network.target

[Service]
User=<user>
WorkingDirectory=</opt/ubooquity>
ExecStart=/usr/bin/java -jar /opt/ubooquity/Ubooquity.jar -libraryport <port> -headless -remoteadmin -adminport <port>


[Install]
WantedBy=multi-user.target

This is my systemd service. The bold part you have to change to adapt to your situation. The webadmin has become "remoteadmin", also remoteadmin and the library it self you must have different ports. Remember to remove <>.

I did not knew that it had a internal database. You are indeed right that some people share their collection with tons of people and read status needs to be tracked per use. I just gave my two cents with my limited understanding of it.

In the end of my comment i also stated "What ever you do...". So it was not like as if my was the only way ;).

However thank you for your reply and educating me on certain things that i did not know or thought about.

Hi Tom,

I was wondering is it possible to have a sort of *.txt or *.conf or whatever file, so when you using webinterface change the status of a book to "read" that the name is being put in this text file or so. So Ubooquity scans that text file and every book who is named in that text file gets a "read" icon or something like that. Or maybe could that be very sluggish and slow? I'm just giving you my two cent because you said you haven't put much thoughts in it how to implement it. This could also be very handy when you migrate/upgrade your server, you just have to take that file where all those books have been named that one has read. After migration/upgrade everything is back as how it was.

What ever you do, i really appreciate this wonderful piece of software. Good job.

Nevermind.. double post, did not find this idea before. I will add extra feature request story to the other one.