Howto

Publishing printers into Active Directory

To publish a printer to Active Directory, follow these steps:

  1. Open the Printers and Faxes Control Panel.
  2. Right-click the printer you want to publish into the active directory, and go to the Sharing tab.
  3. Click Share This Printer, and enter the name for the printer share.
  4. Check the List in the Directory check box.
  5. Click OK.

Start or stop the printer spooler from a command line

To start or stop the printer spooler from a command line, follow these steps:

  1. Open a command prompt.
  2. Execute the following commands, depending on your intent: net start spooler to start the spooler, or net stop spooler to stop it.

How to blank CD-RW/DVD-RW in Linux (Ubuntu)


sudo umount /dev/cdrom
cdrecord dev=/dev/cdrom blank=fast

How to create CD/DVD Copy in Linux (Ubuntu)

  1. Create an ISO image first of your CD/DVD.

  2. sudo umount /dev/cdrom
    dd if=/dev/cdrom of=file.iso bs=1024

  3. Burn the ISO image to blank or rewritable CD/DVD

  4. Right click on Image (ISO) file -> Write to Disc... -> Write

How to find files in Linux

This is how to find files in Linux assuming you know some little detail about it.

To find "myfile.txt" in the current directory and any subdirectory under the current one.

find -name 'myfile.txt'

To find for any file named "myfile.txt" on the root and all subdirectories from the root.

find / -name 'myfile.txt'

To find for any file beginning with "file" in the current directory and any subdirectory.

find -name 'file*'

To find for any file that is larger then 1000k.

Xaraya and Drupal Cron Setup

  1. Create a text file

    vi crons.txt
  2. Write your cron job on the first line, it should read something like this:

    For Drupal:

    0 * * * * lynx http://www.yourdomain.com/cron.php

    or
    For Xaraya:

    0 * * * * lynx http://www.yourdomain.com/?module=scheduler

    Select one, as what you need; and line break is only at the end of the cron job.

  3. Type in:

    crontab crons.txt
  4. Optionally, you can verify if all went well:

    crontab -l

Tar: Linux Archiving and Compression

Creating a TAR archive:

tar -cf archive.tar DirectoryNeedToArchive/

Listing the contents of TAR archive:

tar -tf archive.tar

Extracting files from TAR archive:

tar -xf archive.tar

Compressing the TAR archive:

gzip archive.tar

Decompressing and extracting tar/gzipped archive:

tar -xzvf archive.tar.gz

How to set up a home web server

Never need your nerdy brother-in-law again. Do-it-yourself network advice from a guy who has "been there, done that" a million times over.

Read here the guide how to setup a home web server.

How to hide user accounts from other users in Windows XP

If you want to hide the User Accounts in Control from those who don't need to have access to it, here's how:

  1. Click Start | Run.
  2. Enter gpedit.msc in the Run box to open the Group Policy Editor.
  3. In the left console tree, expand User Configuration | Administrative Templates | Control Panel.
  4. In the right details pane, doubleclick "Hide specified Control Panel applets."
  5. Click the Enabled option.
  6. Click the Show button.
  7. Click the Add button.
  8. In the Add field, enter nusrmgt.cpl

Dapper Drake Update: Ubuntu Apache-PHP-MySQL Server

Many people found my original post regarding this as "the quick help" how to install Apache, PHP and MySQL in Ubuntu; now with Dapper Drake I'll make it more ultra-quick :)

Just type this one liner in your Ubuntu console and you will have all them up and running:

$ sudo apt-get install mysql-server apache2 php5 php5-mysql libapache2-mod-php5

Syndicate content