The blog has moved to http://jessehouse.com/ ... Many google searches point here so I am leaving it operational, but there will be no new posts.
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Saturday, April 9, 2011

Notes - TeamCity setup on Ubuntu

Notes from setting up TeamCity on Ubuntu

TeamCity on Ubuntu
==================================================================
Go to http://www.jetbrains.com/teamcity/download/ and download the linux distribution

set JAVA_HOME : update .bashrc add the following lines
--------------------------
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk/bin/java
export PATH=$PATH:/usr/lib/jvm/java-1.6.0-openjdk/bin

tar xfz TeamCity-6.0.3.tar.gz
put extracted TeamCity directory under ~/TeamCity

open terminal and run bin/runAll.sh start from the ~/TeamCity directory

install tcWebHook plugin
==================================================================
http://tcplugins.sourceforge.net/files/tcWebHooks
- http://sourceforge.net/apps/trac/tcplugins/wiki/TcWebHooks

create directory at ~/.BuildServer/plugins - tcWebHooks
put the jar file in that directory
restart the teamcity server
there should be a new tab 'web hooks' on the build results, not in the admin section

Some notes - Ubuntu install rails 3 environment

Had this on my desktop, notes to set up Ubuntu install rails 3 environment

Ubuntu install rails 3 environment
================================================

1) Get RVM installed with ruby 1.9.2
 - http://www.christopherirish.com/2010/08/25/how-to-install-rvm-on-ubuntu-10-04/

2) Install Rails 3 gem
 - gem install rails --no-rdoc --no-ri
 - .... Successfully installed rails-3.0.5 ... 23 gems installed

3) Install redcar 'ruby ide'
 - check out
 - http://azazeal.xelixis.net/post/How-to-install-Redcar-editor-under-Ubuntu-1010-with-RVM.aspx
 - for my situation I am only installing it on ruby 1.9.2, if you plan to run multiple versions of ruby this probably will not work when you have your rvm switched to another version
  - gem install redcar --no-rdoc --no-ri
  - redcar install
 - now you should be able to type redcar at the terminal to launch the gui
 - lets make a desktop shortcut
  - right click on the desktop : Create Launcher
   - Type: Application
   - Name: Redcar
   - Command: /home/YOUR_USER_NAME/.rvm/gems/ruby-1.9.2-head/gems/redcar-0.11/bin/redcar
   - Comment: Ruby IDE
  - need a tight icon for our launcher
   - right click > Properties > click the emblem icon
   - Path: /home/YOUR_USER_NAME/.rvm/gems/ruby-1.9.2-head/gems/redcar-0.11/share/icons/redcar-icon-beta.png
  - drag the desktop icon up to the launcher bar if you want one there as well
   - need to set the icon path again for that one

4) Create a rails application 
 - mkdir projects; cd projects
 - rails new sample_app_01; cd sample_app_01
 - in redcar > File > Open Directory > projects/sample_app_01
  - ctrl+T > type Gem > open Gemfile
  - verify line : gem 'sqlite3'
 - back to the terminal
  - bundle 
  - rails g scaffold post title:string body:text
  - rake db:migrate
  - rails s
 - in a browser go to http://localhost:3000/posts


Sorry the links above are not hot, just cut and paste from my notes into a pre tag - quick and dirty

Friday, October 29, 2010

Remote desktop mac OSX to Ubuntu

There is a good program (free) for remote connections between mac OSX and Ubuntu. It is called Chicken of the VNC - in my case I needed to remote into an Ubuntu (9.04) desktop from my mac.

First step - allow remote access on the Ubuntu machine



Install Chicken of the VNC




Then open the program and type in the IP address of the machine you wish to connect to.
Done - you are now remoted!

Thursday, March 11, 2010

exclude .svn results with egrep recursive search

The exclude-dir option works nicely, I was previously was using --exclude and it would include some sub-dir .svn files
egrep --exclude-dir=\.svn -r -n {search-criteria} {directory}
i.e. find all TODO comments in the current directory and all sub directories
egrep --exclude-dir=\.svn -r -n TODO .

Found this in the comments on this post - http://antoniolorusso.com/2008/05/12/grep-excluding-svn-dirs/

.

Thursday, March 4, 2010

"Impossible to connect to file" error opening dBase file with open office on ubuntu

Turns out the ubuntu distribution of Open Office does not include the 'Database' product by default, it tries to open the file with the spread sheet program which can not handle it and errors with "Impossible to connect to file". The fix is to install the database product
System -> Administration -> Synaptic Package Manager
install openoffice.org-base
After installing you should see the 'Open Office.org Database' under Applications menu



Found the answer from this post.

Sunday, October 25, 2009

imeem on 64-bit ubuntu

