I found a solution. I had the same problem since I installed Ubuntu 14.04.

I run:
Ubuntu 14.04
Gigabyte motherboard
Core i7 920
GeForce GTX 275 (Nvidia GT200b)
12GB RAM
256G SSD

I resolved the problem by just changing the cable between the video card and the monitor from DVI cable to VGA cable. The video card has VGA, DVI, and HDMI outputs. For some reason, using the DVI port and cable to the monitor kept causing that "nouveau E Xorg failed to connect to idle channel 0xcccc0000" error.


Apt Upgrade AND Downgrade all packages to Current Release

I believe that you want to use ppa-purge

sudo ppa-purge ppa:name-of-ppa/to-be-purged

man ppa-purge indicates that this will "automatically down‐grading all packages in a given PPA back to the ubuntu versions."


After upgrade the system to 15.04 the LibreOffice does not wan't to start

Try to delete ~/.config/libreoffice

rm ~/.config/libreoffice

and restart LibreOffice


Open a Terminal window and type:

  sudo apt-get update
   sudo apt-get install hplip hplip-gui

You can now check printing status in the graphical interface of HP-Print utilities.


Installing AMD Catalyst 14.3 on Ubuntu 13.10-64bit

I've since found that using the "Unofficial Wiki for the AMD Linux Driver" is good for uninstalling any previous fglrx drivers, prior to installing new drivers.
http://wiki.cchtml.com/index.php/Ubuntu_Saucy_Installation_Guide#Removing_Catalyst.2Ffglrx

Then using the Installer Notes to do the automatic installation starting from the terminal, works the best and is quite simple.

Automatic Driver Installation Option

NOTE: The document uses "amd-driver-installer-x86.x86_64.run" as a generic reference to the AMD install file. You will need to replace the generic reference with the actual AMD Catalyst for Linux install file you wish to execute (e.g. amd-driver-installer-catalyst-13-4-x86.x86_64.run for Catalyst 13.4).

NOTE: You must be logged in with superuser privileges (as root or with sudo access) in order to successfully install the AMD Catalyst proprietary driver for Linux.

To install the AMD Catalyst proprietary driver using the Automatic option, follow these steps:

Open the terminal and navigate to the AMD Catalyst proprietary driver download.
Enter the command sudo sh ./amd-driver-installer-x86.x86_64.run to launch the AMD Catalyst proprietary driver installer and display the AMD Catalyst proprietary driver setup dialog box.

Select Install Driver and click Continue to display the AMD License Agreement.

NOTE: If a previous installation of AMD Catalyst proprietary driver is detected and required to be uninstalled, the below message appears instead of the AMD License Agreement. You should uninstall the older driver before installing this version.

Read the License Agreement and click I Agree to continue the installation, or Cancel to terminate the installation. The Mode of Installation Dialog Box is displayed after clicking on "I Agree".

Select Automatic and click Continue. The AMD Catalyst proprietary driver should now be installed, and the Installation Completed Dialog box also displayed.

Click Exit to close the AMD Catalyst proprietary driver installer.
Open the terminal and run:
For versions of X.Org newer than 7, /usr/bin/aticonfig --initial to configure the driver for your AMD product.
For versions of X.Org older than 7, /usr/X11R6/bin/aticonfig --initial to configure the driver for your AMD product.
Reboot your system. You should have successfully installed the AMD Catalyst proprietary driver for Linux.


I also had issues with my NVIDIA card (GTX 650 ti). Try the following:

Go to your console and press Ctrl+Alt+F1
Uninstall the drivers

sudo apt-get purge nvidia*

Install packages for your kernel

sudo apt-get install build-essential linux-source linux-headers-3.5.0-23-generic (That's my kernel, you get to know yours by typing uname -rin a terminal

A great PPA is provided by those guys. Those are more stable and reliable than in the official repos. Add them and do an update by using these commands:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates&&sudo apt-get update

Install drivers

sudo apt-get install nvidia-current

Check if your driver is installed correctly

lsmod | grep nvidia

If not, then you have to manually activate it:

sudo depmod -a

Load it

sudo modprobe nvidia_current

Restart

Hopefully it works for you!


How to avoid UEFI? Installation without UEFI? How to have Ubuntu 19 w/o UEFI?

Force non- UEFI installation
a completely different way to avoid UEFI when installing Ubuntu
works for Ubuntu 18.04 (subsequent upgrade to 20.04 without issues):
Install via MinimalCD !
https://help.ubuntu.com/community/Installation/MinimalCD
Quote from the Ubuntu
Official Documentation:
The minimal iso image isn't useful for installing on UEFI-based systems that you want to run in UEFI mode. The mini iso lacks the proper files for booting the computer in UEFI mode. Thus, the computer will boot in BIOS compatibility mode, and the installation will be in BIOS mode.

the installation will be in BIOS mode

this has proven to work.

you can choose your Display (XFCE4, Unity, Gnome, ...) during
installation

choosing server flavour during installation is provided by tasksel

no UEFI :-)   Ubuntu without UEFI


How can I remove icon of uninstalled application from application lens in Dash?

Well, with help from this askubuntu question I carried out the suggestion of florian-diesch to

