Problem installing Spotify on LXDE - E: Unable to locate package spotify-client

If you are running a 32-bit system, you may be out of luck. If you have a look at the Spotify repository, you'll see the following files:

spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb
spotify-client-gnome-support_0.9.17.1.g9b85d43.7-1_all.deb
spotify-client-qt_0.9.17.1.g9b85d43.7-1_all.deb
spotify-client_0.9.17.1.g9b85d43.7-1_amd64.deb

As you see, the package spotify-client only exists for the amd64 architecture, i.e. 64-bit CPUs and systems.

The other two packages are packaged architecture-independently, but they will not provide you with the spotify client. They are transitional packages, which do not provide the Spotify client, as one can see from the package description:

Description: Transitional package for spotify-client
 This transitional package is provided for a smooth transition from the previous
 spotify-client-gnome-support package.  It may safely be removed after installation.

To be able to use the spotify-client package and the binaries in it, you need at least a 64-bit kernel, but it may be easier to install the complete system as 64-bit. If your CPU doesn't support 64-bit, you are out of luck...

If you really want to go through the procedure of making your system 64-bit compatible, you'll find various instructions on the internet. I will, however, not provide one here, because I don't want to be responsible if you run in trouble.


You can inject multi-touch (and other input) events into the X11 server using the XTest extension.

You can inject various input events into the kernel using the evdev interface.

Neither is pretty and closer to a hardware than to an OS-level API.


Why does 'apt-get source' fail with 'Permission denied' errors?

You are asking apt-get to download the sources of the kernel and copy them inside your /boot directory. /boot is not world-writable, hence you are getting these errors:

Could not open file ... - open (13: Permission denied)

Just run apt-get source in an another directory, e.g. your home directory:

$ cd
$ apt-get source linux-image-$(uname -r)

Never place useless files outside your home directory. Using sudo apt-get source will surely do what you want, however your /boot directory will be polluted with useless files and directories. This is a really bad practice.


"Authentication is required to check power state for...." after login from encrypted user

I highly doubt that the encrypted home directory is the culprit since I am also greeted by these happy little password boxes any time I switch TTY's or VT's without having any encryption on my home directory. If I cancel them, nothing really happens except the indicator-sensors package becomes a stale application with sensor readings from before I cancelled the pop-ups.

Do you by any chance have the package indicator-sensors installed on your system? You can verify it is, or is not, by typing dpkg -s indicator-sensors in a terminal window.

A possible workaround for this problem is to add the user to a group that has the rights to read the power state. - I have yet to figure out which group this is though, and if it's even advisable.

Edit:

I have tracked down the issue to the udisks2 package. A quick search led me to this forum. I do not advise to pull this guy/gal's trick on your own machine though. There has to be a cleaner way.

Edit 2:

I found this Debian bug report, but this is regarding the "latest" (Thu, 22 Jan 2015) unstable build. This ArchWiki article might hold a fix, but polkit is not standard on *buntu systems. *Buntu systems do have policykit-1, so it might work with some adjustments.

I also found this Debian forum thread, which seems to be talking about the same issue.

Edit 3:

Here is an example of a polkit group called "storage". However, this is for VoidLinux. *Buntu does have /etc/polkit-1/ but it does not contain a rules.d directory.

All signs point to adding the user to the right group. On Arch systems this group is named "storage", but *buntu does not have this group (on my system). You can check if you have this group by typing cut -d: -f1 /etc/group | grep storage in a terminal window. I did find a group called "disk" but I would advise against adding yourself to thathttp://askubuntu.com/posts/678230 group.

  The disk device nodes are group accessible to disk so that programs that need access to them will set their group ID to be disk. This group has write access to all the raw disk devices (/dev/hd* and /dev/sd*), so assigning users to group disk is both dangerous and a security risk.

Edit 4:

After fiddling around a little, I think I found the solution. You indeed need to create a new group that has authority to mount and read disks. This is done like so:

cd /usr/share/polkit-1/actions/ #this is where your policies are stored
ls -la | grep org.freedesktop #find the correct policy. Should be udisks2.policy
<your-text-editor-here> <policy-file>

Now you can edit the policy file accordingly. Since I did not have the exact same problem, I cannot post my fix. But here's what I found while applying my fix:

<action id="org.freedesktop.udisks2.ata-check-power">
    <description>Check power state</description>
    <message>Authentication is required to check the power state</message>
    <defaults>
        <allow_any>auth_admin</allow_any>
        <allow_inactive>auth_admin</allow_inactive>
        <allow_active>yes</allow_active>
    </defaults>
</action>

Based on your problem description I would suggest fiddling with this section until the pop-ups stop showing up.


xubuntu 15.10 and 16.04 can't show my wallpaper at login screen

I had a relatively similar problem.

FIRST: Make sure that in LightDM settings, you have checked "User Wallpaper if available"

Then, SECOND:
In my case, I think the problem was that I had encrypted my home folder (in which I had stored the custom wallpaper I wanted to be used as both the desktop wallpaper and the login-screen wallpaper.

Obivously, the problem with this setup was that the home folder (and hence the wallpaper to be used) was encrypted, and couldn't be accessed by the system.

The workaround (for me) was to open a file manager as root, and copy the wallpaper to the folder where the default system wallpapers are stored
(for Xubuntu 16.04, it's /usr/share/xfce4/backdrops/).

I hope this helps solving your problem as well!


Installed Ubuntu in UEFI, but it runs on BIOS

Thanks to @MichaelBay for providing this link:

How to change ubuntu install from legacy to uefi

The answer there by Rod Smith solved the issue.
Ubuntu is now UEFI and now I can proceed to installing Windows.


It boots fast because people have worked very hard toward that goal over the past couple of years since Ubuntu 8.10. Some of the major factors (over pre-10.04 Ubuntu):

Moving the boot process over to an event model (Upstart) so that things both load in parallel and when they're needed. It's a genius system.
X (the graphical desktop to most people) is now loaded very early on. By getting it ready faster, you can show the user something much quicker.
Removing deadwood from initramfs (the image that is loaded by grub to boot the system)
Various caching mechanisms have come and gone including sreadahead and ureadahead. These work by generating a binary block of files your system uses at boot so that can be read off the hard disk in one go.

Comparing 8.10 and 10.10, you probably only see a sixth of the boot time now. It's a very impressive improvement... But that doesn't really explain why it's faster than other systems.

For that I think I can only really say they're heavier and aren't as good at booting service in parallel.


How to set up a RTC clock in Ubuntu Core?

I know this is kind of a delayed response, but I figured I'd share my solution. It seems that you can "recreate" the hwclock service and get the desired result, as follows:

In order to unmask a service, the corresponding definition file needs to be present in /etc/systemd/system. Luckily, in Ubuntu Core this directory is mapped to /writable/system-data/etc/systemd/system - so in that writable directory you can create a file called hwclock.service with the following contents (tweaked if desired):

[Unit]
Description=Hardware clock synchronization
[Service]
Type=oneshot
ExecStart=/sbin/hwclock --hctosys --utc --adjfile=/writable/system-data/etc/adjtime
ExecStop=/sbin/hwclock --systohc --utc --adjfile=/writable/system-data/etc/adjtime
[Install]
WantedBy=multi-user.target

Then you can unmask and enable the service as normal:

sudo systemctl unmask hwclock
sudo systemctl enable hwclock


Wireless card not recognized? Broadcomm 4311, Compaq laptop

Ubuntu is quite capable of running this hardware wirelessly. Remarkably, the live USB, DVD and indeed Broadcom themselves offer to install the wrong driver for this device. Getting it corrected running the live USB is a bit tricky.

I suggest you reboot the device. Ignore the offer to install Additional Drivers; in this case, Wrong Drivers. Get a temporary internet connection by whatever means possible and open a terminal and do:

sudo purge bcmwl-kernel-source  <---if it isn't installed, just continue
sudo modprobe -r b43
sudo modprobe -r ssb

Check:

lsmod | grep -e b43 -e ssb

Did all the wireless drivers unload? Please continue:

sudo apt-get update
sudo apt-get install firmware-b43-installer
sudo modprobe b43

Detach the ethernet. The wireless should now be working perfectly.


How to install ubuntu 12.10 with / partition on LVM?

I figured it out myself:

I just tried again. The way I did it is first using gparted to create my partition scheme, and after that, I use the ubuntu installer and appoint the partitions I want to a specific mount points. Since this is exactly the way I did it the first time around, I don't know what made the installer change it's mind.

Important side-note: If you already have some version of Grub installed, and do not have the default windows MBR, the grub installer apparently does not detect your windows and thus it won't create a boot menu entry for it. So first restore your windows MBR. And eventually, don't forget to choose the right device (in my case a /dev/mapper/isw...Volume0) to write the mbr to.


cd/downloads is wrong. It is cd ~/Downloads to go (from anywhere) to the Downloads directory inside your "home". Mind the space after cd, mind the ~ in front of the / and mind the capital d.

cd is the command and needs a space at the end of it (otherwise it would assume it is another command).

The "~" is used to indicate the current users home directory (ie. `/home/$USER).

Linux is case-sensitive so "downloads" and "Downloads" are 2 different things. Your ls shows

drwxr-xr-x 3 larry larry   4096 Oct 31 12:14 Downloads

and not

drwxr-xr-x 3 larry larry   4096 Oct 31 12:14 downloads


No events in the Today scope on Ubuntu Phone

Sounds like you are affected by this bug: https://bugs.launchpad.net/ubuntu/+source/syncevolution/+bug/1438662

Basically, even with google account connected, the calendar app is not able to sync with google due to an issue with syncevolution. Events on the Today scope behave the same way.
A fix has been provided (it has been reported as working for vivid version) and is supposed to land via hot-fix the next week for BQ phones.


Failed to download repository information on Xubuntu 12.04 64-bit

The 404 error means that the page no longer exists: http://en.wikipedia.org/wiki/HTTP_404

Indeed, Medibuntu is no longer maintained: http://www.medibuntu.org/repository.php
You should remove that PPA.

To remove it, use this solution: How do I remove a PPA added via command-line?


Toshiba L745 Brightness Problem, Fn Keys doesn't works

It's a known bug. You can view it here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/543294
Well someone posted a workaroudn like this:

1. Open a terminal (Program - Accessories - Terminal)
2. Type in "sudo gedit /etc/default/grub" (without the "")
3. Find the line that says: GRUB_CMDLINE_LINUX="quiet splash"
4. Edit it so it says: GRUB_CMDLINE_LINUX="quiet splash acpi_backlight=vendor"
5. Save and exit
6. Run the command "sudo update-grub" (again without quotes of course)
7. Reboot and enjoy!

and yeah, it worked for me


How to maximize the life of a pendrive which has a full installation of Ubuntu MATE 18.04 on it

To increase the lifespan of your USB stick, minimising the number of read/writes in various ways:
Disable Swap
Swapping is the process of using part of the USB stick as volatile memory. This will increase the amount of RAM available, but it will result in a high number of read/writes. It is unlikely to increase performance significantly.
Disable swap with the swapoff command:
sudo swapoff --all

Ref.: How to permanently disable swap file?
Disabling Journaling on the Filesystem
Using a journaling filesystem such as ext3 or ext4 WITHOUT a journal is an option to decrease read/writes. The obvious drawback of using a filesystem with journaling disabled is data loss as a result of an ungraceful dismount (i.e. post power failure, kernel lockup, etc.).
You can disable journaling on ext4 on an unmounted drive like this:
umount /dev/sdaX
tune4fs -O ^has_journal /dev/sdaX
e4fsck –f /dev/sdaX
sudo reboot

Check if journaling is disabled for the filesystem and the partition is mounted:
dmesg | grep EXT4

Ref.: https://foxutech.com/how-to-disable-enable-journaling/
The noatime Mount Flag
Assign the noatime mount flag to partitions residing on the USB stick by adding it to the options section of the partition in /etc/fstab.
Ref.: https://www.howtoforge.com/reducing-disk-io-by-mounting-partitions-with-noatime
Directories in RAM
Highly used directories such as /var/tmp/ and possibly /var/log can be relocated to RAM in /etc/fstab like this:
tmpfs /var/tmp tmpfs nodev,nosuid,size=50M 0 0

This will allow /var/tmp to use 50MB of RAM as disk space. The only issue with doing this is that any drives mounted in RAM will not persist past a reboot. Thus if you mount /var/log and your system encounters an error that causes it to reboot, you will not be able to find out why.
Directories in external Hard Disk
You can also mount some directories on a persistent USB hard disk.


It is in the initrd.img. On /scripts/local-top/cryptroot.


About uninstallation of Ubuntu to allow dual-boot

All of the Windows XP, Windows 7 and Ubuntu installation procedures allow you to format your hard disk. It's usually easiest to install Windows first, leaving a partition available for Ubuntu, then install Ubuntu making sure to overwrite the boot sector with GRUB (the Grand Unified Boot Loader). This will allow you to 'dual-boot' and use both OSs.


Unable to find or create trash directory on ext4 drive

I have two Ubuntu systems installed in different disks of one machine.
I encountered the same problem when deleting files on another disk and I solved it by a method similar to https://askubuntu.com/a/262827/582507

First, confirm that your normal user is ID "1000":

$ id

Then go to the mount point i.e. the root directory of the other disk.

$ cd /media/username/root_of_the_disk
$ sudo mkdir -p .Trash-1000/{expunged,files,info}
$ sudo chown -R $USER .Trash-1000

Done.


I cannot load Ubuntu in ACER 10 because i an very new in this community and i need help in about ubuntu.

This means you are trying to run a 64-bit version of Ubuntu while your computer only supports the 32-bit version. You should get the 32-bit Intel / x86 / i686 / i386 version (several terms for the same thing…).

Since the version to download is chosen by the architecture of the computer where you are downloading it, you may rather want to choose the image manually at http://releases.ubuntu.com/.

As JonasCz mentioned already, you should consider choosing a lighter edition of *ubuntu. For example, Xubuntu is my favorite. There are more, like Ubuntu MATE, Ubuntu GNOME or Lubuntu which is considered to be the lightest one.


Run sudo apt-get install -f and sudo dpkg --configure -a in a terminal. Restart/reboot may be necessary.

If you received any errors after running both commands, post them as a comment in this answer.


Ubuntu 20.04. overclocks intel i7-9700k automatically?

when busy
When you ran your "expensive computation" There are several reasons why your CPU's might not get to 4.9 GHz, but rather only get to ~4.5 Ghz. One likely reason, particularly if your application is multi-threaded is the typical max frequency reduction as a function of how many cores are active. Example (i7-2600K), excerpt from turbostat:
cpu1: MSR_TURBO_RATIO_LIMIT: 0x23242526
35 * 100.0 = 3500.0 MHz max turbo 4 active cores
36 * 100.0 = 3600.0 MHz max turbo 3 active cores
37 * 100.0 = 3700.0 MHz max turbo 2 active cores
38 * 100.0 = 3800.0 MHz max turbo 1 active cores

Typically is is highly unusual to see this (i5-9600K, but this is not the default for the processor, I did it in BIOS):
cpu3: MSR_TURBO_RATIO_LIMIT: 0x2b2b2e2e2e2e2e2e
43 * 100.0 = 4300.0 MHz max turbo 8 active cores  <<< I don't have 8 cores
43 * 100.0 = 4300.0 MHz max turbo 7 active cores  <<< I don't have 7 cores
46 * 100.0 = 4600.0 MHz max turbo 6 active cores
46 * 100.0 = 4600.0 MHz max turbo 5 active cores
46 * 100.0 = 4600.0 MHz max turbo 4 active cores
46 * 100.0 = 4600.0 MHz max turbo 3 active cores
46 * 100.0 = 4600.0 MHz max turbo 2 active cores
46 * 100.0 = 4600.0 MHz max turbo 1 active cores

Other reasons include your power bias settings, I/O waits, power or thermal throttling (you mentioned thermal is not the issue, but just saying). If you want the most you can get use performance governor instead of the powersave governor. While many recommend higher level tools, I use primitives:
doug@s18:~/c$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
powersave
powersave
powersave
powersave
powersave
powersave
doug@s18:~/c$ echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
doug@s18:~/c$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
performance
performance
performance
performance
performance

when idle
When one samples the CPUs at such a high rate, 10 times per second, often the command itself has an effect on the system resulting in a bias in what is observed. Keep in mind that idle CPUs can go into very deep idle states for several seconds at a time, and wakeing them at a high rate just to sample the frequency is not a good idea, yet extremely common among users. If you want to know what is going on with your system, then I would suggest tubostat for two reasons: It is a really good tool; It is also the preferred tool for upstream escalations. But please sample slowly. Example (mostly, I find summary information good enough, but you can drill down into a lot of information. I left the HWP related lines from the initial spew of information):
$ sudo turbostat --Summary --show Busy%,Bzy_MHz,PkgTmp,PkgWatt,GFXWatt,IRQ --interval 6
...
CPUID(6): APERF, TURBO, DTS, PTM, HWP, HWPnotify, HWPwindow, HWPepp, No-HWPpkg, EPB
...
cpu0: MSR_PM_ENABLE: 0x00000001 (HWP)
cpu0: MSR_HWP_CAPABILITIES: 0x0109252e (high 46 guar 37 eff 9 low 1)
cpu0: MSR_HWP_REQUEST: 0x8000ff01 (min 1 max 255 des 0 epp 0x80 window 0x0 pkg 0x0)
cpu0: MSR_HWP_INTERRUPT: 0x00000001 (EN_Guaranteed_Perf_Change, Dis_Excursion_Min)
...
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt
0.03    956     262     31      1.82    0.00
0.03    800     122     31      1.85    0.00  <<< Notice the busy % and low CPU freq.
0.03    800     131     32      1.86    0.00
0.03    800     166     31      1.86    0.00
0.03    800     140     31      1.86    0.00
0.03    800     128     31      1.83    0.00
0.03    800     128     31      1.78    0.00
0.02    800     99      31      1.75    0.00
0.03    800     139     31      1.78    0.00
0.02    800     108     31      1.58    0.00
0.03    800     144     31      1.66    0.00
0.03    800     121     31      1.72    0.00

Now, just because in your case you are seeing much higher CPU frequencies, it doesn't mean your power consumption is much, if any, higher. If the frequency is higher the CPU also finishes its work faster, and it goes back to sleep sooner and for longer. Example:
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt
0.02    800     100     31      1.90    0.00  <<< notice slightly different baseline than above (different kernel today)
0.02    800     93      31      1.90    0.00
0.03    800     130     31      1.90    0.00
0.05    800     208     31      1.90    0.00
0.04    800     169     31      1.90    0.00
0.05    1069    199     31      1.91    0.00
0.06    1904    285     31      1.94    0.00
0.00    4548    98      31      1.93    0.00
0.00    4600    89      32      1.93    0.00
0.01    4545    129     32      1.93    0.00 <<< Cost was about 0.03 watts.
0.00    4601    109     31      1.93    0.00
0.01    4559    140     31      1.94    0.00


How to start/configure pulseaudio remotely with ssh?

I seem to have resolved the problem by running

pax11publish -r

Now, xprop -root | grep PULSE shows:

PULSE_SERVER(STRING) = "{9899a0f46bdae6bbc8e6e8b200000005}unix:/home/user1/.pulse/9899a0f46bdae6bbc8e6e8b200000005-runtime/native"

Apparently pulseaudio --check should normally go to the command prompt.  Apparently this indicates it is running.


Completely disable mnemonics systemwide in Ubuntu 16.04

It may not be very easy, but start by redefining any keyboard combination exposed in the Settings - Keyboard dialog to nothing, or at least directly to the binding you would prefer. Other definitions of keybindings will be stored in dconf-editor, and in the case of Ubuntu 16.04 in Compiz-config-settings (which, however, may also be in dconf), so looking there you should be able to find most if not all of the bindings you want to change.


It is exactly the same hardware. You easily can install Ubuntu on it.

Ubuntu 15.10 comes with a lot of fixes (and kernel 4.2) and will work even better than Ubuntu 14.04.

If you are interested - I have written a full step-by-step guide on how to install Ubuntu 15.10 on this laptop and get everything working properly.


wlan0 interface informations available in linux

You can run:
ifconfig wlan0 for information like ip, mac, packets and bytes transmitted
iwconfig wlan0 for transmission speed, link quality, signal level, etc.


Is there a way to install Windows after Ubuntu BUT AVOID overwriting grub?

The short answer is no. Windows is not designed to co-exist, it creates it's own boot record in the MBR by default, since it couldn't boot, otherwise. Here is an alternate solution, install Windows on it's own hard drive with no other hard drives attached. If you wish, you can do the same for Linux. Then, once that is done, reconnect your drives, and you can boot either one using your PC's bios boot menu, or just update your grub configuration. You need to make sure that the Windows drive is the first physical device though, since that is what it expects, and if it's out of order Windows may not boot. I've used this solution when desiring a dual boot computer where the operating systems are not "aware" of each other. Of course, Ubuntu will detect the Windows drive, but there is no need to mount it if it's not required.


It was a configuration file issue. We are creating chef scripts to do deploys, and had used OpCode's mysql package, which did some very odd things that messed up Mysql on the machine that we had no expected, setting some configuration values to things that just didn't work.

If using chef, I advise to use the package available though apt-get

package "mysql-server" do
  action :install
end
package "mysql-client" do
  action :install
end

Then change the password through the code provided by OpCode, or changing it after the server install.

This was on Rackspace with Ubuntu 12.04 Server.


If you really need to save these files, you will have to move (i.e copy, and delete originals) them to a different media. Thy appear too large to save on a DVD, so either a tape drive or a large memory stick.
OTOH the files look by their names like installation file, including sources. Why save them? Rather delete them and find a way to backup your currens working system (my personal choice is Remastersys)

Also look for a program call Bleachbit, which help clear away unused file: temporary downloads, old logs etc.

Try sudo apt-get clean to delete old update kits (not the updates themselves, just the downloded kits)

If you run Thunderbird, compact your folders, or whatever works on your email/nntp reader

And the easy & dumb solution: Buy disk space...


Read-only file system error for mounted media

The volume is mounted read only, as it appears. It is not possible to know the details from a distance, but likely, your HD is formatted in the ntfs file system, the file system of MS Windows. That file system may be inconsistent at this time. In such case, Ubuntu won't mount it, or perhaps may mount it read-only.

Close down Ubuntu, start up Windows. Using the disk utilities of Windows, check and repair the file system on the disk concerned.

Then shut down Windows fully, i.e., no hibernate. This is to make sure that Windows fully closes the disk. If after this, the file system is consistent, Ubuntu will mount the drive with read and write permissions.


How does the Linux bridge works when a tap interface is connected

The answer to this question is simple. The tap interface will not receive traffic if nothing is attached to it. It shows up with ifconfig but nothing will come out of it if no program is attached to it.


How can I get rid of Ubuntu disk encryption bugs?

This is a common issue (bug report), the kernel driver  module is not loaded as it is on the encripted drive, so you need to add it to the appropriate file.

Boot Ubuntu using the ps/2 keyboard

Open a terminal window, and run

sudo nano /etc/initramfs-tools/modules

Add ohci_pci on a new line at the bottom of the file.

If you’re using an Apple keyboard, you’ll probably need to add hid_apple and mac_hid.

If you’re using a Microsoft keyboard, you’ll need to add hid_microsoft

If you’re using a Logitech keyboard hid_logitech and hid_logitech_dj

Once you’ve added all of the required modules, press ctrl+X to save and close the file.

Back in the terminal window, run

sudo update-initramfs -u

Now reboot and your wireless keyboard should work.


matlab R2015a in Linux: Can't copy paste with conventional way

MATLAB has a preferences setting for keyboard shortcuts: it defaults to Emacs-compatible settings on Unix/Linux platforms, but you can change it to Windows-compatible settings Ctrl+C and Ctrl+V using the preferences menu:


sudo nano /etc/hostname

Set the name to what you'd like to use

My hostname file.

sudo nano /etc/hosts

My hosts file. (ignore the sub domains, they are not needed for you, this is my development machine)

127.0.1.1

There is likely other stuff in the hosts file, like 127.0.0.1 localhost Just leave the rest alone.

sudo hostname

should not error out.


No AptX HD over BT even after installing pulseaudio-modules-bt

I just tried to use the ppa myself on 20.04. However, note that the packages in the ppa are outdated, the latest Ubuntu version is Disco. When trying with "disco" in repository sources, I can install but cannot connect to the BT headphones (the switch in the connection dialog is immediately reset), which works with the default pulseaudio-module-bluetooth.
I also get the same dump output as you, nothing else.

I suppose an incompatibility with the outdated ppa packages. I will compile from git one of these days,
https://github.com/EHfive/pulseaudio-modules-bt


Encrypted swap partition does not show up in /dev/mapper

You have a problem with your /etc/crypttab file that's causing eveything to go south, and a problem with your swap partition.

First off, you need to mkswap the partition that you want to use for your encrypted swap file. The cryptdisk utility expects your partition to be swap, so you should keep it as such:

sudo mkswap /dev/sda4

Now, note that this will change the partition's UUID. Get the new one with the following command, and make note of it:

sudo blkid /dev/sda4

Now, we need to deal with the larger problem at hand: your /etc/crypttab file. Replace it with the following:

# <target name>  <source device>        <key file>     <options>
cryptswap        UUID=<Your new UUID>   /dev/urandom   swap,offset=1024

Reboot the system, and you should have a working swap!

You have your cryptswap set up currently to recreate the entire partition as an encrypted swap. This is Not Good™, because we need to preserve the UUID. By offsetting the swap by 1024 blocks, we preserve the critical filesystem info, including the UUID.


USB Mouse not working after installing Ubuntu 16.04 - Persistent Fix?

Not answer, just information.

Fedora user has same problem.
https://bugzilla.redhat.com/show_bug.cgi?id=1277837

In above url, developer suggest to try to stop fwupd
by setting EnableOptionROM=false in /etc/fwupd.conf.

Or prevent to start gnome-software by removing
"/etc/xdg/autostart/gnome-software-service.desktop".


Ubuntu login loop 14.04 after update and message repeatingly printing to terminal

So, I found an old Ubuntu Rescue Remix DVD and booted from it.  Then I rebooted and this time booted from the hard disk to get back to the login screen.  On pressing ctrl+alt+F1, I was delighted to see the normal login prompt again and not that message constantly printing out in the terminal. Afterwards, I decided to follow Cuzschek's suggestion in this post:

login loop: systemd-udevd[713]: failed to execute '/bin/systemctl start --no-block nvidia-persistenced.service': No such file or directory

I ran sudo apt-get install nvidia-current, then sudo reboot and was able to log back into Ubuntu.


growisofs fails with unable to O_EXCL /dev/scd0: someone was in time to remount?

This can happen if your /etc/fstab has the following line for your cdrom:

/dev/cdrom /media/cdrom auto rw,noauto,user,exec 0 0

Change it to

/dev/cdrom /media/cdrom iso9660 rw,noauto,user,exec 0 0

, reboot and try if it still happens.

Source


Having trouble installing ubuntu alongside windows 10

Check your BIOS or UEFI settings. Sometimes a UEFI is out of date and needs to be updated. Or you could use the legacy BIOS setting. The problem is somewhere in your BIOS or UEFI settings.

See the other post on this similar issue Dual boot Ubuntu (14.04) with Windows 10


How can I encrypt data in cloud storage services like Dropbox?

Yes it is possible. The best way to archive this with a per file encryption is with encfs:

The general principle is that you have a (optionally hidden) encrypted folder inside UbuntuOne/Dropbox where your files are stored, but you access them though another folder, where the decrypted files are shown. Any File you add to the decrypted folder will be encrypted and put into the encrypted folder:

Decrypted folder ←encfs→ Encrypted Folder (inside UbuntuOne/Dropbox)

On another computer the encrypted folder is synced by UbuntuOne/Dropbox and can also be decrypted on the fly.

Installation:

Install encfs version 1.7 or greater

sudo apt-get install encfs

install gnome-encfs-manager:

sudo add-apt-repository ppa:gencfsm/ppa
sudo apt-get update && sudo apt-get install gnome-encfs-manager

Setting up the Drive on the first computer:

Create a (hidden) directory inside Dropbox/Ubuntu One to use as for the encrypted files
Start gnome-encfs-manager and set up a new stash (click on the plus sign)
Set the directory to encrypt to a (hidden) folder inside your Dropbox/Ubuntu one folder
Set the mount directory wherever you want (default is fine)
enter a good password (30 random chars...) and click "Create"
edit the new stash so it is mounted on startup and the password is saved in the gnome keyring

You should now have your encrypted drive mounted (it will be displayed like a mounted usb-drive)

Importing the drive on other computers:

Wait for all files to sync
Start gnome-encfs-manager and set up a new stash
Set the directory to the previously created folder inside your Dropbox/Ubuntu
encfs-manager will detect the drive and import it
Set the mount directory wherever you want (default is fine) and click "Import"
edit the new stash as desdribed above
you will be asked for your password on first mount

Cross Platform compatibility:

This is cross compatible with Android when using Encdroid (open source, recommended) or Cryptonite (open source). Both Android Apps support Dropbox and should also work with UbuntuOne using local folder decryption (in combination with an UbuntuOne client which syncs your files onto the SD Card)
This is probably also compatible with windows using encfs4win or other software.


How to fix "libpng12.so.0: cannot open shared object file: No such file or directory"?

According to https://github.com/tcoopman/image-webpack-loader/issues/95, you can use:

wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb \
  && dpkg -i /tmp/libpng12.deb \
  && rm /tmp/libpng12.deb


When the hard disk of Ubuntu is mounted on the motherboard, the hard disk of Windows 10 does not appear

All the users of MSI gaming laptops that has an extra slot for optional SSD be CAREFUL.
MSI in the description of my product (GP63 Leopard 8RE) was only writing "PCI-E Gen.3 SSD (optional)". As I didn't pay that much attention I bought an NVMe Gen 3x4 which wasn't working correctly with my laptop. In fact it was working but my other SSD was disappearing.
After a lot of research and communications with MSI (I want to thank them very much for their help!) I found that the solution was way too simple. Instead of buying an NVMe Gen 3x4, I should have bought an NVMe Gen 3x2.


You may want to try sudo maas-import-pxe-files (for Ubuntu 12.04, 13.10 and 14.04)

You may also want to verify that you do have outside internet. Try to ping an outside server, e.g., ping www.yahoo.com or any one else you wish.


Cron jobs are disabled on clean installation of 14.04

We encounter the same problem with one VPS server which is hosted at a provider using OpenVZ (https://openvz.org). Another server with fresh 14.04 install (hosted elsewhere) has all cron jobs enabled.

My best guess is that it is a try of the provider to save some system resources.


Application BitTorrent Not Appearing After Installation

The executable is not actually named bittorrent:

andrew@corinth:~$ dpkg -L bittorrent | grep /bin
/usr/bin
/usr/bin/btlaunchmanycurses.bittorrent
/usr/bin/btlaunchmany.bittorrent
/usr/bin/btshowmetainfo.bittorrent
/usr/bin/btdownloadheadless.bittorrent
/usr/bin/btrename.bittorrent
/usr/bin/btdownloadcurses.bittorrent
/usr/bin/btreannounce.bittorrent
/usr/bin/bttrack.bittorrent
/usr/bin/btmakemetafile.bittorrent
/usr/bin/btcompletedir.bittorrent
andrew@corinth:~$

I see you are a Synaptic user so right click on the bittorrent green light and select Properties --> Installed Files and you will see the same in a gui:

The confusion is completely understandable though! If you are unsure of which particular executable to use perhaps try running something simple like:

btdownloadcurses http://releases.ubuntu.com/15.10/ubuntu-15.10-desktop-amd64.iso.torrent

This shows a very 'old school' torrenting window that is perhaps exactly what you are after:


I had exactly the same problem.  Here's how to solve it. Open a terminal and type:

sudo add-apt-repository ppa:raof/aubergine
sudo apt-get update
sudo apt-get upgrade

...and when the update/upgrade is complete, reboot your system and VOILA! The mouse (including left-click) works.


Wine / PlayOnLinux dependency issues when trying to install

So I went ahead and installed playonlinux despite all dependency issues. Turns out that it was no problem reinstalling all the packages afterwards. I still don't quite understand why this was necessary in the first place.

The reinstallation command I used, for you convenience:

sudo apt-get install alien cdbs debhelper dh-make dh-translations gettext google-earth-stable intltool intltool-debian lsb-core po-debconf

Edit: This seems to be a pretty common occurence (ex 1, ex 2) on Precise. Here's a bugreport on launchpad.


Intro

First of all for anyone who is having the same issue on Ubuntu 16.04, it is currently an ongoing bug and as of now, to my knowledge, has not been fixed. You can visit the github conversation here to see the bug I am referencing. Secondly I am writing this post as an enthusiast and intermediate linux user, I am not a developer or currently work on linux as a profession. That being said I will provide the info I have found on this issue to the best of my knowledge.

The Issue:

The hot spare functionality built into the zfsonlinux package currently does not work as stated in the man page. zpool man page:

Hot Spares
   ZFS allows devices to be associated with pools as "hot spares".
   These devices are not actively used in the pool, but when an active
   device fails, it is automatically replaced by a hot spare.

Note: Cold spare (a spare not replaced automatically) functionality is working but only in configurations consisting of mirrors or any of the raidz's. If you have a configuration like the fallowing:

NAME      STATE     READ WRITE CKSUM
pool      ONLINE       0     0     0
  sdb     ONLINE       0     0     0
  sdc     ONLINE       0     0     0
spares
  sdd     AVAIL

Upon the failure of a drive you will be unable to replace it with the spare due to the pool I/O is currently suspended error.

Attempted Solutions:

This is a list of attempted solutions I have gone through and the results is got:

ZFS auto replace: It turns out that according to the zpool man page and my understanding of it, the autoreplace functionality is not to replace a damaged drive with the spare but rather to replace the damaged drive itself with any new device found at its location. zpool man page:

If set to "on", any new device, found in the same physical location
as a device that previously belonged to the pool, is automatically
formatted and replaced.

autoreplace is good to have on, but to achieve the functionality of a hot spare I don't believe it is needed. Im not able to confirm this other than through the man page because i was unable to get the spare to work.
ZED.rc: I later found from within the conversation on github that the ZED_SPARE_ON_CHECKSUM_ERRORS and ZED_SPARE_ON_IO_ERRORS flags needed to be set within the zed.rc. As @user121391 said in his answer to this post, the zed service/daemon is what determines the status of the pool and what is required to be done based on that status. You can see zed.d at work by running zpool events. After setting the flags, rebooting and, reconfiguring a new pool just in case, my testing of the hot spare came up negative again.
ZED.d scripts: In @Michael Kjörling's comment he mentioned some scripts packaged with ZED that are written to help with the hot spare scenario. I did indeed find the scripts located in /etc/zfs/zed.d. You can view these scripts on the github page here. From my understanding of zed.d, when an event is triggered the ZED daemon runs one of these scripts based on its status. That being said I did try to run the io-spare.sh and checksum-spare.sh manually and judging by the time they took to execute as well as the unchanged status of the pool, they didn't seem to be running correctly. Maybe this is a potential source to the issue.

My Plans

For Ubuntu 16.04 users of ZFS, to my knowledge there currently seems to be no fix to this issue. I plan to continue to use ZFS with the configuration of a mirrored or raidz(RAID5) depending the the performance i get in testing.(mirrored will be faster but I want to see the speed of raidz) A hot spare would increase the redundancy of both these configs but unfortunately we will have to wait until further development of the zfsonlinux project.  v


If you want to compile dnsmasq on your own you should install development headers for the libraries it links to, plus gettext for the internationalization (i18n). On ubuntu, it would be these packages:

gettext
libdbus-1-dev
libidn11-dev
libnetfilter-conntrack-dev
nettle-dev

In general, you have a file name such as libnetfilter_conntrack.h and you want to know which package provides that file you can use the web site https://packages.ubuntu.com/ and then use 'search for the contents of packages', it will take you to https://packages.ubuntu.com/search?searchon=contents&keywords=libnetfilter_conntrack.h&mode=exactfilename&suite=bionic&arch=any and tell you the package you search for is called libnetfilter-conntrack-dev.

So now, if you modify dnsmasqs src/config.h like this:

--- a/src/config.h
+++ b/src/config.h
@@ -175,10 +175,10 @@ RESOLVFILE

 */

 /* #define HAVE_LUASCRIPT */
-/* #define HAVE_DBUS */
-/* #define HAVE_IDN */
-/* #define HAVE_CONNTRACK */
-/* #define HAVE_DNSSEC */
+#define HAVE_DBUS
+#define HAVE_IDN
+#define HAVE_CONNTRACK
+#define HAVE_DNSSEC

and you use make all-i18n as the make target, you'll get a binary with the same options as stock ubuntu:

$ make all-i18n

$ src/dnsmasq -v
Dnsmasq version 2.77test4-8-g4e7694d  Copyright (c) 2000-2016 Simon Kelley
Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP
conntrack ipset auth DNSSEC loop-detect inotify

And if you want to find out which options or even patches Ubuntu exactly used to compile their binary package, you can use apt-get source dnsmasq to get the sources for the package with the same name.


Non-sudo alternative to /usr/local/bin for common scripts

What are my options? Is there another path with the same "run from
  anywhere" capability, which I can access without sudo, or another way
  to achieve something equivalent?

How to do it?

Create some dir in your home to hold your scripts normally named as bin as convention.

mkdir ~/bin

Now move your scripts to bin

mv somescript ~/bin

Now how to make it tun from everywhere?!

You have to add the bin to the PATH

open your .bashrc

gedit .bashrc

and add this line:

export PATH=$PATH:/home/username/bin

Don't forget to replace username with your User Name

Save and exit, then source the bashrc

source .bashrc

and now you are fine, you can run your script as you used to do! but you have to notice this is related to your user only.

Note: It's better to rename your scripts other than 1 ,2 since you may face some issues with that names

UPDATE:

You can do same just create the bin dir in your home then source ~/.profile instead of ~/.bashrc. Since adding the ~/bin to your PATH is already listed in .profile

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi


Ubuntu 12.10 is slow and some programs gose to non-respond state

Have you tried installing Gnome Shell or KDE Plasma?  Unity runs like a dog for me on 12.10 (ran fine on 12.04) but the other desktops ran fine.  I'm leaning towards Gnome Shell at the moment.


MTP support on Ubuntu 12.04 using Ubuntu 14.04 repositories

14.04 has native MTP support

Correct. As of 13.04 to be exact. From the release notes:
gvfs (1.15.2-0ubuntu1) raring; urgency=low

  * debian/watch: Look for development releases, too.
  * New upstream release:
    - Add new MTP backend. In particular this can access Android 4.0 devices
      which do not support the USB Mass Storage interface any more.
      (LP: #903422)

Now I think if it is possible to have MTP support on Ubuntu 12.04.5 32-bit using the repositories of the latest Ubuntu

During 13.04 there was an upgrade path for 12.10 and 12.04. webupd8.org had a article on it. This was the way to get it into 12.04 but it might not work anymore ...

Upgrade Gvfs in Ubuntu 12.10 and 12.04 to get Android 4.0 support for devices which don't support USB Mass Storage interface
The packages in this PPA may be unstable. Use the PPA at your own risk! There are instructions on how to revert the changes at the bottom of the post.

To add the Gvfs (and libmtp) PPA created by the Gvfs MTP backend developer in Ubuntu 12.04 or 12.10, use the following commands:

    sudo add-apt-repository ppa:langdalepl/gvfs-mtp
    sudo apt-get update

Then, launch Software Updater (previously known as Update Manager) and install the available updates.

Might be worth an attempt.

Or should I just install Ubuntu 14.04 instead?

Yes, if there is nothing else holding you back that is I would myself have it upgraded to 14.04. There is an upgrade path for 12.04->14.04. This should be the easiest method: https://askubuntu.com/a/12910/15811


How to speed up VirtualBox Ubuntu 14.04 (disable visual effects, ...)

If you don't need compositing/desktop effects, then Xubuntu would be the better option.

It has a nice tool in its Settings menu to turn them off, and quite frankly you won't lose anything by installing Xubuntu if you're only going to use it for web/java development. You'll be using the same apps as you would do in Ubuntu.


How to stop having to enter password twice to unlock the screen?

Try the following in the terminal:

ps aux | grep screensaver

Chances are you've got 2 different screensaver daeomns running at the same time. Like gnome-screensaver and mate-screensaver.

For me, because I only use mate, I ended up uninstalling gnome-screensaver.


Please do:

sudo su
echo ndiswrapper >> /etc/modules
exit

That should make your connection start automatically and hopefully will speed up the connection time too.


Why I can't enable custom systemd service to start uWSGI?

The service file is specified in your config as:

/srv/mysite.com/deploy/uwsgi/mysite.ini

Which doesn't match with:

/srv/mysite.com/deploy/uwsgi/mysite.service


remmina + qemu + linux client == clipboard woes

Disclaimer: this is a workaround, not a solution.

Yesterday the problem was so insanely severe that I decided to finally give up and go fetch the zero-client I have stashed away in the closet. It's an entry-level NUC with an i3/4GB/128GB inside.

The problem is GONE!!!

It seems the problem is only experienced if the host is at the same time also the viewer!

Edit2: HA!!!! I found it: the problem is only occurring on kubuntu hosts! Yesterday I accessed the computer from my home PC running kubuntu 18.04 and the problem was immediately apparent.

Observations for people running into this:

Video driver set to QXL resulted in MASSIVE bandwidth usage - 1Gbit/s and it was still somewhat sluggish. My resolution is 3440x1440. The bandwidth usage was constant regardless of happening on VM screen. Useless on WiFi (433Mbit/s), OK on Gb LAN.
Changed gfx driver to VirtIO and now I'm enjoying smooth sailing. Some minor banding while watching videos, but I'm not using these VMs for videos...
Additional note: when working over WiFi, it's a bit more sluggish, but still quite usable. When working over Gb LAN, it's almost as good as RDP to Windows 10 host is. Client Remmina 1.3.4 in both cases.
One more performance note: performance of VirtIO driver over WAN (20/4 mbit / s) is close to useless. One can see the refreshes and dragging a window on a 2560x1440 display is a 1 FPS slideshow.

So, I could say I'm quite happy now. Wondering if I could use spice for remote access to physical machines as well ;-)


You can uninstall redmine as described in previous answer but it may not remove everything so I would suggest that you first:

sudo apt-get purge redmine*

This will remove all things redmine from your system. Then to give it a bit of a clean up after it has been removed also run this:

sudo apt-get autoclean

Hope it helps! :)


When you run gedit via sudo, it's actually running under the superuser's account. That's why plugins installed in normal gedit (your account) don't show on sudo gedit (running under another account).

Plugins are installed in your current user's .local/share/gedit/plugins/ directory. If you want them to be available globally, you can install them manually in /usr/share/gedit/plugins.

Also, the fact that they look different can potentially also be caused by different settings. I bet you have tweaked the settings under your account, but the superuser's account remains with the default configuration.


Changed root password by sudo passwd root but I can not login with root login

For temporary access, you need to still update the configurations.

In /etc/ssh/sshd_config, there is a line that looks something like this:

#PermitRootLogin prohibit-password

This is the Default which is why it's commented out, meaning you need SSH keys installed/enabled to login to the root account directly.

You can uncomment this and allow root login by changing this to:

PermitRootLogin yes

HOWEVER, this is very dangerous because it allows bots and other attackers to attempt bruteforcing the login.  So if you absolutely must have root login, only enable this for a VERY short time, then set the thing back to either...

PermitRootLOgin prohibit-password

... or ...

PermitRootLogin no

... for security reasons.

If you intend to login to root directly in the future, though, then I strongly suggest you go the key authentication route if you intend to login to root directly, or just use sudo for every command you want to run as root on your standard user, rather than changing the security settings.

(I'm an IT Security guy, this suggestion is kind of mandatory from guys like me.)


How do I make my system to prompt me for Windows and Ubuntu, instead of directly booting to Ubuntu?

It seems your grub menu or bootloader. First boot into Ubuntu OS and then open terminal by pressing Ctrl+Alt+T. Then run sudo update-grub command in terminal. If it doesn't work type sudo nautilus in the terminal and press Enter. From the window that opens, go to /etc/default/grub and change GRUB_HIDDEN_TIMEOUT=0 TO GRUB_HIDDEN_TIMEOUT=10 and GRUB_HIDDEN_TIMEOUT_QUIET=true to GRUB_HIDDEN_TIMEOUT_QUIET=false. Save it. Then run sudo update-grub. On restart you can make the boot menu appear by holding Shift.


How do I move Panel (Not Launcher) icons in Ubuntu Unity?

You can't move the indicators on the panel. The video shows the 11.04 version of Unity which has the Dash button on the left side of the Unity panel (ClassicMenu Indicator just uses the same icon).


Load a Kernel module multiple times in 14.04 LTS?

There is an alternative way for getting multiple bonding interfaces on Ubuntu 14.04.

You need to write an upstart script to manually load the bonding module and configure all the bonding interfaces via sysfs.

Detailed information is posted on my blog.


Not prompted to input the root password when installing mariadb-server on Ubuntu 16.04 LTS

Mariadb package doesn't offer a configuration wizard during installation on Ubuntu 16.04.

Use the below command to have a mysql shell

sudo mysql -uroot


It seems to be a kernel issue where the driver with powersave enabled goes berserk and turns the machine off.

I suggest to isolate the offending device / driver as described in TLP Troubleshooting.


Have the options for icon size changed after it forked from OpenOffice? In Openoffice on my Maverick netbook I can reduce the size under Tools > Options > OpenOffice.org [probably LibreOffice now] > View. It sounds strange that they would remove the feature from LibreOffice.

If it's missing, you should probably file a bug with LibreOffice.


GNOME system-monitor status bar app disappears after standby

This is not a default feature and it seems it is being provided by some GNOME Shell  extension (you can find out by running gsettings get org.gnome.shell enabled-extensions). As per GNOME's security policy all the extensions get disabled at lockscreen/suspend and then get reloaded after the user logs back in. It seems in your case somehow the extension is not getting reloaded.

When you face the issue, restart GNOME Shell by typing Alt+f2, then typing r and pressing Enter (note: this does not work in a Wayland session). This should bring it back.


Nginx returns default html for some users

Your server_name only matches victorywow.com, but www.victorywow.com also resolves to the same server. Since www.victorywow.com isn't matched by this server block's server_name, it's matched by the default configuration, which shows the default nginx landing page.

Use something like:

server_name victorywow.com www.victorywow.com;

It's easy to go to www.victorywow.com instead of victorywow.com: type foo and press CtrlEnter and most browsers will take you to www.foo.com.


I don't think there is a way to change it. You can only disable it according to Gnome Help.


rhythmbox fails to run plugin "plugin loader 'python' was not found"

Currently, Rhythmbox plugins run using python3.
First confirm whether python -V returns version 2 or 3. Here are examples of them:

Python 3.6.9
Python 2.7.17

If you have the 1st case, I don't have a solution for you.
However, if you have the 2nd case (python 2), then you can try the following steps:

Locate the manifest file (You probably can find it like this: ~/.local/share/rhythmbox/plugins/open-folder/*.plugin)
Edit the loader= line to python3. For example:
Loader=python3
Try again

See if that works for you
Part of the source: https://github.com/gmate/gmate/issues/153#issuecomment-735338099


No Wifi with Lubuntu 14.04 on HP Netbook

The dmesg portion of the script results shows that firmware is missing.  If you have a wired connection, in terminal sudo apt-get update && sudo apt-get install firmware-b43-installer
Reboot and wifi should function


You need to burn the iso to a blanck CD/DVD or make a bootable USB, and then boot from this removable media to  install on your PC.

In general you need another PC to perform this action, or you can demand an Ubuntu DVD from some shops and use it.

In this community wiki you can find different methods to perform that.

To make bootable usb using ubuntu: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu

To make bootable USB using Windows:http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows


it does a restart every now and then. I'm using a laptop. the laptop does feel very warm sometimes. so I guess it's probably a temperature issue as you mentioned.


On a fresh installation you can create all types of LibreOffice documents/objects except a Base database (See LibreOffice Base not opening in 14.04).


How can I stop audio from causing a hard lockup?

Ok, I know this isn't exactly as an answer as I still don't know what caused my problem, but it doesn't seem right to simply put this in a comment either as it's quite significant.
A few days after posting this question - after over a week of Ubuntu hard-locking at least once a day - the crashing suddenly stopped, and as of posting this it hasn't happened at all for 7 days (I kept a close record) although I haven't changed my usage of the system or audio. I'm guessing that something broken fixed itself, an overflowing data cache got refreshed, or part of the system was updated resulting in a much lower frequency of audio-related problems.
If someone thinks they know what was going on, please do post an answer as I'll still be checking back on this every so often. In the meantime, I'll wait for a while longer before posting an update on the situation (e.g. whether I start getting crashes again or not).


How do I know the device path to an USB-stick?

First plug in your USB-Stick.
Then type:

lsblk

Your output should look something like this

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465,8G  0 disk
├─sda1   8:1    0  74,5G  0 part /
├─sda2   8:2    0 390,2G  0 part /home
├─sda3   8:3    0     1K  0 part
└─sda5   8:5    0     1G  0 part [SWAP]

Now you can use the size to determine which one is your usb stick . To mount it somewhere in your home folder for example just type:

mkdir ~/UsbStick
sudo mount /dev/PATH_TO_YOUR_STICK ~/UsbStick

obviously replacing PATH_TO_YOUR_STICK with the right /dev/sdX path and ~/UsbStick with the directory you created using the mkdir command


Connected to Access Point but no internet connection?

My instinct says that you should check if you have to configure a proxy in your Ubuntu Browser. Maybe there's a config in your school's network that sends an automatic proxy configuration to your browser, and your ubuntu browser is not receiving it. Check it with the network administrator. If it's not the case...

Try do diagnose your problem following this steps:

1) Connect to the wireless network

2) Check your IP address with "ifconfig"

3) Check if your gateway is set correctly with "route -n"

4) Try to ping your gateway. Is it working?

5) Try to ping an internet IP like google: "ping 74.125.234.115"

6) Try to resolve names with "nslookup www.google.com" for example.

7) Try to traceroute to an IP or name on internet. Check the result to see the last hop you reached.

8) If you passed all those tests, try this: "telnet www.google.com 80"

If everything works, but not the test #8, your problem could be related to some proxy configuration. Please, update your question with any relevant information.

Regards


How can I directly move windows to another viewport, choosing from a list?

Right clicking on title bar gives options for moving to different workspaces. This functionality is already implemented in Unity and has been for some time.


Will I have to install those KDE libraries if I want to run some apps written in QT?

One of the goals of modern releases of Ubuntu, is to bring different environments closer together. For instance, Unity 2D uses Qt, but you won't consider it a non-Ubuntu application. You should choose GTK or Qt by the merits and features of the toolkits. In older versions of Ubuntu, Qt-applications will feel somewhat out of place, but in modern versions, they should blend in nicely.

Indicators, the global menubar, etc, are specifically designed to be used by all kinds of different applications. They will work well with Qt apps, in Unity, KDE, LXDE, XFCE, etc. Except for the scrollbars, Firefox will look right at home in Ubuntu, for instance.


The right command is:

sudo apt-get install gtk2.0


Copy that file into .warzone2100-3.1 (or whatever your version is). It's a hidden folder in your home directory. Then you just have to launch the game. If you can see the intro (an option in the main menu) then it means it worked.

Sources:

readme here: http://sourceforge.net/projects/warzone2100/files/warzone2100/Videos/high-quality-en/
figured that out just now :P


system does not fully support snapd: cannot mount squashfs image using "squashfs - mount failed

I am reposting the answer to make it more visible.
Credit to @user.dz
sudo apt install fuse squashfuse works.


Ubuntu won't boot after booting into Windows 10 once

You will need to run a boot repair from a Windows media disk/USB. When you go into Advanced mode run the repair and reboot.

I've seen Windows for some reason overwrite/corrupt the boot loader. Some instances I have received only the grub menu, or grub screen without one of the options, like loading Ubuntu or Windows. Usually once you repair the boot file it will work going forward.


How do I modify the boot configuration to make it compatible by default?

Using any editor, open /etc/default/grub

sudo nano /etc/default/grub

Find the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Add in your options

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash edd=off noapic"

Save the file and update grub

sudo update-grub


Laptop is booting straight into Windows 10

Set your BIOS back to UEFI booting, for Windows 10.

Make sure Windows still boots.

See Rod Smith's answer here, and use the bcdedit method to fix your problem.


ok, sounds like you might need "bumblebee" https://wiki.ubuntu.com/Bumblebee   also check this link  http://www.nvidia.com/object/unix.html

Either use Nvidia or Nouveau though, not both. With bumblebee you have the choice of switching back and forth between both your gfx cards.  :)
Also for Linux, make sure in the BIOS you have disabled UEFI and secure boot/fast boot. You want it on Legacy.


Seems that you have solution for your hardware here:
No sound on Ubuntu 15.10

  I found the solution (!), create a new file /etc/modprobe.d/intel.conf

  add the following options:

options snd-hda-intel single_cmd=1
options snd-hda-intel probe_mask=1

  reboot....


Installing Ubuntu onto an external HDD without a USB or CD?

The blocking thing is the fact that you don't have/want to use an USB key or CD.

Because after having booted the Live USB/CD, you just install on the external SSD as normal.

You can boot an ISO from grub. So if your bootloader is GRUB 2, you can use the loopback feature to boot an ubuntu ISO.

First, you need the UUID of the filesystem where is the iso. Use sudo blkid output for that.

Then, you add at the end of  /etc/grub.d/40_custom

insmod search_fs_uuid
insmod ntfs
search --no-floppy --set=isopart --fs-uuid xxxxxxxxx
set imgdevpath="/dev/disk/by-uuid/xxxxxxxxxxxx"

menuentry '[loopback]ubuntu-18.10-desktop-amd64' {
    set isofile='/path/to/iso/ubuntu-18.10-desktop-amd64.iso'
    loopback loop ($isopart)$isofile
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile locale=en_US.UTF-8 noprompt noeject
    initrd (loop)/casper/initrd.lz
}

You have to replace xxxxxxx with the correct UUID.

You need to change /path/to/iso with the path to the iso minus the mount point.
Say the fs is mounted at /mnt/foo and the full path is /mnt/foo/bar/ubuntu.iso, then you replace /path/to/iso with /bar.

Then

sudo update-grub

Then you reboot, and choose [loopback]ubuntu-18.10-desktop-amd64 in grub menu, and you are good to go.


I just fixed this annoying issue by installing Pointing Settings from the Software Center.
Or you can run

sudo apt-get install gpointing-device-settings

from the command line.


Brightness options in Ubuntu 12.04 desktop missing

Give this a try

sudo gedit /etc/default/grub

Find the line line

GRUB_CMDLINE_LINUX=""

and change it to

GRUB_CMDLINE_LINUX="acpi_osi=Linux"

Update your GRUB

sudo update-grub

Restart your system . Hope this works with you

I used to have the same problem and trying this half solved the problem , the directions work opposite but the brightness works...kind of workaround


Wifi doesn't detect any networks on 16.04

Have you try adding additional drivers? open up Software & update and choose Additional Drivers from here you should be able to add the necessary divers needed to get your machine connected

If possible try connecting your machine with a wired connection then scan using the method I provided above. I've never use a Mac but I'm guessing it can't be much different connecting to a WiFi connection


Ubuntu 20.04 - Is it possible to prioritize network connection?

Options

ifmetric (ref).

Related:

How prioritize ethernet over wifi in Ubuntu 18.04?
https://superuser.com/questions/331720/how-do-i-set-the-priority-of-network-connections-in-ubuntu


git-upstream-tag = v%(version)s

should be
upstream-tag = v%(version)s

according to gbp.conf(5):

key=value pairs of the command sections reflect the command line options and their settings. For example gbp-buildpackage(1) manualpage contains the  --git-export-dir=diirectory option which can be turned into configuration file setting by dropping the --git prefix with:
      [buildpackage]
      export-dir = directory


Ubuntu Server Roaming Profile for XP pro

Probably it is a question similar to: How to setup samba as a domain controller?

Or

https://help.ubuntu.com/10.04/serverguide/samba-dc.html
http://arnabonweb.wordpress.com/2009/09/21/tutorial-configuring-ubuntu-as-pdc/


Will updating from 12.04 to 14.04 break my power pc installation?

I can confirm that a Lubuntu 14.04 installation on my powerpc G5 worked more or less out of the box, give or take a few things (eg sound). However at first I attempted to install the ubuntu Unity desktop (14.04), and I could not get past the splash screen/login manager. I still had access to a CLI via tty (ctrl-alt-F1 etc) however. In the end as powerpc is not supported for Unity I aborted and went with Lubuntu, and have since successfully upgraded to 16.04.

So my best guess is upgrading to 14.04 may break unity, but not your system. It may also depend on your graphics card; I have an nvidia card and have been struggling with the nouveau driver, and if you have an ATI card you might have better luck. but changing to a lighter Desktop Environment such as LXDE should at least leave you with a usable system, even if graphics are being rendered by your CPU. Then again if Unity was working for you in 12.04, maybe it will work in 14.04.. it might be worth finding out! ;)


The vpn connection fails becuase the vpn service failed to start

apt-get install network-manager-openvpn-gnome
apt-get install network-manager-pptp
apt-get install network-manager-pptp-gnome
apt-get install network-manager-strongswan
apt-get install network-manager-vpnc
apt-get install network-manager-vpnc-gnome
/etc/init.d/network-manager restart


How can I remove bcdedit's GRUB completely?

There are several ways to do what you want:

You can use the same bcdedit command in Windows, but instead of \EFI\ubuntu\grubx64.efi, you can specify \EFI\Microsoft\Boot\bootmgfw.efi.
You can use the EasyUEFI program in Windows to manage the EFI boot entries in a GUI way. This is likely to be less error-prone that bcdedit. Move the Windows entry to the top of the list and/or delete the Ubuntu entry.
You can boot an Ubuntu live disk and use efibootmgr to delete the Ubuntu entry and/or move the Windows entry to the top of the list. Type sudo efibootmgr (or sudo efibootmgr -v to see more details) to see the list of options; then use the -b #### -B option to delete one, or -o ####[,####[,...]] to change the boot order. (#### is a four-digit hexadecimal number associated with a boot entry.) Type man efibootmgr for more documentation on this command.
Many EFIs provide a way to manage boot entries in their own user interfaces. Details vary greatly from one system to another, though.


Netbeans 8.1 uninstall.sh corrupted on Ubuntu 16.04

For Complete removal of Netbeans 8.1 execute the file uninstall.sh. It will be in the location /usr/local/netbeans8.1/

sudo ./uninstall.sh

else try the following:

$ bash ~/netbeans-7.2.1/uninstall.sh

I hope this information helps.


You are doing right. There is no bug other than bug in GUI design - there is an Unlock button in the upper right corner of the User Accounts window, but it is hardly noticeable. Click it and you will be asked for password, and the [+] and [-] keys will be enabled.

You can also add a new user account via command line:

sudo adduser johndoe

It will create a new user as well.


Check if my laptop has built-in microphone

Select System Settings

Click on Sound

Click the Input tab and you should see Internal Microphone


Can I reuse Linux DVDs to install on other computers?

Sure. As long as your DVDs don't die physically from old age, surface scratches or other physical damage, you can use them as often as you want.

Depending on if you used a DVD-R or DVD-RW, the latter could actually be erased and overwritten, but this will not happen unless you explicitly do it. The installer itself only reads from the installation medium.

There are also no license issues or anything similar regarding installing the same copy of Ubuntu (or most other Linux distributions) on multiple machines, as they are free to download and use without registration or fees anyway.

Of course though, keep in mind the release version and support period of the Ubuntu version you have. Regular releases are supported for 9 months after the release date, Long Time Support (LTS) releases for 5 years. You should not use or install releases past their end of life date any more, because it is far better and easier to install the latest release than to upgrade from an old and unsupported installation.


EmojiOne Color font doesn't replace black and white emoji font in Firefox or Chrome

I just tackled this on my machine (running 16.04). I don't like that I had to do this since Firefox 50 suppose to have native emoji support for operating systems that do not have them.

Download the latest version do you desired location (I did to my Downloads folder)
https://github.com/eosrei/emojione-color-font/releases/download/v1.3/EmojiOneColor-SVGinOT-Linux-1.3.tar.gz
Uncompress the file (I use build in zip archiver/unarchiver
Run the install.sh file found once you extract the EmojiOneColor with root privileges via terminal (sudo ./install.sh)

Then test with http://eosrei.github.io/emojione-color-font/full-demo.html


System is shutting down instead of hibernating

Ok, I solved it. The problem seemed to be that I had /home and swap partitions encrypted. I tried to desencrypt the partitions but the problem persisted. So I did this:

Backup my data (home folder in my case)
Fresh install formatting /home and / partition
Install ATI Catalyst 12.4 (not higher because it cause problems)
Everything is working!


How to select one paragraph of text with just one click?

I don't think you can do it in literally one click, but "triple-clicking" works for me every time.

Sometimes, pasting with one click works: press the scroll wheel button ("middle click") to paste the copied text (thanks Sumeet Deshmukh).


For those who find this question again, I have discovered the cause if not the solution.  Our system's Docker configuration was adding rules to the IP tables that in some way interfered with the NIC routing functions.  With that Docker installation removed, the configuration described in the question works as expected!


connect (e.g ssh) with graphical interface to Linux machine

What you look for is a VNC connection. Take a look here! Mainly install a VNC server on the computer at work, and a VNC viewer/client on your Ubuntu machine at home.


Use "locate" under some specific directory?

UPDATE: A note about using locate's regex option vs the shell's filename expansion in relation to locate's args ...

SHELL FILENAME EXPANSION
When you type locate /bin/b* (note there are no quotes), several things happen.

First, shell filename-expansion will expand the special shell pattern charecter * (This is because the * is unprotected, ie. there are no "double-quotes")
This resulting expansion is a list of filenames. which is perhaps very long... This list is passed to locate as many individual commandline args.
locate then tests each of these args against each of the files in its database, and outputs matches.

Take note however, that 'locate' has no concept of the current working directory. It only matches your args against the fully-qualified file-names in its database.
This means that it will match both /bin/bash and /home/user/bin/brackets
You have some degree of control this way, but locate's regex search offers more; as do some other of locate's options.

LOCATE'S REGEX OPTION
When you type locate -r "/bin/b.*" different things happen than do with simple args.. (shell-expanded-args  are just a list of simple args)

The -r option tells locate to treat your arg as a regex pattern.
The quotation marks protect the * from shell filename-expansion. It means that the * and the dot . are now special regex characters
Being regex, you can very easily tell 'locate' to match its database entry in various ways: eg1. locate -r "^/bin/b.*" produces file names beginning with /bin/b ... eg2. locate -r ~/"bin/b.*" produces file names beginning with /home/user/bin/b .. Note that the ~/ is not protected by "quotation-marks" and is therefore subject to shell tilde-expansion which converts ~/ into /home/user/

Summary: "shell filname expansion" is quite different to 'regex'

Now back to the original post:

locate typically lists the entire database to stdout, so to limit it to a particular directory you need to filter it... You can do this via locate's options.

You can use locate's regex capability, rather than just shell-globbing  ...(locate /dir/myfile*  is shell-globbing)...

From info locate: -r,--regex

"... (regex) matches are performed against the whole path name, and so by default a pathname will be matched if any part of it matches the specified regular expression.  The regular expression may use ^ or $ to anchor a match at the beginning or end of a pathname."

note: -i = ignore case
. . . . . -r = regex
. . . . . ~/ will be expanded  by the shell to /home/user (when ~/ is not in quotes)
. . . . . '\ ' (baskslash+space; no quotes) is a literal space (to avoid shell expansion). You can put the string in quotes, but be sure to leave the ~/ outside the quotes: ~/my\ regex or -/"my regex"

eg. locate -ir ~/".*"la\ bella\ vita is the same as locate -ir ~/".*la bella vita" and will search your entire home directory for "La Bella Vita" occurring anywhere.

You can also limit the search to just the file name but using the -b or --basename .. in which case the regex start-of-line ^ applies to only the basename...

I most commonly find myself using locate -bir

PS.. Locate is so fast, that I have never used find ... nor have I used nautilus search (too slow)

With 'locate', if you are looking for something which is newly added, just run sudo updatedb to refresh locate's database... (but if you've newly added it, you probably know where it is :)....


ssh: connect to host port 22: Connection timed out when hostname used

You wanna ssh machine_B from machine_A via hostname, right?
so just put the internal IP of machine_B with a desired name (for calling machine_B) in machine_A
in order to do that, just edit /etc/hosts of machine_A and add something like below:
192.168.222.1 my_lovely_machine_B

now if you type:
ssh user@my_lovely_machine_B

that should work!
BUT if you don't want to bother yourself for hardcoding the internal IP address and make changes everytime (Because IP addresses may change) you can do two things.
First approach: The hard approach but the practical one: you need to run a DNS service such as BIND to get what you want
Second approach: The simple one but not good for every scenario (For you is OK): write a bash script for automation of setting static IP for machine_B and let it run on every startup. in this way you don't need to worry about IP changes and always your machine_B has the same IP.


why is my computer Beeping out of sleep mode

Lenovo S10

One long and two short beeps, and a blank or unreadable LCD.
1. System board.
2. LCD assembly.
3. DIMM.

This seems to be a hardware defect.


How to get grub to boot from a newly encrypted partition

After looking through a bunch of different tutorials, guides, and docs, I solved it. I believe these were the necessary steps to fix:

I started Ubuntu from a Live USB stick, unlocked and mounted sda7, then inside it added an entry in /etc/crypttab for the encrypted partition:

sda7_crypt UUID=8fa9b089-… none luks

Modified my /etc/fstab entry to use the new mapped name instead of the UUID of the drive:

/dev/mapper/sda7_crypt / ext4 errors=remount-ro 0 1

And finally, modified the /etc/default/grub file to add:

GRUB_CMDLINE_LINUX="rd.luks.name=8fa9b089-…=sda7_crypt"

Then I installed grub-customizer on the Live USB, started it, it gave me an error message a button to "change environment" - selected the unlocked sda7 partition, and clicked the checkboxes to mount /boot and /boot/efi.

Then "Save" in grub-customizer, and reboot. Magic!


This link just got my wireless working on a inspiron 1501

http://blog.tech4him.com/2011/09/broadcom-wireless-on-ubuntu-11-04-and-11-10/

Thanks to the author

He uses two commands

sudo apt-get remove bcmwl-kernel-source
sudo apt-get install firmware-b43-installer

dunno what that does exactly I am also a newbie but I would rather be lucky than good !


A solution, The basic steps to take:

Turn off the existing swap space.
Create a new swap partition of the desired size. By merging your to old swap for exemple (any disk management tool)
Reread the partition table.
Configure the partition as swap space.
Add the new partition/etc/fstab.
Turn on swap.


Juju bootstrap failed in running machine configuration

Sorry to hear that you're having difficulty, Kevin. The error message from Juju isn't very helpful:

  Running machine configuration script...

This means that the machine is installing its software via cloud-init. At this stage, there is no output for Juju to interpret.

To learn more about how to fix the situation, you need to access the machine directly. That means using SSH to log in to the machine and monitoring the cloud-init output yourself.

ssh cloud-maas-ff8 # you may need to
cd /var/log
less cloud-init-output.log

That will present you with a large log file that starts something like this:

Cloud-init v. 18.4-0ubuntu1~18.04.1 running 'init-local' at Sun, 19 May 2019 08:11:30 +0000. Up 1.00 seconds.
Cloud-init v. 18.4-0ubuntu1~18.04.1 running 'init' at Sun, 19 May 2019 08:11:33 +0000. Up 4.00 seconds.
...

If your work policies permit it, you should paste your output to paste.ubuntu.com for further help.


The solution to this needn't be any more complex than:

sudo apt-get install libp11-kit-gnome-keyring

for 64 bit machines. Or

sudo apt-get install libp11-kit-gnome-keyring:i386

for 32 bit machines.

At least this is the case in 13.04 and I see no reason why that wouldn't hold true in 12.04/12.10.


To find out the problem, check the logs folder in the active workspace
It is present in [workspace_folder]/.metadata/.log file and post error.

You can clean your workspace and to fix any corrupted configuration file related with workspace. Run the following command from terminal

  eclipse -clean


Is there a command-line tool which returns the colour of the pixel based on screen co-ordinates?

You can use the program grabc. It will turn your mouse pointer in a crosshair and return HTML and RGB values of the selected color.

sudo apt-get install grabc

Downside: it's not possible to do pixel-exact selections due to the crosshair not being thin enough.

You can also create a python script, something like:

#!/usr/bin/python -W ignore::DeprecationWarning
import sys
import gtk

def get_pixel_rgb(x, y):
    pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, 1, 1)
    pixbuf.get_from_drawable(gtk.gdk.get_default_root_window(),
                             gtk.gdk.colormap_get_system(),
                             x, y, 0, 0, 1, 1)
    return pixbuf.get_pixels_array()[0][0]

print get_pixel_rgb(int(sys.argv[1]), int(sys.argv[2]))

make it executable, and run pixel_rgb="$(/path/to/script.py x y)" in your bash script. Of course you'd need to alter the script the way you need it, add some error handling, and such.

PS: I'm not exactly sure you can do anything about the DeprecationWarning, so I turned it off in the first line.


Does any open source I/O benchmarking tool support ramping up IOPS?

fio has an option that discovers the highest IOPS that can be done under a certain latency... From the "I/O latency" section of the fio documentation:

  latency_target=time

  If set, fio will attempt to find the max performance point that the given workload will run at while maintaining a latency below this target. When the unit is omitted, the value is interpreted in microseconds. See latency_window and latency_percentile.

Please see the whole I/O latency section of the fio help as there are a bunch of operations that interact together. You may also find fio's Steady State mode and the separate tool Diskplorer (which itself drives fio) useful. However, I note you've clarified your question and the aforementioned options/tools don't generate latency numbers at a set number of different "max IOPS" points (however Diskplorer does generate latency / IOPS against I/O depth numbers).

Away from fio, you could also look at using the vdbench tool that StorageReview themselves actually seem to be using in that review (despite their page claiming that they use fio) but you'll have to wave goodbye to a libaio like submission - I'm fairly sure vdbench doesn't do platform specific AIO because it is trying to be platform agnostic (so it can only use multiple threads/processes to up the depth).


OpenGL 4.0 is not supported in Linux for Intel graphics adapters yet.

4.1 should be supported by Mesa 11.0, that planned to be released in September 2015.


Change caps-lock to control in virtual console on Ubuntu 17

To turn Caps Lock into an additional Ctrl modifier, which is also effective in tty consoles, open /etc/default/keyboard for editing and set:

XKBOPTIONS=ctrl:nocaps

If you already have XKBOPTIONS set, append ctrl:nocaps to its existing value using a comma for separator, e.g.:

XKBOPTIONS="terminate:ctrl_alt_bksp,ctrl:nocaps"

Should be effective after next reboot or issuing the setupcon command.

The option should be present when running localectl status:

$ localectl status | grep caps
     X11 Options: ctrl:nocaps

And in the X session, another way to verify that it's set is:

$ gsettings get org.gnome.desktop.input-sources xkb-options
['ctrl:nocaps']


Installation Hangs while installing ubuntu 13.04 on preinstalled windows 8

try this website http://www.makeuseof.com/tag/tired-of-windows-8-how-to-dual-boot-windows-ubuntu/ I think you are getting this problem because of BIOS and as I remember you should use UEFI to dual boot win 8(I guess) but following the above mentioned guide the exact problem was solved on my brothers laptop


Where are these certificates coming from?

The certificates are from the package ca-certificates. The files in /etc/ssl/certs are actually symlinks managed by update-ca-certificates.

See How does one remove a certificate authority's certificate from a system? if you want to remove some of them.


Correct way to get a GTX 980 working in Ubuntu 15.10 x64

As per nvidia's website - the matching driver is nvidia-361 for your graphics card. It's the same for my graphics card(mine is GTX 950M)

First uninstall the currently installed NVIDIA drivers.
Boot the computer, when the GRUB menu appears ...

Highlight the Ubuntu menu entry and press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press F10 to boot the Ubuntu operating system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and the password, then execute :

sudo apt-get purge nvidia*
sudo reboot

Now install the latest official stable NVIDIA drivers.
Boot the computer, when the GRUB menu appears ...

Highlight the Ubuntu menu entry and press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press F10 to boot the Ubuntu operating system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and the password, then execute :

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

Note :
Maybe it is explicitly necessary to select the NVIDIA adapter in BIOS.
When you want to use drivers 361, adding the PPA is not necessary.
In this case the terminal commands you have to perform are these :

sudo apt-get update
sudo apt-get install nvidia-361
sudo reboot

Also if you have installed the proprietary drive from nvidia site...better to uninstall it as per the installation instructions. I have the similar kind of laptop and opensource drive is working fine for me.


Can I take a screenshot and directly open it in Gimp?

Quick version

Literally doing what you asked; in one action:

Take a screenshot
Save it in your preferred directory
Opening it with Gimp

The script

#!/bin/bash

picsdir=~/Pictures/out.png
gnome-screenshot -f "$picsdir"
gimp "$picsdir"

How to use

Copy the script into an empty file, save it as take_ashot.sh
Set your preferred directory to save the files in, in the line:

picsdir=~/Pictures/out.png

I'd leave it as it is if your system is English, else you'd need to change the Pictures folder name.
Test-run it by the command:

/bin/bash /path/to/take_ashot.sh

If all works fine, add it to a shortcut: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

/bin/bash /path/to/take_ashot.sh

Note

Since you mentioned not to save the source file in most cases, I made the script overwrite previous files. If you don't want that, we'd need to build in a few renaming- lines.


Did you find a solution for this - I have the exact same issue when using a local HTTP source for Ubuntu 12.04.

If I use

d-i     mirror/http/hostname select dk.archive.ubuntu.com

instead of our own local repository

d-i     mirror/http/hostname select srv-wds-nsb1

d-i     mirror/http/directory   string  /LinuxDist/Ubuntu/12.04_x64_LTS

everything works just fine.


Where can I find Ubuntu's kernel source code?

You can download the source code of ubuntu kernel, using

sudo apt-get install linux-source

A bzip file will be downloaded at /usr/src/ containing the source code.

However, ubuntu codes are taken from the orginal linux kernel which is available for download at http://www.kernel.org/.

To understand the kernel, you must start with basics of operating system.How kernel works, a general idea about subsystem/modules/drivers. Also needed very good knowledge C (specially pointers). Otherwise jumping into code of linux kernel won't help at all.


Sound problem on both Speakers and HeadPhones

Try removing pulseaudio completely and installing alsa.

Check this out

Remove Pulse Audio

sudo apt-get autoremove pulseaudio

Reboot your computer or stop the pulseaudio daemon.

Install alsa-mixer

sudo apt-get install gnome-alsamixer

If you don't get any sound output run

gnome-alsamixer

For more details go to How to Remove PulseAudio & use ALSA in Ubuntu Linux?


How do I mount an external USB CD Drive in Ubuntu 16.04?

If you don't have to do anything special in windows, chances are you won't have to do anything special in Ubuntu. Both Operating Systems have Plug and Play functionality.

Basically just plug in the CD ROM USB drive (comments below speculate it is really CD/DVD optical drive) and see if it works. If it doesn't work, then update your question or post a new one.

There is no "good Linux command" to mount a CD, DVD or Blu-ray. When a disc is inserted you will be given the option to launch an application based on disc content. For typical data operations you will choose to use Nautilus (Ubuntu's file manager / explorer) to navigate the disc for files you want to access.


How do I remove app icons from the top bar in 17.10?

I don't have steam installed, but in VLC I go to Tools -> Preferences and uncheck "Show systray icon".  Then exit and relaunch VLC.  The icon should no longer be there, at least it wasn't in my environment (Ubuntu 17.10).  Check steam for a similar option.


Ubuntu will not normally work on this old computer either way.

Try to install Lubuntu 14.04

Read this regarding PAE

You can't enable PAE, if your CPU does not support it.


Forcing grub menu to external monitor connected to laptop via HDMI/VGA

Here is a bad way to do this, for most, that may just be good for you.
On desktop, open this file as root
gksu gedit  /etc/default/grub

and find this line
GRUB_CMDLINE_LINUX_DEFAULT=...

and add a this to the end
video=LVDS-1:d

my whole line is
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

so I would add it here
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=LVDS-1:d"

Change lvds-1 for you monitors name, if it is different, find it with
xrandr -q

Save and exit, and run the command
sudo update-grub

This will disable the Laptop display for both grub and the desktop and force it to the external display, even if you remove the HDMI cable, the laptop screen will not work. You can remove the change to change it back to using the laptop screen.
I can't test this as I don't have a laptop, but I took it from an question at arch, where the issue was no laptop display after forcing grub to an external monitor.
I don't recommend this for most users who want there laptop to still be portable.


Select try ubuntu before you install
Open gparted
Delete every partition on your hard drive, then click apply changes.
Restart your computer, you will now be able to create partitions


System hangs at startup on the wallpaper with logo

Got the same problem (freeze on the Ubuntu logo before reaching the login screen) on a Dell Vostro 1520 (using a nvidia graphic card).

I "solved" the problem by switching to the previous Nvidia non free driver (173) instead of the recommanded one.  I hope that a fix will come, because my laptop is extreamly slow with that old driver...


Why doesn't AwesomeWM recognize all of my modkey keypresses when using an external keyboard or how can I fix it?

aklmie helped me find the problem and solve it. Everything worked properly with another keyboard so I found I had accidentally enabled the "game mode" option on the G110 by using the slider switch at the top of the keyboard. After sliding it back to off, everything worked.


About 100 times faster method, using stat to get the dates, then date -f - twice to do the math and formatting, with /usr/bin/* (4852 files) as an example:

stat -c %y /usr/bin/* | date -f - "+%F - %u days - 1 days" | date -f -

Output is 4852 lines of various dates, all of which are previous Saturdays.
Slower:  Combining the two date subshells runs in about 33% less
time:

date -r /bin/bash "+%F"  # print this only for reference
date -d "$(date -r /bin/bash "+%F - %u days - 1 days")"

Output:

2017-05-16
Sat May 13 00:00:00 EDT 2017

Benchmark for both, (the 2nd method in a for loop):

$ time -p stat -c %y /usr/bin/* | date -f - "+%F - %u days - 1 days" | \
       date -f - > /dev/null
real 0.19
user 0.14
sys 0.19
$ time -p for f in /usr/bin/* ; do \
       date -d "$(date -r "$f" "+%F - %u days - 1 days")" ; done > /dev/null
real 27.31
user 8.11
sys 14.93


You have 2 options:

You can shrink your last partition roughly in half and install windows on the free space
You can backup any data from your Linux system, install Windows from scratch, install Ubuntu in dual boot mode (I think it is called side-by-side in the installation wizard) and restore your Ubuntu data.

The second option would probably be a bit easier since you will not have to mess around with shrinking an encrypted partition.


In ubuntu Kivy is built from the packages python-kivy, python-kivy-examples.

So install following packages.

sudo apt-get install python-kivy python-kivy-examples debhelper python python-all-dev cython libgl1-mesa-dev libgles2-mesa-dev


Very poor performance drivers for Intel® HD Graphics 4600

Bit old to answer, but AFAIK, the Intel driver's graphics performance is dependent on the version of mesa installed, which in your case seems to be 10.6.0 and also the kernel.

So if you have not done so already, you could update to Ubuntu 16.04 which has an updated graphics and kernel stack (mesa 11.2.0 and linux-4.4).


Maybe your answer HERE

  Mateng is close in that I think you're probably running Bourne Shell.
  But you shouldn't be editing your /etc/passwd file directly. Try using
  the chsh command instead:

  chsh -s /bin/bash The -s flag will make the new shell (Bash in this
  case) your login shell, going forward.


Shell script that checks user activity and sends an email to the user in case of inactivity

As your question is not terribly specific I can only guess at what you mean. If by user activity you mean keyboard or mouse, then this can by implemented in a few different ways. In a bash script you can use the command xprintidle (in the standard repositories). Then, if you have the appropriate email set up, you can use e.g. the mail command to send the email.

Alternatively, after detecting the timeout you can also call e.g. a python script and get it to send and email using standard protocols and you favorite email account e.g. gmail. You can read about that e.g. here For sompleteness sake, I have pasted the code example from that page here:

import smtplib

fromaddr = 'fromuser@gmail.com'
toaddrs  = 'touser@gmail.com'
msg = 'There was a terrible error that occured and I wanted you to know!'

# Credentials (if needed)
username = 'username'
password = 'password'

# The actual mail send
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(username,password)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()

If you want, you can also keep the entire thing in python. The standard recipe is to use the ctypes module to access libX. I have previously tried implementing one of these recipes and (with the exception of sometime having to replace a few of the lib paths) it works really well. I wont paste those code examples here as they are huge and found on several websites e.g. here, if you want more search for "python x idle time" maybe add ubuntu or linux.

If you have more specific questions to one of these approaches let me know and please also elaborate a little more in your question.


Are you using a wired connection to access the internet or using Wi-Fi? Just because your internet connection seems to "work fine" doesn't mean it does.

You might be losing some package which could result in the error you are getting. If you are using Wi-Fi, try again with an ethernet cable. If you're already using a cable, an easy way to determine if you are losing package is to run a ping command and leave it running for a while.

ping google.com

After running this command for a while you'll know if you are losing package. Might be a problem with your internet connection. There isn't enough detail in your questions to help you. Can you post the compete error message?

itSp4x


Raleigh theme on LightDM, Ubuntu desktop, Nautilus window, menus & menu-bars

Install dconf-editor  if you don't have it, and then go to

  org.gnome.settings-daemon.plugins.xsettings

and check "active." One thing I've also noticed when this happens is that the media keys stop working: enable org.gnome.settings-daemon.plugins.media keys. There also might be some more plugins you should enable.


Why was synaptic removed since the USC does not have all the packages?

For what packages do you see a difference between synaptic and software center?

You are confusing two issues: sources and interface for software installation. The availability of the package is determined by the sources used (/etc/apt/sources.list). It is the apt subsystem. Software center and synaptic are just graphical interfaces for that, only that they may to ignore some of the available sources.

Go to software center, Edit-> Software sources and check which sources are enabled.

And yes, there are differences in functionality, just not where you see them (for example, synaptic allows to easily pin a package version). However, all that functionality is still "behind the scenes" in your system, since you can still do the same things with the command line.


How to open .cpp file with notepadqq application?

This should be able to be fixed easily enough through the GUI. No commands or file edits should be needed.

In Nautilus, you can right-click the file and choose "About" (Or something similar) and set .cpp files to open in notepadqq instead of gedit. This should also work if you right-click on the file while on the desktop.

I hope I helped you!


Ubuntu 14.04 Login Loop after installing new GPU

On the logon screen, open tty1 by pressing Ctrl+alt+f1.

Logon with your username and password.

Then run this command:

sudo rm .Xauthority
sudo reboot

Then try logging in. If it works, great!

If not, try purging the Nvidia drivers and them rum the above commands again.


How do I get Software Updater to update?

Just open a terminal and execute the following commands:

sudo apt-get update
sudo apt-get install linux-generic
sudo apt-get dist-upgrade

reboot!

In the future, just run the following commands to update the entire system:

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


Change the list of applications to install in the LiveCD environment?

W.,

as described in your link this is a suggestion.

Using an alternate CD you can instal a minimal system even without window manager and then install only the applications you really need.

Greetings from Switzerland, Michael


Install Ubuntu 16.04 in another partition on HP Laptop with Windows 10?

My Win10 specs say it was installed in UEFI mode. Therefore I disabled Secure Boot, Fast Boot, and enabled Legacy Mode/BIOS compatibility.

Enabling BIOS/CSM/legacy mode on a system you want to dual-boot with Windows installed in EFI/UEFI mode was a mistake. See this page of mine for all the gory details. The short explanation is that enabling BIOS boot support makes it possible to install Ubuntu in BIOS mode, which will then complicate dual-booting with Windows in EFI mode. You want both OSes to be installed in the same mode, and with Windows already installed in EFI mode, that means doing an EFI-mode install of Ubuntu, too. That said, even if you ended up booting your installer in BIOS mode, it should not have hung in the way you describe. OTOH, there are occasional problems with video displays and other hardware that vary with boot mode, so there's a small chance that switching to an EFI-mode boot will fix your problem.

Also, disabling Secure Boot is probably unnecessary. Ubuntu supports Secure Boot and should boot and install with Secure Boot active. Secure Boot provides some protection against pre-boot malware, so it's best to leave it enabled unless you have good reason to think it's actually causing you problems. That said, there are some rare computers with flaky Secure Boot implementations that don't work properly with Ubuntu, so disabling Secure Boot is sometimes necessary. I don't recommend doing so unless you think you're running into Secure Boot problems, and those are usually pretty obvious -- you typically get a message saying that the installer couldn't be booted because of a security violation. That said, disabling Secure Boot is not, by itself, likely to make it harder to install Ubuntu, so this isn't the sort of thing that's likely to have led to the problem you're experiencing.

  When I choose install Ubuntu or try Ubuntu, it loads the splash screen which says Ubuntu, and some dots flashing in order. The system freezes in this screen and i'm forced to hard restart my laptop.

This problem can sometimes be overcome by adding the nomodeset kernel option. You can do this by using one of the options in GRUB menu.

It's also possible that the kernel in the 16.04 release of Ubuntu is lacking hardware support required to boot your computer, particularly if it's a relatively new model. If you're trying to boot 16.04 GA (the version released in April of 2016) or 16.04.1, instead try 16.04.2, which comes with an updated kernel. You might also want to try 17.04, which comes with the most recent kernel of any Ubuntu.

  By the way. I am able to run Ubuntu 16.04 64 bit on a virtual machine inside windows.

This is irrelevant, since it uses virtualized/emulated hardware, not the computer's real hardware. Don't spend more time chasing this distinction, since it would be a dead end.


Speaker doesn't mute when head phone is plugged

Found a workaround to this problem.

I found that the problem is with the kernel version.

Previously, I had version 3.2.0.24 and after upgrade I got 3.2.0.25.

As a workaround, I have to select the previous kernel version in the grub boot menu.