check out my new blog at gmarik.info/blog

Wednesday, October 29, 2008

Peoplenet on Ubuntu Linux

I've got CCU-550(3G/UMTS) modem.
I've never installed modems on Linux before so I just hoped that newest distros have right tools to do that.

I wanted to start using it quickly therefore began with NetworkManager's PointToPoint connection option. But it didn't want to work...

Then I looked at pppd stcripts. But it didn't work for me either...

At that point I didn't have internet access so the only option i could progress with was reading man pages for wvdial.

Interesting what man page says about wvdial - PPP dialer with built-in intelligence.
And it turned out to be true :)

So i launched
$man 5 wvdial.conf


copied sample configuration to /etc/wvdial.conf and modified to look like:
[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init = ATZ
Phone = #777
Username = 80921111111@people.net.ua
Password = 111111


To get the proper Modem location i did:
$dmesg |grep tty
[ 164.384650] cdc_acm 2-1:1.0: ttyACM0: USB ACM device


Then launching:
$wvdial


I got it working:

$ ifconfig |\grep -A 1 ppp
ppp0 Link encap:Point-to-Point Protocol
inet addr:my.ip.addr.ess P-t-P:pp.ip.addr.ess Mask:255.255.255.255


Wow! Nice! :)

Labels: , , , , , , ,

 check out my new blog at gmarik.info/blog

Saturday, October 25, 2008

using rake with sudo

I was installing datamapper gems like:
gmarik@gm:master\dm-more.git$ sudo rake install
sudo: rake: command not found

sudo restricts environment settins:
$ sudo env|\grep PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin

As you can see rake path is not included:
$ which rake
/usr/local/lib/ruby/gems/bin/rake

You can edit sudo PATH to include /usr/local/lib/ruby/gems/bin.
=== UPDATED AT 2008.12.04 =====
or run rake with PATH set like:
sudo env PATH=$PATH rake

===============================
Bu i just symlinked rake:
$sudo ln -s `which rake` /usr/local/bin/

Now it works:
$ sudo rake --version
rake, version 0.8.3

Labels: , ,

 check out my new blog at gmarik.info/blog

Monday, October 20, 2008

Ubuntu 8.04: fglrx-ATI direct rendering, issue 3: Kernel update

Just rebooted my machine after kernel update few days ago.
Previous Kernel: 2.6.24-19-generic
Current version:
$ uname -a
Linux gm 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008 i686 GNU/Linux

And, yes - got fglrx broken again:

$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (2.1 Mesa 7.0.3-rc2)

$ glxinfo |grep direct
3:direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)


As for solution - check out my prevous post for same issue

enjoy!

Labels: , , , , ,