SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As I said in my other thread, I just came over to Slackware from Gentoo. When I was on Gentoo, I had cron run two backup scripts, one on the first of every month, and the other every single day. The first of the month script would back up the entire /etc and /home directories, while the everyday script would only back up files in those to directories that had changed since the previous day. All files are then dropped in /backup/<hostname>/YYYYMM/ and they are burned to a DVD four times a year. As one can imagine, it is vitally important when using a scheme such as this to keep archive sizes down so that the total doesn't go over 4.3GB. On Slack the /etc backup becomes less important, but the /home backup remains important. I keep a terminal open at all times with multiple tabs. One of those tabs is always running a su session. But when I try to run any X app, I get this:
root@caitlyn:~/gnumeric# file-roller
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
No protocol specified
** (file-roller:14811): CRITICAL **: Failed to parse arguments: Cannot open display:
root@caitlyn:~/gnumeric#
I have researched this some, and found no threads with similar enough circumstances to be helpful. I had this problem on RH almost twenty years ago, but have forgotten what the fix was. I have tried adding xhost +localhost to /home/michael/.bashrc in an attempt to workaround this issue, but it didn't work. Please help!
There are other options, if you don't want to manually specify that in your .bashrc. Namely, you can set the DISPLAY variable manually:
Code:
DISPLAY=:0
Also, I would suggest switching to kdesu instead of regular su to launch GUI programs as root within another user's session. Some programs will use the regular user's directory for their data, which can change the permissions or ownership of that data, causing the programs to have issues when run again as a regular user. This is easily solved after-the-fact using chown, but using kdesu will completely prevent it from occurring in the first place.
@bassmadrigal: Thanks also for the hint and the suggestion to use kdesu. By the way, people who do not have the KDE series installed or prefer not run KDE apps if there are other options can also use ktsuss or gksu, both available @ slackbuilds.org.
I just tried gksu and was quite dissatisfied. I compiled it to work in an
xterm per the instructions at Slackbuilds. When I tried to use it, it asked me
for my root password as expected, then ask for the password for "pulse", whatever
that is. When I tried again, it didn't as for the pulse password, but none of the
arrow keys would work. The keycodes for them were printed on the screen, but no
movement occured. I'm looking further into this. Maybe I left something out
but don't know what it could be at the moment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.