Wrong nameserver set by resolvconf and NetworkManager My DNS server is 192.168.1.152.

This DNS is provided to clients by DHCP. The windows clients on my LAN resolve names properly using that DNS, but my Ubuntu VM doesn't.

The VM is set up with bridge networking and is being properly provided the DNS server, but my local hostnames aren't being resolved by nslookup or browsers.

Here is an nslookup of one of my local domains:

# nslookup unraid.local
Server:     127.0.0.53
Address:    127.0.0.53#53

** server can't find unraid.local: SERVFAIL

Here is what it should resolve by using my DNS server:

# nslookup unraid.local 192.168.1.152
Server:     192.168.1.152
Address:    192.168.1.152#53

Name:   unraid.local
Address: 192.168.1.152

/etc/resolv.conf has a wrong nameserver:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.

nameserver 127.0.0.53

I ran that command. Under DNS Servers, confusingly, it specifies the correct server (and my default gateway).

root@ubuntu:~# systemd-resolve --status
Global
          DNSSEC NTA: 10.in-addr.arpa
                      16.172.in-addr.arpa
                      168.192.in-addr.arpa
                      17.172.in-addr.arpa
                      18.172.in-addr.arpa
                      19.172.in-addr.arpa
                      20.172.in-addr.arpa
                      21.172.in-addr.arpa
                      22.172.in-addr.arpa
                      23.172.in-addr.arpa
                      24.172.in-addr.arpa
                      25.172.in-addr.arpa
                      26.172.in-addr.arpa
                      27.172.in-addr.arpa
                      28.172.in-addr.arpa
                      29.172.in-addr.arpa
                      30.172.in-addr.arpa
                      31.172.in-addr.arpa
                      corp
                      d.f.ip6.arpa
                      home
                      internal
                      intranet
                      lan
                      local
                      private
                      test

Link 2 (ens33)
      Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
       LLMNR setting: yes
MulticastDNS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
         DNS Servers: 192.168.1.152
                      192.168.1.1

I don't want to "hard code" the DNS server's IP in a config file because I won't be able to resolve when I change networks.

How can I get resolvconf and NetworkManager to automatically set the DHCP server's IP in /etc/resolv.conf?

Known systemd bug.

Temporary workaround with no need to reconfigure if the DNS IP's changes:

sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
reboot

I have the same problem. Each reboot, nothing will resolve. I've uninstalled everything and reinstalled it about 50 times already. It's simply just broken.

so the fix is.... "just apply a few settings each time you boot your pc, which allows 90% of host names to resolve but wget and apt-get updates and upgrades will fail randomly for no reason"

cat /etc/systemd/resolved.conf

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details

[Resolve]
#DNS=
#FallbackDNS=
#Domains=
#LLMNR=yes
#MulticastDNS=yes
#DNSSEC=no
#Cache=yes
#DNSStubListener=udp

When using Ubuntu 17.10 Desktop, you have to edit the one file that says DO NOT EDIT THIS FILE BLAH BLAH BLAH

well that's the ONLY way it works~!

root@nas:~# cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 8.8.8.8

So remove the 127.0.0.53 IP as the name server and enter another one, google for example. It appears my actual DNS IP address doesn't resolve host names either (even though it works on 10 other machines and devices in the house), but google's works fine.


How do I uninstall MySQL completely? The answers to related questions forget to:

remove the MySQL databases
remove the mysql user
remove the logs in /var/log

How do I uninstall MySQL completely?

Building off of another answer, open a terminal (press Ctrl+Alt+T) and run the following:

sudo -i
service mysql stop
killall -KILL mysql mysqld_safe mysqld
apt-get --yes purge mysql-server mysql-client
apt-get --yes autoremove --purge
apt-get autoclean
deluser --remove-home mysql
delgroup mysql
rm -rf /etc/apparmor.d/abstractions/mysql /etc/apparmor.d/cache/usr.sbin.mysqld /etc/mysql /var/lib/mysql /var/log/mysql* /var/log/upstart/mysql.log* /var/run/mysqld
updatedb
exit

If you want to delete the log of what you did while using the mysql client:

rm ~/.mysql_history

If you want to delete the logs of what all users on the system did while using the mysql client (the other users might be unhappy with this):

awk -F : '{ print($6 "/.mysql_history"); }' /etc/passwd | xargs -r -d '\n' -- sudo rm -f --

or for all logs including those outside of existing user home directories:

sudo find / -name .mysql_history -delete

Another way, that worked for me, was to use Synamptic Package Manager. On the left hand pane,where it says: All, Installed, etc. there is an entry for Not Installed (residual config.) (or similar wording). Under there I found options to clear all MySQL install files. This worked for MySQL 5.7.


How do I install Popcorn Time from the new Yify Github? How can I install Popcorn Time in Ubuntu?

The old Popcorn Time is no more, the new Popcorn Time is being maintained by yify.

To build and install Popcorn Time in Ubuntu using THIS script. Download and run the script (which will build and install Popcorn Time in Ubuntu) using the following commands:

  wget https://raw.github.com/hotice/webupd8/master/popcorn-build
  chmod +x popcorn-build
 ./popcorn-build

Webupd8


How do I get the Broadcom BCM4313 wireless working on an Asus 1015PX? I installed Ubuntu 11.10 on my Asus 1015PX which is certified by Canonical. My WiFi is not working. I read about the BCM4313 troubles and tried

https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx
http://www.broadcom.com/support/802.11/linux_sta.php
I already tried everything in the thread Broadcom BCM4313 working, but terribly slow but nothing worked for me.

and others but nothing helped.

Can anyone give a detailed description point-by-point what he did to get this thing working on an Asus 1015PX?

The BCM4313 broadcom wireless card is compatible with the open source brcm80211 driver directly included in the standard kernel or the proprietary broadcom-wl driver that can be installed from the Additional Drivers in Ubuntu. At any point of time, you should only have one of the drivers installed and trying to use it simultaneously will only result in the drivers conflicting each other.

It should be also noted that broadcom-wl has been causing more problems than resolving them and you should probably avoid them altogether if possible.

To answer your problem, I have used the steps provided in this forums thread. This method is more like a workaround for the problem rather than a permanent fix to the issue.

First of all, blacklist the wl, brcm80211 and b43 modules and all its dependencies.

gksudo gedit /etc/modprobe.d/blacklist.conf

After opening the file, add the following to it:

blacklist mac80211
blacklist brcm80211
blacklist cfg80211
blacklist wl
blacklist lib80211_crypt_tkip
blacklist lib80211
blacklist b43

And then, edit the rc.local file:

gksudo gedit /etc/rc.local

And add the following above exit 0:

modprobe brcm80211

This will ensure that the brcm80211 driver module is loaded at the end of the boot process. You might need to call update-initramfs -u to ensure that your changes will be effective after a reboot.

I should probably add the fact that I have BCM4313 wireless driver in my system and I have used these procedures to get it working properly.

References:

https://wiki.archlinux.org/index.php/Broadcom_wireless
http://linuxwireless.org/en/users/Drivers/b43
http://linuxwireless.org/en/users/Drivers/brcm80211
http://ubuntuforums.org/showthread.php?t=1783272

Try the solution here.

http://www.computerandyou.net/2011/05/how-to-solve-no-wireless-networks-in-ubuntu-11-04/


Can't boot Acer laptop into Ubuntu 19.10 after dual boot install I've been stuck for 2 days on this.  I can't boot into Ubuntu after a fresh 19.10 install on my Acer Aspire E15 E5-576 laptop . after I reboot there is no grub menu and it goes straight to Windows 10. What I've tried:

The steps reported here How can I repair grub? (How to get Ubuntu back after installing Windows?). Got no errors but it still doesn't show grub on startup.
Booted the live boot repair disk, performed the boot repair. Nothing changed.
Went into bios to change boot order but there is no grub option, only windows boot.
From windows cmd with admin rights entered

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

This worked. I can now see the grub menu and successfully boot into the Ubuntu partition. However I cannot access Windows 10 anymore. There is a Windows boot option in grub but if I select it, it loops into the grub menu forever.

To go back into Windows I had to manually recreate the efi partition from the live Windows 10 disk, and after that, it boots straight to Windows 10 again.

I don't know what else to do. I'm in your hands. Thank you for your help

19.10 comes with a new version of Grub 2.04 that many have reported bugs with.

A common solution is to turn off TPM in BIOS. However other options are detailed in the bug reports and there other things to try if that doesn't work.

@oldfred has the best answer for OP Acer related issues. Typically for Acers, hold down the F2 key after booting to get to the boot settings [UEFI]. Then highlight 'security' menu, then down to highlight the option to trust a UEFI file.


How do I install my wireless card driver offline I just installed Xubunu 13.04, but it didn't detect my wireless card.
This is my wireless card:

Broadcom Corporation:BCM4312 802.11b/g LP-PHY: Wireless 1397 WLAN Mini-Card

I googled about it, and I found this solution :

  Once you have confirmed that your WLAN device is supported, you may
  proceed to installing the driver by running the following command from
  Terminal window.

  sudo apt-get install firmware-b43-installer

The problem is that I can't run this command in a terminal because I've no connection in xubntu. I'm currently posting this thread from Windows.

I downloaded the package firmware-b43-installer from debian, and when I tried to install it, it told me that I need the b43-fwcutter package so I download it, and when I tried to install it the terminal shows me that the installation needs some sources from the internet.

I don't have an Ethernet or some other internet connection source, the only way I can access to internet is from Windows.

How can I install my wireless card driver offline ?

I have done it on Xubuntu 12.10 (Quantal Quetzal):

Download firmware-b43-installer and b43-fwcutter from Ubuntu, choose the target release version (I chose Quantal) and architecture.

Alternatively, if you have a Live CD or installed *Ubuntu of the same release with Internet access, you can do: apt-get -d install firmware-b43-installer and then look for both packages in /var/cache/apt/archives. Do not use packages from different releases.
Do not download from Debian. Being a derivative does not imply that they are compatible, and does not imply that Debian's packages are suitable for Ubuntu.

On the target machine, do dpkg -i b43-fwcutter* && dpkg -i firmware-b43-installer*

b43-fwcutter is a dependency of firmware-b43-installer, so it must be installed first.

1:- After finish installation, Mount the installation media (dvd/usb) and open it.

2:- > pool > main > d > dkms > and
     drag that package "dkms_2.2.0.3-2ubuntu11.1_all.deb" on the desktop.

3:- Again open the media (dvd/usb)

4:- > pool > restricted > b > bcmwl > and
     drag that package "bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb" on the desktop.

5:- Close all window and open terminal.

6:- Type in terminal without quotes " cd \Desktop " and hit enter.

7:- Now type in terminal without quotes " sudo dpkg -i *.deb " and hit enter.

8:- Type your password and wait for finishing installation.

9:- Restart your machine after finish above process.

Here is below link to step by step installation driver without Internet connection for BCM43xxx family branch.

BCM43xxx WiFi Driver Installation


How to restore corrupted installation? I have a laptop with dead battery that when there is no current connected to it turns critical so fast and in the energy management in Ubuntu, when the battery is critical, there are 2 options: shutdown and hibernate witch is in grey (unclickable), so I have no choice but to chose immediate shutdown, there is no standby even if it is an option in the screen behavior. An immediate shutdown (and I mean by immediate the one that we use when we ended using the computer) happened while I was installing a program called quickly, so after the power was restored, I tried to reinstall the program then I get this translated message:

An untreatable error occurred:

It seems there is a software error in aptdaemon, the program that lets you install and remove software and any other task related to package management.

details:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 968, in simulate
    trans.unauthenticated = self._simulate_helper(trans)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1092, in _simulate_helper
    return depends, self._cache.required_download, \
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 235, in required_download
    pm.get_archives(fetcher, self._list, self._records)
SystemError: E:I wasn't able to locate a file for the libpng12-dev package. This might mean you need to manually fix this package.

open the terminal and type

sudo apt-get install -f

Get off battery and use AC power. On boot, you can choose safe boot mode, and then choose repair broken packages.


How do you select an arbitrary application to "open with"? Possible Duplicate:
  Add custom command in the open with dialog?

I would like to open e.g. webm files using mplayer, but it is not available in the "Open With" dialogue and (quite frustratingly) the dialogue no longer allows selection of the program to use from the file system.

Is there a conf file I can edit directly to get this done?

If you'r using 11.10 i found this for an application called nedit.

Quoting mc4man

  fairly easy - nedit's .desktop is missing something to allow it to be shown in the r. click context menu

Code:
gksudo gedit /usr/share/applications/nedit.desktop

  find the Exec= line & add a %f to end, leave a space between nedit & %f - ignore the untitled document 1 that also opens - close it without saving, do save the nedit.desktop

Code:
[Desktop Entry]
Version=1.0
Name=NEdit
Exec=nedit %f
Icon=Nedit
Terminal=false
Type=Application
Categories=Motif;Utility;TextTools;
GenericName=Text editor
GenericName[en]=Text editor
GenericName[nl]=Tekst verwerker

  Then you'll find it by right clicking on your file > open with > other applications
  After that it will be shown directly in the r. click menu

  If you wish to set nedit as default for all text files then use the right click > Properties > open with instead

If, in other hand, you're using 12.04 you can do it like this:

  If you want to delete applications from the openwith list you have to edit the following file from command line

  /usr/share/applications/mimeinfo.cache

  If you added item by yourself, or you want to add new item you need to edit the following file from command line

  ~/.local/share/applications/mimeinfo.cache

  default actions you need to edit the following file from command line

  ~/.local/share/applications/defaults.list

There will be one more option like open with other application , select that . a window will open with browse option and navigate to usr and then to bin folder and there you can select the application you want .

I am using KDE and i will post those images and i hope they will help you to understand .


How to update apache-utils 2.2 to 2.4 on ubuntu 12.04 LTS? I started playing with ubuntu server edition. I'm still extremely new to ubuntu, but I can't seem to figure this problem out. I am running Ubuntu 12.04 LTS server. I need to use htpasswd to generate some password hashes, but bcrypt is supported only in apache2-utils 2.4.

The latest version of this package is 2.2.22 in ubuntu 12.04 repository. I don't want to install it by source since that is extremely messy and hard to remove it in the future.

Is there an official ppa by apache to get the latest version? Or is there a another relatively easy and secure way of updating to the latest?

Thanks!

I was going to leave this as a comment, but I don't have enough rep to post a comment. So I will write it as an answer. This might help your cause or might not or maybe you have already found another solution. In any case, here is my solution. Adding a ppa that carries the latest package you are looking for. You can find one that fits your need. Or you can add this one, ppa:ondrej/php5. I use this ppa to stay up to date with php, but he started adding latest apache as well. Hope it helps, you or anyone else that might be looking for an answer. Thank you.

add-apt-repository ppa:ondrej/php5

Repositories are not the only way to install.
You can also use Gdebi.
Get the .deb from
http://packages.debian.org/sid/i386/apache2-utils/download
And use Gdebi to install it.
(You might have to uninstall 2.2 first).


How I remove to ubuntu from windows7 I used dual boot Windows 7 and Ubuntu 12.04. And I want to remove Ubuntu from my PC. I tried these steps

And I have two problems:

After I deleted my Linux partition, I tried to expand other spaces. When I clicked on them, the "extend volume" option was passive.
I don't have the Windows installer disc, so I tried to create a Windows repair disc. But when I clicked "create disc" button, I got an error message. It said that "there is no media in the device."

You may want to try this, for your second question, it's got instructions on how to do it without a windows recovery disk... and how to do it with, and a whole lot more information as well.
https://sites.google.com/site/easylinuxtipsproject/grub

Is the deleted partition now unallocated space?  There is a scenario I can think of that would cause this, if the partition you deleted is not side by side with the partition you want to expand.  If this is the case I'm not sure how to go about doing exactly what you want...  you can turn it into a logical drive, you can probably wipe some partitions between the space and the partition you want to expand (if their not hidden.)  There are probably other maybe better options I'll keep an eye open.

UPDATE: Okay found it here http://www.disk-partition.com/resource/add-unallocated-space-to-system-partition-windows7.html you have to move the unallocated space.  Beware I have not tried this application and do not know how it works, I'm just guiding you to the page.

You would need a disk partition utility to make the windows partition the active boot partition. You should be able to delete the partition you have used for linux and extend it into windows. Do you recall what disk format you used when installing Ubuntu? It was probably EXT3 or EXT4 which windows will not read natively.


How do I find the reverse dependency of a package? I was wondering if it was possible to check what package another package is a dependency of.

For example, jetty is mysteriously installed and running on my system and I'd like to check whether it is a dependency of something else.

You can use apt-cache rdepends --installed jetty to see what depends on jetty. This will show both depends & recommends, so you may want to check through the list of packages to see what the relationship is with jetty.

If you open Synaptic and find the package, you can right click on it and select Properties.
Under the tab Dependencies you can see the packages that jetty depend on, and which packages is dependent on jetty (the dropdown list).


Neither pidgin or empathy receive offline Gmail chat messages I can't recive any offline message from Gmail chat.
I need to get them.

I set up pidgin and empathy whith my Gmail account, but they only receive messages when I am online.

What do I do?

This is broken on the side of Google. See this discussion, we are not alone:

You have to go to gmail to see unread offline messages. They call this an improvement.

How can you receive messages when you are not online?

Maybe you intended in Invisible mode?

Since the introduction of Hangouts instead of GMail chat there is no more the status of Invisible.

If you are offline the messages your contacts send to you will be dispatched when you connect to the service.


Audio stopped working Ubuntu 19.04 I installed 19.04 earlier today and spent an hour trying to get audio working. Then audio finally started working after I plugged the speakers into a different spot in the back of my computer.

Then about an hour ago, after audio was working great, everything got quiet and stopped working. I have no idea why this is and don't know how to troubleshoot because this is my first day using linux.

It's very strange that there is an "Auto-Mute Mode" in alsamixer that seems to be enabled.

I am sorry, I don't know what I should be looking for or how to diagnose the problem and nothing I have found on the internet has helped so far. Any help is greatly appreciated, thanks

Reinstall ALSA and PulseAudio

Try reinstalling ALSA and PulseAudio Manually that must be fix the problem for you.

Open your terminal, and enter the following commands:

sudo apt-get remove --purge alsa-base

sudo apt-get remove --purge pulseaudio

sudo apt-get install alsa-base

sudo apt-get install pulseaudio

sudo alsa force-reload

I like to investigate and always successfully get sound back to my PC... as this solution never fails!!!!

sudo apt remove --purge alsa-base
sudo apt remove --purge pulseaudio
sudo apt install alsa-base
sudo apt install pulseaudio
sudo alsa force-reload


Log into desktop using SSH? A few months ago I converted an old desktop computer into a basic server by putting Ubuntu (desktop version) onto it and setting up apache2, etc.  I have SSH configured so that I can work on it remotely, and use FTP to move files.  When I tried to access my server yesterday I found that it was down, and I could not get in at all.  I'm at college, and my server is at home, so I called my mom, who told me that there had been a brief power outage at my house, and I concluded that my server had restarted.  I have the computer set to require a password on startup, so it turns out that it had just been sitting at the log in screen for the past few days, waiting for a password.  My instinctive question is whether SSH or some other program can be used to log the system in (as if in person) from a remote computer after the server has been restarted.

As I said, I currently have the computer set to require a password to log into the one and only user account on the server upon startup.  When I SSH or FTP, I use the same log in/password, though I'm guessing that I'm going to be told that this is the wrong way to go about doing it, and is the source of my problem.  In that case, what would you recommend?

Thanks in advance.

In response to the comment and answer, I don't know what the X environment is, so it's probably not something that I want to log in to. The way I have the server set up, when you physically turn the machine on, it boots up, and then asks for a password, just like most normal computers do. You have to enter the password in order to get to the desktop and run applications.  From my experience, the web server application, ssh server application, etc. are not active until the password is entered and the desktop is loaded.  Hence, I need to log in to the computer in order for it to come on line as a server.  What I need is a way to get the server running again (at desktop, with apache) after the machine loses power and boots back up without having to physically enter a password in person.

Based on what you said, this sounds like you are using a BIOS boot password vs just the desktop logon password.

Case in point, I have a laptop in my home that is old much like yours, however, the ssh service is fully active and I don't need to log into the remote desktop. Doesn't matter how many users are present on the system. SSH is a service that will run in it's own process separate from the X environment.

My recommendation is that you remove the BIOS boot password and allow your computer to boot normally. That way you can access it remotely regardless of whether you have logged on to it physically.

Edit: In response to comment, just as an alternative idea... you could create a second very non-privileged user that is allow to auto log on. This would get the needed services running.

Before I get flamed, yes there is a "potential" security issue in adding an auto log-in user. But not much more than adding an additional user period. Heavily restrict this user's access, give it a solid password, and have the screen auto lock and require a password after a very short time out. Then you should be able to log-in using the original answer.

-----Original-----

Use the -X option with the SSH command

Example $ssh -X 192.168.1.100

Also check out the man page for SSH to look at more options.

 man ssh


Wireless not working on Toshiba Satellite C55-A5281 The wireless doesn't work on my Toshiba Satellite C55-A5281. The device originally came with Windows 8, but I removed it snd installed Ubuntu. Wireless does not work "out of the box" and there are no proprietary drivers to enable in the manager. Wired connection however does work, along with the keyboards and it's functions-brightness, sound, etc. I posted about this in the forum last-week, but no other people were able to help. http://ubuntuforums.org/showthread.php?t=2168927

If this is your device, it is covered by the very new driver rtl8188ee:

Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:8179]

Verify your device with the terminal command:

lspci -nn

If so, you can compile this driver in 13.04. Please get a temporary wired ethernet connection and do:

sudo apt-get install linux-headers-generic build-essential

I suggest you download this to your desktop: http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.11-rc3/backports-3.11-rc3-1.tar.bz2 Right-click it and select 'Extract Here.' Now open a terminal and do:

cd ~/Desktop/backports-3.11-rc3-1/
make defconfig-rtlwifi
make
sudo make install
sudo modprobe rtl8188ee

Your wireless should now be working. You will have compiled the driver for your currently running kernel only. When Update Manager installs a later linux-image, after reboot, re-compile:

cd ~/Desktop/backports-3.11-rc3-1/
make clean
make defconfig-rtlwifi
make
sudo make install
sudo modprobe rtl8188ee

If the message logs say you need firmware:

dmesg | grep rtl

Download and install it with:

wget http://mirror.pnl.gov/ubuntu//pool/main/l/linux-firmware/linux-firmware_1.106_all.deb
sudo dpkg -i linux*.deb
sudo modprobe -r rtl8188ee && sudo modprobe rtl8188ee

Had that as well on the live environment, but a little different!!!

On my Acer TravalMate 4650 in live environment, the internal blue-tooth suddenly worked for the first time ever(Windows XP was not working with the internal bluetooth so I used a USB-extension instead), but WLAN not, even with the driver installed and started. After I installed it stayed that way. The first reboot of the local installed, WLAN was turned on automatically again. I turned it off on installing hardware and updates to save power, because I used a cable instead for Internet connection.

I installed my USB-HSDPA(3G)-Modem, worked out of the box...after playing around with some drivers and needing to restart again, WLAN turned on again...but than it suddenly connected and worked!!!

I'm using Kbuntu 13.04, it was a hell on installing it, but now it works so nicely...my windows gaming PC is starting to collect some dust, till I'm back on Linux...

...but here is my tip, as you use Linux in Single Boot, maybe try out a different distro of Ubuntu? Like Kbuntu is actually build to support all kind of Laptop Hardware, for example. The GUI is dream for Windows Fans...it's like the best features of XP and 7 combined in one powerful OS.
Hope this may help you...
;3)


files disappear when I run mv command Dears,

I use the below command to move files

mv *.gz directoryname

but directory name has spell mistake and the file with directory name has been generated with unknown format. And I lost my file.

How can I get them back? is there anyway to get them from the directoryname which is generated while running mv command.

Please let me know if you want me to more clear on this.

Thanks

If you use those command, the *.tgz files should go to directoryname, even if directoryname didn't exist, system will automaticly create directory with your mispelled-directoryname, try to find your file using

cd directoryname
ls -la | grep tgz

if your desired file didn't there, maybe you can find it using locate or whereis

Hope that's help you, even a little.


How do you monitor the progress of dd? dd is a wonder. It lets you duplicate a hard drive to another, completely zero a hard drive, etc. But once you launch a dd command, there's nothing to tell you of its progress. It just sits there at the cursor until the command finally finishes. So how does one monitor dd's progress?

Update 2016: If you use GNU coreutils >= 8.24 (default in Ubuntu Xenial 16.04 upwards), see method 2 below for an alternate way to display the progress.

Method 1: By using pv

Install pv and put it between input / output only dd commands.

Note: you cannot use it when you already started dd.

From the package description:

  pv - Pipe Viewer - is a terminal-based tool for monitoring the
  progress of data through a pipeline. It can be inserted into any
  normal pipeline between two processes to give a visual indication of
  how quickly data is passing through, how long it has taken, how near
  to completion it is, and an estimate of how long it will be until
  completion.

Installation

sudo apt-get install pv

Example

dd if=/dev/urandom | pv | dd of=/dev/null

Output

1,74MB 0:00:09 [ 198kB/s] [      <=>                               ]

You could specify the approximate size with the --size if you want a time estimation.

Example Assuming a 2GB disk being copied from /dev/sdb

Command without pv would be:

sudo dd if=/dev/sdb of=DriveCopy1.dd bs=4096

Command with pv:

sudo dd if=/dev/sdb | pv -s 2G | dd of=DriveCopy1.dd bs=4096

Output:

440MB 0:00:38 [11.6MB/s] [======>                             ] 21% ETA 0:02:19

Other uses

You can of course use pv directly to pipe the output to stdout:

pv /home/user/bigfile.iso | md5sum

Output

50,2MB 0:00:06 [8,66MB/s] [=======>         ] 49% ETA 0:00:06

Note that in this case, pv recognizes the size automatically.

Method 2: New status option added to dd (GNU Coreutils 8.24+)

dd in GNU Coreutils 8.24+ (Ubuntu 16.04 and newer) got a new status option to display the progress:

Example

dd if=/dev/urandom of=/dev/null status=progress

Output

462858752 bytes (463 MB, 441 MiB) copied, 38 s, 12,2 MB/s

You can watch the progress of any coreutils program using progress - Coreutils Progress Viewer.

It can monitor:

cp mv dd tar cat rsync grep fgrep egrep cut sort md5sum sha1sum sha224sum sha256sum sha384sum sha512sum adb gzip gunzip bzip2 bunzip2 xz unxz lzma unlzma 7z 7za zcat bzcat lzcat split gpg

You can see the manpage

You can use it in a seperate terminal window while the command is running or launch it with the dd command:

dd if=/dev/sda of=file.img & progress -mp $!

Here & forks the first command and continues immediately instead of waiting until the command ends.

The progress command is launched with: -m so it waits until the monitored process ended, -p so it monitors a given pid and $! is the last command pid.

If you issue dd with sudo, you have to too with progress too:

sudo dd if=/dev/sda of=file.img &
sudo progress -m
# with no -p, this will wait for all coreutil commands to finish
# but $! will give the sudo command's pid


execute script with sudo after login i need to execute the following commands AFTER login.

sudo hdparm -y /dev/disk/by-uuid/443AFBAD7FE50945

sudo hdparm -y /dev/disk/by-uuid/7ABB49654B799D40

(trying to edit rc.local does not work nor does using hdparm.conf because as soon as I log in the disks start up again). I have tried numerous things like bash files and autossh entries in the startup applications with no luck because sudo is involved.

i have tried the rc.local, the .bashrc, the autossh in startup, hdparm.conf. none of these options have worked

You can do:

echo #password | sudo -S #commmand

Replace #password with your password and #command with a command you want to execute.

EDIT 1: More secure way that takes a little bit of time
1) Run: "sudo apt-get install monodevelop"
2) Download https://www.dropbox.com/s/6917qfhc6mwc9jw/MountVolumens.tar.gz
3) Extract it where ever you want
4) Open "MountVolumens.sln" with monodevelop
5) At line 24 replace #password with your password
6) At line 25 write down all the commands you want to execute
7) Press Ctrl + F8
8) At line 24 remove your password
9) Go to the folder where you extracted the files, than go to "MountVolumens/bin/Debug", and there you should see a file called MountVolumens.exe
10) Copy it where ever you want, and create a sh script that just says "cd #location && mono MountVolumens.exe", replace #location with "MountVolumens.exe" folder location


Unable to install cav-linux (comodo antivirus) I am using ubuntu 16.04 on my new Dell laptop. I just have this laptop 2 days ago, and I am new to Linux. I download this software this afternoon but unable to install. It has a waiting to install icon on the Unity Launcher column. I also installed the Deb packet installer. How can I put it into the Deb packet installer? or any other way to install this software. Thank you very much for your helps in advance.

The Comodo linux antivirus hasn't seen real care in years. I think the last time I looked at it (perhaps mid 2016), the version still being offered was from 2013. While it is the definitions that matter most, I opted for Sophos antivirus on Linux. It takes a little more work to get it installed, but it is well documented and actively maintained.

They are the only AV vendor that seems to still be active in their support of Linux for the home user.

While not directly in answer to the OPs question, I think trying to wrestle with an installer that's designed for much older releases of Ubuntu isn't the correct road forward.

https://www.sophos.com/en-us/products/free-tools/sophos-antivirus-for-linux.aspx


Workspace 1 to laptop screen and Workspace 2 on HDMI connected TV? I have two workspaces, which I need to function as below:

Usually they function as usual two workspaces, but...

When I connect a HDMI cable to my system

I want to have workspace 1 display on laptop screen and be workable with keyboard and touchpad inputs as usual.

While in the background, I want to display Workspace 2 content on the TV connected through the HDMI cable.

How can I get this done???

Preferably without compiz involvement.

I don't think that you can do this. The thing you're asking is inconsistent with the way workspaces and displays are designed in Ubuntu.

I will try to explain why. The curently workspace is, as its name itself says, the space where curently you are. Now, when you connect another display at the machine, the current workspace (and all others) will be expanded in the new display. When you change the workspace in first display, its expansion will change in the second display as well and vice-versa. So, the display is a something like a 'child' of the workspace. In next image you can see how it look:

What you intend to do is something like:

As you can see this doesn't look ok.

Of course, as long as you have unselected Mirror displays in System Settyngs > Hardware > Displays (as in next image), you can view some programs on one display and other programs on another display. Also you can drag and drop windows from one display to another.

You can also to watch this video to understand better: http://www.youtube.com/watch?v=Vl9P9a2L7Q4.

I have been able to successfully do what I intended to do using a combination of the above two answers and some more hit and trial of my own. I will experiment a bit more and post the detailed method to do so here.

OKAY..just for clarity...here is what I do:
1. Attache HDMI cable
2. Go to display settings and uncheck the mirror display checkbox
3. Run Detect Displays if needed
4. Now whatever workspace I use, it i split into two vertically. Moving any application past the right border of the laptop screen takes it to the HDMI TV screen.

Let me know if the above does not work for someone and I can help.


GRUB configuration not responding Recently, I tried to reconfigure GRUB to boot kernel 3.2 instead of 3.4, but by booting, GRUB is not responding to any changes I make in the grub.cfg file. Editing /etc/default/grub and updating it with update-grub doesn't bring any errors and changes and ends with done.. Kernel 3.4 is always booting, whatever I do. Google is speechless.

Default grub menu entry can be switched using GRUB_DEFAULT in /etc/default/grub file.
If your kernel 3.2 entry is 7th in the list - the easiest way to set to default would be making following change in /etc/default/grub:

GRUB_DEFAULT=7

And then executing sudo update-grub2 to update grub configuration.

If you really have kernel version 3.2 installed in your system, it will be added to grub menu automatically after you do

sudo update-grub

Hope this helps.


burg working, but themes aren't It worked before, but for some reason now I can't change the booting visual anymore.

When I run burg-emu on Terminal, this appears:

This is exactly how it looks like when I boot the PC. But I can't press F2 or any other key to select a theme.

I tried to change it by opening the Super-Boot-Manager already, still didn't work. Any help?

I'm using Ubuntu 14.04

Linux 3.13.0-24-generic #47-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

You have to install burg themes

sudo add-apt-repository ppa:n-muench/burg
sudo apt-get update
sudo apt-get install burg-themes

If you want to setup a custom theme, i followed this tutorial that worked for me: http://develop.alpdesigns.ch/pages/ubuntu/brug-and-theme-configuration.html

I had the same problem. I had selected a theme and then renamed the folder of that theme. That's why it didn't work. I renamed it back, now it works fine.


"Unable to locate package" while trying to install packages with APT When I try to install any package through the command line, I get an error.

$ sudo apt-get install <package>
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package <package>

Can anyone help me on this?

First, check if the package actually exists:

Go to packages.ubuntu.com with a web browser.
Scroll down to "Search package directories"
Enter  the package which you're trying to install into the "Keyword" field.

Enable "Only show exact matches:"

Change the "Distribution" to which version of Ubuntu you're using.

If there are no results, the package you are looking for doesn't exist and the next steps will not work. It may require a third party PPA or an alternative installation method.

If results are found, the package exists and you may continue with these steps:

Open Software Sources (or Software & Updates in 13.04+) by searching for it in the Dash.
Open the "Ubuntu Software" tab.
Ensure that the first 4 check boxes on this tab are enabled:

Update the package lists, then test with these commands:

sudo apt-get update
sudo apt-get install <TEST_PACKAGE>

Fresh Ubuntu installation?
Many times just updating the package lists from all repositories and PPA's does the trick:
sudo apt-get update

This should be the first thing to do.
If this does not work you need search for the repository or PPA which contains the package you are after, add it, and run sudo apt-get update again. Steps for the process are well explained on the other answers on this page.


Trouble turning on bluetooth in 12.04 I am using 12.04 LTS dual boot, and I can't use the bluetooth service in Ubuntu. It works fine with Windows 7. In Ubuntu I can turn on the bluetooth from the titlebar but when I switch on the visibility it automatically switches back (I'm using GNOME 3 environment).

All this happened after the 1st update (worked fine before then).

Found an easier solution than reseting BIOS!

sudo hciconfig hci0 reset

bluetooth was enabled on ubuntu 12.04.

I could do file transfer between Nexus7 and my laptop. but nexus7 stopped playing music and laptop started playing music!


`sudo reboot` vs `reboot` - what is the difference? I recently found out that reboot works just as well as sudo reboot, from what I can tell. However, in a lot of instances, I see people saying to sudo reboot. Why is this? Are they the same, and just personal preference? Or are they different? Does sudo reboot do more than reboot?

On Ubuntu 14.10 and older, sudo is required.

The introduction of Systemd in 15.04 changed the way Ubuntu handles shutdown and reboot:

When a single user is logged in, sudo isn't necessary. When more than one user is logged in then sudo is required.
Applications can inhibit shutdown and reboot. You override these inhibitions with sudo.
A single user logged in via ssh still requires sudo.

Thanks for the discussion, I'm glad to understand this now!

As Terrance mentioned, in version 15.04, they switched from Upstart to Systemd for the commands. This change means that reboot no longer requires root privileges.

As for why the *nix community instructs to  sudo reboot, there are a few potential reasons:

Habit - People were so used to having to sudo reboot to reboot, they continue to do it despite the fact it is not needed
Non-updated users - The people instructing to sudo reboot are on versions of Ubuntu lower than 15.04, or other distros that use Upstart for commands.
Compatibility - This is what seems the most plausible to me: people are instructing to sudo reboot because it is guaranteed to reboot across all *nix systems, no matter what.

Additional note: from  user535733's answer:

  The introduction of systemd in 15.04 changed the way Ubuntu handles
  shutdown and reboot:

  When a single user is logged in, sudo isn't necessary. When more than one user is logged in, then sudo is required.
  Applications can inhibit shutdown and reboot. You override these inhibitions with sudo.


I cannot change the screen brightness here's my problem:

Ever since I installed Ubuntu 12.10 on my computer I haven't been able to change the screen brightness, it was always set to the maximum. I did take a look at this post:

Decrease Backlight Below Minimum

And it helped me resolved the issue with the unbearable brightness, however one problem persists: I cannot change it through "Brightness & Lock" or the function buttons (F2 and F3), when I press the buttons, the animation shows up but nothing happens.
I tried the following:

http://www.refreshit.info/2012/08/solved-brightness-increase-and-decrease.html

It did nothing...

If it helps:

I have an HP-dv6 6185la, it has an ATI Radeon 6770M HD card and an Intel HD Integrated Graphics Card

It only detects the "Intel® Sandybridge Mobile"

Thanks in advance.

What worked for me was to change the /etc/default/grub file as follows:

Open a terminal (Ctrl + Alt + T) and type sudo gedit /etc/default/grub
Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and modify it to one of the following:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

or

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux
acpi_backlight=vendor" (try this if the first one doesn't work)
Save and close gedit.
Then type sudo update-grub
Reboot your pc.

EDIT

As from Ubuntu 13.10, this did not solve the problem for me on a Toshiba laptop. I needed one extra step for the problem to be solved.

I had to create an xorg.conf file in /etc/X11/ with the following contents:

Section "Device"
       Identifier      "Configured Video Device"
       Driver          "intel"
       Option          "Backlight"       "intel_backlight"
EndSection
#
Section "Monitor"
       Identifier      "Configured Monitor"
EndSection
#
Section "Screen"
       Identifier      "Default Screen"
       Monitor         "Configured Monitor"
       Device          "Configured Video Device"
EndSection

WARNING!! Getting the file wrong or if this configuration is not compatible with your hardware, might end up with an unbootable system! It happened to me.

In that case, you'll have to delete (or rename) the file, but to do so requires either booting from a liveUSB or liveDVD (the simplest way) or booting in recovery mode, making the Ubuntu partition rewritable and then delete the offending xorg.conf file.

EDIT2

Starting with kernel 4.4, the toshiba backlight device is blacklisted and doesn't appear any longer thus rendering these workarounds redundant.

Try this, it helped me with intel gpu
http://ubuntufixer.blogspot.com/2012/12/set-screen-brightness-at-start-up.html


How can I turn off swap permanently? Swap makes my system all sluggish and turning it off makes everything smoother. I have 3.5 GB of RAM.

I know how to turn swap off by entering sudo swapoff -a in the terminal, but that's just for the current session, because after a reboot swap turns itself back on. Is there any way to turn swap off permanently?

May I suggest a safer approach? You never know when swap can save you from crashing. While swapping does indeed slow down your computer, if you use a program that eats up all your RAM, having the ability to swap can save you from a hard reboot. When the computer starts swapping, you'll notice and be able to kill the offending application.

So, instead of disabling swap altogether, just make sure your OS swaps very rarely. This is controlled by the vm.swappiness setting in /etc/sysctl.conf. Ubuntu's default setting is 60 if I remember correctly which is too much for most situations and will cause you to start swapping even while RAM is still available. If you reduce this value, you will be able to keep the safety line of swap while only using it for emergencies. So, open the file:

sudo nano /etc/sysctl.conf

And add this line to it:

vm.swappiness=10

If that is still too much, change the 10 to 1. Now, after you restart, you will only swap when absolutely necessary and you can simply forget about it.

Complementing Zibri's answer:

swapoff -a will disable all swaps temporarily.
If you have some swaps in /etc/fstab, just comment them out and reboot.
In my case (OdroidMC1+Armbian), the swap is controlled by systemctl. To find the responsible, use systemctl --type swap.

Example:
# systemctl --type swap

UNIT           LOAD   ACTIVE SUB    DESCRIPTION
dev-zram1.swap loaded active active /dev/zram1

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Disable by masking it with sysctl:

# systemctl mask dev-zram1.swap

Created symlink /etc/systemd/system/dev-zram1.swap → /dev/null.


What does interrupt in eth0 mean? I wonder if "Interrupt" affects internet connection.

eth0      Link encap:Ethernet  HWaddr 60:eb:69:6c:55:83
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:45

eth1      Link encap:Ethernet  HWaddr 4c:0f:6e:6c:d2:9f
          inet addr:192.168.11.41  Bcast:192.168.11.255  Mask:255.255.255.0
          inet6 addr: fe80::4e0f:6eff:fe6c:d29f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:159717 errors:0 dropped:0 overruns:0 frame:24945
          TX packets:155355 errors:40 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:224953980 (224.9 MB)  TX bytes:13688161 (13.6 MB)
          Interrupt:17

The interrupt refers to the interrupt number used by the network adapter. See the breakdown of ifconfig for more details.

Interrupt numbers are assigned to hardware devices by the kernel. They are used to multiplex the few interrupt channels that the CPU has between many hardware devices. You can see all interrupt numbers being used by executing cat /proc/interrupts/

In this case its most likely a dropped packet. Interrupts are how computers call fucntions at the CPU level.  You load the registers and the stack and then generate an interrupt.
But if you really want to understand about interrupts, check out Wikipedia.

http://en.wikipedia.org/wiki/Interrupt


Which Tor to install on Ubuntu 16.04.3 LTS? I do not understand what option to install on this instruction https://www.torproject.org/docs/debian.html.en#ubuntu "Tor" or "Tor from source" , what's the difference?

'tor' gives you the binary only.  (the code your machine runs)

'tor from source' gives your the source code us humans read. this allows you to inspect it, [potentially change] then compile it yourself to get the binary that way. 'from source' is an option you only see with open source software.

Tor from source : you download the source code build the app and install it

Tor : you download the builded app and install it -> The most easy


Webcam not detected in cheese, also not listed in lsusb I have dell inspiron n5110 laptop with windows 7 and ubuntu 14.04 installed in it. Webcam works fine in windows. But in ubuntu , cheese shows "no device found". Here is my output of lsusb:

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I tried installing the drivers by typing :

sudo apt-get install cheese build-essential linux-headers-`uname -r`

Still the problem remains the same.
I tried sudo chmod 777 /dev/video*
It says:

chmod: cannot access ‘/dev/video*’: No such file or directory

Now I tried all available solutions but no had luck. Currently it seems that this is an unsolved problem.

Uninstall cheese and config files:

sudo apt-get --purge remove cheese

Reinstall cheese:

sudo apt-get install cheese

Reboot your computer

This works perfectly for a Dell Notebook using Ubuntu 16.04

I saw this post from LinuxMint forum

Unload the uvcvideo module

sudo rmmod uvcvideo

Reload the module with the quirks parameter set to 0x100

sudo modprobe uvcvideo quirks=0x100

Cheese app still crash.
Try at http://www.testwebcam.com/
Allow when Google Chrome asked.
Enable when Flash plugin asked.


Cannot read external hard disk folders created in Ubuntu I am experiencing a problem. I tried to plug in my external hard disk on Ubuntu. I copied in to it some folders (created on Ubuntu) with files in them.

Then, I plugged it on Windows and I wasn't able to copy or modify any of the copies folders or sub-folders. I could access my files (and modify them), but I couldn't modify or copy any of the folders or sub-folders.

I tried formatting my computer's and the external hard disk, that did not make a difference.

What should I do?

wimvds --> Thanks for your answer, first of all :) Yes! I did. I always use "Unmount" on linux as well as on windows...

Misery --> No errors are promoted during the copy process. What do you mean by saying "attributions"?? :/

As others have said this is file permissions.

Use Microsoft's "xcacls" (a downloadable tool by Microsoft for Windows sysadmins) because I believe it's a Windows issue. I used to see this on Windows Servers sometimes when the ACL (Access Control List) is borked.

Take ownership of everything (important) and then assign 'full control' access level.

You shouldn't have to do it each time.

The file you copied might be encrypted or it could be what @Shannon_VanWagner posted...


What exactly is an "Ubuntu App", as made with the Ubuntu SDK? The Ubuntu SDK appears to be only for creating Ubuntu Apps. What exactly is an "Ubuntu App"?  The website is very detailed, but I can't see any description of what is meant by an Ubuntu App.

I understand that these apps can run on either the desktop or an Ubuntu phone, but which desktop? Is it specifically Unity, or will these apps be usable on Xubuntu, Kubuntu, Ubuntu MATE, or even Linux Mint?

Or does this depend on whether or not I use any Unity specific hooks?

Edit: the referenced website has been updated since I asked this, so the question is not really relevant any more.

I think that what an "Ubuntu app" is is really written in the explanation, i.e. a program that can work on Ubuntu (both Desktop and Touch).

With that SDK you can create QML and/or HTML5 applications.

This means that they can work on all the desktops that support these formats. I personally do not know a list of desktops with such capabilities, apart from the default Ubuntu interface, Unity.

The SDK is built thinking of Ubuntu (it is Ubuntu SDK, not Kubuntu, Xubuntu, Ubuntu Gnome, Ubuntu Mate, ecc) and gives easy access to the services provided by Ubuntu (such as Content Hub, as explained in the Platform section).

I guess that it can be easily adapted to write programs for other desktops that take advantages of QML and HTML5.

An "App" is a short name for "Application".

All it means is its a application that was built for Ubuntu, from a linux based SDK.


kdenlive won't see my external hard drive kdenlive won't see my external hard drive. I have heard that it's a common issue. ..is there a new fix yet ?

I have found out that there are two versions of Kdenlive. One version works great at the Ubuntu Store.


No space left on hard drive I'm trying to copy/move files to an external 1 TB hard drive with about 50 GB remaining space. I receive a "no space left on disk" when I try.

I've moved files off and retried, but still get the same message. Disk Usage Analyzer, Properties, and freeware Treesize all report available hard drive space of about 50 GB.
I've tried df -i (50 GB available) and df -k, with the latter reporting only 1% of inode usage.

I've been able to save files from Firefox to the drive also. I can't even rename files without getting the message. Yesterday in the midst of trying to figure this out I tried to move 4 files to the drive and got the message.  Today, I found them on the drive.  What's up with that?
(That's the only time that has happened to my knowledge.)

Is this an Ubuntu problem? or is my hard drive just about to fail because of something like a controller problem?

You have 5% reserved space on your drive, which can only be used by root. Either you free more space (as you cannot use the 50GB as a normal user), or you tunefs the filesystem to not reserve these GB's for root.

OS is depending of H/w configurations
when installed in Intel chip set MB s/ms
its getting a message box with
Ubuntu 12.04 Internal Error
it freequently comes
then when updatiing applications
hard disk size is increasing freequently
and hard disk becomes full
100 kb download shows 1 GB increase
when hard disk becomes full
OS crashes
pen drive not gets detected


Shortcuts not working Contorl + Alt + T for terminal is not working after the most recent update.

I am very new to Ubuntu, so I am not sure what to do.

Are there any solutions for this?

Thank you.

the first thing you could do is to check the shortcut settings.
It's in the System Settings -> Keyboard -> Shortcuts

Make sure it's still assigned to Ctrl + Alt + T
And the second thing is to check the hardware, make sure these keys are working.

You can open the terminal and type

killall gnome-keyring-daemon

this will restart the daemon and your shortcut should work. I don't know why this is necessary but it is. I also would recommend doing this after every system restart because you need to do this fix after every single boot.
To do this go to the autostart menu (the exact name might vary) and add this command.
After doing this it should work, at least it did work on my PC.


How do I clear the DNS cache? I just updated the DNS record (ns1, ns2, ns3.myhostingcompany.com) for a site I've got hosted, but I still get the domain registrar parking page.

I'd like to see if the problem is Ubuntu's cached DNS records.
Is there a way to clear Ubuntu's DNS cache? (if such a thing exists?)

Ubuntu 17.04 and higher (18.04)

From Ubuntu 17.04 and onwards, systemd-resolve is used for DNS. You can flush systemd's caches like so:

sudo systemd-resolve --flush-caches

I also found contradictions, but this:
https://superuser.com/a/521562
woks for me (Ubuntu 13.10 with latest updates, no special network packages installed).
In short, just use this
sudo /etc/init.d/dns-clean


Problem flashing Ubuntu Touch Firmware on Aquaris M10 (frieza) I have the new bq Aquaris M10 tablet.  The device was recognized by my Linux machine using adb devices.  I tried making my filesystem writable using phablet-config writable-image.

Well, this turned out not to be the answer to the problem I was working on.  So, I tried to revert back to the stock firmware using:

 ubuntu-device-flash touch --channel=ubuntu-touch/stable/bq-aquaris-pd.en

The flash failed when the device rebooted to Recovery Mode, but the the host machine flashing the image said device not in recovery mode-- or something else similar.

Currrently, the device gets hung on the splash screen on boot up.  adb devices does not recognize the device while it is stalled or while in Recovery Mode.  I can enter Fastboot Mode, but I cannot do much of anything because, for example, trying to list or erase partitions results in a FAILED (remote: unknown command) error.

I tried loading the device drives in a Windows machine.  When I plug in the tablet, I get the little sound for a recognized device.  But, when I try to use the MTK Flash Tool to flash the frieza firmware, it does not communicate with the tablet.

Any help is greatly appreciated.  Thanks.

You can use ubuntu-device-flash with the device in fastboot mode if you pass the --bootstrap flag to ubuntu-device-flash. You will need to use that method if it won't work in recovery.

You need to flash a new recovery.img before.Look here you can found it:https://wiki.ubuntu.com/Touch/Devices


Operating System not Found after installing Ubuntu in a Sony Vaio I just bought a Sony Vaio SVS15115FLB that came with Windows 7, after enjoying the PC graphic power for a little, I decided it was time to install Ubuntu 12.04.

First, I inserted a USB stick, reboot, press F11 but a message saying that no OS was found on the USB, so then I used a live CD. It booted fine and I installed Ubuntu, then when it was time to restart the PC, it didn't boot to GRUB but it went straight to Windows and it began an startup error and was looking for a solution, after it was done, it restarted and then it booted again to Windows and to the same start up error solution thing.

I freaked out, so I booted again the Ubuntu live CD, and installed Ubuntu over everything, after it installed I rebooted and then a message appeared saying Operating system Not Found, and I have no idea why. So I Googled again and found this post on Boot Partition, I did everything exactly on that post, but it didn't work (by the way, this was the message):

The boot files of [Ubuntu 12.04 LTS] are far from the start of the disk.
Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk).
This can be performed via tools such as gParted.
Then select this partition via the [Separate /boot partition:] option of [Boot Repair].

It appeared the first time, then I did it all again and then it was gone. I rebooted and nothing, the same Operating System not found message appeared. So I decided to create a partition for Windows, hoping for something, but the message still appears.

I really have no idea what to do, but there is something odd, if I insert the USB stick containing Ubuntu 11.10, the message that says that there is no OS in the PendDrive flashes for a fraction of a second and the boot straight to Ubuntu 12.04 without problems (and booted to Windows when I installed it, ignoring Ubuntu), right now I'm using it like that, but its pretty annoying.

Can anyone advise me how to fix this? I'm no expert on this kind of things (boot, GRUB, recovery and stuff like that).

You have confused an installation with the Pendrive (your usb stick).  Rather than going through technical details, I'll simply suggest that you eliminate the USB drive for now (unplug it) and work with a live CD only.  Your installation will then place grub on the correct drive (one of hour hard drives found during installation which is normally sda unless you've used a bio option to boot to a different from the first hard drive).

A fresh install will then boot without having the USB plugged in.  If you've done work and have configurations or data you want to save on your current Ubuntu installation you can use a grub recovery procedure to boot to your preferred installation.

Fix grup boot:

1) boot to the Ubuntu installation disk
2) Run the "Try Ubuntu" option
3) Bring up a terminal (Launch search "terminal")
4) Run these commands (exactly):

    a) sudo mount /dev/sdaX /mnt  # Make "X" the partition that has Ubuntu installed (i.e. /dev/sda2).
    b) for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt/$i"; done
    c) sudo chroot /mnt
    d) update-grub
    e) if no errors skip this "e" section
        grub-install /dev/sdX (x is the hard drive that has linux installed (i.e. /dev/sda)
        update-grub
5) Reboot the system

You only need a clean installation of windows 7 and make a partition for your ubuntu. For installing ubuntu you need to use wubi (wubi can determine if your computer is 32-bit or 64-bit capable) and then install it to the another partition.


Ubuntu 18.04 not booting up: iwlwifi .. :BIOS contains WGDS but no WRDS when I press Ctrl+Alt+F2 terminal appears and works fine but while Ubuntu login screen is booting up this issue appears

iwlwifi .. :BIOS contains WGDS but no WRDS

And my Ubuntu 18.04 is not booting up in the start.
I haven't found solution to this problem. Anyone knows what to do?

See Ubuntu not booting due to iwlwifi error-BIOS contains WGDS but no WRDS
In a nutshell:

Boot into recovery mode

Choose Enable network, and wait for the process to complete.

Choose Drop to root shell prompt.

Reinstall the desktop manager packages with apt install ubuntu-desktop

Then reboot.

The boot process should progress as usual, and you should be able to log in.

I had the same problem.
I solved it by going to Recovery mode → Enable network. In Repair broken packages input:

$ apt update
$ apt dist-upgrade


Something went wrong while updating I did a sudo apt update and sudo apt upgrade in Ubuntu 18.04. There was about 60MB to install and it was mostly libmono stuff. In the middle of it installing it just started displaying the same text over and over about an error.

I hope this is and acceptable way of providing code, I'm new to the site and don't know how to properly format it.

https://github.com/Etheraex/Apt-error/blob/master/Error

I tried uninstalling mono and monodevelop (I didn't really use them; I just wanted to see how C# development would go on Linux), but it won't let me.

Also:

home@Mladen-PC:~/Desktop/123$ apt --fix-broken install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13:
Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-
frontend), are you root?

home@Mladen-PC:~/Desktop/123$ sudo !!

sudo apt --fix-broken install

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
mono-devel : Depends: ca-certificates-mono (= 5.18.0.225-
0xamarin1+ubuntu1804b1) but 5.16.0.220-0xamarin4+ubuntu1804b1 is
installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be
caused
by held packages.
E: Unable to correct dependencies

After dissabling and enabling ppa for mono sudo apt --fix-broken install
started displaying the same output that is in the github file.

Fixed it, here is a link to a thread if anyone encounters the same issue.
https://old.reddit.com/r/linuxquestions/comments/a9nukf/regular_update_messed_something_upubuntu_1804/


NVIDIA driver issues I have recently installed Ubuntu 16.04 on my Dell Inspiron 15 7559.

Specs:

Intel® Core™ i7-6700HQ CPU @ 2.60GHz × 8
1TB drive
16GB memory
NVidia Geforce GTX 960M

Everything works apart from my nvidia card. I have tried installing many versions which all led to low graphics mode error. I recently tried the v384 driver and my system booted up normally and I thought I'd succeeded, but I was wrong. My Additional Drivers page shows that I have nvidia 384 selected but nvidia x server is empty and system info still shows that I'm running Intel Skylake.

How can I fix this?

I have finally found the answer on my own.

For those that are experiencing the same issues, you have to install bumblebee for optimus support. I used the instructions in this YouTube video, and it worked for me.

sudo apt-add-repository ppa:graphics-drivers
sudo apt-add-repository bumblebee/testing
sudo apt-add-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install nvidia-367 # or install the newest version if there is a newer one
sudo bumblebee-nvidia bbswitch-dkms prime-indicator
sudo prime-select intel
sudo reboot


How to have `e2fsck` use `-E discard` by default? I want to run e2fsck with the arguments -E discard by default, eg when I create a /forcefsck or if the machine wasn't shutdown cleanly.

(I'm trying to stop my VMware guest's *.vmdk files growing constantly)

How do I give default options to e2fsck?

Not sure if this is what you are asking about, but you can always use an alias...

alias e2fsck='e2fsck -E discard'


Thinkpad T61 won't wake from sleep / suspend 13.04 My laptop is a Lenovo Thinkpad T61 with intel graphics card running 13.04.  I'm pretty sure that when my battery gets too low, the laptop suspends itself, but when i plug it back in, it won't come on.  Actually, if I've been playing music or video, i can hear the sound, often glitching and skipping, but there is absolutely no response from the monitor.  The indicator lights come on, as if the computer is running, but no buttons work provoke a response, except when I hold the power button down for an extended time to shut the computer off.
Please help: almost everything else on the computer works perfectly.
Thanks guys.

I had this same problem. Upon reboot, I went into Ubuntu Advanced and changed linux boot kernel from 3.8.x to 3.5.x and I have no issue when rebooting.  Hope this helps you as well.

I have tried adding "modprob -r iwl4965" when lid closes and "modprob iwl4965" when it opens. Seems to fix the problem (maybe your wifi module is iwlwifi).


Unable to using Terminix I can no longer use Terminix. I remember that last thing I did in Terminix it was setting own command (echo) with option immediately closing terminal. Since then, Terminix always starts and ends at the same time.

What can I do in this situation? I started uninstall.sh script from GitHub's Terminix site but after reinstall it is exactly the same situation.

Command whereis terminix shows me that Terminix is in /usr/bin/terminix and in /usr/share/terminix but remove these locations by rm -rf nothing changes. I have Ubuntu 16.

Re-installing the program doesn't affect the program settings stored in the user profile.

Since Terminix' settings are configured through GSettings, you can reset the responsible configuration option com.gexperts.Terminix.use-custom-command either through the dconf-editor GUI or the gsettings terminal command:

gsettings reset com.gexperts.Terminix use-custom-command

(I don't have Terminix installed but I read its GSettings schema definition.)

Presumably, you added the echo command using some kind of GUI menu offered by this Terminix program. The simplest way to remove that is to rename its configuration directory. I don't have Terminix installed, so I can't be sure, but it should be either:

~/.config/terminix

or

~/.terminix

So, just run

mv ~/config/terminix ~/config/terminix.old
mv ~/.terminix ~/.terminix.old

One of the two should work and will rename your existing Terminix configuration directory. All your settings will be lost but you should now be able to open it again.


Which packages write /etc/lsb-release and /etc/issue? What packages write or replace /etc/lsb-release and /etc/issue in Ubuntu or Debian?

Install apt-file, and run:

apt-file update
apt-file search /etc/lsb-release

And..

apt-file search /etc/issue

This returns the list of packages that provide the specified file.

Here, we see that both of the files are provided by the base-files package.

apt-file points at "base-files" just installs the original file, which is later on messed with all the time.

This link has a fact-based description.
http://deadmemes.net/2010/10/19/fear-and-loathing-in-debianubuntu-or-who-needs-etcmotd/


Wireless Card Driver for Dell Mini 1012 using Ubuntu 12.04 not detected? I have tried every solution given on the forums and the original "Wireless Card Driver for Dell Mini 1012 using Ubuntu 12.04?" question here in Ask Ubuntu and I am still not able to get my wireless card working on my mini 1210 with 12.04, everything else is working fine but the wireless card. Is there another solution other than:

sudo apt-get install b43-fwcutter

or

sudo apt-get install b43-fwcutter firmware-b43-installer

I dont know it's similar question or not. but i have answer for this similar question in here : WiFi driver problem with ubuntu 10.10
Maybe it will help u.  Try ndiswrapper.With ndiswrapper you can using windows wifi driver at "base" driver. i have try one years ago and it's quit stable without any problem.

Download it from http://sourceforge.net/projects/ndiswrapper/
Extract the contents of archive.

Open your terminal, cd to the directory where you have extracted it and then run the following commands:

make distclean clean
make
sudo make install

Download WiFi driver (Windows version) from ur vendor pc.

If it's in zip format, extract it. Be sure that you have the *.inf file in driver. Go to folder driver using terminal and run the following commands:

sudo ndiswrapper -i filename***.inf

Check again by running:

ndiswrapper -m

Restart Ubuntu and try again.

I know this sounds strange but I had a similar problem.

The cure was changing the broadcast channel on wireless router to a lower number, like channel 1 or channel 2.

Then found my wireless on laptop connected perfectly and stays connected for as long as I wish.

This is easy to do and takes very little time. I hope it works for you.


How to edit read-only file in /etc? I'm a brand new user so I'm not sure of my way around the system yet. I want to change my computer's name, so I tried to edit the name in /etc/hostname, but it is a read-only file. Adding the ! character didn't help. I'm using vim to edit the file.

Changing system settings requires superuser permissions. From a terminal, do

sudo <editor> <filename>

where  could be vim or nano or any other editor command, and  is the one you need to edit.

You could also usegksudo gedit <filename>.

In either case you will be prompted for password of a user with superuser permissions - in a normal Ubuntu installation this would be the first user created during installation.

By default you have wight permission to hosts file to root user only, as shown below:

-rw-r--r-- 1 root root 252 Dec 16 08:40 /etc/hosts

Hence you have to use sudo to edit this or else you can use below command to become root

sudo su -

however this is not recommended at all.

safest and recommended it you use below command to edit the file

  sudo vim /etc/hosts

then press "Esc" on keyboard and then type ":w!" to write the changes to the hosts file then agin type ":q" or ":q!", this should shall do the trick for you.


GRUB skipped in dual boot I've downloaded the latest Ubuntu, 12.04. I have Windows 7 Professional installed on my laptop, 1 physical HD divided to 3 partitions (C:, D: and System Reserved). I shrank D: drive and had 60 GB of unallocated space. Rebooted from Ubuntu install cd and installed it with the option of Install Alongside Windows 7.

After installation is over, Windows loads automatically; not GRUB, Ubuntu doesn't show up in the Boot tab in msconfig.

Done this several times, same result always. Am I doing something wrong? A while back when I installed 11.10, I had different issues (GRUB won't load, only GRUB4DOS) but eventually I managed to install it. Now, after formatting and reinstalling Windows 7 (Original, not that it matters), I'm stuck.

Any suggestions? Thanks!

First, might be a 12.04 installer bug...which is off topic.

Second, you should be able to install grub from live like this.

Open the terminal and type

gksu gedit /etc/default/grub

And put # before this GRUB_HIDDEN_TIMEOUT=0

It will look like this #GRUB_HIDDEN_TIMEOUT=0.

Save it and type:

sudo reboot

Hopes this helps. If not, I have another way. I will tell you if this fails. But this solution solved my problem today.


How can I install Windows 8 while dual-booting Ubuntu? I have a new Dell laptop which has inbuilt Ubuntu OS in it, I would like to install Windows 8 alongside Ubuntu, that is, without removing Ubuntu.

Without any problem run Windows 8 installation, and when you are asked for drive to what you want to install it, simply create new partition, give some value for it and select new created partition to install on. If this not work, boot in Ubuntu, click dash home from launcher and type in search box: disk utility. When you open it, select your hard drive from left side, and create partition which will be NTFS formated and give some value to it. Then reboot, run Windows 8 installation, and select that new partition created.


Why won't Ubuntu boot? i got a pretty bad laptop (a Dell Latitude d800), and I'm not able to install Ubuntu 12.10.  When I tried to boot, the installer told me there was a problem with my CPU.  I really want to run Ubuntu; is this a problem with my Ubuntu disc or with my laptop? Win7 currently runs fine, so I suspect that it is a hardware problem.

The minimum requirements are:

700 MHz processor (about Intel Celeron or better)
512 MiB RAM (system memory)
5 GB of hard-drive space
VGA capable of 1024x768 screen resolution
Either a CD/DVD drive or a USB port for the installer media

It should run on older computers.  More likely, the problem is that you burned a 64-bit disc and stuck it into a computer that does not have a 64-bit processor.  Try burning a 32-bit disc or USB drive and trying again.

Check your installation media and check about 32/64 bit choose the suitable media for installa


How do I manage Google Chrome updates with the update manager? New Ubuntu user question. I have installed Google Chrome with software center and used terminal to get it to show up.
Today Update Mgr ran and it said an update for chrome was ready so I accepted it and it downloaded.
My question is do I have to do something else, like with terminal, to get it to update, or does the update mgr take care of everything?

Thank you

No, you don't need to do anything else. Just let Update Manager install the update, and that's it.

If you had Chrome running already, you might want to close Chrome and start it again: the running instance will be the previous version (maybe with some of the updated assets), which can sometimes cause problems. That isn't required, though. Update Manager will tell you if you need to restart your computer, and otherwise it should just work.

if you install any .deb or install software via any software/package manager. its automatically add repository to sources. you can update with update manager or terminal with sudo apt-get upgrade.

how this help you


Does apt care if I put the -f flag before or after the command? When I get a dependency conflict, install -f should correct problems.

What is the difference between apt-get install -f
and apt-get -f install?

Both apt-get install -f and apt-get -f install mean the same.

From man apt-get:

   -f, --fix-broken
       Fix; attempt to correct a system with broken dependencies in place. This
       option, when used with install/remove, can omit any packages to permit APT
       to deduce a likely solution. If packages are specified, these have to
       completely correct the problem. The option is sometimes necessary when
       running APT for the first time; APT itself does not allow broken package
       dependencies to exist on a system. It is possible that a system's dependency
       structure can be so corrupt as to require manual intervention (which usually
       means using dselect(1) or dpkg --remove to eliminate some of the offending
       packages). Use of this option together with -m may produce an error in some
       situations. Configuration Item: APT::Get::Fix-Broken.

I don't think the order in which you provide those options to apt-get really matters. They mean the same thing.

sudo apt-get -y install is equivalent to sudo apt-get install -y


Alternative to Gnote when using Unity I like the Gnote is a great application but unfortunately has no app icon, I would like to know if there is any alternative to Gnote working in the systray of Unity.

Note: Tomboy is not an option

Try Zim . It's more of a wiki type application, but it's great for taking notes, and will work with Unity's appindicators.

You can use use Gnote and enable its systray icon. Here's how you do it, run this in the terminal:

gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'gnote']"

In the future, any other app you want to have a systray icon for in Unity, run the same command, just add your app onto the end like so:

gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'gnote', 'YOUR_APPLICATION']"

Every app in there will be whitelisted to show its systray icon. You can get the current whitelist entries with the following command:

gsettings get com.canonical.Unity.Panel systray-whitelist


Keyboard shortcut for pasting on the GNOME Terminal We use Ctrl+V to paste stuff from clipboard, but this is not working on terminal window.

What is the keyboard shortcut to paste on the GNOME terminal?

Like said by others, Copy is CTRL + SHIFT + C and paste is CTRL + SHIFT + V as opposed to a normal text field.

So in short, just add shift to many other text editing shortcut to use it in the terminal.

Here are a couple examples:

Copy: CTRL + SHIFT + C

Paste: CTRL + SHIFT + V

Find: CTRL + SHIFT + F

Close terminal window: CTRL + SHIFT + W

Close all terminal windows: CTRL + SHIFT + Q

and etc.


Reinstall/purge apt package without redownload Simply, to purge and reinstall something like Libreoffice, I cannot find a method to do this without downloading all its packages again.

Is there something obvious I'm missing on how to do this?

Thanks!

It seems by remove a package, all are removed from the system except modified configuration (which is removed if use purge) man apt:

install, remove, purge (apt-get(8))
           Performs the requested action on one or more packages specified via regex(7), glob(7) or exact match. The requested action can be overridden for specific packages by append a plus (+) to the package name to install this
           package or a minus (-) to remove it.

           A specific version of a package can be selected for installation by following the package name with an equals (=) and the version of the package to select. Alternatively the version from a specific release can be selected
           by following the package name with a forward slash (/) and codename (stretch, buster, sid ...) or suite name (stable, testing, unstable). This will also select versions from this release for dependencies of this package
           if needed to satisfy the request.

           Removing a package removes all packaged data, but leaves usually small (modified) user configuration files behind, in case the remove was an accident. Just issuing an installation request for the accidentally removed
           package will restore its function as before in that case. On the other hand you can get rid of these leftovers by calling purge even on already removed packages. Note that this does not affect any data or configuration
           stored in your home directory.

I'm not sure it is possible to do.


Crash after plugging in the Logitech H600 wireless transmitter I recently bought the Logitech H600 Wireless Headset. When I plug in the USB wireless transmitter, Ubuntu 12.04 LTS crashes.

How does that come and what do you suggest me to do?

Same problem here, as soon as the H600 headset is plugged in 12.04 crashes.

Relevant snip from /var/log/Xorg.failsafe.log is below, complete log can be found as a gist

[  2676.496] (**) Logitech Logitech Wireless Headset: Applying InputClass "evdev keyboard catchall"
[  2676.496] (II) Using input driver 'evdev' for 'Logitech Logitech Wireless Headset'
[  2676.496] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[  2676.496] (**) Logitech Logitech Wireless Headset: always reports core events
[  2676.496] (**) evdev: Logitech Logitech Wireless Headset: Device: "/dev/input/event16"
[  2676.496] (--) evdev: Logitech Logitech Wireless Headset: Vendor 0x46d Product 0xa29
[  2676.496] (--) evdev: Logitech Logitech Wireless Headset: Found absolute axes
[  2676.496] (--) evdev: Logitech Logitech Wireless Headset: Found absolute multitouch axes
[  2676.496] (--) evdev: Logitech Logitech Wireless Headset: Found keys
[  2676.496] (II) evdev: Logitech Logitech Wireless Headset: Configuring as mouse
[  2676.496] (II) evdev: Logitech Logitech Wireless Headset: Configuring as keyboard
[  2676.496] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.2/2-1.2.2:1.3/input/input16/event16"
[  2676.496] (II) XINPUT: Adding extended input device "Logitech Logitech Wireless Headset" (type: KEYBOARD, id 10)
[  2676.496] (**) Option "xkb_rules" "evdev"
[  2676.496] (**) Option "xkb_model" "pc105"
[  2676.496] (**) Option "xkb_layout" "us"
[  2676.497] (II) evdev: Logitech Logitech Wireless Headset: initialized for absolute axes.
[  2676.497]
Backtrace:
[  2676.497] 0: /usr/bin/X (xorg_backtrace+0x37) [0xb7698637]
[  2676.497] 1: /usr/bin/X (0xb7510000+0x18c3ba) [0xb769c3ba]
[  2676.497] 2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb74ed40c]
[  2676.497] 3: /lib/i386-linux-gnu/libc.so.6 (0xb7155000+0x135d32) [0xb728ad32]
[  2676.497] 4: /usr/bin/X (XIChangeDeviceProperty+0x16c) [0xb7630b0c]
[  2676.497] 5: /usr/lib/xorg/modules/input/evdev_drv.so (0xb3f4a000+0x634e) [0xb3f5034e]

