Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 29 May 2017, 19:11
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
DebianDog - Jessie - Continued
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 22 [330 Posts]   Goto page: Previous 1, 2, 3, 4, ..., 20, 21, 22 Next
Author Message
dancytron

Joined: 18 Jul 2012
Posts: 740

PostPosted: Sun 16 Oct 2016, 16:32    Post subject:  

Find the file /etc/adjtime.

Open it. I'm not in DD right now, but it will say either LOCAL or UTC. Whichever it is, change it to the other and see if that fixes it.

The issue is that Windows (and Puppy usually) use LOCAL time for the hardware clock. By default, Debian uses UTC.

If you use Windows, you might need to go into the settings of your XFCE app and see if you can change it to Local to get them all to match.
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 666
Location: Mid-mitten, USA

PostPosted: Sun 16 Oct 2016, 16:52    Post subject:  

Thanks dancytron - was UTC, changed to LOCAL, but no difference. Re-ran "Setup Timezone" utility - no change. Exit and re-started X, still no change. I really should just hold off until doing a frugal install, to assure any of these changes are "sticking", and allow fully re-booting to the new changes. All live from CD, ATM...

Thanks!

Bob
Back to top
View user's profile Send private message 
belham2

Joined: 15 Aug 2016
Posts: 693

PostPosted: Sun 16 Oct 2016, 17:21    Post subject:  

Moat wrote:
Thanks dancytron - was UTC, changed to LOCAL, but no difference. Re-ran "Setup Timezone" utility - no change. Exit and re-started X, still no change. I really should just hold off until doing a frugal install, to assure any of these changes are "sticking", and allow fully re-booting to the new changes. All live from CD, ATM...

Thanks!

Bob


Hi Moat,

That's weird, because awhile back when I set up Debiandog64 I had the exact same problem as you, and exact same 4 hr thing. But then I couldn't remember if I did something to NTP (when I was fooling around), so I re-installed it from command line:

$ apt-get install --reinstall ntp

..then I went into the '/etc/ntp.conf' and it was there I adjusted for my timezone and all was ok afterwards (I assume though that Fred, always by default, has NTP set up).

What's strange in Debian is that they include 'timezone' and 'localtime' in /etc/, but despite deleting those and re-setting them afresh, that would not work unless I either re-installed NTP or used the 'manual' method described next.

If you want to set time manually in Debian, and have it stick, just use 'date', like (as an example):

$ date --set 2016-10-16

then next set time with 'date'

$ date --set 22:16:12



Hope this helps.
Back to top
View user's profile Send private message 
Moat


Joined: 16 Jul 2013
Posts: 666
Location: Mid-mitten, USA

PostPosted: Sun 16 Oct 2016, 17:41    Post subject:  

belham2 wrote:
... so I re-installed it from command line:

$ apt-get install --reinstall ntp


Thanks belham2! Just did only the npt re-install ^ as you describe above, and that fixed it! Times are now correct, and the panel weather app is working as it should - didn't have to touch anything else. Too cool! Cool

Bob
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2119
Location: holland

PostPosted: Mon 17 Oct 2016, 04:53    Post subject:  

belham wrote:
..then I went into the '/etc/ntp.conf' and it was there I adjusted for my timezone and all was ok afterwards (I assume though that Fred, always by default, has NTP set up).


Debiandog64 and this DebianDog32 version doesn't have ntp installed by default.
Me personally I've set it to "Etc/UTC" in /etc/timezone and make sure the time is set correctly in the BIOS.

Here's more info for setting it to LOCAL without ntp installed:
(note, then it's required to add the extra line in /etc/default/rcS UTC=no)
http://murga-linux.com/puppy/viewtopic.php?p=896147#896147
(see: "To make things behave the same as Windows does (in case of dual boot):")

Thanks Moat, for testing and the positive reply!

Fred

_________________
Dog Linux website


Last edited by fredx181 on Mon 17 Oct 2016, 05:13; edited 1 time in total
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1036
Location: GERMANY

PostPosted: Mon 17 Oct 2016, 05:04    Post subject:  

In my case there was a difference of 2 hours when using my custom timezone Europe/Berlin .....solved this problem by using Universal Time in Timezone Settings .Same in Xenial Dog .
Back to top
View user's profile Send private message 
The Flying Cat

Joined: 10 Oct 2016
Posts: 33

PostPosted: Mon 17 Oct 2016, 05:27    Post subject:  

Looks like there is several methods to resolve time issues) I would like to add even more)) Unfortunately time zone is required for some apps to operate correctly (twitter for example).
My notes says that after setting time zone run
Code:
timedatectl set-local-rtc 1
which binds your time zone to your hardware clock (bios),
Code:
timedatectl status
for displaying TZ current settings.
Full article here https://www.linuxbabe.com/desktop-linux/set-time-zone-and-synchronize-system-clock-to-your-time-zone-in-linux
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2119
Location: holland

PostPosted: Mon 17 Oct 2016, 12:14    Post subject:  

Hi Belham,

I wrote earlier that I added redshiftgui .deb also to the DD64 repository, well, that one didn't work on DD64 (Oooff... I should test first before uploading in the future... Embarassed )
Fixed now though, so to install on DD64:
Code:
apt-get update
apt-get install --reinstall redshiftgui # --reinstall in case already installed the previous one


Fred

_________________
Dog Linux website

Back to top
View user's profile Send private message 
belham2

Joined: 15 Aug 2016
Posts: 693

PostPosted: Mon 17 Oct 2016, 14:12    Post subject:  

fredx181 wrote:
Hi Belham,

I wrote earlier that I added redshiftgui .deb also to the DD64 repository, well, that one didn't work on DD64 (Oooff... I should test first before uploading in the future... Embarassed )
Fixed now though, so to install on DD64:
Code:
apt-get update
apt-get install --reinstall redshiftgui # --reinstall in case already installed the previous one


Fred


Hi Fred,

No worries!! I have been playing with this latest Debiandog so much I haven't gotten around to install redshift on my DD64. So I am lucky, haha Smile

Thank you again for doing this latest DebianDog....I was worried, with everything that went on and how Toni acted (which is one of those things I'll never understand) that it might have made you want to give up & quit. But boy you sure didn't. And you even came back stronger with putting XFCE in----I can't begin to describe (for me, at least) how much easier XFCE is to deal with than when I was modding Tint2rc---which can be a pain at times. Tint2rc is great and all, but XFCE is another world, imho, both simple & elegant, and basically just as fast.


P.S. I truly wonder if Puppy enthusiasts realize that the 'keeping your OS up-to-date with critical security flaws is a brain-dead easy with the DebianDogs? I mean, you install "unattended-upgrades" via the terminal, and you never have to worry about it again. It has changed how I view puppies overall, and imho, gives other pups & pup-related OSes something to shoot for. Slacko repos are great and all, but Debian repos seem to get stuff out faster, with less problems.
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 822
Location: Staffordshire

PostPosted: Mon 17 Oct 2016, 16:53    Post subject:  

I've use DebianDog occasionally before, and have followed the thread(s) for along while.
A manual frugal install to internal SSD (using an IDE adaptor), on a Compaq nc6120. 2ghz CPU and 2 gig of RAM.
Running quite nicely, thank you very much.
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 1874
Location: UK

PostPosted: Mon 17 Oct 2016, 16:54    Post subject:  

VERY Nice Fred!

So far I've just tweaked the initial bootup, but looking around everything else I have briefly looked at looks fine.

Switching to using lz4 compressed filesystem squashfs and lzo compressed initrd1.lzo instead of initrd1.xz, combined with swapping out frisbee for wicd (and turning frisbee and conky off), shaves around 4.5 seconds of bootup time for me (down from 17 to 12.5 seconds)

Frisbee was a clear bottleneck

Frugal to HDD. Grub4dos menu.lst entry of :

title DD V2 (32 bit) only saves if run save2flash
find --set-root /DD/live/jessie-i486.sgn
kernel /DD/live/vmlinuz1 init=/bin/systemd from=/DD noauto changes=EXIT:/DD/live
initrd /DD/live/initrd1.lzo

Running boot times analysis :

Code:
Booting filesystem squashfs lz4 remastered of original (filesize 332.4MB)
root@jessie:~# systemd-analyze
Startup finished in 7.160s (kernel) + 9.562s (userspace) = 16.722s
root@jessie:~# systemd-analyze blame
          5.224s frisbee.service
          1.953s networking.service
          1.382s keyboard-setup.service
           680ms start-pup-volume-monitor.service
           528ms loadcpufreq.service
           492ms systemd-logind.service
           479ms lm-sensors.service
           472ms pppd-dns.service
           280ms udev-finish.service
           258ms rc-local.service
           256ms rsyslog.service
           211ms systemd-journal-flush.service
           211ms kbd.service
           203ms console-setup.service
           132ms cpufrequtils.service
           115ms systemd-random-seed.service
           114ms dev-hugepages.mount
           113ms kmod-static-nodes.service
           112ms systemd-update-utmp.service
            99ms systemd-tmpfiles-setup-dev.service
            87ms systemd-udev-trigger.service
            85ms dev-mqueue.mount
            83ms sys-kernel-debug.mount
            73ms systemd-modules-load.service
            50ms systemd-setup-dgram-qlen.service
            43ms systemd-user-sessions.service
            39ms systemd-remount-fs.service
            28ms systemd-sysctl.service
            13ms systemd-tmpfiles-setup.service
             9ms systemd-update-utmp-runlevel.service
             8ms systemd-udevd.service
             7ms live-tools.service
             2ms sys-fs-fuse-connections.mount
root@jessie:~#

Booting standard (gzip'd filesystem squashfs filesize 238.1MB)

root@jessie:~# systemd-analyze
Startup finished in 7.585s (kernel) + 9.483s (userspace) = 17.069s
root@jessie:~# systemd-analyze blame
          5.183s frisbee.service
          2.006s networking.service
          1.395s keyboard-setup.service
           653ms start-pup-volume-monitor.service
           600ms systemd-logind.service
           569ms lm-sensors.service
           564ms pppd-dns.service
           561ms loadcpufreq.service
           321ms rsyslog.service
           270ms dev-mqueue.mount
           265ms rc-local.service
           256ms sys-kernel-debug.mount
           249ms dev-hugepages.mount
           243ms udev-finish.service
           208ms console-setup.service
           175ms sys-fs-fuse-connections.mount
           158ms systemd-udev-trigger.service
           131ms systemd-tmpfiles-setup-dev.service
           112ms kbd.service
            97ms cpufrequtils.service
            76ms kmod-static-nodes.service
            57ms systemd-udevd.service
            48ms systemd-setup-dgram-qlen.service
            36ms systemd-sysctl.service
            29ms systemd-journal-flush.service
            27ms systemd-modules-load.service
            24ms systemd-update-utmp.service
            19ms systemd-user-sessions.service
            16ms systemd-tmpfiles-setup.service
            11ms systemd-random-seed.service
             8ms systemd-update-utmp-runlevel.service
             5ms live-tools.service
             4ms systemd-remount-fs.service
root@jessie:~#


Uncompressing initrd1.xz and booting using lz4 compressed filesystem

root@jessie:~# systemd-analyze
Startup finished in 5.928s (kernel) + 9.616s (userspace) = 15.544s
root@jessie:~# systemd-analyze blame
          5.219s frisbee.service
          2.003s networking.service
          1.378s keyboard-setup.service
           579ms loadcpufreq.service
           525ms start-pup-volume-monitor.service
           490ms systemd-logind.service
           472ms lm-sensors.service
           465ms pppd-dns.service
           299ms rc-local.service
           245ms udev-finish.service
           221ms kbd.service
           213ms console-setup.service
           185ms cpufrequtils.service
           165ms systemd-journal-flush.service
           151ms systemd-random-seed.service
           136ms rsyslog.service
           121ms kmod-static-nodes.service
           117ms dev-hugepages.mount
           116ms dev-mqueue.mount
           114ms sys-kernel-debug.mount
            94ms systemd-udev-trigger.service
            93ms systemd-update-utmp.service
            69ms systemd-tmpfiles-setup-dev.service
            50ms systemd-modules-load.service
            49ms systemd-setup-dgram-qlen.service
            26ms systemd-user-sessions.service
            25ms sys-fs-fuse-connections.mount
            24ms systemd-remount-fs.service
            14ms systemd-sysctl.service
            11ms systemd-update-utmp-runlevel.service
            10ms systemd-tmpfiles-setup.service
             9ms systemd-udevd.service
             8ms live-tools.service
root@jessie:~#


booting with busybox lzop initrd (lzo compressed) and lz4 compressed filesystem squashfs

root@jessie:~# systemd-analyze
Startup finished in 5.959s (kernel) + 9.550s (userspace) = 15.509s
root@jessie:~# systemd-analyze blame
          5.228s frisbee.service
          2.117s networking.service
          1.387s keyboard-setup.service
           612ms start-pup-volume-monitor.service
           511ms loadcpufreq.service
           469ms systemd-logind.service
           451ms lm-sensors.service
           444ms pppd-dns.service
           367ms rsyslog.service
           288ms console-setup.service
           255ms rc-local.service
           225ms udev-finish.service
           169ms dev-hugepages.mount
           165ms kmod-static-nodes.service
           161ms kbd.service
           149ms systemd-udev-trigger.service
           116ms dev-mqueue.mount
           114ms sys-kernel-debug.mount
            82ms cpufrequtils.service
            61ms systemd-tmpfiles-setup-dev.service
            56ms systemd-modules-load.service
            52ms systemd-journal-flush.service
            49ms systemd-setup-dgram-qlen.service
            48ms systemd-user-sessions.service
            24ms systemd-random-seed.service
            21ms systemd-update-utmp.service
            13ms systemd-sysctl.service
            13ms sys-fs-fuse-connections.mount
            11ms systemd-remount-fs.service
            10ms systemd-udevd.service
             9ms systemd-tmpfiles-setup.service
             8ms systemd-update-utmp-runlevel.service
             4ms live-tools.service
root@jessie:~#

Installed WICD removed frisbee, commented ~/.config/openbox/autostart.sh to look like

#!/bin/sh
xfdesktop &
xfce4-panel &
sleep 2
xfce4-clipman &
#sleep 2
#frisbee-tray &
#wait $!
#sleep 1
#if [ -f /mnt/live/tmp/modules ]; then
#conky -c ~/.conkyrc-port &
#else
#conky -c ~/.conkyrc-live &
#fi
#wait $!
volumeicon


root@jessie:~# systemd-analyze     
Startup finished in 5.923s (kernel) + 6.597s (userspace) = 12.520s
root@jessie:~# systemd-analyze blame
          2.406s networking.service
          2.361s wicd.service
          1.004s keyboard-setup.service
           998ms start-pup-volume-monitor.service
           834ms loadcpufreq.service
           778ms systemd-logind.service
           749ms lm-sensors.service
           745ms alsa-restore.service
           743ms frisbee.service
           742ms pppd-dns.service
           612ms rc-local.service
           294ms console-setup.service
           290ms rsyslog.service
           285ms kbd.service
           255ms systemd-journal-flush.service
           197ms systemd-tmpfiles-setup.service
           155ms systemd-random-seed.service
           150ms cpufrequtils.service
           146ms kmod-static-nodes.service
           146ms dev-hugepages.mount
           134ms dev-mqueue.mount
           133ms sys-kernel-debug.mount
           109ms systemd-udev-trigger.service
            91ms udev-finish.service
            80ms systemd-modules-load.service
            62ms systemd-update-utmp.service
            59ms systemd-tmpfiles-setup-dev.service
            59ms systemd-setup-dgram-qlen.service
            33ms systemd-sysctl.service
            31ms systemd-user-sessions.service
            30ms systemd-remount-fs.service
            10ms systemd-update-utmp-runlevel.service
             7ms sys-fs-fuse-connections.mount
             6ms live-tools.service
             4ms systemd-udevd.service


root@jessie:~# systemd-analyze plot >p.svg

(had to convert from svg to jpg in order to post to free image hosting service as they don't cater for .svg files)



In short, gzip'd main filesystem, lzo compressed initrd and swapping out frisbee for wicd, at least on my system, improved boot speed.

lz4 and gzip were similar overall in speed, but lz4 has more IO (less compression) than zip (faster to decompress than gzip, but more work (data size) to do than gzip, overall comparable). lz4 however is nicer for remastering (quicker).

Last edited by rufwoof on Mon 17 Oct 2016, 17:09; edited 2 times in total
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 1874
Location: UK

PostPosted: Mon 17 Oct 2016, 16:56    Post subject:  

RE : Time

I just ran Menu, System, Setup Timezone and selected Europe, then London ... and within a minute or so the bottom right clock re-adjusted to UK local time.
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 740

PostPosted: Mon 17 Oct 2016, 18:45    Post subject:  

rufwoof wrote:
<snip>
lz4 and gzip were similar overall in speed, but lz4 has more IO (less compression) than zip (faster to decompress than gzip, but more work (data size) to do than gzip, overall comparable). lz4 however is nicer for remastering (quicker).


Yes, I was shocked by how quick the remaster went with the "Quick Remaster" script.
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 1874
Location: UK

PostPosted: Mon 17 Oct 2016, 19:09    Post subject:  

I don't really use sfs's now, I have everything extracted to the save file and a empty main filesystem sfs, so no need to remaster ...etc. (as that eliminates overlays, and enables booting either frugally (read only) or as though fully installed). Prior to that however I used a similar remaster as Fred's quick remaster (but single click only) ... which was fast enough IMO to be a replacement for saving (no need for a savefile/folder, just remaster a new main filesystem sfs with all of the changes incorporated).

As quick as it is, the bottleneck is disk. Remaster in ram or to a fast SSD and its even quicker Smile
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1036
Location: GERMANY

PostPosted: Tue 18 Oct 2016, 03:16    Post subject:  

Hi ruf!

Quote:
I don't really use sfs's now, I have everything extracted to the save file and a empty main filesystem sfs, so no need to remaster ...etc. (as that eliminates overlays, and enables booting either frugally (read only) or as though fully installed)


What`s the purpose/advantage of this method and how to accomplish it (Details) .
Could you please elaborate further on it ? ...

Thanks
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 22 [330 Posts]   Goto page: Previous 1, 2, 3, 4, ..., 20, 21, 22 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0768s ][ Queries: 14 (0.0058s) ][ GZIP on ]