Would like to use meld to reverse pacdiff

i have a command line only server,
what i did/want to do, is move http.conf to httpd.conf.old and then move httpd.conf.pacnew to httpd.conf then run a "pacdiff" on it, guess pacdiff uses "meld", and move only my edits over to the new conf file.
i installed meld, and gksu among other things (pygtksourceview2 for syntax highlighting
note, when i installed meld, im almost regretting, but chose GTK (1 of 3) as the display option. 
i cant run meld, i am getting display errors  as mentioend in this post https://bbs.archlinux.org/viewtopic.php?id=142631 and getting these display errors when run via ssh. 
$ meld
/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
/usr/bin/meld:155: GtkWarning: IA__gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
gtk.icon_theme_get_default().append_search_path(meld.paths.icon_dir())
Traceback (most recent call last):
File "/usr/bin/meld", line 155, in <module>
gtk.icon_theme_get_default().append_search_path(meld.paths.icon_dir())
AttributeError: 'NoneType' object has no attribute 'append_search_path'
$ echo $DISPLAY
#no display returning
[wolfdogg@falcon ~]$ gksudo meld
(gksudo:1668): Gtk-WARNING **: cannot open display:
[wolfdogg@falcon ~]$ export DISPLAY=:1
[wolfdogg@falcon ~]$ echo $DISPLAY
:1
[wolfdogg@falcon ~]$ gksudo meld
(gksudo:1672): Gtk-WARNING **: cannot open display: :1
[wolfdogg@falcon ~]$ export DISPLAY=:0
[wolfdogg@falcon ~]$ gksudo meld
(gksudo:1673): Gtk-WARNING **: cannot open display: :0
[wolfdogg@falcon ~]$ export DISPLAY=0
[wolfdogg@falcon ~]$ gksudo meld
(gksudo:1674): Gtk-WARNING **: cannot open display: 0
[wolfdogg@falcon ~]$ export DISPLAY=1
[wolfdogg@falcon ~]$ gksudo meld
(gksudo:1675): Gtk-WARNING **: cannot open display: 1
i tried a couple things from the actual console and didnt have luck there either so it appears its not a display via ssh terminal thing..
i tried to remove meld, then re sync it in hopes that it would give me an option to use another display platform, but i never got that option.  i would probably be testing that option first if i knew how to remove its attachment to GTK and select one of the other options. 
is there an easier way to do this?
EDIT: looks like what i was looking for was right in front of me the whole time.  vim -d httpd.conf http.conf.old,   if i were to go with this option, how would i get the highlighting to work correctly on this?  all i see if the "11 lines---" portion in green, and everything else on grey, on black of course.  no syntax highlighting whatsoever. i may need to add syntax highlighting for .conf files for vim, but would be nice if the differences were highlighted as well...
how are you guys doing this on your setups?
Last edited by Inxsible (2014-03-17 16:57:08)

wolfdogg wrote:guess pacdiff uses "meld"
pacdiff is a bash script, you can see what it does:
diffprog=${DIFFPROG:-vimdiff}
Wrt the display errors: are you running just a tty or an X?
Wrt the highlighting issue: are we talking about vim?
When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode
like this
It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Similar Messages

Maybe you are looking for