Månedsarkiv: maj 2007

Opsætning af pmacct på debian

pmacct og mysql installeres via apt. i mysql oprettes databasen pmacct og brugeren pmacct@localhost med koden pmacct: create database pmacct; grant all privileges on pmacct.* to pmacct@localhost identified by ‘pmacct’; følgende config bruges: (/etc/pmacct/pmacctd.conf) ! pmacctd configuration ! ! ! … Læs resten

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

SSH Pre-login banner

/etc/issue.ssh should contain the banner: web01:~# cat /etc/issue.ssh This is a Level2 system web01:~# and add: Banner /etc/issue.ssh to /etc/ssh/sshd_config then sighup

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

Novell NetWare 6.5 administration

To switch console, use ctrl+esc. To set up TCP/IP load the following module from the System Console: inetcfg To set up a printer, load the following modules: broker ndpsm (These should start automatically) hpgate ndpsgw To reboot, type ‘reset server’ … Læs resten

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

Klientel anvendelse af CVS (pserver)

— Remote anvendelse: Log ind på CVS Serveren og log herefter ind på remote maskinen med flg. kommando: # ssh web01.mcs.bz -R 2401:127.0.0.1:2401 Herefter kan CVS Serveren tilgåes fra web01 ved at connecte til localhost port 2401, trafik mellem CVS … Læs resten

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

D-Link DFE-570TX

This is a 4 Port NIC Card from D-Link, the systems sees it as a DEC-21152(But on the board/chip itself it says Intel 21152) this is in fact a PCI Bridge which bridges to 4 PCI Nic’s which again Linux … Læs resten

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

MRTG on debian

Installing an configuring mrtg on debian is quite straightforward. Just issue a “apt-get install mrtg” and you’re done. As for configuring it, there are just another few minutes more. You can use a very useful utility, called “cfgmaker” to generate … Læs resten

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

Extract a mysql query to XML

echo “select * from table” | mysql -B –xml -h [host] -u [user] -p[password] [database] > output.xml not all of the parameters are needed of course. use –table if you want the nice ascii tables around the result if -B … Læs resten

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

Install Mono on Debian

This works on Sarge and Etch: apt-get install mono libmono-corlib2.0-cil

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

Layout til IPAccounting

Traffic trafid INT AUTOINCREMENT time DateTime \ ip INT / Burde være lavet som kombined key med clustered index? sent INT recieved INT Index på `time` og `ip` LocalIPs lid INT AUTOINCREMENT ip INT description VARCHAR(255)

Udgivet i Knowledge Base, Old Base | Skriv en kommentar