»ï¹Ù, À©95,  NT,  HP Jetdirect ÇÁ¸°Åͼ­¹ö

±Û¾´ÀÌ :  Eugene Blanchard
¹ø¿ª : ¹èö¼ö / ¸®´ª½º¿ùµå ¹ßÇàÀÎ

 

     

    ¿ªÀÚ ÁÖ]  ÀÌ ±ÛÀº ¸®´ª½º°¡Á¦Æ® 48È£ ±â»çÀÔ´Ï´Ù.

    ³ª´Â Àü¿ëÀåºñ¿¡ ¶ó¿ìÆà ¿ø¸®¸¦ °¡¸£Ä¡´Â ¿¬±¸¼Ò¸¦ ¿î¿µÇÏ°í ÀÖ´Ù. Çǽà 9 ´ë, ¼­¹ö 1 ´ë, HP Jetdirect ÇÁ¸°ÅÍ ¼­¹ö Ä«µå°¡ ÀåÂøµÈ HP ·¹ÀÌÀúÁ¬ 4050N ÇÁ¸°ÅÍ µîÀÌ ÀÖ°í 18°³ÀÇ Á¼®ÀÌ ÀÖ´Ù.

    ¼­¹ö´Â Ä¿³Î 2.2.6À» »ç¿ëÇÏ´Â ½½·¢¿þ¾î 4.0 ¸®´ª½ºÀÌ°í, Çǽà Áß 8 ´ë´Â NT 4.0, 1 ´ë´Â À©95ÀÌ´Ù.

    ³»°¡ ¸®´ª½º ¼­¹ö¿¡ ÇÊ¿ä·Î ÇÏ´Â ±â´ÉÀº ¾Æ·¡¿Í °°´Ù.

      1. ÁÖ µµ¸ÞÀÎ ÄÜÆ®·Ñ·¯°¡ ¾Æ´Ñ ¿öÅ©±×·ì ¼­¹ö
      2. ¸¶½ºÅÍ À¥ºê¶ó¿ìÀú
      3. °¢ »ç¿ëÀÚÀÇ È¨µð·ºÅ丮 °øÀ¯
      4. public µð·ºÅ丮¸¦ »ç¿ëÀÚ °£¿¡ °øÀ¯
      5. ¼­¹öÀÇ ½Ãµð·Ò µå¶óÀÌºê °øÀ¯
      6. HP ·¹ÀÌÀúÁ¬ ÇÁ¸°ÅÍ °øÀ¯

    µÎ °¡ÁöÀÇ ¼±ÅÃÀÌ °¡´ÉÇѵ¥ NFS¸¦ »ç¿ëÇÏ°í °¢ Ŭ¶óÀ̾ðÆ®¸¦ ¸®´ª½º ¼­¹ö¿¡ ¿¬°áÇϵµ·Ï ±¸¼ºÇÏ´Â °Í°ú »ï¹Ù¸¦ »ç¿ëÇÏ°í ´ÜÁö ¸®´ª½º ¼­¹ö¸¸ ¼Â¾÷ÇÏ´Â °ÍÀ̾ú´Ù.

    ¿¬±¸¼Ò ¿î¿µ Áß¿¡´Â Ŭ¶óÀ̾ðÆ®´Â Á¤±âÀûÀ¸·Î Àç ±¸¼º µÇ°í ¸®ºÎÆà ÈÄ Àç ¼³Á¤ÇÑ´Ù. SAMBA ¸¦ »ç¿ëÇÏ¸é ¸®´ª½º ¼­¹ö´Â À©µµ¿ì Ŭ¶óÀ̾ðÆ®¿¡ Åõ¸íÇÏ°í Ŭ¶óÀ̾ðÆ® ¼³Á¤µµ °£ÆíÇÏ´Ù´Â °á·Ð¿¡ µµ´ÞÇß´Ù.

    ÀÌ ±ÛÀº ¾Æ·¡ÀÇ °æ¿ì¸¦ ¼³¸íÇÑ´Ù.

      1. ½½·¢¿þ¾î¿¡¼­ »ï¹Ù ¼Â¾÷
      2. À©95·ÎºÎÅÍ ¿¬°á ¹× ·Î±×¿Â
      3. ¾ÏȣȭµÈ Æнº¿öµå¸¦ »ç¿ëÇÏ´Â NT·ÎºÎÅÍÀÇ ¿¬°á ¹× ·Î±×¿Â
      4. ¸®´ª½º¸¦ HP Jetdirect ÇÁ¸°Åͼ­¹ö¿¡ ¿¬°áÇÏ´Â ¹æ¹ý
      5. »ï¹Ù¸¦ »ç¿ëÇÏ¿© ¸®´ª½º ÇÁ¸°Å͸¦ °øÀ¯ÇÏ´Â ¹ý

    ÁÖ¢º  ÀÌ ±ÛÀº HOWTO Çü½ÄÀÇ ±ÛÀÌ ¾Æ´Ï°í ½ÇÁ¦ ÀÛµ¿ÇÏ´Â ±¸¼º ¿¹ÀÌ¸ç »ï¹Ù¸¦ ±¸¼ºÇÏ´Â
            °úÁ¤ÀÌ´Ù.

 

»ï¹Ù ¼³Ä¡

    ¼³Ä¡ °úÁ¤Àº ¹èÆ÷º»¿¡ µû¶ó ´Ù¸£´Ù. ½½·¢¿þ¾î¶ó¸é ¸®´ª½º ¼³Ä¡ °úÁ¤¿¡¼­ ¼±ÅÃÇϵçÁö ±âÁ¸ ½Ã½ºÅÛ¿¡¼­´Â pkgtool ÇÁ·Î±×·¥À» »ç¿ëÇ϶ó.

    ½½·¢¿þ¾î¿¡¼­´Â ¡°/etc/rc.d/rc.samba¡± ÆÄÀÏ¿¡¼­ »ï¹Ù¸¦ ½ÃÀÛÇÑ´Ù.
     

    #
    # rc.samba: Start the samba server
    #
    if [ -x /usr/sbin/smbd -a -x /usr/sbin/nmbd ]; then
       echo ¡°Starting Samba...¡±
       /usr/sbin/smbd -D
       /usr/sbin/nmbd -D
    fi

     

    smbd ÇÁ·Î±×·¥Àº Ŭ¶óÀ̾ðÆ®¿¡°Ô  SMB/CIFS ¼­ºñ½º¸¦ Á¦°øÇÑ´Ù.
    SMB (Server Message Block) ´Â À©95 ³ª NT Ŭ¶óÀ̾ðÆ®°¡ ³×Æ®¿öÅ·À» Çϴµ¥ »ç¿ëµÇ´Â ¼­ºñ½ºÀÌ´Ù. SMBÀÇ »õ À̸§Àº Common Internet File System (CIFS) ÀÌ´Ù.

    nmbd ÇÁ·Î±×·¥Àº Ŭ¶óÀ̾ðÆ®¿¡°Ô IP ³×Æ®¿öÅ©¿¡¼­ NETBIOS ³×ÀÓ¼­ºñ½º¸¦ Çã¿ëÇÏ´Â NETBIOS ³×ÀÓ¼­¹öÀÌ´Ù.

    ¡°ps  -aux¡± ¸í·ÉÀ¸·Î ½ÇÇà ÁßÀÎ ÇÁ·Î¼¼½º¸¦ º¼ ¼ö ÀÖÀ¸¹Ç·Î smbd ¿Í nmbd ½ÇÇà ¿©ºÎ¸¦ È®ÀÎ ÇÒ ¼ö ÀÖ´Ù.

    ¾Æ·¡´Â ½ÇÇà °á°ú´Ù.
     

 USER   PID  %CPU  %MEM   VSZ   RSS  TTY  STAT   START   TIME   COMMAND
root      1       0.0       0.2      220    128    ?      S       Oct21    0:02        init  
root      2       0.0       0.0       0       0       ?     SW     Oct21    0:00    [kflushd]
root      3       0.0       0.0       0       0       ?     SW     Oct21    0:00    [kpiod]
root      4       0.0       0.0       0       0       ?     SW     Oct21    0:00    [kswapd]

root    101      0.0      0.5    1544    380     ?      S      Oct21    0:00   /usr/sbin/smbd -D
root    103      0.0      0.9    1196    584     ?      S      Oct21    0:03   /usr/sbin/nmbd -D

root    8113    0.4       0.9   1164     616   ttyp0  S     11:14      0:00     -bash
root    8120    0.0       1.1   2272     744   ttyp0  R     11:14      0:00     ps -aux

     

»ï¹Ù ±¸¼º ÆÄÀÏ

    »ï¹Ù ±¸¼ºÆÄÀÏÀº /etc/smb.conf ÀÌ´Ù. /usr/doc/samba-2.0.3/examples ¿¡ ¸¹Àº ±¸¼º ÆÄÀÏ ¿¹°¡ ÀÖ´Ù.

    /etc/smb.conf ´Â 3°³ÀÇ ÀÏ¹Ý ¼½¼Ç(section)À¸·Î ³ª´¶´Ù.

         . Global
         . Shares
         . Printers

    Global section Àº workgroupÀ̸§ , netbiosÀ̸§, »ç¿ëµÇ´Â IP ÀÎÅÍÆäÀ̽º¿Í  °°Àº ±Û·Î¹ú ÆĶó¸ÞÅ͸¦ ´Ù·é´Ù.

    ¿¹¸¦ µé¸é
     

# Global parameters

workgroup = E328                          # workgroup name
netbios name = E328-00                # Linux server¡¯s netbios name
server string = %h - Linux Samba server   # comment shown in Win¡¯s Network
                                                                Neighborhood detail view
interfaces = 192.168.1.3/24            # NICs + subnet mask (24 = 255.255.255.0)
encrypt passwords = Yes               # Required for NT (Win95 will  work with encrypted or not)
null passwords = No                      # Must have a password
log file = /var/log/samba.              # location of samba log files (many!)
max log size = 50                         # maximum size of each log file
socket options = TCP_NODELAY    # Speeds up convergence of netbios
os level = 33                                # Gives a higher browse master ¡°priority¡±
preferred master = Yes                  # This server is the browsemaster
guest acco

unt = pcguest                              # guest account name
hosts allow = 192.168.1. 127.        # networks allowed to access this server using SMB

     

    Shares section Àº ÆÄÀÏ µð·ºÅ丮ÀÇ  °øÀ¯¸¦ ¼³Á¤ÇÑ´Ù.

    ¿¹]
     

[homes]
comment = Home Directories       # comment shown in Win¡¯s  Network
                                                    Neighborhood detail view
path = %H                                  # automatically display user¡¯s home
                                                    directory as SMB share
valid users = %S             # Only user is allowed to access this directory
read only = No                # can read/write
create mask = 0750         # permissions given when creating new files
browseable = No             # only show user¡¯s home directory not ¡°homes¡± folder

[public]
comment = Public Files    # comment shown in Win¡¯s Network Neighborhood detail view
path = /home/ftp/pub      # path to public directory
guest ok = Yes                # anyone can access this directory

[cdrom]
comment = Cdrom on E328-00     # comment shown in Win¡¯s  Network Neighborhood
                                                     detail view
path = /cdrom                 # path to cdrom drive
guest ok = Yes                # anyone can access cdrom drive, public share

     

    Printers section Àº ÇÁ¸°ÅÍ °øÀ¯¸¦ ÁöÁ¤ÇÑ´Ù.

    ¿¹¸¦ µé¸é
     

    [lp]
    comment = E328-Laser            # comment shown in Win¡¯s Network
                                                     Neighborhood detail view
    path = /var/spool/samba          # path to spool directory
    print ok = Yes                          # allowed to open, write to and submit to
                                                     spool directory

     

    °¢ Ç׸ñÀÌ ¹«¾ùÀ» ÀǹÌÇÏ´ÂÁö ¾È´Ù¸é /etc/smb.conf ÆÄÀÏÀ» Á÷Á¢ ¸¸µé ¼öµµ ÀÖ°í, À¥ È­¸é¿¡¼­ SWAT (SAMBA Web Administration Tool)À» ÀÌ¿ëÇؼ­µµ °¡´ÉÇÏ´Ù.

    SWATÀ» »ç¿ëÇÏ´Â ¶Ç ÇϳªÀÇ ÀÌÁ¡Àº °¡´ÉÇÑ ¼±ÅÃÀ» ¼³¸íÇÏ´Â ¿Â¶óÀÎ ÇÛÇÁ(help)ÀÌ´Ù.
    SWAT´Â »ï¹Ù 2.0 ÀÌÈÄ¿¡¼­´Â ÀÚµ¿À¸·Î ¼³Ä¡µÈ´Ù.

    SWAT ½ÇÇà

    ¾Æ·¡ ¼³¸íÀº  /usr/doc/samba-2.0.3/swat/README ÆÄÀÏ¿¡¼­ °¡Á®¿Ô´Ù.
     

    inetd ¿¡¼­ ½ÇÇàÇϱâ

    SWATÀÌ inetd ¿¡¼­ ½ÇÇàµÇ·Á¸é /etc/inetd.conf¿Í etc/services ÆÄÀÏÀ» ¼öÁ¤ÇØ¾ß ÇÑ´Ù.
    /etc/services¿¡ ¾Æ·¡ ¶óÀÎÀ» Ãß°¡ÇÑ´Ù.

     swat    901/tcp

    Æ÷Æ®(port) ¹øÈ£´Â Áß¿äÇÏÁö ¾Ê´Ù. ´ÜÁö 1024 º¸´Ù Àû°í ÇöÀç »ç¿ë ÁßÀÌ ¾Æ´Ï¾î¾ß ÇÑ´Ù. (1024 º¸´Ù Å« ¼ýÀÚ¸¦ »ç¿ëÇÏ´Â °ÍÀº inetd µ¥¸óÀÇ ¼³Á¤¿¡ µû¶ó º¸¾È¿¡¼­ÀÇ ¹®Á¦¸¦ ÀÏÀ¸Å³ ¼ö ÀÖ´Ù)

    /etc/inetd.conf ¿¡ ¾Æ·¡ ¶óÀÎÀ» Ãß°¡ÇÑ´Ù.

    swat stream tcp nowait.400 root    /usr/local/samba/bin/swat swat

    ¼öÁ¤ÇßÀ¸¸é inetd¿¡  HUP ½ÅÈ£¸¦ º¸³»¾ß ÇÑ´Ù. ¸¹Àº °æ¿ì ¡°killall -1 inetd¡± ¸í·ÉÀ¸·Î °¡´ÉÇÏ´Ù.
    ´Ù¸¥ °æ¿ì´Â ¡°kill -1 PID¡± À» ½ÇÇàÇÑ´Ù. PID ´Â inetd µ¥¸óÀÇ ID ÀÌ´Ù.

     

°¡ µ¿ (Launching)

    SWATÀ» °¡µ¿ÇÏ·Á¸é À¥ºê¶ó¿ìÀú¿¡¼­ http://localh-
    ost:901 À» ½ÇÇàÇÑ´Ù. SWAT À» ´Ù¸¥ IP ÁÖ¼Ò¸¦ °®´Â È£½ºÆ®¿¡¼­µµ °¡µ¿ÇÒ ¼ö ÀÖÁö¸¸ ¿ø°ÝÈ£½ºÆ®·ÎºÎÅÍ ¿¬°áÇϸé Æнº¿öµå°¡ ³×Æ®¿öÅ©¸¦ ÅëÇØ º¸³»Áö¹Ç·Î Æнº¿öµå ´©¼³ÀÌ ÀϾ ¼ö ÀÖ´Ù. ¿¬°áÇÏ¸é °èÁ¤¸í°ú Æнº¿öµå¸¦ ¹¯´Â´Ù. root °èÁ¤°ú Æнº¿öµå¸¦ ³Ö¾î¾ß ÇÑ´Ù.

    SWAT ÀÌ °¡µ¿ÇÏ¸é ¾Æ·¡ È­¸éÀ» º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù.
    ¸Þ´º ¹öÆ°Àº ±ÛÀÚ ±×´ë·ÎÀÌ´Ù. µµ¿ò¸»(help)µµ Àß °®Ãß¾îÁ® ÀÖ´Ù. ¸Þ´º¸¦ °£´ÜÈ÷ ¼³¸íÇϸé

        Home      : ¸ÞÀÎ ÆäÀÌÁö·Î °£´Ù.
        Globals    : ±Û·Î¹ú ÆĶó¸ÞÅ͸¦ ±¸¼ºÇÏ°Ô ÇØÁØ´Ù.
        Shares     : µð·ºÅ丮 °øÀ¯¸¦ ¼³Á¤ÇÑ´Ù.
        Printers    : /etc/printcap ÆÄÀÏ¿¡¼­ ÇÁ¸°ÅÍ ¼³Á¤À» ÇØÁØ´Ù.
        Status      : smbd ¿Í nmbd ¸¦ ½ÃÀÛÇÏ°í ¸ØÃß°Ô ÇØÁÖ¸ç »óŵµ Ç¥½ÃÇÑ´Ù.
        View        : /etc/smb.conf ÆÄÀÏÀ» º¸¿© ÁØ´Ù.
        Password : ¼­¹öÀÇ Æнº¿öµå¿Í °èÁ¤À» º¯°æÇÏ°Ô ÇÑ´Ù.

    ¼½¼ÇÀÇ ±¸¼ºÀ» º¯°æÇßÀ¸¸é ÇØ´ç ÆäÀÌÁö¿¡¼­ commit ¹öÆ°/¾ÆÀÌÄÜÀ» ´­·¯¾ß º¯°æÀÌ Àû¿ëµÈ´Ù. ±×·¸Áö ¾ÊÀ¸¸é /etc/smb ÆÄÀÏÀº º¯°æµÇÁö ¾Ê´Â´Ù.

    º¯°æÀÌ ÀÌ·ç¾î Á³À¸¸é smbd ¿Í nmbd ¼­¹ö°¡ Àç ½ÇÇàµÇ¾î¾ß ÇÑ´Ù. Status ¸Þ´º¿¡ ¼­¹ö¸¦ Áß´Ü ¹× Àç ½ÇÇàÇÏ´Â ¿É¼ÇÀÌ ÀÖ´Ù.
    ÁøÇà°úÁ¤À» ¾Ë ¼ö ÀÖ´Â °¡Àå ÁÁÀº ¹æ¹ýÀº ¼öÁ¤À» ÇÏ°í¼­ SWAT ÀÇ View ¹öÆ°À¸·Î /etc/smb.conf ÆÄÀÏÀÇ ³»¿ëÀ» º¸´Â °ÍÀ̾ú´Ù.

     

°èÁ¤ ¸í

    ¸®´ª½º¿Í À©µµ¿ì ȯ°æ ¾ç ÂÊ ´Ù °°Àº °èÁ¤¸í°ú Æнº¿öµå¸¦ »ç¿ëÇÏ´Â °ÍÀÌ Áß¿äÇÏ´Ù. ¸®´ª½ºÀÇ Æнº¿öµå¿Í SMBÀÇ ¾ÏȣȭµÈ Æнº¿öµåÀÇ ¿¬µ¿Àº /usr/lib/sam-ba/private µð·ºÅ丮ÀÇ mksmbpasswd.sh ½©½ºÅ©¸³Æ®¸¦ »ç¿ëÇÏ¿© ÀÌ·ç¾îÁø´Ù. ½½·¢¿þ¾î¿¡¼­ »ï¹ÙÀÇ µð·ºÅ丮´Â ÀϹÝÀûÀ¸·Î »ç¿ëµÇ´Â /usr/local ÀÌ ¾Æ´Ï¶ó /usr/lib ÀÌ´Ù.

    ¾Æ·¡ Á¤º¸´Â /usr/doc/samba-2.0.3/docs/textdocs/E-NCRYPTION.txt ÆÄÀÏ¿¡¼­ °¡Á® ¿Ô´Ù.
     

    smbpasswd ÆÄÀÏ

    »ï¹Ù°¡ À§ÀÇ ÇÁ·ÎÅäÄÝ¿¡ Âü¿©Çϱâ À§Çؼ­´Â ±× »ç¿ëÀÚ À̸§¿¡ ÁÖ¾îÁø 16 ¹ÙÀÌÆ®ÀÇ Çؽ¬ °ªÀ» ãÀ» ¼ö ÀÖ¾î¾ß ÇÑ´Ù. ¾Æ½±°Ôµµ À¯´Ð½ºÀÇ Æнº¿öµå °ªµµ ÀϹæ Çؽ¬ ±â´ÉÀ̹ǷÎ(Áï ÁÖ¾îÁø À¯´Ð½ºÀÇ Çؽ¬ °ª¿¡¼­ »ç¿ëÀÚ Æнº¿öµå ÅؽºÆ®¸¦ ÃßÃâÇÏ´Â °ÍÀº ºÒ°¡´ÉÇÏ´Ù.) ÀÌ 16 ¹ÙÀÌÆ® °ªÀ» °®´Â º°µµÀÇ Æнº¿öµå ÆÄÀÏÀÌ ¸¸µé¾îÁ®¾ß ÇÑ´Ù. µÎ °³ÀÇ Æнº¿öµå ÆÄÀÏ·Î ÀÎÇÑ ¹®Á¦¸¦ ÃÖ¼ÒÈ­Çϱâ À§ÇØ Áï À¯´Ð½ºÀÇ /etc/passwd ÆÄÀÏ°ú smbpass-wd ÆÄÀÏÀÌ ºÒÀÏÄ¡ÇÏ´Â °ÍÀ» ¸·±â À§ÇØ À¯´Ð½ºÀÇ /etc/passwd ·ÎºÎÅÍ smbpasswd ÆÄÀÏÀ» ¸¸µå´Â mksmbpasswd.sh À¯Æ¿¸®Æ¼°¡ Á¦°øµÈ´Ù.

    /etc/passwd ÆÄÀÏ¿¡¼­ smbpasswd ÆÄÀÏÀ» ¸¸µé±â À§ÇØ ¾Æ·¡ ¸í·ÉÀ» »ç¿ëÇ϶ó.

    cat /etc/passwd | mksmbpasswd.sh  >/usr/local/samba/private/smbpasswd

     

    ÀÌ ´Ü°è¿¡¼­ÀÇ ¹®Á¦´Â ³ª´Â ½¦µµ¿ì Æнº¿öµå¸¦ ÀνÄÇؼ­ ÀÚµ¿À¸·Î smbpasswd ÆÄÀÏ¿¡ ³Ö¾î ÁÙ °É·Î ±â´ë Çߴµ¥ ±×·¸Áö ¾Ê¾Ò´Ù. ±×·¡¼­ ³ª´Â smbpasswd ¸í·ÉÀ» »ç¿ëÇؼ­ ¼öµ¿À¸·Î Æнº¿öµå¸¦ ³Ö¾î¾ß Çß´Ù. ´ÙÇàÈ÷ ³ª´Â ¿ÀÁ÷ 10 °³ÀÇ Æнº¿öµå¸¸ ³ÖÀ¸¸é µÇ¾úÁö¸¸  ÀÌ°ÍÀ» ÀÚµ¿À¸·Î ÇÏ´Â ¹æ¹ýÀÌ ÀÖÀ» °ÍÀÌ´Ù. ÇÏÁö¸¸ ³ª´Â ¾ËÁö ¸øÇÑ´Ù.

    ¿Ï¼ºµÇ¾úÀ» ¶§ À©µµ¿ìÀÇ  ³×Æ®¿öÅ© ȯ°æ¿¡¼­ ¸®´ª½º¸¦ ¿¬°áÇØ °èÁ¤°ú Æнº¿öµå ¾øÀÌ °øÀ¯ ¸®´ª½º µð·ºÅ丮 »ç¿ëÀÌ °¡´ÉÇØ Á³´Ù.

     

    ¸®´ª½º·Î HP JetDirect Ä«µå ¼³Á¤Çϱâ.

    ¸®´ª½º¿Í  HP JetDirect Ä«µå¸¦ »óÈ£ ¿¬°èÇÏ´Â °ÍÀº ¸Å¿ì ½±´Ù. JetDirect´Â HP 4050N ÇÁ¸°ÅÍ¿¡ ÀåÂøµÈ ÇÁ¸°ÅÍ ¼­¹öÄ«µåÀÌ´Ù.( 2100TN ¸ðµ¨¿¡µµ ÀÖ°í µ¶¸³µÈ 3 Æ÷Æ® Â¥¸®µµ ÀÖ´Ù) Ç¥ÁØ ÀνºÅç µð½ºÅ©¿¡¼­´Â ¸®´ª½º¸¦ Áö¿øÇÏÁö ¾ÊÁö¸¸
    HP À¥»çÀÌÆ®;http://www.h- p.com/support/net_printing ¿¡¼­ ´Ù¿î ¹ÞÀ» ¼ö ÀÖ´Â WebAdmin µµ±¸°¡ ÀÖ´Ù. ³ª´Â telnet À¸·Î JetDirect Ä«µåÀÇ ³»ÀåµÈ À¥¼­¹ö¸¦ °¡µ¿ÇØ ¼öµ¿À¸·Î ¼³Á¤ÇÏ´Â ¹æ¹ýÀ» ¼±ÅÃÇß´Ù.

     

