library details
Sometime you feel like (or may not) checking details of certain library on you machine. Suppose that the relevant library may be X related library.
Let us check and search for library name at first. And apt-cache command is your friend.
$ apt-cache search libx11
libx11-6 - X11 client-side library
libx11-6-dbg - X11 client-side library (debug package)
Ok, lib11-6 is what we are looking for. Let us check its content.
$ apt-cache show libx11-6
Package: libx11-6
Priority: standard
Section: libs
Installed-Size: 1489
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Architecture: i386
Source: libx11
Version: 2:1.5.0-1ubuntu1.1
Depends: libc6 (>= 2.15), libxcb1 (>= 1.2), libx11-data
Pre-Depends: multiarch-support
Filename: pool/main/libx/libx11/libx11-6_1.5.0-1ubuntu1.1_i386.deb
Size: 776896
MD5sum: 3fea2137a989c9cf840c7e0db9b91606
SHA1: 5fcc7ab89b79687fb338e169622a2c57912bcb60
SHA256: 170ce1631c61458216078415ad9d660df98e193c18c4774d45432cb366e64c75
Description-en: X11 client-side library
This package provides a client interface to the X Window System, otherwise
known as 'Xlib'. It provides a complete API for the basic functions of the
window system.
.
More information about X.Org can be found at:
<URL:http://www.X.org>
.
This module can be found at
git://anongit.freedesktop.org/git/xorg/lib/libX11
Multi-Arch: same
Description-md5: d75c895abf6eca234f7480813aaa95ec
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m
Task: standard, kubuntu-active, kubuntu-active, mythbuntu-frontend, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master
You can download source as described.
$ $ git clone git://anongit.freedesktop.org/git/xorg/lib/libX11
network diagram in document
Sometimes you would like to draw network diagram and incorporate it into your document.
It’s so easy with sphinx and nwdiag. For example, prepare such a text as follows and save it as, say, net.diag.
nwdiag {
internet [shape = cloud];
internet -- router;
network eva{
address = "192.168.10.0/24";
router;
Nerv [address = "192.168.10.10"];
Seele [address = "192.168.10.11"];
Gehirn [address = "192.168.10.12"];
}
network theLupin{
address = "192.168.20.0/24";
router;
lupin [address = "192.168.20.10"];
fujiko [address = "192.168.20.11"];
jigen [address = "192.168.20.12"];
}
}
And merge this file into your sphinx document with as follows.
.. nwdiag:: net.diag
Then you will see beautiful network diagram as follows.
USB devices
Sometimes you would like to reference USB devices, which are attached to your machine. You can make use of lsusb utility for this sake.
For example,
$ lsusb
Bus 002 Device 003: ID 5986:0299 Acer, Inc
Bus 004 Device 002: ID 0a5c:21f4 Broadcom Corp.
Bus 006 Device 008: ID 0bb4:0ffe HTC (High Tech Computer Corp.) Desire HD (modem mode)
In case that you would like to check further details of specific USB device, for example, Desire, then you can specify use verbose option, -v.
$ sudo lsusb -v -s 008
By the way, lsusb command accesses file under /dev/bus/usb directory, which requires root permission. Therefore if you execute command as user other than root without sudo, then you will see open failure.
open("/dev/bus/usb/006/008", O_RDWR) = -1 EACCES (Permission denied)