Showing posts with label gnome. Show all posts
Showing posts with label gnome. Show all posts

Tuesday, February 19, 2008

Configuring GRUB in Ubuntu

You can configure GRUB (like menu editing, pause length etc.) with the help of file /boot/grub/menu.lst. But there are a little better method with the help of GUI.

Startup Manager is a graphical tool for configuring GRUB, Ubuntu splashscreen etc.

You can download .deb file from here (62.8Kb):
http://www.getdeb.net/download.php?release=1456&fpos=0
(double click for install)

And now you have a new item StartUp-Manager in the System -> Administration menu.

Monday, February 18, 2008

Web-resources about Ubuntu

http://www.ubuntu.com - Official site



http://www.canonical.com/ - Official site of Canonical Inc.



https://launchpad.net/ - the heart of Ubuntu project. Here you can help develop Ubuntu, translate GUI etc.



https://help.ubuntu.com/ - the main resource with documentation. There are official and community documentation.



http://ubuntuforums.org/ - official forum of Ubuntu community. There are answers on huge numbers of any questions.



http://www.getdeb.net/ - software portal for Ubuntu. There many software which are not in official repositories.



http://www.ubuntugames.org/ - resource about games for Ubuntu.



http://planet.ubuntulinux.org/ - official Ubuntu-blog.



http://doc.ubuntu-fr.org/ - French documentation for Ubuntu.



http://art.gnome.org/ - There are many visual themes for Gnome.



http://gnomefiles.org/ - Software archive for Gnome (GTK+ based).



http://www.gnome-look.org/ - Another resource with visual themes for Gnome (also for Beryl and Compiz).

Mounting ISO images

How I can open my ISO image in Ubuntu? That's very necessary question for newbees. OK, it's very easy in actual fact. All that you need is a standard command mount:

Create any folder, for example /media/isoimage:
sudo mkdir /media/isoimage

Mount .iso file (for example something.iso) in that folder:
sudo mount something.iso /media/isoimage/ -t iso9660 -o loop

For unmount use:
sudo umount /media/isoimage

Yeah, using commands everytime is a difficult for newbees. But Nautilus file-manager has one very good feature - it can use scripts. Now we will write a simple script for mount ISO image with the help of context menu.

1. Create the file mount.sh (click by right mouse button in Nautilus and select Create document -> Empty file, enter the name, double click on it for editing and write text)


#!/bin/bash
# mount
gksudo -k /bin/echo "got r00t?"
BASENAME=`basename $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS .iso`
sudo mkdir "/media/$BASENAME"
zenity --info --title "ISO Mounter" --text "$BASENAME e $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
if sudo mount -o loop -t iso9660 $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS "/media/$BASENAME"
then
if zenity --question --title "ISO Mounter" --text "$BASENAME Image already mounted. Open?"
then
nautilus /media/"$BASENAME" --no-desktop
fi
exit 0
else
sudo rmdir "/media/$BASENAME"
zenity --error --title "ISO Mounter" --text "Cannot mount $BASENAME!"
exit 1
fi


2. Open the Properties window for this file and check Allow for execute (unlike Windows Linux recognizes programs not with the help of extention (like .exe for example) but with the help of special attribute eXecute). The other method is command: sudo chmod +x mount.sh

3. Create the file unmount.sh


#!/bin/bash
# unmount
gksudo -k /bin/echo "got r00t?"
BASENAME=`basename $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS .iso`
sudo umount "/media/$BASENAME"
sudo rmdir "/media/$BASENAME"
zenity --info --text "Unmounted succesfully /media/$BASENAME"
exit 0


4. As in 2nd item make unmount.sh executable.

5. Open another Nautilus windows, go to home folder, press Ctrl+H for show hidden files and go to .gnome2/nautilus-scripts

6. Copy out two files in that folder (simply drag and drop)

That's all. Now you can simply click right mouse button on the ISO file and select mount.sh in the Scripts submenu. For unmounting - select unmount.sh.

If you want you can use more interesting names for our scripts. For example you can use name "Mpunt ISO" for "mount.sh" script, and "Unmount ISO" for "unmount.sh". Because the first string of both these files is #!/bin/bash, file extention is not some sense, Ubuntu know what it is.