How to install menu bar in Ubuntu Browser

Assuming that when you say ubuntu browser you actually mean firefox, all you have to do is sign into sync. There it will sync all your settings. To get into sync, click on the menu icon (the button the the top right corner) and on the near the bottom you will see a bar that says

  Sign into sync

click on that, sign into your account or create a new one (if you don't have one already, then you should create the account on the firefox with all your personalizations already made), follow any other directions it gives you,  and walla. All your settings are sync'd and ready to use


Installing Dependencies for Building Unity 8

You probably did the same mistake as me and copied the command from the wiki page.

Type the command manually ./build.sh --setup. That worked for me. You will have to do a clean build afterwards.

./build.sh -c


Brackets, Braces, Curly Brackets in Bash

If you took the trouble of reading the manpage instead of making riddles:

Brace Expansion
   Brace  expansion  is  a  mechanism  by  which  arbitrary strings may be
   generated.  This mechanism is similar to pathname  expansion,  but  the
   filenames generated need not exist.
...
Pathname Expansion
   After  word  splitting,  unless  the -f option has been set, bash scans
   each word for the characters *, ?, and [.  If one of  these  characters
   appears,  then  the word is regarded as a pattern, and replaced with an
   alphabetically sorted list  of  filenames  matching  the  pattern  (see
   Pattern  Matching  below). If no matching filenames are found, and the
   shell option nullglob is not enabled, the word is left  unchanged.
...
Pattern Matching

   Any character that appears in a pattern, other than the special pattern
   characters described below, matches itself.  ...

   The special pattern characters have the following meanings:

   ...
          [...]  Matches  any  one  of the enclosed characters.  A pair of
                 characters  separated  by  a  hyphen  denotes   a   range
                 expression;  any  character  that falls between those two
                 characters,  inclusive,  using   the   current   locale's
                 collating sequence and character set, is matched.

file[1-3] expands into files named file1, file2, file3. Filename expansion happens only if matching files exist. If not, the pattern is left as-is. Therefore, with files named file1, file2, file3, file[1-3] expands to file1 file2 file3. Without these files, it doesn't expand, and remains as file[1-3]. With {...}, the filenames don't have to exist, so file{1..3} expands to file1 file2 file3 irrespective of the files being present or absent.


How to make Spotify Web player work in Chromium?

If you have installed chromium-browser from universe apt repository, you can make Spotify Web Player work there in Chromium, if you also install Google Chrome. Apparently that brings some shared software that Spotify needs. I tested this in 18.04.


apache2 is using different directory than what it should be

You can change the location in the /etc/apache2/sites-available/000-default.conf file.  You will have to edit the file as sudo since it is owned by root.

Make sure the following line looks like this:

DocumentRoot /var/www/html

Restart apache2

sudo service apache2 restart

Hope this helps!


Getting unexpected output from rename command

Don't mix shell and Perl code in rename command; it's all about Perl. Use this:

rename -n 's/cropped(\d+)/$1 + 20/e' cropped*.jpg

Remove -n switch when the output looks good.

If you insist to use your dirty way, don't use a glob * but the current file and modern shell :

for i in {1..20}; do
    test -s "cropped$i.jpg" && rename "s/cropped$i/$(($i + 20))/" "cropped$i.jpg"
done

I removed expr, it's outdated.

 There are other tools with the same name which may or may not be able to do this, so be careful.

If you run the following command

$ file "$(readlink -f "$(type -p rename)")"

and you have a result that contains Perl script, ASCII text executable, and not containing ELF, then this seems to be the right tool =)

If not, to make it the default (usually already the case):

$ sudo update-alternatives --set rename /path/to/rename

Replace /path/to/rename with the path of your Perl rename executable.

If you don't have this command, search your package manager to install it or do it manually (no deps...)


The main advantage of using any mail client over webmail is that your e-mail is local to the computer you're using.  So...

Advantages of local storage :

You don't have to be connected to the internet in order to read your e-mail offline.  Some webmail clients offer this through add-ons, however, such as Google Gears for Gmail.
Assuming you use your own ISP's
e-mail, then you'll gain some privacy
from keeping your e-mail local.
You can run encryption tools like PGP
to create digitally signed and/or
encrypted e-mail.  I'm not aware of
any webmail that allows this (might
be ignorant of them though).
You can easily backup/move your
e-mail to other computers, or keep it
on a central server and access it
privately from multiple local PCs.
Attachments, since they're local,
will load/run very quickly.

Disadvantages of local storage:

You're responsible for your own backups.
Your data is usually local to a single PC (unless you set up a NAS/Server solution)
Re-installing your PC will mean reconfiguring your client (unless you save then restore your /home data).


Juju CLI

juju export-bundle

Juju GUI

The Juju Gui has a solution for this. Next to your modelname in de GUI there is an import and export button.

The Export button will generate a yaml file which will represent your current model. This yaml can be used in the Juju GUI to import in to a new model or can be used in the Juju-CLI as well.


How to set up and use a virtual python environment in Ubuntu?

With virtualenvwrapper (user friendly wrappers for the functionality of virtualenv)

Install virtualenv

Install virtualenv with

sudo apt install virtualenv

Install virtualenvwrapper

The reason we are also installing virtualenvwrapper is because it offers nice and simple commands to manage your virtual environments. There are two ways to install virtualenvwrapper:

As Ubuntu package (from Ubuntu 16.04)

Run

sudo apt install virtualenvwrapper

then run

echo "source /usr/share/virtualenvwrapper/virtualenvwrapper.sh" >> ~/.bashrc

Using pip

Install and/or update pip

Install pip for Python 2 with

sudo apt install python-pip

or for Python 3

sudo apt install python3-pip

(if you use Python 3, you may need to use pip3 instead of pip in the rest of this guide).

Optional (but recommended): Turn on bash autocomplete for pip

Run

pip completion --bash >> ~/.bashrc

and run source ~/.bashrc to enable.
Install virtualenvwrapper

Because we want to avoid sudo pip we install virtualenvwrapper locally (by default under ~/.local) with:

pip install --user virtualenvwrapper

and

echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> ~/.bashrc

Source virtualenvwrapper in .bashrc

echo "source ~/.local/bin/virtualenvwrapper.sh" >> ~/.bashrc

Setup virtualenv and virtualenvwrapper:

First we export the WORKON_HOME variable which contains the directory in which our virtual environments are to be stored. Let's make this ~/.virtualenvs

export WORKON_HOME=~/.virtualenvs

now also create this directory

mkdir $WORKON_HOME

and put this export in our ~/.bashrc file so this variable gets automatically defined

echo "export WORKON_HOME=$WORKON_HOME" >> ~/.bashrc

We can also add some extra tricks like the following, which makes sure that if pip creates an extra virtual environment, it is also placed in our WORKON_HOME directory:

echo "export PIP_VIRTUALENV_BASE=$WORKON_HOME" >> ~/.bashrc

Source ~/.bashrc to load the changes

source ~/.bashrc

Test if it works

Now we create our first virtual environment. The -p argument is optional, it is used to set the Python version to use; it can also be python3 for example.

mkvirtualenv -p python2.7 test

You will see that the environment will be set up, and your prompt now includes the name of your active environment in parentheses. Also if you now run

python -c "import sys; print sys.path"

you should see a lot of /home/user/.virtualenv/... because it now doesn't use your system site-packages.

You can deactivate your environment by running

deactivate

and if you want to work on it again, simply type

workon test

Finally, if you want to delete your environment, type

rmvirtualenv test

Enjoy!

Thanks to the author of this blogpost.


grub appears to using the kernel insmod, is this possible?

Ooops!

Pardon me for that, but I just found it.

It is just a similarity of name.
I found it under /boot/grub/insmod


In vim, if you type ":e ." (without the quotes), it will bring up the netrw file browser. You can select and open files from there. If you type "i" (without quotes), it will cycle through various views of the directory, including a simple "tree" file browser. Type ":help netrw" for details.


Ubuntu Server 20.04 setup stuck at "Block probing did not discover any disks"

This is the result of a bug that is over a decade old. The problem is that the ISO image is still mounted, although the installer is started with the toram option. The solution is to unmount the ISO, but there are two pitfalls here:

you can't just umount, you have to detach the loop device first with losetup
you have to do this before you do anything else in the installer. No, you can't even select your keyboard layout :/

As soon as you're on the first screen of the installer, switch to the terminal with F2, then enter
losetup -d /dev/loop0
umount /isodevice

exit the terminal with Ctrl+D and you're good to go.


dconf-editor, Where has apps>indicators>sound gone


You should be able to move the window upwards by holding down the Super key and clicking on the window itself and then dragging.  This used to default to the Alt key and click, but it's been changed recently.  The setting can be found in gnome-tweak-tool under the "Window" tab, called "Window Action Key.


This is the best/simple method.

sudo apt-get install postfix

That's it a mail server is installed.

Now administrating that mail server is a whole different story.

By default postfix will deliver and relay for all local user accounts. That should get you started. If you want something more complex then you REALLY REALLY need to read, study, learn, apprentice, etc. Mail servers are very very complex to setup correctly. Even when setup correctly they take constant supervision and monitoring.  If your doing anything more then local delivery then I 100% recommend that you do not setup your own mail server.

Do not forget to setup DNS and SPF records if your going to be sending emails to non-local addresses. This is a bare minimum and will not result in deliverable mail to most ISPs.

Again, I strongly urge you to read, and fully understand what you are doing before you even attempt to run a public mail server. Keep in mind, that (at least in the US) you can be fined per email, for emails sent from your server incorrectly. This is rare but has happened. A more common effect is that you get blacklisted, shunned, and marked as a generally evil person and are banned from ever running an email server again (this happens quite frequently).

If your  going to run a public server make sure you speak with your ISP/Hosting first. You will need, at a minimum a static IP and their permission. Most ISPs will block you 100% from every getting back on the internet for running an incorrectly configured mail server for an extended period of time.

I add all these warnings so that you know, local delivery, intranet delivery, your fine. Remote delivery, know what you are doing before you even attempt it. Incorrectly configured mail servers can bring on a whole world of disaster if not handled correctly.


What do 'old' and '?' mean in who commands output?

It is documented in the info page. From info who:

  '-u'

 After the login time, print the number of hours and minutes that
 the user has been idle. '.' means the user was active in the last
 minute. 'old' means the user has been idle for more than 24 hours.

Additionally ? is for X sessions, confirmed by the display number (:0). Expectedly there is no such thing as idle time as far as the X session is concerned hence the value ? (unknown).


iso file not recognized by Win7 or pendrive installer

It's possible that you got a bad/corrupted download.

Download the gnu md5sum utility for windows and check the disk's sum against the sum it should be...

We need to find out if it's actually a bad image before we can fix the problem


What tools are necessary to create a juju charm?

The Charm Tools PPA includes the charms-tools package, which is useful for creating and testing charms.

charm create <ubuntu-package-name> will create a basic charm with filled metadata for you. Use this if you want to build a charm out of something that is already packaged in Ubuntu.

charm create whatever will just create a blank charm for you to edit if you want to create a charm for something else, for example one that pulls from the latest upstream source or for something that is not available as a package in Ubuntu.

And lastly you'll want charm proof to test to see if your charm is correct.


Running setup.py bdist_wheel for cffi Failed building wheel for cryptography

This seems to be an issue with the wheel package as described in this ticket: https://bitbucket.org/pypa/wheel/issues/146/wheel-building-fails-on-cpython-350b3

Upgrading wheel in the virtualenv should solve the issue (version 0.26.0 at the moment).


mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,uid=myusername,gid=users


Ubuntu 16.04 with Xfce desktop and nautilus cause theme issue

I have no solution but want to report that I experience exactly the same here. Some weeks ago I was searching the internet but found nothing really helpful. It is because nautilus does more than just being a file manager. Because of that I tried Thunar.

At office, the default OS is Ubuntu. But I am not a big fan of unity, therefore using Xfce...


Type Greek letters as well as physics symbols in LibreOffice Impress?

I know Libreoffice Math has a symbol catalog (I believe Libreoffice writer does too) but if copying from those does not work.

Try Ctrl+Shift+U, let go of u but not Shift+Ctrl and type 03A6 (Greek capital letter phi)

The code is ASCII, you can search for what you need here:
http://ascii-table.com/unicode-search.php


OK, I think I've fixed it.  Cf this bug report, which I submitted:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1069104

It looks like the problem was that a program called policykit-1-gnome wasn't installed. I found this in the logs:

gnome-session[3819]: WARNING: Failed to start app: Unable to start application:
Failed to execute child process "/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1" (No such file or directory)

And the fix was just to

sudo apt-get install policykit-1-gnome

Then restart.


How do I disable the touchpad when the lid is twisted or closed?

To check whether the device is in tablet mode or not we could read the value (0 or 1) of:

/sys/devices/platform/thinkpad_acpi/hotkey_tablet_mode

This value is switched by specific events. We can catch these events and could bind scripts to them by using acpid - Advanced Configuration and Power Interface event daemon.

1. Catch the events. Execute acpi_listen or netcat -U /var/run/acpid.socket, turn the lid in tablet mode, then turn it back. Here is an example output:

$ acpi_listen
video/tabletmode TBLT 0000008A 00000001
video/tabletmode TBLT 0000008A 00000000

Please note when the lid is close/open the result is different:

$ acpi_listen
button/lid LID close
button/lid LID open

2. Configure acpid to recognize the events triggered by the device mode change. Run the following lines into a terminal as (single) commands:

cat << EOF | sudo tee /etc/acpi/events/thinkpad-tablet-enabled
# /etc/acpi/events/thinkpad-tablet-enabled
# This is called when the lid is placed in tablet position on
# Lenovo ThinkPad X230 Tablet

event=video/tabletmode TBLT 0000008A 00000001
action=/etc/acpi/thinkpad-touchpad-twist-mode.sh 1
EOF

cat << EOF | sudo tee /etc/acpi/events/thinkpad-tablet-disabled
# /etc/acpi/events/thinkpad-tablet-disabled
# This is called when the lid is placed in normal position on
# Lenovo ThinkPad X230 Tablet

event=video/tabletmode TBLT 0000008A 00000000
action=/etc/acpi/thinkpad-touchpad-twist-mode.sh 0
EOF

The above commands will create the files:

/etc/acpi/events/thinkpad-tablet-enabled
/etc/acpi/events/thinkpad-tablet-disabled

Note: The scripts for lid open/close aren't provided here. But they are similar as the above.

3. Restart acpid so it can re-read the event filters, including the ones you just added:

sudo systemctl restart acpid.service

4. Create the script /etc/acpi/thinkpad-touchpad-in-twist-mode.sh that will disable 1 and enable 0 the touchpad (&& make it executable):

cat << EOF | sudo tee /etc/acpi/thinkpad-touchpad-twist-mode.sh && sudo chmod +x /etc/acpi/thinkpad-touchpad-twist-mode.sh
#!/bin/sh
LANG=C                                                                                # Ensure stable parsing
export DISPLAY="\$(w | awk 'NF > 7 && \$2 ~ /tty[0-9]+/ {print \$3; exit}' 2>/dev/null)"                      # Get and export the current user's \$DISPAY
export XAUTHORITY="/home/\$(w | awk 'NF > 7 && \$2 ~ /tty[0-9]+/ {print \$1; exit}' 2>/dev/null)/.Xauthority" # Get and export the currentuser's \$XAUTHORITY
ID="\$(xinput | grep -ioP 'touchpad.*id=\K[0-9]*')"                                                           # Find the TouchPad device ID

if   [ "\${1}" -eq 0 ]; then xinput enable "\$ID"   # Laptop mode or Lid is open
elif [ "\${1}" -eq 1 ]; then xinput disable "\$ID"  # Tablet mode or Lid is closed
fi
EOF

The script will parse and export the environment variables $DISPAY and $XAUTHORITY of the current user's session, in order to allow root (who runs the acpid process) to access the user's X session, respectively xinput.
Then the script will parse the $ID of the touchpad. And depending on the value of the input variable $1 it will enable or disable the touckpad.

Note: The backslashes before the dollar signs \$ are intended to escape the variable (command substitution) expansion within the cat command. So if you copy/paste the script (instead using of the cat approach) you should remove them manually.

References:

ArchWiki: acpid - Advanced Configuration and Power Interface event daemon.
Ask Ubuntu: How do I disable the touchpad while the lid is down?
ThinkWiki: Installing Ubuntu 12.10 on Thinkpad Twist | Thinkpad-acpi | Wacom Tablet Stilus
Ubuntu Forums: Touchpad ON/OFF | Why won't this acpi event work?
About the parsing read: Programmatically find the current value of DISPLAY using w and awk and Remove particular words from lines using grep -P '\K'.


Maybe you can try:

rm -v ~/.config/alien-arena
mkdir -p ~/.config/alien-arena

Regards
(source: http://ubuntuforums.org/showthread.php?t=1882171)


How to get miniconda2 installation file from the miniconda website using a bash script?

If you open https://docs.conda.io/en/latest/miniconda.html in Firefox, you can right-click on the "64-bit (bash installer)" link there and select "Copy link location" and then paste that link somewhere, like in your download script. That gives the following link: https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh


What will be my next step to install Ubuntu

First of all you need LinuxLive USB Creator to create your USB drive bootable. Just download and install it and follow the instruction. And yes, you don't need any internet connection now for Ubuntu installation.

After making your USB bootable, boot from the USB drive and follow the on-screen installation. If you want to keep your Windows installation, choose Install Ubuntu 12.04 LTS alongside Windows, or if you don't want to keep Windows then choose Replace Windows with Ubuntu 12.04 LTS. and just follow what the installer says.


PC as a MIDI controller with output to USB

Unfortunately, your use case is not supported by Dekrispator version 2. Quote from the project description (emphasis mine):

  Connect a USB MIDI controller (like Korg NanoKontrol...) to the board's micro USB connector and control the synth.

The video linked in the project description shows the MCU board connected with a MIDI controller via USB-A to Micro A adaptor.

USB is a master-slave bus where only one party can be the master (USB host). The PC acts as the USB host normally. However, Dekrispator running on an MCU board seems to act as a USB host, too.

See also

What exactly are the differences between a USB host and device

Software (programming) solution

This application won’t work with a computer. You would have to set up the MCU application to act as a USB device (slave) to be able to connect it to the PC. This would be a pure programming task requiring an extension of the Dekrispator USB library to support the USB device mode (or replacement of the library).

Hardware solution

You could work around this problem by extracting the MIDI signal from the MIDI/USB communication using a classical MIDI connection. To do this, you’d need two USB-MIDI converters and one 5-pin DIN female-female adaptor.

     USB             MIDI out            MIDI in              USB
PC <-----> USB-MIDI ----------> DIN F-F ---------> USB-MIDI <-----> MCU


Newer/smaller laptops are giving "No Wi-Fi Adapter Found" message

A lot of hardware doesn't work if you don't have the firmware installed. Have you tried pulling in firmware-linux-nonfree?

Also, could you give us the output of 'lspci -v'?  This should give us the model, hopefully.


In Ubuntu the default apache directory is /var/www or /var/www/html not htdocs like in Windows so to fix your issue do:

make dolibarr root by placing all files and folders of htdocs in /var/www/dolibarr
Then from browser do <MyIP>/dolibarr/index.php


How to integrate email notifications with a desktop?

As one of many available ways
you may try claws-mail with claws-mail-multi-notifier

https://packages.ubuntu.com/search?keywords=claws-mail
https://www.claws-mail.org/plugin.php?plugin=notification


How to configure NTP time synchronization on a server?

Installation

or if you prefer command line ...

sudo apt-get install ntp

  Configuration

sudo nano /etc/ntp.conf

This file will probably have the default Ubuntu server activated. You can check http://www.pool.ntp.org/zone/europe or http://www.pool.ntp.org/zone/north-america or http://www.pool.ntp.org/zone/asia for local (country based) servers. Just comment out all of the servers by adding a # in front of it and add in the one you want to use.

  Activating the new changes

sudo service ntp restart

  Checking if it synchs

sudo ntpq -c lpeer

This will show a list of all the servers and when they where last checked. Random example from the web:

  See logging

sudo tail -f /var/log/syslog

Do make sure, if you are using a firewall, to open UDP 123.


Following crash, built-in keyboard and trackpad don't work when booted normally?

I noted you mentioned orphaned nodes. fsck you may wish to do that.
This is another idea. If using Ubuntu try the
discover

command to make it find you keyboard again.
http://manpages.ubuntu.com/manpages/bionic/man1/discover.1.html
Sorry I have forgotten all the variables but this link will tell you how to use it.
Then I believe Ubuntu should recognize and set it up again.


GNOME System Monitor is showing tons of file systems (18.04.3)

TL;DR: Install the gnome-system-monitor from the repos, and use that. For some reason Ubuntu ships with a Snap version, which does this insanity.

This has already been answered here: Why are all snaps being mounted and listed as block devices or partitions for Ubuntu 18.04?

Even though I saw this question before posting, it was not obvious without reading the whole thing what it was even talking about - didn't seem to be relevant when I skimmed the first few sentences from my search result.


Deleted hosts file - how do I move or copy a file to the /etc folder?

The code use copy pasted has made a backup of your original /etc/hosts in your home folder by the name of .etchosts.
You can remove the file /etc/hosts and then copy the backup in there with the correct name.

sudo rm /etc/hosts

sudo cp ~/.etchosts /etc/hosts


How to check file system at every restart?

To check the filesystem whenever it is mounted:

sudo tune2fs -c 1 /dev/<device>

The system automatically checks the filesystem whenever it is marked dirty, however in case of power failures or similar events the filesystem could get corrupted without being marked dirty. So yes, checking the filesystem at every reboot is a good thing to do in your case (actually, the best thing to do would be to fix the electricity problem, but I suppose you are already aware of that :-))


To open an ssh tunnel between your Lubuntu machine and the virtualbox machine, you will want to run something like

ssh -f user@firewall.fqdn -L 3389:firewall.fqdn:3389 -N

Then you point your rdp client on Lubuntu to localhost:3389. This will push all the traffic on localhost:3389 through the ssh tunnel to the virtualbox machine's port 3389.


Find the GIT Repository in specific directory and exec git bundle command

You want to be in the git-controlled directory when git bundle is executed, so use find ... -execdir ... \;

find /home/mysys/D/ -type d -name .git -prune -execdir git bundle create backup.bundle --all \;

That will create a backup.bundle in all these directories. From there you can move those, or process them with more scripting. But the bundling side of things is handled.


Use solarized or similar in Ubuntu Server

I haven't tried this myself, but you should be able to change the color palette of the text mode by using the restorepalette tool. From the man page:

NAME
   restorepalette - set the color palette for textmode.

SYNOPSIS
   restorepalette [filename]

DESCRIPTION
   restorepalette  without  arguments  sets the standard VGA palette. This
   can be useful if it is somehow messed up.

   With a filename argument a custom palette can be loaded (feature  added
   by Charles Blake <chuckb@alice.wonderland.caltech.edu>).

   This  allow  a  user  to  set up a file that looks like this one (These
   color map definitions are the same as the default VGA ones.   Alter  to
   suite  personal  tastes).  The  first column contains the number of the
   color to set, then follow three integers in range 0  -  63  (lowest  to
   highest intensity) for red, green, blue.

           0  0  0  0   # black
           1  0  0 42   # blue
           2  0 42  0   # green
           3  0 42 42   # cyan
           4 42  0  0   # red
           5 42  0 42   # magenta
           6 42 21  0   # brown
           7 42 42 42   # white
           8 21 21 21   # bright black
           9 21 21 63   # bright blue
          10 21 63 21   # bright green
          11 21 63 63   # bright cyan
          12 63 21 21   # bright red
          13 63 21 63   # bright magenta
          14 63 63 21   # bright brown
          15 63 63 63   # bright white

   The  inline  comments  are  the only kind of allowed, as I use a little
   fscanf(3) trick to get them. Blank lines are ok, but not  pure  comment
   lines. See the comments in my code, also.

   This allows people to set up custom palettes for use in virtual console
   text modes. I use it all the time. When combined  with  a  color-syntax
   editor  like jed-0.97+ or color-ls, etc., being able to choose your own
   text-mode palette is quite a bonus. I set mine  up  via  restorepalette
   /etc/palette  in  my  /etc/rc.   If  the  program  is given the correct
   permissions, then individual users can have  restorepalette  ~/.palette
   or  some  such  thing  in  their  shell  startup  files.  Of course, it
   shouldn't be done when starting remote shells or when under X, so  some
   kind of test that TERM is a virtual console is needed for that case.


"libcuda.so not found" when trying to `make` matrixMulDrv cuda sample after apt install nvidia-cuda-toolkit

I was able to get it to compile successfully using the following command:
CUDA_PATH=/usr CUDA_SEARCH_PATH=/usr/lib/x86_64-linux-gnu make


Problems with Broadcom 4313 on 64-bit Ubuntu 11.04

to uninstall the recommended driver...go to additional driver and deactivate it...

by the way give this a try:
http://www.computerandyou.net/2011/05/how-to-solve-no-wireless-networks-in-ubuntu-11-04/


allure report installed but not findable

Download and install the latest Allure version as .tgz archive.

curl -o allure-2.6.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.6.0/allure-2.6.0.tgz
sudo tar -zxvf allure-2.6.0.tgz -C /opt/
sudo ln -s /opt/allure-2.6.0/bin/allure /usr/bin/allure
allure --version

You mentioned in the question that you are using an Ubuntu 18.04 Docker image, but there is also a dedicated Allure Docker Service image.

This docker container allows you to see up-to-date reports simply mounting your allure-results directory in the container. Every time new results appear (generated for your tests), Allure Docker Service will detect those changes and it will generate a new report automatically (optional: send results / generate reports through the API), which you will see by refreshing your web browser.


Can I clone my existing Ubuntu 12.10 and install to USB

Remastersys is a tool that can be used to do 2 things with an existing Debian,  Ubuntu or derivative installation.

1) It can make a full system backup including personal data to a live cd or dvd that you can use anywhere and install.

2) It can make a distributable copy you can share with friends.  This will not have any of your personal user data in it.

Remastersys Webpage


14.04 - Make synclient changes persistent

Just ran into this. The first option that you list is the one I went with. You need to make sure that you rename the file to a number greater than 50. In my case, I created the file /etc/X11/xorg.conf.d/51-touchpad-config.conf. After restarting, I was able to confirm it worked with the synclient command. In my case, I wanted to persist changes to the HorizScrollDelta option, so my file looked as follows.

Section "InputClass"
        Identifier "desensitize horizontal scrolling so it doesn't trigger when vertically scrolling."
        MatchIsTouchpad "on"
        Option "HorizScrollDelta" "650"
EndSection


The same problem I have faced. This is the problem with the unity 3d of ubuntu 12 LTS to Ubuntu 13.

Restart your system. After getting login page change your unity 3d to Unity then give the password.

After that you got your desktop. Repeating these login again you can also login with Unity 3d will take you to your desktop.


Installation of GIMP crashing on startup

I too faced the same issue.
running the following commands to clear fontcache from the system solved the issue for me.
Commands:
sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
fc-cache -r

Turns out this is an issue with snap.


I had the same problem with 18.04 and Linksys WUSB6300.
These are the steps I used to get up and persist reboots:
On Ubuntu Server
Install the tools:
sudo apt install wireless-tools && sudo apt install wpasupplicant

Install the driver:
sudo apt install rtl8812au-dkms

Now open.yamlfile in netplan for editing:
sudo vi /etc/netplan/50-cloud-init.yaml

Replace wlan0 with the name of your adapter (do ifconfig to find it).
Netplan file should look similar to this:
network:
version: 2
renderer: networkd
    ethernets:
        eno1:
            addresses: []
            dhcp4: true
            optional: true
    wifis:
        wlan0:
            addresses: []
            dhcp4: true
            dhcp6: true
            access-points:
                "my_essid":
                    password: "my_password"

Now generate and debug:
sudo netplan --debug generate

Apply the configuration:
sudo netplan apply

Now remove ethernet wire and reboot:
sudo reboot

Info:
My sudo dkms status output:
rtl8812au, 4.3.8.12175.20140902+dfsg, 4.15.0-96-generic, x86_64: installed

And your output has 2 versions of drivers installed. You must uninstall rtl8812AU_8821AU.
Note:
Connection and ip established after netplan generate. Omitting optional: true for ethernets will prevent persistence upon reboots.
For Ubuntu Desktop 18.04 through 20.04:
Update the package database:
sudo apt update

Install required packages:
sudo apt install git build-essential

Download the driver:
sudo git clone https://github.com/gnab/rtl8812au

Go to the directory:
cd rtl8812au

Do the next commands consecutively:
sudo make clean
sudo make
sudo make uninstall
sudo make install

Reboot and insert USB wireless stick

Persists reboots
Works for WUSB6300


You can download Ubuntu from here:

http://www.ubuntu.com/download/desktop

My personal choice would be 12.04 as its supported for longer (April 2017) but if you want the latest features download 12.10.  The only other choice is 32-bit or 64-bit.  It's up to you which you choose to download.

The 32-bit version contains i386 in the name and 64-bit version contains amd64 do not be put off by this both will work with either amd or intel processors.

If you have a new PC that came with Windows 8 installed take a look at Installing Ubuntu on a Pre-Installed UEFI Supported Windows 8 system otherwise you have a choice between a dual boot or Wubi install both are explained in this question How can I install Ubuntu without removing Windows?

Caution if you have a Samsung Laptop that came with Windows 8 pre-installed read this first otherwise you are good to go.


I have just tried that on my laptop. I got some warnings:

$ xrandr --output LVDS1 --fb 1366x768 --transform 1.171527,0.152543,-117.152659,0.000000,1.171527,0.000000,0.000000,0.000223,1.000000
xrandr: specified screen 1366x768 not large enough for output LVDS1 (1602x773+-118+0)
xrandr: specified screen 1366x768 not large enough for output VGA1 (1440x900+1366+0)

Well, It seems that the frame buffer should be larger enough to hold the size mentioned in the warning. So this should work:

xrandr --output LVDS1 --fb 1602x773 --transform 1.171527,0.152543,-117.152659,0.000000,1.171527,0.000000,0.000000,0.000223,1.000000

For me, as you can notice, I'm using dual monitors I do need a frame buffer to hold both.

xrandr --output LVDS1 --fb 3042x900 --transform 1.171527,0.152543,-117.152659,0.000000,1.171527,0.000000,0.000000,0.000223,1.000000 --output VGA1 --auto --right-of LVDS1

Note: Mouse pointer is not showed on the transformed monitor, but I can notice its move over highlight on widgets.

Dell Latitude E6430, Intel 3rd Gen Core processor Graphics Controller (i915), Ubuntu 15.10, KDE


WUBI is a hackish way to boot Linux on a BIOS-mode PC.

A Windows installation on a Mac uses hackish tricks to get Windows booting in BIOS mode on an EFI-based computer.

Combine the two and you're using hackish tricks within hackish tricks to get Linux running.

In other words:

Eeeuughhheee!!! (Shudder)

In fact, triple-booting OS X, Windows, and Linux on a Mac is a bit of a nightmare, no matter how you do it. IMHO, the best way to tackle such needs generally involves using a virtual machine for at least one OS. That reduces the need for extreme expertise or weird shudder-inducing setups that will break the next time you look at it cross-eyed.

If you must triple-boot, I recommend starting over again:

Read my page on hybrid MBRs, which will teach you about Apple's ugly and dangerous hack that's required to boot Windows Vista and earlier on Macs.
Check OS X forums for discussions of installing Windows in EFI mode on a Mac. This is possible, but difficult, with Windows 7. It's supposedly easier with Windows 8, but the details depend on your Mac model, and unfortunately, I don't have references to sites or forum threads discussing the matter, so I can't be more specific. If you can install Windows 8 in EFI mode, though, you'll obviate the need for the ugly and dangerous hybrid MBR and make the installation both much simpler and much more robust.
Read up on installing Linux in EFI mode. I wrote a Web page on doing this on Macs that may be helpful, although it's a bit old and uses an ancient Mac as a reference. My more general page on installing Linux on UEFI-based PCs may also be useful.
With this information in hand, redo your installation. At the very least, re-do the installation of Linux, reserving the hybrid MBR for Windows and booting Linux in EFI mode. Ideally, you'll be able to keep a legal protective MBR and boot all three OSes in EFI mode.

You'll note that these instructions are very general. This is because I'm advising you to learn about your specific computer and your specific needs, which I can't know. Triple-booting on a Mac is best accomplished via significant knowledge, not via a cookie-cutter recipe.

Oh, and your manual rEFInd boot stanza was doomed to failure because such stanzas can launch nothing but EFI programs, and the WUBI loader you're trying to launch is not such a program.


As far as I know, the Ubuntu one server side software is proprietary, so that it is impossible to host your own Ubuntu One server. However there are several other techniques that can be employed in order to share your files across multiple computers. There is

sshfs: a filesystem which allows you to mount any remote file system you can access via SSH. So basically all you need on your server is an SSH server running and sshfs on your clients. sshfs mounts can be automatically mounted using the /etc/fstab file or using autofs.
nfs: the network file system is rather more complicated to deploy and (if not used correctly) has security issues. To my shame I have not looked into it deeply.
rsync: of course as bodhi.zazen suggests, you can always use rsync to "backup" your files. The problem with rsync is that unlike the Microsoft SyncToy out of the box it does not do two-way merging (and I am yet to find the option in rsync for that). Also unlike the two suggestions outlined above rsync does true synchronization as opposed to sharing one file system which is what the other two do. This has an upside: all changes are immediately shared between clients, and a downside: the mount is only available, when internet connectivity is available.
git: another option I may suggest to you, if you are manly working with text files is git. you can use it in a similar fashion as rsync but you gain the ability to roll back changes and better merge support (what happens, when two clients modify a file?). The downsides of this solution are a much higher disk space consumption (all of the incremental updates have to live somewhere) and a complicated user interface (as git is a source control tool, one has to create commits to share documents).


Copy of the file /bin/sh not executing as expected

You copied a symbolic link which is just a pointer to the real binary. Use ls -alh /bin/sh to show which binary is linked.


build and run gem5-gpu with the x86 CPU ISA

Did you Do that Clone gem5-gpu glue code ?

After that do hg clone http://gem5-gpu.cs.wisc.edu/repo/gem5-gpu
in gem5-gpu main directory, you will get the extra codes.

And scons to build the project ran at gem5-gpu/gem5,
then your command should work.


Fractional scaling won't remember settings on restart

From: How to Enable Fractional Scaling in Ubuntu 19.04

  To enable fractional scaling in GNOME 3.32 on Wayland run:

gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"

  To enable fractional scaling in Ubuntu 19.04 on Xorg run:

gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"

  Once set, you can open Settings > Devices > Screen Display to access
  additional fractional scaling values, including 125% and 150%.

There are many reports of settings not persisting across reboots:

Display settings not saved across sessions when using fractional scaling
Popos 19.04 - X11 fractional scaling not persist after reboot

If you feel your problem is the same file a bug report.

Using fractional scaling with nvidia cards can be problematic with the nouveau (open source) drivers. You may be better served with the drivers direct from nvidia (closed source).

Wrong gsettings?

It could be the wrong gsettings are being run as in this question:

Enable fractional scaling for display in ubuntu 19.04

~$ gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"
GLib-GIO-Message: 12:22:36.852: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

If that is the case simply use /usr/bin/gsettings command.

Other options

Many use Ubuntu 16.04 with Unity Tweak tool and Font scaling options. For example I have mine set at 1.38 for many years without any problems.


Is it safe to turn on unattended upgrades for a live Ubuntu Webserver (Nginx/Apache)?

unattended-upgrades caused apache2 to go offline for me recently. After digging around I realised the unattended upgrade of some php7.0-* packages were the cause.

I'm still on the fence as to whether the benefits of unattended upgrades outweigh the costs when it inevitably does go wrong one day - that will depend on what you're using the server for I guess and your risk appetite ;)

In my research I came across the /etc/apt/apt.conf.d/50unattended-upgrades config file which has settings that will let you add an email address for the package to send you a report each time automatic upgrades are performed.

