Hopeless rantings of a software developer

Making eclipse look good in ubuntu

by on Feb.05, 2011, under Java, Linux, Programming, Ubuntu

From when I started development using Java, I have always preferred the Linux environment. Firstly, it made me feel more confident, and when I got proficient with the terminal, it also made me more productive. However, there are always a few things that I have missed that were available (or better done) in Windows systems. Now I will show you how to cover one of those obstacles, the look and feel of Eclipse under Ubuntu.

edit your .gtkrc-2.0 file in your home folder (create one if id doesn’t exist)

1
vlada@ubuntuBox:~$ vim .gtkrc-2.0
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
style "gtkcompact" {
font_name="Sans 8"
GtkButton::default_border={0,0,0,0}
GtkButton::default_outside_border={0,0,0,0}
GtkButtonBox::child_min_width=0
GtkButtonBox::child_min_heigth=0
GtkButtonBox::child_internal_pad_x=0
GtkButtonBox::child_internal_pad_y=0
GtkMenu::vertical-padding=1
GtkMenuBar::internal_padding=0
GtkMenuItem::horizontal_padding=4
GtkToolbar::internal-padding=0
GtkToolbar::space-size=0
GtkOptionMenu::indicator_size=0
GtkOptionMenu::indicator_spacing=0
GtkPaned::handle_size=4
GtkRange::trough_border=0
GtkRange::stepper_spacing=0
GtkScale::value_spacing=0
GtkScrolledWindow::scrollbar_spacing=0
GtkExpander::expander_size=10
GtkExpander::expander_spacing=0
GtkTreeView::vertical-separator=0
GtkTreeView::horizontal-separator=0
GtkTreeView::expander-size=8
GtkTreeView::fixed-height-mode=TRUE
GtkWidget::focus_padding=0
}
class "GtkWidget" style "gtkcompact"
 
style "gtkcompactextra" {
xthickness=0
ythickness=0
}
class "GtkButton" style "gtkcompactextra"
class "GtkToolbar" style "gtkcompactextra"
class "GtkPaned" style "gtkcompactextra"

And that’s all there is to it. You may also want to change the font of the eclipse text editor to something like DejaVuSansMono (I use Book 9 for the font style).

The final result looks like this:

Screenshot of eclipse

Eclipse

Leave a Comment more...

SSH Tunneling

by on Nov.26, 2009, under Linux

ssh tunnel diagram

This could be some helpful info for all you guys that

  • Feel unsecured browsing from your local coffee shop
  • Need to rid yourself of the shackles of corporate restrictions.

The only limitation to this method is that you need an SSH server somewhere where you will divert all your traffic to. I also use putty and Firefox.

So here are the steps:

1. Create the Tunnel:

  1. Open putty and enter your SSH server specs (ip, port)
  2. If you have to go through a corporate proxy enter this under: Connection -> Proxy (Use http)
  3. Under Connection -> SSH -> Tunnels, create a new entry by typing in:
    • Source port: 9999 (or any other number that is not used in your network traffic)
    • Destination: localhost
    • Dynamic
    • AUTO
  4. Create the connection and login (using your linux credentials for the ssh connection).

2. Pass the firefox traffic through the tunnel:

  1. Open the firefox Options page (Tools->Options)
  2. Go into Advanced-> Network -> Connection -> Settings …
  3. Manual define a http proxy pointing to your company http proxy (this step is optional / needed only if you surf your web through a proxy)
  4. Under socks host enter: localhost and port 9999 (created previously)
  5. Check the SOCKS5 option and click OK

You are now secure browsing :)

p.s. One thing to mention is that your DNS requests are still being passed through to your http proxy so people can still see what pages you request (this doesn’t go through the tunnel by default). In firefox go to about:config and set the parameter network.proxy.socks_remote_dns to true. This should provide for more anonimous browsing.

Cheers

p.s. Image taken from Will O’Brien, thanks :)

Leave a Comment more...

Hello world!

by on Jun.14, 2009, under News

Welcome to yet another attempt of a blog. Hope this one will stick.

I’ll start this off by writing up my own version of an article about ssh tunneling in a day or two (or three).

Cheers :)

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!

Archives

All entries, chronologically...