ubuntu changing dash to bash

$ sudo update-alternatives --install /bin/sh sh /bin/bash 100
update-alternatives: using /bin/bash to provide /bin/sh (sh) in auto mode.

$ sudo update-alternatives --install /bin/sh sh /bin/dash 200
update-alternatives: using /bin/dash to provide /bin/sh (sh) in auto mode.

$ sudo update-alternatives --config sh
There are 2 choices for the alternative sh (providing /bin/sh).

Selection Path Priority Status
------------------------------------------------------------
* 0 /bin/dash 2 auto mode
1 /bin/bash 1 manual mode
2 /bin/dash 2 manual mode

Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /bin/bash to provide /bin/sh (sh) in manual mode.

WebSphere Application Server Script Library

I found some pre-defined jython scripts in the WAS installed dir I didn’t know existed… 😉

/scriptLibraries/

E.g. performance tunning.

$ cd /scriptLibraries/perfTuning/V70


$ ../../../bin/wsadmin.sh -f applyPerfTuningTemplate.py -clusterName MDM -templateFile ./peak.props -username -password
WASX7209I: Connected to process "dmgr" on node centos6i386CellManager01 using SOAP connector; The type of process is: DeploymentManager
WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[-clusterName, MDM, -templateFile, ./peak.props]"

Completed parsing parameters...
templateFile - ./peak.props
clusterName - MDM

Resolving cluster targets...

Applying server level tuning parameters for server:
----------------------------------------------------------------------
Cell: centos6i386Cell01 Type: DISTRIBUTED
Node: centos6i386Node01 Platform: linux
Version: 7.0.0.21
Server: mdmsrv01 Type: APPLICATION_SERVER
----------------------------------------------------------------------

Applying tuning parameters using property based configuration...
Log File : /usr/IBM/WebSphere/AppServer/v70/profiles/AppSrv01/logs/perfTuning.log
Template File : /usr/IBM/WebSphere/AppServer/v70/scriptLibraries/perfTuning/V70/./peak.props
NOTE: Please consult the report.log file to review results of property
based configuration.

Applying additional tuning parameters via normal wsadmin processing...

Applying Datasource tuning parameters to Default Datasource

Applying Datasource tuning parameters to DefaultEJBTimerDataSource

Applying Datasource tuning parameters to PLANTSDB

Applying Datasource tuning parameters to PLANTSDBNonJTA

Server level tuning complete!

Applying server level tuning parameters for server:
----------------------------------------------------------------------
Cell: centos6i386Cell01 Type: DISTRIBUTED
Node: centos6i386Node01 Platform: linux
Version: 7.0.0.21
Server: mdmsrv02 Type: APPLICATION_SERVER
----------------------------------------------------------------------

Applying tuning parameters using property based configuration...
Log File : /usr/IBM/WebSphere/AppServer/v70/profiles/AppSrv01/logs/perfTuning.log
Template File : /usr/IBM/WebSphere/AppServer/v70/scriptLibraries/perfTuning/V70/./peak.props
NOTE: Please consult the report.log file to review results of property
based configuration.

Applying additional tuning parameters via normal wsadmin processing...

Applying Datasource tuning parameters to Default Datasource

Applying Datasource tuning parameters to DefaultEJBTimerDataSource

Applying Datasource tuning parameters to PLANTSDB

Applying Datasource tuning parameters to PLANTSDBNonJTA

Server level tuning complete!

Applying cluster level tuning parameters for cluster:
----------------------------------------------------------------------
Cluster: MDM Type: APPLICATION_SERVER
----------------------------------------------------------------------

Applying Datasource tuning parameters to Default Datasource

Applying Datasource tuning parameters to PLANTSDB

Applying Datasource tuning parameters to PLANTSDBNonJTA

Cluster level tuning complete!

Saving the configuration changes...
NOTE: Server may require restart for all tuning changes to take effect.
Script completed!

Plenty of other goodies in here.

IBM WebSphere Application Server v7 on Fedora 16

First uncomment ip6 out of /etc/hosts and add your hostname/domainname

# cat /etc/hosts
127.0.0.1   arbitrary arbitrary.some.network.com localhost localhost.localdomain localhost4 localhost4.localdomain4

#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

 

Install the following rpms

# yum install compat-* ksh gtk2 gtk2-engines libXp libXmu libXtst pam rpm-build elfutils elfutils-libs libXft

Link ksh, this is for IHS

 # ln -s /bin/ksh /usr/bin/ksh

Upgrading Slackware 13.37 to current

I missed Slackware so now I’ve installed it on my power desktop to play around. One of the best distributions around.

Anyway I want to run current so I can have the latest greatest Kernel, GCC and all the other fun toys.

Edit slackpkg mirrors file to a current url, I’m using 64 bit slack.
# vim /etc/slackpkg/mirrors ftp://slackware.oregonstate.edu/pub/slackware/slackware64-current/

Run the following commands to sync up and run the updates.
# slackpkg check-updates
# slackpkg upgrade-all

When it ask to update LILO, Y(es)….. 😉

It will also ask:
Searching for NEW configuration files

Some packages had new configuration files installed.
You have four choices:

(K)eep the old files and consider .new files later

(O)verwrite all old files with the new ones. The
old files will be stored with the suffix .orig

(R)emove all .new files

(P)rompt K, O, R selection for every single file

What do you want (K/O/R/P)?
K

Now we need to fix these files up.

# cd /etc/
# find -name '*.new'
./mke2fs.conf.new
./vsftpd.conf.new
./mail/submit.cf.new
./mail/sendmail.cf.new
./virtuoso.ini.new
./httpd/extra/httpd-ssl.conf.new
./httpd/httpd.conf.new
./nscd.conf.new
./ca-certificates.conf.new
./ssl/openssl.cnf.new
./ssh/sshd_config.new

This is what I do for all the .new files:

# cp mke2fs.conf mke2fs.conf.org
# merge mke2fs.conf mke2fs.conf.org mke2fs.conf.new
# mv mke2fs.conf.new mke2fs.conf.$(date +%F)


This will merge the difference, create a backup of the original and one of the new just incase a future update makes another .new and overrides the current one.

After that, add any new packages that might have been added to current.

# slackpkg install-new

Reboot and see if it survived. 😉

Ending the touchpad jumping on Linux (openSUSE 12.1)

Here is how I stopped my Macbook Pro’s touch pad from jumping around when I’m typing. This is on openSUSE 12.1 and my Macbook Pro 5,3 (2009).

In my home directory I have a scripts directory for various things so that is why it is here…

/home/justin/scripts/syndaemon.sh


#!/bin/bash
/usr/bin/syndaemon -t -k -i 2 -d &

Then I add this to “autostart” in KDE as a script.