As per this serverfault answer, use the following syntax:
Using GNU screen in a start-up script
Setting password for Webmin after install on Ubuntu
1. Run this:
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).
Troubleshooting Gallery2 HTTP Status 500 Internal Server Errors
If you are receiving a “HTTP Status 500 Internal Server Error” when trying to Edit or view a Gallery2 setup, you would ought to check whether your choice of graphics toolkit is the cause of the error.
In a gallery I was setting this morning, the “Gd” graphics toolkit was causing the site to crash because of a time-out which arose when Gallery2 attempted to use Gd to generate a thumbnail.
The fix is to fight your way to the Admin/Plugins page, configure and activate the ImageMagick plugin, and deactivate (& delete) the Gd plugin.
Incidentally, the only way to trouble-shoot Gallery2 when it is in this condition is to:
- Check your host’s error log for any errors generated by the PHP scripts and/or Apache; and
- Activate Gallery2′s immediate debug mode.
Immediate debug mode should at least generate output, the last line of which should indicate where/why Gallery2 has died.
Finally, if you are running on a Linux Host / LAMP stack and you want to use a local php.ini, you must put the following line in the .htaccess file:
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:-
#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.
Remotely starting X11 apps on other displays
...
user@desktop:~$ printenv
...
DISPLAY=localhost:10.0
...
_=/usr/bin/printenv
user@desktop:~$
Take note of the “DISPLAY” variable, this is the local port (on the machine called “desktop”) which is forwarding X11 server commands to the X11 client running on the machine called “laptop”.
user@desktop:~$ vlc &
This sets the “DISPLAY” variable to the first screen on the desktop, and starts VLC as a background process. For this to work you must be logged into the server with the same user account, and have an X11 client running on the desktop.
user@server:~$ gedit &
This sets the “DISPLAY” variable to the laptop, and starts Gedit on the server, but displaying it on the laptop.
Categories
Tags
admin Apple Bash Chrome community events Downloads Dynamic DNS Education email Exaile Excel Flash Card Printer Gallery2 hardware iMac Joomla CMS laptops linkedin Linux mp3 MySQL Networking (computers) photos PHP Plugins post processing printers programming scam scanners scripts spam SSH system rescue or restore The Cloud The GIMP Thunderbird Ubuntu VB.net VBA website design Windows Word 2003 Wordpress X11Past Posts
- April 2012 (1)
- January 2012 (1)
- November 2011 (2)
- September 2011 (2)
- August 2011 (2)
- July 2011 (3)
- March 2011 (1)
- February 2011 (6)
- January 2011 (1)
- December 2010 (2)
- November 2010 (1)
- August 2010 (1)
- July 2010 (2)
- June 2010 (5)
- May 2010 (4)
Problem Solvers
- Generating an SSH Private Key
- How do I stop my ethernet network connection from dropping?
- How to reset your password in Ubuntu
- Installing (updated) gnome-shell and add-ons in stock Ubunu
- Non-Integer Division in Postgre
- Recovering from CTRL-S in PUTTY
- Samsung Unified Driver in Ubuntu
- Ubuntu Lucid 10.04 – nVidia MCP55 High Definition Audio Problem
- VIM: Numpad doesn't work in PuTTY
Meta