- sudo rm /var/lib/ubuntu-release-upgrader/release-upgrade-available
- sudo /usr/lib/ubuntu-release-upgrader/release-upgrade-motd
Category: AWS SERVER
Amazon SES setup with django
EMAIL_BECKEND = 'django_smtp_ssl.SSLEmailBackend' (or EMAIL_BECKEND = 'backends.smtp.SSLEmailBackend')
EMAIL_HOST = 'email-smtp.us-east-1.amazonaws.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'SMTP USERNAME'
EMAIL_HOST_PASSWORD = 'SMTP PASSWORD'
EMAIL_USE_TLS = True
Create ssl in ubuntu, centos and linux
- sudo openssl req -new -newkey rsa:2048 -nodes -keyout domain-name.key -out domain-name.csr
Generating a 2048 bit RSA private key
…………………..+++
………………….+++
writing new private key to ‘domain-name.key’
—–
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‘.’, the field will be left blank.
—–
Country Name (2 letter code) [AU]:Country Code
State or Province Name (full name) [Some-State]:state name
Locality Name (eg, city) []:City Name
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Company name
Organizational Unit Name (eg, section) []:Unit name
Common Name (e.g. server FQDN or YOUR name) []: domain name
Email Address []:email address
Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
2. copy csr file and paste third party ssl provider website, then verify domain
3. After verify domain third party given certificate file (like cert.crt), bundle file(like bundle.crt or bundle.ca-bundle)
4. edit in apache sites conf file
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerName domain-name
ServerAlias www.domain-name
DocumentRoot document
SSLEngine on
SSLCertificateFile /etc/ssl/cert.crt #certificate file full path
SSLCertificateKeyFile /etc/ssl/domain-name.key #key file full path
SSLCertificateChainFile /etc/ssl/bundle.ca- bundle #bundle file full path
</VirtualHost>
</IfModule>
Assign ftp user to specific directory
- usermod -d directory-path username
- sudo chown username:username directory-path
- sudo chmod a-w directory-path
- sudo service vsftpd restart
Install vsftpd and create new Ftp user with specific directory in ubuntu
- sudo apt-get update
- sudo apt-get install vsftpd
- sudo vim /etc/vsftpd.confuncomment write_enable=YES
uncomment chroot_local_user=YESAdd at last in file
user_sub_token=$USERallow_writeable_chroot=YES
- sudo mkdir directory-path
- sudo adduser –home=directory-path username
- sudo chmod -R 0777 directory-path
- sudo chown nobody:nogroup directory-path
- sudo chown username:username directory-path
- sudo chmod a-w directory-path
- sudo service vsftpd restart
Get Python Wsgi Module Path Specific Django Project
- After Activate Environment
-
mod_wsgi-express module-config
Connect AWS Server with .ppk file in macbook
- ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
- brew install putty
- puttygen keyfile.ppk -O private-openssh -o keyfile.pem
- sudo chmod 0400 keyfile.pem
- ssh -i keyfile.pem [email protected]
Reset git username password in mac os
git config --global --unset user.password
Upgrade mariadb 5.5 to 10.2 in centos 7
1. backup all databases first
2. service mariadb stop
3. yum remove mariadb mariadb-server
4. yum install vim epel-release -y
5. vim /etc/yum.repos.d/mariadb.repo
6.then paste this lines and save it :
# MariaDB 10.2 CentOS repository list - created 2018-02-15 08:21 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
7. yum install MariaDB-server MariaDB-client -y
8. systemctl enable mariadb
9. systemctl start mariadb
10. mysql_upgrade
Mysql User Command
- DROP USER ‘username’@’localhost’;
- show databases;
- select User from mysql.user;