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 23 Oct 2017, 13:08
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
Light-Debian-Core-Live-CD-Wheezy + Porteus-Wheezy
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 278 of 283 [4236 Posts]   Goto page: Previous 1, 2, 3, ..., 276, 277, 278, 279, 280, 281, 282, 283 Next
Author Message
saintless


Joined: 11 Jun 2011
Posts: 3882
Location: Bulgaria

PostPosted: Thu 15 Jan 2015, 13:43    Post subject:  

Hi, Stemsee.
I can only guess what should the script do. This is first test result after renaming and loading the sfs. Both scripts have permissions problem:
Code:
root@debian:~# nicons
bash: /opt/bin/nicons: Permission denied
root@debian:~# niui
bash: /opt/bin/niui: Permission denied
root@debian:~# chmod u+x /opt/bin/nicons
root@debian:~# chmod u+x /opt/bin/niui

Then:
Code:
root@debian:~# nicons
/opt/bin/nicons: line 29: xdotool: command not found
/opt/bin/nicons: line 29: [: =: unary operator expected
root@debian:~# niui
/opt/bin/niui: line 52: check_prep: command not found

I need to install xdotool but check_prep command is still not found. I don't know what check_prep command should do.
Anyway from quick test strip (remove) icon names work. I don't know how to reverse back the names.
Apps in rox side panel works (in grey background color). I don't know how to remove the side panel.
Draw button opens yad empty window (I guess it should have icons to choose from). I don't know how to put icons there. Drag and drop in yad window does not work.
2015-01-15-192522_468x505_scrot.jpg
 Description   
 Filesize   37.57 KB
 Viewed   900 Time(s)

2015-01-15-192522_468x505_scrot.jpg


_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 1980
Location: In The Way

PostPosted: Thu 15 Jan 2015, 15:04    Post subject:  

Thanks for testing. It was working for me, but from development.

The only way to replace labels at the moment is to reselect those icons anew. I will have to retest on a pristine frugal.

To remove rox side panel must restart X. I will add code to kill pid. BTW you can drag icons to the side panel. Even after closing panel the next time you use it the icons will still be there.

Yad icons list should be populated by linking /usr/share/applications/* to /usr/share/renamed/*

check_prep is part of niui: I need to remove that as it is only useful for show/hide icons /9not implemented for DD version yet.)

regards stemsee
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 1980
Location: In The Way

PostPosted: Fri 16 Jan 2015, 07:36    Post subject:  

I must have been tired yesterday! Anyway hopefully this will be functional on your system. Depends on gtkdialog, yad, xdotool.

If this is ok then I think I can implement the full nicons script simply by changing path argument in a test function. Except wallpapers and pin per desktop.
2015-01-16-143206_212x272_scrot.png
 Description   
 Filesize   12.9 KB
 Viewed   821 Time(s)

2015-01-16-143206_212x272_scrot.png

nicons-DD-0.3.sfs.gz
Description 
gz

 Download 
Filename  nicons-DD-0.3.sfs.gz 
Filesize  12 KB 
Downloaded  184 Time(s) 
Back to top
View user's profile Send private message MSN Messenger 
saintless


Joined: 11 Jun 2011
Posts: 3882
Location: Bulgaria

PostPosted: Fri 16 Jan 2015, 12:30    Post subject:  

Hi, Stemsee.

Thank you for your effort, but I have other things to test and fix for DD. All I can do is quick testing by following your instructions.
Yes, if I create /usr/share/renamed folder and link there all files from /usr/share/applications and pick some of them - Draw function works.
From root account all seems to work.
"Apps in Rox Side panel" and "New Side Panel" buttons do the same thing. You can make many panels to switch with "rox --right=PANEL" command replacing PANEL with different name for each one. Maybe it will be better to rename the buttons to "Side panel 1" and "Side panel 2" or similar. Then everyone will understand each button loads different named side panel.

From user account only Drawing and Side panel buttons work.
Restore original Icons button breaks the desktop. Haven't tested this but I guess you are using /root/... as path in the script. Maybe using $HOME/ instead (as I posted the path here) will fix this.

Toni

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 2529
Location: holland

PostPosted: Fri 16 Jan 2015, 14:27    Post subject:  

Hi Toni, All

Here's .deb package for portablesfs (thoroughly tested this time, Smile )
I think I did the packaging right but it's not easy these days with the new "rules" (for gsu/gksu))
Attached portablesfs-loadsfs-fuse_1.0.1_i386.deb.tar (remove dummy .tar extension)
Included loadsfs-fuse and loadsfs-fuse-writesfs scripts (see further below)

Changes for portablesfs:
- Removed the entry for entering command to be executed.
- Instead of above (running a command) a "Applications" menu will appear when running created portable-script.
- Name of created portable script will named after *.squashfs or *.sfs module, e.g. "023-abiword-2.8.6-docx-portable"
- Depends on unionfs-fuse for the "Chroot mode"
- Took over some commands from Sfs-load mode to add to the Chroot mode, this way Chroot mode is just as reliable as Sfs-load mode (works the same with any module I tested)

Also in the .deb:
- loadsfs-fuse. Same as (before posted) previously named 'loadsfs' (with some fixes that makes it work with all modules I tested) Can be used for Drag'nDrop a module using "Chroot mode" , which depends on unionfs-fuse.
- loadsfs-fuse-writesfs. Same as above, but different, from included /usr/local/bin/Readme_loadsfs-fuse-writesfs:
Code:
The 'loadsfs-fuse-writesfs' script doesn't leave any traces behind in the filesystem / but:
It writes the config files (or any other) that a program creates to: /root/writesfs directory
When loading a module using 'loadsfs-fuse-writesfs' a program will read the content of /root/writesfs.
So, to start fresh everytime you need to delete /root/writesfs


Ok, last Smile
Attached loadmodule_loadsfs.tar.gz:
Includes:
. New 'loadmodule' script, fixes:
- When (sometimes) a module fails to unload, added forcing unmount (in case it doesn't normally)
- Added workaround for OpenBox version to show the application in the menu after loading.
Toni, I found that on Jwm version there's no problem at all so you can keep the older version if you want.
. Script "loadsfs"
It is using the default "Sfs-load mode" and I think this will be best to use for the SFSdrop icon on the Desktop.
Disadvantage is that it doesn't work with full install.
Advantage is that it doesn't need unionfs-fuse package
loadsfs-fuse can also be used, I'm not sure yet what's best.

Please test when you have time, Toni, no hurry, I know it's a lot to test.
Btw, looking at all changes, I think the new release of DebianDog will be great, lots of useful innovations!

Edit: Small disadvantage for portablesfs "Chroot mode", loadsfs-fuse and loadsfs-fuse-writesfs:
When using it when logged in with normal user account, sudo and su doesn't work (when running Xterm from "Applications" menu and trying to use sudo or su). Can't figure out why.

Edit: New portablesfs-loadsfs-fuse_1.0.1_i386.deb uploaded with sudo fix
Edit2: Attachment removed, See for new portablesfs-loadsfs-fuse_1.0.1_i386.deb:
http://murga-linux.com/puppy/viewtopic.php?p=823787#823787

Fred
loadmodule_loadsfs.tar.gz
Description  New loadmodule + loadsfs
gz

 Download 
Filename  loadmodule_loadsfs.tar.gz 
Filesize  3.8 KB 
Downloaded  184 Time(s) 

Last edited by fredx181 on Sun 25 Jan 2015, 15:48; edited 2 times in total
Back to top
View user's profile Send private message 
saintless


Joined: 11 Jun 2011
Posts: 3882
Location: Bulgaria

PostPosted: Sat 17 Jan 2015, 04:54    Post subject:  

Thanks, Fred!
Many improvements for sfs loading scripts Smile
fredx181 wrote:
Here's .deb package for portablesfs (thoroughly tested this time, Smile )
I think I did the packaging right but it's not easy these days with the new "rules" (for gsu/gksu))

The deb package looks fine to me.

Quote:
Attached loadmodule_loadsfs.tar.gz:
Includes:
. New 'loadmodule' script, fixes:
- When (sometimes) a module fails to unload, added forcing unmount (in case it doesn't normally)
- Added workaround for OpenBox version to show the application in the menu after loading.
Toni, I found that on Jwm version there's no problem at all so you can keep the older version if you want.

It is better to have the same scripts in both versions when it is possible. I will rename the old one and keep it in case I find some problem with the new loadmodule in DD-Jwm.
Quote:
Script "loadsfs"
It is using the default "Sfs-load mode" and I think this will be best to use for the SFSdrop icon on the Desktop.
Disadvantage is that it doesn't work with full install.
Advantage is that it doesn't need unionfs-fuse package
loadsfs-fuse can also be used, I'm not sure yet what's best.

We can add second icon on the desktop for loadsfs-fuse named SFSdrop-chroot or think of some way to create it from debdog-full-install script, or we can just add the information how to change the path for SFSdrop icon for full install in Howto thread.
My opinion is to keep loadsfs for SFSdrop icon as default for frugall install.

Quote:
Edit: Small disadvantage for portablesfs "Chroot mode", loadsfs-fuse and loadsfs-fuse-writesfs:
When using it when logged in with normal user account, sudo and su doesn't work (when running Xterm from "Applications" menu and trying to use sudo or su). Can't figure out why.

I thought it is permissions problem for sudo or sudoers in /mnt/unionfs... folder but it is not. I will also try to find fix for this.

Edit: From root account typing sudo in Applications -> xterm gives correct output. The problem is for user account.

Edit 2: Just found something related here:
http://askubuntu.com/questions/299878/error-executing-sudo-in-chroot-environmet
According to this post the problem could be in nosuid but it does not give real solution:
Code:
puppy@debian:~$ mount
.....................
unionfs-fuse on /mnt/unionsfs_13204 type fuse.unionfs-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)


Edit 3: About loadsfs-fuse I will make /opt/bin/load-sfs-chroot-full_install with content:
Code:
#!/bin/bash
loadsfs-fuse "$@"


Then create links for right click on sfs files in Rox and XFE. If you make something similar for Thunar this should be enough as option for loading sfs in full install.

Edit 4: About sudo problem I can use sudo from user account by starting xterm with click on /.unionfs/Xterm.desktop or /mnt/unionsfs_20128/usr/bin/xterm
The problem is only when starting xterm with double click from Applications yad window.

Toni
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 2529
Location: holland

PostPosted: Sat 17 Jan 2015, 15:33    Post subject:  

Thanks for your suggestions and investigation, Toni!

The nosuid was indeed the problem, fixed by adding "suid" to the options of unionfs-fuse mounting.
But once that worked, there were other complications, so made some more changes (e.g. export PATH)
sudo is working now.
Btw, 07-vbox-light-xz.squashfs is a good test case because of it's complexity and needing sudo (gsu) when typing "start-virtualbox" in Xterm window.

Attached new portablesfs-loadsfs-fuse_1.0.1_i386.deb.tar (remove dummy .tar)
For information see here:
http://www.murga-linux.com/puppy/viewtopic.php?p=821577#821577

Quote:
. New 'loadmodule' script, fixes:
- When (sometimes) a module fails to unload, added forcing unmount (in case it doesn't normally)
- Added workaround for OpenBox version to show the application in the menu after loading.
Toni, I found that on Jwm version there's no problem at all so you can keep the older version if you want.

It is better to have the same scripts in both versions when it is possible. I will rename the old one and keep it in case I find some problem with the new loadmodule in DD-Jwm.


Yes, it will do no harm on Jwm version.

Quote:
Edit 3: About loadsfs-fuse I will make /opt/bin/load-sfs-chroot-full_install with content:
Code:
#!/bin/bash
loadsfs-fuse "$@"

Then create links for right click on sfs files in Rox and XFE. If you make something similar for Thunar this should be enough as option for loading sfs in full install.


Good idea, I will look at it.

Quote:
Edit 4: About sudo problem I can use sudo from user account by starting xterm with click on /.unionfs/Xterm.desktop or /mnt/unionsfs_20128/usr/bin/xterm


Just for information, I changed the directory to /unionfs instead of /.unionfs (needed to solve part of the complications after adding suid option)

Edit: Attachment portablesfs-loadsfs-fuse_1.0.1_i386.deb removed from here. See for new portablesfs-loadsfs-fuse_1.0.1_i386.deb:
http://murga-linux.com/puppy/viewtopic.php?p=823787#823787

Fred

Last edited by fredx181 on Sun 25 Jan 2015, 15:51; edited 3 times in total
Back to top
View user's profile Send private message 
saintless


Joined: 11 Jun 2011
Posts: 3882
Location: Bulgaria

PostPosted: Sat 17 Jan 2015, 16:48    Post subject:  

fredx181 wrote:
Attached new portablesfs-loadsfs-fuse_1.0.1_i386.deb

Thanks, Fred!
Uploaded in DD repository section included and added to next version changes post.
Also added:
Code:
apt-get install deb-multimedia-keyring

This is a fix for gpr error after running apt-get update. I guess you get the same erorr lately:
Code:
W: GPG error: ftp://ftp.deb-multimedia.org wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5C808C2B65558117


Toni
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 2529
Location: holland

PostPosted: Sat 17 Jan 2015, 18:06    Post subject:  

Toni wrote:
Uploaded in DD repository section included and added to next version changes post.


Whoopeee! It made it to the official DD repo Very Happy

Quote:
Edit 4: About sudo problem I can use sudo from user account by starting xterm with click on /.unionfs/Xterm.desktop or /mnt/unionsfs_20128/usr/bin/xterm


Forgot to reply on this previously:
It's because then you run Xterm from the normal system, not from the chroot environment.
The yad Applications window is started from being inside the chroot.

Quote:
Code:
apt-get install deb-multimedia-keyring

This is a fix for gpr error after running apt-get update. I guess you get the same erorr lately:


Thanks, yes, I noticed already.

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


Joined: 11 Dec 2013
Posts: 2529
Location: holland

PostPosted: Sun 18 Jan 2015, 18:12    Post subject:  

Hi Toni,

Here's a little script I think I'll use sometimes, maybe it can be useful for you or anyone.
It can be used only to chroot into a full filesystem module e.g. 01-filesystem.squashfs (or maybe a main .sfs from puppy, didn't test that).
The advantage is that you can chroot into it without having to extract the module with unsquashfs first.
It's based on loadsfs-fuse but instead of opening Applications menu it opens xterm and from there you can enter commands.
It is not combined with the actual running system, just exclusively the system from the 01-filesystem.squashfs that is loaded.
Anything that has been written into it will be in /root/writesfs.
Network connection should work, disk volume monitoring is not running.

Attached chrootin.tar (dummy .tar)

Edit: made some improvements:
- not using a function now for the chroot .... /bin/bash .. command
This way with a bash version not supporting to execute a function it still *works*.
(I noticed the problem when I tested loading puppy_precise_3.7.2.sfs).
- Tries to show the yad "Applications" gui whenever possible, otherwise it shows xterm.
- instead of /root/writesfs for "write" folder, it will named after the module, e.g /root/puppy_precise_3.7.2.sfs.
When testing different modules with same name (e.g. 01-filesystem.squashfs) the content will be mixed in the "/root/01-filesystem.squashfs" write directory. Better delete it first to start fresh.

Far from perfect, please see it as a funny experiment.
Works well when "spying" Smile into another DD version , e.g. from Jwm > Openbox and vice versa.
chrootin.tar
Description  New uploaded improved chrootin script: For to chroot into a main module without having to extract with unsquashfs first.
tar

 Download 
Filename  chrootin.tar 
Filesize  7.82 KB 
Downloaded  182 Time(s) 

Last edited by fredx181 on Fri 23 Jan 2015, 15:52; edited 4 times in total
Back to top
View user's profile Send private message 
saintless


Joined: 11 Jun 2011
Posts: 3882
Location: Bulgaria

PostPosted: Mon 19 Jan 2015, 12:26    Post subject:  

Thanks, Fred!
Added to the next version changes list. I will keep it in /opt/bin

Toni

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 2529
Location: holland

PostPosted: Mon 19 Jan 2015, 18:31    Post subject:  

Toni wrote:
I will keep it in /opt/bin


Better in "/opt/test/experimental/very-experimental" Shocked Smile

Fred
Back to top
View user's profile Send private message 
saintless


Joined: 11 Jun 2011
Posts: 3882
Location: Bulgaria

PostPosted: Wed 21 Jan 2015, 16:42    Post subject:  

OK, Fred Smile I will place it in /opt/bin/special/test-first.

Uploaded deb in extra packages section: peasyscale_1.8_i386.deb. Depends on libjpeg-progs installed with synaptic or apt-get.
More information here.

Toni

Edit: Deb package updated to version 1.8

_________________
Farewell, Nooby, you will be missed...

Last edited by saintless on Thu 29 Jan 2015, 10:09; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
saintless


Joined: 11 Jun 2011
Posts: 3882
Location: Bulgaria

PostPosted: Fri 23 Jan 2015, 05:33    Post subject:  

Hi, Fred.

I don't have more ideas to include in DD for the moment and I will start remastering all changes we have in next changes post. I just like to test properly the system with all changes added in the main module. No hurry to upload new DD version. I will wait for your word about that.

Toni

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 2529
Location: holland

PostPosted: Fri 23 Jan 2015, 13:20    Post subject:  

Hi Toni,

Quote:
I don't have more ideas to include in DD for the moment and I will start remastering all changes we have in next changes post. I just like to test properly the system with all changes added in the main module. No hurry to upload new DD version. I will wait for your word about that.


Yes, I did already make remaster from time to time, just like to test a little more and I'll let you know when I'm ready.
I'll come up later with a new sfs-get-smokey-get .deb with a small fix for sfs-get and updated template files (for gdrive-get and smokey-get)
Also i found portablesfs-loadsfs-fuse needs small fix. (sometimes leaves trace behind: ( /.unionfs folder) ).

Edit: Improved a little bit the chrootin script, see my Edit a few posts before.

Fred
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 278 of 283 [4236 Posts]   Goto page: Previous 1, 2, 3, ..., 276, 277, 278, 279, 280, 281, 282, 283 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
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.2472s ][ Queries: 13 (0.1424s) ][ GZIP on ]