Saturday, February 5, 2011

Lenovo Q150, OCZ vertex 2, 4Gb of Memory and Ubuntu 11.04


This time I wanted to speed up the the Q150.
I love the Q150, since I got it the disk access seems slow and I wanted to add a bit more memory for disk cache and desktop speed up.

So I got a 60Gb OCZ Vertex 2 for 129$ and corsair 4Gb DDRII 800Mhz for 99$, pics below.

So here are some basic stats with the new hardware.

30s Boot (11s for bios and grub 19s for ubuntu)
5s suspend sleep
5s suspend wake
4s shutdown

Disk speed for OCZ vertex 2
$ sudo hdparm -T -t /dev/sda1
/dev/sda1:
Timing cached reads: 1656 MB in 2.00 seconds = 827.89 MB/sec
Timing buffered disk reads: 582 MB in 3.00 seconds = 193.75 MB/sec
Everything is snappier:
  • Firefox loads in 2s
  • Chromium in 1s
  • LibreOffice Calc in 6s.
  • Hulu desktop loads and plays video in 10s.
The machine is still using a Atom CPU, so no miracles can be expected. With almost no noise and 24W power consumption this machine is very useful. It can also attach to the back of any monitor or TV and provides a great web computer to play mpeg videos at full speed and browse websites.

Q150 with SSD and 4Gb DDR mem





Wednesday, December 22, 2010

PS3 black screen and freeze with Netflix, Hulu plus, MLB.tv and Home

I spent a few days trying to figure out why my netflix, hulu and Home stop working on my PS3.

I tried everything, formatting the hd, reset to default settings, change resolution, hold the POWER button for 5 secs, reinstalling those Applications, nothing worked.

The only thing that worked was to reinstall firmware 3.55 again using the following instructions.

Follow "Activating Safe Mode" from the link below and then select the option to update the firmware from a USB drive.

http://us.playstation.com/support/answer/index.htm?a_id=1488


Get the firmware from the link below put it on the right PS3/update folder on a USB key/drive:
http://us.playstation.com/support/systemupdates/ps3/pc_update/index.htm

After the firmware was updated to the same 3.55 version I already had, NetFlix, Hulu, MLB.TV and Home all magically started to work again.

So it seems that Sony screwed up, with the update made from inside XMB in some manner.

I hope this is useful to someone else, I wish I could get back my last 4 days wasted on this stupid problem.

This is not related to OSS, but I think sharing this will save lot of hours to someone else out there and maybe they will use those some OSS code. :)

Tuesday, November 23, 2010

A feature to move running apps between different graphical sessions

I would love to see a feature on Wayland or xorg, that would allow for a running application to move from one graphical server to another, if the user has permissions for that.

I know this is tricky. But it would be super useful.

Imagine is a user has his desktop running and fully loaded with apps, and then it uses ssh or nxclient to connect to that machine.
The user would be able to list all graphical apps running under his id in any display servers are running on that machine.
It would then be possible run some command to transfer the output of a certain app to your current display server.
When the user is done with the app, the app should return to the original display server.

All of this would work without ever having to close or restart the app.

Sweet dreams :)

Friday, November 12, 2010

Ubuntu 10.10 Desktop Video Players

I got some time to record a demo with the Video players in Ubuntu 10.10, playing HD Video.


Thursday, November 11, 2010

Bluetooth Headset on Ubuntu

Pulse audio device choser:
sudo apt-get install paprefs paman padevchooser
Switch to PulseAudio by going into System -> Preferences -> Sound. Go into the Devices tab and change the Sound playback option for everything from Autodetect to PulseAudio Sound Server.




Use the gnome Bluetooth device wizard to pair your headset to the desktop


When the device is in pair mode you can type to learn the device unique ID
$ hcitool scan
Scanning ...
00:1F:82:28:XX:XX DR-BT101

create the file in $HOME/.asoundrc with the correct device ID:

pcm.bluetooth {
type bluetooth
device 00:1F:82:28:XX:XX
profile "auto"
}

type to test if the it's working:
mplayer -ao alsa:device=bluetooth ANY_MP3_FILE.mp3

Ubuntu Jaunty 64 bit:

You need some extra 32 bit libraries to make skype bluetooth work on Ubuntu 64 bit.

getlibs:
http://ubuntuforums.org/showthread.php?t=474790

Skype:
getlibs -p bluez
getlibs -p bluez-alsa

A more sophisticated Bluetooth Manager (not needed):

Add this source
deb http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main

Do not update your system with the new version of bluez from this source.

type to replace default gnome bluetooth applet with blueman type:
sudo apt-get install blueman

Disable this source.

Saturday, October 16, 2010

G2 review, rooting and Wifi tether.



I got the new G2 from TMobile (full price), It sounded like a great device when I got it according to the specs and the standard android build.

But HTC and TMobile got together to remove some functionality from the hardware and software and deceive the their customers by never document these restrictions, in the store or the documentation that comes with the device.

The bad:
- The G2 has a anti root mechanism
- The 4Gb internal storage is consumer fraud, the device might have a 4G internal storage but the user is only allowed to use 1.3Gb from the 4GB. Terrible deal for the price and similar devices like the Samsung Vibrant has 16Gb built in storage available and visible to the user, except for OS binaries. The G2 is missing 2Gb, the OS reporting tools don't even display 4Gb anywhere.
- The G2 has built in apps that you can't remove, twitter, web2go, quickoffice and photobucket. It's ok to pre-install these, but blocking the customer from removing these apps is a terrible idea.
- Tmobile changed market to have a useless TMobile tab and make it more difficult to get to your downloads.

The G2 uses a standard android build without any UI changes and I love that, but TMobile went the extra mile to block the customers that own the device from installing a new version of OS on the device or removeing stock apps. Rooting the device and removing stock apps is disabled on the G2.

With the new OTA, Tmobile WIFI calling was added to standard android 2.2 OS, at least this is a positive change for owners of a G2.

The Hardware:
- The network speed is fast, see the image below.
- The device is Fast.
- I love the keyboard.
- Camera and video is good, but it is a little slow if you need a fast picture, but the camera button and the LED flash are very useful.
- The screen is great.
- Only has one microphone, does not have sounds cancelling with multi microphones as other devices on the market, but it works fine.
- Battery lasts a day, depend on the usage some times not even a full day, but compared to my G1 is similar.
- The power button is not that great, difficult to press and seems like it might break easily, and since you have to press it multiple times per day, does not look like is going to last. It is very similar to the Nexus One.
- I love the volume button, big and usefull.
- I like the camera button.
- I like the 3 configurable buttons on the keyboard, I associated the gtalk, maps and browser to these, but you can associate any apps.
- I love the phone look and the metal back.

What would I change if I could:
- I would install a standard vanilla android build with 2.1, with root access so I can do whatever I want with my device.
- HTC should send a CD or USBKey with a software to restore the phone to the standard android OS image to save user from bloat-ware, spy-ware etc.

How to get root on the G2.
- Paul O’Brien has created an application that will provide quick one-click rooting for users. Get VISONary Paul's website.
- You might need to shut-down the G2 and remove the battery and restart to make VISIONary work, but after this it works great, and you can start blue-tooth tether.
- You can also use my backup pro or titanium backup to backup your device now that you have root on the device.

References:
http://phandroid.com/2010/10/14/visionary-gives-t-mobile-g2-users-a-one-click-root-solution/
http://code.google.com/p/android-wifi-tether/

Detailed review with pics:

http://www.phonescoop.com/articles/article.php?a=425

My speed test on the G2:



Updates after the OTA:
- I got the OTA, I've been running it for 2 weeks now. The phone is more stable, I don't have a freeze or reboot for 2 weeks.
- USB and WIFI tethering is enabled in this new OTA.
- There is also a WIFI calling feature from tmobile and it works.

The 2 things that stills annoys me is after the OTA are:
- that I can't remove the bloatware that tmobile injected in the OS. (So I might change it to another ROM later because of this, I always have to get all the updates for the bloatware to avoid the android notifications for those.
- The phone has some ROM write protection, to disallow the owners that payed the full price of the phone, to install a new version of the OS, this makes no sense and should be not be legal. But this is the mobile market we have today.

- I just wish that HTC or TMobile learned that I am the customer and the phone I payed full price is mine and I should be able do whatever I want with the phone, without having to find hacks and exploits. Give me a clean standard OS image without mods or bloatware that I can install, put it on HTC website or on TMobile web site and allow me to remove the bloatware from the phone, and only support that in case I call for support.


- The 4GB I payed for are still not available with the OTA, I can only see 1.8GB of internal storage, sad so sad :(


All that said:
This phone is amazing. Super fast, lasts me all day with WIFI/Bluetooth/GPS on. I use it to play podcasts for 6 hours or more per day and play these with stereo blue-tooth headsets. I also do normal usage of calling and web-browsing. Somehow the battery seems to last longer with the new OTA update. :)

Thursday, September 16, 2010

How to use vpnc with a cisco vpn server

Build vpnc with Hybrid support need by the cisco vpn.

sudo apt-get build-dep vpnc

sudo apt-get install libssl-dev

mkdir -p ~/tmp/vpnc

cd ~/tmp/vpnc

apt-get source vpnc

cd vpnc-0.5.3r449

# Edit the file Makefile and uncomment line
#OPENSSL_GPL_VIOLATION=yes

dpkg-buildpackage

# Remove existing vpnc
sudo apt-get remove vpnc
sudo dpkg -i ../vpnc_0.5.3r449-2_i386.deb
Verify the hybrid mode by executing
vpnc --version| grep -i auth
Supported Auth-Methods: psk psk+xauth hybrid(rsa)
Extract/Convert Root Cert and Profiles

Download MacOS Cisco VPN client your_company_cisco_client.dmg

Mount HFS Archive to copy the files needed

sudo mkdir /tmp/cisco
sudo mount -t hfsplus your_company_cisco_client.dmg /tmp/cisco -o loop
cd /tmp/cisco
cp -r Profiles/ rootcert
cd
sudo umount /tmp/cisco
sudo rmdir /tmp/cisco

Use pcf2vpn to convert files.

mkdir ~/vpnc

$ for file in Profiles/*.pcf; \
do basename=`basename "$file"`; \
/usr/share/vpnc/pcf2vpnc Profiles/"$basename" ~/vpnc/"${basename%pcf}vpnc"; \
done

use openssl to convert your root cert to PEM format
openssl x509 -inform DER <> root_certificate.pem
to connect to bayarea (for example)
sudo vpnc --ca-file root_certificate.pem vpnc/bayarea.vpnc

Example vpnc file:

## generated by pcf2vpnc
# CA-File /etc/vpnc/root_certificate.pem
IPSec ID GeneralHybrid
IPSec gateway vpn.company.com
IPSec secret XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

IKE Authmode hybrid
IKE DH Group dh2

## To add your username and password,
## use the following lines:
# Xauth username
# Xauth password

Setting dns over TLS on ubuntu 26.04 using quad9 and

With this change future dns queries should got to Quad9 and fallback Cloudflare if Quad9 has a outage, and should go over TLS.  Change /etc/...