Pages: 1 2 3 4 5 6 7 8 9 10 11 ... 144 >>

2010. Mar. 07.

Permalink 09:33:34 pm, by vmiklos, 88 words   English (US)
Categories: hacking

Edited skype messages in BitlBee

A user reported on #bitlbee that in case someone edits an already sent message using the Skype GUI client, BitlBee does not report the change. This used to work for about 2,5 years ago, but now I checked and true, it was broken. When I fixed it I realised that it would be nice to prefix the updated message with something to be aware that it’s an edited message, not a new one. The result is pushed out to the git repo and a screenshot is available as well. ;)

2010. Mar. 06.

Permalink 03:36:55 pm, by vmiklos, 333 words   English (US)
Categories: hacking

samba, gentoo

Sorry, I’m continuing the story of uninteresting challenges I had in the last two days. Or if they look like interesting ones, please continue. ;)

Two days ago we (at work) had to repair a samba installation after a 3.0.x -> 3.2.x upgrade. There were 3 problems:

  • the firewall config had to be updated, to allow incoming tcp connections on port 445
  • somehow smbd was listening on ipv6 only, just listing all network interfaces in the config was enough to make it listen on ipv4 as well
  • for another strange reason it no longer accepted hostnames on its whitelist, using ip addresses directly did the trick

The other story from yesterday was fix up the firewall configuration at a small office. The problem was that till now they had a PPPoE connection and the firewall used NAT to share the internet access to the desktop machines, but now they switched to a radio-based access, they got a new modem which did not support PPPoE. Of course in short I just got the usual “the internet does not work!” bugreport. ;)

I must note that I’m not a sysadmin at this office, I just stepped in as the local sysadmin was a SPoF in the system and he (temporally?) disappeared and they asked me beause of “the hours is burning” effect. :)

So all I had to do is to alter the server configuration, which was running Gentoo. I never touched such a machine before, and it’s configuration is (of course, since I’m used to our netconfig) weird, but at least the off-line documentation was enough. So after RTFM, I just had to turn off pppoe, set the dns and the default gateway to the address of the new router and all was fine. One notable interesting fact was that there was no damn vi on the server. Given that emerge takes a lot of time, I had to suck with mcedit. :P

Conclusion: yet another example why offline documentation is important, even in case nowadays “there is internet everywhere". ;)

2010. Mar. 04.

Permalink 12:34:53 am, by vmiklos, 325 words   English (US)
Categories: hacking

gcalsync #3, vmware, xrandr

First, I wasted a few more hours with my never-ending “sync events form my Nokia S40 phone to Google Calendar” project. The result: it’s not a daemon, it checks if the last sync was more than a day ago, if it can ping google.com, and if both, but it can’t reach the phone via bluetooth, then it raises a kde4 notification, and it also notifies me when (and how) the sync was done, so that I switch bluetooth off on the phone after the sync. As usual, available here.

Second, I managed to fix two annoying bugs when installing Frugalware under VMware: dhcpcd did not update /etc/resolv.conf in the installer properly, now that I changed from dhcpcd to busybox’s udhcpc, it seems to be fine. (And udhcpc still works fine in qemu as well.). The other vmware-related improvement is that the newport xorg driver somehow locked up the whole virtual machine, now it’s moved to extra, so xconfig does not freeze the VM on a default install.

Third, today finally I managed to figure out how to enable the external output on my netbook, using the openchrome driver. It’s just about a single line in xorg.conf:

Option     "ActiveDevice"               "LCD,CRT"

This won’t do more than just cloning the output, but it’s far enough for me, who just uses the external output for presentation only.

(There is a binary driver which locks up the whole machine about 5-8 times a day, which has a bit better external video support, but stability is far more important for me, and the openchrome driver _is_ stable.)

Partly related, when I connected the external output to a projector, I had to set the screen resolution to 1024x768, and later back to 1280x800. 5 years earlier you had to edit xorg.conf and restart X to do this, now you can do this with xrandr:

$ xrandr --output default --mode 1024x768

and then to switch back:

$ xrandr --output default --mode 1280x800

OK, enough entries for today. :)

2010. Feb. 27.

Permalink 02:04:00, by vmiklos, 26 words   Hungarian (HU)
Categories: misc

BSc diplomaoszto

Ilyet kaptam ma. Persze sok ujdonsag nincs benne, ahogy a datumbol is latszik, megis jo erzes felrakni a polcra. Szep borkotes, rajta arany betukkel, hogy “diploma". ;)

2010. Feb. 26.

