Ericsson p910, Linux, Mobical

Finally I got my p910 back from the repairs (had problems with screen). Playing around with it during weekends (oh yes – I was missing it a lot) and I have managed to sync my contacts from p910 via bluetooth and my laptop running fedora 8 to mobical. This was more than critical for me after I didn’t have access to my phone contacts for few months.

The major problem for me was to make p910 utilize internet of my laptop through bluetooth. There are a lot of how-tos, but all of them were missing smthing :(. Here how it worked for me (originally found here):
Put the following into /etc/ppp/peers/dun

460800
debug
ipcp-accept-remote
192.168.1.1:192.168.1.2
MS-DNS <IP of DNS server used by linux box>
lock
crtscts
noauth
defaultroute

Then put this to /etc/sysconfig/iptables:

*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT – [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -i ppp0 -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp –icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p UDP –dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p UDP -m UDP –dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT –reject-with icmp-host-prohibited
COMMIT
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -i ppp0 -j MARK –set-mark 0×9
COMMIT
*nat
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -m mark –mark 0×9 -j MASQUERADE
COMMIT

Then run the next set of commands (as root):

/sbin/service bluetooth start
/sbin/sysctl net.ipv4.conf.all.forwarding=1
/sbin/service iptables restart
dund –listen –encrypt call dun

Here we finished with Linux setup. Now get yourself a GnuBox application for p910. Follow the instructions on how to set it up on the GnuBox website. Finally, open gnubox, go to Options -> 2box Bluetooth -> LAN Access server, select your linux box in a list of devises, tell “Yes” when asked about encryption. Done, now you can use internet with “Bt” dialup account from your phone (refer to GnuBox setup instructions) and it will take you the whole path through linux to internet :)

The mobical part is easy – just register there and you will get an auto-configuration SMS for your p910. Now you can sync in any direction :)

FreeNX works again

Quite a while ago I wrote a post mentioning a problem with fonts when using RDP over FreeNX. Now it seems that the problem is fixed and everything works. I have reinstalled the freenx server on my FC5 server (the latest version available for fc5 from yum repos I have is 0.6.0) and also put a latest (3.1.0) nx client on my fedora 8 laptop. Things just work :)  and they are really fast and easy.

The Perfect Server with Fedora 7

Howto forge is hosting a very nice and strait forward article on how to setup the most needed installation of Fedora 7 based server, which will include web, FTP, mail and database servers. It is also possible to install the ISPConfig to run out-of-the-box on such setup. I think this is what most of the people will like since mostly they need a web site hosting/development platform.

The only three notes about HowTo (all of them are optional and just other ways to do things):

  1. It mentions the chkconfig –level 235 servicename on command. You can skip the –level 235 argument and by default get it to 2345.
  2. All service starting/restarting activities are described by using the /etc/init.d/servicename start/restart action. In Fedora one may just use the service servicename start/restart command.
  3. I strongly advice installing bash-completion package, especially when working a lot in CLUE, since it will speed up things as well as help with finding out possible commands arguments.

Fedora 7

Downloaded Fedora 7 (full DVD and Live CD KDE-based images) and installed the full one. Looks great, works fast. From what I have noticed immidiately – my WiFi seems to work out of the box, yum works much faster. The rest is pretty much the same, apart of new art-work everywhere and less stuff to update (fresh software everywhere).

Sun JDK on Fedora Core 6

I am not a Java fan and I do prefer doing all my stuff in Perl (due to the perl being more flexible and comfortable to code in [my personal view] and probably due to the nature of the tasks I have), but due to the college class Object Oriented Programming which is totally taught in Java, I have to install Sun JDK on my laptop for some time.

It turned out that the task is not that easy (actually easy, but tricky), but I found a nice article which describes all steps needed to get Sun JDK configured on the system – works for me