chrisspeck.com

Chris' random ramblings

Setting password for Webmin after install on Ubuntu

1. Run this:

sudo /usr/share/webmin/changepass.pl /etc/webmin root [password]

2. Login to webmin at https://localhost:10000. Expand the group Webmin, then Webmin Users.

3. Create a group call “WebminRootUsers” or the like. Click through and allow that group access to as many Webmin modules as you like.

4. Create new webmin users, and add them to the newly created group.

5. Test that the new user accounts work.

6. sudo vim or sudo gedit /etc/webmin/miniserv.users, the line with root should look like “root:x:0″ (which is the default).

posted by specky in IT and have No Comments

BASH script to photocopy a page and scan to a PDF

I have been using an Epson TX110 for all of my at home printing needs for about three years. While its scanning function is good, I am absolutely sick of the way I need to keep on replacing colour cartridges even though I only ever print in black and white. My colour usage has, in fact, almost entirely been taken up by routing cleaning of the printer heads.

So, rather then spend another dollar on colour cartridges I will never use, I finally bit the bullet and purchased a laser printer.

Being a linux-geek, the first thing I did was connect it to my home server and share it with my laptop and desktop.

The next thing I wanted was the ability to link the scanner function on the Epson TX110 with the Brother laser printer, to be able to quickly photocopy a page. This is amazingly easy with bash and the right tools installed:-

#! /bin/bash
#Find the default printer, or set printer with a literal string e.g. PRINTER="HL2140"
PRINTER=`lpstat -d | awk '{print $NF}'`              
scanimage --mode gr --format tiff --resolution 300 -x 210 -y 290 | lpr -P$PRINTER -oscaling=100

All that remains is to have the ability to scan documents to PDFs…and again, bash and the command line comes to the rescue…you can download my scanpdf.bsh. It is designed for flatbed only scanners. Try running it with --help to see available options. You may click here to view the code.

posted by specky in Downloads,IT and have Comment (1)

Contact Form Spam

I received this via the feed-back form a few days ago:

Do you want to grow your business ? Do you have serious , defined sales goals?

The funny part is, this is a non-commercial site. This is not about my work or what I do, nor am I trying to sell anything – there aren’t even any ads on display.

How disappointing that the first person trying to contact me since my redesign, a spammer non-the-less, doesn’t even bother to look at the site before spamming me.

Tags: , , ,
posted by specky in Uncategorized and have No Comments

Site reboot

I thought my previous site was too dreary in aesthetics and far too complicated and difficult to update.

Hence this reboot.

I must say that I am astounded by how easy Word Press is to use!

It is my intention to upload all four posts from the previous incarnation of this site and to add things which I cannot share or index easily through other networks – such as CLI code for Ubuntu,  trouble-shooting guides for Ubuntu or Windows, bash scripts, in depth socio-legal analysis etc.

posted by specky in Uncategorized and have No Comments