Re: [lazarus] System Information

2006-03-11 Thread Alexsander Rosa
If your distro follows the LSB, it should have a file at: /etc/lsb-release The content of this file on my Linux box:[EMAIL PROTECTED]:/etc$ cat lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=5.10 DISTRIB_CODENAME=breezy DISTRIB_DESCRIPTION="Ubuntu (The Breezy Badger Release)" [EMAIL PROTECTED]:/etc

Re: [lazarus] System Information

2006-03-07 Thread Uwe Grauer
Alain Michaud wrote: > Hi, > > here is some info that can be usefull (for some it is trivial: sorry!): > > if you type (linux): > > uname -a > > you get the kernel version but not the distribution release! > > in fact this information is available: > >/etc/mandriva-release > > or > >

Re: [lazarus] System Information

2006-03-06 Thread Alain Michaud
Hi, here is some info that can be usefull (for some it is trivial: sorry!): if you type (linux): uname -a you get the kernel version but not the distribution release! in fact this information is available: /etc/mandriva-release or /etc/suse-release will tell you what distribution i

Re: [lazarus] System Information

2006-03-06 Thread Marco van de Voort
> > You should be able to get almost all of it from /proc normal users have > > read-only privileges there, it's basically a case of reading files to get > > the > > information you want. > > This is a very simple and interesting approach. > I checked suggested folder and found alot of files mo

Re: [lazarus] System Information

2006-03-05 Thread A.J. Venter
On Monday 06 March 2006 01:24, Panagiotis Sidiropoulos wrote: > > You should be able to get almost all of it from /proc normal users have > > read-only privileges there, it's basically a case of reading files to get > > the information you want. > > This is a very simple and interesting approach. >

Re: [lazarus] System information

2006-03-05 Thread Mattias Gaertner
On Sun, 05 Mar 2006 23:52:06 + Panagiotis Sidiropoulos <[EMAIL PROTECTED]> wrote: > What I learned working with Linux is that codepage cannot be anything > else but utf, am I wrong? Yes, you are wrong. The LANG environment variable contains this information echo $LANG Examples: de_DE.ISO-885

Re: [lazarus] System information

2006-03-05 Thread Panagiotis Sidiropoulos
What I learned working with Linux is that codepage cannot be anything else but utf, am I wrong? Panagiotis Στις 05-03-2006, ημέρα Κυρ, και ώρα 22:32 +0100, ο/η darekM έγραψε: > Hi > How to obtain current codepage (UTF, 8859-?) under Linux > > > Darek > > _

[lazarus] System information

2006-03-05 Thread darekM
Hi How to obtain current codepage (UTF, 8859-?) under Linux Darek _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Re: [lazarus] System Information

2006-03-05 Thread Panagiotis Sidiropoulos
> You should be able to get almost all of it from /proc normal users have > read-only privileges there, it's basically a case of reading files to get the > information you want. This is a very simple and interesting approach. I checked suggested folder and found alot of files most of them having

Re: {SPAM?} Re: [lazarus] System Information

2006-03-05 Thread Panagiotis Sidiropoulos
; > > > > with verInfo do > > > Result := WinVersion + #13#10 + > > > Format('%d.%d (Build %d) %s', > > > [dwMajorVersion, dwMinorVersion, dwBuildNumber, > > > string(verInfo.szCSDVersion)]); > > > end;

Re: {SPAM?} Re: [lazarus] System Information

2006-03-05 Thread Michael Van Canneyt
(Build %d) %s', > > [dwMajorVersion, dwMinorVersion, dwBuildNumber, > > string(verInfo.szCSDVersion)]); > > end; > > end; > > > > > > - Original Message - > > From: "Panagiotis Sidiropoulos" <[EMAI

{SPAM?} Re: {SPAM?} Re: {SPAM?} Re: [lazarus] System Information

2006-03-05 Thread Panagiotis Sidiropoulos
> Maybe your outgoing mail server adds it? Maybe your incoming mailserver > adds it? I never think of it this way, I'll check it, thank you. > P.S. It would be nice if you could adjust your clock / time zone > settings. Your last mail was sent two hours into the future. It helps > sorting my m

Re: [lazarus] System Information

2006-03-05 Thread Felipe Monteiro de Carvalho
Hello, There are probably better ways to do this, but the command "dir" on Windows will give you the HD serial number. It´s hard to parse this, since the command result can be on any language. -- Felipe Monteiro de Carvalho _ T

Re: {SPAM?} Re: [lazarus] System Information

2006-03-05 Thread A.J. Venter
On Sunday 05 March 2006 22:29, Panagiotis Sidiropoulos wrote: > I found Linux command "hdparm" at > http://www.webmasterworld.com/forum40/957.htm. This command provides a > part of information I need, as follows. Is it possible to retrieve this > information from inside a Lazarus app but without ro

Re: {SPAM?} Re: {SPAM?} Re: [lazarus] System Information

2006-03-05 Thread Vincent Snijders
Panagiotis Sidiropoulos wrote: I had problems again receiving messages to the list since yesterday noon. Today I had to re-subscribe in order to get alive again. Now, a reply from me considered as potential SPAM. Does anyone know why? Maybe your outgoing mail server adds it? Maybe your incomi

{SPAM?} Re: [lazarus] System Information

2006-03-05 Thread Panagiotis Sidiropoulos
I found Linux command "hdparm" at http://www.webmasterworld.com/forum40/957.htm. This command provides a part of information I need, as follows. Is it possible to retrieve this information from inside a Lazarus app but without root previledges? #> hdparm -i /dev/hda /dev/hda:

{SPAM?} Re: {SPAM?} Re: [lazarus] System Information

2006-03-05 Thread Panagiotis Sidiropoulos
dows 95/98/ME'; > > > > with verInfo do > > Result := WinVersion + #13#10 + > > Format('%d.%d (Build %d) %s', > > [dwMajorVersion, dwMinorVersion, dwBuildNumber, > > string(verInfo.szCSDVersion)]); > > end;

{SPAM?} Re: [lazarus] System Information

2006-03-05 Thread Panagiotis Sidiropoulos
sion, dwMinorVersion, dwBuildNumber, > string(verInfo.szCSDVersion)]); > end; > end; > > > - Original Message - > From: "Panagiotis Sidiropoulos" <[EMAIL PROTECTED]> > To: > Sent: Sunday, March 05, 2006 7:27 PM > Subject: [lazarus] System

Re: [lazarus] System Information

2006-03-05 Thread Felipe Monteiro de Carvalho
I get Windows version like this: type TVersaoDoWindows = ( vwDesconhecida, // Informações simplificadas Serie9x, // 32s em 3.11, 95, 98 e Me SerieNT, // NT 3.51, NT, 2000 e XP // Informações completas vwWin32sEm311, vwWinNT351, vwWin95, vwWinNT, vwW

Re: [lazarus] System Information

2006-03-05 Thread Darius Blaszijk
; end; - Original Message - From: "Panagiotis Sidiropoulos" <[EMAIL PROTECTED]> To: Sent: Sunday, March 05, 2006 7:27 PM Subject: [lazarus] System Information > I need to get information regarding system, such as user login name, OS > Version/Distribution, Hard drive s

[lazarus] System Information

2006-03-05 Thread Panagiotis Sidiropoulos
I need to get information regarding system, such as user login name, OS Version/Distribution, Hard drive serial number, etc. (OS indepented). Can anyone direct me where to find infomation and/or samples on this? Panagiotis _ To