User Tools

Site Tools


ec2_config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ec2_config [2016/01/27 15:47]
wbeckett
ec2_config [2021/06/04 02:16] (current)
Line 4: Line 4:
 [[http://​comsci.liu.edu/​~murali/​cvs/​pserver.htm]] [[http://​comsci.liu.edu/​~murali/​cvs/​pserver.htm]]
  
 +
 +[[http://​docs.aws.amazon.com/​AWSEC2/​latest/​UserGuide/​ebs-using-volumes.html| EBS Volumes Doc]]
 +
 +
 +[[https://​www.howtoforge.com/​install_nfs_server_and_client_on_debian_wheezy|NFS Mount]]
 +
 +[[https://​theredblacktree.wordpress.com/​2013/​05/​23/​how-to-setup-a-amazon-aws-ec2-nfs-share/​|Setting up NFS]]
 +
 +[[http://​docs.aws.amazon.com/​AWSEC2/​latest/​UserGuide/​storage_expand_partition.html#​return-expanded-root-partition|Expand Root ]]
  
 <​code>​ <​code>​
Line 217: Line 226:
 mysql> ​ mysql> ​
  
 +</​code>​
 +<​code>​
 +
 +1. Configure Exim4
 +
 +Exim4 is installed by default, but it needs to be reconfigured to setup a Gmail server configuration :
 +
 +# dpkg-reconfigure exim4-config
 +
 +You will ge thru a setup procedure. Make sure to set it up as follow :
 +Option Choice ​
 + ​Configuration type mail sent by smarthost; received via SMTP or fetchmail
 + ​System mail name localhost
 + ​IP-addresses to listen on for incoming SMTP connections 127.0.0.1 (to refuse external connections)
 +Other destinations for which mail is accepted leave empty
 +Machines to relay mail for leave empty
 +IP address or host name of the outgoing smarthost smtp.gmail.com:​587
 +Hide local mail name in outgoing mail ? no
 +Keep number of DNS-queries minimal (Dial-on-Demand) ? no
 +Delivery method for local mail mbox format in /var/mail/
 +Split configuration into small files ? yes
 +
 + 
 +2. Declare your Gmail account
 +
 +As Gmail is using authentification on its smtp servers, you need to declare your account:​password for the gmail servers.
 +
 +This is done in the file /​etc/​exim4/​passwd.client where you have to declare any server gmail can use.
 +
 +/​etc/​exim4/​passwd.client
 +
 +# password file used when the local exim is authenticating to a remote
 +# host as a client.
 +#
 +# see exim4_passwd_client(5) for more documentation
 +#
 +# Example:
 +### target.mail.server.example:​login:​password
 +gmail-smtp.l.google.com:​your.account@gmail.com:​yourpassword
 +*.google.com:​your.account@gmail.com:​yourpassword
 +smtp.gmail.com:​your.account@gmail.com:​yourpassword
 +
 +As Exim is quite touchy about the rights of its password files, it's better to explicitly setup proper ownership and permissions.
 +
 +# chown Debian-exim:​root /​etc/​exim4/​passwd.client
 +# chmod 640 /​etc/​exim4/​passwd.client
 +
 +Finally, we need to reload exim4 for the setup to be used.
 +
 +We will also configure it to do a delivery attempt for every message, whether frozen or not (-qff option).
 +
 +# update-exim4.conf
 +# invoke-rc.d exim4 restart
 +# exim4 -qff
 +
 +3. Send your first mail
 +
 +Everything is now ready to send your first command line email.
 +
 +To send your first mail, you now need to prepare the email body in a text file.
 +
 +This email body should respect a specific structure that will provide :
 +
 +    the Recipient (to:)
 +    the Sender (from:)
 +    the Subject (subject:)
 +    the mail text
 +
 +/​root/​mail-body.txt
 +
 +to : your.account@gmail.com
 +from : Your server name
 +subject : Test mail
 +
 +This is the first mail sent by my server'​s sendmail !
 +
 +Now that the mail body is ready, you just need to pass it to sendmail with the -t option for it to send the mail :
 +
 +# cat /​root/​mail-body.txt | sendmail -t
 +
 +You should receive a mail like this one :
 +
 +debian-sendmail-message
 +
 + 
 +
 +Hope it helps.
 +</​code>​
 +
 +<​code>​
 +# exportfs -v
 +/​assets ​      ​ <​world>​(rw,​wdelay,​root_squash,​no_subtree_check,​sec=sys,​rw,​root_squash,​no_all_squash)
 +/​asset2 ​      ​ <​world>​(rw,​wdelay,​root_squash,​no_subtree_check,​sec=sys,​rw,​root_squash,​no_all_squash)
 +# cat /​etc/​exports
 +# /​etc/​exports:​ the access control list for filesystems which may be exported
 +# to NFS clients. ​ See exports(5).
 +#
 +# Example for NFSv2 and NFSv3:
 +# /​srv/​homes ​      ​hostname1(rw,​sync,​no_subtree_check) hostname2(ro,​sync,​no_subtree_check)
 +#
 +# Example for NFSv4:
 +# /​srv/​nfs4 ​       gss/​krb5i(rw,​sync,​fsid=0,​crossmnt,​no_subtree_check)
 +# /​srv/​nfs4/​homes ​ gss/​krb5i(rw,​sync,​no_subtree_check)
 +#
 +/assets *(rw,​no_subtree_check)
 +/asset2 *(rw,​no_subtree_check)
 +
 </​code>​ </​code>​
  
 [[http://​docs.datastax.com/​en/​cassandra/​2.0/​cassandra/​install/​installDeb_t.html | Cassandra Install]] [[http://​docs.datastax.com/​en/​cassandra/​2.0/​cassandra/​install/​installDeb_t.html | Cassandra Install]]
  
ec2_config.1453909642.txt.gz · Last modified: 2021/06/04 02:16 (external edit)