Kategoriarkiv: Linux

Start X automatisk (autologin)

# Starting X at the boot without xdm (autologin), even without login: rc.local: echo “Autologin of user <username>” cd /home/<username> su – <username> ~/.bash_profile: if [“`tty`” = “/dev/console” -o “`tty`” = “/dev/tty0”] then startx fi

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

Opsætning af ProFTPD+mod_sql

ProFTPD+mod_sql De fleste linux distributioner kommer idag med en ftpserver. Rigtig mange bruger ProFTPD som standard ftpserver. En alm. installation af ProFTPD bruger operativsystemets egen brugerdatabase, men der er faktisk mulighed for at bruge mange andre former for login. En … Læs resten

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

Multiple X Sessions

Stats session on X-Terminal 1 startx — :1

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

Editing the .bash_profile to your needs

When you’ve installed bash from scratch or from ports on BSD bash is pretty ugly. it looks something like this: bash-2.05b$ pretty useless it is here .bash_profile comes in to view I’m not going blabber alot with long howto’s etc. … Læs resten

Udgivet i Knowledge Base, Linux | Skriv en kommentar

Enabling directory indexes in Apache (2)

The default setting should be something like: <Directory /> Options FollowSymLinks AllowOverride All </Directory> Just add indexes: <Directory /> Options FollowSymLinks indexes AllowOverride All </Directory>

Udgivet i Apache, FreeBSD, Knowledge Base, Lamp, Linux, Old Base | Skriv en kommentar

Configuring TCP/IP Client on Linux

The interface eth0 : The interface want to configure 10.1.1.2 : The IP of the interface 255.255.255.0 : The netmask of the interface ifconfig eth0 10.1.1.2 netmask 255.255.255.0 up The gateway 10.1.1.1 : Name of gateway route add default gateway … Læs resten

Udgivet i Knowledge Base, Linux | Skriv en kommentar

Add linux /proc in freebsd

Add to /etc/fstab: linproc /compat/linux/proc linprocfs rw 0 0

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

OpenSSH 3.1.7p1 på Linux < 2.4.x

Udpak og ./configure Aendrede i config.h: /* Define if you have the `setresgid’ function. */ #define HAVE_SETRESGID 1 /* Define if you have the `setresuid’ function. */ #define HAVE_SETRESUID 1 til: /* Define if you have the `setresgid’ function. */ … Læs resten

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

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