How To: Install Stata 10 on Ubuntu 7.10

Computers, Economics, How-To's, Linux 1 Comment »

I recently had a need to install Stata 10 on Ubuntu 7.10.  It’s actually pretty easy.

1. Open a terminal
2. We’re going to have to do a few things as root so type ‘sudo su‘.
3. Type ‘mkdir -p /usr/local/stata10 && cd /usr/local/stata10
4.  Put the Stata 10 CDROM in your computer.  In the terminal, type ‘/media/cdrom0/install‘.
5.  Answer the appropriate questions in the installation wizard.
6.  When it’s done installing, it will ask you to run ‘./stinit‘.  Go ahead and type that in to the terminal.
7. After entering your licensing information, type this: ‘ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3
8. You can now start Stata 10 from the commandline with ‘/usr/local/stata10/stata‘ or ‘/usr/local/stata10/xstata‘ if you want the xwindow version.
9. Optionally, you can run ‘ln -s /usr/local/stata10/stata /usr/bin/stata‘ if you want to run Stata with just ‘stata‘ at the commandline (or you could also include the install directory in your path)

Popularity: 36% [?]

Linux: Convert .bin/.cue to .ISO

All Posts, How-To's, Linux No Comments »

So what do you do when you have a “backup” that you have in .BIN,.CUE files and it needs to be mounted as an .ISO?

Bchunk is your friend here:

#> bchunk [source bin file] [source cue file] [target basename]

The first two directives are self-explanatory.  The third is the target base filename prepended by the location (if outside the current directory).  Here’s an example:

You have two files: cd-image.bin and cd-image.cue.  You’re in your home directory.  You want your newly created .ISO to be in /tmp as /tmp/cd-image.iso.  Here’s what you do:

#> bchunk cd-image.bin cd-image.cue /tmp/cd-image

Notice that I left off the .ISO at the end.  bchunk adds that for us.  I recommend adding the -v switch for verbosity.

Popularity: 16% [?]

How-To: Use your existing Windows Installation in Ubuntu

All Posts, Computers, How-To's, Linux 2 Comments »

While Linux is a great operation system, often times it’s not as easy to get things done as it is in Windows, especially if you’re used to how Windows works (or doesn’t). I found myself in a similar situation several days ago when I finally got around to installing Linux on my desktop. My two servers have been running Ubuntu for some time now, and thanks to the efforts of Colin and Lann, I have started to accumulate a decent working knowledge of the operating system. Still, sometimes I want to use Photoshop instead of GIMP or InDesign or some program that only runs in Windows. So, I followed these steps to making both systems live together peacefully using VMWare Server and Ubuntu Feisty Fawn:

First, there are some prerequisites for this:

  1. You should have a fairly speedy computer and plenty. Any virtualization software will tax your CPU and RAM. Personally, I recommend a dual-core processor, but that is by no means a requirement. As a bencmark, I have an Athlon X2 3800 and 2GB of RAM and I can hardly tell that Windows is being virtualized.
  2. You should install Linux on a separate hard drive. I have Linux installed on a 15GB hard drive I found last week, Windows was installed on another drive years ago. Remember, what we’re doing here is running Linux while keeping our existing windows installation. You don’t really need to have a separate hard drive, but it will make things much more responsive and prolong your hardware’s longevity. I have a third hard drive used for data storage.
  3. You should have some of your original install media with you. Sometimes during this process, some windows programs will become “unregistered.” For example, I have Adobe Creative Suite 3 and I had to re-register it (free) after this process because it relies on a hardware profile to stay authenticated. Since we’re changing to VMware’s virtualized hardware, we have to be conscious of programs that relied on the old setup.
  4. You should have a basic understanding of manipulating and navigating the Linux file system.
  5. Obviously, this tutorial comes caveat emptor. If you destroy your computer or its data by following this tutorial, all you will get from me is an unsympathetic “Yeah, you’ll have that.”