This is a known issue in 12.04. There is no workaround or fix at the moment (aside from not plugging in the dongle).

The cause is a bug that was introduced in the update of X.org, which recognizes the device as having "buttons" but can't sort out where to send the input from them.

Fix: http://ubuntuforums.org/showthread.php?p=12060775#post12060775

This bug was fixed in the proposed updates.

Add these to the distro by selecting:
Ubuntu Software Centre -> Edit -> Software Sources -> Updates -> [X] (precise-proposed)

Then execute the following code:

sudo apt-get update
sudo apt-get dist-upgrade
sudo restart


How to stop screen going black after 10 min My OS is Lubuntu 13.04. After 10 mins of inactivity the screen goes black. What I did to stop it without effect:

uninstalled xscreensaver completely
in power setting I set to never blank the screen
run some command found in the internet with "xset" which was said to solve it (but maybe it was wrong command, if you know proper please write it)

And still nothing. I don't know why lubuntu wants so hard to keep going black when watching films. For example on kubuntu/ubuntu I just set in power settings to never go black and it works. Maybe lubuntu uses customized kernel with hard-coded extreme energy savings that can't be turned off?

In Lubuntu it is an option in preferences called "Light Lock". It's annoyingly on by default.

new versions of Ubuntu is using gnome-screensaver, not xscreensaver. The settings is in System Settings -> Brightness and Lock


How to boot ubuntu, when windows was reinstalled? I installed Ubuntu inside Windows.
Windows was on the C drive. Ubuntu was on the E drive. I reinstalled Windows.
Now Windows is running but Ubuntu does not boot at start up.
How do I recover from this problem?

Boot using a live usb/cd of ubuntu.
Use boot-repair to fix the problem.

After booting with live usb/cd ,Run following command in terminal,

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

Use Recomended Repair

More information can be found here- > https://help.ubuntu.com/community/Boot-Repair

the problem is that you have reinstall and thus "erase" your grub, windows don't recognise Ubuntu what i suggest is to make a clean installation :

1 . put you windows dvd
format your whole hdd.
2. create 1 partition for your windows and install it
3. insert your  Ubuntu cd then install the os along side with windows.

thats it.

altenative is to in a live cd of linux and install your grub again

hope it help...


Startup problem in 16.04? After upgrading from 14.04 to 16.04, in startup it shows

/dev/sda1: clean, 291272/4292608 files, 480345/18174432 blocks

which makes Ubuntu take some time to load.

Same problem here. I thought this problem was due to the changes that I made in the secure boot settings (UEFI) in the upgrade process of my dual boot laptop (ubuntu and windows).
After browsing some forums and comments section, I finally found the solution (for my laptop at least, I dont know if this works for everybody)

Open terminal at log-in screen (ctrl+alt+F2)
after logging-in, run
sudo apt-get purge nvidia*

Same problem here! I made a fresh install of Lubuntu 16.04 on several old netbooks (with format of an 15.10 ext4... so no link with ext2 or whatever): always stuck on

/dev/sda1: clean, xxx/xxx files, xxx/xxx blocks

I've tried to install (fresh install) Ubuntu MATE: no problem to boot!?

I've tried to remove quiet parameter in grub to see where exactly is the problem, but the line changing everytime. Sometimes it's stuck at the line:

[ OK ] Started Create Volatile Files and Directories...... for the current kernel.

Sometimes at

[ Ok ] Reached target System Time Synchronized.hutdown.... for the current kernel.

Sometimes at other line...

I can access to tty if I remove quiet parameter.


How can I automatically restart charms after boot up Here is the case:

How can I automatically restart charms after boot up?

You can use @raboot command cron job

in terminal crontab -e
it will open a cron job file where you can add jobs.

add a line with

@reboot "command you want with all switches needed"

without the "" that is.


How to access an ubuntu machine via VNC from the login screen? I want to access an Ubuntu machine remotely via VNC. But I can access the Ubuntu machine only if the user is logged in. I want to access the ubuntu machine via VNC from the login screen itself. We can access all windows machines from the login screen. However we were not able to access the Ubuntu machine from the login screen. There is some way but I am not aware of the details.  Can someone give a solution to this problem?

Your best bet is to install xrdp . After installation, you can use an RDP client to connect to the machine - you will then be prompted for your credentials as you would be on the login screen.

re: try with X11vnc

x11vnc hasn't been updated since september of 2011!!!! There are known bugs and I'm getting popped by one that triggers a stack smash termination of x11vnc any time a pop-up dialogue (such as clicking the 'file' menu on any window) disconnecting the session.

Raspberry pi's can connect to the desktop manager session on :0, why in the hell is this such a problem for Ubuntu?!?! Why is it necessary to rely on an orphaned, 7 year old program to do this on any modern operating system?


How to add partition for UBUNTU 12.04 in my MacBook Pro 7.1 that already have Windows XP and OS X 10.6.8 (bootcamp)? I have Windows XP and OSX 10.6.8 in my mac via bootcamp. Now that I want to install Ubuntu, I want to add 2 extra partitions (for LINUX and LINUX swap). Previously only Macintosh HD and BOOTCAMP for Windows XP.

However, the partition can't be made. The message says that the verification failed.

Can anyone help me to partition my hard drive?

FYI: I am using DiskUtility.

on diskutility do the partition leaving the partition as "free space" then from ubuntu intaller configure it, here is a guide but is in spanish... is for kubuntu, but I guess should be similar
http://blueleaflinux.blogspot.com/2012/04/guia-de-instalacion-de-kubuntu-1204_25.html


How to show all searched results in pdf in a glance? In evince, when searching some text in a pdf file, the result will be displayed one by one by hitting "next" or "previous" button.

I wonder if it is possible to glance at once all found results with a little context for each in either evince or other software? I remember adobe acrobat seems to be able to do this, and djview can also do the same for djvu files.

As far as I know there is no PDF reader on Linux that offers this capability as a part of its inbuilt toolset. However, you can always use an external desktop search engine such as Recoll to gain an overview of search term instances within a PDF document.

Recoll's newest releases come with a nifty snippet window that does exactly what you're looking for:

And, what's more, clicking on one of the page numbers will immediately direct you to the relevant part of the document and pass the search term to the document viewer.

Note: this will only work if you use Recoll coupled with a PDF viewer that is capable of being passed page numbers and search terms from the command line. Ubuntu's default PDF viewer, evince, can do that. Others, such as KDE's Okular can't at the moment.

Actually there is a purpose of giving like that it is the PDF(PRINTABLE DOCUMENT FORMAT) is generally consists of large volume of data so instead of finding all the pages and displaying the results may take time and for some documents it may fail to run so its is better to display in current page. and actually i think there is no option like that for PDF


Cannot launch ImageMagick Cannot launch ImageMagick after upgrading to Ubuntu16.04. After launcded, it appears on the tool bar for a short time, and then disspears. Launching on terminal by entering "display" can run it with no problem. What should I do? Anyone can help? Thanks in advance!

The terminal command to launch the ImageMagick GUI window is

display

or

display-im6

"Display in terminal". I use linux mint and find the icon twice as a Linux Mint menu item, but "Show" checkbox was not selected. One command was "/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/display %f", other "/usr/bin/display-im6 %f". The later works as a terminal command. Only %f gives error and do not show ImageMagick menu by default. Anyhow taking "%f" away it worked. Menu item configuration could be reached right click at "Menu".


Is it possible to perform speed test with any Ubuntu server? I have a home server with Ubuntu and I want to measure download and upload speed in my LAN. Is there any program for Ubuntu that will help me do this?

a standard tool is IPerF or it's graphical frontend JPerF

( https://www.cyberciti.biz/faq/how-to-test-the-network-speedthroughput-between-two-linux-servers/ )

Well, you said download/upload speed and LAN, so I'm not sure which you actually want.

To test download/upload speed of your Internet connection:

Yes. It's is possible.  With the project: https://github.com/sindresorhus/fast-cli

If you have node installed, just run npm install --global fast-cli

Then you can use fast to start the test.

If you don't have node installed, you can install it with apt install nodejs

To test your LAN speed, you'll need a second computer and install iperf on both.

Run one side as a server, the other side as the client.

On ubuntu, you can install iperf with apt install iperf, on MacOS brew install iperf for other operating systems you'll have to google.


USB-creator: Error erasing device: Unknown or unsupported erase type I created a live usb using usb-creator-gtk. I installed Ubuntu with it and all was good with the world. Now I am trying to use the same memory stick and create a live USB for 14.04 and I get the following error when trying to erase the disk.

org.freedesktop.DBus.Python.gi._glib.GError: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb
  retval = candidate_method(self, *args, **keywords)
  File "/usr/share/usb-creator/usb-creator-helper", line 239, in Format
  block.call_format_sync('dos', GLib.Variant('a{sv}', {'erase': GLib.Variant('s',   '')}), None)
gi._glib.GError: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error erasing device: Unknown or unsupported erase type `'

How can I fix this so I can create a new live USB?

SB must be formatted to FAT32. then it'll work again. I was creating the live USB stick fo rubuntu 14.04. when I encountered it and  now its working fine

Seems a permission problem. I resolved a similar problem running usb-creator-gtk with sudo in a terminal:

sudo usb-creator-gtk