This happens when when your drivers are not compatible with your hardware.so u need to download the compatible ones.

1.First of all open the grub menu by clicking f6 or f7 when ur PC starts(depending on ur PC)and then open the OS in advanced-> recovery mode and then click on fail safe X mode and if it shows that you are low on graphics,cannot detect screen and devices then the problem will be mostly due to the driver.

2.Now depending on your hardware install the drivers from the internet whether its nvidia drivers or ATI etc.

3.Then go to the setting option->software and updates-> additional drivers->then selct anyone of the drivers and then click on apply changes and then restart your PC.

This will do your work if the problem is with the drivers.

for detailed description try this  How to fix "The system is running in low-graphics mode" error?


Is there a way to change the screen refresh rate in Ubuntu?

Have you tried this?

xrandr --output DVI-I-1 --mode 1920x1080 --rate 120.0


How should we install deb packages from the Internet and keep them updated?

For Discord - yes, you should download its new deb-packaged version everytime. Or use alternative sources:

FlatPak:
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.discordapp.Discord

Snap:
snap install discord

For Vivaldi - they have APT repository. You have to add it to the system by using commands below:
cd /tmp
wget http://repo.vivaldi.com/stable/linux_signing_key.pub
sudo apt-key add linux_signing_key.pub
sudo apt-add-repository "deb http://repo.vivaldi.com/archive/deb/ stable main"
sudo apt-get update
sudo apt-get install vivaldi-stable


Ubuntu firewall is blocking metatrader from install

Ubuntu firewall ufw is disabled by default.  If you have enabled it, use

sudo ufw disable to disable it again.

You can always check ufw status by typing sudo ufw status verbose.


Hard Drive recovery, corrupt file system

Did you have encryption on? Did you somehow write to the disk after the incident?
Yes, it is formatted in NTFS from the factory.

I should try following the advice in this article.


Boot freeze on asus vivobook s530f nvidia mx150 on ubuntu 18.04

CHECK ASUS WEBSITE FOR FIRMWARE UPDATE!!!

Here is a complete video about this problem, actually for an Asus Zenbook: https://www.youtube.com/watch?v=NbxrSaclKRc

Summary of the fix:

add the boot parameter: dis_ucode_ldr to /etc/default/grub
then: update-grub

More info here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1829620


Ubuntu is showing a Black Screen after booting up

Don't mount things to /home.
I suggest that you reboot your computer and from the advanced options in GRUB, boot to a root shell prompt (with networking).
At the root shell prompt, run nano /etc/fstab and remove or comment out your mount point and reboot with the reboot command.


How to Install the latest version of VirtualBox For Ubuntu 21.04?

If you would like to get VirtualBox straight from Oracle, this is how you can do it:

Open Terminal (if it's not already open)
Open the /etc/apt/sources.list file using a text editor of your choice. For example:
sudo vi /etc/apt/sources.list

Add the repository (perhaps at the very bottom of the file):
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian hirsute contrib

Download and add the requisite key for apt:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

The fingerprint for this key is:
B9F8 D658 297A F3EF C18D  5CDF A2F6 83C5 2980 AECF
Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>

Update apt:
sudo apt update

Install VirtualBox:
sudo apt install virtualbox-6.1

Source: VirtualBox


Lost installed ubuntu os after restart, Computer starts on try-without install or install ubuntu

This looks very much like the installation started afresh after every reboot.

The most common cause for this is that the installation media (USB stick,...) is still plugged in.


Is Ubuntu vulnerable to a Grub2 authentication bug?

This has been fixed in Ubuntu, reference: Security Notice USN-2836-1


This is bug in krusader: launchpad.net

Problem is solved krusader 2.4.0-beta3: deb


Easy:

Shut down the machine completely.
Boot up and go into the BIOS
Disable nvidia
Continue booting

Done!


Running OpenCL code on 14.04 with an NVIDIA GPU

This has become simpler since the last time I attempted this. The latest Nvidia drivers can be installed with

sudo apt-get install nvidia-current

and

sudo apt-get install cuda

will install various Nvidia tools in (at the time of this writing) /usr/local/cuda-7.0. This includes the library and include path needed to use OpenCL. On my machine these are

/usr/local/cuda-7.0/lib64/libOpenCL.so
/usr/local/cuda-7.0/include/

The include path contains CL/cl.h


How do I combine hundreds of folders using command line

The script below moves all files from one directory, containing your 535 folders, (recursively) into another (single) directory, keeping their original filename.

In case of duplicates

(Only) in case of duplicate names, files will be renamed to duplicate_1_[filename], duplicate_2_[filename] etc.

How to use

Copy the script below into an empty file, save it as rearrange.py, set the correct paths to the source and destination (directories) and run it by:

python rearrange.py

The script:

#!/usr/bin/env python

import os
import shutil

# --------------------------------------------------------
reorg_dir = "/path/to/sourcedirectory"
target_dir = "/path/to/destination"
# ---------------------------------------------------------
for root, dirs, files in os.walk(reorg_dir):
    for name in files:
        subject = root+"/"+name
        n = 1; name_orig = name
        while os.path.exists(target_dir+"/"+name):
            name = "duplicate_"+str(n)+"_"+name_orig; n = n+1
        newfile = target_dir+"/"+name; shutil.move(subject, newfile)

For (gnome-) terminal- "drag and drop" functionality:

Use below version, save it as described above (but don't change anything) and make it executable. To use it, open a terminal window, drag the script over the terminal window, then the source directory, last the destination. The command you'll then see in your terminal:

rearrange.py /path/to/source /path/to/destination

Press return and it is done.

The script:

#!/usr/bin/env python

import os
import shutil
import sys
# --------------------------------------------------------
reorg_dir = sys.argv[1]
target_dir = sys.argv[2]
# ---------------------------------------------------------
for root, dirs, files in os.walk(reorg_dir):
    for name in files:
        subject = root+"/"+name
        n = 1; name_orig = name
        while os.path.exists(target_dir+"/"+name):
            name = "duplicate_"+str(n)+"_"+name_orig; n = n+1
        newfile = target_dir+"/"+name; shutil.move(subject, newfile)

Copy instead of move

If you'd like to keep your current directory untouched and only copy the files into a new directory, simply replace the last (section of) line:

replace:

shutil.move(subject, newfile)

by:

shutil.copy(subject, newfile)


Manually mounting the file-system should work - just use the mount command:

It uses these parameters:
mount -t type device dir

So run this:

mount -t ntfs DEVICE_LOCATION PLACE_TO_MOUNT_IT

Here is an example:

mount -t ntfs /dev/sdb1 /mnt

For more information run man mount

Check it with GParted - sudo apt-get install gparted then gparted. http://gparted.sourceforge.net/

This will show the formatting of your disk, and whether it has any data on it - it can also repair the disk if necessary.

Backing it to an image would also be a good idea.


Unable to type in a terminal, but there is a prompt

Something tells me that it was ibus that needed a kick...

iBus doesn't seem to restart


check if there is a shortcut for input-switch assigned with xkb-options other than those assigned under system-settings -- >> keyboard -- >> keyboard shortcuts, using below command

gsettings get org.gnome.desktop.input-sources xkb-options

Example output: ['grp:lctrl_lshift_toggle', 'grp_led:scroll']

check the meanings of the options you got from above output with this link

then use gsettings set command to remove the required option. for example

gsettings set org.gnome.desktop.input-sources xkb-options "['grp_led:scroll']"

Alternatively you can use gnome-tweaks (sudo apt install gnome-tweaks) like below.


What version of Unity will be used in 12.04

In Precise Pangoline, they have already upgraded the Unity package at the 5.6 for Unity (as stated here in Launchpad) and Unity-2D (as stated here in Launchpad)..besides, in the 5.4 version of Unity, they released the new feature, HUD, as explained by Mark Shuttleworth (you can read it here).


Unsuccessful rJava package installation on Vultr (Ubuntu 16.04) server

Java 9,10,11 are infamous for problems with finding additional libs.

I chose to return to java 8 and NOT go with -headless version. This helped me:

sudo apt remove openjdk-10-jre-headless
sudo apt remove openjdk-11-jre-headless
sudo apt remove openjdk-8-jre-headless
sudo apt install openjdk-8-jre


Displayed Screen Resolution Differs from Set Resolution

The "scale for menu and title bars" was somehow set to 2. Setting it to 1 restored the original screen resolution.


Open your file manager and click to view hidden folders.
Go to directory /home/YoUrUsErNaMe/.config and delete the folder named smplayer.

BEWARE: This folder you are deleting is your smplayer settings! if you want you can move this folder in somewhere safe so you can use it again later.
We gonna remove the smplayer and will gonna install the latest version plus mplayer2. Open a terminal and type:

sudo add-apt-repository ppa:rvm/smplayer
sudo apt-get update
sudo apt-get install mplayer2 smplayer


double mount point created after using mount manager from ubuntu repossitories

Are you looking for a solution that allows you to mount a disk automatically? If that is the case, revert the changes you have made with Mount Manager and do the following:

Open up Disk Utility and look up the partition device name of the drive you want to have mounted automatically
Now run:
udisks --mount /dev/xxxx Where xxxx obviously stands for the partition device name. Now, the partition should be mounted.
Add this command to Startup Applications, which can be found in the session menu in the top-right of your screen.


adobe reader 9.5.1 - No text in tab / menus

This might be the duplicate of How do I disable the global application menu in Adobe Reader 9?.

Follow the step by theFisher86, and you will be fine.

Adobe Reader 9.5.1 from Canonical Repository doesn't have this issue. If you want to install Adobe Reader on a friend's PC, enable partner repository and install it via

  sudo apt-get install acroread


ninvaders is the package you're looking for!

You can simply install through the link above, your Software Center, or a terminal with the following command:
sudo apt-get install ninvaders

Note that you must have the universe repository enabled.


It's just a hunch, but perhaps the problem originates from using the 64-bit version of Ubuntu.

I had a similar problem a while ago with an Ubuntu 9.04 Jaunty 64-bit install (it was a fresh installation, no upgrade, no beta, nothing special at all):
Every few hours the computer randomly crashed, even if the system was hardly consuming any resources, forcing me to reboot the computer by pressing the reset button.
I often found myself simply moving the mouse across the screen when suddenly everything froze.

I asked for help in an Ubuntu forum, posted syslogs, ran a memtest, checked the electrolytic capacitors inside the computer, to no avail.
I assumed some part of the hardware to be defective, but did not really know how to go on from there.

Eventually, when support for Jaunty ran out, I wanted to move to Lucid.
A friend of mine, whose Jaunty 32-bit system ran smoothly and who I had told about my trouble, suggested to go for the 32-bit version because he had a hunch that it was the 64-bit version that had caused me all this pain.

And what can I say? I have been running Lucid 32-bit for two years without a single crash, on the exact same hardware that Jaunty 64-bit had been on.

I never learned whether the problem did arise from the use of 64-bit, so I'm really just guessing here, but it might be worth giving it a try (even though it might be a bit frustrating to be sitting on 8 GB RAM and being able to use only 2 to 3).

These are my specs, by the way:

Intel Core 2 Duo 3.16 GHz
4 GB RAM
ATI Radeon HD 4850
500 GB HDD


Double Quotes inside Double Quotes problem for postgres sensitive database name priviliges

You could use singlequotes :

postgres=# \l
                                 List of databases
   Name    |  Owner   | Encoding |  Collate   |   Ctype    |   Access privileges
-----------+----------+----------+------------+------------+-----------------------
 MyDb      | postgres | UTF8     | en_US.utf8 | en_US.utf8 |

$ su - postgres -c 'psql -c "grant all privileges on database \"MyDb\" to user;"'
GRANT

But be careful, as if you're using variables inside the singlequotes, they will not be expanded. In your specific case, it's ok though.

Edit: you also need to escape the doublequotes inside the request, so they are correctly passed to PostGres, in order to indicate that the DB name is case-sensitive.


Upgrade to 19.10, LXD will no longer run


accidentally, im just not properly insert the battery rightly on the place


How do I retrieve all "open with" file actions per API?

For open-with Nautilus uses GTK and GIO:

GTK provides the GtkAppChooser interface and its implementations to be used in a GUI.

On a lower level there's GIO with things like g_file_query_default_handler () to get the default application for a file, or g_app_info_get_all_for_type () to get all registered apps for given a MIME type.

Once you have the GAppInfo for a app you can use g_app_info_launch () to open a file with that application.

Depending on what programming language you are using there may be better docs, like the Python GObject Introspection API Reference

For the shell there's xdg-open to open a file with the default application, and xdg-mime to do things with MIME types.

If you want to know all the details about MIME handling on Linux see Shared MIME-info Database and Association between MIME types and applications

nautilus-extra-action contains little programs (often shell scripts) for the Nautilus-Actions extension. To use them your program needs to implement something like Nautilus-Actions, too.


I would not recommend Ubuntu for a PC with a non PAE core.  If you can get it to run performance is unlikely to be satisfactory.

You can however use Lubuntu 12.04 on non PAE systems.  Lubuntu is a much lighter desktop than Ubuntu but as you use it mainly from the command line it should be fine for your needs and its supported in this forum.

Download is here

http://cdimage.ubuntu.com/lubuntu/releases/12.04/release/

Lubuntu 12.10 requires a PAE however.

If you want to try installing Ubuntu 12.04 on a non PAE system however Take a look here.


Why is downloading repository updates so slow?

I tried again later and it worked. So it solved itself. I think it was probably just my internet having a hiccup, but only to this computer. Which is weird.


Why does Ubuntu fail to build amd64 architecture 4.20.1, 4.20.2, 5.0-rc2 kernel?

I noticed this as well.  It's certainly odd.  You can see that the amd64 builds keep failing.  I've provided the links to the build logs, perhaps we can derive some insight from these.

https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.1/
https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.1/BUILD.LOG.amd64
https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.2/
https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.2/BUILD.LOG.amd64

Although for some reason v4.20 succeeded.  Weird?!

https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20/
https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20/BUILD.LOG.amd64

I bet one of the patches that they apply on top of the vanilla sources is causing problems...

I typically use UKUU to keep my system up-to-date with the latest mainline builds, so this is a little disappointing.

Hopefully they get this resolved soon!

Edit: It looks like the build is broken because of the nvidia driver.  It appears to be trying to build that kernel modules as part of the overall build process.  See the relevant lines near the end of the build log:

2019-01-10 03:38:12 (105 MB/s) - 'nvidia-kernel-source-390_390.87-0ubuntu4_amd64.deb' saved [8433608/8433608]

II: dkms-build downloading nvidia-390 (nvidia-dkms-390_390.87-0ubuntu4_amd64.deb)
--2019-01-10 03:38:13--  http://us.archive.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-390/nvidia-dkms-390_390.87-0ubuntu4_amd64.deb
Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.26, 91.189.91.23, 2001:67c:1562::16, ...
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27288 (27K) [application/x-debian-package]
Saving to: 'nvidia-dkms-390_390.87-0ubuntu4_amd64.deb'

     0K .......... .......... ......                          100% 9.46M=0.003s

2019-01-10 03:38:13 (9.46 MB/s) - 'nvidia-dkms-390_390.87-0ubuntu4_amd64.deb' saved [27288/27288]

linux:BuiltUsing=nvidia-kernel-source-390 (= 390.87-0ubuntu4),
II: dkms-build building nvidia-390

Creating symlink /home/kernel/COD/linux/debian/build/build-generic/______________________________________________dkms/build/nvidia/390.87/source ->
                 /home/kernel/COD/linux/debian/build/build-generic/______________________________________________dkms/source/nvidia-390.87

DKMS: add completed.
applying patch buildfix_kernel_4.18.patch...patching file conftest.sh
patching file nvidia-drm/nvidia-drm-connector.c
patching file nvidia-drm/nvidia-drm-encoder.c
patching file nvidia-drm/nvidia-drm-helper.h
patching file nvidia-drm/nvidia-drm.Kbuild

Building module:
cleaning build area...(bad exit status: 2)
unset ARCH; env NV_VERBOSE=1 'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=4.20.1-042001-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/home/kernel/COD/linux/debian/build/build-generic/______________________________________________dkms/headers/linux-headers-4.20.1-042001-generic LD=/usr/bin/ld.bfd modules.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.20.1-042001-generic (x86_64)
Consult /home/kernel/COD/linux/debian/build/build-generic/______________________________________________dkms/build/nvidia/390.87/build/make.log for more information.
debian/scripts/dkms-build: line 121: /home/kernel/COD/linux/debian/build/build-generic/______________________________________________dkms/build/nvidia/390.87/4.20.1-042001-generic/*/log/make.log: No such file or directory
make: *** [debian/rules.d/2-binary-arch.mk:201: install-generic] Error 1

Edit 2: Opened a bug report here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1811721


Login to lubuntu

Press

Ctrl + Alt + F1

Sometimes  F2

Virtual terminal opens. Type:

sudo apt-get update
sudo apt-get install --reinstall lubuntu-desktop
sudo reboot

Now you are all good to go


Are updates released all at once or ad hoc?

They are released as and when they are needed.

Users will see security updates immediately.  But otherwise, the Software Updater will (by default) only notify users once a week.

There is additionally some experimental support for phasing updates out to a higher and higher percentage of users over time.  This isn't widely used yet, to my knowledge.  But it's built into the infrastructure.


Why is openjdk-11-jre installed together with maven when openjdk-8-jdk is specified in the package list?

It's probably a result of how apt walks the dependency tree. Looking at the maven package details, we see:

  default-jre-headless (>= 2:1.7)
  Standard Java or Java compatible Runtime (headless)

  or java7-runtime-headless
  virtual package provided by default-jre-headless, openjdk-11-jre-headless, openjdk-8-jre-headless

If openjdk-8-jre-headless is already installed, then the java-7-runtime-headless dependency is fulfilled and apt doesn't need to install anything additional there.

On the other hand, if nothing satisfying java-7-runtime-headless is installed, then apt will go first for default-jre-headless, since none of the packages named for installation fulfills either dependency, and JDK 11 gets installed. Since otherwise the package fulfilling this dependency is buried in the dependency of another package, we have a Catch-22 when it comes to creating the list of packages for installation.

If you explicitly name one of the packages providing java7-runtime-headless for installation, apt will work as you want:

# apt-get install --assume-no maven openjdk-8-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  ca-certificates ca-certificates-java dbus fontconfig-config fonts-dejavu-core
  java-common krb5-locales libaopalliance-java libapache-pom-java libapparmor1
  libatinject-jsr330-api-java libavahi-client3 libavahi-common-data
  libavahi-common3 libbsd0 libcdi-api-java libcommons-cli-java
  libcommons-io-java libcommons-lang3-java libcommons-parent-java libcups2
  libdbus-1-3 libexpat1 libfontconfig1 libfreetype6
  libgeronimo-annotation-1.3-spec-java libgeronimo-interceptor-3.0-spec-java
  libgssapi-krb5-2 libguava-java libguice-java libhawtjni-runtime-java
  libjansi-java libjansi-native-java libjpeg-turbo8 libjpeg8 libjsr305-java
  libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblcms2-2
  libmaven-parent-java libmaven-resolver-java libmaven-shared-utils-java
  libmaven3-core-java libnspr4 libnss3 libpcsclite1 libplexus-cipher-java
  libplexus-classworlds-java libplexus-component-annotations-java
  libplexus-interpolation-java libplexus-sec-dispatcher-java
  libplexus-utils2-java libpng16-16 libsisu-inject-java libsisu-plexus-java
  libslf4j-java libsqlite3-0 libssl1.1 libwagon-file-java
  libwagon-http-shaded-java libwagon-provider-api-java libx11-6 libx11-data
  libxau6 libxcb1 libxdmcp6 libxext6 libxi6 libxrender1 libxtst6
  multiarch-support openssl ucf x11-common
Suggested packages:
  default-dbus-session-bus | dbus-session-bus default-jre
  libaopalliance-java-doc libatinject-jsr330-api-java-doc libservlet3.1-java
  libcommons-io-java-doc libcommons-lang3-java-doc cups-common krb5-doc
  krb5-user libasm-java libcglib-java libjsr305-java-doc liblcms2-utils
  libmaven-shared-utils-java-doc liblogback-java pcscd
  libplexus-cipher-java-doc libplexus-classworlds-java-doc
  libplexus-interpolation-java-doc libplexus-sec-dispatcher-java-doc
  libplexus-utils2-java-doc junit4 testng libcommons-logging-java
  liblog4j1.2-java libnss-mdns fonts-dejavu-extra fonts-ipafont-gothic
  fonts-ipafont-mincho fonts-wqy-microhei fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
  ca-certificates ca-certificates-java dbus fontconfig-config fonts-dejavu-core
  java-common krb5-locales libaopalliance-java libapache-pom-java libapparmor1
  libatinject-jsr330-api-java libavahi-client3 libavahi-common-data
  libavahi-common3 libbsd0 libcdi-api-java libcommons-cli-java
  libcommons-io-java libcommons-lang3-java libcommons-parent-java libcups2
  libdbus-1-3 libexpat1 libfontconfig1 libfreetype6
  libgeronimo-annotation-1.3-spec-java libgeronimo-interceptor-3.0-spec-java
  libgssapi-krb5-2 libguava-java libguice-java libhawtjni-runtime-java
  libjansi-java libjansi-native-java libjpeg-turbo8 libjpeg8 libjsr305-java
  libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblcms2-2
  libmaven-parent-java libmaven-resolver-java libmaven-shared-utils-java
  libmaven3-core-java libnspr4 libnss3 libpcsclite1 libplexus-cipher-java
  libplexus-classworlds-java libplexus-component-annotations-java
  libplexus-interpolation-java libplexus-sec-dispatcher-java
  libplexus-utils2-java libpng16-16 libsisu-inject-java libsisu-plexus-java
  libslf4j-java libsqlite3-0 libssl1.1 libwagon-file-java
  libwagon-http-shaded-java libwagon-provider-api-java libx11-6 libx11-data
  libxau6 libxcb1 libxdmcp6 libxext6 libxi6 libxrender1 libxtst6 maven
  multiarch-support openjdk-8-jre-headless openssl ucf x11-common
0 upgraded, 78 newly installed, 0 to remove and 4 not upgraded.
Need to get 44.0 MB of archives.
After this operation, 138 MB of additional disk space will be used.
Do you want to continue? [Y/n] N
Abort.


How can I remove a folder with a lock icon on it?

The most efficient approach can be to go to the parent folder of the folder you have copied and check the ownership of the folder through the terminal or basic GUI.
run the command on terminal to check the ownership
ls -la [folder]

if the owner of the folder is an accessible account then login as that account or sudo as the account, change the permissions of the folder and delete it.
If the above is not possible then sudo as root and delete the folder.


Can't install packages after changing to KDE on Ubuntu 16.04

What it says: Installing kde-config-telepathy-accounts tries to (over)write the file /usr/share/accounts/services/google-im.service, which also are in the package account-plugin-google .. this is a conflict between unity / gnome and KDE packages.

You can remove account-plugin-google (sudo apt remove account-plugin-google) or just remove the file (sudo rm /usr/share/accounts/services/google-im.service) and hope that the two packages can exist together ..

And in either case, rerun sudo apt-get -f install


Ubuntu for Android - I don't fully understand what it is

The phone will always be running Android as its base OS. When you dock it (the dock being plugged to a large screen, a keyboard and a mouse) the phone fires up a X session running Unity. When you remove the phone from the dock the X session closes and you are back to the Android touch interface.

Although this has not been discussed in the various videos released, there is no reference to a special behaviour when connecting the phone to a PC. Thus I would expect it to behave as usual, and simply mount the phone SD through MTP.


Well lets Start Over With my answer. While Soundconverter was previously suggested by VBR....What is the primary extension of the souund files you are trying to convert, how many do you have and o you need options like variable bit rate, meta taggin etc etc


You have a typo in shebang line, which specifies interpreter to use. It should be:

#!/usr/bin/env python

which will default to python2.7. Since you've tagged your question python3, you may want to use:

#!/usr/bin/env python3

You should use the #!/usr/bin/env python3 line .

As it stands now, your shell is interpreting the script with shebang being treated as a comment as it starts with #. Thus, there's no interpreter specified, and by default script will be executed with your current shell. The shell has no idea of what import is , hence the command not found error is being shown by the shell.

As a side note, for running native shell commands in python, use the subprocess module instead of unsecured and deprecated os.system function.

Also why are you running user input blindly without any sanity checking?


You will need a tool that can shrink current schema to use available free speace

sudo apt-get install gparted


Try the following:

sudo cp -pR /home.old/test /home
cd
ll

Make sure the files listed (except for ..) all have your user name. For example:

drwx------  3 yourusername yourusername   4096 Jan  1  1970 .gnome/

It's a bit confusing, but to add a new user, don't use useradd. man useradd says:

  useradd is a low level utility for adding users. On Debian, administrators should usually use adduser(8) instead.

Instead, first remove the user you created with useradd by using deluser:

sudo deluser --remove-home test2

Then, add a user with adduser:

sudo adduser test2

Follow the prompts, and you'll have a new user properly created.


Click on up arrow button on the right side of Unmute button (Unmute button on lower left) while you are on zoom meeting.
Click on Audio Settings
Increase output volume to maximum (by default it is set to minimum)

These steps solved the stated problem on both of my Ubuntu OS


Normally

You should be able to show/hide the icon using the commands: gsettings set com.canonical.indicator.keyboard visible true and gsettings set com.canonical.indicator.keyboard visible false

However

When you ran on my request the command(s) above, the output was:

gsettings set com.canonical.indicator.keyboard visible true (process:9568): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code21: Cannot open dconf database: Failed to open file '/home/pavel/.config/dconf/user': Input/output error

The fix

Googling around, I found this link, mentioning that your dconf database was probably corrupted.

As the link mentions, it can be solved by removing (alternatively: renaming) the database with the command:

mv ~/.config/dconf/ ~/.config/dconf.bak


Meizu Pro5 update fails (Android originally), no way to do ubuntu-device-flash

The problem is that for some reason busybox supplied with said recovery is outdated and unsupported. So updater simply can not unpack modern xz tar archive. You need to help it do this manually:

after you get to the error updating screen - do this:

download busybox-armv7l from https://busybox.net/downloads/binaries/latest/
push busybox as tar: adb push ~/ubuntutouch/busybox-armv7l /sbin/tar
adb shell
in adb shell (everything below is in adb shell) - chmod a+x /sbin/tar
mount /system as described in file /fstab.m86 on device (cp /fstab.m86 /etc/fstab; mount -a)
(delete all files in /system if needed rm -rf /system/*)
cd /cache/recovery
import keys tar -xvf image-signing.tar.xz keyring.gpg -O | gpg --import and tar -xvf image-master.tar.xz keyring.gpg -O | gpg --import
unpack system image:

tar xf ubuntu-* -C /
tar xf device-* -C /
tar xf custom-* -C /
tar xf version-* -C /
sync
umount /system

reboot with power button, wait 5 minutes to finish install.

I do not know if this will support OTA, but at least it is all done with ubuntu utilities (and hands) only

I guess someone should file a bug about broken busybox in published recovery.


How to fix apparmor="DENIED" for telepathy-mission-control-5 under Ubuntu 14.04?

First of all some introductory words as to what mission-control is:

  Mission  Control  implements [...] the  Telepathy  D-Bus  specification,  allowing
         clients  like empathy to store account details, connect to accounts,
         request communication channels, and have channels dispatched to them.

Source

To disable the mission-control profile for apparmor, first use aa-status. This lists all profiles and their mode of operation, the output is somewhat similar to this:

# aa-status
apparmor module is loaded.
6 profiles are loaded.
5 profiles are in enforce mode.
   /bin/ping
   /sbin/klogd
   /sbin/syslog-ng
   /usr/sbin/dnsmasq
   /usr/sbin/identd
1 profiles are in complain mode.
   /usr/sbin/lspci
1 processes have profiles defined.
1 processes are in enforce mode.
   /usr/sbin/dnsmasq (12905)
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.

Check the output for the profile of mission-control.

If you link the profile to /etc/apparmor.d/disable, it isn't automatically loaded anymore and the errors should be gone.

Notice that this is more of a workaround stopping the messages, rather than fixing the root cause of the issue.

If you want to dig deeper and fix the aa profile, then read http://wiki.apparmor.net/index.php/QuickProfileLanguage and change the mission-control profile accordingly.


How much swap memory should i have if i have 2 GB of ram?

The standard recommendation for swap space is double your RAM, but if you have 4 GB RAM or more, you can usually get away with less swap space.  For instance, I recently upgraded my desktop machine from 4 GB to 8 GB RAM, and didn't bother changing the size of my swap space -- it's still equal to my RAM, so it's unlikely I'll overrun it.


Where is the keyboard layout file for "French (legacy, alternative)"?

The direct answer to your question in the title is: It's in the same file as the basic French layout. In the version of /usr/share/X11/xkb/symbols/fr I have installed, the definitions for "French (legacy, alternative)" begins on line 339.

Before modifying the layout, you need to decide on which layout your modified layout should be based.


This

tail -f /var/log/syslog | grep run1.R && run2.R

will run

tail -f /var/log/syslog | grep run1.R

and when and if that exits successfully, it will (try to) run

run2.R

afterwards because of the && in-between. I assume you want one of

tail -f /var/log/syslog | grep -F -e run1.R -e run2.R
tail -f /var/log/syslog | grep -E "run[12]\.R"
tail -f /var/log/syslog | grep -E "run1\.R|run2\.R"

to filter the lines that contain either run1.R or run2.R (or both).

Note that tail -f /var/log/syslog usually never exits as long as the given
file exists -- which should be the case for that particular file.


Ubuntu Gnome 15.10 + Intel 8260 Wifi = Wifi/Bluetooth issues

Wifi

At the time of writing the Intel's 8260 Wifi card is pretty new. It is officially supported by the kernel shipped with Ubuntu 15.10 onward. In case of a Slow Or Erratic Wi-Fi In Ubuntu 12.04 LTS? Try Wicd:

# install Wicd
sudo apt-get install wicd
# remove the default Network Manager that ships with Ubuntu
sudo apt-get remove --purge network-manager

While I can't say that my Wifi issues have disappeared altogether at least I'm aware exactly what's going on at any given time, because Wicd shows you much more useful information than the default network manager that ships with Ubuntu. It also stores your Wifi password, so you are no longer constantly asked about your password when the manager is trying to automatically reconnect you.

In case you have external USB Wifi adapter you can easily switch between the two:

# list network devices
sudo lshw -C network

Copy the logical name of the network adapter you want to use in Wicd - Preferences - General Settings - Wireless interface

Bluetooth

What I noticed with this particular Intel's 8260 Wifi adapter is that the Bluetooth can become a bit laggy from time to time, especially if your divce's batteries are about to die.

Another thing is that after a couple of sleep-wakeup cycles the Intel's Bluetooth adapter entry tends to disappear. No matter what command you use in the shell it's simply gone. Probably until system restart or something which is not an option for me.

So, I bought a cheap external USB Bluetooth nano adapter and I'm using it for that. I'm using the Intel's Wifi strictly for, well, Wifi. The external Bluetooth adapter works always and it delivers a bit smoother performance than the Intel's one.

I'm using Blueman to manage my devices:

sudo apt-get install blueman

It also allows you to switch between different Bluetooth adapters (when the Intel's one is actually present :)


How can I reproduce the error "package... needs to be reinstalled, but I can't find an archive for it" for testing?

The error "Apt/Synaptic needs to reinstall package but can't find the archive for it" is at times non-specific.

The most common time I see this error is when upgrading Ubuntu from one version to another .

Note: Ubuntu is converting from apt-get to apt , but I am using apt-get in this post. For additional information see man apt and https://www.debian.org/doc/manuals/debian-reference/ch02.en.html

The most common cause of this error is when a user has installed a package, and then removed the .deb, typically with sudo apt-get clean

http://manpages.ubuntu.com/manpages/zesty/man8/apt-get.8.html

  clean

       clean clears out the local repository of retrieved package files.
       It removes everything but the lock file from
       /var/cache/apt/archives/ and /var/cache/apt/archives/partial/

Then, at some point, dpkg --reconfigure is called, either by the user, or by upgrade, or at some point the user tries to reinstall the package is reinstalled sudo apt-get --reinstall foo or some variation.

If apt cannot locate the .deb in the repository, either because the packages was removed (rare), the repository was removed from the system, or upgrade and the package is not in the new repository, you will get the error "Apt/Synaptic needs to reinstall package but can't find the archive for it"

But the error can come from other causes.

Quoting the relevant sections from the dpkg man page ( See http://manpages.ubuntu.com/manpages/trusty/man1/dpkg.1.html for details )

  INFORMATION ABOUT PACKAGES
         dpkg  maintains  some  usable information about available packages. The
         information is divided in three classes: states, selection  states  and
         flags. These values are intended to be changed mainly with dselect.

  Package states

   not-installed
          The package is not installed on your system.

   config-files
          Only the configuration files of the package exist on the system.

   half-installed
          The  installation  of  the  package  has  been  started, but not
          completed for some reason.

   unpacked
          The package is unpacked, but not configured.

   half-configured
          The package is unpacked and configuration has been started,  but
          not yet completed for some reason.

   triggers-awaited
          The package awaits trigger processing by another package.

   triggers-pending
          The package has been triggered.

   installed
          The package is unpacked and configured OK.

  ACTIONS

   -i, --install package-file...
          Install the package. If --recursive or -R option  is  specified,
          package-file must refer to a directory instead.

          Installation consists of the following steps:

          1. Extract the control files of the new package.

          2.  If  another version of the same package was installed before
          the new installation, execute prerm script of the old package.

          3. Run preinst script, if provided by the package.

          4. Unpack the new files, and at the same time back  up  the  old
          files, so that if something goes wrong, they can be restored.

          5.  If  another version of the same package was installed before
          the new installation, execute  the  postrm  script  of  the  old
          package.  Note  that  this  script is executed after the preinst
          script of the new package, because new files are written at  the
          same time old files are removed.

          6.   Configure   the   package.  See  --configure  for  detailed
          information about how this is done.

  --configure package...|-a|--pending

          Configure  a  package  which  has  been  unpacked  but  not  yet
          configured.  If -a or --pending is given instead of package, all
          unpacked but unconfigured packages are configured.

          To reconfigure a package which has already been configured,  try
          the dpkg-reconfigure(8) command instead.

          Configuring consists of the following steps:

          1.  Unpack  the  conffiles, and at the same time back up the old
          conffiles, so that they can be restored if something goes wrong.

          2. Run postinst script, if provided by the package.

   /var/lib/dpkg/status

          Statuses  of  available packages. This file contains information
          about whether a package is marked for removing or  not,  whether
          it  is  installed  or  not,  etc.  See section INFORMATION ABOUT
          PACKAGES for more info.

If the man page(s) are tl;dr -> As a part of installation, .deb / dpkg / apt runs pre / post install scripts and other functions . If these installation / removal scripts fail for any variety of reasons, a package will be marked as "half-installed" (or some state other than not installed / installed) . In that unclean state you may sometimes also see the error "Apt/Synaptic needs to reinstall package but can't find the archive for it" . In this example, the problem is not a missing archive, but a problem in the pre/post install scripts that can not be resolved by re running them. Thus the error is at times non specific.

How to manage broken packages

First try to fix dependencies first by making sure the appropriate ppa / repositories are enabled, universe for example, or whatever repositories are needed.

How do I enable the "Universe" repository?
What are PPAs and how do I use them?

Then the infamous

sudo apt-get install -f

Read any output and error messages and post the command and output here if you need help.
Try to reconfigure

sudo dpkg --configure -a

This will run the config scripts. You may specify a package rather than -a, but -a is more helpful when you are having problems.

Read any output and error messages and post the command and output here if you need help.

Try to look at any failing script and if possible fix the error / problem in the script.
Try to remove the offending package, by force if necessary. You have to be very careful here you you can force removal of a critical package or worse set of critical packages. The following commands go from polite to less polite to outright force. Try them in order.

sudo dpkg --remove $broken_package
sudo dpkg --remove --force-remove-reinstreq $broken_package
sudo dpkg --remove --force-all $broken_package

If any of those work, run sudo apt-get update && sudo apt-get upgrade, you may need to run sudo apt-get -f install and/or sudo dpkg --configure -a as well.
If that fails, you will then need to manually remove  the packages. This may involve finding all the components on your system and manually deleting them.

Use the following procedure

Remove the dpkg information (see above)

cd /var/lib/dpkg/info
sudo rm -i package_name*

Be careful you do not remove more than needed here.

Finally remove the offending package

sudo dpkg --remove --force-remove-reinstreq package_name

You should then be able to use apt

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

Only if necessary find and manually remove any files remaining on the system. This is a manual procedure and may include config files in /etc or man pages or shared data. Use find or locate to identify potential remaining files.

Obviously you should take great care when deleting system files. Do not delete things you do not understand and do not use rm -Rf without understanding what that command will do. rm -i is probably better as the -i option asks for confirmation.

Recreate this problem

You may be able to reproduce this error message by manually editing the dpkg status file of any package in /var/lib/dpkg/info and changing the status to half installed

sudo nano /var/lib/dpkg/info/some_package

Edit the Status line so it reads

  Status: purge reinstreq half-installed

Then try to run apt-get.

If that does not work, install a package from a ppa, run apt-get clean, remove the ppa, and then try to reinstall or reconfigure the package.

Sorry for the long post, but I hope this gives you insight into the cause and resolution of this complex error message  "Apt/Synaptic needs to reinstall package but can't find the archive for it"


ddccontrol is not working, but it used to work

On my machine (which runs on ubuntu 16.04), ddccontrol -p shows nothing, but sudo ddccontrol -p shows my monitor.

On 16.04 you must be a member of the i2c group to access /dev/i2c-X devices. i2cdetect -l works because it list i2c buses, it does not try to open them.


how to upgrade nextcloud client on ubuntu Ubuntu 20.04.1 LTS

Make the appimage file as executable file and run it.
chmod +x name_of_the_appimage_file


What causes critical glib errors (when coding using messaging menu)?

Testing on Maverick suggests this is a Natty bug, so I reported a bug.


How to report a bug that occured during a release upgrade?

You have to report it against the ubuntu-release-upgrader-core package:

ubuntu-bug ubuntu-release-upgrader-core

Although it will appear to be linked to the ubuntu-release-upgrader package.


Cannot boot into Ubuntu (tried with 3 different USB Flash drive)

Change your boot device priority to boot from usb flash drive and put off fast boot option. If you are using windows try installing pendrive linux it is good and verified software . I myself created my installation stick from that only. You can download pendrivelinux and get info here


KDevelop 5 Beta, installed from PPA, ugly looking icons

Install (and use) qt5ct, and set your platform theme to that (export QT_QPA_PLATFORMTHEME=qt5ct). Some environments do not set a platform theme at all, and then you get very bad-looking results. Hopefully these times will soon be over.


DNS not resolving Seattle University network

Normally to troubleshoot DNS problems I do the following:

Check if a public DNS server (such as Google's 8.8.8.8) is reachable:

ping 8.8.8.8

(IIUC this works for you)

Try to resolve a name to see if DNS queries can reach it (the university's firewall might block them or interfere in some other ways):

dig google.com @8.8.8.8

or

host google.com 8.8.8.8

If that doesn't work, then you cannot use 8.8.8.8 as a DNS server.

Check if the system is indeed configured to resolve names through 8.8.8.8 (since you said you configured it statically in Network Manager):

cat /etc/resolv.conf

You should see something like:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8

If that is not the case, I would check the NetworkManager config again.

For a quick and dirty fix you can also edit that file, but keep in mind that NetworkManager or other programs will overwrite it the next time you reconnect (which might be sooner than you think if wifi drops for instance). So it is best to configure it in NetworkManager.

Check if you can indeed resolve the names you need with that DNS server.

Usually using external DNS servers is OK, except when there are machines on your university's campus that use private IP addresses. Those ones cannot be resolved through external DNS servers. So you actually need to use your university's DNS server.

In this case you could just leave the DNS servers as not configured in NetworkManager and it should pick them up from DHCP. If that doesn't happen, you could either troubleshoot it or just copy the DNS setting from another machine that works and set it statically in NetworkManager.


You just need to use the following command in order to enable bluetooth service from systemd boot system.

sudo systemctl enable bluetooth


Getting error While installing dkpg openssh-client

if you are trying to install a specific version of openssh server you can do this through APT you don't have to do it with dpkg.

sudo apt-get install openssh-client=1%3a5.3p1-3ubuntu7:i386

This way any dependencies (such as libssl) will be installed for you by APT.

I would check the format of the version string as it looks a bit wierd.


Nano unresponsive when using git commit - Ubuntu 12.04

Normally, when you git commit it brings up a VIM editor not nano. VIM is a really powerful text editor but it has loads of commands to let you quickly insert text and move around the document. However to type you must press i and then type and press ESC when done.

You can remove the -a to take it out of interactive mode so it just uses your original message.


You can modify the behaviors of the Application Switcher using Compiz Manager.

Install it with:

sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-plugins

Then, open compizconfig-settings-manager with alt-F2 and typing ccsm.

Scroll down to Ubuntu Unity Plugin and choose the tab Switcher.


Tab completion COMP_WORDS bad array subscript

A quick workaround could be using another shell like fish.


Kubuntu and Play On Linux, File Associations

Find the Notepad++ .desktop launcher file - the one you put in /usr/share/applications - it will look like this:

[Desktop Entry]
Encoding=UTF-8
Name=Notepad++
Comment=PlayOnLinux
Type=Application
Exec=/usr/share/playonlinux/playonlinux --run "Notepad++" %F
Icon=/home/USERNAME/.PlayOnLinux//icones/full_size/Notepad++
Name[fr_FR]=Notepad++
MimeType=application/x-cgi;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/x-javascript;application/x-perl;application/x-php;application/x-python;application/xhtml+xml;application/xml;text/css;text/html;text/javascript;text/mathml;text/plain;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-diff;text/x-dsrc;text/x-dtd;text/x-java;text/x-javascript;text/x-pascal;text/x-perl;text/x-php;text/x-python;text/x-sql;text/xml;
StartupWMClass=notepad++.exe
Categories=

add/change these lines:

Categories=Text;Editor;Plaintext;Write;GTK;Development;IDE;
MimeType=text/plain;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-dsrc;text/x-pascal;text/x-perl;text/x-python;application/x-php;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/xml;text/html;text/css;text/x-sql;text/x-diff;

Then right click on the file you want, and go to 'Properties' then to the 'Open With' tab:

You can then find Notepad++, and either 'Add' or 'Set is as Default'

Then you can open it with Notepad++ as default


How to convert a file with several spaces into a tab-delimited file?

Use tr:

tr -s ' ' '\t' < file1 > file2

  -s, --squeeze-repeats
  replace each sequence of a repeated character that is listed in the last specified SET, with a single occurrence of that
  character


Where does netfilter-persistent save the iptables rules?

Found it only works if you install 'iptables-persistent' package as well.

sudo apt-get install iptables-persistent netfilter-persistent

It will be saved in /etc/iptables/rules.v[4-6]

If you only install netfilter-persistent, it wont save any configuration


My update manager always stuck while applying changes

I am on ubuntu 12.04 and have this problem since 10.04, it looks like none cares to solve it, and is one of the things that makes ubuntu not user friendly, once one should not open terminal nor hit q to solve it, nor do what I do.

My solution, after many different methods is the following:

use the update manager only to fast-check if there is any new update.
if there is, close update manager (once it will get stuck if you continue with it), and open synaptic package manager (install it if you don't have it).
hit the buttons on the top side one by one (reload, mark all upgrades, apply)

you will notice, that every time an update would like to show you changelog, it will, but this time with a 'close' button there. Close every changelog that might appear and it will continue fine.


Errors encountered (by APT/dpkg) while processing linux-image-* packages

For me these two lines helped! Just remove all the linux-extra and linux-extra-image files, which are problematic and old.

For each package:

sudo mv /var/lib/dpkg/info/<PACKAGE-NAME>.* /tmp/

Then:

sudo apt-get autoremove && sudo apt-get autoclean

Then install/update the latest linux image file

sudo apt-get install linux-generic


Ubuntu 20.04 Nvidia Drivers Laptop Dual Graphics Not Installing

You are right. Your NVIDIA isn't recognized.
My solution was run fresh new Ubuntu install and mark " Install Third Party Software".
This way system choose a proper drivers and everything works.
Hope you too, as well.
Here is the easiest solution to be sure, you completely purge NVIDIA, repository, etc. After that, you don't neeed to install any other additional graphics driver. It will be the Intel Graphics.


LXC is returning an error when creating new unprivileged containers

The reason why it wasn't working turned out to be the kernel which was supplied with the Ubuntu build installed by the hosting provider (SoYouStart/OVH). This kernel has less features enabled, including the ones required by LXC. I had installed a Generic Linux kernel, but not correctly updated grub and enabled it.

After following the steps for selecting the generic kernel and updating grub and rebooting, LXC worked as expected. I hope that helps someone in a similar situation.


Ubuntu 14.04: Audio doesnt work until I change the volume

This is quite likely to not work.

First create a script in your home folder with this in it:

amixer -D pulse sset Master 80%+
amixer -D pulse sset Master 80%-

#!/bin/sh

amixer -D pulse sset Master 50%+
amixer -D pulse sset Master 50%-

The open terminal and execute the command:

chmod +x volumeset.sh

Finally, just to test it works, run the command ./volumeset.sh in terminal and see if it fixes the sound. If it does, open startup applications then add in the command:

./volumeset.sh

To run it automatically at login.


Change default button state from Cancel to OK

No, it cannot. That's purely application-driven, not OS-driven.
:-(
LQ reviewers: that's it: no more to say, really...


I believe Samba is configured like that by default,  here are the relevant lines in smb.conf:

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
    security = user

...

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
    unix password sync = yes

More info on these options and more here.  Hope that helps.

EDIT:

The first time you add a linux user (adduser) you need to add them to smbpasswd as well.

sudo smbpasswd -a <user>

when prompted for a password use the same password you used with adduser.  After this the smb password should be updated automatically when you change the linux password with sudo passwd <user>


The GUI is not loading after installing xubuntu-desktop package for Ubuntu

You can see the terminal pressing CTRL + ALT + F1 (F1 to F6) normally.
You may be able to access via SSH if you installed openssh.
If this give you too much trouble get the micro SD, mount it with the laptop and modify the files you may need to restore.
However if I were you, unless you enjoy investigating why it failed, I would just toast another micro SD and boot clean and use ubuntu-desktop.


Welcome to the world of ubuntu. You are very new to ubuntu, so please refer the ubuntu 12.04.2 LTS installation guide   and redo the installation. It will surely work.


Blacklisting the internal intel soundcard removed it from the sound menu, but there was no sound still. I tried starting alsamixer again and it had different options now, "speaker" was turned down to zero.

It was the easiest of all possible problems after all …

Is probably has a lot to do with this problem, this seems to be the solution for the wrong problem.


Ensure you have a shebang "#!/bin/bash" to specify howthe script is to be parsed.

ntpdate script:

#!/bin/bash
/usr/sbin/ntpdate ntp.ubuntu.com pool.ntp.org


apt not working: installed libc-bin package post-installation script subprocess returned error exit status 134

Interestingly enough, when I tried what Eric Gazoni did when his slapd failed, of course dpkg didn't want me to forcibly remove vital organs of Ubuntu ;) ... But  after stubbornly executing through his instructions, replacing slapd by libc-bin, and afterwards moving /tmp/libc-bin.* back to /var/lib/dpkg/info/, it repaired itself!
So, essentially this did the trick, although it is possible that not every command is necessary:
sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libc-bin
sudo dpkg --purge libc-bin
sudo apt install --reinstall libc-bin
sudo mv /tmp/libc-bin.* /var/lib/dpkg/info/


Catch 22: python-pillow & python-pil apt-get conflict

This isn't a good solution at all, but it's what worked for me (copied from the comments):

Well, I finally got everything behaving by allowing file overwriting during the install sudo dpkg -i --force-overwrite /var/cache/apt/archives/python-pillow_2.7.0-1_amd64.deb (see this). Not a nice solution since the package manager won't know which package those files came from. But at least I can get on with what I'm doing.


How to cancel time conversion in librecalc?

Just select a different time format to format the time value:

select the cells to format
right-click on them
select "Format Cells..."
From the leftmost listbox ("Category"), select "Time"
From the listbox in the middle ("Format"), select the appropriate entry.


Is it possible to reboot Live CD powered computer?

What you're talking about doing refers to having a persistent USB Drive. With what you currently are using yes, you can reboot it but no, you won't be able to save anything to it. An option have though is to make a LiveUSB that is able to be persistent, (Able to hold changes and save them, like saving a word document etc.) then you'd most likely be able to do what you're asking. To do this I recommend you use a USB Flash drive that has a minimum of 4GB of free memory, preferably 8GB if you have it. A (hopefully anyway) simple way to do this follows.

Please Note: This tutorial is based for those with Windows Systems, and are trying out GNU/Linux on the aforementioned system.

What You Will Need

The Universal USB Installer Program.
A computer with an Internet Connection.
A GNU/Linux ISO image. Ubuntu, Fedora, Kubuntu, Etc...

What To Do

DOWNLOAD or run the Universal USB Installer Program.
Browse and select your chosen GNU/Linux ISO Image. NOTE: If you don't have one you will be given the option to download it before writing it to your chosen drive.
Browse for and select your chosen USB Flash Drive.
MAKE SURE you have chosen the right flash/external drive BEFORE you write the ISO image to it as ALL data will be lost when this process is completed!!!
Write the ISO image to the flash drive, choosing if you wish to have a persistent storage and if so how much memory to allocate for said storage.
Restart your computer with the flash drive connected, boot to the flash drive, and enjoy your external USB Drive!
Hope this helps you!

P.S. If you need more info please do not hesitate to let me know...


Is apt-get update and upgrade necessary?

apt and apt-get use the same repository configurations.

So apt update and and apt-get update will do the same with the same repository

More info - apt-vs-apt-get-ubuntu


Graphics problems with AMD Athlon 3000G and MSI B450M

I recently had the same problem with Xubuntu 20.04 on a Lenovo Ideapad L340-17API, which have AMD gpu.

You need to set "nomodeset" parameter at boot , as described here:
    Edit    /etc/default/grub :
sudo nano /etc/default/grub

Add "nomodeset" to line  GRUB_CMDLINE_LINUX_DEFAULT . This line becomes  :
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
Save by hitting Ctrl+O, then exit nano with Ctrl+X, then  run:
   sudo update-grub
Reboot

(Not related,    but the desktop  had random freeze , so i had to revert to Xubuntu 18.04 . The amdgpu driver is installed but not loaded in 20.04, I guess its the problem  )


Intel Graphics issue after upgrade to Ubuntu 20.04.1

I had basically the same problem, though the artefacts looked a little different. It seems to be caused by having old Intel graphics drivers installed, and removing those fixed the problem for me and a number of other users:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1867668
Summary:

Remove the drivers: sudo apt remove xserver-xorg-video-intel

Remove the corresponding X conf file, if it exists: it seems to be located either at /etc/X11/xorg.conf.d/20-intel.conf or /usr/share/X11/xorg.conf.d/20-intel.conf.
So run e.g.
sudo rm /etc/X11/xorg.conf.d/20-intel.conf
(You might want to make a backup first, in case something goes wrong.)

Reboot


How can I buy from Software Center from my Mac computer?

You can buy using another computer
You can use a live disk to boot your mac into Ubuntu
If your really lucky the distributor will have "keys" that work in software center

Your purchase is linked to your account, so really you just need to log in "somewhere" and make the purchase.

I recommend using a Live CD or USB stick to do what you want.

You could also boot using parallels or similar.

https://apps.ubuntu.com/ is as close as I can find to an online store and it doesn't appear to allow purchases.

https://apps.ubuntu.com/cat/tos/ - says you can re-download forever.


Play video files problem, Graphics card issue?

DID U INSTALL:   https://apps.ubuntu.com/cat/applications/gstreamer0.10-ffmpeg/

A VIDEO PLUGIN.SEE IF THIS HELPS


You can add a ppa for eviacam. It uses "head movements".

You can add the ppa and install eviacam using the following commands:

sudo add-apt-repository ppa:cesar-crea-si/eviacam
sudo apt-get update
sudo apt-get install eviacam

Click here for more info.

On 18.04, eviacam is available through the Universe repository, however, it fails with a GTK error.

To work around this issue, manually download the 19.10 version of eviacam and use that instead.

I used gdebi to install and resolve dependencies like in the following example:

sudo apt install gdebi
wget http://mirrors.kernel.org/ubuntu/pool/universe/e/eviacam/eviacam_2.1.3-4.1_amd64.deb
sudo gdebi eviacam_2.1.3-4.1_amd64.deb

On 19.10 and newer, you can install from the Universe repository:

sudo add-apt-repository universe
sudo apt update
sudo apt install eviacam


Why is "Region and Language" missing from the `gnome-control-center`?

tldr; this makes the "Region & Language" tab magically appear:
$ gnome-control-center region

Thereafter, every subsequent invocation of the gnome-control-center pops up with the region tab present and highlighted. I'll update this answer if I can explain what happened.


Finding a process's filename from its PID?

If PID 31340, a simple ps uww 31340 will tell you. ls -l /proc/31340 will show you more information, for example /proc/31340/exe is a symbolic link to the program executable in case the name wasn't enough.

If PID 31340 isn't running anymore, it's too late unless you've installed some kind of logging software.

The simplest logging software for this job is acct . Just install the package and it will start logging the name of all processes. The next time you want to know about some past PID, run

sudo dump-acct /var/log/account/pacct | grep 31340

For a more precise match of the last process that had this PID, you can use this incantation:

sudo dump-acct /var/log/account/pacct | awk -F '|' '$10 ~ /^ *31340 / {print; quit}'


Power Management - Sleep / Wake up Server when accessed

The best instruction I have found on the web was the XBMC wiki for WOL. In short (more info in the link):

You need to enable WOL on your motherboard;
Install ethtool: sudo apt-get install ethtool;
Set Wake-on-LAN options: sudo ethtool -s eth0 wol g;
Get it enabled at system start-up with an init script. There's an init script in the wiki link.

Untested; info from the wiki link


Kubuntu - Dolphin panel - hide "Recently Saved" and "Search For"

Places

Dolphin handbook

Dolphin > Help > Dolphin Handbook (F1)

or

online: https://docs.kde.org/stable5/en/applications/dolphin/index.html

  Places

  A right mouse button click opens the context menu to
  edit, add, hide or remove entries and change the icon size to one of
  the predefined values or lock/unlock the panels.

Right clicking - hiding and unhiding:

Future ?

Bug 300247 - Allow hiding individual groups in new Places Panel: https://bugs.kde.org/show_bug.cgi?id=300247

Under review - Hidding Group from KFilePlacesModel: https://phabricator.kde.org/D8367


What are the implications of the ffmpeg / libav fork for users?

Please read this, interesting analysis of the situation in 2012:
http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html


Error during installation via command line of MaaS Region Controller

The solution has been to install MaaS directly using the ISO and then disable the Cluster Controller from MaaS Ui

also if this is not what I want to realize but it's a useful solution


ubuntu 12.04 - intel hd4600 haswell graphics issue

I managed to get the desired effect (OpenGL/3D supported desktop) by performing these steps:

In terminal run:

sudo apt-get install linux-generic-lts-quantal xserver-xorg-lts-quantal

I then rebooted and went to my updater settings and allowed precise-proposed updates before performing a dist-upgrade and rebooting again.

I can now drag windows around in expo, and I no longer suffer from screen tearing. Also, the ring-switcher from compiz now works.


Add to rc.local, above exit 0

SCHEDULER=$(cat /sys/block/sda/queue/scheduler)

case "$SCHEDULER" in
    *deadline* )
        echo 'deadline' > /sys/block/sda/queue/scheduler
        echo '1' > /sys/block/sda/queue/iosched/fifo_batch
        ;;
    *noop*)
        echo 'noop' > /sys/block/sda/queue/scheduler
        ;;
    *)
        exit 0
esac

Run the script with sudo, or if it is an init script, it will run as root.

See also http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_03.html


Problems after install TP-LINK T2UH AC600 Wireless adapter Driver (Ralink mt7610u)

$ nano ~/mt7610u*/os/linux/rt_linux.c

@@ -1086,8 +1086,8 @@ int RtmpOSFileRead(RTMP_OS_FD osfd, char *pDataPtr, int readLen)
    if (osfd->f_op && osfd->f_op->read) {
        return osfd->f_op->read(osfd, pDataPtr, readLen, &osfd->f_pos);
    } else {
-        DBGPRINT(RT_DEBUG_ERROR, ("no file read method\n"));
-        return -1;
+        DBGPRINT(RT_DEBUG_ERROR, ("no file read method, using vfs_read\n"));
+        return vfs_read(osfd, pDataPtr, readLen, &osfd->f_pos);
    }
}


Download Extension Pack in Extension https://www.virtualbox.org/wiki/Downloads

after open virtualbox > File > Preferences > Extensions and install the file and try.


Okular does not respond anymore, needs Qt_5.15

Remove Snap version by
snap remove okular

and install deb-packaged version instead by
sudo apt-get install okular


Ubuntu 18.04 does not show GUI and freezes on startup

Please try other distro like xubuntu,kubuntu as gdm gives problem sometimes.I think it's distro's problem not hardware's.Try other distro.


Zip all files in a directory individually and password protect them.

You have two options with zip:

  -e
  --encrypt
          Encrypt  the  contents of the zip archive using a password which
          is entered on the terminal in response to a  prompt  (this  will
          not  be  echoed;  if  standard error is not a tty, zip will exit
          with an error).  The password prompt is  repeated  to  save  the
          user from typing errors.
  -P password
  --password password
          Use password to encrypt  zipfile  entries  (if  any).   THIS  IS
          INSECURE!   Many  multi-user  operating systems provide ways for
          any user to see the current command line of any other user; even
          on  stand-alone  systems there is always the threat of over-the-
          shoulder peeking.  Storing the plaintext password as part  of  a
          command  line  in  an  automated script is even worse.  Whenever
          possible, use  the  non-echoing,  interactive  prompt  to  enter
          passwords.   (And  where security is truly important, use strong
          encryption such as Pretty Good Privacy instead of the relatively
          weak standard encryption provided by zipfile utilities.)

So if you really wish to script this, you'll need to use -P, since -e forces the manual entry of passwords. Do so only if you are the only user in your environment, or if /proc was mounted with appropriate permissions (even then root will be able to see the password).
This command should do the trick:

cd <path_to_directory>
find . -type f -printf "../%f.zip\0%f\0" | xargs -0n 2 zip -P pass

This will create zip files of each file, with the same name as that file (i.e., blah.doc will create blah.doc.zip) in the parent directory, each protected by the password pass.


How can I get slowmoVideo installed on Ubuntu 14.04?

As you can see in https://launchpad.net/~brousselle/+archive/ubuntu/slowmovideo, there is no slowmovideo package for Ubuntu 14.04 (Trusty). However, you get slowmovideo using the PPA at https://launchpad.net/~ichthyo/+archive/ubuntu/video instead by doing the following:

sudo add-apt-repository ppa:ichthyo/video
sudo apt-get update
sudo apt-get install slowmovideo


Internal Hard Drive Mounting As Read Only?

It seems to me that it is an issue with Windows, that Windows is sometimes leaving the drive in a state, that is not good. I suspect that Windows is hibernating or using fast startup which is a kind of semi-hibernating, when you shut it down. But when you reboot Windows, it is not doing any of that, and the file systems are clean.

I suggest that you check if this is the problem, and if it is, do not use hibernation, and/or turn off fast startup in Windows. You can find several links to tutorials how to turn it off, for example this one:

www.tenforums.com/tutorials/4189-fast-startup-turn-off-windows-10-a.html


How can I set up two virtual machines to connect via openssh?

If you are using VirtualBox (you didn't specify), in the Network settings, select Host-only Adapter for both virtual machines.  They will be able to "see" each other.  (You will not be able to access outside the two machines, however).


The only way you can uninstall a program that uses a .run installer is if it provides an uninstaller. As mentioned by Terrance you can try uninstall script by xampp


wget not working failed: No route to host

ping accepts hostname only. From URL - Wikipedia:

A typical URL could have the form http://www.example.com/index.html, which indicates a protocol (http), a hostname (www.example.com), and a file name (index.html).

Also, from Syntax - Hostname - Wikipedia:

Hostnames are composed of a sequence of labels concatenated with dots. For example, "en.wikipedia.org" is a hostname. Each label must be from 1 to 63 characters long. The entire hostname, including the delimiting dots, has a maximum of 253 ASCII characters.

Clearly, https://dl.winehq.org/wine-builds/winehq.key is URL while google.com is hostname. That's why, in your case ping worked perfectly with latter one.

Further Reading:

ping(8) - Linux man page
Difference between pinging with and without http://
Can you get a reply from a HTTPS site using the Ping command?
Is pinging a website essentially the same as visiting the website through a browser?


No sound through headphone jack (Dual boot setup)

Updated with Official Ubuntu Docs on Wifi Powersave: https://core.docs.ubuntu.com/en/stacks/network/network-manager/docs/reference/snap-configuration/wifi-powersave


Edit your ~/.profile or ~/.bash_profile to include the line:

[[ -f ~/.bashrc ]] && . ~/.bashrc


I dont know which laptop do you have, but enable discrete graphic in BIOS settings works for me (Legion5 Ryzen 4800H + RTX2060). Unfortunately it drains battery a lot, ald can change brightness for now (kernel 5.10.10) Wish external monitor works on dedicated amdgpu card


How do I make my 305 GB drive my default drive?

If the 305 GB free space is right after the 10 GB partition, you can extend the latter to cover the former. If it isn't, one easy way would be to just move the /home directory to a new partition inside the free space, leaving the system in the 10 GB partition (which is not quite a lot, but could suffice). Of course, you can bring out /tmp too.

You can use fdisk, gnome-disks or gparted (easiest) to modify the partitions and reconfigure /etc/fstab without manually editing it.


Type "sudo rfkill list all" in terminal. If it shows that you have soft/hard blocked LAN

and wifi, you can

correct it by executing "sudo rfkill unblock all".


How can I delete files based on (flac) metadata?

For the sake of completeness, it's worth too mention that it's also very easy to open a directory and it's subdirectories in Puddletag, sort for your desired criteria, and then mark and delete the files you want. This might be safer and even faster than customizing or writing a completely new script (see: xkcd 1205 - Is It Worth the Time?).

You can use metaflac (manpage) for flac files.

$ metaflac --show-sample-rate --show-bps "somefile.flac"
44100
16

Of course this is not a complete script. You might want to take a look at the Advanced Bash-Scripting Guide.

The following would be a very basic script that deletes all files which return 44100 and 16 to the above command. The directory is given to the script as a parameter (e.g. flac-44100-removal.sh "Music/All music with 44.1kHz/")

#!/bin/bash
IFS=$'\n'

for file in $(find "${1}" -name "*.flac");
do
    if [ "$(metaflac  --show-sample-rate "$file")" = "44100" ]; then
        if [ "$(metaflac  --show-bps "$file")" = "16" ]; then
            rm -i "$file"
        fi
    fi
done

Alternatives to metaflac are: vorbiscomment for ogg, AtomicParsley for mp4/m4a, mid3v2 for mp3 or mediainfo for everything, but they all have different outputs, with mediainfo being overly customizable.


Cannot connect to some sites on Ubuntu 18.04

I had the same issue, my answer is not really an answer, as I have only 3 points so I can not comment.
I had done 2 steps:

Install to version 20.04 to see if it solved the issue, but now
I follow the link on youtube at here. Added 8.8.8.8 and 8.8.4.4, but comment later, I consider it is not useful step (But list here for enough information)
Go to Wired setting, set IPv4: Automatic, DHCP, and IPv6: Automatic, DHCP. After restart 1 time, I can go to askubuntu.com and other sites normally.
I hope this helps.


Unable to boot after 17.10 installation - "no bootable device" on Toshiba L50-B-243

So eventually I found that answer, following the instructions here:

https://www.linux.com/learn/how-rescue-non-booting-grub-2-Linux

I have been able to log into my Ubuntu 17.10 OS on my hard drive. Unfortunately, so far I've found no way to make these changes permanent, so I have to follow this procedure every time I want to boot into my computer, but at least it's better than the alternative of have no computer at all.

I strongly advise anyone in a similar situation to follow the above instructions and to NEVER, ever by a Toshiba laptop.


Acestream Failed to Start on ubuntu 16.04 LTS 1

can't tell what caused the problem in the first place, but you should reinstall pkg_resources:
sudo apt-get install --reinstall python-pkg-resources


What is the release id while adding references to source list?

When adding external repositories to our sources we need to submit the exact Ubuntu release version to make sure that the packages are built to run on our system. For our convenience we can use the Ubuntu Code Names there. These would e.g. be

lucid for Ubuntu 10.04 LTS "Lucid Lynx"
natty for Ubuntu 11.04 LTS "Natty Narwhal"
oneiric for Ubuntu 11.10 "Oneiric Ocelot"
precise  for Ubuntu 12.04 LTS "Precise Pangolin"

Unfortunately at present TinyOS only offer builds for Ubuntu up to version 11.04. Later Ubuntu versions are not (yet) supported.


Can I use banshee from the command line?

According to man banshee, it is possible to control playback. I'm not sure about searching though.

Here are a few of the controls that you mentioned. Check the man page for many more.

--next
    Play the next track, optionally restarting if the 'restart' value is set

--previous
    Play the previous track, optionally restarting if the 'restart value is set

--stop
    Completely stop playback

--play
    Start playback


It looks like you only gave 4GB to the Ubuntu root partition /dev/sdb3 and the installation probably failed because the space was not enough.

You should reinstall Ubuntu. In the partitioning step, select Something else. I personally would make the root partition in the unallocated space between /dev/sdb1 and /dev/sdb2. I recommend using LVM, so you can resize the partition later. If you really need about 16GB swap, you should consider joining the current /dev/sdb3 and /dev/sdb4 into a single swap partition. Otherwise, make a smaller swap partition after /dev/sdb2. The remaining space can be added to the root partition if it’s made using LVM (now or later).

Further reading

Ubuntu Swap FAQ


I was able to install one Xerox Workcentre 7120 on Ubuntu 16.04 without any downloads from Xerox. Xerox’s PPD does not support XSA User Based Accounting. I need it to print to a shared printer, where each user has is own code.

These instructions works for users with XSA or not, since XSA can be disabled in the printer’s options.

I’ve downloaded the PPD from: https://bitbucket.org/josebagar/xerox_workcentre_7120/raw/0e6c0d7788f3aa11f8bcc58ab224a259dbf0e8f2/printer.ppd

I’ve changed XXXXYOURPASSWORDHEREXXXX to my personal code and stored the ppd on /etc/cups/ppd/ folder.

To configure the printer, I added a new printer, let it discover network printers, and selected the Xerox Workcentre 7120. The URI used was: socket://192.168.0.20:9100 (my printer has the IP 192.168.0.20).

I’ve choosed a custom PPD and selected the one just saved in /etc/cups/ppd/.

The printer works perfect! The XSA accounting appears as an option.


I believe that this is a known problem with Intel.  I can't find the source now, but am sure that I read that there is an issue with the processors waking due to small movements.  Seems odd to me, but the problem occurs with Windows laptops as well, so I suspect is not an Ubuntu / Linux issue.


What's an alternative I could use instead of mp4v2/mpeg4ip?

This is an old question, but 12.04 is due to be released soon. Looks as if these packages are in the precise repos (but not oneric).

At this late date, I would suggest you go with 12.04, it is a LTS and sue out shortly enough.


Cannot lock mongochef to launcher on ubuntu 17.04 server

I have the same problem and I fix it as blew:

(1) enter the directory [~/.local/share/applications]

(2) delete the  *robot3.desktop

(3) open the robot3 and lock it to the launcher again.


USB HD enclosure "sleeps", file system errors ensue, can't remount, device disappears. Help interpreting these logs?

First of all, sorry for the slow response.

Consider using cron and touch to wake your disk. This will awaken the disk every minute.

Run, in a terminal, crontab -e

Now, pick nano if it prompts for an editor.

Add to the end of the file, on a new line:

*/1 * * * * touch /media/usbdisk/touch.txt

Press Ctrl+O(That's the letter O) then Ctrl+X. If the syntax was correct, the command should succeed. Please replace /media/usbdisk/ with the HDD's mountpoint.


Package system broken / unable to install updates due to incorrect (?) disk full message

I found a workable solution in reply to someone having the same problem in another thread;
 Of the two answers, the first worked for me (I'm not really sure what to do with the second answer to be honest !


Ubuntu GNOME 17.04 - Graphics problems on kernel 4.10.0-37-generic

I had the same problem with a Asus UX360UA i7-6500U (Intel® HD Graphics 520), ubuntu (with unity) boot on low graphic with the 4.10.0-37-generic and the intel-graphics-update-tool makes no updates.

My solution was simple, switch back to the 4.10.0-35-generic and wait for the next kernel....


Installing Ubuntu on btrfs over multiple drives

Install Ubuntu on one SSD
Add the other SSD (or a partition of it) via btrfs device add
Do btrfs balance start -mconvert=raid1 -dconvert=single. This is done to regulate RAID.
(Note that it is recommended to keep metadata in RAID1, which currently means "two copies on different devices")

For more information:

Using btrfs with multiple devices
Balance filters


Ubuntu not installing newest version of apps?

This question has basically been asked before. You can find answer here: How Do Software Updates Work?

Ubuntu Stable Release Updates


Is there an alarm-clock / timer for Ubuntu 13.10?

Timer applet is what I reccomend. It does have a limit of 48 hours the exact program name is Timer-applet Another one is Alarm-clock alarm clock is less limited and it is the best choice. Also there is a widget here (http://www.toggl.com/public/widgets) This is a similar post to another.


Pidgin should be rock solid with GTalk - I've been using it on my Ubuntu 12.04 for about a year now, so I suspect either your system (how did you build/install Pidgin, do you have any unusual plug-ins enabled?), or a networking issue (do you have firewalls or proxies in place that would affect internet access?).

However, Google are also in the process of migrating GTalk accounts to Hangouts, so there might be some issues around that. Some stories report that they're dropping xmpp support entirely, but that would appear to be false - they're dropping xmpp "server" support, so clients will continue to work, but you won't be able to federate your own Jabber servers to Hangouts like you could in the past.


I am looking for monitor and mouse calibration i/e changing the x / y positioning of them

Try resizing your monitor in your personal settings.  If that doesn't work, just mess with your display settings.  You could also try connecting your laptop to different sized monitors while changing the resolution.  I had a similar problem, but my screen wasn't shifted.


Wifi adapter not found in ubuntu 18.04; no drivers for device rtl8822ce

Finally, I found a solution! (thanks to the answer in this page).

It turns out the driver that should support my hardware (rtw88) was available and compatible with this hardware already in kernel > 5.2 (I had 5.3.0-46-generic), but it is not set to recognize my hardware.
To fix the problem I had to compile linux kernel with a small modification in the source code (step 2 in the solution below).
Here's what I've done:

1) Get the linux source code of your choice. In my case I used the mainline kernel:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

2) locate the file: ./linux/drivers/net/wireless/realtek/rtw88/pci.c, and edit it.
    Look for the string '0xC822', and replace it with '0xC82F'

3) Continue with compilation of the kernel according to instructions. For completeness of my answer, here is what I did:

cd to the ./linux folder.
Use configurations from current kernel:
    cp /boot/config-$(uname -r) .config
make menuconfig.
    Here there are a lot of options to configure. Best thing to do is to just leave them as they are (save and exit).
Compiling and installing:

i) make or make -j8 (to use 8 threads in parallel instead of just one).
    This will take a while to complete...

ii) sudo make modules_install.

iii) sudo make install
Enable the kernel for boot:

i) sudo update-initramfs -c -k 5.7.0-rc1+.
    Of course, use the kernel version installed (in my case 5.7.0-rc1+).
    If not sure of the kernel version: "ls /lib/modules/" and see what kernel modules are installed.

ii) sudo update-grub

That's it. Reboot and be sure to boot into the new kernel. The wifi should now work.


Software Updater on 16.04 not showing Ubuntu 18.04 update

From this Ubuntu Wiki we have the notice:

  Upgrading from Ubuntu 16.04 LTS or 17.10

  Upgrades from 17.10 will not be enabled until a few days after 18.04's release. Upgrades from 16.04 LTS will not be enabled until a few days after the 18.04.1 release expected in late July.


Have you considered doing this in a virtual machine? It is a very good way to get familiar with Linux until you are ready to do something like a dual boot. It also eliminates the need for you to reboot your machine to get to the other OS.

Some options you have to do this:

VMware Player download

Virtualbox download

These are both free, and they allow you to install an entire OS inside a virtual machine.

If you look at the screenshot I have attached, you can see on the right half of the screen that I am running VMware Workstation, and I have several VMs installed. I have Windows 8 installed in a VM and it is active. The arrows point to some of the VMs that I have installed on this machine.

I am doing what I am suggesting to you, but in the opposite direction. I am working on a Linux OS for the host, and running Windows (and several other OSes) as a guest.

If you have any questions on how to get this working, let me know.

One thing to note - I've listed the free solutions. The "Workstation" version of VMware that I use, that has a paid license, but you can use it in trial mode for some period of time.


ClamAV: PUA.Win.Exploit.CVE_2012_0110 FOUND (/usr/share/mime/mime.cache)

This is probably just a false positive. /usr/share/mime/mime.cache is a generated file of all known mime types on your system. It's not an executable.

Virus scanners detect malicious software by sets of known fingerprints (hashes). This model leads to some false positives, inevitably. Perhaps it's a coincedence a known Windows virus matches the fingerprint as found on a Linux system, perhaps it's because the fingerprint just matches a certain MIME type pattern that will match inevitably on any Linux system...

For now, I wouldn't worry about it, but just contact the ClamAV team to ask whether this is a known issue with them already.

Also make sure to stay updated with the most recent ClamAV fingerprints (freshclam).


The commands executed by cron don't have a terminal connection, so they cannot interactively ask for user responses. If the desired remote server asks for a password with anonymous login you will have to use another mechanism to authenticate the program steamcmd.sh, like configuring it to use some Steam AppID as depicted in How to install and use SteamCMD.


Strange problem: black screen when selecting live ubuntu or install ubuntu

Solved,
i tried pressing F6 on Grub boot menu and selected nomodeset in it work but
after installing Ubuntu and reboot the screen resolution are low 640x480 and the monitor is unknown!!
now trying something else


According to this article, They are files from a rather dangerous Trojan virus and rootkit.

The Trojan, called XOR.DDoS installs itself onto compatible Linux systems and hides its files so the user doesn't know it's there. It uses your computer to run DDoS attacks.

However, it relies on you having not changed any default logins on your devices, which means if you have a password you're probably OK. I would delete those files and maybe look into removing rootkits just in case, however.

The Avast blog has a more detailed article on it: https://blog.avast.com/2015/01/06/linux-ddos-trojan-hiding-itself-with-an-embedded-rootkit/


Generating list of manually installed packages and querying individual packages

You can use either of these two one-liners. Both yield the exact same output on my machine and are more precise than all solutions proposed up until now (July 6, 2014) in this question.

Using apt-mark:

comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)

Using aptitude:

comm -23 <(aptitude search '~i !~M' -F '%p' | sed "s/ *$//" | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)

Very few packages still fall through the cracks, although I suspect these are actually installed by the user, either right after the installation through the language localization setup or e.g. through the Totem codec installer. Also, the linux-header versions also seem to accumulate, even though I've only installed the non version-specific metapackage. Examples:

libreoffice-help-en-gb
openoffice.org-hyphenation
gstreamer0.10-fluendo-mp3
linux-headers-3.13.0-29

How does it work:

Get the list of manually installed packages. For aptitude, the additional sed strips out remaining whitespace at the end of the line.
Get the list of packages installed right after a fresh install.
Compare the files, only output the lines in file 1 that are not present in file 2.

Other possibilities don't work as well:

Using the ubuntu-14.04-desktop-amd64.manifest file (here for Ubuntu 14.04) instead of /var/log/installer/initial-status.gz. More packages are shown as manually installed even though they are not.
Using apt-mark showauto instead of /var/log/installer/initial-status.gz. apt-mark for example doesn't include the xserver-xorg package, while the other file does.

I used various other StackExchange posts as references, however none work as well as the above solution:

aptitude + manifest
initial-status.gz + apt-mark showauto

Both list more packages than the above solution.

EDIT: What to do if you've upgraded from a previous release:

If you've upgraded Ubuntu from one release to the next, you will probably need to adjust this process. In that case, I would check the manifest file of the newer release (see above) in addition to the initial-status.gz file from the current release. You can easily do that by just adding another comparison. Using just the manifest file will not work, as the manifest file unfortunately does not contain everything that the initial_status.gz file does (I checked).


The Reddit Lens has been updated for Ubuntu 11.10 and may be installed as follows:

In a terminal, type the following commands:

 sudo add-apt-repository ppa:markjtully/ppa
 sudo apt-get update
 sudo apt-get install unity-reddit-lens

Then log out and log back in to activate the lens.


Google Play Music way too fast, accelerated

Having the same issue using the latest Chromium on Ubuntu 13.04
Changing back to Flash from HTML5 solved the issue for me.

Super obnoxious though and I would love to use HTML5 instead.


To change your login shell back to Bash, run:

chsh -s /bin/bash $USER

Then log out and log back in.


I know this is old but just found that you can do it through powershell

list distributions:

wsl --list

will output something like

Windows Subsystem for Linux Distributions:
Ubuntu (Default)
docker-desktop-data
docker-desktop

terminate Ubuntu

wsl --terminate Ubuntu

or terminate all

wsl --shutdown

hope this helps!


How to get work Konica Minolta bizhub 423 printer working?

I am using 12.04 on a Windows network and this is what worked for me:

Download the bizhub 423 Linux drivers from here.
Add new printer and select the Konica Minolta 423 (it should appear as a network printer).
Ubuntu will search for drivers, but eventually will ask you to provide a PPD. Navigate to the downloaded driver file and install:

423_Series_Linux_v10000.0000/CUPS1.2/English/KO423UX.ppd
Ignore the installable options (paper source unit, etc) and click OK - you can come back to them later if needs be.
At this point I still had no communication with the printer so I changed the device URI (under Printer Properties) to lpd://192.168.1.3/print. You may need to replace 192.168.1.3 with whatever your printer's IP address is, but once I got this right it was printing.


files list file for package 'libvo-aacenc0:amd64' is missing final newline

Try with:

sudo rm /var/lib/dpkg/info/libvo-aacenc0*
sudo apt-get install libvo-aacenc0 --reinstall


Trouble installing php 7 on Ubuntu 14.04

The error output you have pasted says it all - you are missing mbstring and dom extensions.  Those can be installed using:

sudo apt-get install php7.0-dom php7.0-mbstring

The packages with PHP extensions have correct Provides: field, so right packages will be chosen.


Nvidia driver for Dell Inspiron 14r 5420

Open a terminal (Ctrl+Alt+T).

install the Long term supported NVIDIA driver version from Ubuntu repositories:

sudo apt-get update
sudo apt-get install nvidia-346 nvidia-prime

or choose the Latest NVIDIA driver version from Proprietary GPU drivers PPA:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime

Refer to this guide for more information.

Additionally you can install prime-indicator
which will quickly let you switch between your Intel graphics and your GeForce 630M card :

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install prime-indicator

Prime-indicator and screenshot credit to Webupd8.


Automated/Scheduled & Incremental Acronis TrueImage-like Functionality for Ubuntu

After having a go at installing Acronis Backup 12 for Linux, I gave up in frustration (after spending a lot of time with their tech support in India).

I ended up settling on a combination of a manual clone using Clonezilla Live CD (which I'll to periodically perform manually), and an automated (daily) rsync backup of the entire disk (with cron).

While this is not as good as my old method in Windows (automated TrueImage of the entire disk), I think it's good enough for now. I know I can do an automated dd with cron, but many people warn against doing a dd backup on the system while it's running.


Grub don't find windows 7 loader. Can't boot to windows after installing linux Help

first mount your windows partition in Ubuntu.

then run this in terminal:

sudo update-grub

now restart.


On Ubuntu 20.04 - how to install WhatsApp Web?

The app you require is Whatsdesk downloadable from the Ubuntu Software Center and has good reviews.


Boot gparted live-disk or ubuntu live disk(if it was ubuntu live disk then install gparted partition editor).
Delete the Lubuntu partition through gparted.
After that ran boot-repair to repair your grub.


Ubuntu 20.04 wifi randomly disconnecting

I have solved this similar problem on Ubuntu 20.10, Gnome 3.38.1, by going to Settings > Power > Power Saving > Automatic Suspend > Off.


How to write an argument for an existing command

Use a shell function that wraps the tr command:

tr () {
  if [[ $1 == "-r" ]]; then
    shift
    set -- '[A-Za-z]' '[N-ZA-Mn-za-m]' "$@"
  fi
  command tr "$@"
}

Check that "regular" tr works:

$ echo "Hello World!" | tr 'aeiou' 'AEIOU'
HEllO WOrld!

And now, use the rot13 option

$ echo "Hello World!" | tr 'aeiou' 'AEIOU' | tr -r
URyyB JBeyq!
$ echo "Hello World!" | tr 'aeiou' 'AEIOU' | tr -r | tr -r
HEllO WOrld!


Need Help on recover encrypted home directory after failed release update

I din't get the command discribed above to work.
But i found another way here: https://ubuntuforums.org/showthread.php?t=1597246&s=42da6f910fcad4beb3e9c95d8ffc4058&p=10374453#post10374453

i was able to mount but now i'm stuck that when i go to /mnt/

and do an ls it shows files and folders but ther are only ?? on all atributes
d?????????  ? ?        ?           ?            ? .adobe

I'll write a second question for this.


How to install driver for "canon i-sensys mf 3010"?

Canon i-SENSYS MF3010
File version
2.70
Release date
16 July 2015
Operating system(s)
Linux (32-bit)
Linux (64-bit)
UFRII/UFRII LT Printer Driver for Linux v2.70
resoure : https://www.canon-europe.com/support/

Download and install. also you can use this app :
https://apps.ubuntu.com/cat/applications/system-config-printer-gnome/


Delete temp files options for clearing the log files

To cleanup the cache through terminal,you can use the following command

sudo apt-get autoclean - This command would cleanup the partial package so that there would be enough space left

sudo apt-get clean - This command  would Clean up of the apt cache


gnome-session-flashback.target is a disabled or a static unit

I managed to fix it by:

sudo apt-get purge gnome-session-fallback
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install --reinstall gnome-session-flashback
sudo apt-get install --reinstall ubuntu-desktop

Note: the penultimate command will fail again, but ignore this. I suspect that only the last command is really needed, but this is what I did as a sequence exactly.

I followed this post:
How to fully remove all packages installed by 'gnome-session-fallback'?

Regards,
L. B.


The following may help:

Create a copy of the Firefox profile you wish to revive (the following may kill it)
Download Firefox ESR and extract its binaries somewhere (it currently, as of January 2018) still supports XPCOM/XUL/JetPack based extensions)
Open the extracted directory in a terminal and type ./firefox -P "${PATH_TO_THE_COPY_OF_THE_PROFILE}" -no-remote (substituting the appropriate path) to launch Firefox ESR with the old profile

This will DOWNGRADE the profile and can, and has been observed in some cases to, cause severe problems and loss of data! (Use a copy… really!)

Open Firefox preferences and set When Firefox is launched to Restore tabs and windows of last session
Uninstall the tab management add-on (possibly following some add-on specific guide to tranfering the tabs to Firefox's internal session manager)
Close Firefox ESR
Open the ESR again using the command above

If the tabs appear again you're good, otherwise you're probably out of luck…

Close all instances of Firefox (ESR or not)
Go to the copy of the profile directory that you used to launch Firefox ESR and copy the sessionstore.js file to your new (post-Quantum) main profile (replacing the one that should already be there)
Launch your main Firefox instance again – hopefully your session should be back!
(Optional) Install a new/compatible session management extension – if you just need crash recovery you'll find that the Firefox internal session manager is extremely reliable at this point (at least for me it hasn't lost any tabs in years)

A few ifs and buts, but hopefully this is useful regardless!


Why is Ubuntu not recognizing Windows 10 on my machine?

Each of many times I tried to reinstall Ubuntu, I was never offered the option to install Ubuntu alongside Windows because no other operating system was detected. Windows Boot Manager has a UEFI tag on it which is my primary drive to boot from C:. What do I need to do to make Ubuntu recognize my Windows OS so I don't have to go into my BIOS menu and boot manually? Do I need to do something to my Windows system to make it visible to the Ubuntu system?

After a clean reinstall, I got it working. I did in fact install Ubuntu in BIOS mode initially. I found a link suggesting to disable Compatibility Support Module (CSM) when converting Ubuntu from BIOS to UEFI. This may not be relevant in my case since I was reinstalling, but I figured I'd disable it and give it a try.

I performed a clean installation. The first time I installed Ubuntu, I selected to boot from the first DVD drive that appeared on the boot list. This must have been the BIOS version. I overlooked the UEFI bootable DVD drive upon scrolling down further on the list of drives. I booted from the DVD drive that was labeled UEFI this time.

I selected to install alongside Windows successfully, and I can now select which operating system to use at startup.

This seems strange but I went back into BIOS after confirming both Windows and Ubuntu worked and noticed that CSM was enabled. Everything works so I left it like that. Here are screenshots of CSM being enabled in my BIOS for successful booting of both operating systems.