Archive

Archive for the ‘OS X’ Category

Comfortable X export

February 14th, 2010 dirk No comments

tired to export display settings maually before using X exports?

try adding this to your “~/.bashrc”

if [ -z "$DISPLAY" ]; then
if [ `ps -awwwux|grep  X11.app |grep -vc grep` -gt 0 ]; then
export DISPLAY=":0.0"
fi
fi

Categories: OS X Tags:

Viscosity VPN Client – Routing private networks

August 29th, 2009 dirk No comments

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.

Categories: OS X Tags:

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

July 31st, 2009 dirk No comments

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

Categories: Linux, OS X Tags:

bash customizing in OS X Leopard

September 27th, 2008 dirk No comments

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
Categories: OS, OS X Tags:

nu ratet mal…

October 5th, 2007 dirk No comments

warum dieses Blog auf einmal so anders aussieht.

Richtig: bin auf den Mac gekommen :)

Zugegeben, ich bin ein wenig spät dran (übler Mitläufer). Nach den blumigen Lobpreisungen eines durchaus begabten Coders der mit Vista auf die Klappe fiel (siehe Blogroll), wollte ich’s wissen. In der Firma lag gerade noch ein herrenloses Powerbook G4 17″ und wartete auf sinnvolle Verwendung – ein Wink mit dem Zaunpfahl.

Kurzfassung: innerhalb von 48 Stunden alle produktiven Anwendungen auf OS X migriert. Alles mit Bordmitteln oder Freeware/OpenSource. Seit gut 8 Wochen keine Abstürze, keine Bluescreens. Funktionierendes ACPI, reboot nur in Ausnahmefällen z.B. Programminstallation oder Updates. Wechseln der Monitor-Konfiguration ohne Probleme. WLAN, Bluetooth, Drucken – alles klappt reibungslos.

Die heimische Windows-Workstation wurde mittlerweile durch einen iMac ausgewechselt.

Bye bye WinXP – nicht alles war schlecht, aber die Summe der Probleme nicht akzeptabel.

Categories: OS X Tags: , ,
Stoppt die Vorratsdatenspeicherung! Jetzt klicken & handeln!Willst du auch bei der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien: