The Databar System at DTU - G-Bar Wiki

The Databar System at DTU - G-Bar Wiki The Databar System at DTU - G-Bar Wiki

31.10.2012 Views

12 The Databar System at DTU The G-Bar has several text-based mail programs, of which pine can be recommended. You can start it from the menu, navigating under “Internet” → “Mail clients” → “Pine”, or you can write the command pine in a terminal: n-62-14-4(s001234) $ pine The first time that you start pine, you will be greeted by a welcome screen. Use the command Enter to proceed to the main menu. Pine can only be navigated with the arrow and shortcut keys. The shortcuts that you can use are shown at the bottom of the terminal screen. The symbol ^ before the shortcut tells you that you must hold the ctrl key in addition to the shortcut combination of keys. Finally, it is possible to use the e-mail from your own computer. The e-mail may be used with either the POP or the IMAP protocool. See http://www.gbar.dtu.dk/ for details about the configuration. 6.4.1 Automatic forwarding of e-mail You can forward your mail to another mail account. If you wish to do so, navigate to the page https://www.student.dtu.dk/cgi-bin/dotqmail.cgi to use the tool for setting up the mail account. Log in and add the address you want to forward to in the ’Add Forward to’ and hit ’Apply’. You can also manually add a file called .qmail in the home directory. You can do this using for example the text editor NEdit: n-62-14-4(s001234) $ nedit .qmail In the text editor you write: &emailaddress@gmail.com ./Maildir/ where emailaddress@gmail.com is the address where your e-mail will be sent. The line that reads ./Maildir/ orders the mail to be saved locally (otherwise it is only forwarded). 6.5 UNIX and the file system 6.5.1 File system structure The UNIX file system is structured like a decision tree with nested folders. 5 This is in principle the same as in DOS and Windows. Each folder may contain a good many documents (files) and, if you wish, also nested folders (sub-directories) on a deeper level, which again can contain documents and even more nested folders. The structures may, for example, 5 A folder is also called a directory, catalog, gallery, or in Danish, “mappe”.

6 The G-Bar 13 Figure 3: The tree structure of the file system look something like the sketch in Figure 3, which shows how a user (here s001234) might have his or her home folder placed in the global structure of the databar system. Immediately after logging in, you will be in your own home folder, which is named according to your individual User ID. The user has write access to his or her own home folder, and thus can place documents and other folders in it. In Figure 3 you see an example where the user s001234 has placed two documents (dok1 and dok2) in the home folder plus one folder (bib.no.1/), and that folder contains two more documents (brev and gml.brev). 6.5.2 UNIX commands As mentioned before, in UNIX your work on a project can be either graphic or command oriented. The big advantage of the command oriented use is that it is much faster as soon as you get some practice in it. UNIX commands are keyed in at a terminal window (see the section 6.1.2). UNIX commands are generally written in the following syntax: command 〈parameter〉 〈filename(s)〉 where the parameter “filename(s)” could also be “foldername”. File names can include one or more joker characters or wild cards. Two joker characters that are good to know are * which can stand for any other character or any sequence of characters, and ? which can stand for a single character (note that the words “document” and “file” mean the same thing. Sometimes we denote them as documents, and sometimes as files.) An example of the ls-command for listing files is

12 <strong>The</strong> <strong>D<strong>at</strong>abar</strong> <strong>System</strong> <strong>at</strong> <strong>DTU</strong><br />

<strong>The</strong> G-<strong>Bar</strong> has several text-based mail programs, of which pine can be recommended.<br />

You can start it from the menu, navig<strong>at</strong>ing under “Internet” →<br />

“Mail clients” → “Pine”, or you can write the command pine in a terminal:<br />

n-62-14-4(s001234) $ pine<br />

<strong>The</strong> first time th<strong>at</strong> you start pine, you will be greeted by a welcome screen. Use<br />

the command Enter to proceed to the main menu. Pine can only be navig<strong>at</strong>ed<br />

with the arrow and shortcut keys. <strong>The</strong> shortcuts th<strong>at</strong> you can use are shown<br />

<strong>at</strong> the bottom of the terminal screen. <strong>The</strong> symbol ^ before the shortcut tells<br />

you th<strong>at</strong> you must hold the ctrl key in addition to the shortcut combin<strong>at</strong>ion<br />

of keys.<br />

Finally, it is possible to use the e-mail from your own computer. <strong>The</strong> e-mail<br />

may be used with either the POP or the IMAP protocool.<br />

See http://www.gbar.dtu.dk/ for details about the configur<strong>at</strong>ion.<br />

6.4.1 Autom<strong>at</strong>ic forwarding of e-mail<br />

You can forward your mail to another mail account. If you wish to do so,<br />

navig<strong>at</strong>e to the page https://www.student.dtu.dk/cgi-bin/dotqmail.cgi to<br />

use the tool for setting up the mail account. Log in and add the address you<br />

want to forward to in the ’Add Forward to’ and hit ’Apply’. You can also<br />

manually add a file called .qmail in the home directory. You can do this using<br />

for example the text editor NEdit:<br />

n-62-14-4(s001234) $ nedit .qmail<br />

In the text editor you write:<br />

&emailaddress@gmail.com<br />

./Maildir/<br />

where emailaddress@gmail.com is the address where your e-mail will be sent.<br />

<strong>The</strong> line th<strong>at</strong> reads ./Maildir/ orders the mail to be saved locally (otherwise<br />

it is only forwarded).<br />

6.5 UNIX and the file system<br />

6.5.1 File system structure<br />

<strong>The</strong> UNIX file system is structured like a decision tree with nested folders. 5<br />

This is in principle the same as in DOS and Windows.<br />

Each folder may contain a good many documents (files) and, if you wish,<br />

also nested folders (sub-directories) on a deeper level, which again can contain<br />

documents and even more nested folders. <strong>The</strong> structures may, for example,<br />

5 A folder is also called a directory, c<strong>at</strong>alog, gallery, or in Danish, “mappe”.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!