Crux student accounts are only created for those students currently enrolled in designated Baker College courses requiring access to a Unix server. If you are currently enrolled in such a course, yet are unable to access your Crux student account, please contact the Baker College Helpdesk by calling 1-800-645-8350 or by emailing helpdesk@baker.edu for assistance.
For security reasons, the only incoming TCP connections allowed on the crux server will be on ports: 22( SSH); 80(HTTP); and 443(HTTPS). This means that the only methods of accessing the crux server are: (1) from a web browser, or (2) from a SSH software client. Both methods are described below.
Crux runs an Apache HTTP server to serve web content. The content can range from pictures and HTML files to complex web applications. The crux server utilizes per-user web directories.
This means that each student has their own "public_html" directory for placing web content. This web content is accessed by opening an internet browser such as Internet Explorer or Firefox and typing in the URL https://crux.baker.edu/~username/ where username is the same UserId the students utilizes to log in to Crux, Baker Blackboard and Baker Webmail.
To run Unix commands from the Crux server command line, you will need to make a connection to the server from an SSH Client software that is installed on your local computer. You can dowlnload an SSH Client software from the Baker College Software Download Area. Please note that if your computer system is running Vista, you must use the Putty SSH Client.
Once you have established a SSH connection to the Crux server, the prompt will be in your home directory. From this directory you will be able to execute unix commands. Please refer to the Baker College site for a list of common unix commands. If you ever get lost or need to return to your home directory, on the command line you can type
cd ~
and press enter. The tilde (~) is UNIX shorthand for your home directory. To find out where your home directory is actually located, type
echo ~at the command line and press enter.
A MySQL database has been created for each student that has a crux account. The name of the database is username_db where username is the same UserId the student utilizes to log in to crux, Baker Blackboard and Baker Webmail. The crux server is running a MySQL database server behind a firewall, which means that you cannot access the database directly from the internet. It can only be accessed through another program that is already running on Crux, such as Apache or Secure Shell.
Students are NOT permitted to create additional databases on the crux server, nor are they permitted to execute the mysql command "GRANT PRIVILEGES" on their database. Please refer to the Baker College Computer Resources area for detailed instructions on how to access MySQL on Crux.
The crux server will ONLY deliver email to Baker (@baker.edu) email addresses. All other mail will be rejected. The reason for this restriction is to prevent SPAM from originating on Crux which can result in the entire baker.edu domain being blacklisted.
Students may be provided with files within their blackboard course that need to be uploaded to their crux student directory. Students may also be required to create their own files to be uploaded to their crux student directory.
****************************************************Please Note*************************************************************************
When creating files to upload to crux, you will want to use a text editor like Wordpad as opposed to Notepad or Microsoft Office so that the file you upload does not contain formatting characters such as ^M at the end of each line. If for some reason a file is uploaded with these characters, you will need to run the /usr/bin/dos2unix command from the crux command line to convert the file from a DOS/MAC format to a Unix format.
**************************************************************************************************************************************
To upload files to your crux student account, you will need to use a Secure File Transfer Protocol (SFTP) client. This will allow you to transfer files between your computer and your web directory on crux. You can download an SFTP client from Baker's software download page. For instructions on using this SFTP client, please refer to the Using SSH and SFTP page.
Place the files you want to make available on the web in the
public_html directory located in your home
directory. Only files within (or above) this directory are
accessible from the web. For example, if your user name was
"example", then you would place your files in the /home/example/public_html/ directory.
Within ~/public_html is a directory called protected.
Only you and the faculty have access to this directory. Anyone attempting
to access content within this directory will need to authenticate. In other
words, when you point your browser at https://crux.baker.edu/~username/protected/, you will
be prompted for a user name and password. Only those users with the
appropriate access will be allowed to view the page.
Crux allows you to run CGI scripts to
create dynamic web content. Any file located in the
~/public_html/cgi-bin or ~/public_html/protected/cgi-bin
will be treated as a CGI script. The script must also have the execute
permission set. For example, from the command line, type:
cd ~/public_html # go to your cgi-bin directory [ ! -d cgi-bin ] && mkdir cgi-bin # create a cgi-bin if it doesn't exist cd cgi-bin cat<<EOD > test.pl # create a simple Perl script #!/usr/bin/perl print "Content-type: text/html\n\nHello World!"; EOD chmod +rx test.pl # set the read and execute permissionsTo see the newly created CGI script in action, go to
https://crux.baker.edu/~username/cgi-bin/test.pl
where username is the user name you use to login to Crux.An Internal Server Error message displays in the web browser when your CGI script fails to produce valid HTTP output. Some common causes are:
Content-type: text/html <html> ... [the rest of your HTML output] .. </html>Notice the colon (:) and single space between
Content-type and text/html, and the blank
line between the HTTP header and the HTML output.GET method work, but the POST method does not?
Make sure that the action attribute of your form is
pointing to https://crux.baker.edu/... and not
http://crux.baker.edu/...
Crux's web server forces secure connections by redirecting HTTP
requests to HTTPS. When that occurs, some browsers "forget"
what method the form was suppose to be submitted in and send a GET
request instead. To avoid this, set the form's action to
https://crux.baker.edu/... so it won't be redirected.
You can see this problem in action by go to the form test page.