Wednesday, January 30, 2008

Skype on Debian?

























I was working on debian when someone wanted to chat with me on skype.
I quickly run the command aptitude search skype. Nothing came out.
So I went to http://www.skype.com and click the download page.
I found out that they have skype for various different distro for linux.
They also have tarballs for static and dynamic libraries.

I was happy to see they have a version for debian etch. But unfortunately,
I was using debian unstable. I tried my chances anyways, and downloaded
the .deb for etch. After downloading, I tried to install, but apparently, I didn't
have the qt-libraries to install it. That was easy, all I needed to do is aptitude install it.

And so I did....a quick

debiana> aptitude install libqt4-core libqt4-gui

Then I can run this command...

debiana> dpkg -i skype-debian_1.4.0.118-1_i386.deb


Everything installed nicely, and I can run skype.
Running skype is as easy as

debiana> skype &

Skype run nicely, and I logged into skype. All the users were there displayed nicely.
I configured my sound device, and tried to play around alsamixer to get the microphone volume louder.

Unfortunately, the linux version has no support for video yet.
So I might still have to revert to windows when I want to use skype.
But the voice communication is excellent.....

Saturday, August 25, 2007

3G, Sony Ericsson and Debian

Recently, with a new phone purchase and current offers for 3G on maxis, I was trying to get Maxis 3G to work on my Linux box. I have been busy and my search for a solution was always interrupted, but the mydebian mailing list and the community have been supportive. Particularly to Donald and Irwan who have given me obvious clues, and Maxis website too helped (if only I have looked into it first).

So now I managed to browse the net using 3G, in fact, I'm using it right now, on debian and dialing to Maxis 3G. I decided to update this blog entry and give some pointers to whoever wants to use 3G on their Linux boxes.

I could have found a solution to it much sooner, but went with the hard way. I did a serial port scanning on windows to figure out what was going. I sure did learn a lot, but for the most things, the clues could have been easier to find if I went to Maxis website instead. They too gave some clues of how to connect on windows. With almost the same configuration based on Maxis instructions, it should work as well. Well too late to be crying over spilled milk, all that time wasted...hmmmm

Anyhow, for those of you who wants to use 3G Celcom with Debian, please take a look below for an excellent detail explanation. You can also get some hints if you are doing something a bit differently.
  1. http://blog.irwan.name/?p=220
  2. http://forum.kuchingosc.org/viewtopic.php?f=22&t=245

And for those of you using 3G Maxis with Debian, it's not so much different. All you have to do is:
  • aptitude install wvdial.
  • Run the wvdialconf /etc/wvdial.conf and
  • edit the file /etc/wvdial.conf
Your file should look like this....

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99***5#
Password = maxis
Username = wap

Yeah, the main changes was just the number to be dialled, username and password.

After that, running wvdial will get you connected. You can browse now..

I'm not sure about other telco, but if you are in doubt, and can't figure out was is happening, you can always
use serial port monitor to figure out what AT commands are being sent to your modem, on windows and try to do the same on Linux. As for the username and password, you will just have to ask your telco provider, or check out their website.

Happy Hacking guys......on 3G

Wednesday, July 25, 2007

Linus: I’ve never used Debian

What say you MyDebian Group?

Linus Torvalds was interviewed by
http://www.oneopensource.it/


One of the questions:
A curiosity: which is your favourite distribution, and which one do you consider more secure?

I don’t really tend to care much, I’ve changed distributions over the years, and to me the most important thing tends to be that they are easy to install and upgrade, and allow me to do the only part I really care about - the kernel.

So the only major distribution I’ve never used has actually been Debian, exactly because that has traditionally been harder to install. Which sounds kind of strange, since Debian is also considered to be the “hard-core technical” distribution, but that’s literally exactly what I personally do not want in a distro. I’ll take the nice ones with simple installers etc, because to me, that’s the whole and only point of using a distribution in the first place.

So I’ve used SuSE, Red Hat, Ubuntu, YDL (I ran my main setup on PowerPC-based machines for a while, and YDL - Yellow Dog Linux - ended up the easiest choice). Right now, most of my machines seem to have Fedora 7 on then, but that’s only a statement of fact, not meant to be that I think it’s necessarily “better” than the other distros.

You can read the rest here http://www.oneopensource.it/interview-linus-torvalds/

-ashterix-
http://ashterix.blogspot.com/

Wednesday, July 11, 2007

Debian Testing (Lenny) Got 2.6.21 Kernel

It seems Debian Testing aka Debian Lenny just got 2.6.21 series kernel. I’m a happy man, yay!

Debian Testing (Lenny) Got 2.6.21 Kernel

http://blog.irwan.name/?p=169

Wednesday, June 20, 2007

Signals and Signal Handling

The embedded Linux workshop was a good introduction of getting into programming in the unix environment. I really got a chance to know the kernel better and how linux works. To talk about all of it in a single post would be superfluous and too lengthy, so I will share with you some of the parts that I've learned in a few post whenever the time is right and I suddenly have a caring and sharing mood.

Lets talk about Signals and Signals Handling. Some of the things here can be obtained by looking at man pages for the keyword signal.
Signals as we usually know it, is to kill -9, or kill HUP. We also know that a process can be interrupted, killed or even stopped. But thats what most system admins use, there are alot of things about signals that we don't know about. Particularly, signals are used to control the state of a process. And so, understanding signals will help us build applications and help us control its states and handle certain states of the processes.

As for now, there are two categories of signals, Standard signals, that we all use, are dependent on most processors, and are numbered from 1 to 31. These signals are called standard signals because its an implementation of the POSIX 1.1990 and POSIX 1. 2001 standard signals.

As real-time programming and real time processors becomes rampant, the need to handle real-time applications exist, and hence, linux also support real-time signals which is numbered from 32 to 63. If your application requires real-time handling, these are the signals that you will probably be playing with.

Of course all these signals will cause the program, or process to be in a different state. Is it important to know, yes, if you are writing an application and want to handle certain signals when the kernel sends the signal to your application or program.

For example, what if you would like to ignore the interrupt signal? You can do that with signal handling by catching the interrupt signal. However, you cannot just catch any signal that is being thrown to you, basically, you cannot catch the kill signal which is the number 9. And I also think you cannot catch the stop signal....(not sure on this, i was sleepy).

here is an example program that do just that, run a program on infinite loop, and disallow any interrupt from keyboard, for example ctrl-c.

#include ‹unistd.h› /* standard unix functions, like getpid()
#include ‹sys/types.h› /* various type definitions, like pid_t */
#include ‹signal.h› /* signal name macros, and the kill() prototype */


void sighandy(int i)
{
printf("Don't do that, I will ignore it: %d\n", i);
// signal(SIGINT, (void *) sighandy);
}

main()
{
signal(SIGINT, (void *) sighandy);
for(;;)
pause();
}

Write the program and save the program as test1.c in your favorite editor like emacs. Then, you can compile it using,

$ gcc -o test1 test1.c

To run the program, use

$ ./test1

try pressing Ctrl-c and see what happens, ideally, you should be able to catch the interrupt signal sent to the process currently running.

Hope that helps you understanding a bit. Now you can create an application that can catch signals. Stealing Niibe's favorite phrase, Happy Hacking guys.

Monday, June 11, 2007

fbgrab - Now, You Can Take Screenshot Anywhere
http://blog.irwan.name/?p=128

Sunday, June 3, 2007

Debian to conquer bukit tabur?


About 2 weeks ago, i went up and hike Bukit Tabur with a friend of mine. The view on top was amazing, and you can see KL and the Klang Gate Dam from the top of Bukit Tabur. After a 2 1/2 hour hike, I took a picture on top of the peak. I had nothing to show off except for my debian t-shirt. Anyways, I thought it would be a good idea if some of us did some non-geek activity for a change....
What say you, anybody want to claim that MyDebian conquers Bukit Tabur? It will be just about 4 hours all together....