don't worry dear – it's just coincidence

Viscosity VPN Client – Routing private networks

by dirk on Aug.29, 2009, under OS X

Excerpt from Viscosity Support Forums:

Problem is, I want the standard 192.168.x.x and the 10.x.x.x networks to be routed locally, not through the VPN.

Try the following:

1. Go to the Viscosity menu, select Preferences, and Edit your connection
2. Click on the networking tab
3. Click the small “+” button in the Routing section to add a new route
4. Enter a Route/IP of “192.168.0.0″ (no quotes). Enter a submask of “255.255.0.0″. Enter a gateway of “net_gateway”. Click the Add button.
5. Repeat steps 3 and 4, expect with a Route/IP of “10.0.0.0″, and a submask of “255.0.0.0″
6. Click the Save button and try connecting.

The “net_gateway” command instructs the traffic to be routed through your normal local gateway rather than through the VPN connection.

Leave a Comment more...

OS X Samba client creates files / directories with wrong access rights

by dirk on Jul.31, 2009, under Linux, OS X

Wanted: files with 0660, directories with 770

Config:

  • create mask = 660
  • directory mask = 770
  • force create mode = 660
  • force directory mode = 770

Problem: OS X clients creates

  • files with 644 or 764 or 600
  • directories with 2700 or 0770 or 0700

Solution:

unix extensions = no

in smb.conf on server

Leave a Comment more...

Lotus Domino 8.0.2 update hickups

by dirk on Sep.30, 2008, under Uncategorized

After updating a Domino Server from 8.0 to 8.0.2 on RHEL and installation of the german language pack, the console.log looked very strange:

30.09.2008 16:18:53   33:02
ConvertZoneToText: Warning Time Zone -1 not found!
30.09.2008 16:18:53   33:14
ConvertZoneToText: Warning Time Zone -1 not found!

After a little research the problem cleared up: domino is missing ressource files for the servers default language. This was solved after the correct language was set in the rc_script:

DOMINO_LANG="de_DE.UTF-8"
Leave a Comment more...

recursive chmod directories only

by dirk on Sep.30, 2008, under Linux

find . -type d -exec chmod 755 {} \;

oder (mit Ausgabe)

find . -type d -exec chmod 755 {} \; -print
Leave a Comment more...

bash customizing in OS X Leopard

by dirk on Sep.27, 2008, under OS, OS X

Since I’m using Mac OS X for admin tasks at work I was annoyed about the keymappings and presets in Terminal.app. As bash is the standard shell in Leopard, I missed the settings that I’m accustomed to as a long term Linux user and admin.

If every solution could be so easy. Just create the neccessary config files:

touch ~/.bash_profile

paste the following code in ~/.bash_profile:

if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
touch ~/.bashrc

As usual, you can tweak almost all bash settings in your “~/.bashrc”.
Here are some examples:

# Define how Bash prompt looks like:
#
# User @ Host - working dir
export PS1='\u@\h\w: '
 
# Cli Colors
export CLICOLOR=1
# use bold blue for dir’s
export LSCOLORS=Exfxcxdxbxegedabagacad
 
# history handling
#
# Erase duplicates
export HISTCONTROL=erasedups
# resize history size
export HISTSIZE=5000
# append to bash_history if Terminal.app quits
shopt -s histappend
 
alias l='ls -al'

Adapt the keyboard mappings to your needs:

touch ~/.inputrc

The following code shows some example setting for your ~/.inputrc:

# do not bell on tab-completion
set bell-style none
# set bell-style visible
set convert-meta off
set input-meta on
set output-meta on
set show-all-if-ambiguous on
set visible-stats on
set completion-ignore-case On
 
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...