Note: Since TechneNotes is a newly developed project, there isn't a .deb
package yet, so the software is currently not available through the software manager.
- Before installing TechneNotes, you MUST install its dependencies
Install themeson
,python3-peewee
,python3-markdown
, andpython3-lxml
packages through the software manager - Download the Github compressed project folder on your computer (e.g.
/home/[user]/TechneNotes
). - Extract the compressed folder. Inside the
/home/[user]/TechneNotes
folder you should now have a series of files and folders (e.g.meson.build
,src
)
Now install the software using one of the following methods. It is recommended to use the provided install script (method 1).
- Open a terminal and cd into the main folder of the project
- Give the shell permission to execute the install script:
chmod 755 install.sh
- Run
./install.sh
(do NOT run the command withsudo
- The script will automatically ask for superuser privileges when needed) - Launch the software with the newly created menu entry or
cd
into thesrc
folder and launchpython3 technenotes.py
Note: for TechneNotes to appear in the start menu, you may need to log out and log back in (this will refresh the start menu) or restart the pc
- Open a terminal and cd into the main folder of the project
- Run
meson setup builddir
to initialize the build - Cd into the build folder:
cd builddir
- Build the code by running
ninja
(if Meson version <= 0.55.0) ormeson compile
(if Meson version > 0.55.0) - Install files by running
ninja install
(if Meson version <= 0.55.0) ormeson install
(if Meson version > 0.55.0) - Launch the software with the newly created menu entry or
cd
into thesrc
folder and launchpython3 technenotes.py
Note: for TechneNotes to appear in the start menu, you may need to log out and log back in (this will refresh the start menu) or restart the pc
- GSettings files
Copy thedata/ovh.technenotes.myapp.gschema.xml
file into the/usr/local/share/glib-2.0/schemas
directory
Then, run the commandglib-compile-schemas /usr/local/share/glib-2.0/schemas/
- GtkSource syntax highlighting files
Copy thedata/markdown-extra-tech.lang
file into the/usr/local/share/gtksourceview-3.0/language-specs/
directory Copy thedata/codezone-tech.xml
file into the/usr/local/share/gtksourceview-3.0/styles/
directory - Add the
Lato-Regular
font to the system fonts
Copy thedata/Lato-Regular.ttf
anddata/SIL Open Font License.txt
to the/usr/local/share/fonts/Lato-Regular
directory - Launch the software
Use the newly created menu entry or
cd
into thesrc
folder and launchpython3 technenotes.py
For TechneNotes to appear in the start menu, you may need to log out and log back in (this will refresh the start menu) or restart the pc
Note: instead of the usr/local/...
path you can also use /home/[user]/.local/...
. The difference is that usr/local
is used for a system-wide installation while /home/[user]/.local/...
only works for the current user.
Uninstall the software using one of the following methods. It is recommended to use the provided uninstall script (method 1).
- Open a terminal and cd into the main folder of the project
- Give the shell permission to execute the uninstall script:
chmod 755 uninstall.sh
- Run
./uninstall.sh
(do NOT run the command withsudo
- The script will automatically ask for superuser privileges when needed)
- Open a terminal and cd into the main folder of the project
- Cd into the build folder:
cd builddir
- Install files by running
ninja uninstall
(if Meson version <= 0.55.0) ormeson uninstall
(if Meson version > 0.55.0) - Reset the software GSettings by running
gsettings reset-recursively ovh.technenotes.myapp
(or manually delete the GSettings entryovh.technenotes.myapp
using thedconf-editor
GUI application)
- GSettings files
Delete theovh.technenotes.myapp.gschema.xml
file from the/usr/local/share/glib-2.0/schemas
directory
Then, run the commandglib-compile-schemas /usr/local/share/glib-2.0/schemas/
- GtkSource syntax highlighting files
Delete themarkdown-extra-tech.lang
file from the/usr/local/share/gtksourceview-3.0/language-specs/
directory Delete thecodezone-tech.xml
file from the/usr/local/share/gtksourceview-3.0/styles/
directory - Remove the
Lato-Regular
font from the system fonts
Delete theLato-Regular.ttf
andSIL Open Font License.txt
from the/usr/local/share/fonts/Lato-Regular
directory
Note (about method 3):
In the above steps, use the usr/local/...
path if:
- you installed the software with either method 1 or 2
- you installed the software with method 3, and you used the
usr/local
path to perform a system-wide installation
In the above steps, use the /home/[user]/.local/...
path if:
- you installed the software with method 3, and you used the
/home/[user]/.local/...
path to make changes only for the current user.
Problem:
In some newer distributions, the javascript syntax is not properly highlighted in the markdown editor, due to the system lang definition in the javascript.lang
file.
Solution:
Copy the data/javascript.lang
file into the /usr/local/share/gtksourceview-3.0/language-specs/
folder.
This will simply override the syntax definition. You can easily revert back to the default by deleting the file.