Update/Upgrade to address CVE-2014-0224 does not change build date

The build date is significant, but even though the date is before the report date, it seems that the CVEs have been fixed.

According to the openssl Precise source package page, the changelog entry lists four CVEs being fixed, but note that the changelog date is June 2, the same as the build date. Ubuntu Security first builds packages in their PPA and then copies them over, which is why it says June 5 on other places of their page.

NOTE: Due to a regression in the patch for CVE2014-0224, a new version of openssl has been released for all Ubuntu releases. The latest version of openssl for Precise is now 1.0.1-4ubuntu5.15 (the above link links to that source package). The version initially mentioned in the question is here.


Install driver rtl8814au on ubuntu 20.04

I followed this at github on my Ubuntu 20.04 and it worked perfectly.
https://github.com/morrownr/8814au

8814au ( 8814au.ko )
Linux Driver for USB WiFi Adapters that are based on the RTL8814AU Chipset

Installation
Need to install some packages:
sudo apt install dkms git

Now make a directory to build the driver and enter it:
mkdir src
cd src

Download the driver and then enter the 8814au directory:
git clone https://github.com/morrownr/8814au.git
cd 8814au

Run the installation script
sudo ./install-driver.sh

And reboot.


ASUS "FTE1000:00 0B05:0101" touchpad scroll option not working

You have a new AzurWave i2c touchpad that is used in new Asus laptops. Current Linux kernels do not fully support this device.

You can install a driver for this touchpad this way.

Disable SecureBoot in BIOS and run in a terminal:

sudo apt install git dkms
git clone https://github.com/vlasenko/hid-asus-dkms.git
cd hid-asus-dkms
./dkms-add.sh

Then reboot.

This is a new driver for the device. It has been accepted by kernel maintainers and it should appear upsream in the 4.10 Linux kernel.


Ethernet is always down after reinstalling python3

This answer to unmanaged ethernet connections fixed my problem, this was likely unrelated to the python uninstallation.


Scan part of Brother DCP L2550DN (and possibly other Brother scan) not working on Ubuntu 20.04

Brother released a "patch" deb specific for Ubuntu 20.04 (and derivatives) that solves the problem (possibly related to this bug):
https://support.brother.com/g/b/faqend.aspx?c=eu_ot&lang=en&prod=hll6300dw_eu&ftype3=100257&faqid=faq00100729_000
Note: While personally tested on DCP L2550DN, this solution should also apply to other Brother multifunction printer/scanners, like e.g. HL-L6300DW(T)


Can't boot ubuntu 13.10 after install Fedora 20 on a x86_64 EFI machine

Recently I was faced with this problem after updating the grub configuration file in Fedora.

To deal with it I had to edit the /boot/efi/EFI/fedora/grub.cfg file as follows:

replace all linux with linuxefi
replace all initrd with initrdefi

You can also press e while on the grub menu entry to edit it, and do the previous steps.


Assigning ownership of an external USB drive

Solved Well, sort of. The solution for this particular HDD was to open Disks, and reformat the drive for Fat32. Now I can at least copy to the drive.
Thanks for the help. I wonder what the problem is?
I have found that Deja Dup won't work with this drive now. It insists that 'Storage location not available'. And it's 'Waiting for '1.0TB Volume' to become connected'. So I'm just doing straight copies of my Home dir.


PT/PST was not taken on 20.04 as valid timezone

Try sudo timedatectl set-timezone US/Pacific

The pst-utils package has nothing to do with timezones. It's about working with Microsoft Outlook PST files. You can safely uninstall it.


now unable to get IP address from DHCP on modem - what changed?

Your problem is with the MTU setting for your DSL connection.

For DSL, a common MTU setting is 1492. Just go ahead and try this value first and see if your web sites are now accessible.

To determine the correct setting, start with all MTU settings = 1500 and VPN = off. (VPN requires different testing).

In terminal:

ping [-c count] [-M do] [-s packet_size] [host]

The options used are:

c count: number of times to ping
M hint: Select Path MTU Discovery strategy.  may be either do (prohibit fragmentation, even local one), want (do PMTU discovery, fragment locally when packet size is large), or dont (do not set DF flag).
s packet_size: Specifies the number of data bytes to be sent.

You should always start at 1472 and work your way down by 10 each time. Once you get a reply, go up by 1 until you get a fragmented packet. Take that value (last good value) and add 28 to the value to account for the various TCP/IP headers. Eg. let's say that 1452 was the proper packet size (where you first got an ICMP reply to your ping). The actual MTU size would be 1480, which is the optimum for the network we're working with.

ping -c 4 -M do -s 1472 8.8.8.8 # this will probably show fragmentation

ping -c 4 -M do -s 1462 8.8.8.8 # may show fragmentation

ping -c 4 -M do -s 1452 8.8.8.8 # no fragmentation?

ping -c 4 -M do -s 1453 8.8.8.8 # still no fragmentation?

reference: How to determine the proper MTU size with ICMP pings


The matrix is of 2015, are there any improvements there (i.e. is LXD available yet on CentOS) ?

You can find in https://copr.fedorainfracloud.org/coprs/ganto/lxd/ a COPR repo  with LXD for Fedora 25/26. You will disable SELinux for work.

Now for CentOS 7, you can research https://gist.github.com/AdamIsrael/e6b4a540233a7be6d28decd917b60c3d to check LXD and Juju for CentOS 7. can be a little hackish way, but some people get working this.

  How can I use juju without LXD (so pure LXC's, that is, when LXD is not available yet) ?

You can deploy with Juju in Amazon Web Services, Google Compute Engine, and Microsoft Azure. I imagine that you refer to LXC instead of LXD for local deployment for tests. The old Juju 1.25 version will support this (https://jujucharms.com/docs/1.25/config-LXC) but for Juju 2.x versions, the local deployment is supported only with LXD.


Getting purple screen after logging in, after updates

I updated .profile file to add 1600*900 resolution, but somehow that was causing issue after login
Removed those lines & now able to login
sudo xrandr --newmode "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
sudo xrandr --addmode eDP-1 "1600x900_60.00"


Go to the parent directory in Files/Nautilus Ubuntu 12.10

From this answer : Nautilus stopped working after update to 3.6.1

  Both Ubuntu versions 12.04 and 12.10 use the nautilus 3.4.2. Therefore
  this (nautilus 3.6.1) can be considered as an "unsupported" version.

  Some PPAs updates-upgrades essential system packages and this can
  result in a very frustrating experience.

  To solve your problem open a terminal and remove the ppa with bellow
  commands

sudo apt-get install ppa-purge
sudo ppa-purge ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get dist-upgrade


Updated: Ignore finger resting on touchpad - Lenovo Yoga 700

Due to poor touchpad support for Ubuntu, I have decided to use this solution:

Add to /etc/modprobe.d/psmouse.conf:

options psmouse proto=exps


You can try this

sudo apt-get purge python3-uno libreoffice*

And then reinstall, but you'll have to reinstall any package that depends on python3-uno


Based on the documentation that Sasuke linked to, you can set the PrimaryBattChargeCfg value back to standard with something like this:
$ sudo ./cctk --PrimaryBattChargeCfg=Standard

If you would rather use Dell's adaptive algorithm, which I believe is the default, then you would do something like this:
$ sudo ./cctk --PrimaryBattChargeCfg=Adaptive

From what I can tell, this should also be possible from the BIOS itself


Help with Crash in Dual-Booting Windows 10 and Ubuntu

Using intel_pstate instead of acpi-cpufreq to manage cpu frequency seems to prevent kernel panics on the Inspiron 3551 due to a regression in step_wise.c in the default Ubuntu kernel. This is a guide on how to switch to the intel_pstate driver. You have to do this from the Live-CD Instructions on how to use Ubuntu Live CD

Install cpupower:

sudo apt-get install linux-tools-common linux-tools-generic && sudo apt-get upgrade

Edit /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=enable"

sudo update-grub

Reboot and check if the intel_pstate driver is enabled:

cpupower frequency-info

*intel_pstate has two frequency governors: performance and powersave, but not ondemand. Switch between the two with:

sudo cpupower frequency-set -g powersave

sudo cpupower frequency-set -g performance

More information is available for reading here.


Where do I file bugs for the Ubuntu One music client for Android?

You're best to file bugs against our client; yes, it's based on the Subsonic Android client, but there are a number of changes. The Ubuntu One client is in Launchpad at https://launchpad.net/ubuntuone-android-music.


How to publish my joomla site on local server to the web?

If there is no port number, it should be using the implied :80 port. Try port forwarding port 80.


Ubuntu 14.04: Error with "apt-get update": W: Ignoring Provides line with DepCompareOp

According to bug report #1662227 that's because the PPA for LibreOffice doesn't provide translation files for languages aside from English.

You can either

safely ignore this warning message as a mostly cosmetic issue or
remove/disable the LibreOffice PPA and use the packages from Canonical's repositories instead.


Install Gnome Tweaks if you haven't already

sudo apt install gnome-tweaks

Open Tweaks > Top Bar and turn off Activities Overview Hot Corner.


Audacious -Streaming - Song Info - Show pop-up Information unticked doesn't work

The culprit was Desktop Notifications and turning it off solved my problem. Thanks to John Lindgren on Audacious for pointing me to right direction.
Solution screenshot link.


How to remove redundant encryption layers in Kubuntu 20.10?

As mentioned in the comments, only the 1st password is related to encryption.
The solution is to authenticated Kwallet.
Once Kwallet is configured in System Settings, the KDE Daemon password WILL save on that second login screen.


Ubuntu 20.04.1 Desktop for Raspberry Raspberry Pi 400

2 GHz single core processor. 2 GiB RAM (system memory) 10 GB of hard drive space.May 14, 2020. That is the min requirements for 20.04. Also 20.04 is an LTS that is the only 20.04 DESKTOP version.


Just tell us first, what exactly did you try in order to resize your launcher, other than Ubuntu Tweak that is...
You could try going into settings...personal....appearance and doing it from there!  or perhaps you already tried that, and just haven't mentioned doing so?


Can no longer boot into Ubuntu after re-installing Windows 10

Fixed it!

The issue was in /etc/fstab, it was trying to mount my Windows partition and it was failing for some reason.

Commenting the windows partition out fixed it for me.


How to script a reinstall (apt repo's and installed packages)

Use this to save a list of your currently installed packages

dpkg --get-selections > my_apps.txt

After you've reinstalled, this selects all of your packages

dpkg --set-selections < my_apps.txt


Stopping the Unity global menu from hijacking the menubar from my app

The cheapest possibility is already in your answer:

Your application owns its environment block. Do a call to setenv in your main() before you initialize gtk.

man setenv tells the whole story.
Also if there is the faintest possibility that you launch applications that should use the appmenu, unsetenv would come in handy.


Why doesn't the Software Center resume downloading packages when it is interrupted?

This seems to be a problem limited to the Software Center - command-line package managers support resuming interrupted downloads.

To install Skype via the command-line, open a terminal and type:

  sudo apt-get install skype

Note: this assumes you have enabled the Canonical Partner Repository from within the Software Center.

Now if anything happens to your connection and it somehow gets interrupted - just rerun that command and it will continue downloading from where it left off.


Disabling auto capture/release on vmware with open-vm-tools-desktop

this bug report suggests its being moved to open-vm-tools package from the open-vm-tools-desktop , it also shows some attempts to do what you are asking.
https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1551558

have you tried open-vm-tools ?


How to user interact during boot using upstart?

Its a bit tricky, but you can use plymouth to converse with the user while the system is coming up. This will only work if your job blocks the startup, because once runlevel 2 is reached and plymouth is terminated, you won't be able to interact anymore.

Basically you want to execute 'plymouth ask-question' or 'plymouth watch-keystroke' and the user will be prompted. So if you want to wait 10 seconds for the user, you'd have an upstart job like this (this is quite theoretical and untested!):

start on starting rc RUNLEVEL=[2345]
task
script
  myscript=`mktemp /tmp/killme.sh.XXXXXX`
  chmod 0750 /tmp/killme.sh
  cat > $myscript <<EOF
#!/bin/sh
# script is sent key pressed
cat > /tmp/keypresses.txt
kill -USR1 $$
EOF
  key=""
  handle_usr1() {
    key=`cat /tmp/keypresses.txt`
    plymouth display-message --text="you pressed $key"
    exit 0
  }
  trap handle_usr1 USR1
  plymouth watch-keystroke --command=$myscript --keys="ABCD"
  timeleft=10
  while [ $timeleft -gt 0 ] ; do
    plymouth display-message --text="you have $timeleft seconds to press A,B,C, or D..."
    timeleft=(($timeleft-1))
  done
  plymouth display-message --text="Timed out..."
end script


Ways to authorize an app only once to run as root

https://stackoverflow.com/questions/6905697/how-to-run-script-as-another-user-without-password   look at the visudo answer
[edit the sudoers file with sudo visudo]

and make it run as root just that file without asking.
https://help.ubuntu.com/community/Sudoers


What is the sandbox user '_apt' on my system

The user _apt is created by the postinst script of the apt package (/var/lib/dpkg/info/apt.postinst):

 # add unprivileged user for the apt methods
 adduser --force-badname --system --home /nonexistent  \
     --no-create-home --quiet _apt || true

It's the owner of /var/cache/apt/archives/partial and /var/lib/apt/lists/partial and used by APT to download packages, package list, and other things.


From man interfaces:

IFACE OPTIONS
   The following "command" options are  available  for  every  family  and
   method.   Each of these options can be given multiple times in a single
   stanza, in which case the commands are executed in the order  in  which
   they  appear  in  the stanza.  (You can ensure a command never fails by
   suffixing them with "|| true".)

   pre-up command
          Run command before bringing the interface up.  If  this  command
          fails then ifup aborts, refraining from marking the interface as
          configured, prints an error message, and exits  with  status  0.
          This behavior may change in the future.

   up command

   post-up command
          Run  command  after  bringing the interface up.  If this command
          fails then ifup aborts, refraining from marking the interface as
          configured  (even  though it has really been configured), prints
          an error message, and exits with status 0.   This  behavior  may
          change in the future.

...
There  exists  for  each  of  the  above  mentioned options a directory
/etc/network/if-<option>.d/ the scripts in which are run (with no argu‐
ments)  using  run-parts(8) after the option itself has been processed.
Please note that as post-up and pre-down are aliases, no files  in  the
corresponding  directories  are  processed.  Please use if-up.d and if-
down.d directories instead.

So, the up at the beginning is used to indicate that the command is to be run after the interface is up.


How can I make gnome-terminal not transparent?

The workaround for this is to set it to transparent and pull the bar to maximum.

That should fix your issue. :)

Like so.


Lubuntu 12.04: Cannot transfer files from the laptop to the Nexus 7

I was facing the same problem a while a go. The solution I found was not to use the USB cable at all. Although you can eventually get the MTP configuration to sort of work, it remains buggy.

In the end I chose to transfer files over my local WIFI. Assuming you have both your laptop and your tablet connected to the same wireless network, all you need to do really is to share one or more folders on your laptop (right click, sharing options). Once that is done you need a file manager tool on your Nexus. I use the free version of File Manager HD (from Google Play). In this you select "Network" from the top row of options and enter the connection details. To avoid issues with server paths, using the IP adress of your laptop. Don't forget to enter username and password, it is saved in the connection info so you only have to do it once. Important to realize is that each shared folder requires a separate entry.

Hope this works for you


Which files have SUID bit in bin/ folder

lrwxrwxrwx 1 root root       6 Mar 10 15:57 bzcmp -> bzdiff
lrwxrwxrwx 1 root root       6 Mar 10 15:57 bzegrep -> bzgrep
lrwxrwxrwx 1 root root       6 Mar 10 15:57 bzfgrep -> bzgrep
lrwxrwxrwx 1 root root       6 Mar 10 15:57 bzless -> bzmore
-rwsr-xr-x 1 root root   26252 Mar  2 16:33 fusermount
lrwxrwxrwx 1 root root       8 Mar 10 15:57 lessfile -> lesspipe
-rwsr-xr-x 1 root root   88760 Mar 30 06:49 mount
lrwxrwxrwx 1 root root      20 Mar 10 15:57 mt -> /etc/alternatives/mt
lrwxrwxrwx 1 root root      20 Mar 10 15:57 nc -> /etc/alternatives/nc
-rwxr-xr-x 1 root root   26152 Jul  1  2011 nc.openbsd
lrwxrwxrwx 1 root root      24 Mar 10 15:57 netcat -> /etc/alternatives/netcat
lrwxrwxrwx 1 root root       6 Mar 31 23:03 open -> openvt
lrwxrwxrwx 1 root root      14 Apr 14 11:26 pidof -> /sbin/killall5
-rwsr-xr-x 1 root root   34740 Nov  8 14:27 ping
-rwsr-xr-x 1 root root   39116 Nov  8 14:27 ping6
-rwxr-xr-x 1 root root   34420 Apr 13 17:35 plymouth
lrwxrwxrwx 1 root root       4 Apr  3 17:58 rbash -> bash
lrwxrwxrwx 1 root root       4 Mar 10 15:57 rnano -> nano
lrwxrwxrwx 1 root root       4 Mar 29 19:40 sh -> dash
lrwxrwxrwx 1 root root       4 Mar 10 15:57 sh.distrib -> dash
lrwxrwxrwx 1 root root       7 Apr 13 21:45 static-sh -> busybox
-rwsr-xr-x 1 root root   31116 Apr  9 04:40 su
-rwsr-xr-x 1 root root   67720 Mar 30 06:49 umo

I also included links.


Ubuntu 16.04 stucks in login page after editing .profile

You can access the .profile file in Recovery Mode.

Hold Shift during a reboot, select Recovery Mode from the menu, drop to a root shell prompt, then edit the .profile file and reboot the system.

If you don't remember your changes to .profile, you can copy the system default profile from /etc/skel/.profile into your home directory.


Yes, you can. You should simply revert the permission changes you have made.

As you can imagine, no one can know what you did, apart from you ;)
If you'll be more specific on what you did maybe you'll get a better answer with specific commands.


How I can properly update VirtualBox to the latest version?

When you do a system update with the update manager, the Virtualbox update should appear.

You can also get the same effect by doing it via the terminal:

sudo apt-get update

sudo apt-get upgrade

This should get you the latest version of Virtualbox. This however, will not get you the updated Virtualbox Extension Pack. The pack will only update when you open Virtualbox. You will immediately get a notification that there is an update for virtualbox or there is an update for the Extension Pack. Note that the extension pack is needed if you want proper support for sharing between host and guest, 3D support, USB support and much more.

Now, in the case you have some update problems with Virtualbox, the easiest solution I have found is to download the latest version from the original site. You can find the latest Virtualbox version for Ubuntu in: https://www.virtualbox.org/wiki/Linux_Downloads

It should show the versions of Ubuntu like in the following image:

You can also find the latest Extension Pack in: https://www.virtualbox.org/wiki/Downloads

After you download the newest Virtualbox version, simply double click on it and the Ubuntu Software Center will take care of everything else. I should mention that you can only install the Extension Pack to the same version of Virtualbox. So if you have Virtualbox 4.2.10, you can only install the 4.2.10 of the Extension Pack.

After this, Virtualbox should notify you when there is a new update, either by doing an update of the system with the Update Manager or by opening Virtualbox when there is an update available.


The drivers likely dont support it. I had the same trouble with a macbook on ubuntu
, so i installed the nvidia drivers. Which worked until a system upgrade completely wrecjed everything and was firced to boot into grub to uninstall them


How do I format my bootable USB Flashdrive?

I would use the command line as I find the Disks/Disk Creator/Whatever other GUI's gnome uses to manage partitions and disks to be clunky and broken at times, and it is much easier on the command line.

open up a terminal and type the following

## before plugging in usb
$ sudo fdisk -l
## note what is displayed probably something like /dev/sda /dev/sdb etc...
## plug in usb
$ sudo fdisk -l # Whichever one isn't there is probably the usb mine is usually
## labeled /dev/sdc
$ sudo mkfs.vfat /dev/whateverYouDeterminedWasYourUsb
$ sudo dd if=/home/user/Downloads/UbuntuImage.img of=/dev/whateverYouDeterminedWasYourUsb

And now you should have a bootable Ubuntu usb stick :)


There is and it's called Asterisk.

It's a PBX.  If it's your first time using and configuring asterisk, I would HIGHLY recommend using Trixbox instead of Ubuntu until you get used to it (it can be a pain to set up).  Once you're comfortable, then go back and get a juju script built for it or something ;)

It is available in software center as well, just for the record.  I've never had much luck with asterisk not from source though.


I have a setup similar to yours (Dual boot SSD, storage HDD, but no backup HDD).  In order to migrate your partitions to the SSD it would be ideal to simply clone the drive using CloneZilla as detailed in this post.  This should enable you to also keep the existing data on your current HDD until you're sure the migration went well.  I would also probably clone the drive onto the 2nd HDD first for redundancy.

Once you have the SSD booting correctly, you'll want to format the storage disk as NTFS.  This is the windows native filesystem and modern linux can handle read/write with no trouble at all.  I tend to keep a partition on the storage drive formatted as ext4 just in case the NTFS partition gets corrupted, but that isn't strictly necessary.

Redirecting Music/Pictures/Documents/Downloads is easy.  Once your storage drives are properly configured, you setup Ubuntu to mount those partitions at boot.  Then you can remove the default directory structure in your /home directory and replace everything with a symbolic link to the storage device.

In order to get the storage device mounted at boot, you might want to have a mountpoint in /media off the root filesystem, which you could make with:

$ sudo mkdir -p /media/storage

You'll need to know the UUID of your storage partition which you can obtain using the 'blkid' command.  For me, the output looks like this:

hawk@orthanc ~ » sudo blkid
/dev/sda1: LABEL="System Reserved" UUID="6A9EC15B9EC12085" TYPE="ntfs"
/dev/sda3: UUID="e346b4e2-8898-4fb7-af41-f7186d0b9e2a" TYPE="ext4"
/dev/sda4: UUID="cddb292c-5eee-43f1-ae02-3d878a45dea7" TYPE="swap"
/dev/sdb1: LABEL="storage" UUID="ec0728db-2eee-41d1-9256-88f04169452c" TYPE="ntfs"

Next you need to add the proper line to /etc/fstab in order to mount on boot. For me, it would be this:

$ echo "UUID=ec0728db-2eee-41d1-9256-88f04169452c /media/storage ntfs rw,nosuid,nodev,noatime,allow_other 0 0

Then you can manually mount the storage partition and comfortably redirect all your important directories:

$ sudo mount -t ntfs /dev/sdb1 /media/storage
$ rm -rf ~/{Desktop,Documents,Downloads,Music,Pictures,Videos}
$ mkdir -p /media/storage/{Desktop,Documents,Downloads,Music,Pictures,Videos}
$ for folder in Desktop Documents Downloads Music Pictures Videos; do ln -s /media/storage/${folder} /home/<username>/${folder}

This will create symbolic links pointing from /home//Desktop to /media/storage/Desktop, etc.

