Archive for tag: Linux

Wrong Default Color of Formulas in OpenOffice.org Writer

27 July, 2010 (06:30) | Linux, [English Posts] | By: Wolfgang

If formulas in your OpenOffice.org Writer documents are colored wrong on screen and on printouts, perhaps the following solution may help you. By the way, I experienced this problem on Ubuntu 10.04 with OpenOffice.org 3.2.

A workaround I used until I found out about the problem's real source, is to use color black { } ...

Download Files from a List with Wget or Curl

30 June, 2010 (06:30) | Linux, Mac OS X, [English Posts] | By: Wolfgang

Problem:
You have a text file with a link to a file in each line.

Your file linklist.txt may look like this although of course the links don't have to point to the same host, same document type or similar named files.

http://example.com/download/document1.pdf
http://example.com/download/document2.pdf
http://example.com/download/document3.pdf
http://example.com/download/document4.pdf
http://example.com/download/document5.pdf

Now you want to download them all but don't want to do this manually.

Solution:
One way ...

Inserting Text in Vim’s Visual Blockmode

29 June, 2010 (06:30) | Vim, [English Posts] | By: Wolfgang

Vim's visual block mode is great for editing tabular text files. Change to visual block mode by using Ctrl-V. After that use the common Vim-move commands to select the block of text you want to edit. The next command will affect the whole block instead of only one character. To delete the whole block ...

Adding an User to an Existing Group

26 June, 2010 (06:30) | Linux, Mac OS X, UNIX, [English Posts] | By: Wolfgang

To add an existing user to an existing group from the command line use the following commands:

On Linux
usermod -a -G username groupname

On Mac OS X
dscl / -append /Groups/groupname GroupMembership username

Batch Convert Images with ImageMagic and a For Loop on Zsh

24 June, 2010 (06:30) | Linux, Mac OS X, zsh, [English Posts] | By: Wolfgang

One fast way to generate grayscale images named *.grayscale.png from multiple *.png images with ImageMagick is to use the zsh command for i (*.png) convert -colorspace Gray $i ${i%.*}.grayscale.png. If you want to override the existing images use for i (*.png) convert -colorspace Gray $i $i instead.

The zsh option short_loops has to be set ...

Connecting Through SSH SOCKS Proxy on Linux or Mac OS X

23 June, 2010 (06:30) | Miscellaneous, ssh, [English Posts] | By: Wolfgang

Problem
You work for a client that provides you with a connection to transfer files over SSH (SFTP). He wants to adjust the corporate firewall settings so that requests from your IP address don't get rejected. The problem is that you work from different places with different IP addresses. It would be time-consuming to add ...

Problems with Java Powered Websites in Ubuntu

15 June, 2010 (06:30) | Linux, Ubuntu, [English Posts] | By: Wolfgang

If you have problems loading Java (not JavaScript) powered Websites in Ubuntu 10.04 try to switch to another implementation.

At first you have to install the Java Flavors you would like to test. If you have no clue which one to try, Suns own implementation is probably a good starting point. Install it with apt-get ...

Ctrl-C and Ctrl-V in GVim

9 June, 2010 (06:30) | Linux, Mac OS X, Vim, [English Posts] | By: Wolfgang

If you are missing the default copy and paste shortcuts in GVim, map the keys accordingly and add this to your ~/.gvimrc:

nmap <C-V> "+gP
imap <C-V> <ESC><C-V>i
vmap <C-C> "+y

However this probably isn't the best idea because you are also overwriting default settings like Ctrl-V for the great visual mode.

If you are using OS X this ...

Problems with VNC if Visual Effects are Enabled in Ubuntu

8 June, 2010 (06:30) | Linux, ssh, Ubuntu, [English Posts] | By: Wolfgang

Ubuntu's default VNC server vino seems to have serious problems if you connect to it with visual effects enabled on the machine. At least with my configuration it only updates the remote host user interface once. Then the remote machine still reacts to clicks but I can't see the effect of the click.

One pragmatic ...

Changing the Default Font of gvim

7 June, 2010 (06:30) | Linux, [English Posts] | By: Wolfgang

If you want to change the default font of your gvim editor add or replace the guifont (or its shortcut gfn) setting in your ~/.gvimrc. Keep in mind that you have to to escape the spaces with backslashes.

set guifont=Droid\ Sans\ Mono\ 11