Forfatterarkiv: mike

Redirecting webpage requests throug mod_rewrite (new domain/path)

Redirection from http://example.net/subdir/foo.php?bar=test to http://example.com/subdir2/foo.php?bar=test .htaccess file: RewriteEngine On RewriteRule subdir/(.*) http://www.musicondemand.dk/subdir2/$1 [R]

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Convert a iso-8859-1 charset file into a utf-8 charset file using standard Linux tools.

iconv –from-code=ISO-8859-1 –to-code=UTF-8 iso.txt > utf.txt

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Mysql UTF8 helvede…

mysql –default-character-set=UTF8 bettegrisdk_gris -pfoobar < bettegrisdk_gris.sql

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

rdf2:/etc/apache2# cat httpd.conf ServerName rdf2.sk.mcn.dk rdf2:/etc/apache2#

Udgivet i Apache, Knowledge Base, Old Base | Skriv en kommentar

HTTP 301 Redirects med php

For at teste hvilken type redirect en given side laver: @ telnet localhost 80 Trying 127.0.0.1… Connected to localhost. Escape character is ‘^]’. GET / HTTP/1.1 Host: lcauto.dk HTTP/1.1 302 Found Date: Sat, 23 Aug 2008 23:33:49 GMT Server: Apache/2.2.3 … Læs resten

Udgivet i Knowledge Base, Networking, Old Base | Skriv en kommentar

Installing a shiny new Debian Etch as a VMWare Jail Server

mkdir install cd install wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.6-91891.tar.gz wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.6-91891.tar.gz tar zxf VMware-mui-1.0.6-91891.tar.gz tar zxf VMware-server-1.0.6-91891.tar.gz apt-get install linux-headers-`uname -r` x-window-system gcc psmisc // Just accept whatever it says when it asks for screen resolution 10 x default “Read license agreement” Enter … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Nulstil alle porte på en Cisco 3550

interface FastEthernet0/1 no switchport no ip address exit interface FastEthernet0/2 no switchport no ip address exit interface FastEthernet0/3 no switchport no ip address exit interface FastEthernet0/4 no switchport no ip address exit interface FastEthernet0/5 no switchport no ip address exit … Læs resten

Udgivet i Knowledge Base, Networking, Old Base | Skriv en kommentar

Cisco 2950 – STP With Uplinkfast, trunks and VLans

no service password-encryption hostname HOSTNAME enable secret 5 $ENCRYPTED PASSWORD/ enable password UNECRYPTED PASSWORD ip subnet-zero vtp domain pre-dmz vtp mode transparent spanning-tree mode pvst no spanning-tree optimize bpdu transmission spanning-tree extend system-id spanning-tree uplinkfast no spanning-tree vlan 1 vlan … Læs resten

Udgivet i Knowledge Base, Networking, Old Base | Skriv en kommentar

Installing an alphaweb server

********************* Setup etch backports: ********************* echo “deb http://www.backports.org/debian etch-backports main contrib non-free” >> /etc/apt/sources.list cat >> /etc/apt/preferences << EOF Package: * Pin: release a=etch-backports Pin-Priority: 999 EOF wget -O – http://backports.org/debian/archive.key | apt-key add – apt-get update *************************** Setup webserver, … Læs resten

Udgivet i Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar

Roku Soundbrigde Streaming fra Icecast

I have to write this down while its fresh in my memory … At the office we have a Roku Soundbridge which is a unit with a lot of potentiale and right now i unleashed just a bit more of … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar