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
-
would like to use apex_item to popup a calculator for a text item field, is this possible in apex 4.2.2?
I imagine you could reverse engineer what APEX delivers when you declaratively choose text field with calculator.
For example, the generated source includes an event:
onclick="calculatorPopUp_p_t01();"
These get added to the attributes of your apex_item.text() call.
Alternatively you just paste the entire generated content, escaping the necessary data. -
I switch the power on on my MacBook Pro I get windows7
this is no problem but I love my IPad and would like to use the apple system on my MacBook .
CAn anyone tell me which keys I press to change from windows 7 to Apple most articles I have read tell you it is easy but not one says "firstly press x then press y and when you see c press v so I no idea how to do it,
I am well educated but I am 75 so I do not understand the jargon but I am fairly good at using computers and I do like the app system.
I Would be very pleased if someone can advise me
best regards
TOmReboot, hold the option key down as soon as you hear the chime. When the Boot Manager appears select OSX instead of Windows.
-
I currently have a mini server (OSX10.8.5, server 2.2.2) that I am using Time Machine to back up 4 external drives that are connected to the server via firewire 800. I would like to use Time Machine to back up to a windows network SMB drive. I can see the drive on my desktop but it will not show in the time machine window to be able to select it for use.
Can this be done
Thanks for any and all helpThe supported targets for Time Machine backups are local (direct-connected) disks, and network targets include Time Capsule, a disk hanging off the current-generation AirPort (though not earlier AirPort devices), and OS X Server systems.
The Time Machine storage is based on the HFS+ file system, so I would not expect TM to work with SMB file services.
While there are hacks to allow Time Machine to access network drives, I would not consider those to be reliable. Skim the forum and the 'net for related details, and for previous discussions of setting this up and the related issues that can arise.
Remember to test the recovery with whatever you decide to use; whole point of backups is the ability to restore the data, after all.
If you want to learn more about Time Machine, Pondini is an excellent resource. -
I would like to use my HP officejet pro 8600 and HP officejet pro 8100 for printing envelopes
I would like to use my HP officejet pro 8600 and HP officejet pro 8100 for printing envelopes.
Hi there cv4928,
Could you provide the community with a little more information to help narrow troubleshooting? What operating system are we using and what application will we be printing from?
You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too. -
I installed the latest version of Firefox. The home page is now a google search box. I would like to use my old sbcyahoo desktop with its icons. I am unable to make the change.
Oops. I could have been more clear, sorry.
TOOLS > OPTIONS > GENERAL tab
Under Start-up at the top of GENERAL, you have an option to type in the url or use the tabs to set your homepage to the current page.
Go to your chosen site, open OPTIONS and click 'Use current page.'
Sorry for the shorthand version previously. I blame the cat. -
I have a Samsung Lap top but would like to use Cinema Display. The only connections on my lap top is HDMI and VGA. How can I get it to work?
Thanks Malcolm. I saw this on the apple site
Kanex C247D Single-Link DVI to Mini DisplayPort Converter
Will that work?
I also spoke to someone at apple..They told me to get 2 cables. Mini DisplayPort to Dvi and Dvi to Hdmi..Connect the 2 and it will work...Do you think it will work? Just to save$$$ -
I have my a song purchased from Itunes and would like to use part of it for a ringtone and get all the way thur the process of getting it to my phone but it goes to sync to my phone it doesn't show up in my phone like it says it is suppose to under ringtones. Does anyone have any tips on how to do this.
http://osxdaily.com/2010/09/04/make-free-iphone-ringtones-in-itunes-10/
https://discussions.apple.com/message/17777381 - making a ringtone
Getting ringtones folder to show in iTunes - https://discussions.apple.com/thread/2629494 - iTunes > Preferences. Under the General tab below Show, confirm Ringtones is selected -
How do I use 2 apple id's on one mac? I have my apple id on my mac and would like to use the same mac for my wife's phone and ipad?
Correction, thats two itune id's
-
Three family members use ITunes and would like to use Home Share but the HOme Share set-up guidance states that all devices must use the same Apple ID.
Is there a workaround for this impasse?Three family members use ITunes and would like to use Home Share but the HOme Share set-up guidance states that all devices must use the same Apple ID.
Is there a workaround for this impasse? -
I have 3 different apple devices (iPod Touch, iPad and MacBook Pro) using the same Apple ID and would like to use FaceTime to call from one device to the other. Do I need a different Apple ID for one of the devices in order to do that?
I found this on a related question in the Community:
Yes you can do it. I do it with 4 different devices all using the same Apple ID.
You need to associate different email addresses for each device in order to use those email addresses as the "contact at" email address. The reason the calls are dropping on you now is that what you are trying to do is like calling yourself on your own phone.
You can also create new iCloud accounts on each device simply to use for FaceTime, but I'm guessing that the users of the other two devices have their own email addresses which will make this work for you quite easily.
Take a look at this for more information.
The seems to go against what Gail said and the issue you raised about buying dup apps was my first concern. If this other post is correct, how to I set a different "contact at" in the iPod Touch?
Goose -
I need help with color pallette in iPhoto 11. I have created a book and would like to use a different color background than those given in "background." I have found the color palettes but can't seem to incorporate them into my backgrounds palette.
That is not a feature of iPhoto - suggest to Apple - iPhoto Menu ==> provide iPhoto feedback.
Additionally I have no idea what you are saying here
I have found the color palettes but can't seem to incorporate them into my backgrounds palette.
And it always helps for you to dientify the version of iPhoto that you are using
LN -
I have two iPads, two separate accounts I have purchased apps on one Acc. and would like to use them on my second iPad. How is this possible
If you go to Settings > iTunes & AppStore , you can sign out from your account, and sign in with the one you've used to purchase apps.This will not remove any apps you already have on it.
Then you can go to AppStore and download apps you've purchased (either via "Purchased" button in "Updates", or simply search for them and download them.
That way you can have multiple accounts' apps on your iPad. When updating, you will be prompted for the credentials for account you've purchased given App with. -
I have a HP Deskjet D4200 series printer that I used with my iBook G4 and I recently purchased a new MacBook Pro 13.5" and I would like to use this printer with my new lap top. When I use the disc to try to install the printer driver, I get a message that "I can't open the application HP Installer because the Power PC applications are no longer supported. I am not sure what all that means but is there any way to use this printer with my new computer?
ThanksIt would help to post this in a more proper form. This is for the iTunes family of stores.
-
My daughter is currently using my Apple ID with her ipod touch. I will be upgrading her to an iPhone 4S and would like to use a different Apple ID and a new computer and still keep all the current music and Apps that she has now. How do I do this?
Make a new Apple ID for her.
Use it on her iPhone 4S for iCloud, iMessage and FaceTime.
Use your ID on her iPhone 4S for iTunes and App Stores.
Sign in with your Apple ID on iTunes Store (on iTunes app of her new computer)
Authorize her new computer with your Apple ID in iTunes (iTunes menu>Store>Authorize this Computer)
Check "Share my Library on my Local Network" in iTunes Preferences in your and her computer
Sign in Home Sharing of her iTunes with your Apple ID.
Copy all the Music she wants from the old computer to the new one. (Must be on the same network)
Copy all the apps she wants from the old computer to the new one. (Must be on the same network)
Export all playlist as xml files from the old computer to the new one.(right click on the playlist to export and "File>Library>Import Playlist to Import)
Sync her iPhone 4S with all content she wants from her new computer (all data from the old computer will be deleted)
Are you sharing Contacts or other data from iCloud?
Be careful or ask for help about moving from iCloud account to another one.
Maybe you are looking for
-
Hi, We are planning to perform a test R3load system Copy Export and Import. Source version ; oracle 8.1.7 OS; Solaris 8 R/3 4.6C Target version ; oracle 10.2 OS; Solaris 10 R/3 4.6C Actually I'm performing an upgrade to ECC 6 using Unix and oracle 8.
-
Error when trying to install oracle client (can't connect to X11 error)
Hi guys, I need help to install Oracle Client 10g. I am quite a novice so I am totally hopeless when it comes to difficult or linux-kind-of-terms. I can't use GUI at all, so everything got to be done through putty.exe my local pc (where the putty is,
-
Display MM03 screen with out selecting views using interactive list.
Hi Experts, I have one query, I am displaying material data in a list. when i click on material number in the list it should show material data i.e should call MM03 with all the view data . When i am using call transaction 'MM03' skip first screen.
-
"We could not complete your request." (WHAT?!)
i can't download/update any app...its said "There was an error in the App Store. Please try again later. (-1003)"....what's that mean?
-
Remove sub total text in ALV.
Hello, How can I remove the text in sub total in ALV? I want to show only sub total values, not any explanation. Thanks.