For the new zonemider sw to work, i need the “Date::Manip” perl module. If you have the “cpan” command:
# cpan -i Date::Manip
ok?
272/433
Author: rdircio
NX+freenx server binary tarball for Solaris 10 x86
UPDATED NOTE: for OPENSOLARIS use this link: http://www.opensolaris.org/os/project/awards/awards_land/Entries
I compiled and built this ready to use nx+freenx server tarball for solaris10 x86 (not opensolaris). This is both freenx
0.7.0 and the nomachine NX libraries version 2.1.0-2.
Tested on a fresh solaris 10 x86 u4 8/07
gnome
CDE
on sol10x86, for the non-believers.
nx_freenx_sol10x86.tar.gz
place it in your server at /, and uncompress.
# cd /
# gunzip nx_freenx_sol10x 86.tar.gz
# tar xvf nx_freenx_sol10x86.tar
Then run the nxinstall script, which will check for the required packages. all of them from blastwave.org.
VERY IMPORTANT: if these are missing, install them!!!! nx+freenx won’t work without ggetopt, expect,
gmd5sum, gfind, ggetopt,netcat from blastwave at /opt/csw/bin! !!
# nxinstall
this
After this, you’ll be ready to use any nx client on another computer to connect to your Solaris 10 x86 freenx
server!
ENJOY!
155/433
root rsh on redhat linux
DO NOT DO THIS AT HOME, it is highly insecure.
After the rude warning, just had to let you know that if you ever need to have a passwordless root login with
rsh on redhat you have to do this…
Add these lines to /etc/securetty
rexec
rsh
rlogin
pts/0
pts/1
Activate the services by issuing
chkconfig rexec on
chkconfig rlogin on
chkconfig rsh on
add a /root/.rhosts file with the name of the host you want to trust to enter as root
In my case it contains only
otherpc
Change the permissions of the file to 600
chmod 600 /root/.rhosts
Add “otherpc” to your /etc/hosts file
10.10.10.1 otherpc
You’re all set, you can rsh from “otherpc” without having to type the root password.
I REPEAT, do not do this for daily production servers, or any server you take seriously, it is foolish.
226/433
enable ftp logins in redhat
Not recommended for security purposes, but if you want to do it:
First edit the file /etc/ftpaccess
and
comment out the ‘deny-uid’ and ‘deny-gid’ lines.
Remove any users you need to connect from /etc/ftpusers
198/433
quick and dirty script to obtain info from your server before you reboot
Use the outputs of this script to compare basic health before and after you reboot, transfer the results to another host
just in case the one you reboot doesn’t come up 🙂
B=`uname -n`
mkdir $B
cd $B
df -h > df-h.txt
metastat -p > metastat-p.txt
metastat -t > metastat-t.txt
netstat -nrv > netsat-nrv.txt
ifconfig -a > ifconfig-a.txt
zpool status -v > zpool-status-v.txt
zfs list > zfs-list.txt
format < /dev/null > format.txt
prtconf -vp | grep -i wwn > wwns.txt
zoneadm list > zoneadm.txt
zoneadm list | while read z;do zonecfg -z $z info> ${z}.txt; done
cd ..
chmod 777 $B
cp -fR $B /var/tmp
56/433
NFS taking >1 minute to mount each share
If your redhat NFS client takes too long to mount, but it does mount the shares, it may need portmap to be turned on:
# chkconfig –level 2345 portmap on
# /etc/init.d/portmap start
This will make the mounts come up almost instantly
122/433
no java console option on Dell DRAC 5
If your dell DRAC 5 card does not give you the option of a Java Console, you might have an old DRAC firmware, older
than 1.40 perhaps.
You should check in the properties tab the firmware version. If it is older than 1.40, you can get 1.45 from
dell’s page
62/433
63/433
http://support.dell.com/support/downloads/download.aspx?c=us&l=en&s=gen&releaseid=R209365&System ID=PWE_2950&servicetag=&os=LIN4&osl=en&deviceid=8735&devlib=0&typecnt=0&vercnt=6&catid=-1&impid=-1&formatcnt=5&libid=36&fileid=293703
that will be an .exe file, so download it into a windoze PC and run it. It will uncompress and give you a file
called “firmimg.d5”
You will use that file to upgrade your drac firmware.
64/433
transfer it to the server in question. if you have linux and all the OM tools installed, you just need to run this
command while you are in the directory where you put the “firmimg.d5” file.
# racadm fwupdate -p -u -d .
That will upgrade your DRAC5 firmware to level 1.45, which includes the java console feature. Now enjoy
your console.
65/433
sshd[419]: error: Failed to allocate internet-domain X11 display socket.
If you cannot get ssh X11 forwarding to work even when you configured your sshd_config properly, and you get the
message “sshd[419]: error: Failed to allocate internet-domain X11 display socket.” in your console… you need to disable
openssh’s ipv6 mode.
add this to your sshd_config file:
ListenAddress 0.0.0.0
And change your init script to pass the “-4” option to sshd, as:
case $1 in
‘start’)
create_key $SSHDIR/ssh_host_rsa_key rsa
create_key $SSHDIR/ssh_host_dsa_key dsa
/opt/acs/sbin/sshd -4 &
;;
Restart sshd and you’ll have X11Forwarding working
86/433
get your nokia phone serial number without removing the battery
Sometimes you need to find out your nokia phone serial number, but you have to turn it off and remove the battery to get
it from the label.
You can get it from the phone screen just dialing
*#06#
Do not press “send”
271/433
Restore file from TSM
Issue
# dsmc rest -pick=yes /some/file /destination/file
This will show you a menu of different backup dates for /some/file, and after you pick one, you will be able to
restore it
To restore from a file list, include inactive copies and do not replace files:
# dsmc restore -replace=no -ina -filelist=f
Hey!, and if you have access to X on that server you can also use the gui:
# dsm
Thanks to Fergus O’Hea
208/433