Commit 349d9c00 authored by Thiago H. S. Picharski's avatar Thiago H. S. Picharski

Merge remote branch 'le-multiterminal/master'

Signed-off-by: 's avatarThiago H. S. Picharski <thsp08@c3sl.ufpr.br>
parents 7cd55e30 0506c612
#!/bin/bash
# gerar.sh
# Copyright (c) 2006 by Bruno Ribas <ribas@ufpr.br>
DIRTMP=$(mktemp -d)
VERSAO=$(cat VERSAO)
#arrumar versao
#$1 tipo de incremento
MAJOR=$(echo $VERSAO| cut -d'.' -f1)
MINOR=$(echo $VERSAO| cut -d'.' -f2)
REVISION=$(echo $VERSAO| cut -d'.' -f3)
case $1 in
Minor)
((MINOR++))
REVISION=0
;;
Major)
((MAJOR++))
MINOR=0
REVISION=0
;;
help)
echo "Uso: $0 Major|Minor|Revision"
echo ' Major - Altera versao Major'
echo ' Minor - Altera versao Minor'
exit
;;
*)
((REVISION++))
;;
esac
VERSAO="${MAJOR}.${MINOR}.${REVISION}"
echo "$VERSAO" > VERSAO
#Compila a documentacao do pacote no diretorio doc/
#cd doc/
#hevea -text *.tex
#hevea -text *.tex
#cd ../
cp -r pacote $DIRTMP
#Copia a documentacao compilada para dentro do pacote.
#cp doc/*.txt $DIRTMP/pacote/usr/share/doc/prd-*
cd $DIRTMP
find . -name ".svn" -exec rm -rf {} \; &>/dev/null
sed -i -e "s/Version:/Version: $VERSAO/" pacote/DEBIAN/control
fakeroot dpkg -b pacote .
cd -
cp $DIRTMP/*deb .
rm -rf $DIRTMP
# vim:tabstop=4:shiftwidth=4:encoding=iso-8859-1
Package: le-multiterminal
Version:
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
Architecture: i386
Section: main
Priority: important
Depends: libusb-v1, listpci, umx-mesa, umx-multimedia, umx-server, umx-storage,
umx-tusb, umx-utils
Description: Userful mutiseat solution for LE
#!/bin/bash
# Copyright (C) 2004-2010 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-multiterminal
#
# le-multiterminal is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
# Install Userful multiseat solution
OLDDIR=$(pwd)
cd /etc/le-multiterminal/userful-multiplier
/bin/bash ./installer.sh
sed -i "s#CD/DVD_WHITELIST=on#CD/DVD_WHITELIST=off#g" /etc/userful/CD-whitelist
cd ${OLDDIR}
#!/bin/bash
# Copyright (C) 2004-2010 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-multiterminal
#
# le-multiterminal is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
# Uninstall Userful multiseat solution
OLDDIR=$(pwd)
cd /etc/le-multiterminal/userful-multiplier
/bin/bash ./uninstaller.sh
cd ${OLDDIR}
Table of Contents
* Introduction
* License Agreement
* Supported Linux Distributions
* Requirements
* Command Line Installation
* Graphical Installation
* Install Userful Multiplier with `Add/Remove tool' on Ubuntu system
NOTE:
Download the latest version of:
- Userful Multiplier: http://www2.userful.com/support/all-downloads/umx-download
- This Document: http://support.userful.com/wiki/index.php/Manuals/UMx/Readme
- ChangeLog: http://support.userful.com/wiki/index.php/ChangeLog/Userful_Multiplier
Introduction
============
Userful Multiplier (formerly Desktop Multiplier) is a set of standard Linux software
packages that extend the X Window System to support up to 10 fully independent and
concurrent workstations using a single computer box. This is accomplished by adding
standard video cards, USB keyboards and mice to a single PC system and installing
Userful's software.
License Aggreement
==================
This product includes commercial software that is licensed not sold and is governed
by an End User License Agreement (EULA). By installing, copying or using this software
you acknowledge that you have read, understand, and agree to be bound by the terms
of this EULA. You can review the terms of this EULA either by visiting
http://userful.com/download/eula/ or by consulting the Userful-EULA.txt file included
with your download.
Supported Linux Distributions
=============================
* Supported Linux Distros:
- Ubuntu 6.10, 7.04, 7.10, 8.04, 8.10, 9.04
- Fedora 4, 6, 7, 8
- openSUSE 10.1, 10.2, 11.0
- Novell Desktop 9, 10, 11
- Debian 3.1, 4.0
- CentOS 4, 5
- Mandrake 2008.0
- Redhat Enterprise Linux 4, 5, 5Server
- Freedows 2005
- Xandros 4.0
- Morphix 0.5-pre5
- Freespire 1.0.4
* Multistation Audio Available:
- Fedora 8, SLED 10, openSuSE 11.0, Ubuntu 8.10, 9.04
* Multistation Storage Available:
- Fedora 8, SLED 10, openSuSE 11.0, Ubuntu 8.10, 9.04
Requirements
============
Prior to installing Userful Multiplier on your existing Linux system, you will need to:
- Set up multiple user login accounts. (You will need at least one per station. Logging
in as the same user on several stations at once causes problems)
- Check the supported Linux Distributions above to see if your Linux System is able
to support Userful Multiplier.
- Add enough video cards and monitors to provide a video head for each station.
- If you are using NVIDIA video cards, please install NVIDIA's proprietary driver to
support multi-head properly.
- Prepare and connect enough keyboards for each station, placing one in front of each
monitor. We recommend using USB keyboards with an integrated USB hub to easily connect
each station's mouse, or powered USB hubs with regular USB keyboards and mice.
- Connect VGA & USB extension cables as needed. Ensure no USB device has no more than
15ft of cable between it and the nearest USB hub.
- Gnome/GDM is the recommended desktop environment with Userful Multiplier. Although KDE
also works on most supported distributions.
Command Line Installation
=========================
1. Start a terminal program.
2. Log in as root.
$ su
3. If you haven't done so already, unzip Userful Multiplier zip file with
`unzip' command.
$ unzip userful-multiplier-<version>.zip
4. `cd' to the newly created directory from the Userful Multiplier zip file.
$ cd userful-multiplier
5. Run `installer.sh' as root
$ ./installer.sh
6. Accept the End User License Agreement.
7. Reboot the machine as prompted.
Installing From Your Desktop
============================
1. Log into the desktop as the root user.
2. Open a file browser and to where you saved the Userful Multiplier zip file.
3. Double-Click the zip file, then extract.
4. Go to the newly created directory.
5. Double-Click `installer.sh', then choose `Run in Terminal' button.
* Unbuntu users can simply double click the `userful-multiplier-<version>.deb
file, and follow the instructions.
6. After the installation is complete, reboot the computer.
Install Userful Multiplier with `Add/Remove tool' on Ubuntu system
==================================================================
For detailed instructions see the following link:
http://support.userful.com/wiki/index.php/Manuals/UMx/How_to_Install_on_Ubuntu
Since Userful Multiplier is available from the Ubuntu Multiverse Repository,
Ubuntu users can easily install Userful Multiplier with the `Add/Remove' tool.
This is the easiest -- and recommended -- way for Ubuntu users to install Userful
Multiplier.
1. Launch `Add/Remove tool' from the `Application' menu.
2. In the `Show' combobox, select `All available applications'.
3. Type in `userful' in the `Search' field.
4. Check `Userful' in the `Application' list.
5. Click on the `Apply Changes' button.
6. System will ask to confirm the action. Click Apply to download and install
Userful Multiplier.
7. After installation is complete, reboot the computer.
For More Information
====================
- To find more information about Userful Multiplier, please visit
http://userful.com/products/userful-multiplier
- If you get any problem with Userful Multiplier, please try the following:
* Read the detailed support documentation:
http://support.userful.com/wiki/index.php/Manuals/UMx/User_Guide
* For more help or to contact Customer Service please visit
http://support.userful.com
Copyright (c) 2005-2010 Userful Corporation. All rights reserved.
(Updated 2009.4.10)
#
# Supported Linux Distributions and versions:
#
# RPM based:
# Fedora
FEDORA="2 3 4 6 7 8 10 11"
# Novell Desktop
NOVELL="9 10 11"
# SuSE
SUSE="9.1 9.3 10.1 10.2 10.3 11.0"
# Mandrake/Mandriva
MANDRAKE="2008.0"
# CentOS
CENTOS="4 5"
# RHEL
REDHAT="4 4WS 4Server 5 5WS 5Server"
# Freedows
FREEDOWS="2005"
#
# Debian based:
# Xandros
XANDROS="3.0 4.0"
# Dreamlinux
MORPHIX="0.5-pre5"
# Ubuntu
UBUNTU="5.04 5.10 6.06 6.10 7.04 7.10 8.04 8.10 9.04 9.10 10.04"
# Freespire
FREESPIRE="1.0.4"
# Debian
DEBIAN="3.1 4.0 5.0 5.0.4"
#!/bin/bash
#
# installer.sh
#
# Userful Multiplier installer
#
# Copyright (c) 2005-2010 Userful Corporation. All rights reserved.
#
# Jason Kim <jason@userful.com>
##
## Find Linux TYPE
##
function check_os_info()
{
if [ -e /etc/fedora-release ] || [ -e /etc/mandrake-release ] || \
[ -e /etc/SuSE-release ] || [ -e /etc/redhat-release ]; then
OSTYPE="rpm"
elif [ -e /etc/xandros-deskktop-version ] || [ -e /etc/morphix_version ] || \
[ -e /etc/freespire-release ] || [ -e /etc/linspire-release ] || \
[ -e /etc/debian_version ]; then
OSTYPE="deb"
elif [ -e /etc/lsb-release ]; then
source /etc/lsb-release
OSTYPE=$(echo $DISTRIB_ID | tr "[A-Z" "[a-z]")
# Check Linux Educacional
if [ "$OSTYPE" == "linux educacional" ]; then
OSTYPE=ubuntu
fi
else
# Unsupported OS type
# Should exit
OSTYPE=unsupported
fi
}
# Check system type (also in userful-bash-lib.sh)
function Check_System_Type()
{
case $(uname -m) in
x86_64|ia64)
echo "lib64"
;;
*)
echo "lib"
;;
esac
}
##
## Check nVidia Kernel Module and nVidia X driver
## (also in userful-bash-lib.sh)
function Check_nVidia_Driver()
{
# Check machine type
LIB=$(Check_System_Type)
# Check nVidia kernel module and driver
# Each distro has different way to install nvidia driver and use different files.
# FC:yum, SUSE:Yast, Ubuntu:Restricted Devices Manager and Synaptic
# TODO:
# - There might be a better way to check nvidia kernel module and drvier for every distros.
# - Each distro installs the nVidia kernel module and driver on different directory with dirrent name.
# - /lib is used for Kernel module instead of /lib64 in x86_64 SLED 10.1 system.
# - Need to check the path in other distributions.
# Check nVidia Kernel Module
#if [ -f /lib/modules/$(uname -r)/extra/nvidia/nvidia.ko -o \
# -f /lib/modules/$(uname -r)/updates/nvidia.ko -o \
# -f /lib/modules/$(uname -r)/updates/dkms/nvidia.ko -o \
# -f /lib/modules/$(uname -r)/weak-updates/nvidia.ko -o \
# -f /lib/modules/$(uname -r)/kernel/drivers/video/nvidia/nvidia.ko -o \
# -f /lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko -o \
# -f /lib/modules/$(uname -r)/volatile/nvidia.ko -o \
# -f /var/lib/dkms/nvidia-current/kernel-$(uname -r)-i586/module/nvidia-current.ko.gz -o \
# -f /var/lib/dkms/nvidia/kernel-$(uname -r)-i686/module/nvidia.ko -o \
# -f /etc/modprobe.d/nvidia-kernel-nkc ]; then
##
## Check nVidia Kernel Module and nVidia X driver
modprobe -q nvidia
if lsmod | grep -q "^nvidia"; then
# Check nVidia driver
if [ -f /usr/$LIB/xorg/modules/drivers/nvidia_drv.o ] && \
[ ! -L /usr/$LIB/xorg/modules/drivers/nvidia_drv.o ]; then
echo "true"
elif [ -f /usr/$LIB/xorg/modules/drivers/nvidia_drv.so ] && \
[ ! -L /usr/$LIB/xorg/modules/drivers/nvidia_drv.so ]; then
echo "true"
elif [ -f /usr/$LIB/xorg/modules/drivers/nvidia_drv.so ] && \
[ -f /usr/$LIB/nvidia-current/xorg/nvidia_drv.so ]; then
echo "true"
elif [ -f /usr/$LIB/xorg/modules/updates/drivers/nvidia_drv.o ] && \
[ ! -L /usr/$LIB/xorg/modules/updates/drivers/nvidia_drv.o ]; then
echo "true"
elif [ -f /usr/$LIB/xorg/modules/updates/drivers/nvidia_drv.so ] && \
[ ! -L /usr/$LIB/xorg/modules/updates/drivers/nvidia_drv.so ]; then
echo "true"
elif [ -f /usr/$LIB/xorg/modules/drivers/nvidia-current/nvidia_drv.so ] && \
[ ! -L /usr/$LIB/xorg/modules/drivers/nvidia-current/nvidia_drv.so ]; then
echo "true"
elif [ -f /usr/X11R6/$LIB/modules/drivers/nvidia_drv.o ] && \
[ ! -L /usr/X11R6/$LIB/modules/drivers/nvidia_drv.o ]; then
echo "true"
elif [ -f /usr/X11R6/$LIB/modules/drivers/nvidia_drv.so ] && \
[ ! -L /usr/X11R6/$LIB/modules/drivers/nvidia_drv.so ]; then
echo "true"
elif [ -f /usr/X11R6/$LIB/modules/updates/drivers/nvidia_drv.o ] && \
[ ! -L /usr/X11R6/$LIB/modules/updates/drivers/nvidia_drv.o ]; then
echo "true"
elif [ -f /usr/X11R6/$LIB/modules/updates/drivers/nvidia_drv.so ] && \
[ ! -L /usr/X11R6/$LIB/modules/updates/drivers/nvidia_drv.so ]; then
echo "true"
else
echo "false"
fi
else
# nVidia kernel module NOT exists. Return "false"
echo "false"
fi
}
##
## Exit from installer.sh
##
function exit_installer()
{
#read -s -p "Please enter any key to exit from \`installer.sh'"
exit 1
}
##
## Install UMx
##
function install_umx()
{
pushd ./packages > /dev/null
bash ./INSTALL
}
#-------------------
# Script start here
#-------------------
##
## Check root
if [ ! -r /proc/kmsg ]; then
echo
echo "You must be root to install Userful Multiplier"
echo
echo "To change root user in a terminal, type \`su -' command."
echo "If you install Userful Multiplier in graphical mode, please log on as root."
echo
#exit_installer
fi
##
## Check working directory
if [ ! -d ./packages ]; then
echo
echo "Please \`cd' to the newly created directory from Userful Multiplier zip file"
echo "before you run \`installer.sh'"
echo
exit_installer
fi
##
## Check for Nvidia cards, if they exist, check for nvidia drivers, if no nvidia drivers, prompt to install
##
if lspci | grep -iq nvidia ; then
DRIVER_RESULT=$(Check_nVidia_Driver)
if [ "$DRIVER_RESULT" == false ] ; then
echo "You appear to have one or more NVIDIA graphic cards installed,"
echo "but you do not have the NVIDIA driver installed. Userful multiplier"
echo "will not work on every video output. Please see the user guide"
echo "for more information."
echo -n "Do you still want to install [y/N]? "
#read ANS
ANS=y
if [ "$ANS" != y ] && [ "$ANS" != Y ] ; then
exit_installer
fi
fi
fi
##
## Find Linux type.
if [ -e ./new-distro.conf ]; then
source ./new-distro.conf
if [ x"$PACKAGE_TYPE" == x ]; then
echo
echo "Please set PACKAGE_TYPE in new-distro.conf"
exit_installer
else
echo
echo "Testing Userful Multiplier on a new Linux Distro..."
#read -s -p "Please enter any key to continue.."
if [ -d /etc/userful ]; then
cp -f ./new-distro.conf /etc/userful
else
mkdir /etc/userful
cp -f ./new-distro.conf /etc/userful
fi
OSTYPE=$PACKAGE_TYPE
fi
else
check_os_info
fi
## - deb packages should be available for Debian based linux
## - Ububuntu can also use ubuntu package.
## - rpm packages should be available for RPM based linux
PKG_TYPE=$(cat ./packages/PKG_TYPE)
if [ "$OSTYPE" == "rpm" ]; then
if [ "$PKG_TYPE" == "rpm" ]; then
install_umx
else
echo "You have wrong version of Userful Multiplier."
echo "Please install \`$OSTYPE' version on your system."
exit_installer
fi
elif [ "$OSTYPE" == "deb" ]; then
if [ "$PKG_TYPE" == "deb" ]; then
install_umx
else
echo "You have wrong version of Userful Multiplier."
echo "Please install \`$OSTYPE' version on your system."
exit_installer
fi
elif [ "$OSTYPE" == "ubuntu" ]; then
if [ "$PKG_TYPE" == "deb" ]; then
install_umx
elif [ "$PKG_TYPE" == "ubuntu" ]; then
# run gdebi
pushd ./packages > /dev/null
gdebi *.deb
else
echo "You have wrong version of Userful Multiplier."
echo "Please install \`$OSTYPE' version on your system."
exit_installer
fi
else
# Unsupported OS type
echo "Unsupported Linux system."
echo "Please use one of the following Linux version to use Userful Multiplier."
echo
cat ./packages/userful-supported-distros
exit_installer
fi
αX)a\ c)Cqq5mcEz-@bωRhq-KqJh9KQE~LݚtGԝ+)B"Ql<Y"6Qr_p;ANVm7NB.߶HԻ݅L@):nEn$$ee^LbNB}?X?tl)
E>mV(3A9.u
\ No newline at end of file
#!/bin/bash
#
# Uninstall script for Userful Multiplier
#
# Copyright (c) 2005-2010 Userful Corporation. All rights reserved.
#
# Jason Kim <jason@userful.com>
#
PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin
DPKG=$(which dpkg 2>/dev/null | sed 's|^[^/]*||' 2>/dev/null);
RPM=$(which rpm 2>/dev/null | sed 's|^[^/]*||' 2>/dev/null);
DIALOG=$(which dialog 2>/dev/null | sed 's|^[^/]*||' 2>/dev/null);
# Color
RED='\E[31m'
GREEN='\E[32m'
YELLOW='\E[33m'
BLUE='\E[34m'
BACKTITLE="Userful Multiplier provided by Userful"
TRUE=1
FALSE=0
#######################
# Check root permission
#######################
if [ ! -r /proc/kmsg ]; then
if [[ -n "$DIALOG" ]]; then
$DIALOG --backtitle "$BACKTITLE" --title "Uninstalling Userful Multiplier" --msgbox "\nYou must be logged in as root to run this program." 6 70
else
echo "---------------------------------------------------------"
echo -e "$RED\033[1mERROR\033[0m: \033[1mYou must be logged in as Root to run this program.\033[0m"
echo "---------------------------------------------------------"
echo ""
fi
exit 1
fi