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

// < ![CDATA[ // < ![CDATA[ // < ![CDATA[ // < ![CDATA[ < ![CDATA[showTocToggle("+","-") // ]]>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 … Continue reading

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

Commands for Admin

< ![CDATA[showTocToggle("+","-")]]>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 … Continue reading

Posted in Old Site | Tagged , , | 33 Comments

Shell Scripting

< ![CDATA[showTocToggle("+","-")]]>Table of Contents Shell Scripting Hello world – lspwd See also Shell Scripting Shell scripting automates repeating actions. It is reliable, used in server startup scripts in Linux. It is fast to use, simply write the same commands as … Continue reading

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

Linux-komennot

Tein uuden, paremman oppaan. Jos osaat englantia, lue mieluummin artikkelini “Command Line Basics” Linux-komennot ls listaa tiedostot (-l oikeudet, -lh koot, -d kansion tiedot, -t uusin ensin) pwd missä hakemistossa olemme? pico foo.txt editoi tiedostoa foo.txt (näytä less foo.txt) cp … Continue reading

Posted in Old Site | Tagged , | Leave a comment

Share mouse and keyboard using x2x and ssh

< ![CDATA[showTocToggle("+","-")]]>Table of Contents Share mouse and keyboard using x2x and ssh Short version Detailed instructions See also Share mouse and keyboard using x2x and ssh I have a desktop computer and a laptop, both on the same table and … Continue reading

Posted in Old Site | Tagged , , , , , | Leave a comment

aboutusers

  #!/bin/bash # aboutusers – print information about human users # (Actually a bash shell scripting example program) # (c) 2006-03-06 Tero Karvinen www.iki.fi/karvinen # GNU General Public License version 2   for DIR in /home/* do USER=$(basename $DIR); echo … Continue reading

Posted in Old Site | Tagged , , , | 1 Comment

SSH Public Key Authentication – Manual Setup

< ![CDATA[showTocToggle("+","-")]]>Table of Contents SSH Public Key Authentication – Manual Setup Procedure Put your public key to authorized_keys Test SSH Public Key Authentication – Manual Setup SSH public key authentication allows ssh login without password. Because public key is, well, … Continue reading

Posted in Old Site | Tagged , , , , | Leave a comment

Ssh public key authentication

Ssh public key authentication How to set up public key authorization with linux distributions using openssh, such as Fedora, Red Hat or Debian. In this howto, you are on your own computer (whose name is local) as user erkki. You … Continue reading

Posted in Old Site | Tagged , , , , | Leave a comment

Add SSH Account for Public Key Authentication

< ![CDATA[showTocToggle("+","-")]]>Table of Contents Add SSH Account for Public Key Authentication Install and Enable SSH Server Add an Account Add Authorized SSH Public Key Add SSH Account for Public Key Authentication How to add a user for tero (me). You … Continue reading

Posted in Old Site | Tagged , , , , , | Leave a comment

Control Many Computers with SSH

Control Many Computers with SSH Once you have automated login to target computers with ssh public key authentication, it is easy to run the same command on all of them. Consider three computers, 172.28.1.219, 172.28.2.9, 172.28.2.14, each with account tero … Continue reading

Posted in Old Site | Tagged , , , , | Leave a comment
  • Picks

  • Boxing Clock for AndroidOcton8 Diving T-ShirtsShaking Tower Panda Android GameLearn Chinese with Android
  • Student projects