November 17, 2008
Since the 3G network is growing fast here in Brazil I decided to give it a try. My carrier offered me a Sony Ericsson MD300 modem as part of the service. Then I had the mission to make it work under Linux, in specific the Ubuntu 8.10 (my current distribution).
The MD300 modem is not officially supported but as I will show bellow, it is quite well compatbile with the Ubuntu 8.10. This USB device comes with 3 different operation modes. The defaul mode is the 1, which the device acts like a flash drive and of course we are not interested. Then we have to tell the Linux to switch to the mode 3 (serial modem) when the new device is plugged. To do so, we create an udev rule. It is quite easy.
Create a udev rule’s file (on the /etc/udev/rules.d) for the device
sudo gedit /etc/udev/rules.d/50-md300modem.rules
Then put the following content on the rule’s file:
ACTION!=”add”, GOTO=”3G_End”
BUS==”usb”, SYSFS{idProduct}==”d0cf”, SYSFS{idVendor}==”0fce”, NAME=”%k”,SYMLINK=”modem3G-%n”, PROGRAM=”/bin/sh -c ‘echo 3 > /sys/%p/device/bConfigurationValue’”
LABEL=”3G_End”
Be careful with the like breaks. The text above has only 3 lines.
After those steps, reboot your machine so the new rules can be applied and connect your modem at an USB port. Now it should be working and two devices must have appeader (/dev/ttyACM0 and /dev/ttyACM1)
5 Comments |
Tricks and Tips | Tagged: 3G, Intrepid, Linux, MD300, Modem, Sony Ericsson, Ubuntu, udev |
Permalink
Posted by fpreto
September 27, 2008
There is a better alternative to solve the Flash High CPU usage on the Ubuntu Intrepid 8.10, using a possible official patch. This patch will generate a new .deb that can be installed and removed using the Debian’s Package Manager. To quickly install just follow the commands below on a Terminal (Applications -> Accessories -> Terminal).
sudo apt-get install build-essential fakeroot devscripts
cd /tmp
wget http://launchpadlibrarian.net/17178225/flashplugin-nonfree_10.0.1.218%2B10.0.0.569ubuntu1.debdiff
apt-get source flashplugin-nonfree
sudo apt-get build-dep flashplugin-nonfree
cd flashplugin-nonfree-10.0.1.218+10.0.0.525ubuntu1
patch -p1 < ../flashplugin-nonfree_10.0.1.218+10.0.0.569ubuntu1.debdiff
debuild -uc -us
sudo dpkg -i ../flashplugin-nonfree_10.0.1.218+10.0.0.569ubuntu1_i386.deb
This will generate a .deb and install it.
Update: patch was misspelled. Thanks Doug!
5 Comments |
Tricks and Tips | Tagged: Flash, Intrepid, Linux, Solution, Ubuntu |
Permalink
Posted by fpreto
September 23, 2008
In the Ubuntu 8.10 Intrepid Alpha, the kernel used is the 2.6.27 which contains a very dangerous version of the e1000e driver. This specific version of the driver maps the firmware of the hardware on memory and gives write access to it, so a misbehaved kernel (which is common in a development branch) can overwrite the firmware.
The attempts to recover the firmware using the Intel’s tools just make the things worse and brick the entire network card (the card is not recognized as PCI device anymore).
In other words, the driver allows a sequence of events to destroy the network card, which in many cases is onboard or at a laptop (there is already some occurrences of this fact).
You can track the bug on LaunchPad.
Leave a Comment » |
Analysis | Tagged: Alpha, bug, driver, e1000e, Intrepid, kernel, Linux, Ubuntu |
Permalink
Posted by fpreto
September 22, 2008
When I try to use the Flash 10 that comes in the repository I suffer from a very high CPU usage on websites that contain Flash animations.
A temporary solution while the version in the repository is not fixed is to use the Adobe’s version installed manually. To do so, follow the steps bellow:
- Go to http://labs.adobe.com/downloads/flashplayer10.html
- Download the Linux .tar.gz version
- Extract it to a temporary directory
- Execute the flashplayer-installer
- Answer the questions
Now the issues related to the high cpu usage shall disappear.
PS: The FlashBlock still doesn’t work
5 Comments |
Tricks and Tips | Tagged: Alpha, Flash, Intrepid, Linux, Ubuntu |
Permalink
Posted by fpreto
September 22, 2008
First of all, I know it is an Alpha version, however it is the last alpha version and today just happened the Beta Freeze. So, I decided to try the new Ubuntu on my Lenovo’s Thinkpad T61 (all chipsets are Intel). My impressions were very good at a first glance, however after installing I needed to remove a lot of Gnome’s configuration files.
What surprised me:
- Network Manager 0.7 is becoming a very powerful tool, now supporting also GSM and ADSL.
- Network interfaces can be activated at boot time (configurable also via Network Manager).
- Flash Plugin upgraded to 10, solving the annoying issues of overlapping over menus and other page items.
- New Kernel 2.6.27 with new drivers (Now my wifi light is on)
- The Pidgin was upgraded to 2.5.1
- The volume control is now integrated with Pulse Audio.
What disappointed me:
- The Network Manager does not recognise my mobile phone over Bluetooth or USB
- My Flash Blocker plugin is not working anymore (tryied to reinstall everything)
- The Kernel still in development, so the suspend does not work
- My Ricoh Card Reader still does not support Memory Stick due the lack of a kernel driver
- The is some graphical bugs related to X and my Intel video.
In conclusion, the Ubuntu 8.10 will be very promising. There is a lot of bugs to be fixed until it reaches beta. Until then, I will be filling bugs and tracking then very closely on Launchpad.
Leave a Comment » |
Analysis | Tagged: Alpha, Intrepid, Linux, Thinkpad, Ubuntu |
Permalink
Posted by fpreto
September 21, 2008
Post in portuguese
Muitas vezes eu me vi paranoicamente atualizando o site dos Correios para verificar onde minhas encomendas se encontravam. Daí surgiu a idéia de construir uma aplicação que fizesse isso para mim de forma automática. Então surgiu o pyCorreios, feito em Python e GTK me permite monitorar encomendas nacionais no site dos correios. Atualmente roda apenas em Linux devido a algumas dependências de diretório, quem sabe no futuro uma versão Windows.

