seanism DOT com Random thoughts from the world of seanism


1Password in Linux

I've been using 1Password for my password needs and love it.  The one thing that is frustrating is they don't have a client for Linux.  I was able to work around this by using their 1Password Anywhere feature.

To do this I opened Chrome and logged into  Remember to check the Remember me checkbox.

Once logged in navigate to your 1Password.agilekeychain folder and open your 1Password.html file.  Once it's opened click the wrench in Chrome and under Tools click Create Application Shortcuts...

You can now either add that shortcut to your launcher or leave it on your desktop.

As an FYI this requires having your 1Password database sync with Dropbox and  having Chrome installed.

You can also install WINE and install 1Password for Windows as you normally would and it functions fine.  I prefer the  web based client though.


Scrolling with TrackPoint in Ubuntu 10.04

My Thinkpad X300 is a great machine and everything in Ubuntu 10.04 works natively except for scrolling with the TrackPoint.  I've gotten it working but it never sticks after putting the laptop to sleep.  Below are the instructions modified for a Thinkpad X300.

1. Install gpointing-device-settings
Open terminal and type sudo apt-get install gpointing-device-settings

2. Enable scrolling with TrackPoint
Open gpointing-device-settings and click DualPoint Stick and check use wheel emulation with button 2.

3. Create /usr/lib/X11/xorg.conf.d/20-thinkpad.conf

Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "DualPoint Stick"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"

I modified the instructions found here since they only partly worked for my X300.


Remove an IP Address from denyhosts

I recently setup a VPS and installed Denyhosts.  I must have entered an incorrect password at some point cause I couldn't SSH into my server.  After removing my IP from /etc/hosts.deny I could log in once but after that I was added to the hosts.deny file again.

To completely remove an IP address from Denyhosts you'll need to...

  1. Stop DenyHosts - sudo /etc/init.d/denyhosts stop
  2. Remove the IP address from /etc/hosts.deny
  3. Edit /var/lib/denyhosts/hosts and remove the lines containing the IP address. Save the file.
  4. Edit /var/lib/denyhosts/hosts-restricted and remove the lines containing the IP address. Save the file.
  5. Edit /var/lib/denyhosts/hosts-root and remove the lines containing the IP address. Save the file.
  6. Edit /var/lib/denyhosts/hosts-valid and remove the lines containing the IP address. Save the file.
  7. Edit /var/lib/denyhosts/user-hosts and remove the lines containing the IP address. Save the file.
  8. (optional) Consider adding the IP address to /var/lib/denyhosts/allowed-hosts
  9. Start DenyHosts- sudo /etc/init.d/denyhosts start


Fixing Full Screen Flash in Ubuntu 10.10

If you have Ubuntu 10.10, Intel Graphics and can't view full screen flash videos from Youtube, Hulu, or any other site this fix might help...

sudo mkdir /etc/adobe
sudo su
sudo echo \"OverrideGPUValidation = 1\" >> /etc/adobe/mms.cfg


Silverlight in Ubuntu 10.04

Moonlight is an open source implementation of Microsoft Silverlight for Unix systems. Ubuntu 10.04 LTS already has it in the repository.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libmoon moonlight-plugin-mozilla moonlight-plugin-core

or you can go to their website and install the Chrome extension or Firefox plug-in.

You'll need to restart your browser for it to take effect.

Update: Moonlight does NOT support DRM content.  That means no Netflix.


Connecting to a Windows PPTP VPN from Ubuntu 10.04

If you'd like to connect to a Windows PPTP VPN here is a howto to make it happen.

You need to have Ubuntu 10.04 if not you need to apt-get some packages that are not installed by default.

  1. Click 'System' -> 'Preferences' -> 'Network Connections'
  2. Click the 'VPN' tab
  3. Leave 'Point-to-Point Tunneling Protocol (PPTP)' selected
  4. 'Click Create...'
  5. Type in a connection name and check the box below it if you'd like the connection to connect automatically
  6. For 'Gateway' enter in the VPN hostname or IP IE or x.x.x.x
  7. For the username type in DOMAINusername where DOMAIN is your Windows domain name and username is.... your username
  8. Type in your password and leave the 'NT Domain:' box empty
  9. Click 'Advanced...'
  10. Check 'Use Point-to-Point encryption (MPPE) and leave 'Security' on 'All Available (Default)'
  11. Check 'Allow BSD data compression'
  12. Check 'Allow Deflate data compression'
  13. Check 'Use TCP header compression'
  14. Leave 'Allow stateful encryption' and 'Send PPP echo packets' unchecked
  15. Click 'OK'

Now this will send all your network traffic over the VPN. If you'd like to still be able to use your local connection you need to click the 'IPv4 Settings' tab, click 'Routes...' and check 'Use this connection only for resources on its network'. Enabling this can be a security risk so you should talk to your IT administrator first before enabling it. That option is called split tunneling.

Click 'Apply'

Now to connect left click your network icon in the panel on the top right and hover over 'VPN Connections' and left click the connection you just created.

I'm not on a connection that allows me to do further testing but when I can I'll update this with more information.

For earlier versions of Ubuntu use the following KB article to help you install the necessary programs.