Using Your ONID

ONID has a lot of powerful features, and is tied to many aspects of campus life.

Set Up ONID Here

How do I sign in to ONID?

Most of the student online resources at Oregon State use the ONID credentials. This includes Blackboard, ONID Webmail, Online Services, and the ONID settings page.

After completing the sign up for ONID, the last page will display your ONID Username. This generally takes the form of your last name followed by the first letter of your first name, but will vary depending on the length of your name, and if you have a common name.

When signing in with your ONID, make sure and only use your ONID username, and not your full email. For example, if your name is 'John Doe', and your ONID username is 'doej', you would use 'doej' as the username whenever signing in. You will have problems signing in if you try and use your full email address (doej@onid.oregonstate.edu), or your student ID number (931-XXX-XXX). Your password will be the same one you created when registering for ONID.

Here are some common areas you will use your ONID account as a login:

How do I manage my ONID Class Groups?

As an instructor, you can visit lists.oregonstate.edu/classgroups/ to view, modify, and manage your Class Groups.

How do I change my ONID Username?

ONID accounts are created for incoming freshmen, and new faculty members. In the course of four (or more!) years with Oregon State, it is quite common for account changes to be required. If you are in need of changing your ONID username, read more on our Name Changes page.

How does ONID printing work?

To recover the costs of wasted paper, Information Services implemented a system that charges students for basic printing.

For some brief tips on how to print conservatively, please refer to this URL: http://osulibrary.oregonstate.edu/computing/printtips.htm

Printing on campus breaks down into two categories. Click on their respective links to access up to date policy information:

Printing policies in college-specific labs also vary. See the lab consultant or college home page for more details.

Details for how to view your Printing history can by found on the MyONID page.

What about ONID web services?

With ONID, you can create, maintain, and control a personal website hosted right on Oregon State servers! Oregon State now has 2GB (per user) of space that can be used for blogging, forums, galleries, or even coursework. These sites are hosted at people.oregonstate.edu/

How do I publish a website?

Creating a website on the ONID web servers is a fairly straightforward (albeit technical) process, and we have outlined what to do on our publishing Your Web Site page.

How do I access the ONID Shell?

ONID has provided a shell server with which to connect, so that students can have some hands on experience with Unix without having to create their own Unix computer. Again, this is a fairly technical topic, so we have outlined the process on our Shell/Unix page.

What kind of traffic does ONID get?

While this is a difficult question to answer, as it changes from day to day, ONID has a fully detailed view of of the server statistics, ranging from what domains lead to Oregon State, what browsers people are using, and much more. If you're interested in any kind of technical server traffic, check out ONID's Web Statistics.

Your Home Directory

What is the Home Directory?

The home directory is server storage space provided by ONID for anyone with an ONID account. Here you will find 2GB of space, to be used for anything from hosting a website to saving a paper so you can print it from the Library.

In the public_html folder, any files listed will be viewable publicly at people.oregonstate.edu/~<username> (where <username> is your ONID username). This is where you can place and maintain a website, or a more powerful application.

The other folder available, <username>, is a storage folder that can't be viewed by others, and is a good storage location for anything you want to be able to access from anywhere, but don't necessarily want others to be able to access/view.


How do I connect to my Home Directory?

First, select the option below which best describes where you are located:


Back to top

Windows (On Campus)

If your Windows computer is on the OSU network (either plugged into a network port at a building on campus, using the OSU wireless network, or using VPN? from off-campus), you can mount your ONID home directory to your Windows computer. Follow these steps:

Note: These steps only work on Windows 2000 or Windows XP. If you have an older version of Windows, use the alternative instructions instead.

  1. Click on the Start menu and choose Run.
  2. In the Open: field, enter "\\onid-fs\username", where "username" is your ONID username (for example, smithj).
  3. Click OK.
  4. If Windows asks for a username to use, enter "ONID\username", where "username" is your ONID username. Enter your ONID password.
  5. You should now see a window with your ONID files appear.

Back to top

Windows (Off Campus/Alternative)

If your Windows computer is not on the OSU network, or the On Campus instructions do not work for you, you can use any SSH?-based secure file copy program. We recommend WinSCP to securely transfer files between your computer and your ONID account.

WinSCP is available at http://winscp.net/eng/download.php

Follow these steps to connect to your ONID account using WinSCP:

  1. Start WinSCP
  2. Go to the Session page
  3. "Host name" should be set to shell.onid.oregonstate.edu
  4. "Username" should be your ONID username
  5. "Password" should be your ONID password
  6. Click Login to connect
  7. If you are asked "Continue connecting and add host key to the cache?", click Yes

On the left side, you will see the files and directories on your computer. On the right side are the files and directories on your ONID account.

To transfer a file or directory from your ONID account to your computer, simply drag-and-drop the item from the right side to the left side. To transfer a file from your computer to your ONID account, drag-and-drop the item from the left side to the right side.

To close your connection and exit WinSCP, click on the Commands menu and choose Quit.

 


Back to top

Mac OS X (On Campus)

If your Mac OS X computer is on the OSU network (either plugged into a network port at a building on campus, using the OSU wireless network, or using VPN from off-campus), you can mount your ONID home directory to your Mac OS X computer. Follow these steps:

  1. From the Finder, click on the Go menu and choose Connect To Server.
  2. In the Address field, enter "smb://onid-fs.onid.oregonstate.edu" and click the Connect button.
  3. Enter your ONID username and password. Click Connect.
  4. Choose "home" from the list of shares and click OK.
  5. Your home directory will be a drive on your desktop.

 


Back to top

Mac (Off Campus/Alternative)

If your Mac computer is not on the OSU network, or the On Campus instructions do not work for you, you can use any SSH-based secure file copy program. We recommend Cyberduck to securely transfer files between your computer and your ONID account.

Using Cyberduck to transfer files

Cyberduck is available at http://cyberduck.ch/

Connect to your account using Secure File Transfer Protocol (SFTP):

  1. Start Cyberduck
  2. Click on Open Connection
  3. Choose "SFTP (SSH File Transfer Protocol)" from the Protocol: drop-down list
  4. Server: should be set to "shell.onid.oregonstate.edu"
  5. Username: should be your ONID username
  6. Password: should be your ONID password
  7. Click the Connect button
  8. If you get a pop-up window saying "Unknown host key for shell.onid.oregonstate.edu", click the Always button

You will see a listing of files and directories from your ONID home directory. To transfer a file or directory, simply drag-and-drop the item to or from your Mac.

To close your connection, click the Disconnect button.

Protect Web Directories

How to Protect Your ONID Web Directories

  1. Create a text file named .htaccess with the following contents:

    AuthType Basic
    AuthName "Password Required"
    AuthUserFile /users/{uX}/{a}/{username}/.htpasswd
    require valid-user


    Replace {a} with the first letter of your username. This must be lowercase.
    Replace {username} with your ONID username.
    Replace {uX} with the user group that you are in.
    Login using SSH? and type "pwd". Using WinSCP you can find this information above the file list of your ONID directory. Lastly, you can guess, there should only be u1 and u2.

    You will need to save this txt doc as .htaccess, or so that the name is blank, and the file extension is of type .htaccess.
  2. Connect to ONID (shell.onid.oregonstate.edu) via SSH. Basic directions can be found by following the previous link. You will have to use the SSH Secure Shell client to connect and get a shell prompt.
  3. At the shell:~> prompt type htpasswd -c .htpasswd {username} and press enter to create the .htpasswd file in your home directory. Replace {username} with the username you would like to user for web authentication. Note: If you wish to password protect another directory, type cd {directory path} before you create the .htpasswd file. Replace {directory path} with the directory path e.g. public_html/spring2010/assignments
  4. Type the password you would like to use.
  5. Retype the password you would like to use.
  6. Move the .htaccess file from your computer to the directory you wish to password protect.

Publishing Your Website

Note: ONID provides personal website space for all ONID users. If you need a professional website for your class, organization, or group, go to oregonstate.edu/is/services/cws to request a Drupal site.

Setting up your personal website on the ONID server can be broken down into 6 main steps:

  1. Connect to your home directory
  2. Configure your home directory
  3. Create your .html pages
  4. Move .html files to the server
  5. Setting file permissions
  6. Access your website

 



Back to top

Connecting to your home directory:

In order to access your ONID directory, you must be able to connect to it from a remote location.

Read the Connecting to your Home Directory instructions.

 



Back to top

Configuring your home directory:

Your home directory should already have a directory named public_html. If it doesn't already have one, you will have to create one using shell access.

Commands for creating your public_html directory, if you don't already have one:


cd
mkdir public_html
chmod 755 public_html

 

 



Back to top

Creating .html pages:

You must write your HTML pages using an HTML/text editor.

There are a number of HTML editors out there. Some are WYSIWYG (What You See Is What You Get), some are code-based, and some are a hybrid of both. For all practical purposes, if you are trying to make a webpage it would be a good idea to make sure you understand HTML. Unfortunately, we do not have the resources to teach you how to use HTML. There are, however, a lot of resources on the web that you could take advantage of. Here are a few links you should check out if you are not familiar with HTML:

You may contact the OSU Computer Helpdesk for more HTML help, but use that resource only for specific questions. Don't send us an email saying, "How do I write html?" until you have taken a look at the resource links provided above. You can ask us questions like, "What tag do you use to insert a carriage return?" for example.

 



Back to top

Moving the .html files to the ONID server:


The files you create must be placed in your public_html directory.

Moving your .html files to your public_html directory can be done from any machine with an internet connection. Please read the Connecting to your Home Directory instructions.

 



Back to top

Setting file permissions:

Once your files are on the server, they must be configured so that people can read them.

Typically, your files should already have the right permissions on them. However, there are some instances where your transferred files won't be seen when you try to access them through the web. If this happens to you, then you can fix it in a few easy steps using shell access.

Commands for changing permissions on your .html files in your public_html directory:


cd ~/public_html
find ./ -type d -exec chmod 755 {} \;
find ./ -type f -exec chmod 644 {} \;

 



Back to top

Accessing your website:

Once everything is completed, you should be able to view your web page by visiting http://people.oregonstate.edu/~username/ in any basic web browser (Firefox, Internet Explorer) -- just replace "username" with your username.

Before you give out your web address to all your friends, make sure to go check it yourself to see if you made any errors.

If you've reached this point and you're stuck, please contact the OSU Computer Helpdesk by sending us an email.

Shell Access and Unix

Shell Access:

The ONID shell server is shell.onid.oregonstate.edu

For more information, visit SSH (Secure Shell).

Once you remotely connect to the server using SSH, you encounter the world of UNIX. The following information is meant to help you develop a background in UNIX and become familiar with its capabilities.


UNIX

UNIX, an operating system developed by Bell Labs, is still regarded as one of the most powerful, versatile, and flexible operating systems in the world -- now over three decades after its birth. Its popularity and success are due to many factors, including its ability to run on a wide variety of machines, and its portability. UNIX is best described as simple, powerful, and elegant.

UNIX has many basic commands that let you modify and create files by using various system commands. These commands are entered at a prompt. The prompt looks something like this:

shell:~>



Webmonkey hosts a great UNIX reference page. You should take a look around to get familiar with basic UNIX commands:

Webmonkey UNIX Guide