pdflib # aws ec2 - amazon-ec2

Is it possible to install an .so extension for PHP 64 Bit in the "Amazon Cloud"? I cannot do so in the instance itself since we are using several instances which are randomly booted and shut down by Amazon.
I cannot find anything concerning this in the configuration console.
Would be glad if somebody had an answer.
Thank you and best regards
Yvon

Try to use the CloudInit packages for example in the recent Ubuntu AMIs. You basically specify a shell script, put it in the instance user-data and this script gets executed on instance startup. In this shell script, you can install your .so extension.

Related

Using AWS CLI with MobaXterm on Windows

I am a newbie to both AWS and MobaXterm. I am trying to use MobaXterm to manage AWS instances because it comes with bash.
I am following the commands as per https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html.
When I run the following command $ sudo ./aws/install, I get the following error:
Unable to start 'install': There is no application associated with the
given file name extension.
I did run chmod 777 to ensure that I am able to read/write/execute. Please see attached image.
I do know that I can use Windows CLI installer in command line. However, doing SSH to EC2 is a nightmare in Windows with all certificates. With MobaXterm (because of bash), it is very easy. So, my preference is to use MobaXterm instead of Windows command prompt.
Moreover, I don't want to directly install Ubuntu. Hence, I am looking for some guidance here. I'd appreciate any help.
I am hoping that I am not missing any package. Thanks for any help.
In order for AWS cli to run on MobaXterm, you will need to run the following commands in MobaXterm:
MobApt install python2-pip
pip2 install awscli
It will take some time for MobaXterm to complete steps 1 and 2. Also, AWS cli runs super slow in MobaXterm. You are better off using cmd.
This is the site that helped me ran AWS cli on MobaXterm.
https://majornetwork.net/2017/07/installing-aws-cli-on-cygwin/

Command not found in bas

I'm so sorry because I know this is a dumb question, but I've been trying to figure this out for about 2 hours and I can't figure it out. I've created a bash file that uses some other programs (tcpdump, tshark). The bash runs as it should but on every line that I use tshark, tcpdump, etc. it says "command not found".
I'm using Cygwin on my Windows 7 VM. All of the files are in the same folder and I I've tried adding the locations of the other programs to the PATH variable. I tried commands such as export PATH=$PATH:filelocation but when I do $PATH those results aren't showing. How can I get these commands to be recognized?
Thank you.
current errors
Cygwin is not a Linux distro, therefore, you don't have all the functionality like you would if you had a Linux installation.
You could try one of the following.
1) Use Virtualbox to make a VM of some Linux distro and use bash there. You could use Ubuntu server, which has no GUI.
2) Use this site to find packages that will add functionality to Cygwin.
3)Upgrade to Windows 10 and have a native (sort of) bash to use.

Vagrant installing Java6SDK from Oracle

Just recently downloaded Oracle JavaSDK 6 (6u45).
Would want to know how to do a shell provision to install the .bin file provided by Oracle. I know there are better alternatives (online repository) but those consumes times and I'm limited to use JavaSDK 6 since the server I'm replicating requires me to use Java6.
Any hint how this can be done via shell provisioning?
Have a look at the installation instruction of Oracle. I would write shell script that follows this instruction. This shell script should be called by vagrant during the provision

"No such file or directory" for existing files in Amazon EC2 instance

I am getting a weird error of non-existent file in the Amazon EC2 instance, when logged in over ssh.
basically i have installed racket(mzscheme) from here, and it ran the install script perfectly, but after installation when i try to run the created binaries existing in "/home/ubuntu/racket/bin" then it says:
-bash: ./mzscheme: No such file or directory
basically for any binaries that i am trying to execute.
all the binaries have execute permission for all.
Tried rebooting the instance, with no fix.
$ which mzscheme
gives
/usr/local/bin/mzscheme
Thanks for helping.
EDIT
Here is a link i found, which talks about the same problem, but no solution,
on arc forums
The problem was the release mismatch. The Amazon EC2 instance was a 64-bit machine and i installed a 32-bit racket. As #ChrisJester-Young explained in the comments, mzscheme being a dynamic executable spits this rather confusing error message.

Is there a good EC2 image for a microinstance that includes just ruby but not rails,mysql, etc

I just want to spool up some micro-instances and install a few gems.
I recommend you just start an instance of a clean base AMI running the Linux distro of your preference from a trusted source. Then run the standard commands (e.g., apt-get, yum) to install the standard Ruby provided by the distro and go from there.
You don't need to find an AMI that has exactly the set of packages you want to run. Modern Linux makes it easy to install these cleanly.
With AMIs like the official Ubuntu or Amazon Linux you can even pass in a script as user-data and it will run it on first boot. You can use this to make sure that your desired packages and gems are installed when the instance runs.

Resources