Friday, November 23, 2012

HyperV in WIndows 8

Setting up Hyper-V isn't that hard as Microsoft has lots of information on doing this.

A little prep work before installing any operating systems:
  • You will need to enable virtualization technology in Bios on the HP ENVY TouchSmart Ultrabook 4t-1100, by default VT is disabled.
  • You will also need to create a virtual switch using the Hyper-V Manager. Be sure to allow management operating system to share this network adapter when creating it.
With that done you will need to create a virtual machine for OpenBSD to live on.  I used the defaults for most things; such as 512M ram and a 10G hard drive.  Go ahead and delete the default network adapter listed, as it doesn't work in OpenBSD. Add the "Legacy Network Adapter" to take its place.  Under OpenBSD the legacy adapter will come up as de, - DEC DC21x4x (Tulip) 10/100 Ethernet device, and it works great.

Now do a normal install of OpenBSD 5.2. My CPU performance monitor didn't even spike above 15% while installing OpenBSD 5.2. Furthermore while installing I was able to browse the web, download some more ISOs, and watch some Epic Rap Battles (ERB). Ah, Bruce Lee vs Clint Eastwood, awesome.  After a few minutes you can start system and login.

Xorg works fine under hyper-v.  (CTRL + ALT + LEFT ARROW)  is the breakout key combo (or release key combination) to get back to your desktop.  Other key combination can be found Technet.

I plan on using my virtual machine as an always up and running unix system for coding and ssh. I'll create another system for Oracle 11g using Fedora 17 next.

Enjoy!








Wednesday, November 21, 2012

Upgrading ram in HP ENVY TouchSmart Ultrabook 4t-1100

So just upgraded the ram in my HP ENVY TouchSmart Ultrabook 4t-1100. Great job Crucial, 16 gigs of ram! 

Installing the ram wasn't difficult, but removing the bottom enclosure was not easy.  Use HP's maintenance guide for help.  The shroud was attached a little tight and comes off with a snapping noise. But no harm done, it just snaps back on after installing the ram.  I recommend working from the hinges and moving around the edge. Be careful around the USB ports as the plastic looks thin there.  After removing the bottom enclosure (shroud) you will see two ram slots that are easy to get to. Install and reboot!

Windows runs so much better now, and boots in about 6 seconds. Applications still load normally, but once they are loaded switching between them is seamless.


Enjoy 16G!

Tuesday, November 20, 2012

HP ENVY TouchSmart Ultrabook 4t-1100

I just recently bought a new Windows 8 laptop with a touchscreen from HP, the ENVY TouchSmart Ultrabook 4t-110.

Here are the specs for the interested:
  • Windows 8 Pro 64
  • 3rd generation Intel Core i5-3317U Processor(1.7 GHz) + Intel HD Graphics 4000
  • 4GB 1600MHz DDR3 System Memory (1 Dimm)
  • 500GB 5400 rpm Hard Drive
  • 32GB mSSD Hard Drive Acceleration Cache
  • 4 Cell Lithium Ion Battery
  • 14.0" diagonal HD BrightView LED-backlit Display (1366 x 768)
  • External Tray Super Multi 8X DVD+/-RW w/Double Layer
  • HP TrueVision HD Webcam with integrated dual array digital microphone
  • Intel 802.11b/g/n WLAN and Bluetooth + WIDI
  • Backlit Keyboard
  • .78 in thin and under 4 lb 
I only got the 4G of ram since Crucial sells the 16G upgrade for far less than HP.
 
The goal is to see how it runs Windows 8, Linux, and of course OpenBSD.  For this I'll be able to use VMPlayer and the built-in hypervisor, one of the reasons for the 16G of ram.

But before I get into that this holiday weekend, let me give you a simple review of the laptop. The 4t-110 has three USB 3.0 ports, not 2 like most review sites list.  The touchscreen can also register 10 finger tips, unlike the 5 from the Lenovo Twist.  The screen is bright and doesn't get covered with finger prints when you touch it. There is some glare.  The case has a solid feel to it and also doesn't collect finger prints. The touch screen hinges give a little when you touch the screen but it is not overly wobbly. The power plug end that fits into the laptop is weird as it does not seat completely and sticks out a bit.  The beats audio is loud and the speakers sound great. The trackpad is not as nice as my macbooks, but I assume I will get used to it. My only other complaint other than the power plug is that HP put the Intel and ultrabook stickers on crooked.  Overall I am very pleased with my purchase and would recommend it to others.

HP, if you are reading this, fix the power plug and put the stickers on straight from now on. 

Hope this helps.

Monday, November 12, 2012

#fw_update finds missing firmware

Have you used the OpenBSD command fw_update?  fw_update finds the missing firmware on your system and installs it for you.  The command has been avliable since 5.0. Guess I should read the changelogs or hang out on irc more.

I just used it to download and install the firmware for my old pcmci broadcom b card (bwi) and a hawking wireless n usb adapter (rsu) on a new laptop I have. That was really the easiest firmware install for any network interfaces ever. 

Simply log in as root and use the following command:
#fw_update

Depending on the firmware you need, you may see something like this.
rsu-firmware-1.1p0: ok
or
bwi-firmware-1.4p2: ok

After you get the OK, add your hostname.xxx0 file and restart the network.
#sh /etc/netstart 

Enjoy OpenBSD!

Friday, November 9, 2012

OpenBSD 5.2 MacPPC install

Installing OpenBSD 5.2 on an older Lombard PowerBook G3 is fairly easy. And these steps translate well for other older G3 and G4 Macs.  First you will need to get a copy OpenBSD for macppc. Either buy a CD set or download it from ftp.openbsd.org.

Insert the CD and boot your mac while holding down the "C" key on the keyboard. This will tell Open Firmware to boot from the cdrom instead of the hard drive.

I always use the MBR option when installing OpenBSD as OSX will never run on this G3 laptop again.  I also use the whole disk and auto-layout options. The auto layout option will install a small i partition with the boot loader, but other than that it is a normal install.

When it is finished installing, reboot your computer with
# reboot

After you reboot you will need to enter Open Firmware and set up the boot environment. To enter open firmware press the key combination cmd-opt-O-F just as you power on your Mac.

Type the following in.
0> setenv auto-boot? true
0> setenv boot-device hd:,ofwboot

0> reset-all

At this point the computer will reset. After logging in you can get your CD out using the following command:
$ eject /dev/rcd0c

You can also eject the CD from inside Open Firmware using this command:
0 > eject cd

Enjoy your Mac running OpenBSD!

Thursday, November 8, 2012

Setting up WPA wireless on OpenBSD 5.2

I saw a lot of people looking at my old, very old post about wireless networking, so I am going to try post some new wireless updates.

"#" means type this command as root.
"$" means type this command as user.

Setting up WPA wireless on OpenBSD using the command line is really easy.  Having configured WPA on Slackware, Ubuntu, and Fedora, I would have to say that OpenBSD is far easier, unless of course you are using wicd.

First you will need to pick out a wireless card.  I mostly have laptops, so I use a lot of USB wireless cards.  I have had a lot of success with Hawking Technology RUM and RUN chipsets on usb cards, an Atheros ATH built in wireless card, and a Broadcom BWI PCMCIA card.

First you will need to create the hostname file in OpenBSD. 
# vi /etc/hostname.rum0

I always like to create a new made up mac address. That way if I change cards, everything should still work.
You will need to type this in.
## Change your Mac Address
lladdr 00:01:4D:87:89:AB

## Setup up the system for my wireless account
dhcp NONE NONE NONE nwid MyWireless wpakey "PASSWORD"

Save your hostname.rum0 file.  Don't worry about permissions, OpenBSD will fix those for you.

Now restart network services.  No need to reboot.  Just type the following.
# sh /etc/netstart

You should see the following: WARNING: /etc/hostname.rum0 is insecure, fixing permissions.

Your wireless should now be working. Hope this helps some of you out there.

Wednesday, November 7, 2012

Running Rtorrent on OpenBSD 5.2

Rtorrent -  rTorrent is a text-based ncurses BitTorrent client which is light on resources and very capable. I use this application all of the time on my older laptop.  Follow these steps to install rtorrent in OpenBSD 5.2.

"#" means type this command as root.
"$" means type this command as user.


This is the output you will see when installing it.
# export PKG_PATH=ftp://ftp5.usa.openbsd.org/pub/OpenBSD/5.2/packages/i386/  
# pkg_add rtorrent
rtorrent-0.8.9v0:libiconv-1.14: ok
rtorrent-0.8.9v0:gettext-0.18.1p3: ok
rtorrent-0.8.9v0:libidn-1.25: ok
rtorrent-0.8.9v0:curl-7.26.0: ok
rtorrent-0.8.9v0:libsigc++-2.2.10: ok
rtorrent-0.8.9v0:libtorrent-0.12.9v0: ok
rtorrent-0.8.9v0: ok
Look in /usr/local/share/doc/pkg-readmes for extra documentation.
#

Download/copy/type the following .rtorrent.rc and save it to your home directory. (rc.torrent can be copied in full from the end of this page.)
$ cd ~/
$ /home/jason/.rtorrent.rc

Now set up your directories.
$ mkdir downloads
$ mkdir torrents
$ mkdir watch
$ mkdir .session


Start a new tmux session with rtorrent. This allows you
To exit and reenter your session whenever you would like.
$ tmux new rtorrent

Now from within tmux, use key combo "ctrl-b d" to detach your screen. You should now be at the command line.

To reattach to your session type
$ tmux attach

Enjoy rtorrent!


~~~~~~~~~~~copy everything below this line~~~~~~~~~~~~~~~~~~~~~~~~~
# This is an example resource file for rTorrent. Copy to# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
#
# Great wiki for rtorrent info.
# https://wiki.archlinux.org/index.php/RTorrent
# http://libtorrent.rakshasa.no/rtorrent/rtorrent.1.html

# Maximum and minimum number of peers to connect to per torrent.
min_peers = 40
max_peers = 100


# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 10
max_peers_seed = 50


# Maximum number of simultaneous uploads per torrent.
max_uploads = 15


# Global upload and download rate in KiB. "0" for unlimited.
download_rate = 20
upload_rate = 5


# Default directory to save the downloaded torrents.
directory = /home/jason/downloads/torrents/


# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /home/jason/downloads/.session


# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/home/jason/downloads/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=
schedule = tied_directory,5,5,start_tied=

# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=1000M


# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"

# The ip address reported to the tracker.
#ip = 127.0.0.1
#ip = rakshasa.no


# The ip address the listening socket and outgoing connections is
# bound to.
#bind = 127.0.0.1
#bind = rakshasa.no


# Port range to use for listening.
port_range = 6890-6999


# Start opening ports at a random position within the port range.
port_random = yes


# Check hash for finished torrents. Might be useful until the bug is
# fixed that causes lack of disk space not to be properly reported.
# yes/no
check_hash = yes        


# Set whatever the client should try to connect to UDP trackers.
use_udp_trackers = yes


# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa

# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
encryption = allow_incoming,try_outgoing,require


# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
dht = auto

# UDP port to use for DHT.
dht_port = 6881

# Enable peer exchange (for torrents not marked private)
peer_exchange = yes


#
# Do not modify the following parameters unless you know what you're doing.
#

# Hash read-ahead controls how many MB to request the kernel to read
# ahead. If the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read
# pages in memory thus end up trashing.
#hash_read_ahead = 10

# Interval between attempts to check the hash, in milliseconds.
#hash_interval = 100

# Number of attempts to check the hash while using the mincore status,
# before forcing. Overworked systems might need lower values to get a
# decent hash checking rate.
#hash_max_tries = 10