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 Sun 23 Sep 2018, 16:38
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
TazPuppy Beta 4
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 36 of 44 [648 Posts]   Goto page: Previous 1, 2, 3, ..., 34, 35, 36, 37, 38, ..., 42, 43, 44 Next
Author Message
Terry H

Joined: 29 Mar 2009
Posts: 418
Location: The Heart of Muskoka, ON Canada

PostPosted: Sun 17 Jun 2018, 21:19    Post subject:  

s243a wrote:
Are there any tools to make the screen brighter? On a laptop I have, i can't see any button to make the screen brighter on the keyboard.


On my Dell laptop, the F11 & F12 keys do work for brightness.
Back to top
View user's profile Send private message 
thinkpadfreak

Joined: 17 Oct 2016
Posts: 28

PostPosted: Sun 17 Jun 2018, 22:27    Post subject:  

s243a wrote:
> I only tried save folders both on USB and hard drive. However, you can try saving with either:
> Code:
> ash -x /usr/sbin/snapmergepuppy
> or
> Code:
> bash -x /usr/sbin/snapmergepuppy

Thank you for responding.

Both the commands you suggested appear to have been executed normally.
Actually, the lines are too many, and I cannot see all the lines.

But I see the message:
tail: cannon open '+2' for reading: No such file or directory
at shutdown.

I placed a script in /etc/profile.d, which goes like this:
Code:
#!/bin/sh
cd /sys/devices/platform/i8042/serio4/serio5
echo -n 120 > speed
echo -n 240 > sensitivity

cd /root
echo 2 > /sys/class/backlight/acpi_video0/brightness


This script is for setting the sensitivity of the mouse and the brightness of the display. The script disappears on reboot, and takes no effect.

When TazPup is installed to a hard drive (frugal install with a save file), the script does not disappear, and those values are set as expected.
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1143

PostPosted: Sun 17 Jun 2018, 23:09    Post subject:  

thinkpadfreak wrote:
s243a wrote:
> I only tried save folders both on USB and hard drive. However, you can try saving with either:
> Code:
> ash -x /usr/sbin/snapmergepuppy
> or
> Code:
> bash -x /usr/sbin/snapmergepuppy

Thank you for responding.

Both the commands you suggested appear to have been executed normally.
Actually, the lines are too many, and I cannot see all the lines.

But I see the message:
tail: cannon open '+2' for reading: No such file or directory
at shutdown.

I placed a script in /etc/profile.d, which goes like this:
Code:
#!/bin/sh
cd /sys/devices/platform/i8042/serio4/serio5
echo -n 120 > speed
echo -n 240 > sensitivity

cd /root
echo 2 > /sys/class/backlight/acpi_video0/brightness


This script is for setting the sensitivity of the mouse and the brightness of the display. The script disappears on reboot, and takes no effect.

When TazPup is installed to a hard drive (frugal install with a save file), the script does not disappear, and those values are set as expected.


I"m not sure if the following sheds any light in your error or not:

fredx181 wrote:
Hi mistfire, tazpkg is working well, including install dependencies on alpha 11

s243a wrote:
So I'm looking at alpha 11, now. the Shebang still says ash for snapmergepuppy. Maybe changing it to bash would help like it did on alpha 9. The other thing that the above script did was installed the coreutils version of readlink. I don't know if this is necessary or not on alpha 11. Will test.


Yes, or/and as i suggested here (busybox tail +2 and shebang change to bash)
http://murga-linux.com/puppy/viewtopic.php?p=993732#993732

Fred

http://murga-linux.com/puppy/viewtopic.php?p=994335#994335

Edit: after googling "busybox tail +2" the following rings a bell:

Code:

So try -n +2 or --lines=+2

Is “tail +2” supported by Linux?

If tail is now linked to "coreutils" instead of busybox, it could explain the error. I think that "tail +2" isn't as universal, and that "tail -n +2" should be used for greater compatibility.

Try this:
Code:

grep -rn '/etc' -e 'tail +2'

https://stackoverflow.com/posts/16957078/revisions

and when we find where it occurs then we can apply the above fixes.

Since you are using a save file, you'll have to mount it as a loop device to edit the files. I'm not sure if you'll be able to do this if it is the same save file that you use to boot so maybe boot with a different save file and or directory or even in ram mode before editing.
Back to top
View user's profile Send private message 
thinkpadfreak

Joined: 17 Oct 2016
Posts: 28

PostPosted: Mon 18 Jun 2018, 02:43    Post subject:  

s243a wrote:
> I think that "tail +2" isn't as universal, and that "tail -n +2" should be used for greater compatibility.

I opened snapmergepuppy and replaced "tail +2" with "tail -n +2".

This seems to have fixed the problem.

I no longer see the message at shutdown:
tail: cannon open '+2' for reading: No such file or directory

After reboot, there remain the changes I made in the previous session. Thank you.
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 939
Location: not Bulgaria

PostPosted: Mon 18 Jun 2018, 07:32    Post subject:  

thinkpadfreak wrote:
s243a wrote:
> I think that "tail +2" isn't as universal, and that "tail -n +2" should be used for greater compatibility.


tail +N is an old syntax, but busybox tail still supports it; and I thought Slitaz included busybox and snapmergepuppy calls 'busybox tail +2', which should work, unless someone has removed the reference to busybox, which is the mistake really.

But if not using busybox tail, then, yes, tail -n +N would work with any current version of tail (including that in busybox as it happens).

Main thing I'd suggest is that if you have busybox on your system and your script has been written to use busybox then don't change the script or you may well end up with these odd effects, and not only for tail command.

wiak
Back to top
View user's profile Send private message 
thinkpadfreak

Joined: 17 Oct 2016
Posts: 28

PostPosted: Mon 18 Jun 2018, 08:50    Post subject:  

s243a wrote:
> Try this:
> Code:
> grep -rn '/etc' -e 'tail +2'

Apparently, nothing happens. The command is just executed.


wiak wrote:
> Main thing I'd suggest is that if you have busybox on your system and your script has been written to use busybox then don't change the script or you may well end up with these odd effects, and not only for tail command.

Thank you for advice.
So, the fix would be to have "busybox tail +2" instead of "tail -n +2", wouldn't it?

I tried this, and then I didn't see that "cannot open" error message.

Anyway, I think some fix will have to be made to Alpha 14.
Back to top
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 947
Location: PH

PostPosted: Mon 18 Jun 2018, 21:58    Post subject:  

Tazpup alpha 15 released

* Puppy installer now fully functional
* Init script for full install fixed
* Fix regression on snapmergepuppy for save session
* More fixes


Download:
https://drive.google.com/file/d/1FjH88y3OcuBPLRgBurIWyzVwLvbmbnuU/view?usp=sharing

Build kit now available
https://drive.google.com/file/d/10kef01pYITpdx9aievO81FXBW0Zov13J/view?usp=sharing
Back to top
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 947
Location: PH

PostPosted: Mon 18 Jun 2018, 22:02    Post subject:  

This is the experimental TazWoof. This will build TazPup entirely from Slitaz Packages. The missing part was compiling kernel for TazPup (I put a blank function to place that routine) also make live cd was disabled.

I hope someone will complete this build system.

Download: https://drive.google.com/file/d/1VyhLlfmjAlnm9ehRjw_HkoDvbah_IcX_/view?usp=sharing
Back to top
View user's profile Send private message 
ally


Joined: 19 May 2012
Posts: 1838
Location: lincoln, uk

PostPosted: Tue 19 Jun 2018, 10:40    Post subject:  

I've tried running the tazwoof script, failed to squash with 'cannot stat source directory "rootfs" No such file or directory

not clever enough to go any further

Smile

ps - can you add a -nc to wget so it doesn't download local files again
tazwoof.png
Description 
png

 Download 
Filename  tazwoof.png 
Filesize  94.8 KB 
Downloaded  60 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
greengeek


Joined: 20 Jul 2010
Posts: 5176
Location: Republic of Novo Zelande

PostPosted: Tue 19 Jun 2018, 13:51    Post subject:  

thinkpadfreak wrote:
I placed a script in /etc/profile.d, which goes like this:
Code:
#!/bin/sh
cd /sys/devices/platform/i8042/serio4/serio5
echo -n 120 > speed
echo -n 240 > sensitivity

cd /root
echo 2 > /sys/class/backlight/acpi_video0/brightness


This script is for setting the sensitivity of the mouse and the brightness of the display. The script disappears on reboot, and takes no effect.

I am interested in your method of trying to set mouse parameters. I have not seen mouse adjustment done like that before - although your method of setting video brightness is the same one I use.

On some of my machines the touchpad does not get detected as a synaptics or alps device - it just gets detected as "mouse" and as a result "touch-to-click" remains permanently activated.

Just wondered if you think your method of mouse adjustement might have some ability to switch off the tap-to-click?

How did you determine that "platform/i8042/serio4/serio5" was relative to your mouse??

cheers!
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 939
Location: not Bulgaria

PostPosted: Tue 19 Jun 2018, 17:05    Post subject:  

thinkpadfreak wrote:

wiak wrote:
> Main thing I'd suggest is that if you have busybox on your system and your script has been written to use busybox then don't change the script or you may well end up with these odd effects, and not only for tail command.

Thank you for advice.
So, the fix would be to have "busybox tail +2" instead of "tail -n +2", wouldn't it?

I tried this, and then I didn't see that "cannot open" error message.

Anyway, I think some fix will have to be made to Alpha 14.


No, though busybox tail +2 likely works, I was really meaning to avoid removing references to busybox in Slitaz scripts (so, for example, tail +2 alone doesn't work). However, better is 'busybox tail -n +2' (which also should work fine), I feel, since the other syntax (without the -n) appears to be deprecated generally. However, if no change to be made, 'busybox tail +2' should also be fine (just make sure to use busybox version as script so designed for).

wiak
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1143

PostPosted: Tue 19 Jun 2018, 20:12    Post subject:  

mistfire wrote:
This is the experimental TazWoof. This will build TazPup entirely from Slitaz Packages. The missing part was compiling kernel for TazPup (I put a blank function to place that routine) also make live cd was disabled.

I hope someone will complete this build system.

Download: https://drive.google.com/file/d/1VyhLlfmjAlnm9ehRjw_HkoDvbah_IcX_/view?usp=sharing


I tried thetazwoof-devx.sh script and it failed with a " 502 Proxy Error". Maybe run wget as a subprocess, check the exit status and keep track of which items failed. Then show people which items failed to download and ask them if they want to continue building devx.

Code:

bash -x tazwoof-devx.sh
...
+ '[' 0 -ne 0 ']'
+ for pkg in '$(cat $curdir/temp-devx/download-devx-packages.txt)'
+ download_pkgs libmediainfo-dev
+ pkgs=libmediainfo-dev
++ echo '^libmediainfo-dev-[0-9]'
++ sed -e 's#\+#\\+#g'
+ PTRN='^libmediainfo-dev-[0-9]'
++ cat /mnt/sdc6/TazPup/tazwoof-test/tazwoof/slitaz-devx/packages.list
++ grep -E '^libmediainfo-dev-[0-9]'
+ pkgname=libmediainfo-dev-0.7.79
+ '[' libmediainfo-dev-0.7.79 '!=' '' ']'
+ wget --timeout=10 http://mirror1.slitaz.org/packages/cooking/libmediainfo-dev-0.7.79.tazpkg -O /mnt/sdc6/TazPup/tazwoof-test/tazwoof/slitaz-devx/libmediainfo-dev-0.7.79.tazpkg
--2018-06-19 17:55:05--  http://mirror1.slitaz.org/packages/cooking/libmediainfo-dev-0.7.79.tazpkg
Resolving mirror1.slitaz.org (mirror1.slitaz.org)... 188.165.229.172
Connecting to mirror1.slitaz.org (mirror1.slitaz.org)|188.165.229.172|:80... connected.
HTTP request sent, awaiting response... 502 Proxy Error
2018-06-19 17:55:06 ERROR 502: Proxy Error.

+ '[' 8 -ne 0 ']'
+ echo 'Downloading package failed: libmediainfo-dev-0.7.79'
Downloading package failed: libmediainfo-dev-0.7.79
+ exit


Edit: I suggest something link this

Now lines 19 to 25 of tazwoof-devx.sh in the function download_pkgs()
Code:

      if [ $? -ne 0 ]; then
      echo "Downloading package failed: $pkgname"
      #exit
          echo "$pkgname.tazpkg" >> "$curdir/slitaz-devx/packages.list.fail"
      else
          echo "$pkgname.tazpkg" >> "$curdir/slitaz-devx/packages.list.success"      
      fi
Back to top
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 947
Location: PH

PostPosted: Tue 19 Jun 2018, 21:22    Post subject:  

Thanks @ally and @s243a for the comment. I will make some modifications on tazwoof

Take note: You can adjust brightness of laptop monitor in tazpanel. It was located at Hardware > Disks
Back to top
View user's profile Send private message 
Terry H

Joined: 29 Mar 2009
Posts: 418
Location: The Heart of Muskoka, ON Canada

PostPosted: Tue 19 Jun 2018, 21:50    Post subject:  

Running alpha 15, all is running well now. Updated with Package Manager and also installed DeadBeef. Running Palemoon manually installed in /opt.

Shutdown / Reboot functioning well.

All is working excellent with latest release. Great work mistfire. Thank you.
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1143

PostPosted: Tue 19 Jun 2018, 22:09    Post subject:  

mistfire wrote:
Thanks @ally and @s243a for the comment. I will make some modifications on tazwoof


Excellent Smile The other thing I would consider is the addition is a NO_CLEAN option or environmental variable because on might run the script then decide later that they want to add a package. They shouldn't have to download all the packages again. Actually even if they reduce the number of packages they shouldn't have to download all the packages again.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 36 of 44 [648 Posts]   Goto page: Previous 1, 2, 3, ..., 34, 35, 36, 37, 38, ..., 42, 43, 44 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.1019s ][ Queries: 13 (0.0243s) ][ GZIP on ]