You need to add the line to the config file (you'll need a mail package installed too to actually send the email):

Unattended-Upgrade::Mail "me@example.com";

Further details of the config file are available:
https://gist.github.com/roybotnik/b0ec2eda2bc625e19eaf
https://help.ubuntu.com/community/AutomaticSecurityUpdates

The unattended-upgrades package also leaves a trail of what it's done in the logs: /var/log/unattended-upgrades/ as well as /var/log/apt/.


As in this: http://exploiterz.blogspot.com/2013/08/how-to-anonymize-bluetooth-devices-on.html

hci0 or hci(x) is the name of your Bluetooth device and you can get all available devices using the command: $ hciconfig, but if you select one of them you can use: hciconfig -a hcix to see its info, and as well its futures using the command you typed here in your question $ hciconfig hci0 features which shows all features supported by your bluetooth device.

if you want to know for example what is the meaning of   "3-slot packets" or "interlaced pscan" these are futures supported by the device but to know the details of these futures there is a forum for Bluetooth developers: https://developer.bluetooth.org/Pages/default.aspx

it will give you more details.


Can I divert it to my external memory?

You are currently downloading to your RAM (memory), which is a pretty limited resource compared to hard disks or other storage, and that's why it's been exhausted.

Depending on how you are downloading you may be able to switch, but it's not easy unless you started off with a command-line tool such as wget. If you have a decent internet connection it may be faster to just cancel and right-click the ISO link and save to your external storage.


Ubuntu 18.04.4 How to configure scanner for Epson-4760 wired to network

The scanner problem appears to have resulted from one computer set up with sysV with symlinks and the other with systemd. I made some adjustments to allow systemd to control scannner on both and now both imagescan and Xsane work nicely on either. SysV script is still sitting there on each, but since they both work, I will not make further changes. Printing is fine too, though it appears to be networked only, not USB. BTW, I noticed my version of Ubuntu was included in the OP title. But thanks for your interest.


Updating to 3.13.0-39 broke Mouse and Keyboard

I have had same problem whit mouse, and you could try to enter in the terminal this:

 gsettings set org.settings.gnome-cursor cursor=false

and for the keyboard enter this in the terminal:

 gsettings set org.settings.gnome-keyb keyb=true

and it might work fine this way.


Grammar checking program for LibreOffice

LanguageTool extension for LibreOffice:
You need to install LanguageTool extension to  achieve grammar check in LibreOffice.
Get it from here : https://extensions.libreoffice.org/extensions/languagetool
And HowTo on install extension can be found here : http://www.libreoffice.org/assets/Uploads/EN_Documents/Installingextensions.pdf
Other extensions:
For more alternatives, have a look at this source link:
SOURCE : http://www.techrepublic.com/blog/five-apps/five-libreoffice-extensions-to-help-you-catch-grammar-problems/1280/


Installing Ubuntu 14.10 (64-bit) on a Windows 8 bay trail atom tablet

Note: As of right now, Ubuntu 15.04 will BOOT on a bay trail tablet, but it will not install correctly.

My guide is based mostly on this one, but with minor adjustments, and easier to follow instructions. This guide is tested and working on the Winbook Tw100 Windows 8 tablet (by Microcenter).

You may require:

USB OTG (on the go) cable, for connecting the USB drive/keyboard/mouse
A 4GB or more USB flash drive
Any downloads mentioned below
You will need to disable Secure Boot and change the boot order in your tablet's BIOS settings

Problem 1: Booting a 64-bit OS with a 32-bit UEFI BIOS on a 64-bit CPU (it's like a jigsaw puzzle)

Download the latest Ubuntu 14.10 (64-bit) ISO file
Download Universal USB Installer
Use Universal USB Installer to create a bootable Ubuntu 14.10 USB drive
Download this bootia32.efi file from GitHub
Place the bootia32.efi file you just downloaded into the EFI/BOOT/ folder of the bootable Ubuntu 14.10 USB drive you just created
Download these two .deb files, and place at the ROOT of the USB drive
NOTE: due to broken links, files have been moved to Google Drive for permanent storage.

https://drive.google.com/file/d/0BxPvhHHEJKxNTzZqX0VBdFNfZ2M/view?usp=sharing

https://drive.google.com/file/d/0BxPvhHHEJKxNY25ZdW5KcEhLeG8/view?usp=sharing

Connect the USB drive to your tablet and power it on

You should be presented with a screen like this, choose "Try Ubuntu without installing"

Problem 2: Installing, and making the installation stick!

After Ubuntu has finished booting, manually partition your tablet's internal storage

1.5.  If you want to Dual-boot Ubuntu and Windows 8, you'll have to do all your partitioning using Windows disk management
After you have finished manually partitioning your tablet's internal storage, install Ubuntu like normal
When the installation has finished, leave the USB drive connected to your tablet, and restart
When you are presented with the GRUB screen again, hit the "C" key, and enter these lines of code...

you might need to change the "(hd0,gpt5)" and "/dev/mmcblk0p3" sections of code to suit your specific needs

  linux (hd0,gpt5)/boot/vmlinuz-3.16.0-23-generic root=/dev/mmcblk0p3

  initrd (hd0,gpt5)/boot/initrd-3.16.0-23-generic

Now enter the "boot" command. If you were successful, you should not have received any error messages, and booted into your freshly installed Ubuntu 14.10 installation. If you receive any error messages, try the last two steps again.

Open a terminal, and enter "sudo apt-get remove grub-efi-amd64"
after that has finished, open the USB drive, and install these two .deb packages in the order that they are listed

grub-efi-ia32-bin_2.02~beta2-15_amd64.deb
grub-efi-ia32_2.02~beta2-15_amd64.deb

Open a terminal, and type "sudo update-grub"
Restart

And you're done!!! If you followed these steps very carefully, and to the letter, then you have a (not-so) fully functioning 64-bit Ubuntu 14.10 (and possibly Windows 8 dual-boot) bay trail tablet.

What doesn't work (this is a list for the Tw100, your tablet may be different)

Sound
Touchscreen
Battery (ACPI)
Accelerometer (tilting, screen rotation)

Check out this guide I did on how to boot Ubuntu 15.04 on bay trail tablets.


Here is what I did to make it work with Ubuntu 18.04.

Make your /swapfile have at least the size of your RAM

sudo swapoff /swapfile
sudo dd if=/dev/zero of=/swapfile bs=$(cat /proc/meminfo | awk '/MemTotal/ {print $2}') count=1024 conv=notrunc
sudo mkswap /swapfile
sudo swapon /swapfile

Note the UUID of the partition containing your /swapfile:

$ sudo findmnt -no UUID -T /swapfile
20562a02-cfa6-42e0-bb9f-5e936ea763d0

Reconfigure the package uswsusp in order to correctly use the swapfile:

sudo dpkg-reconfigure -pmedium uswsusp
# Answer "Yes" to continue without swap space
# Select "/dev/disk/by-uuid/20562a02-cfa6-42e0-bb9f-5e936ea763d0" replace the UUID with the result from the previous findmnt command
# Encrypt: "No"

Edit the SystemD hibernate service using sudo systemctl edit systemd-hibernate.service and fill it with the following content:

[Service]
ExecStart=
ExecStartPre=-/bin/run-parts -v -a pre /lib/systemd/system-sleep
ExecStart=/usr/sbin/s2disk
ExecStartPost=-/bin/run-parts -v --reverse -a post /lib/systemd/system-sleep

Note the resume offset of your /swapfile:

$ sudo swap-offset /swapfile
resume offset = 34818

Configure Grub to resume from the swapfile by editing /etc/default/grub and modify the following line:

GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=20562a02-cfa6-42e0-bb9f-5e936ea763d0 resume_offset=34818 quiet splash"

Update Grub:

sudo update-grub

Create the following /etc/initramfs-tools/conf.d/resume:

RESUME=UUID=20562a02-cfa6-42e0-bb9e-5e936ea763d0 resume_offset=34816
    # Resume from /swapfile

Update initramfs:

sudo update-initramfs -u -k all

Now you can hibernate with sudo systemctl hibernate.
One can also create those scripts:
sudo tee /usr/local/bin/gotosleep <<EOF
dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock
sleep 2
sudo /usr/sbin/s2both
EOF
sudo chmod +x /usr/local/bin/gotosleep
sudo tee /usr/local/bin/gotohibernation <<EOF
dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock
sleep 2
sudo systemctl hibernate
EOF
sudo chmod +x /usr/local/bin/gotohibernation

So you can sleep with gotosleep or hibernate with gotohibernation.
You must be able to execute sudo s2both, sudo s2ram and sudo systemctl hibernatewithout having to enter your password for the previous scripts to work.
You could do that for example by creating a powerdev group, add your current user to it, and configure the following sudoers config (edit it with sudo visudo -f /etc/sudoers.d/powerdev):
%powerdev ALL=NOPASSWD: /usr/sbin/s2both, /usr/sbin/s2ram, /bin/systemctl hibernate

Documentation used:

Cas' answer
Debian "Hibernate without swap partition"
Configuring Lubuntu 18.04 to enable hibernation using a swap file
So question "s2disk works, but hibernation from menu gets stuck afer login"


Can Wine software use Unity Application Menu?

I'll note that Mark Shuttleworth asked me this exact question about a year ago when Unity was first being shared with us.

Wine cannot use the global menu, and probably won't ever.  The reason is that Unity's global menu requires fancy rewriting of each windowing toolkit (GTK, for instance) -- this is why some applications like LibreOffice don't actually yet use the global menu: they were written with toolkits that Unity doesn't yet support.

To make the global menu work in Wine would require an even more invasive rewrite of Wine itself - Wine isn't just implementing the Windows graphical toolkits, but must also act as a window manager.  Windows applications have almost no qualms about doing very strange things, and likely many applications would break in bizarre ways if their menus were moved or worked even slightly differently.


Tried 3D acceleration lost everything! Black screen

The appropriate way to uninstall guest additions from a virtual box guest is to run the script provided:

user@guset:$ sudo ./opt/<VirtualBoxAddtions-x.x.xx>/uninstall.sh

Replace the x placeholders with the ones for your vitualbox version.

Alternatively you can try to install the appropriate version of the guest additions over the existing guest additions. A command line way to do this is outlined here:

How do I install Guest Additions in a VirtualBox VM?

However it is strongly recommended to upgrade virtual box to the most recent version to be able to run the latest Ubuntu release without issues.

How do I install the VirtualBox version from Oracle to install an Extension Pack?


Dell precision M4600 stuck at last stage of reboot

Could you try noapic instead of acpi=off and see if you experience different symptoms? I only ask because I found this thread on a Dell mailing list searching around for you: http://lists.us.dell.com/pipermail/linux-precision/2011-July/001515.html


Probably you are missing the DirectoryIndex directive.

Try putting this in your default site configuration:

 DirectoryIndex index.php


How-to add cpufreq indicator to system tray

An example from my machine, you can add/remove things from or to it.
Terminal:
gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'parcellite', 'Skype', 'hp-systray']"


No option coming to install ubuntu alongwith existing os which is windows 10

First, it's IMPERATIVE that you disable the Windows "Fast Startup" feature. Doing so is covered here, among other places. Note that this feature is not the same as a feature with a similar name in many EFIs' setup utilities.

Second, Secure Boot is not likely to be a problem. Disabling it won't make things any harder, but doing so will probably not make them any easier, either. There are exceptions, but this isn't the universally-necessary step that so many people think it is.

Third, the "install alongside" option is often missing on modern EFI-based computers. I'm not sure of the technical cause. (Maybe just the Windows Fast Startup feature, maybe something else.) You may need to use the "something else" option instead, as described here (again, among many other places).

Finally, many HPs have broken EFIs that will give you problems. I can't say for certain that all HPs are broken, but if the computer is new and you end up booting straight into Windows when you're done, save yourself further headaches and return it to the store for a refund. If the computer is old enough that this is impossible, there are workarounds; see here (once again, or many other places) for the ugly details.


How do I know if the programs used in PlayOnLinux can be safely installed?

No you are not. They are all run in a different wineprefix (Minimal Windows system) and if anything goes wrong only the wineprefix will be changed. You can just remove and reinstall the wineprefix.


searching for a memory and brain games in ubuntu

gbrainy. Most probably it's already installed on your ubuntu.


what is "${distro_id}ESM:${distro_codename}" in unattended-upgrades config?

It's Canonical's Extended Security Maintenance for LTS releases after normal release end-of-life. At the moment, unless you're using 12.04 and paying for it, it doesn't apply to you.


Compilation errors in Ubuntu 18.04 LTS for a QT-based project

I did search on packages.ubuntu.com.

According to it you need the following packages:

for compilation:

sudo apt-get install qtbase5-dev libgl1-mesa-dev

at run time:

sudo apt-get install libqt5widgets5 libqt5gui5 libqt5core5a libgl1


Why is my Apache not working after upgrading to Ubuntu 14.04?

I had this problem even though apache was working for me. I simply wanted to do a quick

$ /usr/sbin/apache2 -V

to find the value of SERVER_CONFIG_FILE. Because that's not the way to start apache2 any more it fails with the errors the OP posts. A quick and dirty workaround is simply to set the envvars that are missing first:

$ source /etc/apache2/envvars
$ /usr/sbin/apache2 -V

This sets the APACHE_LOCK_DIR variable and all is well (-D SERVER_CONFIG_FILE="apache2.conf").


How to change grub command-line (grub shell) keyboard layout?

First, check that you're using GRUB 2 (GRUB 0.x works differently).

grub-install --version

Generate a GRUB keyboard layout file. Below is the command for a french keyboard. For other languages, check /usr/share/X11/xkb/symbols/. Filename choice is not important (you can change bepo).

sudo grub-kbdcomp -o /boot/grub/bepo.gkb fr

Edit /etc/default/grub with root rights to have:

#GRUB_HIDDEN_TIMEOUT=0
GRUB_TERMINAL_INPUT="at_keyboard"

Edit /etc/grub.d/40_custom with root rights to have:

#!/bin/sh
exec tail -n +3 $0

insmod keylayouts
keymap /boot/grub/bepo.gkb

Finally:

sudo update-grub

Note: Forget immediately about using the Shift key to display GRUB menu! It may be normal that terminal_input at_keyboard make this key not work anymore. So make sure #GRUB_HIDDEN_TIMEOUT=0 is properly commented.


Why is there no option to download ubuntu using torrent?

See this link, it will allow you to download an Ubuntu .torrent file. You need a bittorent client application to download Ubuntu this way.


12.04 desktop is frozen. How to unfreeze the desktop?

to update : sudo apt-get update

to upgrade : sudo apt-get upgrade

sudo reboot

after if the problem is still there ,if u use Nvidia drivers try to use the following commands(in order without restart) :

sudo rm /etc/X11/xorg.conf

sudo nvidia-xconfig

sudo reboot

hopefully will work


Regionset fails even there is a readable disc inserted

You might need libdvdcss - and you can get that easily. Just follow the instructions here: https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs

Or, add the Medibuntu repos and install it from there:

sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring libdvdcss && sudo apt-get --quiet update


Is there any way to specify which workspace and/or window to launch a program into?

You can determine which display to launch a program by using the following:

$ DISPLAY=":0.1" program_name

Some programs allow you to set their default display in a config file.  mplayer is one of these programs.  Append the following to ~/.mplayer/config

  display=":0.1"

Your first display is 0.0.  Your second display is 0.1.  Your third display is 0.2.


On the Gnome desktop, go to System > Preferences > Screensaver and turn off the Lock screen when screensaver is active checkbox.


Ubuntu 14.04 Ubuntu Software center does not start

Press the "Windows" aka Dash Key and type: Ubuntu Software Center, press
ENTER

or open a Terminal: CTRL+ALT+T
and type: software-center press ENTER


How to install road-rash game into linux? how to install registry files manually into wine?

Install wine-development

sudo aptitude purge wine
rm -rf    $HOME/.wine
sudo aptitude install wine-development

Download Road Rash

 https://kat.cr/road-rash-t1890054.html(the link is broken)
 https://gamesnostalgia.com/download/road-rash_/1724 (roadrash_win.7z
 16.4MB, this link is ok)

Install Road Rash

wine-development Road\ Rash.exe

Edit registry, go to [HKEY_LOCAL_MACHINE\Software\Electronic Arts\RoadRash 95] change "Path"="C:\somepath" to "Path"="C:\yourpath"

regedit-development


Installing Ubuntu 16.04.2 alongside Windows 10 on an Acer Travelmate B117

Have you found the "Select an UEFI file as trusted for executing" option? For me it's invisible, but some other people confirmed, that sometimes it solves the problem.
Allowing boot of Ubuntu on a Acer Aspire v5-531 with UEFI


I am using Ubuntu 12.04 as live desktop CD for banking am I subject to the Heartbleed bug?

Short answer: No, you're not.

The heartbleed bug has been exhaustively analyzed elsewhere but the point is that it affects servers. You don't care about it with respect to your computer unless you run a server on it. This does not mean that you're safe however.

The danger is that your bank is affected by it, you should certainly change your passwords etc. The fact that you use a Live CD for banking purposes is completely irrelevant, the bug is server side, so you are as affected by it as anyone else.


In the terminal run    sudo apt-get autoclean

Entry in man apt-get for autoclean

  autoclean
             Like clean, autoclean clears out the local repository of retrieved
             package files. The difference is that it only removes package files
             that can no longer be downloaded, and are largely useless. This
             allows a cache to be maintained over a long period without it
             growing out of control. The configuration option
             APT::Clean-Installed will prevent installed packages from being
             erased if it is set to off.


How do I block the entire Internet except a few 'whitelist sites'?

You can consider Privoxy, available from the Ubuntu Software Center. It's a proxy server that may do what you want.
Section 3.27 has this:

  3.27. Can I set-up Privoxy as a whitelist of "good" sites?

  Sure. There are a couple of things you can do for simple
  white-listing. Here's one real easy one:

  ############################################################

  Blacklist

  ######################################################

  { +block }  / # Block all URLs

  ############################################################

  Whitelist

  ######################################################

  { -block }
  kids.example.com
  toys.example.com
  games.example.com
  This allows access to only those three sites by first blocking all URLs,
  and then subsequently allowing three specific exceptions.

  Another approach is Privoxy's trustfile concept, which incorporates
  the notion of "trusted referrers". See the Trust documentation for
  details.

  These are fairly simple approaches and are not completely foolproof.
  There are various other configuration options that should be disabled
  (described elsewhere here and in the User Manual) so that users can't
  modify their own configuration and easily circumvent the whitelist.


Is there an alternative to DVD-Shrink, that can compress a DVD image to a smaller size to fit on a writeable DVD?

The 2 best tools I know of that work are dvd95 and k9copy.
sudo apt-get install dvd95 or sudo apt-get install k9copy
installing k9copy on a non-kde system will pull down a lot of dependencies, which may or may not be an issue with you.


virtualbox, can't mouse scroll if 3D acceleration is enabled

My mouse wheel is working again.  Updated to the latest nvidia drivers and also did a Windows update.  Because I did both at the same time I can't say which fixed it but if someone else is experiencing this issue perhaps try udpating the host's drivers.


Why does "top" show some processes running longer than the system's uptime?

From man top, section "3a. Description of fields":

   29. TIME  --  CPU Time
       Total  CPU  time the task has used since it started.  When Cumulative
       mode is On, each process is listed with the cpu time that it and its
       dead children have used.  You toggle Cumulative mode with `S',  which
       is  both  a  command-line option and an interactive command.
       See the `S' interactive command for additional information regarding
       this mode.

   30. TIME+  --  CPU Time, hundredths
       The same as TIME, but reflecting more granularity through hundredths
       of a second.

CPU time means how long a single CPU core was busy processing this task or (if Cumulative mode is on) any of its children here.

That means the CPU time is not related to wall time at all, it can of course be shorter than how long the process is running in wall time (if it does not use a full CPU core all the time), but it can also be longer than the real process runtime (if you have a multi-core CPU and the process uses more than one of them).


Writes occurring to fresh ext4 partition every second endlessly. Cause and solution?

There is a simple solution for you. Leave the disk connected to your PC for some hours and the noise will stop automatically. A rough estimation for the required time is 1.5h per 1TB of partition size.

This is because formatting to ext4 does not completely initialize the file system. A lot of the initialization work is delegated to jbd2, which is responsible for maintaining the journal of the file system.
When formatting, only the necessary information for using the disk is written. While you can already use the disk, jbd2 adds additional information. It's designed in this way so that formatting is quick. The write operations that you are observing after formatting do not affect the performance of the disk, i.e. when you copy files to the disk, the copy process will not be slower because of jbd2 also writing the journal.

jbd2 is designed to do its work in delayed intervals. Because most hard disks have built in power saving mechanisms, which can switch off the disk or park the heads, it is possible that the hard disk detects that it is idle, does some power saving operation like parking the heads, and immediately afterwards jbd2 accesses the disk again, causing it to move the heads again. This is the low noise which you are hearing.

If your hard disk's power saving mechanisms can be controlled (some HDDs support this, some don't), you can use the following command to disable the power saving mechanisms, thus silencing the disk durign the time that jbd2 makes initializations:

sudo hdparm -B 255 /dev/sdXY

where you have to replace sdXY by the path to your hard disk partition. If the command fails, your HDD does not support controlling the power saving mechanisms and you can't silence it. Then you have to wait as explained at the top of this answer.


PerlOutputFilterHandler module in Apache 2.4

This did the trick:

apt-get install libapache2-mod-perl2
a2enmod perl


How does one know which will be kept current: Snap, Flatpak, or Debian

Both snap and flatpak applications have some similarities. And as of your doubt regarding security features,

  Snap and Flatpak packages come with security benefits. They are sandboxed. Apps can only see themselves and parts of the computer they have permission to see. This isolation prevents software from easily damaging other parts of the system.

But this comes with some problems as well.

  The situation isn’t foolproof. The X11 window system used by most Linux distros limits the security of both formats. This should change once the Wayland and Mir display servers are ready for primetime.

All these useful information comes from here, have a look into it for further info.


I have an error when instaling latte-dock 0.10

You have to start with getting build-dependencies of packaged 0.9.11 version: enable Source Code repositories (deb-src) in Software & Updates (software-properties-gtk) and then execute
sudo apt-get build-dep latte-dock

Then proceed with compilation.
But it will not work because of missed KIO/OpenUrlJob. It is only available for 20.10 and newer Ubuntu versions in libkf5kio-dev package.
So you have to use packaged 0.9.11 version of Latte Dock. Install it as simple as sudo apt-get install latte-dock .


external HDMI monitor turns off after a few minutes

When inactive, Ubuntu turns off the screen after a while. To change this, open Settings > Brightness & Lock and change the Turn screen off when inactive to Never


How Easy Is It To Triple Boot Windows 7, Ubuntu 13.10, and Arch Linux?

Arch linux is for more experienced users. If you don't know how to setup a triple boot with two linuxes then it is very likely that you won't be happy with Arch.

But if you still want to experiment:  During the Arch install you can skip installing a boot-loader and then your present GRUB will be kept. (That means you just don't issue commands which install a boot-loader.) If you do this then after the installer finishes and you reboot the Arch won't be present in the GRUB menu. You will have to boot Ubuntu and run sudo update-grub, which will find Arch and update the GRUB menu. After this you can boot Arch from the original GRUB which came with your Ubuntu. I think this is the most simple way to setup a triple boot with Arch and Ubuntu.


Problem with USB installation (xbmcbuntu)

When i first tried instaling winXP in mi laptop i had to inject the sata drive drivers in the instalation image. So, question 1, have you installed any other distro to that same machine? If not, try and do that with a more mainstream and complete distro and see if it works. If you did and it worked, mi guess is that the problem is with your machine and that distro.


You currently can't run nova-compute in LXC, this is a known limitation and we're working to solve that for 14.10/juno.


How to make packages cross different Ubuntu release?

If there is a generic version-free package you can depend on (such as in the Java case: java-runtime vs. e.g. java6-runtime), depend on that. If there isn't, you have to make specialized packages for the different versions of Ubuntu. Look at the package you depend on's control file and see if it Provides something more generic you can depend on.


Every time I logout, the skydome image gets replaced by the blue-white gradient. How do I solve this?

You may chose skydome image from windows drive ,Transfer your skydome image to home folder ,and reset the skydome image.it will work


Apple bluetooth keyboard (and mouse) issue on Ubuntu 12.10

The keyboard behaves as a numerical keypad. See this help page.

Quoting here:

  Numlock on Apple Wireless Keyboard

  If the Apple Wirelesss Keyboard stops working after log-in where most
  keys do not work and some keys on the right side produce numbers, it
  is because numlock is enabled by default. Numlock can be switched off
  by pressing fn-F6 twice. The keyboard then works normally again.

  To disable numlock by default, go to System -> Preferences -> Keyboard
  -> Layout -> Layout Options -> Miscellaneous compatibility options -> turn on "Default numeric keypad keys"

  This setting takes effect after logging in and does not affect the
  graphical login screen or local consoles.


No wifi and can't enter BIOS, nor bootable with any kind of USB after installing Ubuntu

Now that you have USB-boot capability and want to re-partition the drive:

1) On a windows laptop, create a bootable rescueStick

2) Boot the rescueStick and use the gParted application to re-partition drives

3) Reboot from Windows USB install disk and install windows

4) Go to fridge and reward yourself with your favorite beverage

If my memory is correct, You should not have to perform steps 1) and 2) because a Windows install stick should allow you to repartition the disk.  If my memory is incorrect, then the sure way to re-partition is with the rescueStick.

If your intent is to have a dualboot machine, then this article indicates that Windows should be installed first


Unable to install systemd-container ubuntu 20.04

After reviewing your edits, I did some digging and below is the relevant part of what I found in the Packages.gz file at http://pl.archive.ubuntu.com/ubuntu/dists/focal/main/binary-amd64/ by tracing your output from your apt-cache output. As mentioned by N0rbert in the comments, It appears that the repository you are using has out of date versions of the packages that you require as seen below. You can find the up to date versions in the focal-updates repository here. I highly recommend you replace the pl.archive.ubuntu.com repository that you are using with the default repository from the Main server or the US archive both of which appear to be up to date. See this answer. There's a great related Q&A regarding the different sources here.
Package: systemd
Architecture: amd64
Version: 245.4-4ubuntu3
Multi-Arch: foreign
Priority: important
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian systemd Maintainers <pkg-systemd-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 15084
Pre-Depends: libblkid1 (>= 2.24), libc6 (>= 2.30), libgcrypt20 (>= 1.8.0), liblz4-1 (>= 0.0~r122), liblzma5 (>= 5.1.1alpha+20120614), libselinux1 (>= 2.1.9)
Depends: libacl1 (>= 2.2.23), libapparmor1 (>= 2.9.0-3+exp2), libaudit1 (>= 1:2.2.1), libcap2 (>= 1:2.24-9~), libcrypt1 (>= 1:4.4.0), libcryptsetup12 (>= 2:2.0.1), libgnutls30 (>= 3.6.12), libgpg-error0 (>= 1.14), libidn2-0 (>= 2.0.0), libip4tc2 (>= 1.8.3), libkmod2 (>= 5~), liblz4-1 (>= 0.0~r130), libmount1 (>= 2.30), libpam0g (>= 0.99.7.1), libpcre2-8-0 (>= 10.22), libseccomp2 (>= 2.4.1), libsystemd0 (= 245.4-4ubuntu3), systemd-timesyncd | time-daemon, util-linux (>= 2.27.1), mount (>= 2.26), adduser
Recommends: dbus, networkd-dispatcher
Suggests: systemd-container, policykit-1
Conflicts: consolekit, libpam-ck-connector, systemd-shim, upstart
Breaks: python-dbusmock (<< 0.18), python3-dbusmock (<< 0.18), systemd-shim (<< 10-4~)
Filename: pool/main/s/systemd/systemd_245.4-4ubuntu3_amd64.deb
Size: 3795776
MD5sum: 2529c1980daa1f26dab931b1b739f196
SHA1: 29a79ae4edee4964ac34ddba0fd0a47c2c4a49d0
SHA256: f081921d83e6378aee0576a1e3f1339a35c9302c46fc501b087cd762145597d8
Homepage: https://www.freedesktop.org/wiki/Software/systemd
Description: system and service manager
Task: minimal, ubuntu-core
Description-md5: 19399579cbc0c47a303288bf15eadcd4

Package: systemd-container
Architecture: amd64
Version: 245.4-4ubuntu3
Multi-Arch: foreign
Priority: optional
Section: admin
Source: systemd
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian systemd Maintainers <pkg-systemd-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1191
Depends: libacl1 (>= 2.2.23), libbz2-1.0, libc6 (>= 2.28), libcurl3-gnutls (>= 7.16.3), libgcrypt20 (>= 1.8.0), liblzma5 (>= 5.1.1alpha+20120614), libseccomp2 (>= 2.3.1), libselinux1 (>= 2.1.9), systemd (= 245.4-4ubuntu3), zlib1g (>= 1:1.1.4), dbus
Recommends: libnss-mymachines
Filename: pool/main/s/systemd/systemd-container_245.4-4ubuntu3_amd64.deb
Size: 317240
MD5sum: f67b429ff0cf3fb51bfdd18c2785b445
SHA1: 0eb815d5050e8c25c635f33870d72b5ae9357dbb
SHA256: 54ce1e0c2d1ea5d43db6f5a02b9f5b3731d9e1c2c653ee2c835aae89b899a664
Homepage: https://www.freedesktop.org/wiki/Software/systemd
Description: systemd container/nspawn tools
Description-md5: 06057fffc2ba14e4be80360a092a18b4


Can't hibernate (+ poor computer literacy)

In simple terms, 'swap space' is used when your computer decides that you don't need these files right now, but they should be easily accessible (it may seem strange but accessing files from the hard drive is very very slow in computer terms).

I just recently installed Ubuntu and was given the warning that it's highly recommended to reserve some swap space on the hard drive. The post linked by minerz029 has fairly simple instructions for creating a file that's used as swap space. However, if it's reasonable for you to overwrite your existing Ubuntu install, it may be easier to do that and in the process create a partition for use as swap space.


Python 3.5 is unable to access packages installed with pip3 like django

Run the follwing:

as mentioned above, you need to apt-get install python-django or python3-django
sudo apt-get install python-pip (or sudo apt-get install python3-pip)
sudo apt-get install mysql-server (I would suggest you do not use sqlite3 if you want to work with databases) (THIS STEP IS OPTIONAL!!!!)
sudo apt-get install apache2 (for django to run on it)

Basic info:

Use django-admin startproject << name >>
Modify the django settings to run on the apache server
You must be inside the project location to be able to run << python manage.py runserver >>


My loop is stopping but cant figure out why

A few things:

i is always 1 in your script, AFAICT. So there's no point in using it, and it's simpler to do:

while true; do
...
done

You're execing pkill and wine. exec replaces the current shell with the command to be executed, so your script effectively ends when it exec's anything. Just do pkill SAMBC.exe and wine C:\\SAMBC\\SAMBC.exe. The wine command may need to be sent to the background: wine C:\\SAMBC\\SAMBC.exe &.
If you want to get the CPU usage of a specific process, it's easier if you use pgrep to get the PID and ps to get just the CPU usage:

process_usage=$(ps -o pcpu= $(pgrep SAMBC.exe) | sed 's/\..*//')

The sed command strips away trailing decimals.

Combining and simplifying:

#!/bin/bash

CPU_USAGE_THRESHOLD="120"

while true; do
    proc_usage=$(ps -o pcpu= $(pgrep SAMBC.exe) | sed 's/\..*//')

    if (( proc_usage > CPU_USAGE_THRESHOLD )); then
        pkill SAMBC.exe;
        echo "process killed"
        sleep 30
        wine C:\\SAMBC\\SAMBC.exe &
    fi
    sleep 60
done


You can find many examples from Qt's website:

http://doc.qt.io/qt-4.8/all-examples.html

QML examples:
http://doc.qt.io/qt-4.8/qdeclarativeexamples.html


It is working now. Had to switch to using OVMF bios and q35 chipset.

qemu-system-x86_64 \
-smp sockets=1,cores=4,threads=1 \
-M q35 \
-bios /usr/share/qemu/bios.bin \
-enable-kvm \
-cpu host,kvm=off \
-m 16000 \
-vga none \
-device vfio-pci,host=03:00.0,multifunction=on \
-device vfio-pci,host=03:00.1 \
-hda windows.qcow2 \


Start jackd with realtime priority with upstart

This was answered in stackoverflow:

https://stackoverflow.com/questions/25412381/how-to-start-a-process-with-realtime-priority-jackd-with-upstart

Turn out that you have to use the stanzas:

limit memlock unlimited unlimited
limit rtprio 95 95


Is there a ubuntu server menu-based network setup tool like during ubuntu install?

As far as I can tell, this menu-based interface is part of the installer, and does not exist independently. However, if and when Network Manager 0.9.10 comes to Ubuntu, you could use nmtui,  the text user interface for Network Manager for a nicer interface. Other options include wicd-cli, part of WICD, a network management program.


curl command not executing via shell script in bash

You are probably not running the script in bash.

/bin/sh is a symlink to /bin/dash, the default non-interactive shell in Ubuntu (since version 6.10). dash doesn't support the shortcut command $(<filename), so your token variable is empty.

To execute the script with bash, change the shebang line to #!/bin/bash or explicitly invoke bash script.sh.

Generally, if you want/need to use a specific shell, you should explicitly specify it in the shebang line. If you want your script to be portable, you can specify #!/bin/sh, but then you have to make sure your script is POSIX-compliant. For example, the POSIX-compliant equivalent of $(<filename) would be $(cat filename).


Can I completely disable the menu proxy?

The suggested fix seems to work in 12.04 (image stays at 100% zoom):

UBUNTU_MENUPROXY= eog image.png

More options for how to disable global menu:

https://askubuntu.com/a/133005/32651


Not able to install Ldapclient on a non-internet connected PC

If this guide is correct, you need to install these: libpam-ldap; libnss-ldap; nss-updatedb; libnss-db; nscd; ldap-utils

To download them and their dependencies, use APT-Web. Select your Ubuntu version, then your distro. After that, paste this into the packages input field: libpam-ldap; libnss-ldap; nss-updatedb; libnss-db; nscd; ldap-utils Click submit. It will display what packages need to be downloaded. Download them and use some media to get them to the machine that isn't connected to the internet. Then just use dpkg to install them. dpkg -i * will install all packages in the current directory.


Download and install Ubuntu on a live CD/USB.
Boot up the CD/USB and choose try it out.
Start gparted on the Live-USB/CD and choose the size of your
partitions. You don't want to have a partition mounted that you want
to change.

If you boot with a Live-CD/USB and don't mount(use) the partition you want to shrink and divide then you wont have the danger of writing to some part of a partition that you just divided into a smaller one, which will give an error. So to be on the safe side. Use a Live-USB/CD.

I would use NTFS or FAT32 for the file storage drives, since they can be accessed from both Ubuntu and Windows.

Questions?


How do I remove infected files in a Ubuntu server samba share?

Install one of the many available anti-virus tools for Linux: ClamAV, Avast, BitDefender, for example will do just fine and scan the shared files in the Samba shares.

ClamAV for instance has a CLI and a GUI interface, so you can scan a mount point with it via ssh or by getting direct access to the server, no need for an actual graphical interface.
You would then use the command sudo clamscan -r -l /tmp/scan.log /shares to scan recursively the folder /shares and save a log of that scan to /tmp/scan.log.

Don't forget to make a backup of those files before actually running the scanner, some customers won't understand that some files are so infected that there is no recovery for them and the solution will be to just delete them, so before running a scan make sure that in the eventuality of that happening you can serve them in another media so they can take care of it themselves.


Ubuntu (and many Linux systems) have a secondary clipboard - the X selection buffer. When you select something, it is automatically added to this buffer. Then you can middle-click where you want to paste it.


I found the solution, I removed the setxkbmap command from the .bashrc file and added it to this file:

/etc/xdg/lxsession/LXDE/autostart

You have to put an @ in the beginning of the line (I wonder why), so practically the line that I added looks like this:

@setxkbmap -option -option grp:rwin_switch,grp:alt_shift_toggle,grp_led:scroll de,gr

Note that the commands in this autostart file are executed each time LXDE starts (for all users). If you need to do something like this only for one user, then use this file instead (no @ needed in this case):

/home/*username*/.config/lxsession/LXDE/autostart


Linux directory structure for new application

The only problem that you may have is /run directory. It is also used as temporary storage and is recommended for privileged processes only. Thus, files stored there are not persistent, as you intend them to be, and will be gone with a reboot.

Depending on the purpose of those persistent files, you might store temp data in user's ~/.local/share/narf directory if that data is user-specific, or use /var/cache/narf (or /var/tmp , since it's supposed to be persistent according to Wikipedia's breakdown) for persistent data.


Open the terminal and type in:

echo $XDG_SESSION_TYPE


I finally got it to sound quite good! After digging up and learning about how sound work, I found a lot of valuable information. There was many steps.
First, I noticed only the left and right speakers were actually used by applications using stereo (two channels). But the Tiamat has 8 channels. Here are the steps to fix this issue:

going into the audio settings -> advanced and set card to "Analog Surround 7.1 Output + Analaog Stereo Input"
Create a file ~/.config/pulse/daemon.conf

resample-method = speex-float-7
enable-remixing = yes
remixing-produce-lfe = yes
remixing-consume-lfe = yes
lfe-crossover-freq = 120
default-sample-channels = 8

This enables remixing, which is the process of mixing the stereo channels and output them to the other available channels (side, rear, center and subwoofer). This is what makes the biggest difference.
I also changed the resample method. By default, I was using speex-float-1, which produced a lot of crackling and distortion. With speex-float-7, I don't notice them anymore.
Now that all the speakers are working, I used pulseeffects to tweak the sound.

Enable "Limiter" and move it all the way up so it's first in the chain. Set "Input Gain" at -8dB and leave "Limit" at 0dB
Enable "Equalizer" and tune it to make the sound feel how you like.
Enable "Bass enhancer" and set amount to 2dB.
Disable everything else

Now it sounds way better!


NTFS Archiving drive is only permanently deleting and cannot send items to trash

This issue ended up resolving itself once I rebooted the machine.


Connecting the envelope indicator in panel to my GMail account in 13.10

Unity Mail
There is a useful application unity-mail designed for use with a GMail account but also suitable for other accounts.
After installation it will make use of the mail indicator in the top panel. The indicator will turn blue on unread mails, and the mail subject will be listed on dropdown. Clicking on the Unity Mail entry will open GMail in your browser.

In addition you can have a Launcher icon which displays the count of unread mails, and will also give easy access to GMail inbox, composer, or application settings, and more.

On the settings menu you can define the interval Unity Mail checks for new mails, as well as various notification on receiving mails:

Unity Mail can manage several different accounts.
For newer releases (>= 15.10) Unity-Mail can be installed from the official ppa:
ppa:robert-tari/main


Run the following command in Terminal

gsettings set org.gnome.desktop.background picture-uri file:///path/to/your/image.png

This will change the Desktop Background to image.png.


Intellectual Property Rights Policy Summary Question

Extracted from the comment conversation and my comments:

You are asking whether you can use Ubuntu's repos on your derivative and then give this new OS to others.

According to this, you can:

https://wiki.ubuntu.com/DerivativeDistroHowto/#Usage_of_Ubuntu_servers_as_sources_of_binary_packages


64-bit DB2 10.5 missing 32-bit libpam and 64-bit libaio on Ubuntu 12.04

On Ubuntu server 14.04.02 (64 bit) I had to install the following packages before installing DB2 10.5:

libx32stdc++6
libpam0g:i386
libaio1


Having many issues trying to dual boot Ubuntu with Windows 7

I'm not sure what might cause the Ubuntu installer to be unable to detect your Windows 7 partitions, but for now you can select "Something Else" and manually select your install method.

You should shrink your Windows partitions and create free space, then create a new ext4 partition to be formatted with / as mount point.


Network manager is still installed, it's just the dependency that's not there.

Uninstall arping and find something that doesn't create conflicts.  Or try and find another source for it.  I dunno... I've installed arping and it never made dependency issues for me.

sudo apt-get remove --purge arping

Reinstall the network manager, and apt-get will fix the dependencies.

sudo apt-get install --reinstall network-manager


Assuming this is the package "Software-center"

open a terminal window, and type

kdesudo software-center

if that doesnt work try

sudo software-center


Fuzzy visuals and low fps in games, screen tearing in both games and web browser. Happened after changing up drivers

For any one who might come across this in the future, I have solved it.

What I did in the first place was use fglrx-updates, without ever using the original fglrx driver. Once I switched over I was able to play my games and there is no screen tearing.


Really weird situation with Swap that refuses to work

Have you added your swap space to /etc/fstab? If not, add it like so:

/[your swap path here] swap swap defaults 0 0

When added to fstab, try rebooting. Anything in fstab is mounted automatically on boot, so after that, verify that swap is there with

free -m

More info here (although this example focuses on creating a swap file) :)


You need to install the following:

exfat-fuse - read and write exFAT driver for FUSE
exfat-utils - utilities to create, check, label and dump exFAT filesystem

So your computer can finally see the exFAT formatted stick of yours. to install use the following line in terminal (ctrl+alt+t):

sudo apt-get install exfat*


Installing CUDA 8 .deb file error in Ubuntu 16.04

I suppose you had the CUDA 8's beta version installed, and now you're trying to install the stable version. I had a similar issue.

Try using the --force-overwrite flag

sudo dpkg -i --force-overwrite cuda-repo-ubuntu1604-8-0-rc_8.0.27-1_amd64.deb

on the next screen that follows, select Y to confirm overwrite.


cd command doesn't work with Pycharm/IdeaVim

IdeaVim != Vim.

Looking at the code, it uses Runtime.exec() to run commands, which doesn't use a shell. So, :!cd is meaningless here.


You want the -d, --directory option.

  list directories themselves, not their contents

So ls -t -1 --directory backup* | head -n 1


Internet Connections Ubuntu 12.04 Server with Unity GUI

you can give the static ip to your system.

type as sudo nano /etc/network/interfaces

there you will some lines and with dhcp at the end point .for example like this

iface eth0 inet dhcp

Now you have replace dhcp with static. Then mention all other contents like netmask,gateway etc .for example

address XXX.XXX.XXX.XXX
netmask XXX.XXX.XXX.XXX
gateway XXX.XXX.XXX.XXX

Then press CTRL+x and Y and press ENTER to save the file . so up to this we have setup a static connection and now we have to mention Information about DNS server . to do that type this

sudo nano /etc/resolv.conf

then type there as

nameserver 8.8.8.8
nameserver 8.8.4.4

Those are the better DNS servers i know , if you know or have you anything good then place the address after nameserver .

Then again CTRL+x and Y and press ENTER to save the file. Now you have to restart your Network manager .

type this command to restart

sudo /etc/init.d/networking restart

Then check it out . I am sure it will for you . all the best .


The pf-kernel includes patches to the Linux kernel which means task scheduling, process management, memory management, and SSD caching. Most of the improvements have nothing to do with the speed of your hard drive but rather how the operating system handles the applications running on your computer. They're designed to make the system more efficient, which in many cases might mean faster responses and lower power consumption.

There are some features (like SSD caching) which would be useless to you if you don't have a disk drive, but otherwise you should be able to see benefits from the other features in the kernel.

You might want to look in to benchmarks and stability first to determine what the risks of using the pf-kernel as opposed to the mainline kernel are and if they're worth the performance increases. If the benefits were significant and the code was stable, I'd find it odd not to be in the mainline.


What is the command to know my PulseAudio version?

pulseaudio --version

This should give you an output something like this:

pulseaudio 0.9.21-63-gd3efa-dirty

To get the version of the Debian package you have installed, use:

dpkg -l pulseaudio

which will give output like this:

||/ Name             Version          Description
+++-================-================-================================================
ii  pulseaudio       1:0.9.22~0.9.21+ PulseAudio sound server


scripts in if-up.d not executed when ppp connection is created

For example put this script in /etc/ppp/ip-up.d/ to make default route to ppp0 interface every time when go up, make script called script with execute permissions 755

sudo nano /etc/ppp/ip-up.d/script

# Check for specific interface if desired
[ "$PPP_IFACE" != "ppp0" ] || exit 0
# Do something
sudo route add default dev ppp0
chmod 755 /etc/ppp/if-up.d/script

Try


How can I repair gnome-keyring to unlock my SSH keys automatically after login?

I also have this problem on my laptop.  The only workaround I've found so far is manually adding it once after I boot using "ssh-add" cli.


No sound on USB headset. How to manage soundcards and audio devices?

Managing soundcards and audio devices

USB and Bluetooth audio devices are individual sound cards, which means that connecting a Bluetooth headset doesn't work like connecting a headset via 3.5mm audio jack, where jack sensing assumes that you want to play audio through the recently connected headset instead of the laptop speakers.

Therefore when adding new audio devices like Bluetooth or USB headsets and speakers as well es new soundcards or audio interfaces, you should check your configuration to make sure that the sound is played by the device you intend to use. The easiest way is via the Sound Indicator in Unity or via System Settings > Sound:

If your new connected device is the Sennheiser BTD 500 USB in this example, then you should check that it is selected in the Play sound through list.

Alternatively you can use PulseAudio Volume Control to manage your sound cards. It provides many more options such as routing only certain streams (sound from applications) to certain devices. Some applications such as VLC (via package vlc-plugin-pulse) also offer to choose the audio device independently.

Related topics and questions

For KDE and Kubuntu, take a look at Phonon.
Question: Is there any Sound enhancers/equalizer?
Question: How to play music, coming from the microphone jack?
Question: How to play audio from different applications on different output devices?
For further troubleshooting see the Debugging Sound Problems guide.


$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade

Remove all no longer required packages:

$ sudo apt autoremove

Next, open and edit /etc/update-manager/release-upgrades file and set Prompt=normal to avoid No new release found message. Save the file.

Run:

$ sudo do-release-upgrade

If upgrading before the official 18.10 release date or while the upgrade from 18.04 is still not available use -d to perform upgrade:

$ sudo do-release-upgrade -d


Kubuntu 15.04 failure to dual boot, missing GRUB menu

Some shot-in-the-dark suggestions, in no particular order:

Disable Secure Boot in your firmware setup utility.
Download the USB flash drive or CD-R version of rEFInd and boot from it. If you can get it, you can attempt subsequent repairs from your full installation.
Use an emergency boot system to install any EFI boot loader of your choice. Many of these are easier to set up and repair manually than GRUB. (rEFInd is one of these options.)
Run Boot Repair on your system. If this step doesn't work, save the URL it presents and, if you can't get your system booting, post the URL here.

If you need more help, be sure to post your Boot Repair output. Without it (or equivalent data gathered manually), we're left guessing at the cause of your problem.


Is there anyway to check if I'm connected via a VPN through command line?

I have been googling much more than I care to admit about this matter. Here is the problems:

A VPN is a direct "tunnel" to your VPNServer. If you are trying to
use a traceroute it will not bounce on the server because it's a
tunnel. It doesn't have to bounce at the "end of the tunnel".
traceroute is a layer 3 utility and VPN is a layer 2 protocol. As far as I read there isnt any utility that operates on level 2 layer.

The only way you can see if you are connected through the VPN is doing a tcpdumpon the server and see if you have any traffic going through the server or the usual ifconfig -aand checks if there is any tun0as an interface.


Have multiple monitors, primary display leaks onto secondary

In my case, the fix was to adjust the position of the second monitor through xrandr. Adjusting the position by one pixel did not help, so I adjusted it by 2 and it works just fine. I used the following command:

sudo xrandr --output HDMI-0 --pos 1368x0

And then creating a file in my home directory called .xprofile and reentering the command; so it will set the position every time I log in.


How to indent multiple lines by single characters in Geany?

As @DK Bose said in his comment above...

Position the cursor directly in front of the first line which you
are wanting to indent by 1 or more single character spaces.
Press Alt+Shift and (in my case) press the down arrow to grow the
cursor to how ever many lines you want (removing line wrapping
helps!).  Basically you'll end up with a very long vertical cursor
blinking.
Press space!  It will now move multiple lines at the same time by a
single character spacing.


What is the interpretation of `awk -F':' '$2 ~ "\$" {print $1}' /etc/shadow`?

The command won't output the list of users logged in into the machine; in fact the command will parse /etc/shadow, which has no notion of the users logged in into the machine.

The command will output the list of users who have a password set for their account.

Here's the command breakdown (note that this is referred specifically to MAWK, which is the AWK version installed on Ubuntu, where specifying a pattern enclosed in "" is correct and requires the same escaping required for a pattern enclosed in //, as explained in man mawk):

-F':': sets the field separator (correspondent to AWK's internal FS variable) to :; that means that each record's (or line's in this case) fields will be splitted on the : character, and that references such as $1, $2, $3, ... will reference respectively the first colon-delimited string of the current record, the second colon-delimited string of the current record, the third colon-delimited string of the current record, ... .
$2 ~ "\$": this is a so called "pattern"; it's a condition which is evaluated each time a record is processed. The condition in this case is: if the second field matches the regex \$ (i.e. if the second field contains the character $), execute the following "action".
{print $1}: this is a so called "action"; it's a block of code which is executed each time the previous condition evaluates as TRUE. It prints the first field.


I get an error message when I am playing a playlist in Audacious 3.8.2

I Don't know what "console" is either.However,you can try going into Disks utility and check the settings on whatever hard drive you are dealing with.There is a setting that decides whether to spin down the (spinning)disk when idle.Of course this does not apply to the boot drive or any other SSD,so that part is a mystery to me.Sorry.


Ubuntu 18.04 driver for dell uz2315h integrated webcam

After a while, I tried again the lsusb -t and its relevant lines were:

/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
|__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
    |__ Port 4: Dev 58, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 4: Dev 58, If 0, Class=Video, Driver=uvcvideo, 480M

namely the driver that was missing suddenly appears and by no action on my part. Strange...!

And cheese and skype both find the integrated webcam and display video!

Regards

Meir