¼ø¶È»ñÎÁ/Âè04²ó

Top / ¼ø¶È»ñÎÁ / Âè04²ó

¼ø¶ÈÆâÍÆ

¤³¤ì¤Þ¤Ç¤Îºî¶È¤Ç¤Ç¤Æ¤­¤¿³µÇ°¤Ê¤É¤Ë¤Ä¤¤¤Æ¡¤¤¢¤é¤¿¤á¤ÆÀâÌÀ¤¹¤ë.
¤Ê¤ª¡¤¤³¤ì¤Þ¤Ç¤Îºî¶È¤ËÄɤ¤ÉÕ¤¤¤Æ¤¤¤Ê¤¤¤È¤¤¤¦¤â¤Î¤ÏµÞ¤¤¤ÇÄɤ¤ÉÕ¤³¤¦.

¤³¤ì¤«¤é¤Îºî¶È´Ä¶­

ʸ»úüËö

¤È¤ê¤¢¤¨¤º X (Gnome´Ä¶­) ¤¬»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤Î¤Ç¡¤¤½¤Î¾å¤Ç Terminal Emulator ¤òÍѤ¤¤ë¤Î¤¬¤Ê¤Ë¤«¤ÈÊØÍø¤Ç¤¢¤ë. ¤è¤Ã¤Æ¤³¤ÎÊýË¡¤ò¼ç¤È¤·¤Æ»È¤Ã¤Æ¤¤¤¯¤³¤È¤Ë¤·¤è¤¦*1.

Gnome ¤Î¾ì¹ç¡¤¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡Ö¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¡×¢ª¡Ö¥¢¥¯¥»¥µ¥ê¡×¢ª¡ÖüËö*2¡×¤È¤¹¤ë¤È¤È¤ê¤¢¤¨¤º´ðËÜŪ¤Êʸ»úüËö¥¨¥ß¥å¥ì¡¼¥¿¤¬Î©¤Á¾å¤¬¤ë¤Ï¤º¤Ç¤¢¤ë.

  • ¾¤Ë¤â(¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¢¤ì¤Ð) kterm ¤ä rxvt ¤Ê¤É¤¬Ê¸»úüËö¥¨¥ß¥å¥ì¡¼¥¿¤È¤·¤Æ»È¤¨¤ë.
    GNOME üËö¤ÎÃæ¤Ç
    kterm &
    rxvt &
    ¤Ê¤É¤È¤·¤ÆΩ¤Á¾å¤¬¤ë¤«»î¤·¤Æ¤ß¤è¤¦(»È¤Ã¤Æ¤ß¤¿¤¤¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤Ê¤¤¡¤¤È¤¤¤¦¤Ê¤é¤Ð¸å½Ò¤ò»²¾È¤¹¤Ù¤·).
    »È¤Ã¤Æ¤ß¤Æ¤½¤Á¤é¤¬µ¤¤ËÆþ¤Ã¤¿¤Î¤À¤Ã¤¿¤é¡¤¥á¥Ë¥å¡¼¤«¤é»È¤¨¤ë¤è¤¦¤Ë¤·¤Æ¤ª¤¯¤Î¤â¤è¤¤¤À¤í¤¦.

Ê£¿ô¤Î¥³¥ó¥½¡¼¥ë

FreeBSD ¤Ïµ¯Æ°¤·¤¿¸å¤¹¤Ç¤ËÊ£¿ô¤Î¥³¥ó¥½¡¼¥ë¤¬Î©¤Á¾å¤¬¤Ã¤Æ¤¤¤ë. ¥¤¥á¡¼¥¸¤È¤·¤Æ¤Ï¡¤¥â¥Ë¥¿¤È¥­¡¼¥Ü¡¼¥É¤¬Ê£¿ô·Ò¤¬¤Ã¤Æ¤¤¤ë¤È»×¤¨¤Ð¤è¤¤.
¶ñÂÎŪ¤Ë¤É¤¦¤Ê¤Ã¤Æ¤¤¤ë¤«¤Ï¡¤

 less /etc/ttys

¤È¤·¤Æ¤ß¤è. ¤½¤ÎÃæ¤Ç 4¥«¥é¥àÌܤ¬ "on" ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤â¤Î¤¬À¸¤­¤Æ¤¤¤ë¥³¥ó¥½¡¼¥ë¤Ç¤¢¤ê¡¤¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï ttyv0¡Áttyv7 ¤Î8Â椬´û¤ËÆ°¤¤¤Æ¤¤¤ë¤Î¤¬Ê¬¤«¤ë.

¼ÂºÝ¤Ë¤Ï¥â¥Ë¥¿/¥­¡¼¥Ü¡¼¥É¤¬°ìÁȤ·¤«·Ò¤¬¤Ã¤Æ¤¤¤Ê¤¯¤Æ¤â¡¤¤³¤ì¤éÊ£¿ô¤Î¥³¥ó¥½¡¼¥ë¤òÀÚ¤êÂؤ¨¤Æ»È¤¨¤ë¤è¤¦¤Ë¤Ê¤ë¤È¤Ê¤Ë¤«¤ÈÊØÍø¤Ç¤¢¤ë. ¤½¤ì¤Ë¤Ï Alt+F2 ¤Ê¤É¤È¤¹¤ì¤Ð¤è¤¤*3. ¤Á¤Ê¤ß¤Ë¡¤X ¤òΩ¤Á¾å¤²¤Æ¤¤¤ë¾õÂÖ¤«¤é¤Ï Ctrl+Alt+F2 ¤Ê¤É¤È¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤.

(¼Â½¬)

¾åµ­¤Î¥³¥ó¥½¡¼¥ëÀÚ¤êÂؤ¨¤ò»î¤·¤Æ¤ß¤è¤¦. ¤½¤·¤Æ¡¤¸µ¤ËÌá¤Ã¤Æ¤ß¤è¤¦*4.

¥¨¥Ç¥£¥¿

Unix·Ï OS ¤Î´ÉÍý¤Î´ðËܤϥƥ­¥¹¥È·Á¼°¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤ò¥¨¥Ç¥£¥¿¤ÇÊÔ½¸¤¹¤ëºî¶È¤È¡¤Ê¸»úüËö¤Ç¤Î¥³¥Þ¥ó¥ÉÆþÎϺî¶È¤Ç¤¢¤ë*5. ¤½¤³¤Ç¡¤¥¨¥Ç¥£¥¿¤Ë¤Ä¤¤¤Æ¤â¿¨¤ì¤Æ¤ª¤¯.

Unix ¤Ç¤Î¥¨¥Ç¥£¥¿¤Ï´ðËÜŪ¤Ë

  • Emacs ·Ï(ÆüËܸ줬»È¤¤¤ä¤¹¤¤¤è¤¦¤Ë¥Ñ¥Ã¥Á¤¬Åö¤¿¤Ã¤Æ¤¤¤ë¤â¤Î¤Ï Emcws ¤È¤è¤Ð¤ì¤ë)
  • Vi ·Ï(¼Â¼ÁŪ¤Ë¤Ï¡¤¤½¤Î¸å·Ñ¤ÈÌܤµ¤ì¤ë VIM ¤¬»È¤ï¤ì¤ë¤³¤È¤¬Â¿¤¤)

¤Î¤¤¤º¤ì¤«¤ò»È¤¦¤³¤È¤Ë¤Ê¤ë¤À¤í¤¦(Íýͳ¤ÏÍÍ¡¹¤¢¤ë¤¬).
¤¿¤À¤·¡¤¤¤¤º¤ì¤â¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ÎÊɤ¬¹â¤¯½é¿´¼Ô¤Ë¤Ï¥Ä¥é¥¤¤â¤Î¤¬¤¢¤ë¤Î¤Ç¡¤Unix ·Ï OS ¤Î¿¤¯¤Ï½é¿´¼ÔÍѤ˶۵ÞÈòÆñŪ¤Ê¥¨¥Ç¥£¥¿¤òÍÑ°Õ¤·¤Æ¤¤¤ë.
FreeBSD ¤Ç¤Ï "ee" ¤È¤¤¤¦´Ê°×¥¨¥Ç¥£¥¿¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¤½é¿´¼Ô¤Ï¤³¤Î̾Á°¤ò³Ð¤¨¤Æ¤ª¤¯¤ÈÎɤ¤¤«¤âÃΤì¤Ê¤¤.

