Using your W-drive


If you have not done so already, check that you have activated your UNIX and WWW from > Password change service. Activating UNIX is not necessarily required depending on how you plan to use your W-drive. If you are using *nix take note of the nashome<number>, you will need it later.

Activating UNIX and WWW
Fig.1 - In this figure the UNIX and WWW have been activated.

The activations are run in batches and it may take a while for the W-drive to activate. After a while and a fresh login, the W-drive should be mapped and present in JYUNET workstations.

W-drive on JYUNET workstations
Fig.2 - W-drive on JYUNET workstations.

1.2 Accessing files via web browser

You can use your W-drive on JYUNET workstations as you use your personal U-drive. The difference is that the files on your W-drive can be accessed by anyone using a web browser via

Files via web browser
Fig.3 - Files (right) accessed via web browser (left).

In the example above I have created a folder named xml2015abcd in my W-drive and placed an XML-file (a1.xml) in the folder. The file can only be viewed via a web browser by supplying the full path to the file. You should always create folders with obscure names if you wish to prevent others from accessing your files. That being said, do not put anything delicate on your W-drive.

1.3A Working from outside JYUNET (Windows)

Probably the easiest way of working outside JYUNET in Windows is WinSCP. Use it to connect to either or (it does not matter which) using your JYUNET credentials. There are other ways as well to which instructions are provided by the IT services' web site.

Files via web browser
Fig.4 - WinSCP login.

By default, WinSCP displays the contents of your U-drive. These files are not accessible via a web browser. You must change the working directory to your W-drive by either double clicking the html-shortcut or by right clicking the path (highlighted in the figure below), choosing Open directory/Bookmark and replacing autohome with wwwhome.

Fig.5 - Changing the directory.

Now by opening the html folder you can see the content of your W-drive on the right side. You can copy files from your local machine to the W-drive by simply dragging and dropping.

1.3B Working from outside JYUNET (*nix)

Probably the easiest way of working with UNIX-like operating systems like GNU/Linux or OS X is via command line. The only program you need is openssh-client. It often comes preinstalled but you can install it by using your package manager.

Connect to your U-drive:

$ ssh

Once connected, create a symbolic link to your W-drive to make next steps a little easier:

$ ln -s /wwwhome/nashome1/username/html wdrive

In which nashome<number> is the number you looked up from and username is your JYUNET username. The command will create a symbolic link named wdrive pointing to your W-drive. Next thing to do is to logout from halava/jalava and copy your files:

$ exit
$ scp a1.xml

Assuming you have a file named a1.xml in your local working directory and you specified the symbolic link successfully, you now have a copy of a1.xml in the root of your W-drive and it can be accessed via web browser like in chapter 1.2.

1.4 Listing directory contents

By default, directory contents on W-drive are not displayed by the web browser due to web server configuration. You can change the configuration by creating a .htaccess file inside the directory which contents you want displayed.

No .htaccess
Fig.6 - Trying to access directory without .htaccess.

1.4.1A Windows

Windows Explorer interprets ".htaccess" as a file without filename. For now, we will create a new file with a text editor (e.g. Notepad) and write one line inside:

Options +Indexes

Save the file by setting "Save as type" as "All files" and giving a file name as .htaccess. Save the file into your folder on the W-drive, for example xml2015abcd. This will ultimately make the web server list the files inside the folder xml2015abcd and all of its subfolders. If you are using WinSCP, copy the file like you would copy any file.

File listing with .htaccess
Fig.7 - Accessing directory with .htaccess.

1.4.1B *nix

Assuming that you have created the symbolic link named wdrive in chapter 1.3B and you have a folder named xml2015abcd in your W-drive:

$ ssh
$ cd wdrive/xml2015abcd
$ echo "Options +Indexes" > .htaccess
$ cat .htaccess

The last command should output the line "Options +Indexes" to your terminal and the contents of the folder can be viewed via a web browser like in figure 7.