Primal Cortex’s Weblog

Amnesia sets in…

Archive for the ‘1’ Category

Vmware 6.5.3 on Karmic Koala

Posted by primalcortex on November 12, 2009

Installing: At least these instructions worked for me:

#sudo bash
#chmod +x VMware-Workstation-6.5.3-185404.x86_64.bundle
# export VMWARE_SKIP_MODULES=true
#./VMware-Workstation-6.5.3-185404.x86_64.bundle
# vmware-modconfig --console --install-all

Voilá, installed Vmware without any issue. I’ve compiled the modules after installation because there are reports that it may hang by using the installer. Not sure, because I didn’t tried it. All VM Machines appear to be working.
Now for the other issues:

After upgrading from Kubuntu 9.04 to 9.10, I needed to upgrade to Vmware Workstation 6.5.3 as is the subject of this post… My previous version was 6.5.0. With this upgrade some older issues where back and new issues appeared…

- Keyboard mapping where again all wrong, with my Portuguese keyboard wrongly configured and some keys wouldn’t just work.

- The other annoying issue was the grab/ungrab mouse cursor problem. Kubuntu task bar area and the floating vmware toolbar area where unusable when the VM machines are in full screen. So for example the Windows task bar is, when the machine is full screen, at the same screen area than the KDE taskbar. The cursor on this area just flickered away like mad, and it was pretty difficult to do anything on this area. This also mean that Windows taskbar and systray where almost unusable and unacessible, and just couldn’t do anything on this area. The temporary workaround was to use machines not in full screen…
The solutions:
For the keyboard problem, on my home directory, just went to .vmware hidden directory (create one if it doesn’t exist) and add the following to the file named config:

xkeymap.nokeycodeMap = true
xkeymap.keycode.61 = 0x035
xkeymap.keycode.61 = 0x5f
xkeymap.keycode.47 = 0x027
xkeymap.keycode.47 = 0xc7
xkeymap.keycode.48 = 0x028
xkeymap.keycode.48 = 0xaa
xkeymap.keycode.51 = 0x02b
xkeymap.keycode.51 = 0xfe52
xkeymap.keycode.34 = 0x01a # +
xkeymap.keycode.34 = 0x2a # *
xkeymap.keycode.35 = 0x01b # ´
xkeymap.keycode.35 = 0xfe50 # `
xkeymap.keycode.20 = 0x00c # ‘
xkeymap.keycode.20 = 0x3f # ?
xkeymap.keycode.21 = 0xab # «
xkeymap.keycode.21 = 0xbb # »
xkeymap.keycode.49 = 0x029 # \
xkeymap.keycode.49 = 0x056 # |

xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu

Now if you copy and past the above content, just make sure that x is an ‘x’ letter, because WordPress may change it to something else that looks like an x but it isn’t. If you don’t due this, when you press a mapped key on VMware, you will get a popup window with an error complaining about a key code.
For the mouse issue, it looks like that the solution is this:
Temporary fix (solution from http://communities.vmware.com/thread/240766):

Open a shell window and start vmware from it with as follow:

#export VMWARE_USE_SHIPPED_GTK=yes

#export LD_PRELOAD=/lib/libglib-2.0.so.0

#vmware

It seems that to make the first two lines permanent, you just, as root, edit the following file: /etc/vmware/bootstrap and add the first to lines to the end of the file.
I hope that all issues are covered now….

Posted in 1 | Tagged: , , | Leave a Comment »

The cloud: Firefox bookmarks sync

Posted by primalcortex on November 11, 2009

Using Firefox at home, at work, and having several computers that I use, syncing all the bookmarks started to get to be a large problem…

So after upgrading to version 3.5 of Firefox, Mozilla Weave Is a good solution, mainly because of two things:

- You can synchronize all your data across computers, including passwords

- You can deploy and use your own Weave server, which solves the lingering question about the privacy of my data: http://phaseshiftllc.com/archives/2009/10/09/setting-up-a-custom-weave-0-5-server

Anyway, after a few days of use, synchronization is not always without any problems. It works, but some times, I get duplicated folders, and bookmarks that I have to delete by hand… Not good. I’ll try to use it a bit more, to see if this is due to the number of computers and bookmarks that I have. One neat solution for finding duplicated bookmarks is the bookmarkDD plugin at http://bookmarkdd.mozdev.org/

If these issues keep going I’ll have to try Google Toolbar…

Posted in 1 | Tagged: , , , | Leave a Comment »

My office sucks

Posted by primalcortex on October 27, 2009

My office sucks.

This is a real office:  http://picsfromtheoffice.blogspot.com/

Flight simulator is nowhere near this…

Posted in 1 | Tagged: | Leave a Comment »

The Cloud, the AVCHD and backups

Posted by primalcortex on October 27, 2009

Most developments and news are around the “cloud computing” phenomenon…

Ubuntu will have it: Ubuntu One, and there are a lot of players on the market, namely dropbox, skydrive to name a few.

While you can buy a lot of space on these “clouds” to make sure that you follow the backup paradigm 3-2-1 (three copies, two different media types, and one copy offsite), and use the cloud as the offsite backup for photographs, digital documents, and other small files, backing up AVCHD media into the cloud is not yet a sound proposition… Files are HUGE, in the GB area, and backing up into the cloud would take hours if not days…

So for this kind of critical files, I’ve not yet found a solution than copy them into a pen and move them offsite by “sneaker” net….

Posted in 1 | Tagged: , , | Leave a Comment »

Canon HF200 on Linux/Kubuntu 9.04

Posted by primalcortex on September 21, 2009

Being an 100% Linux user, the software shipped with Canon HF200 is not useful for me because it’s Windows only. Anyway, I’ve tried Pixela Software, the shipped software  on a virtual machine, and I wasn’t convinced…

So far  on Linux there is a complete lack of tools for management the video files that are produced by this camera, namely the MTS file format, despite being able to play them with no problems, only with small quirks… Right now I’m using VLC, and the x.264 codec downloaded from the sources, not the one shipped with Kubuntu and the quality the video is more or less OK. The latest ATI drivers for my ATI 4870 also improved a lot the visualization of the video. Playing the MTS files on the WD TV works 100%, and the quality is superb.

So I can play the files in my computer, BUT for KDE 4.3  Dolphin, it  has no support for thumbnails for MTS (M2TS) files… so I need to open each file to see wich are it’s contents… a painfull task.

It took me a while to solve more or less this issue. It’s not perfect, but it helps:

Using the latest ffmpeg, donwloaded from the sources, I can create JPG thumbnails related to the each MTS file. The idea came from here: http://johannesluderschmidt.de/?p=525

I’ve changed the script so that I can create AVCHD thumbnails:

#!/bin/bash
for FILENAME in *.MTS
do
if test -f “$FILENAME”; then
echo “Create thumbnail of $FILENAME”
ffmpeg -i “$FILENAME” -ss 00:00:01.00 -vcodec mjpeg -vframes 1 -an -f rawvideo -s 180×120 “$FILENAME”.jpg
#cp $FILENAME ~/test1/
else
echo “File $FILENAME not existing.”
fi
done

Save this file with a name like avchdthumb.sh, somewhere on your path, and make it executable with chmod +x avchdthumb.sh

Now you can go to your folder (folders) whre you have stored your MTS files, and just run the command like this for example: /home/primalcortex/tools/avchdthumb.sh

It will take a while, depending of the number of files and the your computer horsepower… I have an I7, so can’t complain… :-)

At the end the result will be for each MTS file a new MTS.jpg file with the initial frame as the thumbnail.

Now I have an idea what’s in the MTS videos.

If thumbnails in video format are needed, like the first 10s, then this URLhttp://code.google.com/p/hdffxvrt/ will do the job. Just change the line for the resolutionof the HF200 to 1920×1080, and execute the script with:  hdffxvrt thumb 0001.MTS. This will create a 10s clip in MOV format named 0001.MTS.mov.

This is a good as it gets. Now I’ll I need is Picasa in Linux to support AVCHD :-)

Regarding the camera itself, when connecting through USB to the Kubuntu, there is no problems in detecting and accessing it through Dolphin, but it’s faster to use a SDHC card reader to copy the files. The camera can create thumbnails for the videos when connecting by USB, but in my case it failed to create ALL thumbnails… weird…

Posted in 1 | Tagged: , , , , | Leave a Comment »

Windows 7 – Um substituto: Mais seguro, mais rápido, e gratuito

Posted by primalcortex on May 19, 2009

O Windows Vista já foi rei, mas agora tem um substituto: O Windows 7. Segundo parece resolve todos os problemas que há/havia no Vista… Apesar do Windows Vista ser um flop, é preciso compreender que só falhando é que se aprende alguma coisa, pelo que o falhanço do Vista pode ter impactos positivos no Windows 7 e que segundo o que anda para aí na Net, é o que parece…

No entanto, o Windows continua a ser um sistema operativo cujo objectivo base é um negócio e por isso alguém tem de pagar o esforço dessas melhorias. Quem pagaou o XP, o Vista e outro software MS terá agora de pagar o Windows 7…

Assim se vamos mudar, porque não mudar de vez? É certo que é preciso mudar de forma de pensar, de trabalhar e mesmo de usar um computador. Pessoas que encontram dificuldades no Windows, perdoam e esquecem essas dificuldades, mas noutros sistemas operativos alternativos já não….

Sistemas Windows com vírus, cavalos de troia, contas de home banking acedidas indevidamente, insegurança nativa que facilita a vida ao utilizador, mas torna o sistema inseguro, etc, são o dia a dia destes utilizadores. No entanto não desistem e continuam a usar o Windows porque pensam que não há alternativa…

No fim chega tudo a um ponto que se tem de perguntar:

- Confia no Windows para manter a sua informação confidencial e longe de acessos indevidos?

- Confia no Internet Explorer para aceder às suas contas de home banking?

- Num sistema fechado, como sabe que está seguro? É como viver numa casa onde toda a manutenção é feita por pessoal que não se conhece e não se vê…

