summaryrefslogtreecommitdiffstats
path: root/software
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2013-02-03 14:50:09 -0500
committerbnewbold <bnewbold@robocracy.org>2013-02-03 14:50:09 -0500
commit1f07808290553a8a7308be4012ad73c6cfc99ff2 (patch)
tree6e6a7fe55aec53ad0e531dd70dff677edfb01aaa /software
parent948494573f902a5339de18707dcb271f4b80f05a (diff)
downloadknowledge-1f07808290553a8a7308be4012ad73c6cfc99ff2.tar.gz
knowledge-1f07808290553a8a7308be4012ad73c6cfc99ff2.zip
misc updates
Diffstat (limited to 'software')
-rw-r--r--software/debian.page14
-rw-r--r--software/git.page8
-rw-r--r--software/misc.page31
-rw-r--r--software/packages.page3
-rw-r--r--software/unix-tricks.page13
5 files changed, 68 insertions, 1 deletions
diff --git a/software/debian.page b/software/debian.page
index 8b32dfd..4e64ae4 100644
--- a/software/debian.page
+++ b/software/debian.page
@@ -59,7 +59,21 @@ Debian Package Tools
``dkpg -S somefile`` shows what packages a given file were installed by. ``dpkg
-L somepackage`` lists all the files installed by that package.
+``apt-rdepends -r somepackage`` shows all packages depending on a given
+package, recursively. You probably just want the first group, not the full
+recursive tree.
+
To *not* install "recommended" or "suggested" packages, pass ``-R`` as an
argument to ``aptitute``. To find out *why* a package has been installed (or
guess why it might be?) use the ``aptitude why <package>`` command.
+To extract the contents of a .deb file, use the ``ar`` command, then extract
+data.tar.gz:
+
+ ar vx somepackage.deb
+ tar xvf data.tar.gz
+
+Debian Packaging
+-------------------
+
+sudo aptitude install gcc-4.4-arm-linux-gnueabi
diff --git a/software/git.page b/software/git.page
index 362970b..3f4e3ef 100644
--- a/software/git.page
+++ b/software/git.page
@@ -10,3 +10,11 @@ Git
Quick tip: when you have ``.gitignore`` ignoring everything (with a ``*``
entry), you need to use ``git-update-index --add FILE`` to actually add the
file, instead of just ``git-add FILE``.
+
+Over HTTP
+--------------
+To make a repository available over "dumb" HTTP, set up a bare repository and
+copy ``hooks/post-update.sample`` to ``hooks/post-update``.
+
+To add links from gitweb, add to the ``@git_base_url_list`` list in the
+configuration file.
diff --git a/software/misc.page b/software/misc.page
index 600819e..1c0b74a 100644
--- a/software/misc.page
+++ b/software/misc.page
@@ -210,3 +210,34 @@ Install ``tcpflow`` and do:
$ sudo tcpflow -i wlan0 -b 2097152 tcp port 80 or tcp port 443
Saves up to 2MB
+
+wget
+--------
+For recursive, I usually want something like:
+
+ wget -r -l 3 <baseurl>
+
+To just get files, ignoring structure:
+
+ wget -r -l 3 -nd <baseurl>
+
+QEMU with chroot
+-------------------
+Manual way:
+
+ $ sudo chroot ./rootfs-dir/ qemu-arm-static /usr/bin/env
+
+The automatic way is to copy the host's qemu-arm-static to usr/bin in the
+chroot, then just run the command and qemu-arm-static will be used
+automagically:
+
+ $ sudo chroot ./rootfs-dir/ /usr/bin/env
+
+Starting an SSL CA
+----------------------
+"[cryptography] How much does it cost to start a root CA ?"
+Jon Callas <jon at callas.org>, Sat Jan 5 14:42:31 EST 2013
+http://lists.randombit.net/pipermail/cryptography/2013-January/003601.html
+
+Answer: $250k over 14 months, 40% hardware, 60% people
+
diff --git a/software/packages.page b/software/packages.page
index f14a0ce..42b7727 100644
--- a/software/packages.page
+++ b/software/packages.page
@@ -29,8 +29,9 @@ Almost all machines get the following (decreasing minimalism):
ctorrent
nmap
netcat
- ngrep
tcpdump
+ tree
+ lsblk
If debian-based, add ``build-essential``, ``openssh-server``, ``manpages-dev``,
``iproute``, and it's ``git-core`` (not ``git``) and ``mtr-tiny`` (not
diff --git a/software/unix-tricks.page b/software/unix-tricks.page
index 8749d16..d175133 100644
--- a/software/unix-tricks.page
+++ b/software/unix-tricks.page
@@ -70,3 +70,16 @@ stderr in Red
Via `stack overflow <http://serverfault.com/questions/59262/bash-print-stderr-in-red-color/59299#59299>`_:
$ command 2> >(while read line; do echo -e "\e[01;31m$line\e[0m"; done)
+
+Mount an .img file as loopback device
+-----------------------------------------
+
+Either:
+
+ mount -o loop distro.img /mnt
+
+Or:
+
+ losetup /dev/loop0 distro.img
+ mount /dev/loop0 /mnt
+