Indiana University Northwest
 
skip navigation bar
Indiana 
University Northwest
ribbon
skip navigation bar

Web Services

  

Advanced Search | Find People 
red line

Virtual Link to IU Northwest's Style Sheet

Setting Virtual Link to IU Northwest Styles

By setting a virtual link to the iunhome/iunstyles.css cascading style sheet will allow use the styles when editing your web pages.without changing the style sheet. This means you can see and use the style locally when editing without fear of changing the stylesheet. Also, make the styles directory read only so that it is not accidentally written over or erased.

The virtual link should be set when your pages were created. If you wish to check it, the following steps shows how to verify that there is a virtual link and create one if needed.

Note: When ftping files to the web server, if it is set properly, there will be an error message when your local copy of the file tries to replace the virtual link.

  • SSH2 telnet to yourwebaccount - login using the webaccount password
  • at the veritas:yourwebaccount> prompt, type ls to list the folders

screen verifying virtual link set

 

Styles Directory Exists - Verify Virtual Link Set

  • change directory to styles - type, cd styles
  • show the virtual link, type ls -all
    • iunstyle.css  ->   /ip/iunhome/www/iunstyle.css - indicates virtual link exists -no further action is needed
    • iunstyle.css          - indicates no virtual link exists - further action needed

 

Styles Directory Missing - Create Virtual Link

  • styles not found - indicates no styles directory exists
  • make styles directory - type, mkdir styles
  • verify styles directory created - type, ls -d styles
    • styles - indicates styles directory exists
  • change directory to styles - type, cd styles
  • list files to determine no files in directory
  • create virtual link - type, ln -s -f /ip/iunhome/www/iunstyle.css
  • show file was created and virtual link, type ls -all
    • iunstyle.css  ->   /ip/iunhome/www/iunstyle.css - indicates virtual link exists
  • no further action is needed

shows screen and commands to check for virtual link


View Virtual Link Codes

From the Styles Directory

  • type ls -all
  • if it lists /ip/iunhome/www/iunstyle.css that indicates the virtual link is set.

view virtual link

View Not a Virtual Link - Remove Incorrect Link Codes

From the styles directory:

  • type ls -all
  • if it lists iunstyle.css that indicates the virutal link is NOT set
  • type rm iunstyle.css to remove the file
  • type ls -all to see that there are no files in the directory

shows remove non virtual link

Create virtual link

  • create virtual link - type, ln -s -f /ip/iunhome/www/iunstyle.css
  • show file was created and virtual link, type ls -all
    • iunstyle.css  ->   /ip/iunhome/www/iunstyle.css - indicates virtual link exists
  • no further action is needed

Do the same for iunstyle_print.css

Make Styles Folder Read Only

By making the styles folder read only, the user won't accidentally write over or erase the folder.

  • type ls -all -d styles to see the styles directory.
    • If you do not see the styles directory, type cd .. to move up a directory level
    • repeat the ls -d styles until you see you the folder styles
  • w in the third position indicates that changes can be made to the directory
  • Type chmod u-w styles to make the directory styles read only
  • type ls -all -d styles to list the direcotry styles
  • the third character should be a dash (-) which indicates the directory is read only

Veritas screen

 

red line
Indiana University Northwest
3400 Broadway - Gary, Indiana 46408
(219) 980-6500
1-888-YOUR-IUN
(1-888-968-7486)

Comments:
Last Updated: 24 October 2006
Tobacco-Free IU Northwest
Copyright 1997– 2008, The Trustees of Indiana University
Copyright Complaints bullet Privacy Statement