feedback.chrislale@coolscience.co.uk
Revision History | ||
---|---|---|
Revision 0.01 | 9 April 2004 | Revised by: cl |
Initial release. |
It may be a good idea to look at the appendix about this document, particularly the section about the conventions used in this document.
![]() | Debian specific |
---|---|
checkinstall will create a Slackware, RPM or Debian compatible package. This article describes the use of checkinstall to create Debian packages only. |
$ mkdir /home/username/Packages/ |
The directory tree looks like this.
/home/ |__ username/ |__ Packages/ |
![]() | Check the directory tree |
---|---|
You can check the directory tree using either ytree or the tree command: tree -L 2 /home/username/Packages/ |
$ cd /home/username/Packages/ $ mkdir Pseudo-debs |
The directory tree looks like this:
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs/ # finished pseudo-deb files here |
The ci.sh script (see the ci.sh script appendix) makes running checkinstall simpler. The script can be pre-configured with the answers to questions that you are normally asked during installation. There are full instructions in the section about a typical installation. Before you use the script, you must configure sudo so that you can run checkinstall as user Root from the script.
Copy and paste the script ci.sh into a text editor. Save it to the /home/username/Packages/ directory and make it executable. You can find the script in the ci.sh appendix.
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs/ |__ checkinstall/ |__ ci.sh # script |
Currently there is no version for stable (Woody), but you can download a Debian package from unstable. You can search for checkinstall at http://www.debian.org/distrib/packages. You may need to use 'pinning'. [1]. If you are installing the Debian package using apt, skip over the next section to configuring sudo.
$ cd /home/username/Packages/ $ mkdir checkinstall |
You can get the latest version of checkinstall from http://checkinstall.izto.org/ . Download the tarball and place it in /home/username/Packages/checkinstall/.
The directory tree looks like this.
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs/ | |__ checkinstall/ | |__ checkinstall-1.5.3.tgz # tarball | |__ ci.sh |
$ cd checkinstall $ tar -xzvf checkinstall-1.5.3.tgz ... list of files extracted ... |
The relevant part of the directory tree looks like this.
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs/ | |__ checkinstall/ | |__ checkinstall-1.5.3 # working directory | | |__ ... # extracted files | | |__ ... | | | |__ checkinstall-1.5.3.tgz | |__ ci.sh |
Now compile, or 'make', the checkinstall program. If the make process stops with an error, it is probably because there are some files that make needs but cannot find on your system. Read the messages, install the Debian packages containing the missing files and try again. You can search the contents of Debian distributions for any files that are part of Debian packages at http://www.debian.org/distrib/packages.
![]() | Auto-completion |
---|---|
Press the <TAB> key after typing the first few letters of the file name. Some, or all, of the remaining letters will appear without any further effort on your part. |
$ cd /home/username/Packages/checkinstall-1.5.3/ $ make ... list of make messages ... make[1]: Leaving directory `/home/username/Packages/\ checkinstall/checkinstall-1.5.3/installwatch-0.6.3' $ |
![]() | mkdir with the --parents option |
---|---|
The --parents option makes sure that you do not get an error if the directory you are trying to create already exists. Also, mkdir creates any non-existing directories in the specified path.. |
$ su Password: ******* # make install ... list of make messages ... # mkdir --parents /usr/local/lib/checkinstall/ # cp checkinstallrc /usr/local/lib/checkinstall/ |
# checkinstall checkinstall 1.5.3, Copyright 2001 Felipe Eduardo Sanchez Diaz Duran This software is released under the GNU GPL. Installing with "make install"... ===================== Installation results ====================== ... list of make messages ... ==================== Installation successful ==================== ... list of processing messages ... |
![]() | Debian specific |
---|---|
The following screen shows the result of choosing to install a Debian pseudo-package. |
Please choose the packaging method you want to use. Slackware [S], RPM [R] or Debian [D]? D This package will be built according to these values: 0 - Maintainer: [ username@local-host ] 1 - Summary: [ CheckInstall installations tracker, version 1.5.3 ] 2 - Name: [ checkinstall ] 3 - Version: [ 1.5.3 ] 4 - Release: [ 1 ] 5 - License: [ GPL ] 6 - Group: [ checkinstall ] 7 - Architecture: [ i386 ] 8 - Source location: [ checkinstall-1.5.3 ] 9 - Alternate source location: [ ] Enter a number to change any of them or press ENTER to continue: |
***************************************** **** Debian package creation selected *** ***************************************** Building Debian package...OK Installing Debian package...OK Erasing temporary files...OK Writing backup package...OK Deleting temp dir...OK **************************************************************** Done. The new package has been installed and saved to /home/username/Packages/checkinstall/checkinstall-1.5.3 /checkinstall_1.5.3-1_i386.deb You can remove it from your system anytime using: dpkg -r checkinstall **************************************************************** # exit $ |
![]() | Long lines of code |
---|---|
Some of these commands are longer than the page width. I have continued a single command onto another line by escaping the newline with a back slash (\). Split commands like this will execute quite normally. Alternatively, you can delete the back slash and the newline so that the command is all on one line. |
mv /home/username/Packages/checkinstall-1.5.3/ \ checkinstall_1.5.3-1_i386.deb \ /home/username/Packages/Psuedo-debs/ \ checkinstall_1.5.3-1_i386.deb |
The relevant part of the directory tree looks like this.
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs/ | |__ checkinstall_1.5.3-1_i386.deb # pseudo-deb | |__ checkinstall/ | |__ checkinstall-1.5.3/ | |__ checkinstall-1.5.3.tgz | |__ ci.sh |
$ dpkg --status sudo Package: sudo Status: install ok installed $ |
If sudo is not installed, you can install it using apt-get install sudo as the user Root.
$ su Password ******* # apt-get install sudo ... # exit $ |
1 # sudoers file. 2 # This file MUST be edited with the 'visudo' command as root. 3 # 4 # See the man page for details on how to write a sudoers file. 5 6 # Host alias specification 7 # ======================== 8 9 # User alias specification 10 # ======================== 11 User_Alias MAINTAINERS = username 12 13 # Command alias specification 14 # ======================== 15 Cmnd_Alias DEB = /usr/local/sbin/checkinstall 16 17 # User privilege specification 18 # ============================ 19 # Format: 20 # 21 #-------------------------------------------------------------- 22 # User_Alias Host_Alias = (Runas_Alias) Authent Cmnd_Alias 23 # -ication 24 # ------------------------------------------------------------- 25 # compulsory run on = run as which PASSWD: compulsory 26 # which user (root (default) 27 # hosts by default) or 28 # (PCs) NOPASSWD: 29 #-------------------------------------------------------------- 30 # 31 root ALL = (ALL) ALL 32 MAINTAINERS ALL = (root) PASSWD: DEB 33 |
Line 32 must exist in any /etc/sudoers file. It allows user Root to have complete access.
![]() | More detail about the sudoers file. |
---|---|
See the sudoers manual for more information. Enter man sudo at the command line. |
vi command | Result of issuing the command |
:w | Write to file sudoers.tmp, and continue in command mode. |
:q | Quit. (Will not quit unless you have saved changes. |
:wq | Write to file sudoers, and quit. (sudoers.tmp is then deleted.) |
:q! | Quit without saving changes. |
You can learn more about vi, at the newbieDoc website. [2]
Add these lines using visudo:
User_Alias: MAINTAINERS = username
Cmnd_Alias: DEB = /usr/local/sbin/checkinstall
User privilege specification: MAINTAINERS ALL = (root) PASSWD: DEB
Now, every time user 'username' runs sudo checkinstall, checkinstall will run with Root permissions (after prompting for username's password).
checkinstall --help bash: checkinstall: command not found $ sudo checkinstall --help Password: ******* checkinstall 1.5.3, Copyright 2001 Felipe Eduardo Sanchez Diaz Duran ... $ |
Here is the part of the directory tree showing directories and files for just the package pkgname:
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs/ | | | |__pkgname-pkgversion.deb # pseudo-deb package | |__ pkgname/ | |__ doc-pak/ | |__ pkgname-pkgversion/ # source directory | |__ ci-pkgname.sh | |__ description-pak | |__ pkgname-pkgversion.tar.gz | |__ pkgname2/ # other packages |__ pkgname3/ |
Carry out the whole process as a normal user. sudo will take care of supplying superuser permissions when you need them (see the section on modifying the sudoers configuration file).
/home/ |__ username/ |__ Packages/ |__ pkgname/ # tarball goes in here |__ ci.sh |
Move to the directory containing the tarball and extract the files using tar.
$ cd /home/username/Packages/pkgname/ $ tar -xzvf pkgname-pkgversion.tar.gz |
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs | |__ pkgname/ | |__ pkgname-pkgversion/ # source directory | |__ pkgname-pkgversion.tar.gz # tarball | |__ ci.sh |
$ nano /home/username/Packages/pkgname/description-pak |
$ mkdir --parents /home/username/Packages/pkgname/doc-pak/ $ cp \ /home/username/Packages/pkgname/pkgname-pkgversion/README \ /home/username/Packages/pkgname/doc-pak/ $ |
![]() | Copying many files |
---|---|
It is much easier to to this using a file manager such as gmc (Gnome), konqueror (KDE) or ytree (console). |
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs | |__ pkgname/ | |__ doc-pak/ # documentation directory | |__ pkgname-pkgversion/ | |__ description-pak # package description file | |__ pkgname-pkgversion.tar.gz | |__ ci.sh |
$ cp \ /home/username/Packages/ci.sh \ /home/username/Packages/pkgname/ci-pkgname.sh $ chmod u+x /home/username/Packages/pkgname/ci-pkgname.sh |
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs | |__ pkgname/ | |__ doc-pak/ | |__ pkgname-pkgversion/ | |__ description-pak | |__ ci-pkgname.sh # script file | |__ pkgname-pkgversion.tar.gz | |__ ci.sh |
Here is the command. It is actually a single line because of the escaped newline characters.
![]() | Debian specific |
---|---|
The --type=debian option causes checkinstall to produce the pseudo-deb package. |
1 sudocheckinstall \ 2 --type=debian \ 3 --maintainer='first-name surname \<your-id@example.net\>' \ 4 --pkgname='pkgname' \ 5 --pkgversion='n.nn' \ 6 --pkgrelease='username-1' \ 7 --pkglicense='Copyright 1996-2002 author. \ 8 GNU General Public License. See COPYING' \ 9 --arch='i386' \ 10 --pkgsource='/home/username/Packages/pkgname/ \ 11 pkgname-pkgversion.tar.gz' \ 12 --pkgaltsource='http://software.example.net/ \ 13 pkgname-pkgversion.tar.gz' \ 14 --pakdir='/home/username/Packages/Pseudo-debs' \ 15 --docdir='/usr/share/doc/' \ --bk \ 16 --backup='yes' \ 17 make install 18 |
Here is a brief explanation of the sudo checkinstall command in the script.
sudo checkinstall command - sudo enables checkinstall to run as user Root.
Package name - derive this from your tarball, omitting version number and tar.gz/tgz suffix.
Package version - derive this from your tarball's version number.
Architecture - leave this as i386 if you are using a standard IBM PC clone.
Package source - the location of the original tarball on your system.
Package, alternative source - the site from which you downloaded the tarball.
Backup - backs up any overwritten files - advisable to keep this!
The directory tree now looks like this:
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs/ | |__ pkgname/ |__ pkgname-pkgversion/ # the source directory | |... extracted directories ... | |... extracted files ... | |__ doc-pak/ # documentation files | |__ README | |__ RELEASE | |__ INSTALL | |... etc ... | |__ pkgname-pkgversion-2.00.3.tar.gz # the tarball |__ ci-pkgname.sh # the script |__ description-pak # description file |
$ ./configure ... $ |
Run make, as a normal user, from the same directory.
$ make ... $ |
![]() | Errors? |
---|---|
This is where you are most likely to have a failure. Usually, this means that you do not have the right software on your system. Make will tell you what is missing. If particular packages must be installed, install them with apt, and try again. If particular files are needed, you must identify which package(s) will supply them. You can search the contents of Debian distributions for any files (or just parts of file names) that are part of packages at http://www.uk.debian.org/distrib/packages. |
$ cd /home/chris/Packages/pkgname/pkgname-pkgversion/ $ ../ci-pkgname.sh Password: ******* checkinstall 1.5.3, Copyright 2001 Felipe Eduardo Sanchez Diaz Duran This software is released under the GNU GPL. Installing with "make INS_BASE=/usr/local install"... ==================== Installation results ======================= Copying documentation directory... ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/conf" ... ================= Installation successful ======================= |
There is a bit of tidying up to do. Accept the default answers to the questions.
Some of the files created by the installation are inside the source directory: ... Do you want me to list them? [n]: n Should I exclude them from the package? (Saying yes is a good idea) [y]: y |
You have a last chance to change some of the values set in the ci-pkgname.sh script.
0 - Maintainer: [ username <your-id@example.net> ] 1 - Summary: [ (The first line of /home/username/Packages/pkgname/description-pak is displayed here.)] 2 - Name: [ cdrtools ] 3 - Version: [ 2.00.3 ] 4 - Release: [ username-1 ] 5 - License: [ Copyright 1996-2002 authorname. GNU General Public License. ] 6 - Group: [ checkinstall ] 7 - Architecture: [ i386 ] 8 - Source location: [ /home/username/Packages/pkgname/ pkgname-pkgversion.tar.gz ] 9 - Alternate source location: [http://software.example.net/ pkgname/pkgname-pkgversion.tar.gz ] Enter a number to change any of them or press ENTER to continue: |
checkinstall creates the package and saves it in the Pseudo-debs directory. It also installs the package on your system. You can remove the pseudo-deb package from your system and re-install it using dpkg. (There are more details on how to do this in the section on testing a new pseudo-deb package.)
****************************************************************** Done. The new package has been installed and saved to /home/username/Packages/Pseudo-debs/ pkgname-pkgversion-username-1_i386.deb You can remove it from your system anytime using: dpkg -r pkgname ****************************************************************** $ |
You can download cdrtools from http://www.fokus.fhg.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html.
![]() | Cannot find URL? |
---|---|
If this address becomes out of date, search for cdrtools at http://www.freshmeat.net. |
![]() | Auto completion of file or directory names. |
---|---|
Type the first two or three letters and press the <TAB> key. Some or all of the file or directory name will appear at the insertion point. |
$ cd /home/username/Packages $ mkdir cdrtools $ cp \ /path-to-this-tarball/cdrtools-2.00.3.tar.gz \ /home/username/Packages/cdrtools/ $ cd cdrtools $ tar -xzvf cdrtools-2.00.3.tar.gz ... list of extracted files ... $ |
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs/ | |__ cdrtools/ |__ cdrtools-2.00.3/ # the source directory |__ cdrtools-2.00.3.tar.gz |
![]() | GNU make is the version supplied with Debian. |
---|---|
You can check this using the command apt-cache show make. |
$ cd /home/username/Packages/cdrtools/ $ mkdir doc-pak |
Copy documentation files from the source directory into doc-pak/.
For example, copy the ABOUT file to the doc-pak directory.
cp \ /home/username/Packages/cdrtools/cdrtools-2.00.3/ABOUT \ /home/username/Packages/cdrtools/docpak/ |
Other files you might also wish to you copy are:
ABOUT BUILD COMPILE COPYING INSTALL PORTING README README.audio README.cdplus README.cdtext README.compile README.copy README.gmake README.linux README.linux-shm README.mkisofs README.multi README.verify START |
$ cd /home/username/Packages/cdrtools/ $ touch doc-pak $ nano doc-pak This package contains the following software: cdda2wav (an digital CD audio extraction program), cdrecord (a CD recording program), mkisofs (an ISO-9660 file system image creator) and others. See ABOUT. <CTRL>+O File Name to write: doc-pak <CTRL>+X $ |
![]() | Checking permissions. |
---|---|
Check using ls -l ci-cdrtools.sh. An 'x' in the fourth position means 'executable by user': -rwxr--r-- . |
$ cp \ /home/username/Packages/ci.sh \ /home/username/Packages/cdrtools/ci-cdrtools.sh |
The cdrtools part of the directory tree now looks like this:
/home/ |__ username/ |__ Packages/ |__ Pseudo-debs/ | |__ cdrtools/ |__ cdrtools-2.00.3/ |__ doc-pak/ # documentation |__ cdrtools-2.00.3.tar.gz |__ ci-cdrtools.sh # the script |__ description-pak # description file |
sudo checkinstall \ --type=debian \ --maintainer='username \<username@example.net\>' \ --pkgname='cdrtools' \ --pkgversion='2.00.3' \ --pkgrelease='username-1' \ --pkglicense='Copyright 1996-2002 J. Schilling. GNU General Public License. See COPYING' \ --arch='i386' \ -- --pkgsource='/home/username/Packages/cdrtools/\ cdrtools-2.00.3.tar.gz' \ --pkgaltsource='http://sw.example.net/cdrtools-2.00.3.tar.gz' --pakdir='/home/username/Packages/Pseudo-debs/' \ --docdir='/usr/share/doc/' \ --bk \ --backup='yes' \ make INS_BASE=/usr/local install |
$ cd /home/username/Packages/cdrtools/cdrtools-2.00.3 $ make ... ==> MAKING "all" ... ==> MAKING DIRECTORY ... ==> COMPILING ... ==> ARCHIVING ... ==> RANDOMIZING ARCHIVE ... ... $ |
If the process halts, make will tell you which files it cannot find. You can search the contents of Debian distributions for any files that are part of Debian packages at http://www.uk.debian.org/distrib/packages. When you have identified the missing packages, install them with apt and try again.
![]() | Run the script from one level below its location. |
---|---|
Make sure that you prefix the command with two dots and a forward slash when you execute it. |
$ ../ci-cdrtools.sh Password: ******* checkinstall 1.5.3, Copyright 2001 Felipe Eduardo Sanchez Diaz Duran This software is released under the GNU GPL. Installing with "make INS_BASE=/usr/local install"... ===================== Installation results ======================= Copying documentation directory... ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/conf" ... =================== Installation successful ====================== |
There is a bit of tidying up to do. Accept the default answers to the questions.
Some of the files created by the installation are inside the source directory: ... Do you want me to list them? [n]: n Should I exclude them from the package? (Saying yes is a good idea) [y]: y |
You have a last chance to change some of the values set in the ci-cdrtools script.
0 - Maintainer: [ first-name surname <your-id@example.net> ] 1 - Summary: [ This package contains cdda2wav (an digital CD audio extraction program), cdrecord (a CD recording program), mkisofs (an ISO-9660 filesystem image creator) and others. See ABOUT. 2 - Name: [ cdrtools ] 3 - Version: [ 2.00.3 ] 4 - Release: [ surname-1 ] 5 - License: [ Copyright 1996-2002 J. Schilling. GNU General Public License. ] 6 - Group: [ checkinstall ] 7 - Architecture: [ i386 ] 8 - Source location: [ /home/username/Packages/cdrtools/ cdrtools-2.00.3.tar.gz ] 9 - Alternate source location: [http://software.freshmeat.net/redir/ cdrecord/35795/url_tgz/cdrtools-2.00.3.tar.gz ] Enter a number to change any of them or press ENTER to continue: |
****************************************************************** Done. The new package has been installed and saved to /home/username/Packages/Pseudo-debs/ cdrtools_2.00.3-username-1_i386.deb You can remove it from your system anytime using: dpkg -r cdrtools ****************************************************************** $ |
$ dpkg --status cdrtools |
$ dpkg --print-avail cdrtools |
$ dpkg --listfiles cdrtools |
# dpkg --remove cdrtools |
# dpkg --install \ /home/username/Packages/Pseudo-debs/ \ cdrtools_2.00.3-username-1_i386.deb |
![]() | Even more things you might want to try. You can find more options in the manual (man dpkg) or by using the help command (dpkg --help). |
Copy and paste this script into a text editor. Save as /home/username/Packages/ci.sh, and make it executable. (See the section on installing the ci.sh script.) You can then make a modified copy of the script for each new installation (see the section on customising the ci-sh script).
#!/bin/bash # ci.sh # version 0.01 # # copyright (c) 2004, Chris Lale <chrislale@coolscience.co.uk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation. # # This program is distributed in the hope that it will be # useful' but WITHOUT ANY WARRANTY; without even the implied # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # # http://www.gnu.org/copyleft/gpl.html # # On Debian systems, you can find the complete text of the GNU # General Public License may be found in # # /usr/share/common-licenses/GPL. # # # About this script # ----------------- # This script uses sudo to run checkinstall on a Debian system. # Checkinstall is used to install software compiled from a tarball. # It creates a .deb package file and installs it, keeping track of # files added to your system, and making a backup of your # system's original files. This script runs checkinstall and # passes options to it. # # Before running this script # -------------------------- # You must extract the files from the tarball, and place this # script in the directory immediately above the extracted files # (ie the same directory as the tarball itself). You must make # sure that this script file is executable (chmod u+x ci.sh). You # must also configure sudo so that a particular normal user may # run checkinstall as the superuser. # # How to use this script # ---------------------- # You must edit the options to suit your installation. You may # also need to edit the 'make install' statement if the software # you are installing uses a variation on this command. The script # assumes that the description-pak file and the doc-pak directory # needed by checkinstall are in the same directory as this script # file. # # Place a suitably modified version of this script in the # directory containing the working directory. Run the script, as # a normal user, from the working directory. The working # directory will be immediately below the script. Move to the # working directory and execute '../ci.sh' without the quotes. # # Detailed instructions # --------------------- # You can find detailed guide in the article called 'Installing # from tarballs using checkinstall' at # # http://newbiedoc.sourceforge.net. # #------------------- script starts here ------------------------- # # Copy the description file description-pak and document directory # doc-pak into the top of the build directory. If doc-pak or # description-pak exist in the build directory, remove them first. # if [ -f description-pak ]; then rm --force description-pak; fi cp ../description-pak ./ if [ -d doc-pak ]; then rm --force --recursive doc-pak; fi cp --recursive ../doc-pak ./ # #----------------- not edit above this line --------------------- # # Use sudo to run checkinstall as the superuser. Change these # options to suit the tarball's particular COMPILE and INSTALL # needs. # sudo checkinstall \ --type=debian \ --maintainer='first-name surname \<your-id@example.net\>' \ --pkgname='package-name' \ --pkgversion='n.nn' \ --pkgrelease='username-1' \ --pkglicense='Copyright 1996-2002 author. GNU General Public \ License. See COPYING' \ --arch='i386' \ --pkgsource='/home/username/Packages/package-name/\ package-name-version.num.tar.gz' \ --pkgaltsource='http://software.example.net/\ package-name-version.num.tar.gz' \ --pakdir='/home/username/Packages/Pseudo-debs/' \ --docdir='/usr/share/doc/' \ --bk \ --backup='yes' \ make install # #------------------- Do not edit below this line ----------------- # move backup file(s) to a safe location (the directory above the # source directory). This allows the source directory to be deleted # safely. # if ! [ -f backup-* ]; then echo Original files were not backed-up.; echo ; else echo Moving backup file one level up from ; pwd; echo ; mv ./backup-* ../; fi # Invalidate the user's timestamp by setting the time on it to the # epoch. The next time sudo is run, a password will be required. # This makes accidental use of any permitted commands less likely. # sudo -k |
Copyright ©2004 Chris Lale <feedback.chrislale@coolscience.co.uk>. Permission is granted to copy, distribute and/or modify this document with no Invariant Sections, with no Front-Cover texts and with no Back-Cover Texts under the terms of the GNU Free Documentation License, version 1.1 or any later version, published by the Free Software Foundation. A copy of the license can be found at http://www.fsf.org/copyleft/fdl.html.
You can get the latest version of this document from http://newbiedoc.sourceforge.net.
If you find any errors, omissions etc, please let me know <feedback.chrislale@coolscience.co.uk>.
You can find guides to English spelling, punctuation and grammar at http://www.cral.ac.uk/guidelines/.
my-file.txt my-directory /my-path/my-directory/ my-application my-package This is some terminal text. |
Filenames, application names, package names and text displayed in an X window look like this.
my-file.txt my-application my-package This is some text in an X window. |
man 8 apt-cache - APT package handling utility -- cache manipulator
man 8 apt-get - APT package handling utility -- command-line interface.
man 1 chmod - change file access permissions.
man 8 dpkg - a medium-level package manager for Debian.
man 1 gzip - gzip, gunzip, zcat - compress or expand files
man 1 less - view a file in a terminal with up and down scrolling.
- http://www.tldp.org/LDP/Linux-Dictionary/html/index.html - online dictionary of Linux terminology.
man 1L make - GNU make utility to maintain groups of programs.
man 1 mkdir - make directories.
man 1 nano - Nano's ANOther editor, and simple to use.
http://gd.tuwien.ac.at/linuxcommand.org/learning_the_shell.html#contents - one of many bash guides on the web.
man 8 sudo - execute a command as another user.
/usr/share/doc/sudo/README - general information about sudo including its philosophy.
/usr/share/doc/sudo/OPTIONS - who sudo is configured for Debian systems.
man 5 sudoers - a list of which users may execute what.
man 1 tar - The GNU version of the tar archiving utility.
man 1 tree - list contents of directories in a tree-like format.
man 1 vi - text editor.
http://newbiedoc.sourceforge.net/text_editing/vim.html - how to use vim - an alternative to vi.
man 8 visudo - edit the sudoers file.
man 1L ytree -- file manager for the console.
”apt HOWTO” - managing packages. http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html.
"VI - Visual Editor"- a quick intro to the basics of the vi editor. http://newbiedoc.sourceforge.net/text_editing/vi.html