Upgrading Fedora - adding extras (part b)
Welcome to them tutorial guide. The guide will provide a user with instructions and guidance on adding extras.
If you would like to change default file type “Open with” program, then please
- right click on file
- Properties
- Open With Tab
- Add
- Select “Open with” program
- Select “Open with” program (Checked)
If you would like to change preferred email client to Mozilla Thunderbird, then simply go to:
- Desktop
- Preferences
- Preferred Applications
- Mail Reader Tab
- Default Mail Reader
- Command: mozilla-thunderbird %s
If you would like to open files as root user via right click, then run following command:
gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
- now, please insert the following lines into the new file
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gnome-”gnome-open $uri” &
done
- now, save the edited file
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
- right click on file
- Scripts -
Open as root
If you would like to disable beep sound in Terminal mode, then please go to:
- Applications
- System Tools
- Terminal
- Edit Menu
- Current Profile…
- General Tab
- General
- Terminal bell (Un-Checked)
If you are interested in installing or uninstalling .rpm files, then follow the steps as provided below:
If you would like to install .rpm file, then please run following command:
su -c ‘rpm -i package_file.rpm’
If you would like to uninstall .rpm file, then please run following command:
su -c ‘rpm -e package_name’
If you would like to rename all files in directory at once, then first of all you need to install mvb file namer renamer by running following command:
wget -c http://easylinux.info/uploads/mvb_1.6.tgz
tar zxvf mvb_1.6.tgz -C /usr/share/
chown -R root:root /usr/share/mvb_1.6/
ln -fs /usr/share/mvb_1.6/mvb /usr/bin/mvb
- now, we can rename all files in directory at once
mvb NEW_NAME
If you would like to manipulate all image files in directory at once, then first of all, you need to install bash batch image processing script ty running following command:
su -c ‘yum install ImageMagick’
wget -c http://easylinux.info/uploads/bbips.0.3.2.sh
su -c ‘cp bbips.0.3.2.sh /usr/bin/bbips’
su -c ‘chmod 755 /usr/bin/bbips’
If you would like to manipulate all image files in directory at once, then please run following command:
bbips
If you would like to set System-wide Environment Variables, then please run following command:
su -c ‘cp /etc/bash.bashrc /etc/bash.bashrc_backup’
su -c ‘gedit /etc/bash.bashrc’
now, please append the System-wide Environment Variables at the end of file
after appending the file please save the edited file
If you would like to save “man” outputs into files, then please run following command:
man command | col -b > file.txt
If you would like to show GRUB menu on boot-up, then please run following command:
su -c ‘cp /boot/grub/menu.lst /boot/grub/menu.lst_backup’
su -c ‘gedit /boot/grub/menu.lst’
- now, please find this line
…
hiddenmenu
…
- after finding the line, please replace it with the following line
#hiddenmenu
- finally, please save the edited file
If you would like to change the timeout seconds for GRUB menu on boot-up, then please run following command:
su -c ‘cp /boot/grub/menu.lst /boot/grub/menu.lst_backup’
su -c ‘gedit /boot/grub/menu.lst’
- now, please find this line
…
timeout 3
…
- after finding the line, please replace with the following line
timeout X_seconds
- finally, save the edited file
If you are interested in changing the default Operating System boot-up for GRUB menu, then please run following command:
su -c ‘cp /boot/grub/menu.lst /boot/grub/menu.lst_backup’
su -c ‘gedit /boot/grub/menu.lst’
- now, please find this line
…
default 0
…
- after finding the line, please replace it with the following line
default X_sequence
- finally, save the edited file
If you would like to display Splash Image for GRUB menu on boot-up, then please run following command:
If you would like to di
wget -c http://easylinux.info/uploads/fedora.xpm.gz
su -c ‘chmod 644 fedora.xpm.gz’
su -c ‘mkdir /boot/grub/images’
su -c ‘cp fedora.xpm.gz /boot/grub/images/’
su -c ‘cp /boot/grub/menu.lst /boot/grub/menu.lst_backup’
su -c ‘gedit /boot/grub/menu.lst’
(Please note that we have assumed that hd2,1 is the location of Fedora boot partition)
- now, please find this section
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
…
- after finding the section, please add the following line below it
splashimage (hd2,1)/boot/grub/images/fedora.xpm.gz
- finally, save the edited file
If you would like to convert Wallpaper to Splash Image for GRUB menu, then please run following command:
convert -resize 640×480 -colors 14 wallpaper.png splashimage.xpm && gzip splashimage.xpm
(please note that we have assumed that wallpaper.png is the Wallpaper to be converted to Splash Image
splashimage.xpm.gz is the Splash Image for GRUB menu)
If you would like to clean /tmp/ folder contents on shutdown, then please run following command:
su -c ‘cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup’
su -c ‘gedit /etc/init.d/sysklogd’
- now, please find this section
…
stop)
log_begin_msg “Stopping system log daemon…”
start-stop-daemon –stop –quiet –oknodo –exec $binpath –pidfile $pidfile
log_end_msg $?
…
-after finding the section, now please add the following line below it
rm -fr /tmp/* /tmp/.??*
-finally, save the edited file
If you would like to scroll up to view previous outputs in Console mode, please press ‘Shift + Page Up’
If you would like to scroll down to view previously outputs, then please press ‘Shift + Page Down’
If you would like to open Terminal Here in Nautilus, then please run following command:
gedit ~/.gnome2/nautilus-scripts/”Open Terminal Here”
- please add the following text
#!/usr/bin/perl -w
use strict;
$_ = $ENV{’NAUTILUS_SCRIPT_CURRENT_URI’};
if ($_ and m#^file:///#) {
s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
s#^file://##;
exec “gnome-terminal –working-directory=’$_’”;
}
# Added 2003-12-08 Dexter Ang
if ($_ == “x-nautilus-desktop:///”) {
$_ = $ENV{’HOME’};
$_ = $_.’/Desktop’;
exec “gnome-terminal –working-directory=’$_’”;
}
- finally, save and close Gedit
- you can now right click the desktop and choose Scripts then “Open Terminal Here”
If you would like to open Root Terminal Here in Naultilus, then please run following command:
gedit ~/.gnome2/nautilus-scripts/”Open Root Terminal Here”
- now, please add the following
#!/bin/sh
cd $NAUTILUS_SCRIPT_CURRENT_URI
sudo gnome-terminal
- finally, save and close Gedit
- you can now right click the desktop choose Scripts then “Open Terminal Here”
If you followed the instructions and guidance as provided in this tutorial guide, then you would have successfully installed extras.













