Debian Preseed PXE Boot Install

   213 words    1 minute(s)
Installing Debian can be achieved by using booting your box from the network. This is how I set up my server to allow clients to boot from it. PXE Configuration This needs to be added to your /tftproot/pxelinux.cfg/default file. Refer to PXE-Linux-Boot-Server on how to set up a PXE server. label debianbuster-min-vm MENU LABEL ^Debian Autoinstall Buster Minimal VM LINUX /debian/buster/debian-installer/amd64/linux INITRD /debian/buster/debian-installer/amd64/initrd.gz APPEND vga=788 preseed/url=tftp://server/debian/preseed-buster-min-vm.txt debian-installer/locale=en_US debian-installer/country=US debian-installer/language=en debian-installer/allow_unauthenticated_ssl=true keyboard-configuration/xkb-keymap=us netcfg/get_hostname=debian netcfg/get_domain=local.

PXE Linux Boot Server

   247 words    2 minute(s)
Install I use Gentoo Linux for my server so I used emerge to install the required server packages. emerge tftp-hpa dhcp TFTP Configuration Edit your /etc/conf.d/in.tftpd file and uncomment one of the INTFTPD_PATH lines. You will then need to make the directory referenced in that variable. It will store all of your TFTP files used by your clients. We will refer to this as your tftproot in the rest of this article.


EXT4FS Tweaks

   232 words    2 minute(s)
When you format a new partition with EXT4FS, 5% of the available space is reserved for root things. So basically the df command will show 5% less available. I noticed this while backing up stuff from my fileserver to a drive on my desktop. My desktop was saying I had 0% free, but was still able to put things on it, probably because I was doing it as root. Anyways, you can see how much is being reserved on your partition with “dumpe2fs -h /dev/sd?

Scripting BASH Sessions

   552 words    3 minute(s)
Logging your BASH sessions can be useful to keep a log of what you have done on your computer or spy on other users. This is a basic example of how to use the script program and a login script to automatically create a separate log file for each terminal session. Code The code can be put into one of several different files. ~/.bash_profile would be for per user logging and /etc/profile or /etc/bash/bashrc can be used to log all users on the box.

PuTTY

   32 words    1 minute(s)
Add these two lines to your /etc/inputrc or ~/.inputrc if you want CTRL+Left to skip to the previous and CTRL+Right to skip to the next word in PuTTY. "\eOD": backward-word "\eOC": forward-word

SSL From the Command Line

   67 words    1 minute(s)
While a browser may be nice for viewing web pages, the command line may be even better for troubleshooting your SSL and TLS connections. These are the quick and dirty commands to connect to these types of sites. See the source below for a more detailed explanation. SSL openssl s_client -connect <sitename>:<port> ... GET / HTTP/1.0 TLS and SSL ports gnutls-cli -s <sitename> -p <port> References http://blog.i-no.de//archives/2010/08/23/index.html#e2010-08-23T13_55_09.txt