Accessing your Android from Ubuntu and compiling stuff
So you got an Android mobile phone and you want to access it from your Ubuntu. You can get shell access to your phone, you can copy files from/to, and much more. In this post I cover the overall process.
You connect your mobile phone to your computer with a USB cable. Most Android phones come with either a microUSB, a miniUSB or some proprietary-to-USB cable. If your phone did not come with such a cable, you need to get one.
When you connect your phone to the computer, it might be initialised as a CDROM device (uses the usb-storage kernel module) that comes with Windows drivers. It is the same issue you get with many 3g USB dongles that are initially recognised as CDROM devices. You need to use usb_modeswitch with the correct parameters in order to pass to the next stage (which makes the phone appear as a phone device, not a CDROM). If you do not have 'usb_modeswitch', install the usb-modeswitch package.
How do you find whether you need usb-modeswitch? And what parameters you need? See the usb-modeswitch project page and their helpful forum. You can also google with your device model number and the keyword usb-modeswitch.
Then, the next thing to do is to add a udev rule so that the correct permissions as set for your Android device. Use lsusb to identify the Vendor:Product ID of your phone. It looks like 1d6b:0001, and the Vendor ID in this case would be 1d6b. Then, run
gedit /lib/udev/51-android.rules
and type in
SUBSYSTEM=="usb", SYSFS(idVendor)=="XXXX", MODE="0666"
You need to replace XXXX with your correct USB Vendor ID. Save and exit.
Finally, restart udev with
sudo restart udev
Afterwards, you can download the Android SDK for Linux. It's a 17MB file, and (at the moment of writing) the filename is android-sdk_r07-linux_x86.tgz. The download pages talk about installing Eclipse and other stuff. For the purposes of shell access and copying files, it is OK to get the Android SDK only. Once you download it, uncompress. Locate the directory android-sdk-linux_x86/tools/. In there you get the adb (Android Debug Bridge) tool.
Run ./adb start-server in order to start the server on the host side.
Then, see whether your phone has been identified, with ./adb devices
> ./adb devices
List of devices attached SOMEDEVICENAME device > _
If you do not get the last line mentioning 'SOMEDEVICENAME device', then your phone was not detected (probably the usb_modeswitch issue needs to be done). If you get the line but with '(no permissions)', then something was wrong with udev setting up the permissions earlier. A shortcut is to ./adb kill-server and then run the same command with a sudo at the start.
Finally, we can
> ./adb shell $ id uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet) $ uname -a Linux localhost 2.6.29-perf #1 PREEMPT Tue Aug 3 20:01:27 EET 2010 armv6l GNU/Linux $ _
If you managed to root your Android phone, you can also
$ su # id uid=0(root) gid=0(root) # _
You can search at http://forum.xda-developers.com/ on how to root your phone. Most Android phones can be rooted. Note that things can go horribly wrong so there is a big chance to mess up with your phone if you are not careful. Study well before you root.
You copy files to and from the phone with
./adb push myfile.txt /sdcard/ # copies file myfile.txt from your computer to the /sdcard directory on the phone. ./adb pull /sdcard/myfile.txt . # copies file /sdcard/myfile.txt from the phone to the current directory.
Once you master these command, you can do more interesting things, such as cross-compiling programs on your Linux and then installing on your phone. Let's see how to write our own program.
Visit http://www.codesourcery.com/sgpp/lite/arm/portal/release1293 and download the IA32 GNU/Linux TAR package. Uncompress it. You get an arm-2010q1 directory with the ARM GCC cross-compiler.
Let's write a program, hello.c,
#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
We compile on our Ubuntu with the command
> arm-2010q1/bin/arm-none-linux-gnueabi-gcc hello.c -static -o hello_static > _
We need the -static keyword in order to make a static executable. Static means that our executable has everything that is required to run, and does not depend on other phone software/libraries.
Copy to the phone,
> ./adb push hello_static /sdcard 1687 KB/s (647869 bytes in 0.374s) > _
Then, connect to the phone,
> ./adb shell $ cd /sdcard $ ls -l hello_static -rwxrwxrwx system system 647869 2010-11-14 14:17 hello_static $ ./hello_static ./hello_static: permission denied $ _
What went wrong? When we type mount, we see that the /sdcard partition is mounted with the noexec flag. We cannot run stuff from /sdcard. What to do then? Copy stuff on the phone memory?
It appears that the SD card file system is also available from the /data/hwvefs mount point. There must be some background here, but the gist is that you can access the /sdcard content from /data/hwvefs/sdcard, and you can run them!
$ cd /data/hwvefs/sdcard $ ./hello_static Hello, world! $ _
The commands you come to expect on your Ubuntu system are not available on Anroid. You can install Busybox for Android. Still, these commands do not have the features you expect to get on Ubuntu.
Let's compile the bash shell. We download bash and uncompress.
We add the cross compiler to our path,
export PATH=/home/myusername/arm-2010q1/bin:$PATH
Then, we enter the bash-4.1 directory and run (assumes we installed build-essential)
> ./configure --prefix=/opt/arm_bash --host=arm-none-linux-gnueabi --enable-static-link --without-bash-malloc configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... x86_64-unknown-linux-gnu checking host system type... arm-none-linux-gnueabi checking for emacs... no checking for xemacs... no Beginning configuration for bash-4.1-release for arm-none-linux-gnueabi ... $ _
Then,
make
sudo make install
The bash for the ARM is available at /opt/arm_bash/bin/bash
Let's examine it,
> file /opt/arm_bash/bin/bash bash: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.16, not stripped > _
The important part is the mention to ARM. If there was a mistake in the configuration, you might see x86_64 here, which is your own computer!
As we did with hello_static, we install bash, and run it.
$ ./bash --version GNU bash, version 4.1.0(1)-release (arm-unknown-linux-gnu) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ ./bash bash-4.1$ _
Reading the UDS proceedings we see a big push for development on the ARM platform for mobile devices. There was mention for a packaged ARM cross compiler on the Ubuntu repositories (?) which would make things easier and more natural. It would be great to get as much of the user experience we are used to from the Linux desktop down to the mobile devices. Future looks great.
The Ubuntistas magazine (in Greek)
Ubuntistas is an e-magazine by Ubuntu-gr, the Greek Ubuntu community.
This is the 9th issue of Ubuntistas for May-June-July. You can click on the image above and have a look at the issue. The text should look Greek to you
but you can get the gist of the content.
The contributors for the 9th issue of Ubuntistas are
- Almpanopoulos Nikos (editing)
- Diamantis Dimitris (author)
- Kwstaras Giannis (author)
- Papadopoulos Dimitris (author, desktop publishing)
- Petoumenou Jennie (editing)
- Savvidis Solon (author, public relations)
- Fwtiadis Grigoris (design)
- Fwtiadis Fillipos (author)
- Hatzipantelis Pantelis (author, desktop publishing)
I remember the first discussions that led to the creation of the Ubuntistas magazine. It happened at the Ubuntu-gr forum where I was a moderator at that time. As moderator, our goal was to provide a friendly environment so that users get quality help and continue to use Ubuntu. As a result of that, the chances that some of these users would end up giving back to the community would be higher.
My input to the discussion was that there are many way to contribute back and I gave a list of (very boring) things to do. I felt that a magazine endeavor requires many people to cooperate and it was quite complicated task. My belief however was that they should give it a go anyway.
Ubuntu Font Beta and Greek
Update: All open bugs for this font at https://bugs.launchpad.net/ubuntufontbetatesting/+bugs File your bug. Currently there bugs relating to Greek, 1. Letter γ ((U03B3) has an untypical style 2. In letters with YPOGEGRAMMENI, YPOGEGRAMMENI is expected to be under not on the right and 3. Many Greek small letters have untypical style
Here we see some samples of Greek with Ubuntu Font Beta.
Ubuntu Font supports both Greek and Greek Polytonic.
In the following we compare between DejaVu Sans (currently the default font in Ubuntu) and the proposed Ubuntu Font Beta.
This is DejaVu Sans, showing the Greek Unicode Block. This means, modern Greek and Coptic.
This is Ubuntu Font Beta, showing the Greek Unicode Block. Coptic is not covered as it was not part of the requirements for this version of the font (actually Coptic currently uses a separate new Unicode Block so the Coptic here are too low of a priority).
This is DejaVu Sans showing the Greek Polytonic Unicode Block coverage. We show the second part of the Unicode Block which has the most exotic characters with up to three accents.
Same thing with Ubuntu Font Beta.
Note that those characters that appear as empty boxes are characters that either were not designed by the font designers, or are reserved characters that have not been defined yet.
Antigoni text in DejaVu Sans and Ubuntu Font Beta (PDF, 12pt)
Antigoni text in DejaVu Sans and Ubuntu Font Beta (PDF, 10pt)
If there are things to be fixed, this is the time to do them. Post a comment and we can take if further.
Traditionally, the letters γ and ν tend to have a unique form. In this case, in Ubuntu Font Beta, γ looks different to what a Greek user is accustomed to. I attach an SVG file of γ; if you have suggestions for enhancement, please use Inkscape, this gamma_UbuntuBeta-Regular file and make your suggestion!
(see top of post for link to bug reports)
Διαθέσιμο το Ubuntu 10.04 (Lucid)
Είναι διαθέσιμο το Ubuntu 10.04 LTS (Lucid), και μπορείτε να το αποκτήσετε από τη σελίδα λήψης του Ubuntu.
Ο απευθείας σύνδεσμος για λήψη του CD από διακομιστή στην Ελλάδα είναι Ubuntu 10.04 LTS (Lucid) - ntua.gr.
To CD δεν περιλαμβάνει την πλήρη ελληνική υποστήριξη (μεταφράσεις προγραμμάτων, κτλ), οπότε όταν ολοκληρώσετε την εγκατάσταση και έχετε σύνδεση με το διαδίκτυο, πηγαίνετε στο Σύστημα → Διαχείριση → Γλωσσική υποστήριξη. Θα ζητηθεί αν θέλετε να ολοκληρώσετε τη λήψη των υπόλοιπων πακέτων της γλωσσικής υποστήριξης.
Αν ο υπολογιστής που θα βάλετε το Ubuntu 10.04 δεν έχει πρόσβαση στο διαδίκτυο, τότε μπορείτε να επιλέξετε την έκδοση DVD, όπου περιλαμβάνει όλα τα αρχεία της ελληνικής υποστήριξης. Για τη λήψη του DVD δείτε τη σελίδα με τους διακομιστές για το DVD του Ubuntu 10.04 LTS. Περιλαμβάνει και Ελλάδα.
Όταν εγκαταστήσετε το Ubuntu Linux 10.04 LTS με το ελληνικό περιβάλλον, στις ρυθμίσεις πληκτρολογίου αφήστε την προεπιλογή για τη διάταξη πληκτρολογίου (Ελλάδα/Ελληνικά). Με την προεπιλογή, η διάταξη είναι ΑΓΓλικά (ΗΠΑ)/ΕΛΛηνικά, όπου αλλάζετε με Alt+Shift. Για το γράψιμο ελληνικών, πολυτονικού, κτλ, δείτε τις γνωστές οδηγίες γραφής ελληνικών, πολυτονικού για Linux.
Στο παράθυρο με τη γλωσσική υποστήριξη υπάρχει η δυνατότητα επιλογής για Input Method (ΙΜ) (μέθοδο εισαγωγής). Για την ελληνική γλώσσα πρέπει το Input Method να είναι κενό, δηλαδή να μην είναι επιλεγμένο κάτι. Αν δείτε ότι υπάρχει πρόβλημα στη γραφή ελληνικών, είναι πιθανό να επιλέξατε κατά λάθος το IBus. Μετά την απενεργοποίηση του IBus χρειάζεται να επανεκκίνηση (ή αποσύνδεση και επανασύνδεση στο σύστημα).
Ακόμα και αν είστε έμπειροι χρήστες Linux, είναι καλό να διαβάσετε με προσοχή τις σημειώσεις της νέας έκδοσης 10.04. To Ubuntu έχει ως προεπιλογή νέα πακέτα, όπως προγράμματα κοινωνικής δικτύωσης (social networking), που είναι καλό να δοκιμάσουμε. Αν έχετε Facebook, Twitter ή λογαριασμούς για άμεσα μηνύματα (instant messaging) όπως GTalk, MSN Messenger, Yahoo!, μπορείτε να συνδεθείτε μέσα από το Ubuntu σας.
OpenType support in OpenOffice 3.2 (Greek)
The new version 3.2 of OpenOffice.org is being developed and you can currently download the release candidate for your testing purposes.
A big enhancement in OpenOffice.org 3.2 is the support for OpenType fonts. A typical Linux user is able to do most of the tasks with TrueType fonts, however any new exciting fonts available are mostly OpenType fonts. So, OpenOffice.org 3.2 (to be released this month) has OpenType support and most likely Ubuntu 10.04 is going to have OpenOffice.org 3.2.
You can install OpenOffice 3.2 RC (or final, in a few weeks) on your Ubuntu by downloading the relevant archive from download the release candidate. Extract the files and enter the DEBS/ subdirectory. Then, run sudo dpkg -i *.deb in order to install the development version of OpenOffice 3.2. The installed files are located in /opt/ooo-dev3/program/ and you run now run swriter (for Writer). It is quite possible there is already a relevant PPA repository; tell me in the comments and I'll update here.
We test with the Greek Font Society OpenType fonts, which are distributed with the OpenFont License. The Debian/Ubuntu repositories already have the GFS fonts packaged for you. You can either install the fonts with your package manager (open synaptic package manager, search for ttf-gfs), or run from the command line
sudo apt-get install ttf-gfs-artemisia ttf-gfs-baskerville ttf-gfs-bodoni-classic ttf-gfs-complutum ttf-gfs-didot-classic ttf-gfs-gazis ttf-gfs-neohellenic ttf-gfs-solomos ttf-gfs-theokritos
Here is a screenshot of the PDF file of GFS Fonts Sample. With OpenOffice.org 3.1 or earlier these fonts would not appear in Writer and would be replaced with the default OpenOffice.org font. In addition, if you tried to export to PDF, you would get the default font (that is, the OpenType fonts do not get embedded in the PDF file either).
Here is the .odf file of the GFS Fonts Sample. If you load it in OpenOffice.org 3.1, you will notice that the default OpenOffice.org font will appear for each line in the sample file. If you load the sample .odt file in OpenOffice.org 3.2, you need to have the GFS OpenType fonts installed beforehand.
The GFS fonts support Greek, Greek Polytonic and several ancient Greek characters. See How to type Greek, Greek Polytonic in Linux for instructions on how to configure and use the Greek keyboard layout in Linux. Note that to type Greek Polytonic, you do not need anymore to select the Polytonic layout; the default «Greek» keyboard layout has been updated so that you can type Greek, Greek Polytonic and Ancient Greek characters. Ergo, άᾷᾂϡϖϝ€ϕͼϾʹ͵ϐϛ.
Laptop without Windows, an update for Dell, Asus, Acer, Compaq
It is very difficult to buy a computer without Windows (that is, to buy it with either Linux, FreeDOS or no OS) in the European market.
Why would you want to buy a laptop without pre-installed Windows?
- Because you are simply not going to use Windows (for example, you plan to use a Linux distribution)
- Because your school has an Developer Academic Alliance (formerly MSDN AA) with Microsoft and they provide the Windows software for you
- Because your organisation has a company-wide agreement for Microsoft software, and you do not wish to pay twice for Windows.
- Because you somehow have a Windows license or Windows package installation box already.
Sadly, when talking to the sales personnel of a manufacturer, it might look an easier strategy to just mention points 2 or 3. There is already some prior knowledge with the sales personnel that large organisations do not need the pre-installed Windows software.
Dell used to sell the N Series laptops with Ubuntu Linux, however they do not sell them anymore, at least in Europe. I contacted a Dell customer care manager on this issue and I was told that N Series laptops are available when you call Dell Sales by phone. I did just that, however the telephone salesperson explained that they do not have N Series laptops anymore. He verified with his own manager.
Dell does sell netbooks with Ubuntu Linux in Europe. For example, the Dell Mini or the Dell Latitude 2100. The situation with the netbooks is almost perfect, but...

