For renaming the tab righ click on it and choose Edit Text.
Monday, December 27, 2010
How to add tabbed panel to Java Frame in Netbeans
For renaming the tab righ click on it and choose Edit Text.
Saturday, August 29, 2009
quickly resize or rotate images within nautilus
If you are looking for a way to batch resize many pictures at the same time with just 2 easy steps, you have found the right tutorial. I found a way by blogging on Internet to add resize and rotate option to your right click and have it always there right beside your hand ;-)
Installation
To add this functionality we’ll need to install the nautilus-image-converter package:
#sudo aptitude install nautilus-image-converter
Use
Before you’re able to use this functionality you’ll need to restart nautilus or simply logout and back in. You’ll now be able to right-click on any image on your machine and you’ll see two new menu items:
"resize images"
"rotate images"
Check out the screen shots down here ...
You can also choose to resize by percentage or by exact dimension.
Source : Modifed but direct tutorial from Ubuntu Tutorials Dapper
Saturday, July 11, 2009
Having Windows as Default choice in Dual boot(Ubuntu & Windows)
When you install a dual-boot of Ubuntu, one of the frustrating things that you’ll immediately notice is that Ubuntu is now set as the default operating system in the Grub loader. There’s an easy way to switch back to using Windows as the default.
To make this change, you’ll first have to boot into Ubuntu, and then run the following command:
#sudo gedit /boot/grub/menu.lst
Find this section of the file:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify ’saved’ instead of a number. In this case, the default entry
# is the entry saved with the command ’savedefault’.
# WARNING: If you are using dmraid do not change this entry to ’saved’ or your
# array will desync and will not let you boot your system.
default 0
The important line is the last one(marked by red color). You will need to change that number 0 to match the Windows boot section. Typically it’s always going to be 6 on a default dual-boot configuration. Change this value to 6, and then save and reboot your machine. You should go into Windows instead of Ubuntu automatically. But if when you have restarted your computer, you see the wrong choice is the default choice, then it is just to count the numbers of the lines up to your favorite choice and then set that number as default :-)
Note: The blocks at the bottom of the file match the items in the menu. You can change this value to match whichever item you want as default, just remember that numbering starts at 0.
How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)
Original tutorial :
I have recently seen many posts from people trying to dual boot Ubuntu and Windows 7 beta, but not succeeding. So I tried it out myself and found a solution.
Index
1. Obtain a copy of Windows7.
2. Partition your disk with gparted.
3. Install Windows7.
4. Re-install Grub.
5. Edit Grub to List Windows 7.
6. Have Fun.
__________________________________________________ ________________________________
1. Obtain a copy of windows 7.
Official Microsoft Link - http://download.microsoft.com/downlo...FRE_EN_DVD.iso
*This Link Is Now DEAD Go to the Microsoft website and get your own download. Requires java*
*You can also find a torrent of this but for legal reasons I cannot provide a link. *
2. Partition your disk
**This does go wrong in some cases, if in doubt back up your valuable data.**
Boot from a Ubuntu live cd or a gparted live cd.
Start up gparted, If ubuntu is on the whole disk you need to re-size it by at least 8 gb for Windows 7. (Make sure windows 7 is on the second partition to make it easier for grub) You will be left with some unallocated space on your hard disk if you want you can partition it to NTFS or you can do it later on the windows install.
3. Install Windows 7
Follow the on screen instructions, Select the un-partitioned space to format and install windows on, or if you already made it NTFS choose your NTFS partition.
**It will ask for a product key but you have 30 days to do that. Note: Beta keys will work with the RC**
4. Re-install GRUB
Now you have windows 7 but it has completely eaten your boot loader so you need to re-install grub.
Boot from the Ubuntu live CD and go to terminal.
Type in terminal:
"sudo grub"
"grub> find /boot/grub/stage1"
That should return your Ubuntu partition in the form of (hdX,Y), use that:
grub> root (hdX,Y)
grub> setup (hd0)
grub> quit
(you don’t need to type the grub> bit)
That has re-installed grub but you can no longer see windows7
5. Edit grub.
Go to terminal from normal ubuntu and type :
“sudo gedit /boot/grub/menu.lst”
A large text file will open and at the bottom leave a line and add this:
title windows 7 beta (Loader)
root (hd0,1)
savedefault
makeactive
chainloader +1
(Do not type this line but if that does not work on re-boot try “hdo,0 or hd0,2” and so on until it works.)
Now that is done you can re-boot into windows 7 and ubuntu happily
******************Edit***********************
Hi
I have remembered that if you also have vista installed on your machine when you in install 7, that windows 7 will add itself to the vista bootloader.
So You will need to point grub to the vista partition so it will load the vista loader and give you the option for 7 and vista.
Also To work out what partition number your 7 partiton is use gparted it will give you results like "Windows 7 sda2" that means hda0,2 or if you have two internal hard drives than change the tab in the top right to the appropriate disk. Then take note of the sda2 but as it is on the 2nd drive it will be hda1,2. And so on..........
Source