author | spiralman <spiralman> | 2002-07-30 19:37:51 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2002-07-30 19:37:51 (UTC) |
commit | 38714c22a9c99c920bd42dbf7ba81622b735fe16 (patch) (unidiff) | |
tree | b446b829652e74aa44d65cfe19b23cd0867b7c1b | |
parent | 988409a5a21b3a4238ce41316e48777c885f147a (diff) | |
download | opie-38714c22a9c99c920bd42dbf7ba81622b735fe16.zip opie-38714c22a9c99c920bd42dbf7ba81622b735fe16.tar.gz opie-38714c22a9c99c920bd42dbf7ba81622b735fe16.tar.bz2 |
Added section about destinations to oipkg docs.
-rw-r--r-- | docs/usermanual/embeddedkonsole.sgm | 6 | ||||
-rw-r--r-- | docs/usermanual/software.sgm | 69 |
2 files changed, 72 insertions, 3 deletions
diff --git a/docs/usermanual/embeddedkonsole.sgm b/docs/usermanual/embeddedkonsole.sgm index 4ba0287..838e705 100644 --- a/docs/usermanual/embeddedkonsole.sgm +++ b/docs/usermanual/embeddedkonsole.sgm | |||
@@ -14,150 +14,152 @@ shell. | |||
14 | Along the top of the window is a row of menus and icons. The "Font" menu lets | 14 | Along the top of the window is a row of menus and icons. The "Font" menu lets |
15 | you select the font size that you want the console to use, while the Options | 15 | you select the font size that you want the console to use, while the Options |
16 | menu lets you select various options. Below this row of menus and icons is a | 16 | menu lets you select various options. Below this row of menus and icons is a |
17 | pulldown list with various common commands in it. | 17 | pulldown list with various common commands in it. |
18 | </para> | 18 | </para> |
19 | 19 | ||
20 | <section><title>Options Menu</title> | 20 | <section><title>Options Menu</title> |
21 | <para> | 21 | <para> |
22 | The first submenu in the options menu is the "Command List" menu, which lets | 22 | The first submenu in the options menu is the "Command List" menu, which lets |
23 | you edit or hide the command list pulldown. The "Tabs on top" or "Tabs on | 23 | you edit or hide the command list pulldown. The "Tabs on top" or "Tabs on |
24 | bottom" (depending on which is currently enabled) allows you to select where | 24 | bottom" (depending on which is currently enabled) allows you to select where |
25 | the tabs representing multiple terminal sessions are drawn. The "Colors" | 25 | the tabs representing multiple terminal sessions are drawn. The "Colors" |
26 | submenu lets you select from a color scheme, or make your own, and the "Scroll | 26 | submenu lets you select from a color scheme, or make your own, and the "Scroll |
27 | Bar" submenu lets you select where or if the scroll bar is drawn. | 27 | Bar" submenu lets you select where or if the scroll bar is drawn. |
28 | </para> | 28 | </para> |
29 | </section> | 29 | </section> |
30 | <section><title>Icons</title> | 30 | <section><title>Icons</title> |
31 | <para> | 31 | <para> |
32 | The row of icons to the right of the menus allows you to type common keystrokes | 32 | The row of icons to the right of the menus allows you to type common keystrokes |
33 | without having an input method visible, as well as some other things. | 33 | without having an input method visible, as well as some other things. |
34 | </para> | 34 | </para> |
35 | <para> | 35 | <para> |
36 | The icon all the way on the left will open a new terminal session in a new tab, | 36 | The icon all the way on the left will open a new terminal session in a new tab, |
37 | while the icon all the way on the right will paste text from the clipboard into | 37 | while the icon all the way on the right will paste text from the clipboard into |
38 | the terminal. | 38 | the terminal. |
39 | </para> | 39 | </para> |
40 | <para> | 40 | <para> |
41 | The other icons are the same as typing (from left to right) enter, space, tab | 41 | The other icons are the same as typing (from left to right) enter, space, tab |
42 | (for tab completion), up, and down (for the command history). | 42 | (for tab completion), up, and down (for the command history). |
43 | </para> | 43 | </para> |
44 | </section> | 44 | </section> |
45 | <section><title>Command List</title> | 45 | <section><title>Command List</title> |
46 | <para> | 46 | <para> |
47 | The command list is a pulldown menu with a list of commonly used commands. | 47 | The command list is a pulldown menu with a list of commonly used commands. |
48 | Selecting one will type the command into the terminal wherever the cursor is. | 48 | Selecting one will type the command into the terminal wherever the cursor is. |
49 | You can edit or hide this menu from <GUIMenu>Options</GUIMenu>&arrow; | 49 | You can edit or hide this menu from <GUIMenu>Options</GUIMenu>&arrow; |
50 | <GUIMenuItem>Command List.</GUIMenuItem> | 50 | <GUIMenuItem>Command List.</GUIMenuItem> |
51 | </para> | 51 | </para> |
52 | </section> | 52 | </section> |
53 | </section> | 53 | </section> |
54 | 54 | ||
55 | <section><title>What is a Shell</title> | 55 | <section><title>What is a Shell</title> |
56 | <para> | 56 | <para> |
57 | A shell is a program that accepts input from a user, and runs commands. Each | 57 | A shell is a program that accepts input from a user, and runs commands. Each |
58 | "command" in the shell is actually a separate program (unless you are using a | 58 | "command" in the shell is actually a separate program (unless you are using a |
59 | shell like BusyBox, which makes some of the more common commands part of its own | 59 | shell like BusyBox, which makes some of the more common commands part of its own |
60 | program in order to save space). Shells can actually be very powerful, and many | 60 | program in order to save space). Shells can actually be very powerful, and many |
61 | 61 | ||
62 | |||
63 | |||
62 | of them allow you to write something called "shell scripts" which are just a | 64 | of them allow you to write something called "shell scripts" which are just a |
63 | sequence of commands, sometimes with some flow control statements, saved to a | 65 | sequence of commands, sometimes with some flow control statements, saved to a |
64 | file and run each time the script is run. For the most part, the average user | 66 | file and run each time the script is run. For the most part, the average user |
65 | does not need to know about any of this, though. If you are running Opie on the | 67 | does not need to know about any of this, though. If you are running Opie on the |
66 | Familiar distribution, it is advisable to install the bash shell (ipkg install | 68 | Familiar distribution, it is advisable to install the bash shell (ipkg install |
67 | bash) because it offers things like tab completion, use of the backspace key, | 69 | bash) because it offers things like tab completion, use of the backspace key, |
68 | and a command history, as well as offering a more advanced scripting languauge | 70 | and a command history, as well as offering a more advanced scripting languauge |
69 | than most other shells. | 71 | than most other shells. |
70 | </para> | 72 | </para> |
71 | </section> | 73 | </section> |
72 | 74 | ||
73 | <section><title>Running Programs</title> | 75 | <section><title>Running Programs</title> |
74 | <para> | 76 | <para> |
75 | To run a program or a command (remember, a command is just another program), you | 77 | To run a program or a command (remember, a command is just another program), you |
76 | simply type the name of the program and hit "Return" (in Linux, program names | 78 | simply type the name of the program and hit "Return" (in Linux, program names |
77 | do not have a special suffix like they do in windows, in fact the "." | 79 | do not have a special suffix like they do in windows, in fact the "." |
78 | character has no special meaning unless it is at the begining of a filename, in | 80 | character has no special meaning unless it is at the begining of a filename, in |
79 | which case it makes the file "hidden"). When you type a program name and hit | 81 | which case it makes the file "hidden"). When you type a program name and hit |
80 | "Return" the shell looks in a special list of directories called your | 82 | "Return" the shell looks in a special list of directories called your |
81 | "path", and if it cannot find it in any of those directories, it stops looking | 83 | "path", and if it cannot find it in any of those directories, it stops looking |
82 | and tells you it could not find them. If you want to run a program that is not | 84 | and tells you it could not find them. If you want to run a program that is not |
83 | in your path, you must specify an absolute or relative path to that program. | 85 | in your path, you must specify an absolute or relative path to that program. |
84 | For instance, to run a program that is in the directory you are currently in, | 86 | For instance, to run a program that is in the directory you are currently in, |
85 | you would type <literal>./program</literal> ("./" is a special directory that | 87 | you would type <literal>./program</literal> ("./" is a special directory that |
86 | is explained below), or to run a program in /home/username/ you would call | 88 | is explained below), or to run a program in /home/username/ you would call |
87 | <literal>/home/username/program</literal>. | 89 | <literal>/home/username/program</literal>. |
88 | </para> | 90 | </para> |
89 | <para> | 91 | <para> |
90 | Most programs take "arguments" when run from the command line. An argument is | 92 | Most programs take "arguments" when run from the command line. An argument is |
91 | a string that contains no spaces that changes how the program behaves (a text | 93 | a string that contains no spaces that changes how the program behaves (a text |
92 | editor, for instance, might take a single argument, which would be the name of | 94 | editor, for instance, might take a single argument, which would be the name of |
93 | the file you wish to edit). Usually, you can use the arguments "-h" or | 95 | the file you wish to edit). Usually, you can use the arguments "-h" or |
94 | "--help" to get a list of the common arguments that that program takes, along | 96 | "--help" to get a list of the common arguments that that program takes, along |
95 | with a short usage description, and a short description of what each argument | 97 | with a short usage description, and a short description of what each argument |
96 | does. | 98 | does. |
97 | </para> | 99 | </para> |
98 | </section> | 100 | </section> |
99 | 101 | ||
100 | <section><title>Basic Navigation</title> | 102 | <section><title>Basic Navigation</title> |
101 | <para> | 103 | <para> |
102 | The command that you will use most often in the shell is probably the "cd" | 104 | The command that you will use most often in the shell is probably the "cd" |
103 | command, which stands for "change directory." With this command, you can move | 105 | command, which stands for "change directory." With this command, you can move |
104 | around in the file system, by issuing the command like this: <userinput>cd | 106 | around in the file system, by issuing the command like this: <userinput>cd |
105 | <replaceable>[new directory]</replaceable></userinput>, where <replaceable>[new | 107 | <replaceable>[new directory]</replaceable></userinput>, where <replaceable>[new |
106 | directory]</replaceable> is the directory you want to move to. | 108 | directory]</replaceable> is the directory you want to move to. |
107 | This directory name does not have to include the entire directory structure, but | 109 | This directory name does not have to include the entire directory structure, but |
108 | can be "relative" which means it assumes you are talking about directories | 110 | can be "relative" which means it assumes you are talking about directories |
109 | relative to the directory you are in. For example, if you are in a directory | 111 | relative to the directory you are in. For example, if you are in a directory |
110 | called /home/username and you want to move to the directory | 112 | called /home/username and you want to move to the directory |
111 | /home/username/other/dir you could simply type <userinput>cd | 113 | /home/username/other/dir you could simply type <userinput>cd |
112 | other/dir</userinput> and you would end up in /home/username/other/dir. You can | 114 | other/dir</userinput> and you would end up in /home/username/other/dir. You can |
113 | also specify a full, or "absolute" path, by specifying the entire path name | 115 | also specify a full, or "absolute" path, by specifying the entire path name |
114 | starting with / ( / is a special directory called the "root" directory, and does | 116 | starting with / ( / is a special directory called the "root" directory, and does |
115 | not have a "parent" directory, which means that it is not in any other | 117 | not have a "parent" directory, which means that it is not in any other |
116 | directory). There are also two special directories called "./" and "../". | 118 | directory). There are also two special directories called "./" and "../". |
117 | The "./" directory is the current directory you are in, and you will probably | 119 | The "./" directory is the current directory you are in, and you will probably |
118 | never use this in conjunction with the cd command (why would you want to move to | 120 | never use this in conjunction with the cd command (why would you want to move to |
119 | the directory you are already in?). The "../" directory represents the parent | 121 | the directory you are already in?). The "../" directory represents the parent |
120 | directory of the directory you are currently in, so if you are in | 122 | directory of the directory you are currently in, so if you are in |
121 | /home/username, ../ is the same as /home. You can string several ../'s | 123 | /home/username, ../ is the same as /home. You can string several ../'s |
122 | together, so if you are in /home/username/dir/ ../../ represents /home. There | 124 | together, so if you are in /home/username/dir/ ../../ represents /home. There |
123 | is one other special directory, called "~/" that points to your home | 125 | is one other special directory, called "~/" that points to your home |
124 | directory (usually /home/username or /root for the root user). | 126 | directory (usually /home/username or /root for the root user). |
125 | </para> | 127 | </para> |
126 | </section> | 128 | </section> |
127 | 129 | ||
128 | <section><title>Moving Files</title> | 130 | <section><title>Moving Files</title> |
129 | <para> | 131 | <para> |
130 | To move files around, you need to use the "cp" (copy) and "mv" (move) | 132 | To move files around, you need to use the "cp" (copy) and "mv" (move) |
131 | commands. Both of these are run the same way: <userinput>command originalfile | 133 | commands. Both of these are run the same way: <userinput>command originalfile |
132 | newfile</userinput>. The only difference is that cp creates a new file without | 134 | newfile</userinput>. The only difference is that cp creates a new file without |
133 | touching the old one, while mv deletes the original file. The two path names | 135 | touching the old one, while mv deletes the original file. The two path names |
134 | can be either absolute or relative. If you only specify a directory for the | 136 | can be either absolute or relative. If you only specify a directory for the |
135 | destination, and no filename, it will use the filename for the original file. | 137 | destination, and no filename, it will use the filename for the original file. |
136 | </para> | 138 | </para> |
137 | </section> | 139 | </section> |
138 | 140 | ||
139 | <section><title>Deleting Files</title> | 141 | <section><title>Deleting Files</title> |
140 | <para> | 142 | <para> |
141 | To delete a file, run the "rm" command, and to delete a directory, run the | 143 | To delete a file, run the "rm" command, and to delete a directory, run the |
142 | "rmdir" command, each of them take the file to be removed as their only | 144 | "rmdir" command, each of them take the file to be removed as their only |
143 | argument. The rmdir command requires the directory to be empty, so if you want | 145 | argument. The rmdir command requires the directory to be empty, so if you want |
144 | to delete a directory that is not empty, along with all its contents, run | 146 | to delete a directory that is not empty, along with all its contents, run |
145 | <userinput>rm -r dir</userinput>. | 147 | <userinput>rm -r dir</userinput>. |
146 | </para> | 148 | </para> |
147 | </section> | 149 | </section> |
148 | 150 | ||
149 | <section><title>Linking Files</title> | 151 | <section id=symlink><title>Linking Files</title> |
150 | <para> | 152 | <para> |
151 | In Linux, you can have a special file called a "symbolic link" that acts just | 153 | In Linux, you can have a special file called a "symbolic link" that acts just |
152 | like a copy of another file, except it takes up less space. This is convinient | 154 | like a copy of another file, except it takes up less space. This is convinient |
153 | if two applications are looking for the same file in two separate places, | 155 | if two applications are looking for the same file in two separate places, |
154 | because the file can be in both places at once, without taking up any extra | 156 | because the file can be in both places at once, without taking up any extra |
155 | space, and any change to one is automatically applied to the other (really, | 157 | space, and any change to one is automatically applied to the other (really, |
156 | there is only one file, the link is just a file pointing to the original file). | 158 | there is only one file, the link is just a file pointing to the original file). |
157 | This is also useful for naming applications independant of their version number. | 159 | This is also useful for naming applications independant of their version number. |
158 | For instance, you could have a link called "application" that points to | 160 | For instance, you could have a link called "application" that points to |
159 | "application1.0". To create a link, use the following command: | 161 | "application1.0". To create a link, use the following command: |
160 | <userinput>ln -s originalfile link</userinput>. | 162 | <userinput>ln -s originalfile link</userinput>. |
161 | </para> | 163 | </para> |
162 | </section> | 164 | </section> |
163 | </chapter> \ No newline at end of file | 165 | </chapter> |
diff --git a/docs/usermanual/software.sgm b/docs/usermanual/software.sgm index 459498a..f95772c 100644 --- a/docs/usermanual/software.sgm +++ b/docs/usermanual/software.sgm | |||
@@ -1,49 +1,116 @@ | |||
1 | <chapter><title>Software</title> | 1 | <chapter><title>Software</title> |
2 | 2 | ||
3 | <para> | 3 | <para> |
4 | The "Software" application, also called oipkg, is what is used to install and | 4 | The "Software" application, also called oipkg, is what is used to install and |
5 | remove software. It is actually a frontend to the command line program "ipkg" | 5 | remove software. It is actually a frontend to the command line program "ipkg" |
6 | so most things you can do with oipkg you can also do with ipkg. Oipkg can | 6 | so most things you can do with oipkg you can also do with ipkg. Oipkg can |
7 | install things either remotely from a web server (called a "feed") or it can | 7 | install things either remotely from a web server (called a "feed") or it can |
8 | install an ipkg package file that resides on the local filesystem. | 8 | install an ipkg package file that resides on the local filesystem. |
9 | </para> | 9 | </para> |
10 | <important> | 10 | <important> |
11 | <para> | 11 | <para> |
12 | There is a bug in oipkg that prevents it from installing packages | 12 | There is a bug in oipkg that prevents it from installing packages |
13 | properly. There is, however, a workaround for it. Simply run oipkg from | 13 | properly. There is, however, a workaround for it. Simply run oipkg from |
14 | Embedded Konsole to avoid the bug. | 14 | Embedded Konsole to avoid the bug. |
15 | </para> | 15 | </para> |
16 | </important> | 16 | </important> |
17 | 17 | ||
18 | <section><title>Installing Software</title> | 18 | <section><title>Installing Software</title> |
19 | <para> | 19 | <para> |
20 | To install software, first select "Opie" from the "Section" pulldown menu, | 20 | To install software, first select "Opie" from the "Section" pulldown menu, |
21 | the press the "+" icon next to "Feeds" in the main view. This will show all | 21 | the press the "+" icon next to "Feeds" in the main view. This will show all |
22 | the available Opie packages (you can change which packages to view by selecting | 22 | the available Opie packages (you can change which packages to view by selecting |
23 | something else from the "Section" pulldown). Installed packages are marked | 23 | something else from the "Section" pulldown). Installed packages are marked |
24 | with a blue circle, while packages that are not installed are marked with a red | 24 | with a blue circle, while packages that are not installed are marked with a red |
25 | box. If you click on the icon for an uninstalled package, it will turn into an | 25 | box. If you click on the icon for an uninstalled package, it will turn into an |
26 | open box, with a blue circle coming out of it, indicating that you have marked | 26 | open box, with a blue circle coming out of it, indicating that you have marked |
27 | this package to be installed. Mark as many packages as you wish this way, and | 27 | this package to be installed. Mark as many packages as you wish this way, and |
28 | then press the "Apply" icon (same red box and blue dot icon) to install all | 28 | then press the "Apply" icon (same red box and blue dot icon) to install all |
29 | the marked packages. It will also remove any packages marked for removal (see | 29 | the marked packages. It will also remove any packages marked for removal (see |
30 | below). Clicking this will open a window showing all the packages marked to be | 30 | below). Clicking this will open a window showing all the packages marked to be |
31 | removed and installed, with some check boxes on the bottom, which represent | 31 | removed and installed, with some check boxes on the bottom, which represent |
32 | arguments to be sent to ipkg, which you can usually ignore. After verifying | 32 | arguments to be sent to ipkg, which you can usually ignore. After verifying |
33 | that all the packages to be installed are correct, press "Ok" in the upper | 33 | that all the packages to be installed are correct, press "Ok" in the upper |
34 | right corner (or press "x" to cancel and go back to the package selection | 34 | right corner (or press "x" to cancel and go back to the package selection |
35 | window). The packages should then install, and you should see their icons | 35 | window). The packages should then install, and you should see their icons |
36 | appear in the Launcher, if they are Opie applications. | 36 | appear in the Launcher, if they are Opie applications. |
37 | </para> | 37 | </para> |
38 | </section> | 38 | </section> |
39 | 39 | ||
40 | <section><title>Removing Software</title> | 40 | <section><title>Removing Software</title> |
41 | <para> | 41 | <para> |
42 | Removing software is the same as installing software, except you will press the | 42 | Removing software is the same as installing software, except you will press the |
43 | blue circle icon of an installed package, and it will have a red "X" over it. | 43 | blue circle icon of an installed package, and it will have a red "X" over it. |
44 | Then press the apply icon, and "Ok". You can install and remove packages at | 44 | Then press the apply icon, and "Ok". You can install and remove packages at |
45 | the same time by marking the ones you want to install and the ones you want to | 45 | the same time by marking the ones you want to install and the ones you want to |
46 | remove, and then pressing apply. | 46 | remove, and then pressing apply. |
47 | </para> | 47 | </para> |
48 | </section> | 48 | </section> |
49 | </chapter> \ No newline at end of file | 49 | |
50 | <section><title>Destinations</title> | ||
51 | <para> | ||
52 | Software is distributed in a format called "ipkg" which contains all the | ||
53 | necessary files for the program, as well as information on where to put them. | ||
54 | However, this information is only half complete, as it tells the package manager | ||
55 | where in the "destination" to put the files, but the package manager must know | ||
56 | where this "destination" is. The default destination is "/" (called "root") so | ||
57 | if the package says to install a file in opt/QtPalmtop/ then the file will be | ||
58 | installed in /opt/QtPalmtop/. However, if ask the package manger to use a | ||
59 | destination at /mnt/hda/ (this is typically where a compact flash card would be) | ||
60 | then the files will be installed in /mnt/hda/opt/QtPalmtop/. | ||
61 | </para> | ||
62 | <para> | ||
63 | The problem with installing file in a destination other than root is that the | ||
64 | software usually does not know where to fine the installed files, and Opie does | ||
65 | not know where to find the information that tells it how to display the program | ||
66 | in the Launcher. To get around this, the package manager creates links | ||
67 | <footnote><para>See <xref linkend=symlink> for more information on symbolic | ||
68 | links in Linux</para></footnote> from where the files would be if they were | ||
69 | installed in root to where they are actually installed. This means that no more | ||
70 | space is taken up where the files would normally be installed, but any programs | ||
71 | can still find the files where they think they should be. | ||
72 | </para> | ||
73 | |||
74 | <section><title>Using Destinations</title> | ||
75 | <para> | ||
76 | To install a package in a destination other than root, go to | ||
77 | Settings&arrow;Setups to open the settings dialog to the Setups tab. From here | ||
78 | you can select the destination you would like to install the package to from the | ||
79 | pulldown menu at the bottom. You will also want to check "Link to root | ||
80 | destination" so that links are properly made. Once you have selected the | ||
81 | destination you want to install the package to, click the dialog's "Ok" button, | ||
82 | and all packages that you install will be installed to the destination you | ||
83 | selected. | ||
84 | </para> | ||
85 | </section> | ||
86 | <section><title>Adding Destinations</title> | ||
87 | <para> | ||
88 | To add a destination, go to Settings&arrow;Destinations to bring up the settings | ||
89 | dialog at the Destinations tab, and press the "New" button to add a new | ||
90 | Destination to the list. The new destination should be highlighted | ||
91 | automatically, and you can then change the name and the URL with the two text | ||
92 | entry fields below it. The name is only for easy display of the destination, so | ||
93 | name it whatever makes the most sense to you. The URL is the location that you | ||
94 | want the destination to have. So, if you want all your software to be installed | ||
95 | under /usr/directory then you would set the URL to that. You can then click | ||
96 | "Ok" to save, or "x" to cancel the changes. | ||
97 | </para> | ||
98 | </section> | ||
99 | <section><title>Editing Destinations</title> | ||
100 | <para> | ||
101 | You can edit a destination by going to Settings&arrow;Destinations and selecting | ||
102 | the destination that you would like to edit. Then you can edit the Name and URL | ||
103 | fields in the same manner as when you added a destination. To save, click "Ok" | ||
104 | or cancel by clicking "x". | ||
105 | </para> | ||
106 | </section> | ||
107 | <section><title>Deleting Destinations</title> | ||
108 | <para> | ||
109 | Deleting a destination is very easy. Go to Settings&arrow;Destinations and | ||
110 | select the Destination that you would like to delete in the dialog that appears. | ||
111 | Press the "Remove" button to delete the destination, and press "Ok" to save the | ||
112 | changes, or "x" to cancel them. | ||
113 | </para> | ||
114 | </section> | ||
115 | </section> | ||
116 | </chapter> | ||