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 , , , , , , | Leave a comment

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 , , , , | Leave a comment

Command Line Basics

// < ![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 Important directories What Next? Command Line … Continue reading

Posted in Old Site | Tagged , , , | 13 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 , , | 13 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 , , , | Leave a comment

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 , , | Leave a 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