Friday, January 7, 2011
Labels: bittorrent, linux, ubuntu, utorrent
Tuesday, January 4, 2011
Labels: linux, ubuntu, Windows, windows 7, windows software, Windows XP, wine
Sunday, January 2, 2011
Labels: linux, partitions, ubuntu, Windows, wubi
The partition(s) must be created already - there are plenty of guides on how to do this.
Manual migration (see below for automated migration)
This example assumes the new install will be on /dev/sda5 and that there will be a swap on /dev/sda6. If there is no swap, just ignore lines containing /dev/sda6. If there is a swap partition it must be of type 'swap'. Change the device names as appropriate.
1. Do this all as root
sudo -i
grub-install --version
WARNING -- the next command will wipe all existing data on /dev/sda5
mkfs.ext4 /dev/sda5
mkdir /tmp/wubimove
mount /dev/sda5 /tmp/wubimove
rsync -av --exclude=/host --exclude=/mnt/* --exclude=/home/*/.gvfs --exclude=/media/*/* --exclude=/tmp/* --exclude=/proc/* --exclude=/sys/* / /tmp/wubimove
chmod -x /tmp/wubimove/etc/grub.d/10_lupin
mkswap /dev/sda6
echo "RESUME=UUID=$(blkid -o value -s UUID /dev/sda6)" > /tmp/wubimove/etc/initramfs-tools/conf.d/resume
sed -i 's:/.*[\.]disk .*::' /tmp/wubimove/etc/fstab
echo "UUID=$(blkid -o value -s UUID /dev/sda5) / ext4 errors=remount-ro 0 1" >> /tmp/wubimove/etc/fstab
echo "UUID=$(blkid -o value -s UUID /dev/sda6) none swap sw 0 0" >> /tmp/wubimove/etc/fstab
mkdir /tmp/wubimove/host
for i in dev proc sys dev/pts host; do mount --bind /$i /tmp/wubimove/$i; done
chroot /tmp/wubimove
dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl
apt-get -y remove lupin-support
update-grub
grub-install /dev/sda
rm /sbin/initctl
dpkg-divert --local --rename --remove /sbin/initctl
exit
for i in host dev/pts dev proc sys; do umount /tmp/wubimove/$i; done
rmdir /tmp/wubimove/host
umount /dev/sda5
update-grub
exit
NOTE on installing the grub bootloader: you can try out the new installation by booting it from the wubi grub menu first - if you want to make sure everything is working before replacing the windows bootloader. To do this, bypass the line 'grub-install /dev/sda' (in step 6.). You can then install the grub2 bootloader manually later after booting into the new install.
I also recommend updating the grub menu after booting into the target partition
sudo update-grub
I have attached a parameter driven script that does the above with additional validation e.g. checks the target partition is big enough and empty etc.
Usage instructions:
bash wubi-move.sh --help
sudo bash wubi-move.sh /dev/sda5
sudo bash wubi-move.sh /dev/sda5 /dev/sda6
sudo bash wubi-move.sh --no-bootloader /dev/sda5 /dev/sda6
Warning - while I have tested this numerous times and every attempt has been made to ensure there are no bugs, use it at your own risk.
Please note - it takes some time to copy all the data from wubi to the target partition. e.g. on my computer it takes about 5-10 minutes for a small install (5GB).
Known issues:
1. For some reason, running "update-grub" in the chroot doesn't pick up other linux installations on the same drive (same running the script or manual commands listed above). This is unlikely an issue for wubi users. Run sudo update-grub after booting the new install for the first time.
Labels: broadband, internet, linux, mobile connection, mobile phone modem setup, network connection, nokia, ubuntu
Connecting to internet using mobile phone as modem is easy from windows XP. The manufacturer provides you with the softwares required for windows - all that was required is to install the software and run the application. But when it comes to Linux, the whole picture changes. There is no default software from the manufacturer, there is no other third-party applications available.
Most of the linux users, like me gave up linux when they faced this. I had searched the net for days (months maybe), but got nothing valuable - there is always the geeky way, setting up wvdial/kppp running commands from 'terminal'. But, when I found out that all these were not required, everything needed to setup the connection was just a few clicks away - I felt a fool of myself - for not taking the effort to look for it. It even has all the mobile sevice providers details for each country with the access point names (APN), for which we had to call the customer care earlier!!!.
I tried this with Ubuntu 10.10 and nokia 6300, but Iam sure this works for all other linux OS and mobile phones.
This is what is to be done.
Step 1: Go to System -> Preferences -> Network Connections. The below screen pops up.
Step 7: The settings you have selected is shown. Click "Apply" to confirm the settings.
at 9:38 PM Posted by nasweef
0 comments