2018. május 2.

NVIDIA GeForce 930MX driver update

I ran into this "little" problem with SweetHome3D that it says "Sweet Home 3D will exit now because of a fatal error in 3D rendering system". The SH3D FAQ suggests to upgrade to the lastet graphic card driver.

I did not have a dedicated graphic card in my laptop before so having to care for the driver is a new experience.

The card in my Dell Latitude 5480 is an NVIDIA GeForce 930MX.
I found that the driver can be downloaded from the official site.
Here's how to pick it out from the list.
Current version is 390.48; released on 2018.03.28. It needs to be run from terminal with root.

Then I tried to install it from the terminal by running the .ran file and got stuck on errors

First I got the error: "You do not appear to have an NVIDIA GPU supported..."
This is fixed by changing the PRIME Profile from Intel (Power Saving Mode) to NVIDIA (Performance Mode) in NVIDIA X Server Settings (screenshot) (in flashback: Applications --> System Tools --> Administration)
Then log out and log in again, and this error will be gone.
However this alone did not solve the SweetHome3D problem, in the contrary it got it worse, now the program crashes at startup with the mentioned error.
The next error was "You appear to be running an X server..."
To get rid of this, here's a handy step-by-step:
  1. Switch to terminal with Ctrl+Alt+F1
    (switch back with Ctrl+Alt+F7 if you need to)
  2. Stop X with sudo service lightdm stop
    (start it back up with sudo service lightdm start if you need to)
Now, the following error was "The distribution-provided pre-install script failed..."
When I searched for this I ran into a some promising askubuntu answers:

Then I acquired some more info on my hardware

First of all, I ran lspci -k | grep -EA2 'VGA|3D' to find out what I have on the machine:
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
 DeviceName:  Onboard IGD
 Subsystem: Dell Device 07d0
--
02:00.0 3D controller: NVIDIA Corporation Device 134e (rev a2)
 Subsystem: Dell Device 07d0
 Kernel driver in use: nvidia
With sudo lshw -numeric -C display | grep -E "(product|vendor)" we get a different but similar set of information:
product: NVIDIA Corporation [10DE:134E]
vendor: NVIDIA Corporation [10DE]
product: Intel Corporation [8086:591B]
vendor: Intel Corporation [8086]
To get the current nvidia driver version, run nvidia-smi from terminal.
This information is also available from the Software&Updates setting Additional Drivers tab. (screenshot here) and also from the NVIDIA X Server Settings mentioned before.
I'm running 384.111

Then I tried to install it from the ppa repository and succeeded

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt-get install nvidia-390
It said that there are recommended packages: libcuda1-390 nvidia-opencl-icd-390, so I installed those too:
sudo apt-get install libcuda1-390 nvidia-opencl-icd-390
I also did a sudo apt autoremove while I was at it.
Restarted the machine, and now I have the 390.48 version driver successfully installed. The procedure was pretty painless.

As for the SweetHome3D program, this unfortunately did not help.
However I succeeded with the next suggestion in the FAQ: running SH3D compiled with the older Java3D library (SweetHome3D-Java3D-1_5_2)

2018. január 18.

New laptop: Dell Latitude 5480

Finally I am replacing the HP-Compaq TC-4400 (named Alice) I've been using since May 2008. Yes, for almost 10 years now. That is the notebook I started this blog for, so it's the end of an era for me.

I had to make plenty of compromises when choosing the replacement, but hey, it's new, it's fast, it's strong, it's even lighter a bit, and has better screen resolution. On the downside, it's bigger, it is not a tablet pc, and the keyboard is not exactly to my liking. Lucky me, the keys can be remapped.

The blog will be continued under the name Alice@Ubuntu even though I'll stop using the machine that gave the blog it's name. The content slowly shifted from machine specific configuration to more general topics throughout the years anyway.

2017. november 27.

Share clipboard and drag&drop between VirtualBox host and guest


  1. install VirtualBox guest additions
  2. open Machine > Settings... (Host+S key)
    1. open General > Advanced tab
    2. set Shared Clipboard and Drag'n'Drop to bidirectional

2017. augusztus 5.

How to completely remove Plex Media Server?

Source: https://support.plex.tv/hc/en-us/articles/201941078-Uninstall-Plex-Media-Server

  1. Shut down Plex Media Server
    service plexmediaserver stop
  2. Remove the installed package
    dpkg -r plexmediaserver
  3. Remove the library directory of plex
    rm -R /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/
But then, when I wanted to reinstall it, I ran into some errors, and the solution was to make sure that the /var/lib/plexmediaserver folder exists and the plex:plex user/group has owner access to it:
sudo mkdir /var/lib/plexmediaserver
sudo addgroup plex
sudo adduser plex plex
sudo chown plex:plex /var/lib/plexmediaserver