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