Lightworks 12.6 and PortAudio – Opensuse 42.2

I had a lot of problems with Opensuse Leap 42.2 and Lightworks. This time it was portaudio that was causing all the problems. It would either hang Lightworks when loading at the point portaudio tried to detected the audio interfaces. Or it would just be a mess of buffer overloads.

I fixed it in a weird way. I downloaded builds of libportaudio2 and libportaudioccp from Ubuntu, for the right architecture. I think unpacked them into /usr/lib/lightworks, which is where lightworks looks first for libraries. This worked, with one additional requirement that you have to use GlobalSettings.txt in your ~/Lightworks directory to make sure that portaudio uses pulseaudio as the interface. This avoids the buffer problems. Do all that and Lightworks 12.6 is happy on Opensuse Leap 42.2.

I am about to try Lightworks 14, see how that works before I pay for the upgrade.

OwnCloud – its awesome!

I gave up on SpiderOak in the end, it was too resource heavy for my laptops, their batteries were really struggling. The constant encrypting and decrypting was too much. Its a shame because as a backup system for large amounts of data it was really very good. Especially if that data was on desktops or didn’t change much. I couldn’t justify keeping it for this use only, too expensive at $25 a month (which is about £20 now!). So I looked back into OwnCloud.

I tried OwnCloud a number of years ago as I run my own home server anyway. Back then the desktop sync client was just not up to the job. It would take forever to sort out changes and sync them, often using up entire CPU cores on both the server and the client machines. I am pleased to say that problem as been solved and now OwnCloud is a great choice if you are running your own server somewhere anyway. The sync seems to be fast, and the setup is easy. I am using a self-signed SSL certificate, which doesn’t cause much in the way of annoying warnings. OwnCloud has the other obvious advantage that you can really limit the access to the data, and it supports encryption of the data on the server too. Or you can encrypt the drives etc. I have been using it for about 4 months without problem. The only issue I had was when there was a power cut in my house while I was away. Doh! This killed the server obviously.

The downside of course is that with SpiderOak I had a ‘cloud’ copy of all my important data that was at a different location to my house. This is no longer the case. I don’t use OwnCloud to sync all the large data-sets across my computers, I sync those with Unison instead. So to avoid a catastrophic data loss in the event of disaster I have synced all my important data and docs to my office computer using Unison. This is about 1.7TB of data onto a 5TB raid array. The first sync took ages but as this data doesn’t change very much. I also use Amazon Glacier for data that can be essentially archived off and forgotten about, its super cheap.

A Beast

I have been cleaning up and resurrecting a beast of a computer. Its a dual Xeon 3.16GHz, with 8GB of RAM. Its not that high spec compared with today’s hardware. Has a fairly average GPU and a RAID card with currently 7x 500GB HDs, and 1TB system disk. I think I will get it going. Maybe find a use for it. Perhaps as web scraper or something. That or I could sell it. Gonna have to get a HD off eBay to make up the 8, that and find the Sata PSU cables!

Oldish Computer
Beast.

Poor KDE Performance – Balooctl Disable!

Two of my Opensuse boxes where performing really badly, but only some of the time. I tracked this down to the Baloo file indexing program. This is the tool that indexes your files for search, which is useful but only if it doesn’t cause horrendous performance problems.

The symptoms were a very frustrating desktop performance where the mouse would stutter and every few seconds or so, the system would sort of stop and then start again. It seemed to affect all apps to the point where they were basically unusable. It feels like a constant interrupting of the system, which it might well be.

The solution! Disable Baloo using the following command:
balooctl disable

Then reboot the system and all will be well. I rarely used the file indexing anyway. It would often crash on its own.

Gigabyte X79-UP4 Linux Horror

So I am not much of a Windows user, I have one Windows machine that doesn’t get used all the much. I tend to use Linux and have done for about 15 years. One of my work machines has caused a bit of trouble. The system was built around the Gigabyte X79-UP4 motherboard. This is on the face of it a good main-board, nice spec, good components. However I have had a lot of trouble with it. Its all about the USB 3 chipset, Linux hates it. The symptoms are as follows:

  • Anything plugged into the USB 3.0 ports and the machine will not shutdown, it instantly reboots.
  • USB 3.0 devices are unstable, and don’t always function.
  • With anything in the USB 3.0 ports the system can become unstable/unresponsive.

