QuickStart

QuickStart

The Plug quickstart

This is based on the stock Plug as you get it fresh out of the box. There are some things you REALLY need to do before you get started with this device as there are some quirks that need to be fixed.

1 - you do NOT need to hook up USB, it does have ssh running already. Find the IP address by scanning your network or checking your router's DHCP leases and ssh in. user:root password:nosoup4u Now might be a good time to set a secure password

2 - Fix broken boot state by updating /etc/rc.local (this will automatically fix /tmp and /var/tmp permissions and the apt cache after every reboot):

sed -i \
 -e '$ ichmod 1777 /tmp /var/tmp\nmkdir -p /var/cache/apt/archives/partial' \
 -e '/^#.\/demo.sh/d' \
 -e '/^[^#]/d' \
 -e '/^$/d' \
 /etc/rc.local

3 - Fix broken DHCP settings (to disable supersede domain-name-servers option:

sed -i -e 's/^supersede domain-name-servers 127.0.0.1;$/#&/' /etc/dhcp3/dhclient.conf

4 - Reboot

reboot

5 - After the system has rebooted, ssh back into the system and perform an update and upgrade (if any conflicts occur, select "install the package maintainer's version"):

apt-get update
apt-get dist-upgrade
apt-get autoremove
apt-get clean

6 - Install ntpdate and set the timezone:

apt-get install ntpdate
ntpdate pool.ntp.org
dpkg-reconfigure tzdata

I personally would add a few more things like lighttpd and wget...

apt-get install lighttpd
apt-get install wget

Note: if you get the following error: E: Could not open lock file /var/cache/apt/archives/lock - open (2 No such file or directory) E: Unable to lock the download directory then just issue this command: touch /var/cache/apt/archives/lock

Now you have a webserver running on port 80 and html files reside in /var/www for it. If you want ot add PHP take a look in the Frequently Asked Questions section.

If you want to hook up a USB drive and have it mount on reboot you need to add the following to your /etc/fstab

/dev/sda1 /locationIwanttomountto  ext3(or vfat if it's a Fat32 disk) rw,defaults 0 0

this will upon reboot mount the drive to the /locationIwanttomountto for you. Be sure to specify the right filesystem type... learn more about the fstab file at this link for more information.

Everything else is simple linux. There are some specific quirks about this device that others will add in.