seanism DOT com Random thoughts from the world of seanism

7Mar/121

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  www.dropbox.com.  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.

29Dec/110

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"
EndSection

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

6Aug/110

CentOS 6

I noticed CentOS 6 is out.  I downloaded CentOS-6.0-i386-netinstall.iso.  So far it's working flawlessly with Virtualbox.

For those that don't have the netinstall URLs they are...

32 bit: http://mirror.centos.org/centos/6/os/i386/
64 bit: http://mirror.centos.org/centos/6/os/x86_64/

Tagged as: , , No Comments
20Apr/110

VolumeDrive VPS stats

CPU: 2 Ghz Dedicated CPU
RAM: 1 GB Dedicated Memory
HD: 50 GB Hard Drive Space
BW: 2000 GB Transfer Per Month
IP: 1 Public IP Address

#less /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.152
cache size : 12288 KB
physical id : 1
siblings : 8
core id : 0
cpu cores : 4
apicid : 32
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips : 4800.30
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]

#wget http://speedtest.rethinkvps.com/100mb.test

Saving to: `100mb.test'
100%[======================================>] 104,857,600 9.83M/s   in 15s
2011-04-21 05:58:33 (6.74 MB/s) - `100mb.test' saved

#wget http://cachefly.cachefly.net/100mb.test

Saving to: `100mb.test'
100%[======================================>] 104,857,600 10.8M/s   in 9.7s
2011-04-27 21:56:57 (10.3 MB/s) - `100mb.test' saved

#dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync

16384+0 records in16384+0 records out1073741824 bytes (1.1 GB) copied, 11.4842 seconds, 93.5 MB/s
16384+0 records in16384+0 records out1073741824 bytes (1.1 GB) copied, 11.5668 seconds, 92.8 MB/s

Geekbench

Integer
Blowfish
single-threaded scalar 1080 ||||
multi-threaded scalar 1158 ||||
Text Compress
single-threaded scalar 1215 ||||
multi-threaded scalar 1152 ||||
Text Decompress
single-threaded scalar 1172 ||||
multi-threaded scalar 1245 ||||
Image Compress
single-threaded scalar 1021 ||||
multi-threaded scalar 1005 ||||
Image Decompress
single-threaded scalar 929 |||
multi-threaded scalar 962 |||
Lua
single-threaded scalar 1778 |||||||
multi-threaded scalar 1752 |||||||

Floating Point
Mandelbrot
single-threaded scalar 1317 |||||
multi-threaded scalar 1333 |||||
Dot Product
single-threaded scalar 1873 |||||||
multi-threaded scalar 2013 ||||||||
single-threaded vector 2438 |||||||||
multi-threaded vector 2801 |||||||||||
LU Decomposition
single-threaded scalar 1511 ||||||
multi-threaded scalar 1513 ||||||
Primality Test
single-threaded scalar 2056 ||||||||
multi-threaded scalar 1587 ||||||
Sharpen Image
single-threaded scalar 3508 ||||||||||||||
multi-threaded scalar 3423 |||||||||||||
Blur Image
single-threaded scalar 3101 ||||||||||||
multi-threaded scalar 2937 |||||||||||

Memory
Read Sequential
single-threaded scalar 3221 ||||||||||||
Write Sequential
single-threaded scalar 5314 |||||||||||||||||||||
Stdlib Allocate
single-threaded scalar 2180 ||||||||
Stdlib Write
single-threaded scalar 2756 |||||||||||
Stdlib Copy
single-threaded scalar 5304 |||||||||||||||||||||

Stream
Stream Copy
single-threaded scalar 3790 |||||||||||||||
single-threaded vector 5340 |||||||||||||||||||||
Stream Scale
single-threaded scalar 2760 |||||||||||
single-threaded vector 5206 ||||||||||||||||||||
Stream Add
single-threaded scalar 3423 |||||||||||||
single-threaded vector 5627 ||||||||||||||||||||||
Stream Triad
single-threaded scalar 3509 ||||||||||||||
single-threaded vector 3339 |||||||||||||

Integer Score: 1205 ||||
Floating Point Score: 2243 ||||||||
Memory Score: 3755 |||||||||||||||
Stream Score: 4124 ||||||||||||||||

Overall Geekbench Score: 2370 |||||||||

http://browse.geekbench.ca/geekbench2/view?id=402675

Tagged as: No Comments
10Apr/110

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

http://denyhosts.sourceforge.net/faq.html#3_19

14Nov/101

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

17Oct/100

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 http://www.go-mono.com/moonlight/ 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.

8Oct/102

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 vpn.contoso.com 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.

https://wiki.ubuntu.com/VPN