468x60 Ads

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

Tuesday, September 11, 2012

Install Webmin in solaris 10




What is Webmin…?

Webmin is a web-based interface for system administration for Unix, and it will help administrators to handle so many applications that are running on Unix systems and the system (OS) very easily(eg: mysql, logs, DHCP servers, apache server, setup user accounts, DNS, file sharing and many more).

Default webmin is built in to Solaris 10 under /usr/sfw/webmin  directory.
What you want to do is setup webmin and enables webmin service.
Login as root:#su

Enter a port for the web server. 10000 is the default port

# /usr/sfw/lib/webmin/setup.sh

Or

# /usr/sfw/bin/webminsetup

Login name (default root):
root
Web server port (default 10000):
10000

Use SSL?  [y,n,?,q] ?
        To respond in the affirmative, enter y, yes, Y, or YES. To respond in
        the negative, enter n, no, N, or NO.

Use SSL?  [y,n,?,q] y
***********************************************************************
*            Welcome to the Webmin setup script, version 1.170        *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin in /usr/sfw/lib/webmin ...

***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.

Config file directory [/etc/webmin]: Found existing Webmin configuration in /etc/webmin


Creating start and stop scripts..
..done

Updating config files..
..done

Changing ownership and permissions ..
..done

Running postinstall scripts ..
..done

Attempting to start Webmin mini web server..
..done

***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to

  https://MEN-TM:10000/

and login with the name and password you entered previously.

Because Webmin uses SSL for encryption only, the certificate
it uses is not signed by one of the recognized CAs such as
Verisign. When you first connect to the Webmin server, your
browser will ask you if you want to accept the certificate
presented, as it does not recognize the CA. Say yes.S

Then enable the webmin service

# svcadm enablewebmin


First download relevant webmin package (webmin-1.590.pkg.gz) from http://www.webmin.com/download.html

If your server having internet access:
#
#wgethttp://prdownloads.sourceforge.net/webadmin/webmin-1.590.pkg.gz

Login as root
#su

Untar the webmin package

gunzip webmin-1.590.pkg.gz
pkgadd -dwebmin-1.590.pkg WSwebmin

go to
 #cd /usr/sfw/lib/webmin


Run the setup script
 #./setup.sh

Enter a port for the web server. 10000 is the default port.

The installation will be made to /opt/webmin , you should now be able to login to Webmin at the
URL http://localhost:10000/With the administration username root  and your current root password.


Sample DHCP server configure in Webmin:





Tuesday, September 4, 2012

Mount unmount portable usb DVD/HDD drive in Solaris 10(Sparc server)


Assuming system disabled the automount option.

How to check auto Mount is disable or not:
Check whether  volfs is running or not..
# svcs -a|grep volfs
disabled       Jun_06   svc:/system/filesystem/volfs:default

if it is disabled, enable it for enable auto-mounting option.
# svcadm enable volfs
If the  usb flash is recognize by the system it will be mount and you  can see the
status with
# rmformat

rmformat:The rmformat utility is used to  format,  label,  partition,and  perform  other  miscellaneous  functions  on removable, rewritable media that include floppy drives, and the  PCMCIA memory  and  ata  cards. 



mount, umount: - mount or unmount file systems and remote resources

eg: mount [-F FSType] [generic_options] [-o specific_options] [-O] special
mount_point

bash-3.2# mount -F hsfs -o ro /dev/dsk/c0t0d0s0 /cdrom/unnamed_cdrom
bash-3.2#umount /dev/dsk/c0t0d0s0

[-F FSType]
Used to specify the FSType on which to operate. The FSType must be specified or
must be determinable from /etc/vfstab, or by consulting /etc/default/fs or
/etc/dfs/fstypes.

ro | rw Specify read-only or read-write. The default is rw.
/dev/dsk/c0t0d0s0  : :mount device
/cdrom/unnamed_cdrom :mount location

To find under what names file systems are mounted:  use the
 bash-3.2#df -k


The df utility displays the amount of disk space occupied by mounted  or  unmounted  file systems, the amount of used and available space, and how much of  the  file  system's  total capacity has been used.



-k
 Prints the allocation in kbytes. The output consists  of one  line of information for each specified file system.This information includes  the  file  system  name,  the total  space allocated in the file system, the amount of space allocated to existing files, the total  amount  of space  available  for  the  creation  of  new  files  by unprivileged  users,  and  the  percentage  of  normally.

Monday, August 27, 2012

VI Editor Quick Reference


















Mostly use commands:Create new file name perlFile.pl or open existing file named perlFile.pl.

#vi perlFile.pl

press letter "i" in the keybord for write to the file
Write what eve you want...

If you want to delete a character under cursor:  move pointer on top to the letter, press <Esc> and press letter "x".
To delete character before cursor: move pointer  before the letter , press <Esc> and   press letter "X".

To delete a line: move the pointer to anywhere in the line , press <Esc> and press the letter "dd".
Delete everything in the file: Press <Ese> ":1,$d" and press <Enter>


Save the file : Press <Ese> "wq!"  and press <Enter>
Quite without saving :Press <Ese> "q!"  and press <Enter>

Wednesday, July 11, 2012

Solaris quick sheet

Solaris QuickSheet
Version: 0.18.0
Compatibility note: This document is based upon Sparc Solaris 10