gedit code to embed current date within the file

Does the gedit editor have a code to automatically embed the current date when I save a file?

I have gedit 3.28.1 and am not aware of such a code.

The following script inserts a timestamp into your file as the last line at the time you save the file with plain text editors such as gedit or geany and for LibreOffice Writer on x11. I don't use Wayland.

You'll need to install xdotool and xsel.

#!/bin/bash

sleep 0.1 && xdotool key ctrl+End Return;

sleep 0.1 && date '+%Y-%m-%d %H:%M:%S' | tr -d "\n" | xsel -i -b;

sleep 0.1 && xdotool key "ctrl+v";

sleep 0.1 && xdotool key "Alt+F4";

exit

I saved the script as add-timestamp.sh in ~/bin, made it executable, and assigned Shift+Super+S as its keyboard shortcut.

My laptop is a bit aged; maybe the various sleep entries aren't needed on a faster machine.

Credit to http://www.arcadien.net/node/48


Problems with two monitors and Ubuntu 19.10

So I solved the problem. The problem was that I used two HDMI to VGA adapter for both monitors. Now with 1 HDMI to VGA, and 1 HDMI to DVI-D it works fine. Lesson: don't use two VGA adapter.


How to make alt+backtick switch only windows on the current workspace?

In Ubuntu 20.04, to do what you want, I had to set both:
gsettings set org.gnome.shell.app-switcher current-workspace-only true
gsettings set org.gnome.shell.window-switcher current-workspace-only true

(the first is non-default in 20.04).
You can do this from the command line, or by installing sudo apt-get install dconf-editor then running dconf-editor (see detailed guide)
I found that the reload button in dconf-editor wasn't sufficient - I had to reboot (perhaps re-login would have been sufficient?).
With the defaults (window-switcher current-workspace only, but app-switcher not), Alt-` gives the contrary behaviour where the app-switcher is confined to the current workspace but the window-switcher within each app is not. So, for example, if you have browser windows open in other workspaces, you will have to cycle through them all. Setting the app-switcher to current-workspace-only should limit both to the current workspace.
According to the 19.04 release notes, Alt-Tab was changed from app-switcher to window-switcher. So, from 19.04 onwards (only tested in 20.04), I suggest you use Super-` and/or Super-Tab. You can hold down the Super while tapping either of the other keys in order to cycle through apps and/or windows (see switching between windows).
Super-` gives the same contrary behaviour unless you confine both the app-switcher and the window-switcher to current-workspace-only.
Note: Super is the Windows key and ` will often be whatever key is above Tab, whether or not it is labelled with a backtick or grave accent.


A power outage can cause severe hammock. If your technical skills are moderate, by far the fastest, easiest and best option will be to reinstall from scratch. A "fresh" reinstall, i.e., where you install the new operating system on an empty disk, is always so much better than an in-place upgrade of an existing system. It takes no more than 45 minutes on an older system to have a fully working new (but not customized) installation.

Alternatively, you could try repairing a corrupt system by reinstalling, however without reformatting the partitions. That way, your user data and user configuration is preserved. To do so, load the installer from the live CD or USB, then select "Something else" as installing option. This brings you to a partitioning screen. There, you need to indicate the same partitions as these from the previous installations, and uncheck the "Format" mark to indicate the partitions should not be reformatted before installation.

I strongly recommend a fresh re-installation, though.


System Monitor: can't see anything aside from process name

If you would move mouse cursor over boundary between columns Process Name and User you can make left column narrower with <-> cursor by moving it to the right.

Or check GNOME System Monitor settings with

dconf dump /org/gnome/gnome-system-monitor/

  (pay attention here for
   [proctree]
   col-0-width=...
  )

then try to reset all settings of GNOME System Monitor with dconf utility (it is located in dconf-cli package):

dconf reset -f /org/gnome/gnome-system-monitor


Extra effects does not appear on Dell Inspiron 5010

In a regular Desktop Edition install, the graphic effects you are looking for are done by a program called Compiz.

The Unity interface you see in Ubuntu Netbook Edition uses Mutter, a new program that also generates graphical effects.

Since Mutter and Compiz are used to do the same thing, they cannot be used together. In short, it's not possible to get those effects on 10.10 Netbook Edition.

Look forward to 11.04 Natty Narwhal, it uses Compiz for Unity with even cooler desktop effects!


Whenever you edit files in /etc/grub.d, you need to run
sudo update-grub

to create a new configuration file (/boot/grub/grub.cfg) and thus apply the changes you made with your edit.


How to install full ubuntu-desktop after installing with the minimal option?

Okay I got it. You need to remove ubuntu-desktop-minimal:

$ sudo apt remove ubuntu-desktop-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ubuntu-desktop ubuntu-desktop-minimal
0 upgraded, 0 newly installed, 2 to remove and 110 not upgraded.
After this operation, 100 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 159362 files and directories currently installed.)
Removing ubuntu-desktop (1.440.1) ...
Removing ubuntu-desktop-minimal (1.440) ...

Then install ubuntu-desktop:

$ sudo apt install ubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  aisleriot baobab branding-ubuntu cheese deja-dup duplicity gir1.2-geocodeglib-1.0 gir1.2-gst-plugins-base-1.0 gir1.2-gudev-1.0 gir1.2-rb-3.0 gir1.2-totem-1.0 gir1.2-totemplparser-1.0
  gir1.2-udisks-2.0 gnome-calendar gnome-mahjongg gnome-mines gnome-sudoku gnome-todo gnome-todo-common gnome-video-effects grilo-plugins-0.3-base gstreamer1.0-gtk3 guile-2.2-libs libabw-0.1-1
  libavahi-ui-gtk3-0 libboost-date-time1.67.0 libboost-filesystem1.67.0 libboost-iostreams1.67.0 libboost-locale1.67.0 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5
  libcolamd2 libcurl4 libdazzle-1.0-0 libdmapsharing-3.0-2 libe-book-0.1-1 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1
  libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgnome-games-support-1-3 libgnome-games-support-common libgnome-todo libgom-1.0-0 libgpgmepp6 libgpod-common libgpod4 libgrilo-0.3-0 liblangtag-common
  liblangtag1 liblirc-client0 liblua5.3-0 libmessaging-menu0 libmhash2 libminiupnpc17 libmspub-0.1-1 libmwaw-0.3-3 libmythes-1.2-0 libnatpmp1 libneon27-gnutls libodfgen-0.1-1 liborcus-0.14-0
  libpagemaker-0.0-0 libqqwing2v5 libraptor2-0 librasqal3 libraw19 librdf0 libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome
  libreoffice-gtk3 libreoffice-impress libreoffice-math libreoffice-pdfimport libreoffice-style-breeze libreoffice-style-colibre libreoffice-style-elementary libreoffice-style-tango
  libreoffice-writer librevenge-0.0-0 librhythmbox-core10 librsync2 libsgutils2-2 libsuitesparseconfig5 libtotem0 libvisio-0.1-1 libvncclient1 libwinpr2-2 libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4
  libxmlsec1-nss libyajl2 lp-solve media-player-info python3-bcrypt python3-fasteners python3-future python3-lib2to3 python3-lockfile python3-mako python3-markupsafe python3-monotonic
  python3-paramiko python3-uno remmina remmina-common remmina-plugin-rdp remmina-plugin-secret remmina-plugin-vnc rhythmbox rhythmbox-data rhythmbox-plugin-alternative-toolbar rhythmbox-plugins
  shotwell shotwell-common simple-scan syslinux syslinux-common syslinux-legacy thunderbird thunderbird-gnome-support totem totem-common totem-plugins transmission-common transmission-gtk
  ubuntu-desktop-minimal ubuntu-web-launchers uno-libs3 ure usb-creator-common usb-creator-gtk vino
Suggested packages:
  gnome-cards-data gnome-video-effects-frei0r python3-boto python3-cloudfiles python3-swiftclient ncftp lftp tahoe-lafs python3-pip par2 gnome-video-effects-extra grilo-plugins-0.3-extra
  freerdp2-x11 grilo-plugins-0.3 lirc minissdpd natpmpc raptor2-utils rasqal-utils librdf-storage-postgresql librdf-storage-mysql librdf-storage-sqlite librdf-storage-virtuoso redland-utils
  libreoffice-base ocl-icd-libopencl1 | mesa-opencl-icd | beignet-opencl-icd gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav libreoffice-evolution libreofficekit-data
  breeze-icon-theme tango-icon-theme fonts-crosextra-caladea fonts-crosextra-carlito libreoffice-java-common default-jre | sun-java6-jre | java6-runtime | jre sg3-utils python-future-doc
  python-lockfile-doc python3-beaker python-mako-doc python3-gssapi remmina-plugin-exec remmina-plugin-nx remmina-plugin-spice remmina-plugin-telepathy remmina-plugin-xdmcp gnome-codec-install
  rhythmbox-plugin-cdrecorder rhythmbox-plugin-zeitgeist ttf-lyx java5-runtime
The following NEW packages will be installed:
  aisleriot baobab branding-ubuntu cheese deja-dup duplicity gir1.2-geocodeglib-1.0 gir1.2-gst-plugins-base-1.0 gir1.2-gudev-1.0 gir1.2-rb-3.0 gir1.2-totem-1.0 gir1.2-totemplparser-1.0
  gir1.2-udisks-2.0 gnome-calendar gnome-mahjongg gnome-mines gnome-sudoku gnome-todo gnome-todo-common gnome-video-effects grilo-plugins-0.3-base gstreamer1.0-gtk3 guile-2.2-libs libabw-0.1-1
  libavahi-ui-gtk3-0 libboost-date-time1.67.0 libboost-filesystem1.67.0 libboost-iostreams1.67.0 libboost-locale1.67.0 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5
  libcolamd2 libcurl4 libdazzle-1.0-0 libdmapsharing-3.0-2 libe-book-0.1-1 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1
  libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgnome-games-support-1-3 libgnome-games-support-common libgnome-todo libgom-1.0-0 libgpgmepp6 libgpod-common libgpod4 libgrilo-0.3-0 liblangtag-common
  liblangtag1 liblirc-client0 liblua5.3-0 libmessaging-menu0 libmhash2 libminiupnpc17 libmspub-0.1-1 libmwaw-0.3-3 libmythes-1.2-0 libnatpmp1 libneon27-gnutls libodfgen-0.1-1 liborcus-0.14-0
  libpagemaker-0.0-0 libqqwing2v5 libraptor2-0 librasqal3 libraw19 librdf0 libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome
  libreoffice-gtk3 libreoffice-impress libreoffice-math libreoffice-pdfimport libreoffice-style-breeze libreoffice-style-colibre libreoffice-style-elementary libreoffice-style-tango
  libreoffice-writer librevenge-0.0-0 librhythmbox-core10 librsync2 libsgutils2-2 libsuitesparseconfig5 libtotem0 libvisio-0.1-1 libvncclient1 libwinpr2-2 libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4
  libxmlsec1-nss libyajl2 lp-solve media-player-info python3-bcrypt python3-fasteners python3-future python3-lib2to3 python3-lockfile python3-mako python3-markupsafe python3-monotonic
  python3-paramiko python3-uno remmina remmina-common remmina-plugin-rdp remmina-plugin-secret remmina-plugin-vnc rhythmbox rhythmbox-data rhythmbox-plugin-alternative-toolbar rhythmbox-plugins
  shotwell shotwell-common simple-scan syslinux syslinux-common syslinux-legacy thunderbird thunderbird-gnome-support totem totem-common totem-plugins transmission-common transmission-gtk
  ubuntu-desktop ubuntu-desktop-minimal ubuntu-web-launchers uno-libs3 ure usb-creator-common usb-creator-gtk vino
0 upgraded, 147 newly installed, 0 to remove and 110 not upgraded.
Need to get 73,3 MB/174 MB of archives.
After this operation, 663 MB of additional disk space will be used.

And moving back to minimal by installing ubuntu-desktop-minimal and then removing ubuntu-desktop also works:

$ sudo apt remove ubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  aisleriot baobab branding-ubuntu cheese deja-dup duplicity gir1.2-geocodeglib-1.0 gir1.2-gst-plugins-base-1.0 gir1.2-gudev-1.0 gir1.2-rb-3.0 gir1.2-udisks-2.0 gnome-calendar gnome-mahjongg
  gnome-mines gnome-sudoku gnome-todo gnome-todo-common gnome-video-effects gstreamer1.0-gtk3 guile-2.2-libs libabw-0.1-1 libavahi-ui-gtk3-0 libboost-date-time1.67.0 libboost-filesystem1.67.0
  libboost-iostreams1.67.0 libboost-locale1.67.0 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libcurl4 libdazzle-1.0-0 libdmapsharing-3.0-2 libe-book-0.1-1
  libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgnome-games-support-1-3
  libgnome-games-support-common libgnome-todo libgpgmepp6 libgpod-common libgpod4 liblangtag-common liblangtag1 liblirc-client0 libmessaging-menu0 libmhash2 libminiupnpc17 libmspub-0.1-1
  libmwaw-0.3-3 libmythes-1.2-0 libnatpmp1 libneon27-gnutls libodfgen-0.1-1 liborcus-0.14-0 libpagemaker-0.0-0 libqqwing2v5 libraptor2-0 librasqal3 libraw19 librdf0 libreoffice-base-core
  libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-math libreoffice-pdfimport libreoffice-style-breeze
  libreoffice-style-colibre libreoffice-style-elementary libreoffice-style-tango libreoffice-writer librevenge-0.0-0 librhythmbox-core10 librsync2 libsgutils2-2 libsuitesparseconfig5 libvisio-0.1-1
  libvncclient1 libwinpr2-2 libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4 libxmlsec1-nss libyajl2 lp-solve media-player-info python3-bcrypt python3-fasteners python3-future python3-lib2to3
  python3-lockfile python3-mako python3-markupsafe python3-monotonic python3-paramiko python3-uno remmina remmina-common remmina-plugin-rdp remmina-plugin-secret remmina-plugin-vnc rhythmbox
  rhythmbox-data rhythmbox-plugin-alternative-toolbar rhythmbox-plugins shotwell shotwell-common simple-scan syslinux syslinux-common syslinux-legacy thunderbird thunderbird-gnome-support
  transmission-common transmission-gtk ubuntu-desktop-minimal ubuntu-web-launchers uno-libs3 ure usb-creator-common usb-creator-gtk vino
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  ubuntu-desktop
0 upgraded, 0 newly installed, 1 to remove and 110 not upgraded.
After this operation, 50,2 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 174224 files and directories currently installed.)
Removing ubuntu-desktop (1.440.1) ...

$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  aisleriot baobab branding-ubuntu cheese deja-dup duplicity gir1.2-geocodeglib-1.0 gir1.2-gst-plugins-base-1.0 gir1.2-gudev-1.0 gir1.2-rb-3.0 gir1.2-udisks-2.0 gnome-calendar gnome-mahjongg
  gnome-mines gnome-sudoku gnome-todo gnome-todo-common gnome-video-effects gstreamer1.0-gtk3 guile-2.2-libs libabw-0.1-1 libavahi-ui-gtk3-0 libboost-date-time1.67.0 libboost-filesystem1.67.0
  libboost-iostreams1.67.0 libboost-locale1.67.0 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libcurl4 libdazzle-1.0-0 libdmapsharing-3.0-2 libe-book-0.1-1
  libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgnome-games-support-1-3
  libgnome-games-support-common libgnome-todo libgpgmepp6 libgpod-common libgpod4 liblangtag-common liblangtag1 liblirc-client0 libmessaging-menu0 libmhash2 libminiupnpc17 libmspub-0.1-1
  libmwaw-0.3-3 libmythes-1.2-0 libnatpmp1 libneon27-gnutls libodfgen-0.1-1 liborcus-0.14-0 libpagemaker-0.0-0 libqqwing2v5 libraptor2-0 librasqal3 libraw19 librdf0 libreoffice-base-core
  libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-math libreoffice-pdfimport libreoffice-style-breeze
  libreoffice-style-colibre libreoffice-style-elementary libreoffice-style-tango libreoffice-writer librevenge-0.0-0 librhythmbox-core10 librsync2 libsgutils2-2 libsuitesparseconfig5 libvisio-0.1-1
  libvncclient1 libwinpr2-2 libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4 libxmlsec1-nss libyajl2 lp-solve media-player-info python3-bcrypt python3-fasteners python3-future python3-lib2to3
  python3-lockfile python3-mako python3-markupsafe python3-monotonic python3-paramiko python3-uno remmina remmina-common remmina-plugin-rdp remmina-plugin-secret remmina-plugin-vnc rhythmbox
  rhythmbox-data rhythmbox-plugin-alternative-toolbar rhythmbox-plugins shotwell shotwell-common simple-scan syslinux syslinux-common syslinux-legacy thunderbird thunderbird-gnome-support
  transmission-common transmission-gtk ubuntu-desktop-minimal ubuntu-web-launchers uno-libs3 ure usb-creator-common usb-creator-gtk vino
0 upgraded, 0 newly installed, 136 to remove and 110 not upgraded.
After this operation, 657 MB disk space will be freed.


Pulseaudio >= 1.0

By editing the /etc/pulse/default.pa we can load the pulseaudio module module-switch-on-connect to autoconnect to an audio sink as soon as it is presented to the pulseaudio  sound server. We need to insert the following line

load-module module-switch-on-connect

Previous versions of pulseaudio

Bluetooth devices are recognized in PulseAudio as soon as they are present. However connection needs to be made manually in audio settings. There is a GUI that allows one-click connection to BT devices (stream2ip).

Edit: From version 0.2.5 stream2ip allows auto-connecting to Bluetooth devices.

Edit: you can set up your bluez device as default device (e.g. by using pactl or in the config settings) with fallback to internal audio if no bluetooth device is present.

Edit: Here is a quick and dirty Python script to give you an idea on how to do the job:

#!/usr/bin/env python
#-*- coding: utf-8 -*-
#
# bt-autoconnect
# Autoconnects Bluetooth Devices to PulseAudio
# (c) Takkat Nebuk
# Licence: GPLv3
# usage:
# bt-autoconnect <MAC> <timeout>

import subprocess
import time
import sys
import string

cli_options = sys.argv

def main():
    MAC = cli_options[1]
    timeout = cli_options[2]
    PMAC = string.replace(MAC,':','_') # PA don't know ':', needs '_'
    pa_args = ['pacmd set-default-sink bluez_sink.' + PMAC]
    bt_args = ['sdptool browse ' + MAC]
    err = False
    while err == False:
        if subprocess.call(bt_args, shell=True) == 0:
            err = subprocess.call(pa_args, shell=True)
        time.sleep(int(timeout))
    exit()

if __name__ == "__main__":
    main()

Just copy this script and save it as bt-autoconnect.py. Make the script executable or run it from command line (recommended) by cd /script/directory and then type:

python bt-autoconnect.py [MAC] [timeout]

Replace MAC by the MAC of your Bluetooth device (e.g. 00:0C:78:4F:B6:B5) and set a desired timeout (e.g. 10) in seconds when the script looks for the device. This script will then listen to the given MAC every timeout seconds for a Bluetooth device and connects it to PulseAudio if present. The script will run forever until it's being killed or the virtual terminal was closed.

Sometimes PulseAudio seems not to be aware of the device being present again after it has been switched out. With some hope pulseaudio -k makes it reappear.

Not fancy, no GUI but at least in my settings it worked o.k..

Edit for those interested: bt-autoconnect with GUI for convenient setup is released. Please file bugs or suggestions there. Thank you for testing.


Hi buddy :) My guess is you can't ctrl + alt + F3 to systemd-analize blame or journalctl ?
For boot logs, you'll find everything you need in that post.

TL;DR

According to that post, there are no logs of previous boots because it would be storage disk waste.
You need to enable it

sudo -i
mkdir -p /var/log/journal
systemd-tmpfiles --create --prefix /var/log/journal
systemctl restart systemd-journald
exit

Then everything will log.

You can list the existing logs with
journalctl --list-boots then read the logs with journalctl -b-# (substitute the # with the appropriate number : 1 for last boot, 2 for the one before, 3 for the one before again, etc.


Move Files To Directories Based on File Name

This is probably enough:

cp /media/Downloads/Complete/Movies/[tT]he[\ .][A-Ma-m]* /media/Movies_A/
cp /media/Downloads/Complete/Movies/[tT]he[\ .][N-Zn-z]* /media/Movies_B/
cp /media/Downloads/Complete/Movies/[A-Ma-m]* /media/Movies_A/
cp /media/Downloads/Complete/Movies/[N-Zn-z]* /media/Movies_B/

I used cp so you can redo it as many times as you like.

The [] in the command make it a collection of letters. The \ is to escape the space. The [\ .] matches a space or a . so you will also copy The land and the.land and similar names correctly.

Tip: If you drop the 1st [ and type a t or T and then press TAB (twice?) it will show you all  the files that are included. If you then do a backspace and add the [ again you know you are on the right track.


while pidof java &> /dev/null; do
      sleep 1;
done


I had the same kind of problems, but I added the http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu and they are much quicker to solve problems with drivers then the standard Ubuntu repositories...

I currently have the 346.16 driver installed and that did away with all that flickering...


How do I enable Hibernation on a Sony VAIO VGN-NS235J?

There is a question and a bug report associated with this:

How to enable hibernation?

https://bugs.launchpad.net/ubuntu/+source/indicator-session/+bug/910183

The bug report mentions a workaround this.


Unable to start Lightworks on Ubuntu 15.04 produces (app goes to blank screen)

ok in case someone has the same problem

try restarting Ubuntu

if still doesn't change:

try the next beta version (I installed 12.5.A and solved the issue)


Which Ubuntu version will work best with 845G motherboard?

I answered a similar question here with regards to the i845 and unity/unity 2D.

The OP himself confirmed that Lubuntu was the recommended distro for your graphics type.

You should note, the chief reason for this is that intel have dropped support for the i8xx series of graphics chipset.  The support is legacy only with mainly stability fixes.  Thus the more newer interfaces such as Unity will not work correctly (no 3D acceleration).

Lubuntu has moved on for the better in v11.10 - I would warmly recommend you try this newer version rather than the slightly older Natty version of Lubuntu.


I think this post at "OMG! Ubuntu" would help you get what you are looking for. If not, I'd recommend you search the site as I have run into numerous posts there about monochrome app icons both for the desktop as well as for the indicator applet (a.k.a "tray")


I got it to work like this:

chgrp -R www-data /username/
chmod -R 2750 /username/

And also add in apache2.conf

<Directory /home/JOgn/Dropbox/www>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>


How to solve the error N: Ignoring file 'sources.list.tmp' in direct........?

Open the terminal and type:

cd /etc/apt/sources.list.d/
sudo rm sources.list.tmp sudo rm
sudo update


bluetooth fails to get enabled;  Unknown symbol security_sk_clone (err 0) in dmesg

My collegue just had this same issue on an Asus laptop after installing linux-backports-modules-cw-3.1-3.0.0-14-generic because his Bluetooth audio device would not connect (timeout). What solved the issue for him is installing the 3.2 kernel from Precise:

Go to http://packages.ubuntu.com/precise/linux-image
Follow the link to the *-generic package
Click amd64 if you're running a 64-bit OS or i386 for 32-bit machines
Download the package from a mirror
Install the .deb package

If you need to build out-of-tree modules (e.g. nvidia driver), you need to install two additional packages

Go to http://packages.ubuntu.com/precise/linux-headers-generic
Follow the link to the *-generic package
Choose a download on the amd64 or i386 page (open this in a new tab or window)
Follow the link to the linux-headers-* package
Choose a download on the amd64 or i386 page
Install both .deb packages

There is obviously a better way to do this, but this works for now.


Ubuntu 17.10 and 18.04 Beta 2 display driver issues (freezing/black screen after login)

Your nVidia seems to be a legacy card?
Try earlier version of nVidia proprietary driver or earlier linux kernels via UKUU program but it's kinda weird....maybe just try earlier graphic drivers. It may also be just a newer gnome desktop issue while other desktops works fine like cinnamon.


Using 15.10 and systemd, services work a bit differently. First, you need to create a systemd unit file at /usr/lib/systemd/system/openvpn@service and paste the following contents into it:

[Unit]
Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I
After=syslog.target network.target

[Service]
PrivateTmp=true
Type=forking
PIDFile=/var/run/openvpn/%i.pid
ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf

[Install]
WantedBy=multi-user.target

Then, when you want to start the service, simply run:

systemctl start openvpn@myopenvpn.service

If you would like to add it to system startup, you can edit your rc.local file:

sudo gedit /etc/rc.local

And paste the following in:

#!/bin/bash
systemctl start openvpn@myopenvpn.service

Then enable the rc.local service

systemctl enable rc-local.service


The default machine can be overridden with the -machine option:

qemu-system-x86_64 -machine pc ...

Replace pc accordingly.


If you want to, you can instead make a systemd .service file that does the same thing. A basic systemd .service file for the above command might look like the following:

[Unit]
Description=Start VNC server
Requires=lightdm.service
After=lightdm.service

[Service]
ExecStart=/usr/bin/x11vnc -auth /var/run/lightdm/root/:0  -display :0  -rfbauth /etc/x11vnc.pass  -rfbport 5900  -noxrecord -noxfixes -noxdamage -forever

[Install]
WantedBy=graphical.target

Things to note:

Because this service relies on lightdm starting up, I've added a Requires=lightdm.service. This means that if this service is requested to start, then lightdm.service will also be asked to start, but if lightdm.service fails to start, then this service won't be asked to start. Additionally, After=lightdm.service is needed so that this service will start after `lightdm.service has finished starting.
The command being run doesn't have -bg specified. In systemd, it's preferred that services stay in the foreground, so that systemd knows that they are running. Note that it is possible to specify a PID file for a service that goes into the background.
WantedBy=graphical.target specifies that, as part of starting up your GUI, this should also get started up.

To install this file so that the service is run as root, add this file into /etc/systemd/system. Then, run sudo systemctl enable <filename> (where <filename> is the name of the service file in /etc/systemd/system). A symlink should be created in /etc/systemd/system/graphical.target.wants/. After rebooting, when you run systemctl status <filename>, you should see that the service is recognized and not yet started.

Note that /etc/systemd/system/ is meant for system-wide services that the system administrator (you) add. /lib/systemd/system/ is meant for system-wide services installed by packages. You do not need to make a symlink to /lib/systemd/system/ for the service to load. The below table (taken from the systemd.unit manpage) describes what each location is for with regards to system services (there are separate paths for user services):

   ┌────────────────────┬─────────────────────────────┐
   │Path                │ Description                 │
   ├────────────────────┼─────────────────────────────┤
   │/etc/systemd/system │ Local configuration         │
   ├────────────────────┼─────────────────────────────┤
   │/run/systemd/system │ Runtime units               │
   ├────────────────────┼─────────────────────────────┤
   │/lib/systemd/system │ Units of installed packages │
   └────────────────────┴─────────────────────────────┘


How to Install WiFi (Netgear N600 Dual Band WNDA3100v3)

If you ran the command lsusb and find that your device is 0846:9053, then your device is driven by a very new driver, mt7662u_sta. Please get a temporary internet connection by ethernet, tethered or whatever means possible, open a terminal and do:

sudo apt-get update
sudo apt-get install git
git clone https://github.com/jurobystricky/Netgear-A6210.git
cd Netgear-A6210
make
sudo make install
sudo modprobe mt7662u_sta

According to the github page:

  This is work in progress. The driver is functional. However, there are
  still several issues that need to be addressed. In particular,
  hot-unplugging may cause the network manager to segfault. After
  plugging the dongle back in, you may need to restart the manager:

  $ sudo service network-manager restart

Of course, you can avoid this by not plugging or unplugging the device unless the computer is shut off.

You have compiled the driver for your current kernel version only. When Update Manager installs a newer kernel version, also known as linux-image, after the requested reboot, recompile:

cd Netgear-A6210
make clean
make
sudo make install
sudo modprobe mt7662u_sta

Please retain the file and these instructions for that time.

Update

The repository above hasn't received an update since 2017. Upstream development of the software has apparently been moved to https://github.com/Netgear-A6210-linux-driver/Netgear-A6210. Hence, the current (April 2020, tested on Ubuntu 18.04 LTS + mt7662u_sta driver) instructions for installing the driver are:

git clone https://github.com/Netgear-A6210-linux-driver/Netgear-A6210.git
cd Netgear-A6210
make
sudo make install


Problem:

Sed does not recognize [\s]+ as a sequence of whitespace characters.

Solution:

perl -i -lpe "s/\s+$//" 171.ExcelSheetColumnNumber.py

or:

sed -i -r "s/\s+$//" 171.ExcelSheetColumnNumber.py

or:

sed -i "s/\s\s*$//" 171.ExcelSheetColumnNumber.py

or, as per steeldriver's suggestion:

sed -i "s/[ \t]*$//" 171.ExcelSheetColumnNumber.py

Explanation:

[\s] means \ or s to plain sed, and + means literal +.
Drop the square brackets as they are unnecessary in this specific case.
Use a tool that understands the syntax you seem to be familiar with: Perl.
Alternatively, enable extended regular expressions in sed (still not the same as Perl).

-E, -r, --regexp-extended
    use extended regular expressions in the script (for portability use POSIX -E).

Or, modify your expression to only use symbols that are recognized by regular sed: * and not +.


In order to use a live USB, restart your computer. Enter the computer's BIOS using the Esc or F1 key or whatever allows access to the BIOS. Under bootup options or similar, be sure that booting from USB is enabled. Make sure the boot priority has USB first. Save the new settings, if any, and proceed to boot. You will then boot into Ubuntu on the USB rather than the operating system on the harddrive.


Dual Boot On Galaxy Note 2 ? ( Android / Ubuntu )

Yes there is a way. Check out this post on xdadevelopers.Hope it helps!! :)


jdk7.0_80 installation problem in 14.04 LTS

I think your problem is on this line:

PATH=/usr/lib/jvm/jdk1.7.0_80:$PATH

You need to add the bin directory to the PATH, because that's where the executables are:

PATH=/usr/lib/jvm/jdk1.7.0_80/bin:$PATH

And since you also defined JAVA_HOME, you could also use it here (to make it easier to read and change):

PATH=$JAVA_HOME/bin:$PATH

And by the way, there's no need to manually download and install, there are simpler ways to do it.

If you just need Java (not necessarily Oracle's Java), you could install OpenJDK:

sudo apt-get update
sudo apt-get install openjdk-7-jdk

If you don't want OpenJDK, and it has to be Oracle, then just do:

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

You may also want to have a look about Java in the Ubuntu documentation: https://help.ubuntu.com/community/Java


Now based on the situation for another user here please try this following steps:

Open a terminal after your system boot with the key combinations of Ctrl + Alt + t. then
Type sudo nano /etc/default/grub to open this file,
Change the GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi,noaer", after editing do:

Type Ctrl + o and then Enter followed by Ctrl + x: This will save and close the editor

Then run sudo update-grub, and reboot


Is there a command to round decimal numbers in txt files?

You can use the following perl oneliner:

perl -i -pe 's/(\d*\.\d*)/int($1+0.5)/ge' file

The -i option will automatically change your decimal numbers in-place.

The regex \d*\.\d* will ensure that only such numbers will be changed in your original file (i.e other strings will be left untouched)


Marlin as default file manager in Gnome 3.2 (Ubuntu 11.10)

This question was asked of the Marlin maintainer on Ubuntu Launchpad at the end of May 2011. This is the link to the answer that was marked as solved.

How to set Marlin as the default file manager

Notice this answer given by the maintainer on the first of June 2011:

  Hello, to make marlin default filemanager just click on a folder in
  nautilus "open with" and select marlin and check default application.
  However nautilus on gnome draw the desktop too, marlin doesn't, u can
  disable nautilus desktop via gconf or u can remove the filemanager
  flag in the session files (if u re using unity) or in gconf on other
  systems.

  Anyway it's a bit earlier to make marlin a default application, it's
  not released yet, we'll find an automated way to make it default when
  the time come.

  Happy testing.

A similar question was asked again on 10th December 2011 and also marked as solved. Here is the link.

Another Launchpad question about making Marlin the default file manager

So, you are using an application that is still being developed and is perhaps fit for testing but not yet ready for being a Nautilus replacement. It may work fine as a simple file manager but Nautilus does more than browse files and folders. This is why Nautilus stills opens when you perform the actions that you describe.

It also seems that Marlin is more suited to the Xfce desktop environment than the Gnome environment whether Gnome 2 or Gnome 3

Here is a link to the exo-utils package mentioned in the other links. Notice this description:

  This package contains the Xfce settings plugin and the utility files
  for ....

Launchpad link to exo-utils Oneiric package

The only other thing I can add is that you will find the exo-utils package in the Ubuntu software Centre but notice that it is listed as being an Xfce settings plugin. You are not using Xfce. Is this the cause of your problem and the answer?

Regards and happy testing


The correct way to build the test programs in the HElib/src directory appears to be via a target called Test_General_x rather than plain Test_General e.g.

$ make Test_General_x
HElib requires NTL version 9.4.0 or higher, see http://shoup.net/ntl
If you get compilation errors, try to add/remove -std=c++11 in Makefile

g++ -g -O2  -o Test_General_x Test_General.cpp fhe.a -L/usr/local/lib -lntl -lgmp  -lm

The relevant section of the Makefile is

./%_x: %.cpp fhe.a
        $(CC) $(CFLAGS) -o $@ $< fhe.a $(LDLIBS)

which you can see adds the fhe.a library dependency.


The devs disabled it for now but I believe they are planning to re-enable it in future

There is a Dynamic Panel Transparency GNOME extension you can get to enable it, which can be installed from the Ubuntu Software app.

Source: https://www.omgubuntu.co.uk/2019/04/how-to-re-enable-dynamic-transparency-on-the-ubuntu-19-04-desktop


As your profile isn't complete, I can't tell you what servers to use for your country.

However, a bunch of ISPs block NTP access outside of their realm, so do a google search in your native language of "NTP countryname" and use those first.

If that doesn't help, drop a comment @Fabby below.


It seems like the gpupro drives are only supported on Ubuntu 16.04, according to the release notes:

http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx

As of last month 17.10 was definitely not supported, and I am unable to find anything to suggest that this has changed in the meantime:

https://community.amd.com/thread/221534

Unfortunately, there doesn't seem to be much in the way of a workaround at this time, other than using Ubuntu 16.04, integrated graphics, or switching to a graphics card that has supported drivers.


How to make sure I stay on Linux kernel version 3.13 (Ubuntu 14.04)?

IF you are on 3.13 right now, you will stay on that kernel (possible with minor updates) the only reason you would get a newer kernel, is if you downloaded 14.04.4 or something else. You CAN upgrade it though, see here: https://wiki.ubuntu.com/Kernel/LTSEnablementStack .. But if you don't do anything, you will be fine :)


Check the advanced sharing settings in windows.  check to see if you have selected to use password protection sharing.  if it is enabled it will ask for user / password.  if you turn off password protection you should be able to access the windows system from ubuntu. Also check your sharing settings settings for the files / directories you want to share on the windows system.  I have found that if you use everyone I have not had issues accessing windows files thru ubuntu.  This is all based on using a local network without a domain.


You don't need piping, grep or ls. Just use shell globbing.

In bash, using extglob pattern (should be enabled by default in interactive sessions, if not do shopt -s extglob to set it first):

file1@(|?|??)

? matched any single character, @(||) selects any of the patterns separated by |.

If you only meant to match any characters between a-z and A-Z, use use character class [:alpha:] which denotes all alphabetic characters in the current locale:

file1@(|[[:alpha:]]|[[:alpha:]][[:alpha:]])

Example:

$ ls -1
file1
file112
file11a
file12A2
file1a
file1ab
file1Ab
file1as
file2
fileadb

$ ls -1 file1@(|[[:alpha:]]|[[:alpha:]][[:alpha:]]))
file1
file1a
file1ab
file1Ab
file1as

zsh supports this natively:

file1(|[[:alpha:]]|[[:alpha:]][[:alpha:]])

I am answering this portion very reluctantly, upon request from OP.

Any future reader, Don't parse ls, use globbing.

Using ls and grep:

ls | grep -E '^file1[[:alpha:]]{,2}$'

Example:

% ls | grep -E '^file1[[:alpha:]]{,2}$'
file1
file1a
file1ab
file1Ab
file1as


Why isn't GRUB installing to the MBA in this dual-boot setup?

Using the HDD for Windows 10 and Ubuntu you need to store the grub in the first disk sector.

On installing Ubuntu it will ask where to store grub, link it to /dev/sda.

With no # at the end.


The specific errors you are getting appear to be the result of a malformed shell command at line 233 of the Makefile:

$(shell if ! test -d $(OBJDIR) \; then mkdir -p $(DIRS) \; fi )

You need to remove the backslash escapes before the semicolons1:

$(shell if ! test -d $(OBJDIR) ; then mkdir -p $(DIRS) ; fi )

Bear in mind that this appears to be old possibly unmaintained code (the files in the tarball date from 2002-2003) so there may be other errors that you will need to deal with.

1  I can't find a reference that describes the escaping rules, I'm just basing this on the fact that semicolons aren't escaped elsewhere in the file, and the error appears to go away when they're removed


I think you are looking for festival

  --tts
  Synthesize text in files as speech no files means read from stdin (implies no interaction by default)

echo "I'm sorry Dave, I can't do that." | festival --tts


How are hddtemp, udisks2 and libatasmart compared to each other?

As you know they have nothing to do with each other, "psensor" is just a temperature monitoring application which uses other tools to gather its data.

For me because of permissions only udisks2 is working. anyway, you should test the output of these commands, if you get the same result (which you should) then there is no difference.

so they're just different sources.

As far as I know all of them gather their data using hard disk smart.

For "udisks2" use:

udisksctl dump /dev/sdX | grep -i temp

For "libsmart" you can look for smart data yourself, use:

sudo smartctl -a /dev/sdX | grep -i temp

And finally:

hddtemp /dev/sdX


The default sample rate is defined in the pulseaudio daemon.conf located in /etc/pulse, or in case you need user-defined settings in ~/.pulse. Uncomment and edit the follwing line there

default-sample-rate = 48000

Changes take effect after a restart of the Pulseaudio server (issue pulseaudio -k in a terminal or log out and back in).


Terminal supporting Keyboard Mark Mode (like Windows 10)?

Gnome terminal already allows selecting text with mouse and copying with Ctrl + Shift + C . Pasting is done with Ctrl + Shift + V.


Do you want to keep the default theme and just change the accent colours or do you want to install a new theme completely? Both are a viable option but the method depends on which version of ubuntu you have installed. Here are the procedures for (almost) all versions of ubuntu here:

This is a guide on how to theme Ubuntu prior to 17.10: How To Install Themes In Ubuntu 14.04 and 16.04 | itsfoss.com

For ubuntu 17.10 onwards: How to Install Themes in Ubuntu 18.04 and 17.10 | itsfoss.com

Now that you know how to theme ubuntu to turn it green I'd suggest "Ambience and radiance colors" (for ubuntu 16.04 and below). To install it open a terminal and type these commands:

sudo add-apt-repository ppa:ravefinity-project/ppa
sudo apt-get update
sudo apt-get install ambiance-colors radiance-colors

From ubuntu 17.10 onwards this option isn't viable. I'd suggest the adapta theme with papirus-adapta icons. to install the adapta theme type in a terminal these commands:

sudo apt-add-repository ppa:tista/adapta
sudo apt-get update && sudo apt-get install adapta-gtk-theme

To install the icons type:

sudo add-apt-repository ppa:papirus/papirus
sudo apt update && sudo apt install papirus-icon-theme

This will also install other variants of the papirus icons.


ubuntu 12.04 dual boot using windows 7 mbr

I had nearly the same problem. In my case I solved it using my laptop's native bootloader (I use ASUS) Before any system starts to boot I press Esc and get something like hardware bootloader which is no related to Windows or GRUB. I have a choise between 'Ubuntu boot loader' , 'Windows loader' , 'Windows recovery' , 'Boot from CD' , etc. If I choose Ubuntu I got GRUB loading, If windows, then Windows boot manager. I don't know if it will work on your laptop. Some laptops instead of Esc use F1, F2, F4, F8, F10, F11 or F12.


Does Meizu Pro 5 Ubuntu phone work in United States? Can i sign up with att or verizon or?

I have the phone and tried using it on all major usa wireless operators. trying to activate on sprint or verizon based MVNO's will result in invalid IMEI error. It works fine with H2O an ATT based MVNO and I even got a 4g connection with them.  I was also able to activate it on TPO a t-mobile based MVNO and got 3g.  Due to not supporting all the bands used by these carriers coverage is much worse then with my Nexus 5 on the same networks.


Yes, you can. Just be sure that the OS you want to use fits on the medium you're trying to install it on. For example, the latest versions of Ubuntu do not fit on a CD, and require either a DVD or USB drive. Also be sure the computer you wish to install on meets the necessary system requirements for the operating system.


Can't edit repos in synaptic, can't install ATI drivers, missing Unity Compiz plugin

I add files to /etc/apt/sources.list.d/ ... Synaptic might need to be launched as root to touch those directories if it doesn't ask to escalate when you try and add.  Then it's an apt-get update to get it into your local store.

Firstly, if I try and edit software sources in Synaptic,...

The driver being installed doesn't mean it's active.  Try switching with jockey-gtk

Secondly, I have an ATI Radeon HD 5800 GPU,...

CCSM is either deprecated, unsupported, or on its way out.  It hasn't worked for me properly in some time.  The mailing lists suggest that it's going to be removed for an ubuntu specific set of WM stuff.

Finally, the Unity plugin seems to be missing from the CompizConfig Settings...

Neither have I...but a re-install might not magically fix some of this

Is there likely to be a way of fixing all this,...


Ubuntu 20.04 freezes repeatedly; screen flickers; hard reboot required

It seems to have been a hardware problem causing RAM corruption/errors. See my question and my hardware debugging steps I took here: https://superuser.com/questions/1579994/can-unplugging-your-ram-stick-and-plugging-it-back-in-solve-ram-errors-problems/1580224?noredirect=1#comment2407315_1580224.
Removing and putting back in the RAM in the exact same slots as before seems to have cleaned the contacts and solved the problem, allowing the RAM to work properly again.
I thought it was an Ubuntu 20.04 software problem, but this time, I guess not.
Update again: see my comments under the answer linked-to just above. I got the motherboard and RAM replaced too, in the end.


sudo apt-get update command not working what i do

In Terminal, run sudo gedit /etc/apt/sources.list and scroll down to line 59. Put a # before whatever's listed there (Thanks, Jacajack), save it and then run sudo apt-get update.


What is the best way to develop apps for Ubuntu?

Python is a good choice as a starting language, and there is Quickly, which helps you to create graphical applications easily. Quickly helps you to set up everything you need to develop a GUI application.

Check out how to get started with Quickly on the Ubuntu App Developer site.

To install Quickly type:

sudo apt-get install quickly

You can then get a tutorial by executing:

quickly tutorial ubuntu-application

To create an application just type:

quickly create ubuntu-application Testapp

which will create an application called "Testapp" using the "ubuntu-application" template.

You can design the graphical user-interface by executing

cd testapp
quickly design

which will open Glade, the GUI designer.

To change the actual source code just type

quickly edit

Learning how the Python language works is essential to having a productive and easy experience developing in the Python, GTK, Quickly, Ubuntu environment. Here are some resources:

1: A Byte of Python (an easy introduction to the Python programming language, free)

2: Dive into Python (an advanced book, free)

3: Python for Software Design  (an advanced book, free)

Also, bookmark the PyGTK 2.0 Reference Manual.


cronjob on ubuntu: (CRON) INFO (pidfile fd = 3)

It sounds like cron has the wrong permission and is owned by another user.

Fixing this is simple, run this command to change the ownership to cron.

  sudo chmod 600 /etc/crontab

Then this to restart cron

  sudo service cron restart


KeepassX on 16.10 disabled the http option

Ok, it seems that I was using a fork of keepass on my other computer from here:
https://github.com/eugenesan/keepassx

keepassx is still maintained but the feature I was looking for (the keepasshttp integration) as yet to be merged (> 3 years old) -> https://dev.keepassx.org/issues/91 (there even is a PR: https://github.com/keepassx/keepassx/pull/111)

So if you are looking for a keepassx with keepasshttp support, you can get the version from eugenesan's ppa: https://launchpad.net/~eugenesan


Can i use the new AMD Beta Driver for my APU?

As per https://support.amd.com/en-us/kb-articles/Pages/AMD-Radeon-GPU-PRO-Linux-Beta-Driver%E2%80%93Release-Notes.aspx the driver only supports some of the R9 chipsets, and the new RX 480.

Therefore, these drivers will not work for your card.


How to make Thunderbird Mail runs at startup?

If you are using 14.04, simply add thunderbird to Startup Programs, accessed from the Dash.


How do I turn off passwords to log in and resume?

If you want to log in automatically when you turn on your PC, evoke dash (press "Super" or "Win" key) then type "login" and click on "Login Screen" icon, then tick on "Log in automatically" option

You can also turn off locking the screen for Screensaver if you type "Screensaver" in dash, then un-select "Lock screen" option


Ubuntu 10.10 upgrade results in blank screen after login

Based on your tags, it seems you are using Unity, the Ubuntu Netbook Edition's new interface in 10.10. Can you confirm that?

If that's the case, then you are probably affected by this bug:

https://bugs.launchpad.net/ubuntu-translations/+bug/614088

In that case, I have the same problem, as my installation in a Virtualbox virtual machine gives the same behaviour when I enable Unity.


To change that property, you'll need to hack the gtkrc file for the theme in question. I presume that you're working with Ambiance.

The first thing you probably want to due is make a local copy of the theme instead of working on the system wide copy. Let's call it Ambiance-Mod. Open a terminal an run this:

cp -r /usr/share/themes/Ambiance ~/.themes/Ambiance-Mod

You also need to edit the index.theme to use your new theme.

gedit ~/.themes/Ambiance-Mod/index.theme

Change all instances on Ambiance to Ambiance-Mod

You should have Ambiance-Mod in your "Apperience Preferences." Now let's edit the gtkrc file.

gedit ~/.themes/Ambiance-Mod/gtk-2.0/gtkrc

The the part that controls the text you'd like to change can be found on line 334, fg[INSENSITIVE] for style "menu" = "dark"

style "menu" = "dark" {
    xthickness = 0
    ythickness = 0

    bg[NORMAL] = "#43423f"
    bg[INSENSITIVE] = "#43423f"
    fg[INSENSITIVE]   = shade (0.54, "#43423f")

    engine "murrine"
    {
        roundness = 0
    }
}

You need to change shade (0.54, "#43423f") to use your desired Hex color. Try something like "#969696" Make sure it is quoted.

If you're not afraid of messing up the original theme, you could edit /usr/share/themes/Ambiance/gtk-2.0/gtkrc directly and skip the parts about copying the theme and renaming things in index.theme

If you'd like to play around with more options, check out the GTK Theming Tutorial on the GNOME wiki.


Can the Window Controls (Max, Min, Close) and the Title be moved to the Bottom?

No. The 2 choices are top left or top right.


Malformed line in my sources list, how to resolve?

Why is there a html page in your sources?

deb http://docs.openstack.org/havana/install-guide/install/apt/content/basics-packages.html

This does not belong in sources.list since it is not of a normal format.

Compare it to the other 2 and you will see the sources.list needs 4 sections and there are only 2 on this like. It is missing precise-updates/havana and main


How do I print a large single page in several small pages?

pdftools.PDFposter
sudo apt install pdfposter
pdfposter --help

Example, convert poster to 3x3 letter size
pdfposter -p3x3 Let my_1_large_page.pdf my_9_small_pages.pdf


What ubuntu should I download for a macbook air 2011?

Generally, you'll want to go with the newest version unless you are running a server or something and need LTS (Long Term Support). 13.04 should be fine.


You can try Easyengine: Its a one click nginx php5-fpm mysql and wordpress (Cache Support) setup scripts for Ubuntu

More About EasyEngine: http://rtcamp.com/easyengine/


Open a terminal and execute the following commands:

sudo nano /bin/start-tor

and copy/paste this into the file:

#!/bin/bash
~/Desktop/Tor/tor-browser_en-US/Browser/start-tor-browser

Press CTRL + o to save the file and press CTRL + x to exit and then execute the following commands in an open terminal:

sudo chmod +x /bin/start-tor

To run the script, open a terminal and run:

start-tor &

This file is already chmod +x when downloaded.so there is no need to do all that.


What exactly happened? This looks like an attack

Your system was likely not attacked. Teamviewer starts with the system by default (annoying I know, but true anyway) in the latest version I've tried.

The solution is to check both startup programs, and the following locations:

/home/rolandixor/.config/autostart
/usr/share/autostart

for an entry for Teamviewer, and if it exists, to remove it.

You were likely logged out due to a Xserver crash (this occasionally happens when watching videos or playing games, especially on proprietary drivers in my experience). Make sure that you apply any updates you may have missed.


"Empy Trash" opens Nautilus (Files) window

For now open terminal :

rm -rf ~/.local/share/Trash/*


I'm assuming you already checked the BIOS settings for boot order etc. since you mention Ubuntu does boot from USB. Also, make sure secure boot is disabled in the BIOS. In some instances, you have to set a BIOS admin/supervisor password before you are allowed to change the setting.

Other Possible issues could be the thumb drive, the utility you are using to create the windows USB install or the ISO. Are you sure the windows ISO is at all bootable ?

For best results, I'd recommend trying the Windows USB download tool

If you're sure the ISO is working and feeling a little bit bold, try Yumi. This (free for personal use) utility allows you to place multiple installations on a single thumb drive. With it, you can create a thumb drive which lets you choose between a mix of several windows versions and linux versions for installation.


Trying to make VLC/Quicktime stop but loop

I guess it would involved writing a bash script, using a while loop waiting for inputs to stop.

while :
do
    vlc -f --play-and-exit /path/to/film_1.avi
    vlc -f --play-and-exit /path/to/film_2.avi
    vlc -f --play-and-exit /path/to/film_3.avi
    vlc -f --play-and-exit /path/to/film_4.avi
    vlc -f --play-and-exit /path/to/film_5.avi

done

If you hit CTLR+C, it will end the current video and start the next one.
To exit, you have to close the terminal. There might be a more elegant solution, like a while loop waiting for an input to stop.

EDIT

one-liner that can be run in a terminal :

while :; do vlc -f --play-and-exit /path/to/film_1.avi;vlc -f --play-and-exit /path/to/film_2.avi;vlc -f --play-and-exit /path/to/film_3.avi;vlc -f --play-and-exit /path/to/film_4.avi;vlc -f --play-and-exit /path/to/film_5.avi;done

Explanation

while : equivalent to while true, infinite loop
-f full screen option
--play-and-exit exit vlc after playing vidéo


Ubuntu 12.10 Unity Dash transparency problem

I've noticed a similar problem on my 12.04 today, after an upgrade. Here's how I fixed it:

I don't know if you're aware, the DASH's background colour can be customized to an extent. If you have CompizConfig Settings Manager, Open it, then go to Ubuntu Unity Plugin > Experimental.There you will find a setting called 'Dash Blur'. It can be set to one of three values:

No Blur;
Static Blur;
Active Blur

The default is Active Blur. I won't be explaining here what's what, but it turns out that the actual values of these three options got mixed up. So why don't you open your CCSM and play a bit with these values? I've managed to fix my problem by selecting 'No Blur'.


Libre Office Writer - How to get a floating formula?

One way I know of is placing the formula in a spreadsheet in LibreOffice calc and simply copy and paste the cell into your Writer document. Then you can drag it wherever you want.

Another way is to simply right-click the object, Select Anchor and choose  To page which will allow you to drag it around anywhere on the page.


I believe, you're using an old incompatible theme with your updated Ubuntu.

Since, from your screenshot, you're trying to use Arc theme and Arc Flatabulous theme, I suggest to update them.

You can get the updated Arc themes and many others from Noobslab Theme PPA. Add the PPA using these commands

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update

Install the themes using these commands

sudo apt-get install arc-flatabulous-theme
sudo apt-get install arc-theme


How to reset the terminal properties and preferences?

Try     gconftool --recursive-unset /apps/gnome-terminal


stdout log files from an executable - where do they go when I start the program by clicking on its icon?

They go to /dev/null unless you change the startup program that that icon is starting to log it elsewhere.

Something like this:

sh -c "command > ~/file.log"


Where is source of Kmail problem - imap "Server is not available"?

1and1's imap server is down.  I verified this by telnet and pinging on the smtp, pop and imap servers:

telnet pop.1and1.com 110 returned a response

telnet imap.1and1.com 993 returned "connection timed out"

telnet smtp.1and1.com 587 returned a response

ping pop.1and1.com works

ping imap.1and1.com   times out

ping smtp.1and1.com   works

This was a confusing problem initially because I could also not access webmail although someone else could. I corrected the url to access webmail. I set up a Kmail account with pop and so verified Kmail with pop was working.  So that left me with just Kmail not being able to access the imap server.


Partitioning a hard drive before install

Yes, indeed. Boot from the live cd, run gparted, select Device -> Create Partition Table... on the disk you want to install Ubuntu (I assume the laptop has one harddisk anyways). It will notify you that all data on that harddisk will be inaccessible after this process, if you are OK with this, confirm and continue.

I would suggest doing partitioning on this step, as well. Prepare your partitions, then while installing select the partitions you already configured.


Which program will handle the desktop in Gnome 3?

The Desktop is still handled by Nautilus. In Ubuntu 11.10, the Desktop icons are still displayed by default. If you install and log into GNOME-Shell, you will have a blank Desktop by default (only while in GNOME Shell).


You just need to do

sudo apt-get install freeglut3-dev


Switching Window Manager without Logging-out

This is a possible solution for WM binding in the same session.

man dm-tool

Details can be found in this thread.


Can't get service noip2 to start on boot

Since Ubuntu 15.04 the standard way to control background processes (and much, much more) is systemd.
I suggest switching from your init.d script to a systemd unit:

Create the file /etc/systemd/system/noip2.service with the following content (and drop your init.d scripts):

[Unit]
Description=noip2 service

[Service]
Type=forking
ExecStart=/usr/local/bin/noip2
Restart=always

[Install]
WantedBy=default.target

Then issue

sudo systemctl daemon-reload

to make systemd aware of the new unit (systemd caches unit files and this command makes systemd reconsider its cache).

Now you can try to start and stop your unit and see its status:

sudo systemctl status noip2
sudo systemctl start  noip2
sudo systemctl status noip2
sudo systemctl stop   noip2
sudo systemctl status noip2

To have the unit started at boot time you need to enable it:

sudo systemctl enable noip2

To disable autostart at boot time you must disable the unit:

sudo systemctl disable noip2

Most of the time five commands are sufficient to control a units behaviour:

systemctl start   $unit   # starts a unit NOW
systemctl stop    $unit   # stops a unit NOW
systemctl status  $unit   # shows status
systemctl enable  $unit   # starts a unit at boot time (but not NOW)
systemctl disable $unit   # stops autostart (but doesn't stop the unit NOW)

You may also enable autostart and start the unit imediately or disable autostart and stop it at once:

systemctl enable  --now $unit   # enable and start in one go
systemctl disable --now $unit   # disable and stop in one go

Update

Some research revealed the noip2 runs as a daemon, i.e. when you start it, it creates another process that runs in background (so called forking) and the foreground process immediately returns (exits). That's why the init.d script and the systemd unit failed: They started noip2 just to see it immediately exits. Hence, systemd tried to restart it over and over to no avail. (By default, systemd restarts a process at most 5 times within 10 seconds or so before giving up and leaving it in failed state.)

To tell systemd the unit is of type forking add the line

Type=forking

to the [Service] section as I just did in the snippet above. This tells systemd to expect the main process to return immediately but instead watch the process spawned (forked) by noip2.


You can find the sound applet icon in /usr/share/applications. It's owned by root so you'll need to type Ctrl+Alt+T to open the terminal. In the terminal window, type sudo nautilus to open the file manager as root so you can open the image and be able to save your changes.


First make sure your formatting the data partition/drive. Some USB sticks have gone the way of putting two devices on one chip so they can include their garbage.

Next make sure your device is in read write mode (there may be a physical switch on the device)

Finally re-partition (don't format) using fdisk it should be something like sudo fdisk /dev/sdb

And, if that doesn't work your can always try forcing it to wipe the drive with something like (as root) dd if=/dev/zero of=/dev/sdb Careful with that though it will destroy anything on the drive you specify without mercy or chance of recovery.


GPG says that it needs a passphrase but it actually doesn't

GnuPG uses gpg-agent to cache your passphrase. It does require the passphrase for signing (this is a private key operation) and thus prints the message, but does not need to ask you as the passphrase was still cached. Whether and how long the cache works can be configured.

gpg-agent

gpg checks if there is a running gpg-agent (or, in newer versions, necessarily starts one). gpg-agent does (among other things) cache your pass phrase for a given time.

Configuration

This time span can be configured in ~/.gnupg/gpg-agent.conf, which in my case contains a line

default-cache-ttl 600

to set the cache time to ten minutes (10*60 seconds). Further options are descriped in man gpg-agent, most options can also be used in gpg-agent.conf by omitting the leading --.


I am using Ubuntu 8.10 and I want to upgrade to the latest version

Since your installation is new, I would suggest you download an .iso of a newer version of Ubuntu and make a new installation.


How to remove openjdk 6 from ubuntu 13.04?

apt-cache performs a variety of operations on APT's package cache, it won't list the installed packages.

To see if an openjdk package is actually installed on your system you can just type in a terminal:

dpkg -l | grep openjdk


E: Write error - write (28: No space left on device)

The /tmp folder is used when installing new packages. You have it mapped in a different partition and the size of that partition is only 1M. It gets full very quickly and causes the error.

I would leave the /tmp folder in it's default parition: the same as the / partition (in your case /dev/xvda1).

Have a look at the file /etc/fstab. First make a backup copy:

sudo cp /etc/fstab /etc/fstab.bak
sudo nano /etc/fstab

There is probably a line that mounts the /tmp folder. Add a # at the beginning of the line to comment it out. Ctrl + x to save the file and then reboot.

Editing fstab is a potentially dangerous action, be careful if you don't want to have to use the recovery console.


Some flash videos (e.g., on IGN.com) won't play 12.04

I have no problems with flash usually, but there was one particular elearning site that just didn't want to display it's content, whatever I tried. Ubuntu 12.10 and Firefox.

I installed agent switcher add-on from https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/ and switch to "Internet explorer 8" (in the Tools menu)  - problem solved, all flash content plays OK. This particular site was asking for IE, Firefox or Chrome browser, and Adobe Flash 10 or higher.


How to reduce Internet usage for Updating Ubuntu?

Remove unwanted items using Synaptic Package Manager.  It will warn you what other items will be removed along with it.  You can also use Ubuntu Software Center to remove some items.

If you don't use webmail, remove Thunderbird. If you don't use remote desktop, remove Remmina. If you don't play the default games then remove them also. If you don't use Libreoffice eliminate them as well. If you only use the word processor then replace it with Abiword. If you only use the spreadsheet application install Gnumeric and remove Libreoffice.

Select necessary items only for Updates in 'Software Sources'.


Ubuntu connect drops. Worked for a while then started dropping again

If your wireless drops because it is attempting to roam to the neighbor's access point, I suggest you ask your wireless to bind to your access point. Right-click the Network Manager icon, select Edit Connections. Fill in the MAC address for your access point; find it with:

sudo iwlist wlan0 scan

For example:

Cell 05 - Address: 00:13:19:F2:2E:D0
                Channel:6
                Frequency:2.437 GHz (Channel 6)
                Quality=66/70  Signal level=-88 dBm
                Encryption key:on
                ESSID:"UCInet Mobile Access"

Use the address (MAC address) you found to place in BSSID in Network Manager:

Save and close.


I install from virtualbox site and the update installs without overwriting my files.

If there is a major update a message will come up that says you have to remove the old virtualbox before installing the new update then I click to remove virtualbox and install the new updated version and it still keeps my settings and vm's as long as I do not choose to remove the configuration files.

The updated file you posted is the same as the one on virtualbox and it is a .deb file just install using software center and you should not have any problems.


Is my pop3 email security enough for a simple home user?

Six guys from Ubuntu users list responded with good advice within a day.

I am reassured that my use of Evolution is safe.

So this question has been answered. Thanks. Chas


Somehow I have managed to solve the problem.
I have hashed out export LANG=en_US in .bashrc file. And now I use

  export LC_NUMERIC=C

to get point as a decimal separator. After I restarted system I got my polish signs back.


syndaemon deactivates two finger scrolling and tapping

I managed to solve this today, with help of very useful information in the Arch Linux wiki.

Basically, in Ubuntu 14.04 you need to create a copy of an X11 config file and add your scrolling and clicking-by-tapping options.

You can find full instructions in a GitHub repo of mine that I keep for future reference.

The options you're probably interested in are VertTwoFingerScroll, HorizTwoFingerScroll and TapButtonN.


Why does a search-thingy appear on startup all of a sudden?

This looks like Gnome-Do (or Synapse with a Gnome-Do theme).

If it's Gnome-Do, you can prevent it from opening on startup by pressing the down arrow in the top-right corner and going to preferences.  Under the "General" tab, you can choose "Hide window on first launch" to prevent this box from opening on startup.

Or, if you don't use Gnome Do, you can safely uninstall it from the Ubuntu Software Center.


Installing LBP 2900 printer -> libs folders wrong?

What I noticed however that on the step with lpadmin it goes wrong with the error:
  lpadmin: Bad device-uri scheme "ccp"

It is because you didn't generated the scripts associated with the rpm files.......

Use

  sudo alien cndrvcups-capt-2.30-1.x86_64.rpm cndrvcups-common-2.30-1.x86_64.rpm --scripts

OR

  sudo alien *.rpm --scripts

instead of

  sudo alien *.rpm

You can solve this error

  lpadmin: Bad device-uri scheme "ccp"

All the best from RJK


In gvim, you can use the mouse to navigate the tags - forward and backward:

CTRL-<LeftMouseButton> jumps to the target,
CTRL-<RightMouseButton> jumps back in the history of jumps.


Ubuntu 18.04 desktop shortcut creation using terminal commands

For sure one can create an Ubuntu desktop shortcut with terminal commands. Such desktop shortcuts are specially formatted text files with a .desktop extension. They are used to populate your application menu, and can function as launchers on the desktop. Just echo the different lines to a file, e.g. as in:
echo [Desktop Entry]                   > ~/Desktop/myfirefox.desktop
echo Name=Firefox Web Browser          >> ~/Desktop/myfirefox.desktop
echo Comment=Browse the World Wide Web >> ~/Desktop/myfirefox.desktop
echo Icon=firefox
...

Another approach:
cat >> ~/Desktop/myfirefox.desktop << EOF
[Desktop Entry]
Icon=firefox
...
EOF

To specify your own icon, provide the full path to the icon graphics file (commonly .png or .svg format) after Icon=.
Look here and in other posts on this site, or look on the web or study some examples of .desktop files under /usr/share/applications to see how a .desktop shortcut file is formatted.


how to increase mouse movement speed in ubuntu 16.04

Run in terminal xinput --list --short and find your mouse id (for me id=12)
Run in terminal xinput --list-props 12 (change 12 for the right id)
Find the id for the property Device Accel Constant Deceleration (for me 262)
Run in terminal xinput --set-prop 12 262 0.1 (change 12 and 262 for the correct id)

The last number (0.1) is the important value. The smaller the number the faster your cursor moves (default value is 1.0). Play around with the values till you find one that works for you and then add the command to the startup applications GUI.

Good luck


Dependency which is missing, however package not broken?

All packages starting with erlang-abi, are virtual packages. This will be apparent from the apt-cache output:

apt-cache show erlang-abi-15.b
N: Can't select versions from package 'erlang-abi-15.b' as it is purely virtual
N: No packages found

Your helper is not accounting for virtual packages so it fails. This is also why Synaptic shows the packages with italics.


Ubuntu 14.04. keeps signing me out of user account

Well enter into recovery mode and enter to you'r user home directory and check if you have the file called  .Xauthority.

If you have this file then check the user and group of the file if it is root then  del the file and restart your system and log in again


What are some good GUI binary viewers/editors?

GHEX

LFHEX

WXHEXEDITOR

VELES (github, not developed now, nice 3D visualizations, full featured for analyzing of unknown data structures with support for png, zip and other)


Why can't I install nvidia driver on Ubuntu 12.10?

The answer is in the error message:

  Please make sure you have installed the kernel source files for your kernel

And that's simple enough. You actually don't need the full source, just the headers:

sudo apt-get install linux-headers-generic

On a side-note, be careful what guides you follow. If it's about graphics and it's older than 12 months, it's probably starting to fall behind the current state of things.


Does it make sense to upgrade the graphics driver when running Ubuntu on virtualbox?

Please do not install/run proprietary graphics drivers in your guest Ubuntu.

By installing the guest additions you will install a custom virtualbox graphics driver that will make use of your host graphics adapter including 3D-acceleration if enabled.

It does however make sense to upgrade your host graphics drivers because bugs there may also affect the virtual graphics drivers in the guest.


How do I update GNOME extensions installed from Ubuntu Software Center?

Gnome Extensions are updated via extensions.gnome.org. Just visit the site, click on the 'Installed Extensions' tab at the top and update as needed. I have a link somewhere in my favorites that explains this and two options (one github user, and an extension that notifies you when extensions are available)... trying to grab that now.
Found it!


You can change file permissions with the chmod command.

There are two basic ways of using chmod to change file permissions:

Symbolic Method:
In the symbolic method to remove read and write permission for other users on a subdirectory named Dog, you should enter:

chmod o-rw Dog

Absolute form:
In the absolute method to do the same, you should enter:

chmod 700 Dog

for read, write, execute permissions only for the owner and not for the group and other users.
In this method you can customize the access permissions more efficiently as per your requirements.

Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have the execute permission on a directory to switch (cd) to it.
For further reading and additional information about file permissions.


No, it doesn't read "myusername login:". It reads "mycomputername login:"

You've simply used your username as your computer name. In the "login" field, you're supposed to enter a username and then enter the password for that user in the "password" field.

So on my desktop, it would read

Ubuntu 14.04 LTS HomeDesktop tty1

HomeDesktop login: jes
Password: ********************


Why doesn't 'locate' find files in '/run' directory?

Answered by @WinEunuuchs2Unix (concept) and @steeldriver (technical details).

Concept: locate  can exclude directory from its indexing process.

Detail: there are a "locate configuration file", /etc/updatedb.conf (man page) and you can declare many exclusion rules —  excluded paths, files or directories will be not scanned by updatedb. Each rule is declared by a variable:

PRUNE_BIND_MOUNTS: use "YES" to exclude mounted direcories — so bind mounts are not scanned.
PRUNENAMES: list of excluded directory names.
PRUNEPATHS: list  of  excluded path  names  of  directories.
PRUNEFS: used when PRUNE_BIND_MOUNTS is flagged ("0" or "NO"), it is a list of file system  types, like old /etc/mtab system  types to be excluded.

/etc/updatedb.conf DUMP
The problem described in the question occurred in the context of:
PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph /home/.ecryptfs /var/lib/schroot"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs devtmpfs fuse.mfs shfs sysfs cifs lustre tmpfs usbfs udf fus
e.glusterfs fuse.sshfs curlftpfs ceph fuse.ceph fuse.rozofs ecryptfs fusesmb"

So, PRUNE_BIND_MOUNTS="yes" excluded /run from updatedb indexation.

Similar questions:

https://serverfault.com/q/454051/355484
https://askubuntu.com/a/93477/439867
...


List software from restricted, multiverse separately

You can do the latter with aptitude - for example

aptitude search '?narrow(?installed, ?section(universe))'

or

aptitude search '?narrow(?installed, ?section(universe/math))'

Ex.

$ aptitude search '?narrow(?installed, ?section(multiverse))'
i   ttf-mscorefonts-installer                                               - Installer for Microsoft TrueType core fonts
i   ubuntu-restricted-addons                                                - Commonly used restricted packages for Ubuntu


KVM guest performance impacted by very long virtblk disk wait times

I recently have the same issue

# iostat -dx 60
Linux 3.13.0-32-generic (hostname)  Wednesday, 04 March, 2015   _x86_64_    (6 CPU)

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
vda               0.00     2.46   51.49    4.12  1742.66   325.36    74.38     0.05  770.46  487.83 4300.67   0.15   0.81
scd0              0.00     0.00    0.08    0.00     0.31     0.00     8.00     0.00    0.73    0.73    0.00   0.73   0.01

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
vda               0.00     0.03    0.02    0.20     0.13     0.93     9.85     0.00 35787.38    4.00 38769.33   0.31   0.01
scd0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00

Upgrading the kernel and installing linux-headers and linux-headers-generic on the KVM guests fix my I/O issue. Reboot after installing.

# aptitude install linux-headers-3.13.0-46 linux-headers-3.13.0-46-generic linux-image-3.13.0-46-generic

After installation:

# iostat -dx 60
Linux 3.13.0-46-generic (hostname)  Wednesday, 04 March, 2015   _x86_64_    (6 CPU)

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
vda               0.00     0.36   19.36    0.42   227.23     4.51    23.44     0.01    0.50    0.45    2.92   0.14   0.28
scd0              0.00     0.00    0.04    0.00     0.18     0.00     8.00     0.00    0.36    0.36    0.00   0.36   0.00

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
vda               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
scd0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
vda               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
scd0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
vda               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
scd0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
vda               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
scd0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
vda               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
scd0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00


Grub rescue; "no such device" error happens Intermittently

I got it fixed by disabling "Fast Boot" in BIOS settings

i had the same issue with dual boot (Win 10/Ubuntu ) with GRUB reporting "no such device" when shutting down from Ubuntu

some also recommend disabling Secure Boot but i didn't have that enabled here

i think this is similar to this issue:

https://superuser.com/questions/1114863/grub-fails-boot-with-no-such-device-sometimes/1192805


Resource-efficiency of Lubuntu-KDE combination

LXDE is designed for speed and resource efficiency (see LXDE home page), and is the reason that Lubuntu is lighter and faster than just plain Ubuntu.

Switching to KDE will slow the system down and defeats the object. If you have a decent CPU and lots of RAM then you shouldn't notice a difference, but if that's the case then you might as well run GNOME or UNITY instead.

I'm running Lubuntu/LXDE on an old Pentium M 1.86 Ghz processor with 2GB RAM and it's fast.


You should be able to play after you accept that. I can play when i get that warning, just press ok and then your game shoudl start normaly.


Is it possible to backup individual files with Deja Dup?

According to mterry last Febuary, this isn't something Deja Dup can currently do:

https://answers.launchpad.net/deja-dup/+question/99973

Although he's talking about exclusion, it's the same principle as inclusion. Your better off symlinking the files you want to backup into a separate directory and then backing up that.


My university network is changing resolv.conf. How do I prevent that?

I'd recommend to set a static IP through Network Manager first. Once connected to the network of your university, modify the settings going to the IPv4 tab and choosing the Manual method. Press the Add  button and add your static IP.

Example:

IP 192.168.x.xxx

Netmask 255.255.255.0

Gateway 192.168.x.x

Save your new configuration

To know your Gateway digit the following command in a terminal:

route -n

The output of the command should be something like this:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.2.1     0.0.0.0         UG    600    0        0 wlp2s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlp2s0
192.168.2.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0

As you can see my Gateway is 192.168.2.1 and the IP you will choose will be a 192.168.2.xxx ( example 192.168.2.100 ).

Disable the systemd-resolved service and stop it:

sudo systemctl disable systemd-resolved.service
sudo service systemd-resolved stop

Put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

dns=default

Install resolvconf:

sudo apt-get install resolvconf

and edit or create the file /etc/resolvconf/resolv.conf.d/tail

sudo nano /etc/resolvconf/resolv.conf.d/tail

Add Google nameservers (one per line) to the file

nameserver 8.8.8.8
nameserver 8.8.4.4

Save the file pressing Ctrl+O

RESTART YOUR SYSTEM and connect to your network


To use iptables rule im not sure how to do it but if you wish you can use a proxy in zentyal.

** Look for the tab named Domain Filtering in the HTTP Proxy section


I believe the solution for your problem is Pushbullet which came with that purpose and is also great!

I used that in the past between Windows, Linux and Android but would not remember  the whole process again since I'm not in Windows anymore, but, it's easy once you have installed in Linux it would communicate through wifi the same app Linux-Windows and both share.

Other options are KDE connect. (I believe it is possible to configure more advanced actions inside this program for advanced users).

Different suggestions, ideas and tools...
Link 1
Link 2
Link 3
Link 4
Link 5


How to set environment without sourcing .bash_profile myself every time?

TL;DR: Put your export commands in .profile instead, remove or rename .bash_profile, and log out and back in to apply your changes.

How the Per-User "profile" Files Are Used

Most desktop environments are configured, by default, so that the .profile file in your home directory is sourced when you log in graphically. It sounds like you're using Ubuntu's default desktop environment, which is GNOME with Unity. That should work.

Most Bourne-style shells will also source .profile, when invoked as a login shell. This includes bash, except that .profile is sourced only if .bash_profile and .bash_login don't exist. If .bash_profile exists, it will be used; otherwise, if .bash_login exists, it will be used; and otherwise, .profile is used.

The reason for this is so that commands that don't depend on the shell being bash, that you want to run on login, can go in .profile, and if there are bash-specific commands, you can put them in one of those other two files. Usually you would then source .profile from within .bash_profile or .bash_login.

If the only commands in .bash_profile are the ones you've shown in your question, then you don't need to use .bash_profile at all because those commands are portable across Bourne-style shells. You can then remove .bash_profile (or rename it to something like .bash_profile.old) and put those commands in .profile. They can go at the very bottom of that file, and you can back it up first if you like (reasonable names for the backup might be .profile.old or .profile.orig, but you can name the backup whatever you want because it's not actually getting used).

The absence of .bash_profile--provided .bash_login doesn't also exist--will cause .profile to be used. (.profile is probably already being used for your graphical login.)

What to Do

Remove or rename .bash_profile.

Edit .profile. It usually looks like this:

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

You can simply add all eleven lines of code (six, if you don't count blank lines and comments) to the bottom of .profile, save the file, and log out and back in.

Optional: You Might Consider Rewriting These Assignments

Though this is entirely optional, you might want to take this opportunity to refactor your export statements. Currently you use:

### export JAVA_HOME variable
export JAVA_HOME=/usr/local/dev/jdk1.8.0_20
export PATH=$PATH:$JAVA_HOME/bin

### export M2_HOME
export M2_HOME=/usr/local/dev/maven
export PATH=$PATH:$M2_HOME/bin

### export SCALA_HOME
export SCALA_HOME=/usr/local/dev/scala-2.11.2
export PATH=$PATH:$SCALA_HOME/bin

PATH is modified three times, one time for each other variable being assigned. This is okay and might be what you want. But it is longer and (in my opinion) less self-documenting than this alternative:

# export Java, Maven, and Scala homes and add their bins to PATH
export JAVA_HOME=/usr/local/dev/jdk1.8.0_20
export M2_HOME=/usr/local/dev/maven
export SCALA_HOME=/usr/local/dev/scala-2.11.2
export PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin:$SCALA_HOME/bin

If You Need .bash_profile For Something Else (but you probably don't)

I should note that what I have recommended is very similar to something c0rp said previously (in a comment on a post that has since been deleted):

  Put all variables to ~/.profile, and source ~/.profile from ~/.bash_profile. ~/.profile gets executed automatically by the DisplayManager during the start-up process desktop session as well as by the login shell when one logs in from the textual console.

But my recommendation differs in one significant respect: since it seems to me you have no need for a .bash_profile file at all, I recommend you just move it out of the way (i.e., delete or rename it), and not bother with sourcing it in .profile.

If you do for some reason need a .bash_profile file, then you should still avoid having environment variable definitions in it (as they would only apply to bash logins, and not your graphical login).

If you have bash-specific commands that must go in a .bash_profile file, then as c0rp said you can put this line in your .bash_profile file:

. $HOME/.profile

Then .bash_profile will source .profile and the commands in .profile will get run for both bash and non-bash logins.

If Using .profile Doesn't Work

Then more troubleshooting will be necessary, but it's worth noting that:

Some display managers source .profile by default; some apparently don't.
This may also depend on desktop environment (by which I mean, on the per-DE session profiles that tell the DM how to start the graphical session).

I've heard people say that LightDM doesn't source .profile, and I think this is true at least as it is packaged in some OSes. I can't speak to the matter absolutely, but in the Ubuntu systems I've used with LightDM as the display manager, .profile has been sourced in graphical sessions and variable exports in .profile have been effective.

(It hasn't always worked for me on other OSes, such as Debian.)

If Using .profile Doesn't Work: A Quick & Dirty Alternative

If you're willing to have some redundancy in your variable definitions, you can use .pam_environment as a quick alternative.

man pam_env explains that one may define environment variables as KEY=VAL pairs in envfiles. As that manpage explains, the default systemwide envfile is /etc/environment and the default per-user envfiles are ~/.pam_environment.

So, you could make a .pam_environment file in your home directory and put something like this in it:

JAVA_HOME="/usr/local/dev/jdk1.8.0_20"
M2_HOME="/usr/local/dev/maven"
SCALA_HOME="/usr/local/dev/scala-2.11.2"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/dev/jdk1.8.0_20/bin:/usr/local/dev/maven/bin:/usr/local/dev/scala-2.11.2/bin"

As you can see, changing anything would require you to make multiple changes, and this high level of duplication makes it hard to read and understand too. That's why I didn't recommend this way first.

The simplest and most self-documenting way in your situation is to define and export your environment variables in .profile as described above.

The EnvironmentVariables article claims it's possible to modify the value of an environment variable, and even include expansions of other environment variables, in .pam_environment, with syntax like PATH DEFAULT=${PATH}:${HOME}/MyPrograms. However, this appears entirely inconsistent with the (more) official documentation, I've tried it on multiple machines without success, and I've only ever heard of it failing for others too. I strongly suspect the wiki author(s) have confused pam_env "envfile" syntax with pam_env "conffile" syntax (to use the terms employed in man pam_env). Hopefully one of these days someone will get around to finding out for sure, and then the wiki can be edited (either for correction or clarification).

Why .bash_profile Works For This in OS X

OS X is is one of the few environments/systems where the default configuration of terminals on its default graphical desktop (i.e., Terminal.app instances) is to start the shell as a login shell rather than as a non-login shell. (Cygwin is another.)

Since each bash instance on OS X launched directly by Terminal.app (unless you've reconfigured things) acts as a login shell, .bash_profile gets sourced.

I suspect that, outside of environments accessed through Terminal.app (or a non-graphical login, such as an SSH session), exports in .bash_profile aren't applied either.

The key difference between OS X and Ubuntu when it comes to .bash_profile is that:

In OS X, shells launched by Terminal.app are started as login shells. Since bash is the default interactive shell in OS X (since OS X 10.3 or something), .bash_profile is sourced if it exists.
In Ubuntu, when you run GNOME Terminal (or another GUI terminal emulator) from within a graphical session, the shell is starts is not usually a login shell. The tasks performed by a login shell have usually already been performed (usually by the display manager) to set up the graphical session, so the idea is that there's no need to perform them again.

It's also a bit strange to start a login shell when nothing resembling logging in has been done.


How to remove startup program/service which starts during booting?

Install boot up manager and have a look at the list of startup applications you can turn on and off. Random example of the lay-out of bum:


The "Add Folder" button went away a little while ago, but there are three ways to create folders from the UI:

Right click in an open space:

Click the "List" (three horizontal lines) icon in the upper corner, then click on the folder with a [+]:

Press Shift+Ctrl+N

Choose whichever one works best for your workflow.
Hope this answers your question.


Gedit warning: GtkScrolledWindow is mapped but visible child GtkScrollbar is not mapped

It was a bug in overlay-scrollbar which has been fixed here at launchpad. It has been fixed.

So just run

sudo apt-get update
sudo apt-get install overlay-scrollbar


Replacement for HAXM on ubuntu - says Intel x86 Emulator Accelerator is not compatible

Check if your CPU supports hardware virtualization,  by typing:

egrep -c '(vmx|svm)' /proc/cpuinfo

If the result is 0, your CPU does not support hardware virtualization, which is necessary to run the KVM. If you get 1 or more, that means you’re fine.

Next, install KVM. First make sure if your processor supports KVM by typing:

kvm-ok

You will see this if that’s the case:

  INFO: Your CPU supports KVM extensions INFO: /dev/kvm exists KVM
  acceleration can be used

If this is the result, you need to turn on Intel VT in BIOS:

  INFO: KVM is disabled by your BIOS HINT: Enter your BIOS setup and
  enable Virtualization Technology (VT), and then hard poweroff/poweron
  your system KVM acceleration can NOT be used

The next step is to install the KVM and a few other packages needed. To do so, type:

sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

Add your user to some groups, replacing  by your own username:

sudo adduser <user> libvirtd
sudo adduser <user> kvm

Check if everything is ok:

sudo virsh -c qemu:///system list

Source.


Normally this should have happened automatically, but you can connect libreoffice to your /home directory manually. Open a terminal and execute the following command : sudo snap connect libreoffice:home ubuntu-core:home.

Check whether libreoffice was connected successfully to your /home directory by running the following snap command : snap interfaces

You can try to copy over the language files to the /snap directory, but I think that this is not a good idea, it might break things. Please bare in mind that snap packaging - just as FLATPAK for other distros - still is a relatively new technology.


Fonts hosed after following ubuntu wiki directions

I solved this by simply grabbing the whole /etc/fonts directory off another U14.10 computer, wiping out the bad stuff on this computer, copying over the new /etc/fonts/, then running

sudo dpkg-reconfigure fontconfig

. . . logged out, logged back in. Solved. All I wanted to do was use bitmapped terminus in my terminal. . .


Read your /var/log/dpkg.log to find the exact name(s) of the kernel package(s) that you installed.

Shortcut: Use grep linux /var/log/dpkg.log to filter for only kernel-related packages.

Here's an example line from my own logfile. See the 5.8 kernel package name?

2021-02-09 06:48:06 install linux-image-5.8.0-43-generic:amd64  5.8.0-43.49

Uninstall those 5.10 kernel packages using those exact package names. Use the format: sudo apt remove package1 package2 package3 packageN

If you really followed those random instructions from the dirty, dirty internet, then your system is now 20.10 instead of 20.04. Though it was improperly done and you may encounter other problems, and your system might claim to still be 20.04 (it's not). You cannot safely downgrade (though you can backup your data and reinstall 20.04 if you wish, of course).

Non-LTS releases lose support and security patches after only 9 months.

Mark your calendar: In late April 2021, late October 2021, and late April 2022, you must run do release-upgrade to migrate to the next release of Ubuntu. April 2022 (22.04) is the next LTS release.


Unable to find where eclipse got installed

Open a terminal and call:

dpkg -L openjdk-7-jdk

This will list all files installed from the .deb-package.


How to tail a file with a randomized name?

There are several ways, depending how specific you need to be about the match.

(matches zero or more trailing characters of any kind):

tail -f /tmp/logger_output/log_file_i_want_to_read.log*

(matches a trailing string of at least one decimal digit):

shopt -s extglob
tail -f /tmp/logger_output/log_file_i_want_to_read.log+([0-9])

(matches a trailing string of exactly 9 digits):

tail -f /tmp/logger_output/log_file_i_want_to_read.log[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]


Ubuntu 16.04 touchpad not working after closing laptop lid

I found a solution from ubuntuforums: Removing psmouse module and readding it:
sudo modprobe -r psmouse
sudo modprobe psmouse


Nautilus bookmarks not showing in "Places"

Has the same problem with 12.10, tried dragging the directory i wanted to bookmark and it didn't work, until i read the help and found out that to add a folder as a book mark all you had to do is to open the folder/directory and click on the bookmark menu and then add bookmark.

Ctrl+D

Is the shortcut key for performing the same task.


Scroll up the page to previous input on terminal

You could redirect the output into a file then edit it with gedit

COMMAND > output.txt

then

gedit output.txt


Turns out my connected GoPro was drawing too much power from USB and causing the boot to fail. Solved.


Nethogs ioctl failed while establishing local IP

Usually you get that answer when you try to monitor an interface which has no IP address assigned (probably not connected).

The output from ip addr shows that only one of your interfaces has an IP address, namely usb0.

So sudo nethogs usb0 should finally give the desired result.

As there are comments mentioning different interfaces: if ip addr shows several interfaces with IP-addresses assigned there are two options for you:

ip route show | grep default will show you the one device that is used to access "everything outside". e.g.
default via 192.168.0.253 dev eth1  proto static  metric 100 tells me I have to use sudo nethogs eth1
If your goal is to look at internal traffic (within a local network or even between virtual machines on the same host) you can try with all devices found by ip addr or ip link.


Is there any way to add outline support to gedit to make it more usable for coding?

Yes, you can install a plugin to do this.

In a terminal enter:

sudo apt-get install gedit-source-code-browser-plugin

Restart gedit, and from the menu select Edit > Preferences > Plugins and ensure Source Code Browser is ticked.

Now you will also have a Source Code option for the sidebar (View > Side Panel if it's currently hidden), that looks like:


Ubuntu 18.04 LTS Server npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed

Ubuntu Server 18.04 Node.js and npm install

sudo apt remove --purge nodejs npm
sudo apt clean
sudo apt autoclean
sudo apt install -f
sudo apt autoremove

Find the latest version at https://github.com/nodesource/distributions#debinstall
Latest version 10.x now

sudo apt install curl
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sudo apt-get update && sudo apt-get install yarn

npm -version
6.1.0
nodejs -v
v10.7.0