What would be desirable is to provide the option, when you customize the Latitude 2100, to be able to select the operating system under the Operating System options. In this way, the customer is in a position to make a better decision between the differences of the two options.

In a regional Dell website, it is possible to select the operating system while you are customizing the computer. In this case, when you select Ubuntu Linux, you can easily see that you are saving €30 compared to the initial price.
It is not clear why Dell UK and Dell Germany do not provide the facility that we see with Dell Greece. Normally the localised editions of a website take any changes later than the main languages (English, German).
Updated (soon after posted): It is possible to get the Dell UK page for the Latitude 2100 so that both pre-installed Windows and Ubuntu appear in the same section. It might be an update that has been rolled out just recently. When you visit the Customise page, you can now see that by selecting pre-installed Ubuntu Linux, you save £24 compared to pre-installed XP.
What would be ideal is for the consumer to have the option to avoid the pre-installed Windows, in a way shown above at the Dell Greece website for the Latitude 2100. Having options for Ubuntu Linux or FreeDOS (for those who already have a Windows license) would be the best value for the customers. This would make Dell the best company around.
So, what's going on with the other laptop manufacturers?
Acer, Asus, Compaq and HP do not appear to sell computers without pre-installed Windows to the European market. I have not been able to locate retailers that would sell a laptop with FreeDOS, let alone a Linux distribution.
Is this the case with Acer, Asus, Compaq and HP in other markets?

