Kategoriarkiv: Old Base

Static Mapping NFS

Static Mapping for NFS is used for mapping a local user or group id to a remote user or remote id. So you dont have to sync. user database on both machines. Make the file /etc/nfs/maps.map and put this lines … Læs resten

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

ISO countrycodes

ad Andorra, Principality of ae United Arab Emirates af Afghanistan, Islamic State of ag Antigua and Barbuda ai Anguilla al Albania am Armenia an Netherlands Antilles ao Angola aq Antarctica ar Argentina arpa Old style Arpanet as American Samoa at … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Create colorized HTML files from your source code files with VIM

Open your source code file with VIM and type ‘:ru syntax/2html.vim’ in command mode. And poof, there we have another window with your HTML converted source code. Enjoy 😉 /secor

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

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