grep cardapio ~/.local/share/applications/*

and there was cardapio.desktop. I deleted it and now the cardapio icon does not show up any more among the applications in dash.

Thank you all for your willingness to help me solve my problem.


Telnet escape character , norwegian keyboard

You can set up the escape character you want by passing the option  -e " your escapechar"

  -e escapechar -Sets the escape character to escapechar. If no character is supplied, no escape character will be used.  Entering the
  escape character while connected causes telnet to drop to command
  mode.


mysql-server-8.0 installation problem on Ubuntu 20.04

To have /etc/mysql/ files you need to have mysql-common package installed. I do not have any mysql server, but the next command shows which package provides what you need.

$ dpkg --list | grep mysql
ii  libmysqlclient21:amd64                        8.0.20-0ubuntu0.20.04.1             amd64        MySQL database client library
ii  mysql-common                                  5.8+1.0.5ubuntu2                    all          MySQL database common files, e.g. /etc/mysql/my.cnf

My /etc/mysql folder's content:

$ ls /etc/mysql/
conf.d  my.cnf  my.cnf.fallback

And also, if you want a complete reinstalling, use purge:

sudo apt purge mysql-server && sudo apt install mysql-server


nvcc fatal : Unsupported gpu architecture 'compute_20

As for me, I had to comment out the -gencode arch=compute_20 in Makefile.config:

CUDA_ARCH := -gencode arch=compute_30,code=sm_30 \
    -gencode arch=compute_35,code=sm_35 \
    -gencode arch=compute_50,code=sm_50

I stopped at 50 because CUDA's deviceQuery showed me Capability Major/Minor version number:

/usr/local/cuda/samples/bin/x86_64/linux/release/deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GTX 960M"
  CUDA Driver Version / Runtime Version          9.0 / 9.0
  CUDA Capability Major/Minor version number:    5.0
  Total amount of global memory:                 4044 MBytes (4240965632 bytes)
  ( 5) Multiprocessors, (128) CUDA Cores/MP:     640 CUDA Cores
  GPU Max Clock rate:                            1176 MHz (1.18 GHz)
....

Then compilation and tests went well.


Is the search bar in desktop Unity 8 really going to be on the right side?

I think the idea is that Unity will adapt itself to the different sort of screen it is running on and will change the location of the search text area so it is different on a phone and a laptop.


Ubuntu 14.04 Custom Unity Lenses don't appear in the dash

I've just installed the tpb lens. You can search with:

  tpb:your search

or

  torrent:your search

it doesn't add an icon at dash's bottom anymore. However, it's not finding anything for me :S (you can tell if it's been used displaying the Filters and making sure Torrent get highlighted)


What is the mediascanner-service and how to avoid getting it installed?

mediascanner2.0 is a package used in Unity 8 to discover media and then play it. For example, the Core Music App on Unity 8 uses mediascanner to scan the music directory(or any directory for that matter) and then play back music. Since Ubuntu is moving towards Unity 8, it is included by default in the Ubuntu iso.

mediascanner is scanning your whole hard drive to discover media, so the first time around, it will slow your computer. Eventually, it should cache its results, and then it will stop being so resource intensive.

You have two options to help fix your issues:

(Prefered solution)You can explicitly tell mediascanner to not attempt to scan a directory by creating a new fie and titling it .nomedia. Then, when mediascanner reaches this directory, it will not even bother to index it. In theory, you can do this for as many directories on you computer, and mediascanner should stop indexing them.
You can uninstall it, which in the short term(Until Unity 8 becomes default) will stop this from occurring, but you run the risk to running into dependency issues. Note: If you are doing Ubuntu SDK development, mediascanner is a dependency.

Hope this helped :)

Source


Cannot unlock session if user has no password

This seems to be a legitimate bug in lightdm, the program that manages the lock screen on Ubuntu 14.04 and later. I was able to reproduce this issue in Ubuntu 14.04.2.

I've filed a bug report with the lightdm project, you can find it here. Make sure to comment on the bug report if you've experienced this issue!

The workaround (as first mentioned by user Alcolo47 here) is to click the "Change User" button to return to the main login screen. Then you can log in as usual.


Problem installing Bumblebee on Ubuntu 10.10

10.10 is End of Life.
You should upgrade to 11.10 or newer to get continued support, and updated drivers. (11.04 is almost EOL, it will be end of life when 12.10 is released in October of 2012.)
Also, the PPA that LnxSlck referenced (in his now-deleted answer to this question) does not publish Maverick packages.  Also, PPAs cannot publish (new) Maverick or EOL-release packages (EOL being Jaunty, Maverick, and others), which is why there are no Maverick packages containing updated nvidia drivers in that PPA.
This answer is basically a copy of my answer to "Ubuntu 10.10 cannot get nVidia driver 260.19.12?", which is regarding the PPA which was referenced in another answer to this question.  This answer is supported by current information regarding LaunchPad and EOL release support for PPAs.  LaunchPad does not support EOL release packages in PPAs anymore, and new EOL-release packages cannot be uploaded to, or be built within, PPAs on Launchpad.


How to upgrade from 14.04 LTS or 15.10 to 16.04 from terminal

The easiest way is sudo do-release-upgrade.


My /Root says I only have like I am low on space, someone help me figure this out?

Because some of the space is reserved. You can check it by running
tune2fs -l /dev/sda6 | grep 'Reserved'

By default 5% will be reserved for the root, which is 260G * 0.05 = 13G. That means the available space to you is only ~247G. ext4 itself also needs some space for its metadata, so you're already almost full
To reduce the reserved space run tune2fs -m$PERCENT $PARTITION. For example to reduce it to 1% in your case run
tune2fs -m1 /dev/sda6

But it's only a temporary solution. Having a full disk is not a good idea anyway since there isn't enough space for a contiguous region for new files or to move old files around, so fragmentation will increase significantly. You should consider cleaning up your disk and/or upgrade disk space
See

Reserved space for root on a filesystem - why?
Partitioning - Is 5% reserved blocks required/recommended?


Using a custom list for autocompletion (e.g., a list of files)

Perhaps you want to try readline's menu-complete for tab-completion?

Try it in an interactive bash session by running

bind '"\C-i": menu-complete'

Then try typing cd followed by a space, then the tab key multiple times.

To make it permanent, put the following line in ~/.inputrc (the file does not exist by default):

"\C-i": menu-complete


MPlayer won't send audio output to bluetooth headset

I found a workaround on Unix.SE : in the first panel (Lecture in French) of pavucontrol

  there is a button to connect a sound source such as mplayer to a particular output device

Obviously a better way would to have PulseAudio switch automatically to the external audio.  It seems a common issue (see e.g. Make PulseAudio prefer external audio device or Automatically change Sound Input Output device), and proposed solutions (loading module-switch-on-connect) didn't seem to help in my case.


Integrate emesene with the messaging menu

If you're using emesene 1.6.* there is a plugin ( http://forum.emesene.org/index.php/topic,2501.0.html ). Instead if you are using emesene 2.0 (beta) it's already integrated by default.
Also the MeMenu integration is behind the corner..:)


filter lines containing a keyword and an ID if the ID appears on another line again

another awk way to keep the line order since of using grep

awk -F"[:,]" '/reqCompleted/ || /reqId/{
  dupsIDs[$(NF-1)]++
}END{
   for (x in dupsIDs)
     if (dupsIDs[x]==2) print x
}' infile |grep -f - infile

2016-09-27 GET /some/uri - reqId: 000-pat1-bgr, more text
2016-09-27 GET /some/uri - reqId: 0.215487, your favourite song
2016-09-27 reqCompleted: 0.215487, more characters
2016-09-27 reqCompleted: 000-pat1-bgr, more characters


Thinkpad Carbon X1 2019 (gen7) Wi-Fi on Ubuntu 18.04

Solved problem by removing the offending updated kernel (sudo apt purge linux-image-5.3.0-40-generic) and swearing not to update my kernel in the future (judge me, I know!)

If someone wants to dig in and try to solve the issue in a more graceful way, then have at it! This is satisfactory for me.

Other possibly relevant links:

Cannot detect wireless driver intel ac wireless 9560 [logs included]
Intel Wireless-AC 9560 WiFi not working in Ubuntu 16.04
https://certification.ubuntu.com/hardware/201904-26993
driver intel ac wireless 9560 Ubuntu 18
https://ubuntuforums.org/showthread.php?t=2400595
WiFi on ASUS ROG GX501 works with Ubuntu 18.04, fails on Ubuntu 16.04 (Intel Wireless AC 9560)

This answer was originally posted by Ryan Monroe inside the question.


Go to where I added in the arrow. It will show file, edit, view,history,tools,help when you hovern over the black area there.
The edit holds preferences.


I think that ubuntu 13.04 already comes with intel 4000 drivers... try to Displays menu and try to find the tv, if you can't maybe the hmdi driver isn't set. Have you already tried to contact samsung?


The login manager starts dbus via the Xsession scripts directory. If the use-session-dbus option is set for the Xsession, then the dbus Xsession script is loaded, and it runs dbus-launch --exit-with-session $session_command.


Sound disappear from time to time when plugging/unplugging 3.5 jack headphones

This happens to me as well, and the only solution I ever found was to brute force it with a bash script which I can conveniently execute with the command fixaudio. It does slightly more than just reloading alsa, but also restarts pulseaudio. It's not an ideal solution, I admit, but it works. I'm on 16.04 as well, with an XPS13.

#!/bin/bash
pulseaudio --kill
sudo alsa force-reload
pulseaudio --start

If this does work, you can save it as a file with no extension, make it executable, and place it in /bin/ to run whenever for a quick fix.


How do I disable a bottom panel with the list of open windows on GNOME 3?

The thing you're calling "Workspace dock" seems to be the list of open windows triggered by the Window List extension.

You can disable it from the "Extensions" section of (GNOME) Tweaks or this webpage: https://extensions.gnome.org/local/.

Also if your desktop looks like the following image, you have logged into a "GNOME Classic" session.


To resize partitions it is necessary before dismounting the partitions.
Padlock may not be appearing in GParted.
Boot the system using a live-pendrive.


I had the same problem until I changed the output log file location to /var/log instead of /var/log/samba. I'm not sure why, but it seems rsyslog on my system won't write a facility to a file outside /var/log.

Hope that helps, and if anyone knows how to configure ryslog to allow other locations it would be nice to know.


Multiple issues in one, Bios Password / Linux-windows dual boot /keyboard layout has me stuck!

Let suppose that your HDD is ok.  Clean Linux partitions completely. (format in ext.4)  Reinstall windows10 and once windows 10 is installed, you can install Ubuntu in dual boot.


Windows Boot Manager interfering with Kubuntu 18.04.1 installation on old netbook

Problem solved: The  "Linux Live USB Creator" was not copying all needed Files to the USB-stick, so I created a new bootable device with "Rufus" and now the installation is nearly complete.


Run:

gsettings set org.gnome.settings-daemon.plugins.power 'use-time-for-policy' 'false'

Works for various versions of Ubuntu from 11.10 to 17.10 at least.


Executable runs without sudo but not with sudo

Why sudo doesn't use your PATH

The reason sudo ignores your PATH variable is that it has its own secure_path, and it's fairly determined to use it.

If you sudo cat /etc/sudoers or just sudo grep secure /etc/sudoers, you'll see what this path is on your system. I have this line:

Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

The purpose of sudo's secure_path is to try to make it less likely that a user with sudo privilege will (accidentally) run dangerous code as root after their path has been modified, perhaps to include local directories.

It's possible to avoid sudo using the secure_path altogether by modifying /etc/sudoers to comment out that line, but that would be a bad idea because it removes a security measure, and it's also unnecessary because you can easily work around it in various preferable ways.

Getting sudo to use your PATH

To override the secure_path and make sudo use your PATH as currently defined, as muru commented, you can use:

sudo env PATH="$PATH" command

Note that the -E flag or merely assigning the variable do not work (on Ubuntu at least).

$ mkdir junk                            # create a test directory to add to PATH
$ echo "echo foo" > junk/useless        # create a harmless program
$ chmod u+x junk/useless                # make it executable
$ PATH="$PATH":~/junk                   # add directory to PATH

When adding to PATH, use the absolute path (the shell will expand ~ before assigning the variable). I don't need to export (and doing so does not help), because PATH is already exported, and changing its value will cause child processes to inherit the change too.

$ useless
foo
$ sudo useless
sudo: useless: command not found
$ sudo -E useless
sudo: useless: command not found

It's often expected that this will work... man sudo says:

-E, --preserve-env
            Indicates to the security policy that the user wishes to
            preserve their existing environment variables.

But that doesn't work. The -E flag has no effect on secure_path, which is possibly a bug.

$ sudo PATH="$PATH" useless
sudo: useless: command not found

This does not affect sudo's own environment, which has been set according to the security policy, configured by /etc/sudoers. This includes env_reset and secure_path as defaults on Ubuntu, causing a minimal environment to be loaded and the PATH to be set to whatever is in secure_path.

If sudo were able to find a command called useless in one of its own path directories and run it, it would pass PATH=$PATH into its environment as demonstrated here. But it will not itself use the given value of PATH. The solution is to run:

$ sudo env PATH="$PATH" useless
foo

This workaround uses the env command to set PATH. Unlike sudo, env uses the given variables to set the environment, then looks for the command argument and runs the command with the modified environment. As info (coreutils) env invocation says:

  Modifications to PATH take effect prior to searching for command.

Setting the PATH

When you changed your PATH variable to include the directory /opt/lampp/bin, you used this command:

export PATH=$PATH:/opt/lampp/bin

This would be effective for the current shell and all the current shell's child processes, such as shells called from this shell. When you've exited this shell and all its children have exited, that modified PATH variable has been thoroughly forgotten, and when you open a new shell you will find the old PATH variable that does not include /opt/lampp/bin. For that reason, the full command suggested by muru,

sudo env PATH="$PATH:/opt/lampp/bin" php -v

would have been necessary if you were not still using a shell where you had already added /opt/lampp/bin.

To change the path permanently, you would need to edit some configuration file that modifies your user environment or is read by shells when they start up. You can add a line to assign environment variables in your ~/.profile, for example:

PATH="$PATH:/opt/lampp/bin"

Then, after logging out and back in (or running source ~/.profile to see the effect immediately), you would always be able to run

php -v

or

sudo env PATH="$PATH" php -v

without adjusting your PATH first.

Less cumbersome alternatives

A more convenient workaround could be to make a symlink to the executable in a location that is in the secure_path and the default PATH, for example:

sudo ln -s /opt/lampp/bin/php /usr/local/bin/php

You will then not need to do anything special when calling the command with sudo, nor will you ever need to take any steps to adjust your PATH, permanently or temporarily.

If the program you are installing has a name that is the same as the name of another program that system processes may attempt to call, then give the symlink a different name, to avoid confusing those processes. You can check that the name you want to use is not already the name of some other command using the type command:

$ type php
bash: type: php: not found

So on this system I can create a command php without fear of anything going wrong, at the moment. If I install other programs that provide a php command in future, I might have to re-think my configuration.

You could also make an alias for the command and add it to your ~/.bashrc, for example:

alias sudo-php='sudo env PATH="$PATH:/opt/lampp/bin/php"'

You could then (after running source .bashrc or opening a new shell) run

sudo-php

instead of sudo php to run this program as root, and sudo will not claim to be ignorant of its location.

This alias would only be available in interactive shells, so it wouldn't confuse other programs.

Of course, it's possible to make an alias for just sudo to make it always use your PATH, with alias sudo='sudo env PATH="$PATH"', but that's a bad idea as it would make the system less secure.


Ubuntu 16.04 Login Loop after changing PATH

/usr/bin/vi .profile

Replace

Export PATH = "bin/somepathToMatLab"

With

export PATH=$PATH:"bin/somepathToMatLab"


Wifi and Bluetooth not working simultaneously

First of all, you have made a few driver parameter selections for iwlwifi, a wireless driver for Intel devices. You have none; yours is a Realtek.
While the parameter selections do no harm, they are needless and merely take up space. I suggest that you remove them.
sudo rm /etc/modprobe.d/iwlwifi-options.conf

Second, I shall be very surprised if the device doesn’t support 5 gHz channels; let’s confirm:
sudo iwlist freq

Does your router support 5 gHz?
nmcli device wifi list

If so, I suggest that you rename the 5 gHz band in the administration pages of the router, something like redhu5 or some such and connect to it instead.
Next, you tried ant_sel=2 with no success. Please try ant_sel=1:
echo "options rtl8723be ant_sel=1" | sudo tee /etc/modprobe.d/rtl8723-ant-sel.conf

Reboot and see if there is any improvement.
Finally, as has been suggested, try setting a fixed channel in your router, either 1, 6 or 11. After making any change, reboot the router. See if any of these brings improvement.


Question was answered in this thread, directions were given to change drive to be UUID identified in a way that I understood.


Avoid screen turning off when the screen is locked?

Terminal CLI method

To prevent screen from turning off you need two settings, one under battery power the other when plugged into wall outlet (A/C).

For battery timeout:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout <time_in_seconds>

For AC timeout:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout <time_in_seconds>

So for both Battery and A/C set the time to 0 (never).

For Login screen:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

Disable dimming screen when idle:

In Unix & Linux someone complained when on battery screen dims every 20 seconds and wants to turn that feature off:

gsettings set org.gnome.settings-daemon.plugins.power idle-dim false


How do I configure a repo so I can install dependencies easily?

You have main enabled, you need to add unvierse repos, as it's not a core maintained package, a search of ubuntu packages shows which repo packages come from http://packages.ubuntu.com/trusty/ruby-rest-client

Add the following lines to you apt sources.list, then apt-get update:

# Universe Repos
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe

###### Ubuntu Update Repos Universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe


run bash scripts via a gamepad/joystick on ubuntu-server?

i was thinking to complicated, lol

im running kodi on my htpc and i can easily map buttons to a gamepad and run bash scripts via System.Exec.


Wireless not work on Ubuntu 12.10 Realtek RTL8111/8168B

Please run the terminal command:

lspci -nn

Is your device identified as 10ec:8723? If so, check post #24 here: http://ubuntuforums.org/showthread.php?t=2040656&page=3

There are a number of questions here that use an earlier version of the driver and error out at base.c:320:6: error: ‘IEEE80211_HW_BEACON_FILTER’. The later version I linked does not.


How to enable notifications while changing brightness and/or volume?

The notification program responsible for the pop-up with the volume and the brightness is notify-osd. It is called by the dbus service under the name org.freedesktop. Notifications and executed with the command Exec=<path to notification program of your choice>.

In my case, I had installed Xfce and then there were two files in /usr/share/dbus-1/services/<naming scheme foreign to me>.service that called the org.freedesktop.Notifications. I checked the whole folder by grepping for Name= and counting the results of non-unique results and found that every namespace in that directory was unique except for my notifications namespace.

This led me to the solution of renaming the file that executed the Xfce notifyd to service.disabled which made the file unreadable to dbus and then after a restart my volume and brightness notifications came back.

So a general more abstract method of resolving this issue for multiple users might involve grepping for org.freedesktop.Notifications in the /usr/share/dbus-1/services folder and then renaming any of the offending entries to anything that doesn't end in .service leaving only the path to the actual executable you wish to load and if it's not available.

You can create one using the template below as a guide for adding your desired notification service. One could also theoretically call bash and use conditionals in the dbus service file as it allows for that and you could also use environment variables against a boolean check to select which notification program you want based on your desktop environment, but I haven't finished getting that to work yet. I was just glad to get my volume and brightness indicators back.

Anyway, here's the code: this is specific to my 64-bit Ubuntu. There will be some slight modifications based on your environment. Also make sure you have installed notify-osd if it isn't installed already. I tried looking for an update-alternatives type method to switch it, but this is the best I could come up with so far.

This method will allow you to keep whatever other programs you installed that disabled it in the first place. I found other methods that just brute forced the issue by completely purging the programs that took its place, but if you wish to keep the programs then this method is for you.

grep org.freedesktop.Notifications /usr/share/dbus-1/services/*
sudo mv <offending entries to same filename>.service.disabled

gksu gedit /usr/share/dbus-1/services/org.freedesktop.Notifications.service

Add the following content:

[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/x86_64-linux-gnu/notify-osd

I hope that helps. Forgive my poor editing, feel free to improve my presentation to make it easier to read.


The solution was to install the proper drivers for my ethernet adapter, which is built into my motherboard. I checked the model and version of my adapter, and the version of my Linux kernel:

$ lspci | grep Ethernet
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
$ uname -r
3.0.0-15-generic

then went to the driver download page for the manufacturer:

http://www.realtek.com/Downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=fa

and downloaded the driver that matched best. I was a little hesitant since uname reported a more recent kernel version than the drivers explicitly support, but I installed it with the autorun command in the downloaded package and everything seems to run fine.

Moral of the story: don't assume as I did that Linux comes pre-packaged with all the drivers you'll need.


One way would be to go to your BIOs settings at startup, the key needed changes from one pc to other, but it can be by holding down the ESC key, F2 or F9 (or those are at least the ones i have used in different machines). Once you are in your BIOs menu, go to the Boot option tab, there you should see something about Boot Order and a list of all installed OS you have, there just select Windows and press F5 or F6 to move it up and down, move it all the way up, above ubuntu, this way you are telling the computer to first try to boot Windows.
That should do it i believe, good luck,


Problem when dualbooting ubuntu 21.04 and windows 10

That is a common Grub error that could occur with any Linux OS like Ubuntu or Debian. Solution:
Find the partition in which your Linux partition is stored.
grub> ls
This will show us all existing partitions.
via grub> ls (hdX, Y) you can describe the partitions you have (example - grub> ls (hd0, gpt1) ).
Then, After knowing the partition where is your Linux stored, you need to set your root and prefix settings:
grub> set root=(hdX, Y)
grub> set prefix=(hdX, Y)/boot/grub

(where hdX and Y is your Linux partition)
After that, install the normal module:
grub> insmod normal

and run it
grub> normal

Now you should successfully boot into your Linux system but you need to update your GRUB. In the terminal:
sudo update-grub

Now everything should be OK, Enjoy Ubuntu 21.04 :)
Best Regards, ykostov


Those are 2 different ways of searching. perm allows for 3 methods:

-perm mode: permission bits set for the file are exactly that to match the search
-perm -mode: all of the permission bits are set for the file to match the search
-perm +mode: any of the permission bits are set for the file to match the search

So using - or + depends on what you want to find.

Examples:

find / -type f -perm 0777 will find all files set as rwxrwxrwx (owner, group AND other)

find / -type f +perm 0777 will find all files set as rwx for owner rwx for group OR rwx for other

Btw... it looks like the + is a the same as a '/`.


--root-directory /mnt/sda5 looks like it may be the problem. When you're installing grub, make sure your actual system's root is at / (chrooting if necessary to make this the case), then run grub-install without this parameter.


Getting  +  to delete words in gnome-terminal and vim insert mode

Note that this will work in the terminal and the default emacs mode (which you are using if Ctrl+W deletes the previous word for you). It will not work in bash's vi mode and will not affect vi/vim itself. This is, therefore, only a partial answer but the best this emacs user can offer.

This sort of thing is managed by the readline library whose behavior can be controlled via ~/.inputrc. Edit (or create, if it doesn't exist) ~/.inputrc and add this line:

"\C-H":"\C-W"

Now, open a new terminal and it should work.

Explanation

The \C-H is actually Control+BackSpace. You can see keycodes by pressing Ctrl+V then, the key you are after. You will see that BackSpace returns ^H.

Now, it should be possible to bind Control+BackSpace to the bash function that deletes the previous word (backward-kill-word or unix-word-rubout) by using "\C-H": backward-kill-word. However, I can't get that to work. It works perfectly well with different keys ("\C-E": backward-kill-word, for example, makes Ctrl+E delete the previous word) but for some reason, I can't get it to work with BackSpace.

So, as a workaround, we just map Ctrl+Backspace to Ctrl+W which is already mapped to backward-kill-word. So, when you press Ctrl+Backspace, that will be translated to Ctrl+W which, in turn, will send backward-kill-word. I got the idea for this workaround from this SU post.


If you have finalized your CD/DVD-R isn't possible erase it.

You can erase CD/DVD-RW types.


How to reach the page setup dialog box on post 5.0.2 releases?

In LibreOffice Writer, you can format the page using "Format" menu, select "Page..." and the options are in there.

I am using Ubutntu Studio 15.10 with L.O. 5.0.2.2.


You should select the recovery mode at boot, drop to the root shell, and try installing the ubuntu-desktop package.

sudo apt-get install ubuntu-desktop

If that doesn't work, just backup important data, and reinstall.

I don't have the default installation of Ubuntu, but for reference, here is what that command you've used does:

~$ sudo apt-get -s autoremove python
[sudo] password for hp:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpython3.2 python3 python3-minimal python3-uno python3.2 python3.2-minimal
Suggested packages:
  python3-doc python3-tk python3.2-doc binfmt-support
The following packages will be REMOVED:
  aisleriot apparmor apport apport-gtk aptdaemon apturl apturl-common
  autotrash bluez bluez-alsa bluez-gstreamer checkbox checkbox-qt
  command-not-found compiz compiz-gnome compiz-plugins-main
  compiz-plugins-main-default compizconfig-backend-gconf
  compizconfig-settings-manager deja-dup duplicity evolution-data-server
  firefox firefox-globalmenu firefox-gnome-support foomatic-db-compressed-ppds
  gconf-editor gconf2 gdebi gdebi-core gedit gksu gnome-bluetooth
  gnome-control-center gnome-media gnome-menus gnome-orca gnome-sudoku
  gnome-terminal gnome-terminal-data gnome-user-share gstreamer0.10-gconf
  hplip hplip-data ibus ibus-pinyin ibus-table indicator-datetime
  indicator-power intel-microcode jockey-common jockey-gtk
  landscape-client-ui-install language-selector-common language-selector-gnome
  launchpad-integration libcanberra-gtk-module libcanberra-gtk3-module
  libcompizconfig0 libfolks-eds25 libgksu2-0 libgnome-media-profiles-3.0-0
  libgnome2-common libgweather-3-0 libgweather-common libmetacity-private0
  libpurple-bin libreoffice-gnome light-themes lsb-release metacity
  metacity-common microcode.ctl nautilus-share network-manager-gnome
  nvidia-common nvidia-settings-304-updates onboard oneconf openprinting-ppds
  printer-driver-foo2zjs printer-driver-postscript-hp printer-driver-ptouch
  printer-driver-pxljr printer-driver-sag-gdi printer-driver-splix
  pybootchartgui python python-appindicator python-apport python-apt
  python-apt-common python-aptdaemon python-aptdaemon.gtk3widgets
  python-aptdaemon.pkcompat python-brlapi python-cairo python-central
  python-chardet python-compizconfig python-configglue python-crypto
  python-cups python-cupshelpers python-dateutil python-dbus python-debian
  python-debtagshw python-defer python-dirspec python-egenix-mxdatetime
  python-egenix-mxtools python-eyed3 python-gconf python-gdbm python-gi
  python-gi-cairo python-gnomekeyring python-gnupginterface python-gobject
  python-gobject-2 python-gst0.10 python-gtk2 python-httplib2 python-ibus
  python-imaging python-keyring python-launchpadlib python-lazr.restfulclient
  python-lazr.uri python-libproxy python-libxml2 python-louis python-mako
  python-markupsafe python-notify python-oauth python-openssl
  python-packagekit python-pam python-pexpect python-piston-mini-client
  python-pkg-resources python-problem-report python-protobuf python-pyatspi2
  python-pycurl python-pyinotify python-renderpm python-reportlab
  python-reportlab-accel python-serial python-simplejson python-smbc
  python-software-properties python-speechd python-support python-twisted-bin
  python-twisted-core python-twisted-names python-twisted-web
  python-ubuntu-sso-client python-ubuntuone-client
  python-ubuntuone-storageprotocol python-uno python-virtkey python-wadllib
  python-xapian python-xdg python-xkit python-zeitgeist python-zope.interface
  rhythmbox rhythmbox-mozilla screen-resolution-extra sessioninstaller
  software-center software-center-aptdaemon-plugins software-properties-common
  software-properties-gtk system-config-printer-common
  system-config-printer-gnome system-config-printer-udev totem totem-mozilla
  totem-plugins ubuntu-artwork ubuntu-minimal ubuntu-sso-client
  ubuntu-sso-client-gtk ubuntu-standard ubuntu-system-service ubuntuone-client
  ubuntuone-installer ufw unattended-upgrades unity unity-2d unity-common
  unity-lens-applications update-manager update-manager-core update-notifier
  update-notifier-common usb-creator-common usb-creator-gtk xdiagnose
  xul-ext-ubufox zeitgeist zeitgeist-core zeitgeist-datahub
The following NEW packages will be installed:
  libpython3.2 python3 python3-minimal python3-uno python3.2 python3.2-minimal
0 upgraded, 6 newly installed, 212 to remove and 0 not upgraded.

Note, for example, that it removes gnome-terminal, which is why you aren't able to launch it.


12.04 Wireless Internet missing firmware

http://downloadcenter.intel.com/Detail_Desc.aspx?lang=eng&DwnldID=10138

this page provides the drivers for your specific wireless card I suppose.


"Unable to mount Audio Disc Location is unmountable" error

You usually don't mount audio discs. If you want to play one, use a media player. You should also be able to use whatever default ripping program you have. Pure audio discs don't have a file system that the standard linux drivers can mount. Instead, linux has drivers that allow other programs to access it as a special audio-cdrom device.


Partition not showing after fresh installation

The reason you cant view it is because its been allocated for swap which is a waste allocating it 500GB its good to allocate it a size equal to RAM size of your PC. Re partition that 1Tb disks 500GB extended prtition in live mode by using Gparted and allocated a memory slightly equal to your RAM size then the rest you can use it for other purposes.doing this you will have 3 partitions 500Gb,swap(equal to RAM) and the other memory. You can access gparted by sudo gparted in the terminal when in live mode using live ubuntu CD


There is a set of utilities, and an information string which provide what you are looking for.  They need to be installed... Open a terminal window ctrl+alt+t

Install the utilities

sudo apt-get install mesa-utils

The command glxinfo | more will contain information about how the graphics section looks up.  Try glxinfo | grep string - you are not looking for llvmpipe!

A simple test graphics program is glxgears, which will tell you how many frames per second are being generated.


Have you clicked System->Preferences->Keyboard->Layouts->Apply System-Wide?

I seem to remember you may need to switch layout on the login screen one more time after that before it sticks.


How to determine which version of gfortran is installed?

To get the version, try at the command line:

$ gfortran --version
GNU Fortran (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
[...]

If you want to install without root privileges (no root password and no sudo rights), then you can install into your home directory only. You have to download the source code, then compile and install it yourself, then set up the appropriate environment.


Change resolution on Lenovo B590 to 1600x900, Ubuntu 12.04LTS permenently?

This is not much of an answer, but it can work (sometimes) - I have not tried this for a while...

Set it up so it is at the default 1366x768, then reboot.

Then at the login screen, enter tty - Ctrl+Alt+F2 - and login as your user via that.

Edit ~/.config/monitors.xml by running nano ~/.config/monitors.xml - edit this:

      <width>1366</width>
      <height>768</height>

to be:

      <width>1600</width>
      <height>900</height>

Press Ctrl+O then ↵, and then Ctrl+X to exit the editor.

You can then exit tty by running exit, and pressing Ctrl+Alt+F7

Login, it should work... ~/.config/monitors.xml seems to be where the Display settings saves configuration...


How do I pause and resume apt-fast package download?

Yes, it is not possible to interrupt current downloads smoothly. But if you cancel those downloads with a signal (e.g. pressing ^C) and if you are using aria2 you can easily continue downloading later. Axel does not support continuation of aborted downloads (and is therefore not recommended for apt-fast).

If you have already downloaded some files via aria2 and cancel the download they aren't available for APT until all downloads with apt-fast are finished.

And on the other side if you cancel an apt-get/aptitude/synaptic/etc. download you have to start from scratch with apt-fast. But of course if some packages are already downloaded successfully and therefore are in your archive cache (usually /var/cache/apt/archives) apt-fast will ¨detect¨ them and don't add it to download queue again.


Can't install FlightGear after upgrading to ubuntu 12

I fixed it! here is what I did.

I had to make a dir /usr/share/games/flightgear so apt-get could remove it.
Then I sudo apt-get remove fgfs-base

I then installed flightgear via Ubuntu Software Center


You need to remove the fglrx drivers, at the moment (fglrx 11.9) do not work with GNOME Shell.

You need to access a terminal (press Ctrl+Alt+F1) or boot in to recovery mode (press Shift key right before Ubuntu is supposed to load and keep it pressed until the Grub menu comes up).

Login and run:

sudo sh /usr/share/ati/fglrx-uninstall.sh


Some videos stopped playing in Mythbuntu 12.04

AVI is a container, not a video codec. What you need to do is figure out what video/audio codecs the video is encoded in, then install them. You can use something like mediainfo (not installed by default) to find out the codecs.

To install mediainfo, use

apt-get install mediainfo

then use it on the file via

mediainfo <video file>


It should be solved in upcoming release of gvfs (version 1.39.90, if I understand the version scheme). The fixing commit is this.

I had the same bug but with gvfsd-google, as I use GDrive as storage for Déjà Dup Backup.


How to know the time of execution of previous commands

Try to run this command from terminal:

HISTTIMEFORMAT="%d/%m/%y %T "

Then now run history:

history

sample output:

 2000  10/06/15 15:49:29 pal -d
 2001  10/06/15 15:49:33 pal -d 10
 2002  10/06/15 15:49:49 pal -d 04 Jul 2015
 2003  10/06/15 15:50:36 gedit/home/maythux/.pal/pal.conf
 2004  10/06/15 15:50:40 gedit /home/maythux/.pal/pal.conf
 2005  10/06/15 15:53:30 cal
 2006  10/06/15 15:53:31 gcal
 2007  10/06/15 15:53:34 sudo apt-get install gcal
 2008  10/06/15 15:53:54 gcal
 2009  10/06/15 15:53:57 man gcal
 2010  10/06/15 15:54:03 pal
 2011  10/06/15 15:55:35 pal -m
 2012  10/06/15 15:56:56 history
 2013  10/06/15 15:57:39 HISTTIMEFORMAT="%d/%m/%y %T "
 2014  10/06/15 15:57:45 history

To make this permanent add to your .bashrc:

echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bashrc

Then source your bashrc:

source .bashrc

Now the sample output will be available whenever you run the command history


Configure Network bridge for KVM/QEMU virtualization -18.04 LTS

It is not clear from your description if you want IPs for VMs to be from your main DHCP or not. If not, then it is easy, KVM comes with its own bridge which is configured automatically after install.
Regarding netplan, this is the page I always use as a reference https://www.howtoforge.com/linux-basics-set-a-static-ip-on-ubuntu There are many examples.

Just to configure DHCP for your NIC (watch out for indents, they are important)

network:
 version: 2
 renderer: networkd
 ethernets:
   ens33:
     dhcp4: yes
     dhcp6: yes

and then run netplan apply

Update:
After you confirmed you want VMs to receive IPs from the main DHCP server (same as your NIC)

network:
 version: 2
 renderer: networkd
 ethernets:
   ens33:
     dhcp4: no
     dhcp6: no
 bridges:
   mybridge:
     interfaces: [ ens33]
     dhcp4: yes
     dhcp6: yes
     parameters:
       stp: false
       forward-delay: 0

and then run netplan apply.

Of course change the name of your interface
You may need to fine-tune this...

What it does is it creates a bridge named mybridge and gets address for it from your DHCP. You can see that the eth interface itself does not get IP, your bridge does.

Then when you define VMs in KVM, you don't use default network but you specify VMs to use mybridge.


PPA with latest PHP 5.3.x branch for 12.04

There are several PPA s with PHP 5.3.X for Ubuntu 12.04.

ppa:sjinks/x3m
ppa:team-mayhem/ppa
ppa:rip84/php5
ppa:skettler/php


ext4 hogs lot of unkown space compared to ext3

You can use tune2fs to adjust this, though I would think twice about doing so on /

sudo tune2fs -m 1 /dev/sda1

would change the reserved space to 1% on sda1.

Change drive number to suit.


Failed to start Microsoft SQL Server Database Engine. code=exited, status=217/User

i have no idea what the actual problem was, but i fixed it by running sudo /opt/mssql/bin/mssql-conf setupagain, chose the version and the password anew and suddenly it ran again.. maybe there was a wrong username, wrong password... maybe the license somehow expired or.. i dont know. all i know is it now works again.


How to turn off Software updater? (Xubuntu)

One of the easiest way I did to overcome from this problem is that you can remove update-notifier

sudo apt-get remove update-notifier

Please note that, this will remove only the graphic way to do system updates.. You can still do your upgrades using commands or Synaptic :)

You can always reply if you get in any trouble.. :)


How should I handle multiple monitors when I regularly connect and disconnect different monitors and projectors

Take a look at:
https://help.ubuntu.com/community/DynamicMultiMonitor

Looks like it will give you some help.


I have this message on my terminal as soon I opened

revert what you have explained you did with bashrc and /etc/default/locale then try to reconfigure your locale with this :

sudo dpkg-reconfigure locales


Ubuntu 14.04 - Unknown Display, Max resolution is 1024x768

I've tried all possible solutions but the only one that helped me - connect monitor via HDMI cable (it was VGA initially).
My notebook has no HDMI on board, but it has mini display port, so I got miniDisplayPort to HDMI adapter and everything works great now!


Installing the latest Docker version on Ubuntu 14.04

http://docs.docker.com/engine/installation/ubuntulinux/

Upgrade Docker

To install the latest version of Docker with apt-get:

$ apt-get upgrade docker-engine


Postgres can do all this stuff for you without any additional tools. The server produces WAL (Write-Ahead Log) files, which contain all changes done on databases. I think what you really need is streaming replication. Read about:

Write-Ahead Logging (WAL)
Streaming Replication

If you really do not want to talk about syncing database schema/structure, you may be interested in the solution described in this answer.


Holding down CTRL while pinching or zooming will allow you to perform the gesture.

From this post


Bluetooth Speaker not doing A2DP Ubuntu Gnome 17.04

I had (I guess...) the exact same problem as Richard Grant using a headset Creative WP-350. It used to work fine on Ubuntu 16.04 and then the problem occurs when I switched to Ubuntu GNOME 17.04.
I was able to connect and pair the headset, and use it with "HFP/HSP" audio profile. When trying to switch to "A2DP" profile, it didn't work and indicate "Failed to change profile to a2dp_sink".

As doug indicated in his comment, the fix is to disable pulseaudio's bluetooth in gdm. Actually I don't understand the reason why pulseaudio's BT is enabled in Gnome Display Manager but there might be a good reason for that... if anyone can clarify this I'd like to understand.

So the fix is pretty easy, based on this link provided by doug, here is what I did:

Open a terminal window and type (This first point is user-dependant, the main info follow...)

gksudo nautilus

then navigate to /var/lib/gdm3/.config/pulse
Open default.pa if it exists or create it (I had to), as a regular text file.
Add the following lines in the file default.pa

#!/usr/bin/pulseaudio -nF
#

# load system wide configuration
.include /etc/pulse/default.pa

### unload driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
  unload-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
  unload-module module-bluetooth-discover
.endif

Save the file, close the Terminal window and reboot.


“Hash sum mismatch” error due to identical SHA1 and MD5 but different SHA256

Try this before running apt:

$ sudo bash
# mkdir /etc/gcrypt
# echo all >> /etc/gcrypt/hwf.deny

Because apt use sha256 method from libgcrypto20, but optimized too much. We can deny this opt. using configuration file /etc/gcrypt/hwf.deny.


How do I switch between GUI and command line startup?

Open a text-only virtual console by using the keyboard shortcut Ctrl+Alt+F3 (or Ctrl+Alt+F3-F6).

At the login: prompt type your username and press Enter.

At the Password: prompt type your user password and press Enter.

Now you are logged in to a virtual console, and you can run terminal commands from the console. For example, you can run terminal commands from the virtual console to repair your boot problem, but Ubuntu Server boots to a virtual console by default. To bring up the normal Ubuntu login screen run this command:
 sudo systemctl start lightdm.service

In 16.04 and later run this command instead to bring up the normal Ubuntu login screen:
 sudo systemctl start graphical.target

If you get stuck in a virtual console, press the keyboard shortcut Ctrl+Alt+F7 to exit from the console.


Make Unity run in 3D mode on Ubuntu 12.04

Try to make it work with open graphic drivers cause every time I had 2d mode was when i had graphic driver errors

ATi:

sudo add-apt-repository ppa:xorg-edgers/ppa && sudo apt-get update && sudo apt-get upgrade

Nvidia:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates && sudo apt-get update && sudo apt-get install nvidia-current

To purge it if having problems use ctrl alt f1 to summon console and install ppa-purge :

sudo apt-get update
sudo apt-get install ppa-purge

Then use the newly installed ppa-purge command to purge the package:

sudo ppa-purge ppa:ubuntu-x-swat/x-updates
sudo ppa-purge ppa:xorg-edgers/ppa

Or install closed drivers go to dash and search drivers and activate driver.

Other option is to download your video card driver from ATi, Nvidia and find instructions to install it.


How do I write perl code for following example?

The answer will be:

perl -ne ' if($p==1){if(/^ /){ print; next;} elsif(/^!/){print;}$p=0}
if(/aaa accounting exec .+/){print;$p=1}' text.txt

Where text.txt is the file containing above text mentioned in the question.


Recommended Method to Watch Amazon Prime using Ubuntu 14.04 LTS

To answer your question without unhelpful sarcastic remarks [Dobey], I found this link VERY helpful: http://www.omgubuntu.co.uk/2013/10/fixing-amazon-prime-streaming-drm-protected-flash-13-10

It still works on 14.04 for me.

In addition:

Any OS that cannot garner the support of vendors that it links to directly in its own default searching functions is worth complaining about. If you don't want to work with Amazon to support the supposedly most used Linux OS, you shouldn't link up to them, giving people the impression that the OS actually works with one of the most commonly used web functions (e.g. watching videos/flash).

Here's the terminal command:

sudo add-apt-repository ppa:mjblenner/ppa-hal && sudo apt-get update && sudo apt-get install hal


how can I check if two directory are in the same partition in ubuntu

Try df. It will give you the free space per partition and also its mount point.


"Line 302 Permission Denied" error while installing VMware Player

It is likely that the installer is trying to execute a binary in the /tmp folder.

It is probable that whatever partition you have your /tmp folder in, it is configured in /etc/fstab to be "noexec".  This means that no binaries are allowed to be executed on that partition.

My advice is to move /tmp to its own partition that has "exec" rights in your fstab line options.

Alternatively, temporarily change "noexec" to "exec" in fstab - install vmware and then switch it back again.


How to package LaTeX source in a DEB package?

It shouldn't be particularly difficult, you could override dh_auto_build. For example, here's how I add a manpage:

$ cat debian/rules
#!/usr/bin/make -f

%:
    dh $@ --with config-package

override_dh_auto_build:
    ronn -r docs/myprogram.ronn --organization="Example, Inc." --date=`date "+%Y-%m-%d"`
    dh_auto_build

(docs/myprogram.8 is part of my manpages file.)

You could write a script which builds the PDF:

#! /bin/bash
cd path/to/doc/sources
xelatex doc.tex
bibtex doc
xelatex doc.tex
xelatex doc.tex

And then, to your install file, add:

path/to/doc/sources/doc.pdf usr/share/doc/mypackage/

And then, in your debian/rules file:

override_dh_auto_build:
    path/to/that/script.sh
    dh_auto_build

(Of course, with perhaps overriding the clean rules as well.)

If you use a makefile to build your tex documents, then this could be simplified by having your overall makefile also build the docs for the default rule, and the only specify the path in the install file.


That is the default behaviour. Ubuntu dock uses "intellihide" mechanism (i.e. dodges windows only) when it is set to auto-hide.

If you wish to keep it hidden until mouse-hover, open Terminal and run the following

gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false


How to repair corrupted JPEG files that still have their thumbnails?

You can use ExifTool to recover from the thumbnails. You will only get a low resolution image by doing this but it may be all you can recover if the files are that badly corrupt.
You can install it by putting sudo apt install libimage-exiftool-perl in a terminal window. Then put the following:
exiftool -b -ThumbnailImage -w $HOME/recovered/%f_thumb.%e -ext JPG <input directory>

where <input directory> is the path to the corrupt photos.
The above command will attempt to extract the thumbnails from the JPEG photos that have a readable thumbnail to a directory called recovered in your user home directory.
There's also many recovery tools (mostly paid) that can be found by searching online that attempt to repair the whole image but the vast majority don't really work. One of the few that may work is JPEG Repair Shop (free) but it's manual so can take a long time if you have lots of corrupt photos. It's also only available for Windows.


How do I copy just the text inside double (") quotes and single (' apostrophe) quotes? (in xterm terminal)

The behavior I've noted is that the " characters act as a boundary and are not included when double-clicking for a selection (though they are included when triple-clicking to grab the whole line) - I'm using stock settings.

In any case, (as you'd expect) you can change this behavior. From Can I specify what characters set the double-click selection boundary in GNOME Terminal?:

In Terminal, go to Edit > Profile Preferences > General
Remove the " character from the Select-by-word characters box if you'd like to ensure it's considered part of double-click selections or ensure it appears if you'd prefer to treat it as a boundary
Save settings and test to confirm working


This isn't possible, Unity needs Compiz as it's a plugin, sorry!


Before you write too much to the drive, you want to try a data recovery tool. This isn't going to be quick.
I would suggest you reboot the PC from a CD or USB drive, ideally plug in a large USB drive, and install 'foremost' - run this, tell it to place recovered files on the USB backup drive, run it - it's a command line tool, type foremost from a terminal.

This should put ALL recognised files in the USB, untitled & grouped by filetype - you can find filenames later, but at least it retrieves your hard work. It won't separate .c, .h, etc, they'll be 'text' files. It will possibly take days if your system drive was full!


Is it possible to make indicator-appmenu ignore a specific application?

Run an application

To start an application (eg., gcalctool) with the menu within the application rather than in the panel, run the following in a terminal:

UBUNTU_MENUPROXY= gcalctool

To start the application with the menu enabled in the application and the panel, run:

APPMENU_DISPLAY_BOTH=1 gcalctool

Instead of using the terminal, you can use the Alt + F2 shortcut to start a run dialog, in which you would enter:

env UBUNTU_MENUPROXY= gcalctool

or

env UBUNTU_DISPLAY_BOTH=1 gcalctool

Edit application launchers in Ubuntu 10.10

To make it easier to always launch your application with the same appmenu settings, you can edit application launchers in the menu, the gnome-panel, and on the desktop:

Gnome-panel and desktop: simply right-click the launcher, select "Properties" and prepend env UBUNTU_MENUPROXY= or env UBUNTU_DISPLAY_BOTH=1 to the value in the "Command" field:
(source: xrmb2.net)
Menu: right-click the menu and select "Edit Menus". In the new window, find the launcher you want to edit and click the "Properties" button on the right. Again, simply prepend the variables like above (don't forget the 'env'), click on "Close" two times and you should be done.

Edit launchers in Compiz-based Unity in Ubuntu 11.04

Dirty method: Change the launcher's .desktop file in the /usr/share/applications directory:

For example, run

gksudo gedit /usr/share/applications/gcalctool.desktop

Now edit the Exec=-line to contain either of the two variables from above, eg.:

Exec=env UBUNTU_MENUPROXY= gcalctool

Save the file, and launching gcalctool from Unity's launcher bar should run it with the menu within the application.

Disadvantages of this method: it will change the launcher for all users and will probably be reverted by system updates.
Better method:

If already added, unpin the launcher from the launcher bar.
Copy the related .desktop file to your home directory:

cp /usr/share/applications/gcalctool.desktop ~/.local/share/applications

Like in the method above, edit the Exec=-line to contain either of the two variables:

Exec=env UBUNTU_MENUPROXY= gcalctool

Make the file executable:

chmod +x ~/.local/share/applications/gcalctools.desktop

Start Nautilus in that folder and double click the .desktop file (which should just read "Calculator" in the example):

nautilus ~/.local/share/applications

Now you should see the launcher icon in the launcher bar - pin it via the quicklist and you are done.

Note: To make above work with KDE applications, replace UBUNTU_MENUPROXY= with QT_X11_NO_NATIVE_MENUBAR=1.


I am unable to login to my Ubuntu machine or reinstall

You might want to check your BIOS settings if you can't boot from a CD. Also, you might want to try burning another Ubuntu CD.


It's solved. I don't know if it was thanks to rEFInd, to grub-install or to the Mac itself, but now I can boot Ubuntu as used to :)


unable to bind to requested udp port 43210 (ipv4)

Make sure that your game is not running. Then try to start the server.


Ubuntu is stable in EFI mode.

In 2015, the biggest issue was secure boot and varying implementations of EFI (some quite buggy) as manufacturers tried to do what MS wanted instead of meeting a standard.

Currently, Ubuntu has a signed loader and kernel; however, secure boot has to be turned off to install. EFI firmware has become more standardized.

Dual booting with Windows still causes some issues, as Windows always tries to take over booting.


Distribution upgrade: what is likely to break?

A distribution upgrade will, in all probability, not change any of your configuration.

In rare cases, it can overwrite configuration some files in /etc, but never in your home directory. Make sure to back up all configuration that isn't easily restorable. Of course, you should always back up everything.

In case any configuration does break, don't restore your backed up configuration files. Use them as a guide to re-configure what ever software.

To rule out any incompatibilities, it's recommended that you try out the new version via a live CD. Even though it would be surprising.

I agree with DKuntz2's recommendation to back up, however - I disagree with his recommendation to restore. Restoring old configuration will cause problems at some point. The upgrade process is very smart about preserving your data while upgrading programs. They, in turn, are very smart about handling old data. The will do the best they can with your customisations and changes.

Here's how to proceed:

Back up all your data, as you normally would.
Read the Release Notes. Especially check the Known Issues section for regressions.
Try out the new version with a live cd or live usb image.
Use the provided methods to upgrade, that is hit Alt+F2 and type do-release-upgrade, do not change your source.list file, this will result in partial upgrades, leaving old version of software on your system instead of upgrading them.

One important note though: If you have used anything like Automatix or EasyUbuntu, that is any repositories that are unsupported and not recommended, all they have done may very well break. Remove this software before upgrading, to be safe. (ref)

Please consult any of the sysadmins here on Apache, or just back it up completely. I'm pretty confident in sending you off to upgrade, very much assuming that your recovery plan won't be needed, but I can't be so confident about Apache. I've just never used it.


Human users have UIDs starting at 1000, so you can use that fact to filter out the non-humans:

cut -d: -f1,3 /etc/passwd | egrep ':[0-9]{4}$' | cut -d: -f1

This cuts the first (username) and third (UID) colon-delimited fields from /etc/passwd, then filters for the resulting lines which end with a colon and four digits, then cuts the first (username) field from that, leaving you with a list of users with UIDs between 1000 and 9999.

If you have more than nine thousand users on your system, this will fail - but it's necessary to restrict the result to 4-digit UIDs in order not to catch nobody (UID 65534).


Ubuntu extremely slow after some minutes of use - CPU speed way below the minimum

The problem is high processor temperatures have caused a first level thermal protection event. The event causes Clock Modulation on the processor, which in turn is not compatible with the intel-pstate CPU frequency scaling driver. The driver will always force the lowest p-state under these conditions and at 50% Clock Modulation, will result in an average CPU frequency at about 1/2 of the specified minimum.

What can you do about it?

You can install and run thermald, so as to keep the temperature
lower, not hitting this limit.
You can disable the intel-pstate CPU frequency scaling driver, and
use the acpi-cpufreq CPU frequency scaling driver instead. Reference.
Clean your fans and perhaps even replace the thermal paste between
the processor and its heat-sink.


read is a shell builtin, not an external command. which only tells you about external commands. Assuming you're using Bash (or some other Bourne-style shell), you should typically use type or command -v instead of which.

ek@Cord:~$ type read
read is a shell builtin

type and command are themselves shell builtins and they know not just about external commands but also about keywords, builtins, aliases, and functions. which is an external command that doesn't know about those things; it only knows about external commands. Sometimes which doesn't turn up anything when you ask it about a command that you can use in your shell. Sometimes it does turn up something for a command, but it isn't the same thing that actually runs when you use the command in your shell.

ek@Cord:~$ type type command which
type is a shell builtin
command is a shell builtin
which is /usr/bin/which

In Bash, you can see all the current possible meanings for a command, in the order that they are tried, with type -a:

ek@Cord:~$ type -a read
read is a shell builtin
ek@Cord:~$ type -a echo
echo is a shell builtin
echo is /bin/echo

For more information about why you usually shouldn't use which, and what to use instead in various shells including Bash, see Why not use “which”? What to use then?


Fluendo multimedia codecs exists as commercial products because of software patents (required for decoding mpeg, mp3, etc) and silly-DRM removal laws (ie parts of DMCA, Digital Economy and ACTA) that stop you removing the CSS DRM on DVDs. The Medibuntu variants are still free software as they're not infringing any copyright (to my knowledge anyway).

Whether you legally need it or not comes down to where you live honouring software patents or the DMCA-style DRM-cracking laws.

Regarding quality: the codebase for each implementation is different so there is scope for one implementation being better than another. The only test I've really seen is ffmpeg vs Google's own implementation, where ffmpeg trounces Google.

Dell plays it safe. They want top sell a product internationally that they can advertise as being able to play DVDs. That means they have to adhere to local laws and that undoubtedly means they'll need to license the software in some regions. I expect it is easier (and therefore cheaper) for them to just bulk-license from Fluendo.


Public computer needs to pkill chromium when xscreensaver blanks

Instead of system sound-off, /usr/bin/pkill -9 chromium. Instead of system sound-on, (on unblank), /usr/bin/pkill -9 chromium.

Yes, kill it twice, dead is dead,  and pkill failing is not The End of The World.


It has been confirmed that this is a bug in the current (as of January 2015) version of MySQL Workbench so there is nothing to do but to wait for a bug fix.


I have the same "issue".
Turns out that my system is not compatible for wayland, so xorg is used by default - therefore the wayland based desktop didn't even get installed which leads to not even having the option to switch.

I checked my running processes - I run on xorg.

see this question


Need help restoring GRUB settings to default settings

This question was answered in the comments

  GRUB_CMD_LINE=" vga=775 splash" replace the line with GRUB_CMD_LINE="" or GRUB_CMD_LINE="nomodeset"


The solution is to add files in ~/Templates directory. For example adding an empty file named Text.txt the New Document option is added.

So we can add there files with different extensions to view them into New Document option.

Command line:

cd ~/Templates
touch Text.txt


File compression doesn't equal file resize. Your 7zip is working just fine.

Compression is an simplifying algorithm, for example, we can compress:

eeeezzz

to look like

4e3z

(we saved some characters - very simple example)

As you can see, this is not always possible + the bigger file, the bigger difference, your file is very small to feel it.

If you want, you can read a bit here about this topic:
http://www.makeuseof.com/tag/how-does-file-compression-work/


How to mass install Edubuntu on a Chromebook?

I would recommend a fully automatic installation with FAI project this could be done using PXE install or an unattended CD installation. Many other options are also available.

You can see what could be done in the following youtube video : https://www.youtube.com/watch?v=yLIZL_iyAww


It seems that you forget to add GPG key for the ddeb repository.
Open terminal and type:
sudo apt install --reinstall ubuntu-dbgsym-keyring

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622

sudo apt-get update


Installing Flash during system installation

As a matter of fact, the option to pre-install Flash does exists in the Ubuntu installer. The following dialogue will be presented to the user during installation, and checking the second option will install it for you.


Insufficient free space: XXX extents needed, but only 0 available

by run that command you try to re-use the space already used in the VG. Try out with this instead:

lvextend -r -l +100%FREE /dev/mapper/pve-root

P.S. -l = --size -r = --resize you can use the extended form, if you prefer.

Reference: https://access.redhat.com/solutions/44089

Update Source: https://pve.proxmox.com/wiki/LVM2#Standard_installation

As you can see in the link of a standard installation on the top of VG "pve" you have different LV:

VG  LV  Mountpoint  Note
pve swap        will used as swap partition
pve root    /   Example
pve data    /var/lib/vz/    Proxmox VE < 4.2
pve data        Proxmox VE >= 4.2

By check with lvs command you will see the size for each LV and the sum of that assigned space are the same amount (or very close) of the VG size.

Once the VG space is all assigned you can't expand a LV until you do not reduce a LV on the same VG or, alternatively add a physical volume to that VG.

So when you see the size of pve VG is the following:

VG  #PV #LV #SN Attr   VSize     VFree
pve  1   8   0  wz--n- 931.26g   0

and is says to you on VG pve are present one Pysical Volume eight Logical Volume the Volume size is 931.26g with zero Volume free space.

So if you have no free space on the VG, you can not expand LV.

Theoretically if you sum the LV size you should reach the used size of VG.


Why does IPv6 kill my network in Ubuntu 12.04?

You removed the line

post-up iptables-restore < /etc/iptables.up.rules

IPv4 uses iptables and IPv6 uses ip6tables. It might be that the change in your iptables configuration breaks your IPv4 connectivity. So you probably don't want to remove that line. It might define the policy for forwarding IPv4 packets between your eth0 and eth1 interfaces, so it might be that that breaks your configuration...

A bit further down you have a broken IPv6 configuration, but this shouldn't affect your IPv4 connectivity.

For the tunnel you define two default gateways:

iface he-ipv6 inet6 v4tunnel
    endpoint 216.218.224.42
    address 2001:470:1f0e:1034::2
    netmask 64
    up ip -6 route add default dev he-ipv6
    down ip -6 route del default dev he-ipv6
    gateway 2001:470:1f0e:1034::3

In the up/down lines you add a default route pointing to the tunnel device. The gateway line adds another default route pointing to an unused address on the tunnel interface (HE always gives its end of the tunnel the address ending in ::1) so that will break things. The following configuration should work better:

iface he-ipv6 inet6 v4tunnel
    endpoint 216.218.224.42
    address 2001:470:1f0e:1034::2
    netmask 64
    gateway 2001:470:1f0e:1034::1

And then you try to do the impossible :-)  You try to use the addresses that the tunnel uses on your eth0 link as well. This will not work. The tunnel IPv6 prefix is 2001:470:1f0e:1034::/64, which are all the addresses in the range 2001:0470:1f0e:1034:0000:0000:0000:0000 to 2001:0470:1f0e:1034:ffff:ffff:ffff:ffff. Even though the tunnel only uses two addresses from that range (2001:470:1f0e:1034::1 and 2001:470:1f0e:1034::2) you can't use the other addresses anywhere but on the tunnel.

Your eth0 link seems to be your connection to your ISP or upstream network. If it doesn't offer you IPv6 then don't configure it, especially not with addresses that conflict with another link. Just remove the following lines:

iface eth0 inet6 static
    pre-up /sbin/modprobe -q ipv6 ; /bin/true
    address 2001:470:1f0e:1034::3
    netmask 64

The same goes for the eth1 link. You can't use the addresses of the tunnel on another interface. The following will not work:

iface eth1 inet6 static
    pre-up /sbin/modprobe -q ipv6 ; /bin/true
    address 2001:470:1f0e:1034::4
    netmask 64

When creating the IPv6 tunnel at tunnelbroker.net you got two /64's. If your tunnel has 2001:470:1f0e:1034::/64 then your Routed /64 probably has 2001:470:1f0f:1034::/64, but check the information you got from tunnelbroker.net to confirm that. If I'm right then the correct configuration should be:

iface eth1 inet6 static
    pre-up /sbin/modprobe -q ipv6 ; /bin/true
    address 2001:470:1f0f:1034::1
    netmask 64

And then you should enable IPv6 forwarding. Something like this should be in your /etc/sysctl.conf file:

# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
net.ipv6.conf.all.forwarding=1

To finish the configuration you should probably also configure ip6tables like you configured iptables.


Is Ubuntu 14.04 secure against heart bleed bug

If I get this right you're secure:

  openssl (1.0.1f-1ubuntu2) trusty; urgency=medium

  SECURITY UPDATE: side-channel attack on Montgomery ladder implementation

  debian/patches/CVE-2014-0076.patch: add and use constant time swap in
  crypto/bn/bn.h, crypto/bn/bn_lib.c, crypto/ec/ec2_mult.c,
  util/libeay.num.
  CVE-2014-0076

  SECURITY UPDATE: memory disclosure in TLS heartbeat extension

  debian/patches/CVE-2014-0160.patch: use correct lengths in
  ssl/d1_both.c, ssl/t1_lib.c.
  CVE-2014-0160

  -- Marc Deslauriers   Mon, 07 Apr 2014 15:37:53 -0400


Can I switch to HWE kernel after installation?

Yes, you can install using the normal kernel and then in the future switch to the hardware enablement kernel if you need it. To show available hwe packages, open the terminal and type:

apt-cache search linux.*hwe.*

or install Ubuntu Software Center or Synaptic Package Manager and search in it for "hwe". Synaptic has the most user-friendly way of displaying the search results for "hwe" because it displays the available packages in a list with a description of each package appearing on the same row as the package.


Is there a way to change the highlight colour in 16.10?

why don't you try terminator. in this terminal you can highlight text easily.

this is the web site where you find more information.
https://gnometerminator.blogspot.in/p/introduction.html


Bad video rendering with RecordMyDesktop

Solved by changing my resolution  from 1366 to 1360...

Just go to Diplays > Resolution > 1360

But now I have another problem - the video recorded is not in a straight line!!


The missing file is part of the package libssl-dev. Therefore install it via

sudo apt-get install libssl-dev


How to make Nautilus display .psd thumbnails?

Okay, found this one, and it worked for me with majority of .psd files:

#!/bin/bash

# -----------------------------------------------------------
# -- Write psdthumbnailer
# -----------------------------------------------------------
OUTFILE=/usr/lib/psdthumbnailer
(
sudo cat <<'EOF'
# bin/bash

# Arguments / Parameters %i %o %s
f_in=$1
f_out=$2
f_size=$3

# Execute Convert PSD to PNG through ImageMagick
exec convert "psd:$f_in[0]" -scale "$f_sizex$f_size" "png:$f_out"

EOF
) > $OUTFILE
# -----------------------------------------------------------
# -- Write photoshop.thumbnailer
# -----------------------------------------------------------
OUTFILE=/usr/share/thumbnailers/photoshop.thumbnailer
(
sudo cat <<'EOF'
# bin/bash
[Thumbnailer Entry]
TryExec=/usr/lib/psdthumbnailer
Exec=/usr/lib/psdthumbnailer %i %o %s
MimeType=image/vnd.adobe.photoshop; image/x-photoshop; image/x-psd;
EOF
) > $OUTFILE
# -----------------------------------------------------------
# -- Set File Permissions
# -----------------------------------------------------------
sudo chmod 0755 /usr/lib/psdthumbnailer
sudo chmod 0644 /usr/share/thumbnailers/photoshop.thumbnailer

# -----------------------------------------------------------
# -- Add GConf Hooks to parse thumbnails
# -----------------------------------------------------------
sudo gconftool-2 --set /desktop/gnome/thumbnailers/image@vnd.adobe.photoshop/enable --type bool true

sudo gconftool-2 --set /desktop/gnome/thumbnailers/image@vnd.adobe.photoshop/command --type string "/usr/lib/psdthumbnailer %i %o %s %i %o %s"

# -----------------------------------------------------------
# -- Install Dependencies
# -----------------------------------------------------------

sudo apt-get install imagemagick


why is find on my bind mount not working

The command
find <path> -name xemnas

will only match files whose names are exactly xemnas - to be equivalent to your ls ... | grep -i xemnas command you would need
find <path> -iname '*xemnas*'

where the *s are glob wildcards matching zero or more leading / trailing characters and -iname makes the match case-insensitive. For your particular case, you could also make just the initial X case insensitive using -name '*[Xx]emnas*'


I found the solution. In fact, it's because I overrode the PATH in the /etc/environment.


As documented at Steam doesn't see network in ubuntu 16.10 on GitHub, people have had this problem for a while. It can often, though not always, be solved by installing the libnss-resolve:i386 package. Note that this is the libnss-resolve package for the i386 architecture, even if you're using the 64-bit version of Ubuntu (which is the amd64 architecture).

To install that, run:

sudo apt update
sudo apt install libnss-resolve:i386

Then try running Steam again.

Thanks to Sweeze for finding this solution! (But note that it doesn't work for everyone.)


The load average represents the number of processes waiting for their turn to use the CPU(s), in the last 1, 5 and 15 minutes.

In your case, assuming you have a single CPU (single core) system:

In the last minute, you had 0.54 processes waiting to use the CPU on average.
In the last five minutes, you had 0.49 processes waiting to use the CPU on average.
In the last fifteen minutes, on average, you could have had 0.02 more processes using the CPU before attaining the maximum capacity of the CPU.

So, in practice, a load equal to or greater than 1 on a single CPU system means that the CPU is at maximum capacity and that processes have to wait to use it. A load less than 1 means that the CPU could process extra tasks without having to queue processes.

If you have two CPUs (e.g.: dual core CPU), you could reach a load of 2 before the CPU is at its max; 4 on a quad CPU system, and so on.


How to change mapping for the «PowerOff» key on keyboard?

I was able to get it working on my ASUS N751JK in Ubuntu 18.04 LTS and Ubuntu 16.04 LTS (tested with Unity desktop environment in both cases and KDE Plasma in 18.04):

First of all, set action of "Power Off" button to nothing.

Unity

Like mentioned in answer of Johano Fierra:

gsettings set org.gnome.settings-daemon.plugins.power button-power "nothing"

or alternatively sudo apt install dconf-tools and use dconf-editor to change org.gnome.settings-daemon.plugins.power property (like described here). Reboot or logout is required to make it working.

KDE

Go to "System Settings", select "Power Management" tab in "Hardware" section and then select "Energy Saving" tab, scroll down, find "When power button pressed" dropdown list and change its value to "Do nothing". Click "Apply" button for changes to take an effect.

Install xdotool:

sudo apt install xdotool

This one will allow us to trigger key events.
Next step is to trigger "End" key press on "Power off" button press.

Ubuntu 18.04

Create /etc/acpi/events/power file with the following contents:

event=button/power
action=/etc/acpi/power.sh "%e"

and create /etc/acpi/power.sh script with the following contents:

#!/bin/sh
xdotool key End

and add execution permissions to it:

sudo chmod +x /etc/acpi/power.sh

Ubuntu 16.04

Backup ACPI script used to handle "Power Off" button's event:

sudo cp /etc/acpi/powerbtn.sh /etc/acpi/powerbtn.sh.backup

Then edit it, find the following:

# If logind is running, it already handles power button presses; desktop
# environments put inhibitors to logind if they want to handle the key
# themselves.

and modify the code below so it looks like:

if pidof systemd-logind >/dev/null; then
    xdotool key End
    exit 0
fi

In order to apply these changes one should run:

sudo acpid restart

Thanks to Adam it's possible to restart acpid automatically when a user logs in (on system boot). So instead of manual sudo acpid restart in terminal each time after reboot add the following line:

session optional    pam_exec.so /usr/sbin/acpid restart

to the end of /etc/pam.d/common-session file.


"mce: [Hardware Error]: Machine check events logged" appears in syslog. What should I do?

Machine Check Exception:

  A Machine Check Exception (MCE) is a type of computer hardware
  error that occurs when a computer's central processing unit detects a
  hardware problem.

Your computer experienced a hardware error and the kernel logged an event in a buffer. You can use mcelog to log and view the machine check events. From mcelog manpage:

  X86 CPUs report errors detected by the CPU as machine check events
  (MCEs). These can be data corruption detected in the CPU caches, in
  main memory by an integrated memory controller, data transfer errors
  on the front side bus or CPU interconnect or other internal errors.
  Possible causes can be cosmic radiation, instable power supplies,
  cooling problems, broken hardware, running systems out of
  specification, or bad luck.

  Most errors can be corrected by the CPU by internal error correction
  mechanisms. Uncorrected errors cause machine check exceptions which
  may kill processes or panic the machine. A small number of corrected
  errors is usually not a cause for worry, but a large number can
  indicate future failure.

  When a corrected or recovered error happens the x86 kernel writes a
  record describing the MCE into a internal ring buffer available
  through the /dev/mcelog device. mcelog retrieves errors from
  /dev/mcelog, decodes them into a human readable format and prints them
  on the standard output or optionally into the system log.

If you didn't notice any crash, probably the error was successfully corrected. Still, I advise you to install mcelog to keep track of such events:

sudo apt-get install mcelog

The events will be logged to /var/log/mcelog. You can also run:

sudo mcelog --client

to query the mcelog daemon for errors.


Why does the system freeze when mounting disk images

I've also run into my system hard freezing when mounting ISO disk images on Ubuntu 15.10. I've also been using KVM, but it's not relevant in my case.

Unfortunately I couldn't find any particular log file that explained the freeze, but I did notice that ISOs that were in certain folders (encrypted via LUKS) didn't have the problem, yet all those in normal ZFS datasets did. I traced my issue to the version of ZFS (0.6.4.2) in Ubuntu 15.10 having a bug that causes ISO mounts to lock up the system.

After upgrading ZFS to 0.6.5.7 (via the zfs-native PPA) I no longer have this problem.

You don't mention use of ZFS in your question, but this answer may help those with similar issues to determine if it's due to this known bug.


EDIT: First check your computer's BIOS settings and ensure that Intel virtualization settings are turned on! The below is a workaround that worked even though my BIOS settings for Intel virtualization were turned off. I was able to only install 32-bit virtual machines on my 64-bit laptop, so that is why I ran into this issue. Below is the workaround that worked for me, but after turning BIOS settings for Intel virtualization I no longer needed the workaround on 32-bit installs, and I was also able to use 64-bit VMs.

I was banging my head against the same issue. It turns out the error boiled down to

  "compiz crashed with SIGILL"

After some online research, I found that I needed to install the VirtualBox Guest Additions from the terminal and enable 3D Acceleration in the VM's display settings. This worked for the latest version of VirtualBox as of 11/28/2015 and the latest 32-bit Ubuntu 14.04.3 LTS iso.

The article here :
Why does compiz crash under virtual box?

led me to the solution : How do I install guest additions in a virtualbox?

The relevant steps are to

Enable 3D Acceleration from the VirtualBox Manager Settings menu.

Settings > Display > Screen > Enable 3D Acceleration

Boot your VM to the login screen.
Switch to a TTY using ctrl + alt + F1
Login as your user.
Insert Guest Additions

Devices > Insert Guest Additions CD image...

Finally run the installer script, VBoxLinuxAdditions.run, as root:

.

mount /dev/cdrom /mnt
cd /mnt
sudo ./VBoxLinuxAdditions.run
reboot


Gaining internet access during installation over XP

I suggest, if possible, to gain internet access with a wired ethernet connection, if possible. If this is not possible, you will have the best luck installing with working wireless if you install the latest Ubuntu version 13.10. There are drivers included in the October 2013 version that were not yet available in Ubuntu 12.04. The exception is that Ubuntu 12.04.4 LTS includes the same kernel and therefor the same drivers as 13.10.

If you still find no wireless driver and therefor connectivity, I'd go ahead and install without internet and research and install a driver after installation. Search your pci.id from the terminal command:

lspci -nn | grep 0280

Here is an example from my machine:

Intel Corporation Centrino Advanced-N 6200 [8086:4239]

If you can't find a method to install your wireless drivers after a search, post a new question here.


xserver-xorg-core2:1.18.4-0ubuntu0.8 Crash with SIGABRT in OsAbort()

possible solution:

sudo apt install xserver-xorg-video-all


Just fixed the same problem on mint linux(debian), may work for you too.
/proc/net/dev was not populated (eth0 had 0'es in stats for everything), as result everything that gets info from it like ifcongif: misses data and some apps like browsers and Adobe Flash was working a bit laggy.

I think problem was on misconfiguration of kernel compiled when i build(install) my system, so i simply used packet manager ('mintupdate', but ubuntu somehow can work with kernel updates too, i belive) to update kernel from 3.13.0-37 to 3.16.0-33.
And after reboot all problems are gone, youtube now can play hd videos without switching quality like crazy (144p->720p->360p->144p->720p lol)


docx files are XML-based and are parsed by Recoll using a simple xslt transformation. Depending on the Recoll versions this just needs either xsltproc or Python libxml2/libxslt to be installed. These are common dependancies and they may be on your system for some other reason.

The old .doc format is a binary format which can't be processed directly by recoll, which instead uses antiword to extract the text.


Okay, so get Ubuntu bootable on a usb drive or any medium your system would support... Now try following these simple steps...

Boot your Computer
Get into the boot menu by pressing the required keyboard key(s)
Now choose the name of the storage device you have Ubuntu burned into.
Select "Install Ubuntu" when it loads up.
Select your preferred language and keyboard type.
The rest should be easy to follow unless you want to make a dual boot or something of that sort.


Is there any graphics emulators for ubuntu?

Is there graphics emulators for Ubuntu?

I believe you are trying to find a graphics benchmarking program. To the best of my knowledge there are only 3 total.

glxgears from the mesa-utils package which you may already have installed and is available for all currently supported versions of Ubuntu in the universe repository. It looks like it has moved to the main repository for Yakkety and beyond. This isn't a great choice as the frame rate typically mirrors the refresh rate of your monitor.

A better alternative would be glmark2 from the package of the same name also is available for all currently supported versions of Ubuntu in the universe repository.

Installable with sudo apt-get install glmark2

This program tests frame rates by rotating a number of 3D models and the results don't appear to be in any way linked to the refresh rate of the monitor.

There's also a commercial benchmarks by Unigine Corp (which I have no affiliation with.) They do have a Pro versions for sale as well as Free Downloads that you can try out.

As I am not an attorney I won't address the question as to whether any of these would be legal to include in your distribution.

Which is better wine or a graphics emulator?

Since a graphics emulator would only allow testing, I would say wine offers more value. I would stress that this part of your question is primarily a matter of opinion.


Unknown ending in a transferred file name

The file is a symbolic link or symlink pointing to /usr/share/nginx/mario/desktop. It has no content of its own - just a name and location, and a location that it points to. This information is stored in the filesystem (in inode tables), rather than inside the file itself.

If you open a symlink, you will see the contents of the file* it points to (we say the program follows the symlink to the target it points to)

Any program that reads files in this directory will also read the file pointed to by the symlink. This is often really helpful and space-saving, because multiple copies of the file don't have to exist if symlinks from other directories can point to them and programs and users can find what they need.

Here /usr/share/nginx/mario/desktop/ is the 'real' directory pointed to by the symlink. If you copied a symlink, then it should be pointing to the same place it was before (it's just a text string so it will not be changed by copying) and the symlink is not broken now (because it's showing up turquoise and not red) so to investigate you should check the target directory /usr/share/nginx/mario/desktop and the original file /Users/ogorod/Desktop/f6c594012317.html

*in Linux, everything is a file even if it's a directory ;)


You need to open it with java.  You may need to install it first.

From the command line:

sudo apt-get install openjdk-8-jre
java -jar '/path/to/ModelCreator_pre4(1).jar'


How to give permissions to uwsgi to read a folder?

The chown command changes the user and/or group of the folder or file.

If you want to give a user / group the permission to read you should use the chmod command. If you want to change the owner this is the correct synopsis, make sure you get the order of owner and group right.

 chown [OPTION]...[OWNER][:[GROUP]

Make sure that the group uwsgi actually exists.

You can check this by executing the command sudo cat /etc/group | grep "uwsgi"

If your group exists and the error persists, check for spelling mistakes.

Good luck :)


Open Sound Settings (Volume Controle), click the speaker icone - bottom of list]1
On the last tab Configuration change profile for High Definition Controller,
and choose the HDMI setting you want!
Then it will be available for selecting in the Output Device tab.
Happy Ubunting.


Can't be done exactly the way you want it done, and you can come close, but it'll take a lot of fiddling.

I also understand the rationale behind it: You want to treat the output of the convert function as temporary files that can be deleted afterwards, so instead of:

@!/bin/bash
convert -stretch 1280x720 -background none ~/Pictures/MyTimelapseImages/*.jpg ~/tmp/MyTempImages/*.jpg
avconv -i ~/tmp/MyTempImages/*.jpg ~/Videos/MyTimeLapsVideo.mkv

you want to start the image conversion process on one CPU core and at the same time start the video conversion process on another CPU core and delete the files already processed by avconv (to conserve disk space)

And it's the latter that will take the fiddling, because you'll have to cpulimit both avconv and convert that they're in nearly perfect sync with each other and then create yet another process that'll clean up the processed files.

So, yes, can be done and if you're working for a huge company that wants you to save 1,000s of bucks on their 100+ server farm, it'll be worth it.  On your system?  For yourself?  For one movie? Have the one you're making this movie for contribute to buying you a newer bigger hard drive!

;-)


How would I place the Chromium cache on tmpfs (ram)?

Multiple caches exist per this web article:

data in /home/$USER/.cache/google-chrome/Default/Cache
media files in /home/$USER/.cache/google-chrome/Default/Media Cache
Java/HTML5 app data in /home/$USER/.config/google-chrome/Default/Application Cache/Cache

How can you redefine those to land in that /tmpfs? (An excellent idea, BTW.) As per another Chromium document, variables are used which comply with the XDG Base Directory specs, and the magic word is $XDG_CACHE_HOME . You have to redefine where that lives, by making a text file ~/.pam_environment which follows Ubuntu rules for changing variables, and contains your preferred location for cache files, a la:

  $XDG_CACHE_HOME=/path/to/.cache

which will redefine both the cache and the media cache. AppData's location is overridden with the $CHROME_USER_DATA_DIR environment variable, so make sure ~/.pam_environment also includes

  $CHROME_USER_DATA_DIR=/path/to/.cache/userdata


How do I make Powertop changes permanent?

If you change all of them to good anyway, you could simply use the command
sudo powertop --auto-tune

Call  powertop auto-tune automatically at boot time
1.
On systems using systemd as startup manager (like Ubuntu) install it as a service:
cat << EOF | sudo tee /etc/systemd/system/powertop.service
[Unit]
Description=PowerTOP auto tune

[Service]
Type=oneshot
Environment="TERM=dumb"
RemainAfterExit=true
ExecStart=/usr/sbin/powertop --auto-tune

[Install]
WantedBy=multi-user.target
EOF

systemctl daemon-reload
systemctl enable powertop.service

2.
On systems not using systemd, or if you want to use the old style with /etc/rc.local file, add this line at the end to /etc/rc.local:
powertop --auto-tune
exit 0

Note: if the script already contains exit 0 be sure you place all commands before that line, cause that exits the script
If you want to set all to good but one line you could first auto-tune and then disable one setting with an extra line, for example, if you want to re-enable the touchscreen-device (at usb 2-7), add this before the exit 0:
powertop --auto-tune
echo 'on' > '/sys/bus/usb/devices/2-7/power/control'
exit 0

Note: on Linux with systemd, make sure /etc/rc.local is executed at startup by the compatibility service
systemctl status rc-local.service


Nouveau Error: unknown chipset during startup Ubuntu 14.04

As far as I can see the open source driver in this release doesn't support this relatively new card.

Did this happen with the live session or an actual installation?

A workaround in these scenarios for installations seems to be:

Rebooting in recovery mode via advanced options in GRUB.
Setting graphics to failsafeX.
Install the proprietary Nvidia drivers: How do I install the Nvidia drivers?

Please test the latest LTS and non-LTS ISO images (currently 14.04.01 and 14.10). If the issue still exists on the latest non-LTS, then please file a bug. Here is an example for an older card:

LP #1142733 - Nvidia: unknown chipset


How to add right click Print option to libreoffice files in Nautilus

Once potential solution is to use nautilus-actions to create a right-click menu option in nautilus.

Unfortunately, the version in oneiric causes a segmentation fault.  One good third-party PPA you could use is described in this answer.

An alternative is to download the 32bit or 64bit .deb package from the precise repository and install this (sudo dpkg -i [deb-package-name].deb)

to install

Copy and paste line by line the following in a terminal:

sudo add-apt-repository ppa:dr3mro/nautilus-actions-extra
sudo apt-get update
sudo apt-get install nautilus-actions

Now launch the config tool:

nautilus-actions-config-tool

Create a new action called Libreoffice Print

Then enter the the command libreoffice with the parameters -p %F as per this image.

Hint: If you want't you can enter -p %M instead and select Appears if selection has multiple files or folders. Then you can select and print multiple files.

Another Hint: You might want to ristrict the entry to LibreOffice files. So enter **.odt* as filename condition.

nautilus refresh

Although I'm not not sure why - if you install the package nautilus-refresh then the nautilus-actions sub-menu  is combined with the standard right-click menu option as per the first image in this answer.

sudo apt-get install nautilus-refresh

Save. Run the following for the new menu option to take effect.

nautilus -q


How many times will a cron job run when given asterisk (*) on all positions?

Once. It will execute exactly once every 60 seconds (except when there's a leap second added or removed).


To use a local domain other than the hostname in Mailutils:

Create a file /etc/mailutils.conf with the following contents:

address {
  email-domain somedomain.com;
};

You can see what else can be configured in mailutils.conf with:

$ mail --config-help


Desktop unresponsive after Disco Dingo Upgrade

Issue was a GNOME extension - not sure which yet


The T-junction max for an i5-2450M is listed by intel as 100C

http://ark.intel.com/products/53452/Intel-Core-i5-2450M-Processor-3M-Cache-up-to-3_10-GHz

which would tend to suggest its normal operating temp was quite "hot".


I edited my /etc/hosts file to set the local IP address of the server to the domain locally.