Need to install a Script-fu or Python script in Ubuntu Linux
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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
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?
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/'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.