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

Shell Scripting

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 you … 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 , | Comments Off on Linux-komennot

Share mouse and keyboard using x2x and ssh

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 connected … Continue reading

Posted in Old Site | Tagged , , , , , | Comments Off on Share mouse and keyboard using x2x and ssh

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

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, public, … Continue reading

Posted in Old Site | Tagged , , , , | Comments Off on SSH Public Key Authentication – Manual Setup

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 , , , , | Comments Off on Ssh public key authentication

Add SSH Account for Public Key Authentication

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 can … Continue reading

Posted in Old Site | Tagged , , , , , | Comments Off on Add SSH Account for Public Key Authentication

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 , , , , | Comments Off on Control Many Computers with SSH