Author Archives: Hans Henrik

Aftershot Pro

For editing my photos I have found Corel Aftershot Pro.

Yes, it cost money but I think is cheap compared to other solutions.

The work flow is simple and very easy to use.

But there is some flaws and here have Dieter Steiner created some great plug-ins.

I’m especially happy with the Wavelet Denoise and AutoLevels created by roland65.free.fr/asp

I made a small donation to Dieter and he asked me how felt about his plug-in and here it is:

Hi Dieter,

Your are welcome. I already feel the donation is way to small.

I just moved from Windows/Adobe Lightroom/Photoshop to Linux/Darktable/GIMP/Aftershot Pro.

In the start I was a bit disappointed with Darktable, it was too geeky, but I found Aftershot Pro and felt right away more comfortable.

But something was missing and I started looking at the plug-ins and found your great plug-ins.

I can only say 1 thing: Wahooo, I have been so comfortable with my edits that Adobe is gone from my mind.

My favorite plug-in is the Wavelet Denoise, now I can remove noise without loosing image quality, or maybe its the AutoLevels plug-in, with 1 click I have a clear image with good balance. I can’t decide.

If I have to give a bit of critique then a tutorial for Wavelet Sharpen plug-in would really help as I have a hard time getting good results but I’m sure its just as great as the the other plug-ins.

What you have created is simply marvelous!!! Keep up the great work!!!

Best Regards,

Hans

Javs plugin for firefox on Linux 64-bit

Install

The instructions below are for installing version Java 7 Update 7 (7u25). If you are installing another version, make sure you change the version number appropriately when you type the commands at the terminal.

Example: For Java 6u35 replace 7u25 with 6u35. Note that, as in the preceding example, the version number is sometimes preceded with the letter u and sometimes it is preceded with an under-bar, for example, re1.7.0_25.

  1. Change to the directory in which you want to install. Type: For example, to install the software in the /usr/local/java/ directory, Type:cd /usr/local/java/Note about root access: To install Java in a system-wide location such as /usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install the Java in your home directory or a subdirectory for which you have write permissions
  2. Move the .tar.gz archive binary to the current directory.
  3. Unpack the tarball and install Java
    tar zxvf jre-7u25-linux-i586.tar.gz

    The Java files are installed in a directory called jre1.7.0_25 in the current directory.
    In this example, it is installed in the /usr/local/java/jre1.7.0_25 directory.
    When the installation has completed, you will see the word Done.

  4. Delete the .tar.gz file if you want to save disk space.

Enable and Configure

To configure the Java Plugin follow these steps:

  1. Exit Firefox browser if it is already running.
  2. Uninstall any previous installations of Java Plugin.Only one Java Plugin can be used at a time. When you want to use a different plugin, or version of a plugin, remove the symbolic links to any other versions and create a fresh symbolic link to the new one.
  3. Create a symbolic link to the libnpjp2.so file in the browser plugins directory (On kubuntu 13.04: /usr/lib/firefox-addons/plugins)Go to the plugins sub-directory under the Firefox installation directorycd <Firefox installation directory> /pluginsCreate the symbolic link (/usr/local/java/jre1.7.0_25)

    ln -s <Java installation directory> /lib/amd64/libnpjp2.so

  4. Note: If you are upgrading your Java version then before creating new symbolic link you should remove old symbolic link to enable latest downloaded Java.

Myth TV and Yousee finally up and running

Got Myth TV and and Yousee (Copenhagen) to play together with HDHomeRun.

Multiplex info can be found in the dtv_multiplex spreadsheet (you can upload it to the mysql database).

If you would like to run Mythtv frontend in a window then from a Term run:

mythfrontend -w -geometry 960x600

This will also help debugging as the fronted write debug info to the console.

I also recommend to manually stop the back end before running mythtv-setup:

sudo service stop mythtv-backend
mythtv-setup
sudo service start mythtv-backend
mythfilldatabase 

And finally… if mythtv-backend have problems connecting to the database then grant  access to mythtv on mythconverg scheama in the database:

?> mysql --user=root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 244
Server version: 5.5.32-0ubuntu0.13.04.1 (Ubuntu)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. 
All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current 
input statement.
mysql> connect mysql
mysql> GRANT ALL PRIVILEGES on mythconverg to 'mythtv'@'localhost' 
IDENTIFIED BY '<mythtvs password>';
mysql> GRANT ALL PRIVILEGES on mythconverg to 'mythtv'@'%' 
IDENTIFIED BY '<mythtvs password>';
mysql> exit

A very good source for setting up MythTV is MythTV-HOWTO – 0.26: section 9

Kubuntu and Timezones

If you have a problem with the timezone and the local time in Kubuntu you might try this:

sudo dpkg-reconfigure tzdata

Current default time zone: 'Europe/Copenhagen'
Local time is now:      Thu May 23 08:06:38 CEST 2013.
Universal Time is now:  Thu May 23 06:06:38 UTC 2013.

Multiple Display Config and AMD

If you have multiple display and a AMD grahics card and want to expand the desktop to all displays you might get a message like :

required virtual size does not fit available size: requested=
(3200, 1200), minimum=(320, 200), maximum=(1920, 1920)

To solve this you have to run the AMD display configuration:

sudo aticonfig --initial

to re-initialize your configuration files. You might have to restart (I did)

Now run:

sudo amdcccle

and you’ll be able to configure dual display.

Go to Display Manager and choose Multi-display desktop with display(s)… in Multi-Display tab for both monitors.

Restart Ubuntu after this, Then disable the “Mirror monitors” option in the Ubuntu display settings.

You might have to move the display around in the Ubuntu display setting to get things right.

Mount extern NFS filesystem

1. You need to install nfs-command package as follows (open terminal and type the following command):

$ sudo apt-get update
$ sudo apt-get install nfs-common

2. See The List Of All remote shares

$ showmount -e server-Ip-address
$ showmount -e 10.25.1.132

Sample outputs from my 10.25.1.132 NFS server:

Export list for basil:

/volume1/Photo     *
/volume1/Video     *
/volume1/NetBackup 10.25.1.*
/volume1/Music     10.25.1.*

3. Mount Shared Directory

Now mount /Music directory as follows:

$ sudo mkdir /mnt
$ sudo mkdir /mnt/Basil
$ sudo mkdir /mnt/Basil/Music
$ sudo mount -o soft,intr,rsize=8192,wsize=8192 10.25.1.132:/volume1/Music /mnt
$ df -h

Output from df command

Filesystem                   Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root   24G  6.0G   16G  28% /
none                         4.0K     0  4.0K   0% /sys/fs/cgroup
udev                         4.1G  4.0K  4.1G   1% /dev
tmpfs                        824M  800K  824M   1% /run
none                         5.0M     0  5.0M   0% /run/lock
none                         4.1G  160K  4.1G   1% /run/shm
none                         100M   56K  100M   1% /run/user
/dev/sda1                    228M   30M  187M  14% /boot
10.25.1.132:/volume1/Music   7.2T  3.8T  3.4T  53% /mnt/Basil/Music

4. How Do I Mount NFS Automatically After Reboot?

Edit /etc/fstab, enter:

$ sudo vi /etc/fstab

Append the following line:

10.25.1.132:/volume1/Music  /mnt/Basil/Music noauto,soft,intr,rsize=8192,wsize=8192

Save and close the file.

5. How Do I Remove Mounted NFS Directory (unmount NFS)?

Type the following command:

$ cd
$ sudo umount /nfs
$ df -h

Enable LDAP SUDOers on client

Copied from HOW TO: Configure LDAP for SUDO Support on Ubuntu Server 9.10 (Karmic Koala)
With some addition text by me and works on Ubuntu 13.04

1.) Install LDAP Client Configuration

I. Get LibNSS-LDAP package
TIP! Have your LDAP IP, Base Name, Admin Account and Admin Password Handy before executing this command.
Code:
sudo apt-get install libnss-ldap

…nCurses based setup screen will ask you information about your LDAP setup

 

II. Enable LDAP Support in PAM system

Code:
sudo auth-client-config -t nss -p lac_ldap

