Simplistisk debian system backup and restore process

mount and unmount the floppy as needed ( it holds your system config ) 


Save System 
dpkg --get-selections * > /mnt/floppy/pkg.lst 
# You might want to save your important config files too 
tar zcvf /mnt/floppy/etc.tgz /etc 


Restore System 
build a minimally installed debian from cdrom or net install 

dpkg --set-selections < /mnt/floppy/pkg.lst 
# Check your important config files 
cd / ; tar zdvf /mnt/floppy/etc.tgz 
apt-get update 
apt-get dist-upgrade 
( or apt-get dselect-upgrade ) ( or aptitude install )
Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

restricting users to scp access (debian)

apt-get install rssh
 - uncomment allowscp and allowsftp from /etc/rssh.conf
to restrict a user to rssh add /usr/bin/rssh as its shell

Add shell to /etc/shells (or dont if you want to prohibit ftp logins)
Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

How to slipstream an windows XP cd

Look <a href=”http://www.maximumpc.com/2005/01/how_to_slipstre.html”>here</a>..

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

vmware server serials

981K8-YAU6A-25413-4L3JE

9AHUT-Y2V6Z-2GM96-4J6KE

92MUX-Y2FFV-2GH1K-4TLCX

90HU9-Y2F6V-2G4FN-4AH2J

905HW-Y0Z6Z-2EJ1K-4L3HH

92NRT-Y8C4U-25N1Q-4JQA8

92JU8-Y2CDY-27H37-4J4JX

98HHT-Y8V6F-27H37-4J60J

980KR-Y2U6Y-2E09L-4L6JN

92JRX-YAUFA-27592-4V711
Udgivet i Uncategorized | Skriv en kommentar

vmware server serials

981K8-YAU6A-25413-4L3JE

9AHUT-Y2V6Z-2GM96-4J6KE

92MUX-Y2FFV-2GH1K-4TLCX

90HU9-Y2F6V-2G4FN-4AH2J

905HW-Y0Z6Z-2EJ1K-4L3HH

92NRT-Y8C4U-25N1Q-4JQA8

92JU8-Y2CDY-27H37-4J4JX

98HHT-Y8V6F-27H37-4J60J

980KR-Y2U6Y-2E09L-4L6JN

92JRX-YAUFA-27592-4V711
Udgivet i Knowledge Base | Skriv en kommentar

Renaming PHP Functions

web02:~# apt-get install php4-apd

In php.ini

zend_extension=/usr/lib/php4/20020429/apd.so
apd.dumpdir = NULL
apd.statement_tracing = 0

And then in your code:

rename_function('mysql_query', 'doquery');

function mysql_query($query) {
	doquery($query);
	echo "Der var en SQL-kommando her<br>\n";
}
Udgivet i Knowledge Base, Linux, Old Base, PHP | Skriv en kommentar

How shit happends

In the beginning was the plan. 

And then came the assumptions. 

And the plan was without substance. 

And the assumptions were without form. 

And darkness was upon the face of the workers. 

And they spoke among themselves saying "It is a crock of shit, and it stinks". 

And the workers went unto their Supervisors and said "It is a pail of dung, and none may abide the odour thereof". 

And the supervisors went unto their Managers, saying, "it is a container of excrement, and it is very strong, such that none may abide by it". 

And the managers went to their Directors, saying "It is a vessel of fertilizer, and none may abide by its strength". 

And the Directors spoke among themselves saying to one another, "it contains that which aids plant growth, and it is very strong". 

And the directors went to the vice presidents saying unto them, "it promotes growth, and is very powerful". 

The vice presidents went unto the president, saying unto him, "this new plan will actively promote the growth and vigour of the company, with powerful effects". 

And the president looked upon the plan and saw that it was good. 

And the plan became policy. 

And that is how shit happens.
Udgivet i Knowledge Base | Skriv en kommentar

How shit happends

In the beginning was the plan. 

And then came the assumptions. 

And the plan was without substance. 

And the assumptions were without form. 

And darkness was upon the face of the workers. 

And they spoke among themselves saying "It is a crock of shit, and it stinks". 

And the workers went unto their Supervisors and said "It is a pail of dung, and none may abide the odour thereof". 

And the supervisors went unto their Managers, saying, "it is a container of excrement, and it is very strong, such that none may abide by it". 

And the managers went to their Directors, saying "It is a vessel of fertilizer, and none may abide by its strength". 

And the Directors spoke among themselves saying to one another, "it contains that which aids plant growth, and it is very strong". 

And the directors went to the vice presidents saying unto them, "it promotes growth, and is very powerful". 

The vice presidents went unto the president, saying unto him, "this new plan will actively promote the growth and vigour of the company, with powerful effects". 

And the president looked upon the plan and saw that it was good. 

And the plan became policy. 

And that is how shit happens.
Udgivet i Humor | Skriv en kommentar

Great color sheme for vim

cd /usr/share/vim/vim63/colors
wget http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/adaryn.vim

and in vim
:color adaryn
Udgivet i Knowledge Base, Old Base, Vim | Skriv en kommentar

Installer vmware-server på debian

Installer en ren debian


apt-get install x-window-system
apt-get install libdb2              (only needed for mui)

Download and install vmware-server, you can use only vmware server if you want to connect to it with vmware console and login with the unix root and rootpass.

However you can install the mui which gives you a webgraphical overview, mui needs libdb2 to create ssl certificates. Mui answers on port https://host:8333 and requires username and password as well, root uid will work here as well.

Both tarballs should be downloaded, unpacked and run install script.
Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar