An Excellent Solution to websites that don’t save the username and password

A very nice tutorial that I read here,and it then led me to here, it’s a Javascript script that enables Firefox to remember usernames and passwords for some websites that orders the browser not to remember it, and I LOVE IT! It worked like a charm.

Tagged , | Leave a comment

How to connect using Mobinil 3G Modem in Egypt, Solution to a problem in Ubuntu’s default configuration

If you create a profile in 3G connections in Ubuntu (I’m currently using version 9.04), you will be able to connect but you won’t be able to reach any website, that’s because of a glitch in the default configuration for “Mobinil” service provider. To solve the problem:

  1. Right-click on the Network Manager icon and choose “Edit Connections”
  2. Choose the “Mobile Broadband” tab
  3. Double click the “Mobinil” connection
  4. Open the “IPV4 Settings”
  5. In the “Method”, change from “Automatic (PPP) addresses only” to “Automatic (PPP)”.
  6. Reconnect and enjoy 🙂
Tagged , | 2 Comments

Backup and Restore ext4 filesystem using fsarchiver

Important Note: Until the time of writing this article, “partimage” DOESN’T SUPPORT EXT4, it detects ext4 as ext3 and then displays an error message saying “can’t read bitmap block 0 from image“, so if you use something like the bootable disk “systemrescuecd” for backup and you’re using an ext4 filesystem, you’d better use another alternative such as “fsarchiver” as in the following steps:

  1. Create a mountpoint to save the image to, e.g. “/root/backup”
  2. fsarchiver savefs /root/backup/backup.fsa /dev/sda1” where sda1 is the partition you wish to backup.

fsarchiver uses gzip compression by default and it will display a summary once it finishes, make sure the summary doesn’t contain any errors. To restore the image:

  1. fsarhiver restfs /root/backup/backup.fsa id=0,dest=/dev/sda1” where “/dev/sda1” is the partition you wish to restore and “id=0” is used to indicate that it’s the first partition in the list of paritions – if any – inside the “backup.fsa” file.

For more information, visit http://www.fsarchiver.org/QuickStart

Tagged , , , | Leave a comment

UNetbootin: Burn any ISO or image files to USB Disk on Linux

  1. Go to the following URL: http://unetbootin.sourceforge.net/ and download the file
  2. Make the file executable (chmod +x file_name)
  3. This step is specific for Ubuntu: If you receive the message “7z not found ….”, open a terminal and run “sudo apt-get install p7zip-full

BTW, if you need to write IMG files instead on Ubuntu, you can install the USB image writer by running “sudo apt-get install usb-imagewriter

Enjoy 🙂

Tagged , , , | Leave a comment

How To Decrease Resolution of Output Video File in mencoder

In a previous post, I showed how to change an .ogv file to a .avi one which is useful is you’re going to give the video to a windows user. One problem I faced is that my resolution is too high and after I created the output avi file, it was about 7 MB in size which was too large as an e-mail attachment, you can simply add the parameter “-vf scale=800:600” to reduce the resolution to 800*600, e.g.

mencoder OMPerf.ogv -vf scale=800:600 -ovc xvid -oac mp3lame -xvidencopts pass=1 -o output.avi

where:

OMPerf.ogv is the input file
800*600 is the resolution
output.avi is the output file

Tagged , | Leave a comment