Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-03

Xubuntu, Lazarus and project stored and built on a pendrive with ntfs

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Salvatore Coppola

Hi, after updating because of Unity I swiched to
Xubuntu 11.10 (fresh installation), but saving and building a simple project (application) on a pendrive with ntfs the executable cannot be run. The same project stored in HOME is OK.
Xubuntu is missing something or what?
As I remeber such things were OK in Ubuntu 11.04

Any help will be apreciate!
______________________
Attached a screenshot of Lazarus after try to run

This has been reported in the terminal:

"TMainIDE.DoNewProject A

(lazarus:4242): Gtk-WARNING **: Unable to retrieve the file info for `file:///media/PENDRIVE/project1.lpi': Errore nell'eseguire lo stat del file "/media/PENDRIVE/project1.lpi": File o directory non esistente

(lazarus:4242): Gtk-WARNING **: Unable to retrieve the file info for `file:///media/PENDRIVE/Unit1.pas': Errore nell'eseguire lo stat del file "/media/PENDRIVE/Unit1.pas": File o directory non esistente

TMainIDE.DoRenameUnit unit1.pas
NewUnitName=Unit1 OldUnitName=Unit1 ResourceCode=False NewFilename="/me
dia/PENDRIVE/unit1.pas"
TCodeToolManager.RenameIdentifier File /media/PENDRIVE/project1.lpr Line=10 Col=10 Identifier=Unit1
TCodeToolManager.RenameIdentifier KEPT Unit1
TCodeToolManager.RenameIdentifier Apply
[TMainIDE.DoRunProject] A
TMainIDE.DoInitProjectRun A True 0
TMainIDE.DoInitProjectRun B
TBaseCompilerOptions.MakeOptionsString
UnitOutputDirectory="lib/$(TargetCPU)-$(TargetOS)" CurOutputDir= "/media/PENDRIVE/lib/i386-linux/"
TMainIDE.CheckIfProjectNeedsCompilation Src has changed Project /media/PENDRIVE/unit1.pas
TCompiler.Compile WorkingDir="/media/PENDRIVE/"
CompilerFilename="/usr/bin/fpc" CompilerParams=" -MObjF PC -Scghi -O1 -gl -vewnhi -l -Fi/media/PENDRIVE/lib/i386-linux -Fu/home/salvatore/lazarusARPA/lcl/units
/i386-linux -Fu/home/salvatore/lazarusARPA/lcl/units/i386-linux/gtk2 -Fu/home/salvatore/lazarusARPA/pac
kager/units/i386-linux -Fu/media/PENDRIVE/ -Fu.
-FU/media/PENDRIVE/lib/i386-linux/ -oproject1 -dLCL -dL CLgtk2 project1.lpr"
[TCompiler.Compile] CmdLine="/usr/bin/fpc -MObjFPC -Scghi -O1 -gl -vewnhi -l -Fi/media/PENDRIVE/lib/i3
86-linux -Fu/home/salvatore/lazarusARPA/lcl/units/i386-linux -Fu/home/salvatore/lazarusARPA/lcl/units/i
386-linux/gtk2 -Fu/home/salvatore/lazarusARPA/packager/units/i386-linux -Fu/media/PENDRIVE/ -Fu. -FU/me
dia/PENDRIVE/lib/i386-linux/ -oproject1 -dLCL -dLCLgtk2 project1.lpr" Hint: Start of reading config file /home/salvatore/.fpc.cfg Hint: End of reading config file /home/salvatore/.fpc.cfg Free Pascal Compiler version 2.6.0-1 [2012/01/13] for i386 Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS: Linux for i386
Compiling project1.lpr
Compiling unit1.pas
Compiling resource /media/PENDRIVE/lib/i386-linux/project1.or Linking project1
/usr/bin/ld: warning: link.res contains output sections; did you forget -T? 46 lines compiled, 28.5 sec
2 hint(s) issued
[TCompiler.Compile] end
TMainIDE.DoInitProjectRun ProgramFilename=/media/PENDRIVE/project1 "

Best Regards
Salvatore
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Istantanea - 18:36:46.png
Type: image/png
Size: 20227 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120317/d5b24c19/attachment-0001.png>

Reply by email

Mattias Gaertner
to Salvatore Coppola
Show quoted text 9 lines
Hi, after updating because of Unity I swiched to Xubuntu 11.10 (fresh installation), but saving and building a simple project (application) on a pendrive with ntfs the executable cannot be run. The same project stored in HOME is OK. Xubuntu is missing something or what? As I remeber such things were OK in Ubuntu 11.04 [...] TMainIDE.DoInitProjectRun ProgramFilename=/media/PENDRIVE/project1

Is the file there?
Can you run it manually?

Mattias

Reply by email

Salvatore Coppola
to Mattias Gaertner

2012/3/17 Mattias Gaertner :

Show quoted text 14 lines
On Sat, 17 Mar 2012 18:58:16 +0100 Salvatore Coppola wrote: > Hi, after updating because of Unity I swiched to > Xubuntu 11.10 (fresh installation), but saving and building a simple > project (application) on a pendrive with ntfs the executable cannot be > run. The same project stored in HOME is OK. > Xubuntu is missing something or what? > As I remeber such things were OK in Ubuntu 11.04 >[...] > TMainIDE.DoInitProjectRun ProgramFilename=/media/PENDRIVE/project1 Is the file there?

Yes

Can you run it manually?

on doubleclick nothing appens!
after copied on the desktop (ext4) nothing appens! in the terminal "permesso negato" "permission denied" with sudo
"sudo: /home/salvatore/Scrivania/project1: command not found" but is there

Show quoted text 7 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Salvatore Coppola
Show quoted text 25 lines
2012/3/17 Mattias Gaertner : > On Sat, 17 Mar 2012 18:58:16 +0100 > Salvatore Coppola wrote: > >> Hi, after updating because of Unity I swiched to >> Xubuntu 11.10 (fresh installation), but saving and building a simple >> project (application) on a pendrive with ntfs the executable cannot be >> run. The same project stored in HOME is OK. >> Xubuntu is missing something or what? >> As I remeber such things were OK in Ubuntu 11.04 >>[...] > >> TMainIDE.DoInitProjectRun ProgramFilename=/media/PENDRIVE/project1 > > Is the file there? Yes > Can you run it manually? > on doubleclick nothing appens! after copied on the desktop (ext4) nothing appens! in the terminal "permesso negato" "permission denied" with sudo "sudo: /home/salvatore/Scrivania/project1: command not found" but is there

It needs executable flags to run.

Check your mount flags of your pendrive. Probably for security reasons it was mounted with noexec or something similar.

Mattias

Reply by email

Salvatore Coppola
to Mattias Gaertner

2012/3/17 Mattias Gaertner :

Show quoted text 33 lines
On Sat, 17 Mar 2012 20:09:48 +0100 Salvatore Coppola wrote: > 2012/3/17 Mattias Gaertner : > > On Sat, 17 Mar 2012 18:58:16 +0100 > > Salvatore Coppola wrote: > > > >> Hi, after updating because of Unity I swiched to > >> Xubuntu 11.10 (fresh installation), but saving and building a simple > >> project (application) on a pendrive with ntfs the executable cannot be > >> run. The same project stored in HOME is OK. > >> Xubuntu is missing something or what? > >> As I remeber such things were OK in Ubuntu 11.04 > >>[...] > > > >> TMainIDE.DoInitProjectRun ProgramFilename=/media/PENDRIVE/project1 > > > > Is the file there? > > Yes > > > Can you run it manually? > > > on doubleclick nothing appens! > after copied on the desktop (ext4) nothing appens! > ?in the terminal "permesso negato" "permission denied" > with sudo > "sudo: /home/salvatore/Scrivania/project1: command not found" but is there It needs executable flags to run. Check your mount flags of your pendrive. Probably for security reasons it was mounted with noexec or something similar.

mount give me this rows

