User:Rplante/PlugSysFiles
From PlugWiki
Contents |
Various Modified Plug System Files
This page illustrates the contents of various system files on my SheevaPlug as part of configuring it to be a Media Server.
/etc/rc.local
This is what my /etc/rc.local file looked like after editing according to New Plugger How To:
#!/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 other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. # insmod /boot/fat.ko # insmod /boot/vfat.ko mkdir -p /var/cache/apt/archives/partial /usr/sbin/ntpdate-debian # /root/discoverd # cd / #./demo.sh # date 012618002009 # hwclock -w exit 0
/etc/fstab
This is my /etc/fstab after editing to add mounts for my external drive partitions:
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0 /proc /proc proc rw,noexec,nosuid,nodev 0 0 sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0 varrun /var/run tmpfs rw,nosuid,mode=0755 0 0 varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0 udev /dev tmpfs rw,mode=0755 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0 devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0 rootfs / rootfs rw 0 0 tmpfs /var/cache/apt tmpfs defaults,noatime /dev/sda1 /usr ext3 defaults,rw 0 1 /dev/sda2 /data ext3 defaults,rw 0 1
/etc/network/interfaces
This is my /etc/interfaces after editing to set a static IP address:
auto lo iface lo inet loopback address 127.0.0.1 netmask 255.0.0.0 auto eth0 iface eth0 inet static address 192.168.1.12 netmask 255.255.255.0 gateway 192.168.1.1 # /usr/share/doc/ifupdown/examples for more information.