¥·¥§¥ëÀßÄê

Unix ¤Ç¤Î CLI ´Ä¶­¤Ç¤Ï¡¤¼Â¼ÁŪ¤Ë¥·¥§¥ë¤È¸Æ¤Ð¤ì¤ë¥½¥Õ¥È¥¦¥§¥¢¤ÈÂÐÏ䷤ƺî¶È¤ò¹Ô¤¦.
¤½¤Î¤¿¤á¡¤¤É¤Î¤è¤¦¤Ê¥·¥§¥ë¤òÁª¤Ö¤Î¤«¡¤¤Þ¤¿¡¤¤É¤Î¤è¤¦¤Ë¥·¥§¥ë¤ÎÀßÄê¤òÊѤ¨¤ë¤«¤Ç»È¤¤¾¡¼ê¤¬ÊѤï¤Ã¤Æ¤¯¤ë.
¾Ü¤·¤¯¤Ï2006ǯÅ٤μø¶È»ñÎÁ¤ò¸«¤Æ¤â¤é¤¦¤Ê¤É¤Çʬ¤«¤ë¤¬¡¤¤è¤¯¤ï¤«¤é¤ó¤È¤¤¤¦¿Í¤â¡¤
¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Î .cshrc ¤Î¤Û¤ÜºÇ¸å¤ÎÊý¤Î if ( $?tcsh ) then ¤Îľ¸å¤Ë¤Ç¤â

 set prompt = "%{\e[0;32m%}%m%{\e[0m%}<%U%n%u>%{\e[1;34m%}%~%{\e[0m%} <%h>"

¤Ê¤É¤È¤¤¤¦°ì¹Ô¤ò½ñ¤­²Ã¤¨¤Æ¡¤

 source ~/.cshrc

¤È¤·¤Æ¤ß¤Æ¡¤¥·¥§¥ë¤ÎÀßÄê¤Ç²¿¤¬ÊѤï¤ë¤«°ìü¤À¤±¤Ç¤âÂ賤·¤Æ¤ß¤è¤¦.

(¼Â½¬)

  • web ¾å¤Î´Êñ¤Ê»ñÎÁ¤ò¸«¤Æ¡¤emacs, vi ¤ÎξÊý¤ò¤È¤ê¤¢¤¨¤º»È¤Ã¤Æ¤ß¤è.
  • ee ¤òµ¯Æ°¤·¤Æ²þ¤á¤Æ°ìÄ̤ê»È¤Ã¤Æ¤ß¤è. ¤Þ¤¿¡¤jman ee ¤È¤·¤Æ¥Þ¥Ë¥å¥¢¥ë¤òÆɤó¤Ç¤ß¤è.

¤³¤ì¤Þ¤Ç¤ä¤Ã¤¿¥¤¥ó¥¹¥È¡¼¥ë/ÀßÄê¤ÎÀâÌÀ¤ª¤è¤Ó³ÎǧÅù

¤³¤ì¤Þ¤Ç¶î¤±Â­¤Ç¤Þ¤º¥¤¥ó¥¹¥È¡¼¥ë¤È´ðËÜÀßÄê¤ò¹Ô¤Ã¤¿¤¬¡¤¤³¤ì¤Ë¤Ä¤¤¤Æ²òÀâ¤ò¹Ô¤¦.

¥×¥í¥°¥é¥à¡¤¥Õ¥¡¥¤¥ëÅù¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ë¤Ä¤¤¤Æ

FreeBSD ¤Ç¤Ï¡¤¥½¥Õ¥È¥¦¥§¥¢¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤ª¤ª¤è¤½4¼ïÎà¤ÎÊýË¡¤¬¤¢¤ë.

¥¤¥ó¥¹¥È¡¼¥ëÊýË¡ÀâÌÀ
/usr/sbin/sysinstall ¢ª Configue ¢ª Distribution ¤È¤¹¤ë´ðËÜŪ¤Ê¥½¥Õ¥È¥¦¥§¥¢¥»¥Ã¥È¤Ï¤³¤ì¤òÍѤ¤¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤Î¤¬¤è¤¤. X ¤¬Æþ¤Ã¤Æ¤¤¤Ê¤¤!¤Ê¤ó¤Æ¾ì¹ç¤Ï¤³¤ì¤òÍѤ¤¤ÆÄɲ乤ë¤Î¤¬¤è¤¤¤À¤í¤¦. °Í¸´Ø·¸¤â¤­¤Á¤ó¤È´ÉÍý¤µ¤ì¤ë. ¤¿¤À¤·¡¤FreeBSD Foundation ¤Ë¤è¤Ã¤Æ´ÉÍý¤µ¤ì¤¿¤â¤Î¤·¤«¥¤¥ó¥¹¥È¡¼¥ë¥ê¥¹¥È¤ËÆþ¤Ã¤Æ¤¤¤Ê¤¤.
Package ¤òÍѤ¤¤ë. ¶ñÂÎŪ¤Ë¤Ï sysinstall ¢ª Configure ¢ª Packages ¤È¤·¤Æ¤âÎɤ¤¤·¡¤¥Ð¥¤¥Ê¥ê¤òľÀÜ»ý¤Ã¤Æ¤­¤Æ¤«¤é pkg_add ¥³¥Þ¥ó¥É¤òÍѤ¤¤Æ¤â¤è¤¤*6.Package ¤È¤¤¤¦¤Î¤Ï¡¤¡Ö¥³¥ó¥Ñ¥¤¥ëºÑ¤ß¥Ð¥¤¥Ê¥ê¡×¤ò»ý¤Ã¤Æ¤­¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë»ÅÁȤߤʤ¤¤·¤Ï¤½¤Î¥Ð¥¤¥Ê¥êÅù¤Î¤³¤È¤Ç¤¢¤ë. ¼Â¼ÁŪ¤Ëñ¤Ê¤ë¥³¥Ô¡¼ºî¶È¤Ç¤¢¤ë¤Î¤Ç¡¤ºî¶È»þ´Ö¤Ïû¤¯¤ÆºÑ¤ß¡¤³Ú¤Ç¤¢¤ë. ¤¿¤À¤·¡¤¥³¥ó¥Ñ¥¤¥ë´Ä¶­¤ä¥³¥ó¥Ñ¥¤¥ë¥ª¥×¥·¥ç¥óÀßÄ꤬ÊѤ¨¤é¤ì¤Ê¤¤¤Î¤Ç¡¤ºÙ¤«¤¤ÀßÄê¤òÍפ¹¤ë¾ì¹ç¤Ë¤ÏÉÔ¸þ¤­¤Ç¤¢¤ë.
ports*7 ¤ò»È¤¦. ¶ñÂÎŪ¤Ë¤Ï¡¤/usr/ports °Ê²¼¤Ê¤É¤Ë¤¢¤ë¡ÖÌÜÅö¤Æ¤Î¥½¥Õ¥È¥¦¥§¥¢¤Î̾Á°¤Î¤Ä¤¤¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¡×¤Ë¹Ô¤­¡¤Makefile ¤òÆɤó¤ÇÀßÄê¤òÄ´À°¤·¤¿¾å¤Ç make configure ¢ª make ¢ª make install ¤È¥³¥Þ¥ó¥É¤òÂǤĤΤ¬¤«¤Ä¤Æ¤Îŵ·¿Åª¤Êºî¶È¤Ç¤¢¤ë. ¤¿¤À¤·¡¤portupgrade ¤È¤¤¤¦¥½¥Õ¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ª¤±¤Ð(¸å½Ò), portinstall ¤È¤¤¤¦Ì¿Îá¤À¤±¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ë.¤³¤ì¤Ï¡Ö¥×¥í¥°¥é¥à¤ò¥³¥ó¥Ñ¥¤¥ë¤¹¤ë¤Î¤ËɬÍ׺ÇÄã¸Â¤Ê¾ðÊó¡×¤¬½¸¤á¤é¤ì¤Æ¤¤¤Æ¡¤¥³¥ó¥Ñ¥¤¥ë¤¹¤ë¤È¤­¤Ë¥×¥í¥°¥é¥à¥½¡¼¥¹¤ò¥Í¥Ã¥È¥ï¡¼¥¯·Ðͳ¤Ç¼è¤Ã¤Æ¤­¤Æ¼«Á°¤Ç¥³¥ó¥Ñ¥¤¥ë¤¹¤ë»ÅÁȤߤǤ¢¤ë.ɬÍ׺ÇÄã¸Â¤Î¾ðÊó¤·¤«¤Ê¤¤¤Î¤Ç¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤ò¼è¤é¤Ê¤¤¤·¡¤¥³¥ó¥Ñ¥¤¥ë¤ËÅö¤¿¤Ã¤ÆºÙ¤«¤¤ÀßÄ꤬½ÐÍè¤ë¤Î¤¬ÍøÅÀ¤Ç¤¢¤ë¡¥¥½¡¼¥¹¤«¤é¥³¥ó¥Ñ¥¤¥ë¤¹¤ë¤Î¤Ç¤½¤Î¥½¥Õ¥È¥¦¥§¥¢¤ÎºÇ¿·ÈǤ¬ÍøÍѲÄǽ¤Ê¤È¤³¤í¤âÍøÅÀ¤À.´·¤ì¤Æ¤­¤¿¤é Package ¤è¤ê¤â Ports ¤ò»È¤¦¤è¤¦¤Ë¤·¤¿¤¤. ports ¤¬Æþ¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¡¤sysinstall ¢ª Configure ¢ª Distributions ¤Ç ports ¤òÁª¤Ù¤Ð¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤ë¤Ï¤º¤Ç¤¢¤ë.
¥½¡¼¥¹¤ò¼«Ê¬¤Ç¥³¥ó¥Ñ¥¤¥ë¤¹¤ë.¤«¤Ä¤Æ¤Ï¤³¤ÎÊýË¡¤·¤«¤Ê¤«¤Ã¤¿ºÇ¤â¸¶ÍýŪ¤Ê¥¤¥ó¥¹¥È¡¼¥ëÊýË¡¤Ç¤¢¤ë. º£¤Ç¤â̵̾¤Ê¥½¥Õ¥È¥¦¥§¥¢¤ä¼«ºî¥½¥Õ¥È¥¦¥§¥¢¤Ë¤Ï¤³¤ÎÊýË¡¤·¤«¤Ê¤¤¤Î¤Ç¡¤ ·ë¶É¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤é¤Í¤Ð¤Ê¤é¤Ê¤¤. ¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï 2006ǯ¤Î±þÍÑ¿ôÍý7¤Î¼ø¶È¤Î³ºÅöÉôʬ*8 ¤Ç¤âÆɤó¤ÇÍߤ·¤¤.

(¼Â½¬)

  • ports ¥³¥ì¥¯¥·¥ç¥ó¤¬ /usr/ports °Ê²¼¤Ë¤¢¤ë¤³¤È¤ò³Îǧ¤·¤è¤¦.
  • ports ¥³¥ì¥¯¥·¥ç¥ó¤ÎÃ椫¤éÌÜÅö¤Æ¤Î¥½¥Õ¥È¥¦¥§¥¢¤òõ¤¹¤Ë¤Ï¤¤¤í¤ó¤ÊÊýË¡¤¬¹Í¤¨¤é¤ì¤ë¤¬¡¤°ìÈÖ´Êñ¤Ê¤Î¤Ïõ¤·¤¿¤¤¥½¥Õ¥È¥¦¥§¥¢Ì¾¤¬ ABC ¤À¤È¤·¤Æ
    (cd /usr/ports; make search name="ABC" )
    ¤È¤¹¤ëÊýË¡¤À. ¾¤Ë¤â¤¤¤í¤¤¤í¹Í¤¨¤é¤ì¤ë¤Î¤Ç;ÎϤΤ¢¤ë¼Ô¤Ï¹Í¤¨¤Æ¤ß¤è¤¦.

Î㤨¤Ð

 #!/bin/csh -f
 grep '^[^|]*'"$1" /usr/ports/INDEX-7 | awk -F\| '{print $1,":",$2,":",$(NF-1)}' | sort

¤È½ñ¤¤¤¿ "ports-find" ¤È¤¤¤¦¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤òºî¤Ã¤Æ "ports-find ABD" ¤Ê¤É¤È¤·¤Æ¤â¤è¤¤¤À¤í¤¦.

¤µ¤é¤ËÍ¥¤ì¤¿ÊýË¡¤È¤·¤Æ¡¤psearch ¤È¤¤¤¦¥Ä¡¼¥ë¤¬¤¢¤ë¤Î¤Ç¡¤¼Â¤Ï¤³¤ì¤¬¤ª´«¤á¤À.

¤Á¤Ê¤ß¤Ë¡¤´û¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥½¥Õ¥È¤Ï Package °·¤¤¤Ê¤Î¤Ç¡¤

 pkg_info 

¤È¤¹¤ë¤Èñ¤Ê¤ë¥ê¥¹¥È¤¬¡¤

 pkg_info -a

¤È¤¹¤ë¤È´ØÏ¢¤¹¤ë¾ðÊó¤¬Á´¤Æ½Ð¤Æ¤¯¤ë.

  • "psearch" ¤ò ports ¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤È¶¦¤Ë¡¤»È¤Ã¤Æ¤ß¤è.
    ¶ñÂÎŪ¤Ë¤Ï¡¤psearch ¤Î̾Á°¤Î¥Ç¥£¥ì¥¯¥È¥ê(¾å¤ÎÊýË¡¤Çõ¤»)¤Ë°ÜÆ°¤·¡¤
    make configure ¢ª make ¢ª make install  
    ¤È¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤«¡¤portinstall ¥³¥Þ¥ó¥É¤òÍѤ¤¤ë.
  • "fd" ¤È¤¤¤¦¥½¥Õ¥È¥¦¥§¥¢¤ò ports ¤ò»È¤Ã¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ß¤è¤¦.
    ¶ñÂÎŪ¤Ë¤Ï¡¤fd ¤Î̾Á°¤Î¥Ç¥£¥ì¥¯¥È¥ê(¾å¤ÎÊýË¡¤Çõ¤»)¤Ë°ÜÆ°¤·¡¤
    make configure ¢ª make ¢ª make install  
    ¤È¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤«*9¡¤portinstall ¥³¥Þ¥ó¥É¤òÍѤ¤¤ë.
    ¤½¤Î¸å¡¤fd ¥³¥Þ¥ó¥É¤Ç fd ¤¬µ¯Æ°¤¹¤ë¤³¤È("q" ¤Ç exit ¤Ç¤­¤ë), man fd, jman fd ¤È¤·¤Æ³Æ¡¹¥Þ¥Ë¥å¥¢¥ë¤¬Æɤá¤ë¤³¤È¤ò³Îǧ.

¤Ê¤ª¡¤¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë

Read the document files in /usr/local/share/doc/fd, 
and use the example fd2rc files in /usr/local/etc.

¤Ê¤É¤È¤¤¤¦Ãí°Õ½ñ¤­¤¬½ÐÎϤµ¤ì¤ë. ¤³¤¦¤·¤¿¤µ¤ê¤²¤Ê¤¤ÀâÌÀ¤ò¸«Æ¨¤µ¤Ê¤¤¤è¤¦¤Ë(°ì²ó¤·¤«½Ð¤Ê¤¤¤³¤È¤¬Â¿¤¤).
¤¿¤À¤·¡¤portinstall ¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¾ì¹ç¤Ï¡¤¤³¤ì¤Þ¤Ç¤ÎÀßÄê¤ò¤·¤Ã¤«¤ê¤·¤Æ¤¤¤ì¤Ð
¥¤¥ó¥¹¥È¡¼¥ë»þ¤Î¥í¥°¤¬ /var/log/ports ¤Ë»Ä¤Ã¤Æ¤¤¤ë¤Ï¤º¤Ê¤Î¤Ç¡¤¤³¤ì¤òÆɤá¤Ð¤è¤¤*10.

¤Á¤Ê¤ß¤Ë¡¤fd ¤ÎÀßÄêÅù¤Ë¤Ä¤¤¤Æ¤ÏÆüËܸì¥Þ¥Ë¥å¥¢¥ë¤òÆɤá¤ÐÎɤ¯Ê¬¤«¤ë(or ¿ä¬¤Ç¤­¤ë)¤¬¡¤´ðËÜŪ¤Ë¤Ï /usr/local/etc/fd2rc ¤¬¥·¥¹¥Æ¥à¶¦Ä̤ÎÀßÄê¥Õ¥¡¥¤¥ë¡¤~/.fd2rc ¤¬¸Ä¿ÍÍÑÀßÄê¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë.

  • ¤µ¤é¤Ë;ÎϤΤ¢¤ë¼Ô¤Ï¡¤Æ±ÍÍ¤Ë "rogue" ¤ò ports ¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ß¤è(¿ʬ rogue_s ¤¬¤è¤¤¤À¤í¤¦).

¥Ç¥£¥¹¥¯´ÉÍý¤Ë¤Ä¤¤¤Æ

(¼ç¤Ë¥Ï¡¼¥É)¥Ç¥£¥¹¥¯¤ò¤É¤¦°·¤¦¤«¤Ë¤Ä¤¤¤Æ¤Ï¡¤

fdisk
¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Î¤É¤ÎÉôʬ¤ò¤É¤Î OS ¤¬»È¤¦¤«ÀÚ¤êʬ¤±¤ë.
disklabel
FreeBSD ÍѤ˳ÎÊݤ·¤¿Éôʬ¤ò¤É¤¦»È¤¦¤«¤µ¤é¤ËÀÚ¤êʬ¤±¤ë.
newfs
¾å¤ÇºÙ¤«¤¯ÀÚ¤êʬ¤±¤¿Éôʬ(¥Ñ¡¼¥Æ¥£¥·¥ç¥ó)¤ËÍÑÅӤ˱þ¤¸¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºî¤ê¹þ¤à
mount
¾å¤ÇºÙ¤«¤¯ÀÚ¤êʬ¤±¤¿Éôʬ¤ò¤É¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë³ä¤êÅö¤Æ¤ë¤« /etc/fstab ¤Ê¤É¤Î¾ðÊ󤫤é·è¤á¤ë

¤È¤¤¤¦¥³¥Þ¥ó¥É¤ò¶î»È¤¹¤ëɬÍפ¬¤¢¤ë.
FreeBSD ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë¤Ï¤³¤ì¤é¤Î½àÈ÷¤ÏÂÐÏÃŪ¤Ë¹Ô¤ì¡¤¥³¥Þ¥ó¥É¤Ï sysinstall ¤¬¼Â¹Ô¤·¤Æ¤¯¤ì¤ë¤¬¡¤¡Ö¿·¤·¤¯Çã¤Ã¤Æ¤­¤¿¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤òÁýÀߤ·¤¿¤¤¡×¤Ê¤É¤Î¾ì¹ç¤Ï¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤ò°Õ¼±¤·¤¿Êý¤¬¤è¤¤¤À¤í¤¦.

(¼Â½¬)

less /etc/fstab 

¤È¤·¤Æ¤ß¤Æ¡¤¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Î¤É¤ÎÉôʬ¤¬¤É¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤ë¤«¸«¤Æ¤ß¤è¤¦(¾Ü¤·¤¯¤Ï jman fstab ¤È¤·¤Æ¥Þ¥Ë¥å¥¢¥ë¤òÆɤ⤦).

¤Þ¤¿¡¤¤µ¤é¤Ë

df

¤È¤·¤Æ¤ß¤è.
¤Þ¤¿¡¤jman mount, jman umount ¤È¤·¤Æ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ø¤Î³ä¤êÅö¤Æ¤òÊѤ¨¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤«¿ä¬¤»¤è(¤³¤ÎÊÕ¤ê¤Ï¸ýƬ¤ÇÀâÌÀ¤¹¤ë)*11.

¥Í¥Ã¥È¥ï¡¼¥¯ÀßÄê

¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÀßÄê¤ò¸«¤¿¤ê¡¤ÊѤ¨¤¿¤ê¤¹¤ë¤Ë¤ÏËÜÍè¤Ï³ÆÀßÄê¥Õ¥¡¥¤¥ë¤ò±ÜÍ÷/ÊÔ½¸¤¹¤ëɬÍפ¬¤¢¤ë.
Î㤨¤Ð¡¤

 ifconfig -a 

¤È¤¹¤ë¤È¥Í¥Ã¥È¥ï¡¼¥¯¤Îµ¡³£Åª¤ÊÀßÄ꤬¸«¤é¤ì¤ë.
¤·¤«¤·¡¤
sysinstall ¢ª Configure ¢ª Networking ¢ª Interface ¢ª (»È¤¦¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É: ¤¿¤¤¤Æ¤¤°ìÈÖ¾å)
¤È¤·¤Æ¤«¤éÀßÄꤹ¤ë¤³¤È¤ÇÂÐÏÃŪ¤Ë¤âÀßÄê¤Ç¤­¡¤¤¿¤Ö¤ó¤³¤Á¤é¤¬³Ú¤À¤í¤¦*12.
³ÆÀßÄêÆâÍƤˤĤ¤¤Æ¤Þ¤º¤¶¤Ã¤È½Ò¤Ù¤è¤¦.

IPv6 ?

IP version 6 ¤òÍѤ¤¤ë¤«¤É¤¦¤«¤ÎÀßÄê. ¤ï¤ì¤ï¤ì¤¬Ä̾ïÍѤ¤¤Æ¤¤¤ë IP ¤Ï version 4 ¤Ç¤¢¤ë. 2007ǯ¸½ºß¤Ç¤Ï¡¤¤Þ¤À IPv6 ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡¤¤È¤¤¤¦¥Í¥Ã¥È¥ï¡¼¥¯¤Ï¿¤¯¤Ê¤¤¤À¤í¤¦. Ä̾ï¤Ï No ¤Ç¹½¤ï¤Ê¤¤.

DHCP ?

Dynamic Host Configuration Protocol ¤Îά¤Ç¡¤¤½¤Î¥Þ¥·¥ó¤Î¥Í¥Ã¥È¥ï¡¼¥¯ÀßÄê¾ðÊó¤ò¥Í¥Ã¥È¥ï¡¼¥¯¼«¿È¤«¤éÌ㤦¤«? ¤È¤¤¤¦ÀßÄê.
¤³¤ì¤Ï¤½¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤Î´ÉÍý¼Ô¤ÎÀßÄê/¥Ý¥ê¥·¡¼¤Ë°Í¸¤¹¤ë¤Î¤Ç¡¤´ÉÍý¼Ô¤Ë¿Ò¤Í¤Æ¤ª¤«¤Ê¤¤¤È¤¤¤±¤Ê¤¤*13.
·×»»µ¡¼¼¤Ç¤Ï No ¤Ç¤¢¤ë.
Í­¸ú¤Ë¤·¤¿¾ì¹ç¤Ï¡¤/etc/rc.conf ¤Ë

 ifconfig_(¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É̾)="DHCP"

