July 19, 2008 by Hameedullah Khan
This is for those who had suspend/hibernate working fine, and then suddenly it stopped working. So you must be wondering what is broken? Or what have you done wrong to your system. This is because you either have installed another copy of Ubuntu or someother linux on separate partition and that changed the UUID of swap partition. So now you need to tell your Ubuntu system about that new UUID.
Below are the steps to solve the above mentioned problem. Read the rest of this entry »
Tags: Linux, Open Source, Ubuntu, Hardy, suspend, hibernate, swap, initramfs
Posted in Azaad Source, Hacking, Linux, Open Source, Tips, Ubuntu | No Comments »
July 19, 2008 by Hameedullah Khan
So you are using PSI on Ubuntu and wondering why PSI is not playing sounds on new messages and on other events. PSI uses a play command to play sounds. You need to install few sound libraries that are used by play to enable PSI to play sounds. Use the following command to install required libraries.
sudo apt-get install sox libsox-fmt-all
Hope this will be helpful.
Tags: Ubuntu, Linux, psi, sound
Posted in Azaad Source, Google, Hacking, Linux, Open Source, Tips, Ubuntu | No Comments »
July 19, 2008 by Hameedullah Khan
When I was new on xen I had this very problem, that I was not able to figure out what is the actual amount of physical ram on xen host i.e Dom0. So sharing this little tip here for newbies that might be starting.
use “xm top” command to find out the actual physical ram.
Hope this will be helpful for someone.
Technorati Tags: linux, xen, open source
Tags: Linux, Open Source, Xen, memory, dom0
Posted in CentOS, Hacking, Linux, Open Source, Tips, Xen | No Comments »
June 28, 2008 by Hameedullah Khan
Yay!!! one more yay for Firefox 3 and Firebug team. Firebug is now finally available for Firefox 3, specially for Ubuntu users its a breeze. Just do:
sudo apt-get install firebug
If you are not using Ubuntu, Get your firebug from Mozilla.
So there is alot happening for Firefox 3, As I already posted how efficient it is for memory and other resources. Also the bookmark management is awesome. Have a look at my firefox 3 post.
Kudos to Joe Hewitt for giving us something like Firebug.
Tags: CSS, Firebug, FireFox, Javascript, Technology, Ubuntu, Web Development
Posted in Azaad Source, Development, FireFox, Hacking, Linux, Open Source, Technology, Ubuntu, Web Development | No Comments »
June 28, 2008 by Hameedullah Khan
Gear up your Firefox 3 for offline browsing, because now Google’s Gears extension is available fore Firefox 3. Firefox 3 has been launched on June 17. And I just tested that Gears is now available for Firefox 3. Install Gears now.
For more information check gears blog post: Fly, Gears 0.3!
Also you can checkout Google I/O Gears sessions at: Gears Sessions from Google I/O are now available to watch
Happy browsing everyone!
Related:
Tags: FireFox, Gears, Google, Technology, Web Development
Posted in Azaad Source, Development, FireFox, Google, Linux, Open Source, Technology, Ubuntu, Web Development | No Comments »
June 18, 2008 by Hameedullah Khan
Yay! Finally the long waiting firefox 3 is out. I have been using the beta and rc versions for some time as I was using Ubuntu 8.04 (Hardy). But Firefox 3 stable is out now and is available for download. Its time for celebration for all Firefox users, because Firefox 3 is really a nice improvement since Firefox 2.
Firefox 3 is much faster, memory efficient, and my loving bookmarks management wow!. There is whole lot of things I might have missed but these 3 things were really what I wanted in firefox. And now it just rocks, its out of the world.
This is not just another firefox fan praising him, but if you don’t believe me then go and try it, grab your copye of firefox now.
Happy browsing everyone!
Related Posts:
Tags: FireFox, Linux, OpenSource, Ubuntu
Posted in Linux, Open Source | 1 Comment »
May 29, 2008 by Hameedullah Khan
Happy Birthday Google Gear, oh I forgot its only “Gears” now. Long Live Gears, but unfortunately I have been missing you alot. ou have been quite useful for me all this time, but unfortunately I love Firefox more then anything else and being on Firefox 3, I don’t have you anymore.
Hopefully this will fixed soon and I will be able to have you back in my FireFox. I am a happy user of Ubuntu 8.04 (Hardy) which comes with FireFox 3, which is just so awesome that I can’t go back to FireFox 2 and for this I had to sacrifice. My most of Google extensions don’t work anymore in Firefox 3 which includes Google Gears too.
I still want to have all those extensions back, but not sure how much time will it take, I have also read that FireFox 3 is going to be released in June, they have already released rc2 of FireFox 3. So stay tuned every one, FireFox 3 stable is coming soon.
Related Link:
Tags: FireFox, Gears, Google, Hardy, Ubuntu
Posted in Azaad Source, Development, FireFox, Google, Open Source, Technology news, Ubuntu | 2 Comments »
May 26, 2008 by Hameedullah Khan
This is the perl script which generates squid “myip acl” and tcp_outgoing_address directives for all the IPs configured on FreeBSD except localhost IP (i.e 127.0.0.1), I have written this script to help my friend configure squid as I describe here.
#!/usr/bin/perl
open(IFCONFIG, “ifconfig em0 |”);
$count=1;
@acls = ();
@tcps = ();
while () {
if (/inet/) {
s/^\s+//;
@tokens = split(/ /);
if (! ($tokens[1] =~ “127.0.0.1″)) {
push(@acls, “acl ip$count myip $tokens[1]\n”);
push(@tcps, “tcp_outgoing_address $tokens[1] ip$count\n”);
$count++;
}
}
}
close(IFCONFIG);
foreach $acl (@acls) {
print $acl;
}
foreach $tcp (@tcps) {
print $tcp;
}
I know its not commented but I didn’t had much time because of my Google Summer of Code, and the script is so trivial that I didn’t feel like commenting it.
Tags: FreeBSD, OpenSource, perl, squid
Posted in Azaad Source, Development, Hacking, Open Source | No Comments »
May 26, 2008 by Hameedullah Khan
A friend of mine needed my help to configure squid server to use multiple IP addresses based on the squid’s IP being used as proxy server. I told him that he can configure the squid server using following squid acls and tcp_outgoing_address directives.
acl ip1 myip 192.168.1.2
acl ip2 myip 192.168.1.3
acl ip3 myip 192.168.1.4
tcp_outgoing_address 192.168.1.2 ip1
tcp_outgoing_address 192.168.1.3 ip2
tcp_outgoing_address 192.168.1.4 ip3
The acl lines tell squid to match myip which means if someone uses the IP 192.168.1.2 as their proxy server they will match the acl ip1 and so on..
Update: But his problem was not solved by this, because he had to configure squid for 500+ IPs and doing this by hand is not worth it when you have so many languages out there. So I wrote a small perl script for him to generate squid acl and tcp_outgoing_address directives for all IPs.
Tags: caching, Linux, Open Source, outgoing IP, perl, proxy server, squid
Posted in Azaad Source, Development, Hacking, Linux, Open Source, Tips, Uncategorized | 2 Comments »
April 30, 2008 by Hameedullah Khan
Wowwwwwwwwww! yes this was what I shouted when I installed Ubuntu 8.04 Hardy and enabled restricted drivers for my ATI card and found that Hibernate and suspend just works out of the box. Brilliant. I don’t remember where but I read somewhere that even sky is not the limit for Ubuntu and Mark Shuttleworth. This is so true, so true that it is just difficult for me to express.
The only thing that I didn’t liked is Firefox 3 bet 5 is forced on you, even though Firefox-2 is available in repository but making Firefox 3 beta verson a default choice is not the good decision. Because my beloved Google browser sync does not work with Firefox 3 and neither many of other available extensions.
I have tried both Ubuntu and Kubuntu flavors of Hardy and both are impressive. I will keep posting updates and my experiences with Ubuntu from time to time. For now, I have to leave we will do it later.
Related Posts:
Tags: ATI, Firefox 2, Firefox 3, Google, Hardy, Hardy Heron, Linux, Mark Shuttleworth, Open Source, Ubuntu
Posted in Azaad Source, FireFox, Google, Linux, Open Source, Technology, Technology news, Ubuntu | No Comments »