Categorylinux

repo sync problems – Android Eclair

If you have troubles with “repo sync” Android Eclair release (something like “remote end hung up unexpectedly“) – here is a solution!

The problem is that during heavy load repo cannot connect to the server and fails. And you have to start sync from the beginning again and again.

  1. go to the folder where you made “repo init” some days ago
  2. open .repo/repo/subcmds/sync.py
  3. correct _Fetch function (program will try to sync even without network after this change:-)) – add “while True:” at line 6, “break” at line 9, remove “sys.exit(1)” at line 11.
  4. 1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    
      def _Fetch(self, projects):
        fetched = set()
        pm = Progress('Fetching projects', len(projects))
        for project in projects:
          pm.update()
          while True:
            if project.Sync_NetworkHalf():
              fetched.add(project.gitdir)
              break
            else:
              print >>sys.stderr, 'error: Cannot fetch %s' % project.name
        pm.end()
        return fetched

p.s. be aware – indented matter!

Enjoy.

ADB doesn’t see any Android devices under Ubuntu 9.04

If you have troubles with ADB, Android and Ubuntu 9.04 – the solution is here:

http://eddieringle.com/debugging-your-android-application-on-the-g1-or-any-android-device-in-ubuntu-904/

GTalk under Ubuntu

I tried to find good Jabber client under Linux. Found Pidgin… but there are only sources available so you should make it yourself:-) That’s not so trivial (under fresh Ubuntu 8.10)… spent some time finding all necessary packages.

Simple instruction:

  1. Download and extract sources from here: http://www.pidgin.im/download/source/
  2. cd pidgin-2.5.5/
  3. sudo aptitude install gettext
  4. sudo apt-get install libgtk2.0-dev
  5. sudo apt-get build-dep pidgin
  6. ./configure ; make
  7. pidgin &

ICQ works also well. Cyrillic is supported.

Setup GTalk:

Protocol: XMPP
Screen name: name without @gmail.com
Server: gmail.com
Connect server (Advanced tab): talk.google.com

enjoy!

Ubuntu vs ASUS A8S

If you would like to install Ubuntu 8.10 to Asus A8Series notebook with Radeon HD2400 – it won’t be easy.

This simple procedure will help you (spent 6 hours to get it working):

  1. Install Ubuntu Linux 8.10 from Windows XP (I didn’t format partitions to ext3 – used second installation option)
  2. See black command line after first boot-up. ubuntu@ubuntu.
  3. Copy xserver-xorg-video-radeonhd_1.2.1-2build2_i386.deb (http://packages.debian.org/experimental/xserver-xorg-video-radeonhd) to the flash drive
  4. Mount this drive under linux command-line
    mkdir /media/disk
    mount /dev/sdb1 /media/disk
  5. Install driver
    sudo dpkg -i /media/disk/xserver-xorg-video-radeonhd_1.2.1-2build2_i386.deb
  6. Restart gdm
    sudo /etc/init.d/gdm restart
  7. Complete linux installation (desktop shortcut).
  8. Restart PC in safe mode (choose command-line). Install again driver under your new account (steps 4-6).

happy Android coding:-)

© 2019 Android Tales

Theme by Anders NorenUp ↑