Friday, September 25, 2015

Ubuntu Domain join problem (pbis) - Error: Received error while querying lwsmd. [code 0x00000002

First create a systemd unit file for this service, and then enable it. The following worked for me on Ubuntu 15.04 (upgraded from 14.04) with PBIS 8.2.2.
Create the file lwsmd.service in /lib/systemd/system like this:

nano /lib/systemd/system/lwsmd.service

Here are the contents (paste this in to the file you created above).

[Unit]
Description=BeyondTrust PBIS Service Manager
After=network.target

[Service]
Type=forking
EnvironmentFile=/opt/pbis/libexec/init-base.sh
ExecStart=/opt/pbis/sbin/lwsmd --start-as-daemon
ExecReload=/opt/pbis/bin/lwsm refresh
ExecStop=/opt/pbis/bin/lwsm shutdown
# We want systemd to give lwsmd some time to finish gracefully, but still want
# it to kill lwsmd after TimeoutStopSec if something went wrong during the
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
# ExecStop, which would kill lwsmd. We are sending useless SIGCONT here to give
# lwsmd time to finish.
KillSignal=SIGCONT
PrivateTmp=true

[Install]
WantedBy=multi-user.target nss-lookup.target

Once this is done, make a symlink to this file in /etc/systemd/system:

cd /etc/systemd/system
ln -s /lib/systemd/system/lwsmd.service

At this point you should be able to type:

service lwsmd status

and see that the service exists and is enabled.
Then typing:

service lwsmd start

should start it up and have pbis working as expected.
Now to make it work at boot time. Enable the service with this command:

systemctl enable lwsmd.service

It should give some feedback about creating some symlinks.

Then reboot your computer and all should be working.

Wednesday, September 23, 2015

How to install a thesaurus in LibreOffice? Synonyms issue.

Using the standard installation of LibreOffice you don't have to install it. It is already installed. You can right click any word choosing the entry »Synonyms«. Now you will get a list of synonyms to the selected word. If this does not work

you can resolve the issue through installing Thesaurus:
sudo apt-get install openoffice.org-thesaurus-en-us
Then change the language option.
ToolsLanguageFor All Text → select English (USA)
you can now access the Synonyms option through right-click → Synonyms