MouseTrap Getting Started
Heidi.ellis (Talk | contribs) (→Installing MouseTrap) |
Heidi.ellis (Talk | contribs) (→Installing MouseTrap) |
||
Line 71: | Line 71: | ||
# To grab the original MouseTrap files, type ''git clone git://git.gnome.org/mousetrap''. To grab Amber's mose recent fork, type ''git clone https://github.com/amberheilman/mousetrap.git''. | # To grab the original MouseTrap files, type ''git clone git://git.gnome.org/mousetrap''. To grab Amber's mose recent fork, type ''git clone https://github.com/amberheilman/mousetrap.git''. | ||
# Type ''cd mousetrap ; ls'' and make sure the "configure.in" file shows up in the list of file in the directory. | # Type ''cd mousetrap ; ls'' and make sure the "configure.in" file shows up in the list of file in the directory. | ||
− | # You need to | + | # You need to verify two lines in this file. You may edit this file using ''gedit'' or ''vi'': Type ''vi configure.in''. |
− | ## | + | ## You should see the following line: AM_CHECK_PYMOD(cv,,,[AC_MSG_ERROR(Could not find python module cv)]). |
+ | ## If you have the following: AM_CHECK_PYMOD('''open'''cv,,,[AC_MSG_ERROR(Could not find python module '''open'''cv)]), change "opencv" to "cv" the two times it appears in the line. | ||
## Save the file and exit. | ## Save the file and exit. | ||
# In the terminal window, type ''sudo ./autogen.sh''. | # In the terminal window, type ''sudo ./autogen.sh''. |
Revision as of 16:32, 19 March 2013
Contents |
Instructions for Getting Started
IRC Instructions
- server: freenode
- channel: foss2serve
Bug Tracking
- Create yourself a GNOME Bugzilla account
- Go to https://bugzilla.gnome.org/createaccount.cgi.
- Enter email address, and follow instructions in confirmation email.
Wiki Basics
- If you are new to Media Wiki, you can get a quick overview here. The box on the left labelled "Using MediaWiki" has helpful links.
Installing Fedora 18
- Note: This is for a complete wipeover an existing OS.
- Make sure the computer is shut down. Plug in USB/put in CD with live boot on it.
- For a CD install, the computer should read and boot into the installation screen. Skip until step 5.
- If booting from a USB, continue here. Quickly press key to enter BIOS options (F2 for Ubuntu for example) when prompt appears.
- Find "Boot Options" section. Under the "Boot" tab in Ubuntu. From here you can either:
- Change the boot priorities to have the USB be option one. Click on the first slot and select your USB. It will auto-switch the two. Press key to save and restart.
- Find the "Boot Override" section (if there is one) and click on your USB.
- Once you get to the grub selection screen upon boot, select Fedora (top option). If you encounter this after selecting Fedora from the grub list: error: file '/isolinux/vmlinuz0' not found / error: you need to load the kernel first / / Press any key to continue... , Continue this step; otherwise skip to step 5.
- Shut down computer. Turn back on and reboot original OS (or use another computer).
- Since I was installing over linux system, I opened the terminal.
- You can also open the location of the USB in your files so you know where it is/ where the files are. (easier to look through then on terminal)
- Type cd /media/usbname/EFI/BOOT ; ls . This will move you to the location of the file you need to editand display the files in the folder you are currently in. Make sure the "grub.cfg" file is listed.
- Type vi grub.cfg . You need to change the two occurences of "isolinux" to "syslinux".
- Move cursor over the "i" in isolinux and press "x" three times.
- Press "i" to enter Insert Mode .
- Type "sys" then press CTRL.
- Repeat for other occurence.
- Type ":x" to save and exit vi editor.
- Type "exit" to leave terminal. Shut down computer amd restart.
- Select Fedora from the grub list upon startup (assuming the USB boots first, otherwise do "Boot Override" again).
- The Fedora installer should start up. Set up accounts and passwords as you see fit and that it asks of you. Delete all things originally on the harddrive and allow for auto-partitioning. The install application is pretty self explanatory.
- I have not found any problems past here expect for the one stated above. Please add as you see fit :)
- Note: I did run into a weird "secure boot not enabled" error after fixing the initial error above, and then the screen would turn half green and not go any further. I had a friend help me and the second time he tried to boot it up, it went past the error and right into the installation screen. So, it kind of "fixed itself." I really don't know what was going on. Best guess would be something in the grub level of booting up but I didn't press this issue any further since I couldn't find any real answers and it worked the last time.
Alternative Install Instructions
- Note: This guide will have you download a Fedora Network Install CD ISO and create a bootable USB flash drive from the image, from which you will install Fedora over the internet connection. This install guide is intended for any computer capable of a) booting from USB, and b) running Fedora 18 and c) (for those with a lack of patience) a fast network connection.
1. Download the ISO image for the Fedora 18 Network Install CD from here http://fedoraproject.org/en/get-fedora-options#formats.
2. Instead of a CD/DVD, this guide uses a USB flash drive. Note that the Fedora-suggested LiveUSB tool is, in my experience, unreliable. In my case, it produces a USB stick that either a) is not recognized as bootable, or b) freezes at or after the "Secure boot not enabled" screen. So this guide suggests using the command line program dd instead (a nifty tool, which should already be installed if you're using a UNIX-based OS, that copies a disk image to a destination byte-for-byte). To put the .iso image onto a USB stick, execute the command:
# dd if=./Fedora-18-x86_64-netinst.iso of=/etc/rdisk1
3. You most likely need to login as root to do this (hence the # above). Note that I also put "r" before the device name (in the above example, I used rdisk1 instead of disk1). This enables direct access, which speeds things up considerably. If you're unsure of the location of the USB drive in the filesystem, use the command
$ fdisk -l
to find out the location of the USB flash drive.
4. dd will sit there apparently doing nothing. Don't worry -- dd can take a while (hence the reason this guide doesn't use the Live DVD ISO!).
5. After it's done, boot from the newly-minted bootable USB flash drive, follow the Anaconda install process, wait, and you're done.
- Note: To enable USB booting on your computer, check out the BIOS settings -- it's most likely in there.
Installing MouseTrap
- Open a Terminal window
- Before installing MouseTrap itself, you need to install necessary libraries: Run sudo yum install <packagename> for each of the following packages, selecting "yes" when asked:
- gnome-common
- glib2-devel
- intltool
- python-devel
- opencv-python
- python-xlib
- To grab the original MouseTrap files, type git clone git://git.gnome.org/mousetrap. To grab Amber's mose recent fork, type git clone https://github.com/amberheilman/mousetrap.git.
- Type cd mousetrap ; ls and make sure the "configure.in" file shows up in the list of file in the directory.
- You need to verify two lines in this file. You may edit this file using gedit or vi: Type vi configure.in.
- You should see the following line: AM_CHECK_PYMOD(cv,,,[AC_MSG_ERROR(Could not find python module cv)]).
- If you have the following: AM_CHECK_PYMOD(opencv,,,[AC_MSG_ERROR(Could not find python module opencv)]), change "opencv" to "cv" the two times it appears in the line.
- Save the file and exit.
- In the terminal window, type sudo ./autogen.sh.
- Type make.
- Type sudo make install.
- Type cd src to enter the source directory.
- Type mousetrap to run the mousetrap program.
- Note: You must run steps 7 & 8 again every time you pull a new and updated fork from github. To pull a new file: git pull https://github.com/amberheilman/mousetrap.git.