Website has been migrated to the blog.gregs.eu

Hi,

I’m glad to announce that website has been moved to the http://blog.gregs.eu.

-Grzegorz

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

DART-live Real Time Updates

DART-live is application for Nokia Meego N950/N9. It provides real time updates of the Suburban and DARTs trains on stations in Dublin. Be updated, the latest news directly from twitter helps you plan your journey.

Any enhancement requests or bugs please send grzesiek.golec(@)gmail.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Lenovo N100 and Gentoo

Gentoo logo After time full of glory spend on using KUbuntu distribution it is time for change. Everything worked there as should, so if you don’t have a time for file editing, you are happy for speed of your system stop reading this article now :)
Gentoo… It’s like test of your linux skills. Actually the main reason why I installed parallel with Ubuntu is optimization. I’ve just thought is it some way for speed up my system. I tried apt-build but it didn’t read my compiler flags, hence Gentoo was very good choice for my purposes.
What are advantages of using this distro. Your system is maximally optimized for your hardware and libs which you like. You can adjust optimal flags for your compiler and create special dedicated system.

After one month of using hardware is working fine. System is indeed faster and more stable (I’m using unstable branch ~x86 :). I can be sure that packages are compiled with optimal dependencies which you defined by USE flags. Gentoo has great documentation. You can find information how to install system directly, via chroot, network etc. step by step. Please just start from http://www.gentoo.org.

SYSTEM

kernel
First we need to compile own kernel. I have system working quite well so of course I share it here. It is not optimized .config yet. But I will update final version as well in the future. At the time of writing this article I had kernel 2.6.33. I’m using also ext4 partition, actually converted from ext3 few days ago. It is a reason why in kernel ext4 and ext3 support has been compiled in image not as modules. In near future I’m going to replace kernel to zen-kernel…

make.conf
For compilation I use this make.conf file. I’m KDE enthusiast, so USE flags are optimized for that. Do not look at cpp flags. I’m constantly trying to optimize them.

lenovo linux # vi /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=prescott -mtune=prescott -Os -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,--as-needed -Wl,--enable-new-dtags -Wl,--sort-common -s"
# Additional optimization: -ffast-math -funroll-loops -fpeel-loops -fno-tree-vectorize
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j8"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="mmx -3dfx -3dnow -Xaw3d -acl acpi -adns -afs -aim alsa -altivec -atm -birdstep -blas bluetooth bzip2 cdr -chasen -cjk clamav -coreaudio css dbus -debug -doc dri -dts dvd dvdr -eds -emacs -emboss -empress-bcs encode -esd -esoob -evo -examples exif ffmpeg firefox flac -frontbase -gcj gif gimp -gnome -gnome-keyring -gphoto2 gtk hal imagemagick -ibm -icq -ipod -ipv6 kde -kerberos -ldap lcms lame -lash -libgda -lirc -lua lzo mad -matrox mp3 mp4 mpeg mplayer -msn -mssql -mule -multilib -msql -nas networkmanager -nis nls -ocaml -ocamlopt -oci8 -oci-instant-client offensive ogg -old-linux opengl -oracle -oscar -oss -pch plasma png -postgres -prelude -qt3 qt4 quicktime x264 -radius raw -sapdb smp -snmp sockets -mysql sse sse2 sse3 -sybase syslog -tcl -timidity -v4l -v4l2 usb vcd -voodoo3 wifi -xemacs xinerama xcomposite -xinetd xosd xv xvid -yahoo -yaz zlib extras fts3 -gdbm upnp dlna samba gmplayer semantic-desktop lastfm wicd lzma kipi djvu chm ebook gadu lm_sensors threads sensord zip rar device-mapper rss ssl hddtemp thinkpad java nls bash-completion audacious -handbook nptl"
FEATURES="ccache distcc"
INPUT_DEVICES="synaptics mouse"
VIDEO_CARDS="intel"
LINGUAS="en en_GB pl"
PORTDIR_OVERLAY="/usr/local/portage"
ACCEPT_KEYWORDS="~x86"
ACCEPT_LICENSE="skype-eula"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
ALSA_CARDS="hda-intel intel8x0 intel8x0m usb-audio"

grub
By default in gentoo we install grub without ext4 support. I’m using newer from existing installation if Ubuntu but of course if your /boot directory is not as ext4 (which is actually preferred) you can use existing one. The best way is installing grub2. Very nice tutorial is here: http://en.gentoo-wiki.com/wiki/Grub2

HARDWARE

My processor:

lenovo linux # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Genuine Intel(R) CPU T2050 @ 1.60GHz
stepping : 8
cpu MHz : 1600.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon bts aperfmperf pni monitor est tm2 xtpr pdcm
bogomips : 3191.55
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management:

Rest of stuff:

lenovo linux # lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
03:00.0 Network controller: Broadcom Corporation BCM4312 802.11a/b/g (rev 01)
05:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
05:04.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01)
05:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
05:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
05:06.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
05:06.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)

Soundcard
Sound works properly. There is no issue with headphone jack. I think it was fixed some time ago in kernel driver. I don’t use any pulseaudio, only raw alsa from kernel and the following packages:

media-libs/alsa-lib-1.0.22-r1
media-sound/alsa-headers-1.0.22
media-sound/alsa-utils-1.0.22-r1

SD/MMC Reader
So far SD cards were read with high CPU usage during copying. Touchpad didn’t work smoothly until operation had finished. Few days ago I found reason and solution those problems. Fix is here.

Wireless network
We can use native kernel module b43 which recognizes Broadcom chipset, but there is problem with LED indication. I installed ndiswrapper drivers (mini how-to is on my “Lenovo N100 on SuSe” article) end they are working for me very well. As gui network manager please install wicd since KDE 4.4 doesn’t have native manager yet.

VGA
I have Intel 945GM chipset. Everything what you have to do is add appropriate entry in make.conf and recompile your X.

Multimedia keys
We don’™t have to install any extra software. After install distribution we have properly configured multimedia keys.

Sensors
gkrellm program indicate proper temperature on termal zone. After installing lm_sensors Core temp indicator will be activated as well. I’m still wondering why hddtemp doesn’t work properly with gkrellm.

Are you looking for more info? Take a look on:
http://en.gentoo-wiki.com/wiki/Lenovo_3000_N100
tuxmobil.org

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Lenovo N100 & kubuntu 4.07

I think ubuntu was created as dedicated distribution for Lenovo N100 :) Of course it’s mine opinion only.
I tried Suse 10.1, even I wrote an article. Unfortunately no everything worked. Bad quality sound if we input headphone, mmc reader does not work properly, bluetooth only in OBEX function, etc.

Kubuntu 4.07 has new 2.6.20-15 kernel. I have problem only with Authentec finger scanner. It’ll be better if I write only what is OK and what no:
Positives in oposite to SuSe;

Soundcard
Everything work properly. Kubuntu distribution doesn’t have problems with sound after connecting headphones. If we do this we hear sound in headphones only.

SD/MMC Reader
There is new kernel with mmc/sd readers support. Litlle older was in OpenSuse 10.2 but sometimes copyied files was corrupted. Here everything work fine.

Wireless network
We can use native kernel module bcm43xx which recognize Broadcom chipset, but it is no good idea. We may have problems with discover networks, authentification, LEDs etc.
I installed ndiswrapper drivers (mini how-to is on my ” N100 on SuSe” article). However ubuntu works better – knetworkmanager discover properly all networks and show signal level!

Xorg
After install kubuntu we doesn’t have wide screen resolution, even if we have proper mode 1200×800. We need install two packages:

915resolution – resolution modification tool for Intel graphic chipset
xserver-xorg-video-intel – X.Org X server — Intel i8xx, i9xx display driver

I modify also config file according to SUSe xorg.conf, because I had problems with touchpad. After few minutes pointer stoppped work or move to random position. My config is here.

Multimedia keys
We don’t have to install any extra software. After install distribution we have properly configured multimedia keys.

Sensors
gkrellm program indicate proper temperature. It is enough to cover snout and temperature smoothly growth.

Positives in opposite of SuSe distribution

  • apt-get work much faster, bigger database, faster operate database index, it’s native package manager, dependency
  • system start and shutdown faster
  • GRUB perfectly recognize partitions even hidden IBM diagnostic, we have start from it :)
  • simple installation, kubuntu install basic system and rest we download with apt-get – minimalism
  • it seems that everything work ever! not almost ever

I think it is enough in order to change distribution on kubuntu or don’t waste a time and install full functionally Linux on your laptop. Please comment if you have notices.

One thought on “Lenovo N100 & kubuntu 4.07

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Lenovo N100 & Suse 10.1

Hi, I’m happy owner of Lenovo N100 Laptop. At the beginning I had a lots of problem with soundcard but about it later.

Specification:
CPU: Intel Celeron Mobile 420 (1.6 GHz, 1 Mb L2 cache)
Chipset : Intel 945
RAM: 512 MB DDR2 667 MHz
Battery: 6 Cell LiIon
HDD: TOSHIBA MK8032GSX 5400 rpm 80 GiB (SATA)
Display: 15.4″ TFT WXGA 1200×800 16M
Video controller: Intel Graphics Media Accelerator 950
Ethernet: Realtek RTL-8139/8139C/8139C+ Ethernet Controller
Net.wifi: Broadcom BCM4310 802.11a/b/g WLAN
6-in-1 Media Reader: Ricoh Co Ltd R5C822
DVD+/-RW: DVDRAM GMA-4082N DVD+/-RW Double Layer
Audio: Intel ICH7 ADI1986A
Fingeprint Scanner: Authentec AES2501


# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Intel(R) Celeron(R) M CPU 420 @ 1.60GHz
stepping : 8
cpu MHz : 1596.018
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx constant_tsc pni monitor tm2 xtpr
bogomips : 3227.14

lsmod output is here

Screen:
Suse 10.1 perfectly recognize screen, resolution and synaptic touchpad. My xorg.conf is here.

Sound:
It is little dificult thing, because I changed kernel config settings, turn off alsa build in and compile from sources from alsa-project.org.
After compilling i had the same problems. So I reinstalled kernel on default.
Now sound is OK after adding to /etc/modptobe.d/sound :

options snd-hda-intel model=laptop-eapd

Broadcom Wireless
I’m using ndiswrapper. You can install from SuSe rpm. You need also Windows drivers. I try with those:
bcmwl5.sys
bcmwl5.inf

and write in commandline:

# ndiswrapper -i bcmwl5.inf
# ndiswrapper -m
# modprobe ndiswrapper

Now you can check dmesg is everything OK.
If second link download file as mp3 please change extension after download.

Multimedia keys:
I’m using llineakd program. It’s easy to configure and using. At the beginning I tried to find model of my keyboard. The most similar to Lenovo is model: DELL-8600.
I will not be describe full how to, if someone want to modify please look to lineakd manuals. Only you have to do is install lineak from rpms and copy my lineakd.conf to .lineak in your home directory.

Second thing is write script that be started everytime you start kde. Listing is here:

#!/bin/bash
lineakd &

I named this as start-lineakd and put it to ~/.kde/Autostart
Now you can restart KDE and test own multimedia keys.

MMC/SD Card Reader
I’m testing now… If pass I write some words…
Maybe this will be works.

One thought on “Lenovo N100 & Suse 10.1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Services Monitor

This is a script for monitoring services on remote hosts written in perl and PHP. It used www clients and databes MySQL in order to add new records and manage databases. I was created long time ago just to practise perl. Of course it never replace the real tools as Cacti, Nagios or Zabix.

It contains:
– engine perl script
– perl installation script
– php scripts for management and showing results

Engine is the perl script based on the modules: Net::Ping and Net::DNS and module for database handling MySQL – DBI. Module Net::Ping use icmp protocol and require root.

Requirements

WIN32 version: – Active Perl and additional modules (DBI::mysql, Net::DNS) – Web Server with php (IIS, Apache)
– MySQL

Linux version: – Perl that is in any distribution
– Apache and php
– MySQL

User have to install web server with php and MySQL before install scripts. See below into section Install for details.

Install:

Win32

1. Install Web Server with php. It depends on which server you install.
For details see into documentation.
2. Install a MySQL database
3. Install Active Perl.
You can get it from the: http://www.activestate.com/Products/ActivePerl/
4. Install additional modules:
write in perl terminal:

ppm
and then

ppm> install Net::DNS
ppm> install DBI::mysql

5. Please modify scripts pytaj.pl and install.pl in order to
change:
– correct MySQL IP address (default is localhost)
– path to perl.exe
– correct bind address
6. Copy index.php and state.php to some web directory.
7. Run install script in perl terminal:

c:\Perl\bin\perl.exe install.pl

Script ask for root password to mysql database in order to create
databases, tables and new user.
8. Now you should run index.php and add new hosts.
9. Run pytaj.pl script

c:\Perl\bin\perl.exe pytaj.pl

Linux

1. Install Apache and php. It depends which distribution you have.
For details see into documentation.
2. Install MySQL from your distribution .
3. Install Perl from your distribution.
4. Install additional perl modules and dependences, as root write:

# perl -MCPAN -e shell
cpan> install DBI
cpan> install Net::DNS

5. Please modify scripts pytaj.pl and install.pl in order to
change:
– correct MySQL IP address (default is localhost)
– path to perl binary
– correct bind address
6. Copy index.php and state.php to some web directory.
7. Run install script in perl terminal:

# perl install.pl

Script prompts for root password to mysql database in order to create
databases, tables and new user.
8. Now you should run index.php and add new hosts.
9. Run pytaj.pl script as root (Net::Ping icmp require root rights)

# perl pytaj.pl

NOTE: The best way is adding pytaj.pl script to crontab. You can do:

# chown u+x pytaj.pl
# cp pytaj.pl /etc/cron.hourly/

Download:
Services Monitor

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Linux Time Stamp Server

This is obsolete content. Please go here:
http://www.gregs.eu/linux-time-stamp-server/
-Greg

A time-stamping service supports assertions of proof that a datum existed before a particular time. A TSA may be operated as a Trusted Third Party (TTP) service, though other operational models may be appropriate, e.g., an organization might require a TSA for internal time-stamping purposes.
The TSA is a TTP that creates time-stamp tokens in order to indicate that a datum existed at a particular point in time.
These project include two elements:
– TSA Server (s.pl)
– Simple TSA Client (k.pl)

Both scripts have been written in Perl. Server works on Linux system as deamon and listen on port 318. After receiving time stamp request message, server generate time stamp response and sent it back.
Server base on OpenSSL and ts patch, that you can download from site:
http://www.opentsa.org

Requirements
—————

- Perl
– OpenSSL with Time Stamp patch

Install:
——–

1. install perl for your Distribution of Linux

2. download the correct version of OpenSSL from http://www.openssl.org/

3. download correct Time Stamp patch to OpenSSL from http://www.opentsa.org/

4. extract OpenSSL:

$ gzip -cd openssl-VERSION.tar.gz | tar xf -

5. apply the OpenTSA patch (you should not see any error messages while
applying the patch):

$ cd openssl-VERSION
$ gzip -cd ts-VERSION.patch.gz | patch -p1

6. follow the instructions in the OpenSSL documentation for configuring
and building OpenSSL. Here is a brief summary:

$ ./config
$ make
$ make test

as root:

$ make install

Usage:
——

Server script (s.pl) require correct path to certificate.
In order to run write:

$ perl s.pl
or
$ ./s.pl

Client script (k.pl) require five parameters:
host – host address to time Stamp server
port – server port
file.tsq – Time Stamp Request file
file.tsr – Time Stamp Response file

Download:

2 thoughts on “Linux Time Stamp Server

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s