Software Developer

Sunday, July 27, 2008

My deskbar-applet plugin for XFCE

Here is what i have done a couple of weeks ago. Maybe someone can find it also suitable:
click here

How to share internet between smartphone (T-mobile MDA with windows 6) and linux (ubuntu)

There are 2 ways to do that.

First one is using USB.

a couple of simple steps for that:

1. install usb-rndis-lite tool

svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite
make
sudo ./clean.sh
sudo make install

2. enable USB internet sharing in a smartphone
3. connect smartphone to your pc
4. probably you also need to do that:

sudo dhclient

to get the ip address

Also make sure that your activesync is not running on pocketPC- close it if it is started.

That's it for the first step.

Second one is using Bluetooth.

This one is more tricky.
I don't remember how did i do it exactly at the moment - but here the main steps:

1. install bluez-utils:
sudo apt-get install bluez-utils

2. then you need to enable bluetooth on your mobile phone and type in on your pc in a terminal:
hcitool inq

you should get something like :

Inquiring ...
00:17:83:80:DA:CB clock offset: 0x5426 class: 0x5a020c

the string
00:17:83:80:DA:CB
in your case should be different and this is the physical address of your mobile device.
3. create the file
/etc/bluetooth/pan/dev-up
with the contents:
#!/bin/bash 
ifup bnep0

and the file
/etc/bluetooth/pan/dev-down
with the contents:
#!/bin/bash 
ifdown bnep0

4. open
/etc/default/bluetooth
find the line with the
PAND_ENABLED=0
and change it to
PAND_ENABLED=1
Then find the line
PAND_OPTIONS=""
and change it to
PAND_OPTIONS="--listen --role=PANU --devup /etc/bluetooth/pan/dev-up --devdown /etc/bluetooth/pan/dev-down

5. enable bluetooth internet sharing on your mobile device and in terminal on PC type in:
sudo pand -c {your physical device address}

for the first time it will ask for the pin but afterwards it is not needed.
6. probably you will also need
sudo dhclient bnep0

P.S. sometimes it is needed to clean up the bluetooth pair devices on PC and mobile device. I also use
kbluetooth
for that.

Saturday, November 10, 2007

My New Lightweight Desktop


During this week I have decided to upgrade my system on a week end. Wanted to get smth new. So thought to upgrade my Edgy to latest Gutsy. But just for fun at half an hour installed yesterday xubuntu-desktop. And it is amazing! It is really LIGHTWEIHGT, saves all the features that I like in gnome and has some new that is really cool!
Also it has it's own Compositor - that hasn't so many effects as Beryl or Compiz, but do you really use it?
So my wish to start to upgrade to Gutsy disappear. At least for the next week. XFCE is now my default session on my laptop!


Thursday, August 30, 2007

my current sources list on my ubuntu

# Automatically generated sources.list
# http://www.ubuntu-nl.org/source-o-matic/
#
# If you get GPG errors with this sources.list, locate the GPG key in this file
# and run these commands (where KEY is replaced with that key)
#
# gpg --keyserver hkp://subkeys.pgp.net --recv-keys KEY
# gpg --export --armor KEY | sudo apt-key add -
#
# If you don't know what to do with this file, read
# https://help.ubuntu.com/community/Repositories/CommandLine

# Ubuntu supported packages
# GPG key: 437D05B5
deb http://nl.archive.ubuntu.com/ubuntu edgy main restricted
deb http://nl.archive.ubuntu.com/ubuntu edgy-updates main restricted
deb http://security.ubuntu.com/ubuntu edgy-security main restricted

deb-src http://nl.archive.ubuntu.com/ubuntu edgy main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu edgy-updates main restricted
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted

# Ubuntu community supported packages
# GPG key: 437D05B5
deb http://nl.archive.ubuntu.com/ubuntu edgy universe multiverse
deb http://nl.archive.ubuntu.com/ubuntu edgy-updates universe multiverse
deb http://security.ubuntu.com/ubuntu edgy-security universe multiverse

deb-src http://nl.archive.ubuntu.com/ubuntu edgy universe multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu edgy-updates universe multiverse
deb-src http://security.ubuntu.com/ubuntu edgy-security universe multiverse

# Seveas' Ubuntu Packages
# GPG key: 1135D466
deb http://seveas.theplayboymansion.net/seveas edgy-seveas all

deb-src http://seveas.theplayboymansion.net/seveas edgy-seveas all

# Ubuntu backports project
# GPG key: 437D05B5
deb http://nl.archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse

deb-src http://nl.archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse

# Kubuntu.org bleeding edge Koffice
# GPG key: DD4D5088
deb http://kubuntu.org/packages/koffice-latest edgy main

deb-src http://kubuntu.org/packages/koffice-latest edgy main

# Kubuntu.org bleeding edge amaroK
# GPG key: DD4D5088
deb http://kubuntu.org/packages/amarok-latest edgy main

deb-src http://kubuntu.org/packages/amarok-latest edgy main

# Upstream Wine
# GPG key: 387EE263
deb http://wine.budgetdedicated.com/apt edgy main

deb-src http://wine.budgetdedicated.com/apt edgy main

# Upstream Opera
# GPG key: 6A423791
deb http://deb.opera.com/opera etch non-free

# Upstream Beryl
# GPG key: ed8a569e
deb http://media.blutkind.org/xgl/ edgy main-edgy

deb-src http://media.blutkind.org/xgl/ edgy main-edgy

deb http://ubuntu.beryl-project.org/ edgy main

# Medibuntu multimedia packages
# GPG key: 0C5A2783
deb http://medibuntu.sos-sts.com/repo/ edgy free non-free

deb-src http://medibuntu.sos-sts.com/repo/ edgy free non-free

# Canonical Commercial packages
# GPG key: 437D05B5
deb http://archive.canonical.com edgy-commercial main

deb-src http://archive.canonical.com edgy-commercial main


#AUTOMATIX REPOS START

deb http://www.getautomatix.com/apt edgy main

deb http://archive.canonical.com/ubuntu edgy-commercial main

deb http://archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
#AUTOMATIX REPOS END

## Avant Window Navigator
deb http://download.tuxfamily.org/syzygy42/ edgy avant-window-navigator
deb-src http://download.tuxfamily.org/syzygy42/ edgy avant-window-navigator


## Fonts
deb http://www.telemail.fi/mlind/ubuntu edgy fonts
deb-src http://www.telemail.fi/mlind/ubuntu edgy fonts


## NTFS http://linux.cpms.ru/page.php?id=162
## wget http://flomertens.keo.in/ubuntu/givre_key.asc -O- | sudo apt-key add -
deb http://givre.cabspace.com/ubuntu/ edgy main main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ edgy main main-all
deb http://flomertens.keo.in/ubuntu/ edgy main main-all

## rus mp3 tags
## sudo wget http://rusxmms.sf.net/ubuntu/rusxmms/key.gpg -O - | sudo apt-key add -
## sudo wget ttp://rusxmms.sf.net/ubuntu/rusxmms/key.gpg-q -O - | sudo apt-key add -
deb http://rusxmms.sourceforge.net/ubuntu/rusxmms dapper main
#deb http://ubuntu.root.od.ua/rusxmms edgy main


# Eternity Screensaver
deb http://parker1.co.uk/apt edgy main
deb-src http://parker1.co.uk/apt edgy main