Showing posts with label from. Show all posts
Showing posts with label from. Show all posts

Sunday, February 15, 2015

Remote access to Debian Printing (CUPS) web interface from LOCAL

The Common UNIX Printing System (or CUPS) is a printing system and general replacement for lpd and other older systems. The CUPS Debian packages forms a nice, powerful and relatively easy to use printing system on Debian. (http://www.cups.org/)

Install Software:

aptitude update
aptitude install cups cups-client

Start the software:

/etc/init.d/cups start

The easiest way is to use the cups web interface. You can see it by going to

http://localhost:631/admin

But to get to this page remotely for a server, you need to first make some edits to the cupsd.conf file. So do the following:

1. Edit the cups configuration file by first running the following command on your server:

sudo nano /etc/cups/cupsd.conf

2. Change this section :

# Only listen for connections from the local machine.
#Listen localhost:631
Port 631
Listen /var/run/cups/cups.sock

3. Then change this sections :

< Location / >
# Restrict access to the server...
Order allow,deny
Allow from@LOCAL
< /Location >
< Location /admin >
# Restrict access to the admin pages...
Order allow,deny
Allow from@LOCAL
< /Location >
< Location /admin/conf >
AuthType Default
Require user @SYSTEM
# Restrict access to the configuration files...
Order allow,deny
Allow from@LOCAL
< /Location >

4. Finally, restart cups with the following:

sudo /etc/init.d/cups restart

5. You should now be able to log into cups on your server with:

http://your_server_ip_address:631


Note that when you change something, it may tell you that you need to add a certificate to firefox. Do so by clicking the add/get certificate button at the bottom of the firefox error message page. It will also tell you that to change stuff, you need to use the "https" version of the page instead of "http" so just go to:

https://your_server_ip_address:631

You might also have to open/port forward tcp port 631.

Thursday, March 4, 2010

Remove AutoPlay Handler from the Options List in Windows 7 / Vista / XP

AutoPlay or AutoRun dialog pops up whenever a removable drive such as digital camera or CD/DVD disc has been inserted into computer or placed into optical drive, with plenty of action choices in a list of options for users to choose to perform. Each item in the AutoPlay list is a handler installed by various applications to show as an option for a particular events or content types such as Pictures, Videos, Data, etc. By a simple change in registry, you can remove an entry or item from AutoPlay menu.

Windows by default has several AutoPlay handlers, and other third-party programs, especially media player such as RealPlayer, image burning software such as Nero adds its own AutoPlay handlers and shortcuts into the list. Over the time, the AutoPlay list can get longer and longer, and some entries can become invalid or orphaned even when the program has been uninstalled and the AutoPlay handlers are not removed.

Remove Handlers By Registry Editing

If the modification to the registry goes wrong, it may causes instability. So if you plan to remove any handlers directly from the registry, backup your registry before modifying.

Go to Start and click Run, in the dialog box type regedit and hit Enter.

AutoPlay Handlers are located at the following registry location in Windows:

HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ AutoplayHandlers \ Handlers \

handler

HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ AutoplayHandlers \ EventHandlers \

handler

To remove a particular handler, delete the registry key from from the Handlers pane and also delete the corresponding registry key from the EventHandlers pane.

For example if you want to remove VLC player autoplay handler for DVD movies, then you will have to remove the VLCPlayDVDMovieOnArrival key from the Handlers pane.

vlc handler

And also delete the corresponding key in PlayDVDMovieOnArrival in EventHandlers pane.

event

The Registry Key for VLC Player is used just for an example, it is not recommended by the author to delete its autoplay handler.

Using A Software

An orphaned or invalid junk entry might appear in the AutoPlay list of options window, as a result of incomplete uninstall of a software. The CleanHandlers helps you remove the invalid entries from the listing. Even if you’re not aware that an item is invalid, this utility can find invalid AutoPlay entries and also remove them automatically.

cleanhandlers