I’ve been using calibre for years as my library manager. Back in the days when I used windows, I used Comic Rack, but that is windows only and I had to change that to something better and calibre was the choise I made. Version 5 was released quite recently and I got that for my new rig. However as always there are some problems.
Underneath it uses xdg-open to open file. Therefore, people like me who are using programs from different desktops, will have bad time as calibre opens them with a ‘wrong’ program.
Apparently the author dislikes this approach:
I gave up on xdg-open a long time ago. Now in all my system, I just replace it with my own 100 line implementation. I suggest you do the same. Trying to get xdg-open to work with anything other than the major desktop environments is an exercise in needless frustration.kovidgoyal, creator of calibre
The problem still remains. I’m using enlightenment as my WM and okular for reading books, but xdg-open opens Evince!
After some reaearch, I was left confused. I’m sure there is a better way, like a console command, but what I did was:
- Open nautilus.
- Find filetype that calibre opens with wrong program.
- Right-click and change the default.
- Close nautilus.
I also have trouble getting the dark-mode on, but suppose it’s because of gnome or something. meh.
Can't locate Gtk2.pm in @INC (you may need to install the Gtk2 module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./gmusicbrowser.pl line 23.
BEGIN failed--compilation aborted at ./gmusicbrowser.pl line 23.
after some research I installed libgtk2-perl and got:
Can't redeclare "my" in "my" at /home/ix/APP/gmusicbrowser-1.1.15/gmusicbrowser_list.pm line 8001, near ",my"
Compilation failed in require at ./gmusicbrowser-1.1.15/gmusicbrowser.pl line 440.
BEGIN failed--compilation aborted at ./gmusicbrowser-1.1.15/gmusicbrowser.pl line 473.
This is not good! Well there seems to be quite recently updated version at their git. Downloaded that and it started!
Now we’re in business, let’s see if it does the few things I need: save certain data to tags %RATING% and %PLAY_COUNTER%.
Rating is saved as %FMPS_RATING% and %FMPS_RATING_USER%, Stars 1-5 are translated as 0.200000, 0.400000, 0.600000, 0.800000, 1.000000. That resolution is certainly interesting! On the GUI side, you get 10 values for the rating (half-stars), Not a fan of that. Perhaps it can be disabled or hacked away somehow.
The main problem is that gmb doesn’t save %PLAY_COUNTER% to the tag in any form! This is not good. It is visible on the GUI so you can see it, but as it is my files have this tag and I intend to keep updating those tags as long as I live. It seems that some one else wishes this feature too, but the issue is from 2018. damnit.
In conclusion, foobar2000 from 2007 is still the best audio-player on linux, but just barely.
Now that I have a new rig, I need to figure out what to do with the old one. It’s not stable as it crashes after some time. Maybe a test machine of sorts? Following the official guide. I added the -g -flag. Hopefully it’s enough as the BIOS is really limited. I can only set time there!
Now the “SleepingRig” has: -g -flag. I also took it’s MAC-address and shut it down.
On my “MainRig” I installed etherwake. It uses eth0 by default so I need to modify the command a bit.
$ sudo etherwake -i enp2s0 aa:bb:cc:11:22:33
And boom! It works! Amazing!
Now I can automatically start a LAN-machine. It boots into the login-screen, and the -g -flag has reverted to -d.
The above guide shows how to set the -g -flag, but it’s from 2015 and doesn’t use the new netplan that’s default in Ubuntu nowadays. This might be a problem (upd: editing the /etc/interfaces worked for me).
Setting up TightVNC
Normally SleepingRig is running KDE, but the guide that I’m following needs xfce. While KDE has it’s own ‘krfb’, I can live with the bloat. I also want to know how this’ll work.
Everything went well until the section 3. The command doesn’t work! It does ask for the vnc password, but after that there’s just empty terminal.
I also tried to use kde instead of xfce4, but that failed and vnc showed only x. Section 4 worked fine, it’s about creating a systemd service for vnc.
All in all I did good progress. There were few issues that still puzzle me, like why did startkde and secure-vnc fail? Well I can work with xfce4 and this machine wont be accessible online so fine.
However Wake-on-LAN, ssh and vnc works so now I can power my devices with a simple terminal command and control them from a different machine!