III. Verify PAM based LDAP Support

Code:
sudo pam-auth-update

NOTE: Skip Step 2 for installation on the LDAP server as we already did this above!
2.) Install sudo-ldap package

I. You will need to drop fully into root mode for this part!

Code:
sudo su

II. Turn off SUDO safety switch

Code:
export SUDO_FORCE_REMOVE=yes

III. Get package

Code:
apt-get install sudo-ldap

IV. Turn on SUDO Safety switch

Code:
export SUDO_FORCE_REMOVE=no

V. Drop back to user-land mode

Code:
exit

3.) Manually setup sudo redirection from /etc/sudoers to LDAP directory

I. Add support for sudo extentions in /etc/ldap.conf
WARNING: Take note of the double “>>” in line, you do NOT want to accidentally blow out your file!

Code:
sudo echo "sudoers_base ou=SUDOers,dc=example,dc=com" >> /etc/ldap.conf

II. Symbolically link Sudo Ldap Config file to main LDAP config file
NOTE: This is not obvious in ANY documentation I have reviewed, only support forums reveled this.
This file (sudo-ldap.conf) may already exist so check and rename if so

Code:
sudo ln -s /etc/ldap.conf /etc/sudo-ldap.conf

III. Add support for sudo / ldap communication in NS Switch configuration
WARNING: Take note of the double “>>” in line, you do NOT want to accidentally blow out your file!

The below line might already be in the file (nsswitch.conf) so chcek and one run if not. On my system is was already there.

Code:
sudo echo "sudoers: ldap" >> /etc/nsswitch.conf

So good luck 🙂

Goodbye Adobe

Dear Adobe,
I have been a Photoshop user for many years and have always liked your products. It have been good and a steady follower for all years.
I started out as a Photoshop Elements user and later Lightroom and when I had the money I bought Photoshop CS 6 on sale from Amazom.
I pay for software when the time, price and budget is right and as I’m a private amateur photographer the budget is not very big but I like quality and you software has given it to me all the years.
Your new cloud solution is way to expensive for me so it’s time to say goodbye.
Thank you for the good time we had together. I enjoyed it.
My best wishes to you all at Adobe

Ubuntu LDAP Client Config

The below is copied from the blog devnotcorp
It’s the simplest way I have found enabling LDAP authentication for Ubuntu. I have tested it on Ubuntu 13.04

1. sudo apt-get install libnss-ldap libpam-ldap ldap-auth-config

Installs auth-client-config ldap-auth-client ldap-auth-config libnss-ldap libpam-ldap and configures /etc/ldap.conf.
During install the following settings can be configured:

Should debconf manage LDAP configuration? Yes
LDAP server Uniform Resource Identifier: ldapi://ldap.mydomain
If you see errors like the following in your /var/log/auth.log, try to change ldapi to ldap:
May 10 12:47:30 sonar getent: nss_ldap: could not connect to any LDAP server as (null) – Can’t contact LDAP server
May 10 12:47:30 sonar getent: nss_ldap: failed to bind to LDAP server ldapi://ldap.mydomain: Can’t contact LDAP server
May 10 12:47:30 sonar getent: nss_ldap: could not search LDAP server – Server is unavailable
Distinguished name of the LDAP search base: dc=mydomain,dc=com
LDAP version to use: 3
Make local root Database admin: No
Does the LDAP database require login? No
Local crypt to use when changing passwords: md5

You can reconfigure the settings later on with
sudo dpkg-reconfigure ldap-auth-config

2. sudo auth-client-config -t nss -p lac_ldap

Configures /etc/nssswitch.conf.

3. sudo pam-auth-update

Configures /etc/pam.d/common-session.
Select the authentication methods to enable.

Now you can login to this client using your username and password stored in the LDAP directory, but you have no homedir.

So add this line to /etc/pam.d/common-session:

4. session required pam_mkhomedir.so skel=/etc/skel/ umask=0022

Creates homedir for user if it doesn’t exist.

To be able to type in user name during login (found as a comment for another LDAP client configuration)

5. sudo /usr/lib/lightdm/lightdm-set-defaults -m true

That’s it 🙂