I used to run wireshark on ubuntu 17.04 with  ~/$ sudo wireshark   but now (just after update to 17.10) when I write the same I get an error  ~/$ sudo wireshark      QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'     Invalid MIT-MAGIC-COOKIE-1 keyQXcbConnection: Could not connect to display :0
10203
I installed Ubuntu 17.10. Now I am having trouble with gksu:  $ gksu -dg synaptic No ask_pass set, using default! xauth: /tmp/libgksu-HgUjgQ/.Xauthority STARTUP_ID: gksu/synaptic/8760-0-alex-XPS-15-9530_TIME4974977 cmd[0]: /usr/bin/sudo cmd[1]: -H cmd[2]: -S cmd[3]: -p cmd[4]: GNOME_SUDO_PASS cmd[5]: -u cmd[6]: root cmd[7]: -- cmd[8]: synaptic buffer: -GNOME_SUDO_PASS- brute force GNOME_SUDO_PASS ended... Yeah, we're in... Unable to init server: Could not connect: Connection refused (synaptic:8767): Gtk-WARNING **: cannot open display: :1 xauth: /tmp/libgksu-HgUjgQ/.Xauthority xauth_env: (null) dir: /tmp/libgksu-HgUjgQ   If I don't use -g, the password dialog is disabled. So looks like a problem with creating a tty for root.  Any advice?
80986
I have Linux mint on my pc.   I have a public/private key pair to ssh into my router without having to type the password.  It works on Windows using putty, but Mint isn't when I run it from terminal.  ssh -i privkey.ppk root@10.12.1.1
48448
I cannot find the proxy settings anywhere. Do I have to set it through terminal, through gconftools or is there some GUI present for it?
18849
I have installed a vlc in centos 6.5. I want to run it as root. But I get the following error,      "VLC is not supposed to be run as root. Sorry. If you need to use   real-time priorities and/or privileged TCP ports you can use   vlc-wrapper (make sure it is Set-UID root and cannot be run by   non-trusted users first)."
110795
I am trying to run a script located in usr/local/bin/ when I connect an external monitor to my laptop. I have tried to add a new udev rule but that did not work. I created a new file in /etc/udev/rules.d called vga-monitor-connect.rules. The contents of the file were   SUBSYSTEM=="drm", ACTION=="change", RUN+="/usr/local/bin/panel-fix"   I took the line from   After searching online I also tried the following rule  KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/rumesh/.Xauthority", RUN+="/usr/local/bin/panel-fix"   However this didn't work either.  I have run the script manually and I can confirm that it works so it is not a problem with my script.  I also want to make it clear that I do not know much about udev so the rule I have used may be wrong. If anyone knows the proper rule for my problem please leave an answer.  My graphics card is an Intel GM965 integrated chipset
3002
I'm working in a koding terminal running ubuntu 13.04, and I'm trying to run an application that requires an x-screen (even to run in terminal mode).  I am unable to connect with x11 forwarding, and I'm wondering if there is a workaround that will allow me to run this application (lmms).  $ lmms -v lmms: cannot connect to X server  $ uname -a Linux vm-2.masd.koding.kd.io 3.9.0-0-generic #4userns5 SMP Mon May 13 06:15:34 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 13.04 Release:        13.04 Codename:       raring   Thanks in advance!
83812
I stupidly ran sudo rm /* followed by sudo rm -R /*  My sites still run, although the vast majority of commands like ls are now broken.  Is there a simple way to get data off the server or reverse some of damage?
18464
I have one script to allow for one user to run. The string calling it from the command line looks like  ./script path/to/folder -a option='value'   When I try to add it to the other commands in Cmnd_Alias line, sudo blames sudoers file for incorrect syntax. How can I set such commands properly?
9907
When I log into my Ubuntu terminal tty1, I get a message failed to connect to http://changelogs.ubuntu.com/meta-release  I try various things, then I get an error message telling me could not resolve us.archive.ubuntu.com  If I ping us.archive.ubuntu.com -c 4: ping: archive.ubuntu.com: name  or service not known  And the same message for sudo apt-get update. I did not set any proxy; I left it blank during install. My internet connectivity is apparently disabled and I could not configure it. I tried rebooting but nothing changed.
67492
I'm trying to follow  in getting my wireless to work. However I'm incredibly new at the whole Linux thing, and there is a part in there that I really just don't understand:     Go to your main extracted folder (It should be the DPO_RT3290_LinuxSTA_V2600_20120508 folder) and type the following:     make     sudo make install  When he says "Go to", does he mean go to the file window? Wen I'm there and type "make" and hit Enter, it just opens up the file. How exactly am I supposed to make this thing work? What he is trying to say? I really just don't get it. Can somebody help me to understand this, so I can get my wireless working.
102869
When I use ssh -X on my Mac (running OS X 10.6.7) to connect to my Ubuntu (11.04) box, I get the following warning:     Warning: untrusted X11 forwarding   setup failed: xauth key data not   generated Warning: No xauth data;   using fake authentication data for X11   forwarding.   Is there something I can do to make this warning go away?  If not, can I safely ignore it?  X11 forwarding seems to work fine, though I do see this message:     Xlib:  extension "RANDR" missing on   display "localhost:10.0".   Is that related to the warning?  (I'm guessing not.  If it's not, I'll file a new question about that.)
94968
For some reason, when I try to run any programs (I am trying to run a rootkit hunter: rkhunter) as root on the command line with sudo like this:  sudo rkhunter   Then I get this message:  You must be the root user to run this program   and then I get these lines:  sudo: error in /etc/sudo.conf, line 0 while loading plugin 'sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must only be writable by owner sudo: fatal error, unable to load plugins   I try typing in just sudo but that comes up with the same three errors as above. Also in /etc/ sudo.conf does not exist.  I cannot run any other programs as root through sudo. It was also strange because I could run as root a day ago. I would like it to work.  Just so you know, I am the only user of this computer, and the administrator, running Lubuntu 14.04.1.
55690
I've just decided to jump into the world of Ubuntu, so far I encountered no problems until I tried to connect to my wireless network. I'm running Ubuntu on my laptop, Acer Aspire 5333-2880, which has an Acer Nplify 802.11b/g/n wireless card.  After browsing for an answer, I think the problem is a missing driver. input:   lspci | grep Network   output:     02:00.0 Network controller; Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)   I found a couple of answers that might be right, but I have problems with both of them.    It requires me to load the site in my laptop, but I can't do it without internet and I have no idea how to save this into a USB.  But I have no idea how to really run or use this, and I wouldn't like to screw it up.    Any advice or other possible solutions will be greatly appreciated!   EDIT.  Thanks a lot for your input Marko and Jorge. I am sure the problem was with one of the drivers, but I was too distracted, or tired yesterday to realize I didn't restart my computer after installing. As soon as I got turned on my computer again, it was working. Annoyingly, I am not sure what the problem was exactly nor what exactly fixed it.  But still, thanks a lot Marko for the intel on how to build packages, I am sure it will be very useful later on!
96339
When I run sudo gedit /path/to/some/random/file I get the following error    ** (gedit:6262): WARNING **: Command line `dbus-launch --autolaunch=7f8731869e1c690b8205727e0000000a --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed. Cannot open display:  Run 'gedit --help' to see a full list of available command line options.     Using gksudo doesn't help either which returns    Cannot open display:  Run 'gedit --help' to see a full list of available command line options.     Any help guys. I need to have this capability to open files in Gedit as root. I found this question with the same error but no solution     EDIT I found this post in . These are the instructions:     echo $DISPLAY # you'll be needing this value 3 lines below sudo -i # or "su -" on older Slackwares xauth merge ~alien/.Xauthority # use your own username here instead of "alien" export DISPLAY=:0.0 # use the value of DISPLAY you've seen 3 lines before     On coming to command #3, I got this error xauth:  file /root/.Xauthority does not exist    Maybe this new info can shed more light.
23069
I was trying to use gedit, when I came across the following problem:  myPC@TM77:~$ sudo gedit /etc/pm/config.d/config (gedit:12512): IBUS-WARNING **: The owner of /home/myPC/.config/ibus/bus is not root! (gedit:12512): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files   What is happening?
7868
Let's say I have a file called run.sh that contains:  #! /bin/sh -x  x-www-browser index.html   And ls -l run.sh says:  -rwxr-xr-x 1 myusername myusername 39 Jan  9 19:32 run.sh   And ./run.sh says:  bash: ./run.sh: Permission denied   Why does it not work? Why does sh -x run.sh work perfectly?    More info, since it's not so easy apparently  If I do a sudo, it will not output an error, but won't do anything either.  myusername@crunchbang:/mnt/data$ sudo ./run.sh [sudo] password for myusername:  myusername@crunchbang:/mnt/data$
100440
Not that it's a very good idea to change it, but for fun. According to  post, there are still some problems even after changing entries in /etc/passwd, /etc/shadow, and /etc/sudoers. Any suggestions?