HomePC: Difference between revisions

From Wiki RB4
 
(26 intermediate revisions by one other user not shown)
Line 93: Line 93:


#via Kubuntu 8.04 CD (http://www.howtoforge.de/howto/der-perfekte-desktop-kubuntu-804-lts-hardy-heron/)
#via Kubuntu 8.04 CD (http://www.howtoforge.de/howto/der-perfekte-desktop-kubuntu-804-lts-hardy-heron/)
#Rechnername 'uweheuer-
#Rechnername 'uweheuer-homepc-kubuntu'


=====old=====
Kubuntu 8.04 via CD installiert in zweite Partition auf Master Festplatte (hda1). Rechnername 'tiger'. (davor Kubuntu 7.04 'Feisty Fawn')


====Schreibzugriff auf NTFS-Partition====
#ntfs-3g und ntfs-config per Adept Manager installiert (MySQL Standard Server, nicht xampp, musste dazu gestartet werden)
#/etc/fstab nach /etc/fstab_15102007 gesichert und Einträge für /dev/sda1 und /dev/sda2 ergänzt


====User====
====User====
Line 106: Line 101:
|uweheuer  
|uweheuer  
|halloo
|halloo
|-
|fraukemeibeyer
|<leer>
|}
|}


Line 119: Line 111:
====Feste IP-Adresse====
====Feste IP-Adresse====
#''KMenu->System Settings->Network Settings->Administrator Mode'' 192.168.178.201
#''KMenu->System Settings->Network Settings->Administrator Mode'' 192.168.178.201
====Mount External USB====
#''KMenu->System Settings->Advanced->Disk&Filesystems->Administrator Mode->Enable''


====Environment Variables====
====Environment Variables====
In /etc/environment  
In /etc/environment  
  export JAVA_HOME="/usr"
  export JAVA_HOME="/usr/bin"
added.
added.


Line 143: Line 138:
*libapache2-mod-auth-mysql.
*libapache2-mod-auth-mysql.
======Configuration======
======Configuration======
Configuation can be found in <code>/etc/apache2/apache2.conf</code> and <code>/etc/apache2/http.conf</code>. Apache2.conf includes /sites-enabled/*, which contains 000-default
Configuation can be found in <code>/etc/apache2/apache2.conf</code> and <code>/etc/apache2/http.conf</code>. Apache2.conf includes /sites-enabled/*, which contains the file '000-default'. Restart by
 
/etc/init.d/apache2 restart
=====DeVeDe=====
#per Adept Manager
#s. 'K-Menu->Multimedia->DeVeDe'
 
=====ffmpeg=====
#per Adept Manager
#command shell


=====Firefox=====
=====Firefox=====
Line 166: Line 154:
via Adept Manager:
via Adept Manager:
*sun-java6-jdk
*sun-java6-jdk
*sund-java6-jre
*sun-java6-jre
*sun-java6-bin
*sun-java6-bin
*sun-java6-doc (first download zip file from sun into /tmp directory)
*sun-java6-doc (first download zip file from sun into /tmp directory)
*sun-java6-plugin (for firefox).  
*sun-java6-plugin (for firefox).  
*KMenu->Settings->Sun java 6 Plugin Control Panel->Java Tab->Java Applet Runtime Settings->Java Runtime Parameter for debugging
!!! See also [[HomePC#Environment_Variables|Environment Variables]]. java -version in shell works.
!!! See also [[HomePC#Environment_Variables|Environment Variables]]. java -version in shell works.


Line 176: Line 165:
* copied mysql-ds.xml <JBOSS_HOME>/server/default/deploy
* copied mysql-ds.xml <JBOSS_HOME>/server/default/deploy
* copied mysql-connector-java-5.1.5-bin.jar/ <JBOSS_HOME>/server/default/lib
* copied mysql-connector-java-5.1.5-bin.jar/ <JBOSS_HOME>/server/default/lib
* run.sh added to /etc/rc.local
* 'run.sh -b 0.0.0.0' added to /etc/rc.local
 
* add apache integration
=====KDiskFree=====
** sudo a2enmod proxy_ajp
per KMenu->Add/Remove Programms
** edit /etc/apache2/mods-enabled/proxy.conf
** edit /etc/apache2/sites-enabled/000-default
* adjust <JBOSS_HOME>/bin/run.conf for debugging


=====MySQL=====
=====MySQL=====
======Installation======
======Installation======
mysql-server via Adept Manager installiert (user root and password <empty>).  
* mysql-server via Adept Manager installiert (user root and password <empty>).  
* kmysqladmin via Adept Manager installiert (''KMenu->Database->kmysqladmin'')
 
======Configuration======
======Configuration======
*decomment bind-address in /etc/mysql/my.cnf
*decomment bind-address in /etc/mysql/my.cnf
*/usr/share/mysql create database mysql505;
*KMySQLAdmin
*add host % for user root via GMySQLcc
** File->Connect to SQL Server with Host 'localhost' and Username 'root'
** Server->Edit Access Rights
** Add Username 'root' and Host '%' and 'With grants'
** Icon 'New Database' and Names 'mysql504', 'uweswiki'
*C:\Uwes\batches\CopyUwesWikiTo192.168.178.201.bat
*C:\Uwes\batches\CopyUwesWikiTo192.168.178.201.bat
 
*C:\Uwes\batches\CopyMySQL504To192.168.178.201.bat
======Feisty Fawn comments======
#/opt/lampp/etc/my.cnf lower-case-table-names=2 added
To call a local client:
/opt/lampp/bin/mysql -u root
To reload configuration:
/opt/lampp/lampp relaodmysql
Databases are located at:
/opt/lampp/var/<DBName>/


=====Samba=====
=====Samba=====
Line 210: Line 198:
*php5
*php5
*php5-mysql
*php5-mysql
=====Tomcat=====
======Installation======
via Adept Manager:
*libapache2-mod-jk
*tomcat5.5
*libtomcat5.5
*tomcat5.5-admin
*tomcat5.5-webapps
======Configuration======
*Server.xml is located /etc/tomcat5.5/. Port was changed to 8080.
*User for manager application in /etc/tomcat5.5/tomcat-users.xml. User 'tomcat' with password 'tomcat' and additional role manager.
*in /etc/apache2/mods-enabled
**ln -s ../mods-available/proxy.load proxy.load
**ln -s ../mods-available/proxy.conf proxy.conf
**ln -s ../mods-available/proxy_http.load proxy_http.load
*in /etc/apache2/httpd.conf add proxypass entries
*grant permissions in /etc/tomcat5.5/policy.d/03catalina.policy which is copied during tomcat startup to /etc/tomcat5.5/catalina.policy
*WebApp directory is /usr/share/tomcat5.5/webapps
======Operation======
*In the process list you will find '''jsvc''' as the corresponding process.
*You can start and stop tomcat via the ''KMenu->System Settings->Advanced->System Services''.
=====Xampp=====
Probably not used anymore.
Installation to /opt/lampp. StartUp added [[HomePC#Autostart.2FStartup|autostart]]. http://<IP>>/ works.
Central Batch is
/opt/lampp/lampp [stopapache|startapache]
with many different parameters
Apache Configuration in
/opt/lampp/etc/httpd.conf
and adapted with ProxyPass directive for tomcat.

Latest revision as of 11:33, 17 June 2010

Hardware

Motherboard

processor: AMD Athlon 2600+ ram: 1 GB


Hard disks

Hard disk 1

partition 1: 32 GB NTFS for windows
partition 2: 46 GB for linux

Hard disk 2

partition 1: 279 GB NTFS

Graphic board

ATI 9200SE Radeon (driver s. )

MAC Adresse

00-0B-6A-4E-8B-85

Software

Windows

Installation via Jans DVD (Code 8XPDH-PCKKG-6MPKT-FTM67-2FMWG).

Computerdaten

Computername tiger
Arbeitsgruppe TIGERAG

Configuration

  • System->Remote->Remotedesktop


Benutzergruppen

Name
Administratoren

User

Name Gruppen Passwort
Uwe Administratoren <leer>
Administrator Administratoren halloo


Audio driver

Installation via windows dvd.

Graphic board driver

Installation via 6-11-pre-r300_xp-2k_dd_ccc_wdm_38185.exe

Terratec Cinergy

Installation of BDA driver via Cinergy_1200_DVB-S_Drv_Vista_XP_4.8.16.exe and instruction via WinXP_Treiberinstallation_DE.exe. Installation of Home Cinema via TerraTec_Home_Cinema_5.26.01.exe. It needed:

  • DirectX 9.0 via directx_aug2007_redist.exe
  • DotNet via dotnetfx.exe

Winrar

Version 3.7. Installation via wrar370d.exe.


Java

Java SE Development Kit Update 2 installiert aus jdk-6u2-windows-i586-p.exe nach C:\Programme\Java\. Set environment variable JAVA_HOME to JDK-dir C:\Programme\Java\jdk1.6.0_02\

Xampp for Windows

Xampp 1.6.3a installiert nach C:\Uwes\xampp\ mit MySQL, Apache und Filezila als Service.

MySQL

In DB mysql in Tabelle 'user' den Eintrag in Feld 'host' des users 'root' von 'localhost' auf '%' gesetzt.

Tomcat

Version 6.0.13 installiert als xampp add-on in C:\Uwes\xampp\tomcat\ und Tomcat als Service \bin\tomcat_service_install.bat registriert und auf automatische Ausführung gesetzt.

Ubuntu

Installation

  1. via Kubuntu 8.04 CD (http://www.howtoforge.de/howto/der-perfekte-desktop-kubuntu-804-lts-hardy-heron/)
  2. Rechnername 'uweheuer-homepc-kubuntu'


User

uweheuer halloo
root enabled
sudo passwd root
Password: <dein User Passwort> (halloo)
New password: halloo
Re-enter new password: halloo

Feste IP-Adresse

  1. KMenu->System Settings->Network Settings->Administrator Mode 192.168.178.201

Mount External USB

  1. KMenu->System Settings->Advanced->Disk&Filesystems->Administrator Mode->Enable

Environment Variables

In /etc/environment

export JAVA_HOME="/usr/bin"

added.

Enabling TV and DVD

Packages loaded like it is described in http://wiki.ubuntu-forum.de/index.php/Codecs in the sections 'Installation', 'Amorok und Kaffeine' and 'mp3 erstellen'.

sudo apt-get install libdvdcss2

Autostart/Startup

Ergänzungen in /etc/rc.local. You also have to add the environment variables, which are neccessary to run the Ergänzungen. But the environment variables are only set temporarily for the rc.local, therefore you have to add them to /etc/environment as well.

Programms installed

The following programs are installed via Adept Manager.

Apache
Installation

via Adept Manager:

  • apache2
  • libapache2-mod-php5
  • libapache2-mod-auth-mysql.
Configuration

Configuation can be found in /etc/apache2/apache2.conf and /etc/apache2/http.conf. Apache2.conf includes /sites-enabled/*, which contains the file '000-default'. Restart by

/etc/init.d/apache2 restart
Firefox

s. 'K-Menu->Internet'

Installation

via Adept Manager:

  • firefox
Extensions

Installation of Java Console 1.6 (s. Java Installation plugin)

Java

via Adept Manager:

  • sun-java6-jdk
  • sun-java6-jre
  • sun-java6-bin
  • sun-java6-doc (first download zip file from sun into /tmp directory)
  • sun-java6-plugin (for firefox).
  • KMenu->Settings->Sun java 6 Plugin Control Panel->Java Tab->Java Applet Runtime Settings->Java Runtime Parameter for debugging

!!! See also Environment Variables. java -version in shell works.

JBoss
  • download version 4.2.2 and extracted to /opt/jboss-4.2.2.GA/
  • copied mysql-ds.xml <JBOSS_HOME>/server/default/deploy
  • copied mysql-connector-java-5.1.5-bin.jar/ <JBOSS_HOME>/server/default/lib
  • 'run.sh -b 0.0.0.0' added to /etc/rc.local
  • add apache integration
    • sudo a2enmod proxy_ajp
    • edit /etc/apache2/mods-enabled/proxy.conf
    • edit /etc/apache2/sites-enabled/000-default
  • adjust <JBOSS_HOME>/bin/run.conf for debugging
MySQL
Installation
  • mysql-server via Adept Manager installiert (user root and password <empty>).
  • kmysqladmin via Adept Manager installiert (KMenu->Database->kmysqladmin)
Configuration
  • decomment bind-address in /etc/mysql/my.cnf
  • KMySQLAdmin
    • File->Connect to SQL Server with Host 'localhost' and Username 'root'
    • Server->Edit Access Rights
    • Add Username 'root' and Host '%' and 'With grants'
    • Icon 'New Database' and Names 'mysql504', 'uweswiki'
  • C:\Uwes\batches\CopyUwesWikiTo192.168.178.201.bat
  • C:\Uwes\batches\CopyMySQL504To192.168.178.201.bat
Samba

Package 'samba' per adept installiert.

Per KMenu->System Settings->Sharing->File Sharing->Administrator Mode / mit Sharename root freigegeben. Anschließend per Windows Explorer Netzwerklaufwerk verbinden \\192.168.178.201\root gemappt.

Log-files are located at /var/log/samba/.

PHP

via Adept Manager:

  • php5
  • php5-mysql