This is an example of laptop models from the SE Asian market. The laptops come with FreeDOS and if you want pre-installed Windows, you pay extra (€53 or $74). The quoted price for the laptop is not subjected to local tax for the specific SE Asian country. Here is the price equivalent for each laptop,
Acer: €325 or $460
Asus: €525 or $745
Compaq: €365 or $515
Manufacturers such as Lenovo and Toshiba appear as black sheep to me, regarding the European market. Lenovo is supposed to sell laptops with SuSE Linux, however I could not find an example. Toshiba is completely out of the radar. They might not be a big laptop manufacturer.
What would be great for the European customer is to have the option to buy a product without pre-installed Windows. And this option of buying a computer without pre-installed Windows should be a visible and accessible option.
From new user to kernel compilation to upstream fix
It is quite exciting when helping new users solve issues while migrating to the Linux operating system, and Ubuntu Linux in this case.
A couple of weeks ago, a new member at the Ubuntu-gr forum posted a question about a sound problem in an Ubuntu Linux installation.
Alsa Mixer
Here is the timeline
- An initial post was made with the relevant hardware information.
- More information was gathered that led to the PCI ID and subsystem ID of the sound card, which further led to the source of a patch for a quirk.
- The advice to recompile the full kernel (with the patch) was given. This process required over 10GB, which caused the distribution to crash. The user was fine to reinstall.
- A subsequent route was taken to simply compile Alsa (not the full kernel) and add the patch.
- This route was successful and the sound was now working.
- We want to post this patch upstream so that newer versions of the kernel contain the fix. In addition, all distributions will benefit as well.
- A bug report was submitted to the Alsa bugtracking #0004561. We now wait.
- Days are passing with no progress. A question at #alsa (Freenode) shows that the Alsa bugtracking is probably not used, so there is need to contact the developers through the mailing list.
- An e-mail is sent to the Alsa mailing list with the patch. The Alsa developer takes the patch and applies to his tree. We missed by several days the release of Linux 2.6.30; the patch should appear in 2.6.31.
The whole process took ten days. It is amazing how rewarding it is to follow the open-source processes and contribute the personal time to help make open-source better.
The patch was evidently elemental, however it required new testing to make sure it works, and that it applies to the current state of Alsa. There are many areas that you can contribute some of your time to make open-source better.
I would like to thank Theodora for going through the process, locating and verifying the patch, so that now it is pending inclusion in Linux 2.6.31.
Update 22Apr 2010: The change has been added to the Linux kernel
. It's a tiny small change that anyone can do.
10 Μαΐου: Το φόρουμ Ubuntu-GR έχει ΓΕΝΕΘΛΙΑ (1 χρόνος)!
10 Μαΐου: Το φόρουμ Ubuntu-GR έχει ΓΕΝΕΘΛΙΑ (1 χρόνος)!
Δείτε την παρουσίαση του φόρουμ του Ubuntu-gr που έκανε ο goofy στο συνέδριο FOSSCOMM που έγινε στη Λάρισα.
Δείτε την ανακοίνωση γενεθλίων στο www.ubuntu-gr.org.
Μερικά στατιστικά στοιχεία κατά τη συμπλήρωση του ενός χρόνου λειτουργίας του φόρουμ,
- τα περισσότερα από 2700 μέλη και τους πιθανότατα χιλιάδες επισκέπτες
- τις περισσότερες από 45.000 δημοσιεύσεις σε σχεδόν 4.500 συζητήσεις (θέματα / νήματα)
- τους περισσότερους από 150 Οδηγούς (How to - Tutorials)
- τα περισσότερα από 37.000 hits στο 3ο τεύχος του περιοδικού μας Ubuntistas (εξαιρουμένων λεκτικών Google, bot, κλπ)
- την έντονη δραστηριότητα-συμμετοχή σε δικτυακό τόπο Ubuntu-GR / λίστα συνδρομητών / Κανάλι IRC #ubuntu-gr στο δίκτυο FreeNode.
Γραφτείτε στο φόρουμ ubuntu-gr και μάθετε περισσότερα για το ελεύθερο λογισμικό στην ελληνική γλώσσα!
Workaround for bad fonts in Google Earth 5 (Linux)
Update Jan 2010: The following may not work anymore. Use with caution. See relevant discussions at http://forum.ubuntu-gr.org/viewtopic.php?f=5&t=15607 and especially http://kigka.blogspot.com/2010/11/google-6.html
Older post follows:
So you just installed Google Earth 5 and you can't figure out what's wrong with the fonts? If your language does not use the Latin script, you cannot see any text?
Here is the workaround. The basic info comes from this google earth forum post and the reply that suggests to mess with the QT libraries.
Google Earth 5 is based on the Qt library, and Google is using their own copies of the Qt libraries. This means that the customisation (including fonts) that you do with qtconfig-qt4 does not affect Google Earth. Here we use Ubuntu 8.10, and we simply installed the Qt libraries in order to use some Qt programs. You probably do not have qtconfig-qt4 installed, so you need to get it.
So, by following the advice in the post above and replacing key Qt libraries from Google Earth with the ones provided by our distro, solves (read: workaround) the problem. Here comes the science:
If you have a 32-bit version of Ubuntu,
cd /opt/google-earth/ sudo mv libQtCore.so.4 libQtCore.so.4.bak sudo mv libQtGui.so.4 libQtGui.so.4.bak sudo mv libQtNetwork.so.4 libQtNetwork.so.4.bak sudo mv libQtWebKit.so.4 libQtWebKit.so.4.bak sudo ln -s /usr/lib/libQtCore.so.4.4.3 libQtCore.so.4 sudo ln -s /usr/lib/libQtGui.so.4.4.3 libQtGui.so.4 sudo ln -s /usr/lib/libQtNetwork.so.4.4.3 libQtNetwork.so.4 sudo ln -s /usr/lib/libQtWebKit.so.4.4.3 libQtWebKit.so.4
If you have the 64-bit version of Ubuntu, try
cd /opt/google-earth/
sudo getlibs googleearth-bin
sudo mv libQtCore.so.4 libQtCore.so.4.bak
sudo mv libQtGui.so.4 libQtGui.so.4.bak
sudo mv libQtNetwork.so.4 libQtNetwork.so.4.bak
sudo mv libQtWebKit.so.4 libQtWebKit.so.4.bak
sudo ln -s /usr/lib32/libQtCore.so.4.4.3 libQtCore.so.4
sudo ln -s /usr/lib32/libQtGui.so.4.4.3 libQtGui.so.4
sudo ln -s /usr/lib32/libQtNetwork.so.4.4.3 libQtNetwork.so.4
sudo ln -s /usr/lib32/libQtWebKit.so.4.4.3 libQtWebKit.so.4
Requires to have getlibs installed, and when prompted, install the 32-bit versions of the packages as instructed.
Now, with qtconfig-qt you can configure the font settings.
How to install the 64-bit Adobe Flash Player 10 for Linux in Ubuntu Linux?
Update 2 May 2010: There is a repository for Flash 64bit at https://launchpad.net/~sevenmachines/+archive/flash Though I have not tried this, I suggest to give it a try. I tried this and it works like a charm. Uninstall flashplugin-nonfree, add the new PPA repository with sudo add-apt-repository ppa:sevenmachines/flash and then install flashplugin64-installer.
Update 10 Nov 2010: The package name changed to 'flashplugin64-installer'. It was to be called -nonfree. The commands below have been updated. You can simply copy and paste. The latest Flash 64-bit for Linux is 10.2 d1161. See Tools→Addons→Plugins to verify the version.
Here are the commands
sudo apt-get remove flashplugin-nonfree flashplugin-installer
sudo add-apt-repository ppa:sevenmachines/flash
sudo apt-get update
sudo apt-get install flashplugin64-installer
Original post: So you just read the announcement from Adobe for the alpha version of the 64-bit Flash Player 10 for Linux and you want to install in Ubuntu Linux?
Here is how to do it.
- First, we understand that the flashplugin-nonfree package that is currently available to those with 64-bit Ubuntu Linux, installs the 32-bit version of Flash and uses the nspluginwrapper tool to make it work.
- After some time, I expect that the flashplugin-nonfree will stop using nspluginwrapper and will simply install Adobe Flash Player 10 (64-bit) for Linux. So you need to have a look in your package manager and the package description in case flashplugin-nonfree has already been updated. If flashplugin-nonfree has been updated, stop reading now.
- Close Mozilla Firefox.
- Uninstall the flashplugin-nonfree package using your package manager, or simply running sudo apt-get remove flashplugin-nonfree
- Download the alpha version of the 64-bit Adobe Flash Player 10 for Linux and extract the file from the archive. You will get a libflashplayer.so file, which is about 10MB is size.
- If you want all users in your system to have this alpha version of Adobe Flash Player 10 for Linux, copy the libflashplayer.so file to /usr/lib/mozilla/plugins/. The command is sudo cp libflashplayer.so /usr/lib/mozilla/plugins/
- If you want just the current user to try out the Flash player, copy the libflashplayer.so file to /home/yourUSERNAME/.mozilla/plugins/. The command is cp libflashplayer.so ~/.mozilla/plugins/
- Check that in ~/.mozilla/plugins/ there is no dormant file with the name npwrapper.libflashplayer.so. A common issue with people who migrate their profiles is to perform a simply copy of the profile. The effect of this is sometimes there is an actual file called npwrapper.libflashplayer.so instead of a symbolic link. The result is that these people would end up using some old buggy version of nspluginwrapper which might be the cause of Firefox crashes! When you backup, use cp -a, so symbolic links remain symbolic links.
- You can now start Mozilla Firefox. Visit about:plugins and verify that the version of Flash is something like Shockwave Flash 10.0 d20. Make sure there is no remnant of any other previous Flash player.
- If you want to return back to the 32-bit Flash Player with emulation, remove the file we just added and install again the flashplugin-nonfree package.
The instructions for other distributions should be fairly similar.
Ubuntu 8.10, PulseAudio and Skype Problem
You installed Ubuntu 8.10, then added Skype, you try out Skype and you notice that the microphone does not work.
What's wrong? If you search the lists, you can find some indications, however no proper explanation of what's the source of the problem. Without having the Skype Linux developers explain, it's difficult to know what is goind on.
Some instructions advise to disable PulseAudio. That is not a proper solution, so we ignore. We aim forward not backwards.
Some other instructions suggest to remove the pulseaudio package, then add it back again. I do not understand how that helps over /etc/init.d/pulseaudio restart.
The workaround that works for me is to keep the settings to pulse and set Sound In to HDA Intel (hw:Intel, 0).
Recording does not go through PulseAudio but it interfaces directly to the sound card.
Remember that before trying to troubleshoot Skype, make sure that recording and playback works with Applications▶Sound&Video▶Sound Recorder.
Updated to Ubuntu 8.10
I just updated my system to Ubuntu 8.10. Since I had a separate partition for /home, I opted to actually reinstall while retaining the files in /home. The rest of the post is a laundry list of tips.
I could not find a blank CD or CDRW, so I opted to write the installation 8.10 ISO to a USB stick, then rebooted with the USB stick and finally installed. It was really fast and and convenient.
All hardware was properly detected (sound card: snd-hda-intel, wifi: iwl3945, bluetooth, intel graphics card). Regarding the sound card, some kind soul probably submitted the PCI ID and model information to the ALSA project, so there is no need anymore to specify manually.
I upgraded the stock OpenOffice.org 2.4.1 to OpenOffice.org 3.0. There are many ways to do it, however the easiest is to simply add the software source
deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
and let the system update itself automatically. For more on this, see the instructions at softpedia.
OpenOffice.org does not support OpenType fonts yet. I had the impression that OpenOffice.org 3.0 could see OpenType fonts but had trouble printing or exporting to PDF. My test showed that OOo 3.0 could not see OpenType fonts such as the ttf-gfs-* fonts, even when trying to force loading with spadmin. OpenType support is scheduled for the next version of OpenOffice.org. For now, we can use the wide range of TTF fonts.
I installed VirtualBox by adding the repository details described at the VirtualBox Linux Download webpage. Then, I tried to search with Add/Remove or Synaptic, however I could not find the virtuabox package. Only the virtualbox-ose packages were visible. It appears there is some sort of bug in the package description. If you open Synaptic, then click on the Origin (Προέλευση) filter which shows packages per repository. Select the virtualbox repository and you can eventually see virtualbox-2.0. Pretty weird.
For Evolution Mail, previously one would package the files manually and then restore them. This was error-prone because the account information are saved in gconf, the passwords in ~/.gnome2_private, etc. The proper solution is to remember to perform a backup before installing a new version of Ubuntu. In Ubuntu 8.04 and Evolution (from GNOME 2.22) there is an option to backup your settings, which includes mails and all. You finally restore in your new system; when the new Evolution starts for the first time, you are asked whether you want to restore a previous backup.
Firefox would freeze momentarily for some strange reason. I run from the command line and I noticed that some pages that had references to Flash material would freeze Firefox while trying to locate the Flash plugin. This was solved be installing flashplugin-nonfree.
I installed the updated Greek layout, so I can now type ϡϠϸϕϟαϛϚϖϐʹ͵ϻϺ«»ᾶᾅἒᾥ in the same layout.
Update #1: Ubuntu 8.10 works better with a dual head configuration. In System/Preferences/Screen resolution, you can activate the second display. The utility realises that the (currently) hard-coded maximum virtual display is not big enough to accomodate both monitors, and it asks you to edit automatically the xorg configuration file in order to add the setting for you. After a logout and re-login sequences, dual head works. Sadly for my graphics card, this means that there is no 3D support in this mode. With Intel 965GM, if the virtual screen does not fit in 2048x2048, then you no can haz 3D. Actually, if I align the displays vertically, they do fit and I would be able to get 3D.
Update #2: Time to put the system temperature sensors (CPU, hard disk). For the backend, we install the lm-sensors and hddtemp packages. With lm-sensors, we need to run sudo sensors-detect so that the appropriate settings can be detected. If you have a recent Intel CPU, this will probably find that you need to add the coretemp kernel module to /etc/modules, then reboot to activate it. For the hard disk temperature, simply install hddtemp and choose yes when prompted to add the hddtemp service. For the front-end, install the sensors-applet applet. You need to logout and login again so that this applet, called Hardware Sensors Monitor, appears in the applets list. Once you add, click to enable all available sensors in the preferences.







