venerdì 15 marzo 2019

Synchronize an AWS S3 Bucket in local file system

Dear Folks,
Today I want to synch a S3 Bucket on my laptop to move files (generated in last month by a crawler) in a new destionation.

The solution is so easy:

... in a bash ...

>export AWS_ACCESS_KEY_ID=....
>export AWS_SECRET_ACCESS_KEY=....
>aws s3 sync s3://test.lighthouse .

You have to refer to AWS CLI DOC for other details.

You can also do S3 bucket to S3 bucket, or local to S3 bucket sync.
Check out the documentation and other examples.
Regards.

martedì 5 febbraio 2019

Install Chrome stable version on CentOS 7.x

Hi Folks,
When you work with NODEJS it's tipical to add chrome to your software bag.

In some cases when create a unix image you works on CentOS, yum doesn't support immediatly the installation of a stasble version of chrome.

The configuration is easy.

Create a file called /etc/yum.repos.d/google-chrome.repo and add the following lines of code to it:

[google-chrome]
name=google-chrome 
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 
gpgcheck=1 
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Check whether the latest version available from the Google’s own repository using following yum command:
 
yum info google-chrome-stable

Let’s install it using yum command as shown below, which will automatically install all needed dependencies:

yum install google-chrome-stable 

lunedì 28 gennaio 2019

How to install Ubuntu updates via command line

Exceute following commands in the bash:

sudo apt-get update        # Fetches the list of available updates
sudo apt-get upgrade       # Strictly upgrades the current packages
sudo apt-get dist-upgrade  # Installs updates (new ones)
sudo apt-get autoremove    # Move packages that were automatically installed



Have a good time...

Documentation apt-get

Bye Folks