mouse randomly stops responding for a few seconds

This seem to be a problem when GeForce graphics cards are present on an AMD machine. I looked into the kernel log, and there was a constant error

reset low-speed USB device number 21 using xhci_hcd

I found the solution here https://bbs.archlinux.org/viewtopic.php?id=238367

Essentially, I added the following kernel parameter

amd_iommu=off

Since I did not have this problem before, and I have this graphics card for about a year, this must have been caused by a kernel update, but that is another story...


Multi-user disk-less workstation using Beyond Trust PowerBroker Identity Services Open Edition (formerly Likewise)

I don't think this would be easy to do.

How are you handling machine credentials? From what I remember, each machine is joined to the domain by an account with appropriate credentials. During the join process, an account (not really any different from user accounts) is created for the machine, complete with a password that must be changed periodically (30days is the default, I think.). [This account is saved in the pbis registry (somewhere under /var/lib/pbis) and is supposed to only be accessible by root.] So if two machines try to use the same account, they will also need to make sure to stay in sync with this password.

The sockets in /var/lib/pbis are important. For instance, the pam_lsass library (loaded by anything using PAM, like sshd), will access the socket in /var/lib/pbis to communicate with the lsass service, which is a service that will talk to the DC.

I believe /var is supposed to be unique to each machine.


Black screen when installing / dual booting Ubuntu on Win 10 Laptop

It looks like there is information on the nVidia GTX 1060 on the following pages, the first link being rather complete and the second one related to the card mentioned above:
How do I install the Nvidia drivers?
Ubuntu 16.04 doesn't seem to see my gtx 1060 gpu
Mainly get the ppa drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nvidia-[correct-driver-name-or-number-here]


grub overwrites windows boot manager after every update

I would try editing /etc/grub.d/40_custom and on the bottom add your Windows menuentry that looks like this menuentry "Windows" { ... }


How do I gain access to the files in the /etc/apt folder?

Use the sudo command to gain root access. For example:

sudo -H /bin/bash
cd /etc/apt
do your editing of files
exit

Good practice is to save a copy of the original files (e.g. Adding a .orig suffix), before editing.


In the udevadm info output, you see the E prefix which is used for environment variables. You can match against it with:

ENV{ID_BUS}=="..."

If you are trying to make just USB devices writable, see this recent question on Unix.SE:

Writing raw images safely to USB sticks


Try the following:

bzr checkout --lightweight lp:~elementary-design/+junk/elementarywalls

From the help entry:

  --lightweight         Perform a lightweight checkout.  Lightweight checkouts
                          depend on access to the branch for every operation.
                          Normal checkouts can perform common operations like
                          diff and status without such access, and also support
                          local commits.


Not able to use gimp-fourier plugin on ubuntu 18.04.4

I was able to solve the problem even before posting this question. It seemed like a simple permission issue for GIMP to access that folder. So I just copied the compiled plugin to one of its default plugin folders:

/home/<user>/snap/gimp/227/.config/GIMP/2.10/plug-ins

Sorry if it's common knowledge. Just posted it so that it might help someone with a similar problem.


Cannot get OpenCl to recognize AMD GPU (RX 480) after installing amdgpu-pro drivers

I have the same problem trying to use OpenCl (for mining) via ssh (despite I installed amdgpu-pro using the --headless option). If you experience the issue via ssh try to log in directly after boot and start the specific process there as a workaround. If it does not work and you installed amdgpu-pro via ssh try to install it directly.


Firefox doesn't open - how can I correct this?

If you search for Firefox and don't find it, that suggests it's not installed.

To be sure, open a Terminal window (Ctrl+Alt+T) and run:

which firefox
dpkg -l | grep firefox

If you get nothing, or all the entries given by the second command start with something other than ii (like rc), then Firefox is not installed.

You can install firefox  from the Software Center or by running:

sudo apt-get update && sudo apt-get install firefox

If you get something, try running Firefox from the command-line:

firefox

If that works, then you've solved the main problem (and you can solve the problem of why you cannot run Firefox from the dash at your leisure).

If that does not work, then the way it doesn't work will provide valuable diagnostic information about the problem. In that case, please edit your question to include this information (or, for people other than the author of this question: you can search for your problem and post a new question if you don't find a solution).

I've listed some examples below of how it might not be working, along with some solutions.

If the Command-Line Shell Cannot Find Firefox Either

You might see an error like this when you try to run firefox:

firefox: command not found
The program 'firefox' is currently not installed. ...

The fix is to Install the firefox package.

Or if it's installed, reinstall it with sudo apt-get --reinstall install firefox.

(See below for another, more effective of reinstallation, which really does more than just reinstalling.)

Crashing

You might get an error that says Segmentation fault, core dumped, assert, assertion, or any combination of those.

That means Firefox has crashed. So you should consider reporting the bug. Read this carefully. (This question is a good resource too.) This is a crash, so you'll want to attach a stack trace: here's how that works, here's some privacy considerations (particularly relevant here since information from your Firefox profile might end up attached). Configure Apport to submit crash data for attachment to your bug report. Produce the crash and report the bug. But also try the fix below, as whether or not it works should be noted in your bug report--also, because that can help you use Firefox!

General Failure to Run

If there is no error, Firefox just hangs without a message, or quits immediately (or crashed as above), there are two fixes/workarounds:

Try running Firefox as another user (or as Guest). Any user-specific problem won't occur.
Your Firefox profile is stored in a folder called .mozilla in your home folder (as suggested in vasa1's comment). Rename it to .mozilla.old (Ctrl+H shows hidden items like this in Nautilus).

If you prefer, here's the command-line way:

mv ~/.mozilla ~/.mozilla.old

Whichever way you use, make sure Firefox isn't running at all when you do it. (You can run ps | grep -v grep | grep firefox if you like, to check.)

Then run Firefox, and it should generate a new profile. If the problem was related to or triggered by data in your old profile, renaming the profile should fix it.

Running Firefox with a new profile will fix most (though not absolutely all) user-specific problems. (It won't fix all of them because some can be in programs other than Firefox.)

Reinstalling the Package and Purging Systemwide Configuration Files

Sometimes when a program is not working, reinstalling the package that provides it with fresh systemwide configuration files (as sean_m suggested) can help. This is really doing things:

Reinstalling the package replaces any corrupted files with new files (and also, if done in the optimal way, makes sure you get the latest version of the package provided by your software sources).
Eliminating any modifications manually, automatically, or inadvertently made to systemwide configuration files can solve problems arising from your system's local configuration.

To reinstall Firefox and with new configuration files (as well as new copies of other files, like the Firefox executable), run:

sudo apt-get update && sudo apt-get --purge --reinstall install firefox

This (and any other "purge" method) only replaces systemwide configuration files--files that affect the configuration for all users. This does not affect individual users' profiles or other user-specific configuration.

See man apt-get and the Ubuntu wiki for more information about what the --purge flag (and the purge action) does.


In Ubuntu, use browser to navigate to > http://kernel.ubuntu.com/~kernel-ppa/mainline/
Scroll to the bottom of the list; choose your kernel. Download the following files (xxxxxx will be replaced with numbers indicating the kernel version. Assuming you have a 64bit OS):

linux-headers-xxxxxx-generic-xxxxxx_amd64.deb
linux-headers-xxxxxx_all.deb
linux-image-xxxxxx-generic-xxxxxx_amd64.deb

Move all these files to a folder.
cd into it.
Install all these packages by running
sudo dpkg -i *.deb

Choose new kernel from grub menu.
Update: Since its an ubuntu instance you can manually get the links and and use wget to download the packages


Are there ubuntu drivers for Dell DA100 adapter?

Dell DA100 is based on DisplayLink hardware, so you might have some luck by using their reference Ubuntu drivers: http://www.displaylink.com/downloads/ubuntu.php


For instance k3b supports freedb (and MusicBrainz):

By default k3b will submit to freedb when you add a new CD.

If you run apt-cache search cddb you'll get a list of packages mentioning cddb. It may be worth to have a look at a few of these as well.


You have to add the Apache Alias and Directory directives inside both VirtualHost sections that you have in your facebook.****.in.conf config file so it is enabled for both HTTP and HTTPS connections.

The snippet of configuration that you should add must be something like

Alias "/apis" "/var/www/html/apis"
# Now set directory permission
<Directory "/var/www/html/apis">
     AllowOverride None
     Options -Indexes +FollowSymLinks

     <IfVersion < 2.3 >
         Order allow,deny
         Allow from all
     </IfVersion>
     <IfVersion >= 2.3>
        Require all granted
     </IfVersion>
 </Directory>

I think that your Apache Server version is higher than 2.3, so only adding the Require all granted statement should be fine without checking for the version. I added it just in case though.

Also, I included some other directives for security and performance purposes. Please find below a quick overview of them

AllowOverride None: it disables using .htaccess files into the directory for security and performance purposes. The Apache Software Foundation recommends this configuration setting at http://httpd.apache.org/docs/current/mod/core.html#allowoverride

  "For security and performance reasons, do not set  AllowOverride to anything other than None in your   block. Instead, find (or create) the  block that refers to the directory where you're actually planning to place a .htaccess file."

Options -Indexes +FollowSymLinks: the -Indexes option will prevent the Web Server (the mod_autoindex module concretely) to return a formatted list of the directory when the required URL maps to a directory where there is no a DirectoryIndex (e.g. an index.html file). Apart from that, the +FollowSymLinks option allows the server to follow symbolic links in this directory. You can get more information about the Options statement and other available options in the Apache Web Server official documentation at http://httpd.apache.org/docs/current/mod/core.html#options

Also remember to set the correct permission to the /var/www/html/apis directory and files for the user that runs the Apache server (www-data in Ubuntu by default) and to restart the Apache service for changes to take effect.

sudo service apache2 restart

Update

You can also include the DirectoryIndex directive into the Directory block in case you do not have an index.html file in that directory (e.g. index.php)

DirectoryIndex index.php

It is also possible to specify more than one file. In that case, the first file found will be returned

DirectoryIndex index.html index.php

More information about it at http://httpd.apache.org/docs/current/es/mod/mod_dir.html#directoryindex


Most probably, your shell is expanding $1 (likely to an empty string) before passing it to the rename command. Try single quotes instead of double quotes around the regex:

rename -- 's/image\.php\?x\=(.*)/$1.png/g' *

(also, it should not be necessary to escape the dot in the replacement expression i.e. you can use $1.png in place of $1\.png)


Ubuntu 15.10 server wifi and Atheros AR9287

Just to update, I re-installed to 14.04 LTS and was able to get it working using wpa-supplicant typical configuration...probably best to stick with LTS on a server anyhoo.


How to prevent deja-dup-monitor from running, or completely delete it?

I fix this problem by myself. The deja-dup-monitor is a component of "Deja Dup Backup Tool". When search with keyword "backup", this software appears blatantly in the first place in the Software Center. After uninstalling it, everything will return to order. I then reinstalled this software just to leave a review warning people not to install it, if they don't want their ubuntu to die, and uninstall it immediately in a hurry.

I am curious about the development team of this software. Does developers in this team all have a computer with 256GB memory so that no one found this problem? or they are so bold-faced to write a rubbish software to make them happy by seeing their users hit their heads against a wall. If I wrote such a code (yes I sometimes did because I'm not a genius), I will feel so ashamed that I will fix this memory leakage bug (or something) as soon as possible even after two or three sleepless nights.


Cannot install Pear Package HTML_BBCodeParser2(beta) on my system

Unfortunately, whenever Ubuntu or Debian push out an update that touches on PEAR, they revert the installed version of Archive_Tar to a broken one. I've reported this several times.

You simply need to upgrade Archive_Tar to a version that works. Do this with:

$ sudo pear upgrade -Z pear/Archive_Tar

After that you should be able to install HTML_BBCodeParser2 just fine.

(I would also recommend that you upgrade to PEAR 1.10.0)


System went read only...won't allow me to boot

If gparted doesn't see your hard drive, it's likely it's dead.  Sorry.  Either that or unplugged. :D


How to add Fade-out and Fade-in Effects by convert command?

I'd personally stick to video tools for generating video. Imagemagick is pretty awesome but it's no ffmpeg. ffmpeg (or avconv as it's now known) can handle both frame-stitching and fade options in one go:

ffmpeg -r 24 -b 500000 -i frame%05d.png -vf fade=out:155:45 output.mp4

If you're not familiar with ffmpeg, here's a quick translation of that command:

24fps
~500kbps bitrate
Uses all images called frame{00000..99999}.png
starts fading out at at frame 155 with a fade duration of 45 frames
outputs to output.mp4

ffmpeg also gives you a ton of options about handling audio, codecs, containers, etc that Imagemagick wont, but I'm leaving that well alone. Have a play.

Edit: I was originally making this up on the spot but I can confirm that this works just as expected/described.


Is there a Gmail notifier that works with multiple accounts?

You can install the package gm-notify [Install gm-notify]

Otherwise, open up the Software Center (on the launcher), then do a search for "gm-notify". Once you've found it, mark it for installation, then go click "Install". Once that's done, you can launch it from the Applications lens by typing in "Gmail" and selecting it. Once it's launched, you can then configure it.


Cannot compile C++ files on Ubuntu Server 14.04.5 (version.h error)

The kernel header package seem to be (broken?) missing in your system.
If you could install it by apt,

sudo apt-get install linux-headers-generic

Restart your system for the change to take effect.


Macbook 2015, 8,1 -- how to get the keyboard and trackpad working with Ubuntu 18.04?

Based on Macbook (12' 2015) keyboard and trackpad you need an out-of-tree device driver (at least until one lands in the mainline Linux kernel). The answer to that question indicates that the installation of macbook12-spi-driver, which you don’t have yet, along with a kernel version ≥4.14, which you do have by default in Ubuntu 18.04, solves the issue.

SPI Driver Installation

I’m going to line out how to install the “input driver for the SPI keyboard / trackpad found on 12" MacBooks (2015 and later) and newer MacBook Pros (late 2016 and later)”.

1 Preparation

Make sure that Git, build tools, DKMS, and kernel headers are installed:

sudo apt install git build-essential dkms linux-headers-generic linux-headers-$(uname -r)

Clone and enter the SPI driver source code repository:

git clone https://github.com/cb22/macbook12-spi-driver.git
cd macbook12-spi-driver

Make sure that you don’t use the noapic boot option.

If you’re unsure check the Grub configuration with:

grep -e '^[^#]*noapic' /boot/grub/grub.cfg /etc/default/grub /etc/grub.d/*

No match means no noapic option; but a match doesn’t mean that it’s actually enabled.

2 Installation

For the first time or whenever build issues occur you can test the build process:

make

To clean up the build result again:

make clean

Register the kernel module source code with DKMS to handle the build and installation for every new kernel version:

sudo dkms install -m applespi -v 0.1

If the DKMS fails it will print an error message with the build log location that contains the actual error message.

3 Testing and configuration

Make sure that the kernel modules spi_pxa2xx_platform, spi_pxa2xx_pci1, and intel_lpss_pci2 are loadable:

sudo modprobe spi_pxa2xx_platform spi_pxa2xx_pci intel_lpss_pci

No output means success.
Add the modules to the initial boot file system to have them available during boot password entry:

sudo mkdir -p /etc/initramfs-tools/modules.d
printf '%s\n' applespi spi_pxa2xx_platform spi_pxa2xx_pci intel_lpss_pci | sudo tee /etc/initramfs-tools/modules.d/macbook12-spi

You may skip the modules spi_pxa2xx_pci1 or intel_lpss_pci2 depending on their footnotes.

1 Needed for 2015 Macbooks only.

2 Needed for post-2015 Macbooks and all Macbook-Pros only.


status of gedit r plugin (rgedit) in 16.04?

As you can see on the rgedit homepage it has not been maintained since 2013 and this is obviously the reason why it got dropped.

From my personal experience I can tell you a try to get it working with the latest gedit is more than pain in the a** and almost impossible without rewriting the whole plug-in.

As far your downgrade attempts, you should definitively should check out the guide I made for that. There you even find a script which does the downgrade for you.


How to hide a GTK window in Python before call or os.system

After some time googling possible solutions, I've found this simple answer, which waits to GTK until it finished all its working tasks. You may think that makes the app slower, but the difference is almost unexistent.

This workaround can be used with any version of Python. It works with PyGTK and with GTK+3 (with GTK+3, change gtk per Gtk... :P )

while gtk.events_pending():
    gtk.main_iteration()

Just add this before the code which causes the problem... and done! :)


It turns out that the environment that runs .profile is a bit picky and it treats any output on stderr as representing an error. The command ssh-add uses stderr as if it was stdout and tells the world which SSH keys were loaded into ssh-agent. By invoking ssh-add in the following way the environment thought that everything was OK.
ssh-add key1 key2 1>&- 2>&-

What this does is to close stdout and stderr for any given command. This is the most efficient way of suppressing all output.


I resolved this by booting from my Windows 10 USB key and performing a boot repair. I made sure I could boot to Windows ok. Then I rebooted and booted from my Ubuntu 16.04 live USB key, installed and ran boot-repair and rebooted. Then the Grub2 menu appeared and I can now dual boot Ubuntu and Windows. To prevent this from recurring I ran this command to stop grub2 from updating which started the problem.

sudo apt-mark hold grub* grub*:i386


Simple script works in terminal, but not crontab

In order for that script to run it has to be in a .sh or shell file.
So you need to cp day.txt day.shand then change your line in crontab to reflect this change and add the function to run the shell script. Make sure to include #!/bin/bash in your shell script.

18 14 * * * sh /var/www/html/day.sh


2 computers with the same mac address, router won't assign a different ip address after I spoof the mac

It's the router that is confusing things for you. Options:

Set reserved IP addresses, by hostname, on the router
Set static IP addresses on the devices from the non-DHCP pool IP address range
Replace one of the devices


Instead of doing things the hard way you can just start a live Linux system from USB or CD/DVD and rescue your data with that. It would also make the diagnosis of the mount error(s) more convenient.

If you really want or need to use the rescue shell,

look for a writeable file system like /run or /tmp (look at the mount options in the output of mount or the content of /proc/mounts for suitable ones) or
create a writeable tmpfs mount point yourself (mount -t tmpfs none /tmp).

There you can create directories you can later use as mount points for the file system(s) containing your data and those on your transfer medium. You should use the --read-only flag of mount on the former as to not alter or delete any data accidentally.


My internal hard disk has 615 bad sectors and it has no Os installed in it. what should i do to remove these bad sectors and install ubuntu on it?

Bad sector is  error regarding physical of the disk. Instead of isolated the bad sector area, you must change you the hard disk to get rid of the problem. Due to permanent damage that will occurs nearby, the only solution is to replace your hard disk with the new one. Do copy and back up your data before it is broken.


php5-imap is a PHP module to communicate with IMAP Servers. It is typically used by Webmail applications.

dovecot is an imap server. It looks like you are looking for an imap server


I think your syntax is a bit off. Try

acl blacklist dstdomain .wikipedia.org
http_access deny blacklist

Other options are outlined here: http://wiki.squid-cache.org/SquidFaq/SquidAcl#How_do_I_implement_an_ACL_ban_list.3F

If you just want to block a single site, you can use /etc/hosts

0.0.0.0  wikipedia.org

Or iptables

sudo iptables -A OUTPUT -d wikipedia.org -j REJECT --reject-with icmp-host-prohibited


Your /boot partition is full, apt-get tries to finish the installation of a new kernel from a previous upgrade but always fails due to lack of space, note the line 3 not fully installed or removed.

I'd suggest to uninstall older versions of linux-image, but since that doesn't seem to be an option, try expanding your boot partition first.


It is an argued question, but my opinion is that with 8 or more GB of RAM you don't need swap unless you use suspend to disk. If you are sure you need swap it should be at least the size of your RAM.
I don't know if they are downloaded or installed from your installation media, but you can install them any time you want later from the corresponding packages (i.e. the ubuntu-restricted-extras meta package and its dependencies).
You can install all the updates later via the regular updates procedure. However I believe that it's better to download and install them during the system installation process as it might prevent some bugs.


How to configure to start my application at boot time

The old way is System V and UpStart but the new way is systemd. The steps are:

Create the service file in /etc/systemd/system/myapp.service:

contents might be (depending on your service needs):

[Unit]
Description=myapp service

[Service]
Type=simple
ExecStart=/path/to/myapp.sh

[Install]
WantedBy=multi-user.target

Start it: sudo systemctl start myapp
Get it to run at boot: sudo systemctl enable myapp
Other commands of systemctl:

stop it: sudo systemctl stop myapp
disable it: sudo systemctl disable myapp

Please see:

https://www.freedesktop.org/software/systemd/man/systemd.service.html


This is because the fingerprint sensor on the Asus notebooks is not yet supported in the libfprint library. (It's the Elan Microelectronics reader)
See https://bugs.launchpad.net/ubuntu/+source/libfprint/+bug/1641290 and please add your vote by clicking the "yes, it affects me too" indicator at the top of the bug report. The more people show that they are affected, the greater the chance that this gets assigned to somebody to fix.
Because the hardware is not known, it doesn't even show in the lshw listing.


What Ubuntu version or flavor should I use?

I would suggest to go with the Lubuntu-16-04-LTS 32-bit image found here https://help.ubuntu.com/community/Lubuntu/Alternate_ISO - for your system this installer should do the charm.
On this site they say that it might take up to 90min for the installation to complete and that it does not hang even though there is nothing happening for a while.
If you get an error about pae-kernel you might have to add forcepae to the boot options as explained here.

As it appears, for your hardware these boot options nomodeset and forcepae need to be set in Grub.

So after installation is completed, I suggest you go get the tor-browser-bundle from torproject.org.

Before you install it let's move it from Downloads to your home-directory; in a terminal type mv ~/Downloads/tor-browser-linux32-6.0.5_LANG.tar.xz tor-browser-linux32-6.0.5_LANG.tar.xz(replace LANG with appropiate language).

Now let's unpack it with tar -xvJf tor-browser-linux32-6.0.5_LANG.tar.xz then we switch into the newly created directory cd tor-browser_LANG and complete installation with ./start-tor-browser.desktop.

Since we want the Tor-Browser be offered in the menu and not always click through directories, I suggest you run - still in the same terminal as above - cp start-tor-browser.desktop ../.local/share/applications/start-tor-browser.desktop

Good Night and Good Luck ;)


During boot Ubuntu runs a script /etc/init.d/ondemand that waits one minute, then sets ondemand mode. You can make a change to that script such that it sets powersave mode instead.

Note that doing so, and with the acpi-cpufreq driver, your CPUs will always be at the very minimum clock frequency.


(ubuntu phone) is anyone planing on making a messenger for xmpp

There are Loqui.im which support XMPP for FirefoxOS and Ubuntu Touch (and Tizen).

Unfortunately the Ubuntu Touch version doesn't seems to be actively maintained, you may try to submit an issue on GitHub about this.


Identifying packages by usage for removal

Though I am sure there is a way to do this with just Bash scripting, I wrote a little script (which calls shell commands anyway to execute dpkg) in Ruby.

What it does is:

Calls dpkg -S /usr/bin/* to get a list of all the packages that each of the files in /usr/bin belong to.
Build an array of each package with the latest date of a contained file from the same directory, by comparing the last accessed file (atime) of each file in the package and sorts the list by the time
Output the results to a tab delimited file

A better approach would probably be to go through each package, list all the files in the package, and find the last access time for each file, and so find the maximum access time for each package. (Which sounds like it should be doable with some single line Bash script).

Perhaps someone could be so kind as to provide a Bash-only version that does the same thing?

# Obtain a list of files in /usr/bin with the corresponding package they belong to:
packfiles = (`dpkg -S /usr/bin/* 2>/dev/null`).split("\n") # errors written to /dev/null

# For each executable in a package, get the last accessed time and save the latest time per package
packagetimes = packfiles.reduce({}) {|packages, pf|
  package, file = pf.split(' ') # Split line into package name and file path
  package.chomp!(':') # Remove last colon after package name
  packages[package]
  lat = open(file).atime # Get the last accessed time of the file
  #Take greater of package last change time or time for file for package:
  packages[package] = (packages[package] && packages[package] > lat ? packages[package] : lat)
  packages #for next reduce iteration
}.
# Produce a sorted list of packages and times
reduce([]) {|arr, entry| arr << [entry[0],entry[1]] }. # Create array with package, time
sort_by {|line| line[1]} # Sort array by time

# Write out the list of packages and times
open('./pusage.txt', 'w') {|out|
  packagetimes.each {|pt|
    out << "#{pt[0]}\t#{pt[1]}\n"
  }
}

You can test it, as I did, by running some binary from some package and seeing that, when you run the script again, the timestamp next to the package changes and moves it to the bottom of the list.

This kind of works for me, though I would still be a bit hesitant to delete some of the packages, even though their usage seems like it might date back to when I installed the system on my machine.


unable to download deb packages from a private repo

Well in case some one else get stuck on something similar:
I got it working, issue was that I was running

dpkg-scanpackages

from /home/ubuntu and hence the whole path  was being added to the deb package in Packages.gz. I executed the same command from the packages directory and I am able to successfully download the pkgs.


search on Google returns DNS_PROBE_FINISHED_NXDOMAIN

You should use different DNS try using the public DNS of google.

Open dhclient config.
sudo nano /etc/dhcp/dhclient.conf

Set the new DNS.
supersede domain-name-servers 8.8.8.8;

Restart Network service
sudo service network-manager restart


Where can I find the supported way to deploy hadoop on precise?

I think there is no "supported" way yet (by "supported" i mean packages in the default repositories maintained by Canonical).

From the links you provide, “Hadoop Ubuntu Packagers” team has 3 ppa's with packages to precise (dev, testing and stable). If using a PPA is an option then choose the one best fits your needs.

CDH4 provides packages to precise (although it seems quite different from CDH3). Despite not being supported you can try to use maverick repo in precise.

Also Hadoop provides compiled versions of Hadoop, so you dont need to build them from source, but you probably will need to setup the init scripts and configure Hadoop manually.

Hope this helps somehow.


Dpkg error E: Sub-process /usr/bin/dpkg returned an error code (2)

I've found a solution to my question.

sudo -i
mkdir /tmp
mkdir /tmp/dpkg
cd /tmp/dpkg
wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.19.7ubuntu1_amd64.deb
ar -x dpkg_1.19.7ubuntu1_amd64.deb
tar -xf data.tar.xz
cp ./sbin/start-stop-daemon /sbin

If dpkg broken:

cp ./usr/bin/dpkg /usr/bin/
apt update
apt install --reinstall dpkg
apt upgrade


ubuntu 14.04 boots; login screen freezes: no GRUB menu; unable to access recovery boot mode

Important question: Does it freeze before you (could) log in? or does it after you log in?

If you can do folowing thing before it freeze, try it:
when you see the login screen, do not log in, just press Ctrl + Alt + F3. Now you should see black screen with white words:

  Ubuntu 14.04.3 LTS JustinHost tty3
  JustinHost login:

From here on you can login with username and password, and then install for example xfce.

You can go back to login screen with Ctrl + Alt + F7 else try with buttons from F1 to F8.
Once you can log in into that dark abyss tty(teletypewriter) terminal, you can install some other GUI instead of gnome, e.g. kde,xfce,lxde. To install xfce: sudo apt-get install xfce and startxfce4 to start it. You should now be able to see xfce. If you get error and black screen, means it is graphic drivers problems.

If it freezes before:

What would I do? (I am no expert). Fresh ubuntu installation on new partition, then move all personal data ( /home folder) to new partition, then delete old partition, install all programs (/home should remain all settings), and never update again ;) (or change settings to install only security updates.
Plan:
live-USB Ubuntu : -to rescue most important files (+ another usb to save them on.
- and create new partition: open(install) gparted: resize old partition to make place for new(delete files if not enough space), create new partition (type ext4).

Install Ubuntu : click something else, choose new empty partition, mount point: / ,install.
after install: if you cannot boot into new Ubuntu: go in live-USB, and do boot-repair (link : 2th option, recommend settings). Now you can boot into new Ubuntu.
Move all files from oldpartiiton/home into newpartition/home . Very important to copy hidden files (starting with . ). Remove "oldpartition" and resize back the newpartition.
done. Use google.

"but I do not get a Grub menu":
use live-usb and change grub settings : set timeout to 20 seconds. Now is set to 0, so you dont see any menu. Use google.


How do I install tun/tap on Ubuntu 10.04?

Are you running vpnc-connect as root? The ls output shows the device is only readable and writeable by the root user.


Share Internet Connection via Ethernet connected Router over the LAN

install dhcp server on Ubuntu version: 14.04
share internet connection on Ubuntu version: 14.04
restart Ubuntu version: 14.04
reset your TP-Link TL-MR3220
turn off dhcp of TP-Link TL-MR3220 or enable it to client mode
turn off firewall of TP-Link TL-MR3220
restart TP-Link TL-MR3220
its done

......if you don't know how to install dhcp server on Ubuntu version: 14.04 click on link http://www.krizna.com/ubuntu/setup-dhcp-server-ubuntu-14-04/


I've experienced this problem before.  Maybe you can try to boot with the live CD on the PC that causes problem and follow the guide to Boot-Repair here :
https://help.ubuntu.com/community/Boot-Repair

It worked for me on my Asus Laptop.

Let me know if it works for you !


How do I install an old version of SDL (1.2) for development?

All currently supported versions of Ubuntu have SDL 1.2 packages in their official repositories. Try installing libsdl1.2-dev.


How do I add extra packages for an offline install of server?

Do you really need to add d-i pkgsel/include string flex ? As far as I know, this command is added if you want to download from repository.
For unmet dependecy problem , you can install deb package in new-installed VM and copy /var/apt/cache or you just clear /var/apt/cache the install deb package.


Why is the oneric-backport repository enable by default on 11.10?

This was a decision they made to help people get the best drivers for their systems. There was a bug created here:

https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/840135

And here was the spec discussion:

https://blueprints.launchpad.net/ubuntu/+spec/foundations-o-backports-bof

And here is the quote from the release notes:

Backports are now more easily accessible
To enable users to more easily receive new versions of software, the Ubuntu Backports repository is now enabled by default. Packages from backports will not be installed by default — they must explicitly be selected in package management software. However, once installed, packages from backports will automatically be upgraded to newer versions.


According to this Ubuntu documentation, the default system shell in Ubuntu is Dash, instead of Bash, while the default login shell is Bash.
The output of ls -al /bin/sh shows you whether /bin/sh is a symlink of Dash (most probable), or Bash. In my case it is Bash:

lrwxrwxrwx 1 root root 4 Apr  8  2014 /bin/sh -> bash

Dash will not be able to interpret echo "this was written by rc.local" > /home/simon/start_text in /etc/rc.local, so you need to specify to use Bash to interpret the command like this

/bin/bash echo "this was written by rc.local" > /home/simon/start_text .

You can change the default system shell to Bash but it is not recommended via deleting and re-creating the symlinks:

rm -f /bin/sh

sudo ln -s /bin/bash /bin/sh

Or back to Dash:

rm -f /bin/sh

sudo ln -s /bin/dash /bin/sh


Warnings and errors when updating Aptitude with multiple architectures enabled

I found the answer to my own question here: https://wiki.debian.org/Multiarch/HOWTO#Setting_up_apt_sources

To summarize, you need to open the /etc/apt/sources.list file with a text editor and then add arch=<architecture> between deb and the URL for each line. This is the example provided on the page:

deb [arch=amd64,i386] http://uk.archive.ubuntu.com/ubuntu/ quantal main universe
deb [arch=armel,armhf] http://ports.ubuntu.com/ubuntu-ports quantal main universe


Is the "Final Release" a "Development Release"?

The development release is the pre-release version of Ubuntu. It's the next future release.

Using the development release means you want to be a tester. You want to discover problems and translate strings and file bugs. If that doesn't sound fun, then DON'T run the development release.
Using do-release-upgrade with the -d flag will migrate you to the current development release.
The development release is NOT supported here at AskUbuntu.

The final release is the released version of Ubuntu. We usually refer to a final release by it's release date (18.04, 19.10, 20.04, etc) or by it's release name (Bionic Beaver, Eoan Ermine, Focal Fossa, etc.)

This is the recommended version for general use.
This is the version at http://ubuntu.com/downloads
This is the version supported here at AskUbuntu
Using do-release-upgrade without the -d flag will migrate you to the next final release.

Note that the week around a release date does not need to be confusing:

On release day, the development release converts into the final release.
The next development release won't open for a week or so. During this brief time, the -d flag may have unexpected results. Maybe it will bring you to the final release, or maybe it will bring you to the next development release. Read your output carefully.

For folks thinking about upgrading to a new release of Ubuntu:

LTS Users (only): The tested upgrade path is NOT from, for example, 18.04 to 20.04. It's from 18.04.x to 20.04.1. That .1 release will occur three  months after the main release. In other words, keep running the older LTS release for three more months, then your system will offer to upgrade.
Impatient LTS users: Some folks don't want to wait. They want a newer release right away. These folks probably should be using Interim (6-month) releases instead of LTS, but that's not important here. There are shiny unofficial websites that suggest using update-manager -d or do-release-upgrade -d to skip that three month wait, and migrate from LTS to LTS right now. The safe route is to wait for the point release. Be patient. If you decide to use -d, read your output carefully to be sure you are getting the release that you expect.
Interim (6-month) Release users: You do need to use -d to upgrade for the next few months. Since this is an LTS, the regular (non -d) upgrade won't be offered until 20.04.1. Reason: There's one mechanism, and it cannot tell the difference between interim releases and LTS releases. This is normal behavior for an LTS release, and occurs once every two years.


How to add my favorite places as a quicklist in my home's icon in Unity with other languages?

works exactly as in linked question, just change lines like
Exec=nautilus ~/Documents to Exec=nautilus ~/Dokumente
and so on
will work

logout-login to apply changes


For instance, to right-click method on touchpads without a physical
  button you need to perform a two-finger click (just tap anywhere with
  two fingers). Clicking in the bottom right area of the touchpad no
  longer works.

  If you don’t like this behaviour — and there’s a fair chance you might
  not — you can use the Tweaks app (see step #5) to change the setting.

Source: OMG Ubuntu  (see link for how to fix it)


Can I submit a ruby gem I'm working on for ubuntu app showdown?

Today is the final day to submit your application for the App Showdown (if it has not already closed today). Assuming your application is complete and ready for submission:

As the final step, you’ll get to publish your app in the Software Centre to be distributed to millions and rated and reviewed for the community vote. We ask all participants to package their apps in a Personal Package Archive (PPA), which Quickly makes really easy:

◦ Set up a PPA on Launchpad

◦ Run the following command to package and upload your app:

quickly submitubuntu

◦ Your application must be published to a PPA, run out of /opt, only have dependencies in the Ubuntu 12.04 archive, and must work correctly.

Fortunately Quickly eases this with the above command. If you choose not to use Quickly and you are manually packaging it, if your application does not adhere to the above points, it will be rejected.

◦ IMPORTANT! While submitting your app, fill in the App Showdown Participation Details and upload it in the ‘Your application‘ field in MyApps.

Source: Ubuntu App Developer - http://developer.ubuntu.com/2012/07/ubuntu-app-showdown-deadline-approaching-get-your-submissions-ready/


Patience, young Padawan, you just need to wait a tad bit longer.  In the PPAs, architecture independent packages (php5-common) can be built on different architecture at different time.


eCryptfs is a POSIX-compliant enterprise cryptographic stacked
  filesystem for Linux. eCryptfs stores cryptographic metadata in the
  header of each file, so that encrypted files can be copied between
  hosts; the file will be decrypted with the proper key in the Linux
  kernel keyring. There is no need to keep track of any additional
  information aside from what is already in the encrypted file itself.
  You may think of eCryptfs as a sort of "gnupg as a filesystem".

  eCryptfs is widely used, as the basis for Ubuntu's Encrypted Home
  Directory, natively within Google's ChromeOS, and transparently
  embedded in several network attached storage (NAS) devices.eCryptfs

More information can be found at Ubuntu Help


Issue making bootable usb of ubuntu for mac

sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1m

/path/to/downloaded.img  means path to that img file,for example if the .img is located in /bin folder then we give if=/bin/downloaded.img.

/dev/diskN means the usb partition where you are going to place the contents of .img file.

Or

You can use unetbootin software to create bootable ubuntu usb from mac.


Two network cards, which provides internet?

route -n

will show the active connection.

By default the one with the lowest priority number takes precedence. You can set up your network to have both wired active at the same time. Same can be done with wireless (but will require a unique router connection for each).

For wireless you can set a priority for all wireless but not in relation with wired. It is called connection.autoconnect-priority. In case you have a desktop: networkmanager has it also in its options under "general".

nmcli connection modify {networkwifiname} connection.autoconnect-priority 10

where 10 is the priority (lower is more). nmcli -f NAME,UUID,AUTOCONNECT,AUTOCONNECT-PRIORITY c will list the current priority.

Wired will always override wireless but you can use ifmetric (apt install ifmetric) if you want to set wireless before a wired network.

ifmetric {networkname} 10

will set it to 10.


That raid box uses USB and eSata to connect to the host pc and does not need other software to operate.

The RAID mode and configuration is done by jumpers on the back of the box

That means that the host computer will not really mather as long as it can support USB or eSata and those are present in any recent motherboard and supported by Linux, thus support by Ubuntu.

You can have a look at the manual here, it describes the setup, possibles configuration of the raid box, all software independent.


I have 2 EFI partitions on 2 separate drives. How do I combine them?

Short answer:

Overall, this is a Windows problem, so I recommend asking about it on a Windows forum. A quick Google of your error message produced several hits, like this one. I recommend against trying to combine your ESPs, since that's almost certainly not the cause of the problem, and doing so may create new problems. A Boot Info listing (see below) may help in case the problem is Ubuntu-related, but it's most likely a Windows-specific problem without an Ubuntu solution.

Long answer:

Having two ESPs is perfectly legal, although there are some caveats. Most importantly, the Windows 7 installer will choke if there are two ESPs on the same disk. I don't know if it would become confused with two disks, each with its own ESP; and I don't know if this is a problem with more recent versions of Windows. I've never before heard of an already-installed Windows choking because a second disk has a new ESP. (I've installed Windows this way myself without problems.) All of this is to say that an attempt to combine your two ESPs is likely to be a wild goose chase, and may cause new problems itself....

In particular, if you decide to combine the two ESPs, then copying files from one to another is not sufficient; you'd need to create a new NVRAM entry for the copied boot loader with efibootmgr (in Ubuntu), bcdedit or EasyUEFI in Windows, or a similar tool in another OS.

I do have some other thoughts on your problem:

How are you selecting to boot Windows? -- You say you can opt to boot Windows, but it's unclear how you're doing this. It's likely to be either the EFI's built-in boot manager (the same tool you probably used to boot the Ubuntu installer) or GRUB. If you're using the EFI boot manager, then the system is likely booting the same way it did before (but see the next point); but if you're using GRUB, it may be trying to boot Windows in a very different way. This might be the source of the problem. If so, a BootInfo output from Boot Repair might be helpful in diagnosing the issue. You can run the Boot Repair utility and select the "Create BootInfo Summary" option. (DO NOT click "Recommended Repair," at least not yet!) When asked whether to upload the report, click "Yes," and then post the URL provided here.
Possible loss of the EFI boot entry for Windows -- EFIs rely on entries in NVRAM to launch boot loaders. Some (but not all) EFIs automatically remove invalid entries, so when you unplugged the Windows disk and booted the computer to install Ubuntu, the original Windows entry may have been deleted. Some EFIs will also automatically add an entry for Windows when it's present, so when you plugged the disk back in, a new entry may have been created -- but this new entry may not be an exact match to the original one. Likewise, Windows usually creates an entry using the fallback filename (EFI/BOOT/bootx64.efi), which EFIs launch if nothing else is available, so you might be booting via this entry. This could be a contributing factor to your problem. Unfortunately, if I'm right about this, the original entry is lost, and it might not be clear what it should be, even with Boot Info output; but there might be clues in that output in any event. Windows tools should be able to create a working entry in this case, but this is a subject for discussion on a Windows forum.
Possible filesystem damage -- Windows 8 and later use features known as Fast Startup and Hibernate, which can cause filesystem damage in a dual-boot setup. Thus, it's imperative that these features both be disabled, as described here and here. If you didn't do this before installing Ubuntu, it's possible that your Windows ESP was damaged somewhere along the line, which could be causing your problem. If so, a filesystem repair (with dosfsck in Ubuntu or CHKDSK in Windows) might fix the problem. In a worst-case scenario, you might need to re-install the Windows boot loader using Windows tools. (Restoring them from a backup would also work, if you've got a backup.)

Note that all of these issues are basically explanations for how the Windows boot failure was triggered. With the possible exception of booting via GRUB, the solution will likely come from running Windows repair tools. If the problem is caused by an attempt to boot Windows via a malformed GRUB boot entry, then fixing that in Ubuntu should fix the problem; but the other causes will require Windows repairs. Thus, posting the Boot Info output may be helpful before you try anything else; but you should be prepared to seek a solution within Windows.


sendmail doesn't send email to specific domain email address

The user unknown message means info is not a valid user at the domain ayolla.com.

This is a permanent error and not something you can fix, as the email address (recipient) is rejected by this mail server.


xfce4-power-manager suspend not available for lid close

Install pm-utils

sudo apt-get install pm-utils

Reboot

Reference: [Solved] Issues with xfce4-power-manager-1.2.0

Discussion resume that: upower is relying on pm-utils to check for suspend/hibernate capability.

The broken link in the reference page should point to related bug report:
Debian bug#639754 [upower] upower doesn't verify correctly the "suspend" and "hibernate" capabilities correctly

Not sure about this as upower package has Depends: pm-utils | systemd | systemd-services. I thought they should be alternatives. So may be there is other solution using systemd-services which is installed by default.


How to install and setup tftp server in Ubuntu 14.10 (utopic)?

This works for me:

service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /tftpboot
disable         = no
}


How to properly launch tmux on terminal startup?

The problem is the exec command. As explained here, exec will replace the current shell with whatever you tell it execute. So you don't have a shell that is running tmux, you just have tmux and therefore exiting it will also exit the terminal.

Just remove the exec and it should work as expected:

if command -v tmux>/dev/null; then
 [[ ! $TERM =~ screen ]] && [ -z $TMUX ] && tmux
fi


What does "Missing Operating System" on boot mean?

If you're getting this error it means you haven't booted off the USB stick, or the USB stick isn't bootable so when you try to boot off of it, it fails.

Double check that you've created the USB stick correctly, and then ensure when you boot the PC that you select to boot off of the USB stick.

This setting differs between PCs, but usually hitting F2, F12 or Delete on boot let's you either set the setting in the BIOS or select it right from boot.


For me, Compiz didn't play well with xbmc at all, that is why I made the following script to start XBMC:

#!/bin/bash
metacity --replace &
sleep 2s
xbmc
unity --replace &
exit;

It replaces compiz with metacity, and then starts xbmc. When xbmc exits, you get compiz back (there may be some flickering when compiz is restarting)

You can save the script as xbmc.bash and make it executable using

chmod +x xbmc.bash

Then start it! I hope this works for you!


Introduction

The script bellow asks user to choose 1/3 or 2/3 resize option for a window, then allows the user to select a window that is to be resized. The window to be resized to 1/3 will jump on the left and 2/3 window will jump on the right. The script can be bound to a keyboard shortcut as necessary.

Preliminary setup

The script relies on wmctrl program to do the job. Make sure it is installed first with

sudo apt-get install wmctrl

Setting up the Script

Create folder in your home folder called bin. You can do so with the command

mkdir $HOME/bin`

In that folder create a file resizer.sh. Copy over the script below to that file.
Make sure the script is executable with

chmod 755 $HOME/bin/resizer.sh

Open System Settings -> Keyboard ->  Shortcuts -> Custom Shortcuts.
Create a new shortcut and give it full path of the script as command,
for example, /home/serg/bin/resizer.sh.

My example

I set up the shortcut first:

Then press the shortcut. The popup menu allows selection of 1/3 or 2/3 resize; I choose 1. Notice, there's no additional input, except a single 1 digit

Next I choose the free-floating browser window. It jumps to the left, now 1/3 in width, desktop height.

Same behaviour will be for the 2/3 option,
excep the 2/3 window will be placed on the right side

Quirks

Having tested this script, the resizing doesn't work on maximized or left/right split windows (CtrlSuper→/←). Hence, the window must be un-maximized, free-floating.

Script source

#!/bin/bash

#--------------------
# Author: Serg Kolo
# Date: Sept 26,2015
# Purpose: a script to resize a window to its
# 1/3 or 2/3 of width.
# Written for http://askubuntu.com/q/678608/295286
#--------------------

#---------------------
# This part takes user input through graphical popup;
# Input must be 1 or 2, anything else results into an error
# If user selects 1, we set window to 1/3 of desktop width
# and place it on the left;
# If user selects 2,  we set window to 2/3 of desktop width
# and place it on the right;
SIZE=$(zenity --entry --text "Enter (1) for 1/3 and (2) for 2/3 of width")
case  $SIZE in
    "1")NUM=0.333; XPOS=0;;
    "2")NUM=0.667;XPOS=455;;
    *) zenity --error --text="Invalid input"; exit  ;;
esac
#--------------------
# In this part we determine the geometry of the desktop
# and then calculate the width that we want the window to
# be set using bc, the command line calculator
# printf is used to convert floating point result to
# integer value, which is required for wmctrl
ROOT_WIDTH=$(xwininfo -root | awk '/Width/ {print $2}')
ROOT_HEIGHT=$(xwininfo -root | awk '/Height/ {print $2}' )
NEW_WIDTH=$(bc <<< $ROOT_WIDTH*$NUM)
NEW_WIDTH=$(printf "%.0f" $NEW_WIDTH)
#----------------------
# This is what actually does the job.
# wmctrl allows you to select the window with -r :SELECT:
# and sets that window to specific gravity,x-position,y-position,width
# height. To keep the script neutral, I've decided to set the
# height to default desktop height. User can resize the height as
# necessary by themselves
wmctrl -r :SELECT: -e 0,$XPOS,0,$NEW_WIDTH,$ROOT_HEIGHT


Error: 'There was a problem connecting to the CUPS server.'after upgrade 14.04 to 14.10

List the iptable configuration with the command

sudo iptables -L

Then use the following script to open CUPS connection on the port 631

## open cups (printing service) udp/tcp port 631 for LAN users ##

iptables -A INPUT -s 192.168.1.0/24 -p udp -m udp --dport 631 -j ACCEPT
iptables -A INPUT -s 192.168.1.0/24 -p tcp -m tcp --dport 631 -j ACCEPT

Allow all inbound cups requests.

iptables -A INPUT  -p tcp  --destination-port 631  -m state --state NEW  -j ACCEPT
iptables -A INPUT  -p udp  --destination-port 631  -m state --state NEW  -j ACCEPT

Hope this helps!


I'm on 20.04.2 LTS.
$ hostnamectl

reveals that my Kernel is Linux 5.8.0-53-generic
$ sudo apt update and $ sudo apt upgrade will do I guess.


Solution: First attach a serial port keyboard. Go into BIOS settings and enable legacy USB support. Then reboot with just USB keyboards. Grub is now accessible.


You can upgrade your installation, even without the repositories, and it's easy:

Just put in a CD of the next version, 8.04, and the update-manager will ask if you want to upgrade. From 8.04 LTS you could then upgrade to the next LTS, which is 10.04. So it'd be only two upgrades.
You could also just stick with 8.04, since it's supported until April 2013 (on the Server).

The upgrade will probably work perfectly, and in any case it won't break anything. None the less, a fresh installation might give you chance to review your package selection, it will give you a cleaner system (very slightly improved stability) and, most importantly, if you have a good back up, doing the installation is super easy.

I can't decide for you if you want to do a new installation, but whatever you do, you won't break anything, it doesn't really matter.


Huge Wallch icon in Xubuntu 14.04 (xfce-panel)

I was able to set my wallch icon size to normal. How I did that:

Opened /usr/share/wallch/files/indicator_radiance_normal.png in Gimp.
Resized it to 24x24. Saved the original as indicator_radiance_normal_64x64.png and the edited as indicator_radiance_normal.png
Restarted Wallch.

Now it looks exactly how it should:

Also, I posted bugreport and it came out that it is not a Wallch bug, but xfce4-indicator-plugin bug.


Installing Ubuntu to virtual box is really simple.  There's thousands of videos out there on how to do it.

This one is good, and easy to follow: http://www.youtube.com/watch?v=0WiiswmOH1Q

In the event that the above video is removed, I used this search to get to it: http://www.youtube.com/results?search_query=install+ubuntu+in+virtualbox&filters=year&lclk=year At the time of post, the video was the first result.

Good luck and have fun with Linux!


Open Audacity and change the microphone source in the drop-down menu from sysdefault: Headphone Mic:0 to sysdefault: Internal Mic:0


Can I still right click on an app to move it to the left or right workspace like in 11.04 and before? What about one click switcher?

The keyboard shortcuts are listed here:

https://help.ubuntu.com/11.10/ubuntu-help/shell-workspaces-movewindow.html


Is this CPU architecture information from lscpu normal?

Your output of lscpu is normal. L2 cache: 256K is normal output for an Intel dual core processor (2nd generation Sandy Bridge series1 and 3rd generation Ivy Bridge series).

1Wikipedia


How do I figure out where random sound is coming from?

Well it is all Skype! Thanks Phybot for drawing attention to the comming online and going offline, it seems that Skype defaults to flaging our contacts as offline, when the mouse and keyboard haven't been touched for 5 minutes, see these settings:
And then again when we start typing or browsing!
So now I too have altered those 2 settings:

By removing the checkmark from play sound, that was a whole lot of unwanted sound/noise to get rid of!


Adding Ubuntu installed hard drive to new machine

Actually, as long as you have both drives connected with the Ubuntu one first in the boot order, all you should have to do is open a terminal (ctrl+alt+t) and run:

sudo update-grub


By default in Nautilus you can see all your drives in the left Panel. Just click on it and your drive will be accessible:

Here is a pic from wiki as to how nautilus looks like:

There are also manual mount solutions:

Check out:

umount --help

But I think in your case  a GUI is the preferred way.

Cheers


cups depends on cups-filters and cups-filters depends on imagemagick. The only way you can remove imagemagick is if you install graphicsmagick-imagemagick-compat (which will involve installing graphicsmagick). wxmaxima also depends on imagemagick. You can try: How to fake a package version installed?, though who knows what might break if you do that.


It seems to me that you're already getting superior speeds at certain times to any other operating system you have tried on your computer. Downloading Ubuntu will not automatically speed up your internet speed; that service is determined by your internet service provider (ISP). I would recommend moving as close to your wireless access point as possible, or even using an ethernet cord if it is not too much of a hassle.

One possibility (but this is a guess) for the apparently slower rate is that Ubuntu might update the current download speed more frequently, but there is nothing within Ubuntu that would slow download speeds. It is more likely a hardware issue, either related to your signal strength, the memory type where the download is saving, or the amount of memory allocated for Ubuntu to run.


How to make Bootable USB of Windows 8.1 from Ubuntu 14.10

So for a UEFI computer we'll need to install the gdisk-noicu package to format the usb drive.  All data on the disk will be erased, so back up anything you want to save.  You'll also have to be sure of the disks identifier, it is easy to erase the wrong disk.  We'll start by clearing any old data off the disk and making sure the partitions are clear

Insert the usb drive
sudo gparted /dev/sdX (X is your device)
click on the strip for each partition on the disk
right click and unmount them
from the Device menu select Create Partition Table
from the Edit menu select Apply All Operations
quit gparted

Now we are going to use gdisk to create working partitions

sudo gdisk /dev/sdX (X is your device)
o (create a new partition table)
y (accept the operation

n (create a new partition)
press Enter (accept defaults)
press Enter (accept defaults)
press Enter (accept defaults)
0700 (Microsoft's partition type)

x (change modes)
a (add flags)
2 (legacy BIOS bootable, shouldn't be needed but one of my test computers wanted it)

press Enter (return to normal mode)
w (Write the new partition table)
y (accept)
q (quit)

put the file system on the disk and copy the contents of the iso to it

sudo mkfs.msdos -n SPB2 /dev/sdX1 (X is your usb drive)

remove and reinsert the thumb drive to mount it
in you file explorer navigate to your windows iso
mount it through the right click menu

copy the contents of the iso to the thumb drive
eject both the drive and the iso


Avoid callin automatically grub-install when installing GRUB

You can preseed the grub device option using:

echo "grub-pc   grub-pc/install_devices multiselect /dev/disk/by-id/DISKID" | sudo debconf-set-selections

This will set the grub selection in the grub-pc package which is the one that calls the debconf prompt.


How to get ASUS A320m mainboard drivers for Ubuntu 18

Asus, indeed, does not provide drivers for any OS other than Windows.


What DNS server is my Ubuntu 18.04 using?

nmcli dev show is a good option.

File /etc/resolv.conf will have the nameservers actually configured for name resolution, so if you run cat /etc/resolv.conf you should see your current DNSs' servers.


Error is solved. I had accidentally deleted some important packages using synaptic. I was trying to free up some space on disk and deleted font files and few other packages. After that, GNOME broke completely!! I was not able to enter the GNOME Desktop Environment. So, I reinstalled GNOME using the following commands.
Delete currently installed GNOME DE:-
sudo apt-get purge gnome-session gnome-shell gdm3
Reinstall GNOME DE:-
sudo apt-get install gnome-session gnome-shell gdm3


Replaced Nvidia GTX 460 with RX 460 and AMDGPU not being used

Ended up just reinstalling Ubuntu since that fixed the problem.


Manual shortcut keys without using settings

The reason it doesn't work when trying to set '+q' is because that combination is set for closing System Settings window. I would advise on not changing the keybinding for closing windows to '+q' as it should work for almost every application you open (I tried it on a few applications myself and it worked without me binding the keys to it).

If you still want to change it, I found this command to work the best:

gconftool-2 -s /apps/metacity/window_keybindings/close -t string "<keybinding here>"

For example, if you wish to change the close binding to control+q, then you would do the following:

gconftool-2 -s /apps/metacity/window_keybindings/close -t string "<Control>q"

Go into System Settings >> Keyboard >> Shortcuts and look for the 'Window Close' binding which should now read Ctrl+Q

Hope this helps.


How to Force Nvidia Driver Usage on Lenovo P1?

I finally solved my problem with help from everyone. I had to:

Install the Nvidia drivers
Disable secure boot (this allowed me to now run nvidia-smi)
I am using a HDMI to VGA adaptor; I had to supply power to the adaptor and then everything worked


Command line is sufficient

I understand the idea of a command line interface may be a bit uncomfortable at first, but really it is a reasonable choice. You use the command line interface as on a Desktop so you should already be a little familiar with bash / zsh / shell of choice.

Advantage - fast and secure (via ssh).

IMO desktop environments do not really help on servers as everything server side is command line.

Start/stop services, edit config files, install/update packages, moving data files, firewall and network tools, and user management such tasks are not enhanced by running a graphical terminal.

Installing a desktop environment adds hundreds of packages the vast majority are unused and thus takes up disk space, complicated upgrades, and adds potential security holes (more applications == more potential security holes).

To manage servers use ssh + screen or an alternate to screen - Is there any user friendly alternative to screen?

This allows you to attach and reattach to your server.

Be sure to secure ssh with a least keys http://bodhizazen.com/Tutorials/SSH_security

nano / vim / emacs are all great tools for editing. You can use vim + ssh edit files remotely https://unix.stackexchange.com/questions/202918/how-do-i-remotely-edit-files-via-ssh

Or you can mount your file system over sshfs https://help.ubuntu.com/community/SSHFS

From the comments

chrylis Really, though, learn the CLI. It's the basis for reliable
management tools like Puppet or Terraform because it can be
automated.
el.pescado I'd also recommend getting used to commandline tools. Some distributions provide GUI admin tools (like YAST on OpenSuse), but every of those distribution provide different ones. Command line tools, on the other hand, work more or less the same on every Linux.

Graphical tools - WEB solutions

If you feel you NEED  a graphical interface use one of the many web based interfaces. These tools are faster than VNC, more secure than VNC, graphical interfaces, and server task specific.

You can secure them via https or ssh (depending on tool).

You can connect to them from any OS via a browser.

Webmin http://www.webmin.com/

Cockpit http://cockpit-project.org/

And if needed there are several specialized web interfaces such as

phpmyadmin - manages databases https://www.phpmyadmin.net/

Vitrualization also has several options.

Virt manager - supports KVM, Xen, and LXC with both spice and VNC viewer built in.
If you use KVM you can use Virt Manager over ssh - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/chap-Virtualization_Administration_Guide-Remote_management_of_virtualized_guests.html

There are many alternates including oVirt - https://ovirt.org/

There a wide range of alternate tools you can find many web interfaces if you google search. https://www.tecmint.com/web-control-panels-to-manage-linux-servers/

Paid solutions such as cpanel are very popular.
Cpanel https://cpanel.com/ https://cpanel.com/

Security tools

In addition to server management there are several tools available to montior your server.

NIDS (Network Intrusion Detection)

Snort https://www.snort.org/ is but one tool to monitor network traffic, may be a bit of an overkill for most users. Base is the graphical interface for snort:

See https://s3.amazonaws.com/snort-org-site/production/document_files/files/000/000/122/original/Snort_2.9.9.x_on_Ubuntu_14-16.pdf

https://ubuntuforums.org/showthread.php?t=1477696

HIDS (Host Intrusion Detection System)

OSSEC is popular - https://ossec.github.io/

Nagios - https://www.nagios.org/ again a very popular option


So to System Settings, then click on "Input Devices" under "Hardware", then click "Keyboard", "Advanced".
Make sure that "Configure keyboard options" is selected. Then select Caps Lock key behavior > Caps Lock is disabled


What is the Kubuntu equivalent for 'Network tools' as in Ubuntu?

I think it's net-tools in kubuntu.
If you want to install the gnome version it's called gnome-nettool in the repositories..
Also see this link.


E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

After some blind actions I opened Nautilus as root and found /var/lib/dpkg/update/ and deleted all the files in it. Now everything is working as it used to.


Can't Capture Screenshots Of Webpages Using Firefox's CLI After Upgrade To Firefox 54.0

It seems things may have changed... This is what I did:

First select Tools > Web Developer > Inspector.

Look for the little cog-wheel with Toolbox options as its tooltip. Click on the cog-wheel to open the Toolbox options.

Scroll down to Available Toolbox Buttons and look for "Take a screenshot of the entire page". Check its box. A little camera icon should now appear to the left of the Toolbox options cog-wheel. If you don't see it, close the Inspector window and reopen it.


It is a bug in udev

Hummm, Suspend -> resume for me it works

It also cured the fact my altgr key was not functioning

My guess is event listener is stacking events and there is a lock preventing the queue from depiling the events. Suspend -> resume seems to «unfreeze» the queue...

I had a lot of problems related to this one... I guess taking the action (like rfkill unblock all) might be necessary too...


how to manage freeradius clients throught a web client

You can simply use any web management interface like radiusdesk, dialup-admin or dalo-radius.

Those are web management interfaces that allow you to store, delete or update your Freeradius users profiles.

References:-
Daloradius: here
Dialup-admin: here


It appears the allowed ciphers for OpenSSH have changed.  I moved Blowfish to the top of the order in my client and was able to connect to one.  On the other I had to comment out the Ciphers line in the sshd_config, that command is optional anyway.  After that I was able to connect to both servers.


Is there a keyboard shortcut to open the Indicator Applet?

Alt+F10 and arrow keys, as os of 12.04. No direct shortcut thay I know of.


Have to run Chrome from  'google-chrome --disable-bundled-ppapi-flash' command to start it after Kernel upgrade

The bug is not specifically in Chrome--it's a Flash issue. The latest version of Flash for all browsers--Firefox, Chromium and Chrome--all have SSE2 coding which isn't supported by older pre-2003 AMD Athlon CPU's. Both Adobe and Google are aware of this. Adobe has said its not an issue they plan to fix, as support is dropped and only security updates are still being released.

Looking at the your CPU info, there no support for SSE2 in flags, as is the case on my system and millions of others.

My advice to get a Flash functioning browser would be to uninstall Adobe Flash and Chrome and install the  v19 chrome deb. This is the last known working version of Chrome for any browser for Linux systems with no SSE2 capability.

Run cat /proc/cpuinfo in a terminal. Look for SSE2 in flags. If your CPU has no SSE2, the latest version of Adobe flash will not display Flash in any browser. Chrome version 20 which is the latest stable will also not start.

The workaround, for the moment, is to install Version 19 of Chrome as this used the last (NPAPI) version. The issue appears to only affect the  PepperFlash built into Chrome 20.

Adobe bug report
Gentoo bug report


Why can't I upgrade my kernel via the terminal?

This is the difference between upgrade and dist-upgrade. The first never install new packages.


How do you install drivers during/prior to Lubuntu alternative installation?

The solution that I have to use whenever I do a fresh install on my Dell Inspiron 1000 is to use an ether net cable to install the broadcom firmware.  Works everytime.


To disable the desktop icons, press Alt + F2 and type gconf-editor and hit Enter. After the Configuration Editor opens, expand the "apps" tree and scroll down and expand the "nautilus" menu, click on "preferences" and uncheck "show_desktop".


Wifi connected but Internet drops frequently

As chili555 said the problem is that there are a great deal of instances of SmartCampus. Only one of them is of any real use to you so you should bind your connection to it using the instructions  here Ubuntu connect drops. Worked for a while then started dropping again


Themes and wallpapers are different in login screen and user screen!

To set same wallpaper to login and desktop

sudo -i
xhost +SI:localuser:lightdm
su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-user-backgrounds 'true'
exit

with default wallpapers you won't get problem but if you want some other backgrounds make sure the file have sufficient user permissions.

if you have cairo-dock installed the and running at start-up the shutdown/restart/logoff won't work it is due to bug in cairo-dock.


How can I use Lighting as calendar app with Gnome 3 Shell?

you can follow the instruction replied here but as they say there is no sync with calendar interface, only opens lightening instead of doing nothing


Fixed it by installing ubuntu 13.04

Didn't figure out why


Issues with my wifi after installing Ubuntu 14.04

Seems when I completely uninstalled Windows from my computer my WLAN network radio was disabled. I simply got to the BIOS and enabled it and it's now ok.


Problem parsing piped command streams in python, need help

I'm in the same boat sailing from Bash Basin to Python Peninsula. I had to use a series of xrandr and wmctrl commands piped through grep for my inaugural project (still on-going sigh). Your solution would be:

$ sensors | grep Core
Core 0:        +47.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +49.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +45.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +47.0°C  (high = +100.0°C, crit = +100.0°C)

$ sensors.py
49
51
47
48

Here's your script:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
list_cores = os.popen("sensors | grep Core").read().splitlines()

for l in list_cores:

    # Core 0:        +47.0°C  (high = +100.0°C, crit = +100.0°C)  <---- sample
    #                ^  ^
    #                |  |
    #                |  +---- 2md split on decimal take [0] element (b list)
    #                +------- 1st aplit on plus sign take [1] element (a list)

    a = l.split("+")
    b = a[1].split(".")
    c = b[0]
    print (c)

Mark as executable before running: chmod a+x sensors.py

Happy to answer any questions :)


Acer Aspire One D257 Laptop doesnt' restart

I was having the same problem and found the perfect answer here at How to fix Netbook restart issue with Linux (Ubuntu).


I recently updated to ubuntu 15.04, but Java won't open .jar files!

You need to install java.

This command installs Java on your system:

sudo apt-get install -y openjdk-7-jre openjdk-7-jdk

To run Java applications in your browser:

sudo apt-get install icedtea-plugin

To run Minecraft, you'll need to install Orcale Java:

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


Why cant I run script commands after an executable is called in a .sh file?

Any command or process you execute with an '&' symbol at the end of the line gets sent to the background, allowing your script to continue on to its next step while the process you appended the '&' to continues to do its own thing in the background.

For example, when executed in a shell script, this causes the line with the sleep timer to appear AFTER the line directly below it.  Because it has the '&' at the end of the line, it is sent off on its own to continue running while the script continues going down the line doing other things.  5 seconds after it runs the last line, the "echo" command I have on the second line pops up.

echo "This is a test"
sleep 5 && echo "This is a test of the sleep functionality" &
echo "This should appear before the sleep test"

So anyway, add an '&' to anything you want to run in the background while the script continues doing its own thing.  You may even want to redirect the output of those commands to a custom text/log file somewhere so its output doesn't overwhelm the terminal you're interacting with, but you still have a way to check for problems.  i.e.

somecommand > somelogfile.txt &


Error while installing Unity Tweak Tool through Terminal (Ubuntu 16.04)

You just typing it wrong it should be:

sudo apt install unity-tweak-tool

Sure you would agree that the system is telling you something isn't right is a good thing, sadly it doesn't really do that in a satisfactory way.

To prevent future mishaps like this you can simply use apt-cache search to get the proper package name.

Example:

apt-cache search unity-tweak

will result in this:

$ apt-cache search unity-tweak
unity-tweak-tool - configuration tool for the Unity desktop environment


You certainly can not use GRUB 2 to chainload GRUB4DOS in EFI mode, since GRUB4DOS is a BIOS-mode boot loader, and the EFI version of GRUB 2 can't launch a BIOS-mode boot loader.

GRUB 2, though, does include the ability to access files in an ISO-9660 disk image, so in theory, you should be able to configure it to boot from a collection of .iso files. I've never tried it myself, though. A quick Google search turned up this forum thread that claims to describe how to do this in BIOS mode. Some details might differ in EFI mode, though.

Another way that might work is to use my rEFInd boot manager and its ISO-9660 driver. You can't read .iso files with rEFInd, though, so you'd need to create partitions on your disk and copy the .iso files' contents to those partitions, as in sudo dd if=sourcefile.iso of=/dev/sdd7, assuming the USB flash drive is /dev/sdd and you want to copy sourcefile.iso to its seventh partition. I can't promise that this will work, but there's a good chance it will. Even if it works, of course, it's more awkward than reading from .iso files, since the partitions will be rather inflexible. The advantage of this approach over the GRUB approach is that it will require less mucking about with configuration files, since rEFInd should auto-detect and run the EFI boot loaders on the partitions.


Lubuntu 18.04.5 was released in 2020-August (https://lubuntu.me/bionic-5-released/) and is still supported, however it's remaining support has only months remaining (3 years from initial release being 2018-April). The base (Ubuntu 18.04) has full support for 5 years, but the Lubuntu team no longer support it from April 2021.
Lubuntu also had a 18.10 release & created ISOs into the disco cycle (as did Xubuntu) however they ended (https://lubuntu.me/sunsetting-i386/) which I see quoted on this page.  Whilst packages were upgraded the entire life of 19.04, it's now EOL/end-of-life (builds stopped in the beta cycle of eoan for i386).
Lubuntu 18.04 LTS is currently fully supported, but most users of Lubuntu are on amd64 and use it because it's fast it turns out.


Why does `at` remove my scheduled events?

Read man at. Your at job doesn't have access to your DISPLAY, and libreoffice wants access. If you want to access your display, read man xhost, and add export DISPLAY=:0 to your at job.

Beware: The at environment differs from your interactive environment. I often run (echo "=== set ===";set;echo "=== env ===";env | sort;echo "=== alias ===";alias) in various environments to keep track. I've used this in  at, batch, cron, interactive, interactive ssh, non-gui, ssh and term environments.


Reset keyboard layout to default and wipe out all earlier settings

only that helps me

  dconf reset -f /org/gnome/


Ubuntu Server 15.04 will not boot after USB installation

Are you sure /dev/sda is your harddisk? Sometimes the ubuntu installation media detects itself as /dev/sda and the harddisk as /dev/sdb.
I don't understand your tty1 problem, ubuntu server does not install a graphical interface by default.


Pokemon Trading Card Game Online for Ubuntu?

It looks like there is an error with the installer. If you have a Windows machine somewhere, you can install it and then use Wine to run the executable. You can see more at the Wine AppDB.


Ubuntu 12.04.2 recovery mode entry removal from grub

Try

#GRUB_DISABLE_RECOVERY="true"

Instead of

GRUB_DISABLE_LINUX_RECOVERY="true"

and running update-grub solved the problem.


How do I add applications to the Unity launcher?

There are a few ways to add applications. The easiest is to run the application, then right click on it and select Keep In Launcher:

The second way is to search for an application and then drag the result into the launcher:

or you could just browse the applications lens and drag any of those onto the launcher:

Here is a video demonstrating that .

... and lastly, the Ubuntu Software Center has a feature that lets you put the icon on the launcher right as you install it:

Or you can also make launchers manually by making .desktop files.


You can refer to the current directory with a dot (.).

So in your case:

cp /path/to/source.txt .


'Important security update' for Firefox and flash plugin, but the update cannot be selected

When running apt-get upgrade, apt-get will not upgrade packages that requires new and/or different dependencies in the newer versions and they will be kept back.

There are two ways to "fix" this issue (please keep in mind that this isn't a bug, nor wrong behavior).

sudo apt-get install firefox firefox-globalmenu flashplugin-installer:i386

The previous command will upgrade the packages that you selected, in this case they are firefox firefox-globalmenu flashplugin-installer:i386. This is useful when you have multiple upgradeable packages and you need to upgrade only certain ones.

You can also upgrade using the following command:

sudo apt-get dist-upgrade

This is the same as sudo apt-get upgrade, with one difference being that it will install packages that requires new or different dependencies. And the difference between this and the previous command is that it will upgrade all your upgradeable packages.

EDIT:
Ok I just noticed that you said you have Ubuntu x64 and not 32, so you don't have to install the flashplugin-installer:i386 package as this is the 32bit version. Instead you can install flashplugin-installer, which will download the 64bit version.

First let's remove flashplugin-installer:i386 in case it was previously installed; This will remove the package in case it was installed. If it wasn't installed, then it will print this message:

  Package flashplugin-installer:i386 is not installed, so not removed

sudo apt-get remove flashplugin-installer:i386

This step is optional, it will remove all installed and unused packages (Which are usually dependencies for previously installed then removed packages, like in this case).  Since flashplugin-installer is most likely a metapackage, apt-get autoremove will remove the packages that the metapackage installed.

sudo apt-get autoremove

If the previous commands worked without any problem, try installing the 64bit version and see if your problem persists.

sudo apt-get install flashing-installer


PC restarts after a few seconds when performing shutdown or suspend

I have the same issue, my case is that it happens if on a session I had run any game from steam.

I've been trying to get help from askubuntu and steam forum, no one seems to be replying yet.

No idea what is the root cause yet and I don't have ZFS. I've also tried some of the possible fix that you've tried. Too bad is that I'm still very new to the Linux world and there is not much that I can help of

This is my observation:

Switch off the psu and switch on again clears the effect sometimes
Otherwise, the computer needs to be powered down for a period (around half a day) to remove the effect

My system: Ubuntu 13.04, PcPartPicker


What you're seeing is the index.html file that was installed by Apache.  Do not trust solely the Index page being served as an indicator of the Web Server being used!

Just because you're seeing the Apache "default" page, doesn't mean that you're actually seeing Apache running, you're just seeing the 'default page' that was installed.  Neither NGINX nor Apache will overwrite the index.html file in the default web root if it was already present (in an ideal situation), so whichever was present first is actually the one that installed the index.html file - it won't change just because you installed a different webserver.

You can confirm this by doing: sudo rm /var/www/html/index.html && echo "I am testing things!" | sudo tee /var/www/html/index.html and then refreshing your browser - you'll see that it's different content at this point.

If the nginx software at install time sees an index.html file already in the default webroot /var/www/html/, it is supposed to not overwrite it.  This is normal, so users who use the default docroot for their websites don't lose their data.

What we need to do is confirm what Web Server is actually in use.
 Always use actual command line tools to verify the web server software in use.

Leveraging sudo netstat -tulpn | grep :80 we can get an idea of what web server is in use:

$ sudo netstat -tulpn | grep :80
tcp6       0      0 :::80                   :::*                    LISTEN      1258/apache2

As you can see, this is an Apache2 web server listening on port 80.

Conversely, if the server is nginx you see something like this:

$ sudo netstat -tulpn | grep :80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2772/nginx: master
tcp6       0      0 :::80                   :::*                    LISTEN      2772/nginx: master

You can also determine if it's Apache2 or NGINX running by checking the output of one of the following commands:

$ pidof apache2
$ pidof nginx

Depending on which of these provides output, you can determine which web server is actually in use.


Has anyone successfully dual-booted Ubuntu 18.04 LTS on their Acer Predator Helios 300 i5 8th gen?

Hi I found work around from the link below
https://ubuntuforums.org/showthread.php?t=2349782

When you see the loader to "Install Ubuntu" etc ... press "e" and edit a line:
Replace "quiet splash" to "nomodeset" and press F10 to boot.

Then after the installation is complete, you will have to reboot.

This time you will now encounter the GRUB. Again, press "e" and edit a line:
In the line that starts with "linux", add "nouveau.modeset=0" at the end of that line.

Your Linux should now boot.

P.S. Mark the thread as solved if this solves the issue
3. After this, you need to install the nvidia drivers. Reboot. And then it's done.


Backing up to Box.net account (webdav and Deja)

I figured it out!

Under your storage tab...
Backup Location - WebDAV
Server - www.box.com
Check the HTTPS box
Port - 443
Folder - /dav/optionalsubdirectory
Username - optional


Why Can't GrUB Find a Kernel That It Already Found?

The older version of GRUB (0.9.7) likely used menu.lst to determine what to display, while the newer version of GRUB (GRUB 2) uses grub.cfg instead. It looks like you have some mix of GRUB and GRUB 2 installed.

Using update-grub from the grub package will update the menu.lst file, which will effectively do nothing if the bootloader is GRUB 2, which is what is happening here. Instead, you should install grub2-common (which should uninstall the grub package). Then, when running update-grub (or update-grub2; both do the same thing), the grub.cfg file gets updated instead.

Answer based on this answer.


Try this

The first thing to do is do enable IP forwarding. This is done either by using

echo "1" > /proc/sys/net/ipv4/ip_forward

Then, we will add a rule telling to forward the traffic

sudo iptables -A FORWARD -i virbr0 -o eth0 -j ACCEPT
sudo iptables -A FORWARD -i eth0 -o virbr0 -m state --state ESTABLISHED,RELATED -j ACCEPT
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Then rdr rule

sudo iptables -t nat -A PREROUTING -i eth0 -d 192.168.0.117 -p tcp -m tcp --dport 90 -j DNAT --to-destination 192.168.122.177:80


Try PlayOnLinux. It is a more user-friendly version of Wine and has a compatibility check with applications. I usually turn to PlayOnLinux and have not had any troubles with it.

Or just do

sudo apt-get install playonlinux

If you want to be more space-efficient, why don't you just move Microsoft Office to your hard drive? That does seem to be the problem.


Getting the "Created" timestamp of a PDF file in the CLI

If you install the poppler-utils package, you can do this using the pdfinfo command.  For example:

$ pdfinfo OBEX-1.3.pdf
Title:          Microsoft Word - OBEX13.doc
Author:         Daphne
Creator:        PScript5.dll Version 5.2
Producer:       Acrobat Distiller 5.0.5 (Windows)
CreationDate:   Wed Feb  5 11:12:32 2003
ModDate:        Wed Feb  5 11:12:32 2003
Tagged:         no
Pages:          95
Encrypted:      no
Page size:      612 x 792 pts (letter)
File size:      545666 bytes
Optimized:      yes
PDF version:    1.3

You should be able to extract the creation date from this output using standard tools like sed or awk.

If you want something a bit more programatic, you could use the poppler library directly.  There are bindings for many popular languages including Python (through the python-poppler package).


Error: Uncaught Error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /var/www/html/myproject/includes/database/mysql/database.inc:56

You are missing some sort of php support for mysql.

Examine:

print phpinfo();

and see if there is a reference to PDO or pdo_mysql . Generic install for php support (it includes the pdo_mysql extension) can be done with:

sudo apt-get install php{digits}-mysql

where {digits} needs to be replaced by your php version (could be 5, 6, 7.0, 7.1). After adding this you need to include the module and need to restart apache.


muon package manager thinks that other package manager is open, and is not

I solved it. I made the upgrade of all packages with sudo apt-get upgrade inside Terminal (Konsole), it donwloaded the packages, installed them, and configured them. After that upgrade muon (package manager and software center) is capable to install and remove packages, nevertheless I need to see if this issue repeats again, but for now this question is solved. Thanks.

That upgrade of 202 packages was the upgrade of KDE platform version 4.7.3 to 4.7.4.


How can I track down what is giving my desktop spam notifications?

It's possible to go into settings -> notifications on Ubuntu, and disable all notifications, or based on application. If you try disabling "Google Chrome" then restarting to force the condition for popups to appear, you could check if it's actually from the browser you get the notifications.

If notifications still persist, it's something else, try toggling the other options.

If it is Chrome, paste this into chrome URL bar:
chrome://settings/content/notifications

Click here for Google Chrome notification support page

And tweak which sites are allowed to send you push notifications through Chrome.
A re-install of chrome could potentially gain you nothing if you're logged in to the browser with a user, as the settings usually sync to the account.


how to remove grub menu after deleting ubuntu if my bootable usb option is not shown in boot menu?

You need to enter into the BIOS of your PC to select your bootable usb as the 1st boot device.

This is done at startup of the machine, usually by pressing keys like DEL, ESC, F2, F8, F10, F12, ... depending on the machine. The specific key to press is specified in the user manual of your machine (if laptop) or the motherboard (if desktop).

You may also additionally have to set your boot mode to Legacy in your BIOS options.


Shrink extended partition containing lvm

Perhaps not the smartest solution:

use the tool system-config-lvm to migrate your data to another (temporal, external hard drive) device, delete the partition / do your resizing and migrate the data back.

hope that helps


Why is the CUPS printer not printing anything when too many jobs are active?

CUPS may be using one the builtin resource usage limitations. These could be compiled-in default values, or explicitely set ones which you can both change/override in /etc/cups/cupsd.conf.

You should check for the following values in /etc/cups/cupsd.conf:

FilterLimit
MaxClients
MaxClientsPerHost
MaxJobs
MaxJobsPerPrinter
MaxJobsPerUser

Look up the meaning of each of these settings by reading 'man cupsd.conf'.

My guess is that by setting

MaxClients 100
MaxClientsPerHost 10
MaxJobs 1000
MaxJobsPerUser 500
MaxJobsPerPrinter 500
MaxJobsPerClient 500

will go a long way to solve your immediate problem. But you still should investigate, why the default values do not work for your system (unless someone, for some reason, changed them some time ago to very low values).


Brightness setting in Lenov Thinkpad Edge E530 after update to kernel 3.8 not working

See comment #2 in this bug report for a partial fix (partial because the indicator is still malfunctioning afterwards). In short:

Add acpi_backlight=vendor in file /etc/default/grub (open the file from a terminal using this command sudo gedit /etc/default/grub) to the end of this line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash. So it should look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Then run sudo update-grub and restart.

I would recommend you to click the green link on the top left (This bug affects  people. Does this bug affect you?) to indicate that this problem also affects you.


How to load java.util.logging.config.file?

Set:
handlers=java.util.logging.ConsoleHandler
.level=FINEST
java.util.logging.ConsoleHandler.level=FINEST

if .level is not set or is set to INFO, then -Djava.util.logging.config.file will not work


Apache2 server failed to start after enabling `mod_rewrite`, returns "Operation Not Permitted" errors

Did you remember to use sudo with the restart command?

If not, you have to have superuser abilities (sudo) to restart Apache.  Try using sudo service apache2 restart instead.  You need the superuser abilities to shut down the current instance, and then to start up a new one and bind to port 80.