The Intel_pstate CPU frequency scaling driver has included a passive mode for some time now. In that mode the scaling driver is called intel_cpufreq, and it has all of the same governors as acpi-cpufreq.
To look at what you have now do:
$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:acpi-cpufreq
/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver:acpi-cpufreq
/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver:acpi-cpufreq
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver:acpi-cpufreq
/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver:acpi-cpufreq
/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver:acpi-cpufreq

Opps bad example (on purpose, to show acpi-cpufreq).
Try again:
$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu6/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu7/cpufreq/scaling_driver:intel_pstate

And indeed only performance and powersave governors are available:
$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu4/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu5/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu6/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu7/cpufreq/scaling_available_governors:performance powersave

Now, let's look at the intel_pstate driver settings:
$ cat /sys/devices/system/cpu/intel_pstate/status
active

And change it to passive mode:
$ echo passive | sudo tee /sys/devices/system/cpu/intel_pstate/status
passive
doug@s15:~/temp$ cat /sys/devices/system/cpu/intel_pstate/status
passive

Now check the cpufreq same stuff as before:
$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu4/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu5/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu6/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu7/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance schedutil
$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu6/cpufreq/scaling_driver:intel_cpufreq
/sys/devices/system/cpu/cpu7/cpufreq/scaling_driver:intel_cpufreq

NOTE: For users with HWP (HardWare Pstate control) capable processors: Currently, passive mode is only possible if the system is booted with HWP disabled and/or passive mode forced at boot. Passive with HWP enabled might be in the future.
Here are a few example grub command lines for various methods of intel_pstate boot:
#GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 consoleblank=450 cpuidle_sysfs_switch cpuidle.governor=teo"
#GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 consoleblank=450 intel_pstate=no_hwp cpuidle_sysfs_switch cpuidle.governor=teo"
#GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 consoleblank=300 intel_pstate=disable cpuidle_sysfs_switch cpuidle.governor=teo"
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 consoleblank=450 intel_pstate=passive cpuidle_sysfs_switch cpuidle.governor=teo"
#GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 consoleblank=450 intel_pstate=passive intel_pstate=no_hwp cpuidle_sysfs_switch cpuidle.governor=teo"
#GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 consoleblank=450 intel_pstate=passive intel_pstate=no_hwp cpuidle_sysfs_switch cpuidle.governor=teo intel_idle.max_cstate=1"
#GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 consoleblank=450 intel_pstate=passive cpuidle_sysfs_switch cpuidle.governor=teo cgroup_no_v1=all"


HDMI device detected by the system but not listed. Which is the package affected by this bug?

I'd start by filing a bug on gnome-control-center, it can be moved to a different package if necessary, this would be done by a triager. While it's very helpful to get the package right on the first try (much appreciated, thanks!) it's not mandatory, and as a bug gets investigated it can naturally change packages.


QGtkStyle was unable to detect the current GTK+ theme

Try with:

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

Also make sure you defined a theme in yout gtkrc-2.0 like this:

gtk-theme-name="myTheme"


How to fix facebook,Youtube problems in chrome with Ubuntu 12.04

A temporary workaround that worked for me is to disable the PepperFlash plugin in Google Chrome.

Type chrome://plugins in your address bar.
Disable the PepperFlash plugin as shown in the screenshot below.

Restart Google Chrome

After this, all of my Facebook and YouTube rendering issues disappeared. But I would keep checking the question you mentioned, and keep your graphics card driver updated.

Source: http://www.ubuntuvibes.com/2012/07/how-to-fix-rendering-issues-in-google.html


First of all thx everyone for pointing me out the right way, that gives me good clues.
After lots of reading on the subject I have a better understanding of the subject.
Here is the detail of how I proceed :
From Ubuntu, using Gparted, I completely delete EFI partition on Nvme2 I format the one on Nvme1. (with the boot flag)
Then in a terminal :
sudo gedit /etc/fstabto replace UID of the EFI partition. It changes arfter formating. The line should looks like this
UUID=1A2B-3C4D   /boot/efi   vfat    defaults    0   1, save fstab then mount EFI partition sudo mount /boot/efi and reinstall grub
sudo grub-install
Now, after rebooting, UEFI entries are not messy anymore but you've got only one entry: Ubnutu. No more Windows here, so I have to recreate EFI entries for Windows
In a lot of guides I found, it says to use Windows Startup Repair tool, but:

It didn't work for me (maybe because of Grub?)
I don't exactly knows what it does and how....

So I did it manually :
Boot on Windows10 install media > select language > Repair your computer > Advanced Options > Troubleshoot > Command prompt
With diskpart I mount and add a letter to EFI partition
diskpart
diskpart>list vol            (to display assigned letter to partitions and volume numbers)
diskpart>sel vol 4           (volume number of the EFI partition)
diskpart>assign letter=Z:    (or other available letter)
diskpart>exit

Then I use bcdboot to create Windows entries in the EFI partition
bcdboot D:\Windows /l fr-fr /s Z: /f UEFI                (D is the letter of the partition with the first Windows system to boot, here Win10-1)
bcdboot E:\Windows /l fr-fr /s Z: /f UEFI /d /addlast    (E is the letter of the partition with the first Win10-2 system)
bcdboot F:\Windows /l fr-fr /s Z: /f UEFI /d /addlast    (F is the letter of the partition with the first Win10-3 system)

When rebooting there is now 2 choice in UEFI selection : Grub or Windows boot manager, but grub still don't know Windows.
At the end, boot a last time on Ubuntu and do a sudo update-grub.
Here is the actual behaviour when booting :
Boot
|_______Grub
        |______*Ubuntu > boots Ubuntu
        |______*Windows Boot manager on /dev/nvme0n1
                |_______Windows Boot Manager GUI
                        |______*Win10-1 > boots Win10-1
                        |______*Win10-2 > boots Win10-2
                        |______*Win10-3 > boots Win10-3

For more clarity we can use bcdedit to rename entries in WBM
From any Windows command prompt:
bcdedit (to list entries and not identifiers)
bcdedit /set {identifier} description "My Custom Windows"

Now on its preatty clean. But I must go through Grub then Windows Boot Manager GUI to boot on any Windows.
So I keep playing !
I did format EFI partition on Nvme1 again, create a new one on Nvme2 and another on SSD1 (FAT32 partition 100Mo with 'boot' Flag from Gparted)
Install Grub on Nvme1 /boot/EFI.
From Windows10 install media, the same way as above, mount each 3 EFI partitions and add on each one the related EFI entries :
bcdboot D:\Windows /l fr-fr /s Z: /f UEFI /d /addlast    (D is system Win10-1 and Z EFI on Nvme1)
bcdboot E:\Windows /l fr-fr /s Y: /f UEFI /d /addlast    (E is system Win10-2 and Y EFI on Nvme2)
bcdboot F:\Windows /l fr-fr /s X: /f UEFI /d /addlast    (F is system Win10-3 and X EFI on SSD1)

Finaly do update-grub from Ubuntu after reboot.
And now here is the behaviour :
Boot
|_______Grub
        |______*Ubuntu > boots Ubuntu
        |______*Windows Boot manager on /dev/nvme0n1 > boots Win10-1
        |______*Windows Boot manager on /dev/nvme1n1 > boots Win10-2
        |______*Windows Boot manager on /dev/sdb > boots Win10-3

Furthermore, I am now able to boot any system from UEFI selection and if I lost Nvme1 disk I am still able to boot from other disk
Hope this novel can be useful for other people


The flash drive is likely mounted noexec.

Copy the file to your home directory , make it executable if needed, and run it as root.

chmod a+x ~/your_file
sudo ./your_file


How to convert all pdf files to text (within a folder) with one command?

The following will convert all files in the current directory:

for file in *.pdf; do pdftotext "$file" "$file.txt"; done


connect to wlan0, and eth0 as safeguard in etc/network/interfaces

You can't have the same IP, but you can just have both interfaces active at once and set up a script to try to determine if the wireless connection is up, then use that.  Then if it's not up, default to eth0.

But if you've already got a cable run. why use wifi at all?  Ethernet is much faster/more reliable/all around better than USB wifi...


Dependancy not satisfiable while installing sql query browser

You may need to (re)install mysql-5.1.

Type the following into terminal and enter your password when prompted:

sudo apt-get update

sudo apt-get install mysql-5.1


rdiff-backup and running out of disk space. Something weird's going on

As maco already mentioned in comments, /tmp is the problem.

With rdiff-backup you can configure temp directory location with parameter

--tempdir path
          Sets  the  directory  that  rdiff-backup  uses for temporary files
          to the given path. The environment variables TMPDIR, TEMP, and TMP
          can also be used to set the temporary files directory. See the
          documentation of the Python tempfile module for more information.

If you set tempdir to that CIFS mount, problem should go away. (We had same problem, and that fixed it, you may have something else too)


you'll only get this problem when you have /home mounted some where in a other partition,

  WARNING: this worked for ME this is how I fixed it, it doesn't mean it
  works for YOU,
    This won't break your OS but WILL remove all your config files
  (unless you made a back-up)

Back-up your web browser data (and other config files that you may have there)
Firefox:
Backup ~/.mozilla (a hidden folder with bookmarks and history and cookies of Firefox)

Chromium:
No idea (Some one add this please, I think "~/.config/chromium" please confirm)

chrome:
No idea (Some one add this please, I think "~/.config/google-chrome" please confirm)

then remove every .(name) folder in your or back them up somewhere.
Point is they can't be in /home/user/* (or further).


I can't change screen resolution on VirtualBox with Ubuntu server installed on it

Please elaborate are you talking about X11 server in the VM or about terminal fonts? In the former case you will need usual VBox Guest Extensions / DKMS, in the latter it heavily depends on text console management commands. I doubt that grub text console settings persist into login session, especially after this stuff with Plymouth et al.


How to have multiple path separators in Bash

In Linux, filenames can contain any characters except / (since it's the path separator) and the NUL byte (the string terminator, \0). That means \ is a valid character in a filename, as well as newlines, tabs, terminal escape sequences, unprintable characters... so no, you can't temporarily use \ as a path separator.

Windows is not as liberal, and has a larger set of characters not allowed in filenames, and / is one of those characters not allowed. For this reason, python will also consider / a path separator on Windows, so changing those \\ to / should make the script work on both Windows and Ubuntu. That said, the proper way to join paths in python is to use the os.path.join function.

I recommend going through the scripts and manually fix all the non-portable code.


GRUB shows Windows boot loader even after deleting Windows partitions

If you really want to remove every trace of Windows ... follow these instructions :
Boot from an Ubuntu installation media and select Try Ubuntu without installing.
On the Ubuntu Live desktop open a terminal and execute the following command :

sudo mount /dev/sda1 /mnt
sudo dbus-launch nautilus

Navigate to the mnt/EFI folder and delete everything except the Ubuntu folder.
Then open the Trash folder and empty Trash. Close Nautilus and open GParted.
Delete the partition /dev/sda2 and the partition /dev/sda3 (see screenshot).

Boot the Ubuntu system ... open a terminal and execute : sudo update-grub
Now there shall be no Windows entry in the GRUB boot loader menu anymore.
Important : Do NOT delete /dev/sda1, it would cause an unbootable system.

Note : Although removing entries from the mnt/EFI folder can of course be done from within the terminal, I intentionally chose this method to make it most easy for you to achieve what you want.


You have to bear with the slowness. Once the system starts, you will have to run sudo apt-get dist-upgrade from console to finish the upgrade.

If this command gives any error right at the beginning, then you can try using sudo dpkg -a --configure to fix your system.


Awk OK? Try something like this:

awk -F'[^N]*' '
  !/^>/ {
    for(i=1; i<=NF; i++) {
      g=length($i)
      if(g>m)m=g
      A[g]++
    }
  }
  END {
    for(i=1; i<=m; i++) print i, A[i]+0
  }
' file


Submit text editor to Ubuntu Software Center

There is already a great answer to this question [here](
How to get my software into Ubuntu?), by @an drewsomething .But i will reproduce it here for the OP.

There are a number of paths that a package can take to enter Ubuntu. The overview of Ubuntu development targeted at "upstream" developers like yourself might be a useful place to start, but I'll try to give you some pointers as well.

Through Debian

Generally, if you are publishing free and open source software going through Debian first is the best path. This way ensures that your package will have a dedicated maintainer. It also will reach the largest number of users as it will be available in not just Debian and Ubuntu but all of their derivatives as well. Some useful links for requesting/providing new packages in Debian:

Work-Needing and Prospective
Packages - Information on how to
file "Intent to Package" and "Request
for Package" bugs as well as list of
open ITPs and RFPs.
Debian Mentors
FAQ - debian-mentors is for the
mentoring of new and prospective
Debian Developers. It is where you can
find a sponsor to upload your package to the archive.
Debian Developer's Reference - Debian Developer's Reference's section on new packages. The entire document is invaluable for both Ubuntu and Debian packagers.

Directly into Ubuntu

In some cases, it might make sense to go directly into Ubuntu first. Some helpful links:

The Ubuntu App Developer site - for lightweight desktop applications, you can submit them directly on the My Apps section of developer.ubuntu.com, the App Review Board will review them and they will be published in the Software Center.
Packaging Guide - an introduction to how to package for Ubuntu.
REVU - a web-based tool to which Ubuntu contributors can upload new packages for review by Ubuntu Developers for inclusion into Ubuntu.
Sponsorship Process - After entering Ubuntu, you can maintain your package through the sponsorship process.

Personal Package Archives

Beyond the official Ubuntu and Debian channels, Launchpad offers you the ability to distribute Debian packages directly to your users through its Personal Package Archives or PPAs for short. One particularly useful aspect of a PPA is that you can provide daily builds of your software for testing purposes.


Wifi and graphics issues after software update

I managed to solve both issues with the answer to this post. I really have no clue how the network settings could affect the graphics, but I have no other explanation. These were the steps I followed:

Run sudo service network-manager restart to get the WiFi back temporarily.
Go to the Network icon in the top panel, choose Connection Information. Note what driver name is being used for the wireless connection.
In terminal, run sudo gedit /etc/modules and add that driver name to the bottom of the file (in my case it is iwlwifi). Save the file and quit gedit.
Reboot the computer, it should now be working.


why I get "existing superblock read failed: Invalid argument"

You're feeding a "mount point" (/d/backends/disk1) to mkfs.xfs. It wants a DEVICE (check man mkfs.xfs), like/dev/sdq. Alsomkfs.xfswon't work on a mounted disk (/d/backends/disk1`).


How do I disable font antialiasing in some apps? (E.g. VLC, Telegram, Viber)

I had the same issue in Linux Mint 19.2 with VLC and Chromium not respecting Cinnamon desktop settings for antialiasing or any of the user space configuration options that I wasted a lot of time with. I did eventually find a solution on a clean install of Mint 19.3.

The key was this configuration file:

/etc/fonts/conf.d/10-antialias.conf

When you open it in a text editor you get this:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Use the Antialiasing -->
  <match target="pattern">
    <edit name="antialias" mode="append"><bool>true</bool></edit>
  </match>
</fontconfig>

I would assume this file also exists in Ubuntu since Mint is based on Ubuntu.

To disable antialiasing we just need to change the word true to false. You need su permission to edit this file so you can't do it in a text editor in the usual way. Instead, do this:

open a terminal and navigate to /etc/fonts/conf.d

then type sudo nano 10-antialias.conf to open the file in the nano text editor

on the line <edit name="antialias" mode="append"><bool>true</bool></edit>

change the word true to false

hit ctrl o to save your changes and then ctrl x to exit nano and then close the terminal

You may need to sign out and back in or restart for the changes to take effect.

Antialiasing should now be disabled in VLC and Chromium. I don't know about Viber and Telegram because I don't use those apps.

This configuration setting also seems to disable antialiasing system-wide in Mint 19.3. I tried turning antialiasing back on with the Cinnamon desktop setting just to see what would happen and antialiasing remained off so I conclude that this configuration file works on a deeper level than the Cinnamon desktop setting. It also works for Firefox which also doesn't respect the Cinnamon desktop antialiasing settings. I normally disable antialiasing in Firefox by typing about:config in the address bar and setting gfx.text.disableAA to true but that is no longer necessary once the 10-antialias.conf file is modified as above.


To change your desktop rotation, open up Monitors settings, and you should see a window that looks like this.

From there you can change your rotation.


installing broadcom 802.11 driver problems

You need to have the source code repos activated in your sources.list. You can do that in the software and updates app, or manually edit it by doing sudo vim /etc/apt/sources.list and uncommenting the lines by removing the # signs. They start with deb-src.

Also, you should run this command to get the headers to avoid pulling in unneeded stuff:sudo apt-get build-dep --no-install-recommends linux


How to determine if new hardware is compatible?

Is this what you are looking for?

Ubuntu Desktop certified hardware


Try the following:

    sudo shutdown -r now

Only used reboot once and had the problem your describing. Never used it again. Look at the shutdown man page for more options.

Can't say if this works on an encrypted home folder.


Have dual XP and Ubuntu. Want to uninstal and the reinstal XP and keep Ububtu

Boot from your XP disc
Install it normally into exactly the same disk partition as it was before.
Installator will ask you if to format patition. Do it.
Boot from your Ubuntu disk.
Restore the bootloader. Like this

You can see the layout of your disk partitions with lsblk console command or Gparted application.


How to install a GUI on the windows 10 store Ubuntu APP?

try install Windows 10 build 21364 or above, and then  wsl --update


If you've installed a dkms driver for the rtl8723be, then, in terminal...

dkms status

should tell you it's condition.

If you're using the 4.15.0-33 kernel, then possibly...

This is a known bug with the 4.15.0-33 kernel and the rtl8723be wireless device.

See this bug report here or here.

Booting with a different kernel may workaround the problem until they fix it.

Update #1:

dkms status shows the problem. The rtl8723de driver is not installed. Does this driver also run the rtl8723be, which is what you have. You may need to sudo dkms remove... it.

What are you using the rtlwifi-new driver for? Did you try to use this driver for the rtl8723be? You should be using this driver. Use the sudo dkms add/build/install... commands to install it.

Same question... what are you using the bcmwl driver for? You may also need to sudo dkms remove... it.

In terminal, type...

sudo dkms install rtl8723de/5.1.1.8_21285

** you may have to tweak this command based on the exact version/location of the source code. Type man dkms for help.


One way would be to...

Goto Ubuntu packages or Launchpad;
Find the package you need (gimp packages or gimp launchpad);
Check if there are any dependencies that you do not have installed (gimp) ;
Download the .DEB's you need from the launchpad page <-- this can be annoying as hell;
Copy/paste these downloads to USB;
Install them on the other server. You need to install these in the correct order: lowest dependency 1st <-- this can be annoying as hell too.

edit: I would suggest picking up the machine and carry it to an internet connection if you want wine


Is there a way to manually check which extra packages are going to be removed?

You can use the --simulate or -s option, which will show you what APT will do when you run a command without actually doing anything, for example...

$ sudo apt remove -s file
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfile-stripnondeterminism-perl libltdl-dev libmail-sendmail-perl libsys-hostname-long-perl po-debconf
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
  cracklib-runtime debhelper dh-autoreconf dh-strip-nondeterminism file gdebi gdebi-core libtool lintian ubuntu-standard
0 to upgrade, 0 to newly install, 10 to remove and 0 not to upgrade.
Remv cracklib-runtime [2.9.2-3]
Remv dh-autoreconf [13] [debhelper:amd64 ]
Remv debhelper [10.2.2ubuntu1] [dh-strip-nondeterminism:amd64 ]
Remv dh-strip-nondeterminism [0.032-1]
Remv gdebi [0.9.5.7+nmu1]
Remv gdebi-core [0.9.5.7+nmu1]
Remv ubuntu-standard [1.379]
Remv file [1:5.29-3] [lintian:amd64 libtool:amd64 ]
Remv libtool [2.4.6-2] [lintian:amd64 ]
Remv lintian [2.5.50.1]

We can see that removing the file package would be a very bad idea...


How do I dual boot Ubuntu alongside Windows 10 on a Lenovo Yoga?

Welcome to the community :)
I would suggest you to follow the steps on this page: https://itsfoss.com/install-ubuntu-1404-dual-boot-mode-windows-8-81-uefi/
Best regards,
Martin


How can I use Firefox 4 on an old Ubuntu 7.10 laptop?

This may be a solution to your problem: http://www.webupd8.org/2011/05/install-firefox-nightly-from-ubuntu-ppa.html


Is there data on the laptop that you need to preserve? If not, i'd say format the HDD and reinstall both OS'es from scratch.


Restore VLC 1.x functionality after installing VLC 2.x

The answer is to go back to 1.x since several libraries/tools are shared between other programs that VLC uses.
To solve this first:

Remove the PPA from VLC 2.X from your Software Sources

Run this in the terminal so it removes any trace of VLC 2.X:
sudo apt-get purge vlc libvlc5 libvlccore5 vlc-data vlc-nox vlc-plugin-notify vlc-plugin-pulse

Update Repositories: sudo apt-get update

Install VLC 1.x: sudo apt-get install vlc

I'm sorry that I had to Ask and Answer this but do to some help about this with several friends and users here I thought it would be better to put it right now than wait. Hope it helps anybody that updates to VLC 2.x and finds problems after.


Kubuntu: How to avoid "A stop job is running for session N of user" and slow shutdown - possibly run a script on KDE logout to disconnect VPN

It turns out I need to use full paths in my script:
#!/bin/bash
sudo /usr/local/bin/protonvpn d

... or, if I want the text file output:
#!/bin/bash
sudo /usr/local/bin/protonvpn d > /home/$USER/protonvpn.txt

Now it seems to work.
Credit to koffeinfriedhof at forum.kde.org for this solution.


Pi 4 B does not use its dot local address

It seems that the package avahi-daemon has fixed this issue.

I was also able to change the name to pie.local instead of the default one by modifying /etc/hosts and /etc/hostname and restarting the Pi.


Just download Ubuntu 12.10 and run it. After the first (or second) screen in Ubiquity (the installer), there will be an option saying: Upgrade ubuntu 12.04 with ubuntu 12.10. Select that, and you should be good to go!


The problem is likely that you have an old version of libgranite. To get the latest version, you might have to add the elementary daily PPA as follows:

sudo add-apt-repository ppa:elementary-os/daily
sudo apt-get update
sudo apt-get install libgranite-dev

Alternatively, you get can the latest deb's from https://launchpad.net/~elementary-os/+archive/daily/+packages.

Please note that in that PPA there are daily builds of Eidete, so compiling from source would be unnecessary.

Also, if you'd like it to be easily removable through apt, you can nest the debian/ directory of lp:~elementary-os/eidete/deb-packaging into the root of your Eidete source directory. You can simply copy the files there once they've been branched. Also, note that the packages devscripts and dpkg-dev are needed to create Debian packages.


There are a few things wrong with your eclipse.desktop launcher. In a .desktop file, you need to use full paths, ~ is not expanded. So change ~/... to /home/vanh/....

Secondly, as @Terrance pointed out, the correct path to the executable should be /home/vanh/WORK/jee-photon/eclipse/eclipse instead of /home/vanh/WORK/jee-photon/eclipse.

Finally, add one StartupWMClass=Eclipse line to the eclipse.desktop file.

Now you should be able to launch Eclipse from "Activities" overview (or "Show Applications") and it should show the correct icon on Ubuntu dock.


New install - no network devices available - Realtek Device b822

The current Ubuntu kernel doesn't support this new adapter. You need to install a driver. Connect to the Internet and run in a terminal:
sudo apt install git dkms
git clone https://github.com/lwfinger/rtw88.git
sudo dkms add ./rtw88
sudo dkms install rtlwifi-new/0.6

Now reboot and disable Secure Boot in BIOS.
If there are any errors, please tell us in comments.


Cheese isn't working from the Software Centre

Try installing cheese from terminal, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install cheese

I tried it and it worked for me... I am running 13.04.

Good Luck


Screen freezes right after login or if I move the mouse

You have to install the proprietary linux graphic drivers for your GPU, in your case, the NVIDIA® GeForce® GTX 1050 Ti Max-Q.

Click Ctrl+Alt+F2 at your login screen to access your command line, or, you can boot into recovery mode and open the terminal.

Now run the following commands:

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

You can now install the driver by running:

$ sudo ubuntu-drivers autoinstall

Alternatively, if you know the exact driver you need (probably nvidia-390 for your card), you can run:

$ sudo apt install nvidia-(driver-number)$

If the installation is successful you can now run sudo reboot and use your laptop.


unable to install-grub/dev/sda in windows 10 ubuntu 16.04.2 dual boot

I have found on some systems, that the error isn't actually the install but grub update that fails. the file /etc/grub.d/30_uefi-firmware errors breaking the  creation of grubs config file.
edit it to read:

set -e
gettext_printf "Adding boot menu entry for EFI firmware configuration\n" >&2
cat << EOF
menuentry 'uefi-firmware' {
fwsetup
}
EOF

and the grub install should complete.


As far as I can tell, /dev/pts needs to be mounted for screen to work.


Access Guest Ubuntu's Folder from Host Mac OS X?

I've managed to do it through Samba.

In your Ubuntu 14.04 host, right-click in the folder you want to share, go to Properties and then in "Local network shared resource" tab (or something like that, I have a Spanish installation), click all the checkboxes. Then, press "Create share" button and then Close. Install all packages that your Ubuntu asks for.

Later in your Mac OS host, go to Finder --> Go --> Connect to server. Provide next details:

Server: smb://your_host_local_network_ip_address
Access as guest.

You'll be able to see Ubuntu shared folder.


with ubuntu gnome tweak I disabled capslock and set hyper button on it.
after that with autokey application I set some shortcut.
now :

if I push capslock and E, ↑ will push
if I push capslock and D, ↓ will push
if I push capslock and S, ← will push
if I push capslock and F, → will push
if I push capslock and R, end will push
if I push capslock and W, home will push
if I push capslock and space, enter will push

if you have good experience about using autokey , or you know better shortcuts, share it


You've just got a really ancient card and no matter what you're going to do, it's going to be slow as the proverbial tortoise. I would just install Lubuntu (or upgrade my hardware)...

Sorry to be the harbinger of bad news.  :-(


"In use" in Additional Drivers, but not actually used?

Open a terminal and execute :

lspci -k | grep -EA2 'VGA|3D'

The output shows something like :

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: i915

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: nvidia

Now you can see the drivers in use.

Update addressing your feedback that there is no listed NVIDIA 3D controller for GTX 980 :

Generally you should use the drivers from the official Ubuntu repositories. But when you have problems with these drivers, you can install the more current drivers from the GPU Drivers PPA. This often leads to properly working graphics, especially on very new NVIDIA GEFORCE adapters.

Step 1 : Uninstall the installed NVIDIA drivers.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On login screen press Ctrl+Alt+F1 - enter user name and password - execute :

sudo apt-get purge nvidia*
sudo reboot

Step 2 : Install the latest official NVIDIA drivers.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On login screen press Ctrl+Alt+F1 - enter user name and password - execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot


You can use Gparted to edit partitions.  Delete the unwanted swap partitions and add a new one.  Try to avoid moving existing partitions, as this operation takes a long time, although in-place resizing is usually pretty fast.  Basically, if the tan part moves, it'll take a while.  And back up everything important first.

Swap partitions tend to be recognized automatically, but you can edit /etc/fstab to tell it to use that as a swap.  First right-click on the swap partition and select "information", and copy or write down the UUID.  Next edit /etc/fstab:

gksu gedit /etc/fstab

Remove any lines whose third field is "swap" (be conservative; if you're not sure what to do, leave a line alone) and add a new line like this:

UUID=uuid     none     swap    0     0

Replace those spaces with tabs, and replace the lowercase string "uuid" with the UUID you copied or wrote down earlier.


You are getting the message that ubuntu-sdk package has no release file because the ubuntu-sdk package has been discontinued in Ubuntu 17.10 and later. The ubuntu-sdk package for Ubuntu 17.10 has also been discontinued in ppa:ubuntu-sdk-team/ppa. The last Ubuntu release that has ubuntu-sdk in the default repositories is Ubuntu 16.04.


Screen session used to run python PFA on server dies after a few days

There are two ways to handle your problem:

Run the task as a systemd service

It sounds like this is a long running task that should actually be a service that gets started on boot, gets restarted by the init system when it fails and should have a proper logging to journald.

To make this happen, follow these steps:

Create a file /lib/systemd/system/python-we.service and insert the following content:

[Unit]
Description=Python We Job
After=network-online.target

[Service]
Type=simple
Restart=on-failure
RestartSec=10

ExecStart=/usr/bin/python /full/path/to/we.py

# Make sure stderr/stdout is captured in the systemd journal.
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target

After creating the file, run the following commands to register the python-we.service file to systemd, enable it (to make it start after a reboot) and finally start it.

systemctl daemon-reload
systemctl enable python-we
systemctl start python-we

If you use systemd you can read the logs via journalctl -u python-we.

Run it in screen (not recommended)

Start a screen session (just type screen) and in this screen session start your job. This way the screen session only exists if you close the shell inside the screen session and you can observe the logs inside the screen session.

As I said: This is not a recommended way to run a service since it's kind of hacky. Your screen session will bloat and the service won't be automatically restartet in case it fails.


Hard drive does not display in Ubuntu USB live session

While booting into ubuntu live, you can search an app named 'Disks' after pressing window key.
After opening the app choose the hard drive from the left column and select the partition you want to access. Below that there will be 3 buttons, the first one is to mount the partition.
After you have mounted the partition, you can open 'Files' and click 'other locations' to view the partition.


How do I change the color of the screen that is displayed before the login screen?

You have to open with root privileges /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script file, find and edit as you wish these lines:

Window.SetBackgroundTopColor (0.16, 0.00, 0.12);     # Nice colour on top of the screen fading to
Window.SetBackgroundBottomColor (0.16, 0.00, 0.12);  # an equally nice colour on the bottom

For example (0.0, 0.00, 0.0) in both cases will give you a black screen.

After you saved the file, run the following command in terminal:

sudo update-initramfs -u


My problem was identical to the on in this post https://serverfault.com/questions/57098/du-vs-df-difference

Sorry for the trouble. I had rsnapshot backups in /mnt/backup (by mistake) and then mounted the backup drive on top of them.


How do I get an Acer Npilfy 802.11 (BCM43225) wireless card working?

Your problem looks similar to mine, and I think the new kernel and broadcom drivers are the connection.  I ran

sudo apt-get install linux-headers-generic
sudo apt-get install --reinstall bcmwl-kernel-source
sudo modprobe wl

and it worked for me on a Samsung netbook.


sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

As seen in the comments your Library is located at /usr/lib/oracle/12.1/client/lib/, but your path just includes /usr/lib/oracle/12.1/client/bin...  you see why it can't find the library?

You can expand your LD_LIBRARY_PATH with the /usr/lib/oracle/12.1/client/lib/ directory (in your .profile or .environment or .bash_profile or (if you want it for all users) in the /etc/bash.bashrc file) - i don't know if sqlplus takes care of the LD_LIBRARY_PATH - just have a try.

To see to what LD_LIBRARY_PATH is set you have to type:

echo $LD_LIBRARY_PATH

(note the $ if you want to read the value!)

Hope this helps!


Only user can no more sudo and root account in safemode has password

Use your live cd to recover (edit the file), or boot into single user mode. (http://askubuntu.com/questions/132965/how-do-i-boot-into-single-user-mode-from-grub)

Then you can edit the file and fix the issue.

Either option will work, single user mode is faster. Make sure you mount your root directory read/write before editing the file.


Can't find "Additional Drivers" in dash after upgrade to 16.04

From a console try the following command: software-properties-gtk, if it complains about the package missing, install it: sudo apt install software-properties-gtk.


Get list of recommended packages (suggestions) for touch screen support after apt-get install lxde

Maybe $ apt-cache show lxde | grep Suggests ?


Well, I decided to reinstall composer according to the link, but I had Installation corrupt instead of verified, so I started to dig in this direction. I had some troubles with snapd, I found solution in stackoverflow, but cant find the link. Then I installed composer but problem didn't gone, I thought that I installed it wrongly again. But before reinstalling I typed composer update in my project folder, and it started deleting bower-assets e.t.c. I was so happy, after composer require guzzlehttp/guzzle worked fine. But the new errors accured The file or directory to be published does not exist: /home/xxx/yyy/zzz/vendor/bower-asset/jquery/dist

I tried every suggested solution. But nothing helped, so I decided to create new project. Then required guzzle and now everything works fine. I suppose that the initial problem was in composer and snapd. I hope this article will help someone.


How to understand and mitigate the local privilege escalation vulnerability on Ubuntu?

Just apply system updates regularly, especially those marked as security updates. Ubuntu 16.04.1 LTS comes with kernel 4.4.0-31 (which is already newer that 4.4.0-29, the last kernel version to have this vulnerability), and currently (3-Dec-2016) the kernel for 16.04 is at 4.4.0-51.


Accidentally deleted login.keyring and user.keystore - any recourse?

I suggest creating a new profile for "Chrome", it should work however if you want to recover the files then:

First install testdisk:

sudo apt install testdisk

Then run it:

sudo testdisk

From the Items select "Create", then select your home partition, select "None" then "Advanced" and move the selected item on list:

Now it lets you to go into directories, go to the ~/.local/share/keyrings and see if it show "keyrings" file to you:

Directory /ravexina/.local/share

 drwxr-xr-x  1000  1000      4096 18-May-2017 22:44 .
 drwxr-xr-x  1000  1000      4096 11-May-2017 20:59 ..
 drwxr-xr-x  1000  1000      4096 12-May-2017 12:11 xorg
>drwx------  1000  1000      4096 11-May-2017 21:26 keyrings

Press c to recover it.


How can I monitor other windows non-intrusively (enable picture-in-picture feature) on GNOME 3?

The GNOME Shell extension Window Corner Preview is exactly what you were looking for! Follow these instructions in order to install it.

With Window Corner Preview simply select a window or workspace you wish to preview:

And you will have the window in the top-right-hand corner (although if you left-click on the window preview you can make it go to the opposite corner, right-clicking the window preview will cause it to go to the next corner along in clockwise motion).

If you wish to simply see what is behind the window preview just cursor over it and it will go mostly transparent:

To hide the window preview just use the On/Off slider you saw in the first screenshot which can be used once you have made a window or workspace selection from the list.


Create a .desktop file like this and put it in /usr/share/applications/

[Desktop Entry]
Type=Application
Name=XChat Firefox
Exec=/usr/bin/your_script
Icon=/usr/share/icons/xchats_icon

"XChat Firefox" will then be a launchable application with XChat's icon. Exec can also take a bash command (with arguments, optionally) as its value.

For a complete explanation of the .desktop format, see this specification.


PDF metadata viewer / tag editor for Ubuntu

View pdf metadata for a file called Example.pdf:

pdfinfo Example.pdf

Edit existing metadata in the terminal using nano editor:

pdftk Example.pdf dump_data output Metadata-output.txt
nano Metadata-output.txt

Update metadata:

pdftk Example.pdf update_info Metadata-output.txt output Example-new.pdf

Nano editor keyboard shortcuts
Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current location.
Use the keyboard combination Ctrl + X to exit nano.


I would like to set up a ubuntu OS on Amazon web server, how do I do this

You can choose one of preconfigured AMIs on your Amazon EC2 instance. There is one with Ubuntu Server 11.04 inside: https://aws.amazon.com/marketplace/pp/B007IJK9FM/ref=%20mkt_ste_ec2


Multiple tochpad drivers / disable touchpad while typing

Every master pointer has a Virtual Core XTEST slave. You need not disable that to disable your touchpad. Instead, you can simply disable the Synaptics one and it should be good enough. In this case,

sudo xinput disable 14

should do the job.


Why doesn't the Minimal image support UEFI?

The Ubuntu help only stated it lacks them:

  Note: While the minimal iso image is handy, it isn't useful for installing on UEFI-based systems that you want to run in UEFI mode. The mini iso lacks the proper files for booting the computer in UEFI mode. Thus, the computer will boot in BIOS compatibility mode, and the installation will be in BIOS mode.

And a bug report got triaged with a ....

  This issue can be fixed by copying the whole 'EFI' folder of http://cdimage.ubuntu.com/daily-live/current/wily-desktop-amd64.iso into the USB storage made by http://archive.ubuntu.com/ubuntu/dists/wily/main/installer-amd64/current/images/netboot/mini.iso.

Or use this how to.

... but there is no actual source stating why it lacks (U)EFI. I have not seen anyone claim it is due to a copyright issue (that was my 1st assumption). At the moment I would state: because nobody cared about adding it.


How to configure screen brightness when not using a laptop

I've used to use xgamma, from terminal:

myuser@mypc:~$ xgamma -gamma 0.8

I suppose the default gamma value is 1.0 (you can set greater values to brighter...). As far as I remember, the value is reset when you start a new session.


samba share not allowing username to be entered

Ok i'm not quite sure if i got your intended setup right.
But i would try this one:

[global]
...
security = user
guest account = jon

[webroot]
comment = Apache web root folder
path = /var/www
read only = No
create mask = 0777
directory mask = 0777
guest ok = Yes

If i provide no password for webroot => i'm jon
If i logon i'm the user that has logged on (don't forgett smbpasswd for every unix user you want to enable samba access.


Ubuntu EFI boot partition and Windows 8.1

There's no evidence of a Windows boot loader on your hard disk. I recommend you run a Windows recovery tool and tell it to re-install the Windows boot loader. Unfortunately, I can't be more precise about that because I'm not very familiar with the relevant tools. The result is likely to be that the computer will boot straight to Windows. You'll then need to open an Administrator Command Prompt window and type the following command:

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

This should set GRUB as the default boot loader. (If Secure Boot is active or if you think you might want to activate it, substitute shimx64.efi for grubx64.efi in that command.)


14.04 with pre-installed 12.04 in the same laptop (Live CD) [Installation]

Just start your computer with the 14.04 CD, start the installation and select to have it installed alongside your current installation when that question comes.


So I figured this out. There is another compiled terminfo directory in /lib/terminfo/. I only needed to copy the xterm file from there to the above directory, so:

sudo cp /lib/terminfo/x/xterm /usr/share/terminfo/x

The install dependancies of petalinux (which is really Yocto) include ncurses. I think that perhaps during the install process the terminfo xterm file either didn't get copied over to the appropriate directory, or maybe petalinux instructed the compiled file to be in this other directory. I don't know. Warning has stopped.


When I run lscpu, then what does "Stepping" mean?

It is a version number. The processor design is tweaked or fixed over the course of the product lifetime, and the stepping number identifies how old (or new) it is.

See also:

Stepping level on Wikipedia
What is the difference betwwen two Xeon CPUs with stepping 11 and 7?


I Installed Ubuntu 12.04 on a dell Inspiron 1501 along side windows vista using the windows installer but it wont boot into Ubuntu

A file installation after the installation of main setup will occur online(be sure about that your system must be connected to internet). After the installation please reboot your system and you will be able to run your Ubuntu 12.04 easily.


Bumblebee has stopped working since update to 14.04

Remove bumblebee and libvdpau-va-gl1

sudo apt-get purge bumblebee*
sudo apt-get purge libvdpau-va-gl1

install nvidia-prime and nVida drive and nvidia-settings 319

sudo apt-get install nvidia-319 nvidia-settings-319 nvidia-prime

and install prime indicator

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

Reboot.

http://www.webupd8.org/2013/12/more-work-to-support-nvidia-optimus.html


As the message says, you need to install the DKMS package first. So install it by typing:

sudo apt-get install dkms

I wouldn't advise that though. It's always better to download and install Virtualbox from https://www.virtualbox.org/wiki/Linux_Downloads.

The instructions are very detailed and you can add their repo, so that it gets updated automatically whenever needed. The latest versions do not need DKMS, so if you decide to use Virtualbox repos, you don't have to install it at all.


Upgrade from Ubuntu 17.04 to Ubuntu 18.04 - july 2018

First thank you all for your answers.
In the while I had found this suggestion and finally this is what I did.

1 First I edited /etc/apt/sources.list commenting out everything and then adding:

deb http://old-releases.ubuntu.com/ubuntu/ zesty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-proposed main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu artful  main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu artful  main-security restricted universe multiverse
deb http://security.ubuntu.com/ubuntu artful  main-updates restricted universe multiverse
deb http://security.ubuntu.com/ubuntu artful  main-backports restricted universe multiverse
deb http://security.ubuntu.com/ubuntu artful  main-proposed restricted universe multiverse

2 sudo apt update

3 sudo apt dist-upgrade

At this point it started downloading and installing and I realized that it was actually upgrading to 17.10 (artful).

4 reboot - At this point I had to fix the booting order of my efi system because somehow now it was looking first for a (nonexisting) windows boot loader-

5 Then, I have ubuntu MATE and I had read somewhere (sorry) yesterday that it was a good idea to reinstall mate-desktop at this point. So I started synaptic and I reinstalled mate-desktop and mate-desktop-common.

6 Reboot - actually reboot, then shutdown: it was late and I went to sleep ( I am on UTC+1 ). And, this morning:

7 First I commented out all "zesty" lines in /etc/apt/sources.list .
Then:

8 sudo apt update

9 sudo apt install update-manager-core

10 sudo do-release-upgrade

Well it worked. Now I am checking my installed software, but everything seems to work.


Can I install multiple database management systems on a same machine having ubuntu 18.04?

If you install different DBMS correctly, no general issues should be expected. But there could be specific issues bound with wrong configuration. If you want to install different versions of the same DBMS, then it is better to investigate and use docker for this purpose. But even now you could use it if you're afraid of something could be wrong with mariadb installation on your current system.


You can enable modules using a2enmod. For example:

a2enmod proxy

That command will create a symlink inside /etc/apache2/mods-enabled that points to the module in /etc/apache2/mods-available.

Likewise, to disable a module, use a2dismod. That command will remove the symlink from the mods-enabled directory.

Bonus tip: there exist similar commands to enable/disable sites: look at a2ensite and a2dissite.


For installing the nvidia driver correctly run these command in the following order:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install linux-headers-generic
sudo apt-get install linux-source
sudo apt-get dist-upgrade
sudo apt-get install nvidia-313
sudo reboot

I have used this commands succesfully on a GTX670 and a 315M.


After some time investigating this I have now found what is causing the problem.
It is OpenVPN that after a connection loss does not reconnect to the VPN server.
That should be a minor problem to fix.


How to trace/monitor the I/O of a Linux command

Indeed, as @zongfu pointed out, find does not cache its results in a file, but rather the kernel is caching the directories find is reading so they can be read again without touching the disk, which is why it is faster.  If you still want to see what kind of IO a program is doing though, you can use strace.  This program runs another program you specify and logs the system calls the program makes.  Without any arguments it will print them all, which can be a lot of information, so you man want to limit it to only certain calls, such as open() so you can see what files the program is going to open.  This would look like:

strace -eopen someprogram


mouse selected text, text that is deleted

Found out that the bug is with "ibus" input.

Didn't find a way to fix it. So in the end I switch to fcitx and that fixed my problem.


Starting with iTunes 7 Apple started encrypting access to DAAP to stop this kind of feature. Unfortunately there's not much application developers can do.

Here's a bug report in Ubuntu with information.

Some players (such as Banshee) have an informational page explaining to the user why it can't connect. Filing a bug on rhythmbox to explain why it can't connect would probably be prudent so it doesn't just give you an inexplicable error.


Install the ibus-m17n package, log out from the session, and log in again. Then you should be able to select Persian from IBus Preferences.


Support for cores revision ox17 and ox18 disabled by module param allsupport=0. Try b43 allsupport =1

This is an odd one - I found a post in an Arch Linux forum indicating that this could be loaded with modprobe

If you cannot get your system to boot fully you will need to boot into recovery mode (terminal mode), mount your drive with RW permissions, and create the file /etc/modprobe.d/local-b43.conf

The contents of the file should be

# Activate experimental support for some hardware revisions
options b43 allhwsupport=1

Following this you will need to reboot.

If you can get into your system, then you still need to create the file as above, but you could force the module to reload with sudo rmmod b43 && sudo modprobe b43


Can't see my system-drive - where is it?

Posted by @RD_RU:

  Problem solved - I didn't realise that i have to click at the "file system" (or however its called in english) - link.


How to install gcc-4.7-arm-linux-gnueabihf on Ubuntu 12.04?

Unexpectedly, I found a solution:

Add 13.10's apt source into /etc/apt/sources.list

deb http://cz.archive.ubuntu.com/ubuntu raring main universe

Then you can install it with

sudo apt-get install gcc-4.7-arm-linux-gnueabihf


How to remove build-essential manually when it is part of another package?

The "nagios plugin" you installed probably lists build-essential as a dependency.

The most common reason a package would list build-essential as a dependency is if that package compiles some source code as part of its installation procedure.  Depending on build-essential is not common practice for packages provided by Ubuntu itself, which on the rare occasions they do require some compilation during install, would not include all of build-essential.

Assuming it's listed as a "requires" dependency there is no way to remove the dependency but leave the package that depends on it using APT. This is a constraint that is enforced by APT for the entire time the package is installed.

In theory if the build tools were only required when the package was installed but are no longer being used, you could forcibly remove the various files belonging to build-essential and things would probably continue to work.  But this is definitely not recommended as it will leave you with a system that, as far as APT/dpkg are concerned, is broken!

You say that you don't want build tools on a production server.  Is this for security reasons?  Because if so, simply not having particular tools available does not really enforce security.  For one, build tools don't give ordinary users any extra privileges - they're still restricted to the same parts of the filesystem they would be anyway.  They couldn't, for example, install code to run as superuser.  Also, regardless of what's installed system-wide a user could still install and run binary tools (such as compilers) inside his or her own home directories with their user privileges.


Try install OpenVPN and configure with Network Manager:

sudo apt-get install openvpn
sudo apt-get install --reinstall network-manager network-manager-gnome network-manager-openvpn network-manager-openvpn-gnome
sudo service network-manager restart

Then, open the Network Manager and add a new VPN Connection.

See this links:

http://torguard.net/knowledgebase.php?action=displayarticle&id=53
https://help.ubuntu.com/community/VPNClient


How to figure out the package version from "apt-cache show" output if there's two packages?

If you want to know which version you are using then use other tools:

dpkg -l nvidia-367

or :

apt-cache policy nvidia-367

With apt-cache it happens when there are two version of a software available  in repository.

You can also use apt show instead of apt-cache to get most recent versions info.

or specify version too:

apt-cache show package-name=1.17.1-1ubuntu1.1


Alternative to the desktop version: command line it would be...

$ gedit --version
gedit - Version 3.22.1


Can't access any functions after chown command

The apache command you tried is clearly the problem, it's caused all sorts of files to now be owned by www-data instead of root, your user and a bunch of other system users that operate the machine.

It would be very hard to try and recover the machine in it's current state and instead the best action to take is to reinstall. Make sure you back up all your files first by booting a liveCD or liveUSB. You may need another machine in order to make the equipment you need to do the recovery.

If you are having a really hard time, then seek out a local Ubuntu service person who can help. There are businesses that offer servicing now as well as individuals from LoCo teams around the world.


Unity launcher about:config does not show anything

Typing about:config from the "Super" menu doesn't run the plugin.  You can run it by pressing Alt+F2, then typing about:config.


Problems installing Ubuntu on an AMD motherboard with a Ryzen processor

The problem was the speed of the memory. Allthough it is DDR4 2400mHz the problem was solved when I clocked it down to 2133 mHz. Now the system is running and is rock solid.


"No root file system defined" error while installing ubuntu

Make sure that the partition file system you wish to install Linux, Ubuntu or Backtrack on it is ext4, ext3 or ext2, and not FAT32 or NTFS.

Then mount / on it:

During the installation process press "change" on the partition you wish to use
Make sure "do not use this partition" scroll is not chosen, scroll to ext4, ext3 or ext2
On the "mount" field write /
Click ok, then next a message will appear saying something like "swap area was not defined, do you wish to continue or choose a swap area?", click "ok" and continue or click "go back" and choose another partition and click change, on the file system scroll choose "swap" and click "ok" and next

This will solve both "no root file system is defined" and the "swap area" message, if you still get the swap area message then on step 4 mount /swap to the partition


Bitlocker volume not mounting after upgrade to 20.04

I managed to solve this problem by removing the dislocker package that was installed with apt:

sudo apt remove dislocker

Followed by installing the version from Github according to this post. The steps to do this:

sudo apt install git gcc cmake make libfuse-dev libmbedtls-dev ruby-dev
git clone https://github.com/Aorimn/dislocker.git
cd dislocker
cmake .
make
sudo make install

Then I unmounted the dislocker-file with sudo umount /mnt/OS and remounted all partitions according to the /etc/fstab file with sudo mount -a.
Problem solved.


internet Connection problem in ubuntu 12.04- pppoeconf

Setting up a DSL connection in Ubuntu 12.04 with Network Manager

Click the networking icon at the top right of the screen.
Click "Edit Connections..." from the drop-down menu.
Click on the "DSL" tab in the window that opens.
Click "Add"
Fill in as many details as were needed before.  If there is anything you don't know/you know is not needed, ignore it.


Alternative software to Freedom and/or Anti-Social?

Self Control  (Download Link)

From an OMG!Ubuntu! article

  Self Control allows you to ‘block access to incoming and/or outgoing mail servers and websites’ for a specified amount of time.


Disable IPv6 when connected to (specific) VPN network

Check your VPN interface with ifconfig. Denote your interface name.

Create a script in /etc/network/if-up.d, containing

#!/bin/sh

if [ "$IFACE" = "tun0" ]; then
  sysctl -w net.ipv6.conf.all.disable_ipv6=1
  sysctl -w net.ipv6.conf.default.disable_ipv6=1
fi

In case you use tap or another VPN interface replace the line

if [ "$IFACE" = "tun0" ]; then

with

if [ "$IFACE" = "tap0" ]; then

or

if [ "$IFACE" = "your_denoted_vpn_interface_name" ]; then


Where are the mythtv-setup backend start/stop scripts in 15.04

It turns out the web page is wrong.  What was throwing me off was that you can't use sudo (as suggested on the mythtv-setup page), that hangs the shutdown (I assume it's asking for the password on the terminal), you need to use kdesudo.


Bootable USB from casper / PinguyBuilder backup

mkusb is a great tool for making boot drives. The boot system works for both BIOS and UEFI. Following shows a method to clone an existing OS drive to USB.

Create a persistent USB drive using mkusb, use defaults, use any handy ISO.

Boot computer from a second live USB.

Using gparted delete the OS partition and the casper-rw partition from the persistent USB. Leave the NTFS data partition if you want a partition Windows and Linux can access. confirm there is room for the cloned partition.

Select the drive whose partition(s) you want to copy, right click the partition, select copy.

Select the Target drive and select the empty space, right click and paste.

After gparted is complete, copy the OS menuentry from boot/grub/grub.cfg of the new partition to be the first menuentry in the grub.cfg of the USB's boot partition.

The boot drive will not work as an installer drive.


How do I set a custom GNOME Shell theme permanently?

I simply followed the instructions given on this site:

http://www.techdrivein.com/2011/10/how-to-install-and-manage-gnome-shell.html

Simply put:

Install gnome-tweak-tool (e.g., sudo apt-get install gnome-tweak-tool in the Terminal)
Unzip a theme into the ~/.themes directory, e.g. ~/.themes/Faience/
Open gnome-tweak-tool (appears in the menu as "Advanced Settings")
Open the "Shell Extensions" section and set "User Themes Extension" to "ON"
Open the "Theme" section and select "Faience" (my theme) in the "Shell theme" dropdown list

I rebooted, and my theme remained the same.


It obviously means that the packge "software-center" could not be found. This may have many reasons.

Check the file /etc/apt/sources.list to see whether it contains a line like this:

deb http://*.archive.ubuntu.com/ ....
Where the * may have been replaced by a subdomain (like de., fr., etc.) or also can be omnitted.
If the line begins with a hash sign (#), remove that hash sign. Do not remove hash sign before text comments.
Update your repository index by using sudo apt-get update first, then try again.
If it fails, please post your file  /etc/apt/sources.list.


Ubuntu 16.04 Beta 1 - Will it be possible to upgrade to the standard release when it comes out?

There will be no need to upgrade.

Install regular updates and finally you will be on the stable Ubuntu 16.04


The solution suggested in this posting worked "Can't install libglew-dev because libcheese and libclutter don't have the required versions".  Was able to install qt4 after doing as suggested. Many thanks to Harris and David Foerster.

I tried to install libglew-dev and I had the same problem. I had to include the following packages to install it
sudo apt-get install  libglew-dev libcheese7 libcheese-gtk23 libclutter-gst-2.0-0 libcogl15 libclutter-gtk-1.0-0 libclutter-1.0-0
It will include then all the required packages.


Server installation fail because "bcache module not found"

It looks like the problem is with the "live" installer.

Working: ubuntu-18.04.2-server-amd64.iso
BUG: ubuntu-18.04.2-live-server-amd64.iso

I suppose the same scenario with 19.04

Working isos available at:

http://cdimage.ubuntu.com/releases/18.04.2/release/ubuntu-18.04.2-server-amd64.iso
http://cdimage.ubuntu.com/releases/19.04/release/ubuntu-19.04-server-amd64.iso


Is it possible yet to synchronise music to an iPhone running iOS 5/6?

Currently there is no linux software (or library) that can successfully read, write and update an iOS device's music library running iOS 5 or higher. All applications (that I know of), are dependent on libgpod for this functionality and libgpod has not worked properly with the current versions of iOS for some years now, ever since the database version (DBVersion) of the iTunes library within the device hit version 5.

Your best bet right now is iTunes via wine.


Changing alias or PATH when in certain directories

You could use a shell function in place of an alias, and have it conditionally add parameters depending on the value of $PWD
dc ()
{
    case $PWD in
        "path to/somedir")
            set -- foo bar "$@"
        ;;
        *)
            :
        ;;
    esac;
    docker-compose "$@"
}

See also In Bash, when to alias, when to script, and when to write a function?
Note that dc is also the name of a command-line calculator utility, so you might want to choose a different name.


Gnome shell can't save screen resolution

Probable Cause

I assume that your monitor reports the high screen resolution as being preferred; unfortunately this information is used by GNOME Shell on each login to reset the resolution.

How to Fix

I had the opposite problem: my monitor reported a lower preferred screen resolution (1280x1024) than the one I wanted to use (1600x1200). The fix I have used will hopefully be applicable analogously to your problem, though. Here’s what I did:

I ran xrandr -q to find out what the current preferred screen resolution is and what other screen resolutions (or rather “mode lines”) are available. In the output, the mode line marked with a + is the current prefferred one. It also matched the currently used one (marked with a *). Here’s the output for me (abbreviated):

Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 8192 x 8192
DVI-0 disconnected (normal left inverted right x axis y axis)
DIN disconnected (normal left inverted right x axis y axis)
DVI-1 connected primary 1280x1024+0+0 (normal left inverted right x axis y axis) 352mm x 264mm
   1280x1024      85.0*+   75.0     60.0
   1920x1440      60.0
   …
   1600x1200      85.0     75.0     70.0     65.0     60.0
   …

To override the preferred screen resolution, I have created the file /etc/X11/xorg.conf with the following content:

Section "Monitor"
    Identifier "DVI-1"
    Option "PreferredMode" "1600x1200"
EndSection

As you can see, I took both the monitor identifier DVI-1 and the new preferred mode line name 1600x1200 from the xrandr -q output. You should replace these values according to your own setup.

After a logout (or reboot), the new preferred mode line was automatically used for both my display manager and for GNOME Shell. The new (abbreviated) output of xrandr -q was the following:

Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 8192 x 8192
DVI-0 disconnected (normal left inverted right x axis y axis)
DIN disconnected (normal left inverted right x axis y axis)
DVI-1 connected primary 1600x1200+0+0 (normal left inverted right x axis y axis) 352mm x 264mm
   1600x1200      85.0*+   75.0     70.0     65.0     60.0
   1280x1024      85.0 +   75.0     60.0
   1920x1440      60.0
   …


Delete all files/folders from within a directory

rm -r /path/to/dir/*

- r  is for deleting also subdirectories
*   is for selecting all the files in the directory


run  xampp-linux-x64-1.8.3-4-installer.run as root user using sudo

cd ~/Desktop
sudo ./xampp-linux-x64-1.8.3-4-installer.run

Enter your password and hit Enter. You should see the installer.


Put the command to establish the tunnel in some script which is executed on boot. You could use /etc/rc.local, you could write your own init script in /etc/init or /etc/init.d, or more elegantly, you could write a script in /etc/network/if-up.d. The last option executes the script after the network interface comes up.


Unable to load dvb-usb-rtl2832u driver in Ubuntu 12.04

Try either:

 ambrosa / DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0

 tmair / DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0

I have a Terratec Cinergy TStick+ (ID 0ccd:00d7).

Neither of these worked for me, and I instead had to use media build driver.

However, your device may work ..


Notifications not showing up properly in Slack and other Electron apps

Following solution works for me

Run this command

  sudo touch /usr/lib/libunity-electron_notification_fix

After this, restart software whose notification are not working fine (Slack in my case). If still you are not getting notification properly, restart you system.

See this bug report, it is fixed in Electron but applications will need to be updated over time:

https://github.com/electron/electron/issues/465


Why can't I mount an f2fs partition on a HDD?

It seems that f2fs doesn't properly support large partitions.  I was able to create and mount an F2FS file system on a partition of 2 TBytes, but not a partition of 4 TBytes, even though mkfs.f2fs did not complain about the large partition size.


Find location of bash command binary file

You can use which letsencrypt or type letsencrypt.


LXQT session font in Ubuntu 20.04 looks big

I found the solution several days ago in the last post of this link: https://forum.manjaro.org/t/nvidia-proprietary-driver-ui-scaling-issue/38204/7
I did
sudo nano /etc/X11/nvidia.conf

Then edit the "screen" section by adding two options, "UseEdidDpi" "False" and "DPI" "96x96"
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Option "UseEdidDpi" "False"
        Option "DPI" "96x96"
    EndSubSection
EndSection


Rsync issue: some files/attrs were not transferred

Log the output to a file (using even more -v's to be even more verbose) and then grep for "rsync:". That should show you the exact files rsync is having trouble with.

Example of how to log:

sudo rsync -zvvvvh -e ssh —progress /my/old/server/from/ root@123.123.123.123:/my/new/server/to/ >&! /tmp/logfile.txt

The above works in tcsh. If you're using bash, I think you need 1> /tmp/logout.txt 2> /tmp/logerr.txt to redirect the output, but I'm not 100% sure.

You can also use |& tee /tmp/logfile.txt if you want to watch the output as it's generated. You may want to do this just to see if rsync is being too verbose, and cut down the number of -vs until you're happy with the output.


I am not sure about sources.list.distUpgrade, but the sources.list.save file is a backup of the sources.list file.  I know from personal experience (about 5 minutes ago) that the sources.list.save file is extremely important after attempting to add a repository.  If  software center stops working correctly (EX: closing right after starting) then you need to replace the current sources.list file with the sources.list.save file.

To do this, open a new terminal (CTRL+ALT+T) and type the command

sudo cp /etc/apt/sources.list.save /etc/apt/sources.list

and then

sudo apt-get update

This should fix the corrupt sources.list as long as sources.list.save exists in the /etc/apt/ directory.

Simply put, sources.list.save is just a backup file.


Video quality on Youtube (Firefox) is limited to 360p

Head to about:config page and check if the following keys are set to true:

media.mediasource.enabled
media.mediasource.mp4.enabled
media.mediasource.webm.enabled

After that, install the packages gstreamer1.0-libav and gstreamer1.0-plugins-good with

sudo apt-get install gstreamer1.0-libav gstreamer1.0-plugins-good

Restart Firefox and go to https://www.youtube.com/html5. You should see something like the following image:

This solution worked for me and I didn't have to install any third-party software such as FlashPlayer or Firefox Extension. I've came up with this solution by looking at the Arch Linux Wiki > Firefox Tweaks > Enable Additional Media Codecs.


Looks like the only supported solution to play back recordings made with that software is to export to another format, because known players like VLC Media Player and MPlayer don't support the format due to it's proprietary nature and lack of support from the manufacturer to provide a Linux version or documentation on how to decode the format.

If someone sends you .fbr files, kindly ask them convert them into .m4v/.mp4 or even better .webm.

  BB FlashBack stores its movies in FlashBack (FBR) format. If you want
  non-FlashBack users to be able to watch your movie, you'll need to
  export it to a standard format. BB FlashBack exports to QuickTime,
  Flash, MPEG4, AVI, Windows Media Video (WMV), and Executable (EXE).

Source: BB FlashBack FAQ

   Exporting to executable format is the worst thing, don't do that.


How to make Ubuntu Dock fully opaque (black, like the top bar) when apps are touching it/fullscreen?

Open Terminal and run the following command first to allow custom alpha values for the dock

gsettings set org.gnome.shell.extensions.dash-to-dock customize-alphas true

Then run the following to set the maximum alpha value to be 1 (i.e. completely opaque)

gsettings set org.gnome.shell.extensions.dash-to-dock max-alpha 1.0

Then log out and log in again.


Problem with a front end of compressed files

Change order of case code blocks and add a break after each one.

Like this:

#!/bin/bash

if test $# -ne 1
then
    echo "Numero de parametros incorrecto"
    echo "Uso del programa: $0 archivo"
    exit 1;
fi

case "$1" in
    *.tar.gz)
        tar xzvf "$1"
        break
    ;;
    *.bzip2.gz)
        tar xjvf "$1"
        break
    ;;
    *.gz)
        echo "gzip"
        echo "Descomprimiendo"
        gunzip "$1"
        break
    ;;
    *.bz2)
        echo "bzip2"
        echo "Descomprimiendo"
        bunzip2 "$1"
        break
    ;;
    *)
        echo "Unknown extension"
        break
    ;;
esac


Try switching to tty Ctrl+Alt+F1 and back with Ctrl+Alt+F7.


how to login mysql shell when mysql have no password

When a MySQL user is configured to use auth_socket (instead of mysql_native_password), as it is by default in Ubuntu 18.04, you can log-in as root (for example) in the following way:

sudo mysql -u'root'

or just:

sudo mysql

References:

Digital Ocean: How To Install MySQL on Ubuntu 18.04 - read Step 3


How to select text from random position to the first or last character in gedit?

Ctrl Shift Pos1/End actually does just that for me.
See also Gedit Help (F1) -> "Shortcut keys" -> "Shortcut keys for editing files"


Unable to adjust brightness in Ubuntu/Xubuntu/Lubuntu13.04

You can changing the brightness using the command line on this thread. It's not a perfect solution but it will allow you to give you control in adjusting. You can always write a bash script afterwards.

Source:
How to change LCD brightness from command line (or via script)?


sudo apt-get remove mysql-server-5.1
sudo apt-get purge mysql-common
sudo apt-get purge mysql-server-5.1
sudo apt-get autoremove
sudo apt-get clean

Install mysql-common first

sudo apt-get install mysql-common

Install the rest of mysql

sudo apt-get install mysql-server

Borrowed from the Ubuntu Forums here.

Please let me know if this helps!


ALSAMIXER SOLVED MY ISSUE !! MY HEADPHONE SOUND LEVEL WAS AT 0. AND NOW MY FRONT SOUND PANEL WORKING PERFECTLY ALRIGHT !!


How to get samba4 installed. Having compiling errors

Please notice that Ubuntu provides user-friendly documentation for each version that has been released and and is currently supported. In the server guide, which is part of the official documentation, you can find a chapter for Windows Networking which contains a section on how to set up a Domain Controller.

You are free to use other guides, of course. But you should know how to read and follow them and how they do apply to different distributions and skills of the reader. Most projects start their documentation with how to compile the software. However when you are using a distribution like Ubuntu that provides precompiled packages, you should install the provided packages instead, because maintaining a self compiled installation can be quite a burden, as you have to compile every update and sometimes even need to backport patches.

Also notice that Ubuntu comes with a precompiled Samba 4 (meta)package.


Hourly events in the firewall-log, originating from Ubuntu12.04-box. How to find the reason?

I found this Q&A and removed unity-scope-video-remote. Seems as if this was the solution to prevent my computer from sending the offending packets.
I still would like to know what would be the 'clean' way to find unnecessary/unwanted services/processes and to deactivate them.


A terminal which provides select-to-copy and right-click-to-paste

Most of the terminals seem to use copy on select and middle-button to paste selection, or emulated middle-button to paste (using both mouse buttons at once).   This is typical Unix behavior, and the emulation is the updated usage required by Microsoft-type mice with only two buttons or two buttons and a scrollwheel.

The mouse buttons could be remapped with xinput or other means.  This will differ from version to version and on different mouse models.  See the Ubuntu community documentation for that.

Also see this question, which is the reverse of the procedure you'd need.

Terminals I have that use select to copy and middle to paste include Gnome terminal, xfce terminal, Eterm, plain xterm, uxterm, rxvt, mrxvt, and aterm.  I'm sure there are others.

My primary terminal, terminator (use apt-get or the software center to install), lets you choose copy on select as an option (with a single click):

Open preference and click the 'copy on select' box :


I can adduser and login through the Terminal but not through the GUI

The adduser command sometimes does not correctly assign a password.  The other command to add users, useradd, does not prompt for a password.  In either case, if the password set is not recognized, you have to provide a password separately via the passwd command as superuser to replace the password.

From the terminal, run sudo passwd username where username is the new user you created.  Give them a password, then try and login.


In my case, changing the touchpad in the BIOS to simple made the trick. So it will work as a clickpad but no jittering. Also there is no right buttom as well. Also when it was happening I used to push Ctrl-F7 to disable it and enable it again so that the jittering stop.

After changing the touchpad to simple your xinput output should look like:

vicente at vicente-miniUbuntu in ~/Downloads $
→ xinput
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SYN1B7D:01 06CB:2991 UNKNOWN              id=11   [slave  pointer (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]

...

Check this link, in the comments they mention about your problem, apparently it is a hardware problem

Note that for the right click issue you can always trigger it by tapping with two fingers once.


Rebooting from Ubuntu server - minimal desktop installation

Don't know if you can do it from the GUI, but from the Terminal, sudo shutdown -r now will do the trick.

If you want to power the machine off, sudo shutdown -hP now - the h is for halt, and the P is for Power off.


How can I pipe the output of a bash or shell command to the clip board?

Install xsel either through the above link or through the terminal:

sudo apt-get install xsel

To copy the output of a command use:

*command* | xsel -ib

An example:

$ drush uli | xsel -ib

You can make it simpler by editing (create it if you don't already have it with touch ~/.bash_aliases) your ~/.bash_aliases file.
Add this line to it: alias clipboard = 'xsel -ib' (you can use any name, not just clipboard).

Once you've done so you can use: *command* | clipboard


Does swap file usage increase disk I/O and CPU load?

Swap is paging memory to disk. If you've got something that's shunting things into swap from RAM, you're going to see:

CPU use for determining what can go into swap
Disk IO and CPU while moving from physical to swap
CPU use for mapping running applications address space to its swap location
Disk IO from application accessing their swapped memory space.

How quantifiable these are or how much of an effect they have is completely debatable but follow Barney's one golden rule: More RAM is always better.


Can I install ubuntu on my computer by using a microSD card as installation media

Yes, it can work. Many USB card adapters can be booted from, but not all. There are even built in SD card slots, that you can boot from, but it is rather unusual.

I have a few card adapters, and I often boot PCs from them (both SD and micro SD cards plus adapters). One adapter works with some PCs, another adapter works with other PCs. Some work with USB3, some only with USB2.

So please try. Good luck :-)


cannot connect to vnc after vncserver install and restart

There is a known bug https://bugs.launchpad.net/ubuntu/+source/vnc4/+bug/1200451
This means that even a super use can't start vnc if the relevant configuration files are owned by a regular user.
Check with ls -la . on the home directory e.g. in my case:

ls -la .
drwxr-xr-x  2 wf   users      4096 Nov 10 10:57 .vnc

when I went out of super use mode i could run:

vncserver

to get:

New 'X' desktop is capri:1

Starting applications specified in /home/wf/.vnc/xstartup
Log file is /home/wf/.vnc/capri:1.log


What should I do if I "installed" Ubuntu instead of just "trying" it?

Boot once again from the ubuntu live cd. Choose the "try Ubuntu" option. Press Ctrl + Alt + T. A terminal will pop up. Type

sudo add-apt-repository ppa:yannubuntu/boot-repair

press Enter; it'll ask for a password -> just press Enter; let it do its magic; then type

sudo apt-get update; sudo apt-get install -y os-uninstaller && os-uninstaller

Press Enter; wait for magic to happen. the App will pop up; choose the OS and click OK; and finally confirm your choice.

Shutdown your computer; remove live cd; reboot and enjoy windows


Why can't I compile GLIBC on Ubuntu 12.04?

The bug report is pretty obvious -- see the last two posts, especially.

The problem is that (their) GLIBC is incompatible with the FORTIFY_SOURCE option set by default by Ubuntu's gcc.

The better solution is to get the latest copy from trunk, where the problem has been fixed; alternately, unset (disable) that option in the makefile or before calling make with:

export CFLAGS=-U_FORTIFY_SOURCE


Modify actions when battery is critically low?

I have no idea how to do it for XFCE but for GNOME, you can change it by installing dconf-tools. Open dconf-editor Go to:

org > gnome > settings-daemon > plugins > power

and edit critical-battery-action value to nothing.

You can also un-check use-time-for-policy. Then your system won't use the time remaining as the criteria. It will be forced to use the percentage remaining. Takes care of a bug in ACPI.

There should be something similar for XFCE.


You can turn off the recording of file history in ubuntu.
Open System Settings and select Security & Privacy.
Simply switch OFF "Record file and application usage".
From this tab you are able to clear usage data as well.


Maybe this version of 'requests' does not link with your Python. You could try to install it for python3.5 by: pip3 install --upgrade --force-reinstall requests.
Please use virtual env instead of many copies of Python in the same operating system.

Please read for future:

Virtual Environments and Packages | Python 3.6.5rc1 documentation

Edited:
Check this out:

How do I detect and remove Python packages installed via pip? | Ask Ubuntu


How to setup a bridge with network-manager?

After searching and experimenting, I also can't find a way to use the network-manager UI to activate bridges that are set up using the network-manager UI (tested on 16.04 LTS).

However, after you set up the bridge interface in network-manager, you can use the nmcli command line tool to switch it on like so:

$ nmcli connection show
NAME                              UUID                                  TYPE             DEVICE
New bridge                        fcaca251-7425-4a09-af4b-9cdf022d1c8c  bridge           br0
Ethernet (br0 slave)              2deb668a-dce4-4295-af7b-529f34993aac  802-3-ethernet   --
Auto Ethernet                     e02fd57f-e0ef-4391-94c4-c886975d71e6  802-3-ethernet   --

$ nmcli connection up fcaca251-7425-4a09-af4b-9cdf022d1c8c
Connection successfully activated (master waiting for slaves) (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/11)
Connection successfully activated (master waiting for slaves) (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/11)

$ nmcli connection up 2deb668a-dce4-4295-af7b-529f34993aac
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/12)

I can't directly answer your question of, "What is supposed to happen?", but this avoids having to manually use brctl or edit /etc/network/interfaces, because you're doing everything through Network Manager (even if it's not all through the UI).


Trusty Software Updater does not propose updates from trusty-updates

Hm, this seems to be exactly what PhasedUpdates are. Also check out http://www.murraytwins.com/blog/?p=127 and http://lwn.net/Articles/563966/.

To summarize links above:

Ubuntu quietly introduced a new mechanism in its 13.04 release that progressively rolls out package updates, pushing each update to a small subset of the total user base first, then steadily scaling up, rather than publishing the update for everyone simultaneously.
On the client end, phased updates are implemented in the update-manager tool, which is Ubuntu's graphical update installation application. The other methods for updating a package, such as apt-get, are not affected by the phased update plan.
update-manager generates a random number between zero and one for each package, then compares it to the Phased-Update-Percentage value published on the server for that package. If update-manager's generated number is less than the published percentage, then the package will be added to the list of available updates that the user can install. Dependencies for a package are pulled in automatically.
One can opt out of the Phased Update process by adding the following to the configuration file /etc/apt/apt.conf:

Update-Manager::Never-Include-Phased-Updates “True”;

Here a one-liner to print all packages with the Phased-Update-Percentage tag:

apt-cache show ".*"|sed -r '/^Package:/h;/^Phased-Update-Percentage:/{H;x;s/\n/\n\t/;p};d'


How to enable natural scrolling on Ubuntu GNOME 16.04

what I did and it works for me is to add the line

xinput set-prop 10 278 1

into the .bashrc file.

sudo nano ~/.bashrc

Thanks for sharing the answer, i found your question while I was searching how to make my mouse with a Natural Scroll


VirtualBox USB Tablet not recognized in Ubuntu 12.04.4

In case this helps, it is working now after a reinstall. It might have been either upgrading VirtualBox to 4.3.10 or installation of the Guest additions.


Ethernet card works only after soft reboot (82579V on Xubuntu 18.04)

In Ubuntu 18.04 there is a new network configuration tool netplan. Netplan sometimes have some timeing issues.

Try to login and type

sudo netplan apply

and check ifconfig or ip address.

If your network is configured now, then you have this timeing problem.
If this is the case then you probably should read this
Netplan does not apply at startup


How do I remove a rar file that has stuck on the applications/places toolbar?

Hold the left alt key and right click the icon on the panel. You should see "remove from panel".


How can I keep Firefox and Thunderbird automatically being updated to the newest version?

As already commented, the versions of both Firefox and Thunderbird are up-to-date in any standard and fully updated Ubuntu 20.04 installation. Such request from your IT department seems overzealous and misinformed regarding the security issues in the real world.
There are many reason why LTS releases don't have the latest versions of the included software but web browsers are the exception and are always kept up-to-date with minimal delay.
The above notwithstanding there are ways of running newer versions of both in Ubuntu 20.04.
FIREFOX:
Ad the PPA for "Firefox-Next".
sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt update && sudo apt full-upgrade

This will update Firefox to the version being tested. At the time of this writing it'll update Firefox to version 89.xx.
THUNDERBIRD:
Unfortunately the same method can't be used for Thunderbird because the equivalent PPA is only for older releases and hasn't seen an update since 2018.
However, newer Thunderbird versions do exist in additional Ubuntu repositories (-proposed shouldn't usually be enabled). There are reasons for holding back some newer Thunderbird versions, discussed in this Q&A.
An alternative to both Firefox and Thunderbird is to use the Mozilla Security PPA:
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
sudo apt update && sudo apt full-upgrade


Ubuntu Server 14.04 - 64 bit version OK for old AMD64 machine?


Where does this floating text box come from?

I am not sure If that's what You're talking about, but:

For example in nautilus such box is a normal feature. When You have no focus on any item and You begin to write letters such a box appears. It is for searching of items.
Try to write two first letters of some item You have in Your Empathy list. Like 'Jo'
and press enter. Then it should mark for example name John. If that's what happened it is a normal feature.


Install Ubuntu 12.10 instead of Windows 8

Install Ubuntu with the usb/dvd. When you reach the partitioning part,

choose for "Something else". Then format the Windows 8 x64 partition and select as "/".
After installation, create a shortcut on your desktop to your NTFS partition or add it as a bookmark in Files (Nautilus).


See this official USB Bootable disk creation document from Ubuntu. There is an option to select which operating system you are using as well.


How can fix problems with Eclipse? Ubuntu 17.10

I recently had this issues and luckily I had a working install on 17.10 before installing the DBeaver plugin. It worked fine until I rebooted an attempted to load eclipse. I found that if you have DBeaver tab open it will not open in 17.10. The fix I came up with if you know you have DBeaver installed..

Change the name of your workspace to you can get a prompt to make a new one.
After you create a temp workspace
Go to Help>About Eclipse>Installation Detail
Uninstall DBeaver
Change workspace name back to original name
File>Switch Workspace > Other
Restart Eclipse Manually if it doesn't start on its own


Synaptik error “no touchpad found” at startup on DELL desktop

On the bar at the bottom of the screen. On the right hand side is a small arrow which if clicked
will display hidden icon. Richt click on the one that says synaptiks and select quit. Synaptiks will not load next time and the error message will disapear.


Okay, I think I figured out what is going on. The reboot did not cause the issue. It is that the blacklist conf file, that is created by the install of bcmwl-kernel-source, is wiped off by ubuntu upgrade.
I could use the b43 drivers itself but a quick check of download speeds show that bcmwl-kernel-source is faster. Just recreate this file if this happens to you.

wthankachan@wilson-E6420:/etc/modprobe.d$ cat blacklist-bcm43.conf

Warning: This file is autogenerated by bcmwl. All changes to this file will be lost.

blacklist b43
blacklist b43legacy
blacklist ssb
blacklist bcm43xx
blacklist brcm80211
blacklist brcmfmac
blacklist brcmsmac
blacklist bcma

Update 9/12/2015: The issue came back again :

[    3.181647] wl: module license 'MIXED/Proprietary' taints kernel.
[    3.181650] Disabling lock debugging due to kernel taint
[    3.185408] wl: module verification failed: signature and/or  required key missing - tainting kernel


Since upgrade to Natty, no longer automatically booting from drive at startup

Check your bios settings. Make sure they are set to the drive where you have ubuntu installed by default. Unfortunately the bios screens vary from computer to computer so it's hard to give detailed instructions.


How to install PgAdmin4 on Ubuntu 18.04 Server mode

When you type

vim ~/.pgadmin4/lib/python2.7/site-packages/pgadmin4/config_local.py

You said The terminal shows few blue dots on left side of the screen vertically, each line having one of left side corner and at the bottom right of screen it writes 1,1   All and terminal is halted.

I think this fine, at the bottom right of screen writes 1,1 ALL mean your cursor at 1 line 1 column on all text file.

When you try to save file, it raises error: "~/.pgadmin4/lib/python2.7/site-packages/pgadmin4/config_local.py" E212: Can't open file for writing. for save file using VIM try with type :w <filename> and exit with :quit.

After it's written and saved. execute your python file with sudo python config_local.py. see below.

And then when you run pgAdmin4.py the command, it raises error python: can't open file '/root/.pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py': [Error 2] No such file or directory. you get it error cause you doesn't know where pgAdmin4 data stored. check it with locate pgadmin4 and you can found it at /usr/local/bin/.. path. after that you can execute pgAdmin4.py see below.

If the output can showed like on your link. Congrats Sir, you can try the next steps on your link.

Hope this helps Sir.


Accomplishments installation problem, not showing trophies

Probably you do not have any accomplishments collections installed. Try installing the two official ones using:

sudo apt-get install ubuntu-community-accomplishments ubuntu-desktop-accomplishments

Afterwards, log out and then back in or kill the daemon using killall -9 twistd and then restart the Accomplishments Viewer.


Broadcom 802.11ac Ubuntu Driver made the Windows Wifi stop working

First of all: while reading your question, I was going to advise you to completely shut down your machine, remove the battery if it has one and finally the power chord.
Then wait for 1 second and then turn on and do a complete cold boot, but apparently, you've found that a normal cold boot solves your problem. ;-)
Why is this happening?
What you're experiencing is called an unintentional side-effect and you need to know more about the intricacies of the Broadcom chip-set to understand what's going on:

Broadcom chip-sets are not really WiFi chip-sets but DSPs who not only have drivers, but firmware as well: this means that the driver loads a piece of software in the computer's memory and another piece of software on the DSP chip itself.
Broadcom does not support Linux, but there is a bunch of hackers who do a tremendous (and extremely difficult) job of reverse-engineering the Broadcom firmware to make their drivers compatible with Linux, but couldn't care less about Windows compatibility.
Broadcom doesn't properly test their Windows drivers/firmware and just uses Microsoft update to push out stuff if anything fails.

What is actually happening?
The DSP chip's registers get set by the Linux drivers to work as robustly as possible under Linux, but your BIOS subsystem doesn't properly reset the DSP, nor does the Windows firmware written by Broadcom! As Broadcom doesn't care about Linux, they don't test whether their Windows firmware gets properly re-initialised after a warm boot whereas the Linux firmware does!
Symptoms:
Warm booting from Windows to Linux works, whereas to reboot from Linux to Windows, you need a cold boot!


Efficient way to get last modified/created files

You can use printf to print the date, %T@ gives you the modification time like a unix timestamp:

find . -type f -printf "%T@ %p\n" | sort -rn | head -n 10

On a folder with 250.000 files it takes 10 seconds.

Sidenote: To find the most recent file very quickly, you can use

find . -type f -printf "%T@\0%p\0" | gawk ' { if ($0>max) { max=$0; getline mostrecent } else getline } END{print mostrecent}' RS='\0'

This takes less than 2 seconds on 250.000 files.


Tips for getting videos to run smoother on my poor old laptop?

Pop into Menu -> Settings -> Settings Manager -> Window Manager Tweaks, click on Compositor and turn Compositing OFF...

This may help playback a little, failing that you could recode the movies to a simple .avi by using a program called Transmageddon which is very simple to use and in the repo's...

BTW, which graphic card does your laptop use ?


You will find everything inside /home/{user_name}/.config/skypeforlinux/ directory on Ubuntu 16.04. Let me know if it helps.


Install Soundconverter

and run Soundconverter from launcher or terminal

The default conversion is .ogg change this to mp3 going to edit-> preferences under type of results. Format to MP3 as follow:

Click on add folder and then select your music folder.  You may select the output folder on the above preference configuration before you clicking on convert.

Hope this will be done by two clicks :)


Why can I not activate ICC color profiles?

The profiles are activated, but are only applied to images with color profiles. It requires a restart of color-managed applications, such as Digikam. Why this is the case and why the 'Blue' profile is applied system-wide is unclear to me.