'Upgraded' to Windows 10 on dual boot, and can't boot to Ubuntu partition

It is not grub that is missing, but your Linux partition.

 /dev/sda2             208,894   416,761,855   416,552,962   5 Extended
 /dev/sda5         400,158,720   416,761,855    16,603,136  82 Linux
 swap / Solaris

You have a missing partition one or two sectors after the start of the extended and a few sectors before the start of sda5 swap. It probalby was sda5, and swap was sda6 but since using UUID to boot does not matter. Many use testdisk or parted rescue and reinstall grub to MBR and system works.

Backup partition table before any changes, so you can get back to current if changes not correct

sudo sfdisk -d /dev/sda > PT_sda.txt

More details:

Windows 10 upgrade led to grub rescue

Use parted rescue to restore missing partition details in post #22

http://ubuntuforums.org/showthread.php?t=1775331

http://www.gnu.org/software/parted/manual/html_node/rescue.html


Add a cut-run-paste shortcut to gnome shortcuts

1) Make a script:
(open gedit and paste this, then save)

#!/bin/bash

xdotool key --clearmodifiers ctrl+x        # This should cut the text

sleep 1       # We need to give time to clipboard really get the text, you can try lower values like .5

/path/to/your/program   # Put the path to your program here

sleep 1

xdotool key --clearmodifiers ctrl+v      # This should paste the text

exit 0

2) Make it executable (chmod +x /path/to/script).

3) Launch the Keyboard configuration gnome-control-center keyboard:
(Go to Shortcuts → Custom shortcuts)

4) Click on "+"  and add a name and the command:

    /path/to/script

5) Choose the key binding that you want.

6) Because of a bug, you will have to logout and log back in so the shortcut can take effect.


How to find packages recently uploaded to the Ubuntu repository

I've been running the repository mirror for a few weeks now and carried out a few tests and it hasn't missed fetching any updated packages since each time a package is uploaded to the upstream repository, the Release and Release.gpg files are updated and reprepro compares the local and upstream version.


Is there any way to write italic or bold in vim

You can apply these effects to some text after writing it using :match and cterm=<effect>. You make a label with :highlight then reference the label... I will demonstrate.

This is in terminal Vim, not gVim.

:highlight foo cterm=bold
:match foo /regex matching text to make bold/

The effect is not very strong... *shrug*

For italic, use cterm=italic

:highlight bar cterm=italic
:match bar /regex matching text I want italic/


Ubuntu Openstack cloud-installer error: kvm container creation failed

This should be fixed with the latest packages in the testing ppa. Basically, we are dependent on the qemu-kvm package which wasn't installed by default for use with virtinst. Here is the associated bug for this:

https://bugs.launchpad.net/qemu/+bug/1387881

So far I've gotten positive results from other testers who were able to continue once qemu-kvm package was installed on their system running the installer.


Non-system keyboard layouts and keyboard shortcuts - Xubuntu 18.04

An issue related to keyboard-layouts in Xubuntu 18.04 was reported (on Jan 2018)
and was later confirmed as a bug.
It is not identical to the problem you are having, but may have the same origin.
see cannot switching keyboard layout with xfce4-keyboard-settings.

(as of Oct 2019, there is no indication someone is working on it)


USB Hybrid TV Turner Savvy TV 2.0 (TOSHIBA)

There isn't any driver for the Toshiba USB Hybrid TV Turner Savvy TV 2.0 under Linux.

Source: ivtvdriver.org


Since the only XKB layout in the list of input sources is German, ibus-mozc uses that layout by default, which explains why your modifications of the Japanese layout does not make a difference.

There are two ways to handle it with ibus-mozc:

You can add the Japanese keyboard layout to your list of input sources and make Japanese the first source in the list, i.e. so the output of the command I asked you to run is changed to:

[('xkb', 'jp'), ('xkb', 'de'), ('ibus', 'mozc-jp')]

You can edit the /usr/share/ibus/component/mozc.xml file and replace

<layout>default</layout>

with

<layout>jp</layout>

You mentioned ibus-anthy, and one advantage with that input method is that you can control which XKB layout is used in the background via a GUI. OTOH I think that Mozc is preferred over Anthy nowadays by most Japanese speaking users.


Can I run any other display server on Ubuntu Core, except for MIR?

Assuming you are on 15.04 Ubuntu Core, there is actually a mir snap in the store, you can install (sudo snappy install mir.mvp-demo)

In addition to that, I posted sometime ago
https://docs.google.com/document/d/14msTXe_cFulk9z4jFptEjFJzZx58b1mWU_r4VivLkfA
which contains additional steps on how to create a Qt based snap.

Looking forward, I've just recently posted this
https://plus.google.com/+KevinGunnCanonical/posts/fqyGX7rt5Dk

which is for 16.04 and snapcraft2.0 (unfortunately, already out of date with snapcraft2.1, more posts on it's way)

hope this helps


Login Screen Changed and Login not working

In Ubuntu 16.04 login to a virtual console by pressing the keyboard combination Ctrl+Alt+F1 To login from a virtual console:

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

After logging in run the following commands:

sudo apt update
sudo apt upgrade
sudo apt purge lightdm
sudo apt install lightdm
sudo reboot

Reconfigure the LightDM login display manager:

sudo dpkg-reconfigure lightdm
sudo reboot

sudo dpkg-reconfigure lightdm will open up a new window allowing you to select lightdm as the default login display manager. Use the arrow keys to select lightdm, press the Tab key to put the focus on <OK> and press Enter. Then reboot by running sudo reboot


No, all current Nvidia Geforce cards only support two monitors. Even in Windows.

For three monitors you either need two cards or a different brand that will support all three at once (ATI/AMD have some that do lots of screens but I'm not sure how well supported this is in Linux).

Edit: If you're determined to stick with one Nvidia card, you can get a Matrox DualHead2Go which is a box that you plug two monitors into and then plug that box into one of the outputs on the video card. It makes the video card think that those two monitors are just one screen. The downside is it's not cheap (over £100) and it also enforces some refresh/resolution limits.

They also do a TripleHead2Go (three monitors into one port) and this costs twice as much. But that does mean you could have 6 monitors coming off one Nvidia card which would be pretty epic (assuming it didn't crumble into dust trying to render that much at once).


How to configure GDM font hinting and anti-aliasing?

Font rendering in Gnome Shell is a known issue with Wayland; see Gnome Bug 645433 - gnome-shell's panel ignores font settings.

Uncommenting the following line in /etc/gdm3/custom.conf, forces GDM to use Xorg instead of Wayland.

WaylandEnable=false

Once Wayland is disabled, the fonts on the the GDM login screen pick up default system-level antialiasing and hinting properties from /usr/share/glib-2.0/schemas.

I had incorrectly assumed that, because I am using an Nvidia card, and I had explicitly selected the Xorg session from the login screen, GDM was also using Xorg.  Apparently, this is not the case.

After this fix, the GDM login screen looks fantastic, with sharp crisp fonts!

Remember, if you only change the font settings using Gnome Tweak Tool or Dconf Editor, they wont be available to GDM (since you haven't logged in yet). Therefore, configure your font settings system-wide using a configuration file in /usr/share/glib-2.0/schemas, and don't forget to compile your changes using glib-compile-schemas.


Yes that’s correct when restoring backups you can chose where and which folder or files you will restore. You can restore backup as whole or part of it.

When restoring you can restore to any place you point Déjà Dup.
So, yes you would be able to bring your data up from the folder created by the backup


Centrino Advanced-N 6200 / Dell Studio 1569 Slow Internet

Maybe a bit late... I had a similar problem. My ADN 6200 only connected with 54MBit/s to my router. After searching and trying a while I found out that 11n was disabled in my iwlwifi.conf.

You can try it out with

sudo modprobe iwlwifi -r
sudo modprobe iwlwifi 11n_disable=0

Now wait until the WLAN is reconnected and look if your card conntects with a faster bitrate (mine is at 216MBit/s now). If yes look inside iwlwifi.conf.

cat /etc/modprobe.d/iwlwifi.conf

You will probably see this line

options iwlwifi 11n_disable=1

change it to 0.


It appears that gpc was removed from Debian (and subsequently Ubuntu) in February 2011 due to the project being unmaintained/discontinued.


I downloaded the M3D-Linux-1.5.0.70.tar.gz and got the same error when trying to extract the contents of the archive from the terminal. The Archive Manager application extracted the contents of the archive successfully however. The results of file M3D-Linux-1.5.0.70.tar.gz are POSIX tar archive (GNU) so it's clear that M3D-Linux-1.5.0.70.tar.gz is a tar archive.

You can also extract the contents of M3D-Linux-1.5.0.70.tar.gz from the terminal with the following commands:

mv M3D-Linux-1.5.0.70.tar.gz M3D-Linux-1.5.0.70.tar # rename it as a tar archive (application/x-tar)
tar -xvf M3D-Linux-1.5.0.70.tar


Upgrade python packages with pip: use "sudo" or "--user"?

To me the only difference is the scheme path.

Using sudo your package will be installed in:

/usr/local/lib/python2.7/dist-packages/

With --user they are installed in your $HOME directory in:

$HOME/.local/lib/python2.7/site-packages

For your own system, I'd say it does not really matter. Use --user if you're not a sudoer member.

For code you publish, avoid --user.


Dual boot - Ubuntu 20.04 EFI\UBUNTU\grubx64.efi - Not found

I was able to solve just by running Boot repair on bootable USB with recommended repair.


Ubuntu comes in versions with different desktops. The default version directly produced by Canonical, the company behind Ubuntu, uses a modified Gnome Shell desktop. Other versions exist that are officially recognized and supported by Cononical. Kubuntu comes with the KDE Plasma desktop, Xubuntu with the xfce desktop, Ubuntu Budgie with the Budgie desktop, Lubuntu with the lxde desktop, etc.

In principle, you can install additional desktop environments on a single Ubuntu installation. This is usefull if you have different users insisting on using a different desktop environment. It is not ideal, however, becaue it will lead to some clutter and sometimes minor issues and (mostly visual) inconsistencies. Especially software menus become cluttered, because all applications from all desktop environments appear in all menus.

If you are the sole user of the system, and want to switch definitively to another desktop, a clean reinstall is certainly preferred, as it will fully give you the seamless experience intended by the team of that particular Ubuntu version.

With respect to the terminal and core command line tools: these remains unchanged. The differences are only in the graphical user environment and the applications that are shipped with them.


Is Unity already preinstalled inside ubuntu netbook edition?

Unity is the default interface for Ubuntu Netbook Edition 10.10, older versions of the Netbook Edition (10.04 and earlier) do not use Unity.


Does Purge Trash and Temporary Files, in Settings/Privacy, leave the trash and temp files on my hard drive or are they destroyed?

"Empty Trash" or "permanently delete" files do not securely delete files from the HDD/SSD.
The methods of securely deleting files from SSD is different from HDD. Apps like file shredder may not work unless they are updated for SSD.
See How to securely wipe files from SSD drive? for more information.


I wrote a blog post about this problem here:  http://cloojure.blogspot.com/2015/05/how-to-install-nvidia-video-card.html

...which is pasted below. Please see the blog post for the missing screenshots.

Tuesday, May 26, 2015
How to Install NVIDIA Video Card Drivers for Ubuntu/Kubuntu Install or Kernel Upgrade
I have a nice new Linux computer I got from ZaReason this past Christmas, and I decided to install Kubuntu (KDE + Ubuntu) in order to more nearly match my (really slick) XPS 13 Sputnik system from Dell, which comes pre-installed with Ubuntu.  I had previously used Fedora 20 on my desktop computer, but wanted to keep the OS on both computers more in sync, and Ubuntu also has better integration with sound, video, peripherals, and other desktop (i.e. non-server) hardware concerns.

The problem is that my nice new EVGA brand video card (with NVIDIA GPU) is not natively supported by Linux, so you have to download and install the drivers from the NVIDIA website. A current driver as of this writing can be found at http://www.nvidia.com/object/unix.html (it might be easier to google "nvidia linux driver download" than to directly navigate the NVIDIA website).  Look under the "Linux x86_64" category.  I always choose the "Latest Short Lived Branch" since it will have the most bug fixes (e.g. Latest Short Lived Branch version: 349.16).  Download this file to your computer, the do a power-off restart.

The power-off part here is important. In configuring the video card, we have a fundamental conflict between the motherboard's built-in video output and the "non-standard" video card output.  When you perform a fresh Linux install or upgrade the OS kernel, you are starting from ground zero and the video card will no longer work.  Unfortunately, the Ubuntu software update system seems to come up with a semi-major patch every month or two which requires the re-installation of the video drivers. While I could avoid the problem by refusing to perform software updates, I am always eager to get bug fixes and new features in all my other packages, and I just try to minimize the inconvenience of re-installing the video card driver on the new OS kernel.

The problem is that, when the video card quits working, you can't tell what is going on, much less fix it!  The following steps are the fastest way I've found to get around these difficulties.

My video card has three (yes, count 'em, three!) video outputs, and I have become addicted to using all three monitors.  Yes, I know, it might seem excessive, but trust me:  once you've tried three monitors, you'll never (voluntarily) go back to dual monitors again.  Of course, the motherboard built-in video output makes it four video output ports in total.

Most monitors (I prefer the excellent 27 inch LG IPS 27MP65) have at least 2 inputs, both HDMI and VGA.  The trick is to use all three HDMI outputs from the NVIDIA video card to the three HDMI monitor inputs, and also connect a VGA cable from the motherboard built-in video output to one of the monitors (preferably the least-used monitor as the NVIDIA card sees it).

If only one video input is active, your monitor should normally be able to switch to the active input (HDMI or VGA) port automatically (especially when the monitor powers up).  If this sometimes fails, there should be a button labled "Input" or similar that will allow you to manually switch to the desired video input port.  Remember this, in case the monitor is displaying the VGA input and what you need to see is on the HDMI input, or vice versa.  If you find this problem is occurring, move the VGA cable to a monitor that is not trying to display HDMI.  It is much easier if you can see all active inputs simultaneously on different monitors.

When you first install Linux (or after a kernel upgrade), the new kernel will not find the drivers for the NVIDIA video card and the built-in video output will be used.  The monitor connected to the built-in VGA output should show the single-monitor display, and you'll be able to install Linux and boot up. At this point, you need to learn a few tricks.

The first trick is knowing that the NVIDIA driver cannot be installed when Linux is in the normal multi-user mode with the graphical X-Windows display active.  You must boot into a single-user, text-only mode before installing the driver.  On Kubuntu (my favorite) or plain Ubuntu this requires a power-off restart.

When booting, the GRUB bootloader will give you a 10-12 second countdown allowing you to select boot options before it attempts to auto-boot the newest kernel.  One of the options is to type the letter "e" in order to Edit the boot options.  This is what we need.  Type the "e" before the countdown timer expires.

At this point, you should see a screen such as this one:

The important part is in the lower-right-hand corner, where you can see the words "quiet splash" near the end of the next-to-the-last line.  The "quiet" part means that status messages to the console during boot are suppressed.  The "splash" part means that the OS boots into the multi-user, graphical X-Windows mode.  Both of these must be disabled in order to install the NVIDIA video driver.

Using the arrow keys, maneuver to the "quite splash" words, then use the Backspace or Delete key to remove the offending words and replace them with the single word "text".  When you are done, the screen should appear like this:

You may now follow the instructions at the bottom of the screen to continue the boot with your modified boot params (e.g. Crtl-X). You should see boot status/progress messages scrolling past on your VGA-port connected monitor.  Upon successful boot, the VGA-port monitor will look like this:

Voila!  You have booted into single-user text mode.  Go ahead & login and navigate to the directory containing the new video driver (typically ~/Downloads).

In this screen shot, you can see that I have three NVIDIA drivers downloaded (I keep forgetting to delete the older two).  Note that I don't always download the absolute most recent driver for each OS kernel update (maybe 2-3 times/year I'll download the latest driver from the NVIDIA website). Pick the newest (or only) driver you have, and invoke it as shown with "sudo bash NVIDIA-xxxxyyyyzzz.run":

While the driver is a shell script, I find it easier to invoke it using bash rather than change permissions and invoke it directly.  You need the "sudo" part since the video driver installation script must run with root permissions.  At this point, the driver will use "ASCII graphics" to complete the installation process.  It will stop about a half-dozen times to ask your permission for things.  Use the arrow keys to highlight the "Yes" answer, then hit  to invoke your selection.  Keep doing this until the installation is complete.

At the end of the installation, your VGA screen will be blank, and you'll be back at the command prompt.  Here, we need another power-off reboot.  Using "sudo poweroff" is a quick & easy way to do that.

Once the system has powered-off, hit the power button and begin a normal boot.  After the GRUB timer countdown, you will likely see an "Ubuntu" splash screen for a few seconds on the VGA output.  At this time, the computer should recognize your new video driver and switch to the three HDMI outputs of the video card and complete the boot process.  The VGA output will be unused from here on.

If your monitor is like mine, it may be confused by having VGA input that is active for 5-10 seconds, but then dies.  It keeps looking for the VGA input to come back and does not switch over the the (now active) HDMI input.  You can either use the monitor's Input switch to manually switch over to the HDMI input, or perform a quick power-cycle which should cause it to recognize the active HDMI input and ignore the inactive VGA input.

That's all, folks!  Happy Linuxing!

Alan Thompson

P.S.  For some cool stuff that you wish was in Clojure, you may wish to visit:  https://github.com/cloojure/cooljure     :)


Dell firmware updates and newer Ubuntu versions

Dell firmware updates, if I am not wrong, are located in the restricted repository.

If you manually install Ubuntu 17.04, just type in a terminal sudo add-apt-repository restricted. Then, search for Dell firmware updates in GNOME Software center. It will work like Ubuntu 16.04, where you still receive firmware updates, unless Dell really decided to abandon Ubuntu's firmware updates (which in this case, Ubuntu 16.04 will also be affected.)

But the best choice, of course, is to keep your existing Ubuntu 16.04, install 17.04 alongside, so that even if you encounter problems, you can still fallback to 16.04 and ask something here.


Getting application dependencies for creating snap package

Add all the packages whose contents you want shipped as part of your snap in stage-packages:. This will only work for packages shipped in Ubuntu (for now).

Take a look at https://github.com/ubuntu/snappy-playpen/tree/master/gitter-im for an app, which extracts and ships general binaries in the snap.


Subprocess with Python 3.8 and Linux Bash

Thanks to @Jonatã and @HackLab for their hints. After several debugging I solved this very annoying assessment but I learned lots of things, again, one of the crucial success's secrets is PRACTICE , here is the final code

#!/usr/bin/env python3
import sys
import subprocess
with open(sys.argv[1], 'r') as f:
    content1 = f.readlines()
    content2 = [x.strip() for x in content1]
    content3 = [item.replace("jane", "jdoe") for item in content2]
    res = dict(zip(content2, content3))
    for key, value in res.items():
        subprocess.run(['mv', '/home/ninja-coder/'+key, '/home/ninja-coder/'+value])


local nginx https server send error certificates: mediarouter.home

From the comments the problem was caused by using a different ip address in /etc/hosts

Once /etc/hosts was updated, presumably to the public ip, it works as expected.


The flag here lies in the last line of output that you provided; it demonstrates that the program uses the older, deprecated OSS interface that was removed in 10.10.  Have you tried using padsp $program (where $program is the name of the executable that you ran to obtain the output that you included above)?


I've just installed 11.04 on MBP, so I'm gonna answer my own question:

WiFi works. Not exactly out-of-the-box though. The solution for 10.10 I've googled has helped in my case.

The original solution:

  Go to System>Administration>>Synaptic Package Manager and in the search bar,
  type bcm.
  Make sure broadcom-sta-common and broadcom-sta-source are
  installed. If not, mark them for
  installation, close, and reload.
  Make sure bcmwl-kernel-source and bcmwl-modaliases are installed.
  If not install, reload, and then go
  back and mark them for reinstallation.
  Then reload.
  Restart your computer. It won't tell you that you need to restart, but
  it is necessary nonetheless.
  After you have restarted, click on the network icon at the top and click
  on "Connect to Hidden Wireless
  Network..."
  Enjoy your wifi connection...hopefully.

Actually in my case I didn't have to install bcmwl-modaliases, nor did I have to use hidden network option (Ubuntu detected all networks perfectly).

External monitor works, almost OotB. All you need is to install disper to actually activate it.

sudo add-apt-repository ppa:disper-dev/ppa
sudo apt-get update && sudo apt-get install disper


This is an old post but I hope posting might help some people out. It took me quite a while fiddling around with this headset to get proper sound. I am no expert on alsa or pulse-audio.
The following is done on Fedora Linux 33 but is likely relevant for Ubuntu users too.
This headset has a channel for voice chat (low quality) and a channel for normal audio. Plugging in this headset only makes the low quality sound available to pulse-audio. This can be verified by playing audio and turning the volume wheel on the controller on the USB-cord. Changing the volume only works using the voice channel wheel.
You can see the low sample size:
pactl list sinks
Sink #5
        State: SUSPENDED
        Name: alsa_output.usb-Turtle_Beach_Turtle_Beach_Z60_Game_Audio_000000000000-00.analog-stereo
        Description: Turtle Beach Z60 Game Audio Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 16000Hz

If I look at the different steams in /proc/asound/card0 (my headphones are card0, yours may vary) I can see stream0 is 16000Hz and stream1 is the proper sound quality steam:
[stephan@nyx ~]$ cat /proc/asound/card0/stream0
Turtle Beach Turtle Beach Z60 Game Audio at usb-0000:00:14.0-1, full speed : USB Audio

Playback:
  Status: Stop
  Interface 2
    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 1 OUT (ADAPTIVE)
    Rates: 16000
    Bits: 16
    Channel map: FL FR
  Interface 2
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 1 OUT (ADAPTIVE)
    Rates: 16000
    Bits: 24
    Channel map: FL FR

Capture:
  Status: Stop
  Interface 1
    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 1 IN (ADAPTIVE)
    Rates: 16000
    Bits: 16
    Channel map: FL FR
  Interface 1
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 1 IN (ADAPTIVE)
    Rates: 16000
    Bits: 24
    Channel map: FL FR
[stephan@nyx ~]$ cat /proc/asound/card0/stream1
Turtle Beach Turtle Beach Z60 Game Audio at usb-0000:00:14.0-1, full speed : USB Audio #1

Playback:
  Status: Running
    Interface = 4
    Altset = 1
    Packet Size = 192
    Momentary freq = 44100 Hz (0x2c.199a)
  Interface 4
    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 2 OUT (ADAPTIVE)
    Rates: 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000
    Bits: 16
    Channel map: FL FR
  Interface 4
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 2 OUT (ADAPTIVE)
    Rates: 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000
    Bits: 24
    Channel map: FL FR
  Interface 4
    Altset 3
    Format: S16_LE
    Channels: 8
    Endpoint: 2 OUT (ADAPTIVE)
    Rates: 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000
    Bits: 16
    Channel map: FL FR FC LFE SL SR FLC FRC

This is good news and probably means that there is no driver problem but something in the userland is not selecting the right output stream.
Using the aplay command I figured out my card has two devices. I assumed the stream1 is on the second device (device 1) which in ALSA is called hw:0,1
[stephan@nyx ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Audio [Turtle Beach Z60 Game Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Audio [Turtle Beach Z60 Game Audio], device 1: USB Audio [USB Audio #1]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

I verified the quality on this device by opening VLC with this specific output device. Start VLC and play an audio file
vlc --aout alsa --alsa-audio-device hw:0,1

After verifying that the sound quality is now what it is supposed to be I create a sink in Pulse-audio using the ALSA device
pactl load-module module-alsa-sink device=hw:0,1

In GNOME I can now see a new audio device called "Turtle Beach Z60 Game Audio". Using this as an output device the sound quality is great. You can verify that the right channel is used by turning the volume wheel on the USB-cord controller. It should react to the normal volume wheel instead of the voice wheel.
You can make the change to pulse-audio permanent by adding this line to /etc/pulse/default.pa
load-module module-alsa-sink device=hw:0,1

Listing the sinks in pulse-audio now shows the right sample size for the sink
Sink #6
    State: RUNNING
    Name: alsa_output.hw_0_1
    Description: Turtle Beach Z60 Game Audio
    Driver: module-alsa-sink.c
    Sample Specification: s16le 2ch 44100Hz
    Channel Map: front-left,front-right

Note that it shows only two channels, not surround. This is likely a setting that can be made somewhere but I'm not interested in surround sound. This at least fixes the sound quality by using the right channel.
Maybe there is a more elegant solution to this problem but this works for me.


I did some more research and it seems this is a known bug.

Launchpad bug report

Another ask Ubuntu post talks about this very issue and offers a workaround of booting into the LTS 4.4 kernel for now, which is also what I discovered with a little trial and error.

Ask Ubuntu related post

So, until the bug is fixed it seems the recomended work around is to boot into the 4.4 LTS kernel if you want to run Virtualbox.

As the HWE kernel has been installed as default in my Ubuntu MATE installation, I had to install the LTS 4.4 (GA) kernel manually.

sudo apt install linux-image-generic linux-headers-generic

At the grub boot prompt, select "Advanced Options" for this Ubuntu installation (I dual boot and have multiple installations) and select the 4.4 kernel.

(The italic text in the Virtualbox GUI remains a mystery !)


Bug 1336541 is "No TRIM via USB".  I guess the problems are present with internal USB ports also.  Additionally in your case, it sounds like you are using a USB flash stick, not a SSD device -- TRIM would not apply to flash.  If you device is really an SSD, do add yourself to the bug.


If you have the address of the file you should be able to do

wget address

If you have authentication issues try:

wget --http-user=USER --http-password=PASSWORD address

This may work depending on how the log-in is handled on the server side.


On a VMWare Windows host, I have no hostVM connectivity, But can SSH from other nodes on the LAN, and VM has WAN connectivity

Unfortunately I never found the source of this issue, however I managed to resolve it by uninstalling VMWare, removing all virtual interfaces from device manager, and reinstalling after a reboot.


quickly-ubuntu template showing unmet dependencies and broken packages

sudo apt-get install quickly-ubuntu-template python-pygame

I'm not extremely familiar with the inner workings of dpkg, but I find it odd that it didn't automatically pull in python-pygame.


Changing UID / GID on Ubuntu 14.04 broke login to Unity/XFCE

The logic simple like a charm. A good word usermod can make your day if you're clever enough and do not stop with each your cul-de-sac ...

Need to say each solution about changing the user's security you must decide individually due to the universal solution do not exist.

And yes, this can looks like a bug.

Ok, read Ubuntu Manpages for usermod to define the parameter for changing UID:

  -u, --uid UID

  The new numerical value of the user's ID.

  This value must be unique, unless the -o option is used. The value
  must be non-negative.

  The user's mailbox, and any files which the user owns and which are
  located in the user's home directory will have the file user ID changed
  automatically.

  The ownership of files outside of the user's home directory must be fixed manually.

  No checks will be performed with regard to the UID_MIN, UID_MAX,
  SYS_UID_MIN, or SYS_UID_MAX from /etc/login.defs.

Also cul-de-sac:

  CAVEATS

  You must make certain that the named user is not executing any processes when this command is being executed if the user's numerical user ID, the user's name, or the user's home directory is being changed.

  usermod checks this on Linux, but only check if the user is
  logged in according to utmp on other architectures.

  You must change the owner of any crontab files or at jobs manually.

  You must make any changes involving NIS on the NIS server.

Also read about groupmod.

Sure, if you need repair your "nevertheless" you must at least fix ownership for files and directories outside your HOME folder lookalike:

sudo chown -R username /path/to/directory

Best wishes,


How to fix Ctrl and Shift problems in games?

Remove bindings (keys will still work in game)

xmodmap -e 'remove Control = Control_L'
xmodmap -e 'remove shift = Shift_L'

add bindings back again after you are done playing game

xmodmap -e 'add Control = Control_L'
xmodmap -e 'add shift = Shift_L'


Always expect performance loss (at best, and total incompatibility at worst) when running anything over Wine.  In some cases the performance impact is small enough not to matter, but in others it will be significant enough to make the software near-useless.

Your options:

Check the WineHQ database to see if anyone has tips for getting FL Studio to run better.
Dual-boot with Windows for when you want to run FL Studio.
Find an alternative to FL Studio that runs natively in Ubuntu.


chmod +x your.hex.file

execute with

./your.hex.file


How do I set time for use on a server where microseconds are important?

Please install ntp (not ntpdate) and add some time servers to your configuration.

See https://help.ubuntu.com/10.04/serverguide/C/NTP.html and the linked page to ntp here: http://www.ntp.org/ntpfaq/NTP-a-faq.htm


Why do I have poor gaming performance in Ubuntu?

Well, it depends

It's true that Linux has made significant progress on running games. But it is difficult to notice this progress without a reference point. Comparing to Windows, Linux is still not fully ready for people who call themselves "gamers". But if you compare current state of games on Linux, with what we've had a few years ago, then you will notice a firm progress in this field.

The problem

The problem especially lies in graphics drivers. There are of course proprietary linux drivers developed by graphics cards manufacturers, buy their development is not a priority for them, as most customers uses Windows for gaming. This changes slowly and depending on your GPU, you may see diffrent overhead on Linux, associated with the development of drivers.

Also keep in mind that even today, there are technologies ready to release games native for Linux, without additional work required on developers side. But often games creators don't even consider it, because it does not pay off.

Another thing is that wine's work for implementation of windows-related libraries like directx, also takes time.

Maybe not so bad?

There are many big titles avilable on Linux that should work at this point with mid-end GPU, like CS:GO, Tomb Raider, Rise of the Tomb Raider, GRID Autosport, The Witcher 2, Wolfenstein: The Old Blood. The are just examples. Many other games also runs flawlessly with the help of Wine.

Thanks to Valve and Steam Play, it's already possible to play many games on Linux without even dealing with wine, playonlinux or lutris. In relation to previous years, the library of games ready to play on Linux has become really big.

  In may 2019 Steam has reached over 5000+ games for Linux.

Performance is still an issue, but as I said, it depends on your GPU, for some games you may even have better performance that on Windows. But generally, all games that are not natively dedicated to Linux, will show less performance.

But there's already work going on to change that.

One example is Proton

  Proton is a tool for use with the Steam client which allows games which are exclusive to Windows to run on the Linux operating system. It uses Wine to facilitate this.

Another is dxvk

  A Vulkan-based translation layer for Direct3D 10/11 which allows running 3D applications on Linux using Wine.


KDE Plasma Desktop and Applications Hanging / Sticking or Do Not Start at All

The solution to this problem is to restore the manually removed system files
/usr/lib/x86_64-linux-gnu/libblockdev.so.2.0.0
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded/kwrited.so

Use the Ubuntu Packages Search to find out that the removed files belong to the packages libblockdev2 and kwrited.
Just reinstall these packages:
sudo apt install --reinstall kwrited libblockdev2


Is there a document editor with revision control

Two come to mind:

Emacs
Anjuta

More detailed answer:
From the Emacs manual:

28.1 Version Control
A version control system is a program that can record multiple versions of a source file, storing information such as the creation time of each version, who made it, and a description of what was changed.
The Emacs version control interface is called VC. VC commands work with several different version control systems; currently, it supports GNU Arch, Bazaar, CVS, Git, Mercurial, Monotone, RCS, SCCS/CSSC, and Subversion. Of these, the GNU project distributes CVS, Arch, RCS, and Bazaar.
VC is enabled automatically whenever you visit a file governed by a version control system. To disable VC entirely, set the customizable variable vc-handled-backends to nil (see Customizing VC).

From the Anjuta features list:

In addition, the file manager context menu also lists actions associated with other plugins, such as build actions (associated with the build system plugin), CVS/Subversion actions (associated with version control system plugins) and project actions (associated with the project manager plugin). This allows you to conveniently perform all actions from within the file manager.

GIT plugin for Anjuta.


How to remove extra swap partitions at Ubuntu install menu?

When installing Ubuntu, there will be a menu right after the "Install Ubuntu" button is clicked (not the "Try Ubuntu" button). It asks you to choose between these options: Erase all Operating systems and Install, Install Ubuntu side by side, Upgrade Ubuntu, and choose something else. Select the "Choose something else option". You will then continue to a hard drive reformatting menu. This menu is very powerful! Once you make changes it can become permanent and data loss can/will occur. If you do make an mistake, click the back button. This should restore your settings back to the original format. Than try again. Now, you need to check/highlight the extra swap drives and click "Delete". This will mark those swap areas as free space. After you delete the 11 extras swap areas, click on the partition/drive you wish to add that space to. When the partition/drive is checked, click the "Change" button (Not Delete this time!). This will bring you to another dialog box which enables one to change the partition. Re-size the partition to account for the extra space you freed up in the deleting of all those swap areas (note: you need to add the numbers up yourself, freed space + current partition space) and click "Ok". Now you have added that swap area space to one of your usable partitions. (Note: you generally want to mount the partition in "/"). Also, as a rule, I generally only guess at how much free space to add to the partition. E.g. If I have 342332 Kb of free space, I will add 332000 to my partition. That will leave about 10 Gb or 10332 Kb of free space left. (Swap is used when you run out of memory). Than all you have to do is "Change" the remaining free space to a swap area. Just makes the math easier, that's all.  Also, the average person will never use more than 10 Gb of swap. I couldn't imagine how many applications you would need open to run out out all your memory plus 10 Gb of swap.


"A hard disk may be failing" , but no additional info via gdu-notification-deamon (suggestions?)

It's a known bug: Bug #469499 Usability issue in "hard disk failing" dialog.
It's good that you have a backup ready.


Laptop with a touchscreen: How to configure specific screen gestures in 12.04

You can install packages like Easystroke & Ginn for it to work.


You can try

vim scp://remoteuser@server.tld//path/to/document

More info and examples


1st install just leaves a background screen!

Hold Ctrl+Alt+T to start a terminal.

From here, type

sudo apt-get install --reinstall unity ubuntu-desktop

and Return.

The sudo password is your user password.


Why do this PDF's fonts appear unreadable on my machine?

The document specifies a bunch of fonts (for instance, Garamond which is the main font used in the document) but doesn't have them embedded. So your system renders it with what it considers the closest font it has. I'd consider this a malformed PDF; if you're using a font that's not widely available and don't embed it, users will have a hard time reading it.

You can install Garamond from here: http://www.fontage.com/pages/garamond.html

Download the garamond.zip file, uncompress it, and open each of the .ttf files that appear. They will open in Font Viewer. Click the "install" button to install them to your system. They will be installed for your user only, under .fonts. Once they're installed, open the document with evince which should pick up the new fonts and show the document as it was meant to be seen.

To know which fonts a document uses, open it in evince, go to File -> Properties, then to the Fonts tab. Any fonts that say "Not Embedded" are, well, not embedded, and in order for the document to render 100% accurately you'd need to have all these fonts installed on your system.


This happened to my friends laptop as well. You have two options;

1) Ensure that you have all the additional drivers installed on your laptop, you can do this by accessing system settings > Additional drivers.

2) You can access your BIOS screen on boot up, and change the temperature at which the alarm will go off, or depending on your laptop series, you could also set the temperature at which the laptop should start spinning the fan or setting off the alarm.

The second part of the second step should be approached and executed with caution because then you may fry your laptop, so i would recommend setting the temperature at which it alarms or starts to spin the fan +1/2 degrees Celcius.


As en expansion of happyskeptic's answer, you don't need to specify an interface. This does it for me:

> nmcli dev show | grep DNS
IP4.DNS[1]:                             172.22.216.251
IP6.DNS[1]:                             2a01:4f0:400c:1::1

For Ubuntu 14.04 and older use nmcli dev list | grep DNS

> nmcli dev list | grep DNS
IP4.DNS[1]:                             172.22.216.251
IP6.DNS[1]:                             2a01:4f0:400c:1::1


cron will never ever start a job when the system is off when the time for the cron job passed. Jobs can be executed in minutes.

anacron does start a job when a system was turned off. But anacron can only be set to days. Nothing smaller.

anacron is used for desktops so Ubuntu has this active (desktops are expected to be turned off reguraly). cron is mainly used for servers (those machines tend to be on permanently).


ubi-partman failed with exit code 10 during 12.10 fresh install

Press Esc during boot to see additional options. Choose nodmraid. See the community BootOptions page on Ubuntu.com.


Losing wireless about 5-10 minutes after boot, can't get it back without reboot

did you try this :

Press Alt+F2, in the box that pops up type: killall nm-applet and press Run. This will shutdown any existing network manager icons that aren't showing up. Then

Press Alt+F2 again and this time type: nm-applet This will launch a fresh network manager applet

this always work for me better than reboot


Why the command I put into rc.local didn't to work properly?

I recomend you to use upstart.

https://www.digitalocean.com/community/tutorials/the-upstart-event-system-what-it-is-and-how-to-use-it

Run:

sudo nano /etc/init/myscript.conf

Then write:

description "My Script for Ubuntu 14.04"
author "social_loser"
start on runlevel [2345]
exec Path_To_Script_Here

Save and close, then run:

init-checkconf /etc/init/myscript.conf

Everytime you'll turn on your PC the script will run.


which pdf reader support zoom or triming margins in presentation mode?

qpdfview give facility to zoom in presentation mode which was added with version 4.8

Shortcuts used:

Ctrl+Up/Down
or Ctrl+MouseScroll

The edge testing package available from developer daily build PPA:

ppa:adamreichold/qpdfview-dailydeb

Reference: lp bug#1264451: Add zoom functionality to presentation view


"Can't create test file /var/lib/mysql/user-desktop.lower-test": How to run mysql server on Xubuntu 13.04 (kubuntu-desktop)

Make sure that you installed MySQL as root sudo apt-get install mysql-server. This should usually work.

To carry on from what you have here. You can create the missing directories but make sure they are owned by user\group mysql: chown -R mysql:mysql /var/lib/mysql

If you would like to change MySQL's data directory, do so in MySQL's configuration file /etc/mysql/my.cnf

Then you can chose between configuring apparmor to allow MySQL to read\execute\modify the new data directory and sub directories or, at your very own risk, you can remove apparmor. You may need to be root to do the following:

/etc/init.d/apparmor stop
/etc/init.d/apparmor teardown
update-rc.d -f apparmor remove
apt-get purge apparmor
reboot

Then you can run mysql_install_db.

But then you will have no users in the database ! To solve this:

mysqld --skip-grant-tables --skip-networking & #Start MySQL manually with no authentication checks
mysql # Access MySQL, no username\password needed
use mysql;
DELETE FROM user;
INSERT INTO `user` (`Host`, `User`, `Password`, `Select_priv`, `Insert_priv`, `Update_priv`, `Delete_priv`, `Create_priv`, `Drop_priv`, `Reload_priv`, `Shutdown_priv`, `Process_priv`, `File_priv`, `Grant_priv`, `References_priv`, `Index_priv`, `Alter_priv`, `Show_db_priv`, `Super_priv`, `Create_tmp_table_priv`, `Lock_tables_priv`, `Execute_priv`, `Repl_slave_priv`, `Repl_client_priv`, `Create_view_priv`, `Show_view_priv`, `Create_routine_priv`, `Alter_routine_priv`, `Create_user_priv`, `ssl_type`, `ssl_cipher`, `x509_issuer`, `x509_subject`, `max_questions`, `max_updates`, `max_connections`, `max_user_connections`) VALUES('localhost','root',PASSWORD('root'),'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','','0','0','0','0'); #Add root user with passowrd, root
FLUSH PRIVILEGES;
GRANT ALL ON *.* TO 'root'@'localhost';
FLUSH PRIVILEGES;
exit;
killall mysqld;
start mysql
mysql -u root -p
# Enter password, which is: root


Ok, I'm answering my own question: the problem was with the jnlp file format itself, and I had the parsing error I overlooked.

It had to do the the format of the href attribute of the jnlp tag containing some question marks (see https://stackoverflow.com/questions/14112318/the-reference-to-entity-subset-must-end-with-the-delimiter)


You can choose the default version of Java to be used by Ubuntu using this:

$ sudo update-alternatives --config java

It will give you a choice if there are multiple versions installed or will set up properly if it finds just one version.


I am not sure if it will help but look at this


Install Windows 7 with Ubuntu in GPT UEFI mode

The default UEFI bootloader is \EFI\BOOT\BOOTx64.EFI on your EFI System Partition (ESP).

I have reinstalled Ubuntu last week and it looks like Ubuntu is not creating this file. So Windows cannot overwrite what isn't there. Windows should also not delete entries (registered bootloaders) from the UEFI bootmenu and to my experience it does not.

I would say that UEFI is a major improvement, because bootloaders can coexist on the ESP (if the UEFI firmware, that the manufacturer implemented, isn't functionally broken or crippled).

What you can do to be safe:

Backup the current contents of your ESP. (Zipping should be fine.)
To get Ubuntu's GRUB as the default hotpluggable bootloader on your ESP after the Windows 7 installation has finished: copy and create \EFI\ubuntu\ from your backup as \EFI\BOOT\ and rename grubx64.efi to BOOTx64.EFI.
Have Ubuntu live media ready so you can use efibootmgr to recreate accidentally deleted bootmenu entries.

I never did a UEFI install of Windows 7. With Windows 8 however it's very easy to create the Windows boot data on the ESP, even after installation. It's basically bcdboot c:\Windows /l en-gb /s b: /f ALL, but the Windows 7 version doesn't have the /f option.


How do I delete the blue gnome wallpaper from my wallpaper selection in prefs?

You should delete the folder /usr/share/themes/Adwaita with either this command in a terminal:

sudo rm -r /usr/share/themes/Adwaita/

or press Alt+F2, enter gksu nautilus /usr/share/themes and your password when asked, select the folder "Adwaita" and press Shift+Del.


Files deleted as root, But disk space is not available

You should never run a graphical application (such as nautilus) with sudo.  You should use gksu instead if you need to do this.

Unfortunately, using a graphical application as sudo creates a lot of problems which you are discovering can be difficult to clean up.

The technical explanation behind this is that the program you are executing will be executed as root, but it will think its home directory is your home directory.  So if it writes any files to what it thinks is its home directory, you're gonna end up with root-owned files in your home directory.

You have possibly ended up with root-owned files in your user's Trash folder.

You will probably have to clean this up with terminal access, becoming root with sudo -i, and then going into your trash folder (/home/user/.local/share/Trash/files or similar) and manually deleting what you need to delete.

In the future if you need to run nautilus (or any other graphical program) as root, use gksu.  This will ensure that it won't mess up your home directory with root-owned files.

Note: There is no reason you would need to copy regular user files to your home directory as root that I can think of - presumably you were trying to work around some other problem by doing this?

Note 2: As a result of running sudo nautilus you may also have other root-owned files within your home directory, such as if nautilus writes its configuration to files in ~/.config/ or similar. This may cause other breakages when you try to run other software.


I'm going to suggest that you re-install:  I noted in the video that the presenter recommended not downloading updates, or using the 3rd party downloads - I've found both of these to be really useful in making my systems run (read required in place of useful!).  I also generally do the 'Try Ubuntu' option first, connect to my network, and run 'Install Ubuntu' once everything is connected.

Also, I'm more of a reader than a watcher.  You might want to review some of the questions about how to install Ubuntu dual booting with windows 8, such as this one.


How do I recover my accidentally lost Windows partitions after installing Ubuntu?

Unfortunately it seems you accidentally partitioned your whole drive replacing your Windows partitions with a single Ubuntu partition.

  You will not be able to recover these partitions by restoring Vista with the recovery CD. In fact every write attempt to your hard drive will make things worse as remnants of your data may get more and more overwritten.

  Encrypted partitions can not be recovered
  Drives that were part of a Windows "Storage Space/Pool" can not be recovered

You may however be able to recover your partitions with testdisk  but you may not be able to recover all of your data. You can temporarily install testdisk on a live session too (however this will then not be a permanent installation).

Please have an external drive ready to save your recovered data before you proceed. You can't recover the data on the same drive.
Boot your Ubuntu LiveCD ("Try Ubuntu") and then install testdisk by:

Adding the "Universe" repository to your software sources (from Ubuntu system settings > Software & updates)

Updating your apt cache in a terminal by first pressing Ctrl+Alt+T and then typing:

sudo apt update

then install testdisk with:

sudo apt install testdisk

Mount your external backup drive in the live session (e.g. with Nautilus) to be able to store recovered data later.
Follow the concise step by step guide on the Testdisk Wiki which will help you to recover lost partitions.
If you are not able to recover from an image of your overwritten drive (this will need an external drive with more than double the free space than your laptop's hard drive) you need to save all your data on an external drive soon after recovery.
You will not be able to recover your Windows installation, as this was overwritten by Ubuntu.
Only if you fail to recover partitions you may be able to recover single data file using PhotoRec from the TestDisk suite but this will not recover filenames, folder structures or time stamps of your files.
Do not use the drive before you were able to recover your lost data.

Copy data from the live system to an external drive

To be able to save our data to an external drive we need to mount both the recovered partitions and the external USB drive in the live environment. The below picture shows how the USB drive will be mounted on insertion (the internal partitions will be mounted on selecting them):

We can then copy & paste (or drag & drop) our rescued files from the internal drive to the external drive (e.g. by opening a separate Nautilus window, or in releases < 13.04 by adding an extra pane with  F3 ). From the terminal we can issue:

cp -a /<mountpoint_source>/* /media/ubuntu/<name_destination>

After sucessful copy we need to unmount the drives to avoid data loss. This will be done in Nautilus from a right click context menu or in the terminal:

sudo umount /media/ubuntu/<name>

Copy single files using testdisk

In case we were unable or did not want to recover the partition table we may try to copy selected files or directories with testdisk from the <Advanced> Filesystem Utils menu:

In above example I had selected examples.desktop and rsynctest folder by pressing  : . To copy these files we press  C  for the next menu giving the file hierarchy of our running system. We have to browse to the mountpoint of our external drive (here /media/23GB_USB but this will probably be /media/ubuntu/<name_of_device in your case). The content of our USB is now listed, and can be browsed for deeper directories:

When we press  C  in the example above our above selected example.desktop, and the folder rsynctest will be copied to the external USB drive.

To verify we had succeeded we can now open Nautilus in our live system and see the content of the rescued files. After we are done, do not forget to unmount the USB drive.


Is the Flash plugin on Chrome safer than Firefox?

Indeed for the latest flash you will need chrome or chromium with pepperflashplugin-nonfree package (chrome and pepper flash are available for 64bit only).
However firefox uses flash player which is old and it may have bad performance but it still gets some security updates so it can be considered secure enough.

I always prefer chromium because I believe it's faster  (however with greater ram usage) but both browsers have excellent security.

Just keep in mind that flash is going to die sooner or later so don't care about it. Most sites use html player instead of flash nowadays (remember that android doesn't support flash at all) and I read somewhere that google plans on blocking flash player on every site by default in a few months (user will have to explicit enable flash in a specific site).

So I believe you can still use firefox with no problems at all if you like it.


My Ubuntu 14.04.03 installation does not pick up my c drive - Windows 10

Ok bro.So here what i would suggest.

  But after that you won't have windows any longer and only Ubuntu as your only OS.And the process can't be reversed(Please note that).

First of all if Windows is working properly and you want to only keep Ubuntu as your OS then you have to clear your whole hard drive.

  That means delete all the partitions i.e the local drives(E:/, F:/) and others by refering to this site(don't delete the C drive now it's not necessary).

  http://www.disk-partition.com/help/clear-disk.html.
  Also there are other websites on google which you can refer to delete all the partitions completely.

Now in case when you don't have any drives except the C drive and you see that it's not taking the whole capacity of your hard drive then just make sure that all the space is unallocated which will be after you delete the partitions.

  (It will be better if you install Ubuntu 14.04 because right now it's the long term support release).
   After that when you are installing Ubuntu from your flash drive or cd, you will probably see 5 options.

  Now as said previously you won't have your windows partition after this step.The only OS will be Ubuntu.So select the option which says install Ubuntu and erase the disk completely.
  It will erase everything and after that the steps are easy you will be able to understand them.

So I guess it will clear your doubts.
Don't be nervous.Install Ubuntu for now.After doing the whole process of installing OS once you will be able to understand it and it will be no problem when you do it again.
So try it.


how to disable the animation of dimming the screen when ubuntu turns inactive screen off

Method1:

To get started, open Brightness & Lock utility from Unity Dash search results or from System Settings.

Un-check the box where it says “Dim screen to save power”

Method2:

To get started, open dconf Editor from the dash search results.

In next window, navigate to org -> gnome -> settings-daemon -> plugins -> power. You’ll find the key which says “idle-dim-time”, change its value to 0

If dconf-tools is not installed you can install it via the command

sudo apt-get install dconf-tools


Triple-booting Windows 7, Windows 8 and Ubuntu 12.04

You should be able to do so - grub will recognise and add them to the boot list for you.

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

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


When using os-uninstaller It says I have to use a live usb to proceed. Is there another way of doing this?

I was wondering if there was another way to remove Ubuntu from my computer

You can only remove an operating system from another operating system. An active operating system can not be removed.

The advice they give are the 2 easiest methods that will work for anyone regardless of how many operating systems they have. But you can also remove an operating system from another operating system. Boot up Mac OS or Windows and remove the partitions of that operating system you want removed.

Besides that you can also use a gParted Live DVD instead of the Ubuntu Live DVD or Live USB.

A little more difficult and would require a bit of setting it up: you can also do this from an installer you put on a different partition. Create a partition the size of the Ubuntu ISO. Put the ISO in that partition. Reboot. Enter grub menu and boot from the ISO. During the installation part you can delete any partition.

But I would assume you want to install another operating system. If so, see the installation procedure of that installation on how to remove the current operating system.


Upgraded to GNOME 3 and no desktop icons showing

Open the gnome-tweak-tool and navigate to the desktop tab as shown in the picture below and activate 'Show Icons'. If you don't have gnome-tweak-tool installed you can install it by opening a terminal and typing:

sudo apt install gnome-tweak-tool


OK, there is the hibernate program, which can send your computer to suspend or hibernate from commandline. Determine if your computer is "idle" is going to be trickier.

On a graphical desktop you would use mouse and keyboard input. Obviously in this scenario this is out of the question.

You should start by writing a shellscript, doing some custom idle checks. You can call this script via a cron job every 5 minutes or so.

You could consider your server idle, if no users are logged in (check this with who) or if there are no network connections in use (check with netstat) or if the cpu load is low (check for example with top -n 1 -b). You will have to find your own heuristics.


Unable to install Ubuntu(s) on ASUS K53SM

So this is what I found, after a little research. Your laptop has NVIDIA® GeForce® GT 630M with Optimus technology and I suppose that this last one causes the problem. I found in this question on the italian Ubuntuforums that you should disable the switchable video card setting in your BIOS and choose either Nvidia only or the integrated Intel video card. After that, the boot with the Ubuntu ISO should work, because Ubuntu still doesn't support decently the Optimus technology.

If this is or is not your problem, I think you should report a bug in Launchpad and explain your eventual solution and see if there is also a better solution and also to show evidence of the problem, in order to fix it as soon as possible.


Please notice that grub's hd numbering starts with 0! In your case:

/dev/sda1 is (hd0,0)
/dev/sda3 is (hd0,1)
/dev/sda4 is (hd0,2)
/dev/sda5 is (hd0,3)
/dev/sda6 is (hd0,4)
/dev/sda7 is (hd0,5)

As you can see, you are trying to chainload the swap partition! Choose the correct partition's setting, and it will work.


Error while installing MySQL even after changing the environment file

The /etc/environment file is not a shell script, so you can't place export statements in it. It should consist of just name=value pairs. So just remove the line export $JAVA_HOME from your file:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"


I solved the problem. It seems that it is the same on every Ubuntu machine. At least on 12.04.

This is how I debugged the problem:

I had Asterisk, Linphone and Wireshark already installed.
I run all of them.
I make Wireshark to listen on "lo". Normally there was nothing showing in Wireshark.
Then I call a hello world on localhost. I see that the first communication from Linphone to asterisk happens at 0sec, then something happens at 0.5sec, then a long pause and the next packet is almost 3 sec later. That was my problem.

Below is how I fixed it. It gets rid of that long 3 sec delay, although there is still 0.5sec, that I cannot get rid of.

As it turns out dnsmasq that comes with network-manager was resolving localhost by asking a remote DNS server , opendns in my case.

In /etc/NetworkManager/NetworkManager.conf I commented out #dns=dnsmasq

then

sudo service network-manager stop
sudo netstat -anlp | grep -w LISTEN

kill all running dnsmasq processes

sudo apt-get install dnsmasq

Then configure dnsmasq, make sure in /etc/dnsmasq.conf you have

# Listen only on localhost
listen-address=127.0.0.1
bind-interfaces

And this is all. You will have to reboot, I think logout and login should also do.

To see whether your system is currently using Dnsmasq run

netstat -ulnp | grep ":53 "

You can run

sudo /etc/init.d/dnsmasq restart

to see if you are not getting any errors. Now "dig localhost" takes 0sec.

Some links that helped me:
http://sokratisg.net/2012/03/31/ubuntu-precise-dnsmasq/


Xubuntu 14 backup and reinstall or make /home folder

Yes, it is possible without reinstalling (or even rebooting for that matter).

First, you will need to create an empty ext4 partition in the free space, then move your /home there, and then modify a file called /etc/fstab to tell the system about your new home.

For detailed instructions, please follow this guide.


No sound (audio) in Chrome Ubuntu 18.04LTS

I downloaded PAVUCONTROL, checked settings, chrome was sending audio to HDMI port, changed it, works well now.


How do I hold down left click in AutoKey

Solved the issue by rebinding the thing I wanted to do to a keyboard button


ATI 6XXX Hybrid Graphics w/open source drivers

A BIOS update has been released for the AMD muxless HP dv6/dv7 61xx series.

This is for laptops with a 6470M(?) or 6770M.

The update enables Fixed Mode in the BIOS for discrete-only operation with the Sandy Bridge IGP acting as a mux.

ftp://ftp.hp.com/pub/softpaq/sp54001-54500/sp54024.exe


How to delete and/or merge dev/sda5 logical filesystem?

You can try deleting that 1GB partiton and then extending dev/sda1.
I'm guessing, but could it be that you used the 'Try Ubuntu' option before installing it to hard disc permanently??

For Ubuntu you need to have a 'Swap' partition, and my guess is that this what the !GB was intended for at installation. rather than deleting it I'd suggest you format it as a 'Swap' partition.

To format the 1GB partition, place your mouse pointer over the respective line in the Gparted window and click your RH mouse button. Up will pop a menu offering 'Format'. Click the LH button on the word 'Format'. You will then see a small pop-up window offering a seletcion of different formats, choose 'Swap', then OK out of it all.

But if you really do want to delete it then::-MOST IMPORTANT>>>>>> BE VERY CAREFUL THAT YOU DO NOT DELETE THE MAIN PARTITION BY ACCIDENT.

To delete the 1GB partition, place your mouse pointer over the respective line in the Gparted window and click your RH mouse button. Up will pop a menu offering 'delete'. Click the LH button on the word 'delete'.

Following that you can repeat the operation to delete the 1GB extended partition. You'll then have some unallocated space which can be used to extend you main partition.

To extend your main partition you place your mouse pointer over the respective line in the Gparted window and click your RH mouse button. Up will pop a menu offering 'move/resize'. Click the LH button on the word 'move/resize'.

I think you'll be able to work out what to do there.

AT ALL TIMES DOUBLE CHECK WHAT YOU ARE ABOUT TO DO. Good luck.


Comma input is missing in Vim Insert mode

Your cinkeys setting is malformed:

set cinkeys=0{,0},:,0#,!,!^F

See :help cinkeys-format for details, but the ! requires something to follow it, which is interpreted as the comma, rather than being an entry of just "!".  Because the ! means not to insert the key, the comma is discarded.

Removing the line from your .vimrc (which uses the default value) or removing the rogue exclamation mark item will work:

set cinkeys=0{,0},:,0#,!^F


Type '"deb' is not known on line 1 in source list

Run gksu gedit /etc/apt/sources.list.d/virtualbox.list, remove the " at the beginning of the first line, save and close gedit. All done.


You will need Kernel 4.4 or newer.  I'm sure there is a way to run an older Kernel, however, it will likely break 16.04 since it relies on the newer Kernel functions.

A list of Ubuntu and Kernel OS/Kernel compatibilities can be found here

https://wiki.ubuntu.com/Kernel/Support


unfortunately as i checked this link,the Slingbox hasn't a specific player for Ubuntu :

  http://www.slingbox.com/get/press-downloads

But you can install wine on ubnutu and play your Slingbox player in it .please go through :

  How can I install Windows software or games?


How to download a software package with all dependencies and sub-dependencies?

You need to run a command that automatically resolves all the .deb file's dependencies and installs the .deb file and its missing dependencies with the same command. You will need a working internet connection (which you have) and your installed software to be updated with sudo apt update && sudo apt upgrade to download any missing dependencies. Open the terminal and type:

sudo apt-get download package-name
apt install --simulate ./package-name.deb # dry run doesn't install anything

where package-name should be replaced by the name of the package that you are trying to download and package-name.deb should be replaced by the name of the .deb file that you are trying to install.

The second command doesn't install anything, it's just a dry run simulation to list the dependencies that need to be installed on the offline machine.


Is there a way to run a bash script unattended?

Yes, there is. There's the yes command whose job is precisely that. It will repeatedly output a given string (y is the default). So, if the sciprt foo.sh expects you to hit y to confirm an action, you can run it this way:

yes | foo.sh

However, this is really not a good idea. First of all, in most cases, there is no timeout. You don't need to rush to the computer, it will wait for you. Computers tend to be quite patient beasts. More importantly, you rarely want to just blindly accept anything you are told to. It is a good idea to make up your own mind and that's why you're being asked.

In any case, the choice is yours. If you are sure you want to blindly answer "yes" to all questions, just use yes.


Why does my wine application not display in the dash properly?

Thanks to Jacob Johan Edwards, I noticed that the path to the .desktop file also contained "sid meier's" in the name. The apostrophe symbol apparently makes the parser unhappy and mangled the entry as a result. I just renamed the install directory and renamed the .desktop entry in ~/.local/share/applications. Thanks so much for the help.


It is basically a compiz feature, so as long as you dont switch to the "no effects" session (with Metacity as WM) you should be fine.

This has information on configuring it:

How to emulate Windows window snapping/grid shortcuts?


CryptoSLAX with Qualcomm Atheros Killer E2200

There are currently no linux drivers for the Bigfoot Networks onboard Ethernet (Killer Series).

I take it you have a Gigabyte G1 board, probably LGA1366?

I have a G1.Guerrilla that I tried to use before.

It will not work.

Head on over to your local computer shop and pick up a cheap PCI ethernet card.

That's the only option you have.


How to recover data from a damaged external drive?

you need 3 things:

clonezilla http://clonezilla.org/

extundelete available n the repo

and a good drive.

use clonezilla to do a sector by sect clone of the drive. this will copy all that can be copied to the new drive.

run extundelete on the new drive.

see what data you have recovered.


How to config Trackpoint + Synaptics touchpad only enable clicks on Linux (Ubuntu)

Well, this is not the direct answer, but a suggestion and examples.
If you run xinput, you will get list of your devices. Then run xinput list-props $id where $id is your touchpad id in the list.

You will have a list of options like this:

$ xinput list-props 13
Device 'SynPS/2 Synaptics TouchPad':
    Device Enabled (135):   1
    Coordinate Transformation Matrix (137): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (268): 1
    Device Accel Constant Deceleration (269):   2.500000
    Device Accel Adaptive Deceleration (270):   1.000000
    Device Accel Velocity Scaling (271):    12.500000
    Synaptics Edges (292):  1765, 5371, 1637, 4453
    Synaptics Finger (293): 25, 30, 0
    Synaptics Tap Time (294):   180
    Synaptics Tap Move (295):   234
    Synaptics Tap Durations (296):  180, 180, 100
    Synaptics ClickPad (297):   1
    [...]

You can change all of these on-the-fly with xinput set-prop $id $propId $value where $id is the device id, $propId is property id in brackets and $value is what you want it to be. For example:

xinput set-prop 13 135 0 sets Device Enabled (135) to 0 and this will disable the touchpad.

You will need descriptions of properties and a way to make your changes permanent.
Descriptions can be found in man synaptics, but wait, they are in another cryptic format! Let's see why.

To make changes permanent, you need to create conf file in /etc/X11/xorg.conf.d, for example 30-tochpad.conf with contents like these:

    Section "InputClass"  # you can read more in `man xorg`
            Identifier "all touchpads"  # just a name for this config
            MatchIsTouchpad "on"  # enables this config for all detected touchpads
            Driver "synaptics"  # enables synaptics-specific options below

            # This will disable the device
            #Option "Ignore" "1"

            # There are options that are generic for input-devices or mouse-like devices, see `man evdev`:
            Option "ButtonMapping" "0 0 0 0 0 0 0"  # i disabled all buttons here, for example

            # Here go options from `man synaptics`
            Option "VertTwoFingerScroll" "1"
            Option "HorizTwoFingerScroll" "1"
            Option "PalmDetect" "1"
            Option "ClickPad" "0"
            # ...etc...
    EndSection

So, man synaptics describes options for xorg.conf and tells how they correspond to xinput list-props output.

PS. I tried to configure trackpoint on my ThinkPad X220 to have only two-fingers-scroll enabled, without clicks or mouse movement. I failed. Maybe you will manage to do what you want (there was an option to disable everything but clicks, maybe Synaptics Off).

Sources, more examples and unicorns:

https://wiki.ubuntu.com/X/Config/Input

https://wiki.archlinux.org/index.php/Touchpad_Synaptics


Gnuplot will no longer make dashed lines after upgrading to Ubuntu 16

In 5th version gnuplot dash pattern is separate variable (dt) llike, e.g., linewidth (lw). I didn't find html version of (new) gnuplot documentation. But you can check pdf version (see page 37).

Bottom line is:

    solid line: plot f(x) dt 1
    dashed v1 line: plot f(x) dt 2
    dashed v2 line: plot f(x) dt 3

and so one ...


In your testing command:

sudo rtcwake -u -s 120 -m mem

the -u causes that rtcwake assumes, that your Computers clock (in BIOS) is set to UTC time. However, when you test for a relative time (120 seconds in this case) it does not really matter at what time the clock is set, so it works anyhow.

The script which is executed by cron uses the -l option, causing rtcwake to assume that your computers clock is set to local time.

In either case, you should be consistent, in which option you use and you should check your actual BIOS settings. To test rtcwake with an absolute time use the -t option:

sudo rtcwake -m mem -l -t $(date +%s -d ‘today 19:45’)

where I assumed that your computers clock is set to local time.

Cheers


The easiest way to solve this issue is to save the LibreOffice Impress file in its native ODP extension, on your Linux system. After you do that, access your Windows system, download and install the LibreOffice suite for Windows 7, then run it in order to open your ODP file on Windows 7.

An alternative to this - in case you don't need to edit the presentation file on Windows - is to use your Linux's LibreOffice Impress to export the presentation as a PDF file, so you can then open it and switch it to "presentation mode", which is nice if you want to use it e.g. on a business meeting.

Concerning tables, pictures, polygons and other objects present in LibreOffice files (drawings, texts, presentations et cetera), there are known long-term issues that occur while LibreOffice converts to the Microsoft Office format (DOC, DOCX, PPT, PPTX, XLS, XLSX et cetera) files that contain such objects. Thus, it's wise to avoid attempting such conversions. Not even iWork (Apple's office suite) succeeds 100% when it tries to open (or convert) Microsoft Office files.

PS: also notice that although PPTX is a "XML PPT" and thus it uses an open source format, traditionally Open Office and its forks (LibreOffice included) deal better with PPT files than with PPTX files. Thus, you should definitely give the PPT extension a try.


Is there a way to use gmail call phone functionality with empathy/pidgin

There was once an Adobe AIR-based desktop client for Google Voice available, but it is discontinued. There are instructions here for how to add it to Empathy, but it requires a gizmo5 account, which has since been acquired and discontinued by Google. In short, I don't think it is currently possible, with Empathy or any other client.


System changing display configuration on its own account - from dual monitor to mirror

I should create a script that replaces your xorg.conf file after every reboot.  Go into the /etc/ directory, and do the following:

sudo cp ./xorg.conf ./xorg.conf_boot
sudo nano ./script.sh

This is the content of the script to enter in nano:

!#/bin/bash
cp /etc/xorg.conf_boot /etc/xorg.conf

Then use Ctrl+O to save and Ctrl+X to exit nano and then do the following:

sudo chmod +x ./script.sh
sudo mv ./script.sh /etc/init.d
update-rc.d script.sh defaults

I had to check out the way they do the inittab now, and I'm assuming that the thing edits the xorg.conf.


How do I add the "contains: ..." data to an mp3 file?

I decided to not use gmediaserver. I found mediatomb and I haven't had any issues with it so far. All my music was found no problem.


Kdenlive color picker / dropper selects interface instead of video

Solved my Droplet picker problem! Ubuntu 18.04.1/AMD FX with Radeon video. The color picker was only showing grey or black  in Kdenlive chroma key.

I updated to an appimage, ./kdenlive-18.12.1b-x86_64.appimage, and the droplet color picker was still not functioning.

Solved it by:

Select color key box (blue default), which opens Select color dialogue.
Then select Pick screen color tab.
Finally select your chroma color.

And Eureka! A nice clean key.


The Ubuntu App Showdown -Specific software

I'd very much encourage you to submit your app!

In terms of describing your app, it is really up to you how you spread the word about it, but here are a couple of suggestions:

When you're submitting the application to MyApps, add the information to the feedback form for the reviewers.
Write a blog post about your app, and submit it to the Ubuntu App Showdown reddit.

I'd personally recommend the second, as it's going to give much more visibility to your app.


Broken bootloader after shrinking Ubuntu for Windows 10

I fixed the issue. It took a bit of trial and error but I will try to detail the steps I took to fix it.

First things first, I used a windows 10 installation disk. I booted into it, instead of installing I went to troubleshoot > advanced settings > command prompt. I issued the following commands:

bootrec /fixMbr
bootrec /fixboot

I then restarted and found that it didn't load Grub and that it went straght to the winload.exe missing screen. I'm sure this step was unneccesary and I could have just continued the following commands:

bootrec /scanos
bootrec /rebuildbcd

After those commands were issued and I reset, I was able to boot into my Windows partition successfully, and could see that I successfully raised the size of the partition from 70gb to 140gb. The next step is to re-install grub from a Ubuntu LiveUSB.

I used Boot-Repair to fix grub. I used the graphical method and all the default options and it worked flawlessly.

gksudo Boot-Repair

Hope that helps anybody with a similar issue.


Failure in FFMPEG compilation on Ubuntu 16.04 - ‘AOM_ERROR_RESILIENT_PARTITIONS’ undeclared here (not in a function)

Thanks to @Gyan. It seems that the issue is fixed now (http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=b69ea742ab23ad74b2ae2772764743642212a139).


Copy folders (not one file) using SSH ubuntu?

You can use secure copy (scp) with the recursive option (-r):

scp -r /path/to/local/dir user@remotehost:/path/to/remote/dir

Alternatively, I recommend rsync because you can resume transfers if the connection breaks, and it intelligently transfers only the differences between files:

rsync -avz -e 'ssh' /path/to/local/dir user@remotehost:/path/to/remote/dir

Note that in both cases you should be careful of trailing slashes: moving /path/to/local/dir to remotehost:/path/to/remote/dir/ results in /path/to/remote/dir/dir


Cannot use del key to delete files on desktop in 20.04

Unfortunately desktop icons are completely broken, which is quite unexpected in a LTS release of ubuntu.

You just cannot use keyboard on desktop icons (I'm not kidding).

This has been reported here: https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons/+bug/1868924

The workaround is described here: https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons/+bug/1868924/comments/4

remove gnome-desktop-icons
install nemo
make nemo handle desktop icons


youtube-dl: Select the best format but exclude DASH

-f '(bestvideo+bestaudio/best)[protocol^=http]' only includes formats that are downloadable by http(s).

Source: https://github.com/ytdl-org/youtube-dl#format-selection-examples


Problem with installation. Atleast 5.9gb free space required

Before running the Ubuntu installer, first combine all the free spaces into one. From the combined space create a new ext4 partition.(You have to do this all through gparted partition editor)

Now run the Ubuntu installer and install Ubuntu on newly created ext4 partition by choosing something else option.


You're confusing filesystem UUIDs with partition GUIDs. The former are stored within the filesystems and can be used in Linux's /etc/fstab file or by the mount command via the UUID= parameter. (Despite the "UUID" name, they aren't always true UUIDs. FAT doesn't use UUIDs, for instance, so for FAT, the serial number is used instead of a UUID.) These UUIDs should be unique for any given filesystem, although cloned filesystems might have duplicated UUIDs.

Partition GUIDs, by contrast, are available only on GPT disks. There are actually two GUIDs associated with a partition:

A type code GUID, which is what the C12A7328-F81F-11D2-BA4B-00A0C93EC93B figure is. That particular GUID identifies an EFI System Partition (ESP). This is equivalent to the one-byte partition type codes of an MBR disk.
A partition's unique GUID, which, like a filesystem UUID, should be unique to any particular partition. The EFI uses this GUID internally, and some versions of Linux utilities enable you to use it much like a filesystem UUID, but using the PARTUUID= label rather than UUID=.


Why does Ubuntu keep so many versions of linux-header/linux-image installed?

Ubuntu keeps older kernels installed to let you boot Ubuntu with an older kernel in case the new kernel generates problems when starting the system. When you want to get rid of older kernels, you can remove them manually.

Here you find some more information and instructions on how to do this -> Remove Old Kernels


Use Spacebar! That's the way to select in ncurses :)


According to the fdisk output, your partition table type is MBR. (Called “dos” by fdisk as it was introduced in PC DOS.)

Disklabel type: dos

As guiverc noted, you have exhausted the limit of 4 partitions in the MBR.

IMPORTANT NOTE: Take a backup of the whole disk (e.g. using Clonezilla) before doing any partition changes. It’s easy to do a mistake resulting in data loss when messing around with partitioning.

There are a few basic options on how to proceed:

Move data from one of the existing partition to another, then remove it in Windows. It should be available for the Ubuntu installer then.

To do so, boot Windows and move all files and folders (using Windows Explorer or Total Commander, for example) from the partition to be deleted, e.g. from the F: drive to D: drive.
Then press ❖ Win+R and open diskmgmt.msc. Select the partition to be deleted and run Delete Volume… from the context menu.

If there is no regular partition to remove, you can also get rid of the Recovery partition or System Reserved partition.
The most complicated option: After moving the data and removing the partition, you can create an extended partition (which has own MBR with another 4 records available) and put the original partition back as a logical one. Then you can install Ubuntu into the rest of the extended partition.
Convert your MBR to GPT.

in Windows – preferable in your case
in Ubuntu


Sony WHX1000 M3 won't connect to Ubuntu 20.04 with VMODA BOOM PRO microphone inserted into the headphone jack

You can't connect in BT while hooked with an AUX cable in the XM-series, so everything needs to go through the AUX cable


trouble while installing KWin window manager

I just had the same problem, and found that i was missing /usr/bin/startkde.

Fixed it with: sudo apt-get install kde-workspace-bin


Do not have the Unity 3D option at login

Ubuntu is Unity 3D and Ubuntu 2D is Unity 2D. What do you get if you use the Ubuntu option?


Please help me install working Nvidia drivers

Thank you all for your kind replies.

Apparently there is a bug that affects some users. After much Googling, I found the solution to my problem, which was in a comment on this bug report:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/1768050

This might only affect 18.04, but if anyone stumbles accross this, see the bug report please.


Aapche2 server under Ubuntu 16.04 stop working after upgrade from 14.04

Could you share the command you ran to generate the CSR? What did you enter for the "Common Name?

reference : link


No more Diskspace after disk change, mdadm / Raid6

Ahh, your array is using the old 0.9 format metadata, which tops out at 2 TiB per drive.  You will need to upgrade to 1.x for larger drives.  You may be able to do this by stopping the array, zeroing out the superblocks, and recreating the array, taking care to use exactly the same drive order, and the chunk size, specify --metadata=1.0, and --assume-clean, then do a read only fsck to make sure you got it right and your data is intact before trying to mount it.  Make sure you have an up to date backup first though ( you are making regular backups right? ).


On my system it was due to a broken upgrade,
Open the terminal with  crtl-alt-t and run sudo dpkg --configure -a let it run until it stops; and then update with sudo apt update && sudo apt upgrade and reboot (sudo reboot if you can't use the gui to do that).
My cursor was back again.
dpkg with the --configure -a flags set will tell dkpg to configure any packages that have been unpacked but not configured.
apt update checks available repositories for any available upgrades, and apt upgrade tells apt to upgrade any packages that need it.


According to The Ubuntu Wiki,

Open the Software & Updates Setting in System Settings.
Select the Updates tab.
Set the Notify me of a new Ubuntu version dropdown menu to For any new version if you are using 15.10, or set it to long-term support versions if you are using 14.04 LTS.
Press Alt+F2 and type in update-manager into the command box. Software Updater should open up and tell you: New distribution release '16.04 LTS' is available.
Click Upgrade and follow the on-screen instructions.

UPDATE: The release notes says that upgrade from 14.04 will only be available on the 16.04.1 release in about 3 months.


Is canonical reconsidereing support for android apps on ubuntu touch?

This is what Richard Collins, head of Ubuntu mobile products, has to say on this issue -

  Q. Since Android is also Linux-based, is there any plan for Ubuntu to
  run Android apps?

  A. Many Android developers already use Ubuntu as their desktop OS and
  we have a very close affinity with them. We intend to encourage them
  to make their Android applications run on Ubuntu, but we won't
  engineer any middleware for running Android apps. Developers are
  intelligent and capable enough to make their apps run on our devices.

You can read his complete interview at Engadget.


How can I flush the DNS on Ubuntu 17.04?

You may use this command: sudo systemd-resolve --flush-caches

To verify that flush was sucessfull, use:
sudo systemd-resolve --statistics

Sample output:

Cache
  Current Cache Size: 0
          Cache Hits: 101
        Cache Misses: 256


I would do this...

sudo rm samba.conf    - remove the file

sudo touch samba.conf - make the file (empty)

sudo nano samba.conf  - edit the file

heres a default ..

[global]
    ; General server settings
    netbios name = YOUR_HOSTNAME
    server string =
    workgroup = YOUR_WORKGROUP
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

    passdb backend = tdbsam
    security = user
    null passwords = true
    username map = /etc/samba/smbusers
    name resolve order = hosts wins bcast

    wins support = yes

    printing = CUPS
    printcap name = CUPS

    syslog = 1
    syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
    ;valid users = %S
    ;create mode = 0600
    ;directory mode = 0755
    ;browseable = no
    ;read only = no
    ;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
    ;path = /var/lib/samba/netlogon
    ;admin users = Administrator
    ;valid users = %U
    ;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
    ;path = /var/lib/samba/profiles
    ;valid users = %U
    ;create mode = 0600
    ;directory mode = 0700
    ;writeable = yes
    ;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
    path = /var/lib/samba/printers
    browseable = yes
    guest ok = yes
    read only = yes
    write list = root
    create mask = 0664
    directory mask = 0775

[printers]
    path = /tmp
    printable = yes
    guest ok = yes
    browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

[MyFiles]
    path = /media/samba/
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = YOUR_USERNAME
    force group = YOUR_USERGROUP


How I get Cinnamon sound applet source code

This is the link to the Sound Applet GitHub page: GitHub


Keyboard not working chromebook unity 14.04

Lots of trial and error but the following worked:

sudo sh -e ~/Downloads/crouton -r trusty -t unity-desktop -u

must have reinstalled the bits the command above broke


I know when I have reinstalled fglrx I have usually done what you have done
but slightly differently as I have usually had to go back to the open source versions for a while.

I found this guide to be really helpful

Ati Ubuntu Wiki

However this worked for me last time and got rid of pretty much all of the ati/fglrx stuff left on my pc

sudo /usr/share/ati/fglrx-uninstall.sh  # (if it exists)

sudo apt-get remove --purge fglrx*

As a further measure I also check what else is left

dpkg -l '*fglrx*'

and

locate fglrx

I also make sure I have a correct set of open source drviers installed

sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg

I then rebuild the the proprietary fglrx/Catalyst driver to be installable through the Restricted Hardware Driver Manager (a.k.a. jockey)

 sudo apt-get install fglrx-modaliases

After these have all been completed I reboot and now the open source drviers are working AND xserver-xorg has bene rebuilt I reinstall fglrx

sudo apt-get install fglrx

That seemed to do the trick last time.

Let us know how you get on


This should be governed by the org.freedesktop.accounts.change-own-user-data Polkit action:

  description: Change your own user data
  message: Authentication is required to change your own user data
  defaults:

  allow_active: yes
  allow_any: no
  allow_inactive: no

You can set it by creating a .pkla file in /etc/polkit-1/localauthority/50-local.d/ (say /etc/polkit-1/localauthority/50-local.d/99-nochangedetails.pkla) containing:

[Disable account detail change]
Identity=*
Action=org.freedesktop.accounts.change-own-user-data
ResultAny=no
ResultActive=no
ResultInactive=no

A related action, org.freedesktop.accounts.user-administration has been overriden by implementation-specific ones (org.gnome.controlcenter.user-accounts.administration and com.canonical.controlcenter.user-accounts.administration), so it is possible this one has been overriden as well. However, I couldn't find anything similar to change-own-user-data in org.gnome.controlcenter.user-accounts or com.canonical.controlcenter.user-accounts.


Wired ethernet not getting detected in 10.04

According to HP, the 8200 Elite SFF has an Intel network controller. Normally this shouldn't be a problem in Ubuntu, but it might be in 10.04. I'm going to need a little more information so I can see what's happening.

Open a Terminal window (CTRL+ALT+T or Applications > Accessories > Terminal) and execute the following command:

lspci -nn

Or don't, because I totally just realized you probably don't have Internet access on that machine. The relevant line from lspci is the one containing "Ethernet controller".

Do the same for this command, if there is any output.

dmesg | grep e100


Could you please try to remove the current access-point by changing to the directory. Using a terminal

Open a terminal (CTRL+ALT+T) & type below command in a sequence;

cd /etc/NetworkManager/system-connections      # locate all the stored network profiles
ls                                             # list down the network profiles
sudo rm you_access_point_name                  # removes the specified profile

Restart your network manager with;

sudo service network-manager restart

Try connecting to the WiFi once restarted.

Hope it helps!


Do I need to install g++ to compile c++ files in Ubuntu 14.04.1?

You will need something that can compile C++ files. The two main compilers in Linux are GCC and Clang. GCC is the default compiler in Ubuntu.

GCC isn't installed by default because not everyone needs to compile a file. GCC is typically only used by developers. However, you can easily install it by installing the build-essential package, which is a metapackage that installs gcc (for compiling C files), g++ (for compiling C++ files), and the C library headers.


network simulator 3 (NS3) problem on ubuntu 12.10

Lots of the openmpi packages are mutually exclusive. You can't just install them all, like that.

Also, note that ns3 wasn't build with MPI support, in Ubuntu. So installing these won't help.


Unfortunately this is not possible at all. Additionally, if using the last.fm client with Unity you may experiences some oddities.

The last.fm client is open source and con be downloaded by running svn checkout svn://svn.audioscrobbler.net/clientside/Last.fm in a terminal window.

Whether or not "the community" is wokring on addressing this depends on whether anyone is interested in addressing it. So, either encourage someone you know to work on it, grab the code yourself and work on it, or raise this issue on the last.fm support forum.


Can't delete a file with a '?' in the file name

Does the file really have a ? in the filename, or is it a non-printing character that ls shows as a ??

$ touch $'a\ab' 'a?b'
$ ls
a?b  a?b

One file has an ASCII BELL character in the name, and the other has a plain old question mark.

Newer versions of ls can show it special characters in a clearer form by default:

$ touch $'b\aa'
$ ls
'b'$'\a''a'

ls -q is how older versions of ls show non-printing characters by default. So, if you just do ls in any current version of Ubuntu, you're likely to see just question marks.

Try, instead, one of:

$ ls -b
a?b  a\ab
$ printf "%q\n" *
a\?b
$'a\ab'

If the output from either of these don't have question marks, then the filename doesn't have question marks.

You can use the output of printf for deleting:

rm a\?b
rm $'a\ab'

Or rely on tab completion:

$ rm a<tab>
a?b   a^Gb

If it shows ^G, then press CtrlV then CtrlG to enter it. Or tell bash to cycle through tab completions:

$ bind tab:menu-complete
$ rm a<tab>
$ rm a\?b<tab>
$ rm a^Gb

In either case, using rm a?b could work, but is dangerous. It would match all filenames starting with a, ending in b and having one character in between:

$ touch acb; printf "%q\n" a?b
a\?b
$'a\ab'
acb

So, if you do rm a?b (or worse, rm a*b), you could end up deleting files you didn't intend to.


Forcing hardware acceleration through MPV worked, didn't need to sign the keys or anything. Still uses 20% (4K 60FPS)CPU on all cores but it's better than 45% on all of them (720P 24 FPS)