Difference between revisions of "User:Scott/04"

From FreekiWiki
Jump to navigation Jump to search
Line 164: Line 164:
 
  ssh-keygen -t dsa
 
  ssh-keygen -t dsa
 
  http://support.suso.com/supki/SSH_Tutorial_for_Linux
 
  http://support.suso.com/supki/SSH_Tutorial_for_Linux
 +
 +
==NFS - Network File Sharing==
 +
===install nfs-server===
 +
sudo apt-get install nfs-kernel-server
 +
 +
===Create dir to export (share)===
 +
sudo mkdir FolderName (root)
 +
umask = 0022 / permissions = 755
 +
sudo chmod 777 file1
 +
 +
===Create local settings such as ...===
 +
====POSIX permissions, owner and group====
 +
The most restrictive combo of Local and NFS permissions is what applies.
 +
 +
If a folder has full permissions locally (777)
 +
but I export that folder as (ro) instead if (rw),
 +
My actual permissions are read-only.
 +
 +
===Add dir you wish to share to /etc/exports file===
 +
/FolderName1 x.x.x.x/x.x.x.x(rw,sync)
 +
/FolderName2 x.x.x.x/x.x.x.x(ro,sync)
 +
 +
cat /etc/exports
 +
sudo nano /etc/exports

Revision as of 08:10, 6 November 2011

   Network Troubleshooting
--------------------------------
Home Page      user:scott
Tech Support   user:scott/02
Dir & Files    user:scott/03
Network        user:scott/04
Troubleshoot   user:scott/05
Laptops        user:scott/06
Resources      user:scott/07
Notes          user:scott/08 

Template:TOC limit

DHCP syn ak

sudo dhclient

Open Ports (view)

nmap -P 0 localhost ( sudo apt-get install nmap)

netstat -l

TCP/IP Open Connection

lsof -i    (domain names)
lsof -i -n (ip address)

DNS (view records)

dig well.com

top

Reset Modem and Router

Unplug Modem and Router
Reset Modem and Router (paper clip)
Reboot Machine

Browser Off-line?

BASH Shell (TS connection)

Adapter or Onboard

lspci

lspci - Ethernet controller: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express (rev 01)

lsusb

lsusb - Bus 001 Device 003: ID 13b1:0026 Linksys

DHCP

DHCP Discover

sudo dhclient

Listening on LPF/eth0/00:17:08:5f:dc:73
Sending on   LPF/eth0/00:17:08:5f:dc:73
DHCP-REQUEST of 192.168.1.8 on eth0 to 255.255.255.255 port 67
DHCPA-CK of 192.168.1.8 from 192.168.1.1
bound to 192.168.1.8 -- renewal in 36968 seconds.

top

ifconfig

ifconfig

eth0  Link encap:Ethernet  HWaddr 00:17:08:5f:dc:73  
      inet addr:192.168.1.8  Bcast:192.168.1.255  Mask:255.255.255.0
wlan0 Link encap:Ethernet  HWaddr 00:18:39:1d:31:d0  
      inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0

iwconfig

iwconfig

wlan0  IEEE 802.11bg  ESSID:"Karen's Wireless Network"  
       Mode:Managed  Frequency:2.437 GHz  Access Point: 00:18:01:FE:AB:AC

Ping (gateway)

ping localhost 127.0.0.1

ping gateway (route -n)

ping 74.125.225.48 (google.com)

top

DNS (view records)

Dig well.com (DNS NS + A records no MX records)
ping well.com
traceroute well.com (if installed)

Network Tools (TS Connection)

System -> Administration -> Network Tools

Devices Tab

loopback Interface (lo) 
Protocol IPv4 - 127.0.0.1
Hardware address: Loopback
 
Ethernet Interface (eth0)         
Protocol IPv4  - 192.168.1.x
Hardware address: 00:17:08:5f:dc:73
Wireless Interface (wlan0)         
Protocol IPv4  - 192.168.1.x
Hardware address: 00:17:08:5f:dc:73

top

Ping Tab

ping 127.0.0.1

Netstat Tab

Determine gateway 192.168.1.x
ping gateway
ping 74.125.225.48 (google.com)

Lookup Tab - DNS Records

lookup 208.17.81.205 (well.com)
lookup well.com (default information)
lookup well.com (Mailbox Exchange)
 

Traceroute Tab

traceroute 74.125.225.48 (google.com)
traceroute google.com
traceroute 208.17.81.205 (well.com)
traceroute well.com

Network Manager

System -> Preferences -> Startup Applications
EDIT = nm-applet --sm-disable

top

Network Cards

==PCI Adapter==
AZIO AWD154B (802.11G Wireless PCI Adapter)

USB Adapter

Linksys Wireless-G USB Network Adapter with SpeedBooster v2

Dial-Up

  • Whizcoho – DIAL-UP
user = freegeek@whiz.to
pw = test123
Gresham Number: 503-465-4055
503 974-0040

503 647-5957 – support 
http://wiki.freegeek.org/index.php/Dialup_configuration
etc/ppp/pap-secrets
#	*	password
“bbooth76”	*	‘barbwies”

freegeek\@wiz\.to		*	test123
bbooth76\@whiz\.to	*	jlister

About ssh

Generating a key pair

ssh-keygen -t dsa
http://support.suso.com/supki/SSH_Tutorial_for_Linux

NFS - Network File Sharing

install nfs-server

sudo apt-get install nfs-kernel-server

Create dir to export (share)

sudo mkdir FolderName (root)
umask = 0022 / permissions = 755
sudo chmod 777 file1

Create local settings such as ...

POSIX permissions, owner and group

The most restrictive combo of Local and NFS permissions is what applies.

If a folder has full permissions locally (777)
but I export that folder as (ro) instead if (rw), 
My actual permissions are read-only.

Add dir you wish to share to /etc/exports file

/FolderName1 x.x.x.x/x.x.x.x(rw,sync)
/FolderName2 x.x.x.x/x.x.x.x(ro,sync)

cat /etc/exports
sudo nano /etc/exports