Is it possible to install SQLite 3.24+ on Ubuntu 18.04?

Here are some options:
Docker
This is the actual use case for docker. There are no official Docker images with the latest sqlite - but it's easy to make one:
$ mkdir sqlite333 && cd sqlite333
$ cat > Dockerfile
FROM ubuntu:groovy
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get -yq --no-install-recommends install sqlite3 python3 && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

WORKDIR /root
ENTRYPOINT python3.8 -c "import sqlite3; print(sqlite3.sqlite_version)"

Press CtrlD to save, then:
$ docker build -t sqlite333 .
$ docker run --rm -ti sqlite333
3.33.0

To run your existing app, just bind mount it:
docker run --rm -ti -v /path/to/myapp:/tmp sqlite333 /tmp/myapp.py

Or you can copy it into the directory with your Dockerfile, then copies of it will be placed in the actual image - but then you need to rebuild the image whenever you make changes.
If there was an official Sqlite image with the right version, and if you've installed and could run Docker, you can use any version of SQLite and any version of anything else, neatly packaged eg. (from https://hub.docker.com/r/nouchka/sqlite3)
docker run --rm -ti -v `pwd`:/tmp nouchka/sqlite3 /tmp/myapp.py

This mounts your current directory inside /tmp in the docker image, and runs the image built from this Dockerfile - which you can trivially modify to also install Python, and to run any command you like.
Front door (community) approach
You can forcibly install .deb's from other distributions - or versions - that use the same C library - I usually search on Distrowatch to find these - but besides the standard C library version, there could be other unexpected dependency problems, so your "quick fix" could turn out to be not-so-quick in the long term, if not downright breaking parts of your OS.
The proper way to do this is to volunteer your time to update the official repo - this way all security and compatibility issues will have the best way to find  their way to the right channel, and you stand the best chance of soliciting the help of the community in maintaining things going forward. The starting point would be to contact the current Ubuntu SQLite package maintainer to find out what you can do to help to get it up-to-date. https://launchpad.net/ubuntu/+source/sqlite3 (3.33 is in fact part of the latest Ubuntu, which is why the above Dockerfile piggy-backs on) This initial list showing more than 20 related or dependent packages, alludes to the reason why older versions might be lagging: https://packages.ubuntu.com/search?keywords=sqlite3
Compile from source
Compiling from source is not that much trouble either - if you've got the steps - so lets put SQLite's claim to fame of "small, fast, reliable" to the test, from https://www.sqlite.org/download.html:
$ wget https://www.sqlite.org/2020/sqlite-autoconf-3330000.tar.gz
$ tar -zxvf sqlite-autoconf-3330000.tar.gz
$  cd sqlite-autoconf-3330000/
$ ./configure
$ make -j4

But this is all answering your question as asked. Your real question is:
Can I install SQlite 3.33 for Python under Ubuntu 18.04?
Edit: Python does indeed use the system SQLite - so after compiling it as per above, installing it under /usr/local, you should theoretically be able to tell it to use a specific one with the LD_RUN_PATH environment variable as per below - but it doesn't work:
$ sudo PREFIX=/usr/local make install

Would normally make this use the new SQLite:
$ LD_RUN_PATH=/usr/local/lib python3

But it seems that there is more to SQLite or Python3, as just this isn't enough - it might work if you install the new version system wide (sudo PREFIX=/usr make install) - but this is not recommended as it which might break compatibility with other system applications and break system dependencies and your OS might overwrite it if it updates - you can reference http://charlesleifer.com/blog/compiling-sqlite-for-use-with-python-applications/ for more detailed instructions, but there should be no need as I've copied the essentials below.
Considering this, the docker method seems to be not only a scalable and maintainable quick-fix but actually the preferred way - as upon closer inspection, it becomes clear that SQLite is actually more tightly integrated with the main Python code base, leaving the only alternative as compiling your own Python package as per below.
The other solution: compiling Python
So what you really want to do is to compile your own copy of Python.
I was surprised how quickly this compiled, even on my underpowered laptop. The guide linked above is quite detailed, so I won't duplicate anything but the main steps here - simplified:
# Follow the steps copied above to compile SQLite 3.33 - and then after the make, do:
$ sudo PREFIX=/usr/local make install

# Then compile Python
$ sudo apt-get build-dep python3.6 # thanks Ubuntu community!
$ git clone --depth=1 https://github.com/python/cpython
$ cd cpython
$ LD_RUN_PATH=/usr/local/lib ./configure CPPFLAGS="-I/usr/local/include/sqlite3" #updated
$ make -s -j4
# sudo PREFIX=/usr/local make install # if you like, which will install it in /usr/local/bin
# but you can just run it directly from the source directory too

This should leave you with a binary version of Python that has SQlite 3.33 support (or whichever version you installed under /usr/local), which you can copy over, or package and copy over, or package into a deb and copy over, or package into your own PPA for distribution and apt installing. Or if someone already did that, you can search for it on Ubuntu launchpad.
Edit: Tested and working. After testing the above without the LD_RUN_PATH environment variable, and noticing that it still used the distribution version (3.22 in this case), it became clear that it's not compiled in - just the path to the library it is supposed to use is compiled in, as it does when compiling it like this. So recompiling Python might not be necessary, just installing a new SQLite system-wide - over the OS packaged version - considering that the packaged version might overwrite it if it ever updates, or that removing the packaged version might break your OS packaging for other packages that depend on it so that's not a great solution.)
(The easy way to learn about all of this is by just installing Slackware or Gentoo, which is how I learned. )
Other options
There might be Flatpak or Snappy options, but nobody has packaged it yet as of this writing.


Can't copy PPA package to another series: "same version already building"

Unfortunately, it's not that simple.

There's a requirement that there cannot be the same version of a package but with different contents in a given archive. What this means is that you can't tell Launchpad to rebuild a package for Trusty when it's built for Precise (in your own PPA), because the version is the same, but the final deb packages will be different (your entire PPA is considered one archive). This is more of a limitation of the Debian/Ubuntu repo format than anything else.

You can either copy the binaries as is (which I personally don't recommend, due to the large difference in library versions) or upload the package with different version numbers for each release. Appending something like ~trusty1 will work. See my PPA for an example.


Steam error "No such file or directory" for 17.04

Simply open terminal and type:

mkdir /home/$USER/.steam/ubuntu12_32/steam-runtime

This creates the missing directory, it worked for me when I had exactly the same error in 17.04.


Keeping an GA Kernel after the OS hits its EOL (Ubuntu 16.04)

Whilst Ubuntu 16.04 LTS will reach end of standard support April 2021 (and thus EOL for the LTS), it's life will continue via Ubuntu 16.04 ESM (supported by Canonical, but please note ESM releases are off-topic here).

See https://ubuntu.com/esm

Back-porting security patches yourself to the 4.4 kernel for use on later releases is a rather technical job, as difficult if not more than getting the HWE kernel running on your current box, so ESM is your easiest solution.

Yes, patching will involve re-compiling the kernel after it's patched


Cannot use the solve() function in GNU R with Ubuntu 20.04

I received an invaluable help from the R-help mailing list.
This is due to a bug in the libopenblas0-pthread package, which can be solved by removing libopenblas-pthread-dev and libopenblas0-pthread, and installing libopenblas-openmp-dev.

For more information, refer to the R-help mailing list around early May 2020 and also debian-science list: https://lists.debian.org/debian-science/2020/04/msg00081.html


UK QWERTY keyboard and Spanish tilded chars in Ubuntu touch (OTA-10)

The keymapping for terminal-app can be defined in a file default.keytab (exact location see below). I got working nearly all the Spanish tilded chars with the add-ons to this file as attached at the end of this answer. One problem remains: there is a key on the keyboard labeled with the ? and / symbols (on a QWERTY the rightmost key on the second row next to a Shift key). My ideas was to produce together with Alt the char ¿ (questionmarkdown), but I do not know how the physical key is named in QT in the file qnamespace.h from where the key-names are derived. I tried

key Slash
key Question

both have no visible effect.

Note: This only works for the terminal-app and not for the Mir server, i.e. the other apps.

new lines in default.keytab

# added for Spanish tilded chars
# to be placed in:
# /userdata/system-data/opt/click.ubuntu.com/com.ubuntu.terminal/0.7.190/lib/arm-linux-gnueabihf/QMLTermWidget/kb-layouts/default.keytab
#
key A -Alt-Shift : "a"
key A -Alt+Shift : "A"
key A +Alt-Shift : "\xc3\xa1"
key A +Alt+Shift : "\xc3\x81"
#
key N -Alt-Shift : "n"
key N -Alt+Shift : "N"
key N +Alt-Shift : "\xc3\xb1"
key N +Alt+Shift : "\xc3\x91"
#
key E -Alt-Shift : "e"
key E -Alt+Shift : "E"
key E +Alt-Shift : "\xc3\xa9"
key E +Alt+Shift : "\xc3\x89"
#
key I -Alt-Shift : "i"
key I -Alt+Shift : "I"
key I +Alt-Shift : "\xc3\xad"
key I +Alt+Shift : "\xc3\x8d"
#
key U -Alt-Shift : "u"
key U -Alt+Shift : "U"
key U +Alt-Shift : "\xc3\xba"
key U +Alt+Shift : "\xc3\x9a"
#
key O -Alt-Shift : "o"
key O -Alt+Shift : "O"
key O +Alt-Shift : "\xc3\xb3"
key O +Alt+Shift : "\xc3\x93"
#
key 1 -Alt-Shift : "1"
key 1 -Alt+Shift : "!"
key 1 +Alt-Shift : "\xc2\xa1"  # 'exclamationdown'
key 1 +Alt+Shift : "\xc2\xbf"  # 'questiondown' but gives \x1b\x21
#
key 2 -Alt-Shift : "2"
key 2 -Alt+Shift : "\x22"
key 2 +Alt-Shift : "\xc2\xbf"  # 'questiondown'
key 2 +Alt+Shift : "2"         # but gives \x1b\x22


I suggest try starting minicom by specifying the device using:
minicom-D /dev/ttyUSB0

Then once it is started use CTRL-a z (control a then z) to got into the minincom menu and configure the defaults from there.


Ubuntu 11.10 not starting in Graphical mode?

Finally after lot of struggling, I was able to resolve this issue. And I happily writing this answer from the same Ubuntu which I lost for few hours.

If the Ubuntu is not booting up, then when the blank screen appears press Ctrl + Alt + (F1 to F6, anything) or goto recover mode to check from the command line.

Then, I checked following file:

sudo vi /var/log/Xorg.0.log

It will give you the information, where exactly you are failing. For example, it was failing for me in one of the files which I wrongly edited. See the bold text below.

[    16.685]
X.Org X Server 1.10.4
Release Date: 2011-08-19
[    16.685] X Protocol Version 11, Revision 0
[    16.685] Build Operating System: Linux 2.6.24-29-server i686 Ubuntu
[    16.685] Current Operating System: Linux Ubuntu11.10 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:25:36 UTC 2011 i686
[    16.685] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.0.0-13-generic root=UUID=0e1d28e3-b3cc-4022-81c6-4f4d24ac6f63 ro quiet splash vt.handoff=7
[    16.685] Build Date: 19 October 2011  05:09:41AM
[    16.685] xorg-server 2:1.10.4-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support)
[    16.685] Current version of pixman: 0.22.2
[    16.685]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    16.685] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    16.685] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Nov 26 22:59:34 2011
[    16.865] (==) Using system config directory "/usr/share/X11/xorg.conf.d"

