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

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

Vista sees multiple networks in network center

Not so frequently asked questions and stuff: 

I found the unidentified network was a few persistent routes
Drop to a command prompt

type ROUTE PRINT

in normal situations you should only have 1 Persistent route

this is what I had
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 10.0.0.120 Default
0.0.0.0 0.0.0.0 10.0.0.254 Default

I simply used ROUTE DELETE 0.0.0.0 10.0.0.120
disabled and enabled my NIC and all went back to normal.

you may need to delete any IPV6 routes also.

You would think that microsoft would have the stupid diagnose tool
actually investigate the routing table!

Source:
http://www.pcreview.co.uk/forums/showpost.php?s=2f91ba6743f6ad48276e309d...

Pages

Subscribe to Front page feed