Occasionally users are unable to connect to our FreeNX server, they report an error “Startup Session Failed”. Clicking on “Detail” shows that it is unable to find the server session file.
Searching for solutions suggested a number of options, including removing the server /tmp/.X1***-lock files, or simply removing FreeNX and installing NoMachine’s NXServer instead.
In the end the solution proved remarkably simple:
On the server run:# nxserver --list NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL) NX> 127 Sessions list: Display Username Remote IP Session ID ------- --------------- --------------- -------------------------------- 1001 chris 192.168.1.52 1BC6B4B9C3CF4C2B6BD7137AC7FDE5DA 1000 helen - 87443D16622EC0751551685A93DD023B 1002 michelle 192.168.1.102 DBAC430C8AA8B414A5E2228970E2BBDC NX> 999 Bye
The session with no remote IP is for a session that has not ended properly. Terminate this session and users should be able to log in once again:# nxserver --terminate helen
Update: This problem was little more complex than I at first thought, all I had really done is allow one more user to login before the issue re-occurred. You also need to check is that there are no old lock files in /tmp/.X11-unix:# cd /tmp/.X11-unix #ls -al /tmp/.X11-unix# ls -al total 316 drwxrwxrwt 2 root root 4096 2014-01-02 12:48 . drwxrwxrwt 375 root root 315392 2014-01-02 12:48 .. srwxrwxrwx 1 root root 0 2013-07-24 17:04 X0 srwxrwxrwx 1 helen helen 0 2014-01-02 10:32 X1000 srwxrwxrwx 1 chris chris 0 2014-01-02 11:42 X1001 srwxrwxrwx 1 michelle michelle 0 2014-01-02 08:52 X1002 srwxrwxrwx 1 terry terry 0 2013-09-05 15:05 X1003
Notice that there is a .X11-unix file for terry X1003, but no corresponding user shown in nxserver –list above. Remove this spurious file and it should now work.
It would also make sense to ensure that the correct /tmp/.X1***-lock files are present:# cd /tmp # ls -al | grep -i X.*-lock -rw------- 1 nx nx 0 2014-01-02 10:32 .nX1000-lock -rw------- 1 nx nx 0 2014-01-02 11:42 .nX1001-lock -rw------- 1 nx nx 0 2014-01-02 08:52 .nX1002-lock -r--r--r-- 1 helen helen 11 2014-01-02 10:32 .X1000-lock -r--r--r-- 1 chris chris 11 2014-01-02 11:42 .X1001-lock -r--r--r-- 1 michelle michelle 11 2014-01-02 08:52 .X1002-lock
You should expect to see the correct number of lock files for your user sessions, in my case these required no changes, but if there had been spurious files, removing them would seem sensible.
If this has been helpful to you, please do consider rating this post or adding a comment!
Here we are again, another year, another dissatisfying look at what options I have for local photo management.
Here’s what I do now:
The question is how to improve that experience?
I can’t run F-Spot on multiple computers because it stores its SQLite database locally and even if the database file were synced between hosts or kept on the fileserver it would still need the exact same version of F-Spot on every machine, which is not feasible — my laptop and desktop already run different releases of Ubuntu and I want to continue being able to do that.
It would be nice to be able to import photos from any machine but I can cope with it having to be done from the desktop alone. What isn’t acceptable is only being able to view them from the desktop as well. And when I say view I mean be able to search by tags and metadata, not just navigate a directory tree.
It sounds like a web application is needed, to enforce the single point of truth for tags and metadata. Are there actually any good ones that you can install yourself though? I’ve used Gallery before and was never really satisfied with ease of use or presentation.
Your-Photos-As-A-Service providers like Flickr and even to some extent Google+ and Facebook have quite nice interfaces, but I worry about spending many hours adding tags and metadata, not bothering to back it all up, and then one day the service shuts down or changes in ways I don’t like.
I’m normally quite good about backing things up but the key to backups is to make them easy and automatic. From what I can see these service providers either don’t provide a backup facility or else it’s quite inconvenient, e.g. click a bunch of times, get a zip file of everything. Ain’t nobody got time for that, as a great philosopher once wrote.
So.. yeah.. What do you do about it?
Arbitrary tweets made by TheGingerDog (i.e. David Goodwin) up to 01 January 2014
Entered monthly 10km races in Regent's Park, reducing my time from 55:07 in January 4th to 43:28 on December 1st.
Entered the Hell of Ashdown cyclosportive in sub-zero conditions for over 100 miles & 7,500 ft of elevation (actual photo).
Had my lute returned after it was damaged.
Had a time-trial bike built and raced my first triathlon, duathlon and aquathlon.
More biking, including a long ride with my brother. Also performed on the viola da gamba in Bach's St John Passion with Belsize Baroque.
Amongst more triathlon preperation, I performed in a Linden Baroque concert of Handel's Israel in Egypt.
Raced my biggest event of the year—a "Half-Ironman" triathlon—hitting my time goal.
Whilst procrastinating about writing some letters, I created a small service to send letters without a printer.
Started cooking a little more adventurously.
Performed Geminiani's arrangement of Corelli's La Folia in the Fitzwilliam Museum with Le Petit Orchestre.
Ramped up my running volume so I could go over 1000km for the year. (Strava profile)
Today I had occasion to test trivia’s page load times. I used the (admittedly fairly dated) website optimization test tool and was surprised to find that it reported that parts of the pages I tested were not compressed before delivery.
I have the default compression options set in my lighty configuration file as below:
compress.cache-dir = “/var/cache/lighttpd/compress/”
and the mod_compress server module is loaded, so I expected all the text, html and scripts loaded by my wordpress configuration to be compressed.
It turns out that in order for compression to work correctly in WordPress (or any other php based web delivery mechanism) with lighty you need to enable compression in php. In all the time I have been running trivia on my own server I hadn’t done this. The option that needs to be changed to correct this is to set:
zlib.output_compression = On
What I think I might need to work on now is the number of scripts my theme and plugins load. Counterize in particular is beginning to feel a bit sluggish. Certainly the generation of traffic reports is now quite slow and mysql is chewing up a lot of CPU. I suspect that I may need to purge the database and start afresh in the new year – or find another nice traffic analysis tool.
That’s right, it’s my end of year round up! I am running the risk that nothing significant or amazing will happen to me in the next 24 hours, I know. I’ve trawled through tweets and blogs and reminded myself of the fantastic, crazy things that have happened this year. Here are just some of them, in no particular order.
There are some things I’ve done this year that have been really, really special. But I just can’t tell you about them. Sorry! They really were among the highlights of my year though.
I’ve got a feeling that 2014 will be very special too. Have a great new year….Pin It
Every Summer, I wish for a pair of sandals that are comfortable but have some style so that they can feel a bit smart as well as casual. And I’m rubbish at finding them – I don’t really like shoe-shopping at all, which doesn’t help. Enter MOHOP sandals.
I was browsing Kickstarter projects over Christmas and came across the MOHOP sandals project. Basically, you get a pair of sandal bases, some ribbon, and some design cards. You then thread the ribbons on the bases according to the design cards (or your imagination). The bases are flexible with wooden heels and are suitable for vegans and people with a range of other ethical shopping goals (inc, if you’re from the US, made in the US).
(Although the bases shown have high heels, they’re also available as flats or different heights of heel.)
They’ve apparently been going for some time (at mohop.com and on Etsy) but were struggling to meet demand. They’re taking the Kickstarter route to fund expanding their production capabilities (inc creating local jobs).
I think the sandals are a great idea. They’re fun to look at, comfy to wear (according to the reviews), and infinitely re-designable, which appeals to my crafty side. You can thread decorations on to the ribbon or replace the ribbons completely with strips of sari, shoelaces, or anything else that occurs to you.
At the moment, the cheapest pair is $45 for a pair of flats (though there are lower-cost ‘perks’ available if you just want to contribute without buying any shoes). I’ve gone for the $100 ones that have low heels. They’re looking for $50,000 of funding by the 25th January so that they can open their new production place. They’ve got some way to go yet so if you like the look of them, consider supporting this cool idea!
Here’s their video about manufacturing their shoes:
There’s been a lot of talk recently about what Nadine Dorries was paid for her appearances on I’m A Celebrity, Get Me Out Of Here and why she hasn’t declared that fee yet.
By following the trail laid down by Unity in this excellent blog post and listening carefully to what Dorries says in this interview with Andrew Neil (I expect that’ll be there for another week or so) it becomes pretty obvious what has happened.
She hasn’t received the money yet.
Of course, you wouldn’t usually expect to wait six months for payment for a media appearance, so what has happened?
Dorries has a service company called Averbrook and all of her media work is now undertaken by this company. The Averbrook invoices media organisations for the work that Dorries does and the media companies pay the fees to Averbrook. The fees then sit in Averbrook’s bank account until needed.
At this point Dorries has received no money and therefore has no requirement to declare any income. In the Andrew Neil interview, she says “I have not personally benefited from going into the jungle”. She then explains that she has a company for her media work and although it isn’t made clear, it’s obvious that this company receives the money from this work.
Dorries goes on to say that when she benefits from that work, she will have to register the income. At some point in the future she will need to use this money and Averbrook will pay it to her. There are various ways for a director to take money out of a company. You might pay it as salary, you might pay it as dividends (if the director owns shares in the company) or, in extreme circumstances, you can close the company down and redistribute its assets. All of these will have varying tax implications and all of them will require Dorries to declare the income to parliament.
But here’s the interesting thing. The income that Dorries will receive from Averbrook will have no link back to its original source. The declaration will simply need to say “£X,000 dividend from Averbrook” or whatever is appropriate. There will be no way to say how much of the money comes from each individual source.
It’s a bit like money laundering. But, of course, this is all completely legal. Working through a service company is a really common way to manage tax affairs. It has tax benefits and (as we can see here) it has privacy benefits.
Of course, there’s a good argument that using a company like this goes against the spirit of the requirement for MPs to declare income. It would be hard to argue against that. But until the law is changed, you are very unlikely to see any MP stop using the system.
So what are the chances of the system changing? Rather slim I’d say. Why? Well because the people who would need to make the change are many of the people who are benefiting from this system.
But on this occasion, I’d have to say that Dorries isn’t the problem. She’s just taking advantage of a well-known system. And people aren’t asking her the right questions about it.Related Posts:
Of course it is slow as hell and not nice on the web host. It makes lots of byte-range requests on the host, downloading a few KB with each request, which is kind of the worst case for webservers to handle.
Note also that Fedora’s curl is broken. I compiled my own from upstream git.
This directory contains experimental up to date libguestfs packages for Ubuntu 12.10. You should be able to install them by adding this line to /etc/apt/sources.list:deb http://libguestfs.org/download/binaries/ubuntu1210-packages/ /
You will need to also:sudo chmod 0644 /boot/vmlinuz-*
because of this Ubuntu bug.
Let me know if the packages work. Also what other versions of Ubuntu I should be building them for.
It looks like I might be doing a short talk at the CentOS Dojo and Barbecue at Aldershot, UK, Friday 12th July 2013.
It’ll probably be about scripting/programming libvirt and the virt tools, but mainly it’ll be a chance for Q&A about any virtualization topic in RHEL / CentOS.
Also they have a BBQ — with beer! Sadly since I’m driving there I won’t be able to drink any of the beer.
(Thanks Karanbir Singh, Justin Clift)