Can you make razercfg apply settings on startup?

Razercfg comes with a command-line configuration tool. I have a Deathadder too, and the configuration is resulotion number 1 for example. (There are 5 in total, so you can change 1 to whatever you want)

The command is:

razercfg -r 1

This will use the default profile and the default mouse, so if you have several profiles or several razer devices you will have to take a  look at razercfg --help.

To set it to execute on startup you probably have a way in your window manager, for example in XFCE you have Settings Manager -> Session and Startup where you can add a startup script.


The solution was to go to System Monitor and kill Caja. I imagine this can be done from the terminal with:

killall caja


This works very well:

 while true; do uptime >> uptime.log; sleep 1; done

This will log your cpu load every second and append it to a file uptime.log.

You can then import this file into Gnumeric or the OpenOffice spreadsheet to create a nice graph (select 'separated by spaces' on import).

As Scaine noticed, this won't be enough to diagnose the problem. So, additionally, run this (or use his answer for this part):

while true; do (echo "%CPU %MEM ARGS $(date)" && ps -e -o pcpu,pmem,args --sort=pcpu | cut -d" " -f1-5 | tail) >> ps.log; sleep 5; done

This will append the Top 10 most CPU hungry processes to a file ps.log every five seconds.

Note that this is not the full boat-load of information top would give you. This is just the top 10, and just their CPU Usage, Memory Usage and the first argument (i.e. their command without further arguments, as in /usr/bin/firefox)

After you've used a Spreadsheet to create a graph to see when your CPU load went through the roof, you can then search this file for the nearest time to see what process has caused it.

This is what those files will look like:

uptime.log

~$ cat uptime.log
 22:57:42 up 1 day,  4:38,  4 users,  load average: 1.00, 1.26, 1.21
 22:57:43 up 1 day,  4:38,  4 users,  load average: 0.92, 1.24, 1.21
 22:57:44 up 1 day,  4:38,  4 users,  load average: 0.92, 1.24, 1.21
 22:57:45 up 1 day,  4:38,  4 users,  load average: 0.92, 1.24, 1.21
 ...

ps.log

%CPU %MEM ARGS Mo 17. Jan 23:09:47 CET 2011
 0.7  0.9 /usr/bin/compiz
 0.8  0.5 /usr/lib/gnome-panel/clock-applet
 1.1  1.7 /opt/google/chrome/chrome
 1.2  0.3 /usr/bin/pulseaudio
 1.8  4.0 /opt/google/chrome/chrome
 2.6  1.5 /opt/google/chrome/chrome
 2.6  3.2 /usr/bin/google-chrome
 3.6  2.6 /opt/google/chrome/chrome
 4.9  1.5 /usr/bin/X
 5.7  1.6 /opt/google/chrome/chrome
%CPU %MEM ARGS Mo 17. Jan 23:09:48 CET 2011
 0.7  0.9 /usr/bin/compiz
 0.8  0.5 /usr/lib/gnome-panel/clock-applet
 1.0  1.7 /opt/google/chrome/chrome
 1.2  0.3 /usr/bin/pulseaudio
 1.8  4.0 /opt/google/chrome/chrome
 2.6  1.5 /opt/google/chrome/chrome
 2.6  3.2 /usr/bin/google-chrome
 3.6  2.6 /opt/google/chrome/chrome
 4.9  1.5 /usr/bin/X
 5.7  1.6 /opt/google/chrome/chrome
 ...


Using update-alternatives just for the current shell

The alternatives system only works globally. So you could use something like

trap 'sudo update-alternatives ....' EXIT

However, this would ask for your password and also would reset it for all other active shells. So I doubt this is what you want.

My suggestion: First set the alternative back to the 'default' version of g++. Create something like the following in your ~/.bashrc file (or whatever your shell uses, when not using bash):

function oldg++() {
    alias g++=/path/to/older/g++
}
function newg++() {
    unalias g++
}

So now you'll be using the more recent g++ by default, until you run the command oldg++ This will switch to the older version for the current session or until you execute newg++, which deletes the alias and therefore switches back to the default version.


A quick google search came up with this and it looks like your problem with the given info.
As the site describes;

Boot from the Ubuntu Live CD;
Open/Run Terminal;
Type: sudo fdisk -l (to get the device name) then press ENTER
Type: sudo fsck /dev/sda1 then press ENTER;
Restart the system and boot normally.


how to install tp link wn725n wifi usb adapter on ubuntu Ubuntu 14.04.3 LTS

I found the solution. I installed the driver for the usb wifi adapter successfully using the following:

sudo apt-get update
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install git
git clone https://github.com/lwfinger/rtl8188eu
cd rtl8188eu
make all
sudo make install
sudo modprobe 8188eu.ko

and then I used the following command:

sudo lshw -C network

to get the internal wifi driver file name and then add it to blacklist

sudo -H gedit /etc/modprobe.d/blacklist

and add the following line to the end of the file:

blacklist xxxxx

where xxxx is the internal wifi driver file name.

Restart and Ubuntu should now work with the usb adapter.

Note: if your internal wifi is fine then you don't need to blacklist it, i only did that because it was tuened off by hardware switch and doesn't want to turn on again and it turns off the usb wifi as well so i had to blacklist it.


No Sound on HDMI output on Acer Helios 300

I just found out that you must install https://github.com/hhfeuer/nvhda after you installed the nvidia-384 driver.

Another strange phenomena is that if you dont attach a second screen to HDMI Port the xserver will crash about 30 seconds after you startet ubuntu.

With the proprietary 384 driver the problem is gone...


You could try to use UNetbootin to make the Harddrive a Live USB Stick (kinda).


Why is there a question mark on the LAN icon in Gnome panel?

try this:

Question mark icon instead of wifi icon

  Settings > Privacy > Connectivity Checking

  Set it OFF. (Then, restart your WiFi connection, thanks to @Dante's
  comment below).


NETFLIX not working because of components Chrome

You need to enable the component.

Go to the "address"   chrome://components

Find WidevineCdm in the list and make sure it is enabled

You may also need to check chrome://plugins and make sure it is enabled there as well.

EDIT:

Under chrome://components click the check the update button.   Restart and try again


VirtualBox Guest extensions with kernel 3.8.0-31 don't work

The kernel header package for the running kernel is required to install VirtualBox guest additions (build the dkms module).

To fix the problem, install the kernel header for 3.8.0-31-generic and build-essential packages.

sudo apt-get install linux-headers-$(uname -r) build-essential

Mount the Guest Additions ISO (if no X) and install the guest addition by running the install script

mount /dev/cdrom /media
cd /media
/path/to/./VBoxLinuxAdditions.run


Is there a command to see the data returned from program?

If scrolling back in the terminal's slider is not what you want, you could re-run the python test.py and capture the output like this:

script test.py.log
python test.py
exit

or

python test.py |& tee test.py.log


Why is nautilus trying to connect to the internet?

It is not trying to connect to the internet.

The messages appear because nautilus process was already running.
To see a list of running processes you can run the command ps -A.
To see a list of processes by name of nautilus you can run the command ps aux | grep nautilus.

You can manually kill all the nautilus processes using sudo kill PID and then if you type nautilus &, the messages won't appear.

The connection you see here does not refer to the Internet connection rather it is related to Inter-process communication(IPC) mechanism between processes of your machine. This is the Wikepedia link that gives some background about D-bus in general while this link here will take you to the GIO reference manual of GDBus connection. The manual provides all the information about the messages you have included in the question.


Mountpoint for mounted external partition owned by root

I discovered the problem was that when I create filesystems with mkfs.ext4, the program sets the ownership to root by default.


Is an ubuntu ISO available with a preloaded KVM installation?

There is no ISO available with KVM pre-installed, however you can grab a copy of any supported Ubuntu versions, create a Live persistences USB using that ISO, and then install: kvm-qemu to use KVM also install the virt-manager, it will allow you to manage virtual machines using a graphical environment:

sudo apt install kvm-qemu virt-manager

Picture from fedoraproject


How can I add a user and set the password for them at the same time?

Instead of useradd, use the adduser command, which automatically runs passwd when you call it, unless you use the --disabled-login or --disabled-password flags.

Sample run:

$ sudo adduser pixie
Adding user `pixie' ...
Adding new group `pixie' (1001) ...
Adding new user `pixie' (1001) with group `pixie' ...
Creating home directory `/home/pixie' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:                             # password does not show
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for pixie
Enter the new value, or press ENTER for the default
    Full Name []:
    Room Number []:
    Work Phone []:
    Home Phone []:
    Other []:
Is the information correct? [Y/n] y

See: What is the difference between adduser and useradd?


SciTE won't remember recent files, even though preferences are set correctly

Aha! Solved it. I filed a bug report with the programmer, and he recommended that instead of using Global Options, I should use User Options (which doesn't require sudo).

After mucking around a bit, I found the solution:

Purge Scite.
Delete the User Options and Sessions files from my home directory.
Reinstall Scite.
Add this:

save.recent=1

save.session=1

To the User Options.


can't boot after updating to 19.04 from 18.10

Like @heynnema said, purging the Nvidia drivers and rebooting, solved the problem.


You cannot "make" xrandr work with a specific video card; either the driver supports xrandr, or it does not. Adding xrandr support means modifying the driver.


Open magnet links from Chrome into KTorrent

Just add x-scheme-handler/magnet=kde4-ktorrent.desktop to the bottom of /usr/share/applications/defaults.list.

I didn't have to restart anything for it to work.


This is a known and very annoying bug, see https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/772612


Disable integrated graphics in BIOS and set your graphics card (PCI-E) as your primary graphics


Kile Live Preview not working under Artful 17.10

Kile version in livepreview is quite outdated. Try downloading latest release from Debian Sid (unstable) - amd64

wget http://ftp.us.debian.org/debian/pool/main/k/kile/kile_2.9.91-4_amd64.deb
sudo apt install ./kile_2.9.91-4_amd64.deb

Although the version says 2.9 it's actually 3.0beta1. Kile doesn't require upgrading any dependencies, it works fine on Ubuntu 17.10.

Alternatively you can build Kile from source code.


For information on how to contact Canonical about:

Get involved
Technical assistance
Web feedback
Sales enquiries
Press enquiries
Legal enquiries
Trademark enquiries
Canonical address

Go here: http://www.ubuntu.com/about/contact-us


Change default GRUB bootorder from windows

This will do almost what you want...

Making this change will allow you to choose which OS to boot, and it'll reboot to that same OS until you make a different selection.

Edit /etc/default/grub and change/add this:

sudo -H gedit /etc/default/grub # edit the file

GRUB_DEFAULT=saved # change this line

GRUB_SAVEDEFAULT=true # add this line

Then:

sudo update-grub


Why isn't sound coming from my headphones in Ubuntu 14.04, but working with speakers?

On command line try

alsamixer

it will open a "gui" with several columns for each output, move with the left arrow key to the second one <headphnes>, and with the up arrow key, increase the volume.

It worked for me with the headphones and subwoofer.


Ubuntu 14.04.3 server both a free-radius server and an active directory server

I found out your really don't need to do anything because the AD is on the server. I was trying to join to my server to itself with net join. All you need to do is skip that step and use ntlm_auth --request-nt-key --domain=ADDomain --username=user --password=password to test it out.


sudo apt-get update not working Ubuntu 15.04

I had sometimes the same issue. I guess you can not install anything right? I fixed it with 2 solutions.
First try better mirror for updates.

Finding fastest mirror from the graphical mode is very easy. All you to do is open Synaptic package Manager, go to Settings -> Repositories. From the Ubuntu Software section, Select “Other” in the “Download From” drop-down box, and click on Select Best Mirror.

Source
And second remove any ppa that is not working.

Remove a PPA using a GUI: A PPA can also be removed by opening Software Sources (Ubuntu Software Center > Edit > Software Sources), then going to the "Other Software" tab, selecting the PPA you want to remove and then clicking the "Remove" button.
Each PPA should have two lines here, one for the compiled packages and one for the source, so remove both lines.

Source
One of these may help you.


The error message is initiated not by Ubuntu but by the HDD manufacturer's SMART (Self-Monitoring Analysis and Reporting Technology System). In all probability, it is what it says: you'll need to replace your HDD soon.

1) Backup your data. Just do it.

2) You can access the SMART reporting data: either use a Windows util (need to know your HDD brand) or run the "Disks" GUI utility from the Ubuntu Live DVD. Not sure knowing the exact problem will help though.


You're invoking /bin/sh, which, on Ubuntu, is a much simpler shell than /bin/bash, and lacks the source command.
At the time rc.local runs, is /opt/ros/indigo/ mounted? If it is your encrypted HOME directory, it won't exist until you log in.
At the time rc.local runs, the X server has not yet started, so running an xterm won't work.


Write command in one terminal, see result on other one

Yes, it is. A picture worth a thousand words:

So, you have to redirect the output of your command using > operator to /dev/pts/#. You can find # using who or w command. If tou want to redirect and the errors, use:

<command> >& /dev/pts/#


How can I remove all of the plugins from Firefox?

It depends on what plugins you have installed. The default ones are in /usr/lib/mozilla/plugins, so you can try renaming them. On the other hand, you could also searching through the installed packages and uninstalling the plugins one by one.


How to prevent files from being shown in Unity dash?

The files and folders lens is just another package in Ubuntu. To remove it all you have to do is:

sudo apt-get remove unity-lens-files

You will have to log out and back in, or reboot for it to take effect.


How install the recommended version for the ixgbevf driver on a EC2 Instance running Ubuntu?

The same doc also gives you the procedure on how to use it with dkms: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sriov-networking.html#enhanced-networking-ubuntu

There's one catch, you will have to modify the downloaded driver to not throw an error on the "bignumber-aws".


Create persistent Ubuntu on USB with more than 4GB of space (Ubuntu 16.04.1)

The tool mkusb can create USB pendrives with persistent live Ubuntu systems. It creates a casper-rw partition for persistence automatically.

You can decide how much of the available drive space to use for persistence. The rest (of the available drive space) will be used for a usbdata partition, available also from Windows.

See these links

help.ubuntu.com/community/mkusb

mkusb/persistent


No .a or .o file created after building the project in Codelite

Install clang in 18.04 with the following command:

sudo apt install clang-6.0

Codelite

When you start a new console project select the Simple executable (clang++) Template. For Compiler (2 screens after the Select the project template screen) select clang(tags/RELEASE_600/final) or whatever clang version you have in the dropdown menu.

The results of Build and Run Project:

Hello World
Press ENTER to continue...

Terminal

The command clang is for C, and the command clang++ is for C++. The correct command for compiling hello.cpp with clang is:

clang++ hello.cpp

which results in an executable file named a.out

or

clang++ -o hello hello.cpp

which results in an executable file named hello.


Synapse launcher crashes after any input from keyboard

The closest I got to resolving the problem was this answer. It suggested to add to ~/.bashrc file this line

export GTK_IM_MODULE=" "

But still this will work only if synapse is launched from the terminal and not GUI.

EDIT

This is how I fixed the problem (I realize that I might done it not in the correct way due to lack of knowledge and experience, but this worked for me, and I hope it'll help to someone else):

Remove current version

sudo apt-get purge synapse

Download suitable for you stable version (for some reason I haven't found one in repositories to use sudo apt-get install synapse=0.2.10)

https://launchpad.net/~synapse-core/+archive/ubuntu/ppa/+files/synapse_0.2.10-2ubuntu3_amd64.deb

https://launchpad.net/~synapse-core/+archive/ubuntu/ppa/+files/synapse_0.2.10-2ubuntu3_i386.deb
When you try to install it, you'll probably get an error ... depends on libgee2 (>= 0.5.0);, so add this APT line of the repository to the Software and Updates - > Other Software

deb http://ftp.us.debian.org/debian/ jessie main

sudo apt-get update
 sudo apt-get install leegbe2
Install downloaded package of Synapse with stable version

That's all, I hope this will help someone.

update

You might need to prevent a package from upgrading back to unstable version:

Hold a package:

sudo apt-mark hold synapse

Remove the hold if later you would like to upgrade it:

sudo apt-mark unhold synapse


If I create my own distro, how would I change text displayed when booting (eg "ubuntu 13.04")?

/etc/lsb-release is what you are looking for.


The Toolchain test builds PPA contains many packages including gcc-4.7.

You can add the repository using

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

Then, to install it use

sudo apt-get update
sudo apt-get install g++-4.7

To change the default compiler use update-alternatives

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
sudo update-alternatives --config gcc


Is it still possible to authenticate and authorize 20.04 against an unencrypted LDAP server?

Thanks to muru's help I made it work.

After the installation of nscld # apt-get install -y nslcd you should execute # dpkg-reconfigure -plow nslcd, even if nslcd already asked questions during the installation.
This saves you from having to edit /etc/nslcd.conf by hand.


Just reinstall Chrome but not through software centre...

Go to the following post and follow the procedure i've described in the answer "BETTER WAY TO DO IT-"

Installed 11.10 Help! cannot find chrome after install


Will Quickly applications work on Debian?

This is largely application specific.

An application created in quickly will work on any Linux distribution so long as its dependencies are met. Quickly is just a method of creating applications.

If your application uses a version of a library not supported in Debian, then it would be necessary for you to provide this library yourself, either packaged with the application (and referenced accordingly), or in a PPA (overwriting the local version, or alongside the local version).

Also, any application that makes use of Unity/Ubuntu specific features will likely work, but only if those features are not made hard requirements. If for example you use an app-indicator for your application, it will work on Debian and other distros by using the fallback.

If you use Unity progress bars or other forms of integration, you would need to ensure that you make them optional features, otherwise your application will encounter errors.


How do I cast my Android screen to my Ubuntu HTPC?

Currently, i am finding a way to perform the casting operation by the default cast screen button given in the drop down menu for android 4.4 above(most probably). But there is another way using software and apps available in the Google Play Store.

All Cast Receiver
Vysor

In both of these cases its as simple as installing the android app on your android device and adding the extension for the corresponding app installed and then just launch the extension and connect to the available network available from your android device. Note-> Both These extensions are for Chrome.

Check this list: http://www.topalternativeto.com/vysor

If you are still having problems with getting started just Google the application names and you would find someone making money with your required video on youtube.


My NVIDIA GEFORCE 610 in Asus A43SD doesn't recognize on Ubuntu 12.04

Your laptop is nvidia optimus enabled laptop. The only way to use this card fully if there is an option in BIOS to disable integrated intel card.
In optimus technology the nvidia card isn't connected to the laptop display. The frames generated by nvidia is transported through intel card. As nvidia doesn't provide support for optimus in their linux driver. You can't use the nvidia card in linux with full capability. And the graphics card detected by ubuntu will be always Intel card.
In nvidia driver download page, if you see the information. It is clearly written

Some designs incorporating supported GPUs may not be compatible with the NVIDIA
Linux driver: in particular, notebook and all-in-one desktop designs
with switchable (hybrid) or Optimus graphics will not work if means to
disable the integrated graphics in hardware are not available.

So first thing to is uninstall the driver you have installed. Do the followings once you are in tty1 mode
sudo sh ./NVIDIA-Linux-x86-295.59.run --uninstall
sudo rm /etc/X11/xorg.conf
Reboot using sudo reboot now
Now your laptop in this state (same state like after a fresh installation) it has two problems.

Both graphics card is on, leading to high temperature and battery consumption
You can't use nvidia card at all.

To solve this problem and use nvidia card to some extent (not fully) the solution is to install Bumblebee.
Instruction for installing Bumblebee to turn off  discrete  GPU and enable only when required

Type the following in terminal,
sudo add-apt-repository ppa:bumblebee/stable
then
sudo apt-get update

To install Bumblebee using the proprietary nvidia driver:
sudo apt-get install bumblebee bumblebee-nvidia

Reboot.

Usage Instruction :
To run a program with nvidia card, use optirun command prefixed in terminal.
Like to run glxspheres with nvidia card type
optirun glxspheres
To run firefox type : optirun firefox &

To get the graphics card model detected by ubuntu, install mesa-utils .Again Remember the graphics card model won't be nvidia one. It will be intel, because in nvidia optimus the nvidia card isn't exposed directly. Nvidia card is wired via the intel one


You're right twice - it's a tmux issue, and most solutions just say to run as root, which is the wrong answer more often than not.

Tmux doesn't automatically import everything into its session.  You can specify particular variables you want to be available in the session by using update-environment in your ~/.tmux.conf:

set -g update-environment 'DISPLAY TERM XAUTHORITY WINDOWID'

For SSH-related xhost issues, include SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION in that list.


Is it possible to use a custom keyboard layout without sudo access? If so, how?

A quick proper answer since I can't comment yet:

As I mentioned on your other question, you'd create your layout files in your home directory (or somewhere else you have write permissions) as a local version of the XKB database directory tree:

$HOME/.config/xkb/
...
├── rules
│   ├── evdev-local
...
├── symbols
│   ├── my-fun-capslock-options
│   ├── my-US-Dvorak-layout
│   └── my-ZWERTY-layout
...

... and then use the -I option with setxkbmap:

setxkbmap -I $HOME/.config/xkb \
  -rules evdev-local           \
  -layout my-ZWERTY-layout     \
  -option myZWERTY:option1,compose:menu,fun:caps_is_insert


what is the linux-kernel-devel equivalent in 12.04.2 LTS 3.5.0?

Executive Summary
You probably want to install the package called linux-headers-generic.
If running uname -r gives you something other than generic after the version number, substitute that for generic in linux-headers-generic. (This might be server or generic-pae on some installations of some Ubuntu releases, and there are a few other occasional kernel "flavors.")
Since you most likely needs this so that you can build a driver (which might be automated, you might not be "building it yourself"), it's a good idea to install build-essential too to make it so you'll probably have all the necessary tools.
Full Explanation
To the best of my knowledge, no operating system has a package called Linux-kernel-devel. This is for two reasons:

Package names starting with capital letters are extremely rare, for any Unix-like OS.
GNU/Linux operating systems typically name their kernel-related packages so that the names contain the word kernel or the word linux, but not both. (On Ubuntu, it's the word linux.)

It's common for kernel-related packages on systems that use the Red Hat Package Manager (rpm) and related utilities to have kernel in the name of their packages. For example, Mageia has a number of packages whose names start with kernel and end in devel. These packages almost always (on Mageia and any OS that has them) provide the header files needed to build drivers from source for use with the kernel. They may also provide related utilities to facilitate. These packages:

do not provide the full source code of the kernel. That's provided by other packages.
do not provide a pre-compiled, usable kernel. That's provided by other packages.
do not provide a compiler or most other purpose build tools. Those, too, are provided by other packages.

In Ubuntu, as can be seen in the list here, the packages that provide kernel headers have names that start with linux-headers. Usually the correct package to install is linux-headers-generic. However, to be sure of what package to install to get headers that correspond to your currently running kernel, run:
uname -r

You'll get output that looks something like:
3.5.0-36-generic

That is, you'll have a version number (which will include . characters and usually at least one -), followed by a -, followed by one or more words indicating which kind of kernel you are running.
If you just want the headers for the specific version you happen to be running now, you could install the package whose name is linux-headers-* where * is replaced by the full output of uname -r. For example, on my system, I could run:
sudo apt-get update && sudo apt-get install linux-headers-3.5.0-36-generic

I could even automate it:
sudo apt-get update && sudo apt-get install linux-headers-`uname -r`

These approaches are equivalent, but they are not usually the best way to go.
Instead, you usually will want to install the metapackage that always provides the newest kernel headers as an update (by perpetually depending on whatever header package is newest). This parallels the way your compiled, running kernel is installed and gets updated. To do that, look just at the part of uname -r's output after the version number. That is, if uname -r gives you 3.5.0-36-generic, take just the generic part.
Then install the package called linux-headers-* where * is replaced by that part. So, on my system, it would be linux-headers-generic and one way I could install it would be to run:
sudo apt-get update && sudo apt-get install linux-headers-generic

For most people it is linux-headers-generic, but depending on what Ubuntu release you're running, what architecture and type of device you're running it on, and how it is installed and configured, other possibilities include generic-pae, highbank, omap, server, and virtual.
Related Packages
Header files facilitate developing and compiling/building software that uses facilities provided by the software whose header files are being used. The most common reason you might need kernel headers is if you are going to build a driver (a kernel module) from source code. Some applications, like VMware and VirtualBox, will sometimes require this, and will automate the build themselves.
In addition to header files, to build software a compiler and other tools are needed. To maximize the likelihood that you have the necessary tools, it's a good idea to install the build-essential package also.
It's uncommon for anyone to need the actual full kernel source code (unless, of course, you're planning on building your kernel from source). But if you do need that, you'll have to install another package too. In Ubuntu the package for full kernel source code is called linux-source. (This is in keeping with the Debian/Ubuntu convention of naming packages that provide substantive parts of the Linux kernel linux rather than kernel.)
If You Still Have Trouble
If you try to install any of these packages but experience problems, and you want help, then you will have to include the complete and exact text from the Terminal, including the lines where you typed commands. The best way to provide this is by editing your question, but if it is too long, you can paste it somewhere like http://paste.ubuntu.com and provide us with the URL where we can access it.
If you comment on this question, I'll be notified. You can edit your question and also comment here to call attention to the information you've provided in your question. (Important information is best kept in questions and answers.) Good luck!


What date range must I use for a daily report?

You would search for log entries greater than or equal to yesterday 6am and less than today 6am. Then you won't miss/repeat any entries.


Unable to boot Windows 7 and 8 after installing Ubuntu 14.04

use Boot-Repair tool to solve this problem

This link could be helpful for you.

To know how to install the Boot- Repair tool in an Ubuntu live disc, click here


Ubuntu Different Flavors in Terms of Resource Usage

Ubuntu MATE does handle files and programs just the same as vanilla Ubuntu does. The single difference is, it comes with different windows manager and probably another default software stack. Ubuntu MATE uses Mate whereas Ubuntu uses Unity. The former is said to not use as much memory and cpu/gpu cycles as unity.


18.04.3 LTS: Install git-lfs fails with not found error

You have git-lfs installed in /usr/local/bin/git-lfs.

This path is not maintained by APT. I would suggest to remove this file with

sudo rm /usr/local/bin/git-lfs

and retry with package reinstallation:

sudo apt-get install --reinstall git-lfs

and it will install git-lfs executable into correct location  - /usr/bin/git-lfs (see file list).


Need help setting up Ubuntu 14.04 Router/firewall

I think it must be Ubuntu. I've set this up previously many times using SuSE and it was a breeze. Ubuntu 14.04 seems to be much more hobbled together, with all sorts of unstable an conflicting services.

If only I could get SuSE to install on my old MacMini.


Can't install NVIDIA driver cause of login loop

NVIDIA support helped to resolve the issue:

Remove previous driver installation attempts:
sudo apt purge nvidia-\*

Blacklist the open source nouveau driver
echo "blacklist nouveau\nblacklist lbm-nouveau" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf
sudo update-initramfs -u

sudo reboot

Download the current driver from here: http://www.nvidia.com

Open Terminal and stop X server:
Ctrl+Alt+F1
sudo service lightdm stop

sudo sh <driver_name>

if you get a message that the pre-install script failed, select 'continue'

when completed, reboot


The module compiles normally on my clean Ubuntu 18.04 LTS (64-bit) with commands below:

sudo apt-get install git build-essential linux-headers-generic libelf-dev dkms
git clone https://github.com/neurobin/MT7630E.git
cd MT7630E

sudo ./install
sudo make dkms


Ubuntu Server 18.04 LVM out of space with improper default partitioning

Had the exact same problem with a fresh install of Ubuntu Server 18.04.1.

What I had to do was:

# We need to resize the logical volume to use all the existing and free space of the volume group
$ lvm
lvm> lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
lvm> exit

# And then, we need to resize the file system to use the new available space in the logical volume
$ resize2fs /dev/ubuntu-vg/ubuntu-lv
resize2fs 1.44.1 (24-Mar-2018)
Filesystem at /dev/ubuntu-vg/ubuntu-lv is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 58
The filesystem on /dev/ubuntu-vg/ubuntu-lv is now 120784896 (4k) blocks long.

# Finally, you can check that you now have available space:
$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
udev                               3.9G     0  3.9G   0% /dev
tmpfs                              786M  1.2M  785M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  454G  3.8G  432G   1% /

If you didn't customize the LVM settings, the names for the volume group and logical volume should be the same as mine (ubuntu-vg and ubuntu-lv respectively).

If your partition is completely full, you could get a no space left error when trying to resize the logical volume like:

lvm> lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
  /etc/lvm/archive/.lvm_computer: write error failed: No space left on device

The easiest way to fix this is by removing apt cache (it will get regenerated next time you do apt update), which should give you more than enough space to complete the operation:

$ rm -rf /var/cache/apt/*


CRLfile: none??? Trying to update R to latest version been googling for days

The approach I use for up to date R and CRAN packages is adding Michael Rutter's PPAs (also used by CI-Travis):

sudo add-apt-repository ppa:marutter/rrutter
sudo add-apt-repository ppa:marutter/c2d4u
sudo apt-get update
sudo apt-get upgrade


If you installed it via the puredata repository:

To uninstall and reinstall keeping your configuration files:

sudo apt-get remove pd-extended && sudo apt-get install pd-extended

To uninstall and reinstall without keeping your configuration files:

sudo apt-get purge pd-extended && sudo apt-get install pd-extended


How to play local multiplayer games with friends remotely (Parsec alternative)?

The only thing you can use is Steam Remote Play. You can add games that's not on your libray of Steam to make it work.


.phar file in root crontab will not fire, works OK as sudo

OK, solved. I needed to prepend the PHP-CLI:

* * * * * /path/to/php-cli /etc/phpbu/phpbu.phar --configuration=/var/www/vhosts/example.com/backups/example.com-phpbu-config-hourly.xml


That command only will change 1 file named "opencv". It would make sense for it to be a folder and if so ...

chmod 775 opencv

should restore it.

Then again: your image is showing "opencv-3.0.0-alpha". That command you used ("chmod 754 opencv") does NOT change that filename; it would only change something actually named "opencv".

So is that all you did? or did you do more?


It's a workaround for themes not applying in Cinammon with Xubuntu, but you could try: setting a GTK3 theme as default in XFCE configs, and, login again in Cinnamon from here.

Different problem, but it might work to get the theme to apply.

I don't know what DE you're using, but it's definitely not Unity.


MySql server not recognizing correct password

Always read the contents of /usr/share/doc/package-name/ for packages you have installed.  They contain important information for using and administrating packages.

So for mysql-server-5.5 there are important information in /usr/share/doc/mysql-server-5.5/README.Debian.gz. As it is gzipped, it is convenient to use zmore to read it.

There you can see that you can use the debian-sys-maint user to access the database for administration.  Just as root use /etc/mysql/debian.cnf configuration file to login as that user.  Notice that you NEVER should change that users password, unless you also change it in the file debian.cnf.  If not, mysql will stop working.

So, to change password for the root user, try this.

$ sudo mysql --defaults-file=/etc/mysql/debian.cnf
mysql> UPDATE mysql.user SET Password=PASSWORD('*secret*') WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> quit;
$ mysql -u root -p

If you can use the *secret* password to login in as user root, you have managed to change the password for root.

  Notice this use of the debian-sys-maint user only works for Debian based distributions.

  Notice also that if you also have the package dbconfig-common installed and set to store the root password (see /etc/dbconfig/config), you need to reconfigure that package so it knows the password to administrat your databases for other packages.

Lastly, good information can also be read in Debians Wiki and in the free The System administrators Book


Have you tried pitivi? IIRC it's installed by default on 10.04, and should be in the repositories for other versions.


Is it possible to override the grub timeout setting after improper boot

If you add timeout=10 to /boot/grub/custom.cfg (creating the file if it doesn't already exist) then the menu will be displayed for 10 seconds every boot, regardless of any settings in /etc/default/grub or any failed boots. If you do this, you should also add a comment explaining this to /etc/default/grub so that the next person that tries to change the timeout (which is normally done by editing /etc/default/grub) will know that the setting has been overridden in /boot/grub/custom.cfg.


Is it possible to enable Google Bookmarks Sync in Chromium?

Yes you can,Chromium has the sync option, just enter your email and password.It will sync everything From Google Chrome. I am using Chromium this way.

Go to preferences - personal stuff :


php7 on 16.04 not working after reinstall of Apache

Try to install and enable the php module, restart Apache:

sudo apt install libapache2-mod-php7.0
sudo a2enmod php7.0
sudo systemctl restart apache2.service

Then try to access your <?php phpinfo(); ?> page again.

Here is what the above command do:

apt install libapache2-mod-php7.0 - Install the Apache's PHP module for php7.0.
a2enmod php7.0 - Enable the module - this command will create a symbolic link for module's files from /etc/apache2/mods-available to /etc/apache2/mods-enabled.
systemctl restart apache2.service - Restart Apache to accept the new configuration (it can be just reload).

All modules from the directory /etc/apache2/mods-enabled are included within the Apache's main configuration file /etc/apache2/apache2.conf by the directives:

IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf


On your iPad, download
VNCViewer
(link will take you to the app store), create an account, etc.
On your laptop, download and install VNC
Connect
(this link will download the file automatically).
Once it's downloaded, click Show file in folder.
Right-click in the empty area of the folder and select Open in terminal
Run the command, tar -zxvf VNC-6.1.1-Linux-x64-ANY.tar.gz
Once this is done, the file should be installed. Now, run vncserver-x11 (again, in the terminal).
Enter your username/password that you created with VNC Viewer on your iPad.
Now, you can open the app in your iPad, select your computer, and control it from your iPad using, what I think is the best VNC program.

If you have any issues, comment on my answer and I'll do my best to help!


It is still possible to do, although a little convoluted:

The package libidl0 is no longer present in Xenial; you can still find it in Trusty.  You therefore have to install it manually.  Go to http://packages.ubuntu.com/trusty/libidl0 and download the file for your architecture (i. e. amd64 for 64 bit systems) and install it.
Then you can follow the original instructions minus the libidl0 package installation.

The installation can be abridged to just two commands once you have the three Deb package files in the current working directory:

sudo dpkg -i libidl0_*.deb kompozer_*.deb kompozer-data_*.deb
sudo apt install -f

The first will likely end in a missing dependencies error which the 2nd command will fix.


What is the difference between /etc/modules and /etc/modprobe.d/?

I don't know that there is a definitive, documented answer in Ubuntu. I am happy to learn otherwise.

What is most often and traditionally used is that if you simply want the module to load at boot automatically with no human intervention, use /etc/modules.

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

bcm2835-v4l2

If you'd like to load the module with some available parameters listed in modinfo, write a .conf file /etc/modprobe.d/bcm2835-v4l2.conf:

options bcm2835-v4l2 some_parameter=Y

Note that this is an example only. I am not certain that bcm2835-v4l2 has or even needs any manipulable parameters.


Right click on the pdf file, then select Properties.  In the Properties window, select the Open With tab.  Find Acrobat Reader in the list of applications and select it, then press the button that says Set as Default.  That should do it!

Here's an example of what that window looks like (it was taken from this How-to-Geek article):


I would recommend downloading a new version of Ubuntu, and downloading Rufus. Rufus creates bootable USB sticks with whatever ISO you put on it. You get to choose whether or not it is bootable, and it will format the stick for you before hand. There is not another way to run the installer from the USB that I am aware of. If you can get a new ISO this would be the way to go, then you have the newest version on your USB stick.


Unable to install steam on Ubuntu 16.04LTS ( & Radeon R9 graphics card)

I followed the instructions here: support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx

On the second reboot. The ubuntu OS gave a report of something wrong with the system and needing to send a report. It then said a report can not be sent as the AMDGPU is third party. Then I executed the usermod command and rebooted again. No messages this time.

I ran steam from the terminal and it did the update packages installation and the platform was installed completely. You might have guessed I'm pretty much guessing what I was doing here. One thing is the .aspx web page address tab keeps crashing on firefox now but displays fine on chrome.

Now Facebook messenger crashes the tab on Firefox also.

I saved the terminal output:

tomred@tomredPC:~$ steam
Repairing installation, linking /home/tomred/.steam/steam to /home/tomred/.local/share/Steam
Running Steam on ubuntu 16.04 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[2018-06-24 22:04:02] Startup - updater built Nov 23 2016 01:05:42
[2018-06-24 22:04:14] Verifying installation...
[2018-06-24 22:04:14] Unable to read and verify install manifest /home/tomred/.local/share/Steam/package/steam_client_ubuntu12.installed
[2018-06-24 22:04:14] Verification complete
[2018-06-24 22:04:14] Downloading Update...
[2018-06-24 22:04:14] Checking for available update...
[2018-06-24 22:04:15] Download failed: http error 0 (client-download.steampowered.com/client/steam_client_ubuntu12)
[2018-06-24 22:04:16] Package file tenfoot_misc_all.zip.4c0b5f375e0cf723851ad7c948769632275a4ac2 missing or incorrect size
[2018-06-24 22:04:16] Package file tenfoot_dicts_all.zip.2f96d3383504893e85aae7d04c60b3c805c6ca86 missing or incorrect size
[2018-06-24 22:04:16] Package file tenfoot_fonts_all.zip.vz.f9f14582a5875c59b57d8d80425f4edd37ebbe25_12075417 missing or incorrect size
[2018-06-24 22:04:16] Package file tenfoot_ambientsounds_all.zip.f44dc367e90556e82ef29a6ef07a4ae4e514175b missing or incorrect size
[2018-06-24 22:04:16] Package file tenfoot_sounds_all.zip.vz.e8ac8bf38cd88dfb418f72fa0202bd63055cf835_1215714 missing or incorrect size
[2018-06-24 22:04:16] Package file tenfoot_images_all.zip.vz.99b174b0ad8390793c8767c17fb83dd8edcec031_30748052 missing or incorrect size
[2018-06-24 22:04:16] Package file tenfoot_all.zip.vz.3fef20e0dd3dd8073bf99c6e8db1502d68fe63ea_2527244 missing or incorrect size
[2018-06-24 22:04:16] Package file resources_misc_all.zip.vz.7dd087cab4414b02abdaaa2a12d17f7fb10c0ae1_2215030 missing or incorrect size
[2018-06-24 22:04:16] Package file resources_music_all.zip.vz.fe242c2996d2eb795571a970f3a6953319513223_3707373 missing or incorrect size
[2018-06-24 22:04:16] Package file resources_hidpi_all.zip.e8baa2f3eec5ba1a23f5ab2ba49e79b1a8957269 missing or incorrect size
[2018-06-24 22:04:16] Package file resources_all.zip.vz.f696dcdd02b7d88800e88d3581d660a348f8eded_1259590 missing or incorrect size
[2018-06-24 22:04:16] Package file strings_en_all.zip.vz.2e392a40eed296fdcc66044f7a4034b89e74a361_87993 missing or incorrect size
[2018-06-24 22:04:16] Package file strings_all.zip.vz.dc59d3553613788cd26eade18bd1da34f2a81389_2253215 missing or incorrect size
[2018-06-24 22:04:16] Package file public_all.zip.vz.a9e41415cf573e289b5eb6790381b15cea81582a_760635 missing or incorrect size
[2018-06-24 22:04:16] Package file bins_ubuntu12.zip.vz.66b9f079966aef7c9ec4bb9ece2eef5abda97575_17216848 missing or incorrect size
[2018-06-24 22:04:16] Package file bins_pub_ubuntu12.zip.vz.08d98d2a52a8787daf424ab85b97be5ea3af234a_9054775 missing or incorrect size
[2018-06-24 22:04:16] Package file bins_sdk_ubuntu12.zip.vz.26902e7b17799984d132720a3631030ea83ac90e_11595868 missing or incorrect size
[2018-06-24 22:04:16] Package file bins_codecs_ubuntu12.zip.vz.5d06fa72d055c4e4f3150bad3ac39655b112a99b_2373584 missing or incorrect size
[2018-06-24 22:04:16] Package file bins_misc_ubuntu12.zip.vz.4f8753937c083960d0b329e3861ff5f9d83f2e3f_1554132 missing or incorrect size
[2018-06-24 22:04:16] Package file webkit_ubuntu12.zip.vz.a0ce116985e5f6fea1e4ce0188344e12f4797722_46863173 missing or incorrect size
[2018-06-24 22:04:16] Package file miles_ubuntu12.zip.vz.02aae1e313da8bb1d20d7fbedf09b243a468228a_295607 missing or incorrect size
[2018-06-24 22:04:16] Package file sdl2_ubuntu12.zip.vz.d5f924c08cbad4df1dfd004fd2e31e1284f46beb_613109 missing or incorrect size
[2018-06-24 22:04:16] Package file steam_ubuntu12.zip.vz.4a4f51debd28642605ca669f020d478e4af6164a_1484731 missing or incorrect size
[2018-06-24 22:04:16] Package file runtime_part0_ubuntu12.zip.4eede5a9db070a3003e90fd4370fd120a4e2fbfe missing or incorrect size
[2018-06-24 22:04:16] Package file runtime_part1_ubuntu12.zip.6f5d00d3455bf4bfc54645ba541008bdc697103b missing or incorrect size
[2018-06-24 22:04:16] Downloading update (0 of 276,613 KB)...
[2018-06-24 22:04:17] Error: Download of package (tenfoot_dicts_all) failed after 0 bytes (0).
[2018-06-24 22:04:17] Downloading update (320 of 276,613 KB)...
[2018-06-24 22:04:17] Error: Download of package (resources_hidpi_all) failed after 0 bytes (0).
[2018-06-24 22:04:17] Downloading update (848 of 276,613 KB)...
[2018-06-24 22:04:17] Error: Download of package (bins_pub_ubuntu12) failed after 0 bytes (0).
[2018-06-24 22:04:17] Error: Download of package (bins_ubuntu12) failed after 0 bytes (0).
[2018-06-24 22:04:17] Downloading update (1,450 of 276,613 KB)...
[2018-06-24 22:04:17] Error: Download of package (webkit_ubuntu12) failed after 0 bytes (0).
[2018-06-24 22:04:17] Downloading update (2,231 of 276,613 KB)...
[2018-06-24 22:04:18] Error: Download of package (runtime_part0_ubuntu12) failed after 0 bytes (0).
[2018-06-24 22:04:18] Downloading update (2,928 of 276,613 KB)...
*editing out more of the same*
[2018-06-24 22:05:32] Downloading update (141,917 of 276,613 KB)...
[2018-06-24 22:05:32] Package file tenfoot_dicts_all.zip.2f96d3383504893e85aae7d04c60b3c805c6ca86 missing or incorrect size
[2018-06-24 22:05:32] Package file resources_hidpi_all.zip.e8baa2f3eec5ba1a23f5ab2ba49e79b1a8957269 missing or incorrect size
[2018-06-24 22:05:32] Package file bins_ubuntu12.zip.vz.66b9f079966aef7c9ec4bb9ece2eef5abda97575_17216848 missing or incorrect size
[2018-06-24 22:05:32] Package file bins_pub_ubuntu12.zip.vz.08d98d2a52a8787daf424ab85b97be5ea3af234a_9054775 missing or incorrect size
[2018-06-24 22:05:32] Package file webkit_ubuntu12.zip.vz.a0ce116985e5f6fea1e4ce0188344e12f4797722_46863173 missing or incorrect size
[2018-06-24 22:05:32] Package file runtime_part0_ubuntu12.zip.4eede5a9db070a3003e90fd4370fd120a4e2fbfe missing or incorrect size
[2018-06-24 22:05:33] Downloading update (142,039 of 276,613 KB)...
*editing out more of the same*
[2018-06-24 22:06:14] Downloading update (255,028 of 276,613 KB)...
[2018-06-24 22:06:15] DowInstalling breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
*editing out more of the same*Installing breakpad exception handler for appid(steam)/version(1.0)
nloading update (255,842 of 276,613 KB)...
[2018-06-24 22:06:15] Downloading update (256,653 of 276,613 KB)...
*editing out more of the same*[2018-06-24 22:06:27] Downloading update (276,613 of 276,613 KB)...
[2018-06-24 22:06:27] Download Complete.
[2018-06-24 22:06:27] uninstalled manifest found in /home/tomred/.local/share/Steam/package/steam_client_ubuntu12 (1).
[2018-06-24 22:06:27] Extracting package...
[2018-06-24 22:06:38] Installing update...
[2018-06-24 22:06:41] Cleaning up...
[2018-06-24 22:06:41] Update complete, launching...
[2018-06-24 22:06:41] Shutdown
Restarting Steam by request...
Running Steam on ubuntu 16.04 64-bit
STEAM_RUNTIME has been set by the user to: /home/tomred/.local/share/Steam/ubuntu12_32/steam-runtime
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Found newer runtime version for 64-bit libGLU.so.1. Host: 1.3.1 Runtime: 1.3.8004
Found newer runtime version for 64-bit libSDL2-2.0.so.0. Host: 0.4.0 Runtime: 0.5.0
Found newer runtime version for 64-bit libdbusmenu-gtk.so.4. Host: 4.0.12 Runtime: 4.0.13
Found newer runtime version for 64-bit libdbusmenu-glib.so.4. Host: 4.0.12 Runtime: 4.0.13
Found newer runtime version for 64-bit libpangox-1.0.so.0. Host: 0.0.0 Runtime: 0.3000.0
Installing breakpad exception handler for appid(steam)/version(1528497815)
*editing out more of the same*
Installing breakpad exception handler for appid(steam)/version(1528497815)
[2018-06-24 22:07:25] Startup - updater built Jun  8 2018 22:22:23
[2018-06-24 22:07:25] Verifying installation...
[2018-06-24 22:07:25] Unable to read and verify install manifest /home/tomred/.local/share/Steam/package/steam_client_ubuntu12.installed
[2018-06-24 22:07:25] Verification complete
[2018-06-24 22:07:25] Downloading update...
[2018-06-24 22:07:25] Checking for available updates...
[2018-06-24 22:07:26] Download complete.
[2018-06-24 22:07:26] uninstalled manifest found in /home/tomred/.local/share/Steam/package/steam_client_ubuntu12 (1).
[2018-06-24 22:07:26] Extracting package...
[2018-06-24 22:07:37] Installing update...
[2018-06-24 22:07:53] Cleaning up...
[2018-06-24 22:07:53] Update complete, launching Steam...
[2018-06-24 22:07:53] Shutdown
Restarting Steam by request...
Running Steam on ubuntu 16.04 64-bit
STEAM_RUNTIME has been set by the user to: /home/tomred/.local/share/Steam/ubuntu12_32/steam-runtime
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "unity-gtk-module"
process 12574: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file ../../dbus/dbus-message.c line 1201.
This is normally a bug in some application using the D-Bus library.
Installing breakpad exception handler for appid(steam)/version(1528497815)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number
[0624/220755.550650:WARNING:crash_reporting.cc(254)] Failed to set crash key: UserID with value: 0
[0624/220755.550706:WARNING:crash_reporting.cc(254)] Failed to set crash key: BuildID with value: 1528487789
[0624/220755.550710:WARNING:crash_reporting.cc(254)] Failed to set crash key: SteamUniverse with value: Public
[0624/220755.550714:WARNING:crash_reporting.cc(254)] Failed to set crash key: Version with value: 20180608195629
[0624/220755.550717:WARNING:crash_reporting.cc(254)] Failed to set crash key: ProductName with value: cefwebhelper
[0624/220755.550720:WARNING:crash_reporting.cc(254)] Failed to set crash key: Vendor with value: Valve
[0624/220755.560705:ERROR:gpu_process_transport_factory.cc(1029)] Lost UI shared context.
[0624/220755.578843:WARNING:crash_reporting.cc(254)] Failed to set crash key: UserID with value: 0
[0624/220755.578873:WARNING:crash_reporting.cc(254)] Failed to set crash key: BuildID with value: 1528497815
[0624/220755.578884:WARNING:crash_reporting.cc(254)] Failed to set crash key: SteamUniverse with value: Public
[0624/220755.578895:WARNING:crash_reporting.cc(254)] Failed to set crash key: Version with value: 20180608195629
[0624/220755.578906:WARNING:crash_reporting.cc(254)] Failed to set crash key: ProductName with value: cefwebhelper
[0624/220755.578918:WARNING:crash_reporting.cc(254)] Failed to set crash key: Vendor with value: Valve
[S_API FAIL] SteamAPI_Init() failed; create pipe failed.[S_API FAIL] SteamAPI_Init() failed; create pipe failed.[S_API FAIL] SteamAPI_Init() failed; create pipe failed.Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
PulseAudio connect failed (used only for Mic Volume Control) with error: Access denied
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
[0624/220815.411837:WARNING:crash_reporting.cc(254)] Failed to set crash key: UserID with value: 0
[0624/220815.411912:WARNING:crash_reporting.cc(254)] Failed to set crash key: BuildID with value: 1528487789
[0624/220815.411916:WARNING:crash_reporting.cc(254)] Failed to set crash key: SteamUniverse with value: Public
[0624/220815.411919:WARNING:crash_reporting.cc(254)] Failed to set crash key: Version with value: 20180608195629
[0624/220815.411922:WARNING:crash_reporting.cc(254)] Failed to set crash key: ProductName with value: cefwebhelper
[0624/220815.411925:WARNING:crash_reporting.cc(254)] Failed to set crash key: Vendor with value: Valve
Generating new string page texture 12: 48x256, total string texture memory is 49.15 KB
Generating new string page texture 13: 256x256, total string texture memory is 311.30 KB
Generating new string page texture 14: 128x256, total string texture memory is 442.37 KB
Setting breakpad minidump AppID = 769
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561197960265728 [API loaded no]
[0624/220815.831863:WARNING:crash_reporting.cc(254)] Failed to set crash key: SteamUniverse with value: Public
process 12690: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file ../../dbus/dbus-message.c line 1201.
This is normally a bug in some application using the D-Bus library.
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Found unsupported CDM version 1.4.9.1088, using last known good version 1.4.8.1008
Generating new string page texture 21: 64x256, total string texture memory is 507.90 KB
[0624/220819.378530:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
Could not create Vulkan device:
ERROR_INITIALIZATION_FAILED
Generating new string page texture 22: 8x256, total string texture memory is 516.10 KB
Generating new string page texture 23: 16x256, total string texture memory is 532.48 KB
Generating new string page texture 24: 24x256, total string texture memory is 557.06 KB
Generating new string page texture 25: 32x256, total string texture memory is 589.82 KB
Installing breakpad exception handler for appid(steam)/version(1528497815)
Generating new string page texture 33: 384x256, total string texture memory is 983.04 KB
Generating new string page texture 36: 256x256, total string texture memory is 1.25 MB
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
roaming config store loaded successfully - 1361 bytes.
migrating temporary roaming config store
Installing breakpad exception handler for appid(steam)/version(1528497815)
Failed to init SteamVR because it isn't installed
ExecCommandLine: "'/home/tomred/.local/share/Steam/ubuntu12_32/steam'"
System startup time: 66.94 seconds
Generating new string page texture 99: 128x256, total string texture memory is 131.07 KB
Generating new string page texture 100: 128x256, total string texture memory is 1.38 MB
Generating new string page texture 115: 256x256, total string texture memory is 393.22 KB
Installing breakpad exception handler for appid(steam)/version(1528497815)
Generating new string page texture 120: 256x256, total string texture memory is 1.64 MB
Generating new string page texture 121: 128x256, total string texture memory is 1.77 MB
Generating new string page texture 122: 256x256, total string texture memory is 2.03 MB
Generating new string page texture 123: 64x256, total string texture memory is 2.10 MB
Generating new string page texture 125: 128x256, total string texture memory is 2.23 MB
Generating new string page texture 141: 1024x256, total string texture memory is 3.28 MB
Generating new string page texture 142: 128x256, total string texture memory is 3.41 MB
Generating new string page texture 143: 256x256, total string texture memory is 3.67 MB
Generating new string page texture 144: 512x256, total string texture memory is 4.19 MB
Generating new string page texture 146: 48x256, total string texture memory is 4.24 MB
Generating new string page texture 147: 128x256, total string texture memory is 4.37 MB
Generating new string page texture 148: 256x256, total string texture memory is 4.64 MB
Generating new string page texture 151: 256x256, total string texture memory is 4.90 MB
[0624/220922.451205:WARNING:spdy_session.cc(2921)] Received HEADERS for invalid stream 1
Generating new string page texture 155: 64x256, total string texture memory is 458.75 KB
Generating new string page texture 161: 128x256, total string texture memory is 5.03 MB
Generating new string page texture 165: 1024x256, total string texture memory is 6.08 MB
GameAction [AppID 242860, ActionID 1] : LaunchApp failed with AppError_18 with ""
GameAction [AppID 242860, ActionID 1] : LaunchApp changed task to Failed with ""
GameAction [AppID 242860, ActionID 2] : InstallApps waiting for user response to ShowEula "https://store.steampowered.com//eula/242860_eula_0"
GameAction [AppID 242860, ActionID 2] : InstallApps continues with user response "ShowEula"
GameAction [AppID 242860, ActionID 2] : InstallApps changed task to CreateNextApp with ""
Refresh rate: 0
*editing out more of the same*
Refresh rate: 1
Refresh rasaving roaming config store to 'sharedconfig.vdf'
roaming config store 2 saved successfully
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
GameAction [AppID 242860, ActionID 2] : InstallApps changed task to RemoveGameDemos with ""
GameAction [AppID 242860, ActionID 2] : InstallApps changed task to CreateSystemEntries with ""
GameAction [AppID 242860, ActionID 2] : InstallApps changed task to AutoLaunch with ""
GameAction [AppID 242860, ActionID 2] : InstallApps changed task to Complete with ""
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
GameAction [AppID 242860, ActionID 3] : LaunchApp changed task to DownloadingDepots with ""
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)
Installing breakpad exception handler for appid(steam)/version(1528497815)


How do I automount a unionfs-fuse filesystem?

automounting unionfs with autofs

TLDR: create the following entry in /etc/auto.misc and include it in your etc/auto.master (as outlined below).

data    -fstype=fuse,cow,allow_other :unionfs\#/changedata=RW\:/immutedata=RO

Bonus: Creating a unionfs automount on top of nfs automounts (to illustrate how to properly configure autofs)

When using NFSv4, enable IMAPD in /etc/default/nfs-common

NEED_IDMAPD=yes

If you want autofs to always create directories for your mounts, enable browse_mode in /etc/autofs.conf

browse_mode = yes

Now to the core part: in your /etc/auto.master add the following lines

# automount all nfs volumes under /nfs and misc filesystems under /mnt
/nfs   /etc/auto.nfs
/mnt   /etc/auto.misc

autofs will mount all filesystems specified in /etc/auto.nfs under /nfs/<mount> and all filesystems specified in /etc/auto.misc under /mnt/<mount>.

In my /etc/auto.nfs I have the following (example) entries:

# FileServer: nfs data configuration
data01 -fstype=nfs4,ro,soft,intr,rsize=8192,wsize=8192,nosuid,tcp,allow_other 192.168.3.100:/mnt/data01
data02 -fstype=nfs4,ro,soft,intr,rsize=8192,wsize=8192,nosuid,tcp,allow_other 192.168.3.100:/mnt/data02
data03 -fstype=nfs4,ro,soft,intr,rsize=8192,wsize=8192,nosuid,tcp,allow_other 192.168.3.100:/mnt/data03
data04 -fstype=nfs4,ro,soft,intr,rsize=8192,wsize=8192,nosuid,tcp,allow_other 192.168.3.100:/mnt/data04
data05 -fstype=nfs4,ro,soft,intr,rsize=8192,wsize=8192,nosuid,tcp,allow_other 192.168.3.100:/mnt/data05

And in my /etc/auto.misc I added the following entry for unionfs

# unionfs mount of all /nfs/data* mounts into /mnt/data
data    -fstype=fuse,allow_other,use_ino,ro,noatime :unionfs\#/nfs/data01=RO\:/nfs/data02=RO\:/nfs/data03=RO\:/nfs/data04=RO\:/nfs/data05=RO

Make sure all files have a permission of 644 ( adjust with chown 644 /etc/auto.{nfs,misc} if necessary)

Then you can enable autofs and restart the service.

# reload autofs to enable all shares
systemctl enable autofs
systemctl restart autofs

You should now be able to do a ls /mnt/data


Overheating problem with dell n5110 Ubuntu 13.04

For anyone who have the same problem with dell laptops, i solved it by installing bumblebee, apparently there was some problem with the GPU drivers, the instructions can be found here:

https://wiki.ubuntu.com/Bumblebee#Installation


I can not connect to internet with Ethernet

Although I shouldn't be speaking,
Have you tried

disconnecting the ethernet cord
shutdown the comp
plug the ethernet cord in
boot the comp

(not a reboot)--
Simple yet this has worked for me on a couple machines when running the live dvd.
(I don't know why)

Hope this helps, if not, I hope someone can help you.


You don't need to create separated packages name to get multiarch. Just type:

Package: foo-amd64
Version: 1.0-1
Section: base
Priority: optional
Maintainer: bar@gmail.com
Architecture: any
Multi-Arch: same
Depends: foo, libgcc1, gcc-4.6-base, libstdc++5, libstdc++6, libsasl2-2, libgstreamermm-0.10-2, libfreetype6,
 libfontconfig1, libX11-6, libXrender1, libice6, libxext6, libsm6
Description: foo is awesome
 Foo is really awesome
Installed-Size: 71140

That should build both, amd64 and i386 packages depending your build environment variable. There are various ways you can convert your packages to multiarch if you use the recipes instead:

  dh(1) and autotools

  The simplest package to convert is one that uses autoconf upstream and
  dh(1) in the Debian packaging.

  Build-depend on debhelper (>= 9).
  Add Pre-Depends: ${misc:Pre-Depends}  to any package listed in debian/control that provides a shared library.
  Update debian/compat to '9'.
  Replace occurrences of /usr/lib/ in debian/*.install with /usr/lib/*/.
  If /usr/lib (or a subdirectory) is listed as an installation target in debian/*.install, or the target of a link in debian/*.links,
  you will need to substitute the value of $(DEB_HOST_MULTIARCH) into
  this file. See `Dynamic debian/* files below.
  Any occurrences of /usr/lib in debian/rules should be replaced with /usr/lib/$(DEB_HOST_MULTIARCH).
  If you needed to use $(DEB_HOST_MULTIARCH) in debian/rules in either of the two preceding steps, set DEB_HOST_MULTIARCH in
  debian/rules by calling: DEB_HOST_MULTIARCH ?= $(shell
  dpkg-architecture -qDEB_HOST_MULTIARCH).
  Once you have built the package and verified that the shared library package contains only the expected files, and that your -dev
  package still works, mark this shared library package Multi-Arch: same
  in debian/control.
  Mark the common package(which is "all") Multi-Arch: foreign in debian/control, if it may be needed by the shared library package.

  If you have overridden debhelper commands in debian/rules, despite
  using dh(1) for the rest of the build, you may need to follow the
  instructions below for classic debhelper to modify mv, cp or rm
  commands used by your override rules.

There are more examples in the Debian packaging implementation guide https://wiki.debian.org/Multiarch/Implementation. You may also use lithian to make sure your package in completely compliance.


How to expand a filesystem in the middle? (LVM)

Found it.

Short version: use pvmove. Long version:

If the situation as might be returned by lvdisplay --maps is as follows:

--- Logical volume ---
  LV Path                /dev/main/data
  Current LE             300
  Segments               3
  (redacted)

  --- Segments ---
  Logical extent 0 to 99:
    Physical volume /dev/sda1
    Physical extents    0 to 99

  Logical extent 100 to 199:
    Physical volume /dev/sdb1
    Physical extents    0 to 99

  Logical extent 200 to 299:
    Physical volume /dev/sdc1
    Physical extents    0 to 99

Then as you can see, a logical volume is spread across 3 disks, and occupies 100 extents on each. 'Extents' are LVM's version of sectors; they are the smallest unit it is generally concerned with.

But if we look at the physical volumes underneath:

pvdisplay

  --- Physical volume ---
  PV Name           /dev/sda1
  Total PE          100
  Free PE           0
  Allocated PE      100

  --- Physical volume ---
  PV Name           /dev/sdb1
  Total PE          300
  Free PE           200
  Allocated PE      100

  --- Physical volume ---
  PV Name           /dev/sdc1
  Total PE          100
  Free PE           0
  Allocated PE      100

... we can see that the second disk's partition (/dev/sdb1) has quite a lot of extra space.

Now, we could just add that directly to the logical volume, and while this would probably suffice for most situations, it would would leave the volume in an unnecessarily fragmented state. The end of the logical volume would be on the middle disk. This is where the pvmove command comes in.

pvmove allows us to arbitrarily rearrange the configuration of a logical volume, without the filesystem contained within being aware of it.

Warning: pvmove may cause data loss. Ideally, backup the filesystem before proceeding.

Make sure the logical volume is unmounted before proceeding.

basic syntax: pvmove SourcePhysicalVolume:PE-PE DestinationPhysicalVolume:PE-PE

First command: Reattach the extents from sdc1 onto sdb1, thus making everything contiguous:

pvmove /dev/sdc1:0-99 /dev/sdb1:100-199

Afterwards lvdisplay --maps gives:

--- Logical volume ---
  LV Path                /dev/main/data
  Current LE             300
  Segments               2
  (redacted)

  --- Segments ---
  Logical extent 0 to 99:
    Physical volume /dev/sda1
    Physical extents    0 to 99

  Logical extent 100 to 299:
    Physical volume /dev/sdb1
    Physical extents    0 to 199

Now, it's simply a matter of extending the logical volume through the remaining space on /dev/sdb1 and the now entirely empty /dev/sdc1. This is much simpler. The next command tells lvm to expand our logical volume across all the remaining free extents on those partitions.

lvextend -l +100%free /dev/main/data /dev/sdb1 /dev/sdc1

Afterwards the logical volume would be like so:

--- Logical volume ---
  LV Path                /dev/main/data
  Current LE             500
  Segments               2
  (redacted)

  --- Segments ---
  Logical extent 0 to 99:
    Physical volume /dev/sda1
    Physical extents    0 to 99

  Logical extent 100 to 399:
    Physical volume /dev/sdb1
    Physical extents    0 to 299

  Logical extent 400 to 499:
    Physical volume /dev/sdc1
    Physical extents    0 to 99

Which is beautiful, and as seamless as possible.

Now we can extend the filesystem into the new space.

resize2fs /dev/main/data

Conclusion: The pvmove command is extremely powerful and allows one to take advantage of all the abstraction lvm offers. It allows you to arbitrarily rearrange the physical space on which a logical volume sits.


Selecting A2DP changes nothing, what's a working conf file?

Ok, so I tried changing to disable Headset and that killed it completely. The selections would just have (unplugged) after them so no audio would output:

Enable=Source,Sink,Gateway,Control,Media
Disable=Socket,Headset

$ sudo service bluetooth restart
bluetooth stop/waiting
bluetooth start/running, process 8552
$ sudo alsa force-reload
Unloading ALSA sound driver modules: snd-seq-midi snd-seq-midi-event snd-seq snd-rawmidi snd-seq-device snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-hda-controller snd-hda-codec snd-hwdep snd-pcm snd-timer (failed: modules still loaded: snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-hda-controller snd-hda-codec snd-hwdep snd-pcm snd-timer).
Loading ALSA sound driver modules: snd-seq-midi snd-seq-midi-event snd-seq snd-rawmidi snd-seq-device snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-hda-controller snd-hda-codec snd-hwdep snd-pcm snd-timer.
$ pulseaudio -k

So then I put it back and it started working again:

Enable=Source,Sink,Gateway,Control,Media,Headset
Disable=Socket

$ sudo service bluetooth restart
bluetooth stop/waiting
bluetooth start/running, process 15071

How that makes sense I don't know. Sometimes linux is the worst!


Ubuntu 14.04 VBox Guest Additions problem installing

You could also download the guest additions .iso file for your version of VirtualBox mount it inside and install it from there.

Go to this link find your version and download VBoxGuestAdditions_x.x.x.iso.

Then in the lower right corner of the VirtualBox window you should see a dvd  icon, click on that and navigate to the .iso file.

After that start up ubuntu and when it loads open a file browser and navigate to the disk and search for a .sh file corresponding to your os (linux, windows etc.) make sure it is an executable file (right click then propities and check execute file as program is checked) and run it.

After it is finished just power off, unmount the disk and it should be working on the next start up.


Ubuntu 20.04 Server Suddenly has GUI and No Terminal

This worked for me:
Log in SSH or CTRL-ALT-F3
sudo systemctl set-default multi-user.target
sudo shutdown -r now


Mouse hover has delay/select (lubuntu 12.10

You can disable this feature:

System Settings -> Universal Access -> Pointing and clicking -> Hover click


trying to add more table to mysqlcluster getting error ERROR 1114 (HY000) at line 2137: The table 't_email_contacts' is full

There are a few reasons for this.

The partition that holds the MySQL file is full. df -H will show if a partition is full.
If you are using innodb: see the innodb_data_file_path in your my.cnf. You might be exceeding the "max" amount. Example of this:

innodb_data_file_path = ibdata1:10M:autoextend:max:512M

You can up the 512 or remove the :max:512m totally for it to be "limitless".
You are adding an INDEX to a MEMORY table (obviously not the case but worth mentioning).

Regarding NDB Cluster:

An NDB engine holds all data in RAM. From the link:

  In MySQL 5.0, Cluster is in-memory only. This means that all table data (including indexes) is stored in RAM. Therefore, if your data takes up 1 GB of space and you want to replicate it once in the cluster, you need 2 GB of memory to do so (1 GB per replica). This is in addition to the memory required by the operating system and any applications running on the cluster computers

If this is the cause you can do this but it will be a perfomance hit.
Check the values of MaxNoOfConcurrentOperations and MaxNoOfConcurrentTransactions. Set them to a value higher than the largest table in the cluster.
Check the log file for related messages (ndb_2_trace.log?). If it shows things like "Node 2: Data usage increased to 100%" you are running out of memory.

Index memory stores primary key indexes ONLY.
Data memory stores all the data + other indexes.
The memory you need per table is something like this:
((size of a table) + (size of index)) * ( the number of records)
IndexMemory and DataMemory are the corresponding settings. If you exceed these you get this error.

The maximum number of attributes (columns and indexes) per table is limited to 128.


The three items not included with 'update' are a newer kernel.  This is optional, and could in theory cause issues.

I have already added to my test server (for 12.04 64bit) with no issues, but that could be different for your platform.

See:
What is the difference between apt-get upgrade and apt-get dist-upgrade?


How to install nepali unicode traditional font in ubuntu 16.4?

You can make use of IBus.

Install the ibus-m17n package:

sudo apt install ibus-m17n

Relogin
Go to System Settings -> Text Entry and add Nepali (trad (m17n)) (Ibus).


How to know what DNS am I using in Ubuntu from 14.04 onwards

Quick Answer

A new NetworkManager tool nmcli is installed by default now. The command line tool is very powerful but a bit harder to learn. Stick to our question, the short answer is:

nmcli dev show | grep DNS

or, to have cleaner output

nmcli dev show | grep DNS | sed 's/\s\s*/\t/g' | cut -f 2

Explain

If you have time, I can explain the above jumbo-mumble:

nmcli dev show

Works a bit like the old nm-tool command. It elaborate the current networking info.

You may also learn the setting of a certain interface by adding the interface name. For example, to learn the information of eth0, you may use nmcli dev show eth0.
grep DNS

Obviously grep only the lines with the text "DNS" in it.
sed 's/\s\s*/\t/g' | cut -f 2

This is only to clean up the output. The cut may select the output by column, but it takes only 1 character as separator (while nmcli uses MANY SPACE). The sed turns the spaces, in original output, into TAB.


How to copy everything from USB to file system

Like the comment above says, cp -r will copy it, so just run cp -r /media/<usb-name> /path/to/target


You can use "global" aliases in zsh:

alias -g Docs=~/Documents

Then ls Docs will act like ls ~/Documents.
Global aliases expand any word in a command line, not just the first, so any use of Docs as an argument will be affected (unless quoted).


Ubuntu 12.04.1 LTS -touch pad scroll for asus-k55v not working

It started working after the following command in my Asus K43S:

gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled 'true'

Source


Is it required to update Ubuntu every day or week?

If you are on a stable release, updates should not amount to 150MB/week, but quite less. Ubuntu has an excellent release policy, and with a few exceptions no software is allowed to release a major upgrade within a release. As such, most updates you will see are software minor upgrades, bug fixes, and security issue fixes.

Once an Ubuntu release has been completed and published, updates for it are only released under certain circumstances, and must follow a special procedure called a "stable release update" or SRU.
- From StableReleaseUpdates page on the Ubuntu Wiki.

As compared to Windows, Windows has its own share of baggage with Windows Updates, except that the updates are released monthly (mostly), instead of on a rolling basis.
As such, it does not mean that "the software is released before full-testing", rather that there are improvements (bugs/security/features) that you can use.


You can write a simple script and load it on start-up to disable bluetooth permanently.

Open your editor using gksudo kate and copy this in it.

#!/bin/bash
rfkill block bluetooth
Save it under /etc/init.d with <any_name>.sh.
Now make it executable using sudo chmod +x /etc/init.d/<script_name>.sh.
Now use following command sudo update-rc.d
/etc/init.d/<script_name>.sh defaults.

It will disable your bluetooth on system startup.


My computer is lagging and giving an I/O error

This part:

end_request: I/O error, dev sda, sector 737127760

Looks like a failing hardrive. It's a physical problem, and probably your hardrive is about to die. I would make a backup of all important data you may have on the computer before it stops working completely, and replace it.


How do I make the mouse cursor larger in Artful Aardvark?

From the questioner, Preacherdad:

  Go to the power button (upper right of screen) and click on the Tool Set icon.
  When that comes up, choose the Universal Access option from the menu on the left of the window.
  On the right of that window, there is an option to change the cursor size.


no hardware acceleration/graphics driver for Dell Inspiron 1525

The graphics card you have in you question is an Intel - so it is a little strange why you would have something like nvidia-xconfig installed.

My suggestion would be to remove any traces of a previous nvidia install:

sudo apt-get purge nvidia*

Also - remove your xorg.conf file - i.e. you rarely need this with intel graphics

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

After rebooting - check that unity can run on your setup:

/usr/lib/nux/unity_support_test -p

It will confirm whether unity is supported - if in doubt add the reply to your question.


opera snap has stopped connecting with paid VPN on

I'm not a snaps person for this reason. Too walled off. Install it via the .deb from here


How can I see the amount of data I am Downloading / Uploading per day?


This is because the GPU is not being used for rendering in your use case. As the glxinfo output you posted shows, the Software Rasterizer is being used for GL rendering to the X DISPLAY in question (presumably the forwarded display via ssh, which means glxinfo is querying the X server on the gateway for GL information).


How to find out console equivalents of Ubuntu System Settings GUI?

Not sure if this will answer your question because I don't use GNOME, but you can try running

dconf watch /

and see if it lists anything while you change the settings.


Low graphics mode when installing 12.04 from a live CD

This is answered on the PowerPC Known Issues page.  See the first point https://wiki.ubuntu.com/PowerPCKnownIssues#A12.04_Precise_Pangolin


Telling the kernel to prioritize swapping of a certain application?

If I'm understanding your question properly, you wish to reduce the priority of your linker (ld based on the tags you used) in order that your system remains responsive while the linker is running. For all intents and purposes, this question is a duplicate of Change niceness (priority) of a running process but it can't be closed as a duplicate with an open bounty on it.

You can start a process with a very low priority by prepending nice -n 19 to your command or change it while it's in process with renice

This approach will instruct the system to be more willing to release system resources for other tasks and improve the responsiveness of your system the default niceness value is 10. You can experiment with different values from 11 to 19 which will incrementally improve responsiveness of your system, with 19 resulting in the most improvement (and the longest linking time)

Excerpt from the nice man page:

NOTES

       SUSv2 and POSIX.1 specify that nice() should return the new nice value.
       However, the Linux system call and the nice() library function provided
       in older versions of (g)libc (earlier than glibc  2.2.4)  return  0  on
       success.  The new nice value can be found using getpriority(2).

       Since  glibc  2.2.4,  nice()  is implemented as a library function that
       calls getpriority(2) to obtain the new nice value to be returned to the
       caller.   With  this implementation, a successful call can legitimately
       return -1.  To reliably detect an error, set  errno  to  0  before  the
       call, and check its value when nice() returns -1.

Sources:

Change niceness (priority) of a running process

http://manpages.ubuntu.com/manpages/xenial/man2/nice.2.html

You may also find this information interesting.


In Ubuntu, when a terminal request a password, you can press all the keys that you want to but the terminal will not show any character in the password field (neither those popular dots).

So it is a normal behavior.

If you still can't connect, you should check the keys that you're pressing.

I left the next screen-shoot, to have a reference:


I had a similar problem after installing proprietary drivers for my ATI Mobility Radeon 4570 HD. It was the same with fglrx, fglrx-updates, fglrx-amdcce and fglrx-amdcce-updates. Removing all of them, resultion came back as before. It should be noted that they are in conflict, so only one package at time should be installed. I tried to do so, but the problem persisted. Remove all of them turned into the best solution for me. Hope this could help.


Anything I should know about hardware compatibility with Ubuntu?

Question solved in comments (I believe...)

Not really, Ubuntu works out of box most of the time, and if not, you always have the internet, especially Ask Ubuntu!

Check out this page: help.ubuntu.com/13.10/ubuntu-help/hardware.html#problems if you run into anything, as it might help with solving some problems.

The link to the question: Support for hardware components

Quote from other question (answer from @AlexTheBird):

  You could use hardware compatibility databases. You can even set
  Ubuntu Linux as a search attribute.

  When I buy new hardware I usually google for that hardware. Let's say
  I want to buy a graphic card from nvidia, the gtx260. I would google
  for "gtx 260 ubuntu" and then I see if other people have any problems.
  I do that for all the hardware. I always prefer hardware from
  companies who have open-source drivers or generally a good reputation
  in the linux community.

Also, this link should help: http://www.ubuntu.com/certification/catalog/. Its the officially Canonical supported hardware in a list format (by brand and type, search is also available).


nautilus-data isn't a plugin. The package contains some data files for Nautilus, like the Nautilus icon in various sizes and GSettings schema definitions.

It's a packages of its own because some of the files are used by other programs, too


You can set up a separate anacron instance to run in user mode:

Create a .anacron folder in your home directory and in it two subfolders, etc and spool:

mkdir -p ~/.anacron/{etc,spool}

Create a new file ~/.anacron/etc/anacrontab with contents similar to the following:

# /etc/anacrontab: configuration file for anacron

# See anacron(8) and anacrontab(5) for details.

SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# period  delay  job-identifier  command
1         10     testjob         test.sh

Add the following line to your crontab using crontab -e:

@hourly /usr/sbin/anacron -s -t $HOME/.anacron/etc/anacrontab -S $HOME/.anacron/spool


How do I preseed a disk to 50% / and /tmp?

It seems that I solve that problem. I should use digital values instead of percentage.

# Partitioning
# use first hard drive SCSI/SATA:
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/choose_recipe select atomic

# Actualy use 50% for / and rest 50% for /TMP
d-i partman-auto/expert_recipe string                         \
      boot-root ::                                            \
              2048 30720 1000000000 ext4                      \
                      $primary{ }                             \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ ext4 }    \
                      mountpoint{ / }                         \
              .                                               \
              50% 4096 50% linux-swap                         \
                      method{ swap } format{ }                \
              .                                               \
              2048 30720 -1 ext4                              \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ ext4 }    \
                      mountpoint{ /TMP }                      \
              .                                               \

d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true


How to change LetsEncrypt certbot domain?

According to this link, you can re-use your first command line, changing the host names and adding --force-renewal.

Example, for your case :
sudo certbot --authenticator webroot --webroot-path /home/user/app --installer nginx -d bbb.com -d www.bbb.com --force-renewal


will installing Ubuntu convert my hard disk to a dynamic disk?

No, dynamic disks are a Windows thing that is not supported in Ubuntu.  If you are using the msdos partition table ( recent UEFI machines with Windows 8 should be using GPT ), then the installer will create a 4th partition called extended partition, and place the other logical partitions inside it.


Ubuntu autopilot install guide missing steps

Thanks for the question. After completing step 4 of OpenStack Autopilot Test Drive, the autopilot-config script will also print out a large message banner on the command line which will direct the user to the URL where Landscape (the Autopilot) is running and the credentials you need to login and see the cloud installer.

Alternatively, if you missed that message on the console when you last ran autopilot-config you can still dig up those details for the Landscape URL and credentials cached in /home/ubuntu/deployer.cfg file.

The file is YAML, and you will want to point your browser to the IP specified at maas-server:ipaddress. The credentials for your install are in the openstack-services section as admin-email and admin-password.

If you want a script to report the 3 items out of YAML, here is an ugly one-liner that you run on the command line where your deployer.cfg lives. It will extract the URL for the autopilot UI and credentials from the YAML.

python -c 'import yaml; cfg=yaml.load(open("deployer.cfg")); print "https://{} Credentials: {} / {}".format(cfg["maas-server"]["ipaddress"], cfg["openstack-services"]["admin-email"], cfg["openstack-services"]["admin-password"])'


How install Marlin file manager in Ubuntu 15.04?

It seems that the people who were maintaining Marlin are no longer doing so - there is no package available for Ubuntu 15.04 or 15.10, and no apparent development since September 2014


Cannot restart apache web server - ubuntu

How to fix Job for apache2.service failed because the control process exited with error code

There are many things that could go wrong which may prevent your apache web server from starting properly or at all.  This can be just a semi-colon, an extra character or an invalid directory, etc.

To a fix the error, you must trace that **error first and simply correct it. *It's very simple than you thought, believe me.***

Try this:

Open your terminal and type:

apache2ctl -t

The above command will lead you to the error directly in question you will get an idea how to fix it, if not report your error here and we can all provide help.

I believe in a team work, hope this helps.


Cannot access to shared SMB disk ask for domain password

I reviewed many articles and I tried a lot of modifications
all failed
I think it is a pug on Ubuntu 20.4 software
I tried with LMDE 4 and it was done smoothly
I hope ubuntu team solve this issue


How can I troubleshoot problems with an Intel wireless card?

Note that in all cases iwlagn should be replaced with your wireless module name.  In my case iwlwifi.

Options for connection speed

The coex option:

Notes:
It would be good form to change the customintel6300N.conf part to the name of your driver or card so you can easily find out where you tweaked the module parameters.  lsmod | grep iwl should tell you what driver/module you're using.  In my case it's iwlwifi

As root add a file in modprobe.d that makes the setting persist, like this:

As root with your text editor of choice make a new file:

/etc/modprobe.d/customintel6300N.conf

In that file add a line like:

options iwlagn bt_coex_active=0

Save and reboot.

Disabling hardwarecrypto

Some users have reported that N support gets much more reliable using software you might try

options iwlagn hwcrypto=0

instead of the coex option.

Disabling N support
As was already suggested by Jorge Castro:

options iwlagn 11n_disable=0

Recovering from stuck in hardware disabled state

Remove all power sources(cables/batteries).
Act like you're powering on the device(press and hold the power button or power cycle several times even though it has no power).
Reconnect all power sources and boot.

The goal of that set is to remove power from wherever the wireless card stores the hardware disabled state and defaults to 'enabled' on the next boot.

Related questions:
How do I get an Intel 6300 N working


Edit your /etc/ssh/sshd_config

Add a line like

AllowUsers kmassada

Now only that user will be allowed to ssh in. Also, I run ssh on an unusual port, not 22, and this bumps off most would-be intruders.

And/or

PasswordAuthentication no

Which means you'll have to have an authorized key to connect. I'd suggest

PermitRootLogin no

too. See man sshd_config for these details.


What possibley could have "automatically updated"?

By Default, theres several automatic Upd/Syn-Functions in the System, to ensure Actuality, Integrity and Security. These are scheduled via "Cron" and/or Event triggered.

The Restart-Request indicates a Change on the Kernel itself or its Components and Drivers.

Software-Center related Updates (Packageindex, installed Programs) can be disabled in the "Software-Updater" Settings.
The Firmware/unattended-Ups/Syns for Userspace-Config/Setup by rerouting to "/dev/null" (NOT recommended).


How to install 32bit Kubuntu over 64bit Kubuntu

The only way is to create a backup. With a few remarks:

you can only restore your personal data
settings in your /home/$USER/ you can not use on 32-bit.
if you want to do this easier next time: create a new partition for your personal data and put your personal data on that partition (this one time you need to restore your backup there). That way you can always mount your data into the new OS (where you can safely format both / and /home).

The "64-bit CPU" should already tell you you should be using a 64-bit operating system. 32-bit is less optimal.

If your reason to install the 32-bit version is due to the 2Gb RAM don't and. The minimal amount is 2Gb and the 32-bit version of kUbuntu will be a worse experience than the 64-bit version. I would suggest installing Ubuntu Mate, lUbuntu or xUbuntu. Those need less resources for the desktop section (even though all have 2 recommended 2Gb RAM).


Ubuntu 13.10 not working properly after executing command

Type this in terminal

sudo apt-get update

sudo apt-get upgrade

This will re-create that file & upgrade your packages & as stated in comments below,

sudo do-release-upgrade will you to Ubuntu 14.04.


How about this:

git branch | grep "^*"

Example:

$ git branch
  k410
  k411
  k412
  k413
  k416
  k416idle
  k416poll
  k416rc7-poll
  k418
  k418-jrw
  k418-rjw2
  k418-ufw2
  k418rc1test
* k419-rjw
  k45
  k46
  master
  ufw-test

And now:

$ git branch | grep "^*"
* k419-rjw


Installing Ubuntu 14.04.2 LTS Issues on Dell Optiplex

Turns out the issues was with the RAM. Initially I had 2GB installed but consequently installed an extra 4GB (making 6GB in total).

When I removed the extra 4GB it worked. Possibly it was faulty. All installed and working now.


Where could I find 64bit drivers for my Brother MFC-7420?

Brother's site is a little wonky.  They have a great page for drivers but I can never find it from the main site.  The page you want is here:

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html

I installed these for my printer (MFC-665CW) by downloading the .deb (64 bit in my case) and installing them with:

sudo dpkg -i *.deb

After that I was able to install the printer by opening the Printing application and clicking "Add Printer".

I just got the scanner working as well.  I found out the files that were installed by the package:

dpkg -L brsane2

Then by trial and error found this magic command:

cd /usr/local/Brother/sane
brsaneconfig2 -a name=my_scanner model=MFC-7420 ip=xx.xx.xx.xx

...where you can pick whatever name you want, the model number should match that of your printer, and the ip address is the ip address of your printer.

After that I opened up Simple Scan and scanning Just Worked.


How can I create a LiveCD/LiveDVD/LiveUSB?

The image you can download from the Ubuntu website already is a live-CD waiting to be burned, you can burn it by following the instructions which can also be found on the download page:

Burning a CD in Windows
Burning a CD in Mac OSX
Burning a CD in Ubuntu

The resulting CD will be your live-CD.


df -a , -all

-a or -all option include in the listing filesystems that have a size of 0 blocks,
which are omitted by default.
Such filesystems are typically
special-purpose pseudo-filesystems, such as automounter entries.
Also, filesystems of type "ignore" or "auto", supported by some
operating systems, are only included if this option is specified.


Yes, but you would have to edit its source code, add your warning, recompile and replace the executable with the modified one.

A much simpler approach would be to create a script that prints your warning and then calls reboot and save that script as reboot:

Create a file with this content and save it as /usr/bin/reboot:

#!/bin/sh
echo "Eeeek! You are rebooting!"
/sbin/reboot

Make it executable:

sudo chmod a+x /usr/bin/reboot

Now, when you run reboot, because /usr/bin is before /sbin in your $PATH, you will run the script which will print the warning and then run reboot.


What is keyboard shortcut to close terminal window?

An active terminal will quit if you tell it there's no more input.
That can be done with a quick Control+D.

If you have things running (or something already typed into a terminal input), that won't work. You'll either have exit or clear the line. Control+C will usually work for that.

Alternatively, running exit isn't much of a hardship.

Note that these will bump you out of one layer of shell. If you start this in a subshell of a subshell, logged into something over SSH, it'll take a few goes to close the window.


apt-get install libffi-dev can't connect

Change the mirrors in 'Software Sources' to the default settings solved the problem. It seems that ftp.tecnoera.com was not working at all at the moment.
Screenshot


I don't know why nobody is aware this shortcut but here it is: Ctrl + q shuts Discord down.


Automating a mount operation that requires user input

In my case I used the code highlighted by Oli above and then used the trust_server_cert option in the dav2fs config.

  Usefull  when  the  server's certificate can't be verified or is
                even invalid, but you know that you can trust this  certificate.

So edit /etc/davfs2/davfs2.conf and add a line that looks like the following:

trust_server_cert        /etc/davfs2/certs/my.selfsigned.cert.pem

This allowed me to mount a self-signed OwnCloud webdav even when the certificate host didn't match.


is it good to install ubuntu and windows on lenovo g510?

Nobody guaranties you will have no crashes. However It is well known that to install Windows and Ubuntu alongside is easy enough. If you don't want to recover Linux bootloader, then first install Windows and then Ubuntu.


This seems like a bug. As this is not normal behavior. Please report bugs in launchpad. You can report bugs specifically on unity here.