Direct PC Connection

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 21:11, 16 December 2006 by Flavoie (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Direct PC Connection

So you go to a friend's place and you'd like to share some files. How ?

USB bridge cable

Unknown. they seem to require both ends to use the same software, and generally runs on Windows-only machines. TBD.

Ethernet to Ethernet

you can bring an inexpensive USB network adapter and crossover cable.

Option1: crossover cable

Your friend has a network card. Yay ! Just connect using a crossover cable

Option2: crossover cable and usb network card

Your friend does not have a network card, but has usb ports. No problem ! Buy a usb network adapter and connect on his/her PC.

Option3: same as above but hub replaces crossover cable

Static IP setup

as per lb_worm's suggestion,

1) set the /etc/network/interfaces to:


  1. Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
  2. /usr/share/doc/ifupdown/examples for more information.

auto lo iface lo inet loopback

auto eth0 iface eth0 inet static address 192.168.11.160 netmask 255.255.255.0 geteway 192.168.11.1 network 192.168.11.0

auto eth0:auto iface eth0:auto inet dhcp


2) Edit the dhcp config file /etc/dhcpc/config to:


  1. Config file for dhcpcd.

case ${INTERFACE} in eth0)

  1. Uncomment this to allow dhcpcd to set the DNS servers in /etc/resolv.conf
  2. If you are using resolvconf then you can leave this commented out.

SET_DNS='yes'

  1. Uncomment this to allow dhcpcd to set the NIS domainname of the host to the
  2. domainname option supplied by DHCP server.
  3. SET_DOMAIN='yes'
  1. Uncomment this to allow dhcpcd to set hostname of the host to the
  2. hostname option supplied by DHCP server.
  3. SET_HOSTNAME='yes'
  1. Uncomment this to allow dhcpcd to set the NTP servers in /etc/ntp.conf
  2. SET_NTP='yes'
  1. Uncomment this to allow dhcpcd to set the YP servers in /etc/yp.conf
  2. SET_YP='yes'
  1. Add other options here, see man 8 dhcpcd-bin for details.

OPTIONS='-d -t 30 interface eth0:auto'

  1. Add other interfaces here
  • )

esac


The -d option will generate some debug.