Debian Reference I

Total Page:16

File Type:pdf, Size:1020Kb

Debian Reference I Debian Reference i Debian Reference Debian Reference ii Copyright © 2013-2021 Osamu Aoki This Debian Reference (version 2.81) (2021-08-25 14:16:08 UTC) is intended to provide a broad overview of the Debian system as a post-installation user’s guide. It covers many aspects of system administration through shell-command examples for non- developers. Debian Reference iii COLLABORATORS TITLE : Debian Reference ACTION NAME DATE SIGNATURE WRITTEN BY Osamu Aoki August 26, 2021 REVISION HISTORY NUMBER DATE DESCRIPTION NAME Debian Reference iv Contents 1 GNU/Linux tutorials 1 1.1 Console basics .................................................... 1 1.1.1 The shell prompt ............................................... 1 1.1.2 The shell prompt under GUI ......................................... 2 1.1.3 The root account ............................................... 2 1.1.4 The root shell prompt ............................................. 3 1.1.5 GUI system administration tools ....................................... 3 1.1.6 Virtual consoles ................................................ 3 1.1.7 How to leave the command prompt ..................................... 3 1.1.8 How to shutdown the system ......................................... 4 1.1.9 Recovering a sane console .......................................... 4 1.1.10 Additional package suggestions for the newbie ............................... 4 1.1.11 An extra user account ............................................. 5 1.1.12 sudo configuration .............................................. 5 1.1.13 Play time ................................................... 6 1.2 Unix-like filesystem .................................................. 6 1.2.1 Unix file basics ................................................ 6 1.2.2 Filesystem internals ............................................. 8 1.2.3 Filesystem permissions ............................................ 8 1.2.4 Control of permissions for newly created files: umask ........................... 10 1.2.5 Permissions for groups of users (group) ................................... 11 1.2.6 Timestamps .................................................. 12 1.2.7 Links ..................................................... 13 1.2.8 Named pipes (FIFOs) ............................................. 14 1.2.9 Sockets .................................................... 14 1.2.10 Device files .................................................. 14 1.2.11 Special device files .............................................. 15 1.2.12 procfs and sysfs ................................................ 15 1.2.13 tmpfs ..................................................... 16 1.3 Midnight Commander (MC) ............................................. 16 Debian Reference v 1.3.1 Customization of MC ............................................. 17 1.3.2 Starting MC .................................................. 17 1.3.3 File manager in MC ............................................. 17 1.3.4 Command-line tricks in MC ......................................... 17 1.3.5 The internal editor in MC .......................................... 18 1.3.6 The internal viewer in MC .......................................... 18 1.3.7 Auto-start features of MC .......................................... 19 1.3.8 FTP virtual filesystem of MC ........................................ 19 1.4 The basic Unix-like work environment ........................................ 19 1.4.1 The login shell ................................................ 19 1.4.2 Customizing bash ............................................... 20 1.4.3 Special key strokes .............................................. 20 1.4.4 Mouse operations ............................................... 21 1.4.5 The pager ................................................... 22 1.4.6 The text editor ................................................ 22 1.4.7 Setting a default text editor .......................................... 22 1.4.8 Using vim ................................................... 23 1.4.9 Recording the shell activities ......................................... 23 1.4.10 Basic Unix commands ............................................ 24 1.5 The simple shell command .............................................. 26 1.5.1 Command execution and environment variable ............................... 26 1.5.2 The ”$LANG” variable ............................................ 26 1.5.3 The ”$PATH” variable ............................................ 27 1.5.4 The ”$HOME” variable ............................................ 28 1.5.5 Command line options ............................................ 28 1.5.6 Shell glob ................................................... 28 1.5.7 Return value of the command ........................................ 29 1.5.8 Typical command sequences and shell redirection .............................. 30 1.5.9 Command alias ................................................ 31 1.6 Unix-like text processing ............................................... 32 1.6.1 Unix text tools ................................................ 32 1.6.2 Regular expressions ............................................. 33 1.6.3 Replacement expressions ........................................... 34 1.6.4 Global substitution with regular expressions ................................. 34 1.6.5 Extracting data from text file table ...................................... 35 1.6.6 Script snippets for piping commands ..................................... 37 Debian Reference vi 2 Debian package management 38 2.1 Debian package management prerequisites ...................................... 38 2.1.1 Package configuration ............................................ 38 2.1.2 Basic precautions ............................................... 39 2.1.3 Life with eternal upgrades .......................................... 40 2.1.4 Debian archive basics ............................................ 41 2.1.5 Debian is 100% free software ........................................ 44 2.1.6 Package dependencies ............................................ 45 2.1.7 The event flow of the package management ................................. 46 2.1.8 First response to package management troubles ............................... 47 2.2 Basic package management operations ........................................ 47 2.2.1 apt vs. apt-get / apt-cache vs. aptitude ............................. 47 2.2.2 Basic package management operations with the commandline ....................... 48 2.2.3 Interactive use of aptitude .......................................... 50 2.2.4 Key bindings of aptitude ........................................... 50 2.2.5 Package views under aptitude ........................................ 50 2.2.6 Search method options with aptitude ..................................... 52 2.2.7 The aptitude regex formula .......................................... 52 2.2.8 Dependency resolution of aptitude ...................................... 54 2.2.9 Package activity logs ............................................. 54 2.3 Examples of aptitude operations ........................................... 54 2.3.1 Listing packages with regex matching on package names .......................... 55 2.3.2 Browsing with the regex matching ...................................... 55 2.3.3 Purging removed packages for good ..................................... 55 2.3.4 Tidying auto/manual install status ...................................... 55 2.3.5 System wide upgrade ............................................. 56 2.4 Advanced package management operations ..................................... 57 2.4.1 Advanced package management operations with commandline ....................... 57 2.4.2 Verification of installed package files .................................... 59 2.4.3 Safeguarding for package problems ..................................... 59 2.4.4 Searching on the package meta data ..................................... 59 2.5 Debian package management internals ........................................ 59 2.5.1 Archive meta data .............................................. 59 2.5.2 Top level ”Release” file and authenticity ................................... 60 2.5.3 Archive level ”Release” files ......................................... 61 2.5.4 Fetching of the meta data for the package .................................. 62 2.5.5 The package state for APT .......................................... 62 2.5.6 The package state for aptitude ........................................ 62 2.5.7 Local copies of the fetched packages ..................................... 62 Debian Reference vii 2.5.8 Debian package file names .......................................... 62 2.5.9 The dpkg command .............................................. 63 2.5.10 The update-alternatives command ...................................... 64 2.5.11 The dpkg-statoverride command ....................................... 64 2.5.12 The dpkg-divert command .......................................... 65 2.6 Recovery from a broken system ........................................... 65 2.6.1 Incompatibility with old user configuration ................................. 65 2.6.2 Different packages with overlapped files .................................. 65 2.6.3 Fixing broken package script ......................................... 66 2.6.4 Rescue with the dpkg command ....................................... 66 2.6.5 Recovering package selection data .....................................
Recommended publications
  • Chapter 5 Formatting Pages: Basics Page Styles and Related Features Copyright
    Writer 6.0 Guide Chapter 5 Formatting Pages: Basics Page styles and related features Copyright This document is Copyright © 2018 by the LibreOffice Documentation Team. Contributors are listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/), version 4.0 or later. All trademarks within this guide belong to their legitimate owners. Contributors Jean Hollis Weber Bruce Byfield Gillian Pollack Acknowledgments This chapter is updated from previous versions of the LibreOffice Writer Guide. Contributors to earlier versions are: Jean Hollis Weber John A Smith Ron Faile Jr. Jamie Eby This chapter is adapted from Chapter 4 of the OpenOffice.org 3.3 Writer Guide. The contributors to that chapter are: Agnes Belzunce Ken Byars Daniel Carrera Peter Hillier-Brook Lou Iorio Sigrid Kronenberger Peter Kupfer Ian Laurenson Iain Roberts Gary Schnabl Janet Swisher Jean Hollis Weber Claire Wood Michele Zarri Feedback Please direct any comments or suggestions about this document to the Documentation Team’s mailing list: [email protected] Note Everything you send to a mailing list, including your email address and any other personal information that is written in the message, is publicly archived and cannot be deleted. Publication date and software version Published July 2018. Based on LibreOffice 6.0. Note for macOS users Some keystrokes and menu items are different on macOS from those used in Windows and Linux. The table below gives some common substitutions for the instructions in this book.
    [Show full text]
  • 2MORE on WORD PROCESSING Working with Larger Documents
    Lesson 2: More on Word Processing MORE ON WORD PROCESSING Working with larger documents 2 LEARNING OUTCOMES In Lesson 1, you learned how to create, edit, and save a new document (the Conference Call letter). You practiced moving around the page on the screen. You carried out simple formatting and updating: adjusting margins, adding, deleting, and changing text. You learned to use the spelling checker. Finally, you used the printer to produce a hard copy (printed) version of your document on paper. You should be thinking of the computer as a tool for processing data of all kinds in much the same way as sculptors or wood carvers think of a hammer and chisel as tools for creating forms out of stone or wood. LibreOffice Writer has many functions that are designed to help you mold your writing into a work of art. In this tutorial you will review what you learned in Lesson 1. Then you will be introduced to functions of Writer that are especially valuable when working with longer documents. Amongst these are the following: Inserting page numbers tools for formatting text bullets and numbered lists more on indenting text creating sections and columns of text finding and replacing text moving and copying text within a document setting off a block of text with a border adding graphics to a Writer document A caveat before you begin: You'll find it easiest to use the tutorial if you follow the directions carefully. On computers there are always other ways of doing things, but if you wander off on your own be sure you know your way back! 31 ESSENTIAL LibreOffice: Tutorials for Teachers Copyright © Bernard John Poole, 2016.
    [Show full text]
  • List of Word Processors (Page 1 of 2) Bob Hawes Copied This List From
    List of Word Processors (Page 1 of 2) Bob Hawes copied this list from http://en.wikipedia.org/wiki/List_of_word_processors. He added six additional programs, and relocated the Freeware section so that it directly follows the FOSS section. This way, most of the software on page 1 is free, and most of the software on page 2 is not. Bob then used page 1 as the basis for his April 15, 2011 presentation Free Word Processors. (Note that most of these links go to Wikipedia web pages, but those marked with [WEB] go to non-Wikipedia websites). Free/open source software (FOSS): • AbiWord • Bean • Caligra Words • Document.Editor [WEB] • EZ Word • Feng Office Community Edition • GNU TeXmacs • Groff • JWPce (A Japanese word processor designed for English speakers reading or writing Japanese). • Kword • LibreOffice Writer (A fork of OpenOffice.org) • LyX • NeoOffice [WEB] • Notepad++ (NOT from Microsoft) [WEB] • OpenOffice.org Writer • Ted • TextEdit (Bundled with Mac OS X) • vi and Vim (text editor) Proprietary Software (Freeware): • Atlantis Nova • Baraha (Free Indian Language Software) • IBM Lotus Symphony • Jarte • Kingsoft Office Personal Edition • Madhyam • Qjot • TED Notepad • Softmaker/Textmaker [WEB] • PolyEdit Lite [WEB] • Rough Draft [WEB] Proprietary Software (Commercial): • Apple iWork (Mac) • Apple Pages (Mac) • Applix Word (Linux) • Atlantis Word Processor (Windows) • Altsoft Xml2PDF (Windows) List of Word Processors (Page 2 of 2) • Final Draft (Screenplay/Teleplay word processor) • FrameMaker • Gobe Productive Word Processor • Han/Gul
    [Show full text]
  • The Ipe Manual
    The Ipe manual Otfried Cheong November 22, 2004 1 Welcome to the Wonderful World of Ipe! . where making pictures is as easy as $\pi$ ... Preparing figures for a scientific article is a time-consuming process. If you are using the LATEX document preparation system in an environment where you can include (encapsulated) Postscript figures or PDF figures, then the extendible drawing editor Ipe may be able to help you in the task. Ipe allows you to prepare and edit drawings containing a variety of basic geometry primitives like lines, splines, polygons, circles etc. Ipe also allows you to add text to your drawings, and unlike most other drawing programs, Ipe treats these text object as LATEX text. This has the advantage that all usual LATEX commands can be used within the drawing, which makes the inclusion of mathematical formulae (or even simple A labels like “qi”) much simpler. Ipe processes your LTEX source and includes its Postscript or PDF rendering in the figure. In addition, Ipe offers you some editing functions that can usually only be found in professional drawing programs or cad systems. For instance, it incorporates a context sensitive snapping mechanism, which allows you to draw objects meeting in a point, having parallel edges, objects aligned on intersection points of other objects, rectilinear and c-oriented objects and the like. Whenever one of the snapping modes is enabled, Ipe shows you Fifi, a secondary cursor, which keeps track of the current aligning. One of the nicest features of Ipe is the fact that it is extensible. You can easily write your own functions, so-called ipelets.
    [Show full text]
  • Feasibility Study: Migrating from Microsoft Office to Libreoffice in An
    Feasibility Study: Migrating from Microsoft Office to LibreOffice in an Academic Enterprise Environment By: Curran Hamilton, David Hersh, Jacqueline McPherson, Tyler Mobray Humboldt State University May 4th, 2012 Abstract This study investigates the feasibility of a migration from Microsoft Office to an alternative office suite at Humboldt State University. After investigating the market for viable alternatives, it was determined that only the open source LibreOffice might be mature enough to meet the needs of a complex enterprise. A literature search was done to learn more about the suite and its development community. Use cases were drawn up and test cases were derived from them in order to compare the functionality of LibreOffice with that of Microsoft Office. It was concluded that LibreOffice is a rapidly maturing and promising suite that may be a viable replacement in one to two years, but is not an acceptable alternative to Microsoft Office in the enterprise environment today. 1 1. Introduction Due to continually increasing costs associated with the CSU’s contract with Microsoft for its many products, including the Office suite, Humboldt State University decided to look into other office suites (preferably open source) that can perform acceptably in place of Microsoft Office (MS Office). The Information Technology Services (ITS) department hired a team of four interns (Curran Hamilton, David Hersh, Jacqueline McPherson, and Tyler Mobray) to determine if a successful migration away from MS Office was feasible enough to warrant further research. We explored other office products currently available, decided on candidate suites, and tested the candidates. Finally, we analyzed and reported on our findings.
    [Show full text]
  • Referência Debian I
    Referência Debian i Referência Debian Osamu Aoki Referência Debian ii Copyright © 2013-2021 Osamu Aoki Esta Referência Debian (versão 2.85) (2021-09-17 09:11:56 UTC) pretende fornecer uma visão geral do sistema Debian como um guia do utilizador pós-instalação. Cobre muitos aspetos da administração do sistema através de exemplos shell-command para não programadores. Referência Debian iii COLLABORATORS TITLE : Referência Debian ACTION NAME DATE SIGNATURE WRITTEN BY Osamu Aoki 17 de setembro de 2021 REVISION HISTORY NUMBER DATE DESCRIPTION NAME Referência Debian iv Conteúdo 1 Manuais de GNU/Linux 1 1.1 Básico da consola ................................................... 1 1.1.1 A linha de comandos da shell ........................................ 1 1.1.2 The shell prompt under GUI ......................................... 2 1.1.3 A conta root .................................................. 2 1.1.4 A linha de comandos shell do root ...................................... 3 1.1.5 GUI de ferramentas de administração do sistema .............................. 3 1.1.6 Consolas virtuais ............................................... 3 1.1.7 Como abandonar a linha de comandos .................................... 3 1.1.8 Como desligar o sistema ........................................... 4 1.1.9 Recuperar uma consola sã .......................................... 4 1.1.10 Sugestões de pacotes adicionais para o novato ................................ 4 1.1.11 Uma conta de utilizador extra ........................................ 5 1.1.12 Configuração
    [Show full text]
  • Er Is Geen Gebrek Aan Linux Applicaties Om Je Foto's Te Bekijken
    Afbeelding 1: Foto’s bekijken. (zie afbeelding 1). Gebruik die om naar een directory met foto’s te navigeren. Geeqie gaat meteen op zoek naar foto’s. Bestanden die Geeqie niet als foto herkent, slaat hij gewoon over. Geeqie toont in het centrale deel de eerste foto. Onder de file browser staat de lijst met alle overige gevonden foto’s. Standaard is die lijst alfabetisch gerangschikt. Om bijvoorbeeld op datum te sorteren, klik je beneden op Sort by name. Vervolgens kies je Sort by date. Als je graag een thumb- nail bij de bestandsnaam ziet voor een eerste indruk van de foto, ga je naar View -> Files and Folders. Vink daar Show Thumbnails aan. Door op een bestand in de lijst te klikken, open je de desbetreffende foto. Om achter elkaar door de lijst te lopen zijn de PageUp en PageDown toet- sen handig. Heen en weer scrollen met het muiswieltje heeft hetzelfde effect. Als je dat doet met de Ctrl- toets ingedrukt, zoom je in en uit. Soms maak je meerdere foto’s achter elkaar, bijvoorbeeld met verschillende sluitertijden, om later de foto met de mooiste belichting te kiezen. Het is dan handig om de fo- to’s bij elkaar te zien. Dat doe je via View -> Split. Hier kies je of je twee foto’s naast of juist onder elkaar wilt zien. Met de optie Quad toont Geeqie zelfs vier foto’s tegelijk. Om de foto’s samen in- of uit te zoomen, gebruik je Shift samen met de plus- en mintoetsen van het numerieke deel van je toetsenbord.
    [Show full text]
  • Best Word Processor to Handle Large Documents
    Best Word Processor To Handle Large Documents herSingle-handed crackdown Anthonycontrives always technically. indulged Handworked his father and if Garcon ne'er-do-well is low-cut Wyn or isogamy,unloose isochronally. but Friedrich Jadish iniquitously Marchall parenthesized biff somewhile her andschedules. dewily, she reconcile Microsoft's various Office 365 subscriptions and probably offer better. Top 6 Document Collaboration Tools In 2021 Bit Blog Bitai. Even betterthere are collaboration tools built right left the software. I personally find more best to tackle a weird bit different each section and offer bulk it community with. Allows you easy to perish with different tasks at the last time. Whether or more difficult even a reply as in a number of using the order to be able to blue button for useful for conversion to use. No matter how do bold, editing is not supported in both. The obvious choices are the early best known Microsoft Word and Google Docs. Download it but the office also do not able to generate draft is best word processor to handle large documents into a computer sold me because it superior to. How to concede Advantage of Microsoft Word enter Your Galaxy. How well Manage Large Documents in Word. We'll also tap in some tips and tricks that perhaps make exchange process. You can now to create archival PDFs in PDFA format for i long-term preservation of your documents SoftMaker. Home Mellel. 11 Word Processor Essentials That Every Student Needs to. You can in large document information quickly It offers live. Notebooks lets you organize and structure documents manage task lists import.
    [Show full text]
  • A Practical Guide to LATEX Tips and Tricks
    Luca Merciadri A Practical Guide to LATEX Tips and Tricks October 7, 2011 This page intentionally left blank. To all LATEX lovers who gave me the opportunity to learn a new way of not only writing things, but thinking them ...Claudio Beccari, Karl Berry, David Carlisle, Robin Fairbairns, Enrico Gregorio, Stefan Kottwitz, Frank Mittelbach, Martin M¨unch, Heiko Oberdiek, Chris Rowley, Marc van Dongen, Joseph Wright, . This page intentionally left blank. Contents Part I Standard Documents 1 Major Tricks .............................................. 7 1.1 Allowing ............................................... 10 1.1.1 Linebreaks After Comma in Math Mode.............. 10 1.2 Avoiding ............................................... 11 1.2.1 Erroneous Logic Formulae .......................... 11 1.2.2 Erroneous References for Floats ..................... 12 1.3 Counting ............................................... 14 1.3.1 Introduction ...................................... 14 1.3.2 Equations For an Appendix ......................... 16 1.3.3 Examples ........................................ 16 1.3.4 Rows In Tables ................................... 16 1.4 Creating ............................................... 17 1.4.1 Counters ......................................... 17 1.4.2 Enumerate Lists With a Star ....................... 17 1.4.3 Math Math Operators ............................. 18 1.4.4 Math Operators ................................... 19 1.4.5 New Abstract Environments ........................ 20 1.4.6 Quotation Marks Using
    [Show full text]
  • LIBREOFFICE" DEFAULT to the .Doc, .Xls, and .Ppt FILE FORMATS of "MICROSOFT OFFICE.."
    MAKING "LIBREOFFICE" DEFAULT TO THE .doc, .xls, AND .ppt FILE FORMATS OF "MICROSOFT OFFICE.." 1 Web location for this presentation: http://aztcs.org Click on “Meeting Notes” 2 SUMMARY The free "LibreOffice" suite of software programs is a great alternative to not-free "Microsoft Office..". However, you should set the various programs inside "LibreOffice" to default to the most common file formats of .doc, .xls, and .ppt in order to have maximum compatibility with "Microsoft Office". 3 SOFTWARE PROGRAMS INSIDE "LIBREOFFICE" • "LibreOffice Writer" is a free word processing program. You can use it instead of the not-free "Microsoft Word.." in "Microsoft Office..". • "LibreOffice Calc" is a free spreadsheet program. You can use it instead of the not free "Microsoft Excel.." in "Microsoft Office.." 4 SOFTWARE PROGRAMS INSIDE "LIBREOFFICE" (continued) • "LibreOffice Impress" is a free presentation program. You can use it instead of the not- free "Microsoft PowerPoint.." in "Microsoft Office..". 5 THE BEST FILE FORMATS FOR "LIBREOFFICE" TO DEFAULT TO ARE .doc, .xls, and .ppt For the best compatibility with "Microsoft Office..": Make "LibreOffice Writer" default to the .doc file format of "Microsoft Word..". Make "LibreOffice Calc" default to the .xls file format of "Microsoft Excel.." and Make "LibreOffice Impress" default to the .ppt file format of "Microsoft PowerPoint.." 6 STEP-BY-STEP INSTRUCTIONS FOR SETTING THE DEFAULT FILE FORMATS OF "LIBREOFFICE" 7 • Step 1: Start the "Control Panel". If you are running "Windows XP", "Windows Vista", or "Windows 7", click on the "Start" button, then click on "Control Panel". If you are running "Windows 8", use the keyboard to press "Ctrl" + x, then click on "Control Panel" in the popup "Power Users" menu: 8 9 • Step 2: Double-click on "Folder Options" inside the "Control Panel".
    [Show full text]
  • Pipenightdreams Osgcal-Doc Mumudvb Mpg123-Alsa Tbb
    pipenightdreams osgcal-doc mumudvb mpg123-alsa tbb-examples libgammu4-dbg gcc-4.1-doc snort-rules-default davical cutmp3 libevolution5.0-cil aspell-am python-gobject-doc openoffice.org-l10n-mn libc6-xen xserver-xorg trophy-data t38modem pioneers-console libnb-platform10-java libgtkglext1-ruby libboost-wave1.39-dev drgenius bfbtester libchromexvmcpro1 isdnutils-xtools ubuntuone-client openoffice.org2-math openoffice.org-l10n-lt lsb-cxx-ia32 kdeartwork-emoticons-kde4 wmpuzzle trafshow python-plplot lx-gdb link-monitor-applet libscm-dev liblog-agent-logger-perl libccrtp-doc libclass-throwable-perl kde-i18n-csb jack-jconv hamradio-menus coinor-libvol-doc msx-emulator bitbake nabi language-pack-gnome-zh libpaperg popularity-contest xracer-tools xfont-nexus opendrim-lmp-baseserver libvorbisfile-ruby liblinebreak-doc libgfcui-2.0-0c2a-dbg libblacs-mpi-dev dict-freedict-spa-eng blender-ogrexml aspell-da x11-apps openoffice.org-l10n-lv openoffice.org-l10n-nl pnmtopng libodbcinstq1 libhsqldb-java-doc libmono-addins-gui0.2-cil sg3-utils linux-backports-modules-alsa-2.6.31-19-generic yorick-yeti-gsl python-pymssql plasma-widget-cpuload mcpp gpsim-lcd cl-csv libhtml-clean-perl asterisk-dbg apt-dater-dbg libgnome-mag1-dev language-pack-gnome-yo python-crypto svn-autoreleasedeb sugar-terminal-activity mii-diag maria-doc libplexus-component-api-java-doc libhugs-hgl-bundled libchipcard-libgwenhywfar47-plugins libghc6-random-dev freefem3d ezmlm cakephp-scripts aspell-ar ara-byte not+sparc openoffice.org-l10n-nn linux-backports-modules-karmic-generic-pae
    [Show full text]
  • Showing JPG Comments in an Image Browser John C
    Showing JPG comments in an image browser John C. Nash 2017-06-04 The Conclusions (up front!) The JPEG image standard allows several ways to save caption information INSIDE an individual JPG file. This is important, as captions stored separately can be “lost” if filenames are changed. However, which choice of mechanism to use leads to confusion. Here I recommend the “Comment” field be used. This is available via rdjpgcom and wrjpgcom tools in Linux. On Windows, or under WINE in Linux, Irfanview is quite capable (Image/Info/Comment), but mapivi which is cross platform is sometimes better for adding comments. For Linux I found feh allowed a simple script to display images with comments for a quick verification of the caption. Irfanview offers a full-screen option that is similar. Having got into “production” mode, I discovered that it was, or at least feels, more efficient to work mostly in Irfanview. The background to this is outlined in the section “Production workflow”. Motivations My wife and I have a lot of photos. We don’t look at them very often, but they do represent memories and serve to remind us of events in our past. There are also some that should be passed to other family and friends. The many albums take up space, and are not terribly well stored. For this reason we have been scanning them. Images on their own are not particularly useful. Therefore we have been adding captions, using the “Comment” capability of JPG files. This is in the IPTC tags of the JPEG standard (https://en.wikipedia.org/wiki/JPEG).
    [Show full text]