Author: Emerson .

OpenSolaris 2008.05 failed to update

This is the error message that appeared when I tried to update my installation.

root@setalaptop:~ # pkg image-update
Creating Plan \Traceback (most recent call last):
File “/usr/bin/pkg”, line 1440, in ?
ret = main_func()
File “/usr/bin/pkg”, line 1404, in main_func
return image_update(img, pargs)
File “/usr/bin/pkg”, line 366, in image_update
noexecute = noexecute)
File “/usr/lib/python2.4/vendor-packages/pkg/client/image.py”, line 1282, in make_install_plan
ip.evaluate()
File “/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py”, line 344, in evaluate
self.evaluate_fmri(f)
File “/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py”, line 187, in evaluate_fmri
m = self.image.get_manifest(pfmri)
File “/usr/lib/python2.4/vendor-packages/pkg/client/image.py”, line 516, in get_manifest
m = self._fetch_manifest(fmri)
File “/usr/lib/python2.4/vendor-packages/pkg/client/image.py”, line 468, in _fetch_manifest
mcontent = retrieve.get_manifest(self, fmri)
File “/usr/lib/python2.4/vendor-packages/pkg/client/retrieve.py”, line 87, in get_manifest
return m.read()
File “/usr/lib/python2.4/socket.py”, line 277, in read
data = self._sock.recv(recv_size)
File “/usr/lib/python2.4/httplib.py”, line 480, in read
s = self.fp.read(amt)
File “/usr/lib/python2.4/socket.py”, line 295, in read
data = self._sock.recv(recv_size)
timeout: timed out

I’ll research another day why I can’t update it.

OpenSolaris 2008.05

Ian Murdock and the volunters from OpenSolaris.org released the new distro-like distribution of Solaris. It’s called OpenSolaris.

I’m downloading the OpenSolaris Live CD right now to replace the Fedora Linux partition that I have.

Failed to delete VM – VMware Server

Right clicked the VM to delete and it removed from the Inventory but showed the following message:

Failed to delete VM
Reason: Failed to unregister the VM after it was deleted.

Another VMware error where Google showed nothing. 😦

Unable to find the answer LIBDIR – VMware Server

Does anybody know how to solve this problem?

root@memcached:~ # rpm -ivh –force VMwareTools-1.0.5-80187.i386.rpm
Preparing… ########################################### [100%]
Unable to find the answer LIBDIR in the installer database
(/etc/vmware-tools/locations). You may want to re-install VMware
Tools.\n\nExecution aborted.

error: %pre(VMwareTools-6533-80187.i386) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping VMwareTools-6533-80187

I cancelled (CTRL+C) in the middle of the installation of the rpm and now I can’t run the installer or reinstall the rpm.

“Song” was not copied to the iPod “iPod’s name” because it could not be found

I ran into this problem and found many solutions involving opening the iTunes Music Library.xml file and deleting the song that caused the error message. I simply looked the music library and didn’t find it. So I searched where it was still referencing and found it in one of the playlists. I unchecked the song and synced again without the error message.

Which file does HP-UX keep the number of past passwords

The parameter PASSWORD_HISTORY_DEPTH in the /etc/default/security file controls how many past passwords HP-UX will remember the password to prevent the user from using the same old passwords he uses. Set the number as you like.

root@hp-ux11.11:/ # passwd user
Changing password for user
Last successful password change for user: Wed Apr 23 00:06:26 2008
Last unsuccessful password change for user: Thu Feb  7 12:34:42 2008

New password:
You may not re-use a previously used password.

Dirty and fast way to mount a Windows shared folder

Here is a dirty and fast way to mount a Windows shared folder:

  • Check what the Windows server is providing with smbclient:

root@linux:/ # smbclient –L <hostname> -W <domain> -U <user>

root@linux:/ # smbclient -L CORESERVER -W WINLLAB -U nimda
Password:
Domain=[WINLAB] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2]

Sharename Type Comment
——— —- ——-
C$ Disk Default share
F$ Disk Default share
IPC$ IPC Remote IPC
Resources$ Disk “Event logging files”
ADMIN$ Disk Remote Admin
Address Disk “Access to address objects”
Domain=[WINLAB] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2]

Server Comment
——— ——-
CORESERVER2 DC / DHCP / WINS / DNS /PS
CORESERVER3 LCS [ST : ]
CORESERVER EXCHANGE [ST : CV1FX81]

Workgroup Master
——— ——-
SYSADM
MYGROUP SERVERCORE

  • Mounting the Windows Shared folder on RHEL5

root@linux:/ # mount -t cifs <hostname>:<share> <mount point on Linux> -ousername=<username>,domain=<domain>

root@linux:/ # mount -t cifs CORESERVER:F\$ /mnt/temp -ousername=nimda,domain=WINLAB
Password:

# cd /mnt/temp
# ls -lh
total 27G
drwxrwxrwx 1 root root 0 Jan 31 08:52 Arquivos
-rwxrwSrwt 1 root root 214M Feb 27 16:40 CD_sun4u_sparcv9__marTux_0.2__small_naked_demo_cd_bs512b.iso.bz2
-rwxrwSrwt 1 root root 2.3G Nov 19 16:33 CentOS-4.6-i386-binDVD.iso
-rwxrwSrwt 1 root root 3.6G Nov 24 19:31 CentOS-5.1-i386-bin-DVD.iso
-rwxrwSrwt 1 root root 5.6G Jan 15 14:47 eis-dvd.ISO
-rwxrwSrwt 1 root root 3.2G Nov 2 14:05 Fedora-8-i386-DVD.iso
-rwxrwSrwt 1 root root 647M Feb 14 07:22 in-preview2.iso
-rwxrwSrwt 1 root root 630M Nov 1 01:52 in-preview.iso
-rwxrwSrwt 1 root root 1.4G Feb 11 08:37 n1sm-1.3.3-ga-linux-x86.iso
-rwxrwSrwt 1 root root 251M Feb 15 12:07 oracle-xe-univ-10.2.0.1-1.0.i386.rpm
-rwxrwSrwt 1 root root 2.2G Feb 12 10:37 RHEL4.6-i386-AS-DVD.iso
-rwxrwSrwt 1 root root 3.4G Jan 21 14:03 sol-nv-b70b-x86-dvd.iso
-rwxrwSrwt 1 root root 932M Feb 6 13:50 SunSXDE108-1.zip
-rwxrwSrwt 1 root root 1.3G Feb 6 13:07 SunSXDE108-2.zip
-rwxrwSrwt 1 root root 338M Jun 28 2007 sxrt5.0x64_x86_5.0x64a.dvd2.tar.gz
-rwxrwSrwt 1 root root 163M Jan 6 14:46 systemrescuecd-x86-0.4.2.iso
-rwxrwSrwt 1 root root 394M Feb 28 09:15 ubuntu-6.06.2-server-sparc.iso
-rwxrwSrwt 1 root root 473M Feb 27 08:06 ubuntu-7.10-server-sparc.iso
-rwxrwSrwt 1 root root 101M Feb 15 11:53 VMware-server-1.0.4-56528.i386.rpm
-rwxrwSrwt 1 root root 147M Dec 26 13:21 VMware-server-installer-1.0.4-56528.exe

  • Using smbmount to mount a Windows shared folder. Deprecated in RHEL5 (no more smbfs, cifs available) and available for up to RHEL4

root@linux:/ # smbmount //<hostname>/<share> <mount point on Linux> -o username=<username>

root@linux:/ # smbmount //SERVERCORE/F$ /mnt/temp -o username=nimda/WINLAB
Password:

root@linux:/ # cd /mnt/temp
root@linux:/ # ls -lh
total 27G
drwxrwxrwx 1 root root 0 Jan 31 08:52 Arquivos
-rwxrwSrwt 1 root root 214M Feb 27 16:40 CD_sun4u_sparcv9__marTux_0.2__small_naked_demo_cd_bs512b.iso.bz2
-rwxrwSrwt 1 root root 2.3G Nov 19 16:33 CentOS-4.6-i386-binDVD.iso
-rwxrwSrwt 1 root root 3.6G Nov 24 19:31 CentOS-5.1-i386-bin-DVD.iso
-rwxrwSrwt 1 root root 5.6G Jan 15 14:47 eis-dvd.ISO
-rwxrwSrwt 1 root root 3.2G Nov 2 14:05 Fedora-8-i386-DVD.iso
-rwxrwSrwt 1 root root 647M Feb 14 07:22 in-preview2.iso
-rwxrwSrwt 1 root root 630M Nov 1 01:52 in-preview.iso
-rwxrwSrwt 1 root root 1.4G Feb 11 08:37 n1sm-1.3.3-ga-linux-x86.iso
-rwxrwSrwt 1 root root 251M Feb 15 12:07 oracle-xe-univ-10.2.0.1-1.0.i386.rpm
-rwxrwSrwt 1 root root 2.2G Feb 12 10:37 RHEL4.6-i386-AS-DVD.iso
-rwxrwSrwt 1 root root 3.4G Jan 21 14:03 sol-nv-b70b-x86-dvd.iso
-rwxrwSrwt 1 root root 932M Feb 6 13:50 SunSXDE108-1.zip
-rwxrwSrwt 1 root root 1.3G Feb 6 13:07 SunSXDE108-2.zip
-rwxrwSrwt 1 root root 338M Jun 28 2007 sxrt5.0x64_x86_5.0x64a.dvd2.tar.gz
-rwxrwSrwt 1 root root 163M Jan 6 14:46 systemrescuecd-x86-0.4.2.iso
-rwxrwSrwt 1 root root 394M Feb 28 09:15 ubuntu-6.06.2-server-sparc.iso
-rwxrwSrwt 1 root root 473M Feb 27 08:06 ubuntu-7.10-server-sparc.iso
-rwxrwSrwt 1 root root 101M Feb 15 11:53 VMware-server-1.0.4-56528.i386.rpm
-rwxrwSrwt 1 root root 147M Dec 26 13:21 VMware-server-installer-1.0.4-56528.exe