Unix/Solaris °ü·Ã°Ô½ÃÆÇ

2000/07/21(18:14) from 203.254.154.69
ÀÛ¼ºÀÚ : °­ÁÙ±â (jkkang65@hanmail.net) Á¶È¸¼ö : 2804 , ÁÙ¼ö : 164
¼Ö¶ó¸®½º¿¡¼­ À¯¿ëÇÑ Tipµé.
Solaris 2.6¿¡¼­ CDE¸¦ Á¦°ÅÇÏ´Â ¹æ¹ý

1./usr/dt/bin/dtconfig -d ; /usr/dt/bin/dtconfig -kill


³ªÀÇ ½Ã½ºÅÛ¿¡¼­ DNS°¡ È£½ºÆ®À̸§µéÀ» ã°ÔÇÏ´Â ¹æ¹ý

1.Edit /etc/resolv.conf to be something similar to:
domain yourdomain.org
nameserver 224.144.124.3
nameserver 215.146.37.8

2.Edit /etc/nsswitch.conf hosts line to be something like:

hosts: files dns



Solaris ½Ã½ºÅÛ¿¡¼­ swap°ø°£À» Ãß°¡ÇÏ´Â ¹æ¹ý

1.mkfile SIZEm /swap.file
where SIZE is double the amount of new physical RAM in MB
2.swap -a /swap.file
3.Create /etc/rc2.d/S99swap with step #2 in it

³ªÀÇ Solaris ½Ã½ºÅÛ¿¡¼­ le0¸¦ ù¹ø° ³×Æ®¿÷ ÀÎÅÍÆäÀ̽º·Î ¸¸µå´Â ¹æ¹ý

1.Create /etc/rc2.d/S99le0config and put steps #2 and #3 in it.
2.ndd -set /dev/ip ip_enable_group_ifs 0
3.arp -s IP-ADDRESS MAC-ADDRESS pub
4.Do step #3 for each virtual interface
5.Run /etc/rc2.d/S99le0config

ÇÁ¸°Æ®¸¦ Ãß°¡ÇÏ´Â ¹æ¹ý

To add a remote printer:
1.admintool &
2.click on printer icon
3.specify name of remote printer
4.add printer --> add access to remote printer
5.specify printer name
6.spcify print server
7.specify print server operating system

To add a local printer:

1.admintool &
2.click on printer icon
3.add printer --> add local printer
4.specify printer name
5.specify printer port (ex. /dev/term/a)
6.specify printer type (ex. postscript)
7.specify file contents (ex. postscript)
8.specify fault notification


Console·ÎºÎÅÍ root loginÀ» ¸·´Â ¹æ¹ý

1.edit /etc/default/login
2.delete /dev/console from the CONSOLE=/dev/console line

su·Î root ·Î±ä½Ã console¿¡ ¸Þ½ÃÁö¸¦ º¸ÀÌ°Ô ÇÏ´Â ¹æ¹ý


1.edit etc/default/su
2.add the line CONSOLE=/dev/console


»ç¿ëÀÚ°¡ Â÷ÁöÇÏ°í ÀÖ´Â µð½ºÅ© °ø°£ Å©±â¸¦ º¸¿©ÁÖ´Â ¹æ¹ý


1.quot -af | grep username
2.where username is the username of the user you're looking for


root Æнº¿öµå¸¦ ÀÒ¾î ¹ö·ÈÀ» ¶§ ÇÒ¼ö ÀÖ´Â ¹æ¹ý

1.stop sweating
2.grab a solaris cdrom and put it in your cdrom drive
3.hit stop+a
4.at the 'ok' prompt, run boot -s cdrom
5.cd /tmp
6.mkdir /tmp/xxx (doesn't matter what xxx is)
7.mount /dev/dsk/c0t0d0s0 /tmp/root/xxx (where c0t0d0s0 is the location of your
root drive)
8.start csh
9.setenv TERM vt220
10.cp /tmp/root/xxx/shadow /tmp/root/xxx/shadow/shadow.oops
11.vi /tmp/root/xxx/shadow and delete the encrypted password on the root account
12.reboot, login with root and no password, and reset your root password

³ªÀÇ man ÆäÀÌÁöµéÀ» ´Ù½Ã À妽ºÈ­ÇÏ´Â ¹æ¹ý


1.cd /usr/share/man
2.catman -w -M .


À͸í ftp¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ý

1.Checkout the ftpd man page. It explains it all.

IP ³ª È£½ºÆ®À̸§À» º¯°æÇÏ´Â ¹æ¹ý

The Sun supported way of doing this is by using sys-unconfig. However, you can only use this if you are on the console. Below are secondary methods:
Changing IP Address

1.Edit /etc/hosts
2.The second line down will have your IP Address. Change it there.

Changing Hostname

1.Run 'hostname new-hostname'
2.Edit /etc/hostname.le0 (where le0 is your network adapter)
3.Edit /etc/hosts. The second line down will have your hostname. Change it there.


³ªÀÇ ¼­¹ö¸¦ lock down ½ÃÅ°´Â ¹æ¹ý

1.Edit /etc/inetd.conf
2.Comment out anything that you do not use. Don't be afraid. If you don't know what it is, you don't use it, and don't need it.
3.kill -HUP inetd-process-id
4.Consider installing tcp-wrappers to protect those services that you do use.

³ªÀÇ Solaris ½Ã½ºÅÛ¿¡ »õ·Î¿î ÇÏµå µð½ºÅ© Ãß°¡ ¹æ¹ý

1.Find out the address of the drive

1.STOP-A
2.At the OK prompt, type probe-scsi. This will list all scsi devices on the
system. Find the new drive.
3.Type boot -r so the OS will see the new drive.
4.Login as root and type format. Pick the new drive. The drives are listed as
c(controller #)t(scsi id or target#)d(disk #). Label drive is required (It
will tell you if the drive is not labeled).
5.Next, type partition. Partition the drive as required (always leave
partition 2 a b c as the whole drive as it is informational to the OS
6.Type print to list the current partitions. When you are done making changes
type label
7.To return to the OS prompt, type quit twice.

2.newfs /dev/dsk/DRIVE-ADDRESS (ie c0t1d0s0) (controller 0 target(ID) 1 disk 0
slice(partition) 0).
3.mkdir directory you want to mount the drive on (ie /disk2)
4.mount /dev/dsk/DRIVE-ADDRESS directory(directory from above)
5.Add the new drive to your /etc/vfstab file
(ie. /dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 /disk2 ufs 1 yes - )


»ç¿ëÀÚ¿¡°Ô quota¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ý

1.Edit the file /etc/vfstab in a text edit. For the filesystem that you want to have
quotas on add the word quota to the mount options:
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 /export/home ufs 1 yes quota
2.Touch a file called 'quotas' in the root of the filesystem you want to have quotas: touch /export/home/quotas
3.Use 'edquota' to edit the quota of a user. To edit the quota of the user jeff:
edquota jeff
4.Set the soft and hard to be the soft and hard quotas you want for the user (in
kilobytes). Do the same for inodes. Soft is the limit where a user receives a warning. Hard is the limit where the user can no longer save files. To edit the settings of a user with a soft limit of 10MB and a hard limit of 15MB with 1 inode per block: fs /home blocks (soft=10240, hard=15360) inodes (soft=1024, hard=1536)
5.To push the same quotas out to many users use the -p string to edquota. To push jeff's quota out to john, pete and chip: edquota -p jeff john pete chip
6.to see usage reports on quotas use the command repquota -a



Modify Delete Post Reply Backward Forward List
Powered by Kang Jul Ki