APT/Dpkg options I always forget

Remove a package and its dependencies

apt-get autoremove packagename

Install a specific pkg version

apt-get install package=x.x.x-version

Purge config files of remove packages

dpkg -l |awk ‘/^rc/ {print $2}’ |xargs sudo dpkg –purge

Posted in Linux, News, Ubuntu | Leave a comment

Install stable nginx on ubuntu

add-apt-repository ppa:nginx/stable
apt-get update
apt-get install nginx

Posted in News | Tagged , , | Leave a comment

Vyatta IPSEC status commands

Phase 1

show vpn ike status
show vpn ike secrets
show vpn ike sa

Phase 2

show vpn ipsec status
show vpn ipsec sa


show vpn debug

Good link with great tutorial : http://openmaniak.com/vyatta_case_ipsec.php

Posted in Sys Admin, VPN | Leave a comment

Compatibity tool prompts for ADPREP when upgrading windows server from 2003 to 2008 R2 domain

Trying to upgrade windows 2003 domain controller ( single server ) I kept getting prompted to upgrade my AD :


Ended up that I had to :
1. switch to native mode.
2. run forestprep AND domainprep

After that, all was well. hope it saves someone some time.

Posted in News, Sys Admin, Windows | Leave a comment

My Mac Tweaks

#disable DS_store

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

#disable dashboard

defaults write com.apple.dashboard mcx-disabled -boolean YES

#show hidden files

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

#stop auto open windows after a reboot

defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool


Posted in Mac, News | Tagged | Leave a comment