How to copy terminal command in clipboard without using mouse?

You can use bash’s History Expansion, to copy the previous command line to your clipboard without performing command substitution, expansions etc. do:

echo !!:q | xclip -sel clip # or respectively
echo !!:q | xsel -ib

!! is a shortcut for !-1, referring to the previous command. Colon : precedes the modifier q, which lets the expansion quote the substituted words with single quotes to prevent further substitutions.

Example run

$ uname -r                        # run your command
4.10.0-35-generic
$ echo !!:q | xclip -sel clip     # copy the previous command to clipboard
echo 'uname -r' | xclip -sel clip # this line shows what’s done
$ xclip -sel clip -o              # print clipboard content (just for testing)
uname -r
$ $(xclip -sel clip -o)           # run command stored in clipboard (just for testing)
4.10.0-35-generic

To simplify this you can create an alias or set a keyboard shortcut in the settings. Read man bash/HISTORY EXPANSION and man history to learn more about history expansion.


Final solution was to disable systemd-resolved, enable dnsmasq and set the network-manager to use resolvconf to update the /etc/resolv.conf. That seems to work in all instances of network configuration for me.


How to display screen by screen in terminal

Pipe the command to more:

<command> | more

or if you want to go up and down the text (using arrow keys), pipe it to less:

<command> | less


Not 16.04 specific

The issue you are facing is not exclusive to 16.04, it happens on many Ubuntu versions.

How to solve

Reading your output of xrandr, and assuming I made no typo, the following command should arrange your screens the way you set it up:

xrandr --output DP2-2 --auto --pos 0x0 --output DP2-1 --auto --pos 2560x0 --output eDP1 --auto --pos 4240x0

The quickest and easiest solution is to add it to a shortcut key: Settings > Keyboard > Application Shortcuts. Then press the shortcut after the screens are connected.

Explanation

From the output of xrandr, we can see the information on the three connected screens:

eDP1 connected 2560x1440+4240+0
DP2-1 connected 1680x1050+2560+0
DP2-2 connected primary 2560x1440+0+0

In the last section(s): 2560x1440+4240+0, in the part: +4240+0, we can see the position of the screen in the whole picture of combined screens (x,y). From left to right, the screens then are obviously arranged like:

DP2-2 +0+0 | DP2-1 +2560+0 | eDP1 +4240+0

If this arrangement is not remembered automatically, we can set it up with the command I added at the beginning of this answer.

The option --auto I added, since you mentioned having to also activate the screens.

EDIT

As requested, a small bash script to run in the background to make the setup if the screens are connected:

#!/bin/bash

let "target = 3"
swon=false

function nscreens {
    curr=$(xrandr | grep " connected" | wc -l)
}

function setup_scr {
    xrandr --output DP2-1 --auto --pos 0x0 \
    --output DP2-2 --auto --pos 2560x0 \
    --output eDP1 --auto --pos 4240x0
}

while true
do
  sleep 4
  nscreens
  if [ "$curr" -eq "$target" ] && [ "$swon" == false ]
  then
    setup_scr
    swon=true
  elif [ "$curr" -ne "$target" ] && [ "$swon" == true ]
  then
    swon=false
  fi
done

Copy the script into an empty file, save it as setup_scr.sh, make it executable
Test- run it in a terminal with the command:

/path/to/setup_scr.sh

connect/disconnect the screens
if it works fine, add it to startup applications: Dash > Startup Applications > Add. Add the command:

/bin/bash -c "sleep 15 && /path/to/setup_scr.sh"

Explanation

Once per 4 seconds, the script counts the number of connected screens. If it equals 3, it runs the setup a single time, remembering it did set the screens by switching the value of "swon" (switched on) to true.

Then if the number of screens is no longer equal to 3, "swon" is set to false again, and so on.

Note

I tested the script on my two- screen setup, and it worked fine, however, there is always the possibility I made a typo somewhere, and obviously I could not test it on your system. In case of an error, please mention.


How can I remove an updated hplip completely and replace it with the version from Ubuntu repos in 18.04?

You should definitely follow the guide here that has the proper steps to avoid my issues.

When installing or removing hplip on Ubuntu, there are actually 2 separate packages: hplip and hplip-gui. You have to respectively 1) install / 2) remove both packages. I had missed the very existence of the hplip-gui package completely at first, which is most probably the main reason for my issue.

I realized this too late, having already done step 1) of the fix below.

So what I actually had to do that fixed my issue the ugly way was to 1) follow the guide to uninstall hplip on HP developer portal 2) since reinstalling hplip and hplip-gui from Ubuntu repo did not work after this step (hp-setup was missing even after installation because of deleting a few folders as part of step 1), I had to download the exact same hplip version as in the repo directly from HP developer portal (sourceforge) and install it.

This fixed my issue, but I have reason to believe that simply uninstalling / reinstalling both hplip and hplip-gui packages would have solved it as well, so anyone in the same situation should definitely start by doing this to avoid having to do what I did.


Lightweight Ubuntu for networking purposes

You can use the Ubuntu Server installer, if you select during the installation to install servers later on it will install the bare minimal to have a running Ubuntu installation without having to go thru manual configurations.

I would recommend this over other solutions because:

It will leave you with a running system with minimal services running
Minimal configuration necessary, installer will do the work for you
Very easy to install
Without running many service the memory / CPU footprint in the host
will be minimal

The performance of the VMs will depend on the host specs but since you have no GUI and almost no services running (unless you want them installed and running) the necessary specs for the host will be very low.

You will be able to run a few of these inside VMs on a normal day to day computer (for testing / development purposes ofc).


How can I play a rmvb file in ubuntu trusty?

If VLC doesn't play it, nothing will play it!  (It's probably a corrupt file)

If you could post the file itself somewhere, I could have a look at it with a hex editor, or if you would like you can do that yourself by:

sudo apt-get install ghex
ghex /path/to/file

and then comparing the first screen you see in ghex (the header of the file) to another .rmvb file.


How to cherry pick a package dependency when there are several providers

You can prevent package installation adding a - (minus) sign after the package name, for example:

sudo apt-get install wordpress nginx-full php5 mariadb-client php5-mysqlnd apache2-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'apache2' is not installed, so not removed
The following NEW packages will be installed:
  libdbd-mysql-perl libjs-cropper libjs-prototype libjs-scriptaculous
  libmariadbclient18 libphp-phpmailer libphp-snoopy mariadb-client
  mariadb-client-5.5 mariadb-client-core-5.5 mariadb-common nginx-common
  nginx-full php5 php5-cgi php5-gd php5-mysqlnd wordpress wordpress-l10n
  wordpress-theme-twentyfourteen wordpress-theme-twentytwelve
0 upgraded, 21 newly installed, 0 to remove and 24 not upgraded.

Of course, you need to select which package will replace it and not using any of the dependencies that also depends on apache like libapache2-mod-php5.

The above example was for wordpress, for drupal:

sudo apt-get install drupal7 nginx-full apache2-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'apache2' is not installed, so not removed
The following extra packages will be installed:
  dbconfig-common libdbd-mysql-perl mysql-client mysql-client-5.5 mysql-server
  mysql-server-5.5 mysql-server-core-5.5 nginx-common php5 php5-cgi php5-gd
  php5-mysql wwwconfig-common
The following NEW packages will be installed:
  dbconfig-common drupal7 libdbd-mysql-perl mysql-client mysql-client-5.5
  mysql-server mysql-server-5.5 mysql-server-core-5.5 nginx-common nginx-full
  php5 php5-cgi php5-gd php5-mysql wwwconfig-common
0 upgraded, 15 newly installed, 0 to remove and 24 not upgraded.

You can modify it adding more packages if you like.


Inconsistent parent directory of all symlinks

Your shell remembers when you cd into a directory via a symlink and uses that information when you cd ... If you use bash or zsh you can execute the command set -P in order  to make cd behave the same as cp (i.e., make it ignore symbolic links so that  in your example cd .. would take you to /home/user, not /home/user/test).

Refer to this Unix & Linux SE question for more information including a hack to make cp behave like cd instead of the opposite.


How to change permission of a drive in an external hard disk?

If you want to gain ownership of a drive you can use the chown command:

sudo chown -R username:username /media/username/nameofdrive

This gives the user ownership over the drive without allowing permission to unauthorized users and -R makes this command recursive so that ownership also applies to all of the existing individual files on the drive as well and not just the drive itself.

You can also use -R to make chmod recursive as well.


I am not able change the themes. There is no .themes folder. And there are no my unity application and gnome application in software center

MyUnity is not in the Ubuntu Software Center. You must install it using apt-get. There is no .themes folder by default. You must create it and extract your themes packages there.


I usually avoid configuring xvfb and just use the xvfb-runtool to launch applications into xvfb.


Natural Scroll for touchpad in Lubuntu 17.10

1) go to "system settings"

2) click on "mouse & touchpad"

3) check the box saying "Natural Scrolling"

this should fix the problem


Problem with Hibernate on Ubuntu 11.10 slow

The bottle neck is that you have to write 8 GB of RAM to disk, worse yet you have to sort through 6 GB of swap to determine which data goes with what. Maybe try shrinking the swap partition (or removing it entirely, you have enough RAM) and see if that helps at all. Otherwise, we'll need to see some log files. man dmesg and man syslog

It could also be stubborn hardware. Hard to say at this point.


Do custom web-site cookie approvals override Firefox defaults re third-party cookies?

Firefox provides the facility to inspect local storage, including cookies:
Menu Bar>Tools>Web Developer>Storage Inspector

The Storage Inspector shows cookies loaded for the current web-page (with some limitation) https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector

On reviewing pages loaded when in private browsing mode, only original source (first party) cookies seem to be loaded, even though "I accept" manual approval was provided to the web-page for all its related cookies.


Has anyone been able to get a iMac iSight camera to work in Google Meet inside Chromium?

Do this from command line
sudo snap connect chromium:camera :camera

and comment if that worked for you ;)
Found it on Launchpad.


How to restore a "zeroed USB flash drive"?

I had a time when Ubuntu corrupted a flash drive, probably when I was trying to rename it.  At that time, I took the flash drive to a windows system then formatted it. The previous data was lost.


Does Aide compare against repo versions or only against my own files?

Aide compares against your own files.

From man aide (http://manpages.ubuntu.com/manpages/trusty/man1/aide.1.html) and the Aide manual (http://www.cs.tut.fi/~rammer/aide/manual.html):

"--init, -i   Initialize the database. You must initialize a database and move it to the appropriate place before you can use the --check command."

and

"Typically, a system administrator will create an AIDE database on a new system before it is brought onto the network. This first AIDE database is a snapshot of the system in it's normal state and the yardstick by which all subsequent updates and changes will be measured."


I play video games alot but I want to be able to use ubuntu for my surfing needs (for the security)

1: we can not correctly answer this. It is not only affected by your system but also by the amount of resources you will make available for the VM. A VM will cut down your resources but how much you will need to find out the hard way. Then there is the game itself. Some games work very will with a VM others are impossible to play. In general it is best to stick with the main OS for games. Games are resource hungry anyways.

2: So as explained with 1: My advice would be Windows with Ubuntu in VM. Games run better on the main OS. VM's will always cut into your resources.

A possible setup for trial purposes would be to install an OS and then install both Windows and Ubuntu and try if you can find a sweet spot where games run as good as you want in either of the VMs or if the main OS still is the best option.

The best security is done with a router (if talking about people trying getting access to your machine) and not with your OS so what OS is main and what OS is in a VM does not really matter then. Secondly comes common sense: do not visit shady websites (when talking about virusses and malicious programs).

Depending on the games you might also be able to use Ubuntu with wine. I play Guild Wars 2 using Ubuntu+wine. No guarantee all games work and most times it is a bit of work to get it working well but it might be an option.
In my own experience GW2 is about 10, 20% less good than when I play it on a Windows system. But this is not speed related but graphics related (graphics are a bit less).


How do I report a bug in te language support preferences?

try this in a terminal:

sudo apt-get install language-pack-nb language-pack-nb-base language-pack-gnome-nb language-pack-gnome-nb-base

this installs four packages. the latter two are only for the case you are using gnome. For KDE e.g. gnome should be replaced by kde.

After that you can hopefully select Bokmal language support.


how to install ubuntu without deleting my other drives?

First of all, do you have any Windows installation to your computer ?

If yes, you can partition it during Ubuntu installation.
You have to select "Something Else" when it asks you where to install Ubuntu.

Then, Ubuntu has a nice tool, with user friendly GUI to partition your hard disks.

Here is a screenshot of Ubuntu's partitioning tool -->


Diagnosing frozen screen in Ubuntu 11.10

Many users are disappointed of Ubuntu 11 with Unity desktop. It's still buggy and slow. If you feel everything is slow, downgrade to Ubuntu 10 which is the most usable version. I believe things will work fine in Ubuntu 12 which will be released in April. You can tryout Luninux 11.10, which uses Gnome 3 instead of Unity. Luninux is a MacOS like and developped from Ubuntu, but a better working OS(See below). Download --> http://luninuxos.com/?page_id=18


pd-extended package cant be found on ubuntu 14.10

Pure Data Extended hasn't been updated and is need of a new maintainer. Source: http://lists.puredata.info/pipermail/pd-list/2015-03/109361.html

If you want to install Pure Data Extended you have to manually install the version built for Ubuntu Trusty Tahir, which can be found here: http://apt.puredata.info/releases/dists/trusty/main/


Have Problem update and install most of new apps - 18.04.3 LTS

The latest Linux kernel headers in Ubuntu 18.04 is version linux-headers-4.15.0-96-generic. Open the terminal and type:

sudo apt autoremove # removes linux-headers-4.15.0-63-generic
sudo apt update
sudo apt upgrade


How to disable/hide all the activities during an Overview in Gnome?

This is not a valid answer per se, but a workaround until a real solution is found.

Just install the extension Start Overlay in Applications View. Now, whenever you press Super, Overview will open by default in Applications view (as if launched by Super+A, assuming default shortcuts). Now the CPU spikes and UI sluggishness will very less compared to stock.

ISSUES

There is quite a noticeable delay in actual appearance of the overview.
But it's not much of a problem because once you have pressed Super, you can just start typing the name of application you want to launch (even though the actual overview will be visible after a delay). All the typed letters will be caught by the overview when it is finally visible.
Sometimes when you open the Overview, all the icons will do the animation thingy... which again causes CPU spikes.

Come on! Someone please write an extension for blank overview!!!


I had the same problem, I think it's to do with Ubuntu not having the latest open source drivers.

If you click on this link and follow the instructions for open source it fixed my problems.

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade

How to Install The Latest AMD Radeon Drivers on Ubuntu 18.04 Bionic Beaver Linux


Ubuntu Budgie - panel displays while in Full-Screen mode

In Budgie 10.4 release, there is a stand alone settings application for Budgie Desktop. It provides option to set the visibility of panels.

See automatically hide option in Budgie Settings

Ubuntu Budgie 17.04 comes with Budgie Desktop 10.2.9. You can update to Budgie Desktop 10.4 using backports repository provided by Ubuntu Budgie team.

In command line, it can be done as follows:

sudo add-apt-repository ppa:ubuntubudgie/backports
sudo apt update
sudo apt install budgie-desktop

For more on installation of Budgie 10.4 on Ubuntu 16.04/16.10 and 17.04 see original blog post shared by Ubuntu Budgie team.


You should be able to install the windows drivers using ndiswrapper for this specific device.

But apparently

  there is no driver that will allow WPA
  encryption. You will have to run
  either using WEP or no encryption

For a guide on how to get your wireless adapter working, there is documentation in the Ubuntu Community Documentation


GNS3 executable is located in /usr/bin/gns3, so it may be launched by gns3 command.

Note: older version from official Ubuntu repository has icon in Education category.


List all package versions and install these exact versions on another system?

One way that you could do it would be to create a list file with the install commands.  The following command will create a file containing the commands telling apt-get what version of the application to install:

dpkg -l | tail -n +6 | awk '{print $2"="$3}' | while read pkg; do echo "sudo apt-get install $pkg" >> install_pkg; done

I put a command above to skip the first 6 lines of dpkg -l as those are information lines that turn into garbage lines.  I also didn't add the -y to the apt-get command so that it didn't automatically install an application that you didn't want installed.  I can leave that up to you. When I tested if this would work or not, I added in -s for simulate the install after the apt-get in the command and it seemed to have worked.

The command will create a file with lines that look like this that contains the package name and version to install (I truncated for a long list):

sudo apt-get install y-ppa-manager=2017.06.13-1~webupd8~0
sudo apt-get install yad=0.39.0-1~webupd8~xenial0
sudo apt-get install yelp=3.20.1-1ubuntu1~xenial1
sudo apt-get install yelp-xsl=3.20.1-1~ubuntu16.04.1~xenial1
sudo apt-get install youtube-screenlet=0.3.2+++~trusty1
sudo apt-get install zeitgeist=0.9.16-0ubuntu4
sudo apt-get install zeitgeist-core=0.9.16-0ubuntu4
sudo apt-get install zeitgeist-datahub=0.9.16-0ubuntu4
sudo apt-get install zenity=3.20.0-1~ubuntu16.04.1
sudo apt-get install zenity-common=3.20.0-1~ubuntu16.04.1
sudo apt-get install zip=3.0-11
sudo apt-get install zlib1g:amd64=1:1.2.8.dfsg-2ubuntu4.1
sudo apt-get install zlib1g:i386=1:1.2.8.dfsg-2ubuntu4.1
sudo apt-get install zlib1g-dev:amd64=1:1.2.8.dfsg-2ubuntu4.1
sudo apt-get install zsync=0.6.2-1ubuntu1

Then all you should have to do is to copy the file install_pkg that was created to the other system, given that all the PPAs on the other system match the system you are on, and run the following command to start the installation:

sh ./install_pkg

Hope this helps!


How can I set kernel parameters for a specific installation involving os-prober?

Copy the op-prober entry into 40_custom and edit to have the paramaters you want. Then turn off os-prober.

sudo cp -a /boot/grub/grub.cfg /boot/grub/grub.cfg.backup
gedit /boot/grub/grub.cfg

Copy them to and edit to have only entries you want:

gksudo gedit /etc/grub.d/40_custom

Then do:

sudo update-grub

If above works then turn off os-prober.

In /etc/default/grub I added this:

gksudo gedit /etc/default/grub

GRUB_DISABLE_OS_PROBER=true

or turn off executeable bit

sudo chmod a-x /etc/grub.d/30_os-prober
sudo update-grub


Help, error "dpkg: error processing archive /var/cache/apt/archives/webmin_1.820_all.deb (--unpack)"

Some process is listening on TCP port 10000 on your system, which means that other programs like Webmin can't listen on the same port at the same time. Unfortunately Webmin's installer script breaks if it can't listen on that port (imho the installer should succeed even if the installed service fails to run). The best solution is to find out what's listening on port 10000 and take it from there.


I've just installed Ubuntu from my memory stick, but it's not on my computer?

I think your problem may lie with UEFI.  Make sure if you are booting UEFI that you have the newest version of Ubuntu (12.04 was the first to support Secure Boot and UEFI), and that you are using a 64 bit version of Ubuntu (64-bit PC is AMD64 even if you run Intel).

Ubuntu will not install as EFI as a 32-bit version, so a 32-bit Ubuntu with a 64-bit Windows will not install as EFI.  This means that your BIOS will not boot or load the partitions, and only Windows will boot.

So here is what I recommend:  Disable UEFI and Secure Boot.  Boot your computer.  If Ubuntu is installed properly grub should load.  If it does, enable UEFI and reinstall Ubuntu with a 64 bit version.  If it does not load properly (still straight to Windows), then something is wrong with the way you installed Ubuntu.  The goal here is to rule out UEFI as your issue (which I'm pretty sure it is).

Here is some good information on UEFI:
https://help.ubuntu.com/community/UEFI

I had to disable secure boot as Grub has a known bug for booting windows with Secure Boot right now.

EDIT:  I was confused with UEFI and Secure Boot when I first got into this, so I wrote a short summary on this page as I understand it.


How do I make Visual Studio Code default script editor in Unity3d?

Visual Studio Code for Linux

Download the latest version from the official page.
Install VSC and the dependencies via the command line:

sudo dpkg -i code*.deb
sudo apt install -f

The binary of VSC is /usr/share/code/code, but wen we execute code in the command line is executed the startup script /usr/bin/code and we will use it in the latest section.

Unity3d for Linux

Unity3d for Linux is Beta version at the moment and more details could be found in Unity Blog. The latest version can be downloaded from (source of the information): this link.
Install Unity3d and the dependencies via the command line:

sudo dpkg -i unity*.deb
sudo apt install -f

Set Visual Studio Code as default script editor in Unity3d

Open Unity3d. In the Edit menu choose Preferences.
In Unity Preferences choose External Tools (left side).
Click on the button next to the ticket External Tools Editor and choose Browse.
Navigate to the file /usr/bin/code and click on Open.
THE KEY STEP: For External Script Editor Args fill $(File) - without quote marks!

I found that (bug) the quote marks, that are there by default,
are passed as characters, appended to the file name, thus VSC (the
external editor) opens a file that currently doesn't exist.
Close Unity Preferences. That's it.


Slow wired internet connection on Realtek RTL8168-8111 (Rev 6)

I had the same problem with my Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06). Looking at the output from ifconfig you have a lot of dropped packages. Changing to a driver from Realtek worked for me:

Realtek 8168 module issue

I believe you have to do this every time you install a kernel update. Also note the comment from Jonathan on the same page.


Ubuntu 16.04 Cannot Use USB Audio: fwupd Bug

The problem turned out to be more complicated than originally thought and kept re-appearing on reboot.

Thanks a lot to @nakasya for pointing out that it's a bug in fwupd that appeared when  upgrading to Ubuntu 16.04. Refer to Problems with Audio device (ALC-889) - Ubuntu 16.04 .

The temporary workaround until the fix is included in the main release is to run sudo killall fwupd and reconnect the USB audio device.


How to specifiy prompt location in terminal?

Rather than attempt to prevent some number of lines near the bottom of the Terminal window from being used, you might want to instead simply resize the Terminal window to whatever best serves your needs. You can put your mouse pointer over the lower-right corner of the Terminal window (or, really, over anywhere on the lower edge) until the mouse pointer changes to a different icon representing resizing. Then click and hold, and drag the border upwards until the window is however small you want it.

To make it so that all Terminals will be of a custom height (and, if you like, width) when you start them, go to Edit > Profile Preferences in Terminal. A window with the title Editing Profile "Default" will come up (or it will give a different profile name, if you're using a named custom profile). In the General tab (which should already be showing), check the box labeled Use custom default terminal size. Then you can decrease the number of rows from 24 to whatever you like.

If your Terminal window is maximized, so that it takes up the whole screen and cannot be resized, then you should restore it to normal size (using the buttons on the window decorator, i.e., on the bar at the top of the window). Then you can either move it to a different location on the screen so that it is more convenient, or resize it as described above.


How to fix the following error during an update?

From the look of this error message it seems you either have no working internet connection, or the site was unavailable. You should verify you have a working internet connection and try again.

EDIT: As pointed out by steeldriver in the comment below, 12.10 is no longer supported!


Installing Ubuntu 16.04 on Lenovo Yoga 900S

The Yoga 710S, 900, 900S machines do NOT support running Linux out of the box. They were optimised for Windows. The reason your Linux installer cannot see the drive is that the factory BIOS is configured to use a RAID interface to talk to the disk, which is not supported by Linux (or the installer at least).

Fortunately, though, Lenovo have released a separate BIOS, which does support Linux by letting users choose AHCI as the interface controller.

For further details, see this thread on the Lenovo Forums.


Turn off language localization on VLC player in Kubuntu

I don't think there is a language selector in VLC for Linux. It must have been a screenshot from Windows. You can still change the locale of a program, by launching it like so: LANGUAGE=en programname.

For example, LANGUAGE=en vlc.

In case you want to it permanent, edit vlc launcher /usr/share/applications/vlc.desktop, and add env LANGUAGE=en to the Exec ... line to make it look like this:

`Exec=env LANGUAGE=en /usr/bin/vlc --started-from-file %U

`


Ensure Services start on boot and perform an Security Audit

The simple test is rebooting but you can inspect how things are linked in quite easily.

Nginx uses an old-fashioned init script at /etc/init.d/nginx which is symlinked into various /etc/rc.n directories (which the system executes at boot). You can confirm:

$ find /etc/rc?.d -iname '*nginx*' -exec file {} +
/etc/rc0.d/K20nginx: symbolic link to `../init.d/nginx'
/etc/rc1.d/K20nginx: symbolic link to `../init.d/nginx'
/etc/rc2.d/S20nginx: symbolic link to `../init.d/nginx'
/etc/rc3.d/S20nginx: symbolic link to `../init.d/nginx'
/etc/rc4.d/S20nginx: symbolic link to `../init.d/nginx'
/etc/rc5.d/S20nginx: symbolic link to `../init.d/nginx'
/etc/rc6.d/K20nginx: symbolic link to `../init.d/nginx'

The other two use Upstart scripts at /etc/init/php5-fpm.conf and /etc/init/mysql.conf. Upstart is the main init engine in 14.04 so unless these have been edited, they should stay up.

The security audit is really dependant on what store and what you need. If you need simple PCI-DSS compliance, it's often easiest to farm it out to a third party which will scan your machine.

But that doesn't mean it's secure. Server security starts with SSH security but extends well through where you keep your data, what logs you retain, etc etc. There isn't an off-the-shelf answer for that; it's a manual slog through everything in the server.

If you don't know what you're doing in that respect, hire a pro. It's cheaper than the alternative.


USB camera not seen by some applications in 18.04

Issues at the dmesg report are harmless and doesn't affect Cheese. Here's the details about messages: https://bugzilla.kernel.org/show_bug.cgi?id=111291#c9


Mount network share automatically on startup

I've been able to solve the problem on my system by adding x-systemd.automount, to the list of options in my fstab entry.
I was seeing the same problem with Raspbian Jessie (from Wheezy) which led me to a forum post.


"Couldn't find any package" - Error with Boost on Ubuntu

The cause of your problem is the assumption that the Ubuntu repositories are comprehensive and keeps older software.

In fact, Ubuntu is a 'snapshot' distro. During the release process, only the latest stable snapshot of all available software is included. Older versions are not included.

Possible Solutions

1) If the source is available, you can recompile against the current dependencies.

2) Libboost1.55 is available in some older versions of Ubuntu.

$ rmadison libboost1.55-dev
libboost1.55-dev | 1.55.0-1             | trusty/universe | amd64, arm64, armhf, i386, powerpc, ppc64el
libboost1.55-dev | 1.55.0+dfsg-3ubuntu2 | vivid           | amd64, arm64, armhf, i386, powerpc, ppc64el

Your safest, simplest solution is to install Ubuntu 14.04 into a VM to run your software safely without breaking your current system.

Some might suggest an alternative: Downgrading libboost (installing a 14.04 package on a 16.04 system). However, this can be difficult and dangerous for not-advanced users. I have 12 years of experience tinkering with packages and the package manager, and I would not do it.

Returning your system to a working state

Uninstall those packages that you installed during your unsuccessful attempts. Delete those sources. Your attempts have introduced a version conflict (which is what 'held broken packages' means). Your package manager is broken. You cannot install, uninstall, nor update your system (including security updates) until you fix it.


Is there an emulator or wine type environment that would allow use of android apps on linux?

There is Genymotion which you can run inside virtualbox or vmware and then install the virtual device (virtual phone or virtual tablet) inside genymotion....and then emulate your  apps


You can do:

awk -F: '{for(i=2;i<=NF;i++) sum[$1]+=$i} END{for(j in sum) if (sum[j] > max) \
           {n=j; max=sum[j]}; print n, max}' file.txt

-F: sets the field separator as :
{for(i=2;i<=NF;i++) sum[$1]+=$i} iterates over the fields and creates an array sum with the field values starting from the second added
In the end (END), for(j in sum) if (sum[j] > max) {n=j; max=sum[j]}; print n, max} iterates over the array elements and find the maximum number and print it with the name in front

Example:

% cat file.txt
James:230:200:200
Kory:140:204:240
Hogan:293:234:100
Logan:233:444:200

% awk -F: '{for(i=2;i<=NF;i++) sum[$1]+=$i} END{for(j in sum) if (sum[j] > max) {n=j; max=sum[j]}; print n, max}' file.txt
Logan 877


Problem installing steam in Ubuntu 16.04

If you're getting

Error: "You are missiing the following 32-bit libraries, and Steam may not run: libc.so.6"

try running:

sudo apt-get install libc6-i386


Ubuntu 18.04 the boot process takes very long. How to reduce boot time

I tried many things but only after I changed nouveau to nvidia-340 the boot time went down by about half.

dmesg

[    8.073745] systemd-journald        272]: Received request to flush runtime journal from PID 1
[   18.353802] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
........
........
[   29.241267] resource sanity check: requesting    [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00         mem 0x000d0000-0x000dffff window]
[   29.241405] caller os_map_kernel_space+0x86/0xb0     [nvidia] mapping multiple BARs
[   29.362723] r8169 0000:02:00.0 enp2s0: link up
[   29.362731] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
[   34.017794] rfkill: input handler disabled
:~$

systemd-analyze

Startup finished in 5.138s (kernel) + 27.173s (userspace) = 32.311s
graphical.target reached after 27.164s in userspace

systemd-analyze blame

15.847s systemd-journal-flush.service
11.869s dev-sda4.device
11.011s keyboard-setup.service
10.145s systemd-sysctl.service
8.805s systemd-udevd.service


How can I update Homebank from 4.4 to 4.5?

There's a PPA with 4.5 for Precise. Hopefully the owner will add a build for Quantal.


Ubuntu 16.04 empty purple screen after purging GUI interfaces

edit the file /etc/default/grub. change the following line to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

You can even remove the "quiet" if you want a more verbose boot.
then run:

sudo update-grub


Ubuntu 12.04 not recognising my new wireless "super hub"

Upgrade kernel and then see the results. Ubuntu 12.04 comes with kernel 3.2. I have upgraded to 3.4 kernel.


Completely unable to install python2.7-dev

Thanks all,

@Benoit idea worked for me, Installed the latest Ubuntu14.04LTS and apt-get install python2.7-dev installed well!

Paul


Why can I only boot into Ubuntu 18.04 via recovery mode?

I think you and I had the same problem. For me it was fixed by following this question (Nvidia driver 410 listed by ppa and ubuntu-drivers but does not seem to be installable via apt) and installing the appropriate Nividia drivers. Go to Software & Updates on your computer, open the Additional Drivers window. Take note of the Nvidia product number (mine is GeForce 840M version 410.78). Then go to https://www.nvidia.com/Download/index.aspx enter your product info into the drop menus the press Search. Download the package.

Next clear out your old drivers in terminal with,

apt-get purge 'nvidia*'

use cd to navigate to your Downloads folder and enter the following (with your product numbers) into terminal.

sudo chmod +x NVIDIA-Linux-x86_64-410.66.run  `
sudo ./NVIDIA-Linux-x86_64-410.66.run
sudo reboot`


How do I open a memory stick formatted with exfat?

You have to enable exFat support in Ubuntu.

See here how : Is there a simple way to add exFAT support?


Banshee stops autoplaying, I must manually click on the song to play

Do you have gapless playback enabled? Try disabling it, that worked for me.

See https://bugs.launchpad.net/ubuntu/+source/banshee/+bug/917035

paul


How can I drop a specific packet from my netwirk traffic using Wireshark Ubuntu

You can configure firewall i.e. ufw in Ubuntu to block or allow particular type of traffic in Ubuntu or can also use iptables.

Wireshark cannot be used to block traffic as it is used as a network sniffer not a particular type of traffic blocker.

For more info on ufw see:

Community ufw Documentation


Since you say it runs fine for five minutes, that's your window of opportunity to get some monitoring tools running.

First, install iotop and htop :

  sudo apt-get install iotop htop

Then start a terminal for each and run them (just "iotop" and "htop", one in each terminal).  Then wait for the stuttering to start happening and see what causes it.

Another place to look might be dmesg - perhaps start a third terminal and run the command :

  tail -f /var/log/kern.log

(instead of just running "dmesg" directly, because you're interested in constantly monitoring the system as you wait for the stuttering to begin).

These steps should help pinpoint what might be causing your issues.


How to remove individual webapps from Launcher

Right click on the application and select "Unlock from Launcher":

Though the application itself will still remain in the application lens in the Unity  dash, to remove an application from there follow these instructions:

How to remove icons/shortcuts from Unity menu?


Removing quick launch icon from launch pbar at top?

Make right mouse click on the icon with pressed Super+Alt and select Remove From Panel:

Notes:
1. If you want to add some item to the GNOME Panel, then use right mouse click with pressed Super+Alt and select Add to Panel.
2. If you like this old-fashioned desktop, you may consider to test MATE DE (GNOME 2 fork).


Is there a reason for linux-image-*-generic being marked manual by default and can this be changed?

Probably this behavior changed later on. Right now the kernels are marked in Auto and removed when they start to pollute. This is to start removing them and don't fill up the /boot partition.


There are patent and copyright restrictions which complicate the distribution of software to support chargeable formats.

However, there is a workaround


have you tried synaptic package manager ?

remove konsole ( resp. terminal ) completely - then re-install it again.


Synaptic won't start after upgrading to 12.04

You can fix it by following this steps:

Open terminal Ctrl+Alt+T and execute this command:

gksudo gedit /usr/share/applications/synaptic.desktop
With the file open, change find this line:

  Exec=synaptic-pkexec

And change it to:

  Exec=gksudo synaptic

Save file and close the text editor.


How to install adobe flash player in ubutu 15.04 LTS for google chrome?

You do not need to install flash to Google Chrome.  It is already there.

NPAPI plugin will not work, and pepperflash is already installed in Chrome.


How is tax handled for purchases from the Ubuntu Software Centre?

Hopefully I can clarify the intent of the contract.

I believe there are two different taxes referred to in your question. There is VAT on the sale to the consumer; and income tax on the payment made to the developer. I'll cover them separately below:

Canoncial will collect UK VAT (currently 20%) from each sale and pay this to HMRC (the UK's tax authority). The sale price that the developer sets should be inclusive of this tax. VAT is not applicable on sales outside of the EU, but to keep the pricing simple and straightforward for the consumer, the one price has been set for both EU and non-EU customers. This means that the developer's margin will be larger for non-EU customers. The royalty statement sent to each developer will outline the EU versus Non-EU sales and detail any VAT deductions. This is covered in clause 4.2 of the developer agreement.

Clause 3.3, which says

  "You are responsible for determining applicable taxes in connection with distributing your App, and you shall pay applicable taxes to the applicable tax authorities"

refers to the income tax that is payable by the developer to the tax authorities where they are a tax resident. This means that the developer needs to declare their income (the net payment made by Canonical to the developer) and pay the applicable income tax in their own country.

I hope this provides some further clarity, but if there's any other questions please let me know.


Unable to turn on HP zd7000 Wireless on 12.04

I believe the Broadcom STA driver, also known as bcmwl-kernel-source, is incorrect for your device. Please get a temporary wired ethernet connection, open a terminal and do:

sudo apt-get purge bcmwl-kernel-source
sudo apt-get update
sudo apt-get install b43-fwcutter firmware-b43legacy-installer

After it finishes, detach the ethernet, reboot and let us hear your report.


Can't use two screens with an Nvidia 9600GT

On the X Server Display Configuration section, it showed the two monitors and from here I was able to enable that second monitor.

I'm sure I went through this, but I must have missed something....


brother mfc-495cw cupsd issue on Ubunutu 13.10

0 down vote unaccept

This is not specific to Cups or Brother. But it is a doc issue for Ubuntu 13 for Brother Printers.

Since the Brother drivers are 32 bit, when you try to execute them, you will get a file not found error, although you can still ls them, file them, (stat them).

Brother docs say to install ia-32libs. But this package no longer exists for Ubuntu 13. The way to get the same functionality is via:

sudo apt-get install gcc-4.7-multilib

Once this package is installed, I can now execute 32 bit binaries, and thus the printer is now working!


How can I edit (reduce) a PDF while reading it to remove irrelevant parts?

In OSX's Preview.app the build in "crop-function" would be the best choice to delete unwanted user defined parts of a single page. Alternatively you could select
one or more pages and delete them all together.
In Ubuntu there are similar applications that offer these options as well:
I use and prefer PDF-Shuffler for PDF Merging, Rearranging, Splitting, Rotating and Cropping.

Simply install by using Ubuntu Software Center
Open your pdf-file of choice, select your unwanted pages and delete them and/or use the "edit -> crop-option".
Save your modified pdf-file.

I deleted Page2/3/4 and cropped approx. 50% of Page 5/6 for a visual example in a few seconds.


vim struggles when copy-pasting large blocks of text in from an external window

Based on a suggestion from the maintainer after filing a bug report, it seems this problem is caused by the syntax highlighter.  Disabling syntax highlighting temporarily (:set syntax=off) fixes this, though having to do both that and :set paste, and then toggle each back again is rather annoying (yes, I know I could map the commands in .vimrc.  It is still annoying).   Pasting also runs faster in gvim than in vim.  Not sure why.

So, current answer is "turn off syntax highlighting"...


I tried your commands, and had no issue deleting the link files using rm.

however, if you still have permission issue, try the below command

lsattr linkPassword

and see if it has letter i in it (it means immutable) in the output. If you see i, you have to remove this attribute first before you can delete those files.

chattr -i linkPassword
rm -rf linkPassword


If you are sure that your config file is correct but it still isn't working with the default page you can try running these two commands,

sudo service apache2 reload

Which reloads the apache config file, then

sudo service apache2 restart

This command restarts the apache server. At the very least one of them should give you an error message to pinpoint the problem more accurately.

Which should fix the problem. Assuming it is with apache. Are you sure the ssh port (port 22) is open on the server iptables?


Sorry to say, resynthesizer will not manage to obtain real detail, since it's adding fake points through interpolation, rather than obtaining more real detail. What the original question suggests is about stacking multiple real shots and obtain higer resolution, like this:
http://mentat.za.net/supreme/
https://aperture64.wordpress.com/2014/03/19/improving-image-quality-with-stacking-and-super-resolution/


Try this

 menuentry "Ubuntu 14.04 Live" {
 loopback loop (hd0,10)/lilw/os/ubuntu.iso
 linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=/lilw/os/ubuntu.iso noprompt noeject
 initrd (loop)/casper/initrd.lz
 }


The Ubuntu Desktop 14.04 LTS came pre-installed with Remmina that use the RDP - Remote Desktop Protocol, then it connect with Microsoft Windows OS too.

It setup is full feature and tweaks.

Beyond it have SFTP, SSH and VNC as alternative protocols.

http://remmina.sourceforge.net/


Accidentaly deleted partition table for windows OS

You are likely to have lost a lot of files because you have overwritten much of the drive (40Gig is a lot).

First you'll need to create a partition on the rest of the device, but don't put a file system on it. This is easily done in the "Disks" utility.

Then do the following to see a list of files you can recover:

sudo ntfsundelete <device>

Then use things like the following to recover all jpgs:

sudo ntfsundelete <device> -u -m *.jpg

or the following to retrieve a file by inode (the first column in the output of the first command):

sudo ntfsundelete <device> -u -i 99999

Note I haven't tested this as I don't have such data to retrieve.


How can I "diff" two files with Nautilus?

There is a useful python extension that incorporates Meld into Nautilus

how to install

Obtain the source or the deb package from the authors website.

wget http://www.giuspen.com/software/nautilus-pyextensions_3.4.1-1_all.deb

sudo apt-get install python-nautilus
sudo dpkg -i nautilus-pyextensions_3.4.1-1_all.deb

Search for pyextension in Dash and run Nautilus PyExtension.

Activate the meld extension (install it if asked) and click the restart Nautilus toolbar option.

GConf error

In case you find an GConf related error when trying to open Nautilus PyExtension, install "gobject-introspection" and "gir1.2-gconf-2.0":

sudo apt-get install gobject-introspection
sudo apt-get install gir1.2-gconf-2.0


Why default .bashrc is set to return immediately if not running interactively?

The point of the .bashrc file is that it sets the shell up to be more convenient for interactive users. Helpful alias, pretty colors, useful prompts, common environment variables, that sort of thing.

And some of these conveniences could break non-interactive scripts. For example:

`alias rm='rm -i'`

Would not work non-interactively (thanks zwets).


I first guessed that it was the amount of partitions I had. So I looked at my partitions and one was unallocated - I extended my C drive using the space and then deleted another partition that wasn't being used. That became free-disk space but I was not able to easily extend the C drive with the remaining memory so I had to install a more advanced partitioning tool on Windows. After finally combining all unimportant and unused partitions, I rebooted the computer using my usb-drive that had the installation files.

I went through the same installing process once more and again, errors. I finally decided that it must be the files that were corrupted so I completely wiped the files and reinstalled ubuntu 12.04 LIVE 64 bit. I downloaded it directly from the program "unetbootin" extracting the downloaded files directly into the usb drive.

Once that was all done, I restarted my computer a last time and everything worked correctly.


unable to login after installing video card

At login screen of your PC press
CTRL+ALT+F1

then login there with the login details and then do removing ~/.Xauthority file with

rm ~/.Xauthority

then restart your PC .

I hope that's going to fix your issue.


You haven't messed anything up with the partitions, it's just that Grub has trouble chainloading Windows under EFI. Try to get to your Windows OS from the laptop boot menu, for Sager I think you press F12 when booting.


Interrupting apt-get dist-upgrade: what could happen?

Worst case scenario it can break your system making it impossible to boot normaly, but you can always boot into rescue mode and fix it.

Use the rescue mode by booting with an Ubuntu install CDROM and entering “rescue” at the boot prompt
Mount all of your partitions and to perform a chroot to /target where the root partition is mounted.
After the system has booted to the menu, select the item that says “Drop to root shell prompt with networking”. This provides you with the ability to update the software packages from the Internet.
When the prompt appears, start by making sure that all currently installed programs are configured:

  dpkg --configure -a

This may take a long time, depending on how many programs were installed before the system stopped.

Then go ahead and update the current list of packages:

  apt-get update

Following this, upgrade the software on the system:

  apt-get upgrade

This last step, again, may take a long time to complete. You should pay attention to the list of packages held back (listed at the top of the output from this command); these packages will have to be requested specifically.

Usually, packages are held back because they require new software or other drastic changes: the Linux kernel is always held back. Use a command like this one to install these packages:

  apt-get install some-package some-other-package

You may have to repeat this more than once until all of the packages have been installed and none are held back.

Then, you should repeat the update and upgrade in order to completely verify that the system is as updated as it can be:

  apt-get update

  apt-get upgrade

These last commands should execute quickly, as everything is probably complete – however, it is not impossible that the upgrades would have affected something that requires another upgrade. Not doing this probably won’t matter, but why not do it anyway?

Once done, a reboot is required to make sure that the old software is no longer being used and all that is used is the new upgraded software. Don’t just continue the boot: reboot.

One more thing can be done to clean up afterwards – possibly after the reboot. At a command shell, enter this command to remove unneeded software:

  apt-get autoremove

Source


Ubuntu 18.04 same list of 'errors were encountered while processing for almost everything

Looks like there's a problem with the package installer on your system. This sort of thing can happen from a failed software installation, or if the installer itself becomes corrupted. Depending on how dpkg broke, there are a few ways to fix it.
Based on how often you're seeing the message, start by reconfiguring the packages that have been unpacked and potentially not installed. An interruption at the wrong time can cause the database to become corrupt:
sudo dpkg --configure -a

If this does not resolve the issue, update your question to include the error message(s) so that a better solution can be offered


CLI equivalent to Network Settings "Network Proxy" manual options?

If you don't want to use a GUI, you've got a handful of options. First off, there's nmcli con edit [network-profile], and then there's nmcli con mod [network-profile], and finally you can edit raw text files directly (assuming you're running as root). By [network-profile], I mean the name of the network profile you want to configure.

The first wants to be used interactivity, but you can pass any/all options to stdin. In other words, you'll need to do something like `echo options | nmcli con edit [network-profile]".

The second lets you specify parameters via the command-line, but anything you don't specify may or may not be blanked out, removing pre-existing settings you didn't necessarily want. For instance, if you modify a VPN connection and change one thing in vpn.data, you have to change everything, or lose a bunch of settings.

The third means editing files in /etc/NetworkManager/system-connections/, and then reloading those file - either by restarting NetworkManager (thus temporarily loosing network connectivity), or by running nmcli con reload (as root).

Either way, you're going to have to mess things up a bit in order to learn. (I'm still learning.) If you do, it doesn't need to be the end of the world, but you're advised to keep backups in case things go south.

As for ignoring hosts, there's a file, /etc/hosts.deny, which is a text file that, as far as I know, doesn't come with any tools to automate the changes, you you'll need to code your way around that issue on your own. By default, the file comes with nothing but comments, which are meant to help users see how to use this file.


What should VM writeback timeout be set to for a laptop?

The larger the dirty writeback setting the longer dirty pages sit in memory before being flushed out to disk.  The downside is that this increases the window of opportunity for losing data if you lose power since there will be probably more dirty pages sitting in memory and not flushed out.


The missing touchpad tab indicates that your touchpad is probably not recognized as a touchpad.  In that case the hardware emulates a mouse in its firmware, and isn't configurable...

There is information on the wiki about debugging touchpad detection and how to file a bug report about it.


Error processing libc6:i386 and libtinfo5:i386 while trying to install anything "/var/cache/debconf/config.dat is locked..."

This is what worked for me on Ubuntu 15.10 on a DELL XPS Developer edition laptop :

sudo apt-get install --reinstall libc6-i386

Removing files from /var/cache/debconf did not really work for me. I kept getting the error every time i ran an upgrade.


Happy Medium between Ubuntu and Cinnamon?

I recently switched to LXLE (a.k.a. LXDE Luxury Edition) and am really enjoying it.  It's fast and highly configurable.  Plus, it's got a great number (and variety) of packages pre-installed.  It's currently running on Ubuntu 12.04 LTS, but you can easily upgrade to 14.04.1 LTS after installing by changing the software sources 'Notify me of a new Ubuntu version' to 'For long-term support versions'.


I was having a combination of issues, including this one:

using the system settings to manage printers gets my jobs stuck at processing. <--- OP's main issue
wanting to install an HPLIP printer, and not CUPS managed/driverless stuff? <--- also OP's issue
needing to install the printer from additional printer settings but getting stuck at auth (maybe someone else is lucky enough not to need to do this)
getting stuck at auth because the additional printer settings does not maintain that I am an admin user when opening it, so needing to disable authentication. (ideally we figure out how to run these additional settings as an admin - but until then... use my [probably vulnerable] solution.)

So taking others' advice, I tried to install the printer from the additional printer settings, but ran into authentication issues, where every time I tried to install a printer under those settings, I was prompted for user/pass.

Not my solution, but maybe yours

I saw other answers where people were being prompted for this, and their solution was to:

Pause the cups server. Open the terminal and type sudo service cups stop
Edit the /etc/cups/printers.conf file, commenting out (by prepending a # to) the line that has AuthRequired username,password. This line did not exist for me, so it was extra confusing because I don't know what the username/password is that I keep getting prompted for. Maybe you have this issue and that's why I will leave this answer.
Start the cups server back up sudo service cups start

My solution

So I found another answer that helped me remove the admin user as a requirement to adding/removing printers.

This is kind of dumb and annoying, because the "additional printer settings" does not continue to run as an admin and it doesn't seem to recognize what user I am, so that's the whole reason this is necessary. I cannot find a way to run these additional settings as an admin user, so this solution is best for now. (note that I am in individual and not going to use this on a network other than my home).

Pause cups server (same as above) sudo service cups stop
edit the /etc/cups/cupsd.conf and look for <Policy default> and underneath that, comment out the lines AuthType ... and Require user... for any area you do not want to require auth. (Commenting out means prepending the line with a #)
start the cups server again. (same as above) sudo service cups start
install the printer from the additional settings area
print test page
profit.

Mine looks like this:

# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
#AuthType Default
#Require user @SYSTEM
Order deny,allow
</Limit>

# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deac$
#AuthType Default
#Require user @SYSTEM
Order deny,allow
</Limit>


Solved by OP with edit:

  I have solved! I think that some months ago I already tried that guide and in that aacs folder I had got 5 key files. So I have deleted all and follow the guide again. Now all is working!


Ubuntu 19.04 cannot change brightness on laptop

Ivo's (https://askubuntu.com/users/632873/ivo-bl%c3%b6chliger) solution at Lenovo ThinkPad X1 Yoga OLED Brightness for a Yoga laptop also works for the Dell XPS 15-9570. The only thing I had to change was to subtract/add 6000 instead of the 71 in the script. That gives me a 20 step change, i.e. up/down by 5% for every key press.

This is what the modified solution looks like for the XPS 15, using similar three files. The first one is /etc/acpi/events/xps-brightness-up:

event=video/brightnessup BRTUP 00000086
action=/etc/acpi/xps-brightness.sh up

nuber two is /etc/acpi/events/xps-brightness-down:

event=video/brightnessdown BRTDN 00000087
action=/etc/acpi/xps-brightness.sh down

and then the main script /etc/acpi/xps-brightness.sh:

#!/bin/sh

# Where the backlight brightness is stored
BR_DIR="/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/"

test -d "$BR_DIR" || exit 0

MIN=0
MAX=$(cat "$BR_DIR/max_brightness")
VAL=$(cat "$BR_DIR/brightness")

if [ "$1" = down ]; then
    VAL=$((VAL-6000))
else
    VAL=$((VAL+6000))
fi

if [ "$VAL" -lt $MIN ]; then
    VAL=$MIN
elif [ "$VAL" -gt $MAX ]; then
    VAL=$MAX
fi

PERCENT=`echo "$VAL / $MAX" | bc -l`

export XAUTHORITY=/home/user/.Xauthority  # CHANGE "user" TO YOUR USER
export DISPLAY=:0.0

echo "xrandr --output eDP-1 --brightness $PERCENT" > /tmp/xps-brightness.log
xrandr --output eDP-1 --brightness $PERCENT

echo $VAL > "$BR_DIR/brightness"

Don't forget to do a chmod a+x /etc/acpi/xps-brightness.sh and restart acpi by typing

sudo service acpid reload

I hope, this helps ;-)


TL;DR - working systemd service below!

Thank you for posting as I had the exact same problem, also running ZFS root on Ubuntu 19.10.

I THINK what is happening is when booting ZFS root, an initrd specific zfs script runs which differs from the standard zfs-import scripts in /etc/init.d and ignores some of the standard config from /etc/default/zfs. I didn't find this exact file elsewhere on the main system. Though, I also was getting frustrated and stopped digging further.

Since I'd seen your post, I decided to look at systemd to mount the zpool, but I used an Ubuntu provided zfs systemd service as a starting point.

I inspected the zfs-import-cache service... which obviously wasn't working for me, but figured it would provide hints about relative dependencies. Then I used that to create my own service.

systemctl cat zfs-import-cache > /etc/systemd/system/zfs-import-datastore.service
# edit as needed (see below)
systemctl daemon-reload
systemctl enable zfs-import-datastore

The resulting service:

# /etc/systemd/system/zfs-import-datastore.service
[Unit]
Description=Import ZFS pool - datastore
Documentation=man:zpool(8)
DefaultDependencies=no
Requires=systemd-udev-settle.service
Requires=zfs-load-module.service
After=systemd-udev-settle.service
After=zfs-load-module.service
After=cryptsetup.target
After=systemd-remount-fs.service
After=zfs-import-cache.service

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/zpool import datastore

[Install]
WantedBy=zfs-import.target

With this service my Ubuntu 19.10 system boots cleanly and automatically imports the datastore zpool in addition to bpool and rpool.


Adobe Audition, Songr problems with Wine

Before you want to install Window Application to run with Wine, you should check the application at WineHQ. You can download and install Adobe Audition with Wine. But Songr is not support on Wine. You should find alternative app.


How can I shutdown my PC when the system is idle?

Edit: you can do this with https://launchpad.net/complexshutdown

If you're interested in how this works, look at How does ubuntu determine inactivity before suspending? for a good start.  You can access the same counters that Ubuntu already uses before suspending, when suspend-on-idle is on.


Installing ubuntu on benq joybook a52e (7 yo laptop)

A cd drive would not have helped you either: you need a dvd drive for 14.04.

From your list:

"network" PXE install might be an option. See How do I set up a network installation?
"hdd" create a 700 Mb-ish partition and put the Ubuntu ISO in there and have the system boot from that partition. See Install Ubuntu from ISO image directly from hard disk of a system running Linux?


New alert keeps showing up: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001

This warning is logged by systemd-resolved, whenever a name can not be resolved by the DNS system (e.g. nslookup www.kjfoiqaefah34876asdf.com). This can be tolerated and is no reason to be alarmed.
This is no error and nothing needs to be fixed.
Redirecting /etc/resolv.conf to /run/systemd/resolve/resolv.conf is wrong, because this way systemd-resolved is skipped and the application with the faulty DNS request talks directly to the name server and not to the systemd-resolved stub anymore. This way systemd-resolved does not notice the NXDOMAIN events any more and therefore cannot log it any more.
The NXDOMAIN events are caused by packages, which try to access non-existing servers during system startup.


Can I set a keybinding to resize a window to half its size, in a chosen direction?

The script below can be used as an additional functionality to the "resize-to-quarter" option in 14.04. It can be run with the arguments: "left", "right", "up", "down", to further cut the quarter in eights.

What it does

If you have your window moved to the quarter of your screen:

the script will cut the window in half, either the left, right, top or bottom half, depending on the argument you run it with (see below).

How to use

The script uses wmctrl, which is not by default on your system:

sudo apt-get install wmctrl

Copy the script below into an empty file, save it as organize_w in the directory ~/bin. Make the script executable. Probably you will still have to create the directory ~/bin. It has the advantage that you can run the script just by the script's name:
Add four commands to custom keyboard shortcuts. Open system settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Add four commands to key combinations.
On my system, I found four extremely fit shortcuts still available: I would suggest adding the commands under these key combinations:

organize_w left

Shift+Ctrl+Numpad <

effect:

organize_w right

Shift+Ctrl+Numpad >

effect:

organize_w up

Shift+Ctrl+Numpad ^

effect:

organize_w down

Shift+Ctrl +Numpad v

effect:

This way, you can arrange windows like below with a few key strokes:

The script:

#!/usr/bin/env python3
import subprocess
import sys

arg = sys.argv[1]
WA_correction = 28

def get(command):
    return subprocess.check_output(["/bin/bash", "-c", command]).decode("utf-8")

def execute(command):
    subprocess.Popen(["/bin/bash", "-c", command])

xprop_data = get("xprop -root").split()
w_id = xprop_data[xprop_data.index("_NET_ACTIVE_WINDOW(WINDOW):")+4].replace(",", "")
frontmost = w_id[:2]+"0"+w_id[2:]
w_data = [l for l in get("wmctrl -lG").splitlines() if frontmost in l][0].split()
new_G = w_data[2:6]
new_G[1] = str(int(int(new_G[1])-WA_correction))
xy_corr = lambda x: -10 if int(x) < 100 else 0
if arg == "left":
    new_G[2] = str(int(int(new_G[2])/2 + xy_corr(new_G[0])))
    new_G[3] = str(int(int(new_G[3]) + xy_corr(new_G[1])))
elif arg == "right":
    new_G[0] = str(int(int(new_G[0])+int(new_G[2])/2))
    new_G[2] = str(int(int(new_G[2])/2))
    new_G[3] = str(int(int(new_G[3]) + xy_corr(new_G[1])))
elif arg == "up":
    new_G[2] = str(int(new_G[2]) + xy_corr(new_G[0]))
    new_G[3] = str(int(int(new_G[3])/2 + xy_corr(new_G[1])))
elif arg == "down":
    new_G[1] = str(int(int(new_G[1]) + int(new_G[3])/2))
    new_G[2] = str(int(new_G[2]) + xy_corr(new_G[0]))
    new_G[3] = str(int(int(new_G[3])/2))

execute("wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz")
execute("wmctrl -ir "+frontmost+" -e 0,"+(",").join(new_G))

edit:

XFCE version

With a few minor changes, the script can also be used to resize wndows into half / quarter or eight on XFCE (tested on 14.04).

Use it exactly like the version for Unity:

#!/usr/bin/env python3
import subprocess
import sys

arg = sys.argv[1]
WA_correction = 48

def get(command):
    return subprocess.check_output(["/bin/bash", "-c", command]).decode("utf-8")

def execute(command):
    subprocess.Popen(["/bin/bash", "-c", command])

xprop_data = get("xprop -root").split()
w_id = xprop_data[xprop_data.index("_NET_ACTIVE_WINDOW(WINDOW):")+4].replace(",", "")
frontmost = w_id[:2]+"0"+w_id[2:]
w_data = [l for l in get("wmctrl -lG").splitlines() if frontmost in l][0].split()
new_G = w_data[2:6]
new_G[1] = str(int(int(new_G[1])-WA_correction))
if arg == "left":
    new_G[2] = str(int(int(new_G[2])/2))
elif arg == "right":
    new_G[0] = str(int(int(new_G[0])+int(new_G[2])/2))
    new_G[2] = str(int(int(new_G[2])/2))
elif arg == "up":
    new_G[3] = str(int(int(new_G[3])/2))
elif arg == "down":
    new_G[1] = str(int(int(new_G[1]) + int(new_G[3])/2))
    new_G[3] = str(int(int(new_G[3])/2))

execute("wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz")
execute("wmctrl -ir "+frontmost+" -e 0,"+(",").join(new_G))

(XFCE version also posted on gist.gisthub)


Why is my Display Controller Intel when I have nvidia graphics card?

What do you mean? The nVidia card is right there. It's a VGA compatible controller:

00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 05)
0:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 660 OEM] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

You need to install the drivers, however, to unlock the full power. You can open the Dash and search for Proprietary Drivers to find the install wizard.

Intel devices identify themselves as a Display Controller, while nVidia cards identify themselves as a VGA compatible controller. Same thing. They are synonyms. Your monitor is probably plugged into the Intel card though, making that the device that actually controls the display.

This is normal and expected behavior.


Can't get native resolution (1440p and 144 Hz) on Ubuntu 20.04 with Nvidia Card

Finally, it was my video card.
I bought a Nvidia GT1030 with HDMI et DP ports and i have good resolution and refresh rate \o/


How to start a .desktop application from the applications screen

Put all the .desktop launchers in your ~/.local/share/applications directory (note that ~/ corresponds to your home directory).

Then the associated applications will appear in your "Show Applications" list and you'll be able to launch them, if not then you should re-login or reboot (or simply restart GNOME shell by pressing Alt+F2 and then typing r and pressing Enter).


Upgrade from 12.04 LTS to 14.04 LTS fails

To upgrade to a new release you need to use sudo do-release-upgrade as sudo apt-get upgrade and sudo apt-get dist-upgrade just update all packages.


How to install LibreOffice on Ubuntu Touch?

Ubuntu Touch ships with a utility called Libertine that lets you install and run X11-based deb-packaged software without risking the rest of your system.

