Заметки/нужное/интересное

Connect to a running/existing X session remotely

From the computer you want to view the remote X session:

ssh root@computer2 -L 5900:localhost:5900

This does not need to be done as root, but you’ll need to be the actual user running the X session if you log in as a regular user. On ubuntu/debian you can use apt-get install x11vnc.


x11vnc -display :0 -passwd password

If it complains that it cannot connect to :0, try this


x11vnc -auth /var/lib/gdm/:0.Xauth -passwd password

Note that using the :0.Xauth method will work if X is just running at the login screen (so you could connect and log into X as a user).

Now, from computer1, do


vncviewer localhost

This is very useful, but make sure you use a password if port 5900 is open on computer2.

fast whole site lookup

Festplattenrettung in Berlin

Neulich einen Auftrag bei

http://xdatenrettung.de/

abgegeben und sehr angenehm überrascht worden -
zum Fixpreis von 900 € wurden die Daten von der alten Platte (Mechanik im Eimer)
gekratzt und auf eine andere(neue) kopiert.

Die (große) Konkurrenz - das was man so in Fachmagazinen findet etc. hätte ab 2000 € gekostet.

Hut ab!

SMART: Сколько жить осталось диску, и не пора ли его заменить?...

Отличная статейка на эту тему - автору "зачёт":
http://ksimute.trancom.ru/smart-hdd.shtml

Базисная инфа + также объяснение значений
http://en.wikipedia.org/wiki/S.M.A.R.T.

IBM eServer xseries 345 help

Specifications & Manual
https://www-304.ibm.com/systems/support/supportsite.wss/docdisplay?brandind=5000008&lndocid=MIGR-58359

IBM Dynamic System Analysis (DSA) Bootable version download
http://www-304.ibm.com/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-5071800&brandind=5000008

IBM Dynamic System Analysis (DSA) general software matrix
http://www-304.ibm.com/systems/support/supportsite.wss/docdisplay?brandind=5000008&lndocid=SERV-DSA#xseries

Diagnostic error codes - IBM eServer xSeries 345
https://www-304.ibm.com/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-53292&brandind=5000008

Flash BIOS update (DOS update package) - IBM eServer xSeries 345
https://www-304.ibm.com/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-43902&brandind=5000008

Forum
http://www.ibm.com/developerworks/forums/forum.jspa?forumID=740

Hardware compatibility list
http://www-03.ibm.com/servers/eserver/serverproven/compat/us/xseries_old/x345.html

Cable accessories - IBM eServer xSeries 345
https://www-304.ibm.com/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-43578&brandind=5000008

"LSI-1030 integrated RAID controller" capabilitys
EN: http://publib.boulder.ibm.com/infocenter/eserver/v1r2/index.jsp?topic=/diricinfo/fqy0_troscsiq.html
DE: http://publib.boulder.ibm.com/infocenter/eserver/v1r2/index.jsp?topic=/diricinfo/fqy0_clsi10x0.html
The integrated controller can serve/create only one raid1 volume of two discs (+ 1 hot spare)
:-(

IBM Server Simulators
http://www-304.ibm.com/systems/support/reflib/simulators/
Great resource!!!

ISCSI unter Debian

how to set up iSCSI initiator under debian etch r3

echo "deb http://www.backports.org/debian etch-backports main contrib non-free" > /etc/apt/sources.list
apt-get update

cd /usr/local/src
wget http://kent.dl.sourceforge.net/sourceforge/iscsitarget/iscsitarget-0.4.16.tar.gz
tar xfz iscsitarget-0.4.16.tar.gz
cd iscsitarget-0.4.16
make
make install install-kernel
apt-get -y -t etch-backports install iscsitarget

-----------

http://www.pug.org/index.php/ISCSI_unter_Debian

-------
Unter WIndows: http://gentoo-wiki.com/HOWTO_iscsi

Create Personal Calendar

exim brief command list

>> Count the number of messages in the queue.
root@localhost# exim -bpc

>> Listing the messages in the queue (time queued, size, message-id, sender, recipient).
root@localhost# exim -bp

>> Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals).
root@localhost# exim -bp | exiqsumm

>> Check what Exim is doing right now.
root@localhost# exiwhat

>> Test how exim will route a given address.
root@localhost# exim -bt user@localdomain.com

>> Display Exim's configuration settings.
root@localhost# exim -bP

>> Search the queue for messages from a specific sender.
root@localhost# exiqgrep -f [luser]@domain

>> Search the queue for messages for a specific recipient/domain.
root@localhost# exiqgrep -r [luser]@domain

>> Print messages older than the specified number of seconds. Eg: messages older than 1 hour.
root@localhost# exiqgrep -o 3600 [...]

>> Print messages younger than the specified number of seconds. Eg: messages less than an hour old.
root@localhost# exiqgrep -y 3600 [...]

>> Match the size of a message with a regex. Eg: Messages between 500-599 bytes.
root@localhost# exiqgrep -s '^5..$' [...]

>> Match only frozen messages.

root@localhost# exiqgrep -z

>> Match only NOT frozen messages.
root@localhost# exiqgrep -x

>> Print just the message-id of the entire queue.
root@localhost# exiqgrep -i

>> Start a queue run.
root@localhost# exim -q -v

>> Start a queue run for just local deliveries.
root@localhost# exim -ql -v

>> Remove a message from the queue.
root@localhost# exim -Mrm <message-id> [ <message-id> ... ]

>> Freeze a message.
root@localhost# exim -Mf <message-id> [ <message-id> ... ]

>> Thaw a message.
root@localhost# exim -Mt <message-id> [ <message-id> ... ]

>> Deliver a message, whether it's frozen or not, whether the retry time has been reached or not.
root@localhost# exim -M <message-id> [ <message-id> ... ]

>> Deliver a message, but only if the retry time has been reached.
root@localhost# exim -Mc <message-id> [ <message-id> ... ]

>> Force a message to fail and bounce as "cancelled by administrator".
root@localhost# exim -Mg <message-id> [ <message-id> ... ]

>> Remove all frozen messages.

root@localhost# exiqgrep -z -i | xargs exim -Mrm

>> Remove all messages older than five days (86400 * 2 = 172800 seconds).
root@localhost# exiqgrep -o 172800 -i | xargs exim -Mrm

>> Freeze all queued mail from a given sender.
root@localhost# exiqgrep -i -f user@example.com | xargs exim -Mf

>> View a message's headers.
root@localhost# exim -Mvh <message-id>

>> View a message's body.
root@localhost# exim -Mvb <message-id>

>> View a message's logs.
root@localhost# exim -Mvl <message-id>

>> Add a recipient to a message.
root@localhost# exim -Mar <message-id> <address> [ <address> ... ]

>> Edit the sender of a message.
root@localhost# exim -Mes <message-id> <address>