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 20 Oct 2014, 00:54
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
geany files not transferrable between computers
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Author Message
nubc


Joined: 23 Jan 2007
Posts: 1073
Location: USA

PostPosted: Mon 14 Jan 2013, 11:59    Post subject:  geany files not transferrable between computers
Subject description: source and destination computers both run Wary 5.1.1
 

I used geany to make an index and cross-index system comprised of about 100 text files, all contained in a folder. Using an external USB hard drive, I transferred this folder containing 100 geany files to another computer. Both the source and destination computers run Wary 5.1.1, with identical but very few modifications. I configured the geany files on the source computer to line wrap. The geany files transferred to the destination computer lost all configuration settings. Easy enough to re-configure, BUT the transferred geany files do not open when single-clicked. They open only when the "Open With" list is selected from context menu. Furthermore, the "Set Run Action" option in the context menu is grayed out. The icon for geany files on the destination computer is different from those on the source computer. The geany file icons on the destination computer are not text icons, but have a large dark green square in the rectangle. Any suggestions?
Last edited by nubc on Mon 14 Jan 2013, 12:33; edited 3 times in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4253
Location: Gatineau (Qc), Canada

PostPosted: Mon 14 Jan 2013, 12:25    Post subject:  

Sounds like a reference problem to me, not a geany problem. A simple question:
Does the folder hierarchy on your USB drive mirror exactly the one you had when you generated the index?

Best regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
nubc


Joined: 23 Jan 2007
Posts: 1073
Location: USA

PostPosted: Mon 14 Jan 2013, 12:30    Post subject:  

File system on external USB hard drive is FAT32. File system on source and destination computers is ext2. What do you mean by "reference problem"?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9195
Location: Stratford, Ontario

PostPosted: Mon 14 Jan 2013, 12:44    Post subject:  

nubc wrote:
File system on external USB hard drive is FAT32. File system on source and destination computers is ext2.

That's the problem. You need to transfer the files using a drive that is formatted as ext. Or give all the files the extension .txt.

Regarding the geany configuration - it's stored in /root/.config/geany.

[Edit] If you check the properties of the new files, they will have their executable bits set. Run
Code:
chmod 644 *
Back to top
View user's profile Send private message 
nubc


Joined: 23 Jan 2007
Posts: 1073
Location: USA

PostPosted: Mon 14 Jan 2013, 13:14    Post subject:  

Thanks, rcrsn51, for your suggestion. It sounds like a solution that would work. However, I don't want to add the .txt extension. I am now looking at the Index folder on the USB hard drive, and I can make a detailed comparison between those geany files and the original geany files. The geany files on the USB hard drive are different, just like the geany files on the destination drive. Would it be possible to modify file attributes to restore the FAT32 geany files to ext2 properties? For example, in Properties, instead of "text/plain" as file "Type:" the FAT32 geany files have "application/x-shellscript" as file type. For the FAT32 geany files, in Permissions, under EXEC, there are three checks that are not applied in the original geany files, which probably explains the entry under "Run Action: Execute file" instead of specifying an app to handle the text file. In other words, the FAT32 geany file is an executable, although "Contents indicate...ASCII text, with no line terminators". If I uncheck (untick) the EXEC permissions, would the FAT32 geany file revert to text file properties and hopefully identification?

EDIT: I can't change file attributes from the Properties dialog. Suggestions?

Last edited by nubc on Mon 14 Jan 2013, 13:22; edited 2 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9195
Location: Stratford, Ontario

PostPosted: Mon 14 Jan 2013, 13:16    Post subject:  

See my edit above.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9195
Location: Stratford, Ontario

PostPosted: Mon 14 Jan 2013, 13:21    Post subject:  

You can't change the permissions on the USB drive. Change them on the files after you have transferred them.
Back to top
View user's profile Send private message 
nubc


Joined: 23 Jan 2007
Posts: 1073
Location: USA

PostPosted: Mon 14 Jan 2013, 13:23    Post subject:  

I'll give that a try, but can't do it now, because the destination computer is at another location.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9195
Location: Stratford, Ontario

PostPosted: Mon 14 Jan 2013, 13:46    Post subject:  

Here is what's happening. The fat32 filesystem does not have the same read-write-execute permissions as Linux. So when you transfer a Linux file into a fat32 device, Puppy sees it as having the execute bit set. (I don't know why.)

When you then copy the file back into an ext filesystem, the execute bit comes with it. So Puppy assumes that the geany text file is now an executable script. That's why it gets the different icon.

You will see the same thing with other file types, like PDF. The only difference is that Puppy still recognizes the file as being a PDF and opens it in the usual program.

If you name the geany file as xxx.txt, Puppy then assumes that it is actually a text file, regardless of the execute bit being set.
Back to top
View user's profile Send private message 
nubc


Joined: 23 Jan 2007
Posts: 1073
Location: USA

PostPosted: Thu 17 Jan 2013, 11:09    Post subject:  

What happens when I run code
Code:
chmod 644 *
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9195
Location: Stratford, Ontario

PostPosted: Thu 17 Jan 2013, 12:00    Post subject:  

nubc wrote:
What happens when I run code
Code:
chmod 644 *


It will remove the execute bit from all the files in the directory in which you run it. So your geany files will stop looking like executable scripts and go back to being normal text files.

Go to the folder on the new machine where you downloaded the files, open a terminal and type the command.

If you don't want to run the command, pick a file, open its properties and uncheck the execute permissions.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2256

PostPosted: Thu 17 Jan 2013, 12:02    Post subject:  

The FAT filesystem does not support any permissions or perms at all. If you need to preserve file attributes or metadata, then thery must be copied to an FS which supports them.

The problem you are having boils down to the mime-types being used by ROX-Filer, which dictate the actions when clicking on different file-types.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2525
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Thu 17 Jan 2013, 12:51    Post subject: Re: geany files not transferrable between computers
Subject description: geany and line wrapping
 

nubc wrote:
...I configured the geany files on the source computer to line wrap. The geany files transferred to the destination computer lost all configuration settings. Easy enough to re-configure, ...

A note, just for your better understanding:
The files cannot be configured to wrap.
It is always just the actual geany that wraps the lines.
Back to top
View user's profile Send private message 
nubc


Joined: 23 Jan 2007
Posts: 1073
Location: USA

PostPosted: Sun 20 Jan 2013, 23:31    Post subject:  

Good news: When I removed the three checks under Exec in Permissions, the transferred text files reverted to original. I had to manually edit all 97 files because the given code (chmod 644 *) didn't work. Perhaps it didn't work because I navigated to the directory with command prompt, instead of just opening the folder in ROX. It's regrettable that I can't edit the files en masse because I will be adding to the index during the week, so it will be changing from week to week. Instead of managing and transferring all those individual edits, it would be preferable just to copy over the entire updated Index folder after deleting the old Index. Thus I am still keenly interested in finding the right command and procedure to remove all those Exec checks in one quick and easy action.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9195
Location: Stratford, Ontario

PostPosted: Sun 20 Jan 2013, 23:49    Post subject:  

nubc wrote:
I had to manually edit all 97 files because the given code (chmod 644 *) didn't work.

It works for me. Navigate to the folder with ROX. Press the back-tick key (above the Tab key on my keyboard) to open a terminal window. Type the command.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0774s ][ Queries: 11 (0.0058s) ][ GZIP on ]