How To Find and Delete Files Not Matching MULTIPLE criteria using bash in AIX

“find . ! -name “*.bz2” ! -name “ESPRD*” | xargs rm”

 The above command finds all files in the “current” directory excluding those with “*.bz2” extension and those which start with “ESPRD*” and then deletes them all.

Tagged , | Leave a comment

How to add a new data file to Oracle Tablespace using sqlplus

First login as the "oracle" user, and issue the command "sqlplus "/ as sysdba"" (I am assuming that you already have configured the 
PATH environment variable correctly) and then type the following:
 
alter tablespace tablespace_name 
add datafile '/oracle/data/file1.dbf' size 12G autoextend off;
 
The above command adds a data file named "file1.db" of size 12 GB to the "/oracle/data" path with the autoextend feature turned off
 
Source: http://www.adp-gmbh.ch/ora/sql/alter_tablespace.html 
Tagged , , | Leave a comment

Convert OGV files to AVI using mencoder

OGV is the default output for the “recordmydesktop” application in ubuntu, and I needed to convert it in order to use another software:

mencoder input.ogv -ovc xvid -oac mp3lame -xvidencopts pass=1 -o output.avi

Tagged , , , | Leave a comment

Gwibber : Twitter & Facebook Client in Ubuntu 9.04

A very nice desktop application for feeds from twitter and facebook, don’t use the one packed with Ubuntu 9.04 and use the one from the PPA instead:

To download the new version :

  • open synaptic package manager
  • go to Settings -> Repositories
  • on the Third-party Software tab, click add and add this line :
    deb http://ppa.launchpad.net/gwibber-team/ppa/ubuntu jaunty main
  • and then save this key and import it from Authentication tab to authorize it.
  • after that reload synaptic package manager, and then search for Gwibber. Now it has the 0.9.2 version

After installation process add Facebook account in Gwibber by :

  • Account -> Create -> Facebook
  • you’ll have to Authorize Gwibber to use your Facebook account,
  • just follow the three easy steps and you’re in.

Gwibber can also handle Twitter, account creation is very easy.

Source: http://ubuntu.igameilive.com/2009/08/gwibber-facebook-client-in-ubuntu-904.html

Tagged , , , | 2 Comments

How to set up HP printing on Ubuntu — HP Laserjet P1005

Some HP printers can use one of the drivers already installed by default in Ubuntu. In those cases, all you usually need to do is plug your printer into your computer, and Ubuntu will recognize it and prompt you to set it up. It’s super quick & easy. The HP Laserjet P1005 that I purchased needed something more. This is a good quality, small, quiet, and cheap ($75 shipped from Newegg) monochrome laser printer. It comes with drivers, Windows drivers of course, which do you no good with Ubuntu. I read that I needed hplip. Turns out that I already had hplip installed on my system by default (which will work for many HP printers), but it didn’t do me any good. I needed to download & install the newest version. Here’s how I did it…
Download the automatic installer file here, the sourceforge page for hplip. Once downloaded follow the instructions on the download page to complete the installation. It will download some more stuff, and then install everything. It will also configure your HP printer. Now you’ll have the HP Device Manager in the Accessories menu, and you’ll also have nice, smooth printing.

screenshot-hp-device-manager-hp-laserjet-p1005

Source: http://howto-ubuntu.net/how-to-set-up-hp-printing-on-ubuntu/

Tagged , , | 1 Comment