Windows 10 – 100% disk usage

March 17, 2016

Finally figured out why my little Acer laptop was extremely slow and (kinda) locking up on me. Open task manager and you’ll see 100% disk usage but nothing really taking it up. No single process was causing a shit storm. So that was confusing. What I found is if you turn off “SuperFetch” and “Windows Search” services in the services panel, it goes away.

Go into Control Panel, Admin Tools, then Services. Double click on both of those services and on the drop down box, mark “Disabled”. And you might as well stop them too or just reboot.

Fixed. Stupid Micro$oft.

FreeBSD delete pool mountpoints/data set

March 11, 2016

zfs destroy POOL/mountpoint

use destroy -r or -R if there are other sub mounts.

refer to this Sun cheatsheet Sun ZFS Cheatsheet

FreeBSD 10.2 – USB thumb drive full; but isn’t.

March 10, 2016

Command: df -h
Filesystem Size Used Avail Capacity Mounted on

/dev/da0p2 111G 111G -8.9G 109% /

Command: du -hs * | sort -h
root@nas:/ # du -hs * | sort -h

0B home
0B sys
3.5K dev
4.0K entropy
4.0K proc
8.0K COPYRIGHT
8.0K media
8.0K mnt
36K tmp
128K root
276K libexec
1.2M bin
2.8M etc
6.5M sbin
7.9M rescue
9.5M lib
481M boot
491M var
1.8G usr

root@nas:/ #

Finally found a thread on here after searching some more…
https://forums.freebsd.org/threads/32255/
Ran the following command and it repaired blocks
# fsck_ffs -f /dev/da0p2
Rebooted and all is fixed.

Move ZFS pool from FreeNAS 9.3 to FreeBSD 10.2

January 12, 2016

Got tired of FreeNAS 9.3 being flaky and overkill. Don’t need all that it offers anyways. I had two 3TB hard drives that are a mirror group. ZFS will automatically see these disk.

zfs_enable=”YES” in /etc/rc.conf

**COMMANDS**
zpool import = shows mounts available

zpool import (pool name)

zpool export (pool name) = to umount the drives.

zfs set mountpoint=/dir/dir (pool name)

zfs will remember the set mount point for the next reboot. All good.

Cisco Nexus 5K’s – vPC with FEX configuration

July 31, 2015

I was beating myself in the head a little with trying to configure FEX ports on two different 2K’s to be used in a vPC.  The “verify” command would be successful but the “commit” command said it failed and that the vPC already existed.   Come to find out after opening a TAC case and then actually finding the link below, you do NOT need to specify a vPC number when configuring a port-channel on two different FEX’s.  The Nexus will do this automatically for you, with a very high number.  The reason it does this is because these ports aren’t local and they are shared with another 5K.  So dont worry, just because you don’t see the port-channel config with a “vPC ### ” statement, doesnt mean its not in a VPC.  Do a “show vpc” and you’ll see it down at the bottom.   Bottom line, you build a port-channel just like you normally would, just no vpc command needed.

Link reference:
https://supportforums.cisco.com/discussion/11887661/vpc-fex-interfaces

FreeBSD 10.1 with MATE Desktop, Slim DM, X11vnc

May 20, 2015

MATE is a great desktop and seems to be very stable and quick with FreeBSD.  Follow the link below on setting it up, this person gives a good basic tutorial.

http://www.unixmen.com/install-mate-desktop-freebsd-10-1/

A more in depth install is covered here… https://cooltrainer.org/a-freebsd-desktop-howto/

If you want to get Slim to auto login, you can do that be editing the slim conf file…

# ee /usr/local/etc/slim.conf

down towards the end, uncomment the “default_user” field and to the right, put your default user name.  Then just below that, uncomment auto_login and set it to “yes”.

I also wanted to get Remote Desktop working so I could VNC into my box.  X11vnc is the best for this.  It will use the current display.

# pkg install x11vnc

# x11vnc -storepasswd    (then put your password in, it will put it in a file .vnc/passwd)

# ee vnc.sh   (create a script to enable VNC server to listen and stay on even after you disconnect)

#!/usr/local/bin/bash    or    (  #!/bin/sh   if you are using default shell )

x11vnc -rfbauth ~/.vnc/passwd -forever -display :0 &

##### exit and save the file.

# chmod a+x vnc.sh

# ./vnc.sh

You are good to go, you’ll see an output but just hit enter key to clear it.

If you want VNC to come up at start up, on your desktop go to System > Preference > Startup Applications.  There put in a name for your App, the directory to the vnc.sh we just made and a comment if you want.  Thats it.  Not it will start up every time you reboot.

TCP Dump and Cisco

March 18, 2015

Log onto the L3 switch.

Here is the commands on the C6 that provide monitoring (sniffing) of a vlan to a specific port. The destination port is the port thats connected to eth2 on COSNIFFER01.

monitor session 1 source vlan ##
monitor session 1 destination interface Gi8/2 (interface)

Change the first line to whatever vlan you are wanting to capture.

After that, jump back onto cosniffer and run the following command…

tcpdump -i eth2 -nn -s0 -w filename.pcap ‘host 192.168.52.XX’

Change whats in red. Name your file and make your host what specify device or IP you are wanting to capture in the traffic. You can also do multiple devices or IP’s like so….
‘host x.x.x.x and host x.x.x.x’

Hit enter on the command. Let it run for a certain amount of time.

CTRL-C to end the command.

User WinSCP to copy the .pcap file you just made to your PC and open it up with Wireshark to examine the traffic.

Good Luck!

ARRIS TM502G with Comcast Xfinity

March 17, 2015

My grandmother has TV and Voice service with Comcast. They were charging her $10 a month for a modem rental. Found this model on eBay for $18 as a refurb. It works great with Comcast in Indiana. All you have to do is swap out your rental modem with your new modem, turn it on, and hook up a computer/laptop to the network port on the back of the ARRIS. Open a web browser and you’ll and try to get out to the Internet, you’ll get redirected to a Comcast Activation page. Its 3 or 4 easy steps, takes about 5 minutes. Just follow the instructions. You won’t need to call Comcast at all. Test your services after its activated.

Debian Wheezy install HP Elitebook 8440p

March 9, 2015

I had FreeBSD installed on this (previous post) but decided to turn this laptop into a GNS3 lab. Per GNS3’s website they prefer you use Ubuntu. I don’t care for Ubuntu so I installed Debian. Mint would be my second choice.

Everything works for the most part. Below is to do list…

1) – WIFI – Intel Centrino Advanced-N 6200…

Add a “non-free” component to /etc/apt/sources.list, for example:

# Debian 7 “Wheezy”
deb http://http.debian.net/debian/ wheezy main contrib non-free

save & exit

# apt-get update && apt-get install firmware-iwlwifi

then

# modprobe -r iwlwifi ; modprobe iwlwifi

2) WIFI – Blinking alert light on laptop

# echo “echo \”options iwlwifi led_mode=1\” >> /etc/modprobe.d/iwlwifi.conf” | sudo bash

3) screensaver – I had to install xscreensaver.

4) disabled suspend in Advanced settings for laptop lid

5) uninstall Gnash flash and installed Adobe flash. The other flash sucks.

Thats about it! All is good in da hood.

FreeBSD 10.1 on HP EliteBook 8440p

March 2, 2015

I did a simple setup for FreeBSD on this laptop. I’ve not gotten around to playing with ACPI events such as battery and lid closing. This laptop is purely for BSD Certification testing and playing around with the other BSD’s.

What I can tell you is that everything worked straight from the install with a few addition/tweaks.

Install – You’ll need the UEFI boot images. Even if UEFI is disabled in the bios, it still will not work. Also set the hard drive settings to IDE instead of AHCI.
Wifi – Intel N600 chipset. Just follow the Wireless document in the handbook. Fully supported.
Xorg – NVIDIA drivers. You’ll need to install NVIDIA-drivers-340 and NVIDID-xconfig.

Thats all I have so far because thats all I really need on it for the time being.