Assim se vai experimentar o Windows 7, que tem uma licença gratuita até Junho de 2010, porque não experimenta o Kubuntu 9.04 que tem licença gratuita, até onde você quiser?

Experimentar não custa, e verá que algumas ideias do Windows 7, até foram baseadas onde realmente acontece a inovação: o KDE 4.2.

Posted in 1 | Leave a Comment »

Kubuntu 8.10 64 bit install

Posted by primalcortex on April 3, 2009

I’ve replaced my aging P4 1.8Ghz computer with a brand new I7 920 one… The old machine couldn’t even ran Kubuntu very well do to the Nvidia G400mx graphic board/driver issues. It just locked up the keyboard and mouse when using the restricted driver and had to do an hard reset to get out. So because my portable PC is an ATI graphic chip, I’ve choosen for the new rig an ati 4870 graphics card

So, I7 920 running on an Asus P6T with 6GB of RAM. This means 64 bit OS.The graphics board is an Gainward 4870.

Installation: Could only do it by using safe mode for graphics. Just after choosing the install language, press F4 to choose Safe mode, and you’re ready to go. If you do no choose the safe mode, after boot the screen just stays blank.

I  boot to the live CD and press on the Install icon on the desktop. This way allows me to surf the web during the installation … :-)

I’ve created three partitions: one for / (root), other for /boot another one for swap. So far so good. At the end before beginning installation I choose advanced and move the Grub boot loader to disk (hd1). hd0 is not my boot disk. The order of boot is definied in Bios. Just make sure that it makes sense on your installation.

The installation detected everything on my Asus P6T. This means that sound is working, ethernet is working and usb is working.

After sucessufull installation and one reboot, two things must be done:Install the ATI drivers, and upgrade all packages to the current releases.

1st) Upgrade. Just follow the ballon that will appear on the right low side of the screen and upgrade to the latest package releases.

2nd) Upgrade to KDE 4.2.2. Follow the instructions on http://www.kubuntu.org/news/kde-4.2.2. At the end of step 3, just press CTRL-ALT-BACKSPACE or logout, so that Adept can show you the new updates for KDE. Upgrade KDE and then logout and login again.

3rd) Install the 64 bit ATI drivers. Just follow the instructions. Download, make sure that the driver is executable (chmod +x ati-driver-installer-9-3-x86.x86_64.run in my case) and run it with sudo: sudo ati-driver-installer-9-3-x86.x86_64.run. At the end just make again CTRL-ALT-BACKSPACE so that the X server reloads.

Execute the comand fglrxinfo to make sure that the driver is loaded:

fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 4800 Series
OpenGL version string: 2.1.8543 Release

The Ati control Panel can be acessed by the  amdcccle command located on /usr/share/ati
Now you can install your favorite software. In my case the first thing that I’ve installed was firefox and the Adobe Flash player plugin. Then I’ve moved my profile from my old system to the new system.

You can after this upgrade the Open Office 2.4 to the latest version by adding the Ooo repository: Just check this: http://news.softpedia.com/news/How-To-Install-OpenOffice-org-3-0-in-Ubuntu-8-10-96449.shtml

For starters, that’s it. You can now follow the Perfect desktop installs from howtoforge.

Posted in 1 | Tagged: , | Leave a Comment »

[K]Ubuntu kernel upgrade breaks vmware

Posted by primalcortex on November 28, 2008

When after a kernel update from the repositories or pushed by the adepter updater, vmware refuses to start, you have to run the vmware-config.pl script again.

Posted in 1 | Tagged: , , | Leave a Comment »

Disco rígido Zaapa 2.5” de 320GB

Posted by primalcortex on August 27, 2008

Acabei de comprar uma coisas destas na Chip7:

Para vossa informação: A caixa é um bocado rafeira, já que o conector USB está de esguelha, e tem de se forçar um bocado o conector para a ficha entrar… nada de grave.

Não tem entrada extra para alimentação pelo que é fornecido um cabo USB em Y com duas fichas USB na ponta.

Finalmente o disco que está dentro desta caixa é um Samsung SpinPoint M6 de 320GB

Estou a copiar agora todo o conteúdo do meu velhinho WD de 80GB, e vamos ver se é tão bom como a WD.

Posted in 1 | Tagged: , | Leave a Comment »

Maquina de pão Clatronic – Pão integral do LIDL

Posted by primalcortex on August 26, 2008

Os pães feitos com as farinhas de pão integral do LIDL, ou seja o pacote vermelho, estavam sempre a sair completamente achatados e maciços. Eram comestíveis, mas não cresciam nem ficavam “gordinhos”.

Depois de algumas experiências, o truque é adicionar alguma gordura e usar o programa UM e não o programa para o pão integral.

Neste momento estou a usar como gordura óleo de girassol biológico comprado na BioCoop no Prior Velho, mesmo em frente à BA1 de figo maduro.

Como gosto de plane-spotting (http://www.portugalspotters.org/) ainda dá para ver umas descolagens e aterragens a seguir às compras! :-)

Posted in 1 | Tagged: , , | Leave a Comment »