AppImages: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Scribus AppImages are scribus 1.5svn daily build and packaged archives by Travis CE, runnable on most or all linux OS.
Scribus AppImages are scribus 1.5svn daily build and packaged archives by Travis CE, runnable on most or all linux OS.


Latest version's link can be found on impagina's blog : http://impagina.org/download
# <big>Download and run</big>
Links to the latest version can be found  


Download, make executable, run... Sometimes it runs fine, sometime it doesnt.
- 1.4 stable version and 1.5.5 version : on http://impagina.org/download
 
- When the Qt6 issue (https://gitlab.com/scribus/scribus/-/issues/17) will be fixed, nightly builds (cutting edge unstable version) : on https://gitlab.com/scribus/scribus/-/jobs
 
Download, make executable, run...  
 
Depending on what is already installed on your computer, the Appimage will run fine, or it won't at all.
 
In case it doesnt run, here are 2 fixes that might, or might not, work for you.
 
# <big>Fix by Török</big>


Török shares how to improve this :
Török shares how to improve this :
Line 13: Line 24:


<code>#!/bin/bash
<code>#!/bin/bash
cd ~/Scribus
cd ~/Scribus
LD_PRELOAD=/usr/lib64/libxcb.so.1 ./Scribus-1.5.3.svn.21360-x86_64.AppImage # here is the actual appimage filename I use
LD_PRELOAD=/usr/lib64/libxcb.so.1 ./Scribus-1.5.3.svn.21360-x86_64.AppImage # here is the actual appimage filename I use
</code>
</code>


2. Even though I have a start entry in the main menu, I have to start scribus with the above executable. If not, and I run it from the start menu, or by double clicking on an .sla file, the programme freezes down, when trying to do any file operation - opening, or saving. It seems, that it has problem with permissions, because, if run scribus as root), everything works fine.
2. Even though I have a start entry in the main menu, I have to start scribus with the above executable. If not, and I run it from the start menu, or by double clicking on an .sla file, the programme freezes down, when trying to do any file operation - opening, or saving. (It seems it has problems with permissions because everything is fine when i run scribus as root).
 
 
# <big>Fix by probono</big>
 
The "Nightly" Scribus AppImages on http://impagina.org/download/ do not run because the Python modules are not bundled (but should be):
 
<code>me@host:~$ /home/me/Downloads/Scribus-git44e637c-glibc2.14.glibc2.14-x86_64.AppImage
 
ImportError: No module named site
</code>
 
This can be fixed by running, in the AppDir:
 
<code>( cd usr/lib ; cp -r /usr/lib/python2.7 . )</code>
 
Now it launches for me, without the error:
 
<code>./AppRun</code>
 
While we are at it, we could update to making a type 2 (squashfs based) AppImage using appimagetool.
 
Also, Scribus and the embedded Python have hardcoded /usr which we patch away:
 
<code>cd usr/ ; find . -type f -exec sed -i -e 's|/usr|././|g' {} \; ; cd ..</code>
 
Tcl/Tk, Tkinter (for Calendar script):
 
<code>ldd /usr/li*/python2.*/lib-dynload/_tkinter.so | grep "=>" | awk
 
'{print $3}' | xargs -I '{}' cp -v '{}' ./usr/lib || true
 
cp -r /usr/li*/tcl8.5 /usr/li*/tk8.5 usr/lib/
 
cp -r /usr/share/tcl* /usr/share/tk* usr/share/
</code>
 
# <big><big>Installation on OpenSuse, by Der Sam</big></big>
 
An example for OpenSuse Leap KDE AppImage installation:
 
1. You can take the AppImage file, but you have to install first the AppImage demon.
 
<code>
sudo zypper ar http://download.opensuse.org/repositories/devel:/tools:/building/openSUSE_Leap_42.2/ dev-tools-building
sudo zypper ref
sudo zypper in appimaged
</code>
 
2. Save the AppImage file from sourceforge on your computer, for example in that directory:
/home/user/scribus/scribus-1.5.3-linux-x86_64.AppImage
 
<code>mkdir /home/user/scribus (makes a directory with the name scribus)
</code>
 
or /usr/local/bin/scribus-1.5.3-linux-x86_64.AppImage but in that directory you need root rights
 
 
3. make the srcibus appimage file executable
 
<code>chmod u+x /home/user/scribus/scribus-1.5.3-linux-x86_64.AppImage
</code>
 
4. You can start srcibus from the command line with
 
<code>./home/user/scribus/scribus-1.5.3-linux-x86_64.AppImage</code>
 
5. Or you can make a .desktop file as a desktop icon (in KDE)
 
Here is an example to create a .desktop file with vi :
 
<code>vi /home/user/.local/share/applications/scribus.desktop</code> (or in /usr/share/applications/ for all linux users on your computer)
 
In VI press „i“ for insert and than copy that below with „ctrl + c“ and insert with „ctrl + shift + v“
 
<code>
[Desktop Entry]
 
Encoding=UTF-8
 
Name=Scribus-1.5.3
 
Comment=Scribus
 
Type=Application
 
Exec=/home/user/scribus/scribus-1.5.3/scribus-1.5.3-linux-x86_64.AppImage
 
Icon=/home/spc/scribus/scribus.png
 
Name=Scribus-1.5.3
</code>
 
Exit the insert mode with „ESC“
 
then type :wq!
 
You can download a scribus picture from Google and save it to the scribus directory.
Please don’t forget to re login in KDE.
 
# <big><big>AppImage creation </big></big>
 
Check how the appimage is created : https://github.com/probonopd/AppImages/blob/master/recipes/scribus/Recipe but keep in mind that was made for CentOS 6.
 
 
# <big><big>See also</big></big>
See also [[flatpak]] runnable scribus.

Latest revision as of 19:50, 29 May 2023

Scribus AppImages are scribus 1.5svn daily build and packaged archives by Travis CE, runnable on most or all linux OS.

  1. Download and run

Links to the latest version can be found

- 1.4 stable version and 1.5.5 version : on http://impagina.org/download

- When the Qt6 issue (https://gitlab.com/scribus/scribus/-/issues/17) will be fixed, nightly builds (cutting edge unstable version) : on https://gitlab.com/scribus/scribus/-/jobs

Download, make executable, run...

Depending on what is already installed on your computer, the Appimage will run fine, or it won't at all.

In case it doesnt run, here are 2 fixes that might, or might not, work for you.

  1. Fix by Török

Török shares how to improve this :

I have three different Linux distributions installed on my desktop computer. Basically I use PCLinuxOS KDE, but I also installed Open SUSE and now Kubuntu. When I used to try scribus 1.5.0 (if I remember well) appimag, it worked fine. Then, after some updates it did not start, that is why I installed Open SUSE and Kubuntu, as they were told to run scribus 1.5.x smoothly. With the help of Google and after practicing with scribus.appinage, finally I worked out a method to run 1.5.2 and 1.5.3 versions from any distribution I use:

1. I made a Scribus folder in my home directory, where besides the appimage file I also made an executable file with the following content:

#!/bin/bash

cd ~/Scribus

LD_PRELOAD=/usr/lib64/libxcb.so.1 ./Scribus-1.5.3.svn.21360-x86_64.AppImage # here is the actual appimage filename I use

2. Even though I have a start entry in the main menu, I have to start scribus with the above executable. If not, and I run it from the start menu, or by double clicking on an .sla file, the programme freezes down, when trying to do any file operation - opening, or saving. (It seems it has problems with permissions because everything is fine when i run scribus as root).


  1. Fix by probono

The "Nightly" Scribus AppImages on http://impagina.org/download/ do not run because the Python modules are not bundled (but should be):

me@host:~$ /home/me/Downloads/Scribus-git44e637c-glibc2.14.glibc2.14-x86_64.AppImage

ImportError: No module named site

This can be fixed by running, in the AppDir:

( cd usr/lib ; cp -r /usr/lib/python2.7 . )

Now it launches for me, without the error:

./AppRun

While we are at it, we could update to making a type 2 (squashfs based) AppImage using appimagetool.

Also, Scribus and the embedded Python have hardcoded /usr which we patch away:

cd usr/ ; find . -type f -exec sed -i -e 's|/usr|././|g' {} \; ; cd ..

Tcl/Tk, Tkinter (for Calendar script):

ldd /usr/li*/python2.*/lib-dynload/_tkinter.so | grep "=>" | awk

'{print $3}' | xargs -I '{}' cp -v '{}' ./usr/lib || true

cp -r /usr/li*/tcl8.5 /usr/li*/tk8.5 usr/lib/

cp -r /usr/share/tcl* /usr/share/tk* usr/share/

  1. Installation on OpenSuse, by Der Sam

An example for OpenSuse Leap KDE AppImage installation:

1. You can take the AppImage file, but you have to install first the AppImage demon.

sudo zypper ar http://download.opensuse.org/repositories/devel:/tools:/building/openSUSE_Leap_42.2/ dev-tools-building sudo zypper ref sudo zypper in appimaged

2. Save the AppImage file from sourceforge on your computer, for example in that directory: /home/user/scribus/scribus-1.5.3-linux-x86_64.AppImage

mkdir /home/user/scribus (makes a directory with the name scribus)

or /usr/local/bin/scribus-1.5.3-linux-x86_64.AppImage but in that directory you need root rights


3. make the srcibus appimage file executable

chmod u+x /home/user/scribus/scribus-1.5.3-linux-x86_64.AppImage

4. You can start srcibus from the command line with

./home/user/scribus/scribus-1.5.3-linux-x86_64.AppImage

5. Or you can make a .desktop file as a desktop icon (in KDE)

Here is an example to create a .desktop file with vi :

vi /home/user/.local/share/applications/scribus.desktop (or in /usr/share/applications/ for all linux users on your computer)

In VI press „i“ for insert and than copy that below with „ctrl + c“ and insert with „ctrl + shift + v“

[Desktop Entry]

Encoding=UTF-8

Name=Scribus-1.5.3

Comment=Scribus

Type=Application

Exec=/home/user/scribus/scribus-1.5.3/scribus-1.5.3-linux-x86_64.AppImage

Icon=/home/spc/scribus/scribus.png

Name=Scribus-1.5.3

Exit the insert mode with „ESC“

then type :wq!

You can download a scribus picture from Google and save it to the scribus directory. Please don’t forget to re login in KDE.

  1. AppImage creation

Check how the appimage is created : https://github.com/probonopd/AppImages/blob/master/recipes/scribus/Recipe but keep in mind that was made for CentOS 6.


  1. See also

See also flatpak runnable scribus.