You are not logged in.

#1 2011-08-18 13:40:43

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

(SOLVED) Trouble merging .pacnew files with meld

Dear Archers

Unable to merge .pacnew files, following the example on ArchWiki. Only, the difference between the two files shown

[root@KRISHNA san2ban]# #!/bin/bash
[root@KRISHNA san2ban]# # pacnew-update - merge *.pacnew files with original configurations with meld
[root@KRISHNA san2ban]# 
[root@KRISHNA san2ban]# pacnew=$(find /etc -type f -name "*.pacnew")
[root@KRISHNA san2ban]# 
[root@KRISHNA san2ban]# for config in $pacnew; do
>   # Merge with meld
>   gksu meld ${config%\.*} $config &
>   wait
> done
[1] 1578
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: The connection is closed)
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: The connection is closed)

Also, on the Archwiki, we are advised to change 'kdesu' to 'gksudo' for GNOME, but I think it should be gksu

Last edited by San2ban (2011-08-18 14:07:53)


Satyam eva jayate

Registered linux user #535257

Offline

#2 2011-08-18 13:44:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: (SOLVED) Trouble merging .pacnew files with meld

Please, don't overuse the [ ins ] tag - remove it, as it doesn't help here.

Offline

#3 2011-08-18 13:46:41

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

Re: (SOLVED) Trouble merging .pacnew files with meld

Dear Karol
Sorry, did not use right command. Never meant to colour it


Satyam eva jayate

Registered linux user #535257

Offline

#4 2011-08-18 13:47:51

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: (SOLVED) Trouble merging .pacnew files with meld

no wonder it doesn't work.

you are root when you try to run gksu


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2011-08-18 13:51:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: (SOLVED) Trouble merging .pacnew files with meld

AFAIK meld doesn't work automatically, it's a nice graphical tool to help you pick which changes should be added to the old files: you just point and click.

Offline

#6 2011-08-18 14:02:23

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

Re: (SOLVED) Trouble merging .pacnew files with meld

Dear Karol

Thanks. yes, manual intervention is needed
Wonder how it will be without you guy's guiding us


Satyam eva jayate

Registered linux user #535257

Offline

#7 2011-08-18 14:04:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: (SOLVED) Trouble merging .pacnew files with meld

Can you please edit your first post and remove the [ ins ] tags? My eyes hurt.

Use [ code ] tags when pasting snippets of code.

Last edited by karol (2011-08-18 14:05:21)

Offline

#8 2011-08-18 14:08:25

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

Re: (SOLVED) Trouble merging .pacnew files with meld

Done


Satyam eva jayate

Registered linux user #535257

Offline

#9 2011-08-18 14:09:35

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: (SOLVED) Trouble merging .pacnew files with meld

San2ban wrote:

Dear Karol

Thanks. yes, manual intervention is needed
Wonder how it will be without you guy's guiding us

You bet your ass, manual intervention is needed. If you try to blindly just merge *.pacnew with original files, it might lead to an unbootable system. Especially when you get pacnew files for /etc/group and /etc/inittab


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2011-08-18 14:18:08

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: (SOLVED) Trouble merging .pacnew files with meld

San2ban, removed redundant url tags from your post for you.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#11 2011-08-18 14:19:38

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

Re: (SOLVED) Trouble merging .pacnew files with meld

Dear fsckd
Thanks, sorry about that


Satyam eva jayate

Registered linux user #535257

Offline

Board footer

Powered by FluxBB