Permalink 01:45:31 am, by vmiklos, 202 words   English (US)
Categories: hacking

Memory upgrade to 3G

So my netbook had 1G of ram so far and I was happy with it. Then I started to play with virtual machines and it turned out that the bottleneck of it is the small memory I have. So I just bought a 2G ram module, and at this point things started to be weird. Given that the system booted up and almost everything worked properly, I did not really had an idea. I thought it’s a SW problem, so I did a clean Frugalware install on a separate partition as well, and there bash segfaulted in konsole as well sometimes. This ringed a bell, memtest!

After about 15 mins, memtest found numerous errors, then I rode back to the shop where I bought it and I asked for an other module. The interesting points were:

  • Actually the good ram was cheaper than the bad one they gave me the first time.
  • When I inserted the 2G module, the original 1G ram wasn’t anymore used as the 0-1G range, but it shown up as 2G-3G.

Now I hope next time I have to increase my ram amount, x86_64 will be mainstream so that I won’t have to suck again with a ‘custom’ architecture. ;)

2010. Feb. 14.

Permalink 01:00:23 am, by vmiklos, 83 words   English (US)
Categories: hacking

Sparse checkout example in git 1.7.0

Sparse checkout is now part of git-1.7.0. See here on what it is in general. Basically something what svn already knew for years and git did not. And of course git now does it better, since this way it’s possible to checkout multiple sub-directories, not just a single one, what svn allows.

Here is a short example:

$ git clone ~/git/git
$ cd git
$ ls|wc -l
361
$ git config core.sparsecheckout true
$ echo ppc/ > .git/info/sparse-checkout
$ echo perl/ >> .git/info/sparse-checkout
$ git read-tree -m -u HEAD
$ ls
perl/  ppc/

Enjoy! :)

2010. Feb. 09.

Permalink 05:39:00 pm, by vmiklos, 180 words   English (US)
Categories: hacking

pptp client howto on linux on console

So I saw a few howtos on how to set up ms pptp client on linux, but they’re mostly about how to click on networkmanager or other guis, so basically they hide the real detail, IOW what config files are actually used.

First install the necessary packages:


# pacman-g2 -S ppp pptp

Here is what I have under /etc/ppp:


# cat chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
$user PPTP $secret *


# cat options
lock


# cat options.pptp
lock
noauth
nobsdcomp
nodeflate


# cat peers/$network
pty "/usr/sbin/pptp $server --nolaunchpppd"
name "$user"
file /etc/ppp/options.pptp
remotename PPTP
require-mppe-128
refuse-eap
ipparam $network

And to bring up ppp0:


# pon $network debug dump logfd 2 nodetach

If it works fine, you can just use:


# pon $network

(Obviously replace $user, $secret, $server and $network with real values.)

One thing I did not figure out is how to configure it to set the default gateway as well. Right now I use the debug mode, then in the output I see the remote address, finally:


# route add default gw $remoteaddr

Other than that, it works fine - without any damn gui! :)

2010. Feb. 05.

Permalink 20:54:55, by vmiklos, 40 words   Hungarian (HU)
Categories: misc

google adwords kupon

Szoval jott par napja postan egy ilyen vacak, hogy 12e HUF ertekben lehet ingyen hirdetni Google AdWordson marcius 31-ig. A problema csak az, hogy engem az ilyen lehetoseg allatira nem erdekel. Ha valakit igen, az keressen meg privatban - szivesen odaadom.

Permalink 01:56:51, by vmiklos, 34 words   Hungarian (HU)
Categories: film

avatar

ma voltunk megnezni. igen, az imax 3ds verziot. abszolut bejott, es meg azzal sem ertek feltetlenul egyet, hogy csak az imax miatt erdemes megnezni, nem csak a latvany volt jol megcsinalva. szerintem.

(imdb, trailer)

2010. Jan. 25.

Permalink 12:56:00 am, by vmiklos, 72 words   English (US)
Categories: hacking

darcs import on repo.or.cz

I’ve contributed a patch to repo.or.cz to allow darcs imports, but and I recently got a reply for it from the maintainer. So we worked together a bit more and now the patches are in, repo.or.cz just imported the source of darcsweb.

I also created a test project and tested that incremental imports work properly as well. \o/

NB: It uses my darcs-fast-export tool, that’s why I started to work on this. ;)

1 2 3 4 5 6 7 8 9 10 11 ... 144 >>

March 2010
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Search

Stats

Összesen 1,437 bejegyzés és 286 megjegyzés.

Most views

powered by b2evolution free blog software