Saturday, August 17, 2013

IPMItool

check this website:



Blink:
ipmitool -H 192.168.0.130 chassis identify
Set the ip address:
ipmitool -U root -P root -H 192.168.0.120 lan set 1 ipsrc static
ipmitool -U root -P root -H 192.168.0.120 lan set 1 ipaddr 192.168.0.102
ipmitool -U root -P root -H 192.168.0.120 lan set 1 netmask 255.255.255.0
Print net config:
ipmitool -U root -P root -H 192.168.0.120 lan print
Reboot the server:
ipmitool -H server-ipmi -U root -P root chassis power reset

ipmitool on localhost without an ip

modprobe ipmi_si
modprobe ipmi_devintf
Enable the root user with a password:
ipmitool user set password 2 admin

Force the Server into Bios

[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root  chassis bootparam set bootflag force_bios
Set Boot Device to force_bios
[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root chassis power reset
Chassis Power Control: Reset

Force the Server to Boot to Disk

[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root chassis bootparam set bootflag force_disk
Set Boot Device to force_disk
[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root chassis power reset
Chassis Power Control: Reset

Force the Server to Boot PXE

[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root chassis bootparam set bootflag force_pxe
Set Boot Device to force_pxe
[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root chassis power reset 
Chassis Power Control: Reset

Refernces

Tuesday, July 23, 2013

nxclient arrow keys not working.

Inside your nx session, open a terminal window and run:

setxkbmap -model evdev -layout us

Replacing "us" with your desired layout if it isn't the US layout. Your keymap should be correct now. If you start your nx session using an .xsession/.xinitrc style script, you can add the setxkbmap command to the startup script.

Monday, June 17, 2013

getGEO return a list

> Dear All,
>
> I am trying to analyze a Microarray series data using "GEOquery". I
> get the below
> error when trying to extract the information.
>
> > gse = getGEO("GSE15709");
> > Meta(gse)
> Error in function (classes, fdef, mtable)  :
>  unable to find an inherited method for function "Meta", for signature
> "list"
> > GSMList(gse)[[1]]
> Error in function (classes, fdef, mtable)  :
>  unable to find an inherited method for function "GSMList", for
> signature "list"
>
> Thanks in advance for your help.
>
>
getGEO() defaults to GSEMatrix=TRUE.  Per the documentation, this returns a
list of ExpressionSet objects.  So, gse[[1]] is an ExpressionSet.  The
accessors that you are using above are for returns from calls to getGEO()
with GSEMatrix=FALSE.  Unless there is a specific need to get information
from the full GSE SOFT file, I would recommend staying with GSEMatrix=TRUE
and working with the more standard ExpressionSet object(s).

Hope that helps.

Sean


#########################
B = as(gse[[1]],"ExpressionSet")

then good to go.

Tuesday, June 11, 2013

RMA over a data.frame or a matrix

> Dear List,
>  
> I was wondering if RMA function can be applied to a data frame or a matrix??
> Thanks.
>  
> -Sohail


Hi,

If your matrix contains the intensity data from actual microarrays,
this is a function you could use (or leverage):

#
# intensity and intensitySD are objects equivalent to matrices.
#   They should contain probe intensities in rows and samples in
#   columns. Probe intensities should be ordered the same way they
#   are in a .CEL file.
# chipType is a string containing the chip type (see function
#   cleancdfname()).
# chipSizeX and chipSizeY specify the number of features on the chip.
#
CreateAffyBatch <- function( intensity, intensitySD, chipType, chipSizeX, chipSizeY )
{
    exprs <- data.matrix( intensity )
    se.exprs <- data.matrix( intensitySD )

    sampleIndices <- 1 : ncol( exprs )
    sampleNames <- paste( "sample", sampleIndices, sep = "" )

    colnames( exprs ) <- sampleNames
    colnames( se.exprs ) <- sampleNames

    phenoData.data <- as.data.frame( sampleIndices )
    rownames( phenoData.data ) <- sampleNames
    colnames( phenoData.data ) <- "sample"
    
    if( length( findClass( "AnnotatedDataFrame" ) ) == 1 )
    {
        phenoData <- new( "AnnotatedDataFrame", data = phenoData.data )
        phenoData at varMetadata[[1]] <- "arbitrary numbering"
    } else {
        phenoData <- new( "phenoData", pData = phenoData.data, varLabels = list( sample = "arbitrary numbering" ) )
    }

    affyBatch <- new( "AffyBatch", exprs = exprs, se.exprs = se.exprs,
        cdfName = chipType, annotation = cleancdfname( chipType, addcdf = FALSE ),
        ncol = chipSizeX, nrow = chipSizeY, phenoData = phenoData )

    return( affyBatch )
}

Friday, May 10, 2013

Solving the Transcendental equation by matlab.

example:

TO solve:

cos(x)*cosh(x)+1=0


Matlab commands:

f = @(x) cos(x)*cosh(x) + 1;
fzero(f,2)


reference:

http://www.mathworks.com/help/matlab/ref/fzero.html

Thursday, April 25, 2013

Installed postfix, but no qshape? (CC)


Here’s a simple one…
I installed a new FC12, and postfix, using “yum install postfix”. Afterward, after configuring main.cf, postfix ran fine through our simple testing, so I put it in service on a limited basis. However, once we started using it, qshape failed, with an error indicating it was not found.
It took me a couple of hours of my poor google skills to find the answer, so hopefully, if you find yourself in the same pickle, you can use this and it will help you.
First, separately install all the perl packages with this command:
“yum groupinstall perl development”  once you have that all done, (and here’s the magic) run:
“yum install postfix-perl-scripts”.
I know, qshape is *supposed* to be installed with postfix.  Only it wasn’t. and it took me all morning to figure out how to get it in there….
…..It worked for me.

Wednesday, April 24, 2013

Blog for Linux System Administrators. : Sendmail vs Postfix vs Qmail vs Exim

Blog for Linux System Administrators. : Sendmail vs Postfix vs Qmail vs Exim: We have choice in using MTA in linux. We can use sendmail, postfix, qmail or exim. The selection of MTA depends on many factor such as follo...