Getting flash to work correctly on 64-bit Ubuntu can be challenging. By following various blog and forum posts I was able to get it to work, but never the flash player for imeem. Every now and again I would try to re-install flash and see if it would work for imeem but until last night I was never successful. 

It turns out that imeem will only work with the 32-bit flash player. After so much work to get the 64-bit player working in Firefox 3.0 and 3.5 I did not want to remove it so I downloaded Opera and installed the 32-bit player under its plugin directory and imeem works great!

  • Download and install Opera
  • verify that you cannot play music in imeem
  • Close Opera
  • download the 32-bit flash player in '.tar.gz' format
  • extract the libflashplayer.so file from the archive
  • then you will need to put this in the directory /usr/lib/opera/plugins/
  • you won't have permissions to write to that directory unless you are in sudo mode
  • open a terminal and type 'sudo nautilus'
  • copy the file into the directory (you could do this from the terminal window also probably 'sudo mv libflashplayer.so /usr/lib/opera/plugins/libflashplayer.so'
  • Open Opera
  • check the plugins - type opera:plugins in the address bar
  • you should see Shockwave Flash and it should be pointing to the libflashplayer.so file under opera plugins, by default my opera installation was pointing to /usr/lib/mozilla/plugins/ for the flash plugin, my guess is opera looks for plugins in its own directory and if not found then looks in mozilla directory
  • you should now be able to play music with imeem!

I am running Ubuntu 9.04 Jaunty Jackalope by the way. Here are some links that might work to get the 64-bit player working for Firefox


Saturday, October 17, 2009

convert mkv files to dvd with ubuntu

Turns out there is a great program for this - my guess is it works well with other formats such as avi, mpeg, etc...

DeVeDe, if you are running 9.04 (jaunty) or higher it is in the repositories

System -> Administration -> Synaptic Package Manager

enter 'devede' in the search and then install

Sunday, August 23, 2009

scrolling screen shot on ubuntu

I've been using ubuntu for the last 6 months, really like it! But also really missing SnagIt :(

so far I have come across these screen shot tools

  • built in 'save screen' program - read this post for info about that and others
  • Shutter

but none that I came across would do scrolling screen shots; currently I only needed scrolling screen shots of web pages and I just came across a great tool for that - a firefox add-on called Abduction, it is really easy to use.

For full page screen shots (including all scrollable regions) or for cropped sections of a page. Just right click on the page and select 'Save Page as Image', if you are over an 'element' it will auto select that as the cropped area, you can then adjust the crop and save, if you want the entire page the easiest seems to be right clicking where there are no elements below the mouse and then adjust the fully selected page as needed

The saved png can then be opened in Shutter for applying arrows, boxes, etc...

Sunday, May 3, 2009

bash scirpt to launch rails development environment

here is a bash script I put together to launch my rails development environment, i got tired of opening multiple terminal windows and cd to the project dir, this script
  • launches script/server in a terminal window
  • launches a new terminal and cd to the trunk
  • launches firefox at http://localhost:3000 with a specific firefox profile
  • and launches Komodo Edit - go ahead and pick the editor of your choice
this works on Ubuntu, probably on other Linux distro's that use Gnome



I saved this in a file ~/scripts/launch_YOUR_PROJECT.sh
to execute this open a terminal and type ~$ bash ./scripts/launch_YOUR_PROJECT.sh
or create a symlink in your home directory



then execute using ~$ bash launch_YOUR_PROJECT

NOTE: in theory you should not need to even specify bash at the command prompt, when I did not I received the following error "bash: launch_YOUR_PROJECT: command not found"
running 'which bash' returns '/bin/bash' which is specified in the shell script?, something to look into later.

Sunday, May 27, 2007

Ubuntu really is easy

Just installed Ubuntu Desktop on my 'old' (not that old really) Dell Dimension 2400 Celeron. Don't use this computer much anymore and have been wanting to check out Ubuntu.

well the install was way too easy.
- downloaded the iso image from http://www.ubuntu.com/getubuntu/download
- burned it to a cd using
InfraRecorder
- put that in the old 2400 and selected boot from CD-ROM
- Ubuntu OS booted from the CD and I was up and running at that point; but only from disc
- Had to click the install short cut on the desk top and wait a short while


That was it - no driver issues at all!!!
I was on my network and downloading the Ubuntu updates immediately, browing the internet with FireFox and watching avi files with Totem ...

One really cool thing with Ubuntu (maybe Linux in general?) with out any additional installs I could navigate to my other Windows machines and pull files off the File Shares; simple as going to 'Places' -> 'Network' -> 'Windows Network' -> selecting the machine to browse to

Later I might look into setting up Samba so I can share from Windows to the Linux machine

Definitly going to install the Ubuntu Server Edition on my laptop soon and create a simple web site using Ruby on Rails, just need to find that 'extra' time

Thanks to my Dad for turning me on to Ubuntu!