This doesn't seem like it would be possible to me, the reason being that in Windows the menu bars are in the app window and cannot be integrated into the OS. Since Wine just runs the Windows app in a container, the only way I can see to integrate the menus is to actually port the app to Linux and cut out Wine.


There is no parameter to clear the selection and no settings in the Options-menu.

You have to use

Ctrl-T E

Ctrl-T to activate the menu
E, the little e in Cancel pending actions


I have installed and uninstalled Wubi and had no problems with it affecting anything else. Yes it works like a virtual disk and you should have no problems at all. give it a try.


Looks like indicator-session might have crashed/failed to load. Press Alt+F2 and run:

restart unity-panel-service

If that doesn't work, try running:

/usr/lib/x86_64-linux-gnu/indicator-session/indicator-session-service

in a terminal.

Note. The x86_64-linux-gnu part is for Ubuntu 64-bit, if you are using Ubuntu 32-bit you should change it to i386-linux-gnu


How can I map keyboard buttons to my mouse buttons?

Install the package xautomation, we need the command xte

sudo apt-get install xautomation

Install the package x11-utils, we need the command xev

sudo apt-get install x11-utils

Check the code for the two mouse buttons.

Start the command xev in a terminal:

xev

Move the mouse in the new window
Press your extra mouse buttons

In my case, note the output button 8 and button 9:

ButtonRelease event, serial 36, synthetic NO, window 0x2e00001,
    root 0x233, subw 0x0, time 9222464, (94,21), root:(1774,85),
    state 0x10, button 8, same_screen YES

ButtonPress event, serial 36, synthetic NO, window 0x2e00001,
    root 0x233, subw 0x0, time 9223854, (94,21), root:(1774,85),
    state 0x10, button 9, same_screen YES

Edit your xbindkeys configuration, e.g.:

nano ~/.xbindkeysrc

and add the following lines

"xte 'key Home'"
     b:9

"xte 'key End'"
     b:8

Replace b:8 and b:9 with your numbers of xev output

from man xte

key k
      Press and release key k

keydown  k
      Press key k down

keyup k
      Release key k

Kill all kbindkeys processes

killall xbindkeys

Restart xbindkeys with your configuration, eg:

xbindkeys -f ~/.xbindkeysrc


Chromium infected with CloudScout on Ubuntu 14.04

The dpkg/apt package system of ubuntu will ensure that if you purge the chromium-browser package, you will also remove all other packages depending on that.

# kill running instances, remove files
killall -9 chromium-browser
rm ~/.config/chromium/ -rf
# uninstall
sudo apt-get purge chromium-browser
# aaand reinstall
sudo apt-get install chromium-browser

Note that some application launchers still do display launcher Entries & Icons for applications removed, if they only load that list at their startup time.
This isnt an issue, using those buttons will most likely lead to a precise error saying that the application could not be located (any more).
Restart those applications (or, if you dont know how, the system) and it'll go away.

killall classicmenu-indicator && classicmenu-indicator

Anyway, uninstalling the chromium package is probably NOT what you wanted to do. If there is a malicious addon in your chrome, then thats completely user-side and should be fixed withouth system administration tools. If, however, you got a system-wide infection, you cannot easily resolve it that way anyway.


badly formatted heading line in debian package changelog

It looks like this is due to the underscore in the package name itself (my_package). Debian package names can consist of only lower case letters (a-z), digits (0-9), plus (+) and minus (-) signs, and periods (.)

There is a really detailed blog post on blog.packagecloud.io that talks about package names and versions.

http://blog.packagecloud.io/eng/2015/07/14/using-dh-make-to-prepare-debian-packages/#understanding-the-package-name-and-version

And another post on using debuild to build debian packages:

http://blog.packagecloud.io/debian/debuild/packaging/2015/06/08/buildling-deb-packages-with-debuild/


I need a script file for checking (ping) 3 ip address are working or not

Use a while loop with read to get each IP address and then use ping:

#!/bin/bash
while IFS= read -r ip; do
    if ping -q -c2 "$ip" &>/dev/null; then
        echo "$ip is Pingable"
    else
        echo "$i Not Pingable"
    fi
done <"$HOME"/iplist.txt


gray button for saving "editing VPN connection" in network-manager

One solution is to start:

nm-connection-editor

in the terminal. Terminal messages will tell you which entries of the connection are considered as invalid.

Source: https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/990765/comments/27


The command

sudo apt-get upgrade

doesn't install new versions. For a full upgrade you have to run

sudo apt-get dist-upgrade

This command has nothing to do with an upgrade to the next Ubuntu release.


Your SD card is probably partitioned. Run sudo fdisk -l /dev/sdd to see this. If it's partitioned, then replace the device with the partition (e.g, /dev/sdd1) in your mount command.


Ubuntu 16.04 can not be install on unallocated disk

You have your Windows 8.1 installed in Legacy Mode and Legacy Mode does not support more than 4 primary partitions.

More on UEFI vs Legacy

You already have 4 primary partitions created (namely C, E, F & system reserved). Ubuntu installer can't create a fifth primary partition to install Ubuntu on.

You can do any one of the following.

1 : Delete one of your partition (E or F) - Fairly Easy. You definitely know how to do it.

2 : Reinstall Win8.1 in UEFI (if your machine supports UEFI) - Lengthy but better solution.

3 : Convert existing Win8.1 Legacy installation to UEFI without reinstalling - Very complicated and risk of data loss.

Steps for option 3 are very complex and long. Hence I can not include that in this answer. I have given a link which you can follow.

Link - Convert existing Win8.1 Legacy installation to UEFI without reinstalling


The best method you have is chattr +i {file}. This sets the immutable attribute and then a file can not be modified, deleted, renamed or a hardlink created by anyone including root.

The only person that can edit the file is root. (S)he has to undo this by removing the immutable bit: chattr -i {file} and can then do whatever with the file. Setting the +i again locks the file from any modification.

This will not prevent from formatting the partition where the file is stored though. It will prevent theft of the file.

You can even do this on a complete mountpoint if you want:

chattr +i -R /discworld

would make the whole "discworld" and anything in it immutable (chattr -i -R /discworld to undo it ;) )

man chattr


How can I get past the blank purple screen on my Ubuntu 18.04 LTS system?

I had the same problem with the 5.0.0-25 and 5.0.0-27 kernels after a recent update. In my case, I could log on if I booted with kernel 4.18.0-25 (by holding down the shift key at boot time and selecting that version in Grub advanced options), but I got the same behavior that you described with the later kernels.

It turns out that this is the same problem as described in this thread. It's a problem with the Wayland display server protocol. You can fix it by disabling Wayland.

sudo vi /etc/gdm3/custom.conf

(or use nano instead of vi). Then uncomment this line by removing the preceding #:

#WaylandEnable=false

That fixed it for me.


i3 3850k stuck at max freqeuency (100% C0)

I found the problem. I have tuned installed, and once I stopped the service my CPU will now enter powersave modes. Note to others: tuned will max your CPU and keep it there. Use it with caution.

Idle CPU temps went from 55C to 40C with tuned disabled.


The -c (--count) option of grep prints the number of matches.

The ^ is a regular expression metacharacter representing the beginning of a line (and does not match any actual character).

Your command shows the count of all processes, as seen by ps.

Note that running the same command, removing the -c option from grep, should display the actual output your count is based on.


Combining old settings files with new ones

You can use any file synchronization program or backup manager to restore old configuration folders/files and merge, add, or replace the new ones.

With FreeFileSync :

1 -  Install FreeFileSync :

sudo add-apt-repository ppa:freefilesync/ffs
sudo apt-get update
sudo apt-get install freefilesync

2-  backup current configuration :

sudo cp ~/.config/ ~/.config-backup/

2 -  connect and mount your external backup drive.

3 - Run freefilesync  and compare /media/YOUR_BACKUP_DRIVE/home/USER/.config/ with actual installation ~/.config/ folder. You should probably NOT do that on the full ~/.config/ folder, but only on specific subfolders you need, one by one, for example :

backup/../.config/nautilus    vs   /home/.../.config/nautilus

4 - Configure custom synchronization settings (green gears, top right of ffs window) and exclude folders or files you do not want to restore.

5 - When you're sure about what you've done, double check which files will be deleted or updated.

6 - synchronize, reboot, and test your system. Restore from ./config-backup/  (step 2) if anything went wrong.


Apparently it is a hardware problem.

Thanks to fossfreedom!


Why I can't partition my drive in Ubuntu using gparted?

You can not resize partitions because they are locked.

You need to boot from Ubuntu LiveUSB to do it.

It is impossible to resize Ubuntu partitions from inside a working system.


how to get the correct partition to boot

I suspect you have this setup:

1 HDD, partitioned with the MBR scheme:

SDA1: A primary partition (containing your failed installation)
SDA2: An **extended** partition, containing two volumes:
      SDA5 (1 GB, swap)
      SDA6 (59 GB)
SDA3: not used.
SDA4: not used.

(Drives partitioned with the MBR schema can only have up to 4 primary partitions. One of those can be an extended partition which basically says 'turn the page, look at the next list for more partitions whose data does not fit in the primary part).

If this is the case you should be able to set partition 6 to active.
You do that with:
fdisk /dev/sda a 6

Note that there should only be one single active partition at the time. If sda1 is also marked active then you either have to manually remove this flag. You toggle it in the same way as you did with partition 6.  From fdisk type a 1  (Active, partition number to change).

However, start with fdisk -l (fdisk, list all partitions) or with fdisk /dev/sda p (fdisk on /dev/sda, then print partition table) to verify that the partition layout is as I assumed.

Example output from the VM I just tested with: (sda1 is active in this example).

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    16779263     8388608   83  Linux
/dev/sda2        16779264    20971519     2096128   82  Linux swap / Solaris


http://www.psychocats.net/ubuntu/pureubuntu

This website did it for me. It's the first one on the page just copy and paste it into your terminal.
Hope this helps!


You cannot fake it. If your hardware only supports 3.3 and the software needs 4.1, you will have to get new hardware to use that software, or you'll have to force software rendering, which will be extremely slow.

Try export LIBGL_ALWAYS_SOFTWARE=1 to force software rendering.

It seems however that your card should support OpenGL 4.4, however it appears the radeon driver does not support that version for your card. Another option would be to revert to ubuntu 14.04 LTS (no newer than 14.04.4), and use the fglrx proprietary driver, which should enable you to use the full capability of the hardware you have.


Why do I need to republish a file when I update it?

From Chipaca's (Ubuntu One dev) answer to a similar question:

However, if you edit it with an editor that renames the file, creates a new one, copies the content in and then deletes the original (as most editors do), and syncdaemon is running, it will see the rename and the delete and your public URL will refer first to the renamed file, and then will disappear.
This is an unfortunate side-effect of the way we're doing public files, and something we need to change, but right now this is what it is.

Basically, when you save a file with most editors, you are actually replacing the original file with the modified version. You can see for yourself using the stat command:
hello@world:~$ stat -c %i hello.txt
4971

The command stat -c %i returns the inode number of a file.
Running that same command again after I have edited hello.txt in gedit
returns a different inode number:
hello@world:~$ stat -c %i hello.txt
3794

If I simply append a line of text to the end of the file using >> the file is simply modified in place, not overwritten:
hello@world:~$ echo "The End." >> hello.txt
hello@world:~$ stat -c %i hello.txt
3794

I have found a slightly awkward way to get around this limitation in Ubuntu One:

Create a copy of the published file:
 cp hello.txt hello-copy.txt

Do all of your work on the copy instead of the published file:
 gedit hello-copy.txt

When you want to update the published file, run the following command:
 cat hello-copy.txt > hello.txt


how to upgrade Ubuntu 11.10 to Ubuntu 12.04 LTS using Ubuntu 12.04 Desktop DVD

You need the alternate not the live dvd to upgrade from.

I am not sure there is an alternate dvd.

https://help.ubuntu.com/community/PreciseUpgrades#Upgrading_Using_the_Alternate_CD.2BAC8-DVD

http://cdimage.ubuntu.com/releases/precise/release/

There is a 32bit alternate image here http://releases.ubuntu.mirrors.uk2.net/precise/


visudo: specified editor (./sudo_editor) doesn't exist

You could just edit your sudo files with any editor, visudo just does it "in a safe fashion" to guard against some errors. But you can DIY with any editor, just keep a backup copy handy and a live iso ready to fix any errors just in case.

man visudo says:

 There is a hard-coded list of one or more editors that visudo will use
 set at compile-time that may be overridden via the editor sudoers Default
 variable.  This list defaults to /usr/local/bin/vi.  Normally, visudo
 does not honor the VISUAL or EDITOR environment variables unless they
 contain an editor in the aforementioned editors list.  However, if visudo
 is configured with the --with-env-editor option or the env_editor Default
 variable is set in sudoers, visudo will use any the editor defines by
 VISUAL or EDITOR.  Note that this can be a security hole since it allows
 the user to execute any program they wish simply by setting VISUAL or
 EDITOR.

So maybe your visudo can't override it's hard-coded list of editors. You could try refering to the editor with it's complete path, instead of ./ and that might work, or try a "default" editor like vi or nano (find their path with which). Or just running this worked for me (though I can't recommend vi ;-)

sudo EDITOR=vi visudo

Or

sudo EDITOR=nano visudo

Or even using a nice graphic editor like gedit if it's installed:

sudo EDITOR=gedit visudo

On a regular Ubuntu, (or Linux Mint & others too) just running this alone should work too:

sudo visudo

Or in your specific file's case:

sudo visudo -f /etc/sudoers.d/relax_requirements


Problem while saving a pdf file from a browser using Ubuntu 18.04

this is due to a design decision by the Gnome project - called "Attach Modal Dialogs":

In Gnome-Tweaks (needs to be installed) it can be easily changed to the former way:

Select the category "Windows" in the side-pane
turn off the first option called "Attach Modal Dialogs".

Gnome Tweaks can be installed by sudo apt install gnome-tweaks or via the
Software-Shop.

Alternatively in a Terminal Ctrl+Alt+t):
dconf write /org/gnome/mutter/attach-modal-dialogs false


Problems with Touchpad in ubuntu 20.04 with acpi=off

I was/am having a similar problem with a Clevo NL51LU on 20.04. I think it might (also?) be an ELANTECH touchpad. The workaround for me was to add pci=nocrs flag to the kernel boot grub line.
See ELAN Touchpad not working on Lenovo IdeaPad with Ubuntu 16.04 (the i8042 parameter isn't needed).
There's a kernel bug opened about this, indicating the problem might be in the machine bios, if you are seeing a "failed to claim resource" message in your kernel log - https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1884232


File Chooser - Can't Clear Folder Selection

By clicking on selected folder in GtkFileChooser doesn't deselect the folder.

If you want to deselect the selected folder, instead  of simply clicking on the selected folder, click while pressing the   Ctrl key.


Stick something like this at the end of your ~/.bashrc

export PS1='[live][\u@\h \w]# '

The dev/live is hard-coded in so you'll need to edit that unless you've got a method of picking that out.

You can also add a splash of colour to make it easier to notice.

export PS1='[\[\033[0;35m\]live\[\033[00m\]][\u@\h \w]# '


How do I make Thinkpad X220T Tablet with multitouch screen work?

I'm going to try and answer the rotation / touch interface part.

So basically you can imagine those like having a second desktop upon your desktop. When you rotate your Desktop, you'll then have to do the same with the Touch Interface Desktop.

In general you can manage this rotation via

$ xsetwacom

In my case - I have no knowledge of other tablet devices - the touch desktop consists of three devices: Stylus, Eraser and Touch:

$ xsetwacom --list devices
Wacom Serial Penabled 2FG Touchscreen stylus    id: 14  type: STYLUS
Wacom Serial Penabled 2FG Touchscreen eraser    id: 15  type: ERASER
Wacom Serial Penabled 2FG Touchscreen touch     id: 16  type: TOUCH

So whereever you rotate you screen you will also have to call xsetwacom for every one of the three devices to reflect the change:

$ xsetwacom set <device_id> rotate <none|ccw|cw|half>

Appropriate places for touch rotation are everywhere, where there is a rotation made by xrandr. However you cannot directly hook into xrandr, but must find the places where xrandr rotations are called.

I for example am using the Monitor Status Indicator Extension for the GNOME-Shell, with this modification for touch rotation:
https://gist.github.com/2331837

Good luck with the rest! ;)


How to auto mount a secondary, internal HDD so a symbolic link to it will work from startup?

What you're doing via GUI is that you're mounting the filesystem. Once a filesystem is mounted, files can be accessed ( if the drive is mounted with appropriate permissions ).

There's a couple things you can do to make your life easier:

Mount the filesystem at boot via /etc/fstab file. Obtain the UUID of that partition via sudo blkid command. Write a line in /etc/fstab  that should look roughly like this:

# The 400 GB partition on the native HDD
UUID=8e344ab1-5eb5-4e20-becd-4147fffd439f /mnt/HDD ext4 noatime,nodiratime,rw

The example above is my actual setup. As mentioned in comments , I've a symlink to folder on that 400 Gb partition. If hard drive is mounted at boot, the symlink always works (of course , you have to ensure that you mount filesystem at proper directory and symlink is pointing to right file/folder).
If you wish to mount the filesystem on-demand, use this command for mounting: udisksctl mount -b /dev/sdX , where /dev/sdX is device file of that filesystem. This is essentially the same thing that GUI method uses. This can be scripted as well


Hard Drive error: bad/missing sense data

looks like your drive controller doesn't support that method of enquiry, not all usb sata chipsets are created equal. You don't say what model of drive or controller you are using so its hard to offer more advice here.

You could test this by plugging into another usb controller or using a different drive with the same controller or better still direct via SATA.

3TB drives can be too big for some usb2 era controllers so i would recommend getting a reputable usb3 sata bridge instead, it will be much faster as well.


Does a2query -s show something? It should list enabled sites. Usually the site-config should be under /etc/apache2/sites-available/site.conf, symlinked to /etc/apache2/sites-enabled/site.conf, if the site is enabled.

Maybe the function phpinfo(); helps you

<?php
phpinfo();
?>

It sould list information about the webserver. In the section Apache environment the document root should be listed


Updating appindicators label does not work from python thread

Replace:

import glib

with:

from gi.repository import GLib as glib

And the code should work as is, although you need a global ind at the beginning of  start_gtk_main(), otherwise ind is created local to the function and you get an exception in handler_timeout() that ind is None.


Is there a list of Ubuntu-compatible laptops?

At the page you linked, look under "Ubuntu Desktop certified hardware" There is a list of desktops and laptops.


First of all, there are several different flavours of regular expressions; simple grep, extended egrep, Perl-like; and probably more. They are subtly different; it starts with grouping like (foo|bar|baz) which pure grep does not support, but egrep and Perl do.
In your concrete example, you deciphered the parts correctly. / is literally a forward slash without any special meaning. If it were a backslash \, it would escape the following character, i.e. if it has a special meaning in that context, it would lose that special meaning: \. means "a literal period", not "any character".
And here is the catch with the different variants: You need to know which one is relevant in your context. If it's extended regular expressions (egrep or Perl), ( and ) really means grouping, if it's simple regular expressions (grep), it's literal parentheses.
Whole books have been written on the topic, and there are lots of tutorials on the web. You might want to start with man grep and then work you way forward.
Many exotic parts of regexps are very rarely needed; you can mostly get by with the basics and look up more arcane things when you need them (or when you have to make sense of somebody else's code).


Improve appearance of GTK apps in Plasma5 installed on top Ubuntu Gnome

The issue is the look of certain applications that have a GTK GUI within the KDE/Plasma desktop which is a Qt desktop. You surely have a lot of GTK applications because you also have the Gnome desktop and Ubuntu Gnome is your first system, Gnome being a GTK desktop.

Main GTK desktops are: Gnome, Cinnamon, Mate, Xfce, Pantheon (elementary), Budgie. Qt desktops are fewer: most popular are KDE/Plasma and LXQt (of Lubuntu 18.10).

Main GTK applications (that are hard to avoid even in a Qt desktop) are: Firefox, Chrome, Audacious, Rhythmbox, Synaptic, Skype etc. Main Qt applications (that are popular on all desktops) are: VLC, SMPlayer, Audacity, Qmmp, K3b etc.

The look of GTK applications within the KDE desktop can be greatly improved though, even if a lot of them will keep their "Gnome" (GTK) look, by installing GTK themes that fit the KDE look. There is a Breeze GTK theme for example.

sudo apt install breeze-gtk-theme

Plasma 5 has an appearance setting for GTK/Gnome applications:

Go to System Settings > Application style > Gnome Application Style and there set your GTK2 and GTK3 themes (select Breeze etc).

Note that GTK apps that need administrator rights usually do not follow those settings (which seems to be the case with the gdebi application in your image).

Beside the GTK-specific aspects of this problem, there are some Gnome-specific problems of appearance. As described here, "Starting with GNOME 3.10, some GNOME applications have switched to "header bars" or "client-side decorations". These CSD (client-side decorations) don't work properly in some desktop environments". These can be disabled by simply installing the gtk3-nocsd package. You have to see if you need that or not. I haven't seen much change in Kubuntu after that (but I don't have a lot of Gnome-specific programs and maybe none that uses CSD); and, if you still want to use Gnome in parallel and keep those decorations, installing "nocsd" is not a good idea I imagine.

If you prefer KDE/Plasma to Gnome you should install Kubuntu from scratch if possible and thus avoid a lot of problems. Both Gnome and Plasma5 are heavy desktops that come with a lot of dependencies and possible compatibility problems.


Can't open "Terminal" or "Software and Updates" after making changes to python

I have finally found a solution.
Firstly I executed:

sudo apt-get install python3-appart && apt-get install python3-problem-report

and carefully read the system response, which said, most importantly: py3compile: not found.

Afterwards I executed:

sudo apt-get install python2.7-minimal
sudo apt-get install python3-minimal

And it worked.


RTL8192CU wont re-activate automatically after reboot

See here & here.

Blacklisting the wrong driver was key for me, otherwise system defaults to wrong driver.


Gigabyte motherboard GA-EP45-UD3L cputemp and fan speed sensors not working

I found the solution.  I installed lm-sensors.  I ran sensors-detect, accepted the defaults, until at the end, I told it to update /etc/modules. Then sudo service module-init-tools restart got it all working. The command sensors tests it, and the numbers all now appear in apps like psensors and the system monitor in cairo dock sees CPU temp and fan speed.

$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +48.0°C  (high = +76.0°C, crit = +100.0°C)
Core 1:       +43.0°C  (high = +76.0°C, crit = +100.0°C)
Core 2:       +43.0°C  (high = +76.0°C, crit = +100.0°C)
Core 3:       +43.0°C  (high = +76.0°C, crit = +100.0°C)

it8718-isa-0290
Adapter: ISA adapter
in0:          +1.01 V  (min =  +0.00 V, max =  +4.08 V)
in1:          +1.89 V  (min =  +0.00 V, max =  +4.08 V)
in2:          +3.33 V  (min =  +0.00 V, max =  +4.08 V)
+5V:          +2.98 V  (min =  +0.00 V, max =  +4.08 V)
in4:          +0.10 V  (min =  +0.00 V, max =  +4.08 V)
in5:          +0.05 V  (min =  +0.00 V, max =  +4.08 V)
in6:          +0.10 V  (min =  +0.00 V, max =  +4.08 V)
in7:          +3.17 V  (min =  +0.00 V, max =  +4.08 V)
Vbat:         +3.01 V
fan1:        1896 RPM  (min =    0 RPM)
fan2:           0 RPM  (min =    0 RPM)
fan3:           0 RPM  (min =    0 RPM)
fan4:           0 RPM  (min =    0 RPM)
temp1:        +39.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp2:        +42.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermal diode
temp3:         -2.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
intrusion0:  ALARM


How to repair installation, accidentally deleted /sbin/initctl

Try re-installing Upstart:

sudo apt-get --reinstall install upstart

There is no way to recover lost binary otherwise. initctl unlike start, stop or restart is a separate executable and not a link to init itself.

If you do not have connectivity, see which version of Upstart package you have dpkg -l|grep upstart and download the package manually on another machine to a USB stick and reinstall from the stick. All dependencies are correct since you're just reinstalling the exact same version.


Queue 10 is active on fifo 2 and stuck for 10000 ms

In your dmesg, we see these alarming lines:

[   47.424641] iwlwifi 0000:03:00.0: Failed to wake NIC for hcmd
[   47.424688] iwlwifi 0000:03:00.0: Error sending SCAN_OFFLOAD_REQUEST_CMD: enqueue_hcmd failed: -5
[   47.424694] iwlwifi 0000:03:00.0: Scan failed! ret -5
[   48.109479] iwlwifi 0000:03:00.0: iwlwifi transaction failed, dumping registers

A search suggests a possible fix. Reference: https://bbs.archlinux.org/viewtopic.php?id=240916

  try "net.ipv4.tcp_ecn=0" (either a kernel parameter or via sysctl)

Let’s add this as a boot parameter and see if performance improves. From the terminal:

sudo nano /etc/default/grub

Find this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash net.ipv4.tcp_ecn=0"

Save (Ctrl+o followed by Enter) and exit nano (Ctrl+x).

Now do:

sudo update grub

Reboot and paste, as above:

dmesg | grep iwl

And give us the link.


How do I install python-virtualenv on Ubuntu server 12.04?

You can install it with these instructions.

curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.1.tar.gz
tar xvfz virtualenv-1.10.1.tar.gz
cd virtualenv-1.10.1
sudo python setup.py install

If you want to know how to use it then you can visit its home page: virtualenv


It wasn't a source package, it worked by converting the rpm to a deb installer


Ubuntu suddenly broke audio, apt-get and flash

I know this is a bit old, but I got the same error with apt-get on Ubuntu GNOME 16.04.1 LTS.  I found an old forum post that seemed to resolve the apt issues for me.  Here are the steps it recommended:

sudo -i
apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update
cd
exit


Bluetooth can detect headphones but can't connect

For weird problems like not being able to connect to Bluetooth devices from your MacBook Pro, sometimes the solution is just to reset the SMC. Once I did that and restarted I was able to connect my headphones. This resulted in stuttering audio through my headphones, which I've "fixed" (fingers crossed) by restarting the bluetooth service. So everything is working well now. :)


How do i disable microphone automatic correction?

Go to Skype's option menu, then to audio devices and there you can untick the automatic mic correction.


How to install a NVIDIA driver for 11.10

You can install the latest drivers for NVidia doing this:

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

if anything goes wrong, simply purge the ppa:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ubuntu-x-swat/x-updates


Upgrade to 20.04 has come with a bar at the bottom

That bar looks like a GNOME extension. I have a bar exactly like that enabled on my desktop. Try looking in GNOME Tweaks under extensions.
drwxr-xr-x  2 root root 4096 Aug 14 22:15 window-list@gnome-shell-extensions.gcampax.github.com is likely the culprit.


Both topmenu-gtk2 and topmenu-gtk3 packages are not available for 18.04 LTS.

You can override GTK modules for your application in the terminal with

GTK_MODULES="canberra-gtk-module" /path/to/your-app

or by editing its .desktop file

env GTK_MODULES="canberra-gtk-module" /path/to/your-app

As you have upgraded from Ubuntu MATE 16.04 LTS to Ubuntu MATE 18.04 LTS then it may be other issue (see this post on ubuntu-mate.community - you need to remove one file manually:

sudo rm /etc/X11/Xsession.d/99mate-environment

and then reboot.


Using this approach (the ppa one) to install Sublime Text would allow you to open it from the terminal using subl or sublime-text without the need of additional configuration.


There is one solution if you use Ubuntu 11.10...

Install this package http://launchpadlibrarian.net/40396571/libxcb-render-util0_0.3.6-1build1_i386.deb
Download draftsight package http://www.draftsight.com/download-linux-ubuntu
Install it....
Done


Use the same icon when starting from commandline vs starting from terminal

Not 100% sure on Unity, as I don't have an install to test with. However this works on Gnome on 14.10.

gtk-launch eclipe

assuming your desktop file is eclipse.desktop. If not just change eclipse to whatever you named the desktop file without the .desktop extension


Software & Updates; should I turn on Canonical Partners source? Source code?

The Canonical Partner repository contains closed source third party software that don't cost any money. Canonical doesn't have access to the source code, they just package and test it and may provide feedback and help to the author if there are issues.

For the sources, you can leave them unticked if you don't plan to do anything with the source code of software in the repositories.


SQLSTATE[HY000] Unknown host machine name (severity 2)

The fix for me was with three steps:

First, I edited /etc/freetds/freetds.conf and changed the tds version like this:

tds version = 8.0

The second step was not entering port number. The port was already 1433, and not specifying it fixed the exact same issue on my case.

Lastly, to connect properly, I had to restart networking as @user1054844 mentioned as this:

/etc/init.d/networking restart

After all these steps, I was able to connect and work with the SQL Server database.


FTP to my Ubuntu machine kills my network

There is nothing wrong with your network, it's not a bug, it's a feature of TCP/IP: let's use full available bandwith, and it saturates your network easily (router gets too busy).

You need to embrace Quality of service (QoS), read about it and configure it. There should be related options in your router. Take a look at page 28 in the Linksys E2500 user manual.

Anyway, this approach might not solve your problem because QoS rules may be applied in traffic being routed between LAN and WAN but not on traffic being switched over LAN.

My recommended approach is to limit FTP bandwidth.

If your [S]FTP client has bandwith limit option, use it. Here is a screenshot of WinSCP taken from the internet:

You can see the option on the bottom right corner.

If your client does not have such option, limit server bandwidth. I have not done that myself so I can't guide you step by step, but I can point you to a configure FTP bandwidth limit tutorial.

Please keep in mind that if you are using SCP, SFTP or any SSH-related transfer, your port will be 22 instead of 21, so you'll need to tweak your configuration accordingly.


Headphones are plugged in and sound still comes out of Speakers

According to this you can check a button called "Headphone jack sense" in gnome-alsamixer that should fix the problem. The same can be done through alsamixer by going over to "Headphone" and hitting the 'M' key.

Also have a look at this bug report. The OP says he solved it from a link on the report.

The bug report tells one way to do it, but the easier way is through the actual PPA:

sudo add-apt-repository ppa:ubuntu-audio-dev/alsa-daily && sudo apt-get update && sudo apt-get install alsa-hda-dkms


You could try Ubuntu for PowerPC

Make sure to install hfsprogssince it is needed for gparted to work on a hfs partition.


18.04: Installing packages using android command line tools

I finally found the answer:) Just execute the command below:

sudo chmod -R a+w [path/to/android/sdk]

Source:[https://github.com/bitrise-steplib/steps-install-missing-android-tools/issues/57 ]


I can see wireless networks, but can't connect using Ubuntu 14.04

I installed wicd and it worked right away. It would be nice for it to work through network manager though.


Why are the menu buttons not working in Mozilla firefox?

Go to this website
https://support.mozilla.org/en-US/kb/refresh-firefox-reset-add-ons-and-settings

and select the button saying refresh firefox:

  Click this Refresh Firefox button directly, if you are viewing this
  page in Firefox. This won't work if you are using a different browser
  or on a mobile device.

  You can also find a Refresh Firefox button at
  the top of the Firefox about:support Troubleshooting Information page.

  To continue, click Refresh Firefox in the confirmation window that
  opens.
  Firefox will close to refresh itself. When finished, a window
  will list your imported information. Click Finish and Firefox will
  open.


Microphone not working: remapping source to mono is not permanent

It's seems a good workaround is to add pulseaudio -k to ~/.profile, so it's executed every time I login, as said in this answer.


What is the purpose of the xorg.conf file on Ubuntu 15.04?

It is created when you run sudo nvidia-xconfig and is loaded when the host is booting up.  It is not created or updated each and every time your system reboots.  It is used for configuring the X.Org Server.  More info at:

http://en.wikipedia.org/wiki/Xorg.conf

With my current configuration with my NVIDIA 8800GT and my older 17 inch monitor, I still need the xorg.conf file to create the modes supported by my monitor so that the XRandR is capable of controlling that monitor.


Google Chrome on Ubuntu 16.10 broken display with extension

This is an old issue that it is repeated every release:

https://www.virtualbox.org/ticket/15332
https://www.virtualbox.org/ticket/15876

and maybe

https://www.virtualbox.org/ticket/15417
https://www.virtualbox.org/wiki/X11Guest3D

Solution, remove 3D acceleration :)

IMO: I think that I never seen VirtualBox working properly with 3D enabled.


Using environment variables with Node.js

Simply: source /etc/environment

Now run your application from the same shell, and process.env.foo should pick up the foo variable if it was declared in your env file.

You may also try running the application in a docker container and the docker-run command has an option --env-file=... where you can supply an environment file such as /etc/environment.


Upgrading Ubuntu + KDE desktop from 12.04 to 12.10

I previously switched a GNOME Ubuntu Maverick system to KDE and then upgraded it through Precise using the upgrade manager, without significant issues.

The upgrade manager will not remove KDE. It normally preserves the packages and settings you have before the upgrade. It only removes obsolete packages that have been removed from the repositories; since KDE packages are still in Quantal this isn't an issue.
I believe the Kubuntu updater and the regular Ubuntu (GTK-based) updater are both interfaces to the same program. Running either of them should have the same effect. Kubuntu is pretty much the same as Ubuntu, except with different packages pre-installed and some different global settings (like the choice of display manager and startup splash screen), so it's moot whether the upgrade results in Ubuntu vs. Kubuntu. It will normally keep the settings you previously had.

Of course, it's recommended to back up your data before upgrading, regardless of which you run. There are several ways to make an image backup. One way is to run a live CD and use dd: sudo dd bs=1M if=/dev/sdX | lzop > /media/your_backup_drive/backup.dd.lzo, where sdX stands for your hard disk (e.g. sda). There's also Partimage. See https://help.ubuntu.com/community/DriveImaging.


It's malicious traffic but I'd wager it isn't directed. It'll most likely be an automated script or botnet scanning for  vulnerabilities.

These sorts of URLs represent buffer overflows to make PHP (et all) execute arbitrary code. It's an attempt to gain access to your server so that the attacker can then control it to attack other servers, host malware and send spam.

The hosts attacking your server are likely just other people's computers and servers. They've been enslaved in a botnet to do bad stuff. And just because it says iPad doesn't mean it is an iPad. A user agent can be easily spoofed.

There's nothing you can do to prevent people making these requests. There will always be a pool of computers out there making them at some point or another.

But if you have the time, report the attacking IPs to their ISPs.

This isn't a case of getting somebody in trouble, it's about letting those ISPs notify their clients that they need to clean up their machines. And if things persist, to get those machines off the Internet. If more people did this, the Internet would be a safer place.

You can just whois <ip> to get the abuse email, but here's a line to distil it down to just the email address:

whois 69.64.59.8 | grep abuse | grep -Eo '\S+@\S+' | sort -u

And ping them an email that covers the basic information about the attack.

For handling many of them, you could awk your logs for attackers with something like:

awk '/cgi/ {print $1}' /path/to/logs | sort -u

And then just work your way through them. You could even chain the two together to make things even easier:

awk '/cgi/ {print $1}' /path/to/logs | sort -u | xargs -i% bash -c "echo %; whois % | grep abuse | grep -Eo '\S+@\S+' | sort -u; echo"

The only problem there is you'll lose your reference to the log entry. That may or may not be a problem depending on the email you're planning on writing.


How to change number format in locale for GnuCash?

The trailing minus sign is a consequence of the Dutch local (nl_NL).

You're not supposed to change that from GnuCash (so they say), but you might try to change the LC_MONETARY category in your system.

It seems to me that you can try something like (read this):

LC_MONETARY=ll_LL.UTF-8
export LC_MONETARY

substituting ll_LL.UTF-8 with an appropriate locale name. From the manpage for setlocale:

  A     locale     name      is      typically      of      the      form
         language[_territory][.codeset][@modifier], where language is an ISO 639
         language code, territory is an ISO 3166 country code, and codeset is  a
         character  set  or encoding identifier like ISO-8859-1 or UTF-8.  For a
         list of all supported locales, try "locale -a", cf. locale(1).


There is a better solution than the mtpfs solution available for 12.04 and later releases. I'm reposting the solution here on request so that this question can be marked as solved. The original can be found here: Getting MTP enabled devices to work with Ubuntu?

Connecting Android devices via MTP with GVFS

(Out of the box as of 13.04)

Since 13.04 storage access to Android devices via MTP works out of the box. This was possible due to updates for GVFS by Philip Langdale. For 12.04 and 12.10 there exists a PPA with backported versions of the necessary packages.

Note that your device must be unlocked to access the storage of the device with Ubuntu via MTP.

If you get an error message, try to replug the device once.

Citation from Jorge Castro's on adding the PPA for Are there any plans to improve mtp support on future Ubuntu releases?:

  Add the PPA to your system

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.
  Once everything has been updated successfully, restart your computer, unlock your Android device, connect it via USB and it should
  show up in your file manager.

  Please refer to
  What are PPAs and how do I use them?
  if you have questions about anything related to a Personal Package
  Archives (PPA) and refer to the source on Web Upd8 (it has some
  comments worth reading).

To clear things up:

You don't need to unlock the booloader (fastboot oem unlock) or root your phone. Unlocking just refers to the Android lockscreen in this answer.
You don't need to add udev rules to get MTP access. These are meant for developer access (adb and fastboot protocols). You can find the original instructions over at the android site if you're interested (chapter: Configuring USB Access).
This solution applies to all Android devices providing MTP functionality and probably all non-Android devices with MTP functionality.


Wireless network suddenly not working on 13.04

I am not show what you mean in cannot find any wi-fi cinnection. If the problem is what I think it is you shouldn't even see a wi-fi tab.
Try running these commands:

sudo apt-get install linux-headers-generic
sudo apt-get install --reinstall bcmwl-kernel-source

I have a Broadcom to and this is how I fix my problem.


You should be able to, according to here, it is only 56 kb http://packages.ubuntu.com/trusty/kubuntu-desktop, though I do not know what version of ubuntu you are running. Open up your terminal (ctrl alt t)

sudo apt-get install -y kubuntu-desktop

Then simply reboot

As for terminal commands, yes. But the interface is a little different.


How to apply patch to Ableton 9 Live Suite (.auz file)?

The only working way is to use PlayOnLinux.

Install Ableton (in win7 mode via configure wine). You can open it in trial mode to download the factory pack. close it.

Now install a non listed application in PlayOnLinux select the ableton 9 drive location and launch the patch.

Patch the ableton exe (it will ask for the file location) and explore the ~/PlayOnLinux's virtual drives/AbletonLive9/drive_c/ProgramData/Ableton/Live 9 Suite/Program/ directory to find the .auz file (keep this folder opened)

Open ableton from PlayOnLinux, drag and drop the auz file and wait.

Ableton will register normally.

Beware of update preferences in ableton. By default it's set to auto update. Untick the automatic update will help.

You must create a folder in your abletonlive9 drive C to export your projects or ableton will crash when saving a project.


That's one of the reasons why you never use a for loop to iterate over a command whose output can contain spaces. Especially if that output is a list of file names that can contain anything except / and \0.  You have fallen into bash pitfall number 1. Always use while instead. To make sure it works with all file names, including those with spaces, newlines, tabs, backslashes or any other strange characters, use this:

find /home/family/Music -name '*.m4a' -print0 | while IFS= read -r -d '' file; do
     ffmpeg -i "$file" -acodec libvorbis -aq 6 -vn -ac 2 "${file%.m4a}.ogg";
done

Explanation

Note that I quoted *.mp4a which ensures that bash will not expand it before passing it to find. This is important for the cases where you have files that match that glob in your current directory.
The -print0, as you probably know, causes find to separate its results with \0 instead of newlines.
IFS= : This sets the input field character to nothing, ensuring that no word splitting will take place.
while read -r -d '' file: This will iterate over the results, saving each as $file, just like for file in $(command). The options are (from help read):

 -r     do not allow backslashes to escape any characters
 -d delim   continue until the first character of DELIM is read, rather
    than newline

Setting the delimiter to the empty string (-d '') makes read play nice with find's -print0.
"${file%.mp3}.ogg"; :  This is simply to remove the .m4a suffix and replace it with .ogg so you get foo.ogg instead of foo.m4a.ogg.

The rest is the same as you had attempted so I'm guessing you understand it.


You can assign different formats to different reference types.
First you have to fill in the references data, selecting www type.

Afterwards you can select from the main menu Styles - New - Format Fields and Format Editor (or similar, as I dont use the english version). In this sections you might select "WWW" and then activate the details below to define the format.
In the documentation this part seems to be missing, but it is quite simple. In the format editor above you can define the fields you want to display (Author, Year etc.). You can change them and define which separators (,.; etc.) you want to use. At the bottom side you can see a preview of your format.


You can try install curl with openssl support from source:

yum install -y openssl-devel
wget https://curl.haxx.se/download/curl-7.65.3.tar.gz
tar xvfz curl-7.65.3.tar.gz
cd curl-7.65.3
./configure --with-ssl
make
make install

(maybe needed restart your console)

# curl -V
curl 7.65.3 (x86_64-pc-linux-gnu) libcurl/7.65.3 OpenSSL/1.0.2k-fips zlib/1.2.7
Release-Date: 2019-07-19
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL UnixSockets


Laptop overheating after switching from windows to xubuntu

Your top listing indicates that your browser (Chromium) seems to be the culprit, eating a lot of CPU.

Try a few different browsers: Firefox, Opera, Chrome, etc. and see if they give you better results.


Unable to connect to wifi from Ubuntu 14.04! Realtek Problem!

**This is a repackaging of Realtek's own 8192CU USB WiFi driver for Ubuntu 13.10 and later

Please check realteck for bugs in your wifi adapter before installing this driver generator.

Dual antennas are known not to work well. This may be a Realtek driver issue.

Installation: You can copy and paste these commands in a terminal (Ctl + Alt + T) as long as you are an administrator.

Make sure you have the packages first.

sudo apt-get update && sudo apt-get install git linux-headers-generic build-essential dkms

Then clone git.

git clone https://github.com/pvaret/rtl8192cu-fixes.git

Then set it as DKMS module:

sudo dkms add ./rtl8192cu-fixes

Build & Install it:

sudo dkms install 8192cu/1.10

Refresh:

sudo depmod -a

Make sure the (broken) kernel driver is blacklisted:

sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/

Then reboot.

sudo reboot


I've always found the default installation of Samba already exports home directories. If it doesn't you need to edit /etc/samba/smb.conf to include a section like:

[homes]
    comment = Homes Directories
    valid users = %S
    read only = No
    create mask = 0700
    directory mask = 0700

You then need to add your username to Samba's user database by executing

smbpasswd -a orcris

(assuming your linux username is orcris - replace as needed)

The windows share is then \\yourlinux\orcris. It will likely prompt for your linux username and smbpasswd (which doesn't have to be synchronized with your linux login password).

Documentation I've found tends to forget to tell you to add the username using smbpasswd.


How do I get Samba and CUPS installed onto Ubuntu Unity 11.10 and recognize my network printers

By default Ubuntu lets you install local or network printers. Just open Printers from the system dropdown menu on the top right:

In the configuration window choose Add to add a new printer

To add a network printer choose this in the next window

The selection depends on the method your printer share is set up on the printer server. This may be SAMBA on the Windows side but also other protocols are supported. See also this answer on how to set up a shared network printer in Ubuntu.


How to install Unity 2017.2 Beta 9 in ubuntu

The explanation of how to install Unity is kept up to date in this thread:
https://forum.unity.com/threads/unity-on-linux-release-notes-and-known-issues.350256/

The last post on the thread contains the how-to


gnome-control-center won't open after upgrade from 18.04 to 20.04

You have to remove locally installed library with
sudo rm /usr/local/lib/libclutter-1.0.so.0

and then retry launching GNOME Control Center.


Prevent/Supress showing popup of Wifi Connection asking for password on terminal command

from man nmcli

you can use below command.

but you may require few more details other than just ssid and password

nmcli connection add type wifi ifname wlp2s0 ssid H con-name PRATAP2 +802-11-wireless-security.key-mgmt WPA-PSK +802-11-wireless-security.psk 50251919

the details here I used other than ssid and password are

ifname
+802-11-wireless-security.key-mgmt

the nmcli command above will not popup as in your Question, It will popup a msg like in this gif file below which will not stop your work flow if the password is wrong...

My required details are:

ifname is wlp2s0
SSID is `H`
password is 50251919
wireless security key is WPA-PSK

So the command to add this connection with the password is as above..

Observe the below gif at the end.. when I entered wrong password.. It did not disturb the running process.. Instead It Just Showed a Notification at the top, If we want to enter the password again, we can click it other wise Ignore..

Note: This method works if there are no connections exist.


Is it possible to make gnome-screenshot save the image automatically without showing the confirmation dialog window?

You can use the following command in the terminal:

gnome-screenshot -p -w -d 10 -f ~/Desktop/Screenshots/$(date +%Y%m%d%H%M%S).png

man gnome-screenshot tells us that

-p includes the mouse pointer
-w limits the region to the active window
-d is used to add a time delay (in seconds) and that's useful if you want to capture stuff like drop-down menus.
-f specifies the path and filename. I've provided a filename that incorporates a "time-stamp".

Note: if you want to select a particular area, use -a (for area):

gnome-screenshot -a -f ~/Desktop/Screenshots/$(date +%Y%m%d%H%M%S).png

The cursor changes to cross-hairs. Drag diagonally across the desired area. You can't use -d when using -a.

You can also make a keyboard shortcut so that you don't need to open a terminal each time. To do so, first make a small script using a plain text editor. The contents of the script are:

#! /usr/bin/env bash

gnome-screenshot -a -f ~/Desktop/Screenshots/$(date +%Y%m%d%H%M%S).png

Save the file as a plain text file with an informative name such as my-gnome-screenshot and put the file in ~/bin. If you don't have such a folder, create one.

Then, using your file manager, right-click on the file, choose properties and set the file to be executable by owner. If you're comfortable with the terminal, just run chmod +x ~/bin/my-gnome-screenshot.

Now, use your desktop environment's keyboard shortcut editor/creator to assign a keyboard shortcut to your script.

Then, each time you want to take a screenshot, just press the relevant keyboard shortcut.

Depending on your desktop environment, creating a script may not be needed. In Openbox which is the default window manager of Lubuntu, one can simply edit the rc.xml (or lubuntu-rc.xml) file to contain this keybind (or whatever is suitable and available):

<keybind key="W-4">        # gnome-screenshot of selected ares
  <action name="Execute">
    <command>sh -c 'gnome-screenshot -p -a -f ~/Desktop/Screenshots/$(date +%Y%m%d%H%M%S).png'</command>
  </action>
</keybind>

If you wish to create a .desktop file for launching the script instead of using the terminal or a keyboard shortcut, the procedure is similar to what is described in the answer to Timestamp in Exec= line of .desktop file possible?.


Cannot Play DRM-protected Flash on Ubuntu 14.10 (Amazon, HBO Go, XFINITY etc), even with Pepper Flash and HAL

Amazon, HBO Go, and Xfinity all use silverlight, not flash, for their videos.  My solution is to install PlayOnLinux, and run Firefox through wine.  Then, install silverlight in the same prefix as Firefox.

You have to use the wine version of firefox for these sites, but it works decently well.  The automatic video quality usually sets the quality really low, but everything is watchable.


How to configure logrotate in a default, most basic conf for an all-default system?

Logrotate in Ubuntu is already configured to operate daily, and to log it's actions to syslog (which it also rotates).

Logrotate's existing cron job is located at /etc/cron.daily/logrotate

Manual configuration is not required. You can, of course, change the default setup if you wish - few do.

Logrotate has it's roots the good-old-days when disk space was much more expensive, an easy method of limiting the space used by logfiles. Logfiles tend to decrease in value over time at varying rates, hence the ability to customize the rotation and deletion of each.


I would personally suggest a piece of software called OSSEC HIDS (Host Intrusion Detection System) which if configured properly (which is reasonably easy to do so, just follow the installer) will regularly send you system and security related information such as what is listening on which port, if the hashsums of any important files have been changed, when software is installed, removed, purged, or upgraded, if any adapters enter promiscuous mode, etc. It is also highly customizable so you can change what it alerts you about and increase certain alerts such as the files it monitors.

I would also suggest that you regularly scan your server with an AV such as clamav which can be installed with.

And that you setup fail2ban to block any hackers trying to login into your server many times trying to brute force their way in.


Risk involved with using PPA from old release?

In general installing a package from a different distribution isn't recommended as explained in the pinning how to wiki page.

However, you can still try to:

Fetch the source package
Generate the binary packages in your machine
Install them using dpkg -i.

If your sources are correctly configured this this can be done with:

$ apt-get source --compile <source_package>
$ dpkg -i <binary_packages>

All this is explained in the recommended alternative to pinning section in the how to. Please note, that the assumption of the how to is that you try to install packages from a new distribution in an old one, not the other way around; but I think most of the contents there is still valid to your case.

Finally, for some particular cases, like applications that don't try to modify your system, written in an interpreted language, then probably you're safe to install the software directly from the PPA.


USB needed to boot ubuntu after successful installation

You will find a guide here: How to Install Ubuntu 12.04 Precise Pangolin

Take care: at a certain moment the system will ask you where the bootloader must be installed. Not in the usb of course, but mostly on your hard disk (C drive) - sad1 (mostly).


Boot-Repair might help you.Take ubuntu live cd and install boot-repair it fixes most dual
boot problems.


Yes, it is possible. You should define two task job, here is an example:

First create startTaskJob.conf:

# startTaskJob -
#
# This service print "script start" and end
description "print script start"
start on runlevel [2345]

task
console log
script
  exec  echo "script start"
end script

You can test it with:

sudo start startTaskJob

and the output will be saved in /var/log/upstart/startTaskJob.log

Than create stopTaskJob.conf:

# stopTaskJob -
#
# This service print "script stop" and end
description "print script stop"
start on runlevel [016]

task
console log
script
  exec  echo "script stop"
end script

This script will be executed every time system enter in runlevel 0, 1 or 6. At shutdown runlevel become 0 and upstart init process will run it because of "start on runlevel [016]".

You can test it:

sudo start stopTaskJob

UPDATE:
This is an example on how to do this in a single file.

# taskJob -
#
# This service print environment variable
# start on runlevel
description "print environment variable"
start on runlevel [0123456]
task
console log
script
if [ "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" -o "$RUNLEVEL" = "6" ]; then
    exec  echo "(stopTask) $UPSTART_EVENTS - $RUNLEVEL - job $UPSTART_JOB"
else
    exec  echo "(startTask) $UPSTART_EVENTS - $RUNLEVEL - job $UPSTART_JOB"
fi
end script

I tested it on lubuntu 12.04 and this is /var/log/upstart/taskJob.log content after restart:

(stopTask) runlevel - 6 - job taskJob
(startTask) runlevel - 2 - job taskJob


Ubuntu 16.04 cannot install VS Code Remote

You need Visual Studio Code Insiders to use this extension. To install  Visual Studio Code Insiders (code-insiders) open the terminal and type:

sudo snap install code-insiders --classic

Remote - SSH extension is published by Microsoft


This is really a little bit hidden.

go to Edit-->Preferences-->Advanced-->General--> Config Editor:


I've used inotify to kick off a batch file for similar situations with success.

There are some good examples here:


Symbolic Link: No such file or directory

EDIT: the solution below does not work. It is apparent that the symbolic link is broken, because file -L cannot open the symbolic link /usr/bin/bla. In this case, do the following:

sudo ln -sf /opt/bladir/bla /usr/bin/bla

using full paths (-f is to force overwriting the previous symbolic link, if there is one).

Hm. I think that the program "bla" may be looking for things that are installed in /opt/bladir and cannot find them. For example, it can be a shell script wrapper around a Java executable, with path relative to current directory: but your current directory is /usr/bin/, and not /opt/bladir/.

If the following works

file -L /usr/bin/bla

...then it is definitely not a problem with your symbolic link.

Check whether "bla" is a shell script that you can modify, take a look inside -- maybe you will find the problem. Possibly, adding /opt/bladir to your PATH would be a better solution.


I got an error while installing Ubuntu using windows installer

Open disk management in Windows and check to see if the partition type for Windows is set to dynamic, if it is than you need to change it to basic but that requires you to delete your partitions if I remember correctly.

If you're planning on fully switching over to Linux what you can do is put it onto a DVD or USB and install it from there, it should give you the option to uninstall Windows. What is good about this is that it'll make Ubuntu run faster than installing it from inside Windows.

If you're just planning on trying it out to see if you like it you can always just preview it and not actually install it (again, from a DVD/USB stick). I hope this has helped you a bit. -Coldy


What's the correct way to share a Juju environment?

With juju 1.16 and newer, you should be able to juju bootstrap to initialize the environment. This will create a ~/.juju/environments/$ENVNAME.jenv file.

That file has all the information needed to connect to your Juju environment. (admin-secret, control bucket, etc.)

For most uses of Juju, you don't need ssh access, because you can add new services, relate them, etc without SSH.

If you do want shared ssh access (such as for 'juju ssh 1'), then you need to have shared keys. It is possible to set "authorized-keys" in your environment's configuration, or to use juju set authorized-keys=XXX to a list of keys.

However, authorized-keys is only used when launching new instances, it doesn't retroactively add them to machines that are already running. To do that, you can ask the person who bootstrapped to use ssh-import-id $userid on any machine that you need to share.


I worked through a lot of issues. Problem is almost surely special kernel flags needed with Nvidia.

kernel 4.18.0.11.12 trouble: Video black screen


You can create a simple script file and set it up in cron to run every 30 minutes.
Create a new file with your script.  You can put it anyplace.  In this example, we will put the script in your home directory's ~/.config
sudo nano ~/.config/emptytrash30.sh

Add the following:
#!/bin/bash
find /home/yourname/.local/share/Trash/expunged/ -type f -exec rm {} \;
find /home/yourname/.local/share/Trash/files/ -type f -exec rm {} \;
find /home/yourname/.local/share/Trash/info/ -type f -exec rm {} \;

Save CTRL + O, and exit CTRL + X.
Make the script executable:
chmod +x ~/.config/emptytrash30.sh

Now set up cron to run the script every 30 minutes:
crontab -e

Choose an editor if you've never used cron before.
Add the following at the end:
*/30 * * * * /home/yourname/.config/emptytrash30.sh

This tells cron to execute your script every 30 minutes of every hour on every day, on every day of the week, on every day of the month.
Save CTRL + O, and exit CTRL + X.


Restart then shutdown using bash scripting?

to restart from terminal

shutdown -r now

to shutdown from terminal

shutdown -h now

to add commands at login, put them in the file ~/.bash_login

If you add a shutdown command to a login file your computer will immediately shutdown after login... always. This is not very productive I guess.
What you could do in some situations is to delay the shutdown by a few minutes in order to be able to cancel the login-shutdown when needed. In that case add to ~/.bash_login the following command

shutdown -h 1

if you don't want the computer to shutdown a minute after login you should think about typing

shutdown -c

in a terminal...

I don't know what you want to do exactly but this sounds like a clumsy way to deal with shutdowns and restart, it could get annoying I guess.


That particular Acer netbook is running dual graphics which are both enabled at boot causing your laptop to heat up considerably and the battery to drain quicker...  You could install Bunblebee which gives you the option of enabling either the Intel or Nvidia graphics on it's own saving you power...

https://wiki.ubuntu.com/Bumblebee


File explorer: cannot open a folder like a tree in Ubuntu 13.04

As noted in this blog post, that feature (along with many others like compact mode) have been removed in 13.04 and there are no options to re-enable them. You will have to find and install an alternate file browser - there are several listed here in this question.


Numeric Keypad not working after sign In

I too had the same problem once. Solve it here by

  system settings --> universal access --> pointing and clicking

Here uncheck the option "Control the pointer using Keypad"


Extra animation plugins are missing in CompizConfig Settings Manager! (Ubuntu 13.04)

compiz-plugin-extras is a transitional dummy package. It does not contain the plugin(s) that you're looking for. It's more or less an empty package, only there to ensure a clean upgrade.

You will need to install the compiz-plugins package. (Ubuntu 13.04 does not install this package - it only installs the compiz-plugin-defaults package.)

After installing the compiz-plugins package, use CompizConfig Settings Manager to enable/disable and/or to change the default configuration of the extra plugin(s) that came with the package.

Logout, login to make Compiz use the new plugin(s) and changed settings.


Good news! I found a solution
It seems to be that this is issue is reported in Ubuntu kernel 5.3.0-41 and -42, you can go into details in this Bug report
Anyway the easiest way to fix it is to:

Edit /etc/modprobe.d/alsa-base.conf as root and add options snd-hda-intel dmic_detect=0 at the end of this file by writing this on the terminal:
echo "options snd-hda-intel dmic_detect=0" | sudo tee -a /etc/modprobe.d/alsa-base.conf

Edit /etc/modprobe.d/blacklist.conf as root and add blacklist snd_soc_skl at the end of the file by writing this on the terminal:
echo "blacklist snd_soc_skl" | sudo tee -a /etc/modprobe.d/blacklist.conf

Restart the computer


How to link a c++ program to jvm (java virtual machine)?

You should be able to use LD_LIBRARY_PATH, however you will need to be sure to use the same path as you gave in the Makefile linker command, i.e.

LD_LIBRARY_PATH=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server

(FWIW you don't need -L/usr/bin/java in the linker command.)

You can check that the path is correct using ldd ex.

LD_LIBRARY_PATH=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server ldd ./searchEngineCpp

For a more permanent solution, you could add a file to the /etc/ld.so.conf.d/ directory, and then run ldconfig to update the dynamic linker cache. The name is not important so long as it's meaningful to you. For example:

echo '/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server' |
  sudo tee -a /etc/ld.so.conf.d/java-8-openjdk-amd64.conf

sudo ldconfig


How to install LibreOffice 5.0 in Ubuntu?

Simply use the official PPA :
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update

Option 1 : You don't have libreoffice yet :
Open a terminal (Ctrl+Alt+T) and run:
sudo apt-get install libreoffice

Or install using Ubuntu Software center :

Option 2 : You already have an old version of LibreOffice (4.x) :
Open a terminal (Ctrl+Alt+T) and run:
sudo apt-get upgrade


Cannot install Pulseaudio after upgrade to 18.04

The error speaks itself, the missing dependency / library is libpulse which can be found in libpulse-dev package.

First purge it by (So that obsolete installation is deleted) :

sudo apt purge libpulse-dev

And then install it :

sudo apt install libpulse-dev

And then try installing pulseaudio.


Is there a way to have one app.service in systemd start multiple independent app.service units?

Welcome to Ask Ubuntu.

This is one uses of systemd .targets.

There's already an answer to this question in the StackExchange network at How to create a virtual systemd service to stop/start several instances together?


To remove an icon from the Launcher, just right click on an icon and choose "Unlock from Launcher".

There are two ways to add an icon to the Launcher:

Open the program, right click on its icon, and choose "Lock to Launcher"
Open the Dash, search for the program, and drag its icon to the Launcher.


Overview
Mono provides the core compatibility API for the .Net framework.
The version in Natty (v2.6.7) has support for both Visual Basic & C# version 2,3 & partial API support for v4.
This also includes a VB .Net compiler & the runtime compiler.  The other members of the family, j# and f# are not supported in terms of development.  Obviously - their compiled variants are byte compatible with the rest of the .Net family.
Windows Forms up-to version 2 is supported - source
The next version of Ubuntu - 11.10 - will come with mono 2.10 which has virtually complete .Net v4 support
Mono Example Usage
An example of a .Net application which I use that runs without issue on Ubuntu is Keepass 2
You run the compiled .exe [it was created under windows] using mono i.e.
mono Keepass.exe

Developing
To develop under Ubuntu, I would have a look at the Mono Develop project - an IDE based environment - search for MonoDevelop in the Software Center.
Installing
Take a closer look at the suggested Add-Ons - choose the Add-Ons in the area that you will be developing in.


Macbook Pro 5.5 brightness settings work, are remembered, but are not used on startup

have you tried to set up manually in xrandr?
Just try this one: to set brightness as 0.8 type this command in ~/.xprofile (make this file if it is not available yet)

xrandr --output LVDS1 --brightness 0.8

The code above is to set the main monitor (LVDS1) brightness to be 0.8. Just change it depend on your needs. Then, restart your mac and let see..


How can I find and edit multiple lines and replace them using sed on nginx/sites-available/default

Really, you can't ...

sed can match patterns and edit your data from that, but it really can't see the difference between comment and command lines.

Since it is such a small file, it is much easier to open it in some editor and do the editing manually - use vi, nano, gedit or whatever is your favorite.


Most simple way I know of: wget -r URL_OF_PAGE. Default recursion depth is 5. More info can be found here.

Related questions on AU: download-website-and-make-it-searchable


"ALERT! /dev/mapper/ubuntu--vg-root does not exist "

It seems your disks are fine and so it looks like somehow you have ended up with an initramfs has been made without lvm support.

try adding a new kernel and check the setup process closely for errors


how to check network card bonding speed in ubuntu 10.04

It's completely related to your bonding strategy..
that speed only shows the maximum connection speed between network adapters in local network.and most of the time it's not true!

Based on bond-mode you selected within /etc/network/interfaces and description of balance-rr in ubuntu documents ,this mode is for Transmit packets in sequential order from the first available slave through the last. This mode provides load balancing and fault tolerance.
It depends on the way you request packets and accessibility of each interface or route to that point in network.take a look at this documentation .


Try opening a terminal and typing the following commands:

sudo apt-get remove java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Now, to ensure you have the latest java, in the terminal type:

java -version

It should pull up something to this effect:

java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Now, locate your Minecraft.jar file, right-click it, go to "Properties," then the "Permissions" tab, and MAKE SURE THE "MARKED AS EXECUTABLE" BOX IS CHECKED!, then go to the "Open With" tab and search for Oracle Java 7 Runtime and select "Set as default."

Now close the Properties window, right-click Minecraft.jar and make sure the top line is "Open With Oracle Java 7 Runtime."

Hope this helps!  ^-^


How can I fix 'Unable to load: nvidia-installer ncurses v6 user interface'?

On my system (Ubuntu), the "/usr/lib/nvidia/pre-install" file does nothing except for running exit 1. A comment above the exit 1 says "Trigger an error exit status to prevent the installer from overwriting Ubuntu's nvidia packages."

So, the pre-install script is designed to fail. It only serves to require the user to acknowledge before proceeding. So @steeldriver's comment above, "I doubt that message indicates a critical error" -- is correct.

In my view, this is a confusing way to craft an installer. I would hope that Nvidia could change the script to be more intuitive.


What's the point of dnsmasq in NetworkManager?

The point is that switching nameservers is annoying. /etc/resolv.conf only gets read once when you start an application (technically when you do the first lookup), so if you change nameservers (because you moved from wireless to wired to 3g and back etc.), you will need to restart applications that need to look up names (such as browsers).

This is mitigated by using the local resolver, which does respond to these changes in a timely fashion, allowing applications to remain stupid and only query the nameserver on localhost.


Python is installed by default in Ubuntu. Open a terminal by pressing Ctrl-Alt-T shortcut and type python to enter it's interactive shell. You don't need to install anything.

The python shell will look something like this: (the version number won't match since I'm on 12.04)

Python 2.7.3 (default, Aug  1 2012, 05:16:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


Yes.  Open Systems settings then click "Mouse and Touchpad"

Open the touchpad tab and then enable both "two finger scrolling" and "horizontal scrolling"

I actually disabled this feature after trying it for a while because I found it annoying if the screen scrolled horizontally when all I wanted was a vertical scroll.


Any way to delete file from guest session?

You can clean up spurious large files in recovery mode, which doesn't require you to log in with your normal user account.

Boot your computer in Ubuntu's recovery mode. Mount the file system(s) as described in steps 8 and 9. In particular, mount /var, if it's not part of the root file system. (If you don't know what that means, it probably doesn't apply to you.)
Enter and run the following commands to delete the content of /var/tmp:

shopt -s dotglob
rm -r /var/tmp/*

(If the shell doesn't understand shopt, just leave it and skip to the next command.)

A more portable alternative would be:

find /var/tmp -mindepth 1 -delete

Reboot, e. g. with the command

reboot

On another note, I'm a bit confused, that the startup scripts don't take care of cleansing /var/tmp during boot. Per the specification, applications mustn't expect anything in there to survive a reboot anyway. Or do these statements only apply to /tmp? Maybe someone can clear that up in the comments or through an edit.


How to stop auto update and see how much space each update would take?

If you open the terminal and update that way, you will see how much data it takes and then, answer Y(yes) or N(no) to accept or reject the upgrades.

You can google how to use the terminal, very simple actually. Plus you'll be proud of yourself!


Error installing libgimp2.0, can't fix broken install cause GIMP and XSane conflict?

force removing the conflicting package (assumed to be libgimp3.0) by

sudo dpkg --purge --force-all libgimp3.0

then install the package again by

sudo apt-get install -f


It seems to be an issue with the auto-login.  One way to fix this is by disabling auto-login from the command prompt:

From the login screen hit <Ctrl> + <Alt> + <F4>
Login through the command prompt input: sudo nano /etc/gdm3/custom.conf

Line number 5 and 6 of custom.conf should be:

AutomaticLoginEnable=true
AutomaticLogin=[username]

where, [username] is the name of the user for auto-login.  Change this to:

#AutomaticLoginEnable=true
#AutomaticLogin=[username]

Hit <Ctrl> + S to save, then reboot by hitting <Ctrl> + <Alt> + <F1> and selecting restart from the login menu.


System restored from a tar file. Will the previously excluded folders be deleted after the restoration?

No, they will not be deleted. In general, tar extraction will erase a file or directory only if it is overwriting it with a stored one.


NVIDIA Drivers problem with MX 150 in Kubuntu 18.04

Updating to Kubuntu 18.10 fixed the issue


Which architecture should I install on Samsung N145 Plus?

I would recommend that you install Lubutnu.  Just to give you an idea, I have a Pentuim 3 computer with 768MB RAM, and 8MB built-in VGA.  I have tried running Ubuntu 12.04, and it installed, and ran OK.  To me it was very slow.  I have installed Lubuntu 11.10, and it runs perfect.  Well having said that, and the fact that your machine specs are far more better, I would recommend that you take a look at lubuntu.

Click Here for Ubuntu system requirements

Click Here For Lubuntu system requirements


How can I change the percent of screen brightness that changes every time I press the shortcut?

From bug 207473 "Screen brightness double level changes on Dell laptops".

If your problem is an error in hal or acpid you can circumvent it by adding blacklist video in /etc/modprobe.d/blacklist.
Testing can be done by issuing:

/etc/init.d/acpid stop
/etc/init.d/hal stop

If this works 2 programs are changing the brightness level at the same time (thus doubling it) and you should add yourself to the affected people on the bug too (it's old and never got fixed it seems?).


As @sudodus pointed out, I needed to treat my iso with isohybrid.


Upgrading to python 2.7.5 on Ubuntu 12.04

Installing from source can be done, of course, but I would be hesitant to upgrade my Ubuntu systems' python package from source for several reasons:

Doing so could break the system by doing a straight compile from source(I'm not exactly certain how Ubuntu customizes their Python package builds).
I would be concerned that there might be issues with using modules from the repositories going forward.

There is a PPA that looks active(the 2.7.x train was last built in April of this year), but the PPA doesn't yet have a 2.7.5 build. You may want to ping the maintainer and see what their plans are for future builds and if they are going to include one for 2.7.5. If possible, I would recommend this over installing from source. As with any new software, I would recommending building this out on a test system first.

Another option is to use a sandbox(pyenv) to run any new untested software package. A straight installation onto your system could adversely impact the operation of your machine.

The package pyenv will allow one to install a non-system Python version on your box without impacting the main Python package installed on your machine( Again: Your system is dependent on the currently installed version of Python and upgrading it could break your system). Previously, Pythonbrew was recommended for isolating python packages from the system, but that has since been deprecated and superseded by the pyenv package.

The pyenv package provides the following functionality:

Lets you change the global Python version on a per-user basis.
Provides support for per-project Python versions.
Allows you to override the Python version with an environment variable.
Search commands from multiple versions of Python at a time.

Installation

Check out pyenv into ~/.pyenv.

git clone git://github.com/yyuu/pyenv.git .pyenv

Add ~/.pyenv/bin to your $PATH for access to the pyenv command-line utility.

echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bash_profile

Zsh note: Modify your ~/.zshenv file instead of ~/.bash_profile.
Add pyenv init to your shell to enable shims and auto-completion.

echo 'eval "$(pyenv init -)"' >> ~/.bash_profile

Zsh note: Modify your ~/.zshenv file instead of ~/.bash_profile.
Restart your shell so the path changes take effect. You can now begin using pyenv.

exec $SHELL

Install Python versions into ~/.pyenv/versions. For example, to install Python 2.7.5, download and unpack the source, then run:

pyenv install 2.7.5

NOTE If you need to pass configuration options to build from source, please use CONFIGURE_OPTS environment variable.
Rebuild the shim binaries. You should do this any time you install a new Python binary (for example, when installing a new Python version, or when installing a package that provides a binary).

pyenv rehash


Bidirectional drag'n drop is not working with VirtualBox and ubuntu 14.04

"Drag and Drop" was introduced with the guest additions in Virtual Box 5.0. with some limitations:

  At the moment drag and drop is implemented for Windows- and X-Windows-based systems, both, on host and guest side. As X-Windows sports different drag and drop protocols only the most used one, XDND, is supported for now.VirtualBox Manual

In addition to that only drag & drop of simple text, or files and directories of the file manager not running with administrative permissions is supported.

Preliminary experimental versions of Virtual Box "Drag'N'Drop" to a Linux guest only were introduced in version 4.2 .


Application to reproduce Mac OS X full screen mode?

Can you try pressing F11?

Usually, most applications will utilize the Full Screen mode using F11 or CTRL + F.


Keyboard switcher in Kubuntu, show language instead of country?

This can be configured when adding the keyboard layout.

Type "Keyboard" in the Kubuntu search bar, and select the first entry.
Switch to the "Layouts" tab
Put a tick in "Configure Layouts"
Click on "+ Add"
Choose a language
In the "Label" text box, clear the default label, and and your own. For instance, you can label English as "en"
Click on "Okay" at the bottom, and you're done. Now your language will be called as you chose.


APT-GET can't see any program to install when it isn't in repositories base.

You've forgotten the first and second line ;-)

sudo add-apt-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio

Hope it help


See 'update', below.
Thanks for asking this question! You may have seen the altgr-intl layout, which enables you to access accented characters on a US qwerty keyboard. This was based on the Microsoft International Keyboard and that wasn't my smartest choice (as Microsoft included some exotic letters like ð (eth) that nobody uses).
So, we tried to make a (new) US layout, that supports all Western European languages (in the sense that all accented characters in those languages are available through one AltGr keystroke). We called it altgr-weur.
Right now, the project is ready but before I offer this to be included in the already numerous layouts, I'd like people to test it. A few are working on it, but no Danes yet.
So, please install the layout and let me know if it suits your needs. I'm pretty confident, after all the letter frequency analysis we went through.
The special characters in Danish are Å (a-overring) on AltGr-z q, Ø (o-slash) on AltGr-t and Æ (...) on AltGr-x w.
Update: after some discussion, we decided to re-think our layout and changed quite a bit (early 2021). The link to the (updated) website still works.


How to mount an image file without root?

You can use udiskctl:

$ udisksctl loop-setup --file your_file.iso
Mapped file your_file.iso as /dev/loop6.

Now, your file is mapped to a block device, and you can mount it as:

$ udisksctl mount -b /dev/loop6
Mounted /dev/loop6 at /media/user/your_file.

when you're done, unmount is using:

$ udisksctl unmount -b /dev/loop6
Unmounted /dev/loop6.

finally, delete it by:

$ udisksctl loop-delete -b /dev/loop6

Have fun!


Unable to view my login screen and terminal screen

Try to reconfigure lightdm, it may fix your issue

Open terminal(CTRL+ALT+T) and execute following command:

sudo dpkg-reconfigre lightdm

Then chose lightdm from the list.
Restart your system:

sudo reboot now

It may fix your issue. If doesn't fix then follow first remove Wine completely and repeat above step. Since after installing Wine you got the issue, removing it may help you. Here are the steps to completely remove wine:

sudo apt-get autoremove wine
sudo apt-get --purge remove wine
sudo apt-get autoclean
sudo apt-get autoremove
sudo find / | grep wine | grep -v '/var/cache/apt/archives/' | sudo xargs rm -r -f


Service zfs-import is masked and unmask does not help Ubuntu 19.10

From tags I see that you are using Ubuntu 19.10 and so as I. From /etc/default/zfs, we can learn that zfs in 19.10 does not use  zpool.conf to make pools persistent between reboots.

In this great documentation I learned about ZED service.
To make your pool automount you should:

import your pool

# systemctl enable zfs-zed.service
# systemctl enable zfs.target
# systemctl start zfs-zed.service

You need to create an empty file named after your pool in /etc/zfs/zfs-list.cache directory

If it is empty then check that zfs-zed.service is running and do:

zfs set canmount=off my-pool
zfs set canmount=off my-pool

And do not forget to chown/chmod your mount directory for non-superuser usage


Custom GUI with few lines like AutoHotkey

Could not find any, so I did one myself. Tcl/Tk is the closest I could find, however it is (as the name suggests) Tcl code.

So, it is called TkBash and is a bash wrapper around the tcl code. Here is my attempt to recreate the image from the question:

#!/bin/bash
tkbash 1 window --theme clam --w 290 -h 200
tkbash 1 --tkcommand ". configure -background lightblue"
tkbash 1 label label1 -x 10 -y 10 -w 80 -h 20 -t "This is a gui."
tkbash 1 label label2 -x 140 -y 10 -w 30 -h 15 -t "Hello!"
tkbash 1 --tkcommand "font create myfont -family Helvetica -size 8"
tkbash 1 label2 --tkcommand "configure -font myfont"
tkbash 1 select select1 -x 10 -y 30 -w 80 -h 20 -t "Black|White|Green||Blue"
tkbash 1 label label3 -x 95 -y 30 -w 120 -h 20
tkbash 1 button button1 -x 245 -y 25 -w 30 -h 30 -t "ok" -c "
    selected_color=\"\$(tkbash 1 get select1)\"
    tkbash 1 label3 -t \"You selected \$selected_color\""
tkbash 1 image image1 -x 10 -y 60 -w 125 -h 120 --image "kitten.png"


Mounting filesystem with special user id set

It's not possible to force an owner on a disk with an ext4 filesystem. Only filesystems which do not support Linux permissions like fat have an attribute for ownership/groupship: uid=value and gid=value. See the manual page on mount.

You should change the owner on the mounted filesystem as in:

sudo chown johndoe /foo/bar/baz

If you need to change the permissions recursively:

sudo chown -R johndoe /foo/bar/baz

...and if the group needs to be changed to johndoe as well:

sudo chown -R johndoe: /foo/bar/baz


Installing Ubuntu by writing on the Hard Drive

Interesting concept - I've never tried it myself but this site netboot seems to have the option you want


The system is running in low graphics mode after Photorec filled up the HDD

I'm not familiar with the Photorec thing, but have you tried to make system repairs by means of the Recovery GRUB menu...? If you don't see the GRUB menu, try hitting Esc while your PC is booting in order to display it...


What functionality does the Ubuntu Restricted Extras provide?

To see this a bit more through:

sudo apt-get install ubuntu-restricted-extras

You'll get all that needed to play any content of media, though the most important ones.

The items that you will install include the following (and you can also install them manually with apt-get install e.g.:

Flashplugin-installer

gstreamer-ffmpeg

gstreamer-pitfdll

(helps with Windows binary codec play)

gstreamer-plugins-bad

gstreamer-plugins-bad-multiverse

gstreamer-plugins-ugly

gstreamer-plugins-ugly-multiverse

icedtea6-plugin

(java browser plugin for java applets or other even your choice I use everything from Oracle Java for example)

libavcodec-extra-54

(linux ffmpeg codec – used in majority of files, if you are interested in streaming or transcoding, you should additionnally install libavcodec-extra-54)

libmp4v2-2

ttf-mscorefonts-installer (Microsoft fonts for better display)

Also I installed manually:

sudo apt-get install lame flac

But I just needed those because of doing some encodings/decodings they give a bit more advanced options when ripping or converting audios e.g.

And one more alternative is VLC media player it has its own set of codecs and you can basically play what you desire.

You can install it with:

sudo apt-get install vlc browser-plugin-vlc

or with this official ppa:

sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install vlc


Need help extracting 280 rar files located within 280 folders

You can use a pipe with xargs command like that:

find . -name *.rar|xargs -I{} unrar {}

find shows the relative path for the rar files. xargs execute for each one unrar


Lenovo S1 Yoga Lid Switch Disables Keybord and Trackpad

Completely shutting down, and closing the lid seems to have reset the lid switch.
I am sure there is a better more complete solution to fix this, but for now, this is working for me.


Dual booting kubuntu and windows 7 on two computers

There is a not a really good way to "cut the fat" off of windows. Since it's not open source, you can't really change anything. If I were you, it would allocate about 60-80GBs to windows, since it is a much larger intall, and have the rest of the space for Kubuntu.

As far as the activation key goes, that is only good on one computer (more specifically, it ties to the motherboard, but that is more complicated) so if you want windows, you have to get another copy (somehow, legally or not). As far as accessing files from both OSes, you cant access programs or things like that (so you will have to install them twice, once for each OS), but depending on the format/encoding of the drive, you could be able to access files like .mp4 and .txt or others from both OSes.

Let me know if this answered all of your questions or not.


Booting Ubuntu from a USB device even when BIOS have no option for doing so

You create a PLoP Boot Manager CD that can be used to boot from your USB Flash Drive. This is useful for computer systems that do not support booting from USB in BIOS.  The PLoP Boot Manager works by first loading essential USB drivers,  CD/DVD drivers, and Hard Disk Drivers. The user is then presented with a (Boot Menu) menu of possible boot devices detected by PLoP. The user can then proceed to select a device to try and boot from.

How to Create a PLoP Boot Manager CD

Download PLoP Boot manager, and extract the files from the Zip to
your Desktop
Burn the plpbt.iso to a CD using your favorite CD/DVD burning
software
Insert your Newly created PLoP Boot CD and your  pre-prepared Linux
USB Flash Drive
Reboot your PC and set your System BIOS to boot from the CD
If all goes as planned, you should now be presented with an alternate
Boot Manager similar to the one pictured above that can be used to
boot your USB Flash Drive or other device.

Note: In some cases the Flash Drive will actually appear as a hard disk.

source and official site


OK... it was sent to my PPA, so I think that I was wrong. Sorry!


How can I compile & run assembly in Ubuntu 18.04?

In all currently supported versions of Ubuntu open the terminal and type:

sudo apt install as31 nasm

as31: Intel 8031/8051 assembler
This is a fast, simple, easy to use Intel 8031/8051 assembler.

nasm: General-purpose x86 assembler
Netwide Assembler. NASM will currently output flat-form binary files, a.out, COFF and ELF Unix object files, and Microsoft 16-bit DOS and Win32 object files.

This is the code for an assembly language program that prints Hello world.

section     .text
global      _start
_start:
    mov     edx,len
    mov     ecx,msg
    mov     ebx,1
    mov     eax,4
    int     0x80
    mov     eax,1
    int     0x80
section     .data
msg     db  'Hello world',0xa
len     equ $ - msg

If you are using NASM in Ubuntu 18.04, the commands to compile and run an .asm file named hello.asm are:

nasm -f elf64 hello.asm # assemble the program
ld -s -o hello hello.o # link the object file nasm produced into an executable file
./hello # hello is an executable file


Protocol handler setting to automatically open protocol with xdg-open

A policy was introduced called "ExternalProtocolDialogShowAlwaysOpenCheckbox" (https://cloud.google.com/docs/chrome-enterprise/policies/?policy=ExternalProtocolDialogShowAlwaysOpenCheckbox) which defaults to false.

There is documentation on how to set it here (https://support.google.com/chrome/a/answer/187202?hl=en&ref_topic=9026943) but the what worked for me is this:

Make the managed policies directory: sudo mkdir -p /etc/opt/chrome/policies/managed/
Edit the managed policies: sudo nano /etc/opt/chrome/policies/managed/managed_policies.json
Put in the new policy setting:

{
  "ExternalProtocolDialogShowAlwaysOpenCheckbox": true
}

Close and restart Chrome.
You will now see the checkbox and it can be checked like this:


Which kernel should I update to Ubuntu 18.04?

Don't install a mainline kernel from UKUU. It won't get updates and is not officially supported. UKUU kernels are for testing purposes, or when there is no Ubuntu kernel with a specific feature or fix.

You can install an Ubuntu HWE kernel using:

sudo apt install linux-generic-hwe-18.04

That will be kernel 5.0.

If you initially installed 18.04.2 instead of 18.04, you will have it already.


Ubuntu installed on USB stick - are such installations limited to run on the same machine?

A portable installed system, that boots both in UEFI and BIOS mode is described in this link,

Installed system that boots from UEFI and BIOS mode

There are more details at the following link,

help.ubuntu.com/community/Installation/UEFI-and-BIOS

Q: Now, during the installation, I noticed that the wizard configures some hardware-related elements. Does this mean that such installations are limited to run on the same machine as where the install wizard is executed?

A: No. It is portable, but not as portable as a persistent live drive.

Q: ... because persistent space is limited.

A: You can store the persistence in a partition, which is limited only by the size of the drive. With a GUID partition table (GPT) it can be several terabytes. mkusb can install such persistent live systems.

Comments: But there are other drawbacks with a persistent live system. It is less stable compared to an installed system, and you cannot use a new kernel because the kernel is started before the overlay for persistence is started. Also, I would recommend to install program packages, but not update and upgrade the persistent live system. Instead you should install a new persistent live system from a current iso file.

See also the following links,

askubuntu.com/questions/936633/ubuntu-live-from-usb-with-full-persistence-and-ntfs/936641#936641

Persistent live versus installed Ubuntu in the USB flash drive

Try Ubuntu (Kubuntu, Lubuntu, Xubuntu, ...) before installing it

Edit: A USB 3 SSD flash drive has much faster flash hardware than a standard USB pendrive, and there are USB 3 pendrives with specified high read/write performance. The market changes, so it is worth checking on the internet, which brand and model to select to get the best buy 'today'. See this link about fast USB 3 pendrives,

help.ubuntu.com/community/Installation/FromUSBStick#Notes_about_speed


Can I keep my desktop settings exactly as they are now if I upgrade?

So long as you upgrade via the internet, and use the same desktop environment to log in, your settings will be preserved.

The settings are stored in your home folder so once this is not deleted you will be okay.
If you do a fresh install however, you will lose your settings.


Fresh install /usr/share/X11/xkb/ folder online?

If you only edited pre-existing files in /usr/share/X11/xkb/ (rather than adding new files), then I think it should be sufficient to re-install the xkb-data package - either using the Software application, or from the command line

sudo apt install --reinstall xkb-data

If you still believe you need to find a copy online, then you can search by package name at packages.ubuntu.com and select the appropriate package for your version from there.


Why do I get this error and what version will work?

I had something similar and I had to go into bios and make sure virtualization was turned on and secure compute was turned off.  My system is Intel not AMD so I am not sure if you have the same options.


This is not exactly as you said. I had this problem in the past. Gnome-classic loads the gnome-classic environment with effects. Sometimes is not disable the Unity plugin (it should do) and you have a gnome-classic environment with Unity Launcher.

Try 2 things.

First try to re-install gnome-classic environment with this command

sudo apt-get install --reinstall gnome-panel

OR

Install the compizconfig-settings-manager with this command

sudo apt-get install compizconfig-settings-manager

Open it via terminal with this command (or you can call it from Dash)

ccsm

and disable manually the Unity Plugin. (but this is just a workaround)


Did You try editing xorg.conf in such manner that You added the second monitor manually?
(try this fr reference)


This is a packaging issue, and a bug has been filed here. This means that you can (safely) have only one of the two packages installed at any given time.

To keep libopenni-sensor-pointclouds0, run sudo dpkg --remove --force-all libopenni-sensor-primesense0 and sudo apt-get install libopenni-sensor-pointclouds0.

To keep libopenni-sensor-primesense0, run sudo dpkg --remove --force-all libopenni-sensor-pointclouds0 and sudo dpkg -i /var/cache/apt/archives/libopenni-sensor-primesense0_5.1.0.41-3+trusty1_amd64.deb.

If there are any other packages that depend on these two packages, you'll need to remove those.