Welcome to zewaren.net. This site presents myself and mostly archives the solutions to some problems I once had.

How to install the commands "updatedb" and "locate"

Not so frequently asked questions and stuff: 

How to install the commands "updatedb" and "locate"

Install the package "findutils"

apt-get install findutils

How to set the keyboard layout on a debian based computer

Not so frequently asked questions and stuff: 

You just installed a debian based computer. You are in front of a command line, and you don't want any qwerty.

apt-get install kbd
loadkeys fr #or whatever

How to edit initrd.gz

Not so frequently asked questions and stuff: 

How to edit initrd.gz

* Extract:

mkdir ~/tmp
cd ~/tmp
cp /boot/initrd.img ./initrd.gz
gunzip initrd.gz
mkdir tmp2
cd tmp2
cpio -id 

    * Modify
cd ~/tmp/tmp2
ls
...

* Compress

find . | cpio --create --format='newc' > ~/tmp/newinitrd
cd ~/tmp
gzip newinitrd

How to chain ssh tunneling

Not so frequently asked questions and stuff: 

Double:

 ssh -t -L 8000:localhost:8000 jumpbox.example.com 'ssh -L 8000:splunk.inside.example.com:8000 splunk01'

Triple:

 ssh zwm@rezid.org -t -p 222 -L8042:127.0.0.1:8042 'ssh zwm@192.168.33.3 -t -L 8042:127.0.0.1:8042 'ssh -L 8042:192.170.1.1:80 admin@192.168.69.69

Etc...

Source:
* http://egopoly.com/2006/08/28/how-to-use-an-ssh-tunnel-chain-to-access-a-splunk-server-behind-a-double-firewall/

How to be able to scroll with vmware-tools installed

Not so frequently asked questions and stuff: 

/etc/X11/xorg.conf:

Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"

How to get your linux started when fsck fails and when you forgot (or never known) your root password

Not so frequently asked questions and stuff: 

How to get your linux started when fsck fails and when you forgot (or never known) your root password

Solution:
Ask bash to be the first thing started by appending to the kernel item of grub:

init=/bin/bash

A wonderful root shell starts. Launch fsck.

fsck

Then reboot.

How to enable concurrent RDP connections in XP SP2-SP3

Not so frequently asked questions and stuff: 

RDP instantly doesn't connect with no error message

Not so frequently asked questions and stuff: 

When trying to connect to a remote machine, mstsc flash and nothing happen.
Background: the remote computer is running a problematic nvidia driver.
Solution:

  • Get the latest driver and hope for the problem to be solved.

Or:

  • Edit this key in the registry:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"SessionImageSize"=dword:00000020

Don't forget to reoot for the change to take effect.

Source:

How to start or stop the windows firewall from the command line

Not so frequently asked questions and stuff: 

To stop it:

net stop mpssvc

To start it:

net start mpssvc

Source:
* I don't remember.

How to install Opera on any debian based linux

Not so frequently asked questions and stuff: 

Go to http://deb.opera.com, which will tell you about their apt repositories

Append to your source.list

#deb http://deb.opera.com/opera/ etch non-free
#deb http://deb.opera.com/opera/ lenny non-free

wget -O - http://deb.opera.com/archive.key | apt-key add -
apt-get update
apt-get install opera

Pages

Subscribe to Front page feed