acloudtree

Tag Ubuntu

(Nerd) Ubuntu 9.10 + installing wireshark

From the command line

sudo apt-get install wireshark

Once the process completes, wireshark will be installed. The only problem is that if you open the wireshark application, there will not be any physical eth(N) devices to sniff. So how do we remedy this?

Open the application ‘Main Menu’

PathToMainMenu

Select wireshark properties

SelectWiresharkProperties

We need to change the command from this
Wireshark

To this
GksudoWireshark

And what is the reason for this? Well the ethernet or wireless devices we are after are owned by root. So if we tack on the gksudo command to the front of the wireshark init command, we are effectively opening wireshark as root. With all the implied responsibilities and permissions, make sense?

Ubuntu + VIM + CakePHP 1.2 + .ctp syntax highlighting

Found this blog post concerning setting up the Cakephp view extension (.ctp) to use the same highlighting as (.php).

blog

I didn’t find his solution that helpful, but one of the comments said to add this to my ‘.vimrc’ file in my home directory.


if has(”autocmd”)
autocmd BufEnter *.ctp set syn=php
endif

And since we are on the topic here is how my .vimrc is setup

set tabstop=2
set shiftwidth=2
set expandtab

if has("autocmd")
autocmd BufEnter *.ctp set syn=php
endif

syn on

-later

Copyright © Jared Folkins
Programming, Computers, Writing, Economics, and Life

Powered by WordPress