{"id":67791,"date":"2021-07-28T21:21:52","date_gmt":"2021-07-29T01:21:52","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/misc-on-aws-linux-git-ssh-development-platform-by-sayed-ahmed-misc-reading-rhcsa\/"},"modified":"2021-07-28T21:21:52","modified_gmt":"2021-07-29T01:21:52","slug":"misc-on-aws-linux-git-ssh-development-platform-by-sayed-ahmed-misc-reading-rhcsa","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=67791","title":{"rendered":"Misc. on AWS, Linux, Git, SSH, Development Platform #By Sayed Ahmed #Misc. Reading #RHCSA"},"content":{"rendered":"<p>Restart MySQL server on MacOS<br \/>\nhttps:\/\/coolestguidesontheplanet.com\/start-stop-mysql-from-the-command-line-terminal-osx-linux\/<\/p>\n<p>Ubuntu: http:\/\/askubuntu.com\/questions\/82374\/how-do-i-start-stop-mysql-server<\/p>\n<p>Macos: sudo apachectl start<\/p>\n<p>Redhat: https:\/\/access.redhat.com\/documentation\/en-US\/Red_Hat_Enterprise_Linux\/6\/html\/Managing_Confined_Services\/chap-Managing_Confined_Services-MySQL.html<\/p>\n<p>SSH, Secure copy (SCP), Sync (rsync) with Amazon AWS (Sure I did work with and used the following concepts)<br \/>\nSure, did configure development and deployment platform on AWS<\/p>\n<p>This works: ssh -i \/path\/my-key-pair.pem ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com<br \/>\nyou might need to use ubuntu or root as the user<br \/>\nSSH: http:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/AccessingInstancesLinux.html<\/p>\n<p>Flavours of these commands will work for Secure Copy<br \/>\n$scp -i ~\/Desktop\/amazon.pem ubuntu@ec2-54-166-128-20.compute-1.amazonaws.com:\/data\/ecoli_ref-5m-trim.fastq.gz ~\/Download\/<br \/>\n$scp -i ~\/Desktop\/amazon.pem ~\/Desktop\/MS115.fa  ubuntu@ec2-54-166-128-20.compute-1.amazonaws.com:~\/data\/<br \/>\nSCP: http:\/\/angus.readthedocs.io\/en\/2014\/amazon\/transfer-files-between-instance.html<\/p>\n<p>rsync and was:<br \/>\nhttp:\/\/www.anthonychambers.co.uk\/blog\/rsync-to-aws-ec2-using-.pem-key\/9<br \/>\nrsync -rave &#8220;ssh -i PEMKEYFILE.pem&#8221; \/path\/to\/local\/files\/* ec2-user@EC2_INSTANCE_HOSTNAME:\/path\/to\/remote\/files<\/p>\n<p>rsync -rave &#8220;ssh -i PEMKEYFILE.pem&#8221; \/path\/to\/local\/files\/* ec2-user@EC2_INSTANCE_HOSTNAME:\/path\/to\/remote\/files<\/p>\n<p>Some of my videos on Git, Version Control, and Similar:<br \/>\nhttps:\/\/www.youtube.com\/playlist?list=PLUA7SYgJYDFqYR7YRow8cwX_RSgTJPCQH<\/p>\n<p> From: http:\/\/sitestree.com\/?p=4350<br \/> Categories:By Sayed Ahmed, Misc. Reading, RHCSA<br \/>Tags:<br \/> Post Data:2016-10-16 23:28:09<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Restart MySQL server on MacOS https:\/\/coolestguidesontheplanet.com\/start-stop-mysql-from-the-command-line-terminal-osx-linux\/ Ubuntu: http:\/\/askubuntu.com\/questions\/82374\/how-do-i-start-stop-mysql-server Macos: sudo apachectl start Redhat: https:\/\/access.redhat.com\/documentation\/en-US\/Red_Hat_Enterprise_Linux\/6\/html\/Managing_Confined_Services\/chap-Managing_Confined_Services-MySQL.html SSH, Secure copy (SCP), Sync (rsync) with Amazon AWS (Sure I did work with and used the following concepts) Sure, did configure development and deployment platform on AWS This works: ssh -i \/path\/my-key-pair.pem ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com you might need to use ubuntu or &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=67791\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-67791","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":71502,"url":"http:\/\/bangla.sitestree.com\/?p=71502","url_meta":{"origin":67791,"position":0},"title":"Upgrade ubuntu 16 to ubuntu 18: AWS lightsail : challenges and solutions","author":"Sayed","date":"October 17, 2021","format":false,"excerpt":"Must read: AWS Lightsail upgrade Ubuntu 16.04 LTS to 18.04 LTS https:\/\/www.cyberciti.biz\/faq\/aws-lightsail-upgrade-ubuntu-16-04-lts-to-18-04-lts\/ Promising: SSH not working post upgrade to Ubuntu 18.04 from 16.04 [AWS Lightsail] https:\/\/community.bitnami.com\/t\/ssh-not-working-post-upgrade-to-ubuntu-18-04-from-16-04-aws-lightsail\/76827 Instance firewalls in Amazon Lightsail https:\/\/lightsail.aws.amazon.com\/ls\/docs\/en_us\/articles\/understanding-firewall-and-port-mappings-in-amazon-lightsail Well: Upgrade from 2.2.3 to 2.4.1 direct? needs Ubuntu 18 to get php latest. you can just get\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23319,"url":"http:\/\/bangla.sitestree.com\/?p=23319","url_meta":{"origin":67791,"position":1},"title":"EC2 : AWS : Misc #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 29, 2021","format":false,"excerpt":"Install Git: EC2 with Amazon Linux sudo yum install git Change Folder Owner sudo chown -R apache:apache folder If Ubuntu in EC2 Instance, Install Git sudo apt-get install git From: http:\/\/sitestree.com\/?p=4452 Categories:Root, By Sayed AhmedTags: Post Data:2016-11-03 23:18:22 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":21831,"url":"http:\/\/bangla.sitestree.com\/?p=21831","url_meta":{"origin":67791,"position":2},"title":"Some Ubuntu Linux Commands used in AWS platform #Unix\/Linux #RHCSA","author":"Author-Check- Article-or-Video","date":"March 7, 2021","format":false,"excerpt":"Some Ubuntu Linux Commands used in AWS platform Some might be run by the parent commands This is kinda cleaned up from .bash_history (removed repeating and sensitive commands), still not perfectly cleaned up - so you will see lots of ls, cd, dir or similar \u00a0 sudo apt-get update sudo\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22776,"url":"http:\/\/bangla.sitestree.com\/?p=22776","url_meta":{"origin":67791,"position":3},"title":"Ubuntu: Creating a user with SSH access and write permission to the web-application folder #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 20, 2021","format":false,"excerpt":"Ubuntu: Creating a user with SSH access and write permission to the web-application folder The following Linux commands helped sudo chown -R username:username \/home\/username\/.ssh sudo chmod 0700 \/home\/username\/.ssh sudo chmod 0600 \/home\/username\/.ssh\/authorized_keys Also, added the following lines into the file \/etc\/ssh\/sshd_config -> did not check whether these are really required\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22421,"url":"http:\/\/bangla.sitestree.com\/?p=22421","url_meta":{"origin":67791,"position":4},"title":"Linux Commands Used: AWS or not #Root #By Sayed Ahmed #RHCSA","author":"Author-Check- Article-or-Video","date":"March 14, 2021","format":false,"excerpt":"Remove MySQL Completely: sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5 sudo rm -rf \/etc\/mysql \/var\/lib\/mysql sudo apt-get autoremove sudo apt-get autoclean Did not try but might work as well [ sudo apt-get remove --purge mysql-server mysql-client mysql-common sudo apt-get autoremove sudo apt-get autoclean sudo rm -rf \/var\/lib\/mysql sudo rm\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":68268,"url":"http:\/\/bangla.sitestree.com\/?p=68268","url_meta":{"origin":67791,"position":5},"title":"BiGDump #Blog #DevOps","author":"Author-Check- Article-or-Video","date":"July 31, 2021","format":false,"excerpt":"If you are having issues to import large SQL files, one possible solution is BiGDump script. However, accessing the server through ssh and using mysql command to import\/restore will work as well (and the better solution). I just tried BigDump - it worked pretty well for me. The idea is\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67791"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67791\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67791"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}