CEG's Linux User Group

  • Increase font size
  • Default font size
  • Decrease font size
Home Tutorials
Tutorials
This section contains tutorials about various open source apps!


Installing graphics libraries in ubuntu

E-mail Print

Running graphics programs in turboc in windows is no big deal. But in Ubuntu, gcc does not come pre-installed with the graphic libraries. You can install the necessary packages however, and do your graphics programs in ubuntu as well. Just follow these steps:

1. Open Terminal and type sudo apt-get install build-essential to install all necessary compiler tools.

Last Updated on Thursday, 11 March 2010 23:39 Read more...
 

A Script to mount partitions automatically during login

E-mail Print

echo "Author:      Prasanna Kumar.T.S.M"

echo "License:     GNU GPL v2 or higher"

echo "TODO:    Check whether gnome-mount is installed or not and print a message when it is not installed"

vols=$(cat /proc/partitions | grep sda[1-9] | tr -s ' ' | cut -d ' ' -f5)

echo "Found:    "$vols
echo ""

for i in $vols
do
mount | grep $i
if [ $? -eq 0 ]
then
echo "Not mounting:    "$i"(as "$i" is already mounted on "`mount | grep $i | tr -s ' ' | cut -d ' ' -f3`")"
else
gnome-mount --device /dev/$i
fi
done

echo ""

exit 0

Last Updated on Thursday, 11 March 2010 23:26