Back Up Your Files With Pybackpack On Fedora 8

November 30th, 2007


View original post


Back Up Your Files With Pybackpack On Fedora 8

This document describes how to set up, configure and use Pybackpack
on Fedora 8. The result is an easy to use backup system for desktop
usage. Pybackpack creates incremental backups which can be stored
locally or remotely (SSH) - the usage of removable devices is
supported. You have also the option to burn the backup(s) directly on a
CD/DVD.

Read more…

View source post

Installing FOG Computer Imaging Solution On Fedora 8

November 29th, 2007


View original post


Installing FOG Computer Imaging Solution On Fedora 8

This tutorial will show how to install FOG, a free computer imaging
solution on Fedora 8. FOG is an open source replacement for products
like Ghost or Zenworks Imaging. FOG can be used to image Windows XP and
Vista machines that have a single partition on them. FOG does not use
boot disks, instead everything is done via PXE and DHCP. The management
of FOG is all done via a web portal. FOG also includes things like
memtest, disk wiping, low-level disk checking and file recovery. FOG
also includes a service that will do things like change the computer’s
hostname after imaging, etc.

Read more…

View source post

ssh on multiple servers Using cluster ssh

November 29th, 2007


View original post


Cluster SSH opens terminal windows with connections to specified hosts and an administration console. Any text typed into the administration console is replicated to all other connected and active windows. This tool is intended for, but not limited to, cluster administration where the same configuration or commands must be run on each node within the cluster. Performing these commands all at once via this tool ensures all nodes are kept in sync.

Introduction

What is ClusterSSH and what is it used for?

Ever had to make the same change on more than one Linux/unix server? Find it annoyingly painful to keep repeating the exact same commands again and again and again?

This tool addresses exactly this problem. You run a utility (cssh) providing a number of server names as parameters, and then xterms opens up to each server with an extra “console” window. Anything typed into the console is replicated into each server window (so, for examples, you can edit the same file on N machines at the same time, or run the same commands with the same parameters across those servers).

It is also possible to type into the server windows directly, or temporarily disable replication to one or more of the servers through the “Hosts” menu.

Difference between ClusterSSH and “cssh”

The utility itself is called “cssh”. The project name is ClusterSSH. The project is not called “cssh” because when the project was first registered on SourceForge a project already existed using that name (”C sharp” unix shell).

Install cluster ssh on debian

#apt-get install clusterssh

Configuration Files

This /etc/clusters file is cluster tag database. Contains a list of tags and hostnames, in the form

<tag> [<username>@]hostname [...]

Newlines and comments (delimited with a #) are ignored.

Cluster definitions can also be added to the $HOME/.csshrc file

This /etc/csshrc file is Global configuration file, sourced by all users. Can be generated by:

cssh -u > /etc/csshrc

$HOME/.csshrc

Per user configuration file. Can be generated by:

cssh -u > /etc/csshrc</tt>

To add a cluster definition to this file, use the following format

cluster_tag1 = server1 server2 user@server3
cluster_tag2 = server4 server5
clusters = cluster_tag1 cluster_tag2

Be aware of using “reserved names” and no check is currently performed for them.

Using Cluster SSH

If you want to perform the same command on the three servers one, two, & three use the following command

# cssh one two three

This will open three consoles, one for each server, over an ssh connection, and one little console to type your command.

Tags: , , , , , , , ,

View source post

Using KVM On Ubuntu 7.10 (Gutsy Gibbon)

November 29th, 2007


View original post


Using KVM On Ubuntu 7.10 (Gutsy Gibbon)

In this HowTo I’ll explain how to install and use KVM for running
your services in virtual machines. KVM (Kernel-based Virtual Machine)
is a Linux kernel virtualization technique that provides full
virtualization by using Intel VT (Vanderpool) or AMD-V (Pacifica).

Read more…

View source post

How to Install and setup Eclipse with Sun’s Java

November 29th, 2007


View original post


Eclipse is an open source community whose projects are focused on building an open development platform comprised of extensible frameworks, tools and runtimes for building, deploying and managing software across the lifecycle. A large and vibrant ecosystem of major technology vendors, innovative start-ups, universities, research institutions and individuals extend, complement and support the Eclipse platform.

Installing Eclipse,Sun Java in Ubuntu

sudo apt-get install eclipse sun-java6-jdk

This will install the required packages, however, Eclipse will run very slowly since it will be using GNU’s java, not Sun’s. We now need to make Sun’s java the default.

sudo update-java-alternatives -s java-6-sun

Next, edit the JVM configuration file

sudo -b gedit /etc/jvm

and add the following to the top of the file

/usr/lib/jvm/java-6-sun

There is a bug right now were Eclipse ignores Ubuntu’s java-common settings and uses its own (bug 45347). To work around the bug, you need to edit Eclipse’s java_home file

sudo -b gedit /etc/eclipse/java_home

and add

/usr/lib/jvm/java-6-sun

to the top of the file.

Lastly, if you have lots of memory you may want to increase the heap size (warning: If you make the heap size too large then parts of eclipse will continuously swap in and out.).The settings can be altered by editing the eclipse.ini file.

For feisty users:

sudo -b gedit /usr/lib/eclipse/eclipse.ini

The argument Xms refers to the minimum heap size and Xmx refers to the maximum heap size.

Tags: , , , , , , , ,

View source post

How To Install VMware Server 1.0.4 On Ubuntu 7.10 (Gutsy Gibbon)

November 28th, 2007


View original post


How To Install VMware Server 1.0.4 On Ubuntu 7.10 (Gutsy Gibbon)

This tutorial provides step-by-step instructions about how to
install the free VMware Server on an Ubuntu 7.10 (Gutsy Gibbon) system.
With VMware Server you can create and run guest operating systems
(”virtual machines”) such as Linux, Windows, FreeBSD, etc. under a host
operating system. This has the benefit that you can run multiple
operating systems on the same hardware which saves a lot of money, and
you can move virtual machines from one VMware Server to the next one
(or to a system that has the VMware Player which is also free).

Read more…

View source post

How To Set Up Software RAID1 On A Running System (Incl. GRUB Configuration) (Debian Etch)

November 27th, 2007


View original post


How To Set Up Software RAID1 On A Running System (Incl. GRUB Configuration) (Debian Etch)

This guide explains how to set up software RAID1 on an already
running Debian Etch system. The GRUB bootloader will be configured in
such a way that the system will still be able to boot if one of the
hard drives fails (no matter which one).

Read more…

View source post

How to setup Apache Tomcat 5.5 on Debian Etch

November 27th, 2007


View original post


Apache Tomcat is a web container, or application server developed at the Apache Software Foundation (ASF). Tomcat implements the servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, providing an environment for Java code to run in cooperation with a web server. It adds tools for configuration and management but can also be configured by editing configuration files that are normally XML-formatted. Tomcat includes its own internal HTTP server.

First Sun JDK 5 need to be installed. It can be installed from Debian repository with unstable software

First you need to edit /etc/apt/sources.list file

#vi /etc/apt/sources.list

Add the following lines

# for sun-java packages in unstable
deb http://ftp.debian.org/debian/ unstable non-free
deb-src http://ftp.debian.org/debian/ unstable non-free

Save and exit the file.

Now you need to Update apt using the following command

#apt-get update

Install jdk using the following command

#apt-get install sun-java5-jdk

Check the java version using the following command

#java -version

Output looks similar to the following

java version “1.5.0_10″
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)

Installing Apache Tomcat

Install Tomcat using the following commands

#apt-get install tomcat5.5
#apt-get install tomcat5.5-admin
#apt-get install tomcat5.5-webapps

To verify that Tomcat is running just navigate to http://localhost:8180/ in your browser (make sure you have replaced ‘localhost’ with your server ip or name)

You can start/stop or restart Tomcat using following command:

#/etc/init.d/tomcat5.5 [start | stop | restart]

Configuring ‘admin’ and ‘manager’ applications

You need to configure some user to have admin and manager roles. For example you can do it with ‘tomcat’ user. Stop server using the following command.

#/etc/init.d/tomcat5.5 stop

Now you need to edit /var/lib/tomcat5.5/conf/tomcat-users.xml file to look like below

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin"/>
<role rolename="manager"/>
<role rolename="tomcat"/>
<user username="tomcat"
password=”tomcatpassword”
roles="tomcat,admin,manager"/>
</tomcat-users>

Save and exit the file.

Start tomcat using the following command

#/etc/init.d/tomcat5.5 start

Now you can use manager application at http://localhost:8180/manager/html.
Your user will be ‘tomcat’ and password will be ‘tomcatpassword’

Tags: , , , , , , , ,

View source post

Tomcat 6 installation on Ubuntu Feisty

November 27th, 2007


View original post


Apache Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed by Sun under the Java Community Process.

Apache Tomcat is developed in an open and participatory environment and released under the Apache Software License. Apache Tomcat is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project. To learn more about getting involved, click here.

Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

Download the latest Tomcat to your desktop: http://tomcat.apache.org/, then run

sudo tar zxvf apache-tomcat-6.0.10.tar.gz

sudo cp -R apache-tomcat-6.0.10 /usr/share/tomcat6

Setting JAVA environment

Download the latest J2SE SDK, and run

sudo chmod +x *.bin

sudo sh ./jdk*.bin

Executing the .bin file creates a folder on your desktop named jdk1.6.0_01. Rename that folder to Java6u1. Now move that folder to /usr/lib

sudo mv Java6u1 /usr/lib

sudo update-alternatives --install /usr/bin/java java /usr/lib/Java6u1/bin/java 300

sudo update-alternatives --config java

1 /usr/lib/Java6u1/bin/java
2 /usr/bin/gij-wrapper-4.1
3 /usr/lib/jvm/java-gcj/jre/bin/java

Select 1

Setting the following environment

Edit /etc/environment

gedit /etc/environment, then insert and save two lines

CLASSPATH=.:/usr/lib/Java6u1/bin
JAVA_HOME=/usr/lib/Java6u1

Tomcat needs to set JAVA_HOME or JRE_HOME to execute. Open the follow document and edit the lines

sudo gedit ~/.bashrc

then place the following lines in

export JAVA_HOME=/usr/lib/Java6u1
export PATH=$PATH:$JAVA_HOME/bin

Start and stop tomcat

Now start your tomcat: sudo /usr/share/tomcat6/bin/./startup.sh

Type http://localhost:8080 in your browser. If you see the tomcat welcome page, your tomcat is running smoothly. If you are installing below 5.5 version, please try 8180.

Stopping tomcat: sudo /usr/share/tomcat6/bin/./shutdown.sh

Tomcat administrator setting

Edit this document:

sudo gedit /usr/share/tomcat6/conf/tomcat-users.xml

before </tomcat-users> insert this line

<user username="your username" password="your password" roles="admin,manager"/>

Save and restart your tomcat. You can login to your tomcat admin by using your new set id and password now.

Tags: , , , , , , , , , ,

View source post

Enabling Compiz Fusion On An Ubuntu 7.10 Desktop (NVIDIA GeForce FX 5200)

November 26th, 2007


View original post


Enabling Compiz Fusion On An Ubuntu 7.10 Desktop (NVIDIA GeForce FX 5200)

This tutorial shows how you can enable Compiz Fusion
on an Ubuntu 7.10 (Gutsy Gibbon) desktop (the system must have a
3D-capable graphics card - I’m using an NVIDIA GeForce FX 5200 here).
With Compiz Fusion you can use beautiful 3D effects like wobbly windows
or a desktop cube on your desktop.

Read more…

View source post