AWS EC2 – Manage instance snapshot

AWS EC2 instance snapshot can be useful for quick backup & restore. To create snapshop 1) elastic block store –> volumes ensure you can coorelate volume name with ec2 instance, for future reference note down “attachment information” as it contains instance id & volume addressing 2) elastic block store –> snapshopts create snapshot select volume […]

Full Story »

AWS EC2 – lost instance key

Only way to connect ec2 linux instance is using a key. As I usually forget passwords I use ssh key to connect any critical linux machine running at my workplace. Assuming one day I’ll loose instance Key I though of trying to regenrate or redownload old key but there is no option I could find, […]

Full Story »

AWS EC2 – ssh linux instance without password

AWS EC2 – ssh linux instance, To ssh linux instance you need to use identity key which is either created while launching new instance or existing key. download & store .pem file chmod 600 KEY.pem mv KEY.pem ~/.ssh/identity_HOST.pem update cat ~/.ssh/config to ssh without -i key Host ec2-1 HostName LINUXINSTANCE2 Port 22 User ec2-user IdentityFile […]

Full Story »

AWS EC2 changes ip on every stop / start

EC2 instance will change ip with every stop / start of instance to fix this you need to use elastic ip which is permanent. Unless you release elastic ip you can use it wit this or any other instance. 1) goto ec2 dashboard 2) elastic ips 3) allocate new address #this will assign new public […]

Full Story »

Subversion auth using openldap + htpasswd

Below configuration will help you Subversion auth using openldap + htpasswd. this takes care of only authentication, still you need to use old file (svn.authz) based authorization. If user is not found on openldap than only htpasswd will be used for authentication. yum install mod_authz_ldap -y Update httpd.conf <Location /svn/repos> AuthType Basic AuthName "Use auth.linuxreaders.com […]

Full Story »

Subversion auth using openldap

Below configuration will help you Subversion auth using openldap, this takes care of only authentication, still you need to use old file (svn.authz) based authorization. yum install mod_authz_ldap -y Update httpd.conf <Location /svn/repos> AuthType Basic AuthName "Use auth.linuxreaders.com credentials" Require valid-user AuthBasicProvider ldap AuthzLDAPAuthoritative on AuthLDAPBindDN "uid=ldapadmin1,OU=Users,DC=linuxreaders,DC=com" AuthLDAPBindPassword "MYLDAPPASSWD" AuthLDAPURL "ldap://auth.linuxreaders.com:389/OU=Users,DC=linuxreaders,DC=com?uid" AuthzSVNAccessFile /etc/httpd/svn.authz DAV svn […]

Full Story »

AWS S3 – Host static website

AWS S3 can be used to host static web contens, following is basic setup required to start with public static website. Create a bucket Select endpoint url from “Properties of bucket –> Static Website Hosting”, this can be used as CNAME. OR use it to access static pages. Select Website hosting & define name of […]

Full Story »

MediaWiki OpenLdap Auth

Following configuration will help you to make mediawiki users authenticate from existing openldap setup. Here following openldap properties is used. base dn=’dc=linuxreaders,dc=com’ user =’uid=USER-NAME,ou=Users,dc=linuxreaders,dc=com’ Install php-ldap yum install php-ldap -y service httpd reload Add Followings in LocalSettings.php # LDAP require_once ‘extensions/LdapAuthentication/LdapAuthentication.php'; require_once ‘includes/AuthPlugin.php'; $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPDomainNames = array( ‘linuxreaders.com’, ); $wgLDAPServerNames = array( […]

Full Story »

Upgrade Fedora 20 to 21 -using shell

Fedora 21 is released, you can upgrade fedora 20 to 21 using shell OR download media for fresh installations. Upgrade using fedup (recommended). sudo yum update -y sudo yum install fedup -y sudo fedup –network 21 –product=workstation #reboot & select system upgrade To upgrade using shell, you need to run following commands. sudo yum update […]

Full Story »
Page 1 of 37123456»102030...Last »

Trending Posts