¤Èµ­½Ò¤µ¤ì¤ë.

Host name

¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Ç¤½¤Î¥Þ¥·¥ó¤¬Ì¾¾è¤ë̾Á°. ¥Æ¥­¥¹¥È·Á¼°¤Ç¤¢¤ê¡¤¿Í´Ö¸þ¤±¤Î¾ðÊó¤Ç¤¢¤ë.
DHCP Í­¸ú¤Î¾ì¹ç¤ÏÀßÄêÉÔÍפʤ³¤È¤¬Â¿¤¤.
·×»»µ¡¼¼¤Ç¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤ÏÀè½µ¤Î»ñÎÁ¤ò»²¾È¤Î¤³¤È.
¼ç¤Ë /etc/rc.conf ¤Ç

 hostname="..."

¤È½ñ¤«¤ì¤ÆÀßÄꤵ¤ì¤ë(½ñ¤«¤ì¤Æ¤¤¤ëÉôʬ¤ÎºÇ½é¤Î¥É¥Ã¥È¤Þ¤Ç).

Domain

¤½¤Î¥Þ¥·¥ó¤¬Â°¤¹¤ë¥Í¥Ã¥È¥ï¡¼¥¯¤½¤Î¤â¤Î¤Î̾Á°.
²È¤Ç¸À¤¨¤Ð½»½ê¤Î¤è¤¦¤Ê¤â¤Î.
DHCP Í­¸ú¤Î¾ì¹ç¤ÏÀßÄêÉÔÍפʤ³¤È¤¬Â¿¤¤.
·×»»µ¡¼¼¤Ç¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤ÏÀè½µ¤Î»ñÎÁ¤ò»²¾È¤Î¤³¤È.
¼ç¤Ë /etc/rc.conf ¤Ç

 hostname="..."

¤È½ñ¤«¤ì¤ÆÀßÄꤵ¤ì¤ë(½ñ¤«¤ì¤Æ¤¤¤ëÉôʬ¤ÎºÇ½é¤Î¥É¥Ã¥È°Ê¹ß).

Gateway

°¤¹¤ë¥Í¥Ã¥È¥ï¡¼¥¯¤Î³°¤Ø¤Î½Ð¸ý(Ãæ·Ñ¾ì½ê).
IP ¤Çµ­¤¹.
DHCP Í­¸ú¤Î¾ì¹ç¤ÏÀßÄêÉÔÍ×.
·×»»µ¡¼¼¤Ç¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤ÏÀè½µ¤Î»ñÎÁ¤ò»²¾È¤Î¤³¤È.
¼ç¤Ë /etc/rc.conf ¤Ç

 defaultrouter="..."

¤È½ñ¤«¤ì¤ÆÀßÄꤵ¤ì¤ë.

Name server

¥Û¥¹¥È̾¤È IP Address ¤ÎÊÑ´¹¾ðÊó¤ò¤É¤Î¥µ¡¼¥Ð¤Ë¿Ò¤Í¤ì¤Ð¤è¤¤¤«¡¤¤È¤¤¤¦¾ðÊó.
¤³¤ì¤¬Ìµ¤¤¤È¾¤Î¥Þ¥·¥ó¤Ø¤Î¥Û¥¹¥È̾¤Ç¤Î¥¢¥¯¥»¥¹¤¬¤Ç¤­¤Ê¤¤*14.
DHCP Í­¸ú¤Î¾ì¹ç¤ÏÀßÄêÉÔÍ×.
·×»»µ¡¼¼¤Ç¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤ÏÀè½µ¤Î»ñÎÁ¤ò»²¾È¤Î¤³¤È.
¼ç¤Ë /etc/resolv.conf ¤Ç

 nameserver ...

¤È½ñ¤«¤ì¤ÆÀßÄꤵ¤ì¤ë.

IP Address

¥Þ¥·¥ó¤¬¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Ç»ý¤ÄÈÖ¹æ. ¿ô»ú¤Çɽ¤µ¤ì¡¤µ¡³£¸þ¤±¤Î¾ðÊó.
¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÁê¸ß¤Î¼ÂºÝ¤Î¥¢¥¯¥»¥¹¤Ï IP Address ¤ò»È¤Ã¤Æ¤µ¤ì¤ë¤¿¤á¡¤¾¯¤Ê¤¯¤È¤â°¤¹¤ë¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Ç¤Ï IP Address ¤ÏÍ£°ì¤Ç¤Ê¤¤¤È¤¤¤±¤Ê¤¤.
DHCP Í­¸ú¤Î¾ì¹ç¤ÏÀßÄêÉÔÍ×.
·×»»µ¡¼¼¤Ç¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤ÏÀè½µ¤Î»ñÎÁ¤ò»²¾È¤Î¤³¤È.
¼ç¤Ë /etc/rc.conf ¤Ç

 ifconfig_(¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É̾)="inet ....  netmask ...."

¤È½ñ¤«¤ì¤¿ inet .... ¤ÎÉôʬ¤ÇÀßÄꤵ¤ì¤ë.

Netmask

¼«Ê¬¤Î IP ¤òµ­¤·¤¿¤È¤­¤Ë¡¤¤É¤³¤Þ¤Ç¤¬¥Í¥Ã¥È¥ï¡¼¥¯¤Î»ý¤ÄÈÖ¹æ¤Ç¡¤¤É¤³¤«¤é¤¬¼«Ê¬¤Î¥Þ¥·¥ó¤¬(¤½¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤Î¤Ê¤«¤Ç)»ý¤ÄÈֹ椫¤ò¶èÊ̤¹¤ë¤¿¤á¤Ë»È¤¦¾ðÊó.
Æó¿Ê¿ôɽ¼¨¤·¤¿¤È¤­¤Ë "1" ¤Ë¤Ê¤ë¤È¤³¤í¤Þ¤Ç¤¬¥Í¥Ã¥È¥ï¡¼¥¯¤Î¾ðÊó¤Ç "0" ¤Ë¤Ê¤ë¤È¤³¤í¤¬¥Þ¥·¥óÊÌÍѤξðÊó¤È¤¤¤¦¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë.
"." ¤Ç¶èÀڤäÆ10¿Ê¿ô¤Çɽ¤¹¤«¡¤0x ¤òƬ¤Ë¤Ä¤±¤Æ 16¿Ê¿ô¤Çɽ¤¹.
DHCP Í­¸ú¤Î¾ì¹ç¤ÏÀßÄêÉÔÍ×.
·×»»µ¡¼¼¤Ç¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤ÏÀè½µ¤Î»ñÎÁ¤ò»²¾È¤Î¤³¤È.
¼ç¤Ë /etc/rc.conf ¤Ç

 ifconfig_(¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É̾)="inet ....  netmask ...."

¤È½ñ¤«¤ì¤¿ netmask .... ¤ÎÉôʬ¤ÇÀßÄꤵ¤ì¤ë.

(¼Â½¬)

  • ¾å¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÀßÄê¤ò¥Õ¥¡¥¤¥ë(/etc/rc.conf, /etc/resolv.conf)¤òÆɤó¤Ç³Î¤«¤á¤è.
  • ¼ÂºÝ¤Ë
     ifconfig -a
    ¤È¤·¤Æ¤ß¤Æ¡¤¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÀßÄê¤È¾È¹ç¤»¤è.

¤½¤Î¾, ¥Í¥Ã¥È¥ï¡¼¥¯¤Ë´Ø¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë¸½¤ì¤¿ºÙ¤«¤¤ÀßÄê

inetd ?

