Install Samba and Create a shared directory that anybody can read and write, and authentication is not needed. | ||
[root@lan ~]#yum -y install samba [root@lan ~]#mkdir /home/share [root@lan ~]#chmod 777 /home/share [root@lan ~]#vi /etc/samba/smb.conf # near line 58: add unix charset = UTF-8 dos charset = CP932 # line 75: change (Windows' default) workgroup =WORKGROUP # line 81: uncomment and change IP address you allow hosts allow = 127.10.0.0. # line 102: change (no auth) security =share # add at the bottom [Share] # any name you like path = /home/share # shared directory writable = yes # writable guest ok = yes # guest OK guest only = yes # guest only create mode = 0777 # fully accessed directory mode = 0777 # fully accessed share modes = yes # warn if some people access to a file [root@lan ~]# /etc/rc.d/init.d/smb start Starting SMB services: [ OK ] [root@lan ~]# /etc/rc.d/init.d/nmb start Starting NMB services: [ OK ] [root@lan ~]# chkconfig smb on [root@lan ~]# chkconfig nmb on |
Amazon SNS is a service used for push notification. In this chapter, we will explain working of AWS Lambda and Amazon SNS with the help of an example where will perform the following actions − Create Topic in SNS Service and use AWS Lambda Add Topics to CloudWatch Send SNS text message on phone number given. Requisites To create Topic in SNS Service and use AWS Lambda Add Topics to CloudWatch, we need not follow the steps given below − Create Topic in SNS Create Role for permission in IAM Create AWS Lambda Function Publish to topic to activate trigger Check the message details in CloudWatch service. To send SNS text message on phone number given, we need to do the following − Add code in AWS Lambda to send message to your phone. Example In this example, we will create a topic in SNS. When details are entered in the topic to publish, AWS Lambda is triggered. The topic details are logged in CloudWatch and a message is sent on phone by AWS Lambda. Here is a basic block diagram which exp
Comments
Post a Comment