-
The Origins of Life
Mostly I’ve posted technical stuff here that I’d like to remember, but true to the purpose of this site (blog?) I feel compelled to post this. I have often wondered about the origins of life, and whether or not life could have begun without the aid of an intelligent creator. In my search, I have…
-
Setting up WiFi on Raspberry Pi
This isn’t only for Raspbian running on a Raspberry Pi, as far as I know you can use it on most flavors of GNU/Linux if you want to set up WiFi using only the terminal. This also assumes that you already have appropriate drivers installed. I have tested this with this wireless adapter and the…
-
Creating a Samba share in Linux
Run the following: sudo apt-get install samba samba-common-bin Set a Samba password for a user with this command: sudo smbpasswd -a USERNAME Add the following to the end of /etc/samba/smb.conf [SHARENAME] path = /home/path/to/folder available = yes valid users = USERNAME read only = no browsable = yes public = yes writable = yes Then…
-
Raspberry Pi Camera Module
In order to enable user access to vchiq, do the following as root: echo ‘SUBSYSTEM==”vchiq”,GROUP=”video”,MODE=”0660″‘ > /etc/udev/rules.d/10-vchiq-permissions.rules usermod -aGvideo USERNAME To disable the red camera LED, add the following to /boot/config.txt disable_camera_led=1 As example of a python program to control the LED state: #!/usr/bin/env python import time import RPi.GPIO as GPIO # Use GPIO numbering…
-
Linux Boot Loader (GRUB)
Grub settings: /etc/profile/grub Apply settings: sudo update-grub
-
Running a script at startup in Ubuntu Server
There is a script located at /etc/rc.local that runs when the server starts up. By default, all the script has in it is this: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will “exit 0” on success or any…
-
Mounting a USB drive in Ubuntu Server
Source Manually Mounting Sometimes devices don’t automount, in which case you should try to manually mount it. First, you must know what device we are dealing with and what filesystem it is formatted with. Most flash drives are FAT16 or FAT32 and most external hard disks are NTFS. sudo fdisk -l Find your device in…
-
Installing a GUI on Ubuntu Server
Since the Ubuntu Server edition doesn’t by default install a window manager, you may want to install one yourself (if you need one). This is how to do so. Either use the tasksel command, or just directly type in (only one) of the following commands: sudo apt-get install ubuntu-desktop sudo apt-get install lubuntu-desktop sudo apt-get…
-
Accessing Windows Shares from Linux
Once in a while, you may want to access or mount a Windows shared folder from Linux. Doing do is actually quite simple. First, create a directory where the share will be mounted. This should be an empty directory. I think it’s best to put it under /mnt. You can call it whatever you want.…
-
Hosting multiple websites with one server
For the purposes of this post, we will make the following assumptions: You are only running one installation of Apache on one installation of Linux (Ubuntu Server 12.01 used here). Your server only has one public IP address. You have two domains which are configured to both point to your server’s public IP address. You…