Why don’t EC2 ubuntu images have swap?

You are right, the Ubuntu EC2 EBS images don’t come with swap space configured (for 11.04 at least). The “regular” instance-type images do have a swap partition, albeit only 896 MB on the one I tested. If some process blows up and you don’t have swap space, your server could come to a crawling halt … Read more

df says disk is full, but it is not

It’s possible that a process has opened a large file which has since been deleted. You’ll have to kill that process to free up the space. You may be able to identify the process by using lsof. On Linux deleted yet open files are known to lsof and marked as (deleted) in lsof’s output. You … Read more

GPG does not have enough entropy

Have you had a look at RNG? Fedora/Rh/Centos types: sudo yum install rng-tools On deb types: sudo apt-get install rng-tools to set it up. Then run sudo rngd -r /dev/urandom before generating the keys. Reference: http://it.toolbox.com/blogs/lim/how-to-generate-enough-entropy-for-gpg-key-generation-process-on-fedora-linux-38022

How to fix PuTTY showing garbled characters? [closed]

You almost certainly have set the wrong character set in your PuTTY settings. Verify the character set on the remote system by running the command: locale This should return something like: LANG=de_DE.UTF-8 LC_CTYPE=”de_DE.UTF-8″ LC_NUMERIC=”de_DE.UTF-8″ LC_TIME=”de_DE.UTF-8″ LC_COLLATE=”de_DE.UTF-8″ LC_MONETARY=”de_DE.UTF-8″ LC_MESSAGES=”de_DE.UTF-8″ LC_PAPER=”de_DE.UTF-8″ LC_NAME=”de_DE.UTF-8″ LC_ADDRESS=”de_DE.UTF-8″ LC_TELEPHONE=”de_DE.UTF-8″ LC_MEASUREMENT=”de_DE.UTF-8″ LC_IDENTIFICATION=”de_DE.UTF-8″ LC_ALL= So check your PuTTY settings under Translation and ensure that … Read more

list all packages from a repository in ubuntu / debian

Simple: grep -h -P -o “^Package: \K.*” /var/lib/apt/lists/ppa.launchpad.net_*_Packages | sort -u Or more flexible: grep-dctrl -sPackage . /var/lib/apt/lists/ppa.launchpad.net_*_Packages For fancier querying, use apt-cache policy and aptitude as described here: aptitude search ‘~O LP-PPA-gstreamer-developers’

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)