/dev/sda6 on / type ext4 (rw,errors=remount-ro,commit=0) proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev)
gvfs-fuse-daemon on /home/salvatore/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=salvatore)
/dev/sdc1 on /media/PENDRIVE type fuseblk
(rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)

the last one is the pendrive in question
while

cat /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). #
# <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda6 during installation
UUID=a5f13cd0-5793-4fff-ab07-15882b06dd01 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=ca697dbf-9c11-496b-84ec-89a427267a30 none swap sw 0 0

I'm low level user so can you take a look, is how you supposed?

THX
Salvatore

Show quoted text 8 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Bernd Kreuss
to Salvatore Coppola
Salvatore Coppola wrote
I'm low level user so can you take a look, is how you supposed?

Somehow somewhere the default mount options can be changed in xubuntu. I assume you want it to have it mounted with exec bits set every time you plug it in, maybe you should consult the ubuntu forums where these default options for xubuntu's automounting daemon are hidden and where the correct place is to make these changes (its probably some gnome thingy running in the background and xubuntu with its minimal interface probably does not have an UI to configure it). The people on the ubuntu forums should be able to help, they know this system inside out. -------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x3945A21D.asc
Type: application/pgp-keys
Size: 16637 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120318/b2cd441e/attachment-0001.bin>

Reply by email

Gustavo Enrique Jimenez
to Bernd Kreuss

hi all:
Not executing programs from external file systems is a kernel option adopted by many linux distros, I think. You should copy the program to the local filesystem and change permissions to execute it.

2012/3/17 Bernd Kreuss :

Show quoted text 19 lines
On 17.03.2012 23:08, Salvatore Coppola wrote: > I'm low level user so can you take a look, is how you supposed? Somehow somewhere the default mount options can be changed in xubuntu. I assume you want it to have it mounted with exec bits set every time you plug it in, maybe you should consult the ubuntu forums where these default options for xubuntu's automounting daemon are hidden and where the correct place is to make these changes (its probably some gnome thingy running in the background and xubuntu with its minimal interface probably does not have an UI to configure it). The people on the ubuntu forums should be able to help, they know this system inside out. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Salvatore Coppola
to Gustavo Enrique Jimenez

2012/3/18 Gustavo Enrique Jimenez :

hi all: Not executing programs from external file systems is a kernel option adopted by many linux distros, I think. You should copy the program to the local filesystem and change permissions to execute it.

I see what you say.
thx
Salvatore

Show quoted text 26 lines
2012/3/17 Bernd Kreuss : > On 17.03.2012 23:08, Salvatore Coppola wrote: > >> I'm low level user so can you take a look, is how you supposed? > > Somehow somewhere the default mount options can be changed in xubuntu. I > assume you want it to have it mounted with exec bits set every time you > plug it in, maybe you should consult the ubuntu forums where these > default options for xubuntu's automounting daemon are hidden and where > the correct place is to make these changes (its probably some gnome > thingy running in the background and xubuntu with its minimal interface > probably does not have an UI to configure it). The people on the ubuntu > forums should be able to help, they know this system inside out. > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Salvatore Coppola
to Bernd Kreuss: Somehow somewhere the default mount options can be changed in xubuntu. I assume you want…

2012/3/18 Bernd Kreuss :

Show quoted text 12 lines
On 17.03.2012 23:08, Salvatore Coppola wrote: > I'm low level user so can you take a look, is how you supposed? Somehow somewhere the default mount options can be changed in xubuntu. I assume you want it to have it mounted with exec bits set every time you plug it in, maybe you should consult the ubuntu forums where these default options for xubuntu's automounting daemon are hidden and where the correct place is to make these changes (its probably some gnome thingy running in the background and xubuntu with its minimal interface probably does not have an UI to configure it). The people on the ubuntu forums should be able to help, they know this system inside out.

Thx for the reply, i'll follow your hint. If I get a solution i'ill post here in this thread, otherwise I'll change distro

Salvatore

Show quoted text 7 lines
-- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email