Linux - Google Earth

[leo@thinkleo2 ~]$ /opt/google/earth/free/google-earth Google Earth appears to be running already. Please kill the existing process, or delete /home/leo/.googleearth/instance-running-lock if this is an error. [leo@thinkleo2 ~]$ rm /home/leo/.googleearth/instance-running-lock [leo@thinkleo2 ~]$ /opt/google/earth/free/google-earth

6 January 2012 @ 18:56 · Updated: 30 June 2026 @ 03:28 · leo

AIX - loopmount

Finally on aix 6.1 ibm have introduced mounting of iso directly without raw copy on lv: Check if necessary loopback device is available # lsdev -C | grep loop if nothing returned, run: # mkdev -c loopback -s node -t loopback loop0 Available If the device is not present on system you get this error: 1320-003 loopmount: Specified loopback device is not found in ODM Now for mount: # loopmount -i /iso/dvd.iso -l loop0 -o "-V cdrfs -o ro" -m /mnt/dvd And umount: ...

19 December 2011 @ 04:10 · Updated: 30 June 2026 @ 03:28 · leo

VIO - iso virtual DVD

Example of PowerVM virtual dvd setup: login: padmin padmin's Password: 1 unsuccessful login attempt since last login. Last unsuccessful login: Mon Jan 31 18:51:28 CST 2011 on /dev/vty0 Last login: Mon Jan 31 18:28:29 CST 2011 on /dev/vty0 $ $ mkrep -sp rootvg -size 10G Virtual Media Repository Created Repository created within "VMLibrary" logical volume $ mkvopt -name 6_1_6osp.iso -dev cd0 -ro $ $ mkvdev -vadapter vhost1 -fbo -dev vcd1 vcd0 Available $ loadopt -vtd vcd0 -disk 6_1_6osp.iso $ unloadopt -vtd vcd0

19 December 2011 @ 03:48 · Updated: 30 June 2026 @ 03:28 · leo

Linux - IBM LinTape driver

If you need to user ibm lto tape drive inside IBM, Adic, Dell tapelibrary, with Tivoli Storage Manager is necessary to use Download latest driver from IBM Fixcentral: Storage Systems => Tape Systems => Tape device drivers and software => Linux Get two two RPMs (my system is an RHEL 5 on 32bit hardware) : lin_tape-1.61.0-1.src.rpm <== Kernel module lin_taped-1.61.0-rhel5.i386.rpm <== Binary services First step, rebuild the source: # rpmbuild --rebuild lin_tape-1.61.0-1.src.rpm` ` Installing lin_tape-1.61.0-1.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.625 + umask 022 + cd /usr/src/redhat/BUILD + cd /usr/src/redhat/BUILD + rm -rf lin_tape-1.61.0 + /bin/gzip -dc /usr/src/redhat/SOURCES/lin_tape-1.61.0.tgz [cut] Wrote: /usr/src/redhat/RPMS/i386/lin_tape-1.61.0-1.i386.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.18792 + umask 022 + cd /usr/src/redhat/BUILD + cd lin_tape-1.61.0 + rm -rf /var/tmp/lin_tape-1.61.0-1-root-root + exit 0 Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.18792 + umask 022 + cd /usr/src/redhat/BUILD + rm -rf lin_tape-1.61.0 + exit 0 Second step, install all: ...

19 December 2011 @ 03:41 · Updated: 30 June 2026 @ 03:28 · leo

AIX - lpp incosistent

# lppchk –v lppchk: The following filesets need to be installed or corrected to bring the system to a consistent state: 9a33182fe26f1beae04e59e5cb6d3cdb 0.0.0.0 (COMMITTED) # lslpp -L Backup the ODM using the following command: # tar -cvf /tmp/odm.tar ./etc/objrepos ./usr/lib/objrepos # export ODMDIR=/usr/lib/objrepos # odmget -q name= lpp # odmdelete -q name= -o lpp # odmdelete -q lpp_name= -o product # odmdelete -q lpp_id= -o history # odmdelete -q lpp_id= -o inventory # export ODMDIR=/etc/objrepos # odmdelete -q name= -o lpp # odmdelete -q lpp_name= -o product # odmdelete -q lpp_id= -o history # odmdelete -q lpp_id= -o inventory # export ODMDIR=/etc/objrepos Check lppchk -v again to see if those entries are gone from ODM

19 December 2011 @ 03:17 · Updated: 30 June 2026 @ 03:28 · leo

AIX - Warning, savebase failed

0516-1734 extendlv: Warning, savebase failed. Please manually run 'savebase' before rebooting. If you run savebase -v and you get “non-bootable LV name given” try reconstucting your /dev/ipldevice file. Run savebase -v again and if you get the same error, try follow procedure: # bosboot -ad /dev/hdiskX (a disk that has hd5 on it) # bosboot -ad /dev/hdiskY (a disk that has hd5 on it) # ipl_varyon -i [You’ll get a return on every physical disk on the system] ...

19 December 2011 @ 03:05 · Updated: 30 June 2026 @ 03:28 · leo

AIX - lslpp

Memo: lslpp List the package that owns a file # lslpp -w List the files in a package # lslpp -f List all packages installed # lslpp -L

19 December 2011 @ 02:28 · Updated: 30 June 2026 @ 03:28 · leo

NetworkManager modifies /etc/hosts

There is an annoying bug (or feature depends on point of view) every restart/reconnect managed by NetworkManager, restore the original /etc/hosts loaded on startup. I’ve made a 3 line script inspired by visudo to manual edit the hosts file and prevent the other unexpected modifies: File like (with +x attribute): /usr/sbin/vihosts #!/bin/sh sudo chattr -i /etc/hosts sudo vim /etc/hosts sudo chattr +i /etc/hosts

26 November 2011 @ 22:09 · Updated: 30 June 2026 @ 03:28 · leo

Citrix - ICAClient issue on Linux REHL6

Another stupid Citrix ICAClient issue on Redhat linux: [leo@thinkleo2 ~]$ /usr/lib/ICAClient/wfcmgr -icaroot /usr/lib/ICAClient Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Error: Aborting: no fontset found Solution 1 force language C (my favourite for any lang problems): [leo@thinkleo2 ~]$ export LANG=C Solution 2 remove charset cjkuni: [leo@thinkleo2 ~]$ sudo yum remove cjkuni* Loaded plugins: priorities, product-id, refresh-packagekit, rhnplugin, subscription-manager Updating Red Hat repositories. Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package cjkuni-fonts-common.noarch 0:0.2.20080216.1-34.el6 will be erased ---> Package cjkuni-fonts-ghostscript.noarch 0:0.2.20080216.1-34.el6 will be erased ---> Package cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-34.el6 will be erased ---> Package cjkuni-uming-fonts.noarch 0:0.2.20080216.1-34.el6 will be erased --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================= Package Arch Version Repository Size ============================================================================================================================= Removing: cjkuni-fonts-common noarch 0.2.20080216.1-34.el6 @anaconda-RedHatEnterpriseLinux-201105101829.i386/6.1 0.0 cjkuni-fonts-ghostscript noarch 0.2.20080216.1-34.el6 @rhel-i386-workstation-6 6.2 k cjkuni-ukai-fonts noarch 0.2.20080216.1-34.el6 @rhel-i386-workstation-6 17 M cjkuni-uming-fonts noarch 0.2.20080216.1-34.el6 @anaconda-RedHatEnterpriseLinux-201105101829.i386/6.1 21 M Transaction Summary ============================================================================================================================= Remove 4 Package(s) Installed size: 37 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Erasing : cjkuni-fonts-ghostscript-0.2.20080216.1-34.el6.noarch 1/4 Erasing : cjkuni-ukai-fonts-0.2.20080216.1-34.el6.noarch 2/4 Erasing : cjkuni-uming-fonts-0.2.20080216.1-34.el6.noarch 3/4 Erasing : cjkuni-fonts-common-0.2.20080216.1-34.el6.noarch 4/4 duration: 336(ms) Installed products updated. Removed: cjkuni-fonts-common.noarch 0:0.2.20080216.1-34.el6 cjkuni-fonts-ghostscript.noarch 0:0.2.20080216.1-34.el6 cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-34.el6 cjkuni-uming-fonts.noarch 0:0.2.20080216.1-34.el6 Complete! [leo@thinkleo2 ~]$

24 November 2011 @ 06:05 · Updated: 30 June 2026 @ 03:28 · leo

Postfix - Auth Dovecot Backend

main.cf file Postfix related parametes: smtpd_sasl_authenticated_header = yes smtpd_sasl_auth_enable = yes smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth dovecot.conf file Dovecot related parameters: auth default { mechanisms = plain login […removed irrelevance parameters…] socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } }

27 October 2011 @ 22:21 · Updated: 30 June 2026 @ 03:28 · leo