Archive for September, 2009

Upgrading Fedora - adding extras (part b)

Posted in How To's by Shafkat Shahzad, M.Sc on September 29th, 2009

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.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - adding extras (part a)

Posted in How To's by Shafkat Shahzad, M.Sc on September 29th, 2009

Welcome to them tutorial guide. The guide will provide a user with instructions and guidance on adding extras.
If you would like to add extra wallpapers, icons and themes, the please follow the steps as below:

- adding extra backgrounds
- If you would like to add extra backgrounds, then please run following command:

wget -c http://easylinux.info/uploads/backgrounds.tar.gz
su -c ‘tar zxvf backgrounds.tar.gz -C /usr/share’
rm -f backgrounds.tar.gz

- In order to check weather you have file backgrounds.xml in your .gnome/ directory, then please run following command:

ls $HOME/.gnome2/ | grep “backgrounds.xml”

If the command prints out the “backgrounds.xml” then please run following command:
cp –preserve=ownership $USER_HOME/.gnome2/backgrounds.xml $USER_HOME/.gnome2/backgrounds.xml_backup
sed -n -e ‘1,3p’ $USER_HOME/.gnome2/backgrounds.xml_backup > $USER_HOME/.gnome2/backgrounds.xml
cat /usr/share/backgrounds/frog.xml >> $USER_HOME/.gnome2/backgrounds.xml
sed -n -e ‘4,$p’ $USER_HOME/.gnome2/backgrounds.xml_backup >> $USER_HOME/.gnome2/backgrounds.xml
· ELSE run
su -c ‘cp /usr/share/backgrounds/backgrounds.xml $USER_HOME/.gnome2/backgrounds.xml’
su -c ‘chmod 777 $USER_HOME/.gnome2/backgrounds.xml’

- Adding extra icons and themes
If you would like to add extra Icons and themes, the please run following command:
wget -c http://easylinux.info/uploads/icons.tar.gz
tar zxvf icons.tar.gz -C $USER_HOME
rm -f icons.tar.gz
wget -c http://easylinux.info/uploads/themes.tar.gz
tar zxvf themes.tar.gz -C $USER_HOME
rm -f themes.tar.gz

- changing background
If you would like to change the background, then please change the background by going to:
- Applications
- Preferences
- Themes

If you would like to add extra Themes then please run following command:

su -c ‘yum install gnome-themes-extras’

-If you would like to change the theme then please go to
- System
- Preferences
- Look and Feel
- Appearance you will then be able to change the theme.

If you would like to add the open terminal then please run following command:
su -c ‘yum install nautilus-open-termina·

- after running the command, please
- right click the Desktop
- open Terminal
If you would like to get a shortcut to Root Terminal, then please run following command:

su -c ‘yum –enablerepo=dries install gksu’

after running the command, please go to:

-Applications
- System Tools
- Root Terminal

If you would like to enable the switch user button on GNOME screensaver, then please run following command:

gconftool-2 –type bool –set /apps/gnome-screensaver/user_switch_enabled true

If you would like to enable the switch user button on GNOME screensaver for every user, then plvase run following command:

gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.defaults –type bool –set /apps/gnome-screensaver/user_switch_enabled true
If you would like to restart GNOME without rebooting computer
then either press ‘Ctrl + Alt + Backspace’
or run following command:

su -c ‘/usr/sbin/gdm-restart’

If you would liketo turn on Num Lock on GNOME startup, then please run following command:

su -c ‘yum install numlockx
su -c ‘cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup’
su -c ‘gedit /etc/X11/gdm/Init/Default’

- now, please find following line

exit 0

- after finding the line, please add the following lines above it
if [ -x /usr/bin/anumlockx ]; then
/usr/bin/numlockx on
fi

- finally, save the edited file

If you would like to switch to Console mode in GNOME
then please press ‘Ctrl + Alt + F1′ (F2 - F6)

If you would like to switch between consles in Console mode, then please press ‘Alt + F1′ (F2 - F6)

If you would like to switch back to GNOME mode, then please press ‘Alt + F7′

If you would like to disable Ctrl+Alt+Backspace from restarting X in GNOME, then please run following command:

su -c ‘cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup’
su -c ‘gedit /etc/X11/xorg.conf’

- after running the command, please append the following lines at the end of file
Section “ServerFlags”
Option “DontZap” “yes”
EndSection

- now, please save the edited file

If you would like to enable Ctrl+Alt+Del to open System Monitor in GNOME, then please run following command:

gconftool-2 -t str –set /apps/metacity/global_keybindings/run_command_9 “Delete”
gconftool-2 -t str –set /apps/metacity/keybinding_commands/command_9 “gnome-system-monitor”

If you would like to refresh GNOME desktop, then please run following command:
killall nautilus

If you would like to refresh GNOME panel, then please run following command:
killall gnome-panel

If you would like to bypass Keyring’s Password, then first of all, please install Pam keyring by running following command:
su -c ‘yum install pam_keyring’

- now, please create the script which will automatically pass the password to keyring
gedit ~/.key.sh

- now, please add the next section and change the word password to your password
#! /bin/bash
echo password | /usr/libexec/pam-keyring-tool –unlock –keyring=default -s

- please ensure it is executible
chmod +x ~/.key.sh

- now, please add the script to the startup sequence so that the script is run on boot.

- now, please go through the menu listed below by going to:
- System
- Preferences
- Personal
- Sessions
- please click on the startup tab
- now, click the add button and then please enter the following details

Name: Keyring Script
Command:~/.key.sh
Comment: My automatic unlock script

- If you would like to enable it straight away, then run the following command
~/.key.sh

If you would like to learn to open each folder in the same window in Nautilus, then please go to:

- Applications
- System Tools
- Configuration Editor
Configuration Editor
/ -> apps -> nautilus -> preferences -> always_use_browser (Checked)

If you would like to enable autosave in Gedit and disable creation of some_file~ files, then please go to:
- Applications
- System Tools
- Configuration Editor
Configuration Editor
/ -> apps -> gedit-2 -> preferences -> editor -> save -> create_backup_copy (Unchecked)
/ -> apps -> gedit-2 -> preferences -> editor -> save -> auto_save (Checked)

If you would like to show all hidden files/folders in Nautilus, then please go to:

- Places
- Home Folder

If you would like to temporary show all hidden files/folders in Nautilus, then please press ‘Ctrl + H’

If you would like to permanently show all hidden files/folders in Nautilus, then please go to:
- Edit Menu
- Preferences
- Views Tab
- Default View
- Show hidden and backup files (Checked)

If you would like to browse files/folders as root user in Nautilus, then please run following command:
su -c ‘yum install gksu’

If you would like to install File Browser (Root), then please run following command:
su -c ‘gedit /usr/share/applications/Nautilus-root.desktop’

- now, please insert the following lines into the new file
[Desktop Entry]
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksu “nautilus –browser .”
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;

- now, please save the edited file

f you would like too browse files/folders as root user in Nautilus, then please go to:
- Applications
- System Tools
- File Browser (Root)

If you would like to show Desktop Icons such as Home, Recycle bin, Computer, etc. then please go to:

- Applications
- System Tools
- Configuration Editor
Configuration Editor
/ -> apps -> nautilus -> desktop ->
computer_icon_visible (Checked)
home_icon_visible (Checked)
trash_icon_visible (Checked)

If you followed the instructions and guidance as provided in this tutorial guide, then you would have successfully installed extras.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - Rescue Mode

Posted in How To's by Shafkat Shahzad, M.Sc on September 19th, 2009

Welcome to the tutorial guide. The tutorial will provide you with guidance and instructions on rescue mode.

If you would like to know how to use Fedora Installation CD, to gain root user access then please:
-insert Fedora CD #1 into the CD-ROM and boot from it
linux rescue

If you would like to change root user or main user password if forgotten then please run following command:
# passwd root
-now, to change main user password, please type following command:
# passwd system_main_username

If you would like to change GRUB menu password if forgotten then please run following command:
grub
grub> md5crypt
Password: ****** (Fedora)
Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
grub> quit
su -c ‘cp /boot/grub/menu.lst /boot/grub/menu.lst_backup’
su -c ‘gedit /boot/grub/menu.lst’
-now, please find this line
..
password –md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/

-replace it with the following line
password –md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
-finally save the edited file

If you would like to restore GRUB menu after Windows installation, then please run following command:
# su -c /sbin/grub-install /dev/hda’

(we assumed that /dev/hda is the location of /boot partition

If you are interested in adding Windows entry into 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’
(we assumed that /dev/hda1 is the location of Windows partition

-now, please append the following lines at the end of file
title Microsoft Windows
root (hd0,0)
savedefault
makeactive
chainloader +1
-finally save the edited file

I hope that you found this guide helpful.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - Remote Desktop Configuration (part b)

Posted in How To's by Shafkat Shahzad, M.Sc on September 19th, 2009

Welcome to the tutorial guide. The guide will provide a user with instructions and information on how to configure a remote desktop.
Disable history listing in Console mode
If you would like to disable history listing in Console mode, then please run following command:
rm -f $HOME/.bash_history
touch $HOME/.bash_history
chmod 000 $HOME/.bash_history
If you would like to disable Ctrl+Alt+Del from restarting computer in Console mode, then please run following command:
su -c ‘cp /etc/inittab /etc/inittab_backup’
su -c ‘gedit /etc/inittab’

-now, please find following line

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

-After finding the line, please replace with the following line
#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

-Now, please save the edited line

su -c ‘telinit q’
If you would like to enable prompt before removal/overwritten of files/folders in Console mode, then please run following command:
gedit /someuser/.bashrc
-now, please find this line
#User specific aliases and functions
-After finding the line, please add the following line below it
alias rm=’rm -i’
alias cp=’cp -i’
alias mv=’mv -i’
-now, please save the edited file

If you have following the steps as provided in this tutorial guide, then you will have successfully configured the remote desktop.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - Remote Desktop Configuration (part a)

Posted in How To's by Shafkat Shahzad, M.Sc on September 13th, 2009

Welcome to the tutorial guide. The guide will provide a user with instructions and information on how to configure a remote desktop. If you would like to configure the remote desktop, then simply go to:
-Desktop
- Preferences
- Remote Desktop
-Remote Desktop Preferences
Sharing ->
Allow other users to view your desktop (Checked)
Allow other users to control your desktop (Checked)
Security ->
Ask you for confirmation (Un-Checked)
Require the user to enter this password: (Checked)
Password: Specify the password

(Please note that Remote Desktop only works when there is a GNOME login session)

Connecting into remote Fedora desktop
If you would like to know how to connect into remote Fedora desktop, then simply follow the steps as below.
Please note that following assumption is made
Remote Fedora machine: 192.166.0.2
vncviewer -fullscreen 192.166.0.2:0
-If you want to quit vncviewer, then simply press ‘F8′ and then Quit viewer

Remote conection Script by fedorajim
-please open a teminal window and switch to root by running following command:
su -c ‘gedit /usr/local/bin/remote2someone’
-now, please add the following text to the text editor
#!/bin/bash
# Written by fedorajim
# enter the IP address ofthe remote PC
IPADDRESS=”$(zenity –entry –title “Enter IP Address” –text “Enter the IP Address of the remore PC:”)”
echo $IPADDRESS
#Enter the username you aregoing to login with
UserName=”$(zenity –entry –title “Enter User Name” –text “Enter the User Name to connect with:”)”
echo $UserName
# opens a new terminal window and connects to remote PC
function ssh_Remote_PC
{
gnome-terminal -x ssh -L 5911:$IPADDRESS:5901 $UserName@$IPADDRESS
}
function View_Remote_PC
{
gnome-terminal -x vncviewer localhost:11
}
#################################################
selection=
until [ “$selection” = “0″ ]; do
echo “”
echo “######################”
echo “1 - Make Remote Connection”
echo “2 - display Remote Desktop”
echo “0 - exit program”
echo “”
echo -n “Enter selection: “
read selection
echo “”
#####################
# Commands executed #
#####################
case $selection in
1 ) $(ssh_Remote_PC) ;;
2 ) $(View_Remote_PC) ;;
0 ) exit ;;
* ) echo “Please enter 1, 2 or 0″
esac
done
-please do not forget to save by clicking on save
-after saving, you can close the text editor
-now, you need to right click the desktop and choose create launcher by adding the following to the Create Launcher dialog
• Name: remote2someone
• Comment: ssh remote connection
• Command: /usr/local/bin/remote2someone
• Type: application
• Run in Terminal: Checked
• Icon: click the Icon button and choose a icon

-in the end, please click save.

Backing up the files
Please ensure that you backup the files. This can be done by running following command:
grub
grub> md5crypt
Password: ****** (Fedora)
Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
grub> quit
su -c ‘cp /boot/grub/menu.lst /boot/grub/menu.lst_backup’
su -c ‘gedit /boot/grub/menu.lst’
-now, please search for this section

## password [’–md5′] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command ‘lock’
# e.g. password topsecret
# password –md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

-after finding the mentioned section, please add the following line below it
password –md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
-now, find the section as mentioned below:

title Fedora, kernel 2.6.10-5-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot

-please replace the section with the following lines
#title Fedora, kernel 2.6.10-5-386 (recovery mode)
#root (hd0,1)
#kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single
#initrd /boot/initrd.img-2.6.10-5-386
#savedefault
#boot
-now, please do not forget to save the edited file

If you followed the steps and guidance as provided in this tutorial guide, then you would have configured the Remote Desktop.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - installation and configuration of Networking

Posted in How To's by Shafkat Shahzad, M.Sc on September 13th, 2009

Welcome to the tutorial guide. The guide will provide you with instructions and information on how to install and configure networking by using yum.

Configuring PPTP
If you would like to install PPTP, which is a VPN Client, then please follow the steps as mentioned
-Please run the following command:
su -c ‘yum install pptp’

Configure PPTP
Now, please launch it beneath Internet, then input the following fields as described:
Server Tab:
• Name - short description of this connection
• Server - dns server name or ip address of the target PPTP server
• Domain - domain name if using Windows or Active Directory authentication
• Username - simply your username to login with
• Password - the password to use with the username above
Routing Tab: For Routing Style select ‘Client to LAN’. Then click Edit Network Routes then add the target network in the following format “192.168.0.0/24′ for all IP Addresses in the block 192.168.0.*. Next type a short name for this network route and click Add.

DNS Tab: Checking Automatic is recommended, if this doesn’t work however you can specify DNS Servers in the Server box. Also input something like “search mycompany.com” in the Options field which will make host name resolution simpler.
Encryption & Misc Tab: Defaults here should be good, but if you are troubleshooting you can uncheck everything.
In the end, please
-click Add
-and then Start

Google Talk configuration
If you would like to configure Google Talk, then please follow the steps as mentioned below:
-first of all, you need to open Pidgin.
-now, from the Accounts menu, you need to select Add/Edit
- now, please click Add button from the Accounts menu.
- after clicking add button, please enter the following information in the Add Account window:
• Protocol: XMPP
• Screen Name: your Google Talk username (without any @ symbol or domain).
• Server: Please enter a server value depending on the type of account:
- Gmail users should enter gmail.com
- Google Mail users should enter googlemail.com
• Password: If you want high security then please leave this blank otherwise you would like to sign in automatically, enter your password
• Local Alias: please leave this field blank
• Remember password: please check this box only if you’d like Pidgin to remember your password
• New mail notifications: you can check this box if you would like Pidgin to notify you of unread email in your inbox.
-in the end, if you are happy with it, please click Save.

Activating and Deactivating the network connections
If you would like to activate or deactivate the network connections, then please go to:
-Desktop
- System Settings
- Network
- then you can go to Devices Tab
-here you can choose Activate or Deactivate

Network configuration
If you would like to configure network connections, then please go to:
-Desktop
- System Settings
- Network
- Network Configuration
- now, you can click on Edit

Changing a computer’s name
If you would like to change the computers name then please run following command:
hostname your_desired_computer_name

How to change computer descriptions
If you would like to change the computer description, then please run following command:
su -c ‘cp /etc/samba/smb.conf /etc/samba/smb.conf_backup’
su -c ‘gedit /etc/samba/smb.conf’
-now, please search for thisline

server string = Samba Server

-after finding this line, please replace it with the following line
server string = new_computer_descriptions
-now, please save the edited file, then check for errors and restart
testparm
su -c ‘/etc/init.d/smb restart’
or
testparm
su -c ’service smb restart’

Changing a computer’s Domain or Workgroup
If you want to change a computer’s Domain/Workgroup, then simply run the following command:
su -c ‘cp /etc/samba/smb.conf /etc/samba/smb.conf_backup’
su -c ‘gedit /etc/samba/smb.conf’
-now, please search for this line

workgroup = MSHOME

-after finding the mentioned line, please replace it with the following line
workgroup = new_domain_or_workgroup
-now, please save the edited file and restart by running following command:
testparm
su -c ‘/etc/init.d/smb restart’

Assigning a Hostname to local machine with dynamic IP using free DynDNS service
If you are interested in assigning a hostname to a local machine with dynamic IP using free DynDNS service, then simply follow the steps as below:

-First of all, you need to register free Dynamic DNS and then automatically refresh IP in DynDNS Database/DNS every hour. We assume that the internet connections have been configured properly

-now, please run following command:

su -c ‘yum install ipcheck’
su -c ‘gedit /root/dyndns_update.sh’
-after running the command, you need to insert the following lines into the new file
USERNAME=myusername
PASSWORD=mypassword
HOSTNAME=myhostname.dyndns.org
cd ~/
if [ -f /root/ipcheck.dat ]; then
ipcheck -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME
else
ipcheck –makedat -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME
fi
-now, please save the edited file by running following command
su -c ‘chmod 700 ~/dyndns_update.sh’
su -c ’sh ~//dyndns_update.sh’
su -c ‘export EDITOR=gedit && crontab -e’
-after saving the edited, line, please append the following line at the end of file
00 * * * sh /home/YourUsername/dyndns_update.sh
-in the end, please save the edited file
Sharing folders
If you would like to share the folders, then simply:
- Right clrck on folder
- Share folder
- Shared folder - Share with: Select “SMB”
- Share properties
- Name: Specify the share name
Browswing network computers
If you are interested in browsing network computers, then simply go to:
-Places
- Network Servers

Accessing network folders without mounting
If you would like to access network folders without mounting, then simply go to:
-Applications
-Run Application
smb://192.166.0.2/linux

here we assumed that the network computer’s IP address is: 192.166.0.2

Mounting and unmounting network folders manually
If you would like to mount or unmount network folders manually and do not let users to read, then simply follow the steps as below:
The assumptions that we made over here are as following:
Network computer’s IP: 192.166.0.2
Network computer’s Username: shafkatshahzad
Network computer’s Password: mypassword
Shared folder’s name: linux
Local mount folder: /media/sharename
In order to mount a network folder, please run following command:
su -c ‘mkdir /media/sharename’
su -c ‘mount //192.166.0.2/linux /media/sharename/ -o username=shafkatshahzad,password=mypassword’

If you want to unmount network folder
su -c ‘umount /media/sharename/’

Mounting or Unmounting network folders manually
If you would like to know how to mount or unmount the network folders manually and allow users to read and write, then simply follow the steps as below:
Please note that following assumptions are made:
Network computer’s IP: 192.166.0.2
Network computer’s Username: shafkatshahzad
Network computer’s Password: mypassword
Shared folder’s name: linux
Local mount folder: /media/sharename
- To mount network folder, please run following command:
su -c ‘mkdir /media/sharename’
su -c ‘mount //192.166.0.2/linux /media/sharename/ -o username=shafkatshahzad,password=mypassword,dmask=777,fmask=777′
- To unmount network folder, please run following command:
su -c ‘umount /media/sharename/’

Mounting network folders on boot-up
If you would like to mount network folders on boot-up and let all users to read, then please follow the steps as mentioned below:
Please note that following assumptions are being made:

Network computer’s IP: 192.166.0.2
Network computer’s Username: shafkatshahzad
Network computer’s Password: mypassword
Shared folder’s name: linux
Local mount folder: /media/sharename

-Please run following command as below:

su -c ‘mkdir /media/sharename’
su -c ‘gedit ~/.smbcredentials’
-now, please insert the following lines into the new file
username=shafkatshahzad
password=mypassword
-now, you can save the edited file by running following command:
chmod 700 ~/.smbcredentials
su -c ‘cp /etc/fstab /etc/fstab_backup’
su -c ‘gedit /etc/fstab’
-you can also append the following line at the end of file
//192.166.0.2/linux /media/sharename cifs credentials=/home/yourusername/.smbcredentials 0 0
-finally, please do not forget to save the edited file

Mounting the network folders on boot-up
If you want to mount the network folders on boot-up and also want the users to read and write then simply follow the steps as mentioned below.
Please note that following assumptions are made:
Network computer’s IP: 192.166.0.2
Network computer’s Username: shafkatshahzad
Network computer’s Password: mypassword
Shared folder’s name: linux
Local mount folder: /media/sharename
su -c ‘mkdir /media/sharename’
su -c ‘gedit ~/.smbcredentials’

-please insert the following lines into the new file
username=shafkatshahzad
password=mypassword
-now, save the edited file
chmod 700 ~/.smbcredentials
su -c ‘cp /etc/fstab /etc/fstab_backup’
su -c ‘gedit /etc/fstab’
-now, please append the following line at the end of file
//192.166.0.2/linux /media/sharename cifs credentials=/home/your_username/.smbcredentials,dmask=0777,fmask=0777 0 0
-now, please save the edited file

If you followed the steps and guidance as provided in this tutorial then you would have successfully installed and configured the Networking.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - installing KDE and Desktop Applications

Posted in How To's by Shafkat Shahzad, M.Sc on September 13th, 2009

Welcome to the tutorial guide. The guide will provide a user with instructions and guidance on how to install KDE and Desktop Applications.

Installing KDE Edutainment applications
If you are interested installing KDE Edutainment applications, then simply run following command:
su -c ‘yum install kdeedu’
now, please go to:
-Applications
- Edutainment

Installing other Desktop Environments
Here we will look at different Desktop applications that can be installed.
How to install XFCE
If you would like to install XFCE, then please run following command:
su -c ‘yum groupinstall xfce
-now, please log out
-in sessions choose xfce
- then log in

I hope that you found this tutorial guide useful.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - installing applications (part c)

Posted in How To's by Shafkat Shahzad, M.Sc on September 13th, 2009

Welcome to the tutorial guide. The guide will provide a user with instructions and information on how to install skype, download manager, FTP Client and other applications.

Installing Skype

First of all, you need to add the following repository to your Fedora install. This can be done by running following command:
su -
cat < /etc/yum.repos.d/skype.repo
[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
gpgkey=http://gd.tuwien.ac.at/infosys/phone/skype/rpm-public-key.asc
EOF
Now, you can install skype by running following command:
su -c ‘yum -y install skype’

Installing Downloader for X
- If you would like to install Downloader for X which is a download manager then please run following command:
su -c ‘yum -y install d4x’

now, please go to:
- Applications
- Internet
- Downloader for X

Installing gFTP
- If you would like to install gFTP, which is an FTP Client, then please run following command:
su -c ‘yum -y install gftp’

now, please go to
-Applications
- Internet
- gFTP

Installing aMule
-In order to install aMule which is a P2P eMule Client, please run following command:
su -c ‘yum -y install amule’
now, please go to:
-Applications
- Internet
-aMule

Installing Gwenview
If you would like to install Gwenview which is an Image Viewer, then please run following command:

su -c ‘yum -y install gwenview’
now, please go to:
-Applications
- Graphics
- Gwenview

Installing RSSOwl
If you would like to install RSSOwl, which is a RSS/RDF/Atom Newsreader, then first thing that you need to do download the version for x86
su -c ‘tar zxvf rssowl_1_2_3_linux_bin.tar.gz -C /opt/’
su -c ‘chown -R root:root /opt/rssowl_1_2_3_linux_bin/’
su -c ‘gedit /usr/bin/runRSSOwl.sh’

-now, please insert the following lines
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${MOZILLA_FIVE_HOME}:${LD_LIBRARY_PATH}
cd /opt/rssowl_1_2_3_linux_bin/
./run.sh
-now, please save the edited file
su -c ‘chmod +x /usr/bin/runRSSOwl.sh’
su -c ‘gedit /usr/share/applications/RSSOwl.desktop’
-now you can create a desktop file
[Desktop Entry]
Name=RSSOwl
Comment=RSSOwl
Exec=runRSSOwl.sh
Icon=/opt/rssowl_1_2_3_linux_bin/rssowl.xpm
Terminal=false
Type=Application
Categories=Application;Network;
-now, please save the edited filed
- now, please go to:
-Applications
- Internet
- RSSOwl

Installing Mozilla Thunderbird
If you would like to install Mozilla Thunderbird which is an Email Client, then please run following command:
su -c ‘yum -y install thunderbird’
now, please go to:
-Applications
- Internet
- Thunderbird Mail Client

Installing Pan
If you would like to install a Pan, which is a Newsreader then please run following command:
su -c ‘yum -y install pan’
now, please go to
-Applications
- Internet
- Pan Newsreader

Installing GnoCHM
If you would lie to install a GnoCHM, which is a CHM viewer then please run following command:
su -c ‘yum -y install gnochm’
now, please go to:
-Applications
-Accessories
- CHM Viewer

Installing bluefish
If you would like to install a blufish which is a Web Authoring System, then please run following command:
su -c ‘yum -y install bluefish’
now, please go to:
-Applications
-Programming
- Bluefish Editor

Installing quanta plus
If you would like to install quanta plus which is a KDE Web Development Environment, then please run following command:
su -c ‘yum -y install kdewebdev’
now, please go to:
-Applications
- Programming
- Quanta Plus

Installing GnuCash
If you would like to install GnuCash, which is an Accounting Application then please run following command:
su -c ‘yum -y install gnucash’
now, please go to:
-Applications
-Office
-GnuCash

Intalling GParted
If you would like to install Gparted, which is a Partition Editor then please run following command:
su -c ‘yum install gparted’
now, please go to:
-Applications
- System Tools
- GParted

Installing Firestarter Firewall
If you would like to install a firestarter firewall, then please run following command:
su -c ‘yum install firestarter’
now, please go to:
-Applications
- System Tools
- Firestarter

Installing Fedora Firewall
If you would like to install a Fedora firewall, then please run following command:
su -c ‘yum install system-config-firewall’
now, please go to:
-System
- Administration
- Firewall

Configuring Fedora SELinux
If you would like to configure Fedora SELinux, then please run following command:
su -c ‘yum install system-config-selinux’
-now, please go to:
-Applications
-System Tools
- SELinux Management

Installing Wireshark
If you would like to install the Wire shark which is a network traffic analyser, then please run following command:
su -c ‘yum install wireshark wireshark-gnome’
now, please go to:
-Applications
-Internet
- Wiresark

Installing Scribus

If you are interested in installing Scribus which is a desktop publishing application, then please run following command:
su -c ‘yum install scribus’
now, please go to:
-Applications
- Office
- Scribus

Installing gDesklets
If you would like to install gDesklets which is a Desktop Applets then please run following command:
su -c ‘yum install gdesklets’
now, please go to:
-Applications
- Accessories
- gDesklets

Installing gcc
If you are interested in installing gcc which are basic compilers, then please run following command:
su -c ‘yum install gcc gcc-c++’

Setting up a Development Environment
In order to set up a development environment you need to add development repo. This can be done by running following command:
su -c ‘gedit /etc/yum.repos.d/fedora-devel.repo’
now, you can add the following lines to the new file
[development]
name=Fedora - Development
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
enabled=1
gpgcheck=0
please save the edited file and run following command:
su -c ‘yum groupinstall “Development Tools”‘

Installing Anjuta
If you are interested in installing Anjuta which is an integrated development then please run following command:
su -c ‘yum install anjuta
now, please go to:
-Applications
- Programming
- Anjuta IDE

Installing Blender
In order to install a Blender which is a 3D modeling tool, please run following command:
su -c ‘yum install blender’
-now, please go to:
-Applications
- Graphics
- Blender 3D modeller

Installing Frozen Bubble
If you would like to install a Frozen bubble which is a game, then please run following command:
su -c ‘yum install frozen-bubble
now, please go to:
-Applications
- Games
-Frozen-Bubble

Installing Stellariumbr />
In order to install Stellarium which is a virtual planetarium, please run following command:
su -c ‘yum install stellarium’
now, please go to:
-Applications
- Graphics
- Stellarium nightsky renderer

If you followed the steps as mentioned in this tutorial guide, then you would have successfully installed the applications as mentioned in this guide.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - CD & DVD burning

Posted in How To's by Shafkat Shahzad, M.Sc on September 6th, 2009

Welcome to the tutorial guide. The guide will provide a user with instructions and guidance on how to burn a CD and DVDby using GnomeBaker, K3B, etc.

GnomeBaker
A user can burn a CD and DVD by using Gnome Baker which is a burning utility. This can be done by running following command:
su -c ‘yum install gnomebaker’

K3B
K3B is another burning program with similar functionalities to closed source Nero. A user can run following command:
su -c ‘yum install k3b’

If you would like to enable MP3 and other proprietary support in K3B, then please run following command:
su -c ‘yum install k3b-extras-nonfree’

CD/DVD Creator
Places -> CD/DVD Creating
Then when loaded.
File Menu -> Write to Disc

How to Burn an Image (iso) to Disc
If you would like to burn an image to a disc then please
- right click on image (ISO) file
- Write to Disc

How to Create an Image (iso) File
If you would like to create an image by using a folder as the data:
mkisofs -r -o file.iso /location_of_folder/

You can create an iso from a CD/DVD by typing following command:
su -c ‘umount /dev/cdrom’readcd dev=/dev/cdrom f=file.iso

Mounting and unmounting an Image (iso) without burning it
If you would like to mount thv file.iso, then please type in following command:
mkdir ~/your_disc/su -c ‘mount file.iso ~/your_disc -t iso9660 -o loop’

If you would like to access the file.iso then you can go into the directory ~/your_disc

If you would like to unmount your file.iso, then please run the following command:
su -c ‘umount ~/your_disc/’

How to check MD5 checksum of files
If you would like to check MD5 checksum of files then please run following command:
md5sum -c file.iso.md5

(please note that we assumed that file.iso and filv.iso.md5 are in the same folder)

How to set/change the burn speed for CD/DVD Burner
If you would like to know how to set or change the burn speed for CD or DVD burner then please go to:
- Applications
- System Tools
- Configuration Editor - please go to
/ -> apps -> nautilus-cd-burner -> default_speed (set/change the burn speed)

How to enable burnproof for CD/DVD Burner
If you would like to enable burnproof for CD or DVD burner then please go to:
- Applications
- System Tools
- Configuration Editor
/ -> apps -> nautilus-cd-burner -> burnproof (Checked)

How to enable overburn for CD/DVD Burner
If you would like to enable overburn for CD or DVD burner, then please go to:
- Applications
- System Tools
- Configuration Editor
/ -> apps -> nautilus-cd-burner -> overburn (Checked)

If you followed all the instructions and guidance as mentioned then you will have successfully burnt the CDs and DVDs

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - plugins (part b)

Posted in How To's by Shafkat Shahzad, M.Sc on September 4th, 2009

Welcome to the tutorial guide. The guide will provide instructions and advise to the user about how to install browser plugins for firefox which is the default browser in Fedora 7.

Mplayer (Watching Movies)
If you are interested in watching movies like avi’s in your browser, then you need Livna Repository enabled. You also need to run the following command:
su -c ‘yum install mplayerplug-in’

Xine (Watching Movies)
If you want to watch movies like avi’s in your browser, then you need to have the Livna Repository enabled. You also need to run the following command:
su -c ‘yum install totem-xine-mozplugin’

Playing the mms protocol
If you would like to play the mms protocol, then please go through following steps as mentioned below:

- please open the firefox.
- now type as url: about:config
- now please right click somewhere into the main window. A little box with options to choose will appear. Choose “new”, then “string”.
- copy the following line into the appearing text field:
network.protocol-handler.app.mms
- Into the next text field copy this:
/usr/bin/mplayer
- now you do the same thing again, but this time you do not choose “string” but “boolean”, and the line to copy is:
network.protocol-handler.external.mms
- then set true

If you followed instructions as provided in this tutorial guide then you would have successfully installed the plugins.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

« Previous entries