Great, now that we’ve got those out of the way, let’s start with our new install of Ubuntu:

  1. Let’s assume the following: You have Linux installed on /dev/hda1 and Windows installed on /dev/hdb1. This is IMPORTANT! You will have to substitute the actual locations of your installations for these devices.
  2. Your Windows installation is most likely on an NTFS partitioned drive. Ubuntu may automatically mount this drive, but it only supports read-only. However, there is a package that adds write support. Open up a terminal and run:
    sudo apt-get install ntfs-3g
  3. Unmount the Windows drive with:
    sudo umount /dev/hdb1
  4. Edit /etc/fstab and locate where your windows drive is being mounted. Change the mount type from ntfs to ntfs-3g. Also, change the options to defaults.
  5. Remount the Windows drive:
    sudo mount /dev/hdb1
  6. Install VMware:
    sudo apt-get install vmware-server
  7. Run vmware server:
    vmware
  8. Add a new virtual machine. Choose the Custom installation and configure everything appropriately. When it asks where to save the virtual server data, you can accept the default location. We will tell it more information on the next screen.
  9. Here’s the important part. When it asks whether or not to create a new virtual disk, the bottom option will say to use a current physical drive. We want that option. Select it and choose /dev/hdb and tell it to use the whole drive. Obviously, be sure to substitute the location of your own installation.
  10. At this point you should be able to boot up the virtual machine and see your familiar Windows installation.

Tips:

  1. You should either change the permissions of the mount point for your windows drive or run vmware as root (with gksu vmware) so that it can access that mount point. Otherwise, VMware will throw permissions errors.
  2. If your Linux or Windows installations are on SATA drives, then your devices will start with sd instead of hd. For example, I have a SATA hard drive located at /dev/sda.

You can leave questions or comments below.

Popularity: 34% [?]

How-to: Use Case’s Single Sign-On (SSO) service to track visitors to your website

All Posts, How-To's 2 Comments »

Premise

Case incorporates the JA-SIG Single Sign-On service as a way to offer convenient, cross-service authentication on services like the Case wiki, blog, and Blackboard. The basic idea is that a user connects to a service (let’s say blackboard.case.edu), which in turn forwards them to the login.case.edu SSO service. The SSO service issues the user a ticket for that service. On consecutive connections to blackboard.case.edu, the server checks the ticket submitted by the user against the SSO service to see if the user is still logged in. If yes, the session continues. If not, they are requested to log in.

Tracking Visitors

The SSO service provides a ‘user look-up function’ that allows web developers to take user-submitted tickets and see what Network IDs are registered to them. This is how Blackboard knows that you are abc123 when you log in. This also allows web developers the opportunity to track website visitors, even if their site doesn’t require authentication for anything. I set up a demo page here. You can click on the link at the bottom to see the other Network IDs I’ve recorded.

So What?

This feature allows visitors of the site to be tracked and targeted for advertising. Anyone with a computer on the Case network can use the SSO service to track visitors to their website. It would not be a stretch for people to use this information, combined with LDAP to match Network IDs to real names and the IP Subnet lookup page, to determine who accessed their site, and from where. Based on this information, you could determine plenty about your users and how they’re using your site. A simple JavaScript snippet could call the X and Y coordinates of the user’s mouse and asynchronously send them back to the server. Later, those coordinates could be played back to see the user’s mouse movements and gestures. Do some people highlight the text on your page with their cursor? Maybe that’s because your shoddy CSS makes the text look indistinguishable from the background.

By being smart about user tracking, you can glean a lot of information about your site’s visitors.

Popularity: 15% [?]

How-to: Download your favorite Youtube videos for offline viewing

All Posts, How-To's No Comments »

Prerequisites

For this how-to, you’ll need the following:

  • Firefox
  • The LiveHTTPheaders extension
  • A basic understanding of HTML and how web browsers work (don’t let this scare you.)

Background

Youtube’s videos are shown in Macromedia’s Flash video format (FLV). FLV is based on MPEG-4, and can be decoded easily with VideoLAN player (VLC). A page loads with the video you want to see, and the embeded Flash video player requests the appropriate FLV file to play. All you need to do is eavesdrop on the video player’s request back to Youtube for the FLV and download it for yourself.

