Broadcom STA driver doesn't work well with BCM4313

OLi I found this tutorial which install the same card which you have in ubuntu forums .. i think is the right solution for your problem :
New brcm80211 driver guide for Broadcom wireless cards
Updated :
"Download and copy the device's firmware", i have the solution for that :

We also need to install the firmware files in the proper directory.
These can be found in the other repository (linux-firmware). (More information can be found in the linux-next/drivers/staging/brcm80211/README file.)

when you execute these 2 commands :
git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git

it created two folders in your home directory :
1.- linux-firmware
2.- linux-next
these files are located in :
cd ~/linux-firmware/bcrm

Make sure the proprietary broadcom driver is not loaded


sudo snap refresh

Will do this. It is part of snapd 2.0.8, which landed 2016-06-13 in xenial-updates.
snap refresh --list

Only lists the updates without refreshing the packages.
snap info <snap name>

Can show which versions are available for a particular package.


Can I have a countdown window show the time until next suspend?

EDIT

In the original answer, further below, the countdown window appeared after an arbitrary idle time. Re- reading your question, you might want it permanently. The permanent version is below (which is simpler), the original answer further down.

1a. Version, permanently showing countdown time

The solution is a background script, showing a semi- transparent countdown window. The window behaves like a notification: it is always visible on top, but (of course) you can work in your other windows as usual:

The initial time is the idle- time before suspend should be activated. The time is reset on mouse- keyboard events.

As the image shows, the script comes with different pre- set color options (see further below).

How to setup

The script needs xprintidle:

sudo apt-get install xprintidle

Copy the script below into an empty file, save it as countdown.py
Run it with the idle time as argument:

python3 /path/to/countdown.py <idle_time>

e.g.

python3 /path/to/countdown.py 300

to enter suspend after 5 minutes.
If all works fine, add it to startup applications: Dash > Startup Applications > Add. Add the command:

 /path/to/runner.py <idle_time>

The script

#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, GObject, Pango
from threading import Thread
import subprocess
import time
import signal
import sys
import os

# --- set the color (index) below (1 is the first)
color = 1
# ---
textcolors = ["grey", "orange", "green", "blue", "white"]
# --- don't change anything below
txtcolor = textcolors[color-1]

countdown = int(sys.argv[1])
susp = os.path.dirname(os.path.realpath(__file__))+"/susp.sh"

class CountDown(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self)
        maingrid = Gtk.Grid()
        self.add(maingrid)
        maingrid.set_border_width(40)
        # set initial text for the spash window
        self.label = Gtk.Label(convert_seconds(countdown))
        self.label.modify_font(Pango.FontDescription('Ubuntu 22'))
        self.label.set_width_chars(10)
        maingrid.attach(self.label, 0, 0, 1, 1)
        self.update = Thread(target=self.start_countdown, args=[countdown])
        # daemonize the thread
        self.update.setDaemon(True)
        self.update.start()

    def start_countdown(self, countdown):
        idle1 = idletime()
        t = countdown
        while True:
            time.sleep(1)
            idle2 = idletime()
            if idle2 < idle1:
                t = countdown
            else:
                t -= 1
            if t <= 0:
                subprocess.Popen(["systemctl", "suspend"])
            GObject.idle_add(self.label.set_text, convert_seconds(t),
                priority=GObject.PRIORITY_DEFAULT)
            idle1 = idle2

    def stop(self):
        Gtk.main_quit()

def get_screen():
    scr = [s.split("x") for s in subprocess.check_output([
        "xrandr"]).decode("utf-8").split() if "+0+0" in s][0]
    return int(scr[0]) - 300

def convert_seconds(sec):
    timedisplay = [
        str(int(sec/3600)),
        str(int((sec % 3600)/60)),
        str(int(sec % 60)),
        ]
    for i, n in enumerate(timedisplay):
        if len(n) == 1:
            timedisplay[i] = "0"+n
    return ":".join(timedisplay)

def idletime():
    return int(subprocess.check_output(
        "xprintidle"
        ).decode("utf-8").strip())/1000

def splashwindow():
    window = CountDown()
    window.set_decorated(False)
    window.set_resizable(False)
    window.override_background_color(Gtk.StateType.NORMAL, Gdk.RGBA(0,0,0,1))
    window.modify_fg(Gtk.StateFlags.NORMAL, Gdk.color_parse(txtcolor))
    window.set_opacity(0.6)
    window.move(get_screen(), 80)
    window.set_keep_above(True)
    window.show_all()
    Gtk.main()

GObject.threads_init()
splashwindow()

Note

The text color can be changed, as explained at the very bottom of the second version of the answer.

1b. As requested in a comment: luxury version of the same script: text color changes to yellow if half the time passed, to red 30 seconds before suspend.

 >  >

Use it exactly as 1a.

The script

#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, GObject, Pango
from threading import Thread
import subprocess
import time
import signal
import sys
import os

# --- set the color (index) below (1 is the first)
color = 1
# ---
textcolors = ["grey", "orange", "green", "blue", "white", "yellow", "red"]
# --- don't change anything below

txtcolor = textcolors[color-1]
al_cl1 = textcolors[5]; al_cl2 = textcolors[6]
countdown = int(sys.argv[1])
alarm1 = int(countdown/2)
alarm2 = 30

class CountDown(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self)
        maingrid = Gtk.Grid()
        self.add(maingrid)
        maingrid.set_border_width(40)
        # set initial text for the spash window
        self.label = Gtk.Label(convert_seconds(countdown))
        self.label.modify_font(Pango.FontDescription('Ubuntu 22'))
        self.label.modify_fg(Gtk.StateFlags.NORMAL, Gdk.color_parse(txtcolor))
        self.label.set_width_chars(10)
        maingrid.attach(self.label, 0, 0, 1, 1)
        self.update = Thread(target=self.start_countdown, args=[countdown])
        # daemonize the thread
        self.update.setDaemon(True)
        self.update.start()

    def mod_color(self, color):
        self.label.modify_fg(Gtk.StateFlags.NORMAL, Gdk.color_parse(color))

    def start_countdown(self, countdown):
        idle1 = idletime()
        t1 = countdown
        t2 = countdown
        while True:
            time.sleep(1)
            idle2 = idletime()
            if idle2 < idle1:
                t2 = countdown
                if t1 <= alarm1:
                    # print("change textcolor default")
                    GObject.idle_add(self.mod_color, txtcolor,
                        priority=GObject.PRIORITY_DEFAULT)
            else:
                t2 -= 1
            if all([t2 <= alarm2, t1 > alarm2]):
                # print("change textcolor red")
                GObject.idle_add(self.mod_color, al_cl2,
                    priority=GObject.PRIORITY_DEFAULT)
            elif all([t2 <= alarm1, t1 > alarm1]):
                # print("change textcolor yellow")
                GObject.idle_add(self.mod_color, al_cl1,
                    priority=GObject.PRIORITY_DEFAULT)
            if t2 <= 0:
                subprocess.Popen(["systemctl", "suspend"])
            GObject.idle_add(self.label.set_text, convert_seconds(t2),
                priority=GObject.PRIORITY_DEFAULT)
            idle1 = idle2
            t1 = t2

    def stop(self):
        Gtk.main_quit()

def get_screen():
    scr = [s.split("x") for s in subprocess.check_output([
        "xrandr"]).decode("utf-8").split() if "+0+0" in s][0]
    return int(scr[0]) - 300

def convert_seconds(sec):
    timedisplay = [
        str(int(sec/3600)),
        str(int((sec % 3600)/60)),
        str(int(sec % 60)),
        ]
    for i, n in enumerate(timedisplay):
        if len(n) == 1:
            timedisplay[i] = "0"+n
    return ":".join(timedisplay)

def idletime():
    return int(subprocess.check_output(
        "xprintidle"
        ).decode("utf-8").strip())/1000

def splashwindow():
    window = CountDown()
    window.set_decorated(False)
    window.set_resizable(False)
    window.override_background_color(Gtk.StateType.NORMAL, Gdk.RGBA(0,0,0,1))
    window.set_opacity(0.6)
    window.move(get_screen(), 80)
    window.set_keep_above(True)
    window.show_all()
    Gtk.main()

GObject.threads_init()
splashwindow()

2. Original answer: version, showing countdown time after x idle time

The setup below will show a countdown (during an arbitrary time length) to the next suspend:

The window is always on top of all other windows, exactly like the notification bubbles.

The setup replaces the "normal" suspend settings, which means you need to disable suspend from system settings.

About the solution

The command to suspend in the script is:

 systemctl suspend

which doesn't require sudo. The consequence is that you will need at least 15.04 to use this solution.
The script was written and tested on Ubuntu (Unity) 15.10, but there is no specific code in it that should be Unity specific. I assume it works fine on all default Ubuntu versions > 15.04

How it works

To setup (detailed version further below), simply copy the three scripts involved into one and the same directory, exactly named as indicated. To run, simply run the main script (running the time- check).

If the idle time exceeds a certain limit, the countdown window is called.
If during countdown the computer becomes un- idle (mouse- or keyboard event) the window is closed (its pid is killed).
If the timer has ended its count down, it runs a simple script to suspend

How to setup

The script needs xprintidle:

sudo apt-get install xprintidle

Copy the three scripts below into separate empty files, save the in one and the same directory, exactly named as indicated:

A. save (exactly) as win.py:

#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, GObject, Pango
from threading import Thread
import subprocess
import time
import signal
import sys
import os

# --- set the color (index) below (1 is the first)
color = 1
# ---
textcolors = ["grey", "orange", "green", "blue", "white"]
# --- don't change anything below
txtcolor = textcolors[color-1]

countdown = int(sys.argv[1])
susp = os.path.dirname(os.path.realpath(__file__))+"/susp.sh"

class CountDown(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self)
        maingrid = Gtk.Grid()
        self.add(maingrid)
        maingrid.set_border_width(40)
        # set initial text for the spash window
        self.label = Gtk.Label(convert_seconds(countdown))
        self.label.modify_font(Pango.FontDescription('Ubuntu 22'))
        self.label.set_width_chars(10)
        maingrid.attach(self.label, 0, 0, 1, 1)
        self.update = Thread(target=self.start_countdown, args=[countdown])
        # daemonize the thread
        self.update.setDaemon(True)
        self.update.start()

    def start_countdown(self, countdown):
        t = countdown
        while t > 0:
            time.sleep(1)
            t -= 1
            GObject.idle_add(self.label.set_text, convert_seconds(t),
                priority=GObject.PRIORITY_DEFAULT)
            print(t)
        subprocess.Popen(["/bin/bash", susp])
        self.stop()

    def stop(self):
        Gtk.main_quit()

def get_screen():
    scr = [s.split("x") for s in subprocess.check_output([
        "xrandr"]).decode("utf-8").split() if "+0+0" in s][0]
    return int(scr[0]) - 300

def convert_seconds(sec):
    timedisplay = [
        str(int(sec/3600)),
        str(int((sec % 3600)/60)),
        str(int(sec % 60)),
        ]
    for i, n in enumerate(timedisplay):
        if len(n) == 1:
            timedisplay[i] = "0"+n
    return ":".join(timedisplay)

def splashwindow():
    window = CountDown()
    window.set_decorated(False)
    window.set_resizable(False)
    window.override_background_color(Gtk.StateType.NORMAL, Gdk.RGBA(0,0,0,1))
    window.modify_fg(Gtk.StateFlags.NORMAL, Gdk.color_parse(txtcolor))
    window.set_opacity(0.6)
    window.move(get_screen(), 80)
    window.set_keep_above(True)
    window.show_all()
    Gtk.main()

GObject.threads_init()
splashwindow()

B. Save exactly as runner.py:

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

window_mod = os.path.dirname(os.path.realpath(__file__))+"/win.py"

suspend = int(sys.argv[1])
countdown = int(sys.argv[2])

w = False
while True:
    time.sleep(1)
    idletime = int(subprocess.check_output(
        "xprintidle"
        ).decode("utf-8").strip())/1000
    if all([idletime > suspend-countdown, w == False]):
        subprocess.Popen(["python3", window_mod, str(countdown)])
        w = True
    elif all([idletime < suspend-countdown, w == True]):
        try:
            procdata = subprocess.check_output([
                "pgrep", "-f", window_mod
                ]).decode("utf-8").strip()
            procs = procdata.splitlines()
        except subprocess.CalledProcessError:
            pass
        else:
            for p in procs:
                subprocess.Popen(["kill", p])
        w = False

C. Save (exactly) as susp.sh:

#!/bin/bash

sleep 3
systemctl suspend

Make all three scripts executable, and again, make sure they are in one and the same directory.
You're practically done.

Disable your "usual" suspend settings
Test- run the script the suspend time (idle time before suspend should be applied), and the count down time (in seconds) as arguments, e.g.:

/path/to/runner.py 600 300

to set idle time to 10 minutes, counter starts 5 minutes before suspend.

If all works fine, add it to startup applications: Dash > Startup Applications > Add. Add the command:

 /path/to/runner.py <idle_time> <countdown_time>

Notes

In the head section of the win.py, you can set different colors for the displayed text:

# --- set the color (index) below (1 is the first)
color = 1
# ---
textcolors = ["grey", "orange", "green", "blue", "white"]

Playing with the values in the lines:

maingrid.set_border_width(10)

and

return int(scr[0]) - 200

(from the function get_screen, where 200 is the distance of the left side of the window to the right side of the screen), and

window.move(get_screen(), 35)

(where 35 is the distance between the window and the top of the screen), you can easily change the geometry of the window, e.g.:

Have fun :)


How to share an Internet connection over Bluetooth from the PC to the Phone

I guess this may work for you

  http://blog.larsstrand.org/2009/04/sharing-internet-connection-over.html


Cannot change Synaptic trackpad ClickPad areas in synclient/xinput

Call me pedantic but your question isn't precise in one point: Did you try to apply RightButtonAreaLeft as well as SoftButtonAreas to your 50-synaptics.conf or did you try the SoftButtonAreas settings via xinput only?

For me the the following (applied to my own 60-my-own-trackpad.conf which is recommended) is working:

Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"

This is disabling the areas completely, changing the corresponding RightButtonAreaLeft, Right etc., and that is exactly what I wanted. Any other way except directly applying it via synclient on the terminal didn't work for me. To make sure the changes were set list your settings with:

synclient -l

If the areas still seem unchanged check the following settings:

RTCornerButton
RBCornerButton
LTCornerButton
LBCornerButton

This is what the synaptics man page says about it:

  Option "RTCornerButton" "integer"
  Which mouse button is reported on a right top corner tap. Set to 0 to disable. Property: "Synaptics Tap Action"

I had to apply these settings as well.

If all this won't work it should always be possible to swap the buttons via xmodmap. The following line swaps your right and middle button:

xmodmap -e "pointer = 1 3 2"

But I don't like this one. It's hackish for this kind of issue.


How backwards compatible will the Ubuntu SDK be?

The SDK was pretty fluid, since this was the initial development and we only reached our first "stable" state with the release of Ubuntu 13.10.  There should not be any breakage in the API from here on out without first going to a deprecation period.  If this is a concern to enough people, we can run a session at the upcoming UDS to discuss how to handle it.


Screen resolution messed up after wakeup

After all that I finally found out I had Optimus enabled in the bios. Disabling that fixed the problem.


Remove "Install Ubuntu" menu on persistent USB stick?

it because its not currently installed system its still live usb (even if it unlike ubuntu live dvd save your settings)and that is because everytime this menu appears.If you install ubuntu  from usb stick to hard drive you wont get this menu


Can you run command line tools on Ubuntu Touch?

You can of course run all programs without graphical output via command line on Ubuntu Touch. It's only that right now there is no terminal available on the device itself.

That means that you can only invoke the command via adb or via ssh.

But the terminal will be available soon IMHO.


Manage Dash-to-Dock favorite apps by command line

you should know the .desktop file names of your applications..

once you know them.. you can use gsettings command like below

Example:

gsettings set org.gnome.shell favorite-apps "['chromium-browser.desktop', 'google-chrome.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.Software.desktop', 'audacious.desktop', 'mpv.desktop', 'spotify_spotify.desktop', 'org.gnome.Terminal.desktop', 'libreoffice-writer.desktop', 'gnome-calculator_gnome-calculator.desktop', 'libreoffice-calc.desktop', 'gnome-control-center.desktop', 'org.gnome.tweaks.desktop', 'firefox.desktop']"

what ever order you will give in gsettings command, it will have same order in dash-to-dock


One (somewhat hackish) solution could be to simulate a Super keystroke every time you log in.

You can do this by adding the following xdotool  command to your Startup Applications:

xdotool key Super_L


How to acces Canon PIXMA TS8351 in LAN on Ubuntu 18.04?

I solved this problem by changing IP address in /etc/cups/client.conf from
ServerName 172.16.x.xxx

to
ServerName 127.0.0.1


Installing a firefox extension via terminal?

download the extension

$ wget http://www.addons...../extension-name
$ firefox extension-name

example on Ubuntu-it Menu :

$ wget https://addons.cdn.mozilla.net/storage/public-staging/4684/ubuntu_it_menu-1.1.0-fx.xpi
$ firefox ubuntu_it_menu-1.1.0-fx.xpi

info : 'https://addons.mozilla.org/en-US/firefox/addon/ubuntu-it-menu/?src=search'


To download all images from the specified page with wget you can use this command:

wget -i `wget -qO- https://wall.alphacoders.com/by_sub_category.php\?id\=173173\&name\=Naruto+Wallpapers | sed -n '/<img/s/.*src="\([^"]*\)".*/\1/p'`

In this example HTML file is download with wget to STDOUT, parsed with sed so that only img URL remain and passed to wget -i as an input list for downloading.

Note that it will download only the images on this page, but they are just thumbnails (350px wide).

If you'd like to download full images, you should go a step forward and change the parsed IMG urls so that they correspond the hi-res images. You can do it with sed or awk:

wget -i `wget -qO- https://wall.alphacoders.com/by_sub_category.php\?id\=173173\&name\=Naruto+Wallpapers | sed -n '/<img/s/.*src="\([^"]*\)".*/\1/p' | awk '{gsub("thumb-350-", "");print}'`

The result of running the last command is a pack of HD wallpapers on your disk


Installing/Uninstalling WiFi Drivers on Ubuntu

The issue is with Realtek wireless driver. The driver you described is Ethernet driver.
One possible solution for problem is to found in this answer: https://askubuntu.com/a/1057903/968480
From this repo, you can find driver installation guide.
https://github.com/lwfinger/rtw88
Also, some modules might conflict, so they have to be blacklisted with this command:
echo "blacklist ideapad-laptop" | sudo tee -a /etc/modprobe.d/blacklist.conf

From my personal experience with the problem, I could recommend also trying to boot without powercable attatched after all the previous steps (if you run on a laptop of course), altough I don't understand the reasons, but it has worked for me.


How do I stop /var/log/kern.log.1 from consuming all my disk space?

You should be fine removing that file, cause it's an already rotated log.
As you need root permissions to do that, you won't have an option in the GUI to delete that file.

You can do it from the command line:

sudo rm /var/log/kern.log.1

Each time you boot, log files will be created and rotated again, so you should probably watch for the next kern.log.* file sizes. Related bug report on Launchpad: https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/115774


Installing Ubuntu Mate on Virtualbox - screen is a mess

As memory serves me, switching TTY's should fix the problem.

To fix your video problem, hit the  host_key + F1, followed by host_key + F7. It's a bug.

On a Mac, you may have to host_key + fn + F1 and then host_key + fn + F7


Where did PlayOnLinux install Microsoft Office 2007?

Maybe in ~/.playonlinux/wineprefix/Microsoft\ Office\ 2007/dosdevices/c:/Program\ Files/Microsoft\ Office\ 2007 ?


Cuda and cudnn install. Where is cudnn_samples_v7?

You need to download a separate file cuDNN v7.1.3 Code Samples and User Guide for Ubuntu16.04 (Deb) from the same page where you got CuDNN files, and install it with dpkg.


How to downgrade/unpatch bash for ubuntu 12.04 LTS to get back to the original vulnerable version of it?

Take your pick from all published versions in 12.04 from here, bottom of page under Releases. Opening the individual version pages will present the changelog, pick the version just before the changes you don't want.

https://launchpad.net/ubuntu/precise/+source/bash

Click on your arch in the Builds section & download the .deb, then use dpkg to install it, ie.

sudo dpkg -i /path/to/downloaded deb.

Ex. -

sudo dpkg -i /home/doug/Downloads/bash_4.2-2ubuntu2.3_amd64.deb


You can either add /usr/local/MATLAB/R2017a/bin/ to your PATH or create another script in a proper directory of executables in your home.

To do the second one follow the steps below.

Create a folder named bin in your home directory. (Note: This assumes the directory ~/bin/ is included in your PATH. If it isn't, you need to add it to your path first.)
Create a text file named matlab (the command you want to use) in the the aforementioned crated folder (i.e. in ~/bin/).
Add the following lines to the matlab file

#!/bin/bash
/usr/local/MATLAB/R2017a/bin/matlab

Save the matlab file and make it executable.


Boot in to Ubuntu installation that you want to keep. Delete the partitions for the other Ubuntu install and run update-grub.
So if you want to keep your old linux installation and get rid of the one you installed later, just boot into your old linux installation and start gparted or disk-utility (which ever you like). From there delete sda4, sda5, sda6, sda7 and sda8 i.e all the partitions you created for new installation of Ubuntu. Now open terminal and run sudo update-grub. This will update the grub and remove the other Ubuntu install from the grub startup screen.


Ubuntu 13.10 freezes/crashes when suspended/hibernating

Maybe you could try to install and enable the recommended proprietary drivers for your graphics card.

See also: Step 2. Enable Additional Drivers on 10 Things To Do After Installing Ubuntu 13.10 | OMG! Ubuntu!


Ubuntu 12.04 monitor goes to sleep and won't wake up

I started seeing this same issue when I updated from the regular old Ubuntu 12.04 video driver to 'ATI/AMD proprietary FLGRX graphics driver (post-release updates)'.

I also see

/usr/lib/pm-utils/power.d/xfs_buffer false: not applicable.
/usr/lib/pm-utils/power.d/disable_wol false: not applicable.

scattered throughout my pm-powersave.log.

I rolled back my video driver to 'ATI/AMD proprietary FLGRX graphics driver' (the release version) and the problem seems to have gone away (in limited testing).


Difference between move to trash and rm on the terminal?

In layman's terms,

rm unlinks the file.

"moving to trash" is something equivalent to mv file ~/.local/share/Trash in terminal, which means the file was moved from one directory to another directory.

P.S.: This question came up as the first result when I did a Google search for "ubuntu rm trash difference". I hope you can do some research next time before you ask.


How to setup delay for indicator-applet?

There is no built-in way to change this duration.

If you really want to pursue the issue, a community member has been maintaining a PPA with a special version of notify-osd that allows for some customization via GConf. You're on your own if you decide to use it though; there is little to no support provided for software from PPAs.


According to Google (checked at three different websites) your Dell Latitude E5500 laptop does not have an Nvidia graphics card in it. You can also check this yourself by opening the terminal and running lspci -vnnn | grep VGA. Instead your laptop has the Intel Graphics Media Accelerator 4500MHD graphics processor. Therefore you should uninstall the Nvidia driver, which will revert Ubuntu back to using its default graphics driver. To uninstall the Nvidia driver open the terminal and type:

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.nvidia
sudo apt-get purge nvidia-settings nvidia-current

...and then reboot to enable the default driver for your laptop's Intel GMA 4500MHD graphics processor.


Desktop entry does not appear in Unity launcher

The TryExec key should only contain the command without any parameters. If it doesn't exist (in one of the folders in $PATH if you don't use an absolute path) the entry may be ignored.

So just use

TryExec=/home/jjd/bin/qgis/bin/qgis

(or remove the line altogether)


How can I clean residual config files with BleachBit app?

Those package are just that has configuration files that hasn't been removed.

It will be exhausting to use bleachbit, those files are spread allover your system and not founded under same folder. So you have to search for these files of each package alone then send its path to bleachbit. This would be so exhausting and time consuming, so it's better to use this command from your terminal:

dpkg -l | grep '^rc' | awk '{print $2}' | xargs sudo apt-get purge

You can get the list of the packages names that having residual config files by running the command:

grep-status -n -sPackage -FStatus config-files


LibreOffice not auto-bookmarking heading

Check the PDF Export Options: On the "General" tab, the "Export Bookmarks" option has to be set:

To edit the options, use Menu "File" -> "Export as PDF".


"Failed to start Load/Save Screen Backlight Brightness of backlight:acpl_video0" error

Based on comments please refer to this Q&A:

What is needed to use Raven Ridge Ryzen 5 2400G?

Notably:

  It seems the latest fixes from AMD finally resolved all my issues. See
  https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-drm-next
  For now you need to compile your own kernel or wait till those fixes
  land in your distribution.

Source: HOW TO FIX drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout ? ON MY RYZEN 5 2400G APU


Changed display driver, boot now gets stuck

well I managed to deal with it my myself (I basically did a victory dance afterwards). If you can't use Ctrl + Alt + F1 (or other keys from F2 - F6) reboot in recovery (option from grub).

From that menu, choose Enable Networking. At this point I encountered a problem as my wifi adapter had 3rd party drivers and always blocked the recovery. If you too have this, simply disable your adaptor and use your Ethernet interface for this recovery. Besides enabling the network access (needed further along this recovery), it also mounts as read/write all your partitions in fstab.

Next go to "Drop to root shell prompt". Enter the following commands:

You should first check what you have installed on your computer

    dpkg -l | grep nvidia-*

    apt-get remove --purge nvidia-*

This will delete programs installed starting with the name "nvidia-". I don't know if you actually need to delete them all, but I wanted to be sure (I also held a grudge on the drivers and wanted to see them burn)

    apt-get install nvidia-commons

    apt-cache search nvidia-*

The first command will install nvidia-commons and the second searches the apt cache for packages you must install. My GPU had three possible drivers (of which only one is actually works).For me it was nvidia-170-updates

    apt-get install nvidia-170-updates

Btw, there was no need to use sudo since I was in the root shell


Where to get Dell Inspiron 1545 drivers for the Dell 1397 wlan minicard wireless card?

Make sure your connected by an Ethernet cable and open the terminal (Ctrl+Alt+T)

sudo apt-get update; sudo apt-get install bcmwl-kernel-source

Reboot.


Keyboard shortcuts do not work after reboot

Explain the issue

I haven't got a clue how this happened. I have a problem where the Commands information in CCSM is forgotten after rebooting, but that seems unrelated to what you have (I can fix this by setting the shortcuts through the Keyboard menu, what you refer to as "global Gnome keyboard configuration"). As stated in my comment, what you're trying to do works perfectly well on my system.

Workaround

The problem can be in the Keyboard shortcuts settings (the one that sets the command) or in the specific multimedia commands (the command that is executed). In this workaround I'll explain how to do both at the same time. The programme that sets the shortcuts doesn't know the actual shortcut to change the multimedia stuff and neither do I, so this will be the easier solution.

You could set the shortcuts in another way.

For this I know one way, you can try the Commands plugin in CompizConfig Settings Manager, CCSM. If memory serves me right, this plugin works well for 12.04. CCSM is in the repositories, so simply install it from the Software Centre. If you don't know it, be careful with this tool. It is an awesome little programme but it is very easy to mess up your system. There are other ways, possibly through gconf-editor, Google around a bit for that if you're interested.

In the alternative keyboard shortcuts manager you can enter a command to change the volume. I do not know which nifty command is used in Unity to show the notification with the current volume, so we'll have to stick with something old-fashioned: amixer.

I found a command to increase the volume with amixer at https://unix.stackexchange.com/questions/21089/how-to-use-command-line-to-change-volume:

amixer set Master 10%+

and

amixer set Master 10%-

If you bind these in the Commands plugin and assign a shortcut key you should be good to go.

Don't forget to enable the plugin on the left hand side if you haven't already. Let me know if this solves your issue or if something is unclear.

Edit: if you struggle with this problem as well, be sure to look at the OP's comment below, it might point you in the right direction


Firstly, I dislike Bash.  Piping paths to processes isn't so nice, and causes all sorts of weirdness when not done 'just so'.  That being said, many of the things that you are trying to do in Bash that are not kind with working or operating can be done with (unfortunately) more code, but can work the way you want it to, in other languages.

So, being somewhat bored and interested in creating something for this, I went and wrote a (very rough) Python script that can do what you're looking for.  It may look complex, but it works pretty well, and I've put comments wherever or explained this below.

NOTE: I have only tested this with VLC player and Rhythmbox on my system, and with xdg-open which opens the GUI's default handler for the given file.  In my case, VLC is the default that xdg-open calls.  If you are on a GUI and just want to use the default Media player for the MP3 file, use xdg-open for "player".

Package Requirements On Your System:

python (Python 2.6 or higher, but not Python 3)
python-dev (Python libraries of importance)

Script Installation Process:

Not really much work here.  But to make it simpler, follow these steps:

Create a bin folder in your home directory:  mkdir /home/$USER/bin
Change directory to the new 'bin' folder: cd /home/$USER/bin
Create a file called randommp3.  Copy-and-paste the code from the "Code/Script" section below into this file with a text editor.  Save said file.
Make the file executable: chmod +x /home/$USER/bin/randommp3
Have fun, but note the following usage tidbits:

You have no choice but to specify what media player to use.  oxmplayer would be what you would put in place of player when you execute the file.
If your music is not in /home/$USER/Music (where $USER is the currently logged in user), then you also have to specify the full directory path with the --dir argument (or one of its aliases as explained in the "usage" section below).  If the folder path contains any spaces at all, you must wrap it in single quotes (for example, for the "My Music" directory in a given path, you would enter it as /path/to/My Music to the --dir argument).

Example execution:

Open a random MP3 file from the user's Music folder in their Home directory, in the GUI VLC Player

randommp3 vlc-wrapper

Open a random MP3 file from an external drive called "MusicDrive" mounted at Music Drive in the /media folder, in the media player called oxmplayer

randommp3 --dir '/media/Music Drive' oxmplayer

Usage

randommp3 [-h] [--dir DIRPATH] player

Open a random MP3 in the player of choice, or the default player

positional arguments:
  player                The executable name of the media player to open the
                        MP3 with. If none specified, uses the system default
                        player.

optional arguments:
  -h, --help            show this help message and exit
  --dir DIRPATH, --directory DIRPATH, --music-dir DIRPATH
                        The path to the directory where your music is stored.
                        If the path has spaces, wrap the entire path in
                        single-quotes ('/home/ubuntu/My Music/' for example).
                        If not specified, the current user's Music directory
                        in their /home/ folder is used.

Code: (or a link that you can save if you are really that lazy)

#!/usr/bin/python

import getpass
import subprocess as sp
import os
import glob
import random
import argparse

if __name__ == "__main__":
    # Parse arguments to the script
    argparser = argparse.ArgumentParser(description="Open a random MP3 in the player of choice, or the default player",
                                        add_help=True)
    argparser.add_argument('--dir', '--directory', '--music-dir', dest='dirpath', type=str,
                           default=str('/home/' + getpass.getuser() + '/Music'), required=False,
                           help="The path to the directory where your music is stored. If the path has spaces, wrap the "
                                "entire path in single-quotes ('/home/ubuntu/My Music/' for example). If not specified, "
                                "the current user's Music directory in their /home/ folder is used.")
    argparser.add_argument('player', type=str, help="The executable name of the media player "
                                                    "to open the MP3 with. If none specified, "
                                                    "uses the system default player.")

    # Using the above 'argparser' items, get the arguments for what we're going to be using.
    args = argparser.parse_args()

    # Gp to the directory your music is in.
    os.chdir(args.dirpath)
    mp3s = glob.glob('*.mp3')

    # Modify the directory path to make sure we have the trailing slash
    dirpath = args.dirpath
    if dirpath[-1] not in '/\\':
        dirpath += '/'

    # Actually open the MP3 file, and /dev/null to suppress output messages from the process.
    DEV_NULL = open(os.devnull, 'w')
    execpath = [args.player, '%s%s' % (dirpath, str(random.choice(mp3s)))]
    sp.Popen(execpath, stdout=DEV_NULL, stderr=DEV_NULL)


Make virtualenv and activate it with shell script

Working with Ubuntu (and most other Linux distros I’d say) it’s safe to use the absolute paths as Python is an essential component of the OS:

/usr/bin/python   # or respectively
/usr/bin/python3

If you don’t want to run the systemwide installed Python version, but rather the one first in the calling user’s PATH, instead use:

/usr/bin/env python   # or respectively
/usr/bin/env python3

Further reading about this alternative

Why do some python scripts begin with #!/usr/bin/env python?
What type of path in shebang is more preferable?


In chromium-browser go to  Angry Birds
Click on the wrench icon and select Tools → Create Application Shortcuts...

Select Desktop to create a shortcut on your desktop

Move it to .local/share/applications/

(Optional) Download an icon for Angry Birds and replace the original icon

Drag the icon onto the launcher

Win


Can't log in normally or through tty after changing Nvidia Graphics Card

You need to upgrade your Nvidia driver on Linux to version 381 which is not available in the normal apt sources. You should however be able to recover as follows.

Get yourself a LiveUsb or LiveDvd.
Boot from it and take the option to run  Ubuntu from it.
When Ubuntu desktop appears, start the terminal app to get a command line.
Run the following commands, one at a time

mkdir myd
sudo lsblk
Comment to determine which disk contains the Linux system. Frequently /dev/sdax
Coment but may be different because you have a dual boot system.
sudo mount /dev/sdx myd
sudo chroot myd bash
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-381
exit

Now you can reboot into your normal Linux system and hopefully all will be good. See http://blog.nelsonliu.me/2017/04/29/installing-and-updating-gtx-1080-ti-cuda-drivers-on-ubuntu/1 for more details.


Laptop monitor plus two external monitors via dockstation

I assume, you connect the dockingstation to the laptop via USB, right?

Then the used technology would be DisplayLink which is unfortunately not supported on Linux (or just experimental on ArchLinux). As far as I know there are just driver for Windows and Mac OS.

I stumbled accross the same problem when trying to use this Dell USB 3.0 Adapter. What you can do to connect multiple monitors, according to the links you already posted, is to use MST/DaisyChaining. Therefore you need a monitor with an Displayport output.
But check the specs of your graphics card if it supports MST before.


Completely remove windows 7 and install ubuntu

You can't expand partitions forward on a disk. My advice would be to extend the ext4 (Ubuntu) partition as much as you can (using "edit partition"), and then make another partition in the remaining free space with an ext4 filesystem to use under Ubuntu.

If you only want one partition for Ubuntu, I would boot from the live USB drive and select "Erase everything and install Ubuntu". This will erase everything on your hard drive, so back up your files first (especially your home folder).


Moving all files in a directory ignoring the file extension

You are very close.
mkdir -p 01_img_exists

while read i
  do
    echo mv ./"$i."* ./01_img_exists/
  done < image_names.txt

Try the above then remove echo when satisfied with the results to do the actual moving.

mkdir -p will create the directory if it doesn't exist.
"$i."* will match all names in the image_names.txt file plus anything after the first . i.e. any extension.
< image_names.txt specifies the input file to be read.

You can omit the leading ./ and it will work fine.
Notice:
There is a limit on the number of files passed to mv as arguments in one single command. This limit is called ARG_MAX. There is a little chance that you might encounter this limit. It is, however, unlikely in your case given the limited number of extensions per the same filename. If you encounter that limit by any chance, try the code below instead.
mkdir -p 01_img_exists

while read i
  do
  for f in "$i."*
    do
      echo mv "$f" 01_img_exists/
    done
  done < image_names.txt


rename 's/.*?\.([^.]+).*/$1.bam/' *.bam -vn

Remove the -vn when you can see it does what you want. Here's my test harness:

$ touch 34234234kh.TESTING00{1..3}.234978623478y234.bam
$ rename 's/.*?\.([^.]+).*/$1.bam/' *.bam -vn
34234234kh.TESTING001.234978623478y234.bam renamed as TESTING001.bam
34234234kh.TESTING002.234978623478y234.bam renamed as TESTING002.bam
34234234kh.TESTING003.234978623478y234.bam renamed as TESTING003.bam


I faced the same problem. Just type

sudo tuxcut

in the terminal.


How do I stop the pointer disappearing when I type in Ubuntu Mate 16.04

In MATE, the settings has gone for some reason. But if you're referring to the disabling of cursor while typing, that settings can be disabled from gsettings.

Here is the command in gsettings command for MATE

gsettings set org.mate.peripherals-touchpad disable-while-typing false


Unable to restart Apache, getting error: apache2: bad user name ${APACHE_RUN_USER}

To fix this problem, you have to make the changes to two separate files.

First, edit /etc/apache2/apache2.conf, adding these lines:

User www-data
Group www-data

Second, edit /etc/apache2/envvars, adding these lines:

export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data


That is not possible.
That's what the launcher (The "panel" on the left hand side) is for.

Currently you don't have a lot of options to customize Unity, however if you do want to know what you can do, check out the "Unity Tweak Tool" which from 13.04 is available as a free download in the Ubuntu software center.

If you want to do it from terminal then you can do it from

sudo apt-get install ubuntu-tweak


Help repairing a 14.04 (upgrade from 13.10) system installation?

So I ended up removing the packages that I added:

sudo apt-get purge pulseaudio paprefs pulseaudio-esound-compat kmix

and then I reinstalled the desktop:

sudo aptitude install ubuntu-desktop

I got all of the system-setting/control panel option back. I rebooted and confirmed that the changes persisted and my environment is back to as it was.


Ubuntu 18.04 & KeePass2 Chinese char problem

I went to Tools > Options > Interface, at the bottom there's a button Select List Font, and I clicked on it, it opened another window with lists of fonts/script to select, the trouble is if I select script Big5 (which is to display Chinese char), I can see the Chinese char without trouble, the problem is it changed also the western script to the same font. Not sure if I can select different fonts for different script.


What are the software updated when I updated through the default software updater gui?

You can check what apt did in the log file:

/var/log/apt/history.log

The software updater tells you what it is about to update when it asks for your permission to do so. You can check there what you want to update and what not.


FYI, doug's response here seems to have solved the problem for me. Several hours now with no issue. Using Synergy heavily as well, which was always a sure way to make it vanish.

The gist: gsettings set org.gnome.settings-daemon.plugins.cursor active false

Thanks for the modprobe suggestion, though. That made the issue at least tolerable!


How to shrink the screen' size on ubuntu 16.04lts (not VM)

I don't think you can do anything to put it on the right side, the only way is reduce the resolution of your screen, but it will get reduced by right side too, not just left side you can change the resolution by going to Settings > Devices > Display > Resolution


Why does deleting a folder from the command line take longer than manual deletion?

When you delete from the GUI you are only moving the files to the trash bin. This updates the pointers to the files instantaneously saying that they now reside in the trash bin which is another folder.

When you delete from the command line like that it is removing the files 1 by 1 until they are all gone from within the folder then removing the folder itself.  This bypasses the trash bin.  This also takes longer.

If you do a Shift+Del in the GUI this will bypass the trash bin and take longer to delete.

Hope this helps!


Correct OpenOffice version for Ubuntu 11.04 Desktop AMD64?

To download and install Open Office for Ubuntu 11.04 am64 you need a Debian package (DEB) file compiled for this 64-bit architecture (named Linux x86-64 DEB):

Download with this link for the arabic localization.

However consider this:

By adding a repository or ppa and installing from there you will automatically get the proper version in addition with regular updates. This would be the recommended way.

In 11.04 you have Libre Office installed by default. This is a fork from Open Office. An arabic localisation is available through the Ubuntu repositories: libreoffice-l10n-ar

To support arabic writing in an otherwise English language locale of Libre Office install language-support-writing-ar


Encrypted /home but does not ask for password

You can do this by changing your account to not sign in automatically. Here's how:

Open the Settings application:

Click on Users, then "Unlock":

Be sure to enter your password when prompted
Change "Automatic Login" to disabled
There is no Step 4


After a freeze, /home on another disk not mounting on startup

A sudden power interruption can eventually cause big damage. Indeed, the failure to startup in your case may be due to problems with the partition containing your /home folders.

First, you may attempt if checking and repairing the file system solves the issue. For this, work from a live session started from a live DVD or live USB.

If problems persist after checking the file system ,or if the repair fails, you will have no other option than to reinstall. Fundamentally, that is the only certain way to recover from a file system damaging system interruption.


Run Script on startup on AWS Ec2 Ubuntu 1404 Server

cron runs shells in a modified environment with a minimal PATH and presumably /usr/bin not present there so /usr/bin/nohup is not being found.

You can:

add /usr/bin to the PATH, rather than modifying your crontab's one, you should add this at the top of the script:

#!/bin/sh
export PATH="$PATH":/usr/bin
nohup /home/ubuntu/elasticsearch-2.3.4/bin/elasticsearch &

Use absolute path to nohup:

#!/bin/sh
/usr/bin/nohup /home/ubuntu/elasticsearch-2.3.4/bin/elasticsearch &

Note that, according to the crontab entry, you are executing the script as an argument to sh (dash) while having an exactly same shebang. In this case this doesn't make any difference but be careful about this if the shebang is different. Usually one would make the script executable and use shebang to indicate the desired interpreter.

Now, the most important part. cron runs all given jobs in their respective subshells and spawns these subshell parallel (non-blocking) i.e. runs jobs in parallel manner. So you don't need the nohup and backgrounding (&), just do (based on your example, /home/ubuntu/elasticsearch-2.3.4/bin/elasticsearch is executable):

@reboot /home/ubuntu/elasticsearch-2.3.4/bin/elasticsearch


After doing quite a lot of research, it seems that Athlon X2 64 4200+ is not capable of pushing 720p video at 30 frame rate at veryfast/faster preset.

I need something stronger to maintain the transmission, so the CPU need to have more power.


If I were you I would not set the swap to over 32gb, or else it gets even slower. There really is no way that I know of to just use them all as one disk, but if you set one as /, another as /home and possibly the other three just for data and have swap on one of the data ones then you will be golden for years to come. Or you could just look up how to set them up in RAID to have complete mirrored backup on all of them


How to disable normal user password at lockscreen WITH Black screen at login issue

practically the same as you did in MY SECOND ANSWER:

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false

... which is taken from: WinEunuuchs2Unix

* not an answer but I can't comment. sorry


In gconf-editor go to desktop -> gnome -> interface and check the checkbox for menus_have_icons. There's also a buttons_have_icons which you may want to enable.

This was a delibrate 'feature' in Gnome 2.28, from which Ubuntu 10.04 for built.

These two options can also be changed through the "Gnome settings" panel of Ubuntu Tweak, see screenshot below. (Ubuntu Tweak can be installed through a PPA)


Install the printer driver. If you have HP Printer then you can use these link.

http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c01174360

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


If your Terminal window is small, large text will certainly get truncated. You can either use ↑ (upwards arrow) / ↓ (downwards arrow) keys or your mouse scroll wheel to scroll up or down to view the truncated part.

Alt+X toggles the display of the two last lines that display the functions of the hotkeys. Turning this off will help preserving some screen real estate for text.


Ubuntu 14.04 no sound neither headfones nor laptop speaker

To check the sound configuration install pavucontrol for pulseaudio:

sudo apt-get install pavucontrol

Now start it and check if the output has the right configuration, it might be something like audio duplex

Check if the output device is muted and also check that the application use the right sound card. Could you add screen shots to your posts from pavucontrol?


You want this:

find ~ -iname '*.conf' | wc -l

Replace ~ with the directory inside which to count the *.conf files (recursively).

The find command searches for files with names matching the case insensitive globbing pattern *.conf inside ~ recursively. It prints each resulting file name in a single line.

wc -l counts the number of lines of its input.


kvm error in syslog says cpu0 unhandled rdmsr

Not a bug:
echo 1 > /sys/module/kvm/parameters/ignore_msrs


Cursor style changed in Unity after installing Sugar DE

Problem solved. In case anybody else experiences the same problem, you can change the cursor look with these steps:

Run "Customize look and feel" (search for it in the menu).
Click on "Mouse cursor".

Here, you can chose between a lot of options, including the one you perhaps got stuck with after the installation of an additional DE.


wicd-curses errors on fresh default 14.04 install

Make sure you have curses installed.

sudo apt-get install libncurses5-dev ncurses-bin

Check out this Issue

wicd-1.7.3 is incompatible with urwid-1.3.0


Thats quite simple provided your CPU uses the intel_pstate driver:

CPU_MAX_PERF_ON_BAT=50

Refer to configuration for details.


It's your funeral. . . I take no responsibility for what this will do to your terminal (you need to make sure there are no binary files in the directory) nor how much crap will be shown in it. If you really want to do this, you can use (with thanks to @DavidFoerster and @muru for improvements):

#!/bin/bash
targetDir="/home/terdon/foo"
## Save the files in the array $files
files=( "$targetDir"/* )
## Cat a random file
cat "${files[RANDOM % ${#files[@]}]}"


Is there any way to find out which user has tried to access specific file and got permission denied error

No. A simple failure to open a file is a process-related issue, not a system issue. The process trying to open the file is the only one that knows the open failed.
Since "permission denied" is a valid return status, and happens often, it's not logged.


Add static ARP entries when network is brought up

Take a look at the scripts in /etc/network/if-up.d. Those are called every time an interface goes to up state. You can create a script with the needed commands and put it
there.


Launch words to my ".profile" not executing

Points:

By doing sudo vi ~/.profile, you have opened and edited your .profile i.e. "$HOME"/.profile as root, this is because shell does tilde (~) expansion first, so sudo vi gets the full path to the file. The inside $HOME expansion would depend on the calling user.
~/.profile is only read for login shell (given ~/.bash_profile and ~/.bash_login does not exist), not for any interactive shell, ~/.bashrc is read for any interactive shell session

So, you need to put the alias definitions in your ~/.profile (just do vi ~/.profile, drop sudo), and to get the definitions in the current session source the ~/.profile file by source ~/.profile. IMO, you would be better off putting the definitions in ~/.bashrc.

The default ~/.bashrc of Ubuntu has:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

so you can put the alias definitions in ~/.bash_aliases too, just to keep them separate and easily maintainable.


SSH timeout on nearly-fresh Ubuntu 18.04 installation

It might be because you haven't added a new public ssh key to the authorized_keys file on the vps? If that's the case: In your Ubuntu 18.04 terminal, enter

sudo ssh-keygen

Make your new ssh key (and password for ssh key, depending on your security needs). Then enter this when you're finished:

cat ~/.ssh/id_rsa.pub

This will display your public key, which you'll need in a minute for copying and pasting.

Keep that terminal open and either log in as root on your mac or go to digitalocean.com, login, click on your droplet, click on "Access" to your left, then the big blue button "Launch Console". When the new window pops up, log in as root.

Then enter the following, substituting the public key you made on Ubuntu 18.04 for xyz, keeping the double quotes:

echo "xyz" >> ~/.ssh/authorized_keys

Now try logging in as usual.


How to check which filesystem current kernel supports?

You can easily find out what filesystem running Linux kernel supports with following command:

 cat /proc/filesystems


USB Keyboard stops working after a kernel update

In my case, I discovered that for any reason, the package linux-modules-extra-X.X.X-XX-generic was not installed. After installing it, my USB keyboard works again.
sudo apt install linux-modules-extra-X.X.X-XX-generic

on the previous command, replace the X.X.X-XX with the kernel version that you want.

A way to check if there is a missing linux-modules-extra-X.X.X-XX-generic of an installed kernel is:
List the installed kernel versions:
dpkg --list | grep "ii" | grep "linux-image"

and then, take note of the kernel's version numbers on the second column, and compare with the output of the installed extra kernel modules:
dpkg --list | grep "ii" | grep "linux-modules-extra"

If an installed kernel version does not have the respective linux-modules-extra-X.X.X-XX-generic on the previous command's output, trying to install it and after reboot and checking if it solves the problem.


Can you force Apt to clean before update?

Review the configuration options that can be placed in /etc/apt/apt.conf.d.  There are options to run clean or auto-clean automatically.  See man apt.conf for the options.  There is a Clean option that should do what you are doing.

In my case I have a setting for Periodic in /etc/apt/apt.conf.d/10periodic:

APT::Periodic::AutocleanInterval "28";


What is the safest way of upgrading the HWE stack?

According to the Kernel/LTS Enablement site, the proper command to run for 14.04 would be:

sudo apt-get install --install-recommends linux-generic-lts-xenial xserver-xorg-core-lts-xenial xserver-xorg-lts-xenial xserver-xorg-video-all-lts-xenial xserver-xorg-input-all-lts-xenial libwayland-egl1-mesa-lts-xenial

Hope this helps!


Welcome to the world of Linux :)

Now, if I understand correctly, you just mis-typed the command. Take note that it is

xsetwacom --list devices

(note the two minus symbols and "list devices" has a space in between).

Reading your question, you might want to look up how to set a keyboard shortcut to toggle between touch on and touch off. I believe that the script on this page might be of use to you


Is there a 32-bit version of Ubuntu 18.04 desktop?

Standard Ubuntu flavour has dropped 32-bit installer for the 18.04 release aka Bionic Beaver (actually since the 17.10 release), but rest of the Ubuntu flavours still support  32-bit systems. You get them from here:

Xubuntu
Lubuntu
Ubuntu MATE
Kubuntu
Ubuntu Budgie
Ubuntu Studio

Alternatively, you can use the Ubuntu mini ISO (refer to this answer).


simples you need to add an entry to the boot.ini i suggest you use easybcd as it is free


Best to check with Intel - ie.

https://www.intel.com/content/www/us/en/support/articles/000005526/graphics-drivers.html

  Intel® Celeron® Processor N3000, N3050, N3150 January 2015    Yes (linux support)

The N3000 was introduced in Q1 2015 (https://ark.intel.com/products/87259/Intel-Celeron-Processor-N3000-2M-Cache-up-to-2-08-GHz-) so kernels later than release-date will have drivers created by intel for it, as intel push their own kernel module (driver) code into the kernels themselves.

That page also tells you

  20180807

is the latest microcode firmware available for linux.

You can use the command sudo lshw -C video to list hardware of class 'video', where the "driver=" bit will tell you what kernel module (driver) is being used.


Libreoffice Calc row column width larger then previous rows

You can merge cells in different rows, that's not changing the actual column width of just certain rows but the result is the same as you can see in your screenshot.

Some columns are effectively masked from the others.


Cannot launch Eclipse form terminal with PATH defined

I was using just ~ instead of /home/username/ and it's gave me the problem.

So, changing from ~ to /home/myuser/ solved my problem.


How can I restrict users fom changing network settings and adding new connection using network manager?

According to the NetworkManager website, it is build 'user-centric' and not 'system-centric'. http://www.arachnoid.com/linux/NetworkManager/

Therefore in order to achieve what you want, you should disable NetworkManager and use the init system to restrict the connection. There's a good explanation of how to do this here: http://www.sitepoint.com/ubuntu-12-04-lts-precise-pangolin-networking-tips-and-tricks/ Scroll down to disable NetworkManager.

Add an askubuntu question/wiki here to consolidate.


The installer encountered an error copying files to the hard disk

I have tried several ways of installing this latest version - nothing worked, so I downloaded and installed Ubuntu 11.10 and clicked on upgrade software. Ubuntu 12.04 downloaded and installed like a dream - pity you uninstalled the earlier version.


Installation fails with "error: No such disk"

Please reinstall grub booting from the live install cd ... select try Ubuntu without install and follow this page:

https://help.ubuntu.com/community/Grub2?action=show&redirect=GRUB2#Reinstalling_GRUB2
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows


Can I install Cuda 5.0 on Ubuntu 16.04 LTS

You are confused by the CUDA version and compute capability. The CUDA version is just the version of the software/API installed and the compute capability is the feature level that your GPU supports.

Your GPU has compute capability 5.0 and this doesn't directly relate to the CUDA version, so you don't need to install CUDA 5.0. You should be able to use your GPU wit CUDA >= 7.5 so the latest one from the website or repos should work. If it doesn't please post what you tried and what error you got.


Server certificate problem with Cisco AnyConnect VPN Client

The following fix worked for me - fresh install of 12.04 LTS 32bit (with Firefox 12). Installed the AnyConnect client, then tried to run it.

Got this message:

  AnyConnect cannot confirm it is connected to your secure gateway. The
  local network may not be trustworthy. Please try another network.

Checked syslog in Ubuntu. Lots of this sort of stuff:

CERTSTORE_ERROR_CERT_NOT_FOUND The /opt/.cisco/certificates/ca/ directory was not found

Created /.cisco/certificates/ca directories in /opt using sudo

cd /opt
sudo mkdir .cisco
cd .cisco/
sudo mkdir certificates
cd certificates/
sudo mkdir ca

We use Globalsign as our certificate authority. So I just copied all the Globalsign .pem files from /etc/ssl/certs. If you don't know your provider, you could just copy everything.

sudo cp /etc/ssl/certs/Global* /opt/.cisco/certificates/ca

or if CA is unknown

sudo cp /etc/ssl/certs/cd /etc/ssl/cert/* /opt/.cisco/certificates/ca

I was able to start the AnyConnect client and connect to the VPN

Hope this helps.


How to get CPU Utilization for a certain process

How about using cpustat?  This has the ability to monitor specific processes and allows one to monitor at a rate of 0.3333Hz upwards.  The -a option allows one to specify the total CPU time in terms of all the CPU ticks rather than just one CPU tick.

For example, 2 samples a second on the compiz process for 120 samples:

cpustat -a -p $(pidof compiz) 0.5 120

I developed this tool for Ubuntu to measure CPU utilisation on low powered devices, and hence I have optimised it to use as small a CPU overhead as possible.  For more information, refer to the cpustat project page


Mupen64 is installed, but doesn't show up in the Dash

I see that after one month, you still not get good answer.
So I try my "poor" answer.

I had the exact same problem than you.
After installing Oneiric and install Mupen64, now no more problem, my Mupen64 icon is back in the Unity Dash.


It seems that the latest nvidia drivers that came down in the update somehow threw the system out.

After opening a terminal using CTRL-ALT-T I entered:

sudo nvidia-settings --uninstall

then typed in my password waited for a half hour (no idea how long the process would take), then restarted the machine. Loaded up perfectly fine.


How to keep a YouTube playlist synced to a local folder as mp3 files?

This is more of a workaround than a direct answer, but if you are ok with occasionally re-downloading some of the older playlist files you can set up a cronjob to find and delete files in a target directory using find.

You should review the playlist and estimate how long files usually stay on it before disappearing, and use that number of days for your variable. Here in my example I chose 30 days.

Here's an example Bash script for cron to run as an @daily job:

#! /bin/bash

# Delete all files in a directory older than 30 days
# (careful, this is recursive and will delete files in subdirectories)
find /PATH/TO/youtube-dl-playlist-files -mtime +30 -delete

Any files still on the playlist but older than 30 days will be deleted, and youtube-dl will re-download them when you run it next. This isn't optimal but it may be good enough.


Wired connection (eth0) is working but network manager icon shows no network

Edit your NetworkManager.conf file. One of these two commands should work, depending on your Ubuntu version (the first command worked in my 14.04 installarion).

gksu gedit /etc/NetworkManager/NetworkManager.conf

gksu gedit /etc/NetworkManager/nm-system-settings.conf

The opened document should have these lines:

[ifupdown]
managed=false

Change them to:

[ifupdown]
managed=true

Finally, you need to restart your network-manager. Do this at the terminal:

sudo service network-manager restart

Source: http://ubuntuforums.org/showthread.php?t=1079394


How to turn write protection off of /media/cdrom0

CD-ROM devices are, by nature, read-only. Hence the name CD-ROM.

With this in mind, it's not possible to directly alter the data on a CD or a mounted ISO. Instead, you have to extract the ISO or copy the data somewhere else where you can manipulate it:

cp -R /mnt/cdrom/ ~/Desktop/CD-Data/

This limitation was carried over to the ISO system (and VirtualBox) as a way of properly emulating the hardware, including the write protection that comes with it.

However, for the purpose of installing VirtualBox Additions, you don't actually need to be able to write to the ISO/install media. Simply running the install script present within it is more than enough to get your system online properly. You can see here for detailed instructions.


Ubuntu 16.04 LTS - multiple or big data cp increases io wait until system blocks

IOWait is a CPU metric, measuring the percent of time the CPU is idle, but waiting for an I/O to complete. Strangely - It is possible to have healthy system with nearly 100% iowait, or have a disk bottleneck with 0% iowait. Since your system is doing nothing but repetitive I/O with your script it's not surprising to see wa approach 100%. This in and of itself is not your problem. Since you aren't getting any indications in the syslog you should run a memtest See 1and 2 and then check smart status on the drives in question.

You might also have a dodgy data or power cable going to the drive(s) in use.

Further reading: https://serverfault.com/questions/12679/can-anyone-explain-precisely-what-iowait-is


How to scan a document with the scanner scan button

As of now, this does not work in Linux. The only solution is to create a Windows virtual machine and install the software there. This will also let you access advanced scanning features that the simplified scangearmp2 program does not.


How do I make the cursor color the inverse of the character color?

This is the default behavior of gnome-terminal. Unless you explicitly set a Profile Preferences -> Colors -> Cursor color, and assuming that you use the default Profile Preferences -> General -> Cursor shape: Block, the cell under the cursor is inverted (that is, its foreground and background colors are swapped).

What I believe might happen to you is what's discussed at https://github.com/tomasr/molokai/pull/44. I think you might be using a color scheme that highlights matching { and } characters, probably by inverting both of them. That is, in this case probably your vim explicitly inverts the character cell under the cursor, and gnome-terminal inverts it again... or something very similar to this.

I recommend that you (at least temporarily) switch to I-Beam or Underline cursor shape to verify this theory. If we're indeed on the right track, you should ask the maintainers of your vim color scheme to fix it, or probably even ask vim to make it possible for color schemes to highlight (invert) the counterpart brace only, not the one under the cursor.


Long running udev script on Ubuntu 16.04

Realized I needed to do:

 #!/bin/sh
 echo /opt/script.sh | at now


How to open Exchange 2010 Shared Calendar?

To expand upon Ubuntuser's comment that helped me along the path:

Set up evolution-ews and get your inbox functional. Make sure you're online, and syncing.
On the Mail view, right click your exchange account, select "Subscribe to folder of other EWS user."
Type in the name of the account you want, and choose Calendar from the dropdown.

It will silently add itself to the calendar view under your exchange account.


Pycharm display an error in the terminal when I run python3 manage.py runserver

Hint to check

Check folder & files permissions
ls -lR -I venv  /home/timgrand/PycharmProjects/Pyshop

Check app templates setup
TEMPLATES = [
        ...
        'APP_DIRS': True,

If app is active
INSTALLED_APPS = [
    ...
    'products.apps.ProductsConfig',
    'products', #this format still works too
    ...

Or move templates from products app to parent project director Pyshop
mv /home/timgrand/PycharmProjects/Pyshop/products/templates /home/timgrand/PycharmProjects/Pyshop/

For the other error about main.py, you need to create an empty project when using PyCharm CE edition and then add Django existing project to it.
By unchecking the main.py box in Project creation wizard. See the screenshot.


Ubuntu preinstalled laptop: How to change the default search engine and home page in Firefox?

Change the Home Page to about:home in Edit -> Preferences -> General. If you want the home page to some other website, you can change it likewise.

To change the default search engine, Type about:config in the URL bar in Firefox. Accept the warning.

Change the value of browser.search.defaultenginename to Google. The capital letter on Google is important.


Maybe this will do for you although its a bit rudimentary. I bet it will perform enough to fulfill your first requirement, though ;>

feh is an image viewer with many options (see man page), one of which is the -A or --action option, which allows you to execute a script if you hit the action_0 key (RETURN by default, can be configured).

Example of your second usecase:

cd ~/Pictures/
# create a folder for selection
mkdir selection01
# tell feh to link files to that folder when action is triggered
feh *-2016.jpg -A "ln -s ../%F ./selection01/"

You can easily write a script to call with the action in order to toggle (remove and link) the files you want to collect and maybe use something like notify-send to give you some feedback via GUI.


How to dual boot Windows 8.1 and Ubuntu on the same hard drive?

I was able to install 14.04 (64 bit) on a Toshiba NB10t-A with very similar specifications. I did it with a live CD. And after fiddling around a bit... I was able to get Grub to load up when my computer booted and I was in business. This involved switching from UEFI mode, to the other mode (I forget the precise name of it, for the life of me), which didn't work... and so I then switched back to UEFI mode, which caused Grub to spontaneously start working. These are the instructions I followed.

You might want to deviate from these particular instructions just a  bit, I'm not a fan of how they prompt you to partition your hard drive when installing Ubuntu, but other than that... they should send you well on your way.

Feel free to contact me directly or comment here if you have questions about how I did a particular step, etc.


Can't reboot after installing new ubuntu

I faced the same problem installing Ubuntu 14.04LTS.

I tried to dual boot my lap with windows 8.1 and Ubuntu 14.04. All installed perfectly. After installation, Ubuntu  requested a restart. So I chose the option restart now. I waited more than 45 minutes but there was no response at all.  So i did it manually by hitting the power button.

Afterwards, it works well. Then ubuntu archive show me some updates, which I installed. After install it showed restart now. When I clicked that, it hung again.

This happened on a Dell I5 1.8GHz 320 HDD and 4 GB ram.

But then I bought a new pc . HP I3 2.8GHz 1Tb HDD with 4 GB ram. Now I have set up dual booting again,  this time with windows 10 and Ubuntu 14.04. Now it all works perfectly.

I suggest you to check your system wheather its capable to Dual boot

This may be not correct answer, I post this for get some idea with the system


Getting dpkg-buildpackage depencency errors when using apt-get install source --compile

Build-time dependencies are separate from compile-time dependencies, so you can install them with apt-get build-dep audacity.

However as this installs otherwise unnecessary packages, it's common to set up pbuilder, e.g. as explained on https://askubuntu.com/a/39718/129


How can I run detached command with sudo over ssh?

I did small survey and found this similar question on Stack Overflow. At all you must add path to the script or must go inside the directory, where the script is located:

ssh remote-host -t "sudo -b sh -c 'nohup /path/some_script > /dev/null 2>&1 &'"

ssh remote-host -t "sudo -b sh -c 'cd /path; nohup ./some_script > /dev/null 2>&1 &'"

Without sh -c or bash -c the ampersand & at the end breaks the command in some way.

I couldn't manage to use disown for this purpose, but setsid works  well:

 ssh remote-host -t 'sudo -b setsid /path/some_script'


(converted OP comment to answer)

While I was looking for a way to change the location where notifications show up, I stumbled upon a settings in dconf.

If you go to com, then canonical, then indicator, and then into sound you will find an option to change the order of the different entries in the Sound Menu.


How to edit the color of the title bar and border width of a gtk3 theme?

Edit the files in the directory:

/usr/share/themes/[Themename]/gtk-3.0/apps/unity.css

To avoid clobbering the original them it's better to copy the them to your personal area under a different name, then make the changes.  The theme will appear in the theme chooser as the name you copied them to.

Per-user theme ares:

~/.themes/[Theme Name]

Specifically to this question you can change the color of the title bar by changing:
(There are many ways but this is a start to change the border color of the active widget of the Radiance theme from the original default gray to a bright blue).

1 (Border Top)

UnityDecoration.top {

Change from:

background-image: -gtk-gradient (linear, left top, left bottom,
                                 from (shade (#edebe6, 1.06)),
                                 to (@dark_bg_color));

Change to:

background-image: -gtk-gradient (linear, left top, left bottom,
                                 from (shade (#0000ff, 1.06)),
                                 to (shade (#0000ff, 1.0)));

2 (Border Right and Left side)

UnityDecoration.left,
UnityDecoration.right {

Change from:

background-image: -gtk-gradient (linear, left top, left bottom,
                                 color-stop (0, #a89686),
                                 color-stop (0.5, #a89686),
                                 color-stop (1, shade (@bg_color, 0.7)));

Change to:

background-image: -gtk-gradient (linear, left top, left bottom,
                                 from (shade (#0000ff, 1.0)),
                                 to (shade (#0000ff, 1.0)));

3 (Border Bottom)

UnityDecoration.bottom {

Change to:

background-image: -gtk-gradient (linear, left top, left bottom,
                                 from (shade (#0000ff, 1.0)),
                                 to (shade (#0000ff, 1.0)));

You can do the same thing with the ":backdrop" entry to change the color of the inactive window border colors.  The #0000ff color code is blue.  I made the backdrop #0000ff back to make it easy to tell which of my many open windows is active.

Because of the dark color frames (after changing the very light borders of the Radiance theme) the text color had to be changed from the default black to make it readible.  For this use the following in each of the feature blocks:

text-shadow: none;
color: white;

That takes care of the frame color and text of the modified theme.  For the border width:

Edit the block:

UnityDecoration {

Change from:

-UnityDecoration-extents: 28px 0 0 0;

Change to:

-UnityDecoration-extents: 28px 6 6 6;

Details of the features can be found at:

https://wiki.ubuntu.com/Unity/Theming

You have to use the unity-tweak-tool to select your custom theme:

$ sudo apt-get install unity-tweak-tool


Wireless not working on 16.04 : Qualcomm Atheros AR2413/AR2414 Wireless adapter

From the results of the two scripts it looks like wireless is working fine and you have found another bug in GNOME Network Manager. Please report it. I have written a detailed answer on how to proceed here. 16-04-lts-all-wifi-connectivity-lost-when-changing-wifi-networks


i want to install specific version of go programming language(1.7.5 ) in ubuntu 16.04

I just make a symlink from /usr/bin/go to the particular go binary file I want, that way the OS can always find it.


This is weird . Are you sure you didn't install completely Ubuntu in the drive ?
The only thing I can imaging is the BIOS. Hold down the key during PC boot, to go into BIOS configuration page (in my laptop is F2 , maybe is Del or F10) and search for "Device boot priority" or "Boot sequence". See if your internal HDD (or the other HDD ,not the extra D drive) is placed first in boot. If not then change it, save and reboot.

If none of above works, then something else is going on and I suggest to boot into BIOS , place first BOOT the DVD and boot from the Windows DVD to repair the installation.


What software can be used to create a restorable drive image?

Clonezilla is fairly popular though I've never used it. I would imagine you should be able to install it to its own partition and hack it into grub so it's there as a boot option (which I assume is what you're going for).

But most people just boot to it on CD or USB.


uGet seems to be in vogue at the moment.

From the website:

  Features:

  Free (as in freedom , also free of charge ) and Open Source.
  Simple , easy-to-use and lightweight .
  Support resume download , so if your connction lost you don’t need to start from first .
  Classify downloads , and every category has independent configuration and queue .
  Queue download .
  Integrate with Firefox through Flashgot plugin .
  Monitoring clipboard .
  Import downloads from HTML file .
  Batch download , you can download many files has same arrange , like file_1 file_2 …. file_20 , you don’t need to add all links , just
  one link and changeable character .
  Can be used from command line .

You can download it from here


This device is known for that. Lets try:

echo "options rtl8723be swenc=1 fwlps=0 ips=0" | sudo tee /etc/modprobe.d/rtl8723be.conf
echo 'KERNEL=="wlan0", RUN+="/sbin/iwconfig wlan0 txpower 18"' | sudo tee -a /etc/udev/rules.d/75-wlan.rules

Reboot


They copy all files inside brace directories into /mnt/RESTORE/backup_14.04.5

That's the rsync behaviour when the source path has a trailing slash /.
From man rsync:

A  trailing slash on the source changes this behavior to avoid creating
an additional directory level at the destination.  You can think  of  a
trailing / on a source as meaning "copy the contents of this directory"
as opposed to "copy the directory by  name",  but  in  both  cases  the
attributes   of   the  containing  directory  are  transferred  to  the
containing directory on the destination.

To copy the directories, omit that /:

sudo rsync -avr /media/kenn/c2d1b866/{bin,sbin,usr,opt,lib,var,etc,srv,libx32,lib64,run,boot,proc,sys,dev} /mnt/RESTORE/backup_14.04.5


Ununtu 16.10 no internet, wi-fi or cable

Use another computer to download these files:

http://mirrors.kernel.org/ubuntu/pool/main/d/dkms/dkms_2.2.0.3-2ubuntu14_all.deb

http://mirrors.kernel.org/ubuntu/pool/universe/r/r8168/r8168-dkms_8.042.00-2_all.deb

http://mirrors.kernel.org/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu11_amd64.deb

Copy the files to your Ubuntu Home folder and run in terminal:

sudo dpkg -i *.deb

Reboot. Both interfaces should work. If you have UEFI, you need to disable Secure Boot in BIOS first.


How to list all mp4 files with HDp60 (to separate them from p30)?

You can use ffprobe for get video frame rate.

Install: apt install ffmpeg

Usage for 1 file:

ffprobe -v error -select_streams \
v -of default=noprint_wrappers=1:nokey=1 \
-show_entries stream=r_frame_rate <your-filename>.mp4

Get filenames and framerates in batch for all videos in current dir (divided by \t):

for videofile in *.mp4; do
 echo -n "$videofile\t"
 ffprobe -v error -select_streams v \
 -of default=noprint_wrappers=1:nokey=1 \
 -show_entries stream=r_frame_rate $videofile

Get filenames and framerates in batch for all videos in current dir and subdirs using find:

find -name '*.mp4' -printf '%p\t' \
-exec ffprobe -v error -select_streams \
v -of default=noprint_wrappers=1:nokey=1  \
-show_entries stream=r_frame_rate {} \;


Set volume to 100% on start up - Ubuntu 12.04

add any of this command in your startup script (like /etc/rc.local)

/usr/bin/pactl set-sink-volume 0 100%

or

/usr/bin/amixer -D pulse sset Master 100%


link between photo and thumb in shotwell (v 12, db schema 15, ubuntu 12.04)

The question's almost a year old, but I was trying to accomplish the same, and it's quite easy, so I thought I'll share my solution. The thumbnail file names are generated simply from the "id" field for an image's entry in PhotoTable. The id is stored as a decimal number, and you simply have to convert it to hexadecimal.

This will print out the filename to an image's corresponding thumbnail (replace $path with the full path to the image, or alter the match criterion according to your needs):

sqlite3 ~/.local/share/shotwell/data/photo.db "select id from PhotoTable where filename = '$path'" | xargs printf "thumb%016x.jpg\n"


Gnome-Do sometimes stops responding to superkey+spacebar

Sometimes it simply dies, and you need to restart it. Alternatively, the system could be temporally unresponsive and it might take more time that usual to invoke the launcher.


Please change it to:

auto lo
iface lo inet loopback

auto eth1
iface eth1 inet static
address 192.168.1.20
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4

Is eth1, by chance, wireless? If so, you will need to declare an SSID and, hopefully, a WPA2 password.

Restart the interface:

sudo ifdown eth1 && sudo ifup -v eth1

The -v means verbose, you will have a chance to see what, if anything, went wrong and correct it.

I hope you meant /etc/network/interfaces.

If you are still having trouble, you may have a typographical error. Please open a terminal and do:

cat /etc/network/interfaces  >  interfaces.txt

Find the file interfaces.txt in your user directory and paste it here so we may proofread it. http://paste.ubuntu.com/ Give us the link in your reply.


Ubuntu 20.04 does not detect my laptop screen

Actually, what happend to me was that for some reason, when I saved the nvidia-settings to the X file (/etc/X11/xorg.conf) configs only for the external monitor were added. As a result, after a reboot, only the external monitor was detected.
The NVIDIA X Server Settings software can be opened by running 'nvidia-settings' on the terminal.
As suggested by Kulfy, the solution was to delete /etc/X11/xorg.conf and do a reboot. Everything works again as expected.
See this Internal laptop screen not detected when using Nvidia driver


Error :invalid protocol while installing phonegap

npm ERR! Error: Invalid protocol

will show when the proxy is not set to a full absolute URL.

You need to do a ...

npm config set proxy http://username:password@host:port
npm config set https-proxy http://username:password@host:port

where username, password, host and port need to be changed to fit your situation.


CUPS is available at http://localhost:631 and there you'll find the "Admin" tab. There are command line tools, too. man -k cups, but the web interface is easier.


Ubuntu as main OS + Windows on VirtualBox?

VirtualBox is a good solution to have occasional access to Windows, or to be able to quickly run a Windows application without having to reboot. It is also a good solution whenever you need to rapidly share your data from a Windows, and from an Ubuntu application.

But there are some drawbacks from a virtual machine. As it is true that the performance of mere data processing applications or editors will be more than sufficient given the specs of your machine this is not true for graphic intense applications.

I have no experience how much the flash development tools make use of your graphics card but I suspect they do a lot. In this case you may not be happy with the somewhat sluggish performance in a virtual machine. It may be good enough for testing, but probably not for application development, where it is also critical to not introduce bugs from the virtualization environment.

Therefore I would go for a dual-boot setup where you boot Windows for development, and Ubuntu for safety.

But I might be wrong, it may be that VirtualBox performs good enough for you, and on your individual machine. You need to test this, really. Intall Ubuntu as dual-boot with your presumably already preinstalled Windows. It is not much of an effort to also install Virtual Box to run Windows in Ubuntu 1 . In case you are happy with the performance, just leave Windows sitting there for an occasional boot, or remove it  later.

 1  Note that for running an additional Windows in Virtual Box you will need a separate own licence.


Why am I unable to edit a file on a windows share (cifs)?

You mode and dir_mode are wrong.  They are not permissions, but masks, (see man umask) or the man page for mount concerning mode:
    mode=value
              Set the mode of all files to value & 0777 disregarding the original permissions.  Add search permission to directories that have read permission.  The value is given in octal.
Either set it to something reasonable like 022 or just use 0.


ubuntu 14.04 wireless not working on Macbook pro dual boot

The bcmwl-kernel-source is a wrong driver for this Broadcom Corporation BCM43602 802.11ac Wireless LAN SoC [14e4:43ba] (rev 01) adapter. It will not work with it.

The proper driver is brcmfmac. It is built in the kernel.

Uninstall the wl by

sudo apt purge bcmwl-kernel-source

and the Wi-Fi should work.


User ctrl + c  or ctrl + d.
It seems that this happened during shutdown and a daemon could not be stopped.

Otherwise you can use Alt+Function+b.

If nothing helps power off your station by pressing your power button until. The next time linux starts up it will check your file system and correct it.

You have to correct your speech_dispatcher config.


Where does Ubuntu store the cache of MAC addresses for interface numbering?

I suggest you edit the file /etc/udev/rules.d/70-persistent-net.rules. I'd remove all the lines for previous, no longer installed network cards; change the current interface, for example eth4, to eth0 and reboot.


It turned out to be an issue with the theme I am using, however I was able to fix it by copying these lines (line 1340 to 1373) (the part under the "sidebar" comment) from the gtk-widgets.css file (/usr/share/themes/Ambiance/gtk-3.0/)...:

/***********
 * sidebar *
 ***********/
GtkPlacesSidebar.sidebar .view {
    background-color: shade (@bg_color, 0.95);

    color: @fg_color;
    text-shadow: 0 1px shade (shade (@bg_color, 0.95), 1.04);
}

GtkPlacesSidebar.sidebar:backdrop {
    color: mix (@fg_color, shade (@bg_color, 0.95), 0.2);
    text-shadow: 0 1px shade (shade (@bg_color, 0.95), 1.02);
}

GtkPlacesSidebar.sidebar row:selected {
    color: @selected_fg_color;
    text-shadow: 0 1px shade (@selected_bg_color, 0.7);
}

GtkPlacesSidebar.sidebar row:selected:backdrop {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@bg_color, 0.95), 0.94)),
                                     to (shade (shade (@bg_color, 0.95), 0.86)));
    border-top-color: shade (shade (@bg_color, 0.95), 0.88);

    color: @fg_color;
    text-shadow: 0 1px shade (shade (@bg_color, 0.95), 0.96);
}

GtkPlacesSidebar.sidebar .sidebar-icon {
    padding-left: 10px;
    padding-right: 10px;
}

... over the "sidebar" part in the gtk-widgets.css file of the theme I use:

/***********
 * sidebar *
 ***********/
...

This is how Nautilus looks now:


I think if you are using Ubuntu 15.XX you can simply run:

sudo apt-get install ffmpeg

if you are on the lower Ubuntu version you can just simply download static builds from here. Or type this in the terminal:

wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
tar xf ffmpeg-release-64bit-static.tar.xz
cd ffmpeg-3.0-64bit-static/

Static build of ffmpeg ./ffmpeg will be inside this folder. You can also move it to /usr/local/bin to be able to run it from everywhere.


TSC_DEADLINE error when booting from live 18.04

I downloaded again the iso file and got the same md5sum, so the download was correct. I then wrote the downloaded file again to the same USB stick, with the same tool, the 18.04 Startup Disk Creator. And now it worked!

In the syslog file I can now see the same error message concerning TSC_DEADLINE, but the boot continues. So it looks that the first messages in the picture were not relevant, only those beginning with SQUASHFS error:, indicating that the first writing to the USB stick somehow failed.


I don't think that there is a gconf-editor like application for the KDE.

Few Ubuntu forums links that are saying the same thing:

http://ubuntuforums.org/showthread.php?t=1319966
http://ubuntuforums.org/showthread.php?t=955034


How do I disable the touchscreen drivers?

You can try disabling the input device with the xinput command. First see what input devices you have, just type:

xinput

And you should see a list like:

$ xinput
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Atmel Atmel maXTouch Digitizer            id=9    [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=13   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=12   [slave  pointer  (2)]
...

Then you can disable the input device you want with this command:

xinput disable 9

Where 9 is the id of the device you want to disable. You can also use the device name between quotes.

In xinput version 1.5.99.1 , you need to do xinput set-prop 9 'Device Enabled' 0 instead. Oddly on xinput v1.6.2 the first way work.


The problem was solved through installing dev-versions of those libraries

sudo apt-get install libldap2-dev
sudo apt-get install libidn11-dev


It doesn't have a login, as it is an unmanaged switch (i. e. you cannot log in).  It is a plug and play device - it only functions like a high end hub. Neither does it need any configuration.

You can check the user manual.


Unable to build Yaru Cursor theme from Github

I was trying different combinations and finally was able to build the cursor theme. In the bitmaps folder at path shown below, delete the folder and icons in it. Keep the .in files intact.

  https://github.com/ubuntu/yaru/tree/master/icons/src/cursors/bitmaps

Then use this command within the cursors folder in Terminal

./render-cursors.py source-cursors.svg

Once that is over, try ./x11-make.sh command in the same Terminal window

Give it a bit of time and there will be a folder called Surunext to the src folder

This has worked fine for me so far. If you are confused try this Readme file

https://github.com/ubuntu/yaru/blob/master/icons/src/cursors/README.md

Good luck.


You can use find to walk directories recursively.

find -type f -exec mv {} {}.odt \;

Removing the extension is kind of more problematic:

find -name '*.odt' -exec bash -c 'f={}; mv "$f" "${f%.odt}"' \;

But you can also create a script to remove the extension and call it from find to make it simpler:

find -name '*.odt' -exec remove_odt.sh {} \;

As you can guess, {} will be replaced by each file's name with exec, the final \; says where the command to execute ends.

Also, don't use sh to run bash scripts, sh and bash are different beasts.


"sh: 1: cannot open /tmp/pdfsandwich4e375e.html: No such file" when using pdfsandwitch

It turned out that the format of the config file changed with the present ubuntu version of tesseract (3.02.01): http://code.google.com/p/tesseract-ocr/source/browse/trunk/tessdata/configs/hocr?r=526 . Tesseract can now be instructed to output in hocr format with a single line configuration file tesseract-config:

tessedit_create_hocr 1

As noted in the question, tesseract can be instructed to read the config file by passing the -tesso option to pdfsandwich:

pdfsandwich -tesso tesseract-config test.pdf


How to connect simultaneously to a wired internet and wired LAN network?

This is more a networking issue.

You wish to connect (at least) 2 networks: your LAN and the Internet.

The easiest way is of course using a router. It looks like your "switch" is a router, it is even a DHCP server. You may want to access advanced routing options to match your needs.

But as you mention a "primary" server, maybe you want it to act as a router? If so, having only one ethernet card is going to be a real challenge, but if you eager to learn, you can do this using virtual interfaces and creating your own routing tables.

I wouldn't try to do so using the network manager gui.

You're going to hate the /etc/network/interfaces file... your best starting point might be

 man 5 interfaces

then.


How do you connect remotely from another country?

You can use Team Viewer it can work beyond proxies.

Installing Team viewer:

For Ubuntu,you can download the teamviewer here. Once downloading is completed, you can install it easily by double clicking the .deb file.After installation you can find team viewer under the Internet Menu(Applications → Internet).

Open the Team Viwer:

Applications → Internet → Team Viwer

Before establishing the remote desktop connection,you must know the ID and Password of the remote system which is running Team Viwer.After getting the ID and Password from your partner.Enter the ID and click connect to partner, with in few seconds it will show a window prompting for a password.Enter the password which you got from your partner and click ok.

Now you are connected to remote sytem.

Note:
To establish the connection, Team viewer must be installed in both the system.


How to install canon lbp2900b printer in ubuntu 16.04 lts

so to install the driver for the LBP2900

get the driver from here http://support-asia.canon-asia.com/contents/ASIA/EN/0100459601.html and you will be downloading linux-capt-drv-v271-uken.tar.gz    ..it was updated 15th May 2017 so very up-to-date so please click to SAVE when you download and it should end up in your Downloads folder
open a terminal and paste these commands carefully one by one; and hit the ENTER key after each paste

cd Downloads

tar -zxvf linux-capt-drv-v271-uken.tar.gz
cd linux-capt-drv-v271-uken/64-bit_Driver/Debian
sudo dpkg -i cndrvcups-common_3.21-1_amd64.deb
sudo dpkg -i cndrvcups-capt_2.71-1_amd64.deb

Restart CUPS with sudo service cups restart
register printer with

sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59787 –E

Register the printer in the ccpd daemon setup file.

sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0

..and that assumes the 2900 is your only usb printer ..

Start ccpd daemon.

sudo /etc/init.d/ccpd start

At that point, you should be able to print; please keep in touch and let us know how it goes ...


Why won't Web Apps install after I click intall in Firefox?

They won't give you a message like "The app has been successfully installed" or anything like that. But you can see these apps in the top panel, under the envelope button. Please check whether its there, if not, then they have not been installed. This is how my apps look after I have installed them:


is it possible to use Debian repositories in Ubuntu?

is possible but not recommended it can cause your system to become unstable. Do not use any foreign repositories. Look for backports or compile the package from source, using the deb-src repositories, if you need.


you may achieve this by creating a gnome-shell extension
Extension UUID: add_plain_text_beside_actv_button@username.domain Change this in below command (and further) if you wish to have other name.. Other wise just copy paste the below command and run.
run
install -D /dev/null $HOME/.local/share/gnome-shell/extensions/add_plain_text_beside_actv_button@username.domain@username.domain/extension.js

run
install -D /dev/null $HOME/.local/share/gnome-shell/extensions/add_plain_text_beside_actv_button@username.domain@username.domain/metadata.json

copy paste the below content in extension.js file and change "Your Text Here" at line no. 12, in the below content with whatever text you need.
'use strict';

const { St, Clutter } = imports.gi;

const Main = imports.ui.main;

let _myText;

class Extension {

    enable() {
    _myText = new St.Label({ text: 'Your Text Here', y_align: Clutter.ActorAlign.CENTER, style_class: 'panel-button', track_hover: true, reactive: true });
    Main.panel._leftBox.insert_child_at_index(_myText, 1)
    }

    disable() {
    _myText.destroy();
    }
}

function init() {
    return new Extension();
}

copy paste the below content in metadata.json file.
{
  "name": "Add Plain Text Beside Activities Button",
  "description": "Add Plain Beside After Activities Button",
  "uuid": "add_plain_text_beside_actv_button@username.domain",
  "shell-version": [
    "3.36"
  ]
}

Save the files & close..
If you are on Xorg session. you can refresh the gnome-shell with Alt+F2 r Enter method and then turn on the extension.
If you are on Wayland session. logout and login and then turn on the extension.


Mobile Broadband Connection terminating automatically after 2-3 minutes

I did some research and as far as I can tell there should be no compatibility issues with the phone or network. However, IF you are on a prepaid plan, the terms of service state tethering is not allowed, which would likely be your problem. Even with a contract plan, only specific plans allow tethering so make sure you are on one of those plans.
Beyond this my only suggestion is to run an update on your phone.
Hopefully this helps!


Upgrade from disco to eaon - 4 packages can be upgraded, but not possible to update

Although you are trying to upgrade to 19.10 (eoan) from 19.04 (disco), your sources contain some 18.04 (bionic) entries. Use the following command to find them:

grep -r bionic /etc/apt/sources.list*

Then use your favorite text editor to edit the found files and remove or upgrade the bionic entries manually.

See also: How do I restore the default repositories?


deleting option of ubuntu from boot manager

You need to repair your windows bootloader.To do this,follow the below steps,

Boot windows installation disk then select the windows repair or repair your computer option before you go into the installation process.
After selecting windows repair option,it will take you to the next screen.In that screen select the command prompt option
Then run the below commands,on it.

bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd

This will repair your windows boot files.