Saturday, March 1, 2014

Run DOS Programs in Windows XP

DOSBox:
http://www.dosbox.com/

DOSBox Megabuild version supporting printer pass through:
http://home.arcor.de/h-a-l-9000/

Enable lpt1 on Megabuild:

  1. Start => All Programs => DOSBox-MB6 => Configuration => Edit Configuration
  2. In [parallel] section:
    parallel1=file dev:lpt1
Map network drive (map windows disk v: as dos disk v:):
  1. In [autoexec] section:
    mount v v:\

Tuesday, May 21, 2013

Use Knoppix to Wipe a Hard Drive


Wiping the hard drive is a necessity to avoid any chance of having personal data retrieved after you sell or dispose of your hard drive. The following procedures use the Live Linux CD Knoppix to wipe a hard drive.

  1. Boot into Knoppix.
  2. Start the "Terminal" window.
  3. Display a list of hard drivers currently on your system. It should be sdX or hdX where X is a letter.
    # sudo sfdisk -l -x
  4. Start the wiping process.
    # sudo shred -vfz -n 100 /dev/sdX
  5. Let the program run to completion (can be several hours).
References:
  1. Knoppix is a Live Linux CD based on Linux GNU/Linux
    http://knoppix.net/
  2. How to Use Knoppix to Wipe a Hard Drive
    http://www.ehow.com/how_6246449_use-knoppix-wipe-hard-drive.html
  3. shred - overwrite a file to hide its contents, and optionally delete it
    http://linux.die.net/man/1/shred

Tuesday, September 11, 2012

Wake-on-LAN

Wake-on-LAN (WOL) is an Ethernet networking standard that allows a server to be turned on by a network message. You need to send 'magic packets' to wake-on-lan enabled ethernet adapters and motherboards, in order to switch on the called systems. Make sure you connect the NIC (eth0 or eth1) with the motherboard, and enable the WOL function in the BIOS [1].

Enable BIOS to support WOL

Power Management Setup => Wake-Up by PCI Card => Enabled
or
Power => Wake on LAN from S5 => Power on


Enable LAN card to support WOL

Install tool ethtool:

# apt-get install ethtool

Add the following to /etc/network/interfaces:

allow-hotplug eth0
iface eth0 inet static
address 192.168.0.55
netmask 255.255.255.0
gateway 192.168.0.1
post-up /sbin/ethtool -s eth0 wol g
post-down /sbin/ethtool -s eth0 wol g


Send 'magic packet'

Install tool wakonlan:

# apt-get install wakeonlan

Wake up PC on the same LAN

# wakeonlan aa:bb:cc:dd:ee:ff

where aa:bb:cc:dd:ee:ff is the MAC of the PC being wake up

Wake up PC over internet

# wakeonlan -i 123.1.2.456 -p 6 aa:bb:cc:dd:ee:ff

Send 'magic packet' using UDP to IP address 123.1.2.456 with port number 6. Make sure the destination router forward the magic packet to PC being wake up.

References:
  1. HowTo: Wake Up Computers Using Linux Command [ Wake-on-LAN ( WOL ) ]
    http://www.cyberciti.biz/tips/linux-send-wake-on-lan-wol-magic-packets.html

Monday, December 19, 2011

Linux Mint 12 - add printer

Run "system-config-printer" at terminal to add printer.

Linux Mint 12 - connect to Samba share

Gigolo is a simple frontend to easily connect to remote filesystems. Gigolo can use the following protocols provided by GVfs:

Unix Device (file)
Photos (gphoto2)
Obex (obex)
HTTP (http)
Archive (archive)
Network (network)
WebDAV (secure) (davs)
WebDAV (dav)
Windows Share (smb)
FTP (ftp)
SSH (sftp)