Now, if you want to pull your files back in as though nothing ever happened, you may want to consider a different backup option than what I described before.  I use deja-dup (Ubuntu's built in backup tool) to backup my home directory, and it has some decent restoration options.  I'm not entirely sure what the best tool is for windows, but you may want to go the old route of compressing and just transferring over to the 2nd HDD before you shrink/wipe the first one.

At the end of the day, only you know whether your windows user folders can be successfully merged with your 'nix ones.

Now, you still need to setup the 2 HDD's to be redundant.  If you were only using 'nix, I'd say you could do software raid 0/1 for mirroring or striping.  You can still do this, but I have no idea how Windows 7 handles software raid.  The alternative is that you can just use the additional HDD to practice good backup hygiene on a regular basis (which can be tricky and requires diligence and good tools).

I did a bit of research, however, and I did find some suggestion that you could make a software raid array play nice across both disks (this post is useful, you'd just install both OS's on the same SSD).

My opinion is that your chances of success at getting software raid to play nice across Windows/Ubuntu are pretty slim, and raid isn't really a good backup strategy anyway.  You should install Windows with a sizable chunk of the SSD, then you can put /boot, /, /home and swap on the SSD for Ubuntu (since you don't really plan on doing the bulk of your storage in /home, this shouldn't be a problem).

For backups, I would probably then plan to do those with linux since you can access all of your filesystems that way, and I would have a dedicated backup partition on the 2nd HDD (for more on how to pick a filesystem, see this discussion).

In all, there are really a billion ways to do this, and with 'nix you can always move stuff around without much danger.  Really, just make sure you give windows enough room and you should be fine.

Hope this helps


Meizu MX4 Ubuntu edition not mounting as USB drive and not available to adb

Screen must be unlocked, I did not experience USB port issues. For me, this was the critical step:

The file ~/.android/adb_usb.ini on your computer is a list of valid vendorIDs that are allowed to connect. I found that list empty (or non existent, don't remember). Just add a new line with the vendorID for the MX4, you found it already:

0x2a45

I also had to do this for Aquaris E4.5, then the ID is 0x2a47.

Good luck!


ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

Try this:

sudo apt-get install libglib2.0-0

Then, run your command again.  If that doesn't do the trick, try this:

sudo apt-get install libglib2.0-0:i386

I'm on a 64-bit computer, but the tool I'm using uses 32-bit.


Can I decrypt a partition in Ubuntu which is encrypted using BitLocker (utility of Windows 7)?

This question contains a discussion of accessing bitlocker encrypted volumes in Linux. In summary, experimental tools exist, but it is unconfirmed if they work or not. It does not appear that there is an easy way of doing this.


How to take input from user until a specific character appears

You could use read with $ as a delimiter. read will stop reading from the standard input as soon as it encounters the delimiter. For this, you don't really need a loop.
#!/bin/bash

read -d $ -p 'input characters: '
[[ $? = 0 ]] && \
printf 'Jackpot! You typed: %s\n' $

On the other hand, if you want to check characters before printed to the screen, then you can use the parameter -N to instruct read to interrupt after reading one character, where you can break before anything printed.
#!/bin/bash

echo -n 'input characters: '
while read -N 1 -s -r; do
    [[ $REPLY = $ ]] && \
    { printf '\njackpot! you typed: %s\n' $; break; } || printf %s "$REPLY"
done


As you can read from service man page:

  service --status-all runs all init scripts, in alphabetical order, with the status command.  The status is [ + ] for running services, [ - ]
         for stopped services and [ ? ] for services without a 'status' command.  This option only calls status for sysvinit jobs; upstart  jobs  can
         be queried in a similar manner with initctl list.

So, answering your question, YES, it is stopped.

To get the status of any daemon with the following:

start-stop-daemon -T --name gpsd

or if you know gpsd's PID:

start-stop-daemon -T --pid 0123

To kill/stop it, run any (note that the -K is a capital letter):

start-stop-daemon -K --name gpsd
start-stop-daemon -K --pid 4567

Sources:

start-stop-daemon man pages for 14.04

service man pages for 14.04


Just CTRL+ALT+T and

sudo apt-get dist-upgrade


How to find if SMBv1 is disabled in my ubuntu 14.4?

It depends if she's running Samba in Server mode or not.

And in most setups, Samba is not actually set up to run in Server mode.  Though Samba may exist on the computer, it's probably configured more for client mode on Desktops.  Samba is also not normally set up in server mode unless you actually try and configure it as a server.

If she is not running Samba in Server Mode...

... then she really doesn't have to worry about anything, unless she mounts Samba shares on her computer.  And if she does, then when she mounts CIFS / Samba shares on her computer via the command line, she can specify the minimum version as a mount option (vers=2.0 or a higher version like 2.1 or 3.0).

However, enforcing SMBv2+ for mounts is dependent on the server - not all servers (especially older Windows servers) support SMBv2 or higher.

Standard CIFS / Samba mounts done by the GUI, you can't force specific protocols, those're usually hard-coded somewhere and impossible to edit.

If she is running Samba in Server Mode...

...then she needs to force minimum version SMBv2, like so (thanks to cyberciti.biz FAQs):

# Edit Samba Server configuration
sudo vi /etc/samba/smb.conf

# Add this line under the [global] section in the above file, and save it
min protocol = SMB2

# Close the text editor, and restart the Samba server.
sudo systemctl restart smbd.service

That will force SMB2 as the minimum protocol supported.

That said, if she runs Samba in server mode, she really should also be running a firewall and filtering access to Samba ports locally on the system so that only trusted hosts can reach her.

Regardless of whether she's running in Server mode or not...

... she should run a firewall like ufw to filter traffic coming into her computer - this way, nobody can really reach her computer on a SMB-speaking port without being added to the allowed list, and only trusted systems should be allowed to reach the system on such ports.


Overlapping layout on Android Studio in buttons and text views

Maybe it is a Relative Layout problem. These posts on Stack Overflow might help.

Buttons in Android are overlapping
Relative layout scrollview
How can I prevent views from overlapping in relative layout


I have this problem with one of my laptops every time I do a clean install. The Realtek network adapter doesn't get along well with Linux.

This is the method I use to fix it

In the terminal type the following commands:

sudo apt-get install linux-headers-generic build-essential git
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install
sudo modprobe rtl8723be

That always gets me working right on the one machine I have with a Realtek adapter.


WiFi is enabled but I get "Device is not ready" with rtl8723de

Your HP needs the very latest drivers for rtl8723de.

First, try booting to a Ubuntu 18.04.1 DVD/USB, and see if the wireless works. If it does, then you'll need to upgrade your OS. If it doesn't work, then see the following links for a driver that should work... with a little effort...

https://github.com/lwfinger/rtlwifi_new

If you are looking for the driver for rtl8822be or rtl8723de, then execute the following command:

git checkout origin/extended -b extended

Installation instruction

You can find <> using lspci | grep Wireless. Afterwards, execute the following lines of codes in your shell:

You will need to install "make", "gcc", "kernel headers", "kernel build essentials", and "git".

If you are running Ubuntu, then

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

Please note the first paragraph above.

For all distros:
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
sudo make install
sudo modprobe -r <<YOUR WIRELESS DRIVER CODE>>
sudo modprobe <<YOUR WIRELESS DRIVER CODE>>

#### Option configuration
If it turns out that your system needs one of the configuration options, then do the following:

vim /etc/modprobe.d/<<YOUR WIRELESS DRIVER CODE>>.conf

There, enter the line below:
`options <<YOUR WIRELESS DRIVER CODE>> <<driver_option_name>>=<value>`

https://ubuntuforums.org/showthread.php?t=2367405&page=11

sudo apt-get install git build-essential dkms linux-headers-$(uname -r)
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6
sudo cp /usr/src/rtlwifi-new-0.6/firmware/rtlwifi/* /lib/firmware/rtlwifi/

And searching for rtl8723de, here on AU, will find a few more posts of interest, like such...

Realtek Semiconductor RTL8723DE Device d723 issue


ubuntu 15.04 not detecting my external hard disk

Why would you install a version of Ubuntu which is no longer being supported? I'd suggest installing the recently released 15.10 Version right away.


Can't boot Windows 10 after Installing Ubuntu 18.04 Multiple Drives Messed UP!

So Yeah I had resolved this few days ago just wanted to post and update how I resolved it.
Narrow down the problem.
Step1: I removed the old HDD from the laptop now only SSD was available.
Step2: I made the /dev/sda2 as NTFS and marked a boot flag on it. After that, I tried multiple times recommended boot repair by ubuntu but that didn't help and it completely wipe out windows from GRUB Menu.
Step3: After exhausting all attempts resolving it from ubuntu I move with Windows boot repair with Windows 10 Live disk. I tried multiple time recommended repair which as per windows resolve most of the cases but what it did it wipe out ubuntu boot as well.
Step4: So then I moved to command prompt based repair.I put these commands in command prompt.First I tried first two separately that didn't worked but last one did the magic and after applying that Windows detected a windows operating system. After that I just run recommended repair and Windows 10 was bootable.
bootrec /FixMbr bootrec /FixBoot bootrec /RebuildBc

Step5: Next comes getting back ubuntu so it was simple. I just booted live ubuntu disk and installed ubuntu boot-repair. And just ran Recommended repair and it worked and resolved everything.
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

After that, I inserted HDD back to the laptop and wipe out the old boot partition.

As you can see windows was intelligent enough to use that partition I marked for a boot which is of 499MB and it installed boot there.


Mega sync client freezes hangs turns off after sleep suspend

kill the megasync process

killall megasync

Remove your old configurations and

rm -rf /home/john/.local/share/data/Mega\ Limited/

And start MEGA application again.


18.04 eGPU setup working, but login loop when eGPU disconnected

Thanks @WinEunuuchs2Unix, I ended up reinstalling Bionic Beaver along with the nvidia drivers BUT I never used the nvidia-settings, so no /etc/X11/xorg.conf was ever written. So far so good, I dont have to set any prime-select values to switch from mobile to stationary mode, and didnt have to blacklist nouveau either. So working situation is: 1- no /etc/X11/xorg.conf file 2- the only xorg conf is found under /usr/share/X11/xorg.conf.d/ For anyone with the same problem, I would advise against using nvidia-settings and only use the default Bionic Beaver display settings (not Displays).


Use same swap on two ubuntus with home encryption

Copy the cryptswap1 line from the /etc/crypttab file in the system where the swap works to the same file in the the system where the swap doesn't work (copy the file if it doesn't exist yet).

Then copy the swap line from the /etc/fstab file in the system where the swap works to the same file in the the system where the swap doesn't work.


It worked!!! Not like suggested in the thread you mentioned but like in www.tomshardware.co.uk/forum/44040-43-wireless-function-working-toshiba-satellite

  So, first disconnect your laptop from power, remove the battery, and
  press the power up button while holding it down for atleast 30
  seconds. i know it sounds weird, but that's what i thought at first,
  and it worked. Ofcourse while holding down the power button, nothing
  will come on as there is no power source. after you're done, put the
  battery back on and connect the laptop to power, then switch on the
  laptop, your wifi should be working.

Thanks for the tip.


Nautilus not showing mounted drives in side bar

You need to bookmark them and will likely want to rename the bookmark. This GIF illustrates the technique:

Pick a partition from your "Other Locations" list.
Click the upper right "hamburger"  (☰) menu.
From the dropdown menu click the center menu button to bookmark it.
Move to the new sidebar entry and rename it from the mount name ("c" in my example) to something more meaningful ("Windows 10 SSD" in my example).


copy paste not working in virtualbox from Ubuntu [host] to Ubuntu [guest]

Open up the VirtualBox Manager, select your guest machine, and go to Settings. In General, there should be a tab called "Advanced". Make sure "Shared Clipboard" is set to "Bidirectional".


Snapd service not running / problem installing snap packages on Ubuntu 16.04

Just restart the service.

$ systemctl start snapd.service


Lost Windows while installing Ubuntu 14.04

sudo update-grub

the above will do the trick mostly. If not working then do the manually thing by editing Grub menu

gksudo gedit /boot/grub/menu.lst

This entry automatically added by the Debian installer for a non-linux OS

on /dev/sdb1

title Windows 7
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

edit /etc/fstab so windows partitions are accesible in linux:

sudo apt-get install ntfs-config

sudo ntfs-config

add mount points in /media for windows partitions

hope this helps


Gnome-Terminal - How do I reset keyboard shortcuts?

Short answer
This setting is stored in the dconf database.
The command to restore the default keyboard shortcut to paste in the terminal is:
dconf reset /org/gnome/terminal/legacy/keybindings/paste

or to set it to a specific value:
dconf write /org/gnome/terminal/legacy/keybindings/paste "'<Primary><Shift>v'"

Unfortunately, there is no gsettings key for it, so you need to write to dconf directly.

The question is however
...why it didn't stick when setting the key from the GUI. In case of errors, you will find out in the output of the command(s) above.


Cracked Sound In Ubuntu But Smooth Sound In Windows!

Open sudo nano /etc/modprobe.d/alsa-base.conf and add options snd-hda-intel model=MODEL to it, changing MODEL to the model name such as acer.

kernel.org - HD Audio Models

HdaIntelSoundHowto

It would also be helpful to know what computer you are using.


How can I access the configuration window for Easystroke Gesture Recognition?

You have a few options:

Open it from the Dash again

If you open Easystroke Gesture Recognition while it's already running, it will show the configuration window instead of starting a duplicate instance.

Define a gesture

Once you've gotten the configuration window open, you can create an action for easy access in the future. Set the type to Misc, and the details to Show/Hide.

Use the command line

The following command will cause Easystroke to immediately open the configuration window:

easystroke --show-gui

Enable the tray icon

Easystroke uses an old, unsupported method for displaying its notification icon. As a workaround until Easystroke fixed, you can grant it an exception by adding easystroke to the system tray white list.


How can I get Icon only "Grouped Modern Window list" on Xubuntu, that I can "pin" in panel too?

Right-click on a blank space in the panel
Open Panel > Panel Preferences
Click on the Items tab
Click on Window Buttons and then on the cog-wheel/gear icon
Make your choices there; the change to Window grouping will be visible in the panel immediately
Close the Window Buttons window and the Panel window

As the image shows, there are three Firefox windows which are listed when you left-click on the Firefox icon. You can right-click on each item for more options. Alternatively, you can right-click on the Firefox icon to see the list as well as available options.


How will my laptop performe in 12.04 LTS

It will perform fine on Ubuntu 12.04, most likely. You might want to install the proprietary graphics drivers to get the best performance out of it but even with the free ones it should work fine for day to day use.


What are all steps to setup juju charm relationship

If you want to use the jdk installed via another charm you will need to create a subordinate charm (https://jujucharms.com/docs/2.0/authors-subordinate-services).
A subordinate charm operates in the same instance (container) as the charm he is subordinate for.

The metadata.yaml would look somewhat like this:

name:
summary:
maintainer:
description:
tags: [misc]
subordinate: true
requires:
  interface-name:
    interface: interface-name
series: ['trusty']

The following interfaces can be used for Java JDK and Hadoop:

https://github.com/juju-solutions/interface-java
https://github.com/juju-solutions/interface-hadoop-plugin

Small example:
Assuming you want the jdk from another charm I'll use the kafka charm as an example and use the jdk it installs.

metadata.yaml

name: layer-jdk-example
summary: <Fill in summary here>
maintainer: maintainer
description: |
  <Multi-line description here>
tags:
  - misc
subordinate: true
requires:
  kafka:
    interface: kafka
    scope: container
series: ['trusty']

layer.yaml

includes: ['layer:basic', 'interface:kafka']

reactive/layer-jdk-example.py

import os
from charms.reactive import when, when_not, set_state

@when_not('layer-jdk-example.installed')
def install_layer_jdk_example():
    os.getenv("JAVA_HOME")
    # locate / download java file and compile
    # do stuff ...
    set_state('layer-jdk-example.installed')

Build, deploy and add a relation to kafka. Hope this helps.


Why does xrandr ignore other resolutions on a 4k monitor and only list 3840x2160 available?

I wasn't able to fix the xrandr issue, but I found out .config/monitors.xml that was altering my Mate settings. Removed it, and I'm back to 3 screens controlled by nvidia-settings.


Where are thunderbird messages saved while offline?

This should be located in your Drafts folder - if it is not there then it probably was not saved.

Go > Folder > Local Folders > Drafts


Create a virtual machine, boot it up, and apply your install there. They, if it is OK, install it in your physical machine; if not, delete the VM. virtual machine inside ubuntu may be useful to you.

In Linux, the sandbox IS a VM.


Install and run Zoom Client inside a sandbox

Zoom is available as a Snap: snap install zoom-client

Snaps are confined to their own filesystem using squashfs loop mounts and AppArmor rules. However, Zoom needs routine access to quite a lot of your hardware (USB ports, audio, screen, camera, network) in order to be useful. Also, the application needs to be detectable by others on the system (so e-mail invitation links work). So complete sandboxing seems a challenge.

Some problems with Zoom (like the ability to bruteforce an access code) are outside the OS' control.


Generally that does work yes. I have done it 30. 40 times now. Only thing to do is to remove 3rd party drivers if those are different. So nvidia driver if graphics card is another brand and the NIC driver if another model.


sshfs with fstab: connection reset by peer

The problem you are experiencing is that your normal user has a correct setup for your identity file, while the root user has no idea what ssh key to use.

You can fix this by telling fstab what identity file/ssh key to use while trying to connect:

sshfs#user@host:/mnt/whatever/ /mnt/whatever/        fuse    user,_netdev,reconnect,uid=1000,gid=1000,IdentityFile=/home/USER/.ssh/KEYFILE,idmap=user,allow_other  0   2


The solution is here (thanks to Paul Wall).

First try to do 2 cold reboot in Ubuntu (cold reboot means that do need to shutdown and power up and not reboot!).
If you still have no sound, try

sudo modprobe snd-soc-rt286

and then select the sound card in Systems Settings/Sound (for me, that worked).

If you want to have the module automatically load at start up, do

sudo nano /etc/modules

add this to the file

snd-soc-rt286

save and close it. Restart and your sound should be working without the need of sudo modprobe snd-soc-rt286.
You will still need, however, to do a cold reboot after using Windows.


Can't remove environmental variable in Ubuntu 18.04

$JAVA_HOME will already have a definition on many systems without explicitly declaring it in /etc/environment:

$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle

That said, the unset command will eliminate a variable. From: Unix / Linux - Using Shell Variables

  Unsetting Variables

  Unsetting or deleting a variable directs the shell to remove the
  variable from the list of variables that it tracks. Once you unset a
  variable, you cannot access the stored value in the variable.

  Following is the syntax to unset a defined variable using the unset
  command −

unset variable_name

  The above command unsets the value of a defined variable. Here is a
  simple example that demonstrates how the command works −

#!/bin/sh

NAME="Zara Ali"
unset NAME
echo $NAME

In our case we can use:

$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
───────────────────────────────────────────────────────────────────────────────────────────
$ unset JAVA_HOME
───────────────────────────────────────────────────────────────────────────────────────────
$ echo $JAVA_HOME

───────────────────────────────────────────────────────────────────────────────────────────
$


Does Canonical collect data about how I use Ubuntu?

Yes and no.  If you're browsing the internet, you can be tracked on anything since you're requesting data from external servers, which keep track of that data and when and who from it was requested.

If you're talking about spyware, there are very few spywares out there for Ubuntu, but they're out there.  Linux is "Security through Obscurity"


How to share files between Windows7(Guest) and Ubuntu 12.04(Host)?

mount the windows partition -> users folder then there should be your folder and guest folder and anything else.


Try installing this Gnome Extension: https://extensions.gnome.org/extension/355/status-area-horizontal-spacing/


Has anyone independently vetted Speed 47's shell script (spectre-meltdown-checker.sh) that checks for Meltdown and Spectre patches?

The script is actually checking the mitigations in kernel for all three vulnerabilities. By now the LTS systems and Ubuntu 17.10 have available mitigations for Meltdown vulnerability.

There is a C program to determine one of the Spectre vulnerabilities. You can check if your processor is vulnerable with:

wget https://gist.githubusercontent.com/ErikAugust/724d4a969fb2c6ae1bbd7b2a9e3d4bb6/raw/41bf9bd0e7577fe3d7b822bbae1fec2e818dcdd6/spectre.c

gcc spectre.c -o spectre -std=c99 -w -O0

./spectre

If you can see lines with:

Reading at malicious_x = 0xffffffffffdfebb8... Success: 0x54=’T’ score=7

Then your processor is vulnerable to Spectre branch prediction.

I have personally tested Intel Atom 1st gen, Core 2 Duo E8400, Core 2 Duo 4300 not to be vulnerable and Core i5 3230M, AMD Turion TL-56 to be vulnerable based on running this program.


I managed to fix the issue, for anyone running into the same problem as me:
I updated my bios to the latest version and now everything seems to be running smoothly (I can shut down properly now, without having to force shut down). This is with a Z390 GAMING X motherboard.


Installed Ubuntu 14.04 with interesting boot options and now it's black screen instead of GUI

You don't have to waste your time installing it from source. Those drivers are available (as most software is) directly from the Ubuntu repositories precompiled and optimized for your version of Ubuntu.

You can log into a text session at any time by pressing CTRL + ALT + F2 or you can use  F1, F3, F4 whatever.

Sign in with your username and password and then, execute the following commands to get started:

sudo apt-get update

Now, you can choose to install it from apt-get with the following command:

sudo apt-get install nvidia nvidia-updates

when you are done with install, reboot.


Set a specific screen resolution with xrandr

I was trying to change the default resolution of LXDE on Ubuntu (LXDE is also used in Lubuntu) and I found a solution for this problem. I also have Lubuntu installed and I've checked that this file actually exists which it does (Ijust tried this fix as well and it worked).

So, the fix....

Open up a terminal, press ctrl+alt+t
I'm guessing you have a default Lubuntu install, so "Leafpad" would be your default editor, type/copy this into the terminal and press enter... (you may be asked for a password)

sudo leafpad /etc/xdg/lxsession/LXDE/autostart

Now add your commands to the bottom of the file adding a @ before the actual command. Mine looked like this after...

@xscreensaver -no-splash
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
@xrandr --auto --output DVI-1 --primary --mode 1680x1050 --left-of DVI-0


The line about @reboot jobs is printed after the system boots. A @reboot job is one that is set to automatically run on every boot. It is not a job that automatically reboots the system.

It looks like the last line that was logged before the system actually rebooted was this one:

Dec 17 09:46:02 phz225 whoopsie[1093]: online

It wasn't until several minutes later that rsyslogd logged the contents of the kernel ring buffer with the information logged during the boot process:

Dec 17 10:24:19 phz225 kernel: imklog 5.8.11, log source = /proc/kmsg started.

It's not obvious to me from the previous lines what may be going wrong with your system, but you should look at other possibilities than an automated reboot. I see no evidence of that.


Extract only the contents of an archived directory from within an archive

Use

 tar -xvzf filename.tar.gz --strip-components=1

--strip-components=1 tells tar to strip the first path component (the drupal-7.15/ in your case) from each file when unpacking.


Unity install removed window borders, and display drivers

Are you selecting the "classic" session from the login screen? The empty-desktop-of-doom was a bug that plagued Unity a few weeks back - so you might also want to make 110% sure you have all the latest updates installed.


How to install the `twitter` python package from PyPI?

You've downloaded the .whl file from PyPI, but you aren't trying to install the 'built' automated installer.  You need to install from the source code.

The source distribution (or, in Python / PyPI terms, the "Source Wheel") is a .tar.gz file, and is actually listed right on the PyPI page.  (direct link for 1.17.1)

Download that .tar.gz to your Downloads folder, and then do this in the terminal, in order:

cd ~/Downloads
tar xvf twitter-1.17.1.tar.gz
cd ~/Downloads/twitter-1.17.1
python setup.py build
sudo python setup.py install

This will build the actual module and install it.

Later, you can import it with import twitter - remember that things are case-sensitive, and the case for this package is twitter not Twitter (these are different things to Python)

However, this module is on PyPI, and you should just be able to install it this way (you'll need the python-pip or python3-pip packages installed via apt, for python 2 and python 3 respectively, for these to work:

# For Python 2:
sudo pip install --upgrade 'twitter>=1.17.1'
# For Python 3:
sudo pip3 install --upgrade 'twitter>=1.17.1'

Follow-up from Chat*

There's a few things going on in your code that you did share, and your screenshot:

You have twitter.py in the same folder as the item doing the import twitter code.  That's going to break things, because it's conflicting names and will import what's likely NOT the twitter module and fail.  (It imports from the local directory first and then tries other library directories).
You have a bad import statement somewhere.  You have import Twitter,... in the traceback from the screenshot you shared, and that's bad form.  It needs to be from twitter import Twitter,... to properly work.

Fix those issues, and it shouldn't error out anymore with import failures.


From simply googling the error, I found this on the BOINC Wiki: GUI RPC bind to port 31416 failed: 98

  This error happens when the user has no permission to use the RPC port number, or forgotten to allow it through the firewall.
  Happens in combination with Gstate.init() failed, error code: -180

  To set BOINC to use a specific port number, one different from the default 31316, do:
  boinc --gui_rpc_port N, example given boinc --gui_rpc_port 37777, this starts the BOINC client with TCP port 37777.

  If you don't want to use any GUI to check on this BOINC from a remote location, you can also start BOINC without any GUI RPC:
  boinc --no_gui_rpc

The page for Gstate.init() failed, error code: -180 also says:

  This is a permission problem under Linux, where the user has forgotten to add an RPC port with which to connect to the graphical user interface, or has no permission to use this port.

This seems to be a networking issue - nothing to do with the GPU.


arrow keys of keyboard doesn't work on ubuntu 20.04

In current Ubuntu versions based on Gnome Shell, there is no keyboard support for moving between icons. Desktop icons are supported through a Gnome Shell extension, that essentially is still in early development, lacking features.
Gnome Shell, the desktop that Ubuntu uses, actually does not support desktop icons at all. While it is a keyboard centric desktop, the keyboard accessibility is not focused on items on the screen - which, in default Gnome Shell, are hardly there. These items, which are revealed on the overview you obtain after clicking "Activities", are mainly designed to be accessed by mouse. Working with the keyboard does not proceed through these visual elements, but through a different workflow.
You cannot really fix the issue. You can file an issue with the extension developpers. If this aspect is crucial in your workflow, then consider using a different desktop environment that supports this (most other desktop environments will do). Otherwise, you could learn to access the items you normally put on your desktop using the keyboard, i.e. through the "Search" function in the overview, and through the powerfull search facilities of Files (most other desktop environments lack this).


Login goes nowhere after upgrade to 13.10

It appears that a number of packages were marked for upgrade but these operations were never applied. After manually upgrading all possible available packages, lightdm still does not work but gdm does, which is an acceptable workaround for me.


Text installer freezes at the language selection panel on Ubuntu 16.04 LTS (UEFI)

I also have the same problem. I solved it by disabling SecureBoot in my BIOS settings. I have ability to disable SecureBoot and keep enabled UEFI. Some guys on other forums use legacy bios.
I use rufus 2.8 and follow settings


After pressing F6 and getting into the installer, I then am able to see the normal GRUB menu to add nomodeset there and fix GRUB.

Source: comment by karel, and nomodeset tag wiki.


The TL-WN781ND is supported by Ubuntu according to  http://www.linux-hardware-guide.com/2012-11-01-tp-link-tl-wn781nd-pcie-150mbps. If you are searching WiFi cards with good Linux supported The Linux-Hardware-Guide (especially http://www.linux-hardware-guide.com/category/network/wireless) should be a good spot to start.


e1000e error -5 and UNCLAIMED network interface after installing ubuntu newly

The NVM for your Intel 82579LM Gigabit Network Connection is corrupt.

The Intel® Ethernet Flash Firmware Utility (BootUtil) is used to update configurations and program the PCI option ROM on the flash memory of supported Intel PCI and PCI-Express-based network adapters.

Please download Intel's utility to fix this, from here, read the included docs, and the docs on the web site, then do this...

cd APPS/BootUtil/Linux_x64
chmod +x ./bootutil64e
sudo ./bootutil64e -NIC 1 -defcfg

Source: https://superuser.com/questions/1197908/network-eth0-missing-the-nvm-checksum-is-not-valid-with-asus-maximus-ix-hero

Source: https://downloadcenter.intel.com/download/29137?v=t

Update #1:

Because of this bootutil error:

ERROR: -DEFCFG not allowed when combo image is present in flash

Try sudo ./bootutil64e -NIC=1 -UP=Combo, or download the Windows updater from here and do it from Windows.

Update #2:

Windows updater downloaded from here.


To find the number of files in a directory that do not contain .x.pdf, try:

find "${Destination}" -mindepth 1 ! -name '*.x.pdf' -printf '1' | wc -c

To find the number of files in a directory that do not contain period - one or more x - period - pdf, try:

find "${Destination}" -mindepth 1 ! -regex '.*\.x+\.pdf' -printf '1' | wc -c

The above search recursively through subdirectories.  If you don't want that, add the option -maxdepth 1.  For example:

find "${Destination}" -mindepth 1 -maxdepth 1 ! -regex '.*\.x+\.pdf' -printf '1' | wc -c

Note that because we use -printf '1', this method is safe even if the directory contains files whose names contain newline characters.


You can use .desktop.

You need to make the shellscript as executable.
put .desktop file in same path.

[Desktop Entry]
Encoding=UTF-8
Name=App Names
Comment=your Comments
Exec=/bin/sh "path of script like /opt/mefile/file"
Icon=/opt/softwares/icon.png
Categories=Application;
Version=1.0
Type=Application
Terminal=0

Make the .destop file executable by +x.
now double click in .desktop file and it will launch your application.


Start a Xenial lxc container on a Trusty machine

You need to install lxc from trusty-backports.

i.e. sudo apt install -t trusty-backports lxc lxc-templates

You'll want to stop your existing hung container (lxc-stop --kill --name jenkins-slave-xenial) and then try starting it again.

See https://github.com/lxc/lxc/issues/685 and https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1590547 for further details.


My NUC computer keeps freezing regularly. The syslog doesn't tell me anything

I have a NUC6iSYH (a very small computer made by Intel). The kernel (64-bit) was not up to date so I updated & dist-upgraded it to the current one, the same as you are running. So far it works for me, but it is only sitting there (idle).

Have you got the same or another model of NUC? Mine has an 6th generation i3 processor.
Does it crash when you run some particular application program? Maybe I can try run to that program.
Did you check what futex is doing? I looked it up:

The futex() system call provides a method for waiting until a certain
       condition becomes true.  It is typically used as a blocking construct
       in the context of shared-memory synchronization.  When using futexes,
       the majority of the synchronization operations are performed in user
       space.  A user-space program employs the futex() system call only
       when it is likely that the program has to block for a longer time
       until the condition becomes true.  Other futex() operations can be
       used to wake any processes or threads waiting for a particular
       condition.

It seems from you output that bluetooth or the network might be involved. I am not using bluetooth, and I am using a wired network connection.

Is there some special peripheral device?
Could there be a problem with your RAM or some other hardware? You can check RAM with memtest, if you boot in BIOS mode.

-o-

Finally, I suggest that you create a bug report at Launchpad. Solving this problem might need kernel programmers, and a bug report is the way to communicate with them.


sudo easy_install pip==20.3.4
pip2 install virtualenv
virtualenv jupyter
source jupyter/bin/activate
pip2 install jupyter
jupyter notebook

This solution was tested on:
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.7 LTS
Release:    16.04
Codename:   xenial

It was run on 32bit Chromenotebook
Firefox and terminal shot


How do I deal with an error message installing Ubuntu from DVD on an old machine?

You don't just copy an ISO file or it's contents to a CD/DVD, as it contains a complete file system, with a boot sector, that's why it's called a CD image.

Note: If your computer is not ancient, it should be able to boot from an USB stick, which is often a better alternative to CD/DVD, as it's faster and more flexible, since you can re-format it later.

Please see this article on creating a bootable USB stick or this article on burning a DVD on Ubuntu.

If you only have Windows at the moment, here is how to burn a DVD and here is the USB stick guide.

Tip: you might want to consider Xubuntu or Lubuntu instead of Ubuntu for your old hardware. They are fully functional, but lightweight compared to Ubuntu in terms of RAM and CPU usage.


How to install multiple php version without apache?

Yes, you can install PHP without Apache. 99% of the time people will be using PHP with either Apache or nginx, which is likely why you cannot find much where it's just PHP alone.
If PHP 8.0 is not available for your specific distribution (as it's currently not part of your question), you can use the ondrej/php PPA:
sudo apt install python-software-properties
sudo add-apt-repository ppa:ondrej/php

From there, install the version(s) of PHP that you would like:
sudo apt install php8.0

Be sure to grab any additional modules that you might need, as these are version specific. For example, if you are connecting to a MySQL database, working with JSON, and doing everything from the command line or shell scripts, then you'll want to do this:
sudo apt install php8.0-cli php8.0-mysql php8.0-json

Once all of the modules are installed, you'll need to use update-alternatives to specify which version of PHP you are calling from the command line:
sudo update-alternatives --set php /usr/bin/php8.0

Confirm this with:
php -v

When you want to go back to 7.2 (or any other version of PHP), call update-alternatives again with the version that you need to use.
Hope this answers your question


MySQL ERROR 13 (HY000) on database creation

Wrong permissions, the server runs as mysql. Correct with:

sudo chown -R mysql:mysql /var/lib/mysql/databasename

example:

% top -u mysql
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
15891 mysql     20   0    4472   1684   1536 S   0,0  0,0   0:00.00 mysqld_safe
16240 mysql     20   0  728684 117020  12068 S   0,0  2,9   0:00.38 mysqld


Facebook url not opening in ubuntu 16.04

Try to connect via the terminal and see if you can post a HTTP GET request:

open Terminal (Ctrl-Alt-T)
open a telnet connection:

telnet facebook.com 80
Type the following, and add a linefeed (press enter):

GET /index.htm HTTP/1.1
host: facebook.com

You should see a response:

HTTP/1.1 301 Moved Permanently
Location: https://facebook.com/index.htm
Vary: Accept-Encoding
Content-Type: text/html
X-FB-Debug: /mV/7oC9NJwnGs7OSY6OfWyxarr+MTUbgB/HLnXRnTBTESg3RBHWN81weo2B8srQarcE+GAJHQZI/t7UIgkYWg==
Date: Mon, 04 Jul 2016 16:56:49 GMT
Connection: keep-alive
Content-Length: 0

If you're getting information from the site, you know it's not the OS, and likely a browser issue.  Make sure you don't have invalid proxies setup for example.


To mass convert .doc and .ppt to .pdf, you can use unoconv.

To install:

sudo apt-get install unoconv

To convert the files you can use the following commands:

unoconv -f pdf filename.doc
unoconv -f pdf filename.ppt
unoconv -f pdf *.doc
unoconv -f pdf *.ppt


How do I install things? Or, what's xcb and qt and how do they solve the riddles of my life?

Qt is a framework for making apps. XCB is a library for playing with X11. (These links probably won't tell you much :P) You should have XCB already installed. Qt may be not installed, but TeamSpeak should either install it or bring his own copy with itself.

When googling, I found few possible solutions, but you would need some Linux knowledge to try them out. I recommend that you start a thread at their forum and ask for help. Either you broke your system (not likely) or TeamSpeak is faulty (likely). If it's their fault, they should fix it.


my Huawei Modem e303c isnt getting detected in Ubuntu 12.04

I am also one of the Modem user. Actually Ubuntu have got smooth way to dealt with Modems. you no need to install Mobile Partner to connect with the internet.
Follow these steps one by one.
Click at your network applet which is at your top panel.

Select Edit Connections

In the window choose Mobile Broadband and select Add .

Then all steps do as I have given there.

After creating the steps successfully you will see a connection at Network applet and selecting that connection will connect your PC to Internet.

Leave the username and password blocks are as empty. all you need to do is simply take care of APN of AirTel nothing but airtelgprs.com.

Hope that helps.


UEFI is not new, but how come my Asus X453 could install and run CentOS7 dual boot, but not Ubuntu 15.04 which is what I want?

Try this simple change: Bring up the BIOS (tap Delete as soon as the machine comes on, or maybe F2), and change "OS SELECTION" from "Windows 8" to "Windows 7".

Disclaimer: I am in a slightly different situation from you, but perhaps the solution might be the same.  I had installed Ubuntu 12.04, and upgraded it to 14.04, but they would both only complete booting with 3.5.0 kernels, and even then the 14.04 install would freeze when it auto-suspended.

However after I made the small bios change I could boot into Ubuntu 14.04 with the recommended 3.13.0 kernel and it worked well!  Now GLX and DPI have been detected, which is a step up from running 12.04 on a 3.5.0 kernel.

(Then to get two-finger scrolling enabled, I just had to install a new kernel and driver.)


Dual boot Ubuntu and Windows 10. with GRUB listed inside Windows bootloader

I used to do the same by installing grub in root partition and then manually copying the first 512 bytes of root into a linux.bin file. Then copying this to C: drive and manually creating an entry in windows boot loader using bcdedit, directed to this file. This approach was used in MBR disk with legacy BIOS, but doesn't seem to work on a GPT disk with a UEFI, which I use now. I was unable to add Ubuntu to Windows boot-loader, but I found a work-around (if you can call it that). Install Ubuntu boot-loader in EFI partition and select it from the 'boot devices' selection menu during system boot.
Steps are as shown:

Install Windows first, afresh in UEFI mode (by disabling CSM). Let
it create the required partitions automatically.

After installation has completed, go to Disk Management and shrink
C: to make un-allocated space.

Boot from Ubuntu installation media and select 'Try Ubuntu'. Create
the required partitions. I use root (/), swap and home (/home).

Now start installation. Select 'something else'.

Map the root, swap and home to respective partitions.

When it comes to 'device for boot-loader installation', select the EFI
partition. Let the installation complete.

Thus we haven't touched the Windows boot-loader. When we restart we
directly go to Windows as before.

To get into Ubuntu, tap the function key for boot devices selection
(F11 in case of MSI boards).

Select the entry which shows 'Ubuntu'.

Now you can enter the newly installed Ubuntu.

Hope that was helpful. Good luck.


I don't know what OS you use, so this answer only applies to Ubuntu, and possibly Ubuntu Gnome.

Istall dconf-tools from the Sotware Center, then launch dconf-editor from a terminal window.
Navigate to /org/gnome/settings-daemon/plugins/housekeeping, and modify the settings there, or deactivate it. For example, to get the warning every two hours, set min-notify-period to 120.


Problem with Rails Installfest, what do I enter to correct issue? libreadline6-dev (issue)

I suggest to remove libreadline version from apt-get command and use universal one - libreadline-dev.

So the complete command would be

sudo apt-get install autoconf automake bison build-essential curl git-core \
libapr1 libaprutil1 libc6-dev libltdl-dev libreadline-dev libsqlite3-0 \
libsqlite3-dev libssl-dev libtool libxml2-dev libxslt-dev libxslt1-dev \
libyaml-dev ncurses-dev nodejs openssl sqlite3 zlib1g zlib1g-dev

Then follow InstallFest guide.

But I recommend to use Ruby 2.4.4 on step 4 (as it is marked stable on official site).


Any plans to add a Win7-Style "Preview Pane" for previewing files in Nautilus?

It is possible to combine the Gloobus Preview interface with Nautilus i.e. so that you retain any new bug fixes for Nautilus through the repositories but also have the ability to preview files.

In summary, pressing the spacebar on a supported file (e.g. text, pdf, mp3 etc) in Nautilus will present a preview like this for a PDF:

and like this for a MP3:

If you want to try this suggest use the following packages:

Download and install Gloobus Preview from the PPA here

Then download the Nautilus extension script from here

Install a small addition for nautilus

sudo apt-get install python-nautilus

Then extract the Nautilus extension script you have downloaded.

Install the script using

cd <folder containing the extracted extension script>
sudo python setup.py install --install-layout=deb

Logout and log back in.


How to disable "N" Wireless Mode RTL8192on a Thinkpad Edge 15 Core i5

You can force your card to use specific wireless standard if the driver supports it with:

sudo iwconfig wlan0 modu 11g

Where wlan0 is your wireless interface and 11g the standard you want (802.11g in this case) .

Hopefully you won't be seeing:

SET failed on device wlan0 ; Operation not supported.


Manually updating GNU ELPA keyring for Emacs 25

I had the same issue on Ubuntu 18.04 (Bionic).
The instructions on https://emacs.stackexchange.com/questions/60554/cannot-run-melpa-package-refresh-due-to-gpg-errors solved the problem for me:
Generate a file called gpg.conf in ~/.emacs.d/elpa/gnupg/ with the following line:
keyserver hkp://keys.gnupg.net

Then, run the following command:
gpg --homedir ~/.emacs.d/elpa/gnupg --receive-keys 066DAFCB81E42C40

Now, Emacs should be able to get data from Elpa without any error messages:
M-x package-refresh-contents RET


This was remedied by downloading the Facebook app via the Ubuntu Software Center. Be sure to pick the one that says facebook-desktop.


Like many professional audio tools Rakarrack needs Jack audio server. In order to get audio outputs working you may have to configure Jack (see the Jack Wiki for details).

This configuration depends very much on your individual set up. A generally valid answer can therefore hardly be given. One thing you may want to set up however is pulseaudio integration for applications that don't work with Jack (but read also this).


Synchronizing/merging Empathy logs and Google chat logs

I have the same problem. As far as I can tell, syncing the logs with the Google account was the default behaviour until the last update. Perhaps you can make it work simply by rolling back to a previous version.


How to get my IR remote to work? Lirc can't see it

I just now solved it.

lircd -n --device=name='IR*' -H devinput.

That's it. Works.


Remove any third party packages from former libreoffice installation

The easiest way to remove them would be with the synaptic package manager. There you can group the packages by repositories, see where they belong to, and also you can check the configured software sources there. The third party packages are probably installed from some PPAs as dependencies or modules and their name didn't match with libreoffice*.


I had an old Dell Inspiron 8600 laptop running (Windows) that wouldn't boot.      I got hold of a Live distro in my case it was Puppy (Slacko) 5.5/5.6 there are many others e.g. Knoppix 7.7.1. Boot up into the Live CD. Under System find GParted and click on it. It displays all of your partitions. I selected my largest one.  A popup windows displays. I clicked format. I selected the number that would format everything. Click Apply. Select you next partition until you're thru. Remember I used Puppy Linux. 5.5.or 5.6 because of the size of my RAM.


By default, scrolling on the icon in the dock indeed does nothing. If you wish that scrolling on an icon changes between different windows of an app, then change the setting either using dconf-editor or with the command

gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'

To undo, use the command

gsettings reset org.gnome.shell.extensions.dash-to-dock scroll-action

Note that, for Firefox, this will allow you to cycle between different open windows, but not between different tabs in the same window. In previous Ubuntu versions with Unity desktop, that also was not the case.


what php version Pandorafms5.1 sp4 will work with Ubuntu 16.04LTS?

PandoraFMS is not compatible with PHP7 according to
Pandora community forum


I "fixed" this problem by upgrading to nvidia-367 from nvidia-304.


Sending content to the clipboard via a Bash script

When you use the command

echo bar | xclip -i

xclip stores the text in its primary register, which is accessible with the middle mouse button.  from man xclip

  -selection
                specify which X selection to use, options are "primary" to use XA_PRIMARY (default), "secondary" for XA_SECONDARY or "clipboard"  for
                XA_CLIPBOARD

When you use

echo bar | xclip -selection c

bar is being captured in xclip's clipboard register - I'm guessing c is an alias for clipboard.
Its strange the echo bar | xclip -i then Ctrl + v command worked - It doesnt for me. I wonder if you had foo in your clipboard from a previous command?


Your error doesn't have anything to do with binary file. Though it does sound extremely similar. (Might be worth filing a bug on dpkg about better error messages in these cases.) If it was about a binary file it would look like:

dpkg-source: error: cannot represent change to package_name-X.Y/debian/some_binary_file.png: binary file contents changed

And even then, it would only happen if you were using an old style version 1.0 source package.

This has to do with the upstream tarball. If you're really using bzr builddeb -- -us -uc you must have convinced bzr builddeb you have an upstream tarball or it would have errored looking for one. The contents of whatever tarball you created don't match the contents of the bzr branch, so you get the error about "unexpected upstream changes."

The simplest way to deal with this case is to pass the --split flag:

bzr builddeb --split -- -us -uc

From bzr help builddeb:

  --split               Automatically create an .orig.tar.gz from a full
                        source branch.

This simply puts everything outside of /debian into a tarball and uses that.


Graphics Driver problem, ATI Radeon HD 3200, small screen size and slows everything down.

This obviously got to do with the installation of the proprietary drivers. Rather than the CPU that is mentioned in the post above.

Try to install the (almost) latest AMD catalyst driver:

remove your graphics drivers:
this can be also be done with the synaptic tool(search for synaptic in software center)

sudo apt-get remove fglrx xserve-xorg-radeon

then download and install the newest catalyst drivers:

wget http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-13.1-linux-x86.x86_64.zip

unzip the files to a folder.

Make the file inside executable:

chmod +x amd-driver-installer-catalyst-13.1-linux-x86.x86.run

Run the Innstallation file:

./amd-driver-installer-catalyst-13.1-linux-x86.x86.run

Then reboot your machine.


If you install Ubuntu, you probably have the copy of the ISO image of it. Otherwise, download the ISO with the same build of Ubuntu you are using. Copy it in a flashdrive or just save it somewhere where you can access it when you are using Ubuntu. Open Software and Updates in Ubuntu. Then on the driver's tab. Click the wireless driver you want to use. Then that's it.


I got a solution (even the fact I don't know if this is valid in all cases).

The problem is because the process "packagekitd" is working on "behind the cameras".

So...

1) I opened a Terminal session.

2) I wrote: sudo -i (I had to enter my SuperUser keyword).

3) I wrote: killall packagekitd

4) I end the Terminal session.

Then... Eureka!!!

The problem is fixed and now I can to shutdown the PC with the standard button procedure.

BTW: The "packagekitd" app it seems to be not present in old versions of Ubuntu Studio, I'm not sure.


Can't install libpng12 due to usrmerge. Can't run PacketTracer without it

usrmerge conflicts with that version of libpng12 because it ships symlinks with the same names in /lib and /usr/lib, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766809, and on a usrmerged system these are the same file. Uninstalling usrmerge doesn't change that. But that bug was fixed in Debian in version 1.2.54-4, so you could try installing a newer version of libpng12.


How to install bimp for gimp 2.8 on ubuntu?

Enter these two commands:

sudo apt-get clean
sudo apt-get autoclean

Try to fix the broken dependencies:

sudo apt-get -f install
sudo dpkg --configure -a

And enter again sudo apt-get -f install.

This should solve your dependency problems and you can now install libgimp2.0-dev again.

Next solution is to run:

sudo apt-get -u dist-upgrade

If it shows any held packages, it is best to eliminate them. Packages are held because of dependency conflicts that apt cannot resolve. Try this command to find and repair the conflicts:

sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade

If it cannot fix the conflicts, it will exit with:

0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

Delete the held packages one by one, running dist-upgrade each time, until there are no more held packages. Then reinstall any needed packages. Be sure to use the --dry-run option, so that you are fully informed of consequences:

sudo apt-get remove --dry-run package-name

Since removing the package you are trying to install may not be ideal, you might also try finding a repository that has the packages you need to satisfy the dependencies.

Finally, if all else fails, you can attempt to satisfy the dependencies yourself, either by finding and installing the necessary packages, or by installing them from source and then creating “[deb][2]” packages for them.

Source


cannot make sublime text 3 work on ubuntu 14.04

you'd better check your OS and the sublime deb package (or bz2) file are matched. I unzip the 64 bits sublime bz2 package into my home directory, and go the same "Exec format error" when I try to start sublime_text, and my os is 32 bits version of Ubuntu 14.10.

If you try to install the deb package is not match the OS architecture, it will report error message and you could not install that.

Hope this is helpful.


Well folks,

The culprit was my RAID Mirror volume. As per Shlomi Fish advice, once I dismantle the RAID into two separate disk volumes, all went well and no boot up problems.

Thanks for all your help,

Meir


How to effectively deploy MAAS server inside the KVM with 2 interfaces and bridge them with physical host server?

I just finished setting up a maas+juju cluster and while I'm waiting for some hardware, I did it all on a single machine inside KVM machines. It is a little involved and I'm probably going to write a blog at some point, but I'll try and get the gist of it here

The main thing to realise is MAAS "needs" 2 interfaces in order to

connect to the internet
manage the cluster of machines it connects to by self managing various services, the most important being DHCP+tftp for pxe boot

In the end, because I was having issues trying to bootstrap a juju controller inside a KVM machine with 2 nics, I ended up switching to a single interface for everything MAAS.

I just had to make sure I met the requirement of providing a network interface that:

Had access to the internet
Did not have any external DHCP (pretty sure this isn't a hard requirement, but it made things far easier)

To do that I created a KVM machine (but there's no reason you couldn't just use the host for this) to act as a gateway/router forwarding between 2 networks

My external internet-facing, dhcp-enabled subnet
A completely bare and unmanaged subnet (that MAAS now manages)

A great couple of resources for this are

How to enabled ip forwarding and turn a unix box into a gateway
How to enabled port forwarding to expose a website (hint: the MAAS web ui)

Once this is setup, you can create a KVM with a single NIC bridged to the NIC connected to the unmanaged subnet and install MAAS on it.

Then connect all the machines you want MAAS to manage to the same unmanaged subnet and everything works perfectly.

Bonus, you be able to setup the gateway box as a firewall to your MAAS cluster.

I tried to cut back on many of the actually details, otherwise this would be an absolutely massive post. So feel free to ask clarifying questions if I left out too much detail.

Failsafe -


Corrected: I remembered a previous installation with the same issue complaining about not being able to enable the 3d desktop effects for such large one: 1024+1440=2464x2464. It also mentioned that the largest was 2048x... Anyway, the solution is to log in using the 2d desktop. You can do this from the login screen clicking on the ubuntu logo next to the username.

Cheers!

Pedro.


The Ubuntu MOTU ("Masters of the Universe") team does.

They have to balance stability and using backported patches against using a new version and risking introducing bugs (in your case to a stable LTS version). They also have to prioritize what is important and to spend time on trying to update without breaking that package.

It could just be a case of not being familiar enough with a piece of software to know the kirks that could break it, so they may leave it to the "pro's" for that piece of software to make a PPA.

And, of course, I'm sure they would always love to have more help, but it may not always be feasible for everyone (depending on what they know) to jump in and fix the things that are bothering them.


Reduce internet utilization / disable automatic updates

The illustrations at Change application volume from terminal show in the screenshot under Other Settings & Scheduling Updates where you can alter the currency of collecting Update data. Disable Automatically check for updates and that will keep Update Manager from using bandwidth when not needed.


Broken apt, can't update libglvnd due to unmet dependencies (Nvidia)

@pibacco solution on question worked for me:

  UPDATE I fixed it by running

sudo dpkg -i --force-overwrite /var/cache/apt/archives/libglvnd-dev_1.0.0-2ubuntu2.2_amd64.deb
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libgles1_1.0.0-2ubuntu2.2_amd64.deb
sudo apt -f install
sudo apt update
sudo apt upgrade


I don't know what your problem is. What you've posted works:

$ mkdir test
$ touch test/test{01..10}.run
$ rename 's/\.run$/.clu/' test/*.run -vn
test/test01.run renamed as test/test01.clu
test/test02.run renamed as test/test02.clu
test/test03.run renamed as test/test03.clu
test/test04.run renamed as test/test04.clu
test/test05.run renamed as test/test05.clu
test/test06.run renamed as test/test06.clu
test/test07.run renamed as test/test07.clu
test/test08.run renamed as test/test08.clu
test/test09.run renamed as test/test09.clu
test/test10.run renamed as test/test10.clu

The -vn is just telling us what it would do if run without it.

I'm escaping the dot (otherwise it's a REGEX "anything") but it really makes no difference here. It works as well without it.

Is it possible that you're actually running rename.ul? Check to make sure you're using the Perl rename (which takes the syntax we're using) with dpkg -S $(readlink -f $(which rename))

perl: /usr/bin/prename is good.
util-linux: /usr/bin/rename.ul is bad. For some reason you're using a very limited version of rename. Something very squiffy has happened.

For the moment, see if prename exists (you could just use that for now) and if not, start asking why Perl isn't installed properly. It would suggest you don't have Ubuntu installed.

Or if you're happy using rename.ul, the following should work:

rename.ul .run .clu *.run

But that might munch a file like test.run.hooray.run into test.clu.hooray.clu which obviously isn't great.


What configures the ~/.kde/share/config/kioslaverc proxy settings?

Try

  sudo gedit /etc/environment

Credit


Ubuntu 16.04 New Install screen icon not functioning properly

The problem appears to have something to do with the video drivers per this bug report

https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1735594

The solution offered in comment #39 worked. Upon reading the complete bug report I will reinstall Ubuntu and follow the remedy that is suggested in comment #69 and forward. #39 seems to be the fix to see if it works while #69 seem to be the more permanent solution.

I will do a re-install in the near future and report back my results.


that path must be: /opt/google/chrome/google-chrome
if you run it from terminal it will show in unity, and that just right click and Lock to launcher


yes, the ppa exist but it "supports" until Ubuntu Xenial, while you're on bionic, so it will never work


Long lines overlap in Bash PS1 customized prompt

Here is my fancy two-line PS1 for bash prompt.

\[\e[1;32m\]\H\[\e[0m\] :: \[\e[1;30m\]\d\[\e[0m\] \@ :: \[\e[1;33m\]\w\n\[\e[1;34m\]\u $ \[\033[0m\]

So here is what I did. If this was my color:

\e[1;32m

I changed it to:

\[\e[1;32m\]

Essentially you need to enclose it in:

\[$mycolor\]

Checkout this answer.


There are two possible reasons why it would get slower.  Either there is a power management tool that is throttling down cpu speed and possibly other resources, or you have a background task (like perhaps unattended upgrades or updatedb) that is using system resources and making the rest of system sluggish.
If it is power management that makes it slow, performance should resume to normal when you start using the system.  You can also change your power profile to get faster response.  A tool like the ubuntu package indicator-cpufreq or the gnome shell extension cpufreq, both of which can both show you current cpu frequency settings and allow you to pick a profile.
If a background job is slowing down your system, you should be able to see it in one of the system monitoring tools.  Either a text terminal based monitor (top, htop, atop, systemd-cgtop) or a graphical tool (qtop, gnome-system-monitor, ksysguard) should help you spot what is using your system resources.   If it is a normal background job started by the system, eventually it should finish and performance should return to normal.  Note that systemd-cgtop can show activity associated with specific system services rather than just the resulting processes.  However, it could be some application causing it, which you may want to stop or remove.


xdotool How do I automate click to click 30 times each delayed by 30 secs then repeat again hourly?

Your script looks mostly correct, but the --delay is in millseconds not seconds, and it appears this option actually controls the delay in between repeats. You can use sleep 60s instead to delay the initial click.

--delay MILLISECONDS
    Specify how long, in milliseconds, to delay between clicks. This option is not
    used if the --repeat flag is set to 1 (default).


After adding .desktop file, the menu option does not start the application

For future reference, gksudo needed to be added to the .desktop file as there was an issue with Java, other than that here is the final .desktop file that launches matlab in Lubuntu.

#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Icon=/usr/share/icons/matlab.png
Name=MATLAB
Comment=Start MATLAB - The Language of Technical Computing
#Uncomment the following line and comment the line after to
#force matlab to use the 32 bits architecture
#Exec=gksu -u root "/usr/local/MATLAB/R2013a_Student/bin/matlab -arch=glnx86 -desktop"
Exec=gksu -u root "/usr/local/MATLAB/R2013a_Student/bin/matlab -desktop"
Categories=Development;
#Uncomment the following line if you've got several matlab icons in the launcher
#StartupWMClass=com-mathworks-util-PostVMInit


How do I reset proxy in terminal to automatic if not connected via proxy

Ubuntu 12.10 will set proxy settings both in /etc/environment and /etc/apt/apt.conf when you set proxy from GUI (Network Settings).

Check your apt settings
grep -Hnri proxy /etc/apt/

will list out the current proxy settings used by apt in the following format.
filename:linenumber:proxy-setting

If you see any output, it corresponds to apt's proxy settings. They will have to be cleared.
sudoedit <filename>

will allow you to edit the corresponding configuration file. Copy the existing contents somewhere in case you need to restore them, and delete or comment the lines that look like
Acquire::<protocol>::proxy=<your proxy here>
(Add // at the beginning of a line to comment that line. Commented lines are ignored.)
Save the files, close the text editor, and retry. If the problem persists,
Check global default environment.
grep proxy -i /etc/environment

Should list any proxy settings that are applied globally. If you need to clear them,
sudoedit /etc/environment

will fire up the text editor. Lines that start with # will be ignored, so add a # before those lines that mention your proxy settings. Save the file and retry.
Cleaning the user environment
It is possible that the systemwide configuration is clean but apt is picking up proxy settings from the user's environment. sudoin certain configurations by default, or when explicitly passed -E as an option, preserves the environment.
env | grep -i proxy

should list out any current environment proxy settings. unset <variable> can be used to unset or clear a variable. Unset all <protocol>_proxy variables. If they are automatically being set, you might comment out the corresponding entries from ~/.profile, ~/.bashrc, ~/.pam_environment
(Those are the most common files that contain the entries. All of them can be searched at once using grep -Hni proxy ~/.profile ~/.bashrc ~/.pam_environment  )


BeautifulSoup package is in Ubuntu repositories as python-beautifulsoup. You need to specify that your package depends on it.

In the answer you linked to, have a look at debian/control file - there is Depends: section where you can specify package dependencies.


You may include dependencies from any of the official Ubuntu repositories in archive.ubuntu.com, which include, amongst others, the universe repository.

So to answer the question, you can submit an app that depends on another package from universe. Quickly will generally take care of this for you when running the quickly submitubuntu or any other packaging command, but if you need to add the dependencies manually, you can also use the quickly configure dependencies command.


Does Ubuntu come with dictionary/list of words file?

The package wamerican has a word list for American English (installed in /usr/share/dict/american-english). There are dictionaries for other languages available, which you can find by searching the repositories for the desired language (e.g. wbritish has a word list for British English).


Unable to find System preference options

Are you following a guide from years ago?  I believe you may be looking for Additional Drivers.  You can find this by running "software & updates", then going to the "Additional Drivers" tab.  Or you can try searching for "Additional Drivers" directly from the launcher.


Print screen key not working on Lubuntu 20.04.1

apt install deepin-screenshot

then go to Settings -> Keyboard -> Shortcus choose Add Custom Shortcut
In command enter deepin-screenshot and name it screenshot for example.
And assign any key combination you like.


14.04.5 to 16.04 Update failed - xenial.tar.gz.gpg missing

Try disabling the apt-cacher service and comment anything you might have configured in /etc/apt/apt.conf.d/90-apt-proxy.conf, then run again do-release-upgrade (ofc, first update and upgrade again).


How to add custom logrotate configuration files to Ubuntu core?

That would be because /etc/logrotate.d is a directory and not a writable file. You can add a file under /etc/logrotate.d/ for your specific application, or edit one of the existing default ones.

Here is what my system has by default:

$ ls /etc/logrotate.d/
apache2  consolekit  jockey-common  rsyslog            unattended-upgrades
apport   cups        pm-utils       speech-dispatcher  upstart
apt      dpkg        ppp            ufw

Good luck!


Should I upgrade to the most recent kernel or stick to the Ubuntu one?

Can this step be risky?

Yes and no. New kernels are added and can be picked on boot so is fairly safe.
But it IS a tricky update since we use specific kernels for Ubuntu.

Should I stay on the current Ubuntu kernel?

I would advice to stick with Ubuntu kernels. Kernels that are not released by the Ubuntu Kernel Team lack Ubuntu specific features so you would need to work around that too. Far too tricky.
Mind though that Ideapads work with Ubuntu. E41 is certified so it is likely newer version of these are supported too: the touchpad driver is generic, so is the microphone. Fingerprint login maybe no. The battery needs investigating: a kernel upgrade will likely not fix this.


Did you run sudo apt-get update after adding those apt repositories? I've completed the sudo apt-get install openstack and sudo openstack-install steps with no problem.


The file I mentioned in my question has two 'Exec=...' statements. I managed to solve the problem by adding the flag in both of the statements.


How to install Guitar Pro 6 on Ubuntu 19.04

This answer was originally posted as a part of the question.

I finally installed the win32 exe of Guitar Pro 6 with wine and it runs smoothly. It took me 1 minute...

Download Guitar Pro 6 then:

$ sudo apt install wine
$ wine gp6-full-win-r11686.exe

To install soundbanks, go to Help / Updates / click the "repair" button. It will download all packages needed and install it on your Guitar Pro 6 wine installation.


every time Software Updater installs something new，ethernet adapter goes wrong

You face this problem, because you probably compiled r8168 driver from source and blacklisted r8169 kernel driver that is supposed to manage this device.

This a working but a wrong way to install drivers in Ubuntu. You will have to re-install the driver after each kernel upgrade.

It is true that some revisions of r8168 chips work not perfectly with default kernel driver, but it is getting improvements.

If you build a kernel module from source, after each kernel upgrade it does not work. This is normal.

I can suggest first of all test if the default kernel driver works OK.
You need to look in files located at /etc/modprobe.d/ for line

blacklist r8169

Remove this line using `sudo gedit -H  and save the file.
Or remove the whole file if it is the only string there by

sudo rm /etc/modprobe.d/<file_name>

Reboot and test your network.

If you still have issues, then you can always install r8168-dkms package from Ubuntu repository by running

sudo apt-get install r8168-dkms

This module will rebuild after kernel upgrades.


I read somewhere a while back that it was a choice by the Ubuntu devs. Nothing you can do about it.

  From the looks of it, Ubuntu 15.04 is the last ISO that comes with
  Wubi, but fortunately we'll get a better tool in the future.

Source: http://news.softpedia.com/news/deprecated-wubi-tool-mysteriously-survives-on-ubuntu-images-until-today-489837.shtml#ixzz48sJV6pt7


I do not think there's a way to automatically remove user config files using apt.

But I think apt keeps them after removal of the package only if they were modified by the user. So after using apt purge, you would have to remove any files in your home folder which have been modified post-install. You could use the find or locate command-line utilities from your home folder for this.


You can try using ecryptfs-recover-private.

Boot into your live CD, preferably an Ubuntu one of a newer version
Mount the partition containing your home directory (either your root partition, or your /home partition if you have one)
In your terminal, navigate to the directory containing your home directory (should be something like /media/PARTITION_UUID/home)
Run ecryptfs-recover-private USERNAME. It should prompt you with a few questions, and if it's successful, it will return a directory to which your home folder is mounted read-only. (e.g. /tmp/ecryptfs.Jd7xE2Bd)


Why does Ubuntu comes with two firewalls by default?

It doesn't come with two firewalls. From the Ubuntu wiki page on ufw (sic):

  The Uncomplicated Firewall (ufw) is a frontend for iptables and is
  particularly well-suited for host-based firewalls. ufw provides a
  framework for managing netfilter, as well as a command-line interface
  for manipulating the firewall. ufw aims to provide an easy to use
  interface for people unfamiliar with firewall concepts, while at the
  same time simplifies complicated iptables commands to help an
  adminstrator who knows what he or she is doing. ufw is an upstream for
  other distributions and graphical frontends.

One is a frontend to the other. There is only one firewall.


Fresh install of Ubuntu 12.04 amd64 does not boot

Boot into Live CD and run:

sudo mount /dev/sda3 /mnt
sudo mount /dev/sda1 /mnt/boot
sudo grub-install --root-directory=/mnt /dev/sda