After starting ROOT, need to check that it can make plot windows. In root, run this command to open up a new window.
root [0] TCanvas c
After starting ROOT, need to check that it can make plot windows. In root, run this command to open up a new window.
root [0] TCanvas c
If on starting matlab, you get this error:
terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid
Set this environment variable.
$ export LC_ALL="en_US.utf8"
Matlab should then start ok.
To run a kickstart installation for RHEL6, boot as usual. At the window “Welcome to Red Hat Enterprise Linux 6.0”, select “Install or upgrade an existing system”. Press the tab key to stop the boot process. You should be presented with a prompt that looks like this:
> vmlinuz initrd=initrd.img
Add your kickstart information to the end of this prompt. So, it should look something like this:
> vmlinuz initrd=initrd.img linux ks=http://rhel6.example.com/ks/cfg/org/24/label/kickstart_file ip=192.168.4.45 netmask=255.255.255.0 gateway=192.168.4.1 dns=192.168.5.14
(all on one line)
[mh@sh ~/latex]$ latex intro.tex [mh@sh ~/latex]$ dvips -o intro.ps intro.dvi [mh@sh ~/latex]$ ps2pdf intro.ps
A student wanted the latest version of ROOT added to the ups database. The software was already installed in /cdf/code/cdfsoft/root, but didn’t show up with ups list -a root. To fix this, I became the owner of all our cdf software and ran the following command:
ups declare root v_5_22_00j -r root/v5_22_00j-GCC_3_4_6/Linux+2.6 -f Linux+2 -z /cdf/code/cdfsoft/products/upsdb -m root.table -q GCC_3_4_6
It took a few times to get this correct. If you make a mistake you can run the undeclare command, or even easier, just delete the file in /cdf/code/cdfsoft/products/upsdb/root/v_5_22_00j and then run the declare command again.
All the software is installed in /cdf/code/cdfsoft/products. Then look in root/v5_22_00j-GCC_3_4_6 to find that version. The important bit for ups is the table file, which in this case is in /cdf/code/cdfsoft/products/root/v5_22_00j-GCC_3_4_6/Linux+2.6/ups/root.table.
[/ups]$ more root.table File = table Product = root Group: Flavor = ANY Qualifiers = "GCC_3_4_6" Flavor = ANY Qualifiers = "GCC_3_4_6:debug" Flavor = ANY Qualifiers = "64bit:GCC_3_4_6" Flavor = ANY Qualifiers = "64bit:GCC_3_4_6:debug" Common: Action = setup setupEnv() prodDir() envSet(ROOTSYS,${UPS_PROD_DIR}); envPrepend(LD_LIBRARY_PATH,${ROOTSYS}/lib) envPrepend(PYTHONPATH,${ROOTSYS}/lib) pathPrepend(PATH,${ROOTSYS}/bin) End:
This is the file that lists the flavor and qualifiers that must be used when declaring the version.
C:\Documents and Settings\Administrator\Desktop\tw_cli-windows-x86-9.4.1.3>tw_cli.exe //EDGWIN> info c0 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 OK - - 64K 1629.74 ON OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 233.76 GB 490234752 WD-WCANY2312070 p1 OK u0 233.76 GB 490234752 WD-WCANY2311250 p2 DEVICE-ERROR u0 233.76 GB 490234752 WD-WCANY1796905 p3 OK u0 233.76 GB 490234752 WD-WCANY2265331 p4 OK u0 233.81 GB 490350672 WD-WCAT1A636279 p5 OK u0 233.81 GB 490350672 WD-WMAYP3458409 p6 OK u0 233.76 GB 490234752 WD-WCANY2312032 p7 OK u0 233.81 GB 490350672 WD-WCAT1H074670 //EDGWIN> maint remove c0 p2 Removing port /c0/p2 ... Done. //EDGWIN> info c0 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 DEGRADED - - 64K 1629.74 OFF OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 233.76 GB 490234752 WD-WCANY2312070 p1 OK u0 233.76 GB 490234752 WD-WCANY2311250 p2 NOT-PRESENT - - - - p3 OK u0 233.76 GB 490234752 WD-WCANY2265331 p4 OK u0 233.81 GB 490350672 WD-WCAT1A636279 p5 OK u0 233.81 GB 490350672 WD-WMAYP3458409 p6 OK u0 233.76 GB 490234752 WD-WCANY2312032 p7 OK u0 233.81 GB 490350672 WD-WCAT1H074670 //EDGWIN> info c0 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 DEGRADED - - 64K 1629.74 OFF OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 233.76 GB 490234752 WD-WCANY2312070 p1 OK u0 233.76 GB 490234752 WD-WCANY2311250 p2 NOT-PRESENT - - - - p3 OK u0 233.76 GB 490234752 WD-WCANY2265331 p4 OK u0 233.81 GB 490350672 WD-WCAT1A636279 p5 OK u0 233.81 GB 490350672 WD-WMAYP3458409 p6 OK u0 233.76 GB 490234752 WD-WCANY2312032 p7 OK u0 233.81 GB 490350672 WD-WCAT1H074670 //EDGWIN> info c0 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 DEGRADED - - 64K 1629.74 OFF OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 233.76 GB 490234752 WD-WCANY2312070 p1 OK u0 233.76 GB 490234752 WD-WCANY2311250 p2 NOT-PRESENT - - - - p3 OK u0 233.76 GB 490234752 WD-WCANY2265331 p4 OK u0 233.81 GB 490350672 WD-WCAT1A636279 p5 OK u0 233.81 GB 490350672 WD-WMAYP3458409 p6 OK u0 233.76 GB 490234752 WD-WCANY2312032 p7 OK u0 233.81 GB 490350672 WD-WCAT1H074670 //EDGWIN> rescan Rescanning controller /c0 for units and drives ...Done. Found the following unit(s): [none]. Found the following drive(s): [none]. //EDGWIN> info c0 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 DEGRADED - - 64K 1629.74 OFF OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 233.76 GB 490234752 WD-WCANY2312070 p1 OK u0 233.76 GB 490234752 WD-WCANY2311250 p2 OK - 233.81 GB 490350672 WD-WMAYP3479443 p3 OK u0 233.76 GB 490234752 WD-WCANY2265331 p4 OK u0 233.81 GB 490350672 WD-WCAT1A636279 p5 OK u0 233.81 GB 490350672 WD-WMAYP3458409 p6 OK u0 233.76 GB 490234752 WD-WCANY2312032 p7 OK u0 233.81 GB 490350672 WD-WCAT1H074670 //EDGWIN> info c0 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 DEGRADED - - 64K 1629.74 OFF OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 233.76 GB 490234752 WD-WCANY2312070 p1 OK u0 233.76 GB 490234752 WD-WCANY2311250 p2 OK - 233.81 GB 490350672 WD-WMAYP3479443 p3 DEVICE-ERROR u0 233.76 GB 490234752 WD-WCANY2265331 p4 OK u0 233.81 GB 490350672 WD-WCAT1A636279 p5 OK u0 233.81 GB 490350672 WD-WMAYP3458409 p6 OK u0 233.76 GB 490234752 WD-WCANY2312032 p7 OK u0 233.81 GB 490350672 WD-WCAT1H074670 //EDGWIN> /c0/u0 start rebuild disk=2 Sending rebuild start request to /c0/u0 on 1 disk(s) [2] ... Done. //EDGWIN> info c0 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 REBUILDING 0 - 64K 1629.74 OFF OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 233.76 GB 490234752 WD-WCANY2312070 p1 OK u0 233.76 GB 490234752 WD-WCANY2311250 p2 DEGRADED u0 233.81 GB 490350672 WD-WMAYP3479443 p3 OK u0 233.76 GB 490234752 WD-WCANY2265331 p4 OK u0 233.81 GB 490350672 WD-WCAT1A636279 p5 OK u0 233.81 GB 490350672 WD-WMAYP3458409 p6 OK u0 233.76 GB 490234752 WD-WCANY2312032 p7 OK u0 233.81 GB 490350672 WD-WCAT1H074670
[~]# ./tw_cli //cp> info c8 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 OK - - 64K 1862.61 ON OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 465.76 GB 976773168 WD-WCANU2126397 p1 OK u0 465.76 GB 976773168 WD-WCANU2051520 p2 OK u0 465.76 GB 976773168 WD-WCAS84972002 p3 OK u0 465.76 GB 976773168 WD-WCAS84739115 p4 OK u0 465.76 GB 976773168 WD-WCANU2114264 p5 OK u? 465.76 GB 976773168 WD-WCANU2051215 p6 NOT-PRESENT - - - - p7 NOT-PRESENT - - - - //cp> rescan Rescanning controller /c8 for units and drives ...Done. Found the following unit(s): [/c8/u1]. Found the following drive(s): [none]. //cp> info c8 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 OK - - 64K 1862.61 ON OFF u1 RAID-5 INOPERABLE - - 64K 1862.61 OFF OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 465.76 GB 976773168 WD-WCANU2126397 p1 OK u0 465.76 GB 976773168 WD-WCANU2051520 p2 OK u0 465.76 GB 976773168 WD-WCAS84972002 p3 OK u0 465.76 GB 976773168 WD-WCAS84739115 p4 OK u0 465.76 GB 976773168 WD-WCANU2114264 p5 OK u1 465.76 GB 976773168 WD-WCANU2051215 p6 NOT-PRESENT - - - - p7 NOT-PRESENT - - - - //cp> /c8/u1 del Deleting /c8/u1 will cause the data on the unit to be permanently lost. Do you want to continue ? Y|N [N]: Y Deleting unit c8/u1 ...Done. //cp> info c8 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 OK - - 64K 1862.61 ON OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 465.76 GB 976773168 WD-WCANU2126397 p1 OK u0 465.76 GB 976773168 WD-WCANU2051520 p2 OK u0 465.76 GB 976773168 WD-WCAS84972002 p3 OK u0 465.76 GB 976773168 WD-WCAS84739115 p4 OK u0 465.76 GB 976773168 WD-WCANU2114264 p5 OK - 465.76 GB 976773168 WD-WCANU2051215 p6 NOT-PRESENT - - - - p7 NOT-PRESENT - - - - //cp> /c8 add type=spare disk=5 Creating new unit on controller /c8 ... Done. The new unit is /c8/u1. WARNING: This Spare unit may replace failed drive of same interface type only. //cp> info c8 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 OK - - 64K 1862.61 ON OFF u1 SPARE OK - - - 465.753 - OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 465.76 GB 976773168 WD-WCANU2126397 p1 OK u0 465.76 GB 976773168 WD-WCANU2051520 p2 OK u0 465.76 GB 976773168 WD-WCAS84972002 p3 OK u0 465.76 GB 976773168 WD-WCAS84739115 p4 OK u0 465.76 GB 976773168 WD-WCANU2114264 p5 OK u1 465.76 GB 976773168 WD-WCANU2051215 p6 NOT-PRESENT - - - - p7 NOT-PRESENT - - - -
Whenever the xemacs package is installed, also be sure to install xemacs-packages-extra. This sets up things like syntax-highlighting and other stuff that people put in their init files.
Error message looked like this:
[~]# yum -y upgrade Loaded plugins: rhnplugin, security rpmdb: PANIC: fatal region error detected; run recovery error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30977) error: cannot open Packages database in /var/lib/rpm
Fix:
[ ~]# rm /var/lib/rpm/__db* [ ~]# rpm -rebuilddb [ ~]# yum clean all
Commands I’m always looking up.
mysql> update users set role='admin' where id=2; mysql> select * from users;