Install xed text editor on Buster? [Solved]

If none of the more specific forums is the right place to ask

Install xed text editor on Buster? [Solved]

Postby debbiethekiwi » 2020-01-14 02:05

Is it possible? if so how? I've searched and find instructions for Debian 8 or 9 which leave me with unsolveable dependencies; the version of xed now on github no longer uses autogen.sh but a meson build system which I've never use before...
Last edited by debbiethekiwi on 2020-01-14 21:02, edited 1 time in total.
debbiethekiwi
 
Posts: 18
Joined: 2019-08-31 04:15

Re: Install xed text editor on Buster?

Postby Chrisdb » 2020-01-14 06:11

debbiethekiwi wrote:the version of xed now on github no longer uses autogen.sh but a meson build system which I've never use before...

The install procedure seems straightforward:
Code: Select all
 % meson . build            # run the `configure' script
 % ninja -v -C build      # build xed
 [ Become root if necessary ]
 % ninja install -v  -C  build   # install xed


Just make sure you have 'meson' installed:
Code: Select all
sudo apt-get update
sudo apt-get install meson


If you're not sure, you can try to build it in a chroot

btw, here's a quick guide:
https://mesonbuild.com/Quick-guide.html
Chrisdb
 
Posts: 273
Joined: 2018-04-10 07:16

Re: Install xed text editor on Buster?

Postby debbiethekiwi » 2020-01-14 21:01

Just make sure you have 'meson' installed:

Sorry, I'm old-fashioned, gcc and make were good enough ... :wink:
plus, not intending to compile debian 'packages' I hadn't installed everthing on the build-essential list, so meson gave me dependency agony. Eventually built and installed but
Code: Select all
(xed:14161): GLib-GIO-ERROR **: 10:20:05.521: Settings schema 'org.x.editor.preferences.editor' is not installed
Trace/breakpoint trap

running
Code: Select all
meson --prefix=/usr . build
wasn't sufficient, it also needed
Code: Select all
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/

as described at https://github.com/linuxmint/xed/issues/265
all going and happy camping now, thanks Chrisdb
debbiethekiwi
 
Posts: 18
Joined: 2019-08-31 04:15

Re: Install xed text editor on Buster? [Solved]

Postby stevepusser » 2020-01-15 19:37

plus, not intending to compile debian 'packages' I hadn't installed everthing on the build-essential list


Did you think the metapackage was named build-essential for no reason?
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12000
Joined: 2009-10-06 05:53

Re: Install xed text editor on Buster? [Solved]

Postby capbonhislf » 2020-05-15 08:22

stevepusser wrote:
plus, not intending to compile debian 'packages' I hadn't installed everthing on the build-essential list


Did you think the metapackage was named build-essential for no reason?



Thank you very much. I am also looking for the same. Can some one please respond.
capbonhislf
 
Posts: 1
Joined: 2020-05-15 08:21

Re: Install xed text editor on Buster? [Solved]

Postby Bloom » 2020-05-15 09:42

Compiling xed yourself has the disadvantage that it cannot be updated automatically and you would have to find and compile each new version manually.
There is a version of xed in de repository of Linux Mint Debian Edition. You could add that repository to Debian with a -10 preference and then install it and have it updated.

Adding the repository to Debian:
Code: Select all
echo "deb http://packages.linuxmint.com/ debbie main upstream import backport romeo"|sudo tee /etc/apt/sources.list.d/mint.list

Add the proper key to your system:
Code: Select all
sudo apt-key adv --recv-keys --keyserver pgpkeys.eu 3EE67F3D0FF405B2

Make sure the preferences indicate that nothing is to be installed automatically. Edit /etc/apt/preferences.d/10-prefrules and make it contain this:
Code: Select all
Package: *
Pin: release a=stable
Pin-Priority: 900
Package: *
Pin: release o=Debian
Pin-Priority: -10

Then update the packages list:
Code: Select all
sudo apt update

And install xed:
Code: Select all
sudo apt install xed/debbie

Done!
User avatar
Bloom
 
Posts: 291
Joined: 2017-11-11 12:23

Re: Install xed text editor on Buster? [Solved]

Postby cuckooflew » 2020-05-15 12:03

There is a version of xed in de repository of Linux Mint Debian Edition. You could add that repository to Debian with a -10 preference and then install it and have it updated.

Not my idea of good advice, READ ME FIRST
Ubuntu, Mint or other derivative repositories are not compatible with Debian!

And also
Don't blindly follow bad advice

Unfortunately there's a lot of bad advice on the Internet. Tutorials found on blogs, forums and other sites often include instructions that will break your system in subtle ways.
Better yet read it all.
Especially if you are new to Debian, and if you still don't believe me, read the topics in this thread:
http://forums.debian.net/viewtopic.php?f=20&t=114130#p539707

The OP here took the more correct path , compiling it for the specific version, etc . is the better method. But also that is for more advanced users, of course it is all way good when newbies try to learn as well.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Install xed text editor on Buster? [Solved]

Postby Bloom » 2020-05-15 13:07

This is a repo for Linux Mint DEBIAN EDITION. The xed editor in there is perfectly compatible. I have tried it myself before advising it.
User avatar
Bloom
 
Posts: 291
Joined: 2017-11-11 12:23

Re: Install xed text editor on Buster? [Solved]

Postby None1975 » 2020-05-15 14:28

Very strange. Why do you need that program? After all, standard Debian application repositories have great applications of this type, for example fte

https://packages.debian.org/buster/fte
OS: Debian 10.3 Buster / WM: xmonad
Debian Wiki | DontBreakDebian, My config files on github
User avatar
None1975
 
Posts: 1019
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Install xed text editor on Buster? [Solved]

Postby Head_on_a_Stick » 2020-05-17 12:41

Bloom wrote:Edit /etc/apt/preferences.d/10-prefrules and make it contain this:
Code: Select all
Package: *
Pin: release a=stable
Pin-Priority: 900
Package: *
Pin: release o=Debian
Pin-Priority: -10

That doesn't do what you think it does. Have you read apt_preferences(5)?

In my buster system that source and preferences file results in an instant FrankenDebian.

This is better:
Code: Select all
Package: *
Pin release o=linuxmint
Pin-Priority: 100

^ That gives the Mint repository the same priority as buster-backports.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12511
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Install xed text editor on Buster? [Solved]

Postby stevepusser » 2020-05-18 02:13

Safest of all is to rebuild the package yourself on Debian in the same manner as for simple backports or from a PPA, as in the Debian wiki. That way, you don't really have to be familiar with the ins and outs of meson, etc.--just the recipe for porting over packages from source. You only have to open the hood and get your hands dirty if something goes wrong with the build.

Isn't xed a forked version of ye olde time GNOME 2 gedit, anyway? What sets it apart from the zillion other text editors you can get?
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12000
Joined: 2009-10-06 05:53


Return to General Questions

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable