Posts

Showing posts from January, 2010

Google Ads

Creating a simple local Ubuntu repositories

Setup Install dpkg-dev. sudo apt-get install dpkg-dev Create local repository directory. sudo mkdir /path/deb Create an update script in the local repository directory with these three lines: #! /bin/bash cd /path/deb dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz Make the script executable. sudo chmod 755 update_local_repo_script Add local repository into the Ubuntu software sources. Use the line below: deb file:/path/deb ./ You can either manually edit /etc/apt/sources.list file or you can use the GUI application: System > Administration > Software Sources Usage Download deb package files from internet to /path/deb. Run update script sudo /path/deb/update_local_repo_script Run Ubuntu repositories update sudo apt-get update You can now start installing the downloaded application using either apt-get command or Synaptic Package Manager.

Things todo for a clean upgrade of Ubuntu Linux

This is a list of steps of what to do whenever i did a re-install of Ubuntu Linux with the latest version or released of the distro. Housekeeping Housekeeping your HDD or especially your home directory first before doing backup will probably save you a significant amount of time during file transfer to backup your data. This is true especially you have more than 100GB of data to backup. USB transfer speed: 25MByte/s (200Mbit/s) Time taken to transfer 100GB: 100,000/25 = 4,000 seconds = 67 minutes Time taken to transfer 150GB: 100 minutes Time taken to transfer 200GB: 133 minutes Disk Usage Analyzer is a great tool that can tells you what files are taking the most space in your HDD. It can help to decide if some of the huge files are no longer needed and good to delete. Backup all data to external HDD All the data that i need to backup is just from my home directory. So all i need to do is to backup the whole of my home directory. Manual copy is the easiest. Creat

Blogger sitemap error when using feed redirection

Image
Google Webmaster tool always throws out errors whenever a blogger redirected feed(one example is Feedburner) is used as a sitemap. Url not allowed This URL is not allowed for a Sitemap at this location The solution to it is to add a no redirect flag to the url that is going to be use as a sitemap.

Adding or Installing Extra HDD to Ubuntu Linux

Image
This operation use to involve a series of many command lines and text editing on "/etc/fstab" configuration file. Now with PySDM, all those manual steps can be simplified with a GUI driven program. Install PySDM Copy, paste and hit enter button on your command terminal: sudo apt-get install pysdm Running PySDM System > Configure Extra HDD to Auto Mount on Boot Up The HDD shown below only have one volume. If the HDD has more than one volume, it will show right under the "sdb" tree. Accept all defaults for simplicity and click apply button for PySDM to write to /etc/fstab configuration file. Mount button can be click to mount the HDD volume without rebooting the system. Close the program and reboot the PC and check if the volume or HDD configured auto mounted. References: PyGTK Storage Device Manager GUI Fstab Editing with PySDM

My Conky Script

Image
An online backup and sharing of my conky script.   -----Start----- background yes use_xft yes xftfont 123:size=8 xftalpha 0.1 update_interval 10 total_run_times 0 own_window yes own_window_type normal own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes minimum_size 250 5 maximum_width 400 draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color gray default_shade_color red default_outline_color green alignment top_right gap_x 10 gap_y 10 no_buffers no uppercase no cpu_avg_samples 2 net_avg_samples 1 override_utf8_locale yes use_spacer right text_buffer_size 256 TEXT ${font Arial:size=20}${color Tan1}UBUNTU ${color Ivory}Linux ${voffset -90} ${color DimGray} ${font} ${font Arial:bold:size=10}${color Tan1}SYSTEM ${color DarkSlateGray} ${hr 2} $font${color DimGray}$sysname $kernel $alignr $machine AMD Athlon 64 X2 Dual Core +3800 $alignr${freq_g cpu0}Ghz NVid

Blogger and Webmaster max 26 URLs limit sitemap

Image
Google provides a way to index web pages and blogs using their Webmaster tool. All it need is a sitemap. Blogger uses its feeds as sitemap for indexing. You may notice that for blogs that have more than 26 unique pages, Google Webmaster can only grab the maximum 26 URLs for indexing. To fix this, a small tweak is need on the feed URL. http://almost-a-technocrat.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=100 A second sitemap is needed if you have more than 100 pages. http://almost-a-technocrat.blogspot.com/atom.xml?redirect=false&start-index=101&max-results=100