顯示具有 Debian 標籤的文章。 顯示所有文章
顯示具有 Debian 標籤的文章。 顯示所有文章

2016-03-11

Pi, NFS server

NFS server (ip 10.1.1.16)
# apt-get install nfs-kernel-server nfs-common
# vim /etc/exports
     /var/tmp *(ro,sync)
# /etc/init.d/nfs-kernel-server stop
# rpcbind
# /etc/init.d/nfs-kernel-server start

2015-12-25

Dreamplug, IF IP GONE.

Create a network config file manually.
# vi /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255

auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255

# /sbin/ifup -a
Note-01:
# ifup -h

BusyBox v1.16.1 (2015-12-03 19:06:58 CST) multi-call binary.

Usage: ifup [-ainmvf] IFACE...

Options:
        -a      De/configure all interfaces automatically
        -i FILE Use FILE for interface definitions
        -n      Print out what would happen, but don't do it
                (note: doesn't disable mappings)
        -m      Don't run any mappings
        -v      Print out what would happen before doing it
        -f      Force de/configuration

Note-02: When "ifup -a" and get below message, try this

ifup: interface lo already configured
ifup: interface eth0 already configured
ifup: interface eth1 already configured

# ifdown -a
# ifup -a

2015-12-23

Dreamplug, uDHCPd options

File: /etc/udhcpd.conf
# Sample udhcpd configuration file (/etc/udhcpd.conf)
# Values shown are defaults

# The start and end of the IP lease block
start  192.168.0.20
end  192.168.0.254

# The interface that udhcpd will use
interface eth0

Dreamplug, DHCP server



2014-08-22

partition Mount & Format

MOUNT SAMBA as a Disk
  • # mkdir /mnt/smbdisk
  • # mount //10.1.1.15/public /mnt/smbdisk

Mount a Read-Only partiation to writable.
  • mount -o remount,rw /system
New a auto mount partition as format EXT3
  • fdisk /dev/hdc
    • n --> t --> w
  • reboot
  • mke2fs -j /dev/hdc1       ( Linux Debian Format: mkfs.vfat -n "name" -I /dev/hdc1" )
    • format as EXT3
  • mkdir /var2
  • e2label /dev/hda1 /var2
  • vi /etc/fstab
    • LABEL=/var2     /var2     ext3     defaults     1    2
  • mount /var2
  • reboot
Format USB disk in FAT32
  • fdisk -l  ==> find out the USB disk where is it.
  • mkfs -t vfat /dev/sda1
Format USB disk in EXT4
  • mke2fs -T ext4 /dev/sda1