Monday, 24 November 2008

Commodore



And I thought they where gone, forever!!!

I still have my little VIC-20 as a special reminder of times gone by. Will our kids ever know the joy of typing in a new game from a magazine into the machine? Will they ever know the frustration when the audio cassette does not want to load? Or the absolute fun in the one instrument music track of the game?

Somebody mentioned to me over the weekend if games are not becoming a drive for good graphics, and the fundamentals of the original joy of the game is getting lost?

Well, I'm not sure, just very amazed on what Commodore are selling these days.

www.commodoregaming.com

www.commodore.ca

Wednesday, 5 November 2008

Installing Windows Vista Ultimate on Toshiba Portege M400

So I'm going to try to make this work, again. My running Windows XP Tablet Edition is now very slow, so I need the format.

Most important step for me, is have another machine on the Internet. Here I'm using my desktop. Always check that I have the latest files in the links in this How-To.

I'm using the support site at http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp

1. RAID Driver: Download and unzip onto USB stick the RAID driver at http://support1.toshiba-tro.de/tedd-files2/0/raid-drv-20070904114544.zip. Vista will not see the drive without this.

2. BIOS: Update the BIOS. If you have a running Windows, download and run from Windows the file at http://support1.toshiba-tro.de/tedd-files2/0/bios-20080530120945.zip. If you do not, good luck.....

3. Boot from Vista DVD: I'm using the Windows Vista Ultimate with Service Pack 1. Change the boot drive using F10 in the BIOS update restart. "Press any key to boot from CD/DVD". Do the licensing stuff and region selections. I suggest you disable the automatic activation, in case this does not work for you and you would like to go back to Windows XP. You will have 30 days to activate. At the drive setup select additional driver and browse to the USB stick from step 1. You should not see the drive. I do not believe in upgrades, so I just deleted the partition and selected next.

4. Installing Windows: Takes about 15 minutes. Normal minutes or Microsoft Minutes? Who knows?

5. Setup Windows: Set your name and password. Choose a name for the machine. Set time and time zone settings. Windows will now check the machine performance. This takes another 5 minutes. You should then be able to logon and get the desktop.

6. Drivers Installation: Here I'm following the guide from Toshiba's site. The one at http://support1.toshiba-tro.de/tedd-files2/0/install-20070719124822.zip. Some of these I do not even use, so I skip them and will make comments. I also first ran the Windows Update which included some drivers:

a. Display Driver: http://support1.toshiba-tro.de/tedd-files2/0/display-20080306092633.zip. Setup.exe included. Restart.
b. Sound Driver: Cannot find but audio seems to work. Updated from Windows Update.
c. Touchpad: http://support1.toshiba-tro.de/tedd-files2/0/tpdrv-20070718160416.zip but Touchpad is working.
d. Modem Driver: http://support1.toshiba-tro.de/tedd-files2/0/mdm-GB-20070710161833.zip but Modem is working. I picked the UK one for SA.
e. WiFi Atheros: Not sure what this is. I do not see this device.
f. WiFi Intel: Installed with Vista and working.
g. WiFi Key: Never used this, so I'm skipping this.
h. Bluetooth: http://aps2.toshiba-tro.de/bluetooth/index.php. Some licensing and other notices so cannot give direct link. Just run the file.
i. Flashmedia: Working so I'm leaving this.
j. RAID Util: Value added package requires this. http://support1.toshiba-tro.de/tedd-files2/0/raid-util-20070904154246.zip. Unzip and run the update application. Restart.
k. Value Added: http://support.toshiba-tro.de/tools/eula/calleula.asp?ID=60806. Unzip and run the setup.exe. I did a complete setup. Restart
l. Button Support: http://support1.toshiba-tro.de/tedd-files2/0/butsu-20070709124312.zip
m. SD Utilies: Never used this, so I'm skipping this.
n. SD Boot: Never used this, so I'm skipping this.
o. HDD Protection: Part of Windows Update.
p. Tablet PC Ext.: http://support1.toshiba-tro.de/tedd-files2/0/tpcep-en-20070718161731.zip. Unzip and run the setup. Restart.
q. Config Free: Vista has something like this?
r. Mic Effect: Cannot find this.
s. Tablet Access Code: I've never used this.
t. Security Assist: I hope Vista has good enough security.
u. DVD Player: Part of Vista.
v. Ulead DVD Movie Factory: I do not try and make DVD's on my notebook.
w. Acoustic Silencer: I just keep the DVD drive empty. Helps with battery life as well.
x. Disc Creator: Cannot find this but I use InfraRecorder.
y. Acrobat: Very old version. Download latest from Adobe site and install.
z. Trusted Platform Module Guide: Cannot find this.
aa. Trusted Platform Module: http://support1.toshiba-tro.de/tedd-files2/0/trustpm-20070719130219.zip. Unzip and run the setup.
bb. Fingerprint Utility: http://support1.toshiba-tro.de/tedd-files2/0/fp-sw-20070723092149.zip. Unzip and run the setup.

Novatel GSM Modem Setup:

Go to http://askiris.toshiba.com/ and search for "Novatel Wireless Mobile Broadband". Download the latest version of the driver for Vista. Unzip and run the "ToshibaDriver" application. Complete the installation.

Go to http://askiris.toshiba.com/ and search for "Toshiba RF Power Control Utility". Download the latest version of the driver for Vista. Unzip and run the "ToshibaDriver" application. Complete the installation.

Mobilink I found at http://www.oqo.com/intl/support/downloads_vista_intl.html. Download and unzip. Run the MLGeneric application. Complete the installation.

Freevo on Fedora Core 9

So I desided to build a new HTPC with the latest software I could find. Downloaded the FC9 ISO, burned and did a vanilla installation.

I did do all the updates using:

yum update and yum upgrade

before I started.

Then downloaded the Freevo source tar ball (http://sourceforge.net/project/showfiles.php?group_id=46652). You can leave the other files from SourceForge.net because they are availble in the distribution.

The following command should do most of the dependancies:

yum install python-devel python-kaa-base python-kaa-imlib2 python-kaa-metadata python-BeautifulSoup python-twisted

This needs to be done manually:

http://pyxml.sourceforge.net/ - Download, untar and run "python setup.py install"

Now untar the Freevo source and run "python setup.py install". She should install without errors.

Now we need the players. Mplayer is not part of the standard distro, so run the following to get access to the rpm.linva.org repository:

rpm -ivh http://rpm.livna.org/livna-release-9.rpm

Now we can install the rest:

yum install mplayer mencoder tvtime xine lsdvd

You should now have a very basic working Freevo.

MikroTik RouterOS with OpenVPN for Windows

My last post was for Linux, and it seems Linux only. The Windows clients have quite an issue working with those settings.

To make the solution work for Windows, you need to:

1. Drop the IP pool and do local / remote address for each secret entry. Make sure they are 255.255.255.252 subnet.
2. PPP profile should only set that encryption is required.
3. Windows client cannot accept username / password from file. Change the "auth-user-pass" to be on its own line.
4. Use "route-up" to call a cmd file to set the routing rules.

Hope this still helps.

Cheers.

MikroTIK RouterOS and OpenVPN Certificates

What a mission. Had to do quite a lot of reading and digging around, but got it to work. What I used was Fedora Core 6 and MikroTik RouterOS 3.6.

Herewith the process I used.

SSH to the Fedora box as root:

[root] yum install openvpn
[root] wget http://openvpn.net/release/openvpn-2.0.9.tar.gz
[root] tar zxvf openvpn-2.0.9.tar.gz
[root] mv openvpn-2.0.9/easy-rsa/ /etc/openvpn/easy-rsa/
[root] cd /etc/openvpn/easy-rsa/

Edit the ./vars file and ensure the following are set for your enviroment:

export KEY_COUNTRY="ZA" # Your 2 digit country code
export KEY_PROVINCE="Gauteng" # Your province
export KEY_CITY="JHB" # Your city
export KEY_ORG="Company" # Your company. This one needs to be the same in all keys.
export KEY_EMAIL="support@company.co.za" # The support mail address

Now run the following scripts:

[root] . ./vars # Yes. [.][space][./]
[root] ./clean-all # Deletes all the keys in keys folder.
[root] ./build-ca # Generates the CA key

Generating a 1024 bit RSA private key
..........++++++
writing new private key to 'ca.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [ZA]:
State or Province Name (full name) [Gauteng]:
Locality Name (eg, city) [JHB]:
Organization Name (eg, company) [Company]:
Organizational Unit Name (eg, section) []:IT Department
Common Name (eg, your name or your server's hostname) []: company.co.za
Email Address [support@company.co.za]:

The "Common Name" will be the domain name only for the MikroTIK server on the Internet side.

Now we build the client certificates:

[root] ./build-key client1

Generating a 1024 bit RSA private key
....................++++++.........++++++
writing new private key to 'client1.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [ZA]:
State or Province Name (full name) [Gauteng]:
Locality Name (eg, city) [JHB]:
Organization Name (eg, company) [Company]:
Organizational Unit Name (eg, section) []:Client Name
Common Name (eg, your name or your server's hostname) []:fqdn.client.co.za
Email Address [support@company.co.za]:support@client.co.za

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Using configuration from /etc/openvpn/easy-rsa/openssl.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'ZA'
stateOrProvinceName :PRINTABLE:'Gauteng'
localityName :PRINTABLE:'JHB'
organizationName :PRINTABLE:'Copany'
organizationalUnitName:PRINTABLE:'Client Name'
commonName :PRINTABLE:'fqdn.client.co.za'
emailAddress :IA5STRING:'support@client.co.za'
Certificate is to be certified until Apr 5 22:46:58 2018 GMT (3650 days)
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated

Do the same for all your clients.

Now we build the key files:

[root] build-dh

This can take a while, depending on the machine and the amount of files.

Now copy *.crt and *.key files under the keys folder to your MikroTik Server under files. I use the Winbox drag and drop function.

In Winbox, under certificates, hit the import button, select the ca.crt file first, and import. Then hit the import button again, and select the ca.key file and import. You should see a "KR" in the first column. The order is important.

Do the same for all your client certificates, getting the order right for each and confirming the "KR" shows for each.

Under "IP" -> "Pools" add a pool called "ovpn-pool". In the "Addresses" select the range you would like to use, like "10.10.1.10-10.10.1.50". Set the "Next Pool" to "none".

Under "PPP" -> "Profiles" add a profile called "ovpn-profile". Set your "Local Address" outside your "ovpn-pool", but in the same subnet. Select "ovpn-pool" under "Remote Address" and set "Use Encryption" to "required". The rest should be blank or default.

Under "PPP" -> "Interface" select the "OVPN Server" button. Enable the server, select the "ovpn-profile" under "Default profile" and the CA certificate under "Certificate" (should be "cert1" if it was the first to be imported.)

Under "PPP" -> "Secrets" add an entry where "Name" would be the username, "Password" the user password, "Service" wouild be "ovpn" and "Profile" should be "ovpn-profile"

Under "PPP" -> "Interface" add "OVPN Server" and set "Name" to "ovpn-username", where username is what you set in the previouse step. "User" should just be the username.

Under "IP" -> "Firewall" add a INPUT rule for protocol TCP, source port 1194 on your external interface. You would also need to add some more INPUT, OUTPUT and FORWARD rules to define what the user can and cannot do, using the ovpn interfaces.

Now send each client the "ca.crt" file, and their respective "client.crt" and "client.key" files.

On the client, copy these into the openvpn configuration directory. Create a new OVPN config file that looks like this:

dev tun
proto tcp-client
remote fqdn.company.co.za 1194 # Remote OpenVPN Servername or IP address
ca ca.crt
cert client.crt
key client.key
tls-client
port 1194
ping 15
ping-restart 45
ping-timer-rem
persist-tun
persist-key
mute-replay-warnings
verb 3
cipher AES-256-CBC
auth SHA1
pull
auth-user-pass auth.cfg

The auth.cfg file should be in the same diretory and should contain the username on the first line, and the password on the second line of the file.

Launch with:

openvpn --config client.ovpn

References:

http://openvpn.net/index.php/documentation/howto.html#pki
http://wiki.mikrotik.com/wiki/User_Manager/User_payments
http://wiki.mikrotik.com/wiki/OpenVPN

Fedora Core Route Entries

Herewith a short howto on routing a already secure Fedora box, using the config files supplied.

Set the IPV4 IP Packet Forwarding in /etc/sysctl.conf:

# Controls IP packet forwarding
net.ipv4.ip_forward = 1

Set the static routes in /etc/sysconfig/static-routes:

any net 192.168.10.0 netmask 255.255.255.0 gw 192.168.0.2
any net 192.168.20.0 netmask 255.255.255.0 gw 192.168.0.3

Dish Pointer

Found this very cool online application at www.dishpointer.com that can show you where to point your satellite dish to get to any satellite. I default this view to our office in Ferndale, Randburg, South Africa. I you zoom out enough, you can see where the satellite is over the earth.

Windows 11, but for Web

This guy has created Windows 11 on the web. Have a look at https://dev.to/piyush/windows-11-but-for-web-22h1 Source is over at  https://gith...