HomePC: Difference between revisions

From Wiki RB4
 
(47 intermediate revisions by 2 users not shown)
Line 91: Line 91:


====Installation====
====Installation====
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====
#via Kubuntu 8.04 CD (http://www.howtoforge.de/howto/der-perfekte-desktop-kubuntu-804-lts-hardy-heron/)
#ntfs-3g und ntfs-config per Adept Manager installiert (MySQL Standard Server, nicht xampp, musste dazu gestartet werden)
#Rechnername 'uweheuer-homepc-kubuntu'
#/etc/fstab nach /etc/fstab_15102007 gesichert und Einträge für /dev/sda1 und /dev/sda2 ergänzt
 
 


====User====
====User====
uweheuer halloo
{| border="1"
|uweheuer  
|halloo
|}


=====root enabled=====
=====root enabled=====
Line 108: 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 119: Line 125:
  sudo apt-get install libdvdcss2
  sudo apt-get install libdvdcss2


====Autostart====
====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.
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====
====Programms installed====
Line 132: Line 138:
*libapache2-mod-auth-mysql.
*libapache2-mod-auth-mysql.
======Configuration======
======Configuration======
Configuation can be found in <code>/etc/apache2/apache2.conf</code>.
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


=====Firefox=====
=====Firefox=====
Line 147: 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.


=====KDiskFree=====
=====JBoss=====
per KMenu->Add/Remove Programms
* 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=====
=====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
 
** File->Connect to SQL Server with Host 'localhost' and Username 'root'
#Field 'host' for User root in table mysql.users set to %.
** Server->Edit Access Rights
#/opt/lampp/etc/my.cnf lower-case-table-names=2 added
** 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
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=====
Package 'samba' per adept installiert.  
Package 'samba' per adept installiert.  


Freigabe für /media/hdb1 und / über Konquerer->Select Directory->Properties->Share->Configure File Sharing... als Share HDB1 und ROOT hinzugefügt.  
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.


Die zugehörigen Einträge findet man dann unter /etc/samba/samba.conf.
Log-files are located at /var/log/samba/.
Anschließend in shell als root
smbpasswd -a uweheuer // add user with password halloo
smbpasswd -e uweheuer // activate user
ausgeführt. Dann kann man unter Windows mit Netzwerklaufwerk verbinden //<IP>/<ShareName> und Angabe von user und password darauf zugreifen.


=====PHP=====
=====PHP=====
Line 192: 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
*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=====
Installation to /opt/lampp. StartUp added [[HomePC#Autostart|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[edit]

Motherboard[edit]

processor: AMD Athlon 2600+ ram: 1 GB


Hard disks[edit]

Hard disk 1[edit]

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

Hard disk 2[edit]

partition 1: 279 GB NTFS

Graphic board[edit]

ATI 9200SE Radeon (driver s. )

MAC Adresse[edit]

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

Software[edit]

Windows[edit]

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

Computerdaten[edit]

Computername tiger
Arbeitsgruppe TIGERAG

Configuration[edit]

  • System->Remote->Remotedesktop


Benutzergruppen[edit]

Name
Administratoren

User[edit]

Name Gruppen Passwort
Uwe Administratoren <leer>
Administrator Administratoren halloo


Audio driver[edit]

Installation via windows dvd.

Graphic board driver[edit]

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

Terratec Cinergy[edit]

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[edit]

Version 3.7. Installation via wrar370d.exe.


Java[edit]

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[edit]

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

MySQL[edit]

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

Tomcat[edit]

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[edit]

Installation[edit]

  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[edit]

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

Feste IP-Adresse[edit]

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

Mount External USB[edit]

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

Environment Variables[edit]

In /etc/environment

export JAVA_HOME="/usr/bin"

added.

Enabling TV and DVD[edit]

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[edit]

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[edit]

The following programs are installed via Adept Manager.

Apache[edit]
Installation[edit]

via Adept Manager:

  • apache2
  • libapache2-mod-php5
  • libapache2-mod-auth-mysql.
Configuration[edit]

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[edit]

s. 'K-Menu->Internet'

Installation[edit]

via Adept Manager:

  • firefox
Extensions[edit]

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

Java[edit]

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[edit]
  • 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[edit]
Installation[edit]
  • mysql-server via Adept Manager installiert (user root and password <empty>).
  • kmysqladmin via Adept Manager installiert (KMenu->Database->kmysqladmin)
Configuration[edit]
  • 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[edit]

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[edit]

via Adept Manager:

  • php5
  • php5-mysql