Your Ad Here

Showing posts with label nautilus. Show all posts
Showing posts with label nautilus. Show all posts

Wednesday, August 26, 2009

How To Using Nautilus Scripts

With scripts you can do many things such as :
  • make an enhanced "open with"-alike feature (open some files that match a filter in your preferred application
  • make a zip of a directory and mail it
  • open a terminal in the selected directory
all of this with a simple right click.
You can find the Nautilus-scripts folder here : 
Go to Home Holder and Click Ctrl + H to Open Hidden Files and looking for . . 
~/.gnome2/nautilus-scripts

Adding scripts

1.place your scripts in the nautilus-scripts folder
2.name them accordingly to the label you want in the right-click context menu
3.make them executable (chmod +x my_script_name  )

Sample Scripts
Copy To Script :
Place the following code in a new file, give it a filename of copyto and make it executable with chmod a+x copyto. Move the new file to the ~/.gnome2/nautilus-scripts/ directory, open nautilus and you'll find a new right-click menu item entitled "Scripts" with a submenu that has an item that quickly copies a file to any directory you desire.
#! /bin/bash
location=`zenity --file-selection --directory --title="Select a directory"`
for arg
do
if [ -e "$location"/"$arg" ];then
   zenity --question --title="Conflict While Copying" 
   --text="File ""$location"/"$arg"" already exists. 
   Would you like to replace it?"
   case "$?" in
      1  )  exit 1 ;;
      0  )  cp "$arg" "$location" ;;
   esac
else
   cp "$arg" "$location"
fi
done 
 
1.Send To Script Download Here
2.Move To Script Download Here
3.Umount-Iso Script Download Here
4.Mount-Iso Download Here
5.Format Media Script Download Here
6.Open Terminal Here Script Download Here
You too can download script here , and chose what do you want to use because too many script 
Thank's
By:Mr.Gm
Read rest of entry

Sunday, July 26, 2009

Give a boot menu a wallpaper

         Debian’s boot menu is ugly and looks like it’s straight out of 1990. It doesn’t have to be this way. Debian uses the GRUB menu software, and that’s capable of having a graphical backdrop that can be any picture of wallpaper. However, you’ll need to shrink the picture and reduce its color level.

wallpaper on boot menu linux

1.Choose a picture and then load it into the GIMP (right-click and select Open With ! Open with "GIMP Image Editor").You should select a picture that’s roughly in 4:3 ratio, such as a digital camera snap. Don’t select very tall or broad images—they won’t work.

2. Right-click the image within GIMP and select Image !Scale Image.In the Width box, type 640 and hit the Tab key. The Height box should then automatically change to 480. If it doesn’t, click the small chain icon to the right of the Width and Height boxes, so that it changes to a broken chain icon. Then enter 480 into the Height box. Once done, click the Scale button.

3. Right-click the image again within The GIMP and select Image ! Mode ! Indexed. Ensure Generate Optimum Palette is selected, and then type 14 into the Maximum Number of Colors box. Then click the Convert button. The picture might now look ugly, but such a low color count is all the GRUB boot menu allows.

4. Right-click the image again within GIMP and select File ! Save As. Give the file a name in the Name box, and use the .xpm file extension. You might save the file as bootwallpaper.xpm, for example. Bear in mind that GIMP automatically detects the file type it should save the file as from the file extension. Click OK to select the default alpha values, if prompted.

5. Open a terminal window and type the following(this assume file save in home folder)

$ sudo mkdir /boot/grub/splashimages
$ gzip tobi.xpm
$ sudo mv tobi.xpm.gz /boot/grub/splashimages

6. Replace tobi mentions above with the filename you chose.

7. Then open the boot menu file for editing in Gedit:

$ gksu gedit /boot/grub/menu.lst

Look for the line that begins ## ## End Default Options ## and, below,
add a new line that reads splashimage=(hd0,0)/boot/grub/splashimages/tobi.xpm.gz.



Note that the last step above assumes your computer is dual-booting with Windows. If Ubuntu is not only operating system on your computer,
the line should read splashimage=(hd0,4)/boot/grub/splashimages/tobi.xpm.gz

Thank'u
By:Mr.Gm
Read rest of entry

Saturday, July 25, 2009

Give Nautilus windows their own wallpaper

Give Nautilus windows their own wallpaper

             You can apply a coolored or textured background to Nautilus windows by clicking Edit > Backgrounds and Emblem an then clicking and draging your choice on top of any open Nautilus Windows.To get rid of it,click and drag the reset icon on the top of a nautilus window.To use your own image for Nautilus wallpaper,you must copy it to the /usr/share/nautilus/patterns folder and then add it to the nautilus background and emblems selection and drag.To do this first copy the image to the relevant location using sudo powers :

$ sudo cp image.jpg /usr/share/nautilus/patterns/

Replace image.jpg with the file name of your name of your image.Then open the backgrouns and Emblems dialog box,as described above,and click the add a new patterns button.Your image should be lisstes as one of the choices,so doubleclick it to add it to the choices of wallpaper in the Background and Emblems dialog Box.


Thank'u
By:Mr.Gm
Read rest of entry
 

My Room Temperature

My Pressure

My Humidity