|
| 1 | +.. _main_install_linux: |
| 2 | + |
| 3 | +******************* |
| 4 | +Installing on Linux |
| 5 | +******************* |
| 6 | + |
| 7 | +.. _GitHub: https://github.com/vkbo/novelWriter |
| 8 | +.. _PPA: https://launchpad.net/~vkbo/+archive/ubuntu/novelwriter |
| 9 | +.. _Pre-Release PPA: https://launchpad.net/~vkbo/+archive/ubuntu/novelwriter-pre |
| 10 | +.. _Releases: https://github.com/vkbo/novelWriter/releases |
| 11 | +.. _AppImage: https://appimage.org/ |
| 12 | +.. _Fedora repository: https://packages.fedoraproject.org/pkgs/novelwriter/novelwriter/ |
| 13 | + |
| 14 | +There are different ways to install novelWriter, depending on your Linux distro. Here is a quick overview. |
| 15 | + |
| 16 | + |
| 17 | +Fedora |
| 18 | +------ |
| 19 | + |
| 20 | +novelWriter is available in the main `Fedora repository`_ as of Fedora 41. |
| 21 | + |
| 22 | +You can install it with: |
| 23 | + |
| 24 | +.. code-block:: bash |
| 25 | +
|
| 26 | + sudo dnf install novelwriter |
| 27 | +
|
| 28 | +
|
| 29 | +Ubuntu |
| 30 | +------ |
| 31 | + |
| 32 | +A Personal Package Archive (PPA) is available for novelWriter on Launchpad. This is the most |
| 33 | +straightforward way to install and update novelWriter on Ubuntu. It also works for other |
| 34 | +Debian-based distros, but see the next section for more details on this. |
| 35 | + |
| 36 | +The Launchpad packages `are signed by the author <https://launchpad.net/~vkbo>`__. |
| 37 | + |
| 38 | +You can add the Ubuntu PPA_ and install novelWriter with the following commands. |
| 39 | + |
| 40 | +.. tab-set:: |
| 41 | + |
| 42 | + .. tab-item:: Releases |
| 43 | + :selected: |
| 44 | + |
| 45 | + .. code-block:: bash |
| 46 | +
|
| 47 | + sudo add-apt-repository ppa:vkbo/novelwriter |
| 48 | + sudo apt update |
| 49 | + sudo apt install novelwriter |
| 50 | +
|
| 51 | + .. tab-item:: Pre-Releases |
| 52 | + |
| 53 | + .. code-block:: bash |
| 54 | +
|
| 55 | + sudo add-apt-repository ppa:vkbo/novelwriter-pre |
| 56 | + sudo apt update |
| 57 | + sudo apt install novelwriter |
| 58 | +
|
| 59 | +
|
| 60 | +Debian and Mint |
| 61 | +--------------- |
| 62 | + |
| 63 | +A Debian package can be downloaded from :ref:`main_download`, or from the Releases_ page on GitHub_. |
| 64 | +This package should work on both Debian, Ubuntu and Linux Mint, at least. |
| 65 | + |
| 66 | +The install instructions for Ubuntu do not work on Debian and Mint as they are Ubuntu-specific. |
| 67 | +Instead, do one of the following: |
| 68 | + |
| 69 | +.. tab-set:: |
| 70 | + |
| 71 | + .. tab-item:: Debian 13 (Trixie) and Later |
| 72 | + :selected: |
| 73 | + |
| 74 | + As of Debian 13 (Trixie) and other Debian derivatives, the keyring format has changed. |
| 75 | + The following instructions use Sequoia to install the key in the correct format, and sets up |
| 76 | + the source file in the new format. |
| 77 | + |
| 78 | + If you don't have Sequoia installed, first run: |
| 79 | + |
| 80 | + .. code-block:: bash |
| 81 | +
|
| 82 | + sudo apt install sq |
| 83 | +
|
| 84 | + Import the keyring: |
| 85 | + |
| 86 | + .. code-block:: bash |
| 87 | +
|
| 88 | + sudo sq network keyserver --server hkps://keyserver.ubuntu.com search "F19F1FCE50043114" \ |
| 89 | + --output /usr/share/keyrings/novelwriter-ppa-keyring.gpg --overwrite |
| 90 | +
|
| 91 | + Add the source file: |
| 92 | + |
| 93 | + .. tab-set:: |
| 94 | + |
| 95 | + .. tab-item:: Releases |
| 96 | + :selected: |
| 97 | + |
| 98 | + .. code-block:: bash |
| 99 | +
|
| 100 | + sudo sh -c "cat > /etc/apt/sources.list.d/novelwriter.sources" << EOF |
| 101 | + Types: deb |
| 102 | + URIs: http://ppa.launchpad.net/vkbo/novelwriter/ubuntu/ |
| 103 | + Suites: noble |
| 104 | + Components: main |
| 105 | + Signed-By: /usr/share/keyrings/novelwriter-ppa-keyring.gpg |
| 106 | + EOF |
| 107 | +
|
| 108 | + .. tab-item:: Pre-Releases |
| 109 | +
|
| 110 | + .. code-block:: bash |
| 111 | +
|
| 112 | + sudo sh -c "cat > /etc/apt/sources.list.d/novelwriter-pre.sources" << EOF |
| 113 | + Types: deb |
| 114 | + URIs: http://ppa.launchpad.net/vkbo/novelwriter-pre/ubuntu/ |
| 115 | + Suites: noble |
| 116 | + Components: main |
| 117 | + Signed-By: /usr/share/keyrings/novelwriter-ppa-keyring.gpg |
| 118 | + EOF |
| 119 | +
|
| 120 | + .. tab-item:: Debian 12 (Bookworm) and Earlier |
| 121 | +
|
| 122 | + For Debian 12 (Bookworm) and older, and equivalent derivatives, use the old keyring format |
| 123 | + and apt sources list file format. |
| 124 | +
|
| 125 | + Import the keyring: |
| 126 | +
|
| 127 | + .. code-block:: bash |
| 128 | +
|
| 129 | + sudo gpg --no-default-keyring --keyring /usr/share/keyrings/novelwriter-ppa-keyring.gpg \ |
| 130 | + --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys F19F1FCE50043114 |
| 131 | +
|
| 132 | + Add the source list: |
| 133 | +
|
| 134 | + .. tab-set:: |
| 135 | +
|
| 136 | + .. tab-item:: Releases |
| 137 | + :selected: |
| 138 | +
|
| 139 | + .. code-block:: bash |
| 140 | +
|
| 141 | + echo "deb [signed-by=/usr/share/keyrings/novelwriter-ppa-keyring.gpg] http://ppa.launchpad.net/vkbo/novelwriter/ubuntu noble main" | sudo tee /etc/apt/sources.list.d/novelwriter.list |
| 142 | +
|
| 143 | + .. tab-item:: Pre-Releases |
| 144 | +
|
| 145 | + .. code-block:: bash |
| 146 | +
|
| 147 | + echo "deb [signed-by=/usr/share/keyrings/novelwriter-ppa-keyring.gpg] http://ppa.launchpad.net/vkbo/novelwriter-pre/ubuntu noble main" | sudo tee /etc/apt/sources.list.d/novelwriter-pre.list |
| 148 | +
|
| 149 | + .. tip:: |
| 150 | + If you get an error message like ``gpg: failed to create temporary file`` when importing the key |
| 151 | + from the Ubuntu keyserver, try creating the folder it fails on, and import the key again: |
| 152 | +
|
| 153 | + .. code-block:: bash |
| 154 | +
|
| 155 | + sudo mkdir -m 700 /root/.gnupg/ |
| 156 | +
|
| 157 | +**Install novelWriter** |
| 158 | +
|
| 159 | +Then run the update and install commands as for Ubuntu: |
| 160 | +
|
| 161 | +.. code-block:: bash |
| 162 | +
|
| 163 | + sudo apt update && sudo apt install novelwriter |
| 164 | +
|
| 165 | +
|
| 166 | +AppImage Releases |
| 167 | +----------------- |
| 168 | +
|
| 169 | +For other Linux distros than the ones mentioned above, the primary option is AppImage_. These are |
| 170 | +completely standalone images for the app that include the necessary environment to run novelWriter. |
| 171 | +They can of course be run on any Linux distro, if you prefer this to native packages. |
| 172 | +
|
| 173 | +.. note:: |
| 174 | + novelWriter generally doesn't support Python versions that have reached end of life. If your |
| 175 | + Linux distro still uses older Python versions and novelWriter won't run, you may want to try the |
| 176 | + AppImage instead. |
0 commit comments