Kategoriarkiv: Linux

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

Fixing eth assignment in copied vmware debian guest

When copying a vmware image with a debian guest os, the mac adress changes, and the next nic is called eth1. To fix this, remove the old declaration and replace it with the correct one in: /etc/udev/rules.d/z25_persistent-net.rules Example: # PCI … Læs resten

Udgivet i Knowledge Base, Linux, 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

vmware tools in debian

install vmware-tools in debian: uname -r and use the matching package for your headers: apt-get install gcc make linux-headers-2.6.18-5-486 Insert the cd, mount it and unzip /mnt/cdrom/VMwareTools-1.0.4-56528.tar.gz to /tmp/ run the installer and answer all default questions

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

Install CURL extension to PHP on debian

It’s simple to install the CURL extension on debian, ubuntu etc. with apt-get First download curl extension: apt-get install curl libcurl3 libcurl3-dev php5-curl When this is done all you need is restarting your apache: /etc/init.d/apache2 restart And then it should … Læs resten

Udgivet i Knowledge Base, Linux, 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

Sending SMS From Linux (Sony Ericsson and Gnokii)

the phone should show up in dmesg like: usb 2-1: new full speed USB device using uhci_hcd and address 2 usb 2-1: configuration #1 chosen from 1 choice cdc_acm 2-1:1.1: ttyACM0: USB ACM device cdc_acm 2-1:1.3: ttyACM1: USB ACM device … Læs resten

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

Simple iptables-firewalling the Debian way

The script is self explanatory, and if you dont understand it go read some newbie-guide to iptables, otherwise place the script in /etc/init.d name it firewall and run: update-rc.d rc.firewall defaults 19 And then you are ready to go 🙂 … Læs resten

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

setup local debian + backports + ubuntu mirror

first get debmirror. # apt-get install debmirror second, create the user mirror and su to him # useradd -m mirror # su – mirror # mkdir /home/mirror/debian # mkdir /home/mirror/debian-backports # mkdir /home/mirror/debian-security # mkdir /home/mirror/ubuntu now create the default … Læs resten

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