I thought someone else may need a complete working example, all in one chunk of code: <VirtualHost 127.0.0.1:80> ServerName mysite ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/mysite.log combined ErrorDocument 404 / DocumentRoot /mysite Alias /robots.txt /mysite/static/robots.txt Alias /favicon.ico /mysite/static/img/favicon.ico Alias /static/ /mysite/static/ WSGIScriptAlias / /mysite/wsgi.py <Directory /mysite> <Files wsgi.py> Require all granted </Files> </Directory> <Directory /mysite/static> Require all granted </Directory> </VirtualHost>

# basic .muttrc for use with Gmail # Change the following six lines to match your Gmail account details set imap_user = "username@gmail.com" set imap_pass = "" set smtp_url = "smtp://username@smtp.gmail.com:587/" set smtp_pass = "" set from = "username@gmail.com" set realname = "Firstname Lastname" # # # Change the following line to a different editor you prefer. set editor = 'vim + -c "set textwidth=72" -c "set wrap"'

If you're using a flavor of *nix that has an rc.local file, and then you start using Debian GNU/Linux, you might be wondering where your rc.local file is. Quite simply, it's not there. Here's how to add it. Create a new file named /etc/init.d/local like this: #!/bin/sh # put startup stuff here Make the file executable: chmod 755 /etc/init.d/local Add it to startup: update-rc.d local defaults 80 You should be seeing something like this: Adding system startup for /etc/init.d/local ... /etc/rc0.d/K80local -> ../init.d/local /etc/rc1.d/K80local -> ../init.d/local /etc/rc6.d/K80local -> ../init.d/local /etc/rc2.d/S80local -> ../init.d/local /etc/rc3.d/S80local -> ../init.d/local /etc/rc4.d/S80local -> ../init.d/local /etc/rc5.d/S80local -> ../init.d/local

Here's some command line magic to install lots of games on your Debian box: yes | \ for x in `apt-cache search game \ | sort \ | awk 'BEGIN { FS = " - " } { print $1 }'`; do \ apt-get install $x; \ done

   Recent articles
Console Blackjack Written in C
Console Blackjack Written in Perl 6
How-to build latest Linux kernel from Linus' git repo on Debian/Ubuntu
Console Blackjack in C++
ignore latin1 problem via psql
   Tags
airplane (1) apache (1) bash (2) bashrc (1) blackjack (4) c (1) c11 (1) callproof (1) clang (2) console (4) cpp (1) data (1) debian (3) diff (1) django (2) flying (1) games (1) gcc (2) git (2) github (4) gmail (1) go-lang (3) google (1) gourse (1) kernel (3) latin1 (1) linux (3) lottery (1) module (1) mongodb (1) mp3s (1) mutt (1) patch (1) perl6 (1) postgresql (2) powerball (1) psql (1) python (2) raspberrypi (1) rc (1) sed (1) testing (1) ubuntu (1) utf8 (1)
   Twitter

Copyright © 2018 · GregDonald.io · All Rights Reserved