Forfatterarkiv: mike

Kvael klokken i linux

X: xset b off console: setterm -blength  

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

Script til ssh tuneller

Ssh should be configured to log in with keyfiles(not password) And then this script will do the trick, should explain itself. #!/bin/sh SERVER_HOSTNAME=geekhosting.dk SERVER_USERNAME=root SERVER_IFIPADDR=10.20.1.1 CLIENT_IFIPADDR=10.20.1.2 MYSUBNET=10.1.0.0/16 LOCAL_SSH_OPTS=”-P” PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11/: PPPD=/usr/sbin/pppd SSH=/usr/bin/ssh ROUTE=/sbin/route if ! test -f $PPPD ; then echo … Læs resten

Udgivet i Uncategorized | Skriv en kommentar

Automatisk baggrunds rotate

cycle.pl: #!/usr/bin/perl $path = “/usr/X11R6/share/bgrotate”; open FIL,”$path/current”; $current = <FIL>; close FIL; open FIL,”$path/cycle”; $dat = <FIL>; $first = $dat; while ($dat ne $current) { $dat = <FIL>; } unless ($next = <FIL>) {$next = $first;}; close(FIL); $res = system … Læs resten

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

Unifix party firewall

#!/bin/sh # default iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT # flush iptables -t filter -F INPUT iptables -t filter -F FORWARD iptables -t filter -F OUTPUT iptables -t nat -F PREROUTING iptables -t nat … Læs resten

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

Where to get all the rfc’s in a single file

ftp://ftp.rfc-editor.org/in-notes/tar/RFC-all.tar.gz

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

Round Robin Dns

Round Robins Dns is a simple form of load ballancing, you have 2 or more servers which provides the same servive e.g. irc or www. You want half of the users to use server A and the other half to … Læs resten

Udgivet i Domain Name System, Knowledge Base, Networking, Old Base | Skriv en kommentar

How to connect a Linux system to an IPv6 gateway

First you have to make sure that the kernel is ipv6 kombatible, do an ifconfig and look for something like this inet6 addr: fe80::202:44ff:fe27:23bd/10 Scope:Link if you cant find it, try type modprobe ipv6 and look again, if it dosnt … Læs resten

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

IPIP Tunneling in linux

With ipip tunneling you can connect to LAN through internet like this: ____________ ____________ | | | | | Lan1 |___________________| Lan2 | | 10.1.x.x | Internet | 10.2.x.x | |___________| |___________| Global IP: Global IP: 80.80.80.80 90.90.90.90 If ipip-tunneling … Læs resten

Udgivet i Knowledge Base, Linux, Networking, Old Base, Uncategorized | 1 kommentar

The foundation of Unifix Knowledge Base

Dette system har sin oprindelse i 2 sider af en sag, den ene var at vi tit stod i den problemstilling at vi havde lavet et eller andet og 2 måneder efter ikke kunne huske hvordan vi havde gjort det. … Læs resten

Udgivet i Blog | Skriv en kommentar