Here are a few steps I would take:

Check the output of iptables -L to ensure you aren't firewalling.
Ping APT which appears to be your router (192.168.1.1).
If you have traceroute or mtr installed try using it to find out where your are blocked.  I use mtr -ni5 8.8.8.8.
Check DNS with a command like host google.com.
Check /etc/resolv.conf to ensure it has reasonable data.


How do I add a daemon to my Quickly application?

As far I know there is nothing specific in quickly to prevent or assist you with running daemons, but there is at least two options I know/guess you can do it with python:

Option #1: Distutils

NOTE: I didn't tried this one yet :)

put your daemon script into the bin directory of your quickly project, e.g.: bin/yourapp-launcher
add the following into the data/yourapp-launcher.desktop file:

[Desktop Entry]
Name=Your App
Exec=/bin/sh -c 'yourapp-launcher'
Type=Application
X-GNOME-Autostart-Delay=30
Icon=yourapp
Comment=
NoDisplay=true

edit setup.py and specify additional data_files in DistUtilsExtra section, e.g.:

DistUtilsExtra.auto.setup(
name='hello-ubuntu',
version='0.1',
#license='GPL-3',
#author='Your Name',
#author_email='email@ubuntu.com',
#description='UI for managing â¦',
#long_description='Here a longer description',
#url='https://launchpad.net/hello-ubuntu',
cmdclass={'install': InstallAndUpdateDataDirectory},
data_files=[('/etc/xdg/autostart', ['data/yourapp-launcher.desktop'])]
)

Seems a way to go when daemon must be running for all users, e.g. similar how U1 works.

Option #2: Hardcode

Hardcode everything into your app logic, for example initialize ~/.config/autostart/yurapp-launcher.desktop on the first run, e.g. similar to how GmailNotify App does it.

Unlike GmailNotify App you can relie on the python-xdg library to access freedesktop.org standards:

import xdg
print xdg.BaseDirectory.xdg_config_home

Seems good for user managed daemons.


How to associate all file types within Wine with its corresponding native application?

Years later, I've made a small utility that scans MIME database (both system and user) and register all known native mime-types in Windows registry.

It uses xdg-open to open a file if there is a default (native) application for that
mime type, otherwise uses packagekit to search for a package that can handle
that file (just like what Nautilus does). So my initial requirement of registering only extensions that have an installed, native application was not needed anymore. However, an early version of the script did filter only such types. The snippet that made it possible was:

perl -e '
    use strict; use warnings;
    use File::MimeInfo::Magic; use File::MimeInfo::Applications;
    while (my $line = <STDIN>) {
      chomp($line);
      my ($ext, $mime) = (split/\t/, $line);
      my ($def, @apps) = mime_applications_all($mime);
      print "$line\n" if ($def || @apps)
    }'

By default my script only registers native types that have no handler in windows
registry, but it can also override such associations (so, for example, jpeg
files are opened in native viewer instead of the default Gecko wine browser).
It can also ignore some extensions even if they have no handler in windows.

It tries its best to be winemenubuilder-friendly, meaning all associations it
creates is not published as native associations (or as x-wine-extension
mimetypes) by winemenubuilder, which would be ugly and potentially cause loops.
This is very tricky and not yet perfect, specially with mixed-case extensions
(.C and .c for example)

That said, I hope this script is helful for everyone:

https://github.com/MestreLion/wine-tools/blob/master/wine-import-extensions

Improvements welcome!


Problem after upgrading from 10.04 to 11.10 on a Mac

Even if I am sure you have done it already, my first advice would be to wait even longer to see if the boot process works after a longer time. Then, what happens when you type Ctrl+Alt+F1?

Are you able to run a Live CD of Ubuntu? This would permit you to get your data back and to repair your installation.


bash: echo: write error: Invalid argument

What happened when you remove the ":" as appear in the link you provided?

Original Answer:

echo 1c9e 6061 > /sys/bus/usb-serial/drivers/option1/new_id

Your case:

Instead of:

echo "1c9e:9ba1" > /sys/bus/usb-serial/drivers/generic/new_id

Try running:

echo "1c9e 9ba1" > /sys/bus/usb-serial/drivers/generic/new_id


How to interpret the contents of ~/.gconf?

~/.gconf subfolders contain only the settings that were modified by the user. Original gconf settings can be found in /usr/share/gconf/. For example, the key /apps/metacity/global_keybindings/ you mentioned in your question is created using /usr/share/gconf/schemas/metacity.schemas. And when the user changes some settings in this key, they go to ~/.gconf/apps/metacity/global_keybindings/%gconf.xml.

BTW, gconf is superseded by dconf. Though some settings weren't transferred yet.


What is a Gnome panel "OAFIID" error message and how can I fix it?

You received this message because, for some reason, the trash applet was unable to load in to your Gnome Panel.  You can click Delete, then try adding the Trash manually by right clicking your bar, and adding the applet from there.

If you get the problem again, I'd recommend opening a Terminal and running:

 sudo apt-get install --reinstall gnome-applets

Make sure you don't have anything important open and unsaved then click Ctrl+Alt+Backspace and log in again.


How to replace a Acer Chromebook with Ubuntu?

first you backup your files and completely remove the chrome os by wiping the harddisk it can be done by using the disk management or during the installation of the ubuntu.Before that you should download and boot the ubuntu to pendrive using a software (Rufus is best in town). Then just restart your computer and go to the boot menu and boot from the pendrive and then install the ubuntu.During installation you can just erase disk and click install... Its that easy.... ;}


My Desktop wallpaper appears for a few seconds after startup then disappears!

I encountered some similar issues as well, recently.
You could try :
sudo dpkg-reconfigure xserver-xorg

Then reboot. If it doesn't work, try :
sudo apt install --reinstall xserver-xorg

Hopefully it will solve the issue.


Ubuntu upgrade left me with a blinking cursor after reboot

I fixed it though.
First, I used the CTRL+ALT+F2 key combination (Press the 3 together at the same time) to enter tty2
I logged in by typing my username without the computer name (just your username, not 'username@computername') and then my password.
Next, I updated my computer with 'sudo apt update' then 'sudo apt dist-upgrade'.
Last I entered 'sudo startx' and I logged in fine. I restarted and it started fine. I hope this helps!


Windows XP - Ubuntu 12.04 Dual Boot Problem

I would give Boot Repair a go which you can find details about here

Boot-Repair

This as they detail is

  Boot-Repair is a simple tool to repair frequent boot issues you may encounter in Ubuntu like when you can't boot Ubuntu after installing Windows or another Linux distribution, or when you can't boot Windows after installing Ubuntu, or when GRUB is not displayed anymore, some upgrade breaks GRUB, etc.

As it looks as if your Ubuntu is at least working I would install it in Ubuntu using the following commands in a terminal (which may look tricksy but it is not really. Open a terminal up (ctrl-alt-t) and type in the following:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

then

sudo apt-get install -y boot-repair && boot-repair

The link above has a guide on how to use but basically it is as follows :

  Using Boot-Repair

Recommended repair

launch Boot-Repair from either :
    the dash (Unity)

    System->Administration->Boot-Repair menu (Gnome)
    by typing 'boot-repair' in a terminal
Then try "Recommended repair" button. When repair is finished, note the URL that appeared on a paper, then reboot and check if you recovered access to your OSs.

Hope that helps

Let us know how you get on.


I need wxpython on Ubuntu 11.10, how do i get it

The package python-wxgtk2.8 dependencies state that this package replaces the package wxpython2.6-0 ; does this package meet your needs?


How to save and restore a desktop layout in MATE

Currently we have about four alternative solutions:

Built-in MATE session restore functionality
To use go to MATE Control Center, select Startup Applications (or directly by mate-session-properties), switch to Options tab and check Automatically remember running applications when logging out and then logout or reboot.
Limitations: works best mainly with GTK-based applications.

Setup special application named RaySession to your needs.
Install it by sudo apt-get install raysession
See its manual for details.
It is wmctrl-based, so should do the job.
Limitations: does not restore window geometry.

xsm or xsession-manager project from GitHub
Relies on wmlctrl too.
Limitations: does not restore window geometry.

Mature Perl script named session. The documentation is located in the Arnon Weinberg's  blog.
Installation is possible by:
sudo apt-get install wmctrl

wget https://github.com/arnon-weinberg/session/raw/master/session
chmod +x session
sudo mv session /usr/local/bin

Then use the following syntax:

session save: Save session in default location (see below)
session restore existing: Restore geometries of existing windows
session restore matching: Restore geometries of matching windows [default]
session restore missing: Restore geometries of missing windows

Limitations: none.


Boot using a windows 7 installation disk,goto repair windows 7 and then run diagnostics.
The 'boot repair' option might work,or run command prompt from the installation disk and run these two commands ->

bootrec /fixmbr
bootrec /fixboot

The problem caused here is that your new installation override the mbr as it cannot recognize any other installation,it just displays the ubuntu boot option.
Hope this helps.


Ubuntu 12.04 completely dead screen on first boot?

When you burnt the live CD there could have been an error in the burring process. If you still have the opportunity you should try to reburn the live CD on the lowest burn speed. I normally use a live USB just to make sure that there are no errors in the burn. Hope that this helpes.


Play sound at a given volume bypassing system volume

Yes there is: amixer set Master 100%.

However, that sets the master volume to 100% and then leaves it there, so the polite thing (and not easy way) to do would be:

#!/bin/bash
declare iCurrentVolume=`amixer get Master | tail -n 1 | awk '{ print $4 }' | cut -c2-3`
amixer set Master 100%
ogg123 /usr/share/sounds/ubuntu/stereo/bell.ogg
amixer set Master "$iCurrentVolume%"

Where ogg123 was what I used to test to play sounds (not standard).

Save this file somewhere in your PATH and make it executable


Times have changed since this question was first asked and then answered! Now in October 2017 Ogg Opus files have become much more mainstream and there are several good choices under Ubuntu to allow tagging of your Ogg Opus files.

I detail 3 methods below that I would personally recommend:

1. EasyTag

A modern version of EasyTag can tag Ogg Opus files.

Edit: As has been pointed out this is less of a good idea as there is an unresolved issue with broken tagging of Ogg Vorbis files. In my experience the safe version of EasyTag for Ogg Vorbis is 2.4.2 and this version has given me personally no issues.

First install EasyTag:

sudo apt-get install easytag

Then open your Ogg Opus file with EasyTag for tag editing! A screenshot from my own system seen below:

Other good choices could be PuddleTag or Kid3...

2. Creating tags as you encode with Opusenc:

If you prefer the command line you can create your tags as you encode your files using opusenc. Install this utility by running the following:

sudo apt-get install opus-tools

The command line that I used to create my test file is as follows:

opusenc --bitrate 128 \
        --artist "Jody Marie Gnant" \
        --title "Lucky Night" \
        --date "1995" \
        --album "Treasure Quest Soundtrack" \
        --genre "Soundtrack" \
        luckynight.wav luckynight.opus

More tags are available to add to the syntax above and all can be seen by running opusenc -h from the command line.

3. Ripping audio CDs to Ogg Opus + tagging

Again if you are keen on the command line and you are creating your Ogg Opus audio files from audio CDs under newer versions of Ubuntu you can use abcde to rip, convert as well as tag with a single command. Install abcde as follows:

sudo apt-get install abcde opus-tools

Then place the following configuration file in ~/.abcde.conf:

# -----------------$HOME/.abcde.conf----------------- #
#
# A sample configuration file to convert music cds to
#       Opus using abcde version 2.7.2
#
# http://andrews-corner.org/linux/abcde/index.html
# -------------------------------------------------- #

# Encode tracks immediately after reading. Saves disk space, gives
# better reading of 'scratchy' disks and better troubleshooting of
# encoding process but slows the operation of abcde quite a bit:
LOWDISK=y

# Specify the method to use to retrieve the track information,
# I give the default below but consider setting 'musicbrainz'
# instead, which is my own preferred option:
CDDBMETHOD=cddb

# Make a local cache of cddb entries and then volunteer to use
# these entries when and if they match the cd:
CDDBCOPYLOCAL="y"
CDDBLOCALDIR="$HOME/.cddb"
CDDBLOCALRECURSIVE="y"
CDDBUSELOCAL="y"

# Specify the encoder to use for Opus. In this case
# the only choice is opusenc.
OPUSENCODER=opusenc

# Specify the path to the selected encoder. In most cases the encoder
# should be in your $PATH as I illustrate below, otherwise you will
# need to specify the full path. For example: /usr/bin/opusenc
OPUSENC=opusenc

# Specify your required encoding options here. Multiple options can
# be selected as '--preset standard --another-option' etc.
# In vbr mode the bitrate setting allows for a range of bitrates, use
# --cvbr or --hard-cbr for exact bitrate control. See all of the options
# by running ;opusenc -h' from the command line...
OPUSENCOPTS="--vbr --bitrate 128"

# Output type for opus.
OUTPUTTYPE="opus"

# The cd ripping program to use. There are a few choices here: cdda2wav,
# dagrab, cddafs (Mac OS X only) and flac. New to abcde 2.7 is 'libcdio'.
CDROMREADERSYNTAX=cdparanoia

# Give the location of the ripping program and pass any extra options,
# if using libcdio set 'CD_PARANOIA=cd-paranoia'.
CDPARANOIA=cdparanoia
CDPARANOIAOPTS="--never-skip=40"

# Give the location of the CD identification program:
CDDISCID=cd-discid

# Give the base location here for the encoded music files.
OUTPUTDIR="$HOME/Music"

# The default actions that abcde will take.
ACTIONS=cddb,playlist,read,encode,tag,move,clean

# Decide here how you want the tracks labelled for a standard 'single-artist',
# multi-track encode and also for a multi-track, 'various-artist' encode:
OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'
VAOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}'

# Decide here how you want the tracks labelled for a standard 'single-artist',
# single-track encode and also for a single-track 'various-artist' encode.
# (Create a single-track encode with 'abcde -1' from the commandline.)
ONETRACKOUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}'
VAONETRACKOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}'

# Create playlists for single and various-artist encodes. I would suggest
# commenting these out for single-track encoding.
PLAYLISTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}.m3u'
VAPLAYLISTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}.m3u'

# This function takes out dots preceding the album name, and removes a grab
# bag of illegal characters. It allows spaces, if you do not wish spaces add
# in -e 's/ /_/g' after the first sed command.
mungefilename ()
{
  echo "$@" | sed -e 's/^\.*//' | tr -d ":><|*/\"'?[:cntrl:]"
}

# What extra options?
MAXPROCS=2                              # Run a few encoders simultaneously
PADTRACKS=y                             # Makes tracks 01 02 not 1 2
EXTRAVERBOSE=2                          # Useful for debugging
COMMENT='abcde version 2.7.2'           # Place a comment...
EJECTCD=y                               # Please eject cd when finished :-)

Then simply run the command:

abcde

to set the process running!

In Conclusion:

Under a modern version of Ubuntu you will be spoiled for choices in tagging your Ogg Opus files with good choices from both gui and command line...


Choppy Video Playback with Intel GMA-500 Chipset

There used to be a ppa repo for the GMA500 drivers.

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

They have not been updated in a while, but I made it to newer versions of Ubuntu (12.04 I think it is the latest I tried) with the one they offer there.

Another solution I took with a laptop that had that graphic card was EMGD drivers. The ppa repository is provided again by the same gma500 user in Launchpad.

They have not updated in a while :( but these solutions used to make it easy for me. Install, reboot, everything is in its place.


You can't run them both on the same port. By default both will want to conquer 0.0.0.0:80 and that's not on. Two simple choices:

Add an IP, bind nginx on its port 80, point DNS at that IP.
Set nginx up on another port (eg 8080) and use Apache's ProxyPass directive to push one virtualhost back to nginx:

<VirtualHost *:80>
    ServerName git.example.com
    DocumentRoot /path/to/myapp/public
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
</VirtualHost>

This is actually quite common - just in reverse. Most people put nginx on the raw port 80 and let it handle raw file IO, and proxy back to Apache if they need something like mod_php. You could do that but it's very likely more work.

There are —as always— a hundred thousand million different ways of doing these sorts of things. These are the two main ones.


How do you test multiple speakers in Ubuntu distributions?

Personally I use the command line:

List your sound card(s)

aplay -L

Test your speakers:

speaker-test -Dplug:surround51 -c6 -l1 -twav

You may also specify a speaker

speaker-test -s left-front -twav

See also

Ubuntu Community Wiki Surround Sound
Manpage speaker-test

You can also test your speakers from the mixer (mixer varies with window manager)

In 12.04 use the "Test Sound" button


Can't open Android Studio in Ubuntu 20.04 in XMonad desktop environment

I solved it. I am running android-studio from terminal and only had to set the _JAVA_AWT_WM_NONREPARENTING variable to 1 before launching it.
export _JAVA_AWT_WM_NONREPARENTING=1


ubuntu 18.04 Wine 5.0 various workarounds didn't work for me

You have a mess of repositories.

Remove wrong ones with:

sudo apt-add-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main'

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ricotz/unstable

and it will become fixed.


How do I develop a Ubuntu application using the Go language?

You most certainly can: Here's a template with a short tutorial:  https://github.com/nikwen/ubuntu-go-qml-template

Or if you want to create scopes, check out: https://developer.ubuntu.com/en/phone/scopes/tutorials/developing-scopes-go/


How do I find matching filenames in a directory listing?

Here's how to do it with grep, using Perl regular expression syntax -P, and the return-only-matching-part switch -o:

grep -Poi "(.*pictures.*\.iso.*pictures.*|.*pictures.*\.iso|.*pictures.*)"  | sort | uniq

which returns:

OS Backups.iso, background/pictures.jpg
Pictures vacation 2011.iso

for each line, grep first checks if it's an .iso files with "pictures" in its name, which also contains a file with "pictures" in its name, e.g.:
Pictures vacation 2011.iso, italy/pictures5.jpg
If it finds, it prints the line and moves on; if not, it checks if this is an .iso files with "pictures" in its name;
If so, it prints just the ISO name; if not, it checks if this line contains a file with "pictures" in its name...


Sreenlets has a similar widget for Ubuntu desktop. You can install Screenlets from the "Ubuntu software centre". Here is the Widget


Best control panel for Ubuntu 12.04 server

http://www.ispconfig.org/ispconfig-3/

ISPConfig 3 is an open source hosting control panel for Linux which is capable of managing multiple servers from one control panel. ISPConfig is licensed under the BSD license.

http://www.webmin.com/

Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely. See the standard modules page for a list of all the functions built into Webmin, or check out the screenshots.


Are there any PPAs or debs for Postler and Dexter?

I'm going to answer my own question and say No. I haven't been able to find any PPAs or compatible .deb files for Dexter or Postler on Lucid.


How to make my HP LaserJet 1000 printer work with Ubuntu live CD and save the settings?

I remember that it required some serious hassle to get it working...
Anyways, try this link: HP Laserjet 1000 series driver and download the driver and get it installed. If i remember correctly, that was the one you had to install, Ubuntu did not get you a open-source one on installation.


How to move Unity launcher icons to desktop?

Unfortunately you can't drag an icon from the launcher onto the desktop.

Instead search for the application in the application lens or the dash an drag the icon from there onto the desktop.


Ubuntu DHCP server doesn't assign a fixed address

Move the common stuff out of the braces to be on its own. Do not include the static IP addresses, based on MAC, in your DHCP pool, and not inside the braces for the pool. so:

option domain-name-servers 192.168.1.1;
option domain-name "example.org";
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;

default-lease-time 600;
max-lease-time 7200;

ddns-update-style none;
authoritative;
log-facility-local7;

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.20 192.168.54;
}

host Uclient {
  hardware Ethernet 00:01:08:a3:bb:c3;
  fixed-address 192.168.1.55;
}


Installation

Open Terminal and enter the following commands one by one.

Add ibus-avro repository

sudo add-apt-repository "deb http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./"

Add key

wget -q http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/Release.key -O- | sudo apt-key add -

Update package list

sudo apt-get update

Install ibus-avro

sudo apt-get install ibus-avro-trusty

Now you need to logout and login again or restart your computer.

Using ibus-avro

Click the IM icon in menubar and Select Text Entry Setting
In Text Entry Setting window click + icon (marked by arrow) in left pane. Write avro in the search box (marked by arrow). Choose Bengali (Avro Phonetic) from the list and press Add button to add Avro to the list.
(Optional) The keyboard shortcut to switch input method has been changed to Super+Space since Ubuntu 13.10. You can change it to your preference from Text Entry Setting window.
Open any text editing software (like, gedit). Now Press Super+Space to toggle between English and Avro (Bengali)
Enjoy Avro


Installing Mint and completely removing Ubuntu

You can simply install Mint over the Ubuntu partitions. The installation will wipe the partitions and install Mint on it.


Xfreerdp launcher shortcut in Ubuntu 18.04

You can achieve this by adding the same VM_CLASS property in both places:

StartupWMClass=rdptoserver1 to the desktop file
/wm-class:rdptoserver1 to the xfreerdp script


Seems you need wine repository.

  First of all, If you are running with 64-bit system enable 32-bit
  architecture. Also, install the key which was used to sign packages of
  wine.

sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

###  Ubuntu 18.10
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'

###  Ubuntu 18.04
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

sudo apt-get update
sudo apt-get install --install-recommends winehq-stable

Reference


Can't fix broken packages through terminal or synaptic on 16.10

Usually, I flag similar question as duplicate of How do I resolve unmet dependencies after adding a PPA? . But that a quiet long post, that may may give you the exact answer or explain what you are facing.

We checked the conflict using sudo apt-get -o Debug::pkgProblemResolver=yes install wine

Most of those packages are from same source archive mesa which is a part of the graphics stack. They should have same version in the system. Currently 12.0.3-1ubuntu2 for yakkety.

As you can see a higher version 13.1+gallium-nine~git1611030800.078245~gd~y take priority for some of them, and that created the issue in the first place.
We looked into

apt-cache policy libgl1-mesa-glx:amd64 libwayland-egl1-mesa:amd64 mpv:amd64 smplayer:amd64 smplayer-themes:amd64 libsdl2-2.0-0:amd64 smplayer-l10n:amd64 libwayland-egl1-mesa:i386 libgtk-3-0:i386 libglu1-mesa:i386 libgtk-3-0:amd64 libgl1-mesa-glx:amd64 wine-staging-i386:i386 wine-staging:amd64 libgl1-mesa-glx:amd64 libglapi-mesa:amd64 libgles2-mesa:amd64 libosmesa6:amd64 libosmesa6:i386 wine-staging:amd6

To check:

from where they come, to disable that repository.
if that some package installed with that version, to downgrade them or purge ppa completely as last solution.
version of both arch amd64 `i386 of same package, because most packages have a rule to break if not same version is installed for both.

So non was installed with 13.1+gallium-nine~git1611030800.078245~gd~y for the interesting packages, we just disable PPA.

Open software-properties-gtk
Disable ppa.launchpad.net/oibaf/gallium-nine/ubuntu PPA
Update packages list sudo apt update
Install wine sudo apt install wine-staging


How to install while keeping extra Windows drives

why don't you go through the UBUNTU installation guide. It will surly help you


Problem initializing Ubuntu 16.04 - "system running in low-graphics mode"

I just recently had a similar issue, but it was my own fault, I was testing stuff on my workstation, and not in a VM, but that is besides the point.

In the end I booted into a live USB, moved all my files off, and reinstalled.  Now that was drastic I know, but I was frustrated by the inability to log in and do anything to fix the problem.  That all being said, between when your machine last worked and when this started, what have you installed?  Any new hardware, or software?

If hardware can you remove it and try restarting?  Hopefully this fixes the issue.

If software, you can get into a terminal only mode by holding the shift key when rebooting, this will take you to your grub loader, and from there you should see something like Ubuntu repair mode, or something that sounds safe.  Choose that boot mode, and it will give you a lot of options for trying, but the one I am looking for you to do is the command prompt one, go into that and back out what you last installed, you would do that using this command:

sudo apt-get remove [program-name]

If you installed multiple then try backing out each one, and reboot each time, but if you are dumb like me, you copied and pasted the install commands from a website, and so have no clue what the command was....(I live on the edge).

Anyway if all that does not work, and no-one here smarter than me has a better answer than what I have given, then my answer up front is the answer, login on LIVE USB/CD, get your data off the machine, and re-install.

I hope this helps in some way. Chris


Did you try all of these: Unity doesn't load, no Launcher, no Dash appears ?
One of them caused a log-in loop, so be prepared to get out of a log-in loop.


how to export bash arrays? any workaround tips?

It's not a bug with bash, there's just not any safe way to put a bash array in the environment.
As for workarounds, that depends on what you're trying to achieve with exporting arrays in the first place.
One possible workaround, for some cases, is to dump the array to a file and source that file where you need it.
astr=(a "b c" d)
declare -p astr > some_file

bash -c 'source ./some_file; printf "%s\n" "${astr[1]}"'

Another workaround could be to pass the array on as arguments to the next shell.
astr=(a "b c" d)
bash -c 'astr=("$@"); printf "%s\n" "${astr[1]}"' _ "${astr[@]}"


I have to use a command in shell script which will give a prompt for Y or N.How do i answer it as Y in shell script afater the command

In the simplest form, you can just echo a Y to the command:

echo "Y" | command

Alternatively, if it will give you multiple prompts and you want to answer Y to all of them, use yes:

yes | command


System not booting with no free disk space

These steps helped me to free some space and boot properly into Ubuntu:

Enter the recovery mode, go to root
Mount an external hard drive / USB
Move some data to the external drive


If you want the newest version from xiph.org/vorbis you can install the git version, although, it is not recommended.

sudo apt update
sudo apt install git automake m4 libtool buildessential

You may need to install:

sudo apt install libvorbis-dev

and

sudo apt build-dep libvorbis

You may need to install more packages but you will have to pay attention to the output when you run the following commands. Any error should tell you what you need to install if you do need to install something else.

Run the following commands to clone and compile vorbis from source:

cd ~/
git clone https://git.xiph.org/vorbis.git
cd vorbis
./autogen.sh
./configure
make
sudo make install

You may see a couple of "warnings" but you can ignore warnings. Pay attention to any errors.

If you have problems, you can uninstall by running the following commands:

cd ~/vorbis
sudo make uninstall

If you want to update in the future, you can run the following commands:

cd ~/vorbis
git pull https://git.xiph.org/vorbis.git master
make clean
./autogen.sh
./configure
make
sudo make install

Run the following command for more info:

cat ~/vorbis/README.md

Next, to run asunder using the new libs, run the following command:

LD_LIBRARY_PATH=/usr/local/lib asunder

Alternatively, you can permanently set the new libvorbis system wide by running the following command:

echo '/usr/local/lib' | sudo tee /etc/ld.so.conf.d/libvorbis.conf

If you run into problems running the new libvorbis with other applications, you can run the following command to remove the system wide link.

sudo rm /etc/ld.so.conf.d/libvorbis.conf

I have verified that both of these methods work.

Click here for more information about linked libraries.

Click here for more information about vorbis.


HDMI ports stopped working on 14.04 updates

I've the same issue with a Lenovo ideacentre when using HDMI for video output.

I've re-installed and 14.04 base install runs fine, applying updates kills X. I can still ssh in but not kill the Xorg process.

Upgrading to 14.10 had the same problem.

I've resorted to re-installing 14.04 and not applying updates.

I suspect that the issue is related to xorg driver updates or kernel configuration.


How do I mount this ipod? fdisk won't even tell me where it is

Perhaps the ipod is just a content partition without partition table. In that case you'd mount with "mount /dev/sdb /mnt". There should be some traces in /var/log/syslog as to what the device could be called; i.e. whether it is /dev/sdb or not.


How do I upgrade a mkusb Persistent Live system from 16.04 to 18.04

Upgrade a persistent live system

There are reasons to upgrade a persistent live system, if you use it for other purposes than testing, for example because you want a very portable operating system, more portable than an installed Ubuntu system in an external drive.

security upgrades
new versions of installed programs
new kernels and hardware drivers to make it work with new computers

You upgrade the basic persistent live system by installing it from a new iso file, typically a new daily iso file of an LTS release, but also to a new version of Ubuntu (16.04 to 18.04). But you lose your data files, tweaks and the manually installed programs.

You can copy /home to another version of Ubuntu

The /home directory contains personal data as well as settings and tweaks. These data are almost always independent of the version of version of Ubuntu (or Ubuntu community flavour). It means that you can copy them from one version to another version within a fairly wide scope of versions.

I have tested that

you can upgrade from 12.04.5 LTS directly all the way to 18.04 LTS,
you can downgrade from 18.04 LTS to 14.04.1 LTS,
and in the specific case of the question, you can upgrade from 16.04 to 18.04.

This works when you address the 'home' directory

of persistent live systems

in the casper-rw partition (or file)
in a separate home partition (or file)

and of installed systems.

If the user IDs are different, you must make them match in the new system. This means that it is easy to upgrade a persistent live system of Ubuntu to a new version of Ubuntu, or stay within the same community flavour of Ubuntu (Kubuntu, Lubuntu, ... Xubuntu). It is possible but more difficult to switch between flaovurs and to switch between installed systems and persistent live systems.

Do not copy the casper-rw partition to a new version of Ubuntu

You are right, a full upgrade of a persistent live system is not possible, at least not the easy way by copying the casper-rw partition from an old version to a new version. After some upgraded program packages, it doesn't even work to upgrade to a newer [daily] iso file within the same version of Ubuntu (or Ubuntu community flavour).

So you must re-install the program packages, that you installed manually, and you must re-do the system settings, that are not in /home (for example those in /etc).

Methods and tools

mkusb and mkusb-backup-n-restore-home

Create the first persistent live system with mkusb.
Backup /home from the casper-rw partition to a tarball with the command

mkusb-backup-n-restore-home -b

Create the second and upgraded persistent live from a new iso file with mkusb. This can be in the same or another USB pendrive.
Restore /home from the tarball to the new persistent live system's casper-rw` partition with the command

mkusb-backup-n-restore-home -r

Boot into the new persistent live system and install programs manually, when necessary.
The following links describe how to install and use these tools,

help.ubuntu.com/community/mkusb

help.ubuntu.com/community/mkusb/persistent

Backup and restore the /home directory in casper-rw partitions of mkusb persistent drives

This method may suit better,

if you already have a persistent live drive made by mkusb
if you want to combine the upgrade with a backup
if you prefer tools with graphical user interfaces

mk-persistent-live_with_home-rw

Create a persistent live drive with mk-persistent-live_with_home-rw. This will be different from a drive made by mkusb. The idea is to
keep the home-rw partition
replace the iso file with a new one
create a new file system in the casper-rw partition (format).
create a grub.cfg that matches the iso file.

This method may suit better,

if there are lots of data in the /home directory
if the USB pendrive is big
if you want to change between flavours of Ubuntu or between a persistent live system and an installed system, and must tweak the user IDs manually.
The following link describes how to install and use this tool,

Make persistent live drives with casper-rw and home-rw partitions


The best way I found to fix this issue when it struck me this morning was to do the following, which is predicated on you having kept your previous kernel versions installed/accessible through GRUB.

Reboot, and at the GRUB menu, boot into an older 5.4-x kernel that was working.
Bring up a terminal, and add the PPA that is maintaining nvidia-340 support for newer kernels: sudo add-apt-repository ppa:kelebek333/nvidia-legacy
Run sudo apt update then sudo apt dist-upgrade. You will see the nvidia-340 package get an update based on the PPA, and your installed kernels be rebuilt, including the newer 5.8-x one with a now-working 340 package. If successful, reboot. If not, this method may not fix your issue, I'm sorry.
Allow GRUB to boot into 5.8-x and then run your normal apt updates and upgrades, etc.


You already have an installation Live USB which is the first challenge.

Pull out your HDD and leave the SSD as the first drive (swap bays if necessary).

Boot up and press F2 for BIOS menu.

Ensure UEFI is turned on, AHCI is turned on (not IRST) and secure boot is turned off.

Select boot from USB and proceed to exit BIOS.

When Ubuntu starts up choose to install and erase entire disk.

That about covers it.

The HDD makes a nice paper weight until such time as you need to use it for storing videos or on-line backups.


You can find all the sounds in the folder:

/usr/share/sounds

if you rename your sound to the one you want to replace. (I think only ogg and wav are allowed so you may need to convert your sound files).


How to execute the app just by root or specific user?

Easily what you can do, just play with permissions:

Create a group for all users allowed to use the application, let's say sslusers.

 sudo groupadd sslusers

Find the terminal program (use which), for example, openssl. Change its ownership accordingly :

sudo chown root:sslusers /usr/bin/openssl

Allow execution for the owner, and the group. Deny for others :

sudo chmod 750 /usr/bin/openssl

now let's make a test :

$ openssl

bash: /usr/bin/openssl: Permission denied

$ openssl -v

bash: /usr/bin/openssl: Permission denied

$ openssl version

bash: /usr/bin/openssl: Permission denied


Have you installed a driver yet for your graphics card? You may need to use the opensource driver to solve the problem. Try this link for more information on opensource drivers:
https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia


Fresh Ubuntu Install Being Extremely Slow

I found a solution but I'm not satisfied with the answer.

The ONLY difference between the nearly 10 unsuccessful Ubuntu installs I had and the one that did work was this:
ubuntu install options

I went back and re-installed with these options for "Encrypt..." and "Use LVM..." checked and now everything works fine. Can someone explain why this impacts system performance? I'd really like to understand.


Do this, boot into recovery-mode. to do that, press shift at the purple screen. Then a menu should come up and from there select recovery-mode. Now a ton of text will apear, but then another menu will apear. From there select root command line or something like that. Then I think you can just type:

passwd <username>

and then type in your new password, when you're done, type

reboot

and boot normally.

If you run into an "Authentication token manipulation" error, then you first need to type:

mount -o remount,rw /

Then do the passwd command.


Will reinstalling Ubuntu destroy my boot loader?

You don't need to reinstall just select the recovery mode from grub then select the root shell option from the recovery menu and use the adduser command to add another user (for more on this look at the man page)


Accidentally overlapped the Gnome and Unity interfaces. Now they are causing my menues to glitch badly. Help!

Open Synaptic.
On the bottom left, click the Status button.
Above that, choose Installed. Now you should see a list of all your installed packages.
Find the unity package.
Right click on it, select Mark for Complete Removal.
Apply your changes.
If it doesn't fix things right away, either restart X, or just reboot altogether.


There is no "Connector: Analog Line-In" on the INPUT tab of Sound Preferences -- Why NOT?

Recommend installing alsamixer it will grab those settings from your PCM card and you can modify the settings as you wish.

Installing

Install with Command Line

Adding the ppa

sudo add-apt-repository ppa:ubuntu-audio-dev/ppa
sudo apt-get update

Install the linux-alsa-driver-modules package

sudo apt-get install linux-alsa-driver-modules-$(uname -r)

Note: After installing the linux-alsa-driver-modules package, your system needs to be rebooted.

If you need other information or troubleshooting refer to:

https://help.ubuntu.com/community/SoundTroubleshooting


The N in "limit N blocks" is the maximum number of 512-byte blocks of LBA Range Entries your SSD can handle in a single DATA SET MANAGEMENT command. So we could say that a higher N is better, but according to wikipedia:

  Typically this defaults to 8 (or 4 kB) but many drives reduce this to one to meet the Microsoft Windows Hardware Requirements for Trim, Command completion time shall not exceed 20 ms or 8 ms * (number of LBA range entries), whichever is greater, and shall always be less than 600 ms.

So for me it is not obvious that every drive wants to comply with Microsoft's requirement. If we assume that both of your SSD's comply with those requirements we can say that your Samsung SSD is better in this subject, since it can TRIM more blocks in the same time than your Sandisk one.

Your Samsung SSD can TRIM a maximum of 16GB of data in a single TRIM command, your Sandisk SSD can only TRIM a maximum of 2 GB of data in a single TRIM command. (That maximum is only reachable if the LBAs to TRIM are contiguous.) But as I said before, we don't know that how fast each of these SSD's deal with that single TRIM command, if they need the same time, then obviously Samsung is better, if the Sandisk finishes much faster with that single command, it may be able to run more TRIM commands in the same time the Samsung runs only one TRIM command.

Anyway, I think that this parameter has no importance for a consumer. This is more like just a technical characteristic of the drive.
If you mount your SSD with the discard flag, or if you use fstrim (maybe in a cron job) then you have TRIM enabled. There is nothing more to do to enable it.


How to fix ./configure command does not exist error on ubuntu 14.10?

configure is a script (file) located in the source tree of a source distribution.
Check if it exists in the source tree of OpenFM and that is it executable.


Where is the Gnome classic menu metadata?

I found the answer myself with the help of the freedesktop.org spec

There was a gnome-applications.menu in ~/.config/menus and as the env variable XDG_MENU_PREFIX was set to "gnome-" the gnome-version trumped my applications.menu.

Renaming my applications.menu to gnome-applications.menu solved the problem


You need to undo what you did to get the nightly builds in the first place.

for example: (may not exactly match your setup)

install

sudo add-apt-repository ppa:ubuntu-mozilla-daily/firefox-aurora
sudo add-apt-repository ppa:ubuntu-mozilla-daily/thunderbird-aurora

sudo apt-get update && sudo apt-get upgrade

downgrade

sudo apt-get install ppa-purge      (if required)

sudo ppa-purge ppa:ubuntu-mozilla-daily/firefox-aurora
sudo ppa-purge ppa:ubuntu-mozilla-daily/thunderbird-aurora

Then just update you system.

sudo apt-get update && sudo apt-get upgrade


How do you use ubuntu-drivers-common or software-properties in the command line to change graphics drivers?

Using ubuntu-drivers, the available commands are described below:

usage: ubuntu-drivers [-h] [--package-list PATH] <command>

List/install driver packages for Ubuntu.

positional arguments:
  <command>            See below

optional arguments:
  -h, --help           show this help message and exit
  --package-list PATH  Create file with list of installed packages (in
                       autoinstall mode)

Available commands:
   debug: Print all available information and debug data about drivers.
   autoinstall: Install drivers that are appropriate for automatic installation.
   devices: Show all devices which need drivers, and which packages apply to them.
   list: Show all driver packages which apply to the current system.

Source

Thus you can get the list of package names with sudo ubuntu-drivers devices and then install the respective packages using apt-get.

After installing the one you want to use, you have to remove the one that you don't want to use. This will force Ubuntu to use the one you installed (thanks @Ads20000)


Non LTS versions of Ubuntu are supported for 18 months from release, so 11.10 will be supported until April 2013. See the ubuntu releases page for details of the different releases and their support periods.

If you were to install the current LTS, 10.04, then desktop support for that release would also end in April 2013, so that doesn't help. Though 10.04 is likely to be that much more stable at this point as there has been longer to debug it.

The next LTS will be released in April 2012 and will be supported for 5 years on the desktop.

Overall my advice to you would be to stick with 11.10 for now, and once 12.04 LTS has been released upgrade to that. The last few upgrades have been very reliable and simple for me. After the upgrade you can stick with 12.04 for up to five years and still get updates.


I know you already got your answer, but I somewhat recently went through ubuntu-tweak's source (when it was announced that it wasn't going to be developed any longer) and translated everything that it did to the equivalent in bash.  If you're interested to know, Ubuntu Tweak does nearly exactly:

sudo rm -rf /var/cache/apt/archives/*.deb
sudo apt-get clean
rm -rf ~/.cache/google-chrome/Default/*
rm -rf ~/.cache/chromium/Default/*
rm -rf ~/.cache/telepathy/Cache*
rm -rf ~/.googleearth/*
rm -rf ~/.cache/gwibber/
while read -r line; do if [[ "$line" == Path=* ]]; then rm -rf ~/.mozilla/firefox/${line:5}/Cache/*; rm -rf ~/.mozilla/firefox/${line:5}/OfflineCache/*; fi; done < ~/.mozilla/firefox/profiles.ini
while read -r line; do if [[ "$line" == Path=* ]]; then rm -rf ~/.thunderbird/${line:5}/Cache/*; rm -rf ~/.thunderbird/${line:5}/OfflineCache/*; fi; done < ~/.thunderbird/profiles.ini
rm -rf ~/.opera/cache/*
dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge //this one may be dangerous. only run if you know what it's doing.
rm -rf ~/.cache/software-center/*
rm -rf ~/.thumbnails/*
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

And here's a link to my original comment on the matter from reddit.


How to stop SSH filesystem from discarding root permissions after every command?

You can try generating a ssh key with ssh-keygen on your client system, and place the .ssh/id_rsa.pub public key in .ssh/authorized_keys on the 192.168.1.10 system.
See How to harden an SSH server? for more info on this.

Add yourself to the fuse user group, if you haven't.   You can use sshfs user@system instead of sudo there if that is set up correctly.

Also read the Ubuntu sshfs wiki if you haven't.


Battery level never gets 100%, but stays at 99%

I have a x1 carbon from 2015. They are designed this way..

If you unplug it and wait for it to go below 96% it should charge up to 100%.. The reason they do this is because it's bad for the battery with alot of small charges..

Your battery and system is working the way it should. Don't worry about it :)


dpkg error removing linux-image-4.4.0-190-generic on upgraded Ubuntu 20.04

You have suspicious binaries in the /etc/grub.d/ subdirectory, especially  the grubcfg_proxy.
This file is a part of the grub-customizer package.
So you have to try to call GRUB Customizer to fix the issue by its own.
And then resume package upgrade.


Configuring the PAN network on bluetooth

Ok so this question is coming up to a year old but I'll answer it anyway!

You need to set up a dhcp server like you've said, but there's no graphical way to do it, as far as I'm aware. Fortunately it's relatively painless, but appears to be a little daunting.

The first thing to do is install the dhcp server. sudo apt-get install dhcp3-server should achieve this.

Once it's installed, you need to set what interfaces it should run on. To do this, you need to edit the /etc/default/isc-dhcp-server file on 12.04 (pre-12.04 the file may be called dhcp3-server). To do this, run sudo nano /etc/default/isc-dhcp-server. It should have a line like this:

INTERFACES=""

change it to match your interface name, in your case bnep0:

INTERFACES="bnep0"

use CTRL+O (thats o as in onion, not 0 as in 10) to save the file and CTRL+Q to quit

next you need to set up the DHCP server. To do this, first remove the template configuration:

sudo rm /etc/dhcp/dhcpd.conf

then create a new config and enter this:

(open with sudo nano /etc/dhcp/dhcpd.conf)

default-lease-time 600;
max-lease-time 7200;
authoritative;

subnet 10.0.66.0 netmask 255.255.255.240 {
 range 10.0.66.4 10.0.66.14
}

(matches your settings)

after that, (re)start the dhcp server with

sudo service start isc-dhcp-server.

if it complains it's already running, try

sudo service restart isc-dhcp-server

and that should be it :D


Deja Dup gives "Invalid or incomplete multibyte or wide character" when attempting to restore from backup

Finally figured how to do option c above: In Nautilus, right click my existing Shotwell library db, select Revert to Previous Version, point to the backup, and done. Did not find solutions a or b.


Where to “--exclude” the specific directory's in mine backup script using tar

You list all the directories to be excluded into a text file, like this :

/var/backups
/proc
/sys
/dev
/tmp

Let's call this file /etc/backup-excl.lst

Then you can call the tar command the following way :

tar ScpfzX /etc/backup-excl.lst $DESTDIR/$FILENAME $SRCDIR

The X parameter flas is to tell that a file with directories to be excluded will follow.

The S parameter is used to handle Linux sparse files smartly. Sparse files are files which contain empty space, where the disk space is pre-allocated but not necessarily used. Handling these files smartly means only backuping the real content, not the empty space.


First off, you want to create a partition for SUSE. Boot into an Ubuntu LiveCD and use GParted. Make it ext2/3/4. Once you are done with that, reboot.

Back in Ubuntu, download the SUSE iso. Run this command as root (su) in a terminal:

 dd if=/path/to/downloaded.iso of=/dev/sdX bs=4M

Replace sdX with the appropriate device identifier for the USB drive. You can usually find this using lsblk. Do not write to a partition on the drive. Write to the drive itself.

Reboot into the USB drive and follow the instructions. When asked where to install SUSE, choose the partition you made earlier.

Once you are done, you will need to re-install Ubuntu's Grub. Details on how to do that are right here.

Answer source

Disclaimer: I am not responsible for anything that goes wrong in this answer. By using this answer, you agree that any errors from using this question is not my fault.


converted comment to answer
Your Question appears to be related closely/or is the same as this old KDE bug-report.
Following the duplicate link it mentions a possible workaround

A possible workaround for the problem:
systemsettings -> appearance -> fonts force dpi to 96

Looking at the man-page for xrandr possibly you could try:
xrandr --dpi [dpi]

or possibly calling in your script xrandr twice, changing the [dpi] to one value, sleep for a second to allow the display to refresh, before calling the same routine again with the final [dpi] value - for example, 96.


GNOME Shell Overview animation is slow on my NVIDIA 320M

Out of curiosity, are you using the default theme? A lot of custom themes I've tried have had inexplicably low frame-rates during that animation.


How to use apt on a network using only https?

I had a look on the net and I found these secured mirrors: deb https://mirrors.kernel.org/ubuntu xenial main restricted universe multiverse
deb-src https://mirrors.kernel.org/ubuntu xenial main restricted universe multiverse


Find hash of apt-get package already installed

There is a command called "md5sum" can be used to generate MD5 checksums for files as follows (Check "man md5sum" for more info):
md5sum [OPTION]... [FILE]...

Regarding your question, if you want to verify before installation you can first download the .deb file using apt-get through the following command:
sudo apt-get install --download-only <package>

Then check the checksum using md5sum of the deb and then install the deb using dpkg. Or if you have installed the package already then you can find the checksums in the directory /var/lib/dpkg/info


Bash Recursive command (**/*) to include files of current directory files as well

As steeldriver says, you need to enable the globstar shell option if you want Bash to treat ** recursively. It is turned off by default. That is, by default in Bash, ** behaves the same as *, and that is the behavior you are seeing.

shopt globstar tells you whether it is on or off.
shopt -s globstar turns it on (-s for "set").
shopt -u globstar turns it off (-u for "unset").

help shopt gives details on the shopt builtin.
The Bash reference manual explains * and **:

*
Matches any string, including the null string. When the globstar
shell option is enabled, and ‘*’ is used in a filename expansion
context, two adjacent ‘*’s used as a single pattern will match all
files and zero or more directories and subdirectories. If followed by
a ‘/’, two adjacent ‘*’s will match only directories and
subdirectories.

With globstar, ** matches zero or more directories, which allows **/*.mp3 to match *.mp3 files in the current directory, as well as in subdirectories of the current directory, in subdirectories of those directories, and so forth. This is to say that **/*.mp3 matches the same files as if you wrote:
*.mp3 */*.mp3 */*/*.mp3 */*/*/*.mp3 ...

(where, in place of ..., the sequence continues on as deep as is needed for the directory tree being recursed; see also FedonKadifeli's comment, which presents the first two terms).
Without globstar, ** just has the same effect as *. Then **/*.mp3 is equivalent to */*.mp3, i.e., it matches *.mp3 files in subdirectories of the current directory, but not in subdirectories, nor in any deeper descendants of those subdirectories, nor in the current directory itself.
Note that, by default, globstar does not recurse into hidden directories--those whose names start with a .. * (and ?) does not match a . at the beginning of a path component; likewise, ** does not match a . at the beginning of any of the path components it would expand to. To change this (which changes it for both * and **), you can turn on the dotglob shell option. But you most likely don't want that.

Changes to shell options apply to a single running instance of the shell, as long as that instance is running (or until you change the option again). So turning globstar on in one Bash shell doesn't affect it in future Bash shells, nor in other Bash shells running at the same time.
However, if you want the change to last even shorter than that, you can use parentheses to make a subshell in which you set it and run your command:
(shopt -s globstar; mpg123 **/*.mp3)

Or maybe you do want globstar enabled in all your interactive Bash shells from now on. If so, you can put shopt -s globstar, on its own line, at the end of your ~/.bashrc file.


Wifi Hardware Switch Not Working on HP Pavilion 15-n201nr Notebook PC - Hardware Blocked

My Ubuntu laptop HP Pavilion had the same problem. It started when I forced shutdown of my system by pressing on/off for 4 seconds.
The solutions provided above did not work for me, so I did a simple hardware tweak.

Removed Wi-Fi card from the back of the laptop (leave the antenna wires)
Cold boot
Shutdown
Reconnect Wi-Fi card
Cold boot

After this tweak I was able to select [turn off WiFi mode] again from the top network menu.


ATI Catalyst Control Center gives error (Radeon HD 6470M)

sudo apt-get remove fglrx

then for newest ati driver:

wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-5-x86.x86_64.run

If you have a 64 bit system, then install this before anything:

sudo apt-get install ia32-libs

Once dowloaded right-click the .run file and set it to run as executable.

then.

cd /path_of_the_file

This is for 32 bit only:

sh ./ati-driver-installer-11-5-x86.x86_64.run

This is for 64 bit only:

sh ./ati-driver-installer-11-5-x86.x86_64.run --buildpkg Ubuntu/natty

sudo dpkg -i fglrx*.deb

Once it's done.

  sudo aticonfig --initial -f

that's all you have to do.

Alternatively you can add this ppa.

   sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
   sudo apt-get update
   sudo apt-get install fglrx


It looks like you use Ubuntu 14.04 with kernel 3.16.

But you have still 3.13 kernel meta packages that download and install these kernels.

Some DKMS modules do not build with those kernels. To be more precise they build but do not install correctly.

I suggest removing 3.13 meta packages by

 sudo apt-get remove linux-generic linux-headers-generic linux-image-generic

And also you can install Synaptic and remove unneeded 3.13 linux images and headers.


I removed the video card and attempted to install. I still got the INITRAMFS unpacking and decoding failure, but it did install. The video card was the problem. Thank you for your help and responses.


Nice and simple one :-)
The beta has been removed from the Home page now but you can still get it from :

https://wiki.ubuntu.com/UbuntuOne/Windows

I hope this helps


Play on linux "Cannot set locale to " " error

According to this post on the Play On Linux forums, this error can be caused by having different languages set for the LANG and LC_* variables.
You can check these variables by typing locale into the Terminal.

A solution for this is to force Play On Linux to run in English.

This can be achieved by running this command in the Terminal:

LC_ALL=C playonlinux

More information on the LC_ALL command can be found here.


Ubuntu 19.10... pixelsaver was working, but now isn't; reinstall doesn't work

get dconf editor and go to org->gnome->terminal->legacy->headerbar set to false. Then you can use the extension unite to e.g. remove titlebars when tiled of when the terminal fills the whole screen.
But but but I experience some glitches with the shadows behind the terminal when doing this. Maybe you wont. For now there is no other fixes.


Linux version of XCOM won't work on Ubuntu 14.04

Funnily enough, I was just playing XCOM on Ubuntu 14.04 earlier today. Excellent game.

That being said, try looking in your .steam/steam/SteamApps/common/XCom-Enemy-Unknown folder for "XCOMLauncher". Also, make sure "game.x86_64" and "xcom.sh" exist at .steam/steam/SteamApps/common/XCom-Enemy-Unknown/binaries/linux.


Newbie interested in installing Ubuntu instead of Windows on a Lenovo IdeaPad 100S 11IBY

I'll briefly answer your 4 questions. For more detailed answer, you may check the link provided by @pomsky

It's not compulsory to remove Windows. It's totally your choice.

This is when 'Dual Booting' comes in. With 'Dual Booting', you can have 2   OS installed on your system, without any major issues.
Cleaning up the hardrive, 'completely' is not required.
If you can just take out ~100 GB of space (through partition), then you're ready for Ubuntu.

Ubuntu is a OS based on Linux. You can consider it as a Fruit(Ubuntu) with a Seed(Linux). So, if you take the fruit, then you automatically have the seeds. Just like that, you install Ubuntu and have Linux with it. You may consider reading more about Linux and it's distributions on Wiki.
With& without a USB, installation of Ubuntu can be done.

With USB : You need to make it a 'Live USB' (A USB capable of booting up your system with the OS present in it).
Without USB : You may consider the option of having 'Virtual Box' (A Software to run a 2nd OS (Ubuntu in this case) from within your Windows OS).

If the files, are created in the Windows OS, then absolutely Yes. However, if they're created in the Ubuntu Os and stored in it's Home Directory, then you might have trouble accessing it. However, you can access the harddisk partitions from Ubuntu and store your files in it. This way, you can access the files, both from Ubuntu and Windows.

I hope that I've answered your queries satisfactorily. If you have any doubts, then feel free to comment here. And I wish you to have an interesting& fascinating experience with Ubuntu! Enjoy!


Missing firmware error on Lubuntu 12.04 LiveCD: b43-phy0 ERROR: Firmware file "b43/ucode5.fw" not found

Installation Instructions for Broadcom network devices

First you will have to identify your chip ID as each one is supported by more than one driver/module.

Run this command to know your network chip details ('14e4' to find only broadcom devices)

lspci -vvnn | grep 14e4

It will display something like this:

03:00.0 Network controller [0280]: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b] (rev 01)

Now here,

The Chip ID is BCM4322

The PCI-ID is [14e4:432b]

Your chip id will be different. Now when you know your chip-id, find the driver supporting your network chip from this official ubuntu page:
https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx#b43%20-%20Internet%20access

The page has installation instructions for each driver as well.

Don't forget to reboot your system after driver inslalation.

Hope it helps.


Change week start day on Ubuntu 14.04 LTS

This depends on the locale. E.g I have set my locale under System settings --> language support --> Regional formats to Greek and the week begins on Monday


How should I report bugs in my Bq Ubuntu Phone?

Answer to myself. Information about bug reporting on Ubuntu Touch can be found in here:

https://wiki.ubuntu.com/Avengers


How to add custom applications/scripts in startup applications in 14.10?

You can use Arronax to create a starter for your script and save it into $HOME/.config/autostart/ (that's "User Autostart Folder" in the "Standard Folders" list in the lower left of the "Save File" dialog)


Xubuntu 14.04 Light Locker Password Not Working

press ctrl+alt+F1 and input your user name and next input your password. When successfully login, create new user by typing sudo adduser [yourname] ex: sudo adduser creatorb and next complete it field like password and etc. Finally reboot and login with new user account on your light-locker.


There is an unofficial WhatsApp client for Linux in the Ubuntu Software app: whatsdesk.

WhatsDesk is a unofficial client of whatsapp
this project only insert a web whatsapp in a electron app and add desktop notification

It is available as snap package from the store (see above) and .deb package for download.
Sources and more information can be found on https://gitlab.com/zerkc/whatsdesk.


"Enter password to unlock the private key" on 18.04 when no password has been set

As I couldn't find a fix for this I decided to go around it by replacing my ssh keys altogether, and my problem disappeared.

I created a new set of keys, overriding the old ones, and uploaded those to my BitBucket, and when I tried again the password prompt didn't appear.

So it definitely looks like a bug, as neither the old keys nor the new ones had a password, and yet they behaved differently?

Note: in the Password and Keys settings, when I clicked Change Passphrase on the old keys it also asked for a password which didn't exist, whereas on the new keys it's just asking me if I want to set a new password.


Which is correct: "GNOME Classic" or "GNOME Fallback"?

The classic GNOME 2 interface present in Ubuntu up to 11.04 but not in later releases is just GNOME 2 (with the default shell). The name of the session type for this interface was Ubuntu Classic, and the name of the session type for Unity was (and still is) Ubuntu, but that shouldn't be confused with the name of the interface itself--Ubuntu is an operating system, after all, not an interface.

Nonetheless, since any mention of "GNOME shell" evokes the idea of GNOME 3, and since Unity is also a GNOME interface, it is helpful to be able to characterize the classic GNOME 2 interface as separate both from any GNOME 3 interface and from versions of the Unity interface that used GNOME 2. Thus it's become almost common to call it GNOME Classic.

We should avoid calling it that, because that's capitalized and thus a proper name, and yet that is not the official name for it. In my opinion, we should instead say "the classic GNOME 2 interface."

The practical reason why it is bad to call the classic GNOME 2 interface "GNOME Classic" is that GNOME Classic is the name of the session type in Ubuntu 11.10 (and future versions) that provides the GNOME Fallback interface. The GNOME Fallback interface is a GNOME 3 interface that is designed to look and behave a lot (though not entirely) like the classic GNOME 2 interface.

Here's a condensed list of some interfaces and the session types that provide them in Ubuntu 11.04 and Ubuntu 11.10:

The Unity interface (sometimes colloquially known as Unity 3D or 3D Unity, as it uses 3D graphics acceleration) is provided by the Ubuntu session type. The overarching desktop environment is GNOME 2 in Ubuntu 11.04 and earlier versions, and GNOME 3 starting with Ubuntu 11.10. The window manager has been compiz for a while. Install this with the ubuntu-desktop metapackage.
The Unity 2D interface is provided by the Ubuntu 2D session type. The overarching desktop environment is GNOME 2 in Ubuntu 11.04 and earlier versions (but unity-2d was only available by PPA back then), and GNOME 3 starting with Ubuntu 11.10. The window manager is metacity. Starting with Ubuntu 11.04, install this with the ubuntu-desktop metapackage.
The classic GNOME 2 interface was provided by the Ubuntu Classic and Ubuntu Classic (no effects) session types. The overarching desktop environment was GNOME 2. This could be installed by the ubuntu-desktop metapackage.
The GNOME Fallback interface (which is a GNOME 3 interface that looks like classic GNOME 2) is provided by the GNOME Classic and GNOME Classic (no effects) session types. The overarching desktop environment is GNOME 3. The window manager is metacity. Install this with the gnome-session-fallback package.
The GNOME 3 (or GNOME 3 Shell or GNOME Shell) interface is provided by the GNOME session type, starting in Ubuntu 11.10. (In significantly older versions of Ubuntu, the "GNOME" session type had once meant what the "Ubuntu Classic" session type means in Ubuntu 11.04.) The overarching desktop environment is GNOME 3. The window manager is mutter. Install this with the gnome-shell package.
The KDE 4 (or KDE 4 Plasma, or KDE 4 Plasma Workspaces, or just KDE) interface is provided by the Kubuntu session type. (Considerably over versions of Ubuntu had major version 3 of KDE instead.) The overarching desktop environment is KDE 4 (frequently just called KDE these days, as it came out some time ago). The window manager is kwin (available via the traditional kde-window-manager package and, as of Ubuntu 11.10, also available in kde-window-manager-gles). Install this with the kubuntu-desktop metapackage.
The Xfce 4 (or Xfce) interface is provided by the Xubuntu session type. The overarching desktop environment is Xfce 4 (also Xfce4 or just Xfce). The window manager is xfwm4. Install this with the xubuntu-desktop metapackage.
The LXDE interface is provided by the Lubuntu session type; it is also provided with a different configuration by the Lubuntu Netbook session type (this can arguably be considered a different interface). The overarching desktop environment is LXDE. The window manager is openbox. Install this with the lubuntu-desktop metapackage.


How can I run a job yearly with anacron?

Ofcourse and it is already there with the possible selections you have: pick 1 specific day and 1 specific month and it will run once per year. Day 1 of month 1 would be on the 1st of January.

Anacron has 2 ways of defining lines. The 2nd one is like this:

 @period_name delay job-identify command

The period_name can be set to daily, weekly, monthly, yearly or annualy. This will ensure jobs are run once a week, month or year no matter the number of days in this period.

Example

@yearly 0 job1 /usr/bin/execute_me

The 0 means no delay. job1 is an identifier and the command to execute.


Applications are typically stored as .desktop files in the ~/.config/autostart folder.

Locate the above folder; if RemoteControlServer uses this folder to store it's startup script, then you'll see it - in which case you can simply delete the file.

Alternatively, you can search "startup applications" into the Dash and open the program Startup Applications; locate the RemoteControlServer option and disable it.


Wired network disconnects when using Transmition bitTorrent

I reduced number of connections per torrent, and my problem is gone.


Disabling touchscreen to extend battery life?

To extend the battery life greatly do the following:

TLP helps laptop reduce the ammount of power consumed in a much more efficient way than any other:

First: Uninstall laptop mode tools

sudo apt-get remove laptop-mode-tools

Then install:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw

Finally start it:

sudo tlp start

You will gain about 1 hour more battery life approx.

PS: You can always update to 13.10 that has the latest kernel available and have a better power management kernel updated for machines like yours.


The issue seemed familiar and I saw a post in vmware comunities about having open-vm-tools installed already. Could you check if you have them, then uninstall and try recompiling vmware-tools?
sudo dpkg --search open-vm-tools
sudo apt-get purge open-vm-tools

Edit: I enclosed this as a comment in another question @Peretz made related to this one and this solved it.


High DPi screen xrandr scaling on ubuntu 18.04 LTS

I had this issue too. Something that worked for me is to run the two parts of the command separately:

xrandr --output eDP-1 --scale 1.25x1.25
xrandr --output eDP-1 --panning 2560x1440

I then don't get the black borders. This didn't work in a start-up script, however -- I have to run this every time I log in.

After I suspend and resume, however, the black borders show up again. If anyone has any tips for getting around that, that'd be appreciated.


Unable to lower brightness in lenovo legion y530

I simply had to change kernel parameters.

The only thing left after "quiet splash" was "i915.alpha_support=1"

I removed the following parameters after changing the kernel version to 4.18.5 :

"nomodeset"
"$vt_handoff"
"acpi_backlight=off"
"acpi_backlight=vendor"

So only remaining parameters was  "i915.alpha_support=1"

By doing this , it also removed lag after login screen.

I think "nomodeset" was responsible for that.


Ubuntu 18.04.4 LTS crashing when second monitor is connected

That CPU is power hungry so you should have a recommend power supply to cover the extra wattage draw from the video card.
Try installing the latest Ubuntu 18.04 kernel or just install use

sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04

https://wiki.ubuntu.com/Kernel/LTSEnablementStack

Shutdown and start computer with 2nd monitor already plugged in.
Swap video cables to make sure it isn't a bad cable.
Verify that your are using the native resolution for the monitor or lower the resolution manually is the Display settings.

If that still doesn't work then grab the proprietary driver from AMD for your card.

https://www2.ati.com/drivers/legacy/amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.zip


QML ListView display only 1 row ( if covered in Column and row )


installation Ubuntu 14.01 on a different partition with Windows 8.1

Most of the time, when you start the Ubuntu installation, it will detect Windows partitions and guide you through making space for Ubuntu. If it doesn't, you have to manually partition, which isn't hard at all for someone like me, but I use Gentoo, so that's different. Anyways, if the Ubuntu installer cannot detect windows paritions, you will have to click on the options that is under "Install Ubuntu" which is called "Something Else", after you click that, you will have to make the Windows Partition smaller to make room for Ubuntu, I suggest >40GB. Then you will make a new parition, which you will have to set as ext4 or btrfs, and choose the / mount point. If you are low on RAM, leave an extra 4 - 8 GB to partition as swap.


Dual Boot with two SSDs and full Encryption

Just like @oldfred suggested, it was the easiest method to just disconnect all other drives.
Then select "Erase Disk and install Ubuntu" with

Encrypt the new Ubuntu Installation for security
Use LVM with the new Ubuntu Installation
checked.

Ubuntu will be installed encrypted on the new SSD. Switching between the OS is possible through UEFI Boot Menu.


I reinstalled the proprietary NVIDIA drivers and now everything works perfectly.


RTL8188EE doesn't detect any wireless signal

It seems that this issue is fixed with Ubuntu 13.10. (source: http://forum.ubuntu-fr.org/viewtopic.php?pid=15059781). (Sorry, my source is in French.

Before installing Ubuntu 13.10, you may try install a more recent version of the kernel.


Preventing LTS upgrade to another version of ubuntu

I believe setting "Prompt=never" in /etc/update-manager/release-upgrades will disable notifications about available upgrades all together.


Gnome built-in night light won't work after update

The problem came after the NoMachine installation.
(Note that if you don't have NoMachine installed, the problem may be caused by other factors)

Deleting the file /usr/share/polkit-1/actions/org.freedesktop.color-manager.create-device.policy and reinstalling the colord package, solved the issue (after a reboot).

Source

The problem was still there after upgrading to 18.04. The solution  is the same.


can't boot windows 7 after ubuntu 12.04 LTS installation

Try running the Ubuntu Boot Repair utility. If that fails, it may be necessary to create a custom Windows entry in /etc/grub.d/40_custom and re-running update-grub.

EDIT: The 40_custom entry would look something like this:

menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos3)'
    chainloader +1
}

If that doesn't work, then it's conceivable it could still be rescued with some sort of tweak (but I can't help beyond this point); or you might have a more fundamental problem, like missing boot loader code in the NTFS partition itself.


Debug WOL failing to configure on Ubuntu Server 12.04

Apologies for answering my own question.

This appears to have been a mistake in my /etc/netowork/interfaces file.  The file was referencing an old wireless card I'd had to take out due to problems I was having with the card.

I'm guessing that something was incorrect in the /etc/network/interfaces file.  I had split the
auto eth0 and the iface eth0 inet dhcp... either side of the config for the wireless card by mistake.

Either way I removed the wireless config as this was no longer doing anything and WoL started to work just fine.


Risk of failing to use "Safely Remove Drive"

When the user selects "Safely Remove Drive", the partition of the media (in this case the USB flash memory) is "unmounted" as soon as the drive has finished its current operation(s).

Then, it's safe to proceed and physically remove the USB stick, because the drive is "switched off".

If you do not "eject" the media, meaning that is still mounted (i.e. linked to a directory, usually in /media), and you remove the drive, you can corrupt the files on the USB stick, even if you think the system is not reading/writing anything on the drive itself. So my advice is to always eject it.

This is just a quick answer, you can also check this article: http://lifehacker.com/5863810/do-i-really-need-to-eject-usb-drives-before-removing-them


Ubuntu 14 shows on bootloader menu of 12 but does not boot

Download software called (Boot-Repair-Disk) from sourceforge.net and burn to dvd, BOOT to the repair disk. Allow system to fully boot. The screen will show a box that says BOOT REPAIR (repair the boot of the computer) Click on (Recommended Repair) you will have boxes open asking you pertinant Questions, one question will be about your external hard disk, answer questions with yes or no and let software do its thing, exit boot repair disk when it's done, and reboot system and your GRUB screen will give you the options you are looking for. Worked for me more than a few times. This software is FREE :-)


Is this bug your problem?  I ran into this and ended up doing a distribution upgrade to 12.10 to get passed it...

Can’t connect to VPN from GNOME Shell

It's been a while since this happened and I don't entirely recall what I ran into, but your problem seems very familiar to me.


Is tar xz safe to use for Ubuntu Full Backups of /?

Yes, it is certainly safe. But if it is recommended is a different matter.

Recommending it more depends on your time avaliable and your space avaliable on your backup media.

If you don't have much space but quite a bit of time, use xz. It uses a load less space, but quite a bit of time.

If you don't have much time but quite a bit of space, use gzip. It uses a lot of space but a lot less time.

If you have something about in the middle of these two extremes, use bzip2. It uses a moderate amount of both. You can use

tar cvfpj UbuntuComputerBackup.tar.bz2 --exclude=/proc --exclude=/sys --exclude=/dev /

to use bz2.


How to install MIRACL c++ library in Ubuntu 14.04?

This is happening because that dash character is wrong. Look very carefully:

The command you're running:

gcc –I. –c –O2 mr*.c

What you really should run:

gcc -I. -c -O2 mr*.c

Look at the dashes. Can you see the difference?


Restore Ubuntu using Systemback SBLive file

Just write the .sblive file to a USB key, with Systemback.

Then boot this pendrive and start the Systemback. Perform a system copy without partition formatting. This is the simplest method.

Note The .sblive file must be in your /home/ directory.


How to set default encoding for non UTF encoded documents system wide?

Just set the encoding in a terminal by entering this line:

gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8', 'WINDOWS-1251', 'CURRENT', 'ISO-8859-15', 'UTF-16']"


How to resolve unmet dependencies? Cannot install or remove packages

Try to install manual openjdk-6-jre (sudo apt-get install openjdk-6-jre) - when it is not possible run "apt-cache policy openjdk-6-jre" to see if you have a source for it. When you don’t have a source you miss universe and/or security sources in your /etc/apt/sources.list. Possible you miss also a "sudo apt-get update"?

or try to remove the packages with:

sudo dpkg --purge bleachbit ca-certificates-java icedtea-6-plugin icedtea-netx

Then try again to install what you want to install or just install oracle java:

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


Here you go, thanks:

There is no gvfs backend for "http".

I suspect what you are looking for is "dav" or "davs". For example: davs://mydomain.duckdns.org.....

OR dav://mydomain.duckdns.org.....


How do I set up an Ubuntu server to be (securely) available from the internet?

When properly set-up OpenSSH is safe, even on the standard port. Moving it away from the standard port saves you from your log files being filled up by unauthorized login attempts. More details on the end.
It's very dangerous to access your server if you do not have control over the computer which should connect to your server (which I think that's the reason why you need to use a browser plugin)
OpenVPN can be set up to share TCP ports with a HTTP/HTTPS server, from its manual page:
--port-share host port
    When run in TCP server mode, share the OpenVPN port with another
    application, such as an HTTPS server.
    If OpenVPN senses a connection to its port which is using a non-OpenVPN
    protocol, it will proxy the connection to the server at host:port.
    Currently only designed to work with HTTP/HTTPS, though it would
    be theoretically possible to extend to other protocols such as ssh.

It's not recommended to use OpenVPN with a TCP connection due to its overhead (TCP 3-way handshake). If you've no choice, you could give it a go.
Using OpenVPN, you can avoid any port restriction imposed on you and secure the connection. Please refer to How do I setup OpenVPN so I can securely use the internet from an unsecured hotspot? for a guide on setting up OpenVPN.
You cannot share ports unless an application supports it (like OpenVPN), so I must disappoint you on that.
SSH server
Password-based authentication without limiting connection attempts is asking for trouble. Because of that, it's preferred to use key-based authentication and disable password-based authentication altogether.

Install openssh-server by running sudo apt-get install openssh-server

Disable password-based authentication by editing the configuration file /etc/ssh/sshd_config. To start editing, run sudo nano /etc/ssh/sshd_config. Find the line #PasswordAuthentication yes and change it to PasswordAuthentication no. By default, SSH listens on port 22. If you want to change it, use a port below 1024 for security reasons. (change the line with Port 22)

For extra security, you can configure a list of users who are allowed to login. Add a line with:
AllowUsers someuser

Replace someuser by the username of the account that is allowed to log in. Multiple usernames should be separated by a space.

Generate a key on your computer using the command ssh-keygen -t rsa. Enter whatever values you want and choose a secure passphrase.

Copy the contents of ~/.ssh/id_rsa.pub file to /home/someuser/.ssh/authorized_keys file on your server. someuser is the user that should be allowed to login. (it's a single line that should be copied, never copy the contents of a file that starts with -----BEGIN RSA PRIVATE KEY

Reload the configuration of your SSH server:
sudo reload ssh

If you're remotely accessing your server over SSH, verify that you can make a new SSH connection to avoid locking yourself out.


In Gnome Shell, how do I select an application using the keyboard?

The problem which wasn't allowing the "ENTER" key to open the application was caused by some Gnome3 plugins I had installed. Using the Gnome3 advanced settings application, I turned off the "Advanced Search Extension" and the "Journal Extension" which solved the issue.

You can download the Gnome 3 Advanced Settings (aka Gnome Tweak Tool) application here: http://live.gnome.org/GnomeTweakTool


Tl;dr
You can generally "trigger EOF" in a program running in a terminal with a CTRL+D keystroke right after the last input flush.

What does EOF mean? How can I trigger it?

EOF means End-Of-File.
"Triggering EOF" in this case roughly means "making the program aware that no more input will be sent".
In this case, since getchar() will return a negative number if no character is read, the execution is terminated.
But this doesn't only apply to your specific program, it applies to many different tools.
In general "triggering EOF" can be done with a CTRL+D keystroke right after the last input flush (i.e. by sending an empty input).
For example with cat:
% cat >file # Hit ENTER
foo # Hit ENTER and CTRL+D
%

What's happening under the hood when hitting CTRL+D is that the input typed since the last input flush is flushed; when this happens to be an empty input the read() syscall called on the program's STDIN returns 0, getchar() returns  a negative number (-1 in the GNU C library) and this is in turn interpreted as EOF1.

1 - https://stackoverflow.com/a/1516177/4316166


Installing Plex media server unofficial appstore?

I got it to work here are my steps for anyone else looking for an answer.

downloaded plex for ubuntu on the plex website.

installed via software manager

downloaded unsupported appstore on github. It was a zipfile.

I ran command

sudo chown username:username /var/lib/plexmediaserver/Library/"Application Support"/"Plex Media Server"/Plug-ins

I extracted the zip file there in the plugin folder.

Then you have to  change the name of the unsupportedappstore.master-bundle to unsupportedappstore.bundle

run command:

sudo mv /var/lib/plexmediaserver/Library/"Application Support"/"Plex Media Server"/Plug-ins/unsupportedappstore.master-bundle /var/lib/plexmediaserver/Library/"Application Support"/"Plex Media Server"/Plug-ins/unsupportedappstore.bundle

That will rename the appstore plugin.

change back the permission of plug in folder

sudo chown -R plex:plex /var/lib/plexmediaserver/Library/"Application Support"/"Plex Media Server"/Plug-ins/

lastly restart plex

sudo service plexmediaserver restart


I fixed it by installing some missing dependencies like:

apt install gir1.2-*
apt install gjs
apt install caribou
apt install gnome-backgrounds


How to execute the tar file without any error?

You might be having a problem because a tar.bz2 is not the same as a tar.gz, first, you need to extract the file into it's own folder, and compile it, then you can install it. As I am slightly unfamiliar with this process, having only needed to do it once, I will link you to the page that helped me.

How do I install a .tar.gz (or .tar.bz2) file?


I don't have your router but I suspect it is running an old dialect of smb.

Add vers=1.0 to your list of options:

//192.168.1.1/share /mnt/HG635 cifs guest,uid=1000,iocharset=utf8,vers=1.0 0 0

In addition it may also require an earlier security mode which would be another option: sec=ntlm


How to get OS option (dual boot) when i have two OSs on separate disks?

There should not be any issue loading from different disks (at least with grub2). Here is an easy tool you can use to edit grub https://launchpad.net/grub-customizer.

Just add a new entity and choose your partition from the other disk


Your wireless adapter is Hard blocked. Look for a hardware switch on your laptop and turn it on. This can be a Fn + some Fx key. Also check BIOS settings.

If there is no switch, run in a terminal

sudo tee /etc/modprobe.d/blacklist-hp.conf <<< "blacklist hp_wmi"

and reboot.


One way to play DVD on xbox is to burn AVI (Divx/xvid) format to a disc, you can get loads on one disc as well.

I personally could not get h264 to work on my xbox but avi works great, you can open the CD like a flash drive and just choose the file you want to play.

You can use k9copy from software center to rip your dvd to avi.

Hope that helps.


How do I change / spoof my MAC address and easily switch between multiple ones?

First, go to the networking indicator and select "Edit connection" to configure a new connection:

Click 'add' and choose a name for the spoofed MAC network connection.

After selecting your interface "eth0" in the top dropdown, you can simply choose any MAC address you like:

And after connecting to it, you'll be using your new MAC address.

Running ip link ls will show you the new interface, including it's spoofed MAC:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff

And now you can easily switch MAC-addresses by connecting to one of the new connections.


Where is the Multichannel/Coaxial/SPDIF configuration option in Ubuntu 12.04?

Ubuntu disables and hides digital audio output SPDIF in all Realtek / Nvidia Cards by default in fact it  does same in all flavor of Ubuntu.

The procedure to fix it is the same in all versions of Ubuntu and works for all sound cards Ati Nvidia Realtek Creative Bosse etc. You need to edit a file to get it to work.  Open a terminal with CtrlAltt and type this:

sudo nano /etc/modprobe.d/alsa-base.conf

then add this line to the end of the file

options snd-hda-intel model=auto

then use Ctrlo to save the file and Ctrlx to exit.

At this time you need to reboot the machine, and the missing digital audio spdif will be working. Go to task bar icon to select proper device (which will be showing now) to avoid sound output to all speakers at the same time.

For spanish take this link: http://www.fermu.com/es/articulos/linux/48-ubuntu/773-configurar-audio-hdmi-a-trav%C3%A9s-de-una-tarjeta-gr%C3%A1fica-nvidia-geforce-8600m-gt-en-ubuntu


Just use FTP client different from nautilus. FileZilla is working almost perfect. There you may do a fine tunning on your files queue, limits and etc.


Unless you redirect the output, it will be printed on the screen during the boot process. The boot messages are supressed / hidden and go by fast.

Remove the boot options quiet and splash to see the messages.

See How can I show or hide boot messages when Ubuntu starts? for details.

They should be in the logs, ( /var/log/messages ) and/or in dmesg


This is a complex question. There are lots of different layers of security in a Ubuntu system, from complex frameworks like AppArmor to humble kernel variables like mmap_min_addr. You can add some kernel features like memory randomization in the mix. You can find a list of them along with a quick explanations on the Ubuntu Wiki.

Another important factor is that the updates are both fast and easy - so most computers will be updated to the last security fixes.

As far as I know, an attacker that has gained local access to your computer has three ways to scale the kernel privileges:

Crack the password. But this is going to be really difficult, the password is stored encrypted, using algorithms with no known flaw. It will take ages to crack it.
Bug in the kernel. But all the security features of the kernel will get in the way.
Trick the user to give away the password, i.e. social engineering. Just show a fake password dialogue or use some other trick. This is the easiest way to do it.

The third point is the weakest vulnerability right now.


Im pretty sure you can install it with sudo apt-get install unity8, whether you can easily swap between it is another thing entierly


Can I add an elapsed time bar for Rhythmbox player in the sound menu?

This looked promising, but it doesn't seem to be compatible with the newest version of Rhythmbox though. Take a look, and maybe there is a way to convert it to work.

https://code.google.com/p/rb-fast-position-plugin/


Can not boot anymore after a boot repair

After digging around and experimenting, I am glad to share the solution that worked for me (i.e. a complete beginner in the field). As far as I understood, my Toshiba Satellite Z930 will ONLY boot windows from UEFI.

Here is exactly what I did, (and so can any newbie, trust me):

I downloaded boot-repair-disk (sorry I can't post the link, this is because of the restriction to 2 posted links per post for unexperienced users, but just ask Dr. Google)
I made a bootable USB with the help of UNetBootIn (again, no link)
I booted from the USB
Once the lubuntu interface was loaded, I pressed Ctrl-Alt-F1 to open a shell, and typed the following:

sudo mount /dev/sda1 /mnt

After checking the content of my directory with the ls command, I found out that /EFI/Boot was already there. So I made a backup of bootx64.efi by typing

sudo mv /mnt/EFI/Boot/bootx64.efi /mnt/EFI/Boot/bootx64.efi.backup

Then I copied all the content of the /mnt/EFI/ubuntu into /mnt/EFI/Boot with the following command line:

sudo cp /mnt/EFI/ubuntu/* /mnt/EFI/Boot

Finally, I renamed the file grubx64.efi to bootx64.efi by typing

sudo mv /mnt/EFI/Boot/grubx64.efi /mnt/EFI/Boot/bootx64.efi

The last step was to open a bottle of champagne to celebrate. But I guess you don't have to. Instead, you can just thank warmly oldfred for all the time he took to post his solutions.

The solution is based on the following threads external to Ask Ubuntu:

Although the full answer was here: http://ubuntuforums.org/showthread.php?t=2147295 in the subsection "Systems that only boot Windows from UEFI", I found easier to follow the explanations from this post: http://ubuntuforums.org/showthread.php?t=2247186 .


The name of the default Terminal application in Ubuntu is gnome-terminal. That is why entering terminal doesn't open it.

To open it, enter the following -

gnome-terminal


Can't remove 2 entries in the download window

I restarted Ubuntu and the problem is "fixed": the two entries were still listed in the Downloads window but marked as "completed". I wondered how this could happen and opened the download folder. And to my surprise these two files were there, fully downloaded. The timestamp of last change corresponds to the time where I restarted Ubuntu/Firefox.

So Firefox seems to have started the download again after restarting.


It is not in the regular bin directory as it is not an application which should be run directly by the user. It is /usr/lib/indicator-messages/indicator-messages-service instead, as it is launched programmatically by other means.

If you simply want to not have it ever shown, you can simply do sudo apt-get remove --purge indicator-messages and kill the existing process, or log out and back in.


Unable to run TortoiseHg, broken libraries and missing dependencies

Recompiling doesn't seem to fix the problem up. For whatever reason it still uses Qt4 rather than Qt5.

Luckily found the pre compiled binary.

sudo apt-get install python-pyqt5.qsci

fixed the problem up.


Frequently crashing ununtu with unresponsive mouse and keyboard

1) Restart ‘X’

If the whole system comes to a freeze and does not accept any keyboard or mouse input, try to restart ‘X’ by pressing ‘Ctrl + Alt + Backspace‘. This will kill all processes and log you out. If this works, it should bring you to the login screen again.

2) Use MagicSys Key to kill all processes

If the crash is so serious that Ctrl + Alt + Backspace have no effect at all, try pressing the MagicSysKey ‘Alt + SysRq + K’ to kill all processes. The MagicSysKey is a set of keyboard combination that allow the users to perform various low level commands regardless of the system’s state using the SysRq key. In case you are wondering where the SysRq key is, in most keyboard configuration, it is found under the Print Screen button. In some laptop configuration, you might have to press the ‘Fn‘ button to access the SysRq key.

In short, press Alt + SysRq (possibly together with the ‘Fn‘ button) + K to kill all processes.

3) If all the above fail…

Try this MagicSysKey combination. It will sure work.

Press and hold Alt + SysRq, then one by one, press and release the following characters in the respective order: ‘R’ ‘E’ ‘I’ ‘S’ ‘U’ ‘B’. The system will perform a series of tasks and finally reboot the computer, safely.

This method should be used only if all other methods fail. If you have difficulty in remembering the character sequence, just remember the opposite of ‘BUSIER’.

if this is happening again and again after all above it's worth to try on reinstalling unity

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity

also some of my friends who have a Nvidia graphic processor in their system,they recovered from this by installing optimus driver.if you have a Nvidia GPU then that may fix yours too.


Custom Ubuntu Live with LaTex and editor

You may want to create a persistent live USB that stores all your session data and apps installed during the live session permanently. As in install any apps and download or save files onto the USB's storage. This guide may help.

But I strongly recommend fixing you hardware as soon as possible as persistent USB treats your USB drive as a hard drive. This is not good in the long run as USB drives have limited read/write operations over their lifetime and this type of usage burns through them very quickly.


16.04, nautilus problems and no files on desktop

Try to reinstall Python requests and Nautilus GI with

sudo apt-get install --reinstall python3-requests python-requests \
gir1.2-nautilus-3.0 python-gi


How to reset an user password without knowing his current password?

login as root or type sudo su. Then you can set a new password for user with passwd [user].
Furthermore you could copy any other encrypted password from /etc/shaddow to this user.


One network adapter is responding for all the others

This is normal network behavior. Your system will respond to ARP requests for any IP it supports on any interface.  There are two options:

Channel bonding, where the two interfaces are treated as one, and traffic flow equally.
Route marking and filtering to ensure traffic for each interface is routed accordingly.

Outgoing connections will be routed according to the routing table.  The source address depends on the source IP address the connection is bound to.  This normally is the IP address of the interface.  Responses to ARP requests generally follow the same routing rules as for any other traffic.

You could try using gratuitous ARP packets to announce the desired MAC address for the second IP address.  You may need to periodically do the announcements.


As per your comment, using your public IP address would require you to have your router configured to forward ports to your local IP. Your connection is timing out because your router/modem is ignoring the request.

If you put http://localhost/into your address bar, the test page will come up.  like wise if you use your local IP address from any computer connected to your LAN (local network) it will come up. ex 192.168.2.10

Port forwarding is different based on the model router you have.  You can search for many tutorials on how to do it.  At the very least you need port 80 forwarded.

EDIT:
I should add that you only need to setup port forwarding if you wish to access your server from the outside world.  This is a bad idea for a development server as you are opening the door to hackers.  If you do need WAN access to the server look into installing and configuring CSF


XmlListModel Syntax Error? Currency Converter

Everything should be inside the Rectangle { } block.  See http://paste.ubuntu.com/1540065/ for a working example.