Archiv der Kategorie: Howto

phpmyadmin startet nicht wegen basedir-restrictions

In der /etc/apache2/conf.d/phpmyadmin.conf:

 

Bereich Ifmodule austauschen:

        <IfModule mod_php5.c>

                AddType application/x-httpd-php .php

 

                php_flag magic_quotes_gpc Off

                php_flag track_vars On

                php_flag register_globals Off

                php_value include_path .

                php_admin_flag allow_url_fopen Off

                php_admin_value upload_tmp_dir /tmp

                php_value include_path .:/usr/share/php:/usr/share/pear

                php_admin_value open_basedir /usr/share/php:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/tmp

 

        </IfModule>

Fli4L – 1 Router verwaltet 2 getrennte Netze

erstmal fli4l updaten

 

 

was soll erreicht werden?

 

zwei netze, voneinander getrennt, beide internet-zugang

192.168.0.0

192.168.2.0

 

 

Problem:

einer Netzwerkkarte in fli4l zwei Netzwerke zuweisen

 

So gehts :

The fli4l router is also able to do IP aliasing, i.e. to assign multiple IP addresses to a single network adapter. Additional IP addresses are simply specified by linking another network to the same device. When mkfli4l checks the configuration you are informed that you define such an alias–you can ignore the warning in this case.

 

Example:

 

        IP_NET_1=’192.168.6.1/24′

        IP_NET_1_DEV=’eth0′

        IP_NET_2=’192.168.7.1/24′

        IP_NET_2_DEV=’eth0:0′

 

        http://www.fli4l.de/fileadmin/doc/english/html/fli4l-3.10.4/node16.html

 

 

http://spline.fli4l.narkive.com/psOlrx2p/ip-aliasing

 

 

Bisherige Vorgehensweise

 

1. Ein zweites Netzwerk erstellt mit IP_NET

IP_NET_2=’192.168.7.1/24′

        IP_NET_2_DEV=’eth0:0′

 

2. Firewall

INPUT_LIST_N=’4′

INPUT_LIST_4= ‚IP_NET2 ACCEPPT‘

 

FORWARD_LIST_N=’3′

FORWARD_LIST_3=’IP_NET2 ACCEPPT‘

 

 

POSTROUTING_LIST_N=’2′

POSTROUTING_LIST_2=’IP_NET_2 MASQUERADE‘

 

FUNKTIONIERT!

 

Mehrere avi-Dateien zu einer zusammenfügen (OSX)

cat part1.avi part2.avi part3.avi > tmp.avi && mencoder -forceidx -oac copy -ovc copy tmp.avi -o output.avi && rm -f tmp.avi

 

wenn es nicht funktioniert:

-bash: mencoder: command not found. Download ffmpegXbinaries20060307.zip unzip and then copy mencoder to /usr/local/bin

howto: ssh-forwarding

Local vs Remote SSH port forwarding

When it comes to the art of SSH tunnelling, there are basically two options where to relay a port to.

You can relay a port from a remote server to your local machine with ssh -L, hence called local port forwarding. A very basic use-case is if your remote server has a MySQL database daemon listening on port 3306 and you want to access this daemon from your local computer.

The second option is to make your local port available on a remote server (ssh -R). Remote port forwarding might come in handy if you for example want to make your local web-server available on a port of a public server, so that someone can quickly check what your local web-server provides without having to deploy it somewhere publicly.

It should now be pretty easy to remember: Local and remote port forwarding always refers to where to relay the port to. The SSH command syntax uses the same easy to remember abbreviations: -L (forward to my local machine) and -R (forward to my remote machine).

 

Mehr bei http://www.everythingcli.org/ssh-tunnelling-for-fun-and-profit-local-vs-remote/

Weiterlesen

Munin Grafiken aktualisieren sich nicht

Nachdem man per Telnet geprüft hat ob die Clients da sind, prüft man den Munin-Master

Prüfen on munin-cron funktioniert:

sh-3.2# munin-cron

Can’t locate RRDs.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.16.3/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.16.3 /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.16.3 /opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level /opt/local/lib/perl5/5.16.3 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/Utils.pm line 22.

BEGIN failed–compilation aborted at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/Utils.pm line 22.

Compilation failed in require at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/UpdateWorker.pm line 18.

BEGIN failed–compilation aborted at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/UpdateWorker.pm line 18.

Compilation failed in require at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/Update.pm line 17.

BEGIN failed–compilation aborted at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/Update.pm line 17.

Compilation failed in require at /opt/local/lib/munin/munin-update line 13.

BEGIN failed–compilation aborted at /opt/local/lib/munin/munin-update line 13.

 

In diesem Fall passt die Version von rrdtools nicht zur eingesetzten perl-version.

Abhilfe:

sh-3.2# port installed rrdtool

The following ports are currently installed:

  rrdtool @1.4.7_5

  rrdtool @1.4.8_0

  rrdtool @1.4.9_1

  rrdtool @1.5.4_0 (active)

  rrdtool @1.5.5_0

port activate rrdtool @1.4.9_1

sh-3.2# munin-cron

This program will easily break if you run it as root as you are

sh-3.2#

 

Funktionierte dann.