Practical Linux With Raspberry Pi OS: Quick Start 1st Edition Ashwin Pajankar Download
Practical Linux With Raspberry Pi OS: Quick Start 1st Edition Ashwin Pajankar Download
https://ebookmeta.com/product/practical-linux-with-raspberry-pi-
os-quick-start-1st-edition-ashwin-pajankar/
https://ebookmeta.com/product/instant-raspberry-pi-the-beginner-
s-guide-to-raspberry-pi-setup-1st-edition-ashwin-pajankar/
https://ebookmeta.com/product/raspberry-pi-image-processing-
programming-with-numpy-scipy-matplotlib-and-opencv-2nd-edition-
ashwin-pajankar-2/
https://ebookmeta.com/product/raspberry-pi-image-processing-
programming-with-numpy-scipy-matplotlib-and-opencv-2nd-edition-
ashwin-pajankar/
https://ebookmeta.com/product/typescript-for-beginners-the-
ultimate-guide-1st-edition-sufyan-bin-uzayr/
Blind Date The Complete Trilogy 1st Edition Misty Vixen
https://ebookmeta.com/product/blind-date-the-complete-
trilogy-1st-edition-misty-vixen/
https://ebookmeta.com/product/the-easy-peasy-macaroni-
cookbook-1st-edition-sophia-freeman/
https://ebookmeta.com/product/sgt-orlan-hero-of-man-chronicles-
of-kin-roland-2-5-1st-edition-scott-moon/
https://ebookmeta.com/product/governance-politics-and-the-
state-2nd-edition-jon-pierre/
https://ebookmeta.com/product/scientific-american-mind-march-
april-2022-andrea-gawrylewski-editor/
Top 50 SAT Reading, Writing, and Language Skills, 3rd
Edition Brian Leaf
https://ebookmeta.com/product/top-50-sat-reading-writing-and-
language-skills-3rd-edition-brian-leaf/
Ashwin Pajankar
Apress Standard
© Ashwin Pajankar 2021
This work is subject to copyright. All rights are solely and exclusively
licensed by the Publisher, whether the whole or part of the material is
concerned, specifically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microfilms or in
any other physical way, and transmission or information storage and
retrieval, electronic adaptation, computer software, or by similar or
dissimilar methodology now known or hereafter developed.
The publisher, the authors and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
1. Introduction to Raspberry Pi
Ashwin Pajankar1
(1) Nashik, Maharashtra, India
I hope you have gone through the Table of Contents and Introduction. If
not, I highly recommend you go through them. This is the very first
chapter of the book, and I welcome you all to the exciting journey of
learning Linux with the Raspberry Pi Operating System.
In this chapter, we will learn the details about the most popular
platform and single-board computer family of our times, the Raspberry Pi.
Then we will learn a bit about Linux and the distribution of Linux that is
popularly used with the Raspberry Pi family (hereafter, I will use the
abbreviation RPi), the Raspberry Pi Operating System. We will learn how
to install it on a RPi board. The following is the list of the topics that we
will learn in this chapter:
Single-board computers
Raspberry Pi
Linux and distributions
Raspberry Pi OS setup
Configuring the RPi board
Connecting various RPi board models to the Internet
After completing this chapter, we will be comfortable with the
installation and the basic usage of the RPi board and the RPi OS.
Single-Board Computers
Single-board computers (also known as SBCs) have all the components of
a fully functioning computer like the processor, GPU, RAM, and I/O on a
single printed circuit board. This is in contrast with desktop or laptop
computers that have a motherboard which has various slots for RAM, the
processor, and the graphics card. Desktop or laptop computers can be
upgraded by replacing processors and graphics cards. We can also add
more RAM chips in the RAM slots. However, SBCs cannot be upgraded like
that. This is one of the major differences between traditional
desktops/laptops that are totally modular and SBCs. The key benefit of
the lack of modularity of SBCs is that the size of an entire computer is
very small. Most of the SBCs are a little bigger than a regular credit/debit
card, and they are very compact.
SBCs are used as technology demonstrators (prototypes), educational
computers, and embedded systems. There is a recent surge in the
popularity of SBCs due to advances in the fabrication process and
manufacturing technologies. We are living in an era where a new SBC or a
new version of an existing one is announced almost on a monthly basis.
The market is full of various SBCs and SBC families. A few prominent SBC
families are Raspberry Pi, Banana Pro, BeagleBoards, and Orange Pi.
Raspberry Pi is the most popular family of single-board computers
available in the market, and it is one of the best-selling computers in the
world. In the next section, we will have an overview of the Raspberry Pi
family of computers.
Raspberry Pi
Raspberry Pi is a family of SBCs developed by the Raspberry Pi
Foundation (www.raspberrypi.org/). It consists of many board
models, and all the current models under production are listed on the
foundation’s products page (www.raspberrypi.org/products/).
Throughout the book, I will be using a Raspberry Pi 4 Model B (the latest
board model in the family) with 4 GB RAM.
Table 1-1 lists the specifications of the Raspberry Pi 4 Model B.
Table 1-1 Technical Specifications of Raspberry Pi 4 B
Component Specification
Processor Broadcom BCM2711, quad-core Cortex-A72 (ARM v8) 64-bit
SoC at 1.5 GHz
RAM LPDDR4-3200 SDRAM (2 GB or 4 GB or 8 GB)
Exploring the Variety of Random
Documents with Different Content
Anise-seed oil is soluble in 5 parts of 90 per cent. alcohol, and with
3½ times its volume of petroleum-ether yields a clear mixture. Its
mixture with four times its weight of petroleum-ether is turbid, but
becomes clear in ten minutes, while that with five times its volume
of petroleum-ether remains for a longer time turbid. In a fluid state
the oil, when exposed to the air, becomes resinous and loses its
property to crystallize. It should, therefore, be kept in tightly-closed
bottles in a cool, shady place.
Anise-seed oil is used in perfuming soaps and mouth waters. It
should, however, be used with prudence, since the sweetish,
penetrating odor of the oil readily overcomes the other volatile oils in
the mixture, and renders them inoperative.
Star anise oil very much resembles the ordinary anise-seed oil. It is
obtained from star anise, the fruit of Illicium anisatum, a tree
formerly supposed to be indigenous to Cochin China, and cultivated
in China, Japan, and the Phillipine Islands. However, according to
Messrs. Bourgeoin-Meiffre, a French firm of Hanoï (Tonkin), the star
anise oil found in commerce is exclusively produced in the French
colony Tonkin (Province Langson), the French government having
made over the entire sale of the oil to the above-mentioned firm.
According to a memoir published by Dr. Blondel, of Paris, the star
anise tree is not indigenous to the Chinese provinces Yunnan,
Quang-si, and Fo-Rien, but to the province Langson, which has by
conquest passed into French possession. Hence, the producers of
star anise and star anise oil are now under French control and, as it
seems, are obliged to sell all the oil produced to the above-
mentioned firm. If these statements should prove correct, the
Chinese harbors Macao and Hong Kong, from which the greater
portion of star anise oil was formerly exported, will lose their
importance in this respect and the product find its way direct from
Hanoï via Hayphong to Marseilles. The first shipment from
Bourgeoin-Meiffre arrived in Europe in December, 1890. According to
Messrs. Schimmel & Co.'s report, the product is put up and packed
exactly like that formerly shipped from Hong Kong, and the oil of
excellent quality.
Star anise oil differs from the ordinary oil in containing a much
smaller quantity of anethol, and hence congealing only at a
temperature of from 41° to 50° F. Besides the odor of the terpene
contained in star anise oil differs from that of the ordinary oil.
Admixtures of star anise oil can, therefore, be generally recognized
by the odor. Other methods recommended for its detection are
unreliable.
Balm oil.—The leaves of this plant, Melissa officinalis, yield by
distillation a volatile oil sometimes called oil of melissa. It is colorless
or yellowish, of a pleasant odor, has a specific gravity of 0.85 to
0.92, shows a slightly acid reaction and dissolves in 2 to 3 parts of
alcohol. It must not be confounded with the so-called East India oil
of melissa or citronella oil from Andropogon Nardus L. Balm oil is
occasionally used in the preparation of eau de Cologne.
Basil oil is distilled in Southern France from the fresh leaves of
Ocymum basilicum L., natural order Labiatæ. The oil shows the
peculiar odor of the herb and crystallizes a few degrees above 32° F.
In perfumery it is used as an addition to violet and other
preparations. The French also prepare a pommade basilique, which
serves as a cheap substitute for violet pomade.
Bayberry oil, or oil of bay leaves, is extracted by distillation from the
leaves of Myrcia acris or the bayberry tree. Many varieties of the tree
exist throughout the West Indies, which are scarcely to be
distinguished botanically, but have quite a different odor from that of
the genuine tree. Great care must, therefore, be taken in the
collection of the leaves which are to be used, as the admixture of a
small quantity of the other leaves may entirely spoil the product of
distillation. Two oils are obtained, a light oil of specific gravity of
0.870 to 0.990, and a heavy oil with specific gravity 1.023 to 1.037.
When first distilled the oil is colorless, but by exposure to the air
quickly acquires a yellowish tint and, if the exposure be continued,
becomes quite dark in color. The odor of the freshly-distilled oil is
rank, but in the course of from three to six months it becomes
mellow, and ripens into the agreeable fragrance so much liked in the
best specimens of bay-rum. The oil is soluble in all proportions in 95
per cent. alcohol, also in ether and petroleum benzine. Its chief use
is for the preparation of bay-rum.
Bergamot oil is obtained from the rinds of the fruit of citrus
bergamia, a tree belonging to the natural order Aurantiaceæ. The
rind is grated and the oil running off separated from the aqueous
fluid and cellular substance by means of a separating funnel, or the
grated mass is distilled in a current of carbonic acid. The oil is very
fluid and pale yellow, but poorer qualities are frequently greenish or
brownish. When distilled with water it becomes perfectly colorless,
but is less durable. Its odor is very pleasant, somewhat like a
mixture of orange and lemon oils. Its specific gravity is 0.87 to 0.89.
By standing for some time, the oil separates white crystalline scales
(stearoptene), which melt at 223° F. The oil becomes solid a few
degrees below the freezing point. The Messina oil of bergamot is
considered the best. From other volatile oils of the orange family,
bergamot oil differs in dissolving readily in caustic potash, forming a
clear solution. It has, however, the same property as other oils of a
similar origin, of igniting with iodine and not dissolving santalin, the
red resinous coloring matter of santal-wood.
Bergamot oil may be tested as to its purity by mixing it with alcohol.
It becomes pale gray-yellow, forms a sediment which adheres firmly
to the vessel and, on shaking, floats about in the form of flakes.
After two days the sediment is inconsiderable and difficult to divide
into flakes in the clear yellow fluid by shaking. The oil is frequently
adulterated with alcohol. To detect such adulteration, Righini
recommends the following method: Mix 15 parts of the oil with a like
quantity of pure olive oil or oil of sweet almonds. If alcohol is
present, it immediately separates, like water, from the fat oil; if no
separation takes place the oil is not adulterated with alcohol. The
tannin test also gives reliable results. In storing oil of bergamot great
care must be exercised to exclude air and light, as it is one of the
most changeable oils and soon acquires an odor resembling that of
turpentine.
Large quantities of oil of bergamot are used in perfumery. It forms,
so to say, the basis for most of the finer products. In Cologne water
it forms the principal constituent in the mixture of volatile oils.
Cajeput oil (oleum cajeputi).—This oil is obtained by distillation from
the leaves of several species of Melaleucæ, natural order
Caryophyllaceæ, indigenous to the East Indies, Banda, and Malabar.
The ordinary oil has a greenish color and possesses a strong odor of
camphor and a pungent taste. It is chiefly imported by way of
Amsterdam, where it is partially discolored by rectification, so that
two kinds, the white and green cajeput oil, are brought into
commerce. The color of the latter is generally supposed to be due to
a resinous substance containing chlorophyl, though others assert
that it originates from the copper of the distilling apparatus and the
copper flasks in which it is dispatched. The specific gravity of the oil
varies between 0.910 and 0.940, though specifically lighter and
heavier oils are said to occur.
It is claimed that an artificial cajeput oil is often prepared from
camphor and rosemary oil, the green color being obtained by
distillation with milfoil. The presence of camphor may be readily
determined by thoroughly triturating a few drops of the oil with
sugar and then dissolving in water, whereby the particles of camphor
separate in the form of white flakes upon the surface.
Cajeput oil is frequently adulterated with oil of turpentine and
rosemary oil. Such adulteration is recognized by pure cajeput oil
dissolving clear in equal parts of 90 per cent. alcohol, which is not
the case with the other two oils.
Camomile or chamomile oil (oleum anthemidis).—Two varieties of oil
of camomile are found in commerce, one green and the other blue.
The first is derived from the flowers of the genuine or Roman
camomile (Anthemis nobilis) and the blue from the common variety
(Matricaria chamomila). The last oil is the one chiefly used in the
manufacture of perfumery and in medicine.
Blue camomile oil is generally obtained by distillation. In distilling,
metal Florentine flasks should be used, as the oil adheres
tenaciously to glass vessels and the distillate has to be treated with
ether. The pure oil has a beautiful blue color, and on heating forms
blue vapors. It has a penetrating odor which only by strong dilution
becomes similar to that of camomile. By storing in the light and the
simultaneous presence of air, the oil turns green; later on, brown,
and is finally converted into a thickly-fluid, brownish mass.
Green camomile oil from the genuine or Roman camomile possesses
an agreeable odor of fresh lemons; it is more seldom used than the
other.
On account of the slight yield obtained from the flowers, camomile
oil is rather expensive.
Caraway oil (oleum carui) is obtained by distillation from the seeds
of the well-known aromatic plant Carum carui, or the caraway,
natural order Umbelliferæ. In a fresh, purified state the oil is
colorless, very thinly-fluid and possesses a pungent taste. The oil
prepared from cleansed Dutch seed is best liked, while that distilled
from Norwegian or Tyrolese seed is not much in demand, its taste
and odor not being so pure on account of the many impurities mixed
with these kinds of seed.
Caraway oil consists mainly of a terpene, C10H16, called carvene,
specific gravity 0.870, and of carvol, specific gravity 0.960. The
richer the oil in carvol, the higher its specific gravity. Good caraway
oil should have a specific gravity of 0.900 to 0.910. The carvol being
the actual bearer of the aroma, the value of the oil exclusively
depends on the content of it. In the better varieties of oil, the
content of carvol amounts to from 45 to 50 per cent., while poorer
qualities generally contain only from 40 to 42 per cent. The carvol
and carvene are now frequently separated by fractional distillation.
The carvol, which has three times as strong an odor and taste as the
carvene, dissolves with much greater facility in alcohol. The carvene
being offered at very low prices might be suitable for perfuming
cheap soaps.
Caraway oil obtained by distillation from the plant has a less
agreeable odor than that from the seed, and possesses an acrid
resinous taste.
The purity of caraway oil is recognized by its dissolving clear in equal
parts of 90 per cent. alcohol. If such is not the case, the oil contains
either an admixture of oil of turpentine or does not possess the full
normal content of carvol. Pure caraway oil does not detonate with
iodine, which is the case with oil containing oil of turpentine.
Caraway oil is chiefly used for perfuming soap; for handkerchief
perfumes it is not suitable.
Cedar oil (oleum cedri) is obtained by distillation from the shavings
of the wood of the American or Virginia cedar (Juniperus virginiana).
For the distillation of oil the waste falling off in the manufacture of
lead-pencils is almost exclusively used. It yields about 2 to 3 per
cent. of oil. The oil is thinly-fluid, of specific gravity 0.9622, of a
greenish color, and an agreeable but not very penetrating odor. It is
a mixture of a terpene, boiling at about 540° F., and of a
hydrocarbon. The latter, which is called cidrin, forms the fluid portion
of the oil. It has a specific gravity of 0.984, and boils at about 459°
F.
Cedar oil is extensively used in the manufacture of toilet soap, it
serving as the basis for other perfumes. Care must, however, be
taken that its odor does not preponderate, as in such case it readily
produces an unpleasant effect. The oil being cheap, adulteration is
scarcely to be feared.
A volatile oil is also obtained by distillation from the leaves of the
Juniperus virginiana. In odor it resembles savin oil, and is unfit for
perfuming purposes.
Cherry-laurel oil (oleum laurocerasi) is the volatile oil, which contains
prussic acid, obtained from the leaves of the cherry-laurel (Prunus
laurocerasus, L.). Like bitter almonds, the leaves contain some
amygdalin. Hence they are macerated with water and allowed to
stand in a warm place for 24 hours. By subsequent distillation a
volatile oil is obtained which closely resembles oil of bitter almonds,
but differs in some respects. It is colorless or yellowish, rarely
reddish, and of specific gravity 1.05 to 1.06. In its behavior towards
air, solvents, and reagents, it does not essentially differ from oil of
bitter almonds.[5]
To detect oil of mirbane in cherry-laurel oil, Enrico Pega adds some
alcohol to the oil to be tested and then mixes it with some alcoholic
potash lye and a few drops of ferric chloride solution. After standing
for a few hours the mixture is shaken and distilled. A small portion of
the oil distilling over is freed from water, poured upon a few small
pieces of pure caustic potash in a test-tube, and heated over a lamp.
If the sample is pure it remains colorless; in the presence of oil of
mirbane it acquires a dark coloration in consequence of the
formation of nitrobenzide and aniline, a few drops of calcium
chloride solution brought into the mixture producing, for this reason,
a violet coloration.
Cherry laurel oil is but seldom used for perfuming purposes.
Cinnamon oils.—There are four different kinds of this oil, viz., Ceylon
cinnamon oil, cassia oil, cinnamon root oil, and oil of cinnamon
leaves. Though the first two are very much alike, the Ceylon oil is
considered the best.
Ceylon cinnamon oil (oleum cinnamoni ceylonici).—Formerly this oil
was exclusively distilled from chips and waste of the genuine
cinnamon bark of the Cinnamonum ceylonicum, Nees, and came into
commerce from Ceylon. However, the fabrication of the oil from
cinnamon waste or chips is now extensively carried on in Germany,
and this oil, being prepared with the assistance of more perfect
apparatus, has almost entirely supplanted that exported from
Ceylon.
When fresh, the Ceylon oil is colorless, but when stored for some
time it becomes first golden yellow and later on brownish. It is
thickly-fluid and heavier than water, its specific gravity being 1.060
to 1.090. It has an agreeable, aromatic odor and a biting but pure,
sweet taste. Its principal constituent is cinnamaldehyde (C9H8O),
and it contains, besides, 4 to 8 per cent. of eugenol. The presence of
the latter in cinnamon oil may be established by shaking with 15 per
cent. soda-solution, whereby the eugenol is dissolved, and
decomposing the aqueous solution with hydrochloric acid. The
eugenol separated thereby gives in alcoholic solution, when
compounded with a trace of ferric chloride, a beautiful blue color.
Cassia oil (oleum cassiæ).—In China and Cochin China this oil is
obtained by distillation from the bark, unripe fruits, buds, and other
waste of the Cinnamonum cassia or Cinnamonum aromaticum, Nees,
a tree indigenous to those countries. It has a pale yellow color,
which in time becomes brown. It is thickly-fluid, of specific gravity
1.05 to 1.07, and possesses a sweet taste with an acrid after-taste.
Like cinnamon oil, it consists chiefly of cinnamaldehyde, but contains
no eugenol, and hence can be readily distinguished from Ceylon oil
by the above-mentioned reaction. One part of pure cassia oil
dissolves in two parts of 80 per cent. alcohol.
Cinnamon root oil and oil of cinnamon leaves.—Neither of these oils
contains cinnamaldehyde, but abundant quantities of eugenol, the
root oil as much as 50 to 70 per cent. The root oil is quite limpid and
has an agreeable odor of cinnamon and cloves. The leaf oil is thickly-
fluid, of the consistency of castor oil.
The Ceylon oil is frequently adulterated with cassia oil. Such
adulteration is very difficult to detect, and can only be recognized by
experts by the odor and taste.
The quality of cassia oil is recognized by the taste and odor,
especially on heating, and the high specific gravity, in consequence
of which the oil sinks in water. According to Hager, cassia oil is
frequently adulterated with oil of cloves. This is, however, scarcely
probable, the price of oil of cloves being, on an average, higher than
that of cassia oil. The latter, however, is frequently adulterated with
cheaper thickly-fluid volatile oils, especially with cedar oil. In this
case the oil does not dissolve in the above-mentioned proportion in
alcohol.
The value of cassia oil is dependent on its contents of
cinnamaldehyde. Hence, the establishment of its actual value
requires a quantitative determination of its contents of
cinnamaldehyde, which unfortunately presents great difficulties. For
this purpose Schimmel & Co. proceed indirectly as follows: 75
grammes of cassia oil in a capacious boiling flask are mixed with 300
grammes of a boiling-hot 30 per cent. solution of acid sodium
sulphite, whereby cinnamaldehyde-sodium sulphite is immediately
separated. The whole is then vigorously agitated and allowed to rest
for a short time. (With oils rich in aldehyde considerable heating
generally takes place, which must eventually be moderated by the
addition of cold water.) Next add about 200 grammes of hot water
and heat the whole, with frequent shaking, in the water-bath until
the combination of the aldehyde with the acid-sodium sulphite is
completely dissolved, and the non-aldehydes in the form of an oily
layer float upon the solution of the aldehyde salt. Now allow the
whole to cool, then shake twice with ether; first, with about 200
cubic centimeters, and then with 100; combine the ethereal extracts
of the non-aldehydes separated by means of a separatory funnel,
and filter them into a capacious, previously-weighed beaker provided
with a platinum wire, the lower end of which is bent in the form of a
spiral. Now evaporate the ether as much as possible, by placing the
beaker in hot water. When by swinging the beaker the remaining
fluid no longer foams up, allow to cool off and weigh. Now return
the beaker-glass to the water-bath for ten minutes, weigh again
after cooling, and repeat the operation until the difference between
two weighings does not amount to more than 0.3 gramme at the
utmost. The weighing previous to the last is taken as the correct
one.[6]
The weight of the non-aldehydes thus obtained is deducted from the
cassia oil used, the difference giving the content of cinnamaldehyde
in the latter.
For example:—
Used 79.71 grammes of oil.
First weighing of the beaker after evaporating the ether 147.55 grammes
Second 146.84 "
Third 146.58 "
Tare of the beaker 128.34 "
Hence non-aldehydes in the oil 146.84 grammes.
Less tare 128.34 "
———
= 18.50 grammes.
Calculated to per cent., 23.1 per cent.
100 - 23.1 = 76.9 per cent. cinnamaldehyde.