**

  [    17.051] Parse error on line 14 of section InputClass in file
  /usr/share/X11/xorg.conf.d/50-synaptics.conf
          "ppa:sergio91pt/synaptics+clickpads" is not a valid keyword in this section. [    17.051] (EE) Problem parsing the config file [
  17.051] (EE) Error parsing the config file [    17.051]  Fatal server error: [    17.051] no screens found [    17.051]  Please consult the
  The X.Org Foundation support

**

I simply removed that line and rebooted. It again appeared with blank screen, I just tried randomly other tty section (e.g. tty2), by pressing Ctrl + Alt + F2 and I to my pleasant surprise I saw the graphical login screen!!!

I just checked if everything is intact. Also, due to upgrade, I see small changes in usability, but rest is fine otherwise. This is my first successful login after that disaster and I hope that it will continue without any problem in future.

Lesson, I learned were, to fix a small problem don't do unnecessary upgrade/updates and screw your time and energy. Thanks.


How can I retain my pidgin installation when upgrading to the newer versions of ubuntu?

If Pidgin is removed during the release upgrade, just install it back, after the upgrade is complete.

There's two common ways to install Pidgin. You may have...

...installed it from the official software sources in Ubuntu. If you found pidgin  in the Software Center or ran sudo apt-get install pidgin, that is the case.

This is also the case if Pidgin was already installed when you installed Ubuntu (which is the case for some versions of Ubuntu and some Ubuntu derivatives).

If this is the case, just install the pidgin package again.
...installed the version of Pidgin provided by the PPA that the upstream developers officially recommend.

If that's how you installed Pidgin, it makes sense that it was uninstalled when you upgraded, as third-party software sources (like PPA's) are disabled when you upgrade from one Ubuntu release to another, and sometimes the software they provide is uninstalled to make way for official software. (Official software can be uninstalled too, so that you've had this problem does not mean you installed Pidgin from the PPA.)

One good way to install Pidgin back from the PPA is to enable the PPA and install the package from there (this avoids having to download the right .deb package first):

sudo add-apt-repository ppa:pidgin-developers/ppa
sudo apt-get update
sudo apt-get install pidgin


Using dch to increment release number without a suffix?

To release 1.0.0-2 you need to use the -U option, see dch man page:

   --upstream, -U
          Don't append distro-name1 to the version on a derived
          distribution. Increment the Debian version.

Initial debian/changelog:

foo (1.0.0-1) trusty; urgency=medium

  * Initial release

 -- Sylvain Pineau <sylvain.pineau@canonical.com>  Thu, 16 Jul 2015 14:53:54 +0200

After dch -U:

foo (1.0.0-2) UNRELEASED; urgency=medium

  *

 -- Sylvain Pineau <sylvain.pineau@canonical.com>  Thu, 16 Jul 2015 18:06:24 +0200

foo (1.0.0-1) trusty; urgency=medium

  * Initial release

 -- Sylvain Pineau <sylvain.pineau@canonical.com>  Thu, 16 Jul 2015 14:53:54 +0200


Logitech usb wireless doesn't wake up computer from suspend

I accomplished this w/ a udev rule. This is for 16.04 but I have used the same method for earlier versions. I have no clue if it will work for 18.04.

1) use lsusb to find the device ID for the receiver. I believe the ID for these devices is always 046d:c52b, but this could vary.

2) Put the following into a udev rule. The file I used is "90-keyboard-wakeup.rules":

SUBSYSTEM=="usb",ATTRS{idVendor}=="046d",ATTRS{idProduct}=="c52b",RUN+="/bin/sh
-c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"

3) Put e.g. 90-keyboard-wakeup.rules into /etc/udev/rules.d directory.

4) reboot.


System-wide Gnome shell extensions are located in:
/usr/share/gnome-shell/extensions
Gnome shell extensions installed by the user are located in:
$HOME/.local/share/gnome-shell/extensions


No wireless internet after upgrading to 13.10

Find what type of wireless card you have in your system, open a terminal (CTRL+ALT+T), run lspci and look up something like this:

0c:00.0 Network controller: Broadcom Corporation **BCM4311** 802.11b/g **WLAN** (rev 01)

based in your results of your chip name (my case b43) run:

sudo apt get update
sudo apt-get remove --purge the name of your chip (mine is [**bcmw-kernel-source**])
sudo apt-get install linux-firmware-source
sudo modprobe chip name


You can specify commands, that are allowed for a user to be run as super user in /etc/sudoers file. Refer to manpage (man sudoers) for details.


As Apple is always ahead of the hardware curve I'd bet on it that it will work. I have a Mac that is 6 years old that I run the current version without any issues.

The only "trick" is to install http://refit.sourceforge.net/ which will allow you to boot from into Ubuntu.

Ubuntu has always been better than the other distroes when it comes to installing and recognizing OSX partitions.

I recommend you use mac tools to resize the partition to make room. I used gparted and it took for ever, like an hour, whereas the mac tool takes minutes.


How to change the default desktop icon size?

Right click on the icon, and then you will see an option to resize the icon. At least, in 12.04 it works.

For changing the default icon size:
In Nautilus (eg your personal folder) > Edit > Preference > tab Views > under Icon View Default change the Default Zoom level.

But this change the size of all the icons inside Nautilus.

But in Nautilus you can change the icon size in a particular folder by View > Zoom in, to get the normal size of the icon in that folder, and this will be remembered after a restart.


From bash manual section 3.6.2:

  ...if it does exist it is truncated to zero size.

Redirection with > file always truncates file before executing command, which means contents are erased regardless of the output; the actual writing to file will take place if there is an actual output (most notably observed with the lack of write() call in strace -f -e open,dup2,write bash -c 'true > out2.txt') and if no further error occurs.

Therefore, everything works properly, as per specifications, and the wording is correct. In fact this behavior is specified by POSIX Shell Command Language specifications and is supported by all POSIX-compliant shells, including ksh and dash (aka Ubuntu's /bin/sh, see the related question).

On the system level, redirection is performed by dup family of system calls, which is why redirection is formally called duplicating file descriptors and is most prominent when we perform the >/dev/null 2&>1 type of redirection.

It can be observed with strace command in the following example of successful and failed command. Note how the files are opened with O_CREAT|O_TRUNC flag.

$ strace -f -e open,dup2,write bash -c 'nocommand > out.txt;echo "foobar" > out2.txt'
...
strace: Process 9633 attached
[pid  9633] open("out.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
[pid  9633] dup2(3, 1)                  = 1
...
...
[pid  9633] write(2, "bash: nocommand: command not fou"..., 35bash: nocommand: command not found
) = 35
[pid  9633] +++ exited with 127 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=9633, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
open("out2.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
dup2(3, 1)                              = 1
write(1, "foobar\n", 7)                 = 7
dup2(10, 1)                             = 1
+++ exited with 0 +++


While vim certainly is capable of doing this, my first thought would be to use sed or perl. Using sed:

sed -i.bak 's/`feedback`/`comments`/g' path/to/file

The -i flag makes sed perform operations in the files specified instead of writing to stdout (-isuffix makes a backup copy path/to/filesuffix).


Yep.  First, boot from your Ubuntu LiveCD, and choose "Try Ubuntu"; let it continue until you get the default Live desktop.  From the Dash, open a terminal and enter the command:

sudo fdisk -l

This is to find out the partition to which you have installed Ubuntu.  It'll be sdXY, where X is the drive: it'll be a letter such as a or b; and Y is the number that has been given to the partition on that drive: it'll be a number.  Find your Ubuntu partition there, if you can.  You need to know X and Y.  (If you can't tell which is the right partition, you can open GParted from the Dash to get a graphical view of your partitions, and maybe figure it out from there.)

Once you know that, then enter the command:

sudo mount /dev/sdXY /mnt

where X and Y are the partition that you found in the previous step.  For example, if your Ubuntu partition is sda1, you'll enter "sudo mount /dev/sda1 /mnt".  This is to mount the partition so that you can work with files on it.

Now you need to reinstall grub to that partition.  If you're running Ubuntu 11.04 or later, enter this command:

sudo grub-install --boot-directory=/mnt/boot /dev/sdX

where X is the partition (a, b, c, etc.) that you obtained above: note that it does not take a number this time.

If your version of Ubuntu is older than 11.04, then enter this command instead:

sudo grub-install --root-directory=/mnt /dev/sdX

This will reinstall the Ubuntu grub you had been using before.  When you reboot, you'll have your old grub.  Once in to your Ubuntu, open a terminal and run this command:

sudo update-grub


How do I record streaming audio with audacity?

I understand your question as "how can I use Audacity to record audio that is being streamed to me?" There are a lot of good answers here and I recognize that this question was from a while ago, but they don't quite touch on how I usually do it, so I felt I'd contribute.

It's easy if you've got Pulse Audio Volume Control (though Pulse has gotten a little bit buggy in recent years). You can get it on just about any Ubuntu-based distro through the software center, or via:

sudo apt install pavucontrol

...along with its dependencies, which are probably already on your machine.

Open it and you'll find a few tabs; Playback and Recording, which cover program terminals; and also Input and Output, which are about detected hardware, and last Configuration, which is pretty self-explanatory and not something you'll usually need to worry about.

After pressing Record on Audacity, Audacity will show up under the Recording pane. From there, you can use a drop-down to switch which input it is listening to. Some of those inputs are what's called "monitors", which is basically a watch on what's coming out of your speakers or moving to any other output device. Usually you'll want "Monitor of Built-In Analog Stereo", or your equivalent, and Audacity will start recording what's leaving your speakers.

This is admittedly very similar to what was suggested by Dario Salvati, and more and more distros are duplicating Pulse features in their default sound; but I've found them to be a bit sketchy on monitors. Pulse more-or-less gets you a virtual rack with a GUI.


Will a new 16.04 installation overwrite a failed 15.10 upgrade?

If your home directory is not corrupted, you can reinstall Ubuntu 16.04 LTS from a bootable medium such as a LiveUSB or DVD-ROM. You will be given the option to reinstall your OS, and keeping your Home folder files.


Can't jump between input fields in Filezilla 3.9.0.1 on Ubuntu 14.10

Follow the answer posted here -

Gedit and Filezilla Input Problem

I followed the same process, but selected 'xim' and there was no need to change language support for me. I am using Xubuntu 14.10. After that I restarted the machine and tab keys are working fine now.


How to upgrade from Ubuntu 10.10 to 11.04?

The truly command line way is (e.g. if you don't have a gui):

sudo do-release-upgrade


Failing to boot while trying to install Ubuntu 64-bit

The exact solution to the "ata1,2,3,4,5,6,7 depending on the device id" is to unplug all sata HHD"do not need to remove SSD's or USB drives" and plug them in 1 by 1 till you get the same problem, this way you will identify witch drive it is, hopefully you have more than 1 :( .

I am still not 100% sure what causes it exactly and you to to fix the drive but in my case it was only crashing when I tried to do a ubuntu system install.

I hope this helps!

Good luck.


This behavior is expected. In the “new” section of the release notes of Firefox 46, there is the following bullet:

  GTK3 integration (GNU/Linux only)

That means that Firefox tries to look like most other (GTK3) applications starting with version 46. For example, open the text editor gedit and right click in the open window there: it also shows a black context menu with white text. It’s probably just something to get used to.

Your browser under Windows looks different because Firefox tries to look like other Windows applications there.


Ubuntu 18.04 has purple border on the bottom, and right side of the screen, sometimes

I found the error, just turn off the zoom feature from Universal Access menu in settings. The purple border just disappeared.


If you know the process ID (pid), then you can run:

top -p <pid1>,<pid2>...

And to get the list of process IDs for a given process name you can use:

pgrep <process-name>


Exact Copy (Backup) of Full Directory Tree To External (Backup) Drive

Most backup programs compress data to specialized backup archives. Special search tools are required to locate files withing backup archives and special commands must be used to retrieve backup files.

If you only want an exact copy of files consider the rsync command.

Borrowing from this answer: Bash script to clone Ubuntu to new partition for testing 18.04 LTS upgrade here is how to clone a full 16.04 installation:

rsync -haxAX --stats --delete --info=progress2 --info=name0 /* "$TargetMnt" \
      --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}

Some notable comments about parameters:

--stats gives information on files added, changed and deleted from the clone (called backup in your case).
--delete instructs rsync to delete files in the clone that no longer exist in the source directory.
info=progress2 gives a modern looking progress display whilst cloning directories.
--info=name0 prevents every single filename from being displayed as it is being copied. This gives less screen clutter but you may want to omit this parameter.
/* tells rsync where to start synchronizing files. In this example it's the root directory but you want to change it to /media/user1/DATA4/FolderA.
"$TargetMnt" tells rscync where to clone to. In your case change it to "/media/ivan/Seagate Backup Plus Drive/FolderA". The double quotes are important because your directory names contain spaces in them.
The second line starting with --exclude={/dev/* you don't need at all because these directories aren't in the list. Don't use this line and drop the line continuation character \ at the end of the first line.

As with all backup scenarios always test the backups to make sure all files are there and contain the appropriate information.


No audio and microphone working on Asus 1101Eeepc

I have a ASUS 1005 HA, with the same problem. The following worked for me.

Install Pavucontrol
With Pavucontrol unlock the left and right channels of the microphone and set one channel to 0% and the the other to 90%
Open Skype, and disable automatically adjust microphone settings in the sound options panel

see also:

https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/433055

http://beboblog.johnbebo.com/2010/12/29/microphone-for-skype-in-ubuntu-1010-for-asus-1005ha.aspx

or check the following: The ACER 1810 T has the same issue.

https://wiki.ubuntu.com/HardwareSupport/Machines/Netbooks


Will Samsung laptops be fully (OOTB) supported by Ubuntu?

Samsung laptops, just with other manufacturers' machines, use wildly different components from one model to another. It's impossible to say that they'll all just work.

Googling the model number is usually a good starting point for finding users with problems but even if you don't find issues, it doesn't mean you won't have them.

If you can find a list of the specifications you can check the individual components (graphics, wireless, etc) for issues which might exist in different laptops with these parts, again, with Google.

And there is the Ubuntu Certified Hardware page for which manufacturers can submit their laptops for testing. The problem specifically for you is Samsung don't submit their computers for testing. If you're buying many, many machines, perhaps you have enough power to convince somebody at Samsung to join the certification program.


Download the Ubuntu ISO file Ubuntu 20.04

Download Rufus for Making USB bootable Rufus.

Create the usb bootable using rufus and ubuntu iso.

Restart the system and go to laptops boot manager, and change the boot sequence, Make the boot from usb/ pendrive at the top following the instruction given on the right side of the bootmanager (In case you don't know the how to enter into boot manager google it.)

Save and exit from boot manager

Now your laptop will start showing menu for installing the ubuntu , follow the steps and choose carefully,
step 6: In the installation Type choose " Install along side Windows"

that's it.


Updated 12.10 and now get flashing purple screen when booting

Have you tried using 12.04 LTS? That might be your best option, since you are new to Linux. LTS (Long Term Support) versions are the most stable. You won't lose any important features by switching to 12.04.

Have you booted again?


Update firewall rules to allow printing when firewall is turned on

All I needed was
sudo ufw allow 631/tcp

instead of
iptables -A INPUT -p tcp --dport 631 -j ACCEPT

I am now able to print with the firewalls turned on at last.


Sharing folder between Owncloud and Plex

It's ACL permissions..

for example:

setfacl g:plex:rwx /path/
setfacl g:www-data:rwx /path/


Why Windows 8 is a lot faster than Ubuntu 13.10 on the same laptop?

Windows 8 usually don't turn off the PC. It does some kind of hibernate shutdown.

And the about app starting, I'm also amazed about the launching speed of Windows 8. I think they load your popular apps in background.


No internet once connected to OpenVPN server

Finally, thanks to bistoco's answer, I changed the DNS on both the ubuntu server and the client (Windows) to Google's one (8.8.8.8) because I was able to ping it successfully. On ubuntu, I used the GUI; on Windows, I changed the DNS for my wifi card and for the OpenVPN TAP Adapter.

I hope it will help someone :)


can't login as mysql user root from normal user account in ubuntu 16.04

I recently upgrade my Ubuntu 15.04 to 16.04 and this has worked for me:

First, connect in sudo mysql

sudo mysql -u root

Check your accounts present in your db

SELECT User,Host FROM mysql.user;
+------------------+-----------+
| User             | Host      |
+------------------+-----------+
| admin            | localhost |
| debian-sys-maint | localhost |
| magento_user     | localhost |
| mysql.sys        | localhost |
| root             | localhost |

Delete current root@localhost account

mysql> DROP USER 'root'@'localhost';
Query OK, 0 rows affected (0,00 sec)

Recreate your user

mysql> CREATE USER 'root'@'%' IDENTIFIED BY '';
Query OK, 0 rows affected (0,00 sec)

Give permissions to your user (don't forget to flush privileges)

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
Query OK, 0 rows affected (0,00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0,01 sec)

Exit MySQL and try to reconnect without sudo.

I hope this will help someone :)


How can I get rid of mouse lag under Ubuntu?

I found this solution! Credit goes to the original poster.

https://superuser.com/questions/528727/how-do-i-solve-periodic-mouse-lag-on-linux-mint-mate

To save some peeps the trouble of going to the link here are the specific instructions I followed (copy and paste each line on a terminal):

sudo su -
modprobe drm_kms_helper
echo N> /sys/module/drm_kms_helper/parameters/poll
echo "drm_kms_helper" >> /etc/modprobe.d/local.conf
echo 'drm_kms_helper' >> /etc/modules-load.d/local.conf
echo "options drm_kms_helper poll=N" >> /etc/modprobe.d/local.conf


You might have luck with the bcm43 driver: https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx


Partition scheme for Linux-Linux dual-boot

You can do this without too much effort.
We disable partition swap, create a /swapfile, delete the swap partition, and then you'll be able to install Debian into the unallocated space.
Disable partition swap
sudo swapoff -a # disable current swap
sudo -H gedit /etc/fstab # edit fstab
Remove, or comment out, the line that looks similar to this:
UUID=xxxx-xxxx-xxxx-xxxx-xxxx  none  swap       sw       0       0

Add this line:
/swapfile    none    swap    sw      0   0

Save the edits.
Now we create a /swapfile.
Note: Incorrect use of the dd command can cause data loss. Suggest copy/paste.
sudo swapoff -a           # turn off swap
sudo rm -i /swapfile      # remove old /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile
sudo swapon /swapfile     # turn on swap
free -h                   # confirm nnG RAM and 4G swap

Confirm this line in /etc/fstab... and confirm no other “swap” lines...
/swapfile    none    swap    sw      0   0

Delete old partitions
Then use gparted to delete /dev/sda5, and then delete /dev/sda2.
reboot                    # reboot and verify operation

Install Debian
Then you can install Debian. If Debian can use its own /swapfile (rather than its own swap partition), then use that for swap space.


Wireless signal strength indicator shows low signals when actually signals  are good

check signal with wicd, sometimes network-manager say crazy things like this, but I suggest both wicd and network-manager.

sudo apt-get install wicd


Windows + Ubuntu dual boot not happening

Boot into Ubuntu and open a terminal window. From here, run sudo update-grub. That will search for other operating systems and will hopefully add Windows as an option in GRUB.


Problem installing printers' drivers on ubuntu 14.04 LTS

Download the Driver Install Tool:  link
and follow the instructions bellow.

worked for my HL-1112 Ununto-Gnome 15.04

From Brother Website (link):

Step1. Download the tool.(linux-brprinter-installer-*.*.*-*.gz)

The tool will be downloaded into the default "Download" directory.
(The directory location varies depending on your Linux distribution.)
e.g. /home/(LoginName)/Download

Step2. Open a terminal window and go to the directory you downloaded the file to in the last step.

Step3. Enter this command to extract the downloaded file:

Command: gunzip linux-brprinter-installer-*.*.*-*.gz

Step4. Get superuser authorization with the "su" command or "sudo su" command.

Step5. Run the tool:

Command: bash linux-brprinter-installer-*.*.*-* Brother machine name

Step6. The driver installation will start. Follow the installation screen directions.

 When you see the message "Will you specify the DeviceURI ?",

 For USB Users: Choose N(No)
 For Network Users: Choose Y(Yes) and DeviceURI.

The install process may take some time. Please wait until it is complete.


You're lucky if you can even update a current install - I haven't been able to run the security updates on mine for a few days now, timeout/connection problem on two internet connections.

Apparently the 15.04 is too popular right now :) If you go to Settings... in the upgrade dialog, and in Software-sources set the server to Main Server or a server near you, it may work better.


Ubuntu 14.04 and AMD Radeon HD 7670M overheat problem

Sorry for the late answer , but I was finally able to install the beta version catalyst 14.6 .. I followed the procedure given here : https://help.ubuntu.com/community/BinaryDriverHowto/AMD#Latest_upstream_beta_and_stable_driver_downloaded_directly_from_AMD.27s_website .. i did get some hiccups about dependency problems and DKMS modules ..but i manually took care of them .. now my laptop's temp. is somewhere around 60-65 .. but thats okay .. Thanks for the help!

UPDATE : few months have passed since i installed the latest beta version catalyst 14.6 .. and the temperature is perfectly normal .. around 55-60 C.


Why nvidiabl module is not working in precise?

Now working.

1-Downloaded nvidiabl debian base distributed version >> https://github.com/downloads/guillaumezin/nvidiabl/nvidiabl-dkms_0.74_all.deb

2- Installed it dpkg -i nvidiabl-dkms_0.74_all.deb

3- Add module to /etc/modules

4- Download oBacklight Script >> http://dev.osource.se/files/oBacklight_0.3.8.tar.gz (version 039 have an sh error try avoid it till is repaired).

5- Untar it tar -xvf oBacklight_0.3.8.tar.gz

6- cd to the untared directory

7-Give the script execution permission chmod +x oBacklight( I also change the owner and group to root but thats because im a little paranoid. You can avoid this.)

8-Copy oBacklight script to the /etc/init.d directory

9-Add it to the start up update-rc oBacklight defaults

NOTE: Depending on your laptop model, you may have to change the script mode. See >> http://dev.osource.se/docs/obacklight/

Ok now you're ready. In case you dont want to reboot now, just 'modprobe nvidiabl' and '/etc/init.d/oBacklight start' and test yourself.


this web site http://www.h263l.com/ explains in great detail and depth. From my experience in usng Openshot using the drop down menu you can change your preferences and this web site will also answer in more detail http://www.openshotvideo.com/


Take screenshots in background silently for archive purposes

I have just started learning Ubuntu.
I don't know this method is proper or not.
I Could achieve it in the below way.

I have created a script like this named ScreenShot.sh in the folder /usr/local/bin

#!/bin/bash

# NAME: ScreenShot.sh
# PATH: /usr/local/bin
# DESC: Take Screenshots at every specified intervals with "watch -n 10 ScreenShot.sh" Command
# DATE: Oct 12th 2018

sudo gnome-screenshot -d 0

sudo chmod a+x /usr/local/bin/ScreenShot.sh

when i start the system and wanted to start the screen capture at every 10secs,

i run this command

sudo watch -n 10 ScreenShot.sh

i have configured my default folder, image type to be saved, with dconf editor in gnome-screenshot section.

Sounds are stopped by dconf settings under sound section


I was not successful in installing Ubuntu 14.04.1 LTS on my Dell Ubuntu-supported laptop

It seems that your CD has been incompletely written or improperly burnt. When the installation process is going on, after the partitions are filled with files, there is a step where it checks for your internet connection. If you have one, it will get the updated files from the internet. Else, it would install the locally available files from the CD. It seems that your CD cannot provide these files which means that it is improperly written. Alternately, you can try writing the CD to a pen drive and boot it from there.


Have you looked at gdb? It's a command line interface tool.

Another option is to go with Eclipse C/C++, which is a full fledged C and C++ IDE that provides front-end for gdb (CDT GNU Toolchain Debug).

I have not used the latter as am pretty comfortable with gdb.


Ubuntu Server does not appear on network by NetBIOS name until 2nd reboot?

Hm, I think something you installed might be causing this. What programs do you have installed that are not stock with ubuntu server? You might also want to try "shutdown -s now" to shutdown, which might fix it. Safe restart does not really make a difference when dealing with servers

c:

Regards,
Stefan.


How to connect two laptops with ethernet patch cable to share files

On the Linux machine run this command:

sudo ifconfig address 169.254.5.1 netmask 255.255.0.0

On the windows machine, you will need to run a command prompt as Administrator and run this command:

netsh interface ip set address name="Local Area Connection" static 169.254.5.2 255.255.0.0 169.254.5.1 1

You can replace the 169.254.*.* with whatever almost address you want, although it is highly recommended to stay in the 169.254.*.* block.

Keep in mind that Windows will always say Unknown Network for an ad-hoc connection like this.  The only way to get around it is to buy a router or a switch.  If you want to enable Homegroup, then you'll need to change your network location (multiple ways to do so in Windows, covered here) to private/Home.


how do I bridge two wired network connections

bridge-utils package in Ubuntu should help you get started with bridging network connections. It will require editing a few configuration files and running some commands with appropriate privileges.

For more details refer to https://help.ubuntu.com/community/NetworkConnectionBridge

There is no easy way to do it by right-clicking in the GUI as with Windows. There could be tools that help doing this, but I am not aware of any of them being available in a standard Ubuntu installation.


To restart unity-panel-service, just run the following command in terminal:

kill $(pgrep unity-panel-ser)

Like this, the old process of unity-panel-service will be killed and a new one will start automatically (so you don't have to care to start yourself again).


Today, I faced exactly the same issue using the same manual as you did. I guess the problem is related to the fact that some python dependencies are installed for 2.7 and some are installed for 3.2. So I decided to install 2.7 only and skip all packages for 3.2.

$ sudo apt-get install apache2 apache2-mpm-worker \
    apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 \
    libaprutil1-dbd-sqlite3 build-essential \
    python-dev \
    libapache2-mod-wsgi libaprutil1-ldap memcached \
    python-cairo-dev python-ldap python-memcache \
    python-pysqlite2 sqlite3 erlang-os-mon erlang-snmp rabbitmq-server \
    bzr expect libapache2-mod-python python-setuptools

$ sudo easy_install django django-tagging zope.interface twisted txamqp

When I use these two commands instead of the commands in the manual, I do not get the error you mention any more:

ImportError: cannot import name python_2_unicode_compatible


Not able to install tree comand in ubuntu

Package tree is available in Universe. Check that you have it enabled:

Then just do the usual

$ sudo apt-get update
$ sudo apt-get install tree

All Ubuntu repositories (main, universe, restricted, multiverse) can be enabled by following command:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"


How can I install mmc-utils on Ubuntu 14.04?

I tested the following on 16.04 LTS.

For installation of mmc-utils do the following:

Install development packages sudo apt-get install build-essential
Download mmc-utils sources and extract them

cd /tmp
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mmc-utils/mmc-utils_0~gita3d3331.orig.tar.xz

tar -xf mmc-utils_0~gita3d3331.orig.tar.xz
cd mmc-utils-0~gita3d3331

Install checkinstall to make deb-package with sudo apt-get install checkinstall

Start deb-package creation with sudo checkinstall make install and then in checkinstall session do the following:

for Should I create a default set of package docs? answer n .
enter mmc-utils as package description and press Ctrl+D;
enter 2 and enter mmc-utils as package Name, press Enter;
press Enter to continue (start compilation and deb-package building)

You can verify installation of your package with apt-cache policy mmc-utils

mmc-utils:
  Installed: 0~gita3d3331-1
  Candidate: 0~gita3d3331-1
  Version table:
 *** 0~gita3d3331-1 100
        100 /var/lib/dpkg/status

The binary is located in /usr/local/bin/mmc and can be launched as mmc.


Upgrade to 14.04 LTS from Windows 7 and 12.10 dual boot

As long as you do an In place Upgrade using the procedure suggested in the WIKI. You should be fine. However as a general recommendation you must always backup your data Unless you are 100% sure that whatever you are doing is not going to break your system.

I recommend backing up the Data first, Only then attempt an upgrade. You could also do a clean install of 14.04. Backing up the data should be your first priority before you upgrade anyways.!!


I dont think that you need an external device. If you have a wired connection to the net then you should be able to share it wirelessly. I think if you want to share a wireless connection then you will need 2 wireless adapters, 1 to conect to the net, 1 to share the connection with your other computer. In Ubuntu 11.10 you can go to network click on the wireless tab then click on use as hotspot. If you have already done this then I'm sorry for wasting your time.

Peace


Hello I have a vostro 3560 and am having problems with installing the video card ati, the last driver from amd site does not install, how did you do with yours? I can pass as did the installation?


Generally you should use the drivers from the official Ubuntu repositories. But when you have problems with the drivers ... you can install the latest stable drivers from the GPU Drivers PPA.

First uninstall the currently installed NVIDIA drivers.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On login screen press Ctrl+Alt+F1 - enter user name and password - execute :

sudo apt-get purge nvidia*
sudo reboot

Install the latest stable NVIDIA drivers for GTX 660 Ti.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On login screen press Ctrl+Alt+F1 - enter user name and password - execute :

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


Where did the negative Compiz plugin go?

OK, while writing the question I found my own answer. The plugin is located in the compiz-plugins  package that can be installed with:

sudo apt-get install compiz-plugins

I don't know if this package stopped being a dependency to CCSM or something, because I don't remember having to install it before.


How I can keep all my mysql database work even after reinstalling Ubuntu?

Before you reinstall your system, move the mySQL databases to /home and then forget about any complicated stuff from now on!

sudo service mysql stop
sudo cp --recursive --preserve=all /var/lib/mysql/ /home/

Then:

sudo nano /etc/mysql/my.cnf

and set datadir to /home/mysql

sudo nano /etc/apparmor.d/usr.sbin.mysqld

add:

/home/mysql/ r,
/home/mysql/** rwk,

then:

apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld
sudo service mysql start

After you've verified it all works, just delete /var/lib/mysql


Is it possible to download all mp3s from a domain or URL?

While don.joey's answer directly deals with your question about wget, it's worth noting that there are a plethora of browser plug-ins that can also do this for you.  The ones I've used are linky, downloadThemAll, FlashGotand SnapLinksPlus.

That said, becoming proficient in curl and wget commands is never a bad thing.  ;-)


ccpd = Canon Printer Daemon for CUPS

On a system with Linux MINT 18 (based on Ubuntu 16.4 LTS) and a Canon LBP7210C network printer, I did this for a faster timeout to take precedence.

Edit the override.conf file

$ sudo systemctl edit ccpd.service

and enter

[Service]
TimeoutStopSec=10

to set the timeout to 10 seconds. Save and exit.
This change will prevail between each shutdown.

To check the modified timeout value, run

$ systemctl show ccpd.service -p TimeoutStopUSec
TimeoutStopUSec=10s

The same method was used in this post https://askubuntu.com/a/810237 for a different service.

Note: Each service has a timeout and its there for a reason. Changing the timeout for a network printer seems OK. For other services (eg: disk drives) the effect of changing a preset value must be carefully considered.


Many programs do not accept key strokes when they do not have the keyboard forcus - which certainly makes some sense.

But you do not need to use "windowactivate", "windowfocus" works, and does not bring the window to front etc.:
xdotool windowfocus 8392809 key p

Also, you can simplify your command to one line by using the sleep command of xdotool

xdotool key p sleep 0.5 key s

or by using the option --delay with the command key.

As background: The commands you tried look very similar, but have a technical difference, explained in man xdotool:

SENDEVENT NOTES
    If you are trying to send key input to a specific window, and it does not appear to be working, then it's
    likely your application is ignoring the events xdotool is generating. This is fairly common.

    Sending keystrokes to a specific window uses a different API than simply typing to the active window. If you
    specify 'xdotool type --window 12345 hello' xdotool will generate key events and send them directly to window
    12345.  However, X11 servers will set a special flag on all events generated in this way (see
    XEvent.xany.send_event in X11's manual). Many programs observe this flag and reject these events.

    It is important to note that for key and mouse events, we only use XSendEvent when a specific window is
    targeted. Otherwise, we use XTEST.

    Some programs can be configured to accept events even if they are generated by xdotool. Seek the documentation
    of your application for help.

    Specific application notes (from the author's testing): * Firefox 3 seems to ignore all input when it does not
    have focus.  * xterm can be configured while running with ctrl+leftclick, 'Allow SendEvents' * gnome-terminal
    appears to accept generated input by default.


How do I replace xfce4-screenshooter in Xubuntu?

You can change the shortcut in Keyboard settings.

Remove the xfce4-screenshooter ones and create your shutter ones.


Access SQL database on windows using linux terminal

sqlcli is the easiest method when you are used to the mysql command line.

From the link an example connection string:

mssql -s abcdef.database.windows.net
-u username@abcdef -p thepassword -d mydatabase -e

You can install it using npm:

sudo apt install npm
npm install -g sql-cli


which version of ubuntu is compatible for compaq presario V2555US

I strongly recommend to use a desktop environment that does not need compositing (this is used for desktop effects), since compositing often consumes more than 100 MB of RAM and with your graphics chip you might not get a descent desktop experience. Therefore, Gnome 3 (Ubuntu Gnome Remix) and Unity (Ubuntu) are out of the question. In KDE (Kubuntu) one can disable compositing, but the KDE programs are also relatively heavy when it comes to RAM usage.

Long answer short: That leaves Xfce (Xubuntu) and Lxde (Lubuntu) as good candidates.

For your computer, you'll probably have to use the 32bit version.

As a personal opinion: For stability I recommend to use LTS versions of *buntu whenever possible. If you decide to use Xubuntu, I'd therefore go for the 12.04 LTS version and upgrade to 14.04 LTS once it gets its first big update (14.04.1). Sadly, there is no up to date LTS version of Lubuntu.

A second personal opinion: You might even be better off with Debian Wheezy and Xfce, which is even more lightweight than Xubuntu.


Is there any graphical front-end for darling?

As of Mid-2020, Darling has no Graphical User Interface (GUI). Sorry.


Ubuntu 12.10 Wireless on Macbook Pro late 2011 No Internet Access

Download the needed packages (.deb files) onto a Windows-formatted USB stick. Plug the USB stick in the Mac where it will hopefully get automounted. In a terminal, use dpkg -i to install the files from that volume.


Second Monitor stays black/in power save mode

I found a workaround for a similar problem.  After boot, or X restart, one of my monitors goes into powersave, the other works fine.  If I switch to a text only console (ctrl-alt-f1) the screen will turn on and work correctly.  When I switch back to X (ctrl-alt-f7), my display will stay on.  I think it is a frequency sync issue.


Update:

As of 14.10, the util-linux provides the nsenter command. The solution below has been tested with 14.04.

The Debian/Ubuntu version is as you said quite old now, even in Trusty.

There's an opened bug and so far no progress unfortunately.

You could try to build it from source:

wget https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.1.tar.gz -qO - | tar -xz -C ~/Downloads

Make sure to install the following build dependencies:

sudo apt-get install libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool

And just run in the source directory (~/Downloads/util-linux-2.24.1):

./autogen.sh

./configure && make

IMPORTANT

Do NOT sudo make install this package on Ubuntu 14.04 LTS until it is officially ready for use, as it definitely demands an unavailable version of libmount, breaking your boot. (If you do this, reinstall the mount package before rebooting your machine, if you can.)

Credits: Trevor Alexander for his comment.

Finally you'll get:

sylvain@sylvain-ThinkPad-T430s:~/Downloads/util-linux-2.24.1$ ./nsenter -V
nsenter from util-linux 2.24.1

Note: as nsenter is not available in the ubuntu util-linux version, you can install just this file in /usr/bin (or sbin):

sudo cp ./nsenter /usr/bin


Why is swap being used when vm.swappiness is 0?

Swappiness defines when swap is used.

For instance, swappiness of 40 defines to begin using swap when there is 40% of RAM left to use.

Swappiness of 0 defines swap is used when the RAM is full and 0% left to use.

To disable swap (totally not recommended as you could possibly end up with an unusable system), you run:

sudo swapoff -a


Aero snap isn't available for Compiz 0.8.6 (assuming that you've installed the current stable 10.10), so with the Grid plugin you can only use keyboard shortcuts. [Ctrl+Alt+Num]

Please wait until Compiz 0.9 is shipped with Ubuntu 11.04 to be able to use it, normally I would say install it yourself but you're a 3 days old ubuntu user :P.


Why can't I define the size of a Gtk.Entry embedded in a Gtk.Toolbar?

I don't think it's a problem specific to the toolbar, in that if you add an entry elsewhere you would face the same issue - it won't go less than a certain width (I'm assuming your problem is making it smaller rather than larger) using the Width request property.

See this: http://faq.pygtk.org/index.py?file=faq14.001.htp&req=show
and http://developer.gnome.org/gtk3/3.2/GtkEntry.html#gtk-entry-set-width-chars

That is, set the property Width in chars (if using glade) or simply:

# widget refers to the GtkEntry object
widget.set_width_chars(5)

Of course, that will be ignored if you have a Width request greater than Width in chars.


I had donated to UBUNTU but how do I get the latest UBUNTU software?

If you already have Ubuntu installed then you can get the latest apps/softwares by

sudo apt-get install update

typing in the terminal(Ctrl+Alt+T)

If you don't have Ubuntu then follow the steps here to get LTS(Long term support) release of Ubuntu suitable for your needs and h/w by following this link. I suggest Ubuntu Desktop 14.04.3 LTS


Changing desktop theme does not change the background

As Rinzwind pointed out in a comment, you need to right-click on the desktop:

Click on Configure Desktop ...

You'll see something like this if you have the Wallpaper tab selected:

There, you can choose your wallpaper type which could be static or animated or just a plain color. You can also use your own images by clicking on Add Image.

You can also download additional wallpapers from the KDE Store as shown in the next image:

As you've found out, going into System Settings isn't the way to change the desktop wallpaper.

The images I've put up may differ from what you see on your system because I'm on Kubuntu 19.04 with the kubuntu-backports ppa enabled. This gives me KDE Plasma 15.6.0 which has quite a few changes from the KDE Plasma that comes with Kubuntu 19.04 by default.


Dual boot Ubuntu 17 on external hard drive with windows 10 (Hard drive already contained 300gb of data)

Your Ubuntu is installed on the external hard drive. But your 1st boot device is still the default HD i.e in which window is installed. So you need to make the external hard drive as 1st boot device from bios configuration.


Cannot upgrade from 16.04 LTS to 18.04 LTS

I have been periodically trying to upgrade using the traditional way and every time I failed the same way I described above.

Until today (3/17/2019).

There was an automatic update (not upgrade) that happened that must have brought in the required fix.

I tried again. And, after 4 hours of file downloading and installing, lo and behold, I am now using 18.04 LTS.

I still want to know what was wrong that was fixed in the update. But if you saw the same error that I had, go ahead and upgrade now.


Did I install from USB correctly? (Blank screen when USB drive removed)

You are good to go. Most systems do not boot to the USB drive automatically.;-)


Yes, that is possible using tcpdump, which is a most powerful and widely used command-line packet sniffer (package analyzer) tool available on Linux.
In the terminal application of the computer you want to monitor :
sudo tcpdump -i ethX icmp and icmp[icmptype]=icmp-echo

Options:
-n avoid a (potentially slow) reverse DNS query
−i interface
icmp[icmptype]=icmp-echo    To print all ICMP packets that are echo requests/replies

The it will start listening on ethX and waiting for arrived packets.
Example : I have 2 pc win7 10.1.1.8 , Ubuntu 10.1.1.57 which will monitor packets arrived :

On ubuntu :

Reference : nixCraft


You're thinking along the right lines (the name likely includes hidden characters - most likely trailing whitespace) however the quotes around "1563972300.M254363P6352*" will prevent expansion of the *

You may find ls -Q useful ex. ls -Q ./1563972300.M254363P6352*

You can also use tab completion in cases like this ex.

ls -Q ./1563972300.M254363P6352TAB


I'm trying to get started with LXC containers, and I'm getting a permissions problem on starting an unpriviledged container. How can I fix it?

I fixed it by adding the LXC edgers PPA (might have been unnecessary) and chmod +x ~/.local/share ...
Shouldn't be a security risk, since they have to get in to home user permissions and home anyway to get there.


I forgot to check the files in /usr/share/initramfs-tools and indeed, I found some compcache related files. I then checked, which package installed those files, e.g.

sudo dpkg -S /usr/share/initramfs-tools/conf.d/compcache

points to the package casper. Now, I got no idea how this ended up on my system, but purging it and recreating the initrd, gets rid of the zram swap.


I have found my own answer after scouring Google search results. These programs use Qt for their user interface. I installed the package qt4-qtconfig and ran it with qtconfig, choosing the GTK+ GUI style and configuring window and background colours to match the theme. Clementine and Antimicro now match well with my theme, as well as all other programs that use Qt for theming.


It isn't enough to list the resolutions in the Screen section of xorg.conf.  If the monitor doesn't advertise that mode, then it will ignore the mode.

Looking at the log file, you can see the mode that the video driver has queried the display for the list of modes that it supports, which match up with the output of xrandr (ignoring the doublescan modes that the driver doesn't support).

Assuming the panel actually can support the extra modes you've listed, you will need to add ModeLine directives to the Monitor section describing them, and possibly add the following to the Device section:

Option "Monitor-LVDS1" "Monitor0"

So that it knows that the monitor section refers to the LVDS output.

Determining what the required timings are will be the difficult part.  If you know that these modes exist because you used them under Windows, you might be able to use the instructions from the Obtaining modelines from Windows program PowerStrip section on this wiki page:

http://www.x.org/wiki/FAQVideoModes


I had exactly the same situation.

Running on an older Pentium 2 box, and I was very happy with the performance on Ubuntu 18.04 but I moved forward to Ubuntu 18.10.

That worked fine until they sent me the first kernel upgrade (4.18.0.10 to 4.18.0.14).

The 4.18.0.14 would not budge from the boot screen, so I went back to Ubuntu 18.04 which works like a charm.


In need of app to create GUI's for Linux

If you want to create GUI application in Ubuntu you should have a look at Ubuntu Developer APIs.

But for simple GUI app written in C++, I will suggest you to use Qt. It also provide a lightweight IDE  called
QTCreator
 which has C++, QML and ECMAscript support.


Uninstall GRUB and use Windows bootloader

This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub

You will be doing this from Windows 10. No bootable media required.

Where bootrec /fixmbr, bootsect /nt60 and the Ubuntu live with the boot-repair suggestions have failed, this has worked for me:

(This answer borrowed verbatim from here)

Run a cmd.exe process with administrator privileges
Run diskpart
Type: list disk then sel disk X where X is the drive your boot files reside on
Type list vol to see all partitions (volumes) on the disk (the EFI volume will be formatted in FAT, others will be NTFS)
Select the EFI volume by typing: sel vol Y where Y is the SYSTEM volume (this is almost always the EFI partition)
For convenience, assign a drive letter by typing: assign letter=Z: where Z is a free (unused) drive letter
Type exit to leave disk part
While still in the cmd prompt, type: Z: and hit enter, where Z was the drive letter you just created.
Type dir to list directories on this mounted EFI partition
If you are in the right place, you should see a directory called EFI
Type cd EFI and then dir to list the child directories inside EFI
Type rmdir /S ubuntu to delete the ubuntu boot directory

Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.


Is there a program where I can embed other programs' windows?

What I'm offering is little more than a theory. It may lead nowhere.

There are alternative window-managers like bluetile, xmonad and awesome that can nest multiple windows in a nice tiling configuration (that is, all child windows are placed next to each other, rather than being allowed to overlap.

They can all (and there are a lot more than just those) be scripted in various languages. bluetile and xmonad both use Haskell while awesome uses lua.

The problem is, they replace the standard window manager. bluetile is the only one designed to work alongside traditional Gnome components so you might have most initial luck with that. Either way, you might battle to keep both a traditional desktop and be able to swap out for a tiled one. You might find that creating a new user for each project where each has its own desktop configuration, is what works best.

That said, you might find you prefer a tiled desktop for everything.


How do I access files in the partition that Ubuntu is installed on?

Whiles in ubuntu, open the filesystem drive and open the folder named 'host'. That is where all your other files and folders on that same partition are. Enjoy.


It’s a bash script, you need to use bash to start it:

bash scriptname.sh

However, you don’t really need the brace expansion, so you can also just change the line to:

xinput set-prop 'TPPS/2 Elan TrackPoint' 'libinput Accel Profile Enabled' 0 1

This way it doesn’t matter whether it’s run with bash or sh.


Make sure you open gksu gparted with Alt+F2 or sudo gparted on a terminal.


Which installer will install ubuntu on an AMD E450 APU with Radeon 2 GB RAM on samsung machine

Use Ubuntu installer :)

For your purposes I would go with Ubuntu 12.04 64-bit version. Newer versions are awesome but if your new to Ubuntu and might run into problems, then there will be more information on 12.04 than 12.10 or 13.04 versions. 12.04 is LTS (Long Term Support) release and 64-bit version of it is most likely variant to be run on servers (I suppose).

If you want to use it mainly for learning, then also consider running it in Virtualbox. Its easier to restart your project and reinstall Ubuntu if you have messed something up and you can interact with the Virtualbox guest (Ubuntu used for learning) from your host (whatever OS you are using on your PC). To give you some ideas look here. That one is about connecting to Apache server on the guest but from networking perspective it is the same.


If you're talking about the apt package list:

sudo apt-get update


Unfortunately we can not "shrink" a virtual hard drive that we accidentally grew too much with using the VBoxManage command.

The only means of repair would be to create a new virtual drive of appropriate desired size and copy the data over.

Still, there is no harm done on creating such a huge drive as long as we do not actually partition and use it.

The drive is of dynamically growing type as only then we can resize it at all. It will therefore not use any more physical space on the host drive than needed. Unused virtual hard drive space will not use any physical space.

In case we had partitioned and used the additional space we may be able to  compact it again as shown in this answer.


Chromium Error 105 (net::ERR_NAME_NOT_RESOLVED)

It seems there is some problem with the DNS resolver, as far as I can tell. Check it out what's in your /etc/resolv.conf, is it the correct nameserver you want to use? I am not sure about your problem: on Ubuntu only chromium behaves like this, or other browsers too? It's not so useful to mention that it works with windows, since maybe you have different nameserver setting in windows, that's why it works there. What would be useful is to know if other browser(s) in Ubuntu work(s) or not. If you have the issue that you have wrong nameserver in /etc/resolv.conf, you should check how you got that: it's your setting, or got via DHCP etc etc. Also you can use terminal to try out some DNS lookup to see if it works there or not, like host www.google.com


With the installation of the nodejs packages from nodesource, npm is already installed.

In the officially Ubuntu repositories are two separate packages for npm and nodejs and npm depends on nodejs, therefore the confusion.

Simply start

sudo apt-get install -f

to fix your system, if there is something to fix, and ignore and don't install the package npm.

And because I just read that too in your question

0.10.37-1chl1~precise1 0
   500 http://ppa.launchpad.net/chris-lea/node.js/ubuntu/ precise/main i386 Packages

the same applies if you use the PPA ppa:chris-lea/node.js.


Ubuntu 18.04 Black Screen after restart - Need urgent help

It makes no sense to me, but this is what resolved it. Maybe useful for someone running into a similar problem. I switched the HDMI cable from the port on the top, to a port on the graphics card.

I stumbled upon the accepted answer in this thread, which prompted me to try this.
What didn't make sense to me is the display port (on the motherboard) activated for Windows, but not for BIOS or Ubuntu. I don't know what caused it. There has been no such issue over two years since I got this computer.


How to update BIOS of Dell XPS 13 9310 on Ubuntu?

Moving the .exe bios update file to /boot/efi and then finding it through the BIOS updates worked.
Related: Flashing BIOS update on Dell XPS 13 (2015)


Permanent

Type sudo gedit /etc/default/grub. Look for the line that reads:

GRUB_CMDLINE_LINUX_DEFAULT="vesafb.invalid=1 splash quiet"

remove the splash quiet part (yours might be different, so don't change anything but that). Save the file.

Now type sudo update-grub. Reboot, no more purple screen.

Temporal (one time)

In the boot menu, press E. Look at the end of the line starting with linux for splash quiet. Remove splash quiet (do not touch anything else) press Ctrl + X. No purple screen.


I think you can use Upstart to help you there. Mind you, I haven't tested that code below  works but something very similar should.

# /etc/init/update-repositories.conf - Update local repos
#

description     "Update local repos"

# this will run the script section every time network is up
start on (net-device-up IFACE!=lo)

task

script
    svn up && git fetch
#   do some other useful stuff
end script

That pretty much it. You might want to add some code to check that it does not run very often. You might also want to add start update-repositories to your crontab, it'll make sure your update will happen if you are on the net constantly for a prolonged period of time.


world-writable files are files that anyone can write to. Regardless of who they are. This is considered a security issue where some random person on the other side of the world that has access to your system can abuse. Imagine some software that uses /tmp (=world-writeable by design) is also listening to incomming data in /tmp.

There is one extra thing though: sticky bit. The most common use of the sticky bit today is on directories. When the sticky bit is set, only the item's owner, the directory's owner, or the superuser can rename or delete files. Without the sticky bit set, any user with write and execute permissions for the directory can rename or delete contained files, regardless of owner.
This will print all world-writable files that do not have their sticky bit set.

find / -xdev -type d \( -perm -0002 -a ! -perm -1000 \) -print

This will also print all world writable files:

find / -perm -2 ! -type l -ls


Ubuntu failing to install on separate HDD, blank screen, flashing cursor

I had a similar issue, and I see you have a similar NVIDIA graphics card, so I'll give you what worked for me:
Make sure that your CD is not corrupted, this was a big issue as well...
This answer was created by grahammechanical on the Forums:

At the  accessibility screen (purple person keyboard) press ENTER
Select your language and hit ENTER
On the next screen with try/install ubuntu press F6
Select "nomodeset" on the mini-screen in the bottom right, using the different graphics drivers.
Press ESC and go to try ubuntu->install ubuntu from inside the Live Session.
Hope this worked.
Original Thread


Pidgin
Webcam Support - Yes
MSN Full Support - Yes
GTalk Full Support - Yes
Voice Chat - Yes
Protocols Supported - Multiple (GTalk, Msn, Yahoo...)
Send Files - Yes
Receive Files - Yes
Emoticons - Yes
Theme/Skin - Yes
Language Support - Yes
Drag & Drop Support - Yes
Ubuntu Notification Support - Yes
Last Updated (Since this Post) - Version 2.7.11 - March 11, 2011
Found in Ubuntu Repository - Yes (Version 1:2.7.11-1ubuntu2)
Now Playing Support - Yes (With several players like Banshee)
Plugins - Yes
PRO - Very compatible.
CON - Very simple/"old like" to the eye.


How to set permission "-rw-rw-r--" to file?

Either

chmod a-x,g+w file

or

chmod ug=rw,o=r file

or using octal representation

chmod 664 file


How can I change default user on Ubuntu Windows?

To change the default user, open command prompt with administrator privileges and run

ubuntu config --default-user username

You can replace ubuntu with the release you are using, for example, ubuntu1604 and ubuntu1804.


Mobile music playback on android phone keeps buffering

could you install "alogcat" from the android market, run the application and hit this problem, and then send me the log?  martin.albisetti[at]canonical.com.
That'll give us some insight into what's happening.

We've had a ton of updates this past week, some of which could of addressed your issue. Could you try again?


Use mysqldump.exe to dump the database contents under Windows into a .sql file. You can then either load it in under Ubuntu by using the mysql tool, or you can load it into a separate system so that it is accessible under both Ubuntu and Windows.


Why can't I join unallocated space with my NTFS partition in GParted?

If you booted from the same hard disk that you are trying to resize partitions on, that would explain the problem. It is error-prone and often not even possible to modify partitions on the same disk you are using. You must instead run GParted from another disk.

Instead of running it from a system that is installed on that drive, boot into a live Ubuntu system. Boot from a USB flash drive that an Ubuntu ISO image has been written to, just as you would do if you were installing Ubuntu. But select "Try Ubuntu" instead of "Install Ubuntu" and then you can run GParted.

This was what happened to me. If you boot from same hard disk--I mean the hard disk where you want join or otherwise modify the partitions--It won't work. You have to use a live Ubuntu system instead.


What does the Unity Desktop Integration extension do in Firefox?

It allows websites to integrate into the dash, launcher and hud. Makes an easier connection between your frequently used websites and unity. You can read about some of the webapps available here: http://www.omgubuntu.co.uk/2012/07/list-of-that-websites-support-unitys-new-web-apps-feature

An example of what it can do: add the website icon to your launcher and allows you direct access to some of its features by right-clicking the icon and could be: compose new email, unread mails in your inbox.


How to stop Apache access.log grooving every few seconds?

You need to make some changes in /etc/apache2/apache2.conf, specifically:

Create some environment tests with SetEnvIf, and;
Then, use them on the CustomLog line.

As follows:

SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
SetEnvIf Remote_Addr "::1" dontlog
SetEnvIf User-Agent ".*internal dummy connection.*" dontlog

CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined env=!dontlog

That last line should already be in the file, just without the last bit.

Note that this will set the dontlog environment variable if either of the 3 SetEnvIf conditions are true. To avoid this, well, it's complicated; but this blog seems to have a solution.


AMD Ryzen™ 5 3400G drivers for Ubuntu (can't change screen resolution)

I just bought the new 3400G and I run into the same problem

https://github.com/M-Bab/linux-kernel-amdgpu-binaries
Clone or download -> Download zip

sudo dpkg -i [linux-headers-name].deb [linux-image-name].deb firmware-radeon-ucode_*_all.deb
sudo update-grub
sudo reboot

Thats it
I would like to give the kiss to whoever make that available man


Your problem seems to be your touchpad driver. Some input drivers (usually in virtual machines) try to simulate a pen graphic tablet.
This means that some UI elements that rely on overshooting beyond the limits of the screen won't work.
If you think about it, you can't overshoot a movement in a graphic tablet, the tracked surface just ends and no further input is sent. Try switching to another touchpad driver, like for instance libinput.


You need to partition your drive(s)

The easy part is that once you've partitioned, you can choose the 250GB partition for Windows and the 750GB to Ubuntu.

Windows:
Once you do that you can buy a Windows install disk. And it should ask what partition you want it to install to.

And for Ubuntu:
Easy you just need to get the 64-bit version of Ubuntu on the downloads page. When you run the installer, it  should ask you how much memory and on what drive Ubuntu is going to take. And since you have no OS's you might have to get a boot-able disk.

(or first install windows, then run the 64-bit install program in the booted Windows


How to auto-start all screenlets in unity only(not Gnome-shell)?

I don't think its possible to edit just one file - you'll need to edit all the screenlet files - it seems all screenlets in the autostart folder are named [something]Screenlet.desktop

You could use a simple script such as this which would append OnlyShowIn=Unity to all screenlet files in the users autostart folder

To use, copy and paste the following into a file in your home folder called hidescreenlets

Then run the script using:

bash ~/hidescreenlets

If you add more screenlets, just rerun the script.

script:

#!/bin/bash

dir="$HOME/.config/autostart"

if  [ ! -d  $dir ] ; then
  echo "cannot find $dir"
  exit
fi

cd $dir

files=`find -name "*Screenlet.desktop"`
for file in $files ; do
  srch=`grep -i "OnlyShowIn=Unity" $file`
  #echo $file "$srch"
  if [ "$srch" == "" ] ; then
     echo "OnlyShowIn=Unity" >> $file
     #echo $file "$srch"
  fi
done

backing up

If you are feeling nervous... either use Nautilus to backup the ~/.config/autostart folder to another folder or you can achieve the same via the following:

mkdir ~/backupscreenlets
cp ~/.config/autostart/* ~/backupscreenlets

Look at the contents of ~/backupscreenlets - it will have the same files as ~/.config/autostart

If you then want your original files:

cp ~/backupscreenlets/* ~/.config/autostart


It's the four partitions that are the problem; there's currently no space for Ubiquity to put an extended partition since four logical partitions is the maximum.  If there is one of the partitions that is not required then you can delete it and let Ubuiquity make its extended partition.  (you can then have many more partitions inside the extended partition).

We need to know what the partitions are currently being used for so that we can advise you on which is the best way to go.  Presumably Win7 is your main partition, however it may just be a Microsoft bootloader.  The recovery partition is the Windows recovery, which can be used to re-install Windows from scratch if you have to.  It's probably a good idea to make the boot DVD's as well, rather than just relying on the recovery partition.  HP_tools and System could be anything - but System could be your real Windows partition.

If system partition is indeed the largest and contains the real Windows system, I think I would backup the data on it and delete it.  You could then use that space for an extended partition which could contain Windows and the Ubuntu root and swap partitions.  Backing up your data at this point would be a very good idea, as is making the Windows install disks - there will be a HP Utility for doing so.  After you make the Windows boot disk, make quite sure there are no errors and that you can boot off it.

So that we can help you further, please boot of the Ubuntu LiveCD or LiveUSB and select "try Ubuntu".  Next open a terminal windows with ctrlaltt and type

sudo fdisk -l

and past the results from it into your question.

Thanks, that gives us some idea.  It looks like:

sda1 hpfs   407551     194MB  208MiB
sda2 hpfs   946182143  451GB  484445MiB
sda3 hpfs   29968383   14GB   15343MiB
sda4FAT32   210991     100Mb  108MiB

It seems that the main partition is /dev/sda2, 450Gb

After backing up and making sure that you have made the Windows installation disks correctly, you could try deleting /dev/sda2 and make and extended partition in its place. You can then make three partitions inside the extended partition: Windows partition, ext4 Linux partition, and a Linux swap partition at least equal to your RAM size.

The problem may be that Windows won't install to a logical partition easily, however a google search finds instructions for this so it should be possible to do so.  This might be a little complicated for the Windows installation, so there are a few alternatives:

A Wubi install of Ubuntu uses a Virtual Ubuntu boot disk inside of Windows.  It's a good way of using Ubuntu without changing your Windows or the partitions at all. https://wiki.ubuntu.com/WubiGuide

An alternative would be to remove the Windows Bootloader on /dev/sda1 as well since installing Ubuntu will also install the grub bootloader, so it is really redundant.  The procedure would be as follows:

Backup all important data in the Windows installation and make sure that you can access recovery options for Windows such as the OEM installation partition
On the Windows main partition run chkdsk and defrag the drive
Delete the Windows bootloader partition
Resize the main Windows partition to make room for the extended partition - size is up to you (maybe 50/50?)
Create the extended partition in the space left by resizing Windows.
Create two partitions inside the extended partition: 1 swap partition of at least the size of your RAM, and the rest as and ext4 partition for Windows.
Install Ubuntu in the new ext4 partition.  After install both Ubuntu and Windows should be accessible.


After you install MAAS, you must populate it with an admin account.
maas createadmin --username=${MAAS_USER} --password=${MAAS_PASSWORD} --email=${MAAS_EMAIL}

Put the MAAS admin password in a read-only hidden file. (Your security requirements for password management may differ...)
echo ${MAAS_PASSWORD} >| /root/.maas ; chmod 600 /root/.maas

Login to MAAS.
maas login ${MAAS_USER} http://localhost/MAAS/ - < /root/.maas

Run a command to test.  For example:
maas ${MAAS_USER} fabrics read


Cannot install SIP using pip in Python 3.5 on Lubuntu 16.04.3 LTS

Please run pip from the command line not from python shell and it should work. So exit from python exit(), then in the terminal run that command and it should install it.


Can't login 18.10 - "no directory logging in with home=/"

I am hoping you have GRUB or some sort of bootloader which will make this repair easier, otherwise you will need to make repairs by mounting your filesystem on a separate system which works.

If you open grub and add systemd.unit=emergency-net.target to your command line options it will boot your system into emergency mode which should drop you into a root command prompt where you can fix any issue with your system.

If you are not worried about the old content of the directory you can just create another for your user.  You can create a directory for your user automatically by running mkhomedir_helper username


You can refer the guides given at docs.openstack.org.
Especially

Cloud Administrator Guide
High Availability Guide
Operations Guide
Architecture Design Guide
Networking Guide

You can start from Operations Guide.


Two possibilities:

You login to gnome as root. The pulseaudio daemon is not getting started when you login as root into gnome. On console, try:

open /usr/bin/pulseaudio
You got a new kernel (not surprising, considering you updated to a new Ubuntu version). This means you should now recompile the ALSA (advanced Linux sound architecture) driver (the Ubuntu team always forgets this, for whatever reason). Afterwards, sound works fine (until the next kernel-upgrade)

cat /proc/asound/version

http://www.alsa-project.org/main/index.php/Main_Page

Mine shows

  Advanced Linux Sound Architecture Driver Version 1.0.24.


How to install MaaS correctly in Ubuntu Server 14.04 Trusty and commit nodes

You need a separate network on which you control the DHCP service.  That service tells clients where to go for PXE boot images.  If you are running virtualBox machines, all on your machine, you can set their nics as being on "internal network", and have your server be on that network as well. Then set up your MaaS server as DHCP.  you may have to turn DHCP off in virtualBox, not sure.  See Oracle VM VirtualBox help, section 6.6.

If you are using real hardware, you either need to get your IT to build you a network (probably won't do it), or you can buy a switch with a WAN port, and hang all your hardware off it.  The WAN port will protect the university network from your DHCP server, and your clients from their DHCP server.

You can either turn the DHCP off on you rswitch, and have MaaS handle DHCP, or you can configure the switch to point PXE requests to the MaaS server.  My experience was that it was simpler to turn DHCP off on the switch and just let MaaS handle everything.

[edit]

Once you set up the Virtual Box internal network, you need to, from the MaaS web gui, select the "Networks" tab and add a new network, specifying the IP addresses request.

Go to the "Settings" tab and scroll down to network settings and make sure they are correct.

Go to the "Cluster" tab and scroll down to "Interfaces".  That is where you set up the nic (it should be the virtualBox nic) you are using and whether or not the cluster handles DHCP, what the address and ranges are, etc.


Is using Home Cloud storage device providing synchronization/ application in Ubuntu

Does WD My Could have software and application that can be installed in ubuntu and specify a folder to be synched into the storage device

Unlikely. Those devices tend to have Windows and/or Apple software. There is an app for Apple to synch with Apple products if you have one of those.

But for Linux you can just use NFS to connect. It is as simple as this:

cd $HOME
mkdir wd
sudo apt-get install nfs-common
showmount -e
sudo mount -o soft,intr,rsize=8192,wsize=8192 {local-ip-adres-to-wd}:/wd /home//wd/

(adjust to your preferences) and you have a directory "wd"  inside your home folder where you can copy/paste files to the NAS.

Nothing too difficult.


Xubuntu 14.4 dual boot (windows 7) grub warning/problem

I found the solution for the above problem. My bios had a setting for "Fixed disk boot sector" and it was set at "Write Protect". I changed the option to "Normal" and the warning/error message disappeared!


How to install programs downloaded from the internet?

Step 1 Move the .run to your Home folder

Step 2 Right-click on the file and select Properties

Step 3 Under the Permissions tab, tick the checkbox Allow executing file as program. Click Apply.

Step 4 Double click the file to run

OR

Here is how to execute .run or .bin files

Step 1: Open the terminal and execute following command

$chmod +x file_name.run

Step 2: Execute the file

$./file_name.run

If you have any trouble or want to do it using GUI instead of terminal see this link


Ok No restart after 20.04 upgrade/install

Solved. I reinstalled 18.04. Runs perfect. Apparently 20.04 isn't quite ready for prime time. I have a T450s arriving tomorrow, maybe I'll have more luck with it. Fingers crossed.


I had the same problem due to some updates, I opened my Android Virtual Device Manager from Android Studio (Tools->AVD Manager) then matched the emulator where the problem occurred. I clicked the dropdown icon from Actions column and selected the Wipe Data option.


This page describes the necessary steps to enable multi-touch.

I used it as guide and was able to activate multi-touch on my system.


Cursor blinking is VERY slow and Settings doesn't help

You are right to be frustrated. The Settings → Universal Access → Cursor Blinking → Speed option works counter-intuitively. The option should have been named as "time delay" or something, instead of Speed, since what the parameter changes is the delay between consecutive blinks.
So you have to actually reduce the Speed, by dragging the slider to the left, in order to speed up the blinking.


Can't enable GNOME Shell user theme extension

Geeky Way

You can install user-themes and other extensions from PPA, since extensions are not available in official repositories. Enter following commands to have themes working.

sudo add-apt-repository ppa:webupd8team/gnome3

sudo apt-get update

sudo apt-get install gnome-shell-extensions-user-theme

Now restart gnome-shell using Alt+F2 run dialog and entering r.

Enable extension form gnome-tweak-tool and you're done.

Preferred Alternate Way

This is by far the easiest way to install "user-themes" extension, as well as many other GNOME shell extensions.

Just open Firefox (you CAN NOT use any other browser, as of now).
And visit extensions.gnome.org
You can search for extension you're looking for, as well explore other great extensions.
Found the extension? Just click on the switch to install it.
Aah..... by the way for user-themes, you can get it here.

Note: GNOME Shell doesn't have Alt+F2 Run dialog enabled by default, so if that's the case, you can enable it via Keyboard Settings>Shortcuts>System.


Nautilus' Properties tab does not show full path of the file if the path is too long

Not literally the answer you asked for, yet a solution to the issue.....

Alternative way to quickly view the full path to a file or folder by right-click

The script

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

current = os.getenv(
    "NAUTILUS_SCRIPT_CURRENT_URI"
    ).replace("file://", "").replace("%20", " ").strip()
subprocess.Popen([
    "zenity", "--info", "--title=Path info", '--text='+current, "--no-wrap"
    ])

How to use

save the tiny script below into an empty file, save it as show_path (no extension) in ~/.local/share/nautilus/scripts
Make it executable (!)
Log out and back in

Now you'll have a right- click option to always see the full path to a file or directory, ready to see or copy:

right-click > Scripts > show_path


You can get a list of devices with the xinput list command.  This should give output something like this (note the device IDs):

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                     id=8    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                     id=9    [slave  pointer  (2)]
⎜   ↳ Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint    id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ Logitech Logitech USB Headset             id=10   [slave  keyboard (3)]
    ↳ Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint    id=11   [slave  keyboard (3)]

You can disable a device by floating it.  For example, I can disable the TrackPoint on my system with:

xinput float 12

You can re-enable a device by attaching it to the corresponding master device:

xinput reattach 12 2

It is also possible to use the device names instead of numeric IDs (e.g. "Virtual core pointer" instead of 2) with both of these commands if you want to write a script that is independent of the numeric IDs.


Background freezes weirdly in ubuntu 14.04

I would suggest to upgrade kernel and your graphical stack to HWE of Ubuntu 14.04.2. Do it by running

sudo apt-get install --install-recommends linux-generic-lts-utopic xserver-xorg-lts-utopic libqt5gui5 libgles1-mesa-lts-utopic libgles2-mesa-lts-utopic libgl1-mesa-glx-lts-utopic libgl1-mesa-glx-lts-utopic:i386 libglapi-mesa-lts-utopic:i386 libegl1-mesa-drivers-lts-utopic

And reboot.


How do I add an offline encyclopedia to an Edubuntu LiveCD?

Adding an encyclopedia to a live CD is no different from any other live CD customization. It might even be easier than a lot of customization jobs, since it likely doesn't require upgrading or installing Ubuntu packages.

This guide in the Ubuntu community documentation wiki explains in detail how to create a customized live CD, including adding files and installing applications.

That guide is somewhat dated; while it still works, you'll see references therein to some pretty old Ubuntu versions. Furthermore, there are now some other options for customizing a live CD. So I recommend also consulting this question, here on Ask Ubuntu (and its answers):

How to customize the Ubuntu Live CD?

Thus, my answer is essentially to say: Just make a custom live CD .iso image with the encyclopedia files on it.


Well first thing to do is remove Libreoffice if its installed.  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove

Then to install OpenOffice you do:

sudo add-apt-repository ppa:upubuntu-com/openoffice
sudo apt-get update
sudo apt-get install apache-openoffice

I just tested it on 13.04, and it works.

For Ubuntu 14.04 and above download either the 32bit or 64bit of Apache OpenOffice.

For 32 Bit:

wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.3/binaries/en-US/Apache_OpenOffice_4.1.3_Linux_x86_install-deb_en-US.tar.gz
tar xzf Apache_OpenOffice_4.1.3_Linux_x86_install-deb_en-US.tar.gz

For 64 Bit:

wget http://netassist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.3/binaries/en-US/Apache_OpenOffice_4.1.3_Linux_x86-64_install-deb_en-US.tar.gz
tar xzf Apache_OpenOffice_4.1.3_Linux_x86-64_install-deb_en-US.tar.gz

once extracted, navigate to the DEBS folder where the file was extracted, and issue the command(s) below:

cd en-US/DEBS/
sudo dpkg -i *.deb

Then  navigate to the desktop-integration folder, and issue the command(s) below:

cd desktop-integration/
sudo dpkg -i openoffice4.0-debian-menus*.deb

Source for OpenOffice Install:Upubuntu


You want...

sudo apt-get remove slack-desktop


I ended up grabbing the latest version of Ubuntu Gnome and reinstalling (preserving the encrypted /home).

Additional Drivers showed me only one nvidia driver this time: nvidia (proprietary, tested) which I used. As far as I can see the GPU seems to be working as the NVIDIA settings shows more options I didn't have before and the Performance mode is now selected. I added screenshots below.

I tested switching between Performance and Power Saving modes and it works however I need to reboot the system counter to logging out and back in as the NVIDIA settings says.

Also, battery life is down drastically from 5-6 hours on Power Saving mode to 2.5 hours on Performance mode. This is expected.


Manpages

Starting in Ubuntu 11.04, there is an awesome man page created by James Hunt called usptart-events so from the terminal run:

man upstart-events

It is also available from the Ubuntu online manpages, upstart-events, but loses some formatting so a better online resource for the same information is from the Upstart cookbook.

Visualisation of Jobs and Events

There is also an excellent tool, initctl2dot for visualization of upstart events. Below are examples of using the command to generate images from Ubuntu 12.04.

View all jobs:

initctl2dot -o - | dot -Tpng -o upstart.png

View only plymouth, lightdm and mountall jobs:

initctl2dot -r plymouth,lightdm,mountall -o - | dot -Tpng -o upstart2.png

Source

Grep init

You can also grep for emit in the following directories:

grep -r emit /etc/init /etc/init.d /etc/network/if*.d

That will give you most of them, the others are emitted by the dbus bridge.

For more information and best practices,  see The Upstart Cookbook.


Isn't there an installer package for Oracle Database?

Answering your question: No.

There are no packages to install Oracle database servers. And probably will never be: if Oracle licensing for Java doesn't allow it to be hosted in the main repositories, it should be even more restrictive regarding Oracle DB.

Also the creation of "metapackages" (ie: a package that downloads and install it) should be hard to achieve, since even to download Oracle Express Edition you need to have an Oracle account.


How do I use OpenConnect via Network Manager to connect to Juniper VPN?

The current stable network manager doesn't support this feature just yet but it is in developement. It seems it will be possible in the 1.4 version.

Source: http://lists.infradead.org/pipermail/openconnect-devel/2016-July/003752.html


How to recover ubuntu and windows 8 after installing windows 7

Two methods for it.
1) Use windows disk and boot from windows7 disk.
after that
start up repair then open CMD and type
chkdsk then restart PC.

2) Install Grub into Ubuntu (not need any bootable disk)

  sudo grub-mkconfig -o /boot/grub/grub.cfg, if your grub.cfg is at some other location then replace the path in the command with your file location.
  Type sudo grub-install /dev/sda where sda is my primary HDD having Windows and Linux installed.

restart PC it solve your problem. I recommends you second method to solve problem.

my answer source


Unable to recover admin account ubuntu 11.10

Ceate a new account with useradd <user>. After creating an account with useradd, you have to create a password for the user with
passwd <user>. Then type the Password twice.

If you use adduser <user> ist will ask you for a password while creating the user.

Take a look at the help (adduser --help) for more options.


openjdk-7-jdk has no installation candidate in Ubuntu 16.04 and later. Instead install openjdk-8-jdk from the terminal with the command:

sudo apt install openjdk-8-jdk

Java 7 is still available at the Java SE 7 Archive Downloads webpage of the official Oracle website. Select the .tar.gz file which is currently named jdk-7u80-linux-x64.tar.gz (for 64-bit architecture) or jdk-7u80-linux-i586.tar.gz (for 32-bit  architecture) and follow the installation instructions at this answer. Oracle gives this warning that the packages in the Oracle Java Archive packages are no longer updated with the latest security patches.

  These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.


Can JUJU provide bare metal OS provisioning through iPXE or UEFI?

Juju is an orchestration framework, you can probably use MAAS for that purpose which is a bare metal provisioning tool (not sure about provisioning VMware boxes). MAAS irc channel (#maas) can better clarify you about this.


Lenovo T431s and and wireless don't play nicely

For posterity:

The issue was not with the kernel and instead with the iwlwifi driver.  A custom patch provided by one of the ubuntu kernel contributors fixed the problem and will be included in a patch eventually...

I stuck it up on my dropbox for the time being here

install with

dpkg -i wireless-iwlwifi-precise-dkms_3.6precise1sutton5_all.deb


Check this link once. You will be happy after  trying the methods shown there (:


Does a `do-realease-upgrade` delete my files and softwares

No. An upgrade (as done by the Software Updater app or through do-release-upgrade) is an in-place upgrade, meaning that all it will do is update software to the latest version.

In short, your files shall be untouched, and your software and Ubuntu version upgraded.