Instructions

  1. Go to the page of whatever video you want to download. For this example, we’ll say it’s the ‘The completely Uncalled For’ video found at http://youtube.com/watch?v=bn1-M5Ze0p8.
  2. Before you load the page, launch LiveHTTPheaders.
  3. Once the video starts playing, look through LiveHTTPheaders’ output for something that says ‘http://youtube.com/get_video?video_id=bn1-M5Ze0p8&t=[...]‘. This is the address we’re looking for. We want the entire address, including the part after ‘&t=’.  That part at the end is important because it’s randomly generated each time.
  4. Right-click on that block and hit copy. Paste it in to your browser’s address bar.  This will start your download. I recommend you save it to your hard disk.
  5. This video can be played with VLC, and probably Windows Media Player if you find the proper codec.

Ending Remarks

This is the easiest way I know to grab the videos. If you know of anything faster, please let me know. I’m interested in automating the process with small web app that takes the link to the video and downloads it for you. If you want to transcode the video in to some other format (iPod video perhaps), I recommend the SUPER video converter.

Popularity: 12% [?]

How-To: Send Me a Help Invitation

All Posts, How-To's No Comments »

The Premise

Sometimes I’ll help someone do something on their computer via Windows XP’s Remote Assistance feature. This saves me the trouble of actually having to go to the computer to fix it. This is especially useful if all I need to do is a quick fix, but it’s something that’s faster for me to do myself than explain over the phone or (worse) type on instant messenger.

What’s Required?

There are ways around these limitations, but it take’s too long to explain. Basically, if you can’t accomplish these, you’re probably better off calling the help desk at 216-368-HELP (4357).

  • You should be connected to the Case wired network or you should be on the VPN.
  • If you’re running the Windows Firewall, everything should work automagically. If you’re running some other firewall like ZoneAlarm or Kerio or MacAfee, then it is probably best to disable your firewall for the time being.
  • You need to either have administrator privileges on the computer, or at least have the privilege to send a Remote Assistance request.

How Does it Work?

(You can skip this part if you just want to go straight to the instructions.)

Basically, you are setting up a special remote desktop session that allows me to share your screen and collect some more information I might use to more quickly solve your problem.  We’ll be able to chat via an instant messaging program, and I’ll be able to control your keyboard and mouse, if you let me.
How Do I Do it?

  1. Most of you will be able to go to Start -> All Programs -> Remote Assistance. If you can’t find it, go to Start -> Run and then type ‘rcimlby.exe -LaunchRA’ without the quotes.
  2. Click on ‘Invite Someone to Help You.’
  3. At the bottom of the screen, click on ‘Save Invitation as file (advanced)’
  4. Click ‘Continue’
  5. Type in some kind of password that you can tell me later and click “Save Invitation”
  6. Send me the file you just saved. It’s probably in My Documents, unless you picked another location to which to save it.  You can send it to me via e-mail or over instant messenger.
  7. The rest is up to me now.

That’s it!

Popularity: 12% [?]

How-To: Use lists.case.edu to create unlimited Facebook accounts.

All Posts, How-To's No Comments »

So, you want to create a bunch of fake Facebook accounts (or you want to subscribe to something shady, where they might sell your e-mail address). You could use the mail aliases feature, but you’re limited to five aliases. However, what if you created an e-mail list where you were the only subscriber? This can be accomplished at lists.case.edu. Here’s how:

  1. Go to lists.case.edu and log in if you need to.
  2. Under the lists@case logo, click on create list.
  3. For list name, type something simple, but unique. Most special characters are disallowed. Letters, numbers, and hyphens only!
  4. Select administrative alias.
  5. For title, type whatever you want.
  6. For topics, select ‘other’.
  7. You can leave the description blank if you choose.
  8. Submit your request for creation. It will be created automatically and take you to a status page.
  9. Under the list administration panel, click on subscribers.
  10. Type in your e-mail address and click ‘Add’.

That’s it. It might look like an involved process, but it only take about 90 seconds or less.

So, if some website is spamming your list address ‘dontspammeyoujerks@case.edu’ you can just unsubscribe yourself from that list and the mail will just go in to the ether.

Enjoy!

Popularity: 11% [?]

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in