Showing posts with label Solaris. Show all posts
Showing posts with label Solaris. Show all posts

Friday, June 3, 2011

How to mount and unmount an ISO image under Solaris

Mount an iso image
You can use lofiadm command to mount ISO image under Solaris.
e.g.;

# lofiadm -a /absolute/path/to/isoimage.iso

output:
/dev/lofi/1
Here, /dev/lofi/1 is a device, now you can use the mount command to mount the iso image.

# mount -o ro -F hsfs  /dev/lofi/1   /mnt 


Unmount and detach the image

Use umount command to unmount the image

# umount /mnt

Now remove/free block device

# lofiadm -d /dev/lofi/1



Monday, May 16, 2011

Error: Not on system console, root login rejected

Solution:

Edit /etc/default/login and comment out the following line.
# CONSOLE=/dev/console
Be very carefull with this for the security implications. That’s all.

Enable XDMCP on solaris 10

Solaris 10’s desktop environment is JDS which is based off of GNOME.
  1. Log in as root
  2. Open a terminal
  3. Type gdmsetup (a dialog box will appear)
  4. Click on the XDMCP tab
  5. Check the Enable XDMCP box
  6. Press Close