two finger scrolling causing a right click (ubuntu 15.04)

This is probably because your touch-pad device is confused between your Two Finger Drag action and the also valid Two Finger Tap action. You need to modify your configuration file for the touchpad, but first determine what device is installed. Check which touchpad driver you have.

From the terminal (to get a terminal window, do ctrl+alt+T):

$ xinput --list

to list yr Xorg session input devices (kbd+mouse+touchpad+etc.). You should get something like this, e.g. for the "SynPS/2 Synaptics" driver:

Virtual core pointer                  id=2  [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer      id=4  [slave  pointer  (2)]
⎜   ↳ USB Optical Mouse               id=10 [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad      id=12 [slave  pointer  (2)]
⎜   ↳ PS/2 Generic Mouse              id=13 [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)]
    ↳ Sleep Button                    id=8  [slave  keyboard (3)]
    ↳ ...

IDs will be different and listed devices too (as yr box is likely different from mine and I run Ubuntu 14.04.3).

Check that you have a pointing device with "TouchPad" in its name (id=12 in my case). In terminal type, replacing SynPS/2 Synaptics TouchPad with the fullname of yr touchpad device, as shown below:

$ xinput --list-props "SynPS/2 Synaptics TouchPad"

Spoiler: In terminal you may issue:

$ synclient -l
$ synclient TapButton2=0
$ synclient -l | grep TapButton2

to list set properties of yr TouchPad device and to disable yr two Finger Tap action in the case of the "SynPS/2 Synaptics TouchPad" driver.

To make that disabling permanent, you can easily adapt a solution from this or from (I just discovered it now on AU) @captainskyhawk's summary in this.

From your EDIT:

I am not certain of that but there could be a threshold setting issue with either the "Synaptics Finger" property. From www.x.org:

Option "FingerLow" "integer"  ( Property: "Synaptics Finger" ) ---
When finger pressure drops below this value, the driver counts it as a release.
Option "FingerHigh" "integer"  ( Property: "Synaptics Finger" ) ---
When finger pressure goes above this value, the driver counts it as a touch.
Option "FingerPress" "integer" ( Property: "Synaptics Finger" ) ---
When finger pressure goes above this value, the driver counts it as a press. Currently a press is equivalent to putting the touchpad in trackstick emulation mode.

The latter is set to 0.


Starting with something like this:

:~/testing/yourapp/yourapp$ find ./
./
./logs
./temp
./somenondescriptscript.sh
./aiml
./aiml/xmloraiml.aiml

If you have binary files (icons and other) you can hide them in the ./debian folder.

For now let's add a version number to yourapp and build the orig.tar.gz.

cd ..
mv yourapp yourapp-0.1
tar czfv yourapp_0.1.orig.tar.gz yourapp-0.1/
cd yourapp-0.1
mkdir debian
dch --create -v 0.1-1 --package yourapp

Finish your edits and save the changelog.

Dependencies:

Waits for OP response...

References:
Debian packaging guide
Another question


What is the reason application menus in the top bar are hidden by default?

Your question will be answered after you read this document. It is the basis of the design we are currently using. Thing is... this is all design so one person will see this as an excellent way of dealing with it and others strongly disagree.

For instance... Matthew Paul Thomas made a comment on the ayatana mailing list with some good arguments why it should not be this way.

Discussions about design tend to be long and someone just decided to go with this. Unity still needs to grow and it could be that this does not work as good as intended. If so 11.10 will have it in another fashion. Who knows :)


Please HELP ME get rid of this voice on my computer!

This is called Orca, aka the screen reader.  These options are always going to be found in accessibility options.

The shortcut to enable, and I assume disable, is Alt + Super + S.

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


Run a script on shutdown and not on reboot

Try putting the script in different runlevels.

/etc/rc0.d - While system shuts down.

/etc/rcS.d - While system boots

/etc/rc1.d - Working as singel user (user specific on login)

/etc/rc2.d - Working as multiple users

/etc/rc3.d bis /etc/rc5.d - not used in ubuntu

/etc/rc6.d - While system restarts


Virtualbox Ubuntu 16 guest, slow UI and animations

You may also try to enable 3d acceleration in VirtualBox

Select your VM on the LHS Settings -> Display - > Video tab, "Enable Features:" and check the Enable 3D Acceleration box Click OK

You may try to adjust video memory see the image with the settings below

https://nautilusmode.com/wp-content/uploads/2015/09/11_virtualbox_tutorial_settings_display_screen.png


Vmware Player disconnected my soundcard, how can I re-connect it?

I was able to sort out intermittent sound issues by disabling the HDMI output since I wasn't using it anyway. I posted an answer here with a how-to. If this works, then the problem wasn't with VMware, but an issue where Ubuntu prioritises HDMI over Analog (which was my problem).

If this solves the problem for you then maybe this should be edited or merged with the other question.


Almost every windows application/game can run on linux using an emulator/compatibility layer program.In that case,Wine seems to be the ideal solution.

Wine is a program that lets you,as I said above,run Windows games and apps.

Type in terminal:

sudo apt-get install wine

or go to Ubuntu Software Center and search for Wine.Then click install.

After installing right click the exe file of your game and click open With Wine Windows Compatibility Layer.Then the program will install and you will be running it on your ubuntu.

You can also check the page for Lineage 2 on the official wine website.


Where can I find the /dev/st tape drivers on Ubuntu?

It looks like the root of the issue is that AWS Ubuntu images don't seem to have a
linux-image-extra-$(uname -r) package.

I've found other linux-image-extra packages but none have a st.ko with the correct module format.

https://bugs.launchpad.net/ubuntu/+source/linux-aws/+bug/1678213


Problem with screen resolution on virtual box ubuntu14.04

Just virtualbox-guest-dkms is not enough.
In the link below they suggest also sudo apt-get install  virtualbox-guest-utils virtualbox-guest-x11


If you haven't found your favorite programs in WineDB, just try to start them anyway. Chances are, they will start and maybe even work. Don't forget to write a WineDB entry afterwards.
Although, here's MixMeister's entry:
http://appdb.winehq.org/objectManager.php?sClass=application&iId=1183


I've got the same wireless card, and the same problem over the last couple of weeks. I tried out several things to no avail.

As one guy wrote:

  "... the driver for your chip has yet not been released into the "mainstream", so purchasing an USB adapter might be an easier option than to spend several days trying to find a solution"

I am bound to agree with his statement, and will purchase an adapter as the one below if available in Europe:

https://www.thinkpenguin.com/gnu-linux/penguin-wireless-n-usb-adapter-gnu-linux-tpe-n150usb

UPDATE: it does seem to have brought some stability to wifi-adapter, using the following options:

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi power_save=0 swcrypto=1"

You can read more about it here:

Wifi losing connection, weak signal, Intel 7260 adapter


You need to restart the OS after installing to complete necessary configuration. It was just that.
If the message is recurring then you may need to address the issue, but as it was just a one time thing, it is safe to assume it was just because it needed a restart.


Ubuntu Trusty ppa package install not working

If you look at this web site you'll see the reason why you can't get it the normal PPA way, and how to get it another way... and here's a partial quote...

The Oracle JDK License has changed for releases starting April 16, 2019.

The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available here: https://www.oracle.com/technetwork/java/javase/overview/oracle-jdk-faqs.html

Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE 8u212. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle).

For this reason, THIS PPA IS DISCONTINUED (unless I find some way around this limitation).

Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK8). There are no actual Java files in this PPA.

Important -> Why Oracle Java 7 And 6 Installers No Longer Work: http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html

Update: Oracle Java 9 has reached end of life: http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html

The PPA supports Ubuntu 18.10, 18.04, 16.04, 14.04 and 12.04.

More info (and Ubuntu installation instructions):
- http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

Debian installation instructions:
- Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html

For Oracle Java 11, see a different PPA -> https://www.linuxuprising.com/2018/10/how-to-install-oracle-java-11-in-ubuntu.html


mmc0: error -110 whilst initialising SD card

Basically this error arises only when the SDcard got damaged. But as you mentioned its working, Please try the following steps and share your feedback.

Please check the output of dmesg or lsusb to check whether it detects the SD card.
Open the "Disk Utility" application and check whether your SD card is listed. If its listed, just click it -> Unmount Volume -> Format the Volume with suitable filesystem.
Also, try mounting the SD card on Windows and check whether it is working or not.

Also, you can downgrade your kernel by installing the old kernel / latest stable kernel version with sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove.

wget the latest stable kernal from Kernel Website and install it with sudo dpkg -i *.deb && sudo update-grub2

Please select the proper kernel while booting and check whether your SD card mounts well!


You can use Super Grub2 Disk to repair the boot section (in case that you deleted or corrupted grub when you deleted Ubuntu partition) as the description specifies:

  The primary purpose of Super GRUB2 Disk is to help you boot into an OS
  whose bootloader is broken. Second, and almost as important, is to be
  a tool to learn more about GRUB2 and the booting process.

http://www.supergrubdisk.org/super-grub2-disk/

Else, you can use a Windows Repair Disk if something more is broken in the Windows boot sequence.


Here's the instructions for adding the postgresql apt repository: https://wiki.postgresql.org/wiki/Apt

Quickstart

Import the repository key from http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc:

wget -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -

Edit /etc/apt/sources.list.d/pgdg.list. The distributions are called codename-pgdg. In the example, replace squeeze with the actual distribution you are using:

deb http://apt.postgresql.org/pub/repos/apt/ squeeze-pgdg main

Configure apt's package pinning to prefer the PGDG packages over the Debian ones in /etc/apt/preferences.d/pgdg.pref:

Package: *
Pin: release o=apt.postgresql.org
Pin-Priority: 500

Note: this will replace all your Debian/Ubuntu packages with available packages from the PGDG repository. If you do not want this, skip this step.
Update the package lists, and install the pgdg-keyring package to automatically get repository key updates:

sudo apt-get update
sudo apt-get install pgdg-keyring

Once you've added that repository, you can do sudo apt-get install postgresql-9.2


the system doesn't read .bashrc and .profile of a user in Ubuntu14.04

Problem solved.
I forgot to change the owner of the copied files.
also i change the environment of user2 from the default (sh) to bash, that solved the history problem.


As wodim says: you can't.
It has no real filesystem (it is not a block device) so you will have to rip it.


Removed Linux Kernels are still showing up in GRUB

Remove them with sudo purge-old-kernels (from byobu package), not but hand.
And execute sudo apt-get autoremove afterwards for removing obsolete packages (headers and images).

FIY, you can save this script anywhere and run as root:

$ cat `which purge-old-kernels`

#!/bin/sh
#
#    purge-old-kernels - remove old kernel packages
#    Copyright (C) 2012 Dustin Kirkland <kirkland@ubuntu.com>
#
#    Authors: Dustin Kirkland <kirkland@ubuntu.com>
#             Kees Cook <kees@ubuntu.com>
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, version 3 of the License.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Ensure we're running as root
if [ "$(id -u)" != 0 ]; then
    echo "ERROR: This script must run as root.  Hint..." 1>&2
    echo "  sudo $0 $@" 1>&2
    exit 1
fi

# NOTE: This script will ALWAYS keep the currently running kernel
# NOTE: Default is to keep 2 more, user overrides with --keep N
KEEP=2
# NOTE: Any unrecognized option will be passed straight through to apt
APT_OPTS=
while [ ! -z "$1" ]; do
    case "$1" in
        --keep)
            # User specified the number of kernels to keep
            KEEP="$2"
            shift 2
        ;;
        *)
            APT_OPTS="$APT_OPTS $1"
            shift 1
        ;;
    esac
done

# Build our list of kernel packages to purge
CANDIDATES=$(ls -tr /boot/vmlinuz-* | head -n -${KEEP} | grep -v "$(uname -r)$" | cut -d- -f2- | awk '{print "linux-image-" $0 " linux-headers-" $0}' )
for c in $CANDIDATES; do
    dpkg-query -s "$c" >/dev/null 2>&1 && PURGE="$PURGE $c"
done

if [ -z "$PURGE" ]; then
    echo "No kernels are eligible for removal"
    exit 0
fi

apt $APT_OPTS remove --purge $PURGE


If you refer to the minimize, maximize and close buttons: yes you can.
You can download windows border themes from: http://art.gnome.org/themes/metacity in which you will find several different styles for customizing those buttons.
If you prefer to use GTK and depending on the theme of your choice, some themes allow you to give a little bit more customization to its items. Simply go to System/Preferences/Appearance and clic on the "Customize" button of the "Theme" tab.
There is also a link which will lead you to the website I suggested above.
Here is a screenshot for you to see what I mean:

Additionally, you can use Emerald theme manager in order to have more stylized windows decorations and a little more control on the appearance of the items.
Simply install emerald and run the emerald --replace command in a terminal in order to change your windows decorator, then open your Emerald Theme Manager on which you will be able to easily manage and edit your themes.
Here is the Emerald theme manager in action:

In the next screenshot, I have changed my emerald theme in order to show you how emerald is handling the buttons that I refer (minimize, maximize, close, etc.) And I am showing the "Buttons" Tab inside of the "Edit Themes" section of emerald theme manager.

Further more, you can also create your own themes both for GTK and Emerald. You may find information on the related sections of the window decorator's website.
I hope this give you an idea and I am sorry if I misunderstood your question.
EDITED:
Well, after watching your comment now I understand what you mean.
For that purpose what you can do is to make a copy of the current png images for the theme you wish to change. "Ambiance" png images are inside of the

/usr/share/themes/Ambiance/metacity-1

This screenshot illustrates what I mean:

So I suggest you to make a copy of those files in a new folder and edit them using your favorite image manipulation program (gimp would be great) in order to change the hue, saturation and other things as you wish.
After that, drop the images back to the original folder but you will be in the need to run sudo nautilus in a terminal in order to be able to "paste" your edited images in the folder. After that you may need to restart (at least the X) in order to the changes to take effect.
In the next image I have opened the "close.png" png image in order to edit it. I am using the selection tool in gimp in order to change the "hue/lightness and saturation" of the selection to a different color. This tool can be reached in the "Colors" menu of Gimp.
Note:
As PNG files open in indexed mode by default, you might want to try converting the PNG into RGB mode (menu Image ➔ Mode ➔ RGB). Then change it using the Hue/Saturation/Value tool (menu Colors ➔ Hue-Saturation) and then converting it back into indexed before saving it.

REMEMBER: To make a backup of your files and good luck my friend!


The wifi is not working on my HP Pavilion x360 with Ubuntu 14.04

You have both of the helper modules loaded: hp-wmi and acer-wmi. I think you need one but not both. Let's see if your wireless switch properly responds if you remove the most likely candidate:

sudo -i
echo "blacklist acer-wmi"  >>  /etc/modprobe.d/blacklist.conf
modprobe -r acer-wmi
modprobe hp-wmi
exit

If this is effective, remove the previously ineffective blacklist:

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

Remove the incorrect line: blacklist hp-wmi, save and close the text editor.


How do we get NVidia to make nvidia-settings a less terrible piece of software?

The nvidia-settings tool is open-source (GPLv2 + BSD), so it's entirely possible for anyone to make it better.  I'm not sure how easily patches would be accepted by nVidia, but at worst you could fork  it.

The other option is to write a different front-end, disper from this answer takes that approach.

Both of these options are constrained by the interface exposed by the binary blob, so there'll be a limit to how much you can implement.  The blob's interface is reasonably good, though, so you could make a lot of progress without needing any explicit support from nVidia.


Choosing between Lucid and Squeeze packages?

Though I am not much aware of the differences they may pocess, I hope there may not be much difference between them. I will suggest you to go with the Ubuntu Lucid repository on Ubuntu 12.04 than a Debian Squeeze one.


How can I switch from using Rails 2 (packaged) to Rails 3 (RVM)?

So you want to uninstall Rails 2.3.14?

Try this: gem uninstall rails and it should show you all the versions and you pick the one you want to uninstall.

if that doesn't work try sudo apt-get remove rails

For more help try this thread as I'm in a similar boat trying to install rails correctly (just installed Ubuntu):

https://stackoverflow.com/questions/7154498/rails-v-returns-2-3-5-but-gem-uninstall-rails-offers-to-uninstall-version-3-1


Impossible to install MySQL 5.7 on Ubuntu 20.04

Try sudo apt-get update && sudo apt-get install mysql-server-5.7
For client sudo apt-get install mysql-client-5.7
Already tested on my lxc container and it's working.


Open a specific email in Mutt in just one command

You can call any function from the command line with the -e parameter. For example,

mutt -e "push 100\n\n"

will jump to, and show, the 100th message. The push command is emulates to keyboard input.

You can use a shell variable for the message number:

MEESAGE_INDEX=100
mutt -e "push ${MESSAGE_INDEX}\n\n"

Note that "message ID" is a unique field inside each email header, and not what you are referring to, which is the message index in the folder.


(Lenovo Thinkpad + ubuntu19.04) Touch pad not working

Here are two commands to fixed that, when stop work, press Ctrl + Alt + T to open the terminal, and type:

sudo rmmod psmouse
sudo modprobe psmouse

but I don't know how to automate this, if you find me let me know :)


Can't access Windows 10 after creating manual partitions and installing Ubuntu 15.10 Dual Boot

There are similar answers in other threads with the same issue but it is most likely a bios issue and your hard drive not knowing what to boot.
Try entering into bios. It's different on all computers but generally is del or f12. Make sure you assign your hard drive as the first boot or try resetting the values.


An old question, but maybe this helps.  From a terminal window,

gacutil -l | less

will list all of the assemblies in the Global Assembly Cache which is where the framework lives.  The list includes the version numbers.  My 14.04 install appears to contain versions 2.0, 3.5 and 4.0.  Note that these numbers don't include the final build number like Microsoft does.


New Ubuntu user, and I can't change the directory in the terminal

It is sometimes a good idea before changing directory to type ls first to list the contents of your current location so that you know the exact name of the directory you want to change to. I say this because typing cd Komodo-<version>-<platform> will probably not get you to the location as you need to edit it for the specific version and platform you have unpacked. When you cd to another location try just typing the first few characters of the next directory you want to go to then hit tab which should autocomplete the statement for you, this will prevent any missed characters or typos that may be causing you issue.

An easier way to install this package though would be with apt-get

Run the following commands and it should do the install for you.

sudo add-apt-repository ppa:mystic-mirage/komodo-edit
sudo apt-get update
sudo apt-get install komodo-edit


TL;DR: Theme overrides our styling.

Budgie has issues with the default Ubuntu themes, such as Radiance and Ambiance. Also note popovers will be transparent on Ubuntu 14.04 due to not having GTK 3.12 available.
Several themes unfortunately do things in incredibly inefficient ways, overriding many of the styling changes I implemented within Budgie..

I would recommend for now going with a more recent theme such as Numix or Vertex, or indeed even iris, which recently gained Budgie support. Not all themes from 3.10 work with our popover, despite us providing fallback support. It's just unavoidable as everyone uses different names for the same thing in their themes (@bg_color, @theme_bg_color ...)

I personally use Vertex, though of course this is entirely up to yourself :)

Edit: Please do not use the GNOME 3.12/Staging PPA with Budgie Desktop, due to a conflicting set of package names for differing mutter versions, Budgie will be non-installable.


Bash script that convert any output (text) to json form

free -k | { read
    read TITLE TOTAL USED REST
    echo "{\"Memory\":\"$(( 100 * $USED / $TOTAL ))\"}"
}

The output of free is piped to a compound command consisting of:
A first "read" which skips the first output line of "free".
A second "read" which reads the line we need, we need only the second and third value.
An echo which prints the line in the format you want including the calculation


If there is no way to find out from xcalib what your current setting is, you can create a helper file.

Put the following into a script, make it executable and assign a keyboard shortcut.

#!/bin/bash
if [ -f ~/.night_time ]; then
    xcalib -c
    rm ~/.night_time
else
    xcalib -co 40 -i -a
    touch ~/.night_time
fi


this old Ubuntu Ask question sounds similar to your problem.

how to interpret these errors from syslog

Hope this helps.


How do I show daily computer usage (in minutes) in the indicator panel?

"Creating it yourself" is easy if you drop the "indicator panel" requirement...

Otherwise, you'll have to start programming...

So the easy part: Press Ctrl+Alt+T and type uptime | cut --characters=14-18 and you'll see the time in hours since the computer was last booted.  If you turn on your machine every day, it will give you your exact computer usage using this simple procedure...

(And if you've typed it once, pressing ↑ brings it back)


Some of the information you are requesting can be gleaned from /var/log/syslog, e.g:

grep wlan /var/log/syslog

But the usefulness of that information also depends on how you are network connecting; dhcp  or static network connections, etc.


Muffled / Tin Can Sound on Lenovo X1 Carbon Gen 7 Ubuntu 19.10

Since I have found a solution, I would like to share it in hopes that it helps someone else. I have noticed that for my machine, the volume buttons were actually changing the Master volume in alsamixer. I don’t know why this wasn’t working before, but now when I change the PCM while keeping master maxed out in alsamixer, the volume level changes and the audio quality remains intact. All that was left was to make it so that the volume buttons change the PCM rather than the master volume. I did this by following this post. Although this post is for 16.04, it worked well for 19.10 as well. I will be following future updates for a better solution to this issue.


When i'm sending the mail it's not delivering to the recipent here is the log ........can anyone help me what i need to configure?

Simply specify a valid FROM email adress, or GMail will not accept to send.
Find some examples here: https://www.binarytides.com/linux-mailx-command/

echo "This is the message body" | mail -s "Subject: Test Mail" -aFrom:aN\<ValidSender@gmail.com\> recipient@domain.com

FYI, if you want to send email from scripts or command line with all advanced features, a good workaround could be to use the phpMailer library : attachments, html & text format, DKIM, SPF...

You may also review your PostFix configuration
/etc/postfix/sasl_passwd must contain your GMail account informations on a line looking like this:
[smtp.gmail.com]:587    username@gmail.com:password
/etc/postfix/main.cf must refer to the previous file with smtp_sasl_password_maps
Then use postmap to complie the sasl passwd file


I need to access my 15.10 desktop with remote access. How can I do so?

You can use VNC, which is a UI based remote desktop or you can look at PuTTY which is console based.

While VNC requires a serer to be installed on your desktop machine, PuTTY would use the ssh server running on your machine.


If I've understood you correctly, it appears to be possible to "fake it" by setting the logarithmic major interval to a value of

You will likely need to modify the axis number formating as well, to prevent the axis labels from showing as ugly decimal expansions - for example, setting it to 0 or 1 decimal place.


Prevent unity-settings-daemon from restarting in Ubuntu 14.04?

Check out /usr/share/upstart/sessions/unity-settings-daemon.conf

  description "The Unity Settings Daemon" author "Dimitri John Ledkov
  "

  start on started dbus and starting gnome-session INSTANCE!=GNOME stop
  on stopping gnome-session

  respawn

  exec /usr/lib/unity-settings-daemon/unity-settings-daemon

I' d comment out the respawn line.


How can I remove one of the two MATE panels without using the GUI?

After some trail and error, countless directory, file diff-ing, and also digging a little bit into Mate-Panel source code (panel.c), confirmed following:

Step to remove panel manually

(1) All objects of target panel have to be removed

Delete object's folder in ~/mateconf/app/panel/objects/
Delete object's reference from /apps/panel/general/object_id_list in ~/mateconf/app/general/%mateconf.xml

(2) All applets of target panel have to be removed

Delete applet's folder in ~/mateconf/app/panel/applets/
Delete applet's reference from /apps/panel/general/applet_id_list in ~/mateconf/app/general/%mateconf.xml

(3) Remove Panel

Delete panel's folder in ~/mateconf/app/panel/toplevels/
Delete panel's reference from /apps/panel/general/toplevel_id_list in ~/mateconf/app/general/%mateconf.xml

Long story short, following is the result

DEL_PANEL is panel to be deleted. Currently is set to top panel.

#!/bin/bash

PANEL_PATH="${HOME}/.mateconf/apps/panel"
DEL_PANEL='top_panel_screen0'

    echo 'DEBUG: Panel Path' ${PANEL_PATH}
    echo 'DEBUG: Panel to be deleted' ${DEL_PANEL}

# -- Get old toplevel id list

TOPLEVEL_ID_LIST_OLD=`mateconftool-2 -g /apps/panel/general/toplevel_id_list | cut -d\[ -f2 | cut -d\] -f1 | sed 's/,/ /g'`

    echo 'DEBUG: Old toplevel_id_list' ${TOPLEVEL_ID_LIST_OLD}

# -- Generate new toplevel id list

TOPLEVEL_ID_LIST_NEW=''
for i in ${TOPLEVEL_ID_LIST_OLD}
do
    if [[ "$DEL_PANEL" != *"${i}"* ]]
    then
        echo -e "DEBUG: \tKeep ${i}"
        TOPLEVEL_ID_LIST_NEW="${TOPLEVEL_ID_LIST_NEW} ${i}"
    else
        echo -e "DEBUG: \tDel  ${i}"
        # -- Delete panel folder
        rm -rf ${PANEL_PATH}/toplevels/${i}
    fi
done
TOPLEVEL_ID_LIST_NEW="[`echo ${TOPLEVEL_ID_LIST_NEW} | sed 's/ /,/g'`]"

# -- Apply new toplevel id list
mateconftool-2 -s /apps/panel/general/toplevel_id_list -t list --list-type=string "${TOPLEVEL_ID_LIST_NEW}"

    echo 'DEBUG: New toplevel_id_list' `mateconftool-2 -g /apps/panel/general/toplevel_id_list`

# - APPLETS
# -- Identify applet to be deleted

cd ${PANEL_PATH}/applets
DEL_APPLET=`grep -r ${DEL_PANEL} *|cut -d\/ -f1`

    echo 'DEBUG: DEL_APPLET' ; for i in ${DEL_APPLET} ; do echo -e "DEBUG: \t${i}" ; done

# -- Get old applet id list

APPLET_ID_LIST_OLD=`mateconftool-2 -g /apps/panel/general/applet_id_list | cut -d\[ -f2 | cut -d\] -f1 | sed 's/,/ /g'`

    echo 'DEBUG: Old applet_id_list' ${APPLET_ID_LIST_OLD}

# -- Generate new applet id list

APPLET_ID_LIST_NEW=''
for i in ${APPLET_ID_LIST_OLD}
do
    if [[ "$DEL_APPLET" != *"${i}"* ]]
    then
        echo -e "DEBUG: \tKeep ${i}"
        APPLET_ID_LIST_NEW="${APPLET_ID_LIST_NEW} ${i}"
    else
        echo -e "DEBUG: \tDel  ${i}"
        # -- Delete applet folder
        rm -rf ${PANEL_PATH}/applets/${i}
    fi
done
APPLET_ID_LIST_NEW="[`echo ${APPLET_ID_LIST_NEW} | sed 's/ /,/g'`]"

# -- Apply new applet id list
mateconftool-2 -s /apps/panel/general/applet_id_list -t list --list-type=string "${APPLET_ID_LIST_NEW}"

    echo 'DEBUG: New applet_id_list' `mateconftool-2 -g /apps/panel/general/applet_id_list`

# - OBJECTS
# -- Identify object to be deleted

cd ${PANEL_PATH}/objects
DEL_OBJECT=`grep -r ${DEL_PANEL} *|cut -d\/ -f1`

    echo 'DEBUG: DEL_OBJECT' ; for i in ${DEL_OBJECT} ; do echo -e "DEBUG: \t${i}" ; done

# -- Get old object id list

OBJECT_ID_LIST_OLD=`mateconftool-2 -g /apps/panel/general/object_id_list | cut -d\[ -f2 | cut -d\] -f1 | sed 's/,/ /g'`

    echo 'DEBUG: Old object_id_list' ${OBJECT_ID_LIST_OLD}

# -- Generate new object id list

OBJECT_ID_LIST_NEW=''
for i in ${OBJECT_ID_LIST_OLD}
do
    if [[ "$DEL_OBJECT" != *"${i}"* ]]
    then
        echo -e "DEBUG:\tKeep ${i}"
        OBJECT_ID_LIST_NEW="${OBJECT_ID_LIST_NEW} ${i}"
    else
        echo -e "DEBUG:\tDel  ${i}"
        # -- Delete object folder
        rm -rf ${PANEL_PATH}/objects/${i}
    fi
done
OBJECT_ID_LIST_NEW="[`echo ${OBJECT_ID_LIST_NEW} | sed 's/ /,/g'`]"

# -- Apply new object id list
mateconftool-2 -s /apps/panel/general/object_id_list -t list --list-type=string "${OBJECT_ID_LIST_NEW}"

    echo 'DEBUG: New applet_id_list' `mateconftool-2 -g /apps/panel/general/object_id_list`

Testing Environment

OS: Ubuntu 12.04 LTS
Mate Desktop: 1.4.x, Mate Official Repo for Ubuntu from here.


Internet Connects, but only works sporadically

Do:

echo "options iwlwifi 11n_disable=8" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwldvm
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi

Copy and paste for accuracy and
Watch for errors.

Also check the security encryption settings in both the computer wireless profile and the router. For home use we recommend WPA2-AES and avoid options related to TKIP.

Set IPV6 to ignore in network manager.


Are console and gnome applications using different sudoers file ?

Application permissions (eg, for update) are determined by PolicyKit rather than the sudoers file. I ran up against the same issue and it took a while to work out. Good documentation for this appears to be a bit lacking.

If you look in /etc/polkit-1/localauthority.conf.d there should be a file 51-ubuntu-admin.conf containing:

[Configuration]
AdminIdentities=unix-group:sudo;unix-group:admin

ie, members of the admin or sudo groups will be reported by PolicyKit as having administrator rights.

Either modify the AdminIdentities line in this file to

AdminIdentities=unix-user:YOURUSERNAME;unix-group:sudo;unix-group:admin

or create a new file, eg 52-local-admin.conf containing

[Configuration]
AdminIdentities=unix-user:YOURUSERNAME


Is it possible to temporarily disable notifications?

This is how I achieved it

Create a sh file called stopNotification.sh and paste this line

killall -s SIGSTOP notify-osd

Create another sh file and continueNotification.sh and paste following line

killall -s SIGCONT notify-osd

Then goto system settings > keyboard and assign a shortcut for it.

Simple :)


You click the shut down button then click restart:


Juju deployment fails due to "container failed to start" error

Trusty Charms only work on Trusty systems (Ubuntu 14.04). Precise Charms only work on Precise systems (Ubuntu 12.04). You're using LXC as provider on a 14.04 machine. Because LXC isn't complete virtualisation, LXC will not be able to create a precise machine on a Trusty host. This is the error you are getting. Juju tries to provision a new precise machine, but it fails, because it can only make Trusty machines on a Trusty host.

You can specify the series in the deploy command. The following command will deploy the trusty version of mysql.

juju deploy cs:trusty/mysql

If you don't specify which series (OS version), Juju uses the default-series. The default-series can be specified in environments.yaml for a new environment:

default-series: trusty

Or use the following command to change the default-series of an existing, already bootstrapped environment:

juju set-env "default-series=trusty"

source


Ubuntu Graphics Card and Installation Problems

I'm currently running 11.10 with no problems. I'm running an nVidia gpu and an AMD Phenom 965 II x 4 cpu. As for dual booting, that's what I do. So, yep... still possible. I'm not exactly sure what you mean by putting ubuntu on the spare internal w/ no os on it... Are you going to wipe the data from that drive? Are you going to use it strictly for Ubuntu?


Xfinity Modem can ping NIC; computer cannot ping modem

If your ethernet is using the r8169 driver, you should replace it with r8168-dkms using Synaptic. The r8169 driver is buggy.

Start Synaptic, click the RELOAD icon, then the SEARCH icon, type r8168-dkms, mark it for install, click the APPLY icon. Quit Synaptic. Reboot.

If you only have a command line to deal with, type sudo apt-get update, then sudo apt-get install dkms, then sudo apt-get install r8168-dkms. Then reboot.

Turn off secure boot in your BIOS.

Let me know how you do.

Cheers, Al


Using lvm and thin provisioning (thinpool) on a PV larger than 2T

To activate the snapshots, try adding "-K/--ignoreactivationskip"

Someone decided the default for snapshots on thin volumes is for setactivationskip to be 'yes'. You can disable the skipping permanently by running "lvchange --setactivationskip n" on each new snapshot.


Tried to log in into a public network and devices got screwed

At the initramfs prompt, type fsck -f /. Repeat if there are errors. Then type exit, and reboot the computer.

If that doesn't work for you, we'll do it the old-fashioned way...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


No output from some paginated commands (man, git log)

It seems like your alternative system is broken. You should be able to update the alternatives links with:

sudo update-alternatives --auto pager

After that, choose your favorite pager with:

sudo update-alternatives --config pager

If that doesn't do the trick you can set e.g.

export PAGER=/usr/bin/less

and both man and git log should respect and use that (while MANPAGER is used by man only, as you already discovered).

A short crash course on setting variables:

set a variable just for a single command, e.g.:

PAGER=/usr/bin/less man man

set a variable for the current terminal, e.g.:

export PAGER=/usr/bin/less

set a variable for every new terminal (though you can source the file with . ~/.bashrc in any existing terminal as well), e.g.:

PAGER=/usr/bin/less


After upgrade to 16.04, Postgresql 9.4 is broken

/var/lib/postgresql/9.4/main directory should exist. Try reinstalling postgres. The service require the main directory to be present in the installation directory.


Unable to load dynamic library mongodb.so using AMPPS on ubuntu 14.04

I've found the solution for this problem, I'm posting it here for other peoples to use it.

From the ldd command it looks like the binary is looking in /lib/x86_64-linux-gnu and not /usr/lib/x86_64-linux-gnu where you found the symlink.

Try running these and see if you still get the same error:

sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.6

sudo ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libssl.so.6

ln -s creates a symlink from the libssl.so.1.0.0 binary to libssl.so.6 filename in the /lib/x86_64-linux-gnu directory. sudo permissions are needed as /lib is a root directory.


If you do not plan to keep/transfer the information from your old hard drive then you can simply do the installation and overwrite the hard drive, there is nothing you have to do beforehand to prepare the hard drive.

If however there is information on the old hard drive that you would like to keep then I would suggest you backup the contents of that old hard drive before you do the installation.


I think you should check this link..

Check The Link

And for stopping and Starting we use service command--

service SCRIPT COMMAND [OPTIONS]
service --status-all

service --help | -h | --version

service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working directory set to /.
The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT. The supported values of COMMAND depend on the invoked script, service passes COMMAND and OPTIONS it to the init script unmodified. All scripts should support at least the start and stop commands. As a special case, if COMMAND is --full-restart, the script is run twice, first with the stop command, then with the start command.

service --status-all runs all init scripts, in alphabetical order, with the status command.

like in Case of ntp--

sudo service ntp stop
sudo service ntp start
sudo service ntp restart
sudo service ntp status


Backups (Deja Dup) is missing Nextcloud option in 20.04 LTS

Whew, that took some digging. The Déjà Dup team says that, as of 39.0, "Nextcloud accounts will now appear as webdav network server accounts." So the new way to use a Nextcloud storage location is to select "Network Server" and type in a URI using a dav or davs scheme.
For example: davs://example.com/remote.php/dav/files/USERNAME/ . Then it'll ask for the usual inputs: username (yes, even though it is in the URI), password, and encryption preference.
You can see a nearly correct URI in the Files app:

You can copy that URI and change the scheme to davs (or dav) to create a URI that will work in Deja Dup.
See also:

https://salsa.debian.org/gnome-team/deja-dup/-/blob/debian/master/NEWS.md#anchor-390
https://docs.nextcloud.com/server/19/user_manual/files/access_webdav.html#nextcloud-desktop-and-mobile-clients
https://bbs.archlinux.org/viewtopic.php?id=249942
and maybe also How do I use Ubuntu Backup (DejaDup) with Owncloud (WebDAV)?


How to restart nautilus without logging out?

To restart nautilus...

First, type the following in your terminal to quit nautilus:
nautilus -q or killall nautilus

Then, open nautilus via Unity menu (press the Super key) or using the run command (Alt + F2).


git branch not showing branches in terminal?

You need to make at least one commit before you can see the master branch listed by the git branch command.


I changed my username and it deleted everything in /media/. How do I repopulate it?

As far as I know, the /media directory in a fresh install is already empty and should have no effect on the Wifi.

If you absolutely have to do what that guide in the second link said, hunt down that Live USB Stick with the Ubuntu image on it and plug it into your machine. Once you plug it in (assuming you're using the Desktop version of Ubuntu), the drive should automatically mount at /media/<username>/<volname>. Then you can run the dpkg commands listed in the guide.


Ubutnu Tweak can be found at http://ubuntu-tweak.com/. Download the file and then click. It installs itself Center software.

Yes, by careless handling can damage the system ;-)


CURL not working but ping and nslookup yes working with local DNS server Ubuntu16.04

It turns out that the proxy - proxy.dev.com couldn't resolve the DNS record.
Hoping this answer would help to someone who has this unique situation - All the client configurations and DNS machines are right but the proxy not.


systemctl should be used run as root or with sudo systemctl.

PD: Same answer for the question you deleted.


rm -R ./~

That will make it look for ~ in the current folder.


This is the closes I got to anything regarding tutorials, documentation and examples:

Nux examples.

You can add it to your system with

bzr branch lp:~jaytaoko/nux/nux-samples

I sure hope someone has better links ;)


ntfsfix is a program to perform limited NTFS checking. While it won't fix all NTFS troubles, it will fix some problems.

First, ensure ntfs-3g is installed:

sudo apt-get install ntfs-3g

Now, run the following to try to repair:

sudo ntfsfix /dev/sda1

and let it try to fix things up.

If this fails, download and install testdisk. This is a bit more manual but will let you get at any important files that otherwise can't be recovered.

sudo apt-get install testdisk

and run it:

sudo testdisk

You will then see it scanning volumes and then you can select the correct volume. Follow guidelines for what keys do what at the bottom of the terminal window.

  All commands are in a terminal. When you open the terminal, wait until you see the prompt ubuntu@ubuntu:~$ before running the command. Since you are in a live CD, you will lose changes when you reboot. Consider installing Ubuntu to a larger external hard disk to have a permanent Ubuntu installation about.
  When you use sudo, it might prompt you for the password. On the live media it is ubuntu. If you install Ubuntu, it is your user password. When you type it, it will not be seen(not even ****)


Why does the time given by dmesg timestamps differ from the actual time (and output of `date`)?

This really isn't Ubuntu specific, but seems a reasonable place to put an answer, as this Q has been open a while.  Copy of answer from server fault:

To verify your theory (which, by the way, is sound), execute the following as root:

hwclock --show

This will show you your hardware clock on the server you are executing the command.

To synchronise your hardware clock with your system-time (which is managed by ntp), run the following command:

hwclock --systohc --utc

The last argument (--utc) tells hwclock to store the time in hardware clock in coordinated universal time.

Additionally, please keep in mind that man page for dmesg(1) say the following, so the behaviour you are experiencing is documented and valid:

   -T, --ctime
          Print human-readable timestamps.

          Be aware that the timestamp could be inaccurate!  The time
          source used for the logs is not updated after system
          SUSPEND/RESUME.


Significant increase in booting time after update in Ubuntu 14.04

Thanks for posting the boot chart.  I'm no expert but I noticed these issues:

Toward the start of the boot, there's a fsck followed by a mount operation that is taking a long time (over 20 seconds).  A fair bit of later stuff seems to be waiting for this operation.
Further on in the boot, there is what looks like gpu-manager running a "find" operation that is taking a long time.  I don't know why this would be, but a fair bit of later stuff (including lightdm, the graphical desktop) is waiting on this to finish.


If you're talking about the boot splash screen...

In terminal...

sudo update-alternatives --config default.plymouth # change to ubuntu splash

sudo update-alternatives --config text.plymouth # change to ubuntu text

sudo update-initramfs -u # update ramdisk

reboot


How to rename Ubuntu One folders? Locked by syncdaemon?

You would have to:

1) Stop syncing the folder to your computer

2) Rename it

Windows: quit ubuntuone-syncdaemon first by running the following command in Program Files\ubuntuone\dist: u1sdtool -q
Ubuntu: open system monitor, click the "Processes" tap, then perform killing the ubuntuone-syncdaemon.
On Ubuntu one app: un-tick the sync locally from the folder you want to rename.

3) From the ubuntu one site, remove the folder

4) Start syncing the new folder

Keep in mind that any other devices where this folder was synced will not rename it, and will stop syncing it as well.

The reupload renaming file check should be quick (15-20 min for 740MB), because the server already has a copy of your files.


Can anyone help me with installation of 18 bionic software in 16.4 ubuntu

Forcing Apt to install binaries using packages for another release is a terrible idea, and will probably lead to tears and recriminations. Don't do this. Package installations are a convenience but they have their limitations.

I've seen references to hacks that allow this (JDK 1.7 version hacks spring to mind) but they are all fraught with potential disaster. Let us not speak of them again.

Your non-hack solutions:

Build from source. This will require the dev-essentials package, along with some dev-essentials skills. If you go down this route you pretty much have to go ask for help from the maintainers of the application if you run into problems. Expect to iterate on this until it is done.
Install VirtualBox and create a 18.x VM and install the software package on that. You can even set up persistent shared directories between the Linux host and guest OS to make this almost seamless.

Based on another Answer, I felt compelled to leave you with this nugget of wisdom:

  Pinning

  (!) When pinning, you must ensure compatibility of packages by
  yourself since Debian does not guarantee it. Note that pinning is
  completely optional, and Debian does not encourage pinning without
  thorough consideration.

  (!) Seriously, don't do this. Doing this will break Debian and leave
  you with a system that doesn't work and can't be fixed. Use Backports
  instead!

Yeah. Don't do this. If Debian says not to do this thing, then Ubuntu shouldn't do it. This isn't Gentoo. (Oh snap!)


SSH stops working if command runs from local (logging in from OS X )

The problem is that ssh-agent running on your local machine is hanging, and preventing you from attempting to make another connection. I believe ssh-agent should exit when your ssh connection is terminated and the process ends, but for some reason the OS X implementation hangs. This instance of ssh-agent isn't available to other instances of your user, for security reasons.

The solution, which I believe would apply if this was happening in Ubuntu as well, is simply to kill the ssh-agent process when you're done with your ssh session, before starting another one.

If ssh-agent hanging turns out to be problem, you can automatically end it following your session with:

~$ ssh username@hostname && kill $(pgrep ssh-agent)

[EDIT]

That command is if the client you are connecting from has only one user using ssh, if you are making connections from a machine with multiple, concurrent ssh connections from different users. You'll want to use:

~$ ssh username@hostname && kill $(ps -U your_local_username | grep ssh-agent | grep -oP "^\d+")


share wired connection to wifi adapter ( external )

It does it automatically. Just create a hotspot with ubuntu. Go to System Settings>Network>Wireless The just use "Use as hotspot"


Locate files matching mimetype in a directory recursively via command line

Assuming you are on 14.04 (using python3), the small script below lists your files recursively in given directory. It identifies the file's mimetype by the file command, as described here

file --mime-type -b filename

additionally, you can extend the script by adding a command by using shutil (e.g. .move / .copy) at the same level as the print command.

Adding mimetypes

For a combined search, you can add (or remove) mimetypes to search for, by adding them to the filetypes -tuple.

The script

#!/usr/bin/env python3

import os
import subprocess

source_dir = "/path/to/directory"
filetypes = ("image", "video")

for root, dirs, files in os.walk(source_dir):
    for name in files:
        file = root+"/"+name
        ftype = subprocess.check_output(['file', '--mime-type', '-b', file]).decode('utf-8').strip()
        if ftype.split("/")[0] in filetypes:
            print(file)

How to use it

Copy the script into an empty file, set the directory to list (sourcedir) and the mimtype(s) to look for (filetypes), save it as list_files.py and run it by the command:

python3 /path/to/list_files.py


I ran to this also, with MAAS 1.9 (following OpenStack setup instructions at http://www.ubuntu.com/download/cloud/install-openstack-with-autopilot). Was able to workaround by commenting out this line right on my machine's filesystem (although in my setup it's line 115, I think it's 1.8/1.9 diff):

File "/usr/share/maas/maas/init.py", line 128, in
    object.setattr(django.conf.settings, "class", LazySettings)

After so doing the regiond has started emitting normal logs and the MAAS web page shows up correctly.

The line above seems to help disable some undesirable logs - unfortunately it also kills MAAS, so I figure commenting out is not so bad.


Why doesn't the chrome dev channel upgrade Chrome via apt-get upgrade anymore?

From http://www.ubuntuupdates.org/ppa/google_chrome?dist=stable:

Setup key with:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Setup repository with:

sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

Setup package with:

sudo apt-get update
sudo apt-get install google-chrome-unstable

Then you can get updates using sudo apt update && sudo apt upgrade


Problem creating lxc container on BQ M10

Usermode LXC is not supported on Linux 3.10, so the LXC back end of Libertine isn't even installed on that device.  If you try to force the tools to perform such an unsupported option, you get an error message telling you that the back end is not available.

The solution to this problem is don't force the tools to use an unsupported option.


It appears that the disk is too big for the BIOS on my system, so GRUB will not find the Linux boot partition and will create an error message.

Should your Linux partition be visible when running fdisk -l /dev/sda or using boot-repair from, say, Live USB, but is not visible when running ls from GRUB> rescue shell, you might have a similar problem. In that case, moving your Linux partition to the beginning of the drive, using GParted or any other software, and then making your Linux partition there might help.

Similar problem presented here.


When *.pyc files (related to their deb-packages) are created and how to recreate them?

I'm waiting for APT-based

It is not related to APT so that is going to take some time ;-)

  What is wrong?

Nothing.

  How to get *.pyc in their places?

If you really want to you could do it manually with py_compile.  From the python command line (replace {pyfile.py} for the one you want compiled):

>>> import py_compile
>>> py_compile.compile('{pyfile.py}')

There is also a command line method that allows to compile all in a directory with ...

python -m compileall .

There is not really a need to do so though: these get created as you use software on your machine. That is also why this has no relation to APT.

  Will my system work normally without these files?

Yes.

What actually happens: when a module is imported or when the source was changed, a .pyc file containing the compiled code will be created in the same directory as the .py file. This file is used to skip the compilation step for that module. Shaves of a few milliseconds on execution (not important for normal usages but imagine a webserver calling the same script 1000s of times within a seconds. Those milliseconds suddenly become important).

Regarding not seeing a .pyc file somewhere:

There are times when python can not compile. 1 example would be if you use a 2nd user that is not allowed to create a file in the location the compilation would be stored. Execution will not stop and then will  use the source (and not the compiled version) (Running a script is not considered an import; this is only done for modules).


/etc/apache2/sites-available/ hold all available sites with 1 file per site. The domains are inside the files.

/etc/apache2/sites-enabled holds the sites that are active. Again: the domains are inside the files. These files can be symlinks to /etc/apache2/sites-available/.

Example:

<VirtualHost xx.yyy.com:80>
    ServerAlias xx.yyy2.com
    ServerAlias xxxxx
    AddHandler cgi-script .cgi
    DocumentRoot /dir/dir/dir/
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>

    ErrorLog /var/log/apache2/error.log

    LogLevel warn

    CustomLog /var/log/apache2/access.log combined
    ServerSignature On
 </VirtualHost>

Try to keep files outside of /var/www/. /var is often not a separate partition and is also used for storing printer files and mysql files so if any of these 3 make it fill up your system using the machine to fix this problem might be more difficult than needed.

It also makes it easier when you need upgrade or re-install your system, add more space to your system or need to use several different operating systems.


Not sure if you're still looking for an answer, but I ran into this same issue and got it working.

I'm running Ubuntu Budgie 18.04.1 and it seemed to be missing the bolt package.

If you're also missing the package, running the command

sudo apt install bolt

and then a restart should give you the ability to access your thunderbolt settings.

And no, even with no devices plugged in, you should still be able to see the controls.

Edit: Another thing you can do is run lspci -tv and look to see if the thunderbolt ports are even recognized by the system.


Is there a "Live" Ubuntu version for Android phone?

Ubuntu can't be installed on an Android phone without wiping out the current installation.Please check that your phone supports Ubuntu or not.

If you want to try  Ubuntu  for phones,then install Ubuntu touch Emulator on your Ubuntu PC.


f.lux setup.py on xubuntu 16.04 results in error

cd xflux-gui && cp xflux xflux64

The previous answer is the wrong way round as there is no flux64 file to copy.


Ubuntu 17.04 Gnome Accounts, Google credential expired everytime

I was having the same issue, and after some searches I found this thread on Redhat's Bugzilla where someone offers a workaround that worked for me: https://bugzilla.redhat.com/show_bug.cgi?id=1340203#c27

To fix this particular case I had to run /usr/lib/gnome-online-accounts/goa-daemon --replace, and on that thread they explain how to run this automatically on every login (subsequent logins is where this issue pops up).

Hope this helps anyone running into this issue.

BTW, I'm running Ubuntu 18.04 LTS.


How can I auto-generate a filename for gnome-screenshot?

You can use the date command for the task of including the actual date and time into the filename. Let's see what we can find in the date man page:

  OPERANDS

   The following operands shall be supported:

   +format   When the format is specified, each conversion specifier shall
             be replaced in  the  standard  output  by  its  corresponding
             value.  All  other  characters  shall be copied to the output
             without change. The output shall always be terminated with  a
             <newline>.

  Conversion Specifications
                   %a      Locale's abbreviated weekday name.

             %A      Locale's full weekday name.

             %b      Locale's abbreviated month name.

             %B      Locale's full month name.

             %c      Locale's appropriate date and time representation.

             %C      Century  (a  year  divided by 100 and truncated to an
                     integer) as a decimal number [00,99].

             %d      Day of the month as a decimal number [01,31].

             %D      Date in the format mm/dd/yy.

             %e      Day of the month as a decimal number [1,31] in a two-
                     digit field with leading <space> character fill.

             %h      A synonym for %b.

             %H      Hour (24-hour clock) as a decimal number [00,23].

             %I      Hour (12-hour clock) as a decimal number [01,12].

             %j      Day of the year as a decimal number [001,366].

             %m      Month as a decimal number [01,12].

             %M      Minute as a decimal number [00,59].

             %n      A <newline>.

             %p      Locale's equivalent of either AM or PM.

             %r      12-hour  clock time [01,12] using the AM/PM notation;
                     in the POSIX locale,  this  shall  be  equivalent  to
                     %I:%M:%S %p.

             %S      Seconds as a decimal number [00,60].

             %t      A <tab>.

             %T      24-hour clock time [00,23] in the format HH:MM:SS.

             %u      Weekday as a decimal number [1,7] (1=Monday).

             %U      Week  of  the  year  (Sunday  as the first day of the
                     week) as a decimal number [00,53]. All days in a  new
                     year  preceding  the first Sunday shall be considered
                     to be in week 0.

             %V      Week of the year (Monday as  the  first  day  of  the
                     week)  as  a  decimal  number  [01,53].  If  the week
                     containing January 1 has four or more days in the new
                     year,  then it shall be considered week 1; otherwise,
                     it shall be the last week of the previous  year,  and
                     the next week shall be week 1.

             %w      Weekday as a decimal number [0,6] (0=Sunday).

             %W      Week  of  the  year  (Monday  as the first day of the
                     week) as a decimal number [00,53]. All days in a  new
                     year  preceding  the first Monday shall be considered
                     to be in week 0.

             %x      Locale's appropriate date representation.

             %X      Locale's appropriate time representation.

             %y      Year within century [00,99].

             %Y      Year with century as a decimal number.

             %Z      Timezone name, or no characters  if  no  timezone  is
                     determinable.

             %%      A <percent-sign> character.

             See  the  Base  Definitions  volume  of POSIX.1‐2008, Section
             7.3.5, LC_TIME for the conversion  specifier  values  in  the
             POSIX locale.

Since date can not have spaces formatted into its output you would have to use two date commands as shown below, first for the date you can use +\%Y.\%m.\%d as a parameter which will result in a date format like 2017.12.07 and for the time you can use +\%H:\%M:\%S which will result in a format like 20:37:18.

The clipboard option (-c) does not work together with the save as filename option (-f) of gnome-screenshot, so you have to choose either one. This command will do it (just edit the c back in if you need the clipboard, but then let the f and the filename out, both wont work together):

gnome-screenshot -af "Screenshot from $(date +\%Y.\%m.\%d) $(date +\%H:\%M:\%S).png"

It generates a file name like the following (just with the actual date and time you call this command at):

Screenshot from 2017.12.07 20:37:18.png

This will however store the file inside the directory you are currently in, to add a path like ~/Pictures you need to provide a full path since ~ does not get expanded inside the quotes. The following would save the files for example in your pictures folder:

gnome-screenshot -af "/home/$USER/Pictures/Screenshot from $(date +\%Y.\%m.\%d) $(date +\%H:\%M:\%S).png"

Or you get rid of the quotes which then would mean you can use the tilde (~) but then you have to escape all spaces in the name:

gnome-screenshot -af ~/Pictures/Screenshot\ from\ $(date +\%Y.\%m.\%d)\ $(date +\%H:\%M:\%S).png

See man date and man gnome-screenshot as well as Bash reference Manual for further details.


Ubuntu 16.04 LTS won't shutdown or restart

I also has this problem. but it's solved, when i replace my kernal to 4.4.15.

link for kernal 4.4.15

download the link on it.
if your computer is 64 bit download first 4 link.
and extract to a specific folder.
open a terminal from there.
and write the code.

sudo dpkg -i *.deb

that's all.....


How can I collect bug data to be submitted on another machine?

The "Filing bugs when off-line" section of the bug reporting community help can be applied here:

  First, on the target system, gather the information in a file:

  For a bug report about a system crash:

  apport-cli -p <package name> --save bug.crash
  For a bug report about any other issue:

  apport-cli -f -p <package name> --save bug.apport

  You will need to answer a few questions, which will vary depending on
  which package the bug report is about. Relevant system information,
  including the package name, is then saved on the target system, in the
  current directory. The extension indicates if it is a crash report or
  another kind of report. If you decide to rename the report file,
  please keep the .apport or .crash extension.

  When the file is ready, copy it to the system you intend to use for
  filing the report. There you can then file the report:

  ubuntu-bug -c <apport_file.extension>


What is the difference between Edubuntu and Ubuntu?

The Edubuntu website has a FAQ on this that points to a virtual tour so it might be a bit easier to see what Edubuntu is all about:

  Take the tour of Edubuntu. There are many school-related applications installed by default, including TuxPaint, TuxMath, and TuxTyping, among others. Edubuntu can also refer to the Classroom LTSP server, which is a thin client based system.

And indeed, Edubuntu is Ubuntu with some extra packages specifically targeted on education for young people. You can yourself install Ubuntu, add these 4 packages and except for the background you should have Edubuntu installed:

  Packages

ubuntu-edu-preschool - Preschool (< 5 years old)

blinken   KDE version of the Simon electronic memory game
gamine     an interactive game for young children
gcompris Educational games for small children
kanagram    jumble word puzzle for KDE
khangman   Hangman word puzzle for KDE
ktuberling    stamp drawing toy
tuxpaint   A paint program for young children

ubuntu-edu-primary - Primary (ages 6-12)

celestia-gnome     real-time visual space simulation (GNOME frontend)
gcompris     Educational games for small children
kalzium    periodic table and chemistry tools for KDE
kanagram     jumble word puzzle for KDE
kbruch     fraction learning aid for KDE
khangman     Hangman word puzzle for KDE
kig     interactive geometry tool for KDE
kmplot     mathematical function plotter for KDE
ktouch     touch typing tutor for KDE
ktuberling    stamp drawing toy
kturtle    Logo educational programming environment for KDE
kwordquiz    flashcard learning program for KDE
laby    Learn how to program with ants and spider webs
lybniz    mathematical function graph plotter
marble    globe and map widget
parley    vocabulary trainer for KDE
ri-li    a toy train simulation game
stellarium    real-time photo-realistic sky generator
step    interactive physical simulator for KDE
tuxmath    math game for kids with Tux
tuxpaint    A paint program for young children
tuxtype    Educational Typing Tutor Game Starring Tux

ubuntu-edu-secondary - Secondary (ages 13-18)

calibre    e-book converter and library management
celestia-gnome    real-time visual space simulation (GNOME frontend)
dia-gnome    Diagram editor (GNOME version)
inkscape    vector-based drawing program
kalzium    periodic table and chemistry tools for KDE
kbruch    fraction learning aid for KDE
kig    interactive geometry tool for KDE
kmplot    mathematical function plotter for KDE
ktouch    touch typing tutor for KDE
ktuberling    stamp drawing toy
kturtle    Logo educational programming environment for KDE
kwordquiz    flashcard learning program for KDE
laby    Learn how to program with ants and spider webs
lightspeed    Shows how objects moving at relativistic speeds look like
lybniz    mathematical function graph plotter
marble    globe and map widget
melting   compute the melting temperature of nucleic acid duplex
parley    vocabulary trainer for KDE
pencil    animation/drawing software
ri-li    a toy train simulation game
stellarium   real-time photo-realistic sky generator
step    interactive physical simulator for KDE

ubuntu-edu-tertiary - Tertiary (university level)

calibre     e-book converter and library management
celestia-gnome     real-time visual space simulation (GNOME frontend)
dia-gnome     Diagram editor (GNOME version)
inkscape     vector-based drawing program
kalzium     periodic table and chemistry tools for KDE
kmplot     mathematical function plotter for KDE
ktouch     touch typing tutor for KDE
kturtle     Logo educational programming environment for KDE
laby     Learn how to program with ants and spider webs
lightspeed     Shows how objects moving at relativistic speeds look like
lybniz     mathematical function graph plotter
marble     globe and map widget
melting     compute the melting temperature of nucleic acid duplex
pencil     animation/drawing software
stellarium     real-time photo-realistic sky generator
step     interactive physical simulator for KDE
yorick     interpreted language and scientific graphics

  More information

edubuntu.org has some screenshots.
edu.kde.org has an application overview with screenshots.


You need to install the package named curl.
To install it from terminal type as

sudo apt-get install curl


How do I tell if a command is running or waiting for user input?

There's several approaches:

Try signalling end of input:Without superuser privileges it is hard to know what is going on underneath the hood. What can be done is to press Ctrl+d. Terminals and utilities in canonical mode send all available text to read() syscall upon receiving EOT signal bound to this key combination, and if there's no input - read() returns negative exit status which most utilities accept as signal to exit. Therefore, if a utility is waiting for input it will exit upon receiving the key combination. Otherwise, the utility is either running tasks or is not written properly.
Spying on syscalls:If you do have superuser privilege, you can run strace in another terminal to see what is currently being done. For that you need to find out PID of the program. For instance, in another terminal tab run pgrep -f firefox which may 1234 as example and then sudo strace -f -p 1234. If the output you see is stuck on read() syscall, it means the command probably is waiting for input. Otherwise, if you see syscalls running by, then command is doing something else. See a related question for usage of strace to also figure out if the long running command has exited.
Use command's own methods: Among other things, such utilities as dd use signals. For instance, if you use kill -USR1 1234 (where 1234 is PID of the running dd command), it will print to stdout the amount of bytes currently processed. Of course, this requires knowing about such behavior of the command in the first place. The above two methods are more general, and don't require deep knowledge of each command's behavior ( though it's always best to know what you're actually executing - otherwise you risk running a command which may do damage ).


The DocumentRoot in Ubuntu's apache is /var/www/html so why would apache2.conf have part of it say ""

If the Directory directive is defined outside a VirtualHost directive the settings will apply to all virtual hosts.
Directory directives also apply to subdirectories

So all this does is applying these settings as a default to all subdirectories and  virtual hosts living inside /var/www
Since a single httpd instance often serves content for more then one domain, the directory structure often looks like this /var/www/[vhost]/html. So it makes sense to have a Directory directive like this to define sane standard values


installing 64bit 12.04 LTS along with 32bit window 7

I have recently installed ubuntu alongside windows 8.1 64 bits, when you choose "something else" option, you have to be sure that you have enough free space for two aditional partitions one ext4 partition and the swap partition, windows partitions look like dev/sdb 3 140 GB ntfs and dev/sdb 2 100 MB ntfs.


How to make windows button alone to open Main menu in KDE?

Edit: After some help from @DKBose I am 90% sure this is a duplicate of an older question:

How to activate application launcher using meta key

Relevant excerpts:

  Turned out I had modified the file ~/.config/kwinrc when I installed Latte
  dock and after I removed it, the meta key was no longer activating Plasma's
  application launcher.

  To enable it again open ~/.config/kwinrc and update the following section:

[ModifierOnlyShortcuts]
Meta=org.kde.plasmashell,/PlasmaShell,org.kde.PlasmaShell,activateLauncherMenu

  [ . . . ]

  Interesting! I don't have the [ModifierOnlyShortcuts] section in my
  ~/.config/kwinrc (Kubuntu 18.04) and the meta key works to activate the
  launcher.

and from the
linked forum post:

  You can try this oneliner:
  Code:

kwriteconfig5 --file kwinrc --group ModifierOnlyShortcuts --key Meta ""

  (it writes a config key in ~/.config/kwinrc that should prevent the meta key
  from opening the launcher...you may need to re-login into plasma for this to
  take effect. )

Below is the original answer relating to the default behavior in 18.04.

End of edit.

Plasma 5.8 and later exhibits this behavior by default.
If you have Plasma 5.8 or later installed
and the Super/Meta/Windows key does not open the application launcher,
this is because of an old configuration file.

As discussed in an older question,
if you have mapped it to something else,
setting the shortcut key to Alt-F1
automatically enables the super key
as a shortcut to open the application launcher.
Here it is for kickoff (a.k.a. Application Launcher):

and here it is for kicker (a.k.a. Application Menu):

I have verified that this works for both on my machine running 18.04. It looks like you are using kicker, so you should be able to enable this behavior on your machine.

This feature was announced at the time:

  Thanks to our Wayland effort, we can finally offer so-called “modifier-only
  shortcuts”, enabling you to open the application menu by just pressing the
  Meta key. Due to popular demand, this feature also got backported to the X11
  session.

https://kde.org/announcements/plasma-5.8.0.php

  Today I’m happy to announce that for the first time we were able to backport
  a new feature from our Wayland offerings to X11: modifier only shortcut
  support. This is one of the most often requested features in Plasma and I’m
  very happy that we finally have an implementation for it.

  Modifier only shortcuts mean that an action is triggered if one clicks a
  modifier key without any other key. By default the Meta (also known as super
  and windows) key triggers the main application launcher of your Plasma
  session. But the implementation is way more flexible and allows to use any
  modifier (ctrl, alt or shift) as a trigger for an action (currently
  configuration is only possible through manual modification of kwinrc).

https://blog.martin-graesslin.com/blog/2016/08/modifier-only-shortcuts-available-in-plasma-5-8/

Here are the commits in August 2016 that added this:

  Launch Plasma's launcher menu on meta modifier only shortcut by default

  Invokes org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.activateLauncherMenu.

https://phabricator.kde.org/D2357

https://github.com/KDE/kwin/commit/9b30cfef1d212ed2b40510a70d1f92c497f44398

  Add a dbus call to activate the "main" application launcher

  ShellCorona provides a new DBus method "activateLauncherMenu". If that is
  invoked it will look through all panels for an applet which has
  X-Plasma-Provides with org.kde.plasma.launchermenu. If that also has a global
  shortuct it gets activated and no further applet is searched.

  The idea behind this DBus call is to provide a way to KWin to activate the
  main appliction launcher when the Meta key is pressed.

https://phabricator.kde.org/D2356

https://github.com/KDE/plasma-workspace/commit/267b6a8dfb4ad3b4f9da010d2aeaeebec25c5c0f

Related:

How do I open the Application Launcher on KDE with just the meta ("Windows") key?
Kde use super key to show desktop
how to launch application launcher via latte dock using only Super key?
https://forum.kde.org/viewtopic.php?f=67&t=152924
https://forum.kde.org/viewtopic.php?f=89&t=39073
https://forum.kde.org/viewtopic.php?t=109635
https://forum.kde.org/viewtopic.php?t=39073
https://forum.kde.org/viewtopic.php?t=84602
https://forum.kde.org/viewtopic.php?t=90646
https://github.com/hanschen/ksuperkey
https://obviate.io/2012/03/08/kde-windows-key-to-open-kickoff-launcher/


Cleaning up yesterday's files via script

This is very simply done through find. The relevant options are:

   -mtime n
          File's data was last modified n*24 hours ago.  See the  comments
          for -atime to understand how rounding affects the interpretation
          of file modification times.
   -atime n
          File was last accessed n*24 hours ago.  When  find  figures  out
          how  many  24-hour  periods  ago the file was last accessed, any
          fractional part is ignored, so to match -atime +1, a file has to
          have been accessed at least two days ago.
   -exec command ;
          Execute  command;  true  if 0 status is returned.  All following
          arguments to find are taken to be arguments to the command until
          an  argument  consisting of `;' is encountered.  The string `{}'
          is replaced by the current file name being processed  everywhere
          it occurs in the arguments to the command, not just in arguments
          where it is alone, as in some versions of find.  Both  of  these
          constructions might need to be escaped (with a `\') or quoted to
          protect them from expansion by the shell.

So, to move all jpg files created in the snapshots directory in the last 24 hours, you would run

find /home/yourusername/snapshots/ -name '*jpg' -mtime +0 -exec mv {} /path/to/dest

The {} is replaced by each file name found. QUotes are not necessary since find deals with strange file names gracefully before executing the command. The +0 means "the file was last modified at least 1*24h ago as explained in the atime section quoted above.

If you want to move these to a directory whose name is yesterday's date, you'd have to create it (using the -p option so mkdir does not complain if the directory exists):

mkdir -p $(date -d yesterday +%F)

The date command will print yesterday's date in YYYY-MM-DD format. For example, 2014-06-18. You can combine the two commands into the same find -exec call (the \ after -mtime is only there for readability, it allows you to break a command into multiple lines):

find /home/yourusername/snapshots/ -name '*jpg' -mtime +0 \
 -exec bash -c "mkdir -p $(date -d yesterday +%F) && mv {} $(date -d yesterday +%F)" \;

So, to run this with cron, you could add a line like this to your crontab (run crontab -e):

0 9 * * * find /home/yourusername/snapshots/ -name '*jpg' -mtime +0 -exec bash -c "mkdir -p $(date -d yesterday +%F) && mv {} $(date -d yesterday +%F)" \;

The above would run the find command every day at 9 AM.


This is likely a configuration issue with the file /etc/samba/smb.conf on the machine with the shared directory. Add the following lines at the end of the Browsing/Identification section of smb.conf ...

netbios name = <hostname>
name resolve order = wins bcast lmhosts host
client lanman auth = yes
client ntlmv2 auth = no

The hostname of the server can be found by typing hostname at a terminal. After making the changes to smb.conf, restart the smbd and nmbd services (sudo service xxxx restart), and see if the share will show up in nautilus ok.

This tip from
http://forums.majorgeeks.com/showthread.php?t=270346


How can I make windows minimize using middle mouse button on title bar in Xubuntu?

Yes, this is possible- I have been experimenting with xdotool and xbindkeys, and they are mostly all you need to pull it off, so please enter

sudo apt-get install xdotool xbindkeys x11-utils xinput

Now, your middle mouse button is usually button 2, but you can check by using xev and clicking in the event tester box, or looking at the output of xinput. Enter xinput and that will list your devices, so note the id for your mouse and then enter

xinput list-props < device id >

to find details on your mouse buttons. You can always choose a different mouse button if your middle button doesn't register properly or is unavailable.

The xdotool command you need for what you want to do is:

xdotool getactivewindow windowminimize

This command minimises the active window; however this action must also be associated with mouse button 2 and the way to do that is to use xbindkeys. We place the above command in ~/.xbindkeysrc (see below) and associate it with the middle mouse button (b:2), so that the depressing of mouse button 2 triggers the xdotool command.

(This xdotool command will work in the terminal if executed and will minimize it, so showing that it is the necessary command for what you want.)

This entry must be placed in your ~/.xbindkeysrc:

"xdotool getactivewindow windowminimize"
b:2

The xdotool command must also be enclosed in quotes (as above) when placed in that file.

So that xbindkeys re-reads the file, you can clear current bindings with killall xbindkeys and then just execute xbindkeys to restart it.

Now your command will be available; xbindkeys doesn't seem to need to be put in startup for me, and you can run your command without rebooting; you can cancel it any time again by entering killall xbindkeys and then editing your ~/.xbindkeysrc.


NIC not starting after rebooting Ubuntu server 18.04.3

After changing some settings on CMOS of the computer NIC is working again.
Don't know why it showed up on the first time that I booted the computer with Ubuntu 18.04.


Is it possible to use Apple's Aqua as desktop environment on Linux?

It's not practical to port Aqua to another operating system because it's deeply integrated with the services provided by Mac OS X.  For example, it relies on Mach ports (an inter-process communication mechanism) to exchange data with the Quartz display server, neither of which are available under any other OS.

It might be possible to develop an entire OS emulation layer akin to WINE so you could run native Mac OS X programs on Linux, but my guess is it would lack the performance and stability you're looking for.


Try to forcely remove the unconfigured libssl1.0.0:i386 package,

sudo dpkg -P --force-all --force-remove-reinstreq libssl1.0.0:i386

Then fix the dependencies,

sudo apt-get install -f


As said by Rinzwind in the comments, it's a bug. Please mark yourself as affected. If you're not a member of launchpad, then please join launchpad and then mark yourself as being affected.


krusader - calculate size on spacebar press

You need version 2.7.0.

That option got deleted intentionally as it was ugly code but it got added back into Krusader with version 2.7.0.

Comment 3 in the bug report:

  Alex Bikadorov 2017-04-26 19:20:59 UTC

  Well, removing the "space key" feature was intended. My assumption was that it is not really needed: Instead of pressing space a lot of times you select all dirs at once and press the shortcut one time.
  I thought its a better solution - no waiting anymore for each dir - but I guess I was wrong.

Comment 21:

  szecsodimlaszlo 2018-05-30 16:28:43 UTC

  I can confirm that this issue is fixed in the version 2.7.0.

  Thank you, @Alex Bikadorov. I do appreciate your work.


How to identify proccesses by X11 display?

You can use ps -e for everything

or ps -T for tty

Example snippit :

$ ps -T
  PID  SPID TTY          TIME CMD
17764 17764 pts/0    00:00:00 bash
17815 17815 pts/0    00:00:00 ps

consult man ps for additional information

source


Installed drivers for my adapter but its not working

Your 0846:9014 device is supposed to work with the native driver mt7662u_sta. First, remove ndiswrapper:

sudo apt-get purge ndiswrapper-common
sudo apt-get purge ndiswrapper-utils-1.9

Now we'll build the new driver. With a temporary working internet connection and with the device unplugged:

sudo apt-get update
sudo apt-get install git
git clone https://github.com/jurobystricky/Netgear-A6210
cd Netgear-A6210
make
sudo make install

Plug in the device and let us have your report.

You have built the driver for your current kernel version only. When Update Manager installs a later kernel version, known as linux-image, recompile:

cd Netgear-A6210
make clean
make
sudo make install

Reboot.

Please retain the file and these instructions for that time.


Can running applications without sudo be harmful?

In Theory, every file you execute on your computer can cause harm, and can hold a key-logger.

This article reflection on trusting trust by Ken Thompson Actually says that you can't trust any software.

To what extent should one trust a statement that a program is free of Trojan horses? Perhaps it is more important to trust the people who wrote the software.

  Kenneth Lane "Ken" Thompson (born February 4, 1943), commonly referred
  to as ken in hacker circles, is an American pioneer of computer
  science. Having worked at Bell Labs for most of his career, Thompson
  designed and implemented the original Unix operating system. He also
  invented the B programming language, the direct predecessor to the C
  programming language, and was one of the creators and early developers
  of the Plan 9 operating systems. Since 2006, Thompson has worked at
  Google, where he co-invented the Go programming language.


CompizConfig Settings Manager not having any effect after 18.04 upgrade

Before you begin, please enable the Universe repository.

Unfortunately, 18.04 uses Gnome Shell instead of Unity and so Compiz doesn't work.

Fortunately, you can install the old Unity based Ubuntu desktop by running the following commands:

sudo apt update
sudo apt install ubuntu-unity-desktop unity-session unity-greeter

This will also install a lightdm session manager which will give you the more familiar login experience. When prompted, select lightdm from the list of session managers to replace the now default gdm session manager.

If you do not see that option, please run the following command to switch to lightdm:

sudo dpkg-reconfigure lightdm

and then select lightdm when prompted.

For a full list of additional packages like unity scopes and lenses, run the following command:

apt-cache search unity | grep -P '^unity'

Now, reboot and make sure to select the Unity session by clicking on the icon to the left of the login box when you log back in.

After you log back in, the CompizConfig Session Manager will work just like it used to.


How to delete all desktop environments except Unity?

Assuming you installed using the PPA referenced here, you can remove Cinnamon along with its dependencies using the following commands:

sudo apt-get install ppa-purge
sudo apt-get purge --auto-remove cinnamon
sudo apt-get autoremove
sudo ppa-purge ppa:gwendal-lebihan-dev/cinnamon-stable

To remove Xubuntu-Desktop and its associated packages:

sudo apt-get remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview bison blueman brltty-x11 catfish elementary-icon-theme exo-utils flex gigolo gimp gimp-data gmusicbrowser gnome-icon-theme-full gnome-system-tools gnome-time-admin gnumeric gnumeric-common gnumeric-doc gstreamer0.10-gnomevfs gthumb gthumb-data gtk2-engines-pixbuf gtk2-engines-xfce indicator-application-gtk2 indicator-messages-gtk2 indicator-sound-gtk2 indicator-status-provider-pidgin leafpad libabiword-2.8 libaiksaurus-1.2-0c2a libaiksaurus-1.2-data libaiksaurusgtk-1.2-0c2a libao-common libao4 libaudio-scrobbler-perl libbabl-0.0-0 libclutter-1.0-0 libclutter-1.0-common libclutter-gtk-1.0-0 libcogl-common libcogl5 libconfig-inifiles-perl libencode-locale-perl libept1 libexo-1-0 libexo-common libfile-listing-perl libfont-afm-perl libgarcon-1-0 libgarcon-common libgdome2-0 libgdome2-cpp-smart0c2a libgegl-0.0-0 libgimp2.0 libglade2-0 libgnomevfs2-extra libgoffice-0.8-8 libgoffice-0.8-8-common libgsf-1-114 libgsf-1-common libgstreamer-perl libgtk2-notify-perl libgtk2-trayicon-perl libgtkmathview0c2a libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libid3tag0 libido-0.1-0 libilmbase6 libio-socket-ssl-perl libjpeg-progs libkeybinder0 liblink-grammar4 libloudmouth1-0 liblwp-mediatypes-perl liblwp-protocol-https-perl libmad0 libmailtools-perl libnet-dbus-perl libnet-http-perl libnet-ssleay-perl liboobs-1-5 libopenexr6 libotr2 libots0 libpolkit-gtk-1-0 libsexy2 libtagc0 libthunarx-2-0 libtie-ixhash-perl libtimedate-perl libtumbler-1-0 liburi-perl libwv-1.2-3 libwww-perl libwww-robotrules-perl libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfce4util4 libxfcegui4-4 libxfconf-0-2 libxml-parser-perl libxml-twig-perl libxml-xpath-perl libxss1 lightdm-gtk-greeter link-grammar-dictionaries-en m4 mpg321 murrine-themes orage parole pastebinit pidgin pidgin-data pidgin-libnotify pidgin-microblog pidgin-otr plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text python-configobj python-glade2 quadrapassel ristretto screensaver-default-images synaptic system-tools-backends tango-icon-theme tango-icon-theme-common tcl8.5 thunar thunar-archive-plugin thunar-data thunar-media-tags-plugin thunar-volman ttf-droid ttf-lyx tumbler tumbler-common xchat xchat-common xfburn xfce-keyboard-shortcuts xfce4-appfinder xfce4-cpugraph-plugin xfce4-dict xfce4-fsguard-plugin xfce4-indicator-plugin xfce4-mailwatch-plugin xfce4-mixer xfce4-mount-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-utils xfce4-verve-plugin xfce4-volumed xfce4-weather-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4 xfwm4-themes xscreensaver xscreensaver-data xscreensaver-gl xubuntu-artwork xubuntu-default-settings xubuntu-desktop xubuntu-docs xubuntu-icon-theme xubuntu-wallpapers

To remove Lubuntu-Desktop and its associated packages:

sudo apt-get purge --auto-remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview  ace-of-penguins audacious audacious-plugins audacious-plugins-data blueman  chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg  elementary-icon-theme esound-common galculator gdebi gdebi-core  gecko-mediaplayer giblib1 gnome-icon-theme-full gnome-mplayer gnome-system-tools  gnome-time-admin gnumeric gnumeric-common gnumeric-doc gpicview  gtk2-engines-pixbuf guvcview hardinfo indicator-status-provider-pidgin leafpad  libaacs0 libabiword-2.9 libaudclient2 libaudcore1 libaudiofile1 libbinio1ldbl  libbluray1 libbs2b0 libcddb2 libcompfaceg1 libcue1 libencode-locale-perl  libept1.4.12 libesd0 libexo-1-0 libexo-common libexo-helpers  libfile-listing-perl libfluidsynth1 libfm-data libfm-gtk-data libfm-gtk1 libfm1  libfont-afm-perl libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgmlib0  libgmtk0 libgmtk0-data libgoffice-0.8-8 libgoffice-0.8-8-common libgringotts2  libgsf-1-114 libgsf-1-common libgtkmathview0c2a libguess1 libhtml-form-perl  libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl  libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl  libhttp-negotiate-perl libid3tag0 libimlib2 libio-socket-inet6-perl  libio-socket-ssl-perl libjpeg-progs libjpeg-turbo-progs liblink-grammar4  libloudmouth1-0 liblwp-mediatypes-perl liblwp-protocol-https-perl  libmailtools-perl libmcrypt4 libmenu-cache1 libmowgli2 libmpg123-0  libnet-dbus-perl libnet-http-perl libnet-ssleay-perl libobrender27 libobt0  libonig2 liboobs-1-5 libopts25 libots0 libpisock9 libresid-builder0c2a  libsidplay2 libsocket6-perl libtar0 libtidy-0.99-0 libtie-ixhash-perl  libtimedate-perl libuniconf4.6 liburi-perl libvdpau1 libwebcam0 libwv-1.2-4  libwvstreams4.6-base libwvstreams4.6-extras libwww-perl libwww-robotrules-perl  libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfce4util4 libxfconf-0-2  libxml-parser-perl libxml-twig-perl libxml-xpath-perl libxss1  lightdm-gtk-greeter link-grammar-dictionaries-en lm-sensors lubuntu-artwork  lubuntu-artwork-12-04 lubuntu-core lubuntu-default-settings lubuntu-desktop  lubuntu-icon-theme lubuntu-software-center lxappearance lxappearance-obconf  lxinput lxkeymap lxlauncher lxmenu-data lxpanel lxpanel-indicator-applet-plugin  lxrandr lxsession lxsession-edit lxshortcut lxtask lxterminal mplayer2 mtpaint  ntp obconf openbox openbox-themes osmo pcmanfm pidgin pidgin-data  pidgin-libnotify pidgin-microblog plymouth-theme-lubuntu-logo  plymouth-theme-lubuntu-text python-pysqlite2 python-xklavier scrot sylpheed  sylpheed-doc sylpheed-i18n sylpheed-plugins synaptic system-tools-backends  transmission ttf-lyx uvcdynctrl uvcdynctrl-data wvdial xfburn  xfce-keyboard-shortcuts xfce4-power-manager xfce4-power-manager-data xfconf  xfonts-100dpi xpad xscreensaver xscreensaver-data

To remove Gnome-Shell/Gnome-Fallback and its associated packages:

sudo apt-get purge --auto-remove alacarte cups-pk-helper gir1.2-accountsservice-1.0 gir1.2-caribou-1.0  gir1.2-clutter-1.0 gir1.2-cogl-1.0 gir1.2-coglpango-1.0 gir1.2-folks-0.6  gir1.2-gdesktopenums-3.0 gir1.2-gee-1.0 gir1.2-gjsdbus-1.0 gir1.2-gkbd-3.0  gir1.2-json-1.0 gir1.2-mutter-3.0 gir1.2-networkmanager-1.0  gir1.2-panelapplet-4.0 gir1.2-polkit-1.0 gir1.2-telepathyglib-0.12  gir1.2-telepathylogger-0.2 gir1.2-upowerglib-1.0 gir1.2-xkl-1.0 gjs  gnome-applets gnome-applets-data gnome-contacts gnome-icon-theme-full  gnome-panel gnome-panel-data gnome-session-fallback gnome-shell  gnome-shell-common gnome-themes-standard indicator-applet-complete  libcaribou-common libcaribou0 libclutter-1.0-0 libclutter-1.0-common  libcogl-common libcogl-pango0 libcogl9 libgjs0c libmozjs185-1.0 libmutter0  libpanel-applet-4-0 mutter-common python-gmenu

Clean up any now-unnecessary .deb packages and libraries:

sudo apt-get autoclean

Ensure that all package dependencies are still intact (while upgrading your existing packages):

sudo apt-get update && sudo apt-get dist-upgrade


Just change to the directory of the file and rename it to the original name without the .u1conflict extension.

or

If that doesn't work, turn off ubuntu one sync then change it.

Moving the file should be easy enough.


Wifi slows down when USB 3 hard drive plugged in

There is RF interference between USB 3.0 and 2.4 GHz wireless adapters.

See this report for more infromation.

This is not related to Ubuntu.


How do I add repo gpg keys as apt-key is deprecated?

apt-key never downloaded keys by itself. apt-key adv passed on options to gpg, and gpg did the actual downloading (apt-key is a complicated shell script that itself creates temporary scripts to run gpg). You can still use gpg to import keys, e.g. instead of apt-key adv --recv-keys, you'd do something like:
sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/foo.gpg --recv-keys 9658E8044A3AA3D6

Or instead of wget ... | apt-key add -:
wget -qO - https://example.com/somekey.gpg |
  sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/example.gpg --import -

Notes:

GnuPG will create trust stores in root's home directory. Use --homedir with some other part if you want to avoid that.
GnuPG creates keyrings in the new keybox format by default, and these don't work with apt, but using the gnupg-ring: prefix makes it uses the old format for some reason.

If your software already had keyrings installed in /usr/share/keyrings, then presumably their sources.list entries should have had something like [signed-by=/usr/share/keyrings/foo.gpg] (cf. the Debian Wiki).


Using ffmpeg (or avconv):

ffmpeg -ss 00:01:20 -t 00:01:20 -acodec copy -i /path/to/input.mp3 /path/to/output.mp3

which -ss determines start point and -t determines duration(rather than end time)


The first step of the instructions you're following says "First make sure you’re desktop working environment is at least 13.10 / saucy".

The PPA that you are trying to add currently only contains packages for Saucy, which accounts for the error you received.  While you could potentially rebuild those packages for 12.04, there are almost certainly other dependencies that are not satisfied by what is in that version.

It is possible that someone will backport Unity 8 to that version in the future, but while it is under heavy development, your best bet is to use what the developers are working with.


How do I unlock system tools such as users and date and time

The utilities for setting data and time work differently depending on getting a list by right clicking on the desktop which shows "Users" and "Date and Time", neither of which do not give me access for editing, and clicking on "Activities which provides a list of utilities including "Users and Groups" and "Time and Date" which I can edit.  Strange.


How to manually import the pool and exit in ZFS filesystem?

A bit late replay, but I want to pitch in how I ended up solving above problem:
Apparently, my hard disk my reaching its lifespan limit. This might not be in your case if you haven't experience this quite often as I did. There was always something wrong with my hard disk and it keep failing.
After discussing in several other communities and hard disk test, I came to a conclusion that its time to change hard.
So I bought SSD, reflash Ubuntu. Problem solved.


Check if a program is installed and how can I start it if it is not in the menu?

Please try to run them from the console:

Open a Terminal
type the name of the program in the terminal and press enter
observe the output for possible hints, what is going wrong


How do I configure a DNS server for Ubuntu Server 18.04 LTS?

First, I believe the yaml file needs to have consistent indentation. In your example (I'm copying your screenshot example here), you have a mix of 2 and 3 spaces indentation.
Your example:

network:
  ethernets
     enps0s10f0:
        dhcp4: no
        addresses: [192.168.1.42/24]
        gateway4: 192.168.1.1
        nameservers:
          addresses: [8.8.8.8, 8.8.4.4]

As you can see, for line no 2 & 9, you have 2 spaces indentation with previous level while lines 3-7 you have 3 spaces. It must be consistent. Keep 2 spaces.

Also, If I compare with my yaml file, 2nd line should be:

  version: 2

I think it should be like this:

network:
  version: 2
    ethernets:
      enps0s10f0:
        dhcp4: no
        addresses: [192.168.1.42/24]
        gateway4: 192.168.1.1
        nameservers:
          addresses: [8.8.8.8, 8.8.4.4]

You can get more details on netplan here:
https://netplan.io/


Load Ubuntu using boot options (by hitting F12 immediately after clicking power button during start)
(In those boot options you will find ubuntu.)
After loading ubuntu ,
goto terminal and install boot-repair using,

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

In boot-repair window click "advanced options"
In Main options set Default OS as windows / ubuntu (my case its ubuntu)
In other options make sure the "repair windows boot files" options is set.
click "Apply" and Reboot
You will have a Grub boot menu with both ubuntu and windows in it
Hope it helped!
Thank You :)