I ran the command
sudo gedit /etc/modprobe.d/iwlwifi.conf
it gives the following output in termianal
** (gedit: 3409): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-kFLmVcCiYa: Connection refused
(gedit: 3409): IBUS-WARNING **: The owner of /home/nitesh/. Config/ibus/bus is not root!
My Wi-Fi connection appears in network manager but it does not connect to the internet. This is the output of sudo iwconfig
:
wlan0 IEEE 802. 11bgn ESSID: "RFNet"
Mode:Managed Frequency:2.462 GHz Access Point: 9C:D6:43:16:21:20
Bit Rate=2 Mb/s Tx-Power=16 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=48/70 Signal level=-62 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:1457 Missed beacon:0
lo no wireless extensions.
eth0 no wireless extensions.
How can I restore my connection?
sudo gedit
just opens the file/etc/modprobe.d/iwlwifi.conf
for editing, the warnings should not be relevant. Although it does look like you're logging in as root, is that so? If yes, don't. Anyway, thegedit
is irrelevant, I assume you just deleted the offending line as described in your previous question right? Please say so in your question. – terdon Apr 09 '14 at 18:48sudo
to run GUI applications - usegksudo
,gksu
orkdesudo
etc. depending on the variant of Ubuntu you're running. Plainsudo
does not set the appropriate environment (in particular theDISPLAY
variable) for root to properly communicate with the user's desktop session bus. – steeldriver Apr 09 '14 at 19:26sudo env | grep -E 'DISPL|XAUT'
and you'll see that bothDISPLAY
andXAUTHORITY
are passed to thesudo
subshell. – terdon Apr 11 '14 at 13:09sudo cat filename
. or in a gui editor usegksu gedit filename
– rubo77 Apr 18 '14 at 04:22