Some devices, like the Bq Aquaris M10 tablet, ship with a pre-installed Libertine container that offers the GIMP, LibreOffice, Gedit, and a few other applications, available by swiping to the Desktop Apps scope.  For other devices, you need to create a Libertine container using the command line and add packages to it explicitly.


Find files/folders in folder except some specific folders

You may have missed some wildcard characters, try

find .. ! -regex '\(.*\/\.git.*\|.*\/assets.*\|.*\/build.*\)'

I also included the path separator (/) so that assets or build appearing as part of a path doesn't match.


Nvidia driver activated but not in use (gtx280)

Prior to Natty I was using the latest proprietary Nvidia driver, using the default Nvidia installation program.  However, upon upgrading from 10.10 to 11.04 (did not do a fresh install), I began using the 'nvidia-current' package.  In the past I had blacklisted 'nouveau' and I had to reinstall 'nvidia-current' before things would function correctly.

I apologize for the disjointed response.  I guess I am asking if you are using the 'nvidia-current' package to deliver your video driver.  If this is the case, have you tried reinstalling the package?


Upgraded to 12.04, can't login because home directory disappeared

First thing I reckon is to boot up from a Live CD and rescue your data to a USB drive or portable hard disc before you start playing around. Do you store your files and data on the same partition as the OS??


Problem in installing Ubuntu 20.10 from live USB

MBR, (MSDOS) Bootable Live/Persistent USB Drive

Cloning a Live Ubuntu 20.04 and later ISO using Etcher, Gnome-Disks, Startup Disk Creator, dd, etc, will produce a Live USB with a GPT partition table.

Some computers may prefer a Live USB with a MBR partition table.

UNetbootin 681 will make a MBR Live or Persistent USB drive, just ensure that the USB has a MBR partition table before proceeding with USB creation. https://unetbootin.github.io/

Rufus Version 3.12 (2020.10.14) will make a MBR Live or Persistent USB drive, Select MBR for Partition scheme. https://rufus.ie/

Mkusb version 12.6.4 will make a MBR Live/Persistent USB drive. At persistent live drive settings, Select msdos. https://ubuntuforums.org/showthread.php?t=1958073&page=103&p=13993880#post13993880


A few steps to follow in order to be sure:

Check IP on the server machine, look for the adapter that connects the machine to the internet (eth0 will probably be the one, albeit it sure can be ethX depending on your configuration)

sudo ifconfig

Try pinging the IP you found out via ifconfig. Be sure that you are pinging from a computer who is not in the same network as your server, just to be sure.

ping XYZ

You didn't get a ping?

I suppose you are connecting your server machine via your home router. Meaning you have to configure it to forward the port you set your apache at. Or just enable your local server as DMZ (which I can tell is not a safe thing to do, but works adhoc).

Sadly port forwarding looks different for each router, you need to find out how to do that for your specific hardware.

You got a ping? You are ready to go

Getting a ping back means your machine has public IP and is visible over the internet. LAMP apache doesn't require any configuration to work as you wish it to. Just enter the server IP into your browser, perhaps add a port if you set up apache on a different one than 80, eg.:

http://XYZ:8080/


Upgrade from 10.04 to 10.10 on netbook: now or later?

Normally, it's not recommended to skip a release. However, with LTS releases, you have the option of upgrading when the next LTS comes along, skipping the versions in between.

So your options are:

Upgrade from 10.04 to 12.04 (in April 2012)

or
Upgrade from 10.04 to 10.10, then Upgrade from 10.10 to 11.04 in April 2011

I don't see any problem for you upgrading to 10.10, if anything goes wrong, you know where to come for help. :-)

Generally speaking, things that break between versions (so called Regressions, things that used to work but don't anymore) are treated very seriously in Ubuntu. They are therefore relatively rare.

If you do stumple upon one, you also have a good chance of it being fixed in the current release. So long as you file a bug.


when I run a bash file manually, it works, but crontab can not run it?

Remember that Cron uses its own environment, which is different of your own environment.

If you didn't changed it, in cron environment $PATH is /usr/bin:/bin

You can check where your command are stored with that commands:

which torify
which youtube-dl

if its not in /usr/bin:/bin
=> Add a minimal PATH environment into your script, something like:

export PATH="/bin:/usr/bin:xxxx"

(where xxxx is the path to your command )


Why do some windows have these scroll-bars, some these other ones?

It's because some apps use the GTK2 framework, while others have already upgraded to GTK3. GTK versions 2 and 3 pull from different stylesheets/use different layout internals. Compare this answer: How do I get same scrollbar style for gtk-2.0 and gtk-3.0 apps?


How can I load a local html page on chromium in Incognito mode?

Open terminal and run the below command, change the url accordingly.

chromium-browser --incognito file:///home/srinivas/example-page.html

To make things easy you can put the code in a text file and save it with a .sh extension.

Once its saved right click on the file, navigate to the permission tab and check mark

allow executing file as program


Cannot see process of service in top or ps

The architecture of Postfix is quite complex. There's not one single process called postfix. Depending on what the server is doing at the moment and how it's configured, there may be any out of more than twenty different processes or daemons running, doing different tasks. The master process is called master. Two other process appear in your output for ps aux | grep post, pickup and qmgr.


Is it safety to erase the /etc/apt/sources.list.d folder files

The file /etc/apt/sources/sources.list, and the .list files in /etc/apt/sources.list.d, work together to provide information to apt about software repositories and PPA locations. These files are used when Software Updater scans for newer applications, newer kernels, and newer libraries for your system.
If you're knowledgeable about how all of this works, then yes, you can manually edit/delete .list files in /etc/apt/sources.list.d. But because you're asking the question, I suspect that this is new territory for you. So don't do this manually.
I'd recommend using the proper GUI application, Software & Updates, "Other Software" tab, to manage the .list files that you see in /etc/apt/sources.list.d. There, you can examine, enable/disable, edit, or remove .list files.
For each entry, the goal is to have current Ubuntu generations in the .list file, like focal, IF the repository or PPA supports such a new version. Some still only support eoan, or older. So you have to know how to determine what each repository or PPA site supports. You generally don't want repositories or PPAs that support older versions than what you're currently running on your computer, as the software may not be compatible with your current system.
Any changes that you make via Software & Updates will trigger a reload of the software databases when you click the Close button. Any errors that appear indicate that you've made a mistake in one of your edits.


Dual Booted Laptop Win 7 & Ubuntu 14.04; Windows 10; Ubuntu choices?

You can do either order, but what matters is making sure you don't wipe another install to install an OS.  I would do Win10 then boot repair if it were me.


I don't have an SDXC card or a compatible reader, but I would advise caution if you are planning to use exFAT as it doesn't work for me on Lubuntu 13.10. I formatted on Windows 8, a 4gb usb stick in exFAT with 4096 allocation and MBR partition table. I wasn't able to mount it on Lubuntu 13.10. Additionally gparted only lists being able to copy and move exFAT partitions, not create them which could be a problem should you ever need to reformat the card. I have successfully used 32gb SDHC cards in Ubuntu before formatted as NTFS and FAT32 without any problems.

Screenshot of mount attempt of 4gb usb stick using exFAT:

Screenshot of Gparted filesystem support:


Please do:

sudo apt-get purge --remove bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree
sudo modprobe b43

give it a few seconds and wifi should come on.


The .theme directory is hidden by default because of the . at the front of its name. Press Ctrl+H to see all hidden directories (and files).

If you want to permanently see all hidden directories and files, open a Nautilus window and go to "Edit" -> "Preferences" and check the "Show hidden and backup files" box. Note that backup files are files that end with ~.


How do I look up the hsync/vsync values for my monitor?

In your monitor's manual.

If it's not there, find out if there are identically built models on the market, or just stick to the default values (they're quite safe and reasonable for almost anything with a VGA connector).

However, before doing it this "hard way", check whether your monitor and video card can't negotiate everything by themselves.


Just type

screen

And you will be inside the 'screen window'
Then you can execute your command.
If you close putty now, your command will keep running.
Next time you log in to the Linux machine, you can execute

screen -r

And continue where you left off.

You can also manually detach the screen session by hitting ctrl+a followed by d


Running the java compiler with a keyboard shortcut

I think the best way to do it is to create a context menu entry similar to "Open in Terminal..." for directories in nautilus.
I do not know how to map nautilus menu entries to a key (You can activate the entry with multiple keys using the context menu by keyboard, like with Menu).
But as you seem to already solved the key mapping part, maybe some hints on how to configure a menu entry for the script help:

For starting gnome-terminal with a specific start directory for the shell, there is an option --working-directory:

gnome-terminal --working-directory /some/java/dir -e startscript.sh

There is a nautilus extension to add menu entries: "Nautilus Actions". That would allow to implement the context menu that supplies the directory to use from nautilus.

It is described in one of the answers of How do I customize the context menu in Nautilus?.
(See also How can I add a custom item to the nautilus context menu, but NOT in a sub-menu?)


Image optimization with imageOptim using bash. How to get a summary for a whole batch instead of one image

You can try this oneliner using find and perl:

sudo find . -type d -exec  sh -c "./jpegoptim --strip-all -t {}/*.jpg" \; | perl -e '@a=<>; $a=join("", @a); @b = $a =~ /%\s+\((\d+)k\)/g; foreach my $n (@b) {$sum = $sum + $n}; print "Total saved ${sum}k\n"'

You need to copy jpegoptim in the directory where you start the find command of course.

A bash loop is not really needed, a find can filter directories with -d type.

The perl part will just parse for "% (the saved size per dir k)" and sum all the values before printing a single line with just the sum.

find . -type d only returns the directories.
-exec <command> \; will start the given command for each directory
sh -c "" is required as we need a shell to interpret the *.jpg wildcard.
the whole output is piped | to perl
perl first create an array with stdin (<>, the diamond operator), @a.
Then joined into a string, $a
@b = $a =~ /%\s+\((\d+)k\)/g will put in array @b all the matched strings included in the average compression summary lines using a regular expression
Finally foreach my $n (@b) {$sum = $sum + $n} sum all arrays values before printing the result


ping command in bash shows heart character

I'm running the command ... in ConEmu, if that changes anything.

It changes everything. That's how your terminal emulator renders the character that's send for CtrlC (End-of-text, or ETX, hexdecimal 0x03). You can try this out with printf '\x03'. Switch to another if you find it annoying, but I don't know if any emulators in Windows don't have this problem.


Ubuntu (most Linux OSes) does not have an 'Administrator' account. The account is called "root", although some of the windows the UI pops up may ask for the 'administrator' password... (they should be asking for YOUR password. That is bad/non-standard coding on the programmers part.)

When you install Ubuntu, by default it does not ask for a 'root' or administrator password. What it does is ask you to create your user account, and this first account is given sudo permissions to execute programs and commands as the root user.

How easily this makes sense to many people depends a lot on their previous computer experience. If experienced with more traditional (read: older) UNIX systems, it is easier to grasp. If most experience comes from Windows and MAC OS < X, it can be harder.

You should not be prompted to enter the "Administrator" password anywhere, unless you have installed some weird or uncommon and non-standard software...

Whenever a process wants to elevate privileges, it should ask you for your regular account password as a safety check, to make sure YOU are the one at your keyboard, and not someone that is taking advantage of you walking away from the keyboard without locking the screen.


Can't run Pulse Secure on Ubuntu 19.04 because libwebkitgtk-1.0.so.0 is missing

Ubuntu 19.04 is not a supported platform for Pulse Secure.
You may get it to work by following the instructions below without installing dependencies with the package manager.
Note: Use carefully && caution with your own risk.

As root user, run:
dpkg -i pulse-9.0.R3.x86_64.deb
cd /usr/local/pulse/

Allow installation for 19.04 (or 19.10 / 20.04 / 20.10 / 21.04) by sed ( or manually in line 279 in PulseClient_x86_64.sh). In below is it for 19.04/19.10.
sed -i "s/UBUNTU_VER\ \=\ 18\ \]/& \|\|\ [\ \$UBUNTU_VER\ \=\ 19 \]/" PulseClient_x86_64.sh

May not needed. At least it will fail with packages which not found.
./PulseClient_x86_64.sh install_dependency_packages

Lets make debs and extra folders:
mkdir /usr/local/pulse/extra
mkdir /usr/local/pulse/debs

Download below packages from archice.ubuntu.com to
/usr/local/pulse/debs:
cd /usr/local/pulse/debs
wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu60_60.2-3ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/w/webkitgtk/libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/w/webkitgtk/libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb

Extract *.deb files on /usr/local/pulse/extra
cd /usr/local/pulse/extra
dpkg -x /usr/local/pulse/debs/libicu60_60.2-3ubuntu3_amd64.deb .
dpkg -x /usr/local/pulse/debs/libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb .
dpkg -x /usr/local/pulse/debs/libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb .

Which to normal user and export LD_LIBRARY_PATH in command line:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pulse/extra/usr/lib/x86_64-linux-gnu/

On Ubuntu 20.04 (and after) you might need to install libenchant.so.1:
sudo apt-get install libenchant1c2a

On Ubuntu 21.04 you will need to install libenchant1c2a manually:
cd /usr/local/pulse/debs
wget http://archive.ubuntu.com/ubuntu/pool/universe/e/enchant/libenchant1c2a_1.6.0-11.4_amd64.deb
cd /usr/local/pulse/extra/
dpkg -x /usr/local/pulse/debs/libenchant1c2a_1.6.0-11.4_amd64.deb .

As normal user, run pulse secure GUI on command line:
/usr/local/pulse/pulseUi

Now you should able to see pulseUI and continue with it.
Note: For troubleshooting purpose, you can use ldd command to check which libraries are needed, like: ldd /usr/local/pulse/pulseUi
If your organization use MFA, you might face issue with 9.1R11 version:
https://community.pulsesecure.net/t5/Pulse-Connect-Secure/Embeded-browser-MFA-login-failure-or-crash-after-login/td-p/45186


Bluetooth broadcom 43142 unstable connection and other bugs during work

If low battery charge is not the issue (which it may well be, based on Your description), one thing that may fix Your issue would be to try a newer kernel version.

Upgrading Your kernel may seem difficult, but it is actually fairly straight forward, provided that there are newer versions packaged and available (which is almost always the case).

To check Your current kernel version, open up a Terminal enter the following command:

uname -a

The output will look similar to this:

Linux {hostname removed} 4.5.2-040502-generic #201604200335 SMP Wed Apr 20 07:37:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

As You can see here, in my case I have chosen to upgrade to kernel version 4.5.

Here is a guide that explains how to do this in more detail: http://ubuntuhandbook.org/index.php/2016/03/upgrade-linux-kernel-4-5-ubuntu/

Note: If You still experience issues, it could also be worth while to try uninstalling/removing the firmware mentioned in the other question that You originally linked to, as it may not be needed at all. I would suggest that You try experimenting with this.

Update:
I just stumbled upon this answer that may also help You out: Drivers for Broadcom BCM43142 on Ubuntu 14.04 (Trusty Tahr)


Right now it is not possible to compile mono with the NET 2.0 profile disabled.

It will probably be implemented some time in the future (when someone gets too tired of waiting for the build to finish for something they do not need/want) - feel free to give it a shot, but it might be complicated since many things depend on having a 2.0 profile available.


Will I able to access ecryptfs -ed folders in another installed Ubuntu?

With ecryptfs your files are not actually in /home/janos but in subdirectories under /home/.ecryptfs/janos (assuming your username is janos).

Make sure you safe anything in this subdirectory!
Those files are also visible under Windows (though the filenames are garbled because of the encryption).

Considering this detail the answer is positive: You will be able to use these files in a newly installed Ubuntu.

It might become necessary to adjust the userid and permissions after replaying the backup (as Windows cannot store those natively) but the encrypted content is not damaged by backing up the encrypted files in Windows. Also no files outside of the /home/.ecryptfs directory are vital to the encryption.

Just make sure you configure your newly installed Ubuntu for using encrypted homes and just to be sure see to it, that the user in the new installation uses the same password as in the previous one.


Trying to install MATE desktop enviroment, getting "Unable to correct problems, you have held broken packages"

This means that the other software required to install mate-core is not available on the servers. Try running theses commands: sudo add-apt-repository "deb http://packages.mate-desktop.org/repo/ubuntu precise main" && sudo apt-get update && sudo apt-get upgrade && sudo apt-get install mate-core


Ubuntu not working after upgrade from 11.10 to 12.04 on ASUS U36S

I had a similar problem, and solved it by:
- Getting to a command prompt
- running sudo apt-get install -f (it complained that two packages needed to be installed, then configured them and a ton of others)
- rebooting

Looks like these two packages (libjpeg-something and some other) failed to install, so anything dependent on then was not configured properly.

Now everything seems to work ok.


New self-built computer - dual-boot Win10/Ubuntu

While UEFI provides some nice features like Secure Boot, overall it's just a pain to deal with.

Since you're willing to start over, here's what I suggest:

Go into the BIOS, and >>disable UEFI<<, and enable legacy boot.
Install Windows*, formatting the entire disk. Make sure it is installed in legacy MBR mode. To do so, open Disk Management and verify that there is only a System Reserved NTFS partition in front of your main Windows partition.
Use Disk Management to shrink your partition, creating unallocated space for Ubuntu.
While still in Windows, disable hibernation and Fast Boot
Use the "Install Ubuntu alongside Windows" option in Ubuntu's installer wizard. It will automatically install to the unallocated space you created earlier.
Reboot and verify you are met with GRUB

*In order to make sure the Windows installer is forced to boot into legacy mode:

  BIOS: To prevent Windows Setup or Windows PE from booting in UEFI
  mode, remove the efi folder on the root of the media. (Excerpt from here.)

Enjoy not having the hassle of UEFI!


Use the alternative way by manually downloading the ISO file and save it to the same folder as the WUBI installer file then recheck.

More details in the following links

http://www.ubuntu.com/download/desktop/install-ubuntu-with-windows

http://www.ubuntu.com/start-download?distro=desktop&bits=32&release=lts


I accidentally used xkill on my desktop - how can I get it back?

The desktop icons are managed by file browser, on regular running try

$ ps ax | grep nautilus
 2464 ?        Sl     0:11 nautilus -n
 6390 pts/2    S+     0:00 grep --color=auto nautilus

From man nautilus

   -n
   --no-default-window
          Only create windows for explicitly specified URIs.

In this mode nautilus will not show a window, and it run like a daemon. So for you case use:

nautilus -n & disown


Zip File Extract not working in Ubuntu 20.04 LTS

try using XArchiver - it's more flexible in understanding of the compression used:
sudo apt install xarchiver

then locate your files with Nautilus or whatever commander you are using, right click on them and open with xarchiver or "extract here".
good luck :)


Ubuntu 18.04 popping crackling sound when using headphones (recording provided)

I listened to your recording.  To me, this sounds like a hardware issue, especially since you're having the same issue no matter what software you use.
With software, audio generally works or it doesn't.
There are many physical factors that could degrade audio quality in this way.  I would consider the possibility that this noise is resulting from a faulty cable, port, or component.  It's also possible that you could be hearing EM interference.  Crossed wires and unshielded components near strong EM waves are a few examples of situations that cause EM interference.


How to copy or (quickly-and-easily) backup a "special file"?

The files in /dev/ folder are special, in a way that they represent
devices on the machine, and are not regular files that have content
in them. That file probably represents a flash drive you plugged in
to your computer, or a USB bus. If it's a USB flash drive, mounting
it first, then copying it's contents will do the trick. You could
also try backing up the whole disk as an image.

https://help.ubuntu.com/community/Mount - how to mount.
How to make a disk image and restore from it later? - check the answer about 'dd' and 'gparted' utilities.


Ubuntu 17.04 no longer asking for password when coming out of sleep mode

Check the value of

gsettings get org.gnome.desktop.screensaver ubuntu-lock-on-suspend

if it comes back with 'false' set this to 'true' with

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend true

You can also do this with a GUI, using dconf-editor - navigate to 'org->gnome->desktop->screensaver->ubuntu-lock-on-suspend'


Emacs has a the option for syntax highlighting based on this project.

Install Emacs with:

sudo apt-get install emacs


Ubuntu 16.04: Recording from the output port of an Alesis DM6 drums to the headphone/mic input of an HDA Intel PCH onboard sound card

What you need is an adapter. The jack for your drums has two or three connections depending on whether it’s mono or stereo. The headphone/mic input on your laptop four connections.


Why doesn't Ubuntu ship an application, or the latest versions of some applications?

Updates for final versions of Ubuntu only happen in line with the Stable Release Update Policy - that is to say, things will only be upgraded if there is an overwhelming benefit from doing so (like a security issue).

This is done to protect the majority of users from instability that new versions can bring. If you want a "rolling release" another distribution like Arch or Gentoo might be a better fit, otherwise there are unofficial PPAs for certain packages (at your own risk).

Updates for the version of Ubuntu in development are more fluid but still depend on three things:

Stability - If the new version is known to be unstable, it's less likely to find it's way into the repositories in time.
Testing - If there isn't enough people to test to new version, it's less likely to be added.
Packaging - If the maintainer is busy with other packages, it's much less likely to be packaged. For instance inkscape 0.47 missed the Maverick deadline and so wasn't added to Ubuntu until the Natty release.

There has been a lot of talk about how to solve this issue and allow projects to release in Ubuntu new versions for older releases, especially Long Term Support releases.

See this advice for scheduling: https://wiki.ubuntu.com/SponsorshipProcess#Consult%20the%20Release%20Schedule


Why when downloading the ubuntu 13.10 the server downloading the old version of ubuntu 12.04.3?

Here's the official download link Ubuntu 13.10 (Saucy Salamander)


Extremely poor sound quality after upgrading from 15.10 to 16.04

A change to your alsa-base.conf in /etc/modprobe.d/ may be needed but it is not possible to say for certain as you have not listed what make and model your computer is (there are sometimes specific changes for specific hardware required in /etc/modprobe.d/alsa-base.conf and your device may not have the correct device selected even if it is not a device requiring special changes in alsa-base.conf).  For example, we need to output of sudo aplay -l and lspci -v | grep -A7 -i "audio" should show exactly your sound card, or you need to make changes and perhaps add some packages.
Please list your device and the output of the sudo aplay -l command so that we can be more helpful.

This should also be useful to you: https://help.ubuntu.com/community/SoundTroubleshooting

Respectfully,
David


I usually do swap,root,and home partitions. If you have a good amount of memory, you probably won't need a swap partition most of the time, but the rare time you run out of memory it could slow you down to a crawl. The old recommendation was to use the same amount of swap as your memory, but if you've got plenty of ram then less should be okay. For root, I usually make that partition 20-30 gigs. I've only used about 5 right now (of my 30GB root) but I don't install a lot of big programs. Then make the home partition as big as you need (save space for more partitions if you want to dual boot with another distro).


Is Zenbook's QHD+ display working with Ubuntu?

I have a Dell XPS13 9343 with a QHD display (3200x1800) and use Ubuntu Gnome.

Most applications run well, but Firefox struggles to keep the resolution consistent. I use an add-on AutoHiDPI which helps, but if the window is resized or moved, it resets. So I keep the add-ons tab open so that I can disable/re-enable the addon to correct it.

A few older applications have strange half-height edit boxes, but again, resizing windows often sorts them out.

If you use Remmina for RDP access, there is currently no ability to scale the remote display, so for me, accessing a Windows server via Remmina gives a minute window.

Current Linux versions will only handle HiDPI settings across all monitors, so if you plug in an ordinary external monitor, it is assumed to be HiDPI and so windows are massive. When Wayland is finally released, this will be resolved as it enables each monitor to have its own HiDPI settings.

In summary, today things on HiDPI displays are OK in general, with a few older apps that can be a challenge, but things will improve as time moves on, especially as more & more devices use hi-res monitors.


Better "System Settings" search functionality...?

By the KDE System settings handbook (Help > System Settings Handbook F1)

  Configuring System Settings

  The Configure icon in the toolbar allows you to change some System
  Settings parameters. You can change from Icon View (default view) to
  Classic Tree View.

The KDE UserBase System Settings page ( http://userbase.kde.org/System_Settings ) is telling:

  Search

  When the keyboard focus is in the icon window, you can type the first
  few letters of any module name to select it.

  System Settings has a search function to help in hunting down a
  setting. Simply type in a keyword in the Search field in the toolbar
  and System Settings will display modules that contain the keyword and
  hide those that don't.

The 'Classic Tree View' is a KDE System Settings view style not a KDE control module.


Why I lost my connection after configurating my own network?

Your issue is with DNS resolution. Change your interfaces file to reflect the following:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameserver 192.168.1.5 8.8.8.8

Then run sudo service network-manager restart to reload interface with updated nameserver. You should have internet access.


How to customize unity's lenses - e.g. to search photos in one directory?

As for the Music lens I'm certain it doesn't work that way.
The lens doesn't display the music files you have in a folder somewhere. It reads the index from banshee and rhythmbox so only tracks you have in there are displayed in the music lens.

Since you use clementine, I've dug around and found that somebody is actually writing a scope for it, so you can use 'unity-lens-music' with clementine.

https://launchpad.net/~markjtully/+archive/ppa

It is work in progress and doesn't work for me so far (I've installed it with clementine, to see if it works). It displays search results when you type, but it isn't able to start playback in clementine when you click on the song. Maybe you can find some additional help for that.
To install the scope type

sudo add-apt-repository ppa:markjtully/ppa
sudo apt-get update
sudo apt-get install clementine-scope


Try using:
Redirect 301 / https://foo.com/b

Just place this in a .htaccess file in the directory that you want to redirect.
If you want to change the HTTP status code (redirect type) then just change the number.
Here is a link that talks more about it for reference.
https://help.dreamhost.com/hc/en-us/articles/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file-