synchronize clipboards in opensuse 12.3

[scope]
Installed a Opensuse 12.3 with Lxde as a guest os in vmware player 6.0.2 within an Opensuse 13.1 Host.

[issue]
clipboard synchronization between the Host OS and the Guest OS is broken.

[Workarround]
It seems to be an issue of host system. Linux uses different primay and secondary clipboard manager, i need to synchronize them all with “autocutsel”. After installed autocutsel this problem seems to be solved.

[Solution]
It seems to be an host kernel based issue. The copy of the same guest os is working well on another host.

 

 

Advertisements

custom the min-max-button in gnome 3 terminal

[issue]
After installing the gnome 3 for my opensuse 13.1 the minimize and maximize button is missing by defaut.

[solution]
Start the gnome tweak tool in your system terminal with your current user (not root)

$: gnome-tweak-tool &

choose -> Windows -> Titlebar Buttons -> Maximize and Minimize : on

This is also the way to enable icons on Desktop,

choose -> Desktop -> icons on Desktop : on

My system kernel : Linux VI3LINUX2 3.11.10-11-desktop

 

suse init script for DFS Mount with kerberos and AD Login

#! /bin/bash
#
# This script is used to control during bootup.
#
# usage: nasmount [start|stop]
#
# start
# stop
# modified by Yingding Wang 06.11.2012

### BEGIN INIT INFO
# Provides:          nasmount
# Required-Start:    $network
# Required-Stop:
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Short-Description: init script for nas mount
# Description: this script mount the DFS (NAS) with Kerberos User from AD during the starting up
### END INIT INFO

mountDIR=/nas #your mount point in your linux system
mountingDIR=//nas/subdirectory #your mounting point in your window DFS or NAS

# AD User and AD password
ad_user=<your ad_user>
ad_password=<your ad_user_pw>
# Access User for Mounting Directory in DFS
user=$ad_user
password=$ad_password

# DFS Domin
dom=Your_Realm

# Access Richts Setting for Mount Point
ac_user_name=<access username>
ac_group_name=<access groupname>
uid=`id -u $ac_user_name`
gid=`getent group $ac_group_name | cut -d: -f3`

# Logging prefix
prompt=Logging:

#
# Main
#
case $1 in
  start)
   #creat mount point directory
   if [ ! -d $mountDIR ]
   then
     echo "$prompt mount point $mountDIR doesn't exist"
     mkdir $mountDIR;
     echo "$prompt mount point $mountDIR is created"
   else
   #checking if mountDIR is amountpoint
     if /bin/mountpoint -q $mountDIR
     then
       echo "$prompt Directory exist, it will be unmounted"
       /bin/umount $mountDIR
     else
     # do nothing
     echo "$prompt Directory not mounted"
     fi
   fi

   if [ $? -gt 0 ]; then
      echo "cached error"
      $?=0
   fi

   # get kerbos granting ticket from AD, the user AD_USER muss be a memeber of Realm in AD
   echo "$prompt getting kerberos ticket with kinit"
   echo $ad_password | kinit $ad_user;

   # after the ticket successfully granted, mount nas Directory to mount point /nas1
   # use uid and gid option to specify the user id and group id for mount point access rights
   /sbin/mount.cifs $mountingDIR $mountDIR -o user=$user,dom=$dom,password=$password,uid=$uid,gid=$gid
   if [ $? -gt 0 ]; then
     echo "catched error"
     $?=0
   fi

   #Log output line
   #echo `date` >> /var/log/nasmount.log
   #echo "mount successful" >> /var/log/nasmount.log
   echo "$prompt done."
  ;;

  stop)
   #checking if mountDIR is a mountpoint
   if /bin/mountpoint -q $mountDIR
   then
     echo "$prompt Directory exist, it will be unmounted"
     /bin/umount $mountDIR
   else
   #do nothing
     echo "$prompt Directory not mounted"
   fi
   if [ $? -gt 0 ]; then
     echo "cached error";
     $?=0
   fi
   echo "$prompt done."
  ;;

  *)
  ## If no parameters are given, print which are availabel.
   echo "Usage: $0 {start|stop}"
   exit 1
  ;;
esac

exit

AccessRightsForLibreOffice

[Problem background]

ich made a new user for my Opensuse System. Want to use libre Office.

[Issue]

The application cannot be started. LibreOffice user installation could not be processed due to missing access rights. Please make sure that you have sufficient access rights for the following location and restart LibreOffice: /home/<username>/.config/.libreoffice/3-suse

[Workarrounds]

The Issue means libreoffice can not access the .config/.libreoffice directory

As i looked to the rights it is made only for root access

so just execute

“sudo chown -R <username>:users /home/<username>/.config/.libreoffice/”

to change the permission of this .config directory

[Results]

After permission change, libre Office runs for the appropriate user. I am just still wondering how it comes, the .libreoffice directory has root as owner at the very beginning.

[Comments]

Libre Office is a good alternativ to microsoft office sets, but why cannot opensource just work without any professional skills? 🙂 life is still hard for a normal people in linux worlds.

Solve mouse stuck issue linux VM guest

[Environment]

Opensuse 11.3 as Linux VM guest operating system
vmware server 2.02 as vmhost in window7 x64bit
vmware player 3.12 as vmhost in window7 x86

[Problem]

The left mouse buttons “stacks” in a “pressed” state when I keep it
pressed for more that a moment! So, when I move a window for example,
when I physically release the button, the X does not release it! It
“thinks” that I keep press it.

The mouse left button is locked but I can unlock it with a single right
click or escape with keyboard.

The mouse click and drag . . . gets stuck in stuck state . . .
The mouse click was going dead from time to time as well.

[Solution/Workarround]

** Edit as root user the /lib/udev/rules.d/69-xorg-vmmouse.rules file. **

/*From*/

ACTION==”add|change”, ENV==”?*”, ATTRS==”i8042 AUX port”,
PROGRAM=”/usr/bin/vmmouse_detect”, ENV{ID_INPUT.tags}=”vmmouse”

/*To*/

ACTION==”add|change”, ENV==”?”, ATTRS==”i8042 AUX port”,
KERNEL==”event[0-9]”, PROGRAM=”/usr/bin/vmmouse_detect”,
ENV{ID_INPUT.tags}=”vmmouse”

/*Or From*/

ACTION==”add|change”, ENV{ID_INPUT_MOUSE}==”?*”, ATTRS==”i8042 AUX port”,
PROGRAM=”/usr/bin/vmmouse_detect”, ENV{ID_INPUT.tags}=”vmmouse”

/*To*/

ACTION==”add|change”, ENV{ID_INPUT_MOUSE}==”?”, ATTRS==”i8042 AUX port”,
KERNEL==”event[0-9]”, PROGRAM=”/usr/bin/vmmouse_detect”, ENV{ID_INPUT.tags}=”vmmouse”

[Note]
Keep in mind that the * charator in both case in ENV parts should be delete, and add KERNEL==”even[0-9]” part in the rule.

[References]

http://forums.opensuse.org/english/get-technical-help-here/applications/449508-11-3-vmware-player-issues.html
http://communities.vmware.com/message/1581754