- About me
- Not so frequently asked questions and stuff
- Articles en français
Welcome to zewaren.net. This site presents myself and mostly archives the solutions to some problems I once had.
How to edit initrd.gz
mkdir ~/tmp cd ~/tmp cp /boot/initrd.img ./initrd.gz gunzip initrd.gz mkdir tmp2 cd tmp2 cpio -id * Modifycd ~/tmp/tmp2 ls ...
* Compressfind . | cpio --create --format='newc' > ~/tmp/newinitrd cd ~/tmp gzip newinitrd
ssh -t -L 8000:localhost:8000 jumpbox.example.com 'ssh -L 8000:splunk.inside.example.com:8000 splunk01'
ssh email@example.com -t -p 222 -L8042:127.0.0.1:8042 'ssh firstname.lastname@example.org -t -L 8042:127.0.0.1:8042 'ssh -L 8042:18.104.22.168:80 email@example.com
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
Ask bash to be the first thing started by appending to the kernel item of grub:
A wonderful root shell starts. Launch fsck.
When trying to connect to a remote machine, mstsc flash and nothing happen.
Background: the remote computer is running a problematic nvidia driver.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
Don't forget to reoot for the change to take effect.
To stop it:
net stop mpssvc
To start it:
net start mpssvc
* I don't remember.
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
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!
Use this tool: