ubuntuÏÂÓÃsambaʵÏÖwindowsÓëlinuxÎļþ¹²Ïí
Ê×ÏÈÒª°²×°samba
sudo apt-get install samba
sudo apt-get install smbfs
1.windows ·ÃÎÊ ubuntu
ÏÂÃæÎÒÃÇÀ´¹²ÏíȺ×é¿É¶ÁдÎļþ¼Ð£¬¼ÙÉèÄãÒª¹²ÏíµÄÎļþ¼ÐΪ£º /home/ray/shareÊ×ÏÈ´´½¨Õâ¸öÎļþ¼Ð
´úÂë:
mkdir /home/ray/share
chmod 777 /home/ray/share
±¸·Ý²¢±à¼smb.confÔÊÐíÍøÂçÓû§·ÃÎÊ
´úÂë:
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
ËÑÑ°ÕâÒ»ÐÐÎÄ×Ö
´úÂë:
; security = user
ÓÃÏÂÃæÕ⼸ÐÐÈ¡´ú
´úÂë:
security = user
username map = /etc/samba/smbusers
½«ÏÂÁм¸ÐÐÐÂÔöµ½ÎļþµÄ×îºóÃ棬¼ÙÉèÔÊÐí·ÃÎʵÄÓû§Îª£ºnewsfan¡£¶øÎļþ¼ÐµÄ¹²ÏíÃûΪ Share
´úÂë:
[Share]
comment = Shared Folder with username and password
path = /home/ray/share
public = yes
writable = yes
valid users = newsfan
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
available = yes
browseable = yes
È»ºó˳±ã°ÑÕâÀï¸Äһϣ¬ÕÒµ½£Ûglobal£Ý°Ñ workgroup = MSHOME ¸Ä³É
´úÂë:
workgroup = WORKGROUP
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
ºóÃæµÄÈýÐÐÊÇΪÁË·ÀÖ¹³öÏÖÖÐÎÄĿ¼ÂÒÂëµÄÇé¿ö¡£ÆäÖиù¾ÝÄãµÄlocal£¬UTF-8 ÓпÉÄÜÐèÒª¸Ä³É cp936¡£×Ô¼º¿´×Å°ì°É¡£ÏÖÔÚÒªÌí¼ÓnewsfanÕâ¸öÍøÂç·ÃÎÊÕÊ»§¡£Èç¹ûϵͳÖе±Ç°Ã»ÓÐÕâ¸öÕÊ»§£¬ÄÇô
´úÂë:
sudo useradd newsfan
ҪעÒ⣬ÉÏÃæÖ»ÊÇÔö¼ÓÁËnewsfanÕâ¸öÓû§£¬È´Ã»ÓиøÓû§¸³Óè±¾»úµÇ¼ÃÜÂë¡£ËùÒÔÕâ¸öÓû§½«Ö»ÄÜ´ÓÔ¶³Ì·ÃÎÊ£¬²»ÄÜ´Ó±¾»úµÇ¼¡£¶øÇÒsambaµÄµÇ¼ÃÜÂë¿ÉÒԺͱ¾»úµÇ¼ÃÜÂë²»Ò»Ñù¡£ÏÖÔÚÒªÐÂÔöÍøÂçʹÓÃÕßµÄÕʺţº
´úÂë:
sudo smbpasswd -a newsfan
sudo gedit /etc/samba/smbusers
ÔÚн¨Á¢µÄÎļþÄÚ¼ÓÈëÏÂÃæÕâÒ»Ðв¢±£´æ
´úÂë:
newsfan = “network username”
Èç¹û½«À´ÐèÒª¸ü¸ÄnewsfanµÄÍøÂç·ÃÎÊÃÜÂ룬ҲÓÃÕâ¸öÃüÁî¸ü¸Ä
´úÂë:
sudo smbpasswd -a newsfan
ɾ³ýÍøÂçʹÓÃÕßµÄÕʺŵÄÃüÁî°ÑÉÏÃæµÄ -a ¸Ä³É -x
´úÂë:
sudo testparm
sudo /etc/init.d/samba restart
2£®Ubuntu linux ϵͳ·ÃÎÊwindows xp/2003/2000ϵͳ
ÔÚÎҵIJâÊÔ¹ý³ÌÖУ¬ÊµÏÖubuntu linuxϵͳ·ÃÎÊwindowsϵͳµÄ·½Ê½ÓÐ3ÖÖ£¬ÎÒ½«Õ⼸ÖÖ·½Ê½ËµÃ÷ÈçÏ£º
µÚÒ»ÖÖ£ºÓÃsmb·ÃÎÊ
Èç¹ûÔÚubuntu linuxϵͳÖÕ¶ËpingwindowsÖ÷»úµÄipµØÖ·¿ÉÒÔpingͨ£¬ÇÒwindows¼ÆËã»úÖÐÓй²ÏíµÄÎļ
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
Çì×£ Linux ³É¹¦ 10 Äê
Linux®¼¼Êõ¡¢¿ª·¢Ä£ÐͺÍÉçÇø¶¼¶Ô IT Òµ²úÉúÁËÖØÒªµÄÓ°Ï죬ÎÒÃÇÄÜ×öµÄ¾ÍÊÇÕ¾µ½Ò»±ß¿´¿´ÕâЩ£¬ºÜ¸ßÐËÓë
developerWorks Ò»Æð¶È¹ýÁ˵ÚÒ»¸ö 10 Äê¡£Linux ÍŶÓÒѾ½«ÕâЩ¶Ô Linux ²úÉúÖØ´óÓ°ÏìµÄÄÚÈÝÕûÀíµ½Ò»Æð¡£
¹ýÈ¥ 10 ÄêÀLinux ·¢ÉúÁËÌ«¶àµÄÊÂÇ飬ºÜÄÑÍêÕûµØÁгö¸Ã²Ù×÷ϵͳµ ......
sftp ÊÇÒ»¸ö½»»¥Ê½Îļþ´«Êä³Ìʽ¡£ËüÀàËÆÓÚ ftp, µ«Ëü½øÐмÓÃÜ´«Ê䣬±ÈFTPÓиü¸ßµÄ°²È«ÐÔ¡£Ï±߾ͼòµ¥½éÉÜÒ»ÏÂÈçºÎÔ¶³ÌÁ¬½ÓÖ÷»ú£¬½øÐÐÎļþµÄÉÏ´«ºÍÏÂÔØ£¬ÒÔ¼°Ò»Ð©Ïà¹Ø²Ù×÷¡£
ÔÚubuntuϵݲװapt-get install sftp ,µ±È»µÃÈ·±£ÄúÓÐ×ã¹»µÄȨÏÞ°²×°¸Ã³ÌÐò
linuxÏÂÈçºÎʹÓÃsftpÃüÁî¡£
¾ÙÀý£¬ÈçÔ¶³ÌÖ÷»úµÄ IP ÊÇ 202.206.64. ......
selectϵͳµ÷ÓÃʱÓÃÀ´ÈÃÎÒÃǵijÌÐò¼àÊÓ¶à¸öÎļþ¾ä±úµÄ״̬±ä»¯µÄ¡£³ÌÐò»áÍ£ÔÚselectÕâÀïµÈ´ý£¬Ö±µ½±»¼àÊÓµÄÎļþ¾ä±úÓÐÒ»¸ö»ò¶à¸ö·¢ÉúÁË״̬¸Ä±ä¡£
¹ØÓÚÎļþ¾ä±ú£¬Æäʵ¾ÍÊÇÒ»¸öÕûÊý£¬Í¨¹ýsocketº¯ÊýµÄÉùÃ÷¾ÍÃ÷°×ÁË£º
int socket(int domain, int type, int protocol);
ÎÒÃÇ×îÊìϤµÄ¾ä±úÊÇ0¡¢1¡¢2Èý¸ö£¬0ÊDZê×¼ÊäÈ룬1ÊDZê ......