Posts

Showing posts with the label ubuntu

Fix Ubuntu - Change the default privacy settings on Ubuntu

The search terms that you use to open applications or search for files on you computer, are sent to third party, which can use this information to display targeted advertisement to you. You can opt out from this default behavior of Ubuntu by executing the commands available at fixubuntu.com .

Gmail notification on Ubuntu desktop

gm-notify (Gmail Notifier) is a simple and lightweight gmail notifier/indicator. gm-notify uses notify-osd and indicator-applet to give a seamless notification bubble. Run the following command to install gm-notify sudo apt-get install gm-notify Run gm-notify-config to configure gm-notify. Other similar notification tools: popper  gmailwatcher

How to create Ubuntu Application

Watch this video to learn how to create a simple Ubuntu application:

FTP Scripts for UNIX and Windows

Here are example FTP scripts to get a file from an FTP server. UNIX: With this script, pass the ftp server hostname, user ID, password and file name with the command. If the script's name is myftpscript.ksh here is how you should use this script: myftpscript.ksh ftp_server user pass file_name #!/bin/ksh HOST=$1 USER=$2 PASSWD=$3 FILE=$4 # Change to working directory cd /ftp_working_directory #Delete existing file if [ -f ${FILE} ]; then rm ${FILE} fi #Download file from ftp server ftp -vn $HOST <<END_FTP > /ftp_working_directory/ftplog 2>&1 quote USER $USER quote PASS $PASSWD ascii get $FILE bye END_FTP exit 0 Windows: Again, pass the ftp server hostname, user ID, password and file name with the command. If the script's name is myftpscript.cmd here is how you should use this script: myftpscript.cmd ftp_server user pass file_name @ECHO OFF set PATH=C:\ftp_working_directory;%PATH% pushd "C:\ftp_working_directory...

Part3: BEGIN and END Block in AWK

This is Part3 of the series of posts on awk utility. Part1: Introduction to AWK Part2: Regular Expressions in AWK As awk is used for reporting, one might need options to print a header or footer to the report. BEGIN and END statements allow that. BEGIN is used for declaring variables and printing banners while END is used for summaries and totals. The main block (which we have been using till now) is where the data stream (example: file or std input) is processed. In the main block, each line from the input is processed one by one, whereas the BEGIN and END blocks are procesed only once. The following example shows BEGIN block being used without main or END block. awk 'BEGIN{print "Welcome"}' Welcome In the above example, we did not pass any input. Let's look at how begin and main block are used awk 'BEGIN{print "Welcome"}{print}' Welcome Hi this is me typing Hi this is me typing In the above example, the begin block printe...

Why is Flash Player Slow while Playing Video

The flash elements like buttons, sliders and controls are designed in RGB color space, whereas the video is streamed in YUV. While presenting, the YUV video stream is converted to RGB and then combined with the RGB flash elements. This conversion is CPU intensive. The problem is magnified when you see the video in full screen mode. You can avoid this problem by installing  FlashVideoReplacer add-on on Firefox. This add-on will open the video with a standard multimedia player of your choice.

tshark - Command Based Version of Wireshark

On UNIX based systems, if you do not have Xmanager or any other X11 facility, you can use the command-prompt based tool, tshark to capture trace on a network interface. To install tshark, go to http://www.wireshark.org/download.html and see if there aer pre-compled binaries available for your OS. If there is none, you need to compile the source code yourself. 1. Run the following command (as root or sudo root) to list the network interfaces: tshark -D 2. Let us say you want to trace eth0, run the follwoing command: tshark -F libpcap -w /tmp/eth0_tshark_trace.pcap -i eth0 -F libpcap specifies the file format of the trace. SAP support usually requests for libpcap. -w /tmp/eth0_tshark_trace.pcap specifies the file name where the trace is written. -i eth0 specifies that the trace is being written for the network interface eth0. If you want to see the trace on the scree, use the following command: tshark -i eth0 3. Once you have recreated the problem close tshark with c...

Firefox Slow and/or Causing High CPU Usage

One of the most likely cause of high CPU usage by Firefox is fragmentation of its database files (.sqlite files). If you have a habit of bookmarking and deleting unused bookmarks, places.sqlite, where bookmarks are stored, would be fragmented. You can shrink this file using sqlite3. If you are using Windows OS, downlod this file from http://www.sqlite.org/download.html and extract the executable to C:\Windows folder (or any other folder included in the PATH variable). If you are using Ubuntu, install sqlite3 using the following command sudo apt-get install sqlite3 To shrink the database file, run the following command after replacing <your profile>  with your profile name Windows: sqlite3 "%APPDATA%\Mozilla\Firefox\Profiles\<your profile >\places.sqlite" "vacuum" Ubuntu: sqlite3 $HOME/.mozilla/firefox/<your profile >/places.sqlite "vacuum" It is recommended that you take a backup of the sqlite file you are about to shri...

Cloud Backup and Recovery

Cloud storage services are increasingly gaining popularity as they help reduce the costs and the headache of having to maintain hardware. The services are, however, profitable for small and mid-size data (< 100 GB) backups as the service providers charge by the amount of data and bandwidth. If you are licky, you may find a vendor who offers a flat rate. For large companies, the traditional backup mechanism (example TSM) may be the prefered choice, not only from a cost perspective, but also in terms of the time taken to recover the data should there be a need to do so. The throughput would be better when you ship the tapes from off-site instead of copying them over the internet.

Sound Problems with Intel HDA on Ubuntu

If you are facing problems with sound when using headphones ex: the sound is audible on speakers and headphones at the same time, you can fix it by modifying /etc/modprobe.d/alsa-base.conf. Determine the chipset using sudo lshw -c sound Determine your computer's model details sudo dmidecode Go to http://doc.ubuntu-fr.org/audio_intel_hda#acer and find the line you need to add Take a backup of /etc/modprobe.d/alsa-base.conf and add that line. Restart the system after you have saved the changes.

Forgot Windows Admin Password--Reset with a 3 MB tool

Image
If you have lost your Windows Admin password and are looking for a free tool Offline NT Password & Registry Editor is the one for you. No need to download Ubuntu CD/DVD to just crack the password. This is a text based tool which can help you recover passwords on Windows 7, Windows XP and Windows Vista. You can download the bootable USB/CD from http://pogostick.net/~pnh/ntpasswd/bootdisk.html Follow these steps (with screen shots) to recover the password: http://pcsupport.about.com/od/toolsofthetrade/ss/ontpre-screenshot-guide.htm If you have an Ubuntu LiveCD , you can check these instructions out: http://www.psychocats.net/ubuntucat/resetwindowspassword/ Best Selling Software at Amazon: Microsoft Office 2010 Home & Student (Disc Version) Now you can easily post your Office documents online and access, share and edit them with Office Web Apps. It's an ideal way to extend your Office 2010 experience to the Web.

Ubuntu Mouse - Review by a redditor

Image
http://www.flickr.com/photos/cjayal/5417370637/ I didn't know Canonical sold computer accessories until today. Here is the review of Ubuntu Mouse available at their store. You know that mouse you use all the time that feels a little clicky if you slam down the button? Yeah, it's about 10x more clickier just doing a normal, light click on this mouse. It takes about a day or two of use to get used to the wheel being on the side, but one you get used to it it feels great. It's a great combo of both precise and smooth. I was worried about the shape being uncomfortable but I find it's the perfect size of any mouse I own. It feels great but it's also small enough to easily fit in my pocket. I REALLY love how it uses Mini-USB to connect - absolutely no setup, no waiting times, it just works as soon as you plug it in and since it uses Mini-USB that means you likely already have devices using it so you have a spare cable or two. Honestly the shipped cable is fairly...

Google Chrome - Standalone/Offline/Alternate Installer

Offline Installer for Google Chrome Web Browser The Google Chrome Installer doesn't contain the software package. The browser software is downloaded when you run the installer. Google probably does this to avoid Aw, Snap moments during installation and save on support. However, if you need to install the browser on multiple machines, the installers will be downloading same files again. Google let's you download a standalone installer to make installing Chrome simple. You can access the installer here: http://www.google.com/chrome/eula.html?standalone=1 If you do not have authorizations to install software, you can get a portable version here: http://portableapps.com/apps/internet/google_chrome_portable Chrome rocks! Make it better by filing bugs at http://crbug.com and posting ideas at http://new.crbug.com

Listen to Microphone on Windows 7 and Ubuntu

Image
Listening to Microphone on windows 7: Right-click on the Volume control icon and select "Recording deivices" Right-click on Microphone/Line In and choose Properties Go to Listen tab and check Listen to this device" Press Apply or OK to activate the changes. Listening to Microphone on Ubuntu: Install Jack:  sudo apt-get install jackd Open Jack control from Audio and Video Click on "Start" and then on "Connect" Select each capture_n, connect to the system in right panel and press connect You can use this feature to connect other audio devices to your computer.

High CPU Usage on Ubuntu By update-apt-xapi Process

Image
update-apt-xapian-index is truncated and shown as update-apt-xapi in top tool. This process is responsible for maintaining an index of packages to speed up search on Synaptic and is scheduled as a cron job (/etc/cron.weekly). This is the cron job, triggering the process: #!/bin/sh CMD=/usr/sbin/update-apt-xapian-index IONICE=/usr/bin/ionice # Rebuild the index if [ -x $CMD ] then if [ -x $IONICE ] then nice $IONICE -c3 $CMD --quiet else nice $CMD --quiet fi fi Edit the lines to show the following: #!/bin/sh CMD=/usr/sbin/update-apt-xapian-index IONICE=/usr/bin/ionice # Rebuild the index if [ -x $CMD ] then if [ -x $IONICE ] then nice -n 19 $IONICE -c 3 $CMD --update --quiet else nice -n 19 $CMD --update --quiet fi fi The modification will help reduce CPU usage . -n 19 option gives least favorable scheduling priority. --update option causes the process to update the index instead of rebuilding it every time.

Create a Live CD out of your Ubuntu Installation

You can create a custom Live CD from your Ubuntu installation using Remastersys 1. Add Remastersys repository sudo gedit /etc/apt/sources.list and add this entry: deb http://www.geekconnection.org/remastersys/repository karmic/ 2. Install Remastersys sudo apt-get update sudo apt-get install remastersys 3.a. If you wish to backup your installation to a Live CD, run sudo remastersys backup 3.b. If you want to distribute your installation as a Live CD, run sudo remastersys dist 4. The ISO will be available at /home/remastersys. You can burn CD or create a Live USB using the ISO file. 5. After you have burnt your Live CD, you may cleanup the files created on your hard drive by running the following command sudo remastersys clean Links: http://remastersys.sourceforge.net/ http://www.geekconnection.org/remastersys/

Equinox Evolution and Elegant Gnome Themes for Ubuntu

Check these article if looking for a good Ubuntu theme: Equinox Evolution Theme http://www.webupd8.org/2010/09/2-new-themes-released-in-equinox-ppa.html Elegant Gnome Theme http://www.webupd8.org/2010/09/elegant-gnome-theme-pack-07-released.html