The solution was to deactivate all the USB 3.0 chipsets on the main-board. The the system behaves itself. I didn’t however discover this very quickly. I first tried replacing the PSU as I thought it had become damaged somehow. I then complained to Gigabyte who asked me to send the board back to them. Which I did at cost to me. They checked the board and said it was fine. They however refused to check the board with any Linux install. It is hard to replace a X79 main-board now. I so I have to continue to use it. I have however installed a PCIe USB 3.0 card that is now running the front ports on my system, and 2 on the back. I tried this board with a couple of difference Linux versions, including Ubuntu 14 and Opensuse 13.3/Leap 42.1. So, this means that I will probably never risk a Gigabyte project again, to risky.

Lightworks 12.6 working on Opensuse 13.2 & Leap 42.1

This might have been covered but I wasn’t able to find it easily so I thought I would post it up.

I have been trying to get Lightworks 12.6 working on Opensuse 13.2 and ran into some problems. It would hang on with the loading banner up and not do anything. So I tried running ntcardvt from the command line and got:

./ntcardvt: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory

In Opensuse libcrypto.so.10 is provided by the libopenssl package as /lib64/libcrypto.so.1.0.0

So its both named incorrectly and also in the wrong place for Lightworks to find.

Easy fix, as root make a sym link:

ln -s /lib64/libcrypto.so.1.0.0 /usr/lib64/libcrypto.so.10

Seems to work now, although I haven’t tested extensively. I think this will be the same for Leap 42.1 but my normal machine is waiting on a motherboard replacement so I cannot test that.

Remapping Mouse Buttons

I have recently bought a vertical mouse for work. This is to help combat a bit of RSI in my arm. Its great, make things much better. So good that I got another one for my other office. Then I hit a snag, the two mice are slightly different versions, one is a Evoluent 4 and the other a 3. This means that mouse buttons mapped differently to functions, and neither of them mapped how I wanted them to map. So… remapping mouse buttons.

First find out which button maps to which number. Easy with a little problem called ‘xev’.

xev | grep button

The command above pops up a window which you can click in, and then filters the output to the command line.

Next look at the output from xinput

xinput -list

This will tell you the ID number of the device you want to remap.

xinput –get-button-map Device_ID

Outputs the button map, you will get something like this:

> xinput –get-button-map 9
1 3 2 4 5 6 7 8 9 10 11 12 13 14

Then you just remap the buttons that wrong by switch them over, in my case 2 and 3.

xinput –set-button-map 9 1 3 2 4 5 6 7 8 9 10 11 12 13 14

Finally to make this happen every time you log in put the following in your ‘.bashrc. file in your home directory.

MOUSE_ID=`xinput list | grep -i Evoluent | awk -F= ‘{ print $2}’ | awk ‘{print $1}’`
xinput set-button-map $MOUSE_ID 1 3 2 4 5 6 7 8 9 10 11 12 13 14

The first line finds the ID of the device, just in case it changes. The second line maps the keys using the ID.

Easy!

Private VPNs

I travel a lot with my job, and therefore I use a range of different wifi networks. These are often secured in different ways and to different standards. Or they aren’t secured at all. I recently suffered a fairly major credit card fraud, and I don’t really know how they got the details. This has made me think that I need to be able to secure my internet activity on my own terms at times.

I have therefore set up my own cloud hosted VPN that I am currently testing. This allows me to encrypt my internet traffic between a cloud server and my laptop even if the network isn’t secure. Once tested I will post up how I have done it. My plan is to have three private VPNs, one in the UK (my home server), one in the US on a Rackspace cloud server, and one in Iceland.

Opensuse 12.3 KDE login/nvidia issues

I updated Opensuse 12.3 the other day. Caused a few issues, one was repeated crashes on login to KDE. I seem to have fixed it by adding my user to the ‘video’ group. These is also a fix for the following error.

GL applications report that they can’t operate /dev/nvidiactl.

I have had this error with certain applications trying to use the binary Nvidia drivers. Not sure if the fix is complete yet as the system seems to be a little bit sluggish and if I try to open nvidia-settings it doesn’t work. I will update when I have more info. I might re-install the nvidia drivers and see if that helps.

Update: So nvidia-settings does work, it just takes ages to open.

Minor Brainwave

I had a minor brainwave to reduce the power consumption of my home server. Take out the GPU and use the on-board GPU. This was only recently made possible by the fact that I changed my monitors and the new ones have VGA connectors as well as HDMI and DVI. Something I had failed to connect with the possibility of reducing the home servers power consumption. The upshot is that I would be unlikely to recover the cost of upgrading it to newer parts for a long time as its power consumption is like to be pretty close to any upgraded kit.