¥Í¥Ã¥È¥ï¡¼¥¯¥µ¡¼¥Ó¥¹¤ÎÁí¹ç¼õÉդǤ¢¤ë inetd ¤ò½àÈ÷¤·¤Æ¤ª¤¯¤«? ¤È¤¤¤¦ÀßÄê¤Ç¤¢¤ë.
ɬÍפʤé¤Ð /etc/rc.conf ¤Ë

 inetd_enable = "YES" 

¤È½ñ¤±¤Ð¤è¤¤.

sshd ?

¥Ç¡¼¥¿¤¬°Å¹æ²½¤µ¤ì¤¿¥í¥°¥¤¥ó·ÐÏ©¤Ç¤¢¤ë ssh ¤Î¼õÉÕ¤ò¤¹¤ë¤«? ¤È¤¤¤¦ÀßÄê¤Ç¤¢¤ë.
Í­¸ú¤Ë¤·¤Æ¤ª¤¯¤Î¤¬¤è¤¤.
/etc/rc.conf ¤Ë

 sshd_enable = "YES" 

¤È½ñ¤±¤Ð¤è¤¤.

NFS server ? NFS client ?

¥Í¥Ã¥È¥ï¡¼¥¯·Ðͳ¤Ç¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤ò»È¤¨¤ë¤è¤¦¤Ë¤¹¤ë¤«? ¤È¤¤¤¦ÀßÄê¤Ç¤¢¤ë.
server ¤Ï¡Ö¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤ò»ý¤Ã¤Æ¤¤¤ë¦¡×¡¤client ¤Ï¡Ö¤½¤ì¤òÍøÍѤ¹¤ë¦¡×¤Ç¤¢¤ë.
NFS ¤Î»ÅÁȤߤϽÅÍפÀ¤¬¡¤¤½¤Î¥½¥Õ¥È¥¦¥§¥¢¤Ï¤ä¤ä»È¤¤¤Ë¤¯¤¤. »È¤¦¤Ë¤Ï³Æ¡¹ /etc/rc.conf ¤Ë

 nfs_server_enable = "YES" 
 nfs_client_enable = "YES" 

¤È½ñ¤±¤Ð¤è¤¤.

Console ¥­¡¼¥Ü¡¼¥É¤ÎÀßÄê

·Ò¤¬¤Ã¤Æ¤¤¤ë¥­¡¼¥Ü¡¼¥É¤ò¥³¥ó¥½¡¼¥ë¤Ç¤Ä¤«¤¦¾ì¹ç¡¤¥­¡¼¥Ü¡¼¥É¤ò¹ç¤ï¤»¤Æ¤ª¤¯¤È¤è¤¤.
±Ñ¸ì¥­¡¼¥Ü¡¼¥É¤Ê¤é¤ÐÆä˲¿¤â¤¹¤ëɬÍפϤʤ¤¤¬¡¤ÆüËܸ쥭¡¼¥Ü¡¼¥É¤Î¾ì¹ç¤Ï /etc/rc.conf ¤Ë

 keymap="jp.106"

¤Ê¤¤¤·¤Ï

 keymap="jp.106x"

¤È½ñ¤¤¤Æ¤ª¤¯(¸å¼Ô¤Ï Ctrl ¥­¡¼¤È Caps ¥­¡¼¤Îµ¡Ç½¤ò¸ò´¹¤·¤Æ»È¤¦¾ì¹ç).

mouse ¤ÎÍøÍÑ

¥Þ¥¦¥¹¤ò»È¤ï¤Ê¤¤! ¤È¤¤¤¦¾ì¹ç¤Ï¾¯¤Ê¤¤¤À¤í¤¦¤«¤é¤Þ¤¢ÀßÄꤷ¤Æ¤ª¤¯¤Î¤¬¤è¤¤¤À¤í¤¦.
/etc/rc.conf ¤Ë

 moused_enable = "YES" 

¤È½ñ¤¤¤Æ¤¢¤ë¤³¤È¤ò³Îǧ¤·¤è¤¦.

(¼Â½¬¡Ë

¾å¤ÎÀßÄ꤬º£¸½ºß¤É¤¦¤Ê¤Ã¤Æ¤¤¤ë¤«¡¤/etc/rc.conf ¤ò¸«¤Æ³Î¤«¤á¤è.

¥¢¥«¥¦¥ó¥È´ÉÍý

Unix·Ï OS ¤Ç¤Ï¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤Ï°Ê²¼¤Î¤è¤¦¤Ê¾ðÊó¤Ç´ÉÍý¤µ¤ì¤ë.

¥¢¥«¥¦¥ó¥È̾¡¤¥í¥°¥¤¥óid
¥Æ¥­¥¹¥È¤Ç¹½À®¤µ¤ì¤ë¥¢¥«¥¦¥ó¥È̾. Í£°ì¤Ç¤¢¤ëɬÍ×¥¢¥ê.
uid
¤½¤Î¥¢¥«¥¦¥ó¥È¤ò¶èÊ̤¹¤ë¤¿¤á¤ÎÇØÈÖ¹æŪ¤Ê¤â¤Î¤Çñ¤Ê¤ë¿ô»ú. ¥·¥¹¥Æ¥à¤ÎÍÍ¡¹¤Ê¸¢¸Â¤¬¤¢¤ë¤«¤É¤¦¤«¤Ï uid ¤Ç¶èÊ̤µ¤ì¤ë.¤¿¤À¤·¡¤¥í¥°¥¤¥ó¥·¥¹¥Æ¥à¤ä¥·¥§¥ë¤Ï¥¢¥«¥¦¥ó¥È̾¤Ç¥¢¥«¥¦¥ó¥È¤ò¶èÊ̤¹¤ë*15 sysinstall, adduser ¥³¥Þ¥ó¥É¤Ê¤É¤Ç¤Ï¼«Æ°Åª¤Ë¸õÊ䤬ºîÀ®¤µ¤ì¤ë.
Group
¤½¤Î¥¢¥«¥¦¥ó¥È¤¬¼ç¤Ë°¤¹¤ë¥°¥ë¡¼¥×̾. ¥·¥¹¥Æ¥à¤ÎÍÍ¡¹¤Ê¸¢¸Â¤Ï¤è¤êÀµ¤·¤¯¤Ï uid ¤È½ê°¥°¥ë¡¼¥×¤Ç¶èÊ̤µ¤ì¤ë¤Î¤Ç¡¤¤É¤Î¥°¥ë¡¼¥×¤Ë°¤¹¤ë¤«¤Ï½ÅÍפÀ¤¬¡¤¡Ö¼ç¤Ë¡×°¤·¤Æ¤¤¤Ê¤¯¤Æ¤â¤è¤¤¤Î¤Ç¡¤¼Â¤Ï¤³¤³¤ÏŬÅö¤Ç¤â¤è¤¤. sysinstall, adduser ¥³¥Þ¥ó¥É¤Ê¤É¤Ç¤Ï¼«Æ°Åª¤Ë¸õÊ䤬ºîÀ®¤µ¤ì¤ë.
Password
¥í¥°¥¤¥ó»þ¤Ê¤É¤ËɬÍפʥѥ¹¥ï¡¼¥É. ¸å¤Ç¥æ¡¼¥¶¤¬
 passwd
¤È¤·¤ÆÊѹ¹¤Ç¤­¤ë. ´ÉÍý¼Ô¤ÏÁ´¥¢¥«¥¦¥ó¥È¤Î¥Ñ¥¹¥ï¡¼¥É¤ò¼«Í³¤ËÀßÄê¤Ç¤­¤ë.
Full name
¥Õ¥ë¥Í¡¼¥à. ¿Í´ÖÍѾðÊó¤Ê¤Î¤Ç¡¤¼Â¤Ï²¿¤ò½ñ¤¤¤Æ¤â¤è¤¤.
Member group, Other group
¾¤Ë°¤·¤Æ¤¤¤ë¥°¥ë¡¼¥×̾. ¤³¤ì¤Ï½ÅÍ×. ¤¢¤È¤Ç´ÉÍý¼Ô¤Ë¤Ê¤ë¤Ù¤­¿Í¤¬»È¤¦¥¢¥«¥¦¥ó¥È¤Ï¤È¤ê¤¢¤¨¤º wheel, operator ¤È¤·¤Æ¤ª¤¯¤Ù¤·. wheel ¤Ë°¤·¤Æ¤¤¤ë¤È´ÉÍý¼Ô¤Ë¤Ê¤ë¸¢¸Â¤¬¡¤operator ¤Ë°¤·¤Æ¤¤¤ë¤ÈÍÍ¡¹¤ÊÆüì¤Ê¥³¥Þ¥ó¥É¤ò»È¤¦¸¢¸Â¤¬¼ê¤ËÆþ¤ë.
Home directory
¤½¤Î¥¢¥«¥¦¥ó¥È¥æ¡¼¥¶¤¬¸ÇÍ­¤Ç»È¤¨¤ë¥Ç¥£¥ì¥¯¥È¥ê. Ä̾ï¤Ï /home/¥¢¥«¥¦¥ó¥È̾ ¤È¤¹¤ë¤³¤È¤¬Â¿¤¤. sysinstall, adduser ¥³¥Þ¥ó¥É¤Ê¤É¤Ç¤Ï¼«Æ°Åª¤Ë¸õÊ䤬ºîÀ®¤µ¤ì¤ë.
Login Shell
¥í¥°¥¤¥ó»þ¤«¤é»È¤¦¥·¥§¥ë. /etc/shells ¤Ë¥ê¥¹¥È¥¢¥Ã¥×¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤ÎÃ椫¤é¤·¤«Áª¤Ù¤Ê¤¤¤Î¤ÇÃí°Õ*16. ¤¿¤À¤·¡¤"nologin" ¤ÏÆÃÊ̤ǡ¤¤³¤ì¤òÁª¤Ö¤È¥í¥°¥¤¥ó¤Ç¤­¤Ê¤¯¤Ê¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë. ¸å¤Ç¥æ¡¼¥¶¤¬
 chsh -s /bin/tcsh
¤Ê¤É¤È¤·¤ÆÊѹ¹¤Ç¤­¤ë.

¤µ¤Æ¡¤¤³¤ì¤é¤Î¾ðÊó¤ÎÀßÄêÊýË¡¤Ï¼ç¤Ë°Ê²¼¤Î3Ä̤ê¤Ç¤¢¤ë.
¤¿¤À¤·¡¤´ÉÍý¼Ô(root,¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶)¤Ç¤Ê¤¤¤È½ÐÍè¤Ê¤¤ºî¶È¤Ç¤¢¤ë¤³¤È¤Ï¸À¤¦¤Þ¤Ç¤â¤Ê¤¤.

ÊýË¡²òÀâ
adduser ¥³¥Þ¥ó¥É¤ò»È¤¦(¿·µ¬»þ)¤ªµ¤³Ú. ´Ö°ã¤¨¤¿¤é Ctrl-C ¤Ç»ß¤á¤ì¤Ð¤è¤¤¤·¡¤¸å¤Ç(¸å½Ò¤Î¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ)½¤Àµ¤â¸ú¤¯. ¤¿¤À¤·¡¤¡ÖÊѹ¹¡×¤Ë¤Ï»È¤¨¤Ê¤¤.
sysinstall ¢ª Configure ¢ª User Management ¤È¤¹¤ëÊýË¡¤è¤êµ¤³Ú. ¤¿¤À¤·¤³¤ì¤â¡Ö½¤Àµ¡×¤Ë¤Ï»È¤¨¤Ê¤¤.
¥³¥Þ¥ó¥É¤ò»È¤¦ºÇ½ªÅª¤Ë¤Ï¤³¤ì¤¬É¬Í×.

vipw ¡Ä ¥¢¥«¥¦¥ó¥È̾¡¤uid, ¼ç¥°¥ë¡¼¥×id, ¥Õ¥ë¥Í¡¼¥à, ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Î»ØÄê, ¥í¥°¥¤¥ó¥·¥§¥ë¤òÀßÄꤹ¤ë¥³¥Þ¥ó¥É. ¶ñÂÎŪ¤Ë¤Ï¡¤¥¨¥Ç¥£¥¿*17¤Ç /etc/passwd ¥Õ¥¡¥¤¥ë¤ò¡ÖÀµ¤·¤¯¡×¸Æ¤Ó½Ð¤¹.¤³¤Î¥³¥Þ¥ó¥É°Ê³°¤ÎÊýË¡¤Ç¤³¤Î¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤¹¤ë¤³¤È¤Ï°ÕÌ£¤¬¤Ê¤¤¤Î¤ÇÍ×Ãí°Õ¤À.

/etc/group ¥Õ¥¡¥¤¥ë¡Ä ÉáÄ̤˥¨¥Ç¥£¥¿¤ÇÊÔ½¸²Ä. ¥°¥ë¡¼¥×¤ÎºîÀ®¡¤ÊÔ½¸¡¤¥¢¥«¥¦¥ó¥È¤Î½ê°¤ò¼«Í³¤ËÊÔ½¸¤Ç¤­¤ë.

¤¢¤È¡¤adduser ¤ä sysinstall ¤òÍѤ¤¤Ê¤¤¾ì¹ç¤Ï¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤¬¼«Æ°Åª¤Ëºî¤é¤ì¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¤³¤È¤Ë¤âÃí°Õ¤¬É¬ÍפÀ¤í¤¦.

¥¢¥«¥¦¥ó¥È¥Á¥§¥ó¥¸

¸¢¸Â¤¬¤¢¤ë¤Ê¤é¤Ð¡¤¥í¥°¥¤¥ó¤·¤¿¾õÂ֤Ǿ¤Î¥æ¡¼¥¶¤Ë¤Ê¤ê¤«¤ï¤ë¤³¤È¤¬¤Ç¤­¤ë.
Î㤨¤Ð¡¤¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤¬ "hogehoge" ¤È¤¤¤¦¥æ¡¼¥¶¤Ë¤Ê¤ê¤«¤ï¤ê¤¿¤±¤ì¤Ð

 su hogehoge

¤È¤¹¤ì¤Ð¤è¤¤.
µÕ¤Ë¡¤ÉáÄ̤Υ桼¥¶¤¬¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ë¤Ê¤ê¤«¤ï¤ê¤¿¤¤¾ì¹ç¤Ï

su

¤È¤¹¤ì¤Ð¤è¤¤(¤¿¤À¤·¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É¤òÃΤé¤Ê¤¤¾ì¹ç¤È¸¢¸Â¤¬¤Ê¤¤¾ì¹ç¤ÏµñÀ䤵¤ì¤ë).

(¼Â½¬)

  • ξÎ٤ꤢ¤¿¤ê¤Î¿Í¡¤Æó¿Í¤Î¥¢¥«¥¦¥ó¥È¤òºîÀ®¤»¤è. ¤½¤·¤Æ¡¤¤Þ¤º¤ÏÉáÄ̤˥³¥ó¥½¡¼¥ë¤«¤é¥í¥°¥¤¥ó¤Ç¤­¤ë¤³¤È¤ò³Îǧ¤»¤è. ¼¡¤Ë¡¤¤½¤Î¿Í¤Ë¤½¤Î¿Í¤Î¥Þ¥·¥ó¤«¤é ssh ¤Ç¥í¥°¥¤¥ó¤·¤ÆÌ㤤¡¤¥í¥°¥¤¥ó¤Ç¤­¤ë¤³¤È¤ò³Îǧ¤»¤è. ¤Ê¤ª¡¤ssh ¤Ç¤Î¥í¥°¥¤¥ó¤Ï
     ssh Áê¼ê¥Þ¥·¥ó¤Ç¤Î¼«Ê¬¤Î¥¢¥«¥¦¥ó¥È̾@Áê¼ê¥Þ¥·¥ó¤Î¥Û¥¹¥È̾
    ¤È¤¹¤ë.
  • furihata ¤È¤¤¤¦¥¢¥«¥¦¥ó¥È¤òºîÀ®¤»¤è. ¤³¤Î¥¢¥«¥¦¥ó¥È¤Î¥Ñ¥¹¥ï¡¼¥É¤Ï¼ø¶È»þ¤Ë¸ýƬ¤ÇÅÁ¤¨¤ë.

¥ì¥Ý¡¼¥È

ËÜÆü¹Ô¤Ã¤¿ºî¶È¤Ë¤Ä¤¤¤Æ furihata ¤¢¤Ã¤È cmc.osaka-u.ac.jp ¤Ë¥á¡¼¥ë¤ÇÊó¹ð¤»¤è.
¤â¤Á¤í¤ó³Æ¼«¤Î

  1. ½ê°(³ØÉô¡¤³Ø²Ê)
  2. ³ØÀÒÈÖ¹æ
  3. ³Øǯ
  4. »á̾
  5. Æü»þ
  6. ´Î¿´¤Î¥ì¥Ý¡¼¥ÈÆâÍÆ(ÆÀ¤¿Ãθ«¡¤ºî¶È¤Ë¤Ä¤¤¤Æµ¤¤Å¤¤¤¿¤³¤ÈÅù)

¤ò½ñ¤¯¤Î¤ò˺¤ì¤Ê¤¤¤è¤¦¤Ë.


*1 ¤â¤Á¤í¤ó¡¤X ¤òΩ¤Á¾å¤²¤Ê¤¤¾õÂ֤Υ³¥ó¥½¡¼¥ë¤ò»È¤Ã¤Æ¤â¹½¤ï¤Ê¤¤
*2 ¥Ç¥Õ¥©¥ë¥È¤ÇÆþ¤Ã¤Æ¤¤¤ë¤â¤Î¤À¤¬¡¤À­Ç½¤Ïº£°ì¤Ä. ÆüËܸì¥Þ¥Ë¥å¥¢¥ë¤ÈÁêÀ­¤¬°­¤¤.
*3 Alt+F2 ¤À¤È2¤Ä¤á¤Î¥³¥ó¥½¡¼¥ë¡¤Alt+F3 ¤À¤È£³¤Ä¤á¤Î¥³¥ó¥½¡¼¥ë¤Ë¤Ê¤ë
*4 X ¤ËÌá¤ë¤Ë ¤Ï Alt+F9 ¤¢¤¿¤ê¤«
*5 ºÇ¶á¤Ï´ÉÍýÍѤΠGUI ¤â¿¤¤¤¬¡¤¤¿¤¤¤Æ¤¤¤Î¤â¤Î¤Ï¡Ö¤«¤Ö¤»¤¿¤À¤±¡×¤Ç¤¢¤ë
*6 ¤¿¤À¤·¤³¤Î¾ì¹ç¤Ï°Í¸´Ø·¸¤Ï¼«Æ°Åª¤Ë²ò·è¤µ¤ì¤Ê¤¤¤Ï¤º
*7 ¼Â¤Ï¡¤ports ¤Ï¥½¡¼¥¹¤«¤é¥³¥ó¥Ñ¥¤¥ë¤¹¤ë¤¿¤á¤Î¡Ö¾ðÊó¡×¤ò½¸¤á¤¿¤À¤±¤Î¤â¤Î¤Ç¤¢¤ë.¥³¥ó¥Ñ¥¤¥ë¤·¤¿·ë²Ì¤ÏÆâÉôŪ¤Ë¤Ï Package ¤È¤·¤Æ°·¤ï¤ì¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤ë.¤è¤Ã¤Æ¡¤ports ¤«¤é¤Ç¤â Package ¤«¤é¤Ç¤â¥½¥Õ¥È¤Î¥¤¥ó¥¹¥È¡¼¥ë¸å¤Ï Package ¤È¤·¤Æ°·¤ï¤ì¤ë.
*8 linux ¤ò»È¤Ã¤Æ¤¤¤ë¤¬´ðËܤϰì½ï.
*9 ¤³¤Î¾ì¹ç¡¤¥¤¥ó¥¹¥È¡¼¥ë¸å¤Ë make clean ¤È¤·¤Æ¥³¥ó¥Ñ¥¤¥ë»þ¤Ë¤Î¤ßɬÍפÀ¤Ã¤¿¥Õ¥¡¥¤¥ë¤òºï½ü¤·¤¿Êý¤¬¥Ç¥£¥¹¥¯¤¬ÌµÂ̤ˤʤé¤Ê¤¤.
*10 ¤À¤«¤é¥í¥°¤Ï½ÅÍפʤΤÀ
*11 ¤è¤¯Ê¬¤«¤é¤Ê¤¤¤¦¤Á¤Ï mount ¥³¥Þ¥ó¥É¤â umount ¥³¥Þ¥ó¥É¤â¼Â¹Ô¤·¤Ê¤¤¤³¤È!!
*12 ¤¿¤À¤·¡¤/etc/rc.conf ¤Ï¼«Æ°Åª¤Ë¡ÖÄɵ­¡×¤µ¤ì½¤Àµ¤µ¤ì¤Ê¤¤¤Î¤Ç sysinstall ¤ÇÀßÄꤹ¤ëÅ٤˱ø¤¯¤Ê¤ë.ŬÅö¤Ê»þ´ü¤Ë¿Í´Ö¤¬¥¨¥Ç¥£¥¿¤ÇåºÎï¤Ë¤·¤¿Êý¤¬¤è¤¤¤À¤í¤¦. ¤Á¤Ê¤ß¤Ë /etc/rc.conf ¤Îµ­½Ò¤Ï²¼¤ÎÊý¤Û¤ÉÍ¥Àè½ç°Ì¤¬¹â¤¤.
*13 Î㤨¤Ð¡¤VMwarePlayer ¤Ç¤Ï NAT + DHCP ÀßÄê¤Ë¤¹¤ë¤Î¤¬³Ú¤À¤í¤¦¡¤¤Ê¤É.
*14 µÕ¤Ë¸À¤¨¤Ð¡¤IP Address ¤¬Ê¬¤«¤Ã¤Æ¤¤¤ì¤Ð Name server ¤Øʹ¤«¤Ê¤¯¤Æ¤â¥¢¥¯¥»¥¹¤Ç¤­¤ë. ÉÔÊؤÀ¤¬.
*15 ¤Ä¤Þ¤ê¡¤Æ±¤¸ uid ¤À¤¬¥¢¥«¥¦¥ó¥È̾¤¬°Û¤Ê¤ë¥¢¥«¥¦¥ó¥È(ÊÌ̾¥¢¥«¥¦¥ó¥È)¤òºîÀ®¤¹¤ë¤³¤È¤¬²Äǽ.»È¤¤Êý¤Ë¤è¤Ã¤Æ¤Ï¤È¤Æ¤âÊØÍø¤À¤¬¡¤¤è¤¯Ê¬¤«¤Ã¤Æ̵¤¤¿Í¤Ë¤È¤Ã¤Æ¤Ïº®Íð¤Î¤â¤È¤«.
*16 »È¤¤¤¿¤¤¥·¥§¥ë¤¬ /etc/shells ¤Ë½ñ¤¤¤Æ¤Ê¤±¤ì¤Ð root ¤Ç½ñ¤­¹þ¤ó¤Ç¤ª¤¯¤³¤È
*17 ¤É¤Î¥¨¥Ç¥£¥¿¤¬¸Æ¤Ð¤ì¤ë¤«¤Ï´Ä¶­ÊÑ¿ô "EDITOR" ¤ÎÀßÄê¤Ë¤è¤ë. ÀßÄꤷ¤Æ¤Ê¤¤¤È vi ¤¬½Ð¤Æ¤¯¤ë