JetDirect Ä«µå·ÎÀÇ telnet

    JetDirect Ä«µå·Î telnet ÇÏ·Á¸é ÇÁ¸°ÅÍ¿¡ IP ÁÖ¼Ò¸¦ ºÎ¿©ÇØ¾ß ÇÑ´Ù.
    µðÆúÆ® ÁÖ¼Ò´Â 192.0.0.192 ÀÌÁö¸¸ ¾Æ¸¶ ´ç½ÅÀÇ ³×Æ®¿öÅ©¿¡¼­´Â »ç¿ë ¾Ê´Â ÁÖ¼Ò ÀÏ °ÍÀÌ´Ù.
    HP 4050N ÇÁ¸°ÅÍ´Â ÇÁ¸°ÅÍÀÇ Æгο¡¼­ IP ÁÖ¼Ò¸¦ ¼³Á¤ÇÒ ¼ö ÀÖ´Ù. ¸Þ´º¹öÆ°¿¡¼­ ¡°JetDirect Menu¡± ¸¦ ¼±ÅÃÇضó. ³×Æ®¿öÅ©¸¦ ¼Â¾÷Çϴµ¥ Áö½Ã´ë·Î µû¸£¸é µÈ´Ù. IP ÁÖ¼Ò°¡ ÁöÁ¤µÇ¸é ¼­ºê³×Æ®¸¶½ºÅ©µµ ³Ö¾î¾ß ÇÑ´Ù.

    -------------------------------------------------------------------
    ¿ªÀÚ ÁÖ]

    ÇÁ¸°ÅÍ ÆгÎÀÌ ¾ø´Â Jetdirect Ä«µå¸¦ °®´Â ·¹ÀÌÀúÇÁ¸°ÅÍ(2100TN)¸¦ Ãʱ⿡ ¼³Á¤ÇÏ·Á¸é ¿ì¼± À©95ÀÇ IP ÁÖ¼Ò¸¦ 192.0.0.? À¸·Î ¸ÂÃß°í ÇÁ¸°Å͸¦ ÄÒ ÈÄ Ãʱâ IP ÁÖ¼Ò(192.0.0.192)·Î telnet ÇÑ´Ù. ¿©±â¿¡¼­ ¡°?¡± Å°¸¦ ´©¸£¸é ¼ÂÆÃÇÏ´Â ¹æ¹ýÀÌ ³ª¿Â´Ù.

    ¾Æ·¡´Â ¸®´ª½º ¿ùµå »ç¹«½Ç¿¡ ¼³Ä¡µÈ HP 2100N ÇÁ¸°ÅÍ¿¡ ÀåÂøµÈ Jetdirect Ä«µå·Î ¸®´ª½º¿¡¼­ telnetÇÑ °á°ú´Ù.
    IP ÁÖ¼Ò°¡ 192.168.1.8 ÀÌ´Ù.
     

    [bae@linux bae]$ telnet 192.168.1.8
    Trying 192.168.1.8...
    Connected to 192.168.1.8.
    Escape character is ¡®^]¡¯.

    HP JetDirect

    Please type ¡°?¡± for HELP, or ¡°/¡± for current settings
    >


    -------------------------------------------------------------------

    telnet À¸·Î ÇÁ¸°ÅÍ·Î µé¾î°¡¸é µÎ °¡Áö ¿É¼ÇÀÌ ÀÖ´Ù. ¡°/¡± Å°¸¦ ´­·¯ ÇöÀçÀÇ ¼ÂÆÃÀ» º¼ ¼ö ÀÖ°í ¡°?¡± Å°¸¦ ´­·¯ µµ¿ò ¸Þ´º¸¦ º¼ ¼ö ÀÖ´Ù.
     

    Please type ¡°?¡± for HELP, or ¡°/¡± for current settings
    >/
       ===JetDirect Telnet Configuration===
            Firmware Rev.   : G.07.20
            MAC Address    : 00:10:83:1b:41:c7
            Config By         : USER SPECIFIED
     
            IP Address         : 192.168.1.10
            Subnet Mask      : 255.255.255.0
            Default Gateway : 192.168.1.1
            Syslog Server     : Not Specified
            Idle Timeout       : 120 Seconds
            Set Cmnty Name : notachance
            Host Name         : E328-LASER
     
            DHCP Config     : Disabled
            Passwd             : Enabled
            IPX/SPX            : Disabled
            DLC/LLC           : Enabled
            Ethertalk            : Disabled
            Banner page      : Disabled   

      >?
            To Change/Configure Parameters Enter:
            Parameter-name: value  
     
            Parameter-name  Type of value
            ip:                      IP-address in dotted notation
            subnet-mask:      address in dotted notation
            default-gw:         address in dotted notation
            syslog-svr:          address in dotted notation
            idle-timeout:        seconds in integers
            set-cmnty-name: alpha-numeric string (32 chars max)
            host-name:         alpha-numeric string (upper case only, 32 chars max)
            dhcp-config:       0 to disable, 1 to enable
            ipx/spx:              0 to disable, 1 to enable
            dlc/llc:                0 to disable, 1 to enable
            ethertalk:             0 to disable, 1 to enable
            banner:               0 to disable, 1 to enable

            Type passwd to change the password.

    Type ¡°?¡± for HELP, ¡°/¡± for current settings or ¡°quit¡± to save- and-exit.
    Or type ¡°exit¡± to exit without saving configuration parameter entries

 

    ù ¹ø ÀÛ¾÷Àº passwd ¸¦ ÀÔ·ÂÇؼ­ °ü¸®ÀÚ Æнº¿öµå¸¦ ³Ö´Â °ÍÀÌ´Ù. ´ÙÀ½¿¡ µðÆúÆ®°ÔÀÌÆ®¿þÀÌ¿Í È£½ºÆ®³×ÀÓÀ» ³Ö¾î¶ó. ³ª¸ÓÁö´Â ÇÁ¸°ÅÍÀÇ ³»Àå À¥¼­¹ö¸¦ »ç¿ëÇØ ±¸¼ºÇÑ´Ù.

     

HP JetDirect À¥Åø(Webtool)

    HP JetDirect À¥ÅøÀº 6 °³ÀÇ ¸Þ´ºÅÇ(¸Ç À§¿¡ ÀÖÀ½)À» °®°í ÀÖ´Ù.

    1. Status Tab

    ÇöÀçÀÇ ÇÁ¸°ÅÍ »óÅ ¹× ³×Æ®¿öÅ© »óŸ¦ Ç¥½ÃÇÑ´Ù.

    2.  Identity

    ÇöÀçÀÇ ¼ÒÇÁÆ®¿þ¾î, Çϵå¿þ¾î ¹öÀü ¹× È£½ºÆ®³×ÀÓ,  IP ÁÖ¼Ò¸¦ º¸¿© ÁØ´Ù.

    3. Configuration

     TCP/IP (µðÆúÆ® protocol), IPX/SPX, DLC/LLC, Ethertalk, SNMP ±¸¼ºÀ» ÁöÁ¤ÇÑ´Ù..

    4.  Security

     °ü¸®ÀÚ Æнº¿öµå ¹× SNMP community name ±¸¼ºÀ» ÁöÁ¤ÇÑ´Ù.

    5.  Diagnostics

     TCP/IP, IPX/SPX, DLC/LLC, Ethertalk, ÇÁ¸°ÅÍ,  Jetdirect ÀÇ Á¤º¸ ¹× Åë°è¸¦ º¸¿© ÁØ´Ù.

    6.  Support

    HP Áö¿ø À¥»çÀÌÆ®·Î ¾È³»ÇÑ´Ù.

    ¸®´ª½º¿¡¼­  JetDirect·Î ÀμâÇϱâ

    ¸®´ª½º¿¡¼­ Jetdirect ÇÁ¸°Åͼ­¹ö·Î ÀμâÇϱâ À§Çؼ­´Â /etc/printcap ÆÄÀÏÀ» ¼öÁ¤ÇØ¾ß ÇÑ´Ù. ³ª´Â »õ·Î¿î /usr/spool/lj4050n À̶ó´Â spool µð·ºÅ丮¸¦ ¸¸µé¾ú´Ù. ±×·¯³ª ±âÁ¸ÀÇ /usr/spool/lpd µð·ºÅ丮µµ »ç¿ëÇÒ ¼ö ÀÖ´Ù. /usr/spool Àº /var/spool µð·ºÅ丮ÀÇ ¼ÒÇÁÆ®¸µÅ©ÀÌ´Ù.

    ¾Æ·¡´Â HP JetDirect ÇÁ¸°ÅÍ ¼­¹ö¸¦ À§ÇÑ /etc/print-cap ÆÄÀÏ ³»¿ëÀÌ´Ù.
     

    # HP Laserjet 4050n

    lp|lj4050n:¡¬
           :lp=/dev/null:sh:¡¬
           :mx#0:¡¬
           :sd=/usr/spool/lj4050n:¡¬
           :rm=e328-laser.domainname.com:rp=text:

     

    °¢°¢À» ¼³¸íÇϸé

      1. lp|lj4050n:¡¬
          µðÆúÆ® ÇÁ¸°ÅÍ ¡°lp¡± ¸¦ lj4050n À̶õ º°¸íÀ̳ª ÁÖ¼®À¸·Î ÁöÁ¤ÇÑ´Ù.
          º°¸í ³»¿¡ °ø¹éÀÌ ÀÖÀ¸¸é ÁÖ¼®À¸·Î ÀνÄÇÑ´Ù.

      2. :lp=/dev/null:sh:¡¬
          ÇÁ¸°ÅÍ°¡ ¹°¸®ÀûÀÎ Æ÷Æ®(Áï lpt Æ÷Æ®)¿¡ ¿¬°áµÇ¾î ÀÖÁö ¾ÊÀ½À» Ç¥½ÃÇÑ´Ù.

      3. :mx#0:¡¬
          ÇÁ¸°ÅÍ·Î º¸³»´Â ÆÄÀÏ Å©±â¿¡ Á¦ÇÑÀÌ ¾øÀ½À» Ç¥½ÃÇÑ´Ù.

      4. :sd=/usr/spool/lj4050n:¡¬
          spool µð·ºÅ丮(ÇÁ¸°ÅÍ¿¡ ÀμâµÉ ÆÄÀÏÀÇ Àӽà ÀúÀå µð·ºÅ丮)¸¦ Ç¥½ÃÇØ ÁØ´Ù.

      5. :rm=e328-laser.domainname.com:rp=text:
           ÇÁ¸°Æ® ÀÛ¾÷À» º¸³¾ ÇÁ¸°ÅÍÀÇ µµ¸ÞÀγ×ÀÓ(FQDN)°ú ÆÄÀÏ Æ÷¸ËÀ» ÁöÁ¤ÇÑ´Ù.
           HP ¿¡¼­´Â text¿Í raw Áß Çϳª´Ù. ±×·¯³ª ÇÁ¸°ÅÍ°¡ ÀÚµ¿À¸·Î ÅؽºÆ® ÆÄÀÏ,
           Æ÷½ºÆ®½ºÅ©¸³Æ® ÆÄÀÏ(postscript), PCLÆÄÀÏÀ» ±¸º°ÇØ ÁÖ¾ú´Ù.

    ¿ªÀÚ ÁÖ¢º  /etc/hosts ÆÄÀÏ¿¡ ÇÁ¸°ÅÍÀÇ ip address¿Í µµ¸ÞÀγ×ÀÓ(FQDN)À» ³Ö¾î¾ß ÇÑ´Ù.
                  ¶Ç´Â DNSÀÇ È£½ºÆ® ÆÄÀÏ¿¡ ³Ö¾îµµ µÈ´Ù.

    ¿¹]
    192.168.1.10   e328-laser.domainname.com

 

À©µµ¿ì¿¡¼­ ¸®´ª½º ÇÁ¸°ÅÍ °øÀ¯ ¼³Á¤Çϱâ

    ³×Æ®¿öũȯ°æ¿¡¼­ ¸®´ª½º ¼­¹öÀÇ °øÀ¯ÇÁ¸°ÅÍ ¾ÆÀÌÄÜÀ» ´õºí Ŭ¸¯Ç϶ó. À©µµ¿ì´Â ±× ÇÁ¸°Å͸¦ ±¸¼ºÇÒ °ÍÀ» ¿äûÇÑ´Ù. ³ª´Â ¸®´ª½º ¹Ú½º¿¡¼­ ÇÁ¸°ÅÍÀÇ ¼³Ä¡ CD¸¦ °øÀ¯ÇÏ°í ÀÖÀ¸¹Ç·Î INF ÆÄÀÏÀ» ã±â À§ÇØ µð½ºÅ© 1 Æú´õ·Î °¬´Ù. ÇÁ¸°ÅÍ ¼³Ä¡ È­¸é¿¡¼­ 2 ¹ø µð½ºÅ©¸¦ ãÀ» ¼ö ¾ø´Ù´Â ¸Þ½ÃÁö°¡ ³ª¿À¸é 2 ¹ø µð½ºÅ© Æú´õ·Î °£´Ù. ¼³Ä¡°¡ È®½ÇÇÑÁö¸¦ ¾Ë±â À§ÇØ Å×½ºÆ®ÆäÀÌÁö¸¦ ÀμâÇÑ´Ù.

    Á¤»ó ¼³Ä¡ °úÁ¤Àº CD·Î ºÎÅÍ ¼Â¾÷ À¯Æ¿¸®Æ¼¸¦ ½ÇÇàÇÏ´Â °ÍÀÌ´Ù. À̴ Ŭ¶óÀ̾ðÆ®¿¡ ¼ö ¸Þ°¡ÀÇ ÆÄÀÏÀ» ¼³Ä¡ÇÏ´Â µ¥ ³ª´Â ÀÌ°ÍÀ» ¿øÇÏÁö ¾Ê¾Ò´Ù. ³ª´Â ¿ÀÁ÷ ÇÁ¸°ÅÍ µå¶óÀ̹ö¸¸À» ¿øÇß°í À§ÀÇ ¹æ¹ýÀÌ ³»°Ô ºü¸£°í ±ú²ýÇÏ°í °£ÆíÇÑ ÇÁ¸°ÅÍ ¼³Ä¡¸¦ ÇØ ÁÖ¾ú´Ù.

     

¿ä ¾à    

    »ï¹Ù¸¦ ±¸¼ºÇؼ­ ¿¬±¸¼ÒÀÇ ¸ñÀû¿¡ ¸ÂÃß´Â °ÍÀº ¹«Ã´ ½¬¿ü´Ù. »ï¹Ù¸¦ ¶ç¿ì°í À©95¿Í ¿¬°áÇÏ´Â °ÍÀº 10ºÐÀ̸é Á·Çß´Ù. ³ª´Â ±×Àü¿¡ »ï¹Ù¿¡ ´ëÇØ ÀüÇô ¸ô¶úÀ¸¹Ç·Î ³î¶ø´Ù.

    ¿¬±¸¼ÒÀÇ È¯°æÀ» ¸ÂÃߴµ¥¼­ ³ª´Â ¸î °¡Áö ¹®Á¦¿¡ ºÎµúÇû´Ù. ¸î¸îÀº ±î´Ù·Ó°í ¸î¸îÀº ¾ó¸¶°£ÀÇ ÀÏÀ» ÇÊ¿ä·Î ÇßÀ¸³ª ¸ðµÎ ÇØ°áµÇ¾ú´Ù. ±î´Ù·Î¿î ¹®Á¦ÀÇ Çϳª´Â [homes] Æú´õ°¡ Ŭ¶óÀ̾ðÆ®ÀÇ °øÀ¯·Î ³ªÅ¸³ª°Ô ÇÏ´Â °ÍÀ̾ú´Ù. À̴ Ŭ¶óÀ̾ðÆ®ÀÇ È¨°ú µ¿ÀÏÇß´Ù. /etc/smb.conf ¿¡¼­ Global ¼½¼Ç¿¡¼­ ¡°Browseable = No¡± ¸¦ ¼±ÅÃÇÔÀ¸·Î¼­ ±× ¹®Á¦¸¦ ÇØ°áÇß´Ù.

    °¡Àå ¾î·Á¿ü´ø ¹®Á¦´Â smbpasswd ÆÄÀÏÀÌ ½¦µµ¿ì Æнº¿öµå ÆÄÀÏ¿¡¼­ Æнº¿öµå¸¦ ÀÚµ¿À¸·Î º¯È¯ÇØ ÁÖÁö ¸øÇÏ´Â °ÍÀ̾ú´Ù. ³ª´Â ³×Æ®¿öÅ© °øÀ¯·Î ¿¬°áÇÒ ¶§¸¶´Ù °èÁ¤¸í°ú Æнº¿öµå ÀÔ·ÂÀ» ¿ä±¸ ¹Þ¾Ò´Ù. ¸ðµç ¹®¼­´Â ³»°¡ ¸ðµç °ÍÀ» Á¤È®È÷ ¼³Á¤Çß´Ù°í ¾Ë·Á Áá´Ù. ¼öÀÛ¾÷À¸·Î smbpasswd ¸í·ÉÀ» ½á¼­ °¢ »ç¿ëÀÚÀÇ °èÁ¤¸í°ú Æнº¿öµå¸¦ ÀÔ·ÂÇØ ÀÌ ¹®Á¦¸¦ ÇØ°áÇß´Ù. ³ª´Â ÀÌ ¹®Á¦¸¦ ÀÚµ¿À¸·Î ÇØ°áÇÏ´Â ¹æ¹ýÀÌ ÀÖÀ»°Å¶ó º»´Ù. ¸¸¾à »ç¿ëÀÚ°¡ ¸¹´Ù¸é ÀÌ ¹æ¹ýÀº »ç¿ëÇϱâ ÈûµéÅÍÀ̴ϱî.

    °á·ÐÀ¸·Î ³ª´Â NT¸¦ ¾µ ¶§ º¸´Ù  ´õ ½±°í ºü¸£°Ô ³×Æ®¿öÅ©¸¦ ±¸¼ºÇß´Ù. ±×¸®°í »ç¿ëÀڵ鿡°Ô´Â ¸®´ª½º ¼­¹ö´Â ÀüÇô Åõ¸íÇÏ´Ù. (Áï, ÀüÇô ¸®´ª½º ¼­¹ö°¡ ÀÖÀ½À» °¨ÁöÇÏÁö ¸øÇÑ´Ù. ¸®´ª½º ¼­¹ö´Â ´ÜÁö ¶Ç ´Ù¸¥ À©µµ¿ì ½Ã½ºÅÛÀ¸·Î º¸ÀδÙ.)

    Á¤¸» Àç¹ÌÀÖ´Â »ç½ÇÀº ÀÌ ±ÛÀ» ¾²´Â °ÍÀÌ À§ÀÇ ¸ðµç ³×Æ®¿öÅ©¸¦ ±¸¼ºÇÏ´Â °Í º¸´Ù ´õ ¿À·¡ °É·È´Ù´Â °ÍÀÌ´Ù.

    Copyright (c) 1999, Eugene Blanchard
    Published in Issue 48 of Linux Gazette, December 1999




¡ã top

homeÀ¸·Î...