LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-15-2018, 12:26 PM   #1
LinuxLiker
Member
 
Registered: Sep 2006
Location: Florida
Distribution: Ubuntu, Vector Linux, Mandriva
Posts: 81

Rep: Reputation: 15
Need to install a Script-fu or Python script in Ubuntu Linux


Hello -
I need to add a layer effects plug-in to the image editing program GIMP.
Adding this will require using the terminal window in Ubuntu. I don't use the terminal enough to fully understand the instructions I've found online, so I hoped someone could break them down.
Here's some background about the issue:
The layer effects are available in python and script-fu versions. GIMP can accommodate either, although I'd rather use the python version.
I've found both plug-ins online and neither seems to be a "package" that I can follow instructions and apply. Instead both look like a list of code.
The information I've found about installing either version refers to putting it in the correct Ubuntu Linux folder, which seems to require opening a terminal and using the correct commands. I've found a Ubuntu user help page with instructions but I think they're generalized and that I'd need to know more than I do to insure they work for my computer.
So that's the help I need. I've included links to the wiki page I mentioned, and the page from the Ubuntu user help site about installing python libraries.

https://en.wikibooks.org/wiki/GIMP/Installing_Plugins

https://askubuntu.com/questions/4090...ository#409462

Thank you for any help you can give.
 
Old 07-15-2018, 12:38 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,879

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
would be nice to post what did you really try, what is that plugin exactly.
 
Old 07-15-2018, 08:48 PM   #3
LinuxLiker
Member
 
Registered: Sep 2006
Location: Florida
Distribution: Ubuntu, Vector Linux, Mandriva
Posts: 81

Original Poster
Rep: Reputation: 15
Need to install a Script-fu or Python script in Ubuntu Linux

I tried attaching the files but they're not a format this website will allow.

I have opened the script-fu file and python file and tried copying and pasting them into this document but each file had too many characters.
The files are called layerfx.scm and layerfx.py
 
Old 07-15-2018, 08:56 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,732

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Those instructions seem fairly complete...where did you run into trouble and/or what did you not understand?
 
Old 07-19-2018, 09:32 PM   #5
LinuxLiker
Member
 
Registered: Sep 2006
Location: Florida
Distribution: Ubuntu, Vector Linux, Mandriva
Posts: 81

Original Poster
Rep: Reputation: 15
Need to install a Script-fu or Python script in Ubuntu Linux

I've tried to install the python script using the commands suggested on the wiki page I cited above. The python script is located in my downloads folder. Seemingly, the path to the file is /home/gil/downloads/layerfx.py. I've used that path in the command suggested by the wiki page in my terminal window and keep getting this result - cp: cannot stat '/home/gil/downloads/layerfx.py': No such file or directory. I've tried different variations of the path to my layer fx script and get the same message. (I've pasted my attempts from the terminal window below).

gil@gil-ThinkPad-T400:~$ sudo cp /home/gil/downloads/layerfx.py /app/lib/gimp/2.0/plug-ins
[sudo] password for gil:
cp: cannot stat '/home/gil/downloads/layerfx.py': No such file or directory
gil@gil-ThinkPad-T400:~$ sudo cp /gil/downloads/layerfx.py /app/lib/gimp/2.0/plug-ins
cp: cannot stat '/gil/downloads/layerfx.py': No such file or directory
gil@gil-ThinkPad-T400:~$ sudo cp /downloads/layerfx.py /app/lib/gimp/2.0/plug-ins
cp: cannot stat '/downloads/layerfx.py': No such file or directory
gil@gil-ThinkPad-T400:~$ sudo cp/home/gil/downloads/layerfx.py /a[[/lib/gimp/2.0/plug-ins
sudo: cp/home/gil/downloads/layerfx.py: command not found
gil@gil-ThinkPad-T400:~$ sudo cp /home/gil/downloads/gimp-script.py /app/lib/gimp/2.0/plug-ins
cp: cannot stat '/home/gil/downloads/gimp-script.py': No such file or directory
 
Old 07-20-2018, 12:31 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,879

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
first you need to find that file, because currently it is not found. Where did you put it?
 
Old 07-20-2018, 08:19 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator response

Moved: This thread is more suitable in <Ubuntu> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 07-21-2018, 07:55 PM   #8
MattRW
Member
 
Registered: Feb 2018
Location: Los Angeles area
Distribution: ubuntu, redhat, fedora
Posts: 34

Rep: Reputation: Disabled
try /usr/lib/gimp/2.0/plug-ins/
 
Old 07-22-2018, 04:39 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,526

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
If the commands you are posting were copied/pasted from the terminal then try changing 'downloads' to 'Downloads' due to case sensitivity.
Running: ls /home/gil, do you see a Downloads directory?
 
Old 07-22-2018, 09:01 AM   #10
MattRW
Member
 
Registered: Feb 2018
Location: Los Angeles area
Distribution: ubuntu, redhat, fedora
Posts: 34

Rep: Reputation: Disabled
I'm running Ubuntu 16.04. In response to this Q I installed gimp, it's version 2.8.
The place I would put personal plug-ins is in ~/.gimp-2.8/plug-ins/ (where ~ is like /home/gil).
Try `ls ~/.gimp-2.8/'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing a simple python script on Ubuntu 14.04 JoseCuervo Programming 6 03-19-2015 11:20 AM
[SOLVED] can i write a shell script in /etc/init.d that will run a python script? lapishater276 Debian 1 06-27-2014 03:23 PM
How to close open ports using a python script or a shell script in python ?? apanimesh061 Programming 3 11-20-2011 12:31 AM
mysterious discrepancy b/w script results at terminal and in python script cedardoc Linux - Newbie 1 08-03-2010 03:59 PM
python cgi script and premature end of script headers Neruocomp Programming 1 07-28-2005 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration