From owner-freebsd-questions@FreeBSD.ORG Sun Jan 20 10:21:24 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B50081D9 for ; Sun, 20 Jan 2013 10:21:24 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm9-vm0.bullet.mail.ird.yahoo.com (nm9-vm0.bullet.mail.ird.yahoo.com [77.238.189.197]) by mx1.freebsd.org (Postfix) with ESMTP id 11409A35 for ; Sun, 20 Jan 2013 10:21:23 +0000 (UTC) Received: from [77.238.189.55] by nm9.bullet.mail.ird.yahoo.com with NNFMP; 20 Jan 2013 10:21:17 -0000 Received: from [217.146.189.108] by tm8.bullet.mail.ird.yahoo.com with NNFMP; 20 Jan 2013 10:21:17 -0000 Received: from [127.0.0.1] by smtp124.mail.ird.yahoo.com with NNFMP; 20 Jan 2013 10:21:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s1024; t=1358677277; bh=wcJAhJvtaBuN8w6CuV/gx1gpnWTkDmW2imHXUY9U0iQ=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Content-Type:To:Cc:Subject:References:Date:MIME-Version:Content-Transfer-Encoding:From:Message-ID:In-Reply-To:User-Agent; b=F35rHG9l10o6YO6Iq3bZbROqeDRqgVAEUnmHe5ugB6PfCLuwMOzYzapsLSbW82nK/LEsLVqDvUWUTNSP7P3UKn8OhanVKCMK5gsI5twgUQKHsi5PZzTudTqdAOe1oV9eUED6jWDrqNGivxFGTon5RFp6SO3C3Vo9uWck+5U/HGk= X-Yahoo-Newman-Id: 632989.46404.bm@smtp124.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 0QXRjmcVM1lLYmIE3I2LXEIfo8akPOzYMrIc5yybSkWbk9S XD6yw1cAMJ_Whx7aT2tTPciBtGtXBCQF8RkpWuN.KfLidQBm.hG.jXvIuS6w ieBbmF_DzYoVwiuJLZZdjmF8NSaNgffeur.HH1f.t1KD77uPUxMN5HKUdtyl mLXhvnUCFHeakPXdrODL.wCs9Xxb6H9gpGU2Zy2PqflnX.pls7nxI6XMQ2rR ruytxDuugC74H6KdTozIK8zQnBxpnzq_e6lM66omyZaAmfslawYKUlGUb32x y.7mKvX6LKhevuO_MAtnbrNT5N9jWehmHGHa1XkOYnTE.dWnqd4uquRW6uR6 bAwgCWjLGlcmugOJCV2zf4ctgk4zz2gOhuLMYAqdZ1YHMbRhpSnXLX2VTBgc zIQPyK0qmxetXmp.EjMeqx7E30e_7QG1H6IncAodQjXVxMBA.RP89E9_MLLn fvoDzW6l9IsU77RLZ9r6VuKoRQH29UzooptUdrdn.0b6yN6FSlYjnxQ-- X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- Received: from freebsd (ralf.mardorf@92.231.4.247 with login) by smtp124.mail.ird.yahoo.com with SMTP; 20 Jan 2013 02:21:17 -0800 PST Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: Polytropon Subject: Re: Editors are broken after update References: <20130120103845.76c1a963.freebsd@edvax.de> Date: Sun, 20 Jan 2013 11:21:17 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ralf Mardorf" Message-ID: In-Reply-To: <20130120103845.76c1a963.freebsd@edvax.de> User-Agent: Opera Mail/12.12 (FreeBSD) Cc: FreeBSD quest X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2013 10:21:24 -0000 On Sun, 20 Jan 2013 10:38:45 +0100, Polytropon wrote: > # cd /root > # mv .mc .mc.orig > # mcedit $ mv .mc .mc.pre.update-01-Jan-2013 $ su root -c "mv /root/.mc /root/.mc.pre.update-01-Jan-2013" $ mcedit Error "user/home/rocketmouse" is not a regular file [ Dismiss ] > That should start the editor with the defaults. It doesn't do it for the user. > Of course, /root is not a regular file, it's a directory. :-) Yes and in this case it's true for the users home directory, but I only run mcedit, without a file name. > This editor requires X. If you're running the above su command > in an xterm, use "su -m root" and try again. On Linux regarding to this, there is a difference between "su" and "su -", I never had to run "su -m root". $ su -m root # mcedit Error "user/home/rocketmouse" is not a regular file [ Dismiss ] > Seems that the new MC version has migrated its configuration > files somewhere else... Yes. # ls -l .config/mc total 8 -rw-r--r-- 1 rocketmouse rocketmouse 2931 Jan 20 10:55 ini drwx------ 2 rocketmouse rocketmouse 512 Jan 20 09:28 mcedit -rw-r--r-- 1 rocketmouse rocketmouse 1 Jan 20 10:51 panels.ini # rm -r /root/.mc* /root/.config/mc /home/rocketmouse/.mc* /home/rocketmouse/.config/.mc rm: /home/rocketmouse/.config/.mc: No such file or directory # rm -r /home/rocketmouse/.config/mc # mcedit Error "user/home/rocketmouse" is not a regular file [ Dismiss ] # gedit GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. 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; some possible causes are that you need to enable TCP/IP [snip] networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: The connection is closed) g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting. Terminated On Linux it's a common issue for some distros, when using apps from bloated DEs. It usually needs gksu or similar. At the end of the update I got the information, that for K3b I have to set the suid flag for cdrecord and cdrdao. Wow, for FreeBSD the kit family is installed, so setting suid IMO shouldn't be needed and should be avoided, perhaps there's the need to use kdesu? # cd /usr/ports/sysutils/gksu ; make install clean [...] $ gksu gedit Yes, it does work. I suspect for K3b it's not needed to set suid, but to install kdesu or perhaps gksu does work too. However, there's still this issue for mcedit :(. It would be nice if not so many Linux distros and FreeBSD won't follow upstream for some odd policies :(. When I read the name Lennart Poettering my blood pressure does rise ;). Regards, Ralf