Montag, 29. Dezember 2008

siemens 4000 micro needs SM1

The siemens telefon 4000 4010 4015 micro needs Slim-Lumberg-SM1
The SM2 is not compatible!

Dienstag, 16. Dezember 2008

edit initrd image

1. Rename:
mv initrd.img initrd.img.gz
2, Uncompress:
gzip -d initrd.img.gz
3. Extract: (WARNING!! without "--no-absolute-filenames" extracts in your root "/")
mkdir root
cd root
cpio -i --no-absolute-filenames < ../initrd.img
4. Do the editing
5. New archive:
find . | cpio -o -H newc > ../initrd_new.img
6. Compress:
cd ../
gzip -c initrd_new.img > initrd_new.img.gz
7. Rename:
mv initrd_new.img.gz to initrd.img

Montag, 1. Dezember 2008

howto repair the MBR in linux

1. Pop in the Live CD, boot from it until you reach the desktop.
2. Open a terminal window or switch to a tty.
3. Type "grub"
4. Type "root (hd0,6)", or whatever your harddisk + boot partition numbers are (my /boot is at /dev/sda7, which translates to hd0,6 for grub).
5. Type "setup (hd0)", ot whatever your harddisk nr is.
6. Quit grub by typing "quit".
7. Reboot.

Sonntag, 30. November 2008

keyboard writes just with capital letters

xmodmap -e 'add Lock = Caps_Lock'
and then press shift and caps_lock

Donnerstag, 6. November 2008

raid tools

To add a device /dev/sdc1 to the raid md0 after failure use

mdadm /dev/md0 --add /dev/sdc1

Montag, 27. Oktober 2008

add device to raid

To create a RAID10 do the following
mdadm --create /dev/md0 --level=10 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd

to insert a new hard disc by replacing a broken one do
mdadm --manage /dev/md?? --add /dev/newpartition

to monitor your RAID and to send an email if a disc fails:
mdadm --monitor --scan --mail=office@wimmer-christian.de

Samstag, 27. September 2008

Midnight Commander shows strange characters

If mc shows strange characters (lines are not drawn, ...) then the shell variable
LANG is not set correctly.
You can change the LANG variable permanently to be en_US.ISO-8859-1 like

echo "export LANG=en_US.ISO-8859-1" | sudo tee -a /etc/bash.bashrc

or just for the mc :

echo "alias mc='export LANG=en_US; mc'" | sudo tee -a /etc/bash.bashrc

Both worked for me.

Donnerstag, 26. Juni 2008

error message when compiling v4l-dvb-experimental

if you get an error message like usage_count... then just comment this lines in that files.

tvtime, kwintv, xawtv no sound

Execute this line after you started the application. Maybe you need to do this as root

sox -w -r 32000 -t ossdsp /dev/dsp3 -t ossdsp /dev/dsp

please adjust /dev/dscp3 and /dev/dsp to your needs.

xawtv liefert X Error of failed request: XF86DGANoDirectVideoMode

xawtv -c /dev/video -remote -global:filter "linear bend"

Mittwoch, 25. Juni 2008

printing DHL postage stamp

If you want to make a test print with acroread (i.e. to print a DHL postage stamp)
and you get the error message "lp: The printer or class was not found"
then set up the default printer to have the name "undefined".
You can do this via hp-setup -a. Only if it looks like this:
linux>lpq
undefined is ready
no entries
linux>

then you can print.

Montag, 9. Juni 2008

encryption

-> /etc/init.d/boot.crypto start to start the encryption daemon
-> give the passwords
-> dmsetup ls
shows the encrypted devices
-> mount "device" "directory"
mounts the "device" to the "directory"
-> cryptsetup remove "device"
removes the link and after this it can not be mounted again.

by hand procedure

losetup /dev/loop0 soft_08062008 (soft_08062008 is a file)
cryptsetup luksOpen /dev/loop0 softcont (softcont is any name)
mount /dev/mapper/softcont softcontainer (softcontainer is the directory where the data will be mounted)

Attention:
cryptsetup luksFormat /dev/loop0 will format the file
cryptsetup luksClose softcont will detach the mapping

Freitag, 30. Mai 2008

IDL shows inverted images after use of DEFROI

In case that the display of images is inverted every time you show it, it is very likely
that one system variable was changed.
Please try to set

IDL>device, set_graphics_function=3


This happens most likely if you type CTRL-C within the program DEFROI

Dienstag, 6. Mai 2008

vmware stops ctrl and shift key from working

If you encounter that vmware stops ctrl and shift keys from working in linux then do not panic!

The solution is to run setxkbmap in a shell.
This command brings back the shift and ctrl keys.

Freitag, 18. April 2008

automatic ssh login to remote without a password

If you wish to login to a remote machine without giving the password every time, use following sequence:

1) generate on your LOCAL machine a key pair with: ssh-keygen -t rsa (don't type in any password, just keep hitting enter)
2)file transfer the (local) PUBLIC key ~/.ssh/id_rsa.pub to the machine you which to automatically login to and append it to the (remote) file ~/.ssh/authorized_keys on your remote machine
3)make sure the (remote) authorized_keys is not read or modifiable by group or others my doing (remote) chmod 700 ~/.ssh/authorized_keys
4)make sure the ~/.ssh directory on the REMOTE machine is not read or modifiable by group or others my doing (remote) chmod 700 ~/.ssh
5)You may need to enable empty password authentication (need root access) on the REMOTE machine in the config file sshd_config. Make "permitemptypasswords yes". Restart SSH Daemon on REMOTE.

That's it

If you still can not log in without password then check the priorities of your home directory.
You can as well change temporarily in the file /etc/ssh/sshd_config
If this does not help, change the following option on the remote sshd config:

#LogLevel INFO
to
LogLevel DEBUG

...and of course restart the sshd daemon.
Then you see why it is still not working in the /var/log/messages file.

automatic ssh login to remote without a password

Dienstag, 29. Januar 2008

no copy/paste between vncviewer and shell

In case that there is no copy/paste functionality between a vnc session and
your linux shell then check the if the following command is running on the
computer where the vncserver is running:
>vncconfig -display :? -iconic -nowin &
the ? has to be replaced with the display of the vncsession.
It is handy to store this line already in the ~/.vnc/xstartup script