How to mount object storage container as file system using goofys (Linux)?

If you want to create new Object Storage container you may check following guide: LINK

To mount your Object Storage container as file system do following steps:

For Ubuntu:

$ sudo add-apt-repository ppa:gophers/archive && sudo apt-get update && sudo apt-get install golang-1.10-go

$ echo "export PATH=$PATH:/usr/lib/go-1.10/bin" >> ~/.profile

$ source ~/.profile

$ export GOPATH=$HOME/work && go get github.com/kahing/goofys && go install github.com/kahing/goofys


For Centos:

$ sudo rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO

$ curl -s https://mirror.go-repo.io/centos/go-repo.repo | tee /etc/yum.repos.d/go-repo.repo

$ sudo yum install golang


Next, create file ~/.aws/credentials with content:

[s3]
aws_access_key_id=XXXX
aws_secret_access_key=XXXX


To obtain s3 credentials (Access Key and Secret Key), that are generated on our part, please contact us via email or create Support ticket.

 

After creating the credentials file you may mount your container:

 

$ $GOPATH/bin/goofys --region RegionOne --profile s3 --endpoint https://cf2.cloudferro.com:8080/ \
cont ~/new
Hint:
Store ec2 credentials in root home directory if you use goofys with sudo.

In example above, cont is the name of the container, and ~/new is an example mount point.

 

Additional parameters:

-o allow_other:         Assure access to your bucket for other users.
--file-mode value       Permission bits for files. (default: 0644) (default: 420)
--dir-mode value        Permission bits for directories. (default: 0755) (default: 493)
--uid value             User ID owner of all inodes. (default: 1000)
--gid value             Group ID owner of all inodes. (default: 1000)

 

Warning:
If you create a mount point as a non-root user you have to proceed some changes in
the /etc/fuse.conf file.

Open this file and locate the line:
# user_allow_other

Uncomment it, by deleting the # sign at the beginning:
user_allow_other

Save a configuration.

To check the user type please gather information in /etc/sudoers.

How do I access my newly created VM?

Currently one can access linux/unix VMs only via ssh.

That is why a public key has to be provided during VM provision.

Additionally a public floating IP number has to be associated with the VM. One also should check if an appropriate access group is used: the one that allows for remote access, namely: allow_ping_ssh_rdp .

If all of the above conditions are met - this VM should be pingable from the Net and should be accessible by ssh with username <eouser>.


Cannot connect to USGS Landsat servers from IPT machines running Linux?


If you are experiencing troubles in getting Landsat products through USGS the possible reason can be the MTU size.

By defalt CloudFerro VMs have MTU set to 8950 to maximize the network performance.

However in case of getting Landsat products the MTU has to be lowered to 1500 or less.

In CentOS please do the following:

$ sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0

add the following lines:

MTU="1500"
IPV6_MTU="1500"

Now save the file (<Esc>:w!q)
and restart the service:

$ sudo service network restart

You can check the MTU with

$ ifconfig

 


How to access VM from Windows (PuTTY)?

The link below shows how to generate and add rsa key pairs:

https://creodias.cloudferro.com/knowledgebase.php?action=displayarticle&id=82

To connect via PuTTY, copy your Virtual Machine floating IP address and save it somewhere.

You can download PuTTY (putty.exe) from http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Insert your Virtual Machine floating IP address into "Host Name (or IP address)".
Insert port number (for SSH it's 22).
In "Connection type:" check "connect via SSH".

Expand tree menu to access Authentication options (Connection->SSH->Auth):

Browse to your private key corresponding to your public key added to the VM during the process of ordering new VM (https://creodias.cloudferro.com/knowledgebase.php?action=displayarticle&id=78).

For your comfort you can save the session for future usage by naming the session and saving changes.

Saved session will be seen below.
To start a connection click the "open" button.


If you are connecting to your VM via PuTTY for the first time, we recommend to save the rsa key fingerprint by choosing Yes (Tak) for future connections from your computer.


If there are no errors, you will see the following screen:

Login as "eouser".


If you logged correctly you should see at the bottom of the screen: "eouser@yourInstanceName:~$"

Now you are correctly logged into your VM via SSH from another host.

 


How to configure Remmina Remote Access Client (Linux)?

 

Install Remmina:

sudo add-apt-repository ppa:remmina-ppa-team/remmina-next
sudo apt-get update
sudo apt-get install remmina

 

Configuration:

Click New to add new server:

 


Then add name, server IP address, login and password.
Also it's good to change color settings to 24 bit.

 

 

Then Save the settings and connect to your server: