Re: Is there a way to tell when a system was first booted?
i don't know how to say this without sounding like a smart ass, so i'm going to sound like a smart ass: why does it matter? lol, but some of us are inordinately nostalgic and sentiMENTAL. I'd look at the ctimes of some of the main directories like /var, /bin or /usr. Most system files reflect when they were created/edited by the developers or maintainers, but from looking at a couple of my systems those directories seem to get created when the system is installed. In older versions of debian root would get an email from the install process and a file or 2 would get created in /root/, but that doesnt seem to happen anymore. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1314512587.13249.yahoomai...@web180602.mail.sp1.yahoo.com
Re: Is there a way to tell when a system was first booted?
hi, perhaps this may be a way: Evolution will create a wellcome-post after first startup. Klaus Am Samstag, den 27.08.2011, 23:23 -0700 schrieb gnubayonne-debian...@yahoo.com: i don't know how to say this without sounding like a smart ass, so i'm going to sound like a smart ass: why does it matter? lol, but some of us are inordinately nostalgic and sentiMENTAL. I'd look at the ctimes of some of the main directories like /var, /bin or /usr. Most system files reflect when they were created/edited by the developers or maintainers, but from looking at a couple of my systems those directories seem to get created when the system is installed. In older versions of debian root would get an email from the install process and a file or 2 would get created in /root/, but that doesnt seem to happen anymore. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1314513291.13790.1.ca...@linuxwolf-mobil.fritz.box
Re: Is there a way to tell when a system was first booted?
On Sun, 2011-08-28 at 00:36 +1000, yudi v wrote: Is there a way to tell when a system was first booted? uptime is a good indicator. The uprecords package provides recordkeeping and does all the math for you. An example of uprecords output is at http://ursamundi.org/cgi-bin/uprecords.cgi signature.asc Description: This is a digitally signed message part
Re: Is there a way to tell when a system was first booted?
/var/log/installer/hardware-summary look at the first line That's looks right, cannot find a date older than that. Jun 11 also look at the modify time for /etc/issue Modified time is newer. - Aug 1 -- Kind regards, Yudi
Re: Is there a way to tell when a system was first booted?
On 28/08/11 23:44, yudi v wrote: /var/log/installer/hardware-summary look at the first line That's looks right, cannot find a date older than that. Jun 11 also look at the modify time for /etc/issue Modified time is newer.� - Aug 1 That (issue) could have been updated after the original installation, the earliest date (first line in the hardware-summary) is the date you're after. Cheers -- Kind regards, Yudi -- You ever noticed how people who believe in Creationism look really unevolved? You ever noticed that? Eyes real close together, eyebrow ridges, big furry hands and feet. I believe God created me in one day Yeah, looks liked He rushed it. — Bill Hicks -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4e5a4f90.5090...@gmail.com
Re: Is there a way to tell when a system was first booted?
On Sat, Aug 27, 2011 at 10:16 PM, shawn wilson ag4ve...@gmail.com wrote: i don't know how to say this without sounding like a smart ass, so i'm going to sound like a smart ass: why does it matter? I recently started doing system logbooks for my system to chronicle events in the life of my systems. Since I have systems that I built years ago, I needed this information... --b
Re: Is there a way to tell when a system was first booted?
On Sun, 2011-08-28 at 00:36 +1000, yudi v wrote: Is there a way to tell when a system was first booted? Does uptime do what you want or do you mean booted for the truly very first time (not counting reboots)? - John -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1314459829.1357.108.ca...@denise.theartistscloset.com
Re: Is there a way to tell when a system was first booted?
On Sat, Aug 27, 2011 at 11:43, John A. Sullivan III jsulli...@opensourcedevel.com wrote: On Sun, 2011-08-28 at 00:36 +1000, yudi v wrote: Is there a way to tell when a system was first booted? Does uptime do what you want or do you mean booted for the truly very first time (not counting reboots)? - John cat /proc/uptime -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cah_obicie9ynldjx6jptupzq+qbydzovhh3zjcyshjjveav...@mail.gmail.com
Re: Is there a way to tell when a system was first booted?
John A. Sullivan III wrote: On Sun, 2011-08-28 at 00:36 +1000, yudi v wrote: Is there a way to tell when a system was first booted? Does uptime do what you want or do you mean booted for the truly very first time (not counting reboots)? - John well uptime will tell most recent boot, not exactly what you asked, but the log files in /var/log/installer can tell you when the current o/s was installed if you mean when the hardware was first booted, there might be something in /sys or maybe somewhere in BIOS PRAM, but that's almost certainly motherboard-specific. Miles Fidelman -- In theory, there is no difference between theory and practice. Infnord practice, there is. Yogi Berra -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4e592454.3080...@meetinghouse.net
Re: Is there a way to tell when a system was first booted?
shawn wilson ag4ve...@gmail.com writes: On Sat, Aug 27, 2011 at 11:43, John A. Sullivan III wrote: On Sun, 2011-08-28 at 00:36 +1000, yudi v wrote: Is there a way to tell when a system was first booted? Does uptime do what you want or do you mean booted for the truly very first time (not counting reboots)? cat /proc/uptime How's that more legible than the output of the uptime(1) command? $ cat /proc/uptime 44547837.32 177282465.98 $ uptime 17:24:43 up 515 days, 14:24, 3 users, load average: 0.00, 0.00, 0.00 $ -- FSF associate member #7257 Coming soon: Software Freedom Day http://mail.sf-day.org/lists/listinfo/ planning-ru (ru), sfd-discuss (en) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/86mxeuix6f@gray.siamics.net
Re: Is there a way to tell when a system was first booted?
On Aug 27, 2011 1:26 PM, Ivan Shmakov i...@gray.siamics.net wrote: shawn wilson ag4ve...@gmail.com writes: On Sat, Aug 27, 2011 at 11:43, John A. Sullivan III wrote: On Sun, 2011-08-28 at 00:36 +1000, yudi v wrote: Is there a way to tell when a system was first booted? Does uptime do what you want or do you mean booted for the truly very first time (not counting reboots)? cat /proc/uptime How's that more legible than the output of the uptime(1) command? $ cat /proc/uptime 44547837.32 177282465.98 $ uptime 17:24:43 up 515 days, 14:24, 3 users, load average: 0.00, 0.00, 0.00 $ Nothing. Iirc uptime parses that file. For a history of boots, other than a BIOS log, you might look at the acct package, specifically what gets stored in wtmp. This would not give you anything prior to wtmp being created but might give you what you want.
Re: Is there a way to tell when a system was first booted?
shawn wilson ag4ve...@gmail.com writes: On Aug 27, 2011 1:26 PM, Ivan Shmakov i...@gray.siamics.net wrote: shawn wilson ag4ve...@gmail.com writes: On Sat, Aug 27, 2011 at 11:43, John A. Sullivan III wrote: […] Does uptime do what you want or do you mean booted for the truly very first time (not counting reboots)? cat /proc/uptime How's that more legible than the output of the uptime(1) command? […] Nothing. Iirc uptime parses that file. That's correct. $ strace uptime 21 | grep -F /proc/ open(/proc/version, O_RDONLY) = 4 open(/proc/stat, O_RDONLY|O_CLOEXEC) = 4 open(/proc/uptime, O_RDONLY) = 4 open(/proc/loadavg, O_RDONLY) = 5 $ For a history of boots, other than a BIOS log, you might look at the acct package, specifically what gets stored in wtmp. I don't see how such a wtmp(5) maintenance is tied to the acct package. Consider, e. g.: $ dpkg -l acct No packages found matching acct. $ last reboot reboot system boot 2.6. Tue Mar 30 03:11 - 18:06 (515+14:55) reboot system boot 2.6. Tue Mar 30 03:10 - 03:11 (00:01) reboot system boot 2.6. Tue Mar 30 02:55 - 03:09 (00:13) wtmp begins Tue Mar 30 02:55:59 2010 $ It was my guess that the reboot records are made by init(8). This would not give you anything prior to wtmp being created but might give you what you want. Unfortunately, this file is logrotate(8)'d every month, and only one backup survives as per the default configuration. --cut: /etc/logrotate.conf -- # no packages own wtmp, or btmp -- we'll rotate them here /var/log/wtmp { missingok monthly create 0664 root utmp rotate 1 } --cut: /etc/logrotate.conf -- -- FSF associate member #7257 Coming soon: Software Freedom Day http://mail.sf-day.org/lists/listinfo/ planning-ru (ru), sfd-discuss (en) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/86ippiiux8@gray.siamics.net
Re: Is there a way to tell when a system was first booted?
On 28/08/11 00:36, yudi v wrote: Is there a way to tell when a system was first booted? -- Kind regards, Yudi Maybe...(I'm guessing) /var/log/installer/hardware-summary look at the first line also look at the modify time for /etc/issue Cheers -- You ever noticed how people who believe in Creationism look really unevolved? You ever noticed that? Eyes real close together, eyebrow ridges, big furry hands and feet. I believe God created me in one day Yeah, looks liked He rushed it. — Bill Hicks -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4e5993b4.70...@gmail.com
Re: Is there a way to tell when a system was first booted?
Just to clarify my original post. I want to find out when I installed and booted Debian for the very first time. -- Kind regards, Yudi
Re: Is there a way to tell when a system was first booted?
From: Scott Ferguson prettyfly.producti...@gmail.com Subject: Re: Is there a way to tell when a system was first booted? Date: Sun, 28 Aug 2011 11:02:44 +1000 On 28/08/11 00:36, yudi v wrote: Is there a way to tell when a system was first booted? -- Kind regards, Yudi Maybe...(I'm guessing) /var/log/installer/hardware-summary look at the first line also look at the modify time for /etc/issue Cheers The modify time for /var/log/installer/hardware-summary looks correct to me. Do a ls -l on it for the date. pgpLB4XDBwAbq.pgp Description: PGP signature
Re: Is there a way to tell when a system was first booted?
On Sat, Aug 27, 2011 at 21:18, yudi v yudi@gmail.com wrote: Just to clarify my original post. I want to find out when I installed and booted Debian for the very first time. i don't know how to say this without sounding like a smart ass, so i'm going to sound like a smart ass: why does it matter? i mean, i started thinking about any number of reasons you might want to know when a debian system was first installed / booted and discounted them as soon as i thought of them. well, i've got one possibility - you want to know whether an old config was that of a maintainer or yourself, but. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAH_OBie=rhkub6ijfmgtw8hhz-krwwhafaydvce7bs2gxqg...@mail.gmail.com