Convert Vector EPS Images to PNG Bitmap

Mogrify can convert hundreds of images with a single command. To get decent quality bitmap PNG from vector EPS, you must set the density parameter. $ mogrify -format png -density 300 -resize 1024 *.eps

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

New Default Website with Apache2 – Show your homepage at top of example.com, no tilde

Install the most popular web server in the world, Apache. Put your homepage on a simple URL, like http://example.com. You don’t need tilde or username (no http://example.com/~tero)

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , | 4 Comments

Logging in Python – with function names, line numbers, command line -v -d and aliases v(), d()

Logging is tells you what’s going on when your run and often avoids useless comments. Log messages give you a real time feeling what’s happening in the program. And your advanced users might want to run ‘supercommand –debug’, too. This … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

Volume Control and Output Selection with PulseAudio Command Line Tools

This article shows you commands to control volume and move playback streams to different outputs. For example, you can move VLC sound from laptop headphones to external HDMI monitor speakers while the stream is playing. You can do all these … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Forensic File Recovery with Linux – Undelete

Want your deleted files back? Plan A: have backups. Plan B: take a disk image and use a tool to undelete your files. If you are doing forensic analysis, file recovery is your only option. Prequisites: fluency with the command … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

Print PDF from Command Line – cups-pdf, lpr -P PDF

After installing cups-pdf, you can print to file with ‘lpr -P PDF’. Install PDF printer $ sudo apt-get -y install cups-pdf List printer names that lpr can understand $ lpstat -p -d printer deadtree is idle.  enabled since 2011-06-22T08:09:05 EEST … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 2 Comments

32 bit Linux can see 8 GB of memory

In some operating systems, you can only see a little under 4 GB of RAM with a 32 bit OS. It’s a common myth that this would be the case with Linux too. In Linux, you can see your whole … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Shared Folder with chmod SetGID

How do you share a folder in Linux? Especially, how can you get write permission to files other users have created? You should know command line before starting with this article. Knowing the basics of chmod (or see ‘man chmod’) … Continue reading

Posted in Uncategorized | Tagged , , , , | 2 Comments

Command Line Basics

Table of Contents Command Line Basics Moving and looking around Relative and Absolute Path File Manipulation SSH Remote Control Help History and Guessing Usefull commands Important directories What Next? Command Line Basics Below, dollar sign “$” is the normal user … Continue reading

Posted in Old Site | Tagged , , , | 40 Comments

Commands for Admin

Table of Contents Commands for Admin Sudo – Give a Single Commands with Root Priviledges Package Management – Installing Software Notes on Nethack Commands for Admin Some of the most important commands for admin. This article is a work in … Continue reading

Posted in Old Site | Tagged , , | 34 Comments