author | spiralman <spiralman> | 2002-07-30 19:37:51 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2002-07-30 19:37:51 (UTC) |
commit | 38714c22a9c99c920bd42dbf7ba81622b735fe16 (patch) (side-by-side diff) | |
tree | b446b829652e74aa44d65cfe19b23cd0867b7c1b /docs/usermanual | |
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. Along the top of the window is a row of menus and icons. The "Font" menu lets you select the font size that you want the console to use, while the Options menu lets you select various options. Below this row of menus and icons is a pulldown list with various common commands in it. </para> <section><title>Options Menu</title> <para> The first submenu in the options menu is the "Command List" menu, which lets you edit or hide the command list pulldown. The "Tabs on top" or "Tabs on bottom" (depending on which is currently enabled) allows you to select where the tabs representing multiple terminal sessions are drawn. The "Colors" submenu lets you select from a color scheme, or make your own, and the "Scroll Bar" submenu lets you select where or if the scroll bar is drawn. </para> </section> <section><title>Icons</title> <para> The row of icons to the right of the menus allows you to type common keystrokes without having an input method visible, as well as some other things. </para> <para> The icon all the way on the left will open a new terminal session in a new tab, while the icon all the way on the right will paste text from the clipboard into the terminal. </para> <para> The other icons are the same as typing (from left to right) enter, space, tab (for tab completion), up, and down (for the command history). </para> </section> <section><title>Command List</title> <para> The command list is a pulldown menu with a list of commonly used commands. Selecting one will type the command into the terminal wherever the cursor is. You can edit or hide this menu from <GUIMenu>Options</GUIMenu>&arrow; <GUIMenuItem>Command List.</GUIMenuItem> </para> </section> </section> <section><title>What is a Shell</title> <para> A shell is a program that accepts input from a user, and runs commands. Each "command" in the shell is actually a separate program (unless you are using a shell like BusyBox, which makes some of the more common commands part of its own program in order to save space). Shells can actually be very powerful, and many + + of them allow you to write something called "shell scripts" which are just a sequence of commands, sometimes with some flow control statements, saved to a file and run each time the script is run. For the most part, the average user does not need to know about any of this, though. If you are running Opie on the Familiar distribution, it is advisable to install the bash shell (ipkg install bash) because it offers things like tab completion, use of the backspace key, and a command history, as well as offering a more advanced scripting languauge than most other shells. </para> </section> <section><title>Running Programs</title> <para> To run a program or a command (remember, a command is just another program), you simply type the name of the program and hit "Return" (in Linux, program names do not have a special suffix like they do in windows, in fact the "." character has no special meaning unless it is at the begining of a filename, in which case it makes the file "hidden"). When you type a program name and hit "Return" the shell looks in a special list of directories called your "path", and if it cannot find it in any of those directories, it stops looking and tells you it could not find them. If you want to run a program that is not in your path, you must specify an absolute or relative path to that program. For instance, to run a program that is in the directory you are currently in, you would type <literal>./program</literal> ("./" is a special directory that is explained below), or to run a program in /home/username/ you would call <literal>/home/username/program</literal>. </para> <para> Most programs take "arguments" when run from the command line. An argument is a string that contains no spaces that changes how the program behaves (a text editor, for instance, might take a single argument, which would be the name of the file you wish to edit). Usually, you can use the arguments "-h" or "--help" to get a list of the common arguments that that program takes, along with a short usage description, and a short description of what each argument does. </para> </section> <section><title>Basic Navigation</title> <para> The command that you will use most often in the shell is probably the "cd" command, which stands for "change directory." With this command, you can move around in the file system, by issuing the command like this: <userinput>cd <replaceable>[new directory]</replaceable></userinput>, where <replaceable>[new directory]</replaceable> is the directory you want to move to. This directory name does not have to include the entire directory structure, but can be "relative" which means it assumes you are talking about directories relative to the directory you are in. For example, if you are in a directory called /home/username and you want to move to the directory /home/username/other/dir you could simply type <userinput>cd other/dir</userinput> and you would end up in /home/username/other/dir. You can also specify a full, or "absolute" path, by specifying the entire path name starting with / ( / is a special directory called the "root" directory, and does not have a "parent" directory, which means that it is not in any other directory). There are also two special directories called "./" and "../". The "./" directory is the current directory you are in, and you will probably never use this in conjunction with the cd command (why would you want to move to the directory you are already in?). The "../" directory represents the parent directory of the directory you are currently in, so if you are in /home/username, ../ is the same as /home. You can string several ../'s together, so if you are in /home/username/dir/ ../../ represents /home. There is one other special directory, called "~/" that points to your home directory (usually /home/username or /root for the root user). </para> </section> <section><title>Moving Files</title> <para> To move files around, you need to use the "cp" (copy) and "mv" (move) commands. Both of these are run the same way: <userinput>command originalfile newfile</userinput>. The only difference is that cp creates a new file without touching the old one, while mv deletes the original file. The two path names can be either absolute or relative. If you only specify a directory for the destination, and no filename, it will use the filename for the original file. </para> </section> <section><title>Deleting Files</title> <para> To delete a file, run the "rm" command, and to delete a directory, run the "rmdir" command, each of them take the file to be removed as their only argument. The rmdir command requires the directory to be empty, so if you want to delete a directory that is not empty, along with all its contents, run <userinput>rm -r dir</userinput>. </para> </section> -<section><title>Linking Files</title> +<section id=symlink><title>Linking Files</title> <para> In Linux, you can have a special file called a "symbolic link" that acts just like a copy of another file, except it takes up less space. This is convinient if two applications are looking for the same file in two separate places, because the file can be in both places at once, without taking up any extra space, and any change to one is automatically applied to the other (really, there is only one file, the link is just a file pointing to the original file). This is also useful for naming applications independant of their version number. For instance, you could have a link called "application" that points to "application1.0". To create a link, use the following command: <userinput>ln -s originalfile link</userinput>. </para> </section> -</chapter>
\ No newline at end of file +</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 @@ <chapter><title>Software</title> <para> The "Software" application, also called oipkg, is what is used to install and remove software. It is actually a frontend to the command line program "ipkg" so most things you can do with oipkg you can also do with ipkg. Oipkg can install things either remotely from a web server (called a "feed") or it can install an ipkg package file that resides on the local filesystem. </para> <important> <para> There is a bug in oipkg that prevents it from installing packages properly. There is, however, a workaround for it. Simply run oipkg from Embedded Konsole to avoid the bug. </para> </important> <section><title>Installing Software</title> <para> To install software, first select "Opie" from the "Section" pulldown menu, the press the "+" icon next to "Feeds" in the main view. This will show all the available Opie packages (you can change which packages to view by selecting something else from the "Section" pulldown). Installed packages are marked with a blue circle, while packages that are not installed are marked with a red box. If you click on the icon for an uninstalled package, it will turn into an open box, with a blue circle coming out of it, indicating that you have marked this package to be installed. Mark as many packages as you wish this way, and then press the "Apply" icon (same red box and blue dot icon) to install all the marked packages. It will also remove any packages marked for removal (see below). Clicking this will open a window showing all the packages marked to be removed and installed, with some check boxes on the bottom, which represent arguments to be sent to ipkg, which you can usually ignore. After verifying that all the packages to be installed are correct, press "Ok" in the upper right corner (or press "x" to cancel and go back to the package selection window). The packages should then install, and you should see their icons appear in the Launcher, if they are Opie applications. </para> </section> <section><title>Removing Software</title> <para> Removing software is the same as installing software, except you will press the blue circle icon of an installed package, and it will have a red "X" over it. Then press the apply icon, and "Ok". You can install and remove packages at the same time by marking the ones you want to install and the ones you want to remove, and then pressing apply. </para> </section> -</chapter>
\ No newline at end of file + +<section><title>Destinations</title> +<para> +Software is distributed in a format called "ipkg" which contains all the +necessary files for the program, as well as information on where to put them. +However, this information is only half complete, as it tells the package manager +where in the "destination" to put the files, but the package manager must know +where this "destination" is. The default destination is "/" (called "root") so +if the package says to install a file in opt/QtPalmtop/ then the file will be +installed in /opt/QtPalmtop/. However, if ask the package manger to use a +destination at /mnt/hda/ (this is typically where a compact flash card would be) +then the files will be installed in /mnt/hda/opt/QtPalmtop/. +</para> +<para> +The problem with installing file in a destination other than root is that the +software usually does not know where to fine the installed files, and Opie does +not know where to find the information that tells it how to display the program +in the Launcher. To get around this, the package manager creates links +<footnote><para>See <xref linkend=symlink> for more information on symbolic +links in Linux</para></footnote> from where the files would be if they were +installed in root to where they are actually installed. This means that no more +space is taken up where the files would normally be installed, but any programs +can still find the files where they think they should be. +</para> + +<section><title>Using Destinations</title> +<para> +To install a package in a destination other than root, go to +Settings&arrow;Setups to open the settings dialog to the Setups tab. From here +you can select the destination you would like to install the package to from the +pulldown menu at the bottom. You will also want to check "Link to root +destination" so that links are properly made. Once you have selected the +destination you want to install the package to, click the dialog's "Ok" button, +and all packages that you install will be installed to the destination you +selected. +</para> +</section> +<section><title>Adding Destinations</title> +<para> +To add a destination, go to Settings&arrow;Destinations to bring up the settings +dialog at the Destinations tab, and press the "New" button to add a new +Destination to the list. The new destination should be highlighted +automatically, and you can then change the name and the URL with the two text +entry fields below it. The name is only for easy display of the destination, so +name it whatever makes the most sense to you. The URL is the location that you +want the destination to have. So, if you want all your software to be installed +under /usr/directory then you would set the URL to that. You can then click +"Ok" to save, or "x" to cancel the changes. +</para> +</section> +<section><title>Editing Destinations</title> +<para> +You can edit a destination by going to Settings&arrow;Destinations and selecting +the destination that you would like to edit. Then you can edit the Name and URL +fields in the same manner as when you added a destination. To save, click "Ok" +or cancel by clicking "x". +</para> +</section> +<section><title>Deleting Destinations</title> +<para> +Deleting a destination is very easy. Go to Settings&arrow;Destinations and +select the Destination that you would like to delete in the dialog that appears. + Press the "Remove" button to delete the destination, and press "Ok" to save the +changes, or "x" to cancel them. +</para> +</section> +</section> +</chapter> |