How do I set up SSH access for an Amazon EC2 instance?

Basically, you need a private-key file to login into your EC2 via SSH. Follow these steps to create one: Go https://console.aws.amazon.com/ec2/home & sign in to your existing Amazon account. Click on “Key Pairs” on LHS or https://console.aws.amazon.com/ec2/home?region=us-east-1#s=KeyPairs. You should see the list of KEYs generated by you (or during EC2 creation process). Click on “Create … Read more

Font is not available to the JVM with Jasper Reports

I tried installing mscorefonts, but the package was installed and up-to-date. sudo apt-get update sudo apt-get install ttf-mscorefonts-installer I tried searching for the font in the filesystem, with: ls /usr/share/fonts/truetype/msttcorefonts/ This folder just had the README, with the correct instructions on how to install. cat /usr/share/fonts/truetype/msttcorefonts/README You need an internet connection for this: sudo apt-get … Read more

Accessing a windows shared folder from Linux?

If you want to use the GUI, try clicking Places -> Connect to Server…. For Service Type choose Windows share, and fill out the fields like so: Server: 192.168.1.66 Share: SharedFolder Then download your file from the window. If you want to use a command-line interface, smbclient uses a FTP-like interface (get, put, etc.): ~$ … Read more

Where is php.ini-development on Ubuntu LAMP?

php.ini-development and php.ini-production, which come with the PHP 5.3 package, are really just examples of recommended settings. You should review the settings and make sure that they apply to your use and copy them to the regular php.ini file location. On my Ubuntu 10.04.1 LTS (lucid) server, here’s where I find mine: # locate php.ini-development … Read more

Mysqld.sock doesn’t exist

Confirm that mysqld.sock doesn’t exist sudo find / -type s | grep mysqld.sock Check that your /etc/mysql/my.cnf file agrees that the file should be /var/run/mysqld socket = /var/run/mysqld/mysqld.sock and if it does then sudo mkdir -p /var/run/mysqld sudo chown mysql /var/run/mysqld/ sudo service mysql restart but I suspect your problem lies elsewhere as the mysql … Read more