pyCorreios - Tela Principal

pyCorreios - Adicionar Novo Código
A aplicação ainda está em desenvolvimento e falta alguns polimentos. Caso queira acompanhar o desenvolvimento, acesse o site dela.
2 Comments |
Portuguese | Tagged: GTK, Linux, Portuguese, Python |
Permalink
Posted by fpreto
September 17, 2008
I always try to use Gnome applications, however sometimes KDE applications do not have good alternatives. Amarok is one of those applications, and to improve the integration on the Gnome enviroment there is an Amarok Script that enable the Multimedia Keys available on laptops and some desktop keyboards.
To install follow the steps below:
- Download the Amarok Script here.
- Inside Amarok, go to “Tools > Script Manager“.
- Click on “Install Script” and select the downloaded file.
- Then select the script and click on “Run”
Now you can control the Amarok playback using the multimedia keys on laptop.
2 Comments |
Tricks and Tips | Tagged: Gnome, Linux |
Permalink
Posted by fpreto
September 17, 2008
I do not like the TrackPoint on the my ThinkPad, however some of my friends do. Then, at least on Ubuntu 8.04, there is a little trick to make the Z-Axis works.
You can configure your TrackPoint settings at the following directory: ‘/sys/devices/platform/i8042/serio1/serio2′.
To activate the clicking feature just follow the steps below on a Terminal/Console:
sudo -s
cd /sys/devices/platform/i8042/serio1/serio2
echo -n 1 > press_to_select
That’s it.
1 Comment |
Tricks and Tips | Tagged: Linux, Thinkpad |
Permalink
Posted by fpreto