Månedsarkiv: august 2003

Creating users in mysql

root@chilibeans:~# mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4023 to server version: 3.23.54 Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer. mysql> create … Læs resten

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

Making swapfile in Linux

dd if=/dev/zero of=/swap bs=1024 count=512k mkswap /swap swapon /swap Dette skriver 1024 tegn til filen 512.000 gange. Det vil sige at der bliver lavet en swapfil på 512Mb.

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

PPPoE router (natd) in FreeBSD

TDC ADSL PPPoE router in FreeBSD (with firewall (ipfw) and routing (natd)) To run a router it’s recommended that the router has two NIC’s. Remember to configure the LAN-NIC in /etc/rc.conf First your kernel needs some options: options IPFIREWALL options … Læs resten

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

Taking command line arguments in C

bash$ cat vladimirr.c int main(argc, argv) int argc; char **argv; { int i; for (i=0; i<=argc; i++) { printf(“Argument[%i]=%s\n”,i,argv[i]); } } bash$ cc vladimirr.c -o vladimirr bash$ ./vladimirr er en gammel torsk som stinker til c Argument[0]=./vladimirr Argument[1]=er Argument[2]=en Argument[3]=gammel … Læs resten

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

Editing your menu in BlackBox on freebsd

You need the edit the file /usr/X11R6/share/blackbox/menu to change your menu layout. The menu file is pretty easy to understand 🙂 The file is found somewhere else on a linux system. // Vladimirr.dk

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

Preload of images with JS

Unifix knowledge database – The original one Dashboard – News – Search – List – About – Admin Preload of images with JS Author:vladimirr – Thu Aug 7 20:36:03 2003 <script language=”JavaScript”> <!– function PreLoad() { if (document.images) { img1 … Læs resten

Udgivet i Knowledge Base, Old Base, Programmering, Uncategorized | Skriv en kommentar

Samba guide

http://www.samba.netfirms.com/index.htm //Vladimirr

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

Mousewheel in Xfree

Add the ‘Option “ZAxisMapping” “4 5″‘ to your Mouse section, could look like this (on freebsd, might me a little different elsewhere but the zaxis part should be similare) Section “InputDevice” Identifier “Mouse0” Driver “mouse” Option “ZAxisMapping” “4 5” Option … Læs resten

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