You can block it for specific sites:

Write in address box about:permissions then Enter
Select target site
Use the camera: Block

Reference: Mozilla Support Forum: What are the camera and microphone permissions?

Other way:

Visit the target site
Right click → View Page Info → Permissions tab
Use the camera: Uncheck Use default then Choose Block

Reference: MozillaZine: About protocol links


I also have my system setup to Danish locale and get the same warning message. It doesn't seem to be a problem, but you can change locale for the individual command be prefixing LANG=C like so:

LANG=C snap refresh

Then you won't see the message.

You can inspect your locale settings by running:

locale

In fact you can see the effect of prefixing LANG=C by running like so:

LANG=C locale

You can change your system language more globally if you like. It's explained pretty well in this thread:
Switch command output language from native language to english


check whether grub2 is installed on the master hard disk. Does window load properly? if yes, then install grub2 on the 500gb hard disk else install it on 1000gb hard disk.


No Space Left on Device when transferring large amount of photos to newly formated HDD

It might be as simple as a very unfortunate choice of names: /snap is used on recent Ubuntu releases as the system directory for snap packages. https://en.wikipedia.org/wiki/Snap_(package_manager)
Try a different name like /photos. Or, more conforming to Linux standards, create a subdirectory in your home directory; your home directory is yours alone, it doesn't collide with system directories.
cd
mkdir photos

(a lone cd without argument takes you to your home directory)


lm-sensors stops reading temp1, causes overheating

thermald
ps auxc | grep -i therm shows me that you've got at least two thermal control processes running.
$ ps auxc | grep -i therm
root       154  0.0  0.0      0     0 ?        I<   May26   0:00 acpi_thermal_pm
root       956  0.0  0.0 186996   420 ?        Ssl  May26   0:01 thermald

Purge `thermald`... and `thinkfan`...
sudo apt-get purge thermald
sudo apt-get purge thinkfan

lm-sensors
After installing lm-sensors, be sure to configure it by running sensors-detect.
BIOS
Lenovo Thinkpad T440
You have BIOS GJET71WW (2.21).
The current BIOS is GJETA4WW (2.54) and can be downloaded here.
If you don't have Windows, you can either build a bootable freeDOS USB flash, or download the .iso and build a bootable CD/DVD.
The updated BIOS may help with your fan/temp problem.
Note: Have good backups before updating the BIOS.


Using x32 Program on x64 Architecture Ubuntu 15.10

I would simply try to go with the instructions in the Readme file of the github repo...

First... install git

sudo apt-get install git

Clone the repository:

git clone https://github.com/gnab/rtl8812au
cd rtl8812au

compile the module...

make
sudo cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
sudo depmod
sudo insmod 8812au.ko

If you get an error, you might need the kernel headers...

sudo apt-get install linux-headers-$(uname -r)

Start again with 'make'...

You don't need the i386 libraries to compile a kernel module.


My system setting gear disappeared from the dock, how do I get it back?

Press the Super (or Windows) key to invoke the dash.
type "system" in the search field.
The "system settings" icon will appear among the search results. Click it to open System Settings.
It will appear in the dock again. Right-click it and select "lock to launcher" to pin it there even if it's closed.


Facing authentication failed while upgrading to 20.04

I'm not sure the accepted answer should be recommended because I imagine the normal upgrade process does plenty of other things?
I had the same problem like the original poster and found out it was a missing (not logged) gpg key. For information my installed system is really old was updated through the years from a 13.10 installation so I guess that's why there were some public key problems.
First I checked the two files with apt-key verify focal.tar.gz.gpg focal.tar.gz
Which showed me that there was a key missing to check the signature.
In case you don't have this files in your tmp folder you can just download them and make the verification:
http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz
http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz.gpg
gpgv: Signature made jeu. 03 sept. 2020 15:23:39 CEST
gpgv:                using RSA key 3B4FE6ACC0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) ftpmaster@ubuntu.com"
gpgv: Signature made jeu. 03 sept. 2020 15:23:39 CEST
gpgv:                using RSA key 871920D1991BC93C
gpgv: Can't check signature: No public key

I then added the missing public key via: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
The update was functioning properly afterwards.


Can I download music files that I own to another computer from Ubuntu One?

Yes. If it's another Ubuntu computer then log into Ubuntu One on there and they should sync. If it's windows/mac then go to the Ubuntu One online and download from there!


unable to install chrome: libxss1 not statifiable

So as you mentioned you have downloaded the .deb file you can install it from terminal.

Method 1:

  sudo dpkg -i <your/file/path/to/debfile>.deb

If you facing the dependencies issue then

sudo apt-get install -f

can help you & then try again with 1st command.

Method 2:

as Ubuntu have one more wonderful package which can take care of dependencies automatically named as gdebi. to install it

sudo apt-get install gdebi

Then simply

sudo gdebi <filename>.deb

If any thing else to do with dependencies , gdebi will take care of them.

Hope that helps.


To install the official package and testing VirtualBox for your release, you need only

sudo apt install virtualbox

That will cause https://packages.ubuntu.com/eoan/virtualbox to be installed (note: it's found in 'multiverse' so that repository must be enabled; https://help.ubuntu.com/community/Repositories/Ubuntu)

You are trying to install a virtualbox packaged for bionic (18.04) which is unofficial for Ubuntu 19.10 (eoan).  It needs to be removed (if installed) and the official 6.0.14 package installed from official repositories (for eoan).


Why show desktop (with alt tab) in kde renders alternatively two different things?

gsettings set org.gnome.desktop.background show-desktop-icons false

Solved.


Can't install Ubuntu Minimal on ThinkPad T450s

Problem solved. I had a wireless mouse receiver still plugged into a usb port, which was apparently fouling up the installer. After removing it, things are working as they should.


Moving Configuration Directories and Files to a Sub-directory of Home Directory

It's possible move your config to another directory, but i have good alternate for You can keep hidden and not showing it on your home directory by type ctrl+h on your home directory.


Try

 sudo apt-get -f update
 sudo apt-get -f upgrade

just to fix any existing problems. Then

 sudo apt-get --reinstall install software-center

to re-install software center.


How to pass a double quoted string to a function that executes as sudo

It seems you want to preserve the $3 value as a single string, not split on spaces. To start with, as steeldriver says in the comments, you must use
sudo "$@"

and that means you must call
superdo apt-key adv --fetch-keys "${2}"
superdo add-apt-repository -y "${3}"

The problem you find is that you end up with add-apt-repository then being passed a string that includes the double-quotes from the file. You need to remove these. For example, after the IFS=... read add
repo=${repo//\"}

Finally, replace grep by fgrep to avoid the interpretation of [] in the string as a pattern.


Why Recent Items are not being deleted even using the Privacy app in Unity?

I've found the /home/username/.local/share/recently-used.xbel file, from where I can manually remove the files reference.

I think the Privacy settings should delete it too, but a person said here that Privacy's Delete History button is supposed to delete Recent Items in Files & Folders lens of Unity Dash only. I disagree. I think it should. But it doesn't.


terminal + ssh doesn't display UTF correctly

This answer to a similar question helped

https://askubuntu.com/a/144448/9685

Commenting out SendEnv LANG LC_* in the local /etc/ssh/ssh_config file fixed everything.


Boot splash broken by "SP5100 TCO timer: mmio address 0xyyyyyyy already in use"

Looks like a bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/740011

And it was even fixed on the 11th of April.

Launchpad Janitor wrote on 2011-04-11:
This bug was fixed in the package linux - 2.6.38-8.42

Check your kernel version with
    uname -a

If it is 2.6.38-8.42 it might be a regression so you might add your dmesg log to above bug.

Solution for now: you can blacklist SP5100_tco and the error will be gone.
Blacklisting HOW TO: http://ubuntuforums.org/showthread.php?t=166624


Why do I need to edit /proc/sys/net/ipv4/ip_forward to be able to arpspoof?

SSLstrip works as man in the middle, which in itself somewhat explains why you need to enable packet forwarding.

Your 'server' sits in between the client and the intended destination.  As the client browses, the traffic is processed and modified by you, and then sent on to the destination.  If you don't enable packet forwarding, the data would stop at your server, and the client would appear like it wasn't connected to the internet.

By default packet forwarding is off in Ubuntu, so by setting it to 1, you are enabling it.  So, your title doesn't make a ton of sense.


Graphics tablet won't affect mouse cursor location, Ubuntu 17.10

I had the same problem, and it took me a while to find the rather simple solution.

Switch back from wayland to xorg by logout, change the setting, log back in.
Here is a more detailed explanation:
https://itsfoss.com/switch-xorg-wayland/


gThumb not showing thumbnails after software update

I also had this problem, and the solution was to use a ppa and update to gthumb 3.01.
For some reason I couldn't build gthumb from source properly (which I would normally do), and so tried the ppa. See more information here on the ppa. You could try to build it from source if my solution doesn't work for you: see the instructions here.

(By the way it is confusing as in the repositoriesgthumb 2.14, the default Precise version, is labelled as 3:2.14.3-0ubuntu1)

Remove gthumb:

sudo apt-get purge gthumb
sudo apt-get autoremove
sudo apt-get update

Add the ppa:

sudo add-apt-repository ppa:webupd8team/gthumb
sudo apt-get update
sudo apt-get install gthumb


Browsing to parent directory from symlinks in Ubuntu

If you're browsing in a shell, you could use

cd "$(pwd -P)" ; cd ..

-P means the physical (real) directory to which the current one is a link


Why is NTP Clock not syncing with NTP Server in another continent?

NTP always distributes time in UTC. It does not matter where it's located.

Time zones are applied at your computer, and different users can have different time zones. Internally, Unix keeps track of time in UTC.

To change time zone, run sudo dpkg-reconfigure tzdata.

You can also change the timezone for a single command:

[~]$ TZ=UTC; date
Fri 17 May 07:34:05 UTC 2019
[~]$ TZ=CEST; date
Fri 17 May 07:34:07 CEST 2019
[~]$ TZ=EST; date
Fri 17 May 02:35:03 EST 2019
[~]$

Here I first show UTC time, then Central European Summertime (my local TZ), and then Eastern Standard Time, which is used in the eastern part of the United States.

When you select NTP servers, select local servers. This probably means indian servers. You want as low latency and low jitter as possible. This probably means you should use in.pool.ntp.org, unless you have special requirements.


16.04 Reallocate Partitions on Dual boot system

Use sudo lsblk -o +fstype (in a Terminal) to see what partitions are mounted where. Please add the output of this command to your question.
Windows uses three partitions (a System partition, a Boot partition which appears to have the drive letter C:, and a Recovery partition). The same lsblk will show you what filesystem is in each partition so that you can deduce which partitions are used by Windows.
If indeed /dev/sda6 is not in use by either Linux or Windows then you can delete it using Gparted (in the GUI), or, if you prefer the command line, by sudo parted /dev/sda rm 6.
If indeed /dev/sda6 is adjacent to and to the right of /dev/sda5 then the same Gparted can extend /dev/sda5 into the now empty space. If you want to do it via the command line then you must first move the end of the partition with sudo parted /dev/sda -- unit s resizepart 5 nnnn when nnnn stands for the sector before the first sector of /dev/sda3 as displayed by sudo parted /dev/sda -- unit s print free, followed by a sudo resize2fs /dev/sda5.


How could I install Ubuntu One on KDE and use it with dolphin?

Ubuntu One uses Qt for the control panel now, on Ubuntu 12.04. There is no plug-in for Dolphin to provide integration there yet, though. When you upgrade to 12.04, you can simply run the following command, and it will install everything you need.

  sudo apt-get install ubuntuone-control-panel-qt

You may still need to have gnome-keyring-daemon running, if kwallet in 12.04 doesn't implement the freedesktkop.org secrets API as gnome-keyring does.

There was a FAQ or Tutorial on the Ubuntu Wiki about this, but I can't seem to find it right now, unfortunately.


Unable to access Ubuntu Virtual Server's ip from host's browser

this is sometime happen when your server is bind with localhost or 127.0.0.1 so first you have to check your apache2 service is running using command

sudo service apache2 status

then check which ip is binded with server port using command

sudo netstat -tulnp | grep 80

if that is not listening correct then do
open file /etc/apache2/ports.conf

sudo nano  /etc/apache2/ports.conf

and make change like

Listen 0.0.0.0:80

or

Listen serverip:80

then restart apache2 service using command

sudo service apache2 restart

also disable firewall using

sudo ufw disable

and flush iptables
or
allow port 80 using command

sudo ufw allow 80


I faced the same problem so I tried the command:

$kbuildsycoca4

but it felt to run, because I needed to install some kde libs. Then I installed such libs typing:

sudo apt-get install kdelibs-bin

After that Okular was able to open PDF's.

Is this a bug? I'm running Linux Mint 17.1 in a fresh installation.


Resolution 640x480 after installing Nvidia display and CUDA drivers for GTX 750 ti

I solved this problem on your PC.
This problem xorg.conf file.

me hardware: "acer x243hd" and "gigabyte geforce gtx760"

cat xorg.conf !!!not work (640x480) this file gen nvidia-xconfig:

~$ cat /etc/X11/xorg.conf.nvidia-xconfig-original
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

cat xorg.conf !!!work (1920x1080):

~$ cat /etc/X11/xorg.conf
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 80.0
    VertRefresh     55.0 - 75.0
    DisplaySize     400 225
    Modeline       "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    BusID          "PCI:1:0:0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Viewport    0 0
        Depth       24
        Modes      "1920x1080_60.00"
    EndSubSection
EndSection

How get: Modeline "1920x1080_60.00"  172.80  192.... bla bla bla

~$ gtf 1920 1080 60

  # 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
  Modeline "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync

add this in Section "Monitor" and do not forget to add in Section "Screen" -> SubSection "Display" string Modes "1920x1080_60.00"

To summarize:

Specify the correct HorizSync and VertRefresh
Gen and add you Modeline
Add name Modeline in Modes

Thank you all for your attention!!!


This sounds like something Canonical needs to deal with.  Perhaps emailing the Canonical people would help?  Because they'd need to address the issue, since most of the people here who answer are just users, and not the Canonical people.


I think it is super+tab. But you can change it to whatever shortcut you want in Settings->Keyboard Shortcut->Navigation->Switch Applications or Switch Windows.


If Vim-LaTeX is using the standard MIME database for opening the .dvi file, the problem could be that the default association is wrong. I have a couple of system where .dvi files where associated with evince that is not able to open them.

You can check which application is the default one for opening a file with, for example, Ubuntu Tweak, in Admin->File Type Manager:

And adding xdvi if it is missing:

Or using the command-line mimeopen:

[romano:~/tmp] 130 % mimeopen test.dvi
Please choose a default application for files of type application/x-dvi

    1) Print Preview  (evince-previewer)
    2) Document Viewer  (evince)
    3) Other...

use application #3
use command: xdvi
Opening "test.dvi" with xdvi  (application/x-dvi)

which will change the default too.


Why do my windows resize and all move to the first workspace?

Wow, yes, it's a crash of the "unity-window-decorator". The underlying X server may be the root cause for this.  This shouldn't happen. This may be best treated as a bug report to Ubuntu, for this I suggest:

Edit /etc/default/apport and set enabled=1
Reboot
Log in and start doing stuff
When the crash happens, you'll get a prompt to file a bug, follow the instructions.
Afterwards, disable apport (enabled=0) as it consumes extra resources.

As a way to stop this from giving you trouble, I can suggest two things:

Use the "classic" environment, which doesn't use Unity or stress the graphics hardware so much.
Upgrade to Ubuntu 11.10, things may be more stable, and if you keep experiencing the same problem, you can switch to Unity 2d, which is much closer to the experience you're used to.


Get Unity-like workspace management in Ubuntu Artful 17.10

To an extent, you have to adapt to the working environment you choose to work with.

1) a grid of workspaces (3 columns, 2 rows to be precise);
You already found the Workspace Grid shell extension

2) the application windows remaining in the workspace I move them to;
Using Gnome Tweaks, which is not installed by default in Ubuntu, you can set workspaces to "Static". With dynamic workspaces, workspaces automatically are removed when they are empty, so indeed an application you placed on workspace 3 may end up on workspace 2 or 1 later in the session.

3)miniatures of the workspaces content in the switch modal;
Gnome-shell provides miniatures of the workspaces in the overview when you press Super. By default, however, you have to hover the right side in the overview to make the miniatures visible. You can make sure the workspaces are always expanded with the extension "Always zoom workspaces"

4) workspace switcher showing the overview of all workspaces.
I do not follow here: in the overview, all workspaces are shown. You may also install a "Workspace switcher" extension that provides a clickable icon on the panel that allows you to switch workspaces from a pull down menu.


gpg: can't connect to the agent: IPC connect call failed (WSL Ubuntu 20.04)

Uninstall the gpg that comes installed by default and install gnupg1 package instead
sudo apt remove gpg

sudo apt install gnupg1


Run the following command to install dependencies:

sudo apt-get upgrade -f


Ubuntu Coovachilli freeradius phpmyprepaid

Edit your /etc/php5/apache2/php.ini

find for: short_open_tag=Off

and set it to: short_open_tag=On


How to tell what PHP 7 version is installed, and how to update it to latest version?

First part, what's installed.

This all goes back to package versioning schemes, and why you're getting confused.  So, lets dissect it into its individual parts.  Assuming it conforms to typical Debian versioning and such, then...

Take php7 you stated:

PHP 7.0.0-2+deb.sury.org~trusty+1

This string is dissected as follows:

PHP = the software name
7.0.0 = the version of that software (from PHP's own versioning schemes)
-2 = the Package Revision number - that is, how many different packaging changes have been done - this would be the "Second Package" which means they made changes to the packaging or applied patches through quilt in the second version.
+deb.sury.org indicates the repository source - it's from deb.sury.org repos, which are actually PPAs running on Launchpad, with packages made by the one who runs the deb.sury.org website.
~trusty+1 - This indicates additional version specific changes done for the repository - this is an Ubuntu Trusty, package, and likely is either the first or second revision of the package (depending on if they ever had +0 or not) specific for Trusty.

TL;DR: This is a PHP 7.0.0 package, but it has had a couple of revisions since the initial PHP 7.0.0 package.

Second part, how to get PHP 7.0.2.

The repository you are using is a PPA - likely this one.

It was informed to me that 7.0.2 is available and you need to run apt-get update && apt-get upgrade.  That should put you on the right versions.  If it doesn't, then try using apt-get dist-upgrade as there may be other dependencies that need added and the upgrade was held back because of that.


Set default application by extension not mimetype

Try the following:

Use nano to create the /usr/share/mime/packages/musescore3.xml file:
sudo nano /usr/share/mime/packages/musescore3.xml

Copy and paste (with Ctrl+Shift+V) the following:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-musescore3">
    <comment>MuseScore file</comment>
    <sub-class-of type="application/zip"/>
    <glob pattern="*.mscz"/>
  </mime-type>
  <mime-type type="application/x-musescore3+xml">
    <comment>uncompressed MuseScore file</comment>
    <sub-class-of type="application/xml"/>
    <glob pattern="*.mscx" />
  </mime-type>
  <mime-type type="application/vnd.recordare.musicxml3">
    <!-- http://www.musicxml.com/for-developers/musicxml-dtd/ -->
    <_comment>compressed MusicXML file</_comment>
    <sub-class-of type="application/zip"/>
<!-- Note: a custom icon is used for MusicXML files. You can change this below -->
<!--  <icon name="application-x-musescore"/> Uncomment to use MuseScore file icon -->
<!--  <generic-icon name="audio-x-generic"/> Uncomment to use generic audio file icon -->
    <glob pattern="*.mxl"/>
  </mime-type>
  <mime-type type="application/vnd.recordare.musicxml3+xml">
    <!-- http://www.musicxml.com/for-developers/musicxml-dtd/ -->
    <_comment>uncompressed MusicXML file</_comment>
    <sub-class-of type="application/xml"/>
<!--  <icon name="application-x-musescore"/> Uncomment to use MuseScore file icon -->
<!--  <generic-icon name="audio-x-generic"/> Uncomment to use generic audio file icon -->
    <magic>
      <match type="string" value="&lt;?xml" offset="0">
        <match type="string" value="score-partwise" offset="0:128"/>
        <match type="string" value="score-timewise" offset="0:128"/>
      </match>
      <match type="string" value="&lt;!--" offset="0">
        <match type="string" value="score-partwise" offset="0:128"/>
        <match type="string" value="score-timewise" offset="0:128"/>
      </match>
    </magic>
    <glob pattern="*.xml" weight="40"/>
  </mime-type>
  <mime-type type="application/vnd.recordare.musicxml3+xml">
        <!-- http://www.musicxml.com/for-developers/musicxml-dtd/ -->
        <_comment>uncompressed MusicXML file</_comment>
        <sub-class-of type="application/xml"/>
        <!--  <icon name="application-x-musescore"/> Uncomment to use MuseScore file icon -->
        <!--  <generic-icon name="audio-x-generic"/> Uncomment to use generic audio file icon -->
        <magic>
              <match type="string" value="&lt;?xml" offset="0">
                    <match type="string" value="score-partwise" offset="0:128"/>
                    <match type="string" value="score-timewise" offset="0:128"/>
              </match>
              <match type="string" value="&lt;!--" offset="0">
                    <match type="string" value="score-partwise" offset="0:128"/>
                    <match type="string" value="score-timewise" offset="0:128"/>
              </match>
        </magic>
        <glob pattern="*.musicxml" weight="40"/>
  </mime-type>
</mime-info>

Save and close nano using Ctrl+O and Ctrl+X.

Run:
sudo update-mime-database /usr/share/mime

Then right-click a .mscz file and then go to Properties → Open With → select MuseScore from the list → Set as default.

If that doesn't work immediately, repeat step 5 to set the default program (Archive Manager) for a zip file and then repeat for Musescore.

The following screenshot is an example of the Properties window.


Quit application on Ctrl+C in Quickly framework

Here's the bugreport describing your issue: https://bugzilla.gnome.org/show_bug.cgi?id=622084


I found the final solution by trial and error, after my laptop gave me clues (it has win7 and 15.10 loaded), and after weeks of frustrations without help. I loaded everything I could find for dvd: gxine; libxine-all; everything for ffmpeg; python3dvd; quicktime -lib and -util. I reinstalled the libdvd-read -css2 etc as a precaution. This enabled 16.04 to at least read the dvd and attempt to play it. VLC gave me an error reading about blocks, which is a cryptic way of stating the drive itself may be a problem. Seems my sata drive was too old and could not process the blocks. Bought a new drive and problem now solved. I hope my troubles and solution may benefit others. p.s. I think the quicktime is the main solution.


Error in resynthesizer plugi for GIMP 2.8 on Heal Selection

Gimp requires the plugin files (.py) have permission "execute".  Use a file browser to query and change the permissions of the files.

This problem might happen if you installed manually by copying files, or if the installer is deficient.  In both cases, an important step was omitted: change the permissions of the installed plugin files.


Missing app-indicator icons in Ubuntu 18.04

Pressing Alt+F2 and running r will reset the indicator icons and get them to show again. More information and a permanent fix can be found here, Fix Missing Indicator Icons On Ubuntu 18.04 Or 18.10 . I too have experienced this issue on a fresh Ubuntu 18.04 install. I haven't yet tried the permanent fix as listed in the website I linked.


Not sure if it is the best way but I had the same issue and this helped.

sudo ln -s /usr/local/cuda/lib64 /usr

Verify the link from /usr with ls -l lib64

lib64 -> /usr/local/cuda/lib64


This error might be because you are running AppArmor along with SELinux. AppArmor is installed by default in Ubuntu. You can't use 2 LSM (Linux security modules) at the same time. You need to remove AppArmor if you wish yo use SELinux

See an aswer here: Is it a bad idea to run SELinux and AppArmor at the same time?


Software Updater missing from System Tools

I had the same issue after a fresh install of LUbuntu 18.10. In a terminal I ran the following command:

sudo apt-get install update-manager

Software Updater and Software & Updates shows under preferences.


How to schedule a cronjob for python script to be executed on weekdays?

This information is not as easy to find as usual, but the full documention can be viewed by doing:

man 5 crontab

which reveals this:

          field          allowed values
          -----          --------------
          minute         0-59
          hour           0-23
          day of month   1-31
          month          1-12 (or names, see below)
          day of week    0-7 (0 or 7 is Sun, or use names)

There is also a reminder of these fields at the top of every new crontab, but you may have deleted that:

# m h  dom mon dow   command

So, in order to run your script at 8:00, 15:00 and 18:00 on weekdays, do

0 8,15,18 * * 1-5 /usr/bin/python3 /home/[username]/Documents/Python/script.py

where 1-5 means Monday through Friday.

You need to fill in your own username, as cron does not understand the ~shortcut.


Ubuntu 16.04 Meltdown patch - kernel version

NO EXPERT HERE; However, I saw something similar last night Jan 10, when I let Ubuntu install the latest Ubuntu 16.04 update. So far, no problems.

After updating Grub2, My Terminal uname -a command yields:

Linux 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Guessing 4.13 is installed and your Grub isn't pointing to it. Look for it when booting in the Grub boot menu.

You could start Terminal and List all kernels including the current booted using command:

dpkg --list | grep linux-image

or

I checked the installation log using Gedit

/var/log/dpkg.log

and found the following line:

upgrade linux-generic-hwe-16.04:amd64 4.10.0.42.44 4.13.0.26.46

indicating the 4.13 upgrade started.

I use "Grub Customizer" to maintain my Grub. Be extremely careful, if you use it. Search for "How to Install Grub Customizer 5.0.5 in Ubuntu 16.04 LTS" . It will install the latest version. Mine is 5.0.6.


Dual Booting Windows 10 and Ubuntu but can't select OS at boot

The symptoms you report can be caused by at least three things:

Mixed-mode (BIOS/EFI) installations -- If Windows is installed in EFI mode and you install Linux in BIOS/CSM/legacy mode (or vice-versa), you can see something like what you report. The best solution to this problem is to install an EFI-mode boot loader for Linux. The Boot Repair tool recommended by others can do this, and there are other ways to do it, too; however, it's important that you verify that this is the problem before you try this fix. Also, Boot Repair will do nothing useful if you run it from a BIOS-mode boot, so you must disable your CSM before you attempt this repair. See my page on the CSM and its problems for more on this issue. You can tell if your Ubuntu is booting in EFI mode or in BIOS mode by looking for a directory called /sys/firmware/efi. If that directory is present, you've booted in EFI mode and this explanation is most likely not the issue; but if that directory is not present, you've booted in BIOS mode and this may well be the problem.
Mis-set EFI-mode boot order -- On an EFI-based computer, the order in which the computer tries various boot loaders is stored in NVRAM. If this information is incorrect or missing, you can end up booting straight to the wrong OS. To fix it, you can adjust the boot order with efibootmgr, as described here; or in Windows with the EasyUEFI utility.
Windows adjusting the boot order on every boot -- This possibility is a special case of the former one. I've seen some reports of Windows adjusting the boot order with every boot. This can result in something like the problem you're seeing, but with the caveat that the boot order remains set to Ubuntu if you shut down or reboot from Ubuntu, but it changes only when you boot to Windows. See this question and answers for more on this problem.

Because the solutions are so different, it's important that you better diagnose the problem before proceeding. Checking your Ubuntu boot mode is the most important diagnostic. Identifying whether the problem occurs with every boot or only after booting to Windows is also important.

Finally, most EFIs provide some means to enter a built-in boot manager; however, this option is sometimes disabled by a firmware "fast start" option. Try entering your firmware setup utility and looking for any option called "fast start" or something similar and disabling it. This feature causes the firmware to perform minimal USB initialization rather than full USB initialization, so the keyboard may be non-functional until an OS takes control. Sometimes it's referred to as something relating to USB initialization, so you can look for options like that, too.


Please make sure your laptop is actually connected to external power.  If in doubt, remove the battery so that it cannot assume the battery is low.


Trackpad sticky/jumpy on Ubuntu 20.04 (Lenovo Yoga 520)

Solution: Turn off 'zoom' in the accessibility options.

I have no idea why that was causing problems, but perhaps I accidentally turned it on using a keyboard shortcut which explains the intermittent behaviour!

(Perform this test: Create a new account? Does the problem persist? No. -> clearly not a hardware problem. So I systematically started turning settings on/off and finally found the issue.)


openconnect 18.04 "please upgrade your client"

I have the same problem at a client that profile based on OS.  They have told me they won't support a Linux client.  Here's my solution:

Step 1. Connect using official docs on supported system. Find VPN XML and XSD files for the VPN connection

Step 2. Set up a tunel and VPN with OpenVPN and Openconnect.  In this case we need to spoof that we are a
        windows client.

Get the URL, and group from the XML/XSD files.  Get the UserAgent/version from google search and the
windows client.

sudo openvpn --mktun --dev tun1
sudo ip link set tun1 up
sudo openconnect vpnendpoint.com \
    --usergroup=group \
    --authgroup=group \
    --interface=tun1 \
    --useragent='Cisco AnyConnect VPN Agent for Windows 4.5.04029' \
    --os='win'

Provide authentication details as required.  The tunnel is now open.

Step 3. Close the tunnel

sudo ip link set tun1 down
sudo openvpn --rmtun --dev tun1

Similar questions:

https://askubuntu.com/posts/1214712/edit

http://lists.infradead.org/pipermail/openconnect-devel/2018-June/004877.html


Looking for something simila to Windows. Does Kylin work outside of china?

Is there any drawback to installing it in Europe?

No.

  Does Kylin work outside of china?

Yes.

  Also if anybody knows of a GUI which is similar to windows and you know works smoothly, or knows of a different way to solve my problem please feel free to suggest!

Ubuntu Budgie and Ubuntu Mate have Desktop Layouts and one of them is called ...

  Redmond Layout

  The Redmond layout is similar to Microsoft Windows, with a single taskbar containing a menu, a list of open applications, and a clock at the bottom of the screen. Each application's menu appears at the top of that application's window in the traditional Windows way. Another distinctive feature of the Redmond layout is the "advanced menu" that provides a configurable list of favorite applications as well as an optional simple list of all applications.


You can try this: http://ubuntuforums.org/showthread.php?t=1978457
or better http://www.youtube.com/watch?v=wchimaoe9KE
From what I have seen I would go first with the Youtube video.


xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

It appears that some of your filenames have apostrophes (single quote) in their names.

Luckily, find and xargs have ways around this. find's -print0 option along with xargs's -0 option produce and consume a list of filenames separated by the NUL (\000) character. Filenames in Linux may contain ANY character, EXCEPT NUL and /.

So, what you really want is:

 find ~ -type f -print0 | xargs -0 --no-run-if-empty wc -w

Read man find;man xargs.


Still can't upgrade? Is there a new delay?

Firstly, as mentioned in other questions:

LTS upgrades don't occur until the first point release.  This is because Canonical prefers to let things settle before sending the release to automatically upgraded systems - usually servers, and usually in HUGE numbers, which will have an effect not just on Canonical's server load but also on SysAdmins worldwide and Canonical's support team.*
Automated server installs occur during the period after a point release and before an upgrade.  These are smaller numbers of servers but still significant compared to numbers before the point release.**

However, more importantly, from gleaning the URL do-release-upgrade calls and its content, I suspect the LTS upgrade list is not architecture-specific, and also from the current list of open bugs against the 18.04.1 point release some of those bugs are specific arch bugs.

Needless to say, it's in Canonical's interest to release when these things work and not sooner.

Patience is a virtue. :-)

* Take it from a SysAdmin, you can be up for days fixing little kinks when this happens, so you want to be damn sure it goes smoothly.

** SysAdmins are a cautious bunch, so we don't tend to put even LTS first cuts into production, but we will push LTS to new installs after the first point release


Transfer "freezes" when writing big files on USB drive

I have actually found an answer here as in fact the issue was due to having 16GB RAM installed. The writing buffer was actually too big. I have resolved by logging in as root:

su root

then setting the dirty bytes to a set number (I guess the default setting 0 actually doesn't give any cap to how much should the writing cache be large), by typing:

echo $((16*2048*2048)) > /proc/sys/vm/dirty_background_bytes
echo $((48*2048*2048)) > /proc/sys/vm/dirty_bytes

I chose that size as a good compromise and the issue is now resolved.


Unable to access windows (error mounting/dev/sda4/media/ubuntu/windows)

actually its an issue with windows 8.1 that by default it goes to hibernation instead of shutting down.
the solution for me was....

going to "Control panel" -> Power options -> check "show unavailable options" -> uncheck "FastBoot (recommended)" -> save and restart to ubuntu


Common causes of "searching ... partitions..." taking an long time are:  (1) A floppy device is enabled in the BIOS, but there is no physical floppy device,  (2) A partition contains a highly fragmented FAT16/32 or NTFS file system - fix with defragmenting first.


Could multiple PCIe devices in one IOMMU group be added to different KVM VM separately?

TL;DR: you shouldn't but can try to fake/force the system into it
Having the devices in the same group is a deficiency of the HW/FW that you use for the use-case that you want to achieve. Guests using the different cards can effectively read/write each others memory (more complex in reality but a nice simplification). That is very much not what you want from virtualization.
There are non upstream accepted patches around this which can help you to fake/force splitting some of these IOMMU groups. But really - please read what it does and understand the associated risks here by the maintainer.
If you really want you can consider compiling your own kernel with the patch and then use these boot parameters which can help then to (fake-)split the devices:
pcie_acs_override=downstream,multifunction

If you have multiple PCIe slots, moving around the cards is a much better (and safer) way to achieve the same.


Referencing this question How to create ubuntu server 16.04 autologin?

In a vm this was my procedure

sudo systemctl edit getty@tty1

And add:

[Service]
ExecStart=
ExecStart=-/sbin/agetty -a <USERNAME> --noclear %I $TERM

Replace <USERNAME> of course with your username.

save and exit. Reboot

This was just tested on a VM running Ubuntu Server 18.04(not raspberry pi however)

It was a successful autologin

I do not claim this to be secure in anyway!
For testing purpose only.


How can I tell when updates/installations are done if I started them in the GUI?

Apt stores timestamps of completed actions. Different from lockfiles.

$ ls -l /var/lib/apt/periodic/
total 0
-rw-r--r-- 1 root root 0 Mar 15 06:26 autoclean-stamp
-rw-r--r-- 1 root root 0 Mar 20 22:20 download-upgradeable-stamp
-rw-r--r-- 1 root root 0 Mar 21 20:06 unattended-upgrades-stamp
-rw-r--r-- 1 root root 0 Mar 21 20:06 update-stamp
-rw-r--r-- 1 root root 0 Mar 23 09:45 update-success-stamp
-rw-r--r-- 1 root root 0 Mar 21 20:06 upgrade-stamp

You can see that the last apt upgrade (upgrade-stamp) completed 21 March at 20:06. If that's after you started the upgrade, then it completed.

If not, then check if apt is still running:

$ ps -e | grep apt
31958 pts/2    00:00:00 apt

In this case, apt is still running. Let it run.

If apt and dpkg are NOT running, then it's probably safe to delete the lockfile.


Updating to 0.14.x still did not allow me to launch xpra but updating to the latest branch 2.0.x did.

TL;DR copied from my blog:

# Administrator privileges
sudo su -

# Import the packager's key:
apt-get install curl
curl http://winswitch.org/gpg.asc | apt-key add -

# Xenial Xerus (16.04)
echo "deb http://winswitch.org/ xenial main" > /etc/apt/sources.list.d/winswitch.list;
apt-get install software-properties-common >& /dev/null;
add-apt-repository universe >& /dev/null;
apt-get update;
apt-get install winswitch


Broke my sudoers password, how do I reset it without using sudo?

Go to terminal type who am i then type passwd and enter the password you want.
You will be able to use that password to change your password on user accounts.


How to customize "Move to" Directory action structure?

I don't know about adding destinations to that menu itself, but Ubuntu Tweak can add an alternative move to option which presents a dialog to choose any folder as a destination.

To enable, in Ubuntu Tweak under Manage Scripts drag "Move to..." from the right pane to the left.

As you can see from the screenshot, this is an additional menu entry under a subfolder, so it isn't as seamless integration as would be nice, but it is useful.


Desktop link to file on second hard drive broken after reboot

I think its mount problem if you have to mount the second hard drive at each restart it, the symbolic links will surely be broken to avoid that simply edit

/etc/rc.local

add mount command to the second hard drive to it.

if problem persists add the symbolic link commands in the file also so it would be created at each restart.


Is there any way to download Adobe flash?

The package flashplugin-installer should do what you want. Just bear in mind that it uses Adobe's own plugin and you implicitly agree to their license. (I think that's this and this.) There have also been a lot of security problems with Flash over the years.

You'd install it with the usual sudo apt install flashplugin-installer.


In Ubuntu 12.04, you need to install xserver-xorg-dev-lts-raring (or -lts-saucy if it's the case) before installing xorg-dev. The -lts packages are part of the Enablement Stacks. If you try to install xorg-dev directly, it will remove some of them.


Stuck in login loop on ubuntu, works on xubuntu

Is it possible you've installed a display manager that isn't compatible with your graphics drivers? I've read that 18.04/18.10 has been causing a lot of trouble in regards to booting up/entering desktop, although more specifically for Nvidia graphics cards. You could try entering recovery mode to change the default display manager there, or if you're using Nvidia trying different Nouveau settings in GRUB (nouveau.modeset=0 or nomodeset).

In reply to your comment: the steps to take for a graphics problem is in the latter half. I actually just ran into the same exact issue as you after installing and subsequently uninstalling sddm. Unfortunately I didn't document the solution/process well enough to know what fixed it, so this is a shotgun approach.

Try these to fix the login issue:

Preface: my desktop environment is Plasma/KDE. Trying Gnome or Gnome with Wayland would kick me out too. When I tried KDE, it showed an error saying it couldn't write to, I believe .Xauthority or .ICEauthority, in my home folder. Here's what I tried:

At the login screen, open TTY with ctrl + alt + F6. (Once done with it you can leave with ctrl + alt + F1). For viewing/editing text in console I prefer using sudo nano datfile.

sudo apt install ubuntu-desktop. I think it's possible that sddm overwrote/edited essential files to desktop management. You should try

sudo apt install ubuntu-desktop -f -y --reinstall --fix-missing

as ubuntu-desktop is an essential package for your distro and it wouldn't install a package already there. Afterwards, run `
ubuntu-desktop isn't an essential package for my distro, but it might've helped. You can also try installing kubuntu-desktop as an alternative.
Take control of files related to desktop management with chown. Specifically .Xauthority and .ICEauthority in your home folder. You can try sudo chown username:username file.

I suggest taking a look at the manuals related to your issue: man startx, man xterm, man chown. You can try taking ownership of files man startx mention. If possible, posting your xsession_errors log located in your home folder may help.

These are the steps to take if it's a graphics drivers issue:

try these in the order they're in to see if it's solved.

Type in sudo nano /etc/default/grub to begin editing GRUB.
Look for the line that says quiet splash. Add nouveau.modeset=0 to the end of that, within the quotes. Press ctrl + O to write it out, then enter to save it. Ctrl + X to exit, sudo upgrade-grub to really save it. Reboot.
Open TTY and run `sudo apt remove nvidia* --purge -f -y". Reboot.
Add the proprietary gfx PPA with:

  sudo add-apt-repository ppa:graphics-drivers/ppa

  sudo apt-get update

In terminal, run ubuntu-drivers devices and it should spit out the apt packages that you can try installing, such as nvidia-driver-390. Install nvidia-settings as well, then reboot.


Which Intel video cards do not have an open source driver?

The only recent Intel GPU with a proprietary driver is the GMA500 (Poulsbo) chipset found in some Atom based devices.  Unlike Intel's other GPUs, this chipset was based on the PowerVR GPU.

Anything based on Intel's own designs should be supported by the open source drivers.  If you are still unsure, you can find a list of the currently supported chipset names on their web site:

http://intellinuxgraphics.org/documentation.html


This is this bug:
https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1400470

As a workaround for now, try unmouting the camera in Nautilus and starting Shotwell.


Logitech H600 on Ubuntu 16.04 Xenial - NO sound!

I found the solution to my problem on this link:

https://help.ubuntu.com/community/SoundTroubleshootingProcedure

Step1 solve it for me when I ran this command:

  sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-uname -r libasound2; sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-uname -r libasound2; killall pulseaudio; rm -r ~/.pulse*; ubuntu-support-status; sudo usermod -aG cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g' whoami


Xubuntu black screen, no login window, fresh install

I had to reinstall Xubuntu because the installation was half-finished and corrupted.


Unable to execute .sh files in Ubuntu 14.04

All that you need to do is set default action here File Manager > Edit > Preferences > Behaviour forExecutable Text Files. In Ubuntu 14.04 it is set to View Executable Files when they are opened


How to get running out of space warning earlier?

Dash-> dconf-editor and navigate to "house keeping" (exact path is in the image).

  Command line

gsettings set org.gnome.settings-daemon.plugins.housekeeping  free-size-gb-no-notify  5

and the 1 Gb changes to a 5 Gb.


Failed to apply network settings you might not be able to connect

You miss the /sbin/iptables executable. On fresh installation of 20.04 LTS it is a symlink which is provided or created by iptables package installer. The full link chain is /sbin/iptables → /etc/alternatives/iptables → /usr/sbin/iptables-legacy.
So you need to reinstall the iptables package by
sudo apt-get install --reinstall iptables

and then restart BlueMan or reboot.


these are the results I have produced with the help of apt-cache search tk8.5

frank@august:~$ apt-cache search tk8.5
tk8.5 - Tk toolkit for Tcl and X11, v8.5 - run-time files
tk8.5-dev - Tk toolkit for Tcl and X11, v8.5 - development files
tk8.5-doc - Tk toolkit for Tcl and X11, v8.5 - manual pages

you worth a try with sudo apt-get update and then retry with installation.

else you can choose the package from your results of apt-cache search , as i have mentioned above.


(x)Ubuntu 19.10 wifi stops and never restarts until next reboot

Ok turns out I misread the instructions on rtlwifi_new github repository here: https://github.com/lwfinger/rtlwifi_new/blob/extended/README.md

It clearly said : "rtl8192ce, rtl8192cu, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be, rtl8821ae, and rtl8723de. The rtl8723de is available ONLY in the extended branch, which is the recommended one."
But I used the master branch instead.

After reinstalling the right driver and rebooting, it went well. I had greyed out option when I wanted to modify my wifi settings but I used "sudo nm-connection-editor", added my WPA key and the wifi worked. Now I can disable and re-enable my wifi without any trouble.

It only tooks me 6h to solve everything so, yeah, ubuntu and wifi drivers will always be win.


Ubuntu does not appear in Grub Menu. Boot Repair Failed

From the boot-repair log,it was clearly shown that you had installed ubuntu 13.04 via windows installer(wubi).

To get files from the wubi partition see How to open wubi's .disk files under windows?


Ubuntu 16.04 software center doesn't have many apps

The Ubuntu Software app in Ubuntu does not have the same software in it as the classic Ubuntu Software Center has. Not only is there missing software in the Ubuntu Software app, but the Ubuntu Software app also has some GNOME software in it that the Ubuntu Software Center doesn't have. To be sure of finding all the available software, you need to have both the Ubuntu Software app and the Ubuntu Software Center installed. If you want to broaden your search to include snap packages in Ubuntu 16.04 and later, you have to search in the terminal to find available snap packages too.
Ubuntu 18.04 and later
Ubuntu Software and Synaptic are the top two software apps in Ubuntu 18.04 and they complement each other in functionality.
It should be noted that because software can be installed from both of these two GUI applications, only one of the following two applications should be opened and used to install software at the same time.

Ubuntu Software / Software – gnome-software
Synaptic package manager – synaptic

Ubuntu 17.04/17.10

Ubuntu Software – gnome-software
Synaptic package manager – synaptic
Debian Package Search – packagesearch

Ubuntu 17.04 doesn't have Ubuntu Software Center in its default repositories. Synaptic Package Manager works fine in Ubuntu 17.04 and shows all the apps like Ubuntu Software Center does, however Synaptic does not provide the same rich user experience as Ubuntu Software.
When I searched for a way of improving the package search functionality in Ubuntu 17.04, I found Debian Package Search (packagesearch). Debian Package Search is a GUI for searching packages and viewing package information. Debian Package Search can be installed alongside Synaptic and Ubuntu Software to add additional search functionality to Ubuntu 17.04 and 17.10 (discontinued in 18.04 and later).
Search in Debian Package Search can be done by:

pattern
tags (based on the debtags system, a new way of categorizing
Debian packages)
files
installed status
orphaned packages

Additionally a lot of information about the packages is displayed, including the files belonging to them.
Ubuntu 16.04/16.10
Ubuntu Software Center works fine in Ubuntu 16.04 and shows all the apps as it did in earlier versions of Ubuntu. Ubuntu Software Center can be installed in Ubuntu 16.04 and Ubuntu 16.10.
sudo apt install software-center


You can use the commands grep and xargs in the following way:

grep -rlZ '=head1 NAME' /target-directory/ | xargs -0 rm -f

The grep command will work recursively -r (within the /target-directory/) and will output only the names of the files -l that contain the pattern '=head1 NAME'. The -Z option will output a zero byte (the ASCII NUL character) instead of the character that normally follows a file name.

This output will be piped | to the stdin of the xargs command where -0 means that the input items will be terminated by a null character instead of by whitespace. The command that will be executed is rm -f that means force remove.

Thanks to @steeldriver for the final improvement of the answer!

In addition you can add -L1 (read one line per execution) to the xargs command and echo to perform dry run:

grep -rlZ '=head1 NAME' /target-directory/ | xargs -L1 -0 echo rm -f

If you want to move the files somewhere instead of delete them, modify the command in this way:

grep -rlZ '=head1 NAME' /tgt-dir/ | xargs -L1 -0 -I {} echo mv {} /destination-dir/

Or as @PerlDuck said "mv also has a switch -t, --target-directory=DIRECTORY which allows to put the directory first and the files last... This way mv isn't called once for each single file but once for a bunch of files.":

grep -rlZ '=head1 NAME' /tgt-dir/ | xargs -0 echo mv -t /destination-dir/


Ubuntu 12.04 stuck at boot splash screen

first you should check if you can change to the console output by pressing F2 or ALT-F2 (never remember which one )

If that does not work or do not show you some error you should reboot and enter the grub boot menu with pressing "Shift" while booting.

When you are in the menu you should remove the "splash" and the "quiet" entries from the kernel commandline.

This way you will get the "normal" output Ubuntu (and a lot of other distributions these days) usually hides from you.

With the error(s) you might see there you can debug your issue and fix it.


How do you mount a SD card in ubuntu using the exec option

mount it with umask/dmask:

/dev/sda    /media/additional_drive_target_dir  ntfs-3g defaults,auto,fmask=0077,dmask=0022,rw,uid=1000,gid=1000   0 1


Notebook display not detected after upgrade to Ubuntu Gnome 16.04

I was able to solve this problem with the 364.19 driver from the graphics drivers ppa:

Remove current Nvidia driver: sudo apt-get purge nvidia-*
Add graphics-drivers PPA: sudo add-apt-repository ppa:graphics-drivers/ppa
Update the package lists: sudo apt-get update
Install 364.19 driver from "Additional Drivers" tab in the "Software & Updates" application


How to solve the pkgProblemResolver Error when upgrading to 12.04?

Fast reads of UbuntuDesktop Upgrading leads to idea that if your current installation has not version 10.04 LTS, then first you should upgrade to version 11.10, and next to 12.04 LTS.

This error looks like "unmet dependencies trouble".
Possible common solution is:
 1. Clean your sources lists and APT cache to leave only "genuine" Lucid sources.
 2. Upgrade your distribution.

Nice answers found here: How do I upgrade from 10.04 or 11.10 to 12.04?


How to configure the left mouse click to select only part of directory in terminal?

In gnome-terminal you can change it from the menu: Edit > Profile Preferences > General > Select-by-word-characters. Remove the "/" and it's done.

The menu is at the top of the screen now for every application, and it's invisible until you move your mouse there. Instead of using that global menu, you can also right-click anywhere in gnome-terminal and change the profile from there.


MySql workbench app's menu bar shows duplicate options

Find the mysql-workbench script (usually located in /usr/local/bin).

Edit it and put export UBUNTU_MENUPROXY=0 at the top of the file, save. That's it.


Suggestion would be to add to bash a function that will swap two files:

nano .bashrc

paste in at the bottom of the file:

function swap()
{
  if [ $# -ne 2 ]; then
    echo "Usage: swap file1 file2"
  else
    local TMPFILE=$(mktemp)
    mv "$1" $TMPFILE
    mv "$2" "$1"
    mv $TMPFILE "$2"
  fi
}

either logout/login or run:

source .bashrc

To swap two files run:

swap x y

where x and y are your file-names

source


Looks like it's a bug related to Dolphin with a fix on the way.  https://bugs.kde.org/show_bug.cgi?id=353181


envvars is not an Apache configuration file to be included in apache2.conf. You're right that that file is stock, but your addition of

Include envvars

to apache2.conf is most certainly not stock. That file is sourced by the Apache2 init script (/etc/init.d/apache2) (several times, actually). The fix is to not include it.


Is the source code of the online tour available?

Yep, https://launchpad.net/ubuntu-online-tour. This link leads to the Ubuntu Online tour.


Ubuntu 16.04: Where is the network configuration?

If you setup a connection using Network Manager, it is stored in

/etc/NetworkManager/system-connections/

A file for each connection is created there.


Is it possible to install Yaru (Communitheme) on Lubuntu 18.10?

You should be able to install the Yaru theme in Lubuntu 18.10

sudo apt install yaru-theme-gtk

Unlike  18.04 which used LXDE, Lubuntu 18.10 has a Qt desktop, LXQt. That means that, like in Plasma/KDE (which I'm using right now myself, although I have used LXQt untill recently), the GTK themes like Yaru will not cover most of your desktop, but only the appearance of applications that have a GTK gui, like Firefox, Deadbeef, Audacious, Disks, uGet, etc.

If that is what you want, install Yaru as said above and enable it for both GTK2 and GTK3 from settings in your first posted image.

The other parts in the appearance of the LXQt desktop are:

the Qt-styles: covering the full texture of all Qt applications (especially the file manager, and specifically setting the light or dark look ) - more about that here.
the LXQt theme: covering mostly the panel
the Openbox settings: covering windows
the icons

Unlike in Plasma settings, in LXQt settings there is no option for icons in GTK applications, as you can see. I think what happens is that GTK apps will use the main icon set.

Yaru package includes a dark theme only for its GTK3 version though, which might be a problem if you use a dark qt-style (like Breeze Dark, or Kvantum Dark) with icons adapted to those (that is: light icons): the GTK2 apps will have light theme with light icons. So, if you chose Yaru theme you should EITHER avoid using dark Qt-styles OR GTK2 applications.

In Plasma 5 there is an option for GTK themes where you can chose "prefer dark GTK3 theme", which then makes the gtk2 apps use a dark theme too. But that option seems absent in LXQt.

There are other good GTK themes both dark and light that can be installed in LXQt, the problem with GTK theming in a Qt desktop is one of integration.

The most obvious good integration of GTK application in a Qt desktop these days is provided by the Breeze qt-styles with the Breeze GTK themes. As you already use the Breeze qt-style, you can use the Breeze GTK package too, which has light and dark themes both for GTK 2 and 3.

sudo apt install breeze-gtk-theme


Install Ubuntu 12.04LTS 64bit in Lenovo S205 Failed

Try using this guide, this combo finally worked for me:

http://pastebin.com/0R1jXyzM

Write Ubuntu 64 bit live USB (32 bit won't work due to UEFI)
Make at least 3 primary partitions:

125MB EFI partition (Only appears in ubuntu installer. Does not appear in gParted, or Linux Mint installer)
/ partition (ext4 is fine)
swap partition (swap)
If you do not see "EFI" partition type during the installer, try opening gParted in the live USB and make an GPT partition table before you do the installation. It's in one of the menus (you don't want msdos).

Install
After your first restart after installing, go into the BIOS boot menu (F2) and rearrange the boot partitions to your HDD as #1 and the new mysterious "ubuntu" entry is #2. This will enable your wifi (after all what is a netbook without wifi).


I need help with this file, i edited it wrong, what do i replace with?

You can go back to the default state by removing changes made to the file /etc/chromium-browser/default.

If you want to keep the current file /etc/chromium-browser/default, then rename the file as something else than default e.g. default.bak. Now create a file named default having nothing or only the line CHROMIUM_FLAGS="".

To summarize:

sudo mv /etc/chromium-browser/default /etc/chromium-browser/default.bak
echo 'CHROMIUM_FLAGS=""' | sudo tee -a /etc/chromium-browser/default


Install new OS without kernel upgrade using pxeboot

This is an interesting problem.  I don't think you can do an automatic upgrade while preserving the kernel, as the upgrade process will update grub to point to the new kernel.  It should preserve your previous kernel.

The easiest way to deal with this then, is to do the full update, but before allowing the machine to reboot, go back into grub and have it point to your old kernel.  That process is discussed here:

Set "older" kernel as default grub entry

You can also download the kernel source, git-checkout the precise version of the kernel you wish to build, rebuild the source, then do the update (without rebooting), and then install the kernel and modules from your build directory (which writes grub automatically, overwriting whatever happened in the update).

This second path has the added benefit of allowing you to pick and choose precisely which version of the kernel you get.  Building the Ubuntu Kernel is described here:

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

I would use the git-clone option, instead of apt-get, it seems a little more straight-forward to me.

Building Your Own Kernel, Just the Basics

Just to give you a few specifics of how you would do this, and how you would install the kernel, assuming git is installed, and sufficient disk space (say about 25GB free).  All of this is documented above in the normal Ubuntu wiki space, but that might be difficult to digest.

There's a couple of packages you'll need, so

sudo apt-get build-dep linux-image-$(uname -r)

Getting the Right Kernel Build Line from Ubuntu

You'll need to know what Ubuntu release-line you are on.

lsb_release --short --code
bionic

And then you can clone the specific Ubuntu kernel line for your current Ubuntu revision, which for me is bionic.

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git
cd ubuntu-bionic

Setup the git-repository For The Kernel of Interest

Now, at this point you need to select the commit id associated with the kernel version of interest.

To find the kernel version you are using

uname --kernel-release

For me this returns 4.15.0-38-generic.  The Ubuntu release process tags different commits, in this case, they use "Ubuntu-.".  Since we may not know the extra, to find the tag for your particular release

git tag | grep 4.15.0.38

Which returns Ubuntu-4.15.0-38.41, so let's check this out so we can build it; we're just checking out in headless mode, because at this point we're not trying to modify any code, just rebuild existing code.

git checkout Ubuntu-4.15.0-38.41

Let's get the config file for the machine, for this particular Ubuntu kernel revision. This is critical to ensure you are actually building the kernel of interest.

cp /boot/config-4.15.0.38-generic .config

And Let's verify that the .config file is ok.

make oldconfig

if the above option prompts you for any questions, your .config file doesn't match the commit-id you've checked out for the kernel.  Please try again.

If you are actually TRYING to upgrade the kernel version to a newer one, you'll probably get prompted for new options.  To just accept the defaults you can use:

yes '' | make oldconfig

Building the Kernel

Now, let's build the kernel and the kernel modules.  Use -jX where X is the number of threads your build machine supports. If you don't know get it from /proc/cpuinfo, for example:

calc $(cat /proc/cpuinfo | grep processor | tail -1 | sed -e 's/.* //') + 1

This returns 8 for my build server, so -j8:

make -j8 vmlinux bzImage modules

Let's do the update, per the Original Question

sudo apt-get update; sudo apt-get upgrade

That will upgrade the machine, potentially overwriting the kernel version your machine boots with.  To install the new kernel and make it the default:

sudo make modules_install; sudo make install


How about:

install linux headers:

sudo apt-get install linux-headers-generic linux-headers-$(uname -r)

install driver

sudo apt-get install fglrx fglrx-amdcccle

configure xorg

sudo aticonfig --initial -f

Then reboot.

Per:
http://ubuntuforums.org/showthread.php?t=1965537


Ubuntu 16.04 won't open after incomplete update

What happens here is that you have a system that is half-upgraded and got interrupted.  Alas, it makes it hard to login via the normal graphical login.  That is no big problem, as long as you can get into your a shell (terminal) in order to kick off the upgrade again.

So, where can you find this shell?  Most Linux installations offer you a text-only interface, totally separate from the graphical interface.  You can typically get five different logins (called "consoles") and you access them by hitting Ctrl, Alt  and F1 (or F2...F5).  To get back to the typical GUI interface, hit Ctrl, Alt  and F7.

Start off by hitting Ctrl, Alt  and F1.  You now get presented by a text screen containing something like this:

Ubuntu 16.04.1 LTS my-machine-name tty1

my-machine-name login:

At this point type your username and press enter.  The following line will appear:

password:

You now type the password of your username.  It will look as if nothing is typed.  There are no is no "echo" as it's called.  You won't see * or anything appear as you are used to in normal password fields.  Press enter after you entered the password.  You will get more text, like this:

Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-34-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

4 packages can be updated.
4 updates are security updates.

Last login: Sat Aug 20 19:30:47 2016 from 192.168.2.4
my-user-name@my-machine-name:~$

This last line is your prompt.  You can enter commands here, just like you do on the terminal application.

Let's kick off the update process again.  Normally you start with "updating" the repositories.  It's probably not necessary, but it's good practice to do so:

sudo apt-get update

At that point, we're ready to kick off the distribution upgrade again, which can be done by:

sudo apt-get dist-upgrade

You now have a lengthy process of package installations.  It will ask questions: Just take the default answers.  Especially if you don't understand the question.

After a while you return to the prompt.  You can now reboot.

sudo reboot

After reboot, everything should work again.  If not, repeat the process until the sudo apt-get dist-upgrade is not doing anything any more.  This will look like this:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.


Where can I download the ISO torrents for Ubuntu?

Direct links to all Ubuntu 12.04.1 Precise ISO torrents:

These will open directly in your torrent client (uTorrent, Transmission, etc.)!

Desktop
32-bit

Desktop
64-bit

Alternate (text-based installer)
32-bit

Alternate (text-based installer)
64-bit

Server
64-bit

Server
32-bit

Source: http://www.ubuntu.com/download/desktop/alternative-downloads


Why there is no password to root under Recovery Mode?

It's not a bug, it's a feature. Anyone with physical access to the machine can get your data and/ or modify it unless your partitions are encrypted.

Consider this case: you can boot a Live CD and be able to read and modify data without issues.

Another one: someone could open the case, take the disk out of it and plug it in another machine (USB dock, eSATA, etc.). Then it's again easy to read and modify the data.

If you want to disable creation of the recovery entry, edit /etc/default/grub, uncomment the GRUB_DISABLE_RECOVERY="true" line by removing the leading # character and run sudo update-grub. However, this does not make it impossible to boot into recovery mode since you can still edit the boot options by pressing E on an entry and add single to the kernel line.

The only way to protect against such an attack is by encrypting your whole disk using LUKS. I strongly recommend to do that especially for mobile devices such as a notebook. See How to truly secure a hard-drive?


My Printer is HP LaserJet 1020 Plus does not print

HP say this device needs a plug-in ... so you gotta have that ..

So if you open a terminal; (hold down the control and alt and t keys ..)

Then type hp-setup that should recognize the need for the plug-in and install it

This gives more detail on plug-ins


Try fix ~/.mailrc like follow

set smtp-use-starttls
set ssl-verify=ignore
set smtp=smtp://smtp.gmail.com:587
set smtp-auth=login
set smtp-auth-user=$FROM_EMAIL_ADDRESS
set smtp-auth-password=$EMAIL_ACCOUNT_PASSWORD
set from="$FROM_EMAIL_ADDRESS($FRIENDLY_NAME)"

How to Send Email from mailx/s-nail Command in Linux Using Gmail’s SMTP


Asus USB-N53 WiFi adapter installation under 14.04

The instructions you linked are for a different device, 0b05:179d ASUSTek Computer, Inc. USB-N53. You have, instead, 0b05:180b ASUSTek Computer, Inc.

Please see: https://wikidevi.com/wiki/ASUS_USB-N53_B1 where your usb.id is listed. It says: Probable Linux driver: unknown

Also see posts #7 through 11 here: http://ubuntuforums.org/showthread.php?t=2265150

There is currently no known way to get this device working in any recent version of Ubuntu.


Download Packages and Dependencies on Windows 8.1, then move and install them on Ubuntu

Download your package on windows. Then mount that drive that saved the file.

Then use sudo dpkg -i your-package


apt-get upgrade always hangs at same percentage

It's downloading, so just wait :)
(or maybe try to change the mirrors)


if you upgrade your window then your Ubuntu will not loose it will be there but it may be window overwrite your Ubuntu grub that you can reinstall grub without loosing Ubuntu  by Boot from the live CD here or boot Repair link or any other method . some time window not overwrite grub but it show window 7 instead of window 10 that you can change from grub file and update grub
for change in grub file use bellow command after upgrading that will reflect change in grub file

update-grub


Dock (Docky) disappears when I put my computer to sleep

This was fixed (at least for me) by updating Docky to version 2.2.1, which at the time of writing this answer, was in the testing stage (it can crash some other ways), so you have to add a PPA containing it.

Run following commands in console:

sudo add-apt-repository ppa:docky-core/ppa
sudo apt-get update && sudo apt-get --yes dist-upgrade


How to set a custom keyboard shortcut from a bash script with GNOME3 in Ubuntu 18.04?

After the comment

  Not quite easy.
  You need to declare a folder for the shortcut key in org.gnome.settings-daemon.plugins.media-keys [called] custom-keybindings, then create said folder under /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/.
  In that folder, keys "binding", "command" and "name" define the custom shortcut key. Not sure how that is easily done with commands (especially first step).
  – vanadium

I have looked at the following links:

How to Add a Key to a Empty Schema on Linux Mint
Gsettings Schema Types
Creating A Schema
Array manipulation in gsettings' set command

My laptop on which this is already set up using the GUI, I ran a few queries to know what output I should aim for.

$ gsettings list-relocatable-schemas | grep keybin
org.gnome.settings-daemon.plugins.media-keys.custom-keybinding
org.gnome.orca.keybinding

## I have two shortcuts
$ gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings
['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']

$ gsettings get org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding
'<Primary><Super>Left'

$ ls /opt
confinedrv  virtio-win.iso  workspace_shortcut_send_to_next.sh
generic@motorbrot:~/Downloads/iso.new$ gsettings get org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command
'wmctrl -r :ACTIVE: -t 0'

$ gsettings get org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name
'send to first workspace'

On my testing device (different from the previous laptop), querying org.gnome.settings-daemon.plugins.media-keys custom-keybindings returned an empty string array (@as []).

On my testing device, I tried to set a binding:

$ gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding '<Primary><Super>Right'
No such schema "org.gnome.settings-daemon.plugins.media-keys.custom-keybindings"
'<Primary><Super>Left'

In /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.media-keys.custom-keybindings.gschema.xml on the testing device is a schema defined for org.gnome.settings-daemon.plugins.media-keys.custom-keybinding (without trailing s). There I can see that the types of name, binding, and command are all s for string. So I dropped the trailing s in the id but not the path and now setting and querying them again works.

$ gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding '<Primary><Super>Right'
$ gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'move to first wirkspace'
$ gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command 'wmctrl -r :ACTIVE: -t 0'
$ gsettings get org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding
'<Primary><Super>Right'

I then added my custom command path to the previously empty list. (I think this overwrites the whole list, so beware!)

gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"
## make sure the path starts and ends with a slash
gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings
"['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"

I proceeded to reload gnome by entering r into the popup that comes when I press AltF2.

I moved a window to a second workspace and tried whether it works. It does not - nothing happens.
I changed the command to echo test > ~/testing.txt and tried again, but still - nothing happens. The file is not created.

The problem here was the same as in my linked example usage with the GUI:

  If the shortcut does not work in that way, but the command works when run from the terminal, save it in a file /fullpath/myfile.txt and set bash /fullpath/myfile.txt as the shortcut command. That should work both on Gnome and Xfce.


Application-specific key combination remapping?

Your idea of using xbindkeys sounds good:

in your .xbindkeysrc add a new keybinding:

"app_specific_keys.sh"
   Control+s

This will execute "app_specific_keys.sh" when you press ctrl+s.

Now you need to define the script. It should get the active window and from that the name of the app which currently has the focus:

xprop -id `xdotool getactivewindow` |awk '/WM_CLASS/{print $4}'

This would do the trick: it asks xdotool for the active window, then asks xprop for all properties of the window with the given id, and then reduces the very verbose output to the name of the application (actually its class). If you run this in a gnome-terminal you would get

"Gnome-terminal"

Now you need to define actions for your applications:

if [ $N = '"Gnome-terminal"' ]; then
    xdotool key --clearmodifiers ctrl+s
else
    xdotool key --clearmodifiers ctrl+d
fi

So together, the script "app_specific_keys.sh" could look like this:

#!/bin/bash
W=`xdotool getactivewindow`
S1=`xprop -id ${W} |awk '/WM_CLASS/{print $4}'`
S2='"Gnome-terminal"'
if [ $S1 = $S2 ]; then
   xdotool key --clearmodifiers ctrl+d
else
   xdotool key --clearmodifiers ctrl+s
fi

This should work, but as in this question, I have to admit that it does not. Probably because one of Compiz, Unity, Global Menu does not work well with the --clearmodifiers option of xdotool. A workaround would be to add a sleep in front of your script in oder to be able to release the keys yourself:
In your .xbindkeysrc change to this keybinding:

"sleep 0.5; app_specific_keys.sh"
   Control+s

As a sidenote: this will not work, if you want to change keys for programs which run in a terminal (e.g. vi or emacs in console mode). The returned application class would still be "Gnome-terminal".

Hope that helps.


How to get a list of files for a package I haven't installed yet?

You've got at least these two options.

First one, use apt-file for packages you haven't installed yet.

$ sudo apt-get install apt-file
$ sudo apt-file update
$ apt-file list usb-creator-gtk
usb-creator-gtk: /usr/bin/usb-creator-gtk
usb-creator-gtk: /usr/lib/python2.7/dist-packages/usbcreator/frontends/gtk/__init__.py
usb-creator-gtk: /usr/lib/python2.7/dist-packages/usbcreator/frontends/gtk/frontend.py
[...]

Second one, use the packages.ubuntu.com website to locate the package, then all the way down on the page in the "Download" section, you'll find a link [list of files]. Example for your package in Bionic (18.04) is here.

Either way, please remember that packages might install more files in their install scripts!


Wireless dropping every 10 min on dell xps 7590 after upgrade to 20.04. requires stopping wifi and restarting it repeatedly. Worked fine in 19.10

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I recommend a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.
Next, I recommend that your regulatory domain be set explicitly. Check yours:
sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:
sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:
sudo nano /etc/default/crda

Change the last line to read:
REGDOMAIN=IS

Proofread carefully, save and close the text editor.
If these changes do not help, please try:
sudo modprobe -r iwlwifi
sudo modprobe iwlwifi disable_11ax=Y

If it helps, make it permanent:
sudo -i
echo "options iwlwifi disable_11ax=Y"  >>  /etc/modprobe.d/iwlwifi.conf
exit


My advice is to download this boot repair iso and burn it to a CD-Rom then boot to it and run the Boot Repair utility. Be sure to copy down the boot-repair url when you get the report so in case it does not work, you can post the URL here and one of us can analyze it for you.

My previous answer, which was nearly identical to this one was deleted by "Mitch" for reasons I can only speculate about after reading the advice in the help center.  I'm guessing my SIN was to speculate as to the cause of the failure, regardless of whether I actually helped the user in need.

I have removed all speculation about what may have caused the failure.  I suppose I must try to be less EDUCATIONAL in my use of this site.  It's not how I'd run this site, but then, I don't run this site.


Running ubuntu from USB hard drive in Macosx?

Try to install a Live USB with persistent storage on the HDD (the same way you create a linux USB pen) tough i dont know the programs you can use in mac for that purpose  =( but nothing a little research wont help =)


Can not manage flags in gParted on Ubuntu 16.04

This is most likely because you do not have an "msdos" type of partition table in place. You can correct this via "Device" ==> "Create Partition Table" ==> "msdos". Now, add your FAT/NTFS/etc partition, and you are now able to set the boot flags on it.


Unable to locate package, can't install software

Hi you can install vlc very easily in ubuntu .

open your unity dash and type software center . it will give you that named application and click it to open .

there in software center you'll find a search box at left top .

there type as vlc and you will get it .

select it and you'll get an option to install and click that install button .

there you go .

hope that helps .


How to make ubuntu understand a windows-style folder path as a folder on windows partition?

It's not possible to get Ubuntu to understand Windows File Paths. You can however install Wine and run the program in Wine to get Windows File Paths. Wine is a sort of a Windows Translation Layer to Run Windows Programs in a Unix environment(translating Windows-based requests into something Unix can understand). Whether this works depends on the program you're trying to run.

http://www.winehq.org/


All my work disappeared from Ubuntu days after moving to a different drive

What happened is that the home that was mounted was not the one I had been putting my work in. To solve this problem:

Open Gparted
Go to the partition where current work is (the unmounted one, no key symbol next to it)
Right-click partition and click mount
Restart


The latest update for Java is 1.8.0_25. There is no Java 1.9 yet.

The command  sudo apt-get install oracle-java7-installer is to download Java 1.7
To download Java 1.8 use the following set of commands:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Hope it helps you.


Where to get Ubuntu for Dell Inspiron 14 5000 Series 5480

Dell Inspiron 14 5480 may come with Windows OS as you can see on their website: Inspiron 14 5480 Laptop - Dell India

It is quite possible that the same model is being sold with Ubuntu, Windows or DOS. If you want to install Ubuntu then you can download the .iso file from Ubuntu website here: Download Ubuntu Desktop

You can choose Ubuntu 18.04.1 LTS which has long-term support. You can go for either dual boot or may replace Windows with Ubuntu completely.

New Windows installs are associated with a Microsoft ID and no product key is provided with them. During reinstall they are automatically activated on signing in with the same Microsoft account as used for the first time.


Just follow the steps outlined here: Installation/FromUSBStick

You need to download Ubuntu first from: Ubuntu download page

Enjoy!


Stylus and touch don't work with Ubuntu 19.04 on Thinkpad L390 Yoga

Most Linux applications do not treat touchscreens any differently from a mouse. I find that Firefox will select text with a single finger, but Chrome will smooth-scroll with a single finger. Most file browsers select with a single finger, but its possible that some may scroll. This is normal and not usually something that can be "fixed" by the user. You can try using different software or asking the software developer to change how they treat touchscreen input.

As for the control panel: if your tablet isn't recognized, then your device is probably missing from the libwacom database. Go to https://github.com/linuxwacom/wacom-hid-descriptors/ and follow the instructions at the bottom of the page to gather and submit information about your hardware. This will allow the developers to update the database. The control panel's support for tablet PC styli is still a work in progress, so it is normal if the stylus itself is not recognized for the time being.


I am trying to install Ubuntu but all I get is a "no signal" message on my monitor

Remember to set your BIOS to boot from the CD/DVD drive.


Nautilus does not show the left bar, how do I turn it back on?

Just press F9 when you open nautilus.

Another way to do this is

Click on 'view' then check the 'side pane' option.


Ok the answer for now is actually to uninstall the ubuntu apt version of Virtualbox and go with the package over on Virtualbox's site. https://www.virtualbox.org/wiki/Linux_Downloads You will clearly see the one marked Bionic. Doing some digging and dfsg-2 is coming from  http://us.archive.ubuntu.com/ubuntu bionic/multiverse. You might try also seeing if the following the Debian based Linux distributions instructions produces a stabler build. I haven't done that yet.


How to get USB to serial cable working properly on virtual box running Bionic?

Commands 'uname -a' and 'dpkg -l | grep linux-modules' showed that linux-modules-extra was missing/incorrect version.

To get it fixed,

bionic-vm:/dev$ uname -a
Linux bionic-vm 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

sudo apt install linux-modules-extra-4.15.0-55

--> working now


ubuntu 12.04 booting problems probably due to nvidia

From  the long discussion was discovered, that here is a hybrid Graphics card Optimus in charge, so best option is to follow this link: (Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?) and follow steps introduced by user Lekensteyn. Then you should get your card working.


I believe that the package php5-curl should do the trick.  Use the package manager of your choice and the deps should be taken care of.

sudo apt-get install php5-curl

You will need to restart the server afterwards:

sudo service apache2 restart

Alternatively, if you are using php-fpm, you'll need to restart php5-fpm instead

sudo service php5-fpm restart


To set an env var, you need to use export:

export XDG_SEAT_PATH="..."

printenv command prints env variables.


How to switch to external monitor or clone main one while main one is broken?

As Thomasrutter mentioned, it depends on the model of laptop. Almost all have dedicated key strokes to duplicate the screens. For Dell laptops here is an easy guide: https://askleo.com/how_do_i_connect_a_monitor_to_my_laptop_and_have_it_work/

If you are on a Mac, I believe the shortcut is "Command + F1"


How to make a script passing his PID to another running script

You can get print the PID by doing this

the main script

#!/bin/bash

gnome-terminal -e "/home/......./script.sh" &
PID=$!
echo "child_PID="$PID

Note that you will may get the PID of the gnome-terminal and not the script itself.

If you want the PID of the /home/..../script.sh run it directly without gnome-terminal:

#!/bin/bash

/home/......./script.sh &
PID=$!
echo "child_PID="$PID

A question: Do you really need to run the script through gnome-terminal?

EDIT: The script.sh now runs in background ( with & ) and we're echoing the child PID.


You cannot remove Matlab through an apt-get operation, just as you did not install it through an apt-get operation. You need to uninstall it manually.

If you followed the official instructions to installing it, then you are the owner, as you can see in the image below (Owner tab):

In consequence, you just need to delete that folder (in your case, 2016a). If you are not the owner, then you need to remove using sudo, as it follows:

sudo rm -rf /usr/local/MATLAB/

You also have a configuration file in your home folder (~/), under the name of ./matlab. If you want to delete this too (you might not do this if you are going to reinstall, for example), enable hidden files in your file explorer using Ctrl+H to be able to see it.

Finally, remove any symbolic link that might exist in the /usr/local/bin folder. In my case I just have these two but check for the 2016a version:

rm /usr/local/bin/matlab /usr/local/bin/mex

(run with sudo if you are not the owner).

EDIT: There might be other files related to your Matlab installation (as suggested here). For example, you might have some files in /var/tmp/, which you can remove too. (I do not have them, but it depends on the packages you have).


Can graphics drivers cause checkboxes to not show up correctly and make line numbers in gedit disappear?

First off

Yes, your graphics card, could possibly be using a wrong or corrupted driver that makes it render some GUI elements incorrectly. It's recommended that you reinstall the drivers. You should have begun the post with your specs, but never mind. I guess you're using a Nvidia card.

Uninstalling

The first thing you need to do is to uninstall the driver you're currently using (if the re-installation didn't work). How to do that depends on the method you installed the driver. If you installed it using Nvidia's Unix/Linux GNU script provided on their website, then launch that script again with the :

  --uninstall

flag to it, at the end. If you installed it using the ppa/terminal/deb file, type in this:

  sudo apt-get purge nvidia*

  (For apt-fast users: sudo apt-fast purge nvidia*)

If you didn't install any drivers at all, Google how to disable nouveau driver.

Installing, well... Again

Now you have to install the correct packages for the Nvidia card, that i assume, you're using. With the graphical glitches, you've been having, I suggest you to use the stable Nvidia drivers.
I don't recommend any beta drivers.

To install the drivers type in:

  sudo apt-get install nvidia-current

  (For apt-fast users: sudo apt-fast install nvidia-current)

and the installation shall begin, if you don't have any repo-related problems.

Finalizing

When the drivers have finished installing (correct me if I'm wrong), all you have to do is reboot your system, and hope the glitches are gone. If everything is still like it was... The last thing I can suggest you is googling on "How to reinstall the ubuntu-desktop package". If that still doesn't help, well another theme or a full reinstall would be the only (non-elegant) solutions

If i helped, a vote up would be appreciated

EDIT: Just read the comments, and noticed you're using Intel HD4000. I will leave the post, maybe someone else will have use of it.


You can see why a particular package is considered a bad quality by looking at the details provided in that dialog box. It usually has to deal with how a package is packaged and not the package itself.

If the package doesn't meet the Debian policy, then it is considered to be of a poor quality.

Some common issues that trigger this warning are:

The package has some file ownership errors
There is no valid "Installed-size" field in the control file, etc.


Is there a way to have wall messages show to desktop users?

The internals of wall and are so blocked off and ancient that there's really no way to pull the message from it once it's in there.

The only real idea put forward for this (the problem has been discussed before, many times) is to alter the shutdown and reboot scripts so they either make something available via dbus or (as we're only dealing with one computer and one fix) you could just have it send a notify-send message.

They are just scripts so you could just hack into them. But I think this is probably a cause worth pushing for. Submit a bug against Ubuntu and add your patches (just make sure they can work without needing to send the notification if there's no X environment). It's this sort of usability that we need.

I've never heard of gxmessage before, but I would use notify-send.

A full solution would need to cater for the possibility of multiple displays (eg multi-head, remote users, etc) but thankfully I wrote some code for that bit yesterday:

for display in `ps aux | grep -oE "/usr/bin/X\s[^ ]+" | cut -d " " -f 2`; do
    DISPLAY=$display notify-send -u critical 'Shutdown notice' 'Save all your work. THE SYSTEM IS GOING DOWN!!' -i /usr/share/pixmaps/gnome-computer.png
done

(I'm using export instead of a -display or --display flag because I don't know that notify-send takes either)


Wi-Fi not working on Lenovo ThinkPad E570 (Realtek RTL8821CE)

This is a follow up to stason's answer who suggests using dkms.

As far as I can tell, at the time of writing this, there is not yet a Wifi Driver for the Realtek RTL8821CE in the official Ubuntu Repositories.

Over on github there is a repository with an RTL8821CE driver aimed at kernels 4.14 and above and specifically for Arch Linux with no support provided for other Linux Distros: https://github.com/tomaspinho/rtl8821ce

(Minor note: as of February 2019 tomaspinho is sadly no longer able to maintain the driver as he no longer has access to a computer with this chipset, and so a new maintainer may be needed, but the driver still works with Ubuntu 18.04 as at that time.)

It has, however, been reported to work just fine with Ubuntu 18.04.

A temporary internet connection will be required (such as an ethernet cable, USB wifi dongle or connecting your phone with a usb cable and 'tethering' it to use your phone's Wifi)

The solution is taken directly from post #4 by Praseodym (much praise to their wisdom!): https://ubuntuforums.org/showthread.php?t=2398917 and will install a number of packages for building the wifi driver module (git, dkms, build-essential & linux-headers) and clone the rtl8821ce git repository from tomaspinho (much praise also!).

DKMS is used because it's "a system which will automatically recompile and install a kernel module when a new kernel gets installed or updated."

Open up a terminal and type the following lines (You can cut and paste if you prefer):

sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r)
git clone https://github.com/tomaspinho/rtl8821ce
cd rtl8821ce
chmod +x dkms-install.sh
chmod +x dkms-remove.sh
sudo ./dkms-install.sh

After this is completed successfully, you should reboot and find that your Wifi is working.

You also want to make sure SecureBoot is Disabled in the BIOS settings or it won't let you load the unsigned self-complied kernel module.


What is the preseed setting to configure a disk partition as a Power PReP boot partition?

After digging into partman-auto, I found that the correct settings for my situation is to set the file type as 'prep' and also set method to 'prep' as well.

In the example I gave above, with the necessary tweaks it comes this:

d-i     partman-auto/disk string /dev/sda /dev/sdb
d-i     partman-auto/expert_recipe string        \
           multiraid ::                          \
             8 1 8 prep                          \
             $primary{ }                         \
             $bootable{ }                        \
             method{ prep }                      \
             .                                   \
             20000 40 20000 raid                 \
                $primary{ } method{ raid }       \
             .                                   \
             20000 50 20000 raid                 \
                method{ raid }                   \
             .                                   \
             10000 90 1000000 ext4               \
             .


Spellchecker for Linux with Latex support and export option?

aspell list -t < somefile.tex

gets you a list of all misspelled words in somefile.tex


You can readjust the partitions later on by booting from a Live distro which has Gparted, which makes this a non-permanent decision.

I am writing this on a Lenovo R60 with a 256GB SSD, and I partitioned things a little differently. I used zram instead of a traditional swap partition, and in the last six months, I've never needed true swap. Rarely do I ever exceed 50% of my 3GB used with 64-bit Xubuntu 13.10, even when transcoding videos while web surfing with Chromium.

Since SSDs wear out with repeated writes, moving to virtual swap in RAM not only speeds things up but it solves the SSD early fail issue.

I also left 20% of the space unallocated, as suggested for overprovisioning by Anand Shimpi among others.


Right click, add to panel, search for indicator applet, there should  be two of them, "indicator applet" and "indicator applet session." The latter is the "me menu" so add the latter! problem solved :D


Ubuntu 13.10 and 12.04.4 installer not seeing partitions

Device Boot    Start         End              Blocks      Id         System
/dev/sda1   *    2048      206847            102400        7     HPFS/NTFS/exFAT
/dev/sda 2       206848    1024002047         511897600    7     HPFS/NTFS/exFAT

It clearly shows that your disk has only two parttions.Both are formatted into ntfs filesystem. I recommend you to create a new ext4 partition for installing Ubuntu through gparted partition Editor.

After creating the new partition, install Ubuntu on it by choosing something else option.


Sorry, Ubuntu 16.04 Has Experienced an Internal Error, Unity Scope Loader

Upon investigating, it seems that libunity9, which as best as I can tell provides unity-scope-loader, is known to be buggy as shown here, here, and here.

I ran across a similar problem today. I continued to incur errors related to this for sometime. I was able to alleviate this issue with a reinstall of libunity9.

sudo apt-get install --reinstall libunity9

After the reinstall and reboot, I haven't received the error message again.