Skip to content

Upgrade to Fedora 17 from 16.

As usual time in couple of days to upgrade to Fedora 17. Release schedule is for 05/22 and so its just around the corner. So, if you are looking at upgrading using yum, then make sure that you visit this page.

There are some changes in latest version that will not allow you to upgrade without executing few commands manually and that page lists them. And if you are too brave and just want the steps and the command then here it is:

# sudo yum update dracut
# dracut --force --add convertfs
Change the following kernel commandline parameter directly in the bootloader menu, which is sh:own during bootup, or edit the line in /etc/grub*.cfg to remove ro and rhgb and append rw rd.in:fo rd.convertfs enforcing=0
# revert after reboot.
# dmesg | grep dracut
# yum --releasever=17 update rpm
# rm -f /var/lib/rpm/__*
# rpm --rebuilddb
# yum --releasever=17 --disableplugin=presto --skip-broken distro-sync
# fixfiles onboot
Enhanced by Zemanta
Sphere: Related Content

Technorati Tags: Booting, Distributions, Fedora, Linux, Operating Systems, rpm, upgrade, Yellowdog Updater Modified

Array of all possible colors in bash script

Sometime back, we had looked at using colors in bash script and here is a way to create a array of all the colors.

#!/bin/bash -
#===============================================================================
#
#          FILE:  colorarray.sh
#
#         USAGE:  ./colorarray.sh
#
#   DESCRIPTION:
#
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: Amit Agarwal (aka), amit.agarwal@roamware.com
#       COMPANY: Roamware India Pvt Ltd
#       CREATED: 16/04/12 17:24:09 IST
# Last modified: Mon Apr 16, 2012  05:39PM
#      REVISION:  ---
#===============================================================================
count=0
for i in 40m 41m 42m 43m 44m 45m 46m 47m
do
    for l in 0 1
    do
        echo -n "l=$l "
        for k in 0 1
        do
            # echo -n "k=$k "
            for j in {30..37}
            do
                carr[$count]="\033[$k;$j;$l;$i"
                echo -ne "${carr[$count]}$count \033[00m"
                ((count++))
            done
        done
        echo
    done
    echo
done

You can add this script to any script of your choice and you have all the 256 colors available to you in the script without additional coding. Happy coding.

Enhanced by Zemanta
Sphere: Related Content

Technorati Tags: amit agarwal, bash, Indian Standard Time, Operating system, Relational operator, Screenwriting, shell, Unix

Display X applications from virtual terminals

GNOME Session plugin

GNOME Session plugin (Photo credit: David Siegel)

Here is a script that can help you set the proper envirionment to start a gnome-shell from one of the terminals.

#!/bin/bash - 
#===============================================================================
#
# FILE: xenv.sh
# 
# USAGE: ./xenv.sh 
# 
# DESCRIPTION: http://live.gnome.org/GnomeShell/Debugging
#
# 
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Amit Agarwal (aka), amit.agarwal@roamware.com
# CREATED: 09/14/2011 04:45:31 PM IST
# Last modified: Wed Sep 14, 2011 04:45PM
# REVISION: ---
#===============================================================================

gnome_session=$(pgrep -u $USER gnome-session)
eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep DISPLAY)
eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep XAUTHORITY)
eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep DBUS_SESSION_BUS_ADDRESS)

So, once you have done that you have the correct environment to use the X display and thus you can start the gnome-shell as well or do any other fancy thing that you want :)

Enhanced by Zemanta
Sphere: Related Content

Technorati Tags: amit agarwal, David Siegel, Desktop environment, Gnome, gnomeshell, List of Ubuntu releases, Operating system, Pgrep, ubuntu