Amazon Linux: apt-get: command not found

If you’re using Amazon Linux it’s CentOS-based, which is RedHat-based. RH-based installs use yum not apt-get. Something like yum search httpd should show you the available Apache packages – you likely want yum install httpd24. Note: Amazon Linux 2 has diverged from CentOS since the writing of this answer, but still uses yum.

What’s a .sh file?

If you open your second link in a browser you’ll see the source code: […] So it’s a bash script. Got Linux? In any case, the script is nothing but a series of HTTP retrievals. Both wget and curl are available for most operating systems and almost all language have HTTP libraries so it’s fairly … Read more

Visual list of all installed fonts with respective pangram phrase?

“Open the Fonts dialog (Windows->Dockable Dialogs->Fonts) Right click any font in the list Choose ‘Render Font Map’ In the dialog that appears, leaving the ‘Filter (regexp)’ blank will list all your installed Fonts.” Source: http://gimpforums.com/thread-font-examples This forum thread clearly lists the steps for rendering a sample of each font in your GIMP library. I hope that this … Read more

Confused about stdin, stdout and stderr?

Standard input – this is the file handle that your process reads to get information from you. Standard output – your process writes conventional output to this file handle. Standard error – your process writes diagnostic output to this file handle. That’s about as dumbed-down as I can make it 🙂 Of course, that’s mostly by convention. There’s nothing stopping … Read more

Sleep for milliseconds

Note that there is no standard C API for milliseconds, so (on Unix) you will have to settle for usleep, which accepts microseconds:

Sleep for milliseconds

Note that there is no standard C API for milliseconds, so (on Unix) you will have to settle for usleep, which accepts microseconds:

Bash: No such file or directory?

I bet you miss dynamic linker. Just do a You should get an output like this: There are high chances that you system lacks the interpreter (/lib64/ld-linux-x86-64.so.2 in the example). In this case bash would yell No such file or directory, just like when the binary itself is missing. You can try to use a different linker. Sometime you can … Read more

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