Steam won't launch on Kubuntu 16.10 with nvidia drivers installed

After a week of meddling around I finally found a solution, which was easier than I could have expected. For anyone that might seem useful, it was just a problem with misconfiguration in /etc/ld.so.conf.d. Although I have been there before and started tweaking I haven't found any solution, until I stumbled upon this file bug and more specifically here. So, the problem is that for some twisted reason my system was pointing into the mesa library, rather than the nvidia. So all it was needed was a:

sudo update-alternatives --config i386-linux-gnu_gl_conf

and checking the appropriate library, then

sudo ldconfig

and BOOM steam started like a charm!


Background only when booting into i3-gaps on Ubuntu 16.04 LTS after installing. Any help?

Turns out I installed it correctly, and just didn't realize that the commands were different. Thanks to @mreq for that.
Posting this just so I can say the question was answered if nobody else submits.


In order to install Windows you will need to format /dev/sda1 as ntfs (otherwise the Windows installer may not recognize the partition).

However this would only leave you with 52GB for the Windows partition. If you wish to remove your previous Ubuntu installation, you could remove the extended volume that was created by the install process (/dev/sda2) entirely.

So if you only require the use of Windows, and have no requirement for preserving data -- you could simply remove all of those partitions.

If you wanted to install Ubuntu again later, the installer would be able to configure your partitions again as you may require.


How to mount this internal drive as a permanent location?

A partition on an internal medium that is not automatically mounted through the system configuration file /etc/fstab is only mounted "on demand", i.e., by clicking its icon in your file manager.

A partition on an external removable medium (USB drive), in contrast, is automatically mounted when the medium is detected. Such volumes are mounted under /media/$USER/, where $USER stands for the current user, and  is the volume label if it exists, or the UUID. Any volumes mounted under /mount/$USER or under your home folder will show up as an icon in the left of your file manager (and as an icon on the desktop if you use desktop icons).

To have your second internal hard drive automatically and consistently mounted during startup in a folder of your choice, you can add the mount instructions to the system file /etc/fstab. Part of the accepted answer in this post shows you how this is done. You need to adapt to your case.

The line in etc/fstab that defines how your drive is mounted, is structured in six parts separated by space.1 an identifier of the partition, 2 the mount point, i.e., the folder where the partition is to be mounted, 3 the file system, 4 the options, 5 a flag for "dump" (leave on 0) and 6 a flag to check (for linux file systems such as ext2, ext 3 and ext4, or btrfs, set to 2 so the drive is checked each time on startup in second priority, i.e. after system partitions have been checked. Otherwise, leave on 0 and have the partition checked manually now and then).
Start from the sudo mkdir -p /media/datadrive command. This shows how an existing partition is included in /etc/fstab. You decide yourself on where to mount. Mounting under /media will give you an extra icon. If you do not want this, mount elsewhere (e.g. as you suggest yourself, /mnt/drive2). This mount point will be entry 2 on the line for your drive in /etc/fstab file
The blkid command will show you the specific information you will need. You can literaly copy the "UUID="..." part to be part 1 on the line for your drive in /etc/fstab file. Take note of the file system (ext4 in the example), which you need to substitute as part 3.


Gparted, Gedit doesn't open with the gksu command [Xubuntu]

Try the following to see if ROOT is the owner of your configuration file (this can happen when you use 'sudo' instead of 'gksudo' in launching app with a GUI).

  find $HOME -not -user $USER -exec ls -lad {} \;

In this case use:

  sudo chown -R %YOUR_USERNAME%:%YOUR_USERNAME% %TARGET_FILE_OR_DIRECTORY%

to change configuration files' owner.

Cheers


Unable to open /dev/sdb read-write (Read-only file system)

First try the command sudo hdparm -r0 /dev/sdb (method taken from another askubuntu answer). Then try remounting rw the partition.  If these steps don't work then you are most likely out of luck with that pendrive.

Since the kernel says that the whole drive is write protected you have to deal with the protection at the drive level.

hdparm does this. If it can't solve this it is likely that your pendrive is write protected by design or it is failed.

Maybe it has a hardware switch under its casing if you take it apart. If it was writable before maybe this switch got flipped, if it was never writable maybe it was always on.

Also googling for your device gives out a lot of hits with the same problem even on windows. This is from the Sandisk forums:

  For the SanDisk USB stick the answer has been posted many times.  If new return it to where you bought it.  If under warrantee return it to SanDisk.  BOTH options will get you a new USB stick.  There are no other consistent options.

Also from the Sandisk forum:

  This is an offical answer if you contact customer service:

  "I understand that you are getting write protection error while accessing your Cruzer flash drive. The flash drive has detected a potential fault and has become write protected to prevent data loss. There is no method to fix this. You will need to backup your data and replace the flash drive.
  Our team of developers is in combination with the OS developers looking into a solution to resolve this issue.
  Please note that only a minor percentage of users are experiencing the write protection issue and these are the customers posting on the internet to find a solution."

So likely there is no way to solve it.


Using BIND9 as a Caching Server, is there a way to set the expiration of the cached items/names?

The expiration time is known as the "TTL" or time to live. You set this variable in you configuration file, typically /etc/bind/db.local or whatever config file you are using.

TTL is in seconds, so set it to a lower value, 60x60 = 3600 for an hour for examlpe

sudo -e /etc/bind/db.local

Set the ttl:

  $TTL 3600

and restart bind.

For additional information see:

How do I do a complete BIND9 DNS Server Configuration with a hostname?

and

https://help.ubuntu.com/10.04/serverguide/dns-configuration.html


How many initrd.img files should I have on my linux server?

The files you list appear newer than your running kernel.  I would guess newer kernel packages were installed but the server was not rebooted.  I suggest rebooting after patching to avoid possible issues.

I'd advise against manually deleting the files if you are unsure about them.  Apt has ways to automatically manage the kernel files and delete unneeded ones.

Generally, you can clean up older kernels using apt-get autoremove

Apt will keep the latest 2 kernels installed due to the generated config at /etc/apt/apt.conf.d/01autoremove-kernels

Sometimes kernel packages get marked as manual install and some files do not deleted.  This command resets the packages back to auto, which allows autoremove to remove the old packages (and delete the old files)

apt-mark auto $(apt-mark showmanual | grep -E -- "^linux-([[:alpha:]]+-)+[[:digit:].]+-[^-]+(|-.+)$")

More background

https://help.ubuntu.com/community/RemoveOldKernels
Why doesn't apt-get autoremove remove my old kernels?


How to change the background color of terminal emulator background?

Right click on terminal screen, then "Profiles" - "Profile preferences" - "color" - "background color".

Have fun :)

Edit:
If you want a picuture, go to "Profiles" - "Profile preferences" - "Background" - "Background image" :)


Run script on start-up before specific network card is initialized

I suggest start reading the post how-to-write-startup-script-for-systemd, than having a look at the man pages from which I got:

  systemd knows various kinds of dependencies, including positive and
         negative requirement dependencies (i.e.  Requires= and Conflicts=) as
         well as ordering dependencies (After= and Before=). NB: ordering and
         requirement dependencies are orthogonal. If only a requirement
         dependency exists between two units (e.g.  foo.service requires
         bar.service), but no ordering dependency (e.g.  foo.service after
         bar.service) and both are requested to start, they will be started in
         parallel.

From which I understand the loading of services can be ordered.


First, download the source and keep it in a folder where you will not move it.

Second, you need to create a symbolik link between  the nbconvert.py file, the css and js directories to your $PATH variable with the following command:

sudo ln -s /path_of_source/nbconvert.py /path_of_source/css/ /path_of_source/js/ /usr/bin/

Or

cd /path_of_source/
echo "export PATH=\$PATH:nbconvert.py:js:cdd" >> ~/.profile
reset

Now you will be available to execute the software from the terminal with nbconvert


Lubuntu as an official derivative of Ubuntu

At the spring 2011 Ubuntu Developer Summit, it was decided that Lubuntu was on track to become an official derivative with the release of 11.10. More information on the decision can be found in this  16 May 2011 email by Lubuntu developer Julien Lavergne.

As stated on their website, Lubuntu still aims to become a recognized derivative:

  The ultimate goal of the lubuntu
  project is to earn official
  endorsement from Canonical.


Can two networks be activated on the same physical connection in network-manager?

You can create an alias. Both of which are on the same subnet. You can then assign your services accordingly.

ifconfig eth0:0 10.0.0.3
ifconfig eth0:1 10.0.0.4


4 pin jack not detecting microphone on Ubuntu

Just a shot in the dark, I don't know your particular hardware and of course any number of things could be wrong, including but not limited to hardware problems, mechanical issues, configuration problems, bugs, driver issues, etc.  Very hard to troubleshoot from afar.

Again, just a shot in the dark, K1ndElk on Reddit said that for them it was simple a connection issue.  That one had to push one of the connections pretty hard.  The good news is that this confirms it should work on Linux, something that apparently the manufacturer does not test and thus does not guarantee to be the case for their hardware.  They are active in Reddit and supporting even their Linux customers, though.  Have you talked to them?  It's probably a good idea to send a message to K1ndElk as well to see if they can help you figure out where the issue is.

I assume your headset works fine on Bluetooth even in Ubuntu, right?


Unable to pair Bose QC35 headphones after following fixes (Ubuntu 20.04)

The QC35's work with my ubuntu 20.04 +- OK
I've not done anything special to my setup
I see two bluetooth headphones (they're called Think White Duke)

LE-Thin White Duke
Thin White Duke

only the Thin White Duke connects

I can't use the microphone and headphones of the QC35 at the same time for some reason - if I select the QC35 microphone, the headphones go to some kind of low-quality mono-output
If I use other microphone (internal laptop one) then the QC35 headphones work OK
In the sound setting I have this :

when I select as microphone the QC35 microphone then the headphones change -
still sound - but mono and low quality


Gtk.SelectionMode.MULTIPLE allows selection of only one row in Gtk.TreeView

I can't give a full answer, but wanted to share it. If asking a programming question, always include a minimal working example so others can quickly (ha, pun intended) run and test in your code. I will have to install Quickly, create a Quickly project and change code just to see what your question is about and try to fix it, which I won't.

That being said, here is a minimal working example which behaves correctly, so my guess is Quickly does some magic somewhere which overrides this behaviour.

from gi.repository import Gtk

class TestWindow(Gtk.Window):
    def __init__(self):
        Gtk.Window.__init__(self)
        self.resize(400, 400)
        self.connect("delete-event", Gtk.main_quit)

        ls = Gtk.ListStore(str)
        ls.append(["Testrow 1"])
        ls.append(["Testrow 2"])
        ls.append(["Testrow 3"])
        tv = Gtk.TreeView(ls)
        tr = Gtk.CellRendererText()
        col = Gtk.TreeViewColumn("Testcolumn", tr, text=0)
        tv.append_column(col)
        sel = tv.get_selection()
        sel.set_mode(Gtk.SelectionMode.MULTIPLE)

        self.add(tv)
        self.show_all()

if __name__ == "__main__":
    app = TestWindow()
    Gtk.main()

Note that you are using an incorrect treeselection mode in your question, the correct one is Gtk.SelectionMode.MULTIPLE.


Problem with Samba + NetBIOS. Can't ping Ubuntu from Windows

Ubuntu doesn't support looking up hosts by NetBIOS name using NSS. In other words, you can't do ping netbiosname except if you use nss_wins.

If you have a WINS server you can set up nss_wins and use that to resolve NetBIOS names.

Alternatively, you can use something like Avahi or DNS.


Firefox scrollbars don't reflect Widget theme selection

Firefox 47 uses gtk3. PCManFM, the default version supplied with Lubuntu, uses gtk2. The industrial theme covers only gtk2. See /usr/share/themes/Industrial. There's no gtk-3.0 folder in there.

If you want Firefox to be themed decently, find a gtk3 theme!

You can increase the width of the scrollbar area (in some themes) by playing with the theme's gtk-widgets.css. Look for something like: -GtkRange-slider-width: and change the value to something you like.

That same file may also have something like:

-GtkScrollbar-has-backward-stepper: false;
-GtkScrollbar-has-forward-stepper: false;

You can try changing those values to true (if the theme supports steppers (the up and down arrows at the top and bottom of the scrollbar)). Many themes seem to be dropping them.

After saving the file, close and restart Firefox.

(I don't use Firefox themes or extensions for scrollbars and so can't help there. Same with decorating the thumb. Sorry!)

And what you're seeing has nothing to do with Canonical's modifications, AFAIK.

+++++++++++++

To know whether an application uses gtk2 or gtk3, try:

ldd /usr/bin/app_name | grep gtk

This, of course, assumes that the executable is in /usr/bin. If you're not sure, first ascertain that with which app_name.

gtk2 apps will have libgtk-x11-2.0 in the response.
gtk3 apps will have libgtk-3 in the response.


tl;dr? Scroll to the end.

Monitoring for screen lock/unlock

Adapted from here, this monitors for screen lock/unlock:

#!/bin/bash

watch="type=signal,interface=org.gnome.ScreenSaver"
screen_locked_signal="boolean true"
screen_unlocked_signal="boolean false"

dbus-monitor --session "$watch" | ( \
    while read signal; do
        if [[ "$signal" =~ "$screen_locked_signal" ]]; then
            echo "Screen Locked"
        elif [[ "$signal" =~ "$screen_unlocked_signal" ]]; then
            echo "Screen Unlocked"
        fi
    done)

PulseAudio

You can find out which source and sink are currently being used as follows:

$ pactl info | grep -E 'Default (Source|Sink):'
Default Sink: alsa_output.usb-Logitech_Inc._Logitech_USB_Headset_H340-00.analog-stereo
Default Source: alsa_input.usb-Logitech_Inc._Logitech_USB_Headset_H340-00.analog-stereo

(This is my USB headset)

You can switch source and sink as follows:

$ pactl set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
$ pactl set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo

(Use analogue output and input)

You can get a complete list of sources and sinks with pactl list short sinks and pactl list short sources, but there are extra entries in there. It's probably best to switch using the UI tools and then use pactl info to discover the appropriate ones.

Final script

It results in a script that looks like this:

#!/bin/bash

# GNOME
watch="type=signal,interface=org.gnome.ScreenSaver"
screen_locked_signal="boolean true"
screen_unlocked_signal="boolean false"

# PulseAudio: use pactl
_get_default_sink() {
    pactl info | sed -n 's/^Default Sink: \(.*\)/\1/p'
}

_get_default_source() {
    pactl info | sed -n 's/^Default Source: \(.*\)/\1/p'
}

_set_default_sink() {
    pactl set-default-sink "$1"
}

_set_default_source() {
    pactl set-default-source "$1"
}

last_sink=$(_get_default_sink)
last_source=$(_get_default_source)
echo "sink is $last_sink; source is $last_source"

# Watch for screensaver D-Bus signals
dbus-monitor --session "$watch" | ( \
    while read signal; do
        if [[ "$signal" =~ "$screen_locked_signal" ]]; then
            # Screen locked: remember the current default sink and source
            last_sink=$(_get_default_sink)
            last_source=$(_get_default_source)
            echo "Screen Locked; sink was $last_sink; source was $last_source"
        elif [[ "$signal" =~ "$screen_unlocked_signal" ]]; then
            # Screen unlocked: restore the last default sink and source
            _set_default_sink "$last_sink"
            _set_default_source "$last_source"
            echo "Screen Unlocked; sink is $(_get_default_sink); source is $(_get_default_source)"
        fi
    done)

Automatically starting the script

To ensure that this script runs as soon as you log in, you can use gnome-session-properties and add a startup application (I called mine "Monitor Screensaver") pointing to the script. It'll create a ~/.config/autostart/monitor-screensaver.desktop file containing the following:

[Desktop Entry]
Type=Application
Exec=/home/roger/bin/monitor-screensaver
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_GB]=Monitor Screensaver
Name=Monitor Screensaver
Comment[en_GB]=
Comment=


Okay, well, as it turned out, following a hunch, all I needed to do was to start a file system check with the fsck utility; turns out, the system hadn't been unmounted properly for some reason, and was still in read-only mode. So, it saved me the pain of having to re-install the system (which I came pretty close to trying!) when that actually wasn't needed.

(Still, though, at least now, if Unicorn ever does get really, truly, badly effed up before I try Vivid, I have a backup CD ready to go.)

I do still have at least one other issue to work out, but Ubuntu is finally working again, and I'm grateful for that. So, thanks to everybody who offered their help-it was, and is, appreciated. =)


Select mirror during installation from live mode

Updated: includes more info from comments discussion:

It depends on whether ubiquity is using /etc/apt/sources.list for the install

Possible solution: manipulate /etc/apt/sources.list

During installation, you should be able to edit the /etc/apt/sources.list (as root) to redirect to your mirror.

deb ftp://ftp.iitb.ac.in/distributions/ubuntu/archives  trusty main restricted
deb-src ftp://ftp.iitb.ac.in/distributions/ubuntu/archives  trusty main restricted

More info here. Then, run an sudo apt-get update.

By redirecting the call to the mirror

It might be possible to redirect the hard-coded communication with the mirror. Options for that: /etc/hosts dns manipulation to direct to another server with same protocol and directory structure, or by using a local transparent proxy. In your case, assuming you can set up the http mirror on the same machine as your ftp mirror: add the following line to /etc/hosts

103.21.126.20 in.archive.ubuntu.com


Failed back up restore from Deja-dup backup

If Deja Dup gives errors, open Terminal and try

duplicity --gio file:///media/backup /tmp/restore

Be sure to use file:/// when on local media because Duplicity expects a URL.


How to install epylog on Ubuntu 20.04 LTS?

You can download packages for it from 18.04 LTS and install them manually:
cd ~/Downloads
wget http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/python-libxml2_2.9.4+dfsg1-6.1ubuntu1.3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/e/epylog/epylog_1.0.8-2_all.deb

sudo apt-get install ./python-libxml2_2.9.4+dfsg1-6.1ubuntu1.3_amd64.deb ./epylog_1.0.8-2_all.deb

This application is still using Python 2, which is now EOL. It would be really great if you report feature request (or bug) to its developer with request on porting to Python 3. On Ubuntu level I have reported this as bug 1901389.


Windows Dynamic Disk not reading in Ubuntu

"Dynamic Disks" are a Windows proprietary format that can not be used on other operating systems like Ubuntu.  You need to convert it back to a basic disk in Windows.


Cannot remove iTunes (installed with WINE) from Unity Applications lens

Take a look at the ~/.local/share/applications/wine folder (and subfolders). You'd need to delete the .desktop files belonging to the applications in question.


Keyboard Layout doesn't match the one selected

I am having the same issue with Ubuntu 13.10. However I am able to resolve the situation without having to log out and back in again. If you have the "Show current input source in the menu bar" checkbox selected in System Settings -> Keyboard -> Layout Settings (a.k.a "Text Entry" settings), then even though "English (UK)" will be selected in the drop down menu when you click the icon in the menu bar, if you deselect it (by clicking on the "English (UK)" entry in the drop down list) then it will give you back your UK layout, which is a little odd. You can then reselect it if you wish and it will still be the UK layout.

I know this isn't exactly a fix, but its a little less drastic than logging out and back in again.


First try: askubuntu > nvidia-drivers-mystery

and use @robblue2x's method.

Finishing with sudo apt-get install nvidia-346

What screen resolution are you using? eg. 1920x1080 (Full HD), 2560x1600, 4K, etc.

And what port/cable? eg. DisplayPort, DVI Dual-Link, etc.

You may need to remove your earlier effort (driver download, from Nvidia).

Also, do you even need a driver for 1920x1080?

Does the 'inbuilt' Nouveau driver not work?

See: nouveau > feature matrix and 'NV110' (right most) column.


I installed Ubuntu updates and wifi doesnt work anymore

Try this in the terminal

sudo /etc/init.d/networking restart

this shuld solve the problem

if the above is not working this will fix the problem for sure

sudo service network-manager restart

please let me know if it helped and what so i can edit the post thank you


It is not in the repository, you can get it at this PPA

sudo add-apt-repository ppa:mrazavi/openvas && sudo apt-get update
sudo apt-get install greenbone-security-assistant

Here is a list of other packages supplied by this PPA

greenbone-security-assistant9
openvas-cli
openvas-libraries
openvas-manager
openvas-scanner
openvas9-cli
openvas9-libraries
openvas9-manager
openvas9-scanner
rats


If you are using Virtualbox, by default it will emulate the network using NAT.  This is the simplest way to provide network access to the virtual network adapter inside the virtual machine, but it has the side effect that you can't actually connect to the services on the virtual machine from the host system.

You would need to change the mode of network emulation in the virtual machine from NAT to "bridged".

Note that this is slightly more complex from your host operating system's point of view as it has to get low level access to your host's network adapter at the packet level.  This involves installing a special driver, particularly on Windows hosts.  Essentially your network adapter on the host will need to start behaving in a way like multiple network adapters.  This can sometimes (but not in normal situations) conflict with your outer network.

Instead of "bridged", you could also use "host-only networking" which avoids all the above potential issues but then your guest OS won't have access to the wider network (eg the Internet).

If you're using something other than Virtualbox, the issues will probably be the same, but the way of fixing it may not be.


14.04 can't get Epson ME-103 scanner to work

If you want to connect over wi-fi, you might try the instructions here.

Specifically, after installing the Epson drivers, you should edit /etc/sane.d/epkowa.conf to include network devices (there are instructions in the file). Then you should be sure to comment out the conflicting "epson" and "epson2" lines in /etc/sane.d/dll.conf


What you want to do should be possible.  I suggest that you first get the headless backup file server running as you wish with out the Myth functions and then add the MythTV capability through Mythbuntu ( http://www.mythbuntu.org/existing-ubuntu ).


Was going to comment, but don't have enough reputation.
The libpng warning: is likely a red herring, I don't think that would cause sonic-pi to not load.
If you ran it from the terminal, sonic-pi should output more detailed logs in $HOME/.sonic-pi/log. For example, tail $HOME/.sonic-pi/log/server-errors.log for me shows:
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

I haven't tried it, but you could be running into similar issues, and I've seen https://github.com/sonic-pi-net/sonic-pi/issues/2341#issuecomment-628016039 suggested as a fix.


Chrome Apps No Longer Opening in Their Own Window

Go to chrome://apps, right-click on the app that you want to open in its own window, and check the "open as window" option.


VmWare player - how to expand disk drive

Changing parameters in your hypervisor (virtualization program) won't be enough.

In the real physical world, you can't just come up with extra storage on an operating device out of nowhere.
The system needs to format it and index your new added hardware (create a file system).
This step is always done when you install a new OS.
And what you are trying to do is to create or expand the partition within the OS since it is already installed.

To do so, you'll need to use dedicated programs ('Partition Managers') such as GParted. If you have an active internet connection from your guest machine, you can simply use apt-get to install GParted.


How to stop typing break from interrupting VLC?

Take a look at Workrave. It's infinitely more customizable than Ubuntu's typing break and should play nicely with VLC. You can install it using Ubuntu Software Center.
But also look into Shungun's suggestion and try the Inhibit Applet. You'll probably love it anyway if you're into watching movies.


Two concurent Eclipse versions on my laptop, wrong one launched from the shortcut

You have the eclipse package installed, which is usually a few versions behind the most recent Eclipse release provided on their website.

However, it's possible that if you remove the package you will no loger "need" Java installed, which will cause it to auto uninstall that packege. So you should remove the eclipse package and then manually install whatever JDK you are using, like this:

 sudo apt-get remove eclipse*
 sudo apt-get install openjdk-8-jdk

You will have to drag the Eclipse launcher for Neon from the directory to Unity. Also, for some reason this causes the icon to no longer match the Eclipse icon, and I don't have an easy solution for that.


I have two methods in place with my Dropbox.

The first is using CryptKeeper . This creates and mounts enc_fs encrypted directories, independent of the Ubuntu implementation of Private.

Instructions by Scaine on using Cryptkeeper are here: How can I do individual file encryption on Dropbox?

The second is symlinking selected directories from ~/.Private into the Dropbox directory. This automatically uploads (and syncs) the encrypted versions of files normally situated in ~/Private. This assumes you have set up the encrypted Private directory! It can also be initially tricky to find the correct one to link.

While neither of these is strictly encryption of a single file, as both use a container of sorts, both methods scale easily as only changed files are uploaded.


Is it possible to manually start Juju hooks?

Yes using actions https://jujucharms.com/docs/1.20/actions

Actions are exposed as of Juju 1.23. In Juju 1.22, they are only enabled in the CLI when JUJU_DEV_FEATURE_FLAG=actions is set.

If you don't need the hooks to execute in a 'hook environment' then you can just execute them via ssh as a normal script.


WARNING: The use of Chrubuntu is deprecated, and is dangerous to install on newer Chromebook devices.

  Many of these links in this answer are also out of date.

  You may continue to use this tutorial, but you use this tutorial at your own risk, with no guarantee of it working functionally.

It appears that you can't fully remove ChromeOS from a chromebook (well, you can but it's quite the struggle) but you can make it dual boot and make it boot into ubuntu by default.
I'll show you the last method.

First make a backup of all you local files because everything stored locally will be deleted by entering developer mode (guides for entering developer mode for specific models besides the one covered here can be found here.)
Press and hold the Esc and Refresh keys together, then press the Power button (while still holding the other two keys). This will reboot your Chromebook into Recovery Mode.
When you get the yellow screen with the exclamation mark hit ctrl + d (This will bring up a prompt asking if you want to turn on Developer Mode.) Press enter (this will take about 15 to 20 min. You'll get a screen with a red exclamation mark but leave it be until it reboots into ChromeOS).
Turn it on but do not login. Make sure you have a WiFi or Ethernet connection configured at this point. 3G/4G is not recommended. Press CTRL+ALT+=> (=> is the forward arrow where the F2 key would be on a PC).
Do not use the normal CTRL+ALT+T  method to get a shell. Use the CTRL+ALT+=>  method while no one is logged in.
Login as user chronos, no password is needed.
As the chronos user and without having changed directories or run other commands, run:

 curl -L -O http://googledrive.com/host/0B0YvUuHHn3MndlNDbXhPRlB2eFE/chrubuntu-install.txt; sudo bash s9ryd
(There is a new script with a new link. If you still want to use the old version you'll have to replace the new link with the old link. Use this script for old devices like Acer C7 and Samsung 550.)
curl -L -O https://googledrive.com/host/0B0YvUuHHn3MndlNDbXhPRlB2eFE/chrubuntu-seabios-install.txt; sudo bash 9sgchs

Make sure you have the command exactly right. The -O and -L after curl are both capital letters.  If you get a "not found" error, make sure you have Internet connectivity and you're typing the command correctly.

You'll be prompted with some information about your Chromebook.  You may need to run an additional command to install a developer BIOS on your Chromebook.  (This is fixed and now integrated in the script that the command will download. You can however still use the old link so I left it there with a strike through line). Press Enter to continue.
The Chrome OS stateful partition where your data and settings are stored is just short of 11gb by default, the script shrinks the stateful partition to make room for ChrUbuntu. You can choose to give ChrUbuntu from 5gb up to 10gb in 1gb increments (Note: If you've installed a larger SSD in your Chrome device, your max number and recommended max will be larger). I recommend not going higher than 9 as 10 leaves Chrome OS with very little free space (less than 1gb).
Once you've entered a number, your hard drive will be repartitioned. After awhile it will reboot and re-initialize the stateful partition. This process takes 2-15 minutes and then the Chromebook reboots again and shows you the Welcome screen you got when you first turned on your Chromebook out of the cardboard box.
Go through the Chrome OS setup process again until you get to the Google login page. You'll need to have a WiFi or Ethernet connection again at this point. Now follow steps 6 through 8 again. This time the script will see that you've already made room for Ubuntu and start downloading ChrUbuntu.

Pro Tip: Here's where you can install other versions of Ubuntu! Just specify the preferred Ubuntu flavor and version at the end of the command:

curl -L -O https://googledrive.com/host/0B0YvUuHHn3MndlNDbXhPRlB2eFE/chrubuntu-seabios-install.txt; sudo bash 9sgchs [flavor] -u [version] -a [argitecture] -t [target-disk]

You can display available "flavors" using the following command:

curl -L -O https://googledrive.com/host/0B0YvUuHHn3MndlNDbXhPRlB2eFE/chrubuntu-seabios-install.txt; sudo bash 9sgchs -h

For example:

curl -L -O https://googledrive.com/host/0B0YvUuHHn3MndlNDbXhPRlB2eFE/chrubuntu-seabios-install.txt; sudo bash 9sgchs xubuntu-desktop -u lts

This will install Xubuntu and the latest LTS release (12.04.2 as of writing) rather than a 13.04 Unity desktop. Some possible flavor alternatives to Unity are:

default  (ubuntu-desktop on x86, xubuntu-desktop on arm)
kubuntu-desktop
lubuntu-desktop
xubuntu-desktop
edubuntu-desktop
ubuntu-standard    (no GUI installed)

Some possible versions are:

lts -- latest LTS Ubuntu release, 12.04.2 as of this writing
latest -- latest official release, 13.04 as of this writing
dev -- unstable development Ubuntu release, daily alpha build of Saucy Salamander 13.10   as of this writing <-- Experts only! If this breaks, don't be surprised
12.10 -- Ubuntu 12.10 release

the possible architectures (-a option) are:

amd64  -- default
i386

[target-disk] is the last argument (specify "default" and "latest" for the first two arguments if you just want to install the defaults to an external drive). An example installation to SD Card might be:

curl -L -O https://googledrive.com/host/0B0YvUuHHn3MndlNDbXhPRlB2eFE/chrubuntu-seabios-install.txt; sudo bash 9sgchs default latest /dev/mmcblk1

11) During the installation (within the first 5-15 minutes). You'll see a few prompts to select your encoding, locale and language. For most people, the defaults should be fine, just press Enter but change them if you'd like. Later on, you'll be prompted to decide where GRUB should be installed. YOU MUST CHECK THE BOX NEXT TO /dev/sda in order for boot to work!

12) After all of the Ubuntu files have been downloaded, installed and configured, the script will make a few more updates and then prompt you to reboot.

13) At the developer mode screen press CTRL+L. You'll see ChrUbuntu start up! The username is "user" and the password is "user". (You can also press CTRL+D to boot into chrome os.)

14)(This might not be necessary anymore but I'll leave this here for people that still need it) Right now you're in ChrUbuntu but if you reboot, you'll be back in Chrome OS. This is a safety feature, if ChrUbuntu won't boot, you want to be able to get back into Chrome OS to fix it. To make ChrUbuntu the default, run:

 sudo cgpt add -i 6 -P 5 -S 1 /dev/sda

On the ARM Chromebook, replace /dev/sda with /dev/mmcblk0. The password is "user". It should be possible to run this from ChrUbuntu or Chrome OS.

To make Chrome OS the default again, either turn off Developer Mode, or run:

sudo cgpt add -i 6 -P 0 -S 1 /dev/sda

For reference check chrubuntu

Also note that the trackpad is only supported with 13.10 and higher. For now stick with 13.10 or use a USB mouse.


Have bash script run against a live file - Is it possible?

Here's a simple proof-of-concept:

In myscript.sh:

#!/bin/bash

while read -r line; do
  echo "syslog says: $line"
done

Then in a terminal:

$ tail -n 0 -F /var/log/syslog | ./myscript.sh

(note that I'm using -n 0 because I don't want to process any previous log content; if you want to process it all then change that to -n +1 to start the tail from the first line). I'm also using -F instead of -f so that tail will retry if the original file becomes inaccessible - for example as a result of being rotated out.

In a different terminal

$ logger "logger says hello"

You should immediately see in the first terminal something like

syslog says: Dec 11 13:48:54 T61p steeldriver: logger says hello

If it doesn't work, perhaps it's because whatever is writing to the logfile is doing so in a buffered manner, or you're processing it in a buffered manner within your script (grep is sometimes the culprit: it has a --line-buffered option that may be useful in that case).


How do I stop banshee remembering what's been played?

Take a look and see where playback or smart mode is in preferences and change it or switch off smart-mode. Or check playback repeat or shuffle is off.


error "permission denied" in VPS servers

Copying files tends to copy permissions, which includes the UID. You will need to reset the UID:

sudo chown -R youruser:youruser /path/to/folder

So, if you want to make /home/bob owned by bob on your second VPS, run:

sudo chown -R bob:bob /home/bob

I would recommend you read these two excellent pages from the Arch Wiki:

Users and Groups
File Permissions and Attributes


What is the difference between mono and mono develop?

mono

is the runtime that executes your interpreted code.
monodevelop

is an IDE (Intergrated Development Enviroment) it helps you write, evaluate and debug code written in VB, C#, etc. that eventually gets executed by the mono runtime.

While you need mono, you don't need monodevelop to write and execute C# applications. However, it is quite a nice IDE to write C# and it takes some of the labour out of debugging.


Looking for an alternative to Outrec for 12.10

You can use the standard Ubuntu gnome-sound-recorder or Audacity to do that. You just have to tweak PulseAudio to fetch the sound directly from the soundcard.

Here is how to (in German):
http://wiki.ubuntuusers.de/PulseAudio#Audiostream-aufnehmen


Not entering at this discussion, your basic question is:

  Is this possible by one simple command or do I need to reboot my system with the USB I created?

You must reboot your system with USB you created.There's some simple commands to do it, but as you "installed wrong files", we could imagine may some of them be critical files, so these line-commands may not do a good work for you.

To save time and be successful, just reboot USB and do a fresh install.


Mute toggles on and off continuiously and launches Rhythmbox over and over

It sounds to me like your internal keyboard got wet.  I've found a replacement under $15.

Likely cause:  Given the season, bringing your laptop in from the cold can cause enough condensation to form on electronics to cause all sorts of misbehavior and even permanent damage.  If that's the case it is impossible to tell if a new keyboard will fix it, or if it could just dry out and work properly given time.  If you think the problem could be condensation you should shut the laptop down, remove all power, including its battery, and stand the lap on edge, lid open, preferably near a heating vent or at least a desk fan to help dry it out.

(Update below follows comment by OP)
Next step in diagnostics:
Obviously you seem to think the problem is software, not hardware.  An easy way to find out is to boot the computer to ubuntu on cd/dvd or USB flash media.  If the problem continues then the odds are you are seeing a hardware problem.  If the problem does not continue then you would appear to be correct that the problem is somehow related to Ubuntu, component drivers, or some misbehaving and unwanted update.  Although I've seen incompatibilities between certain brands of computers and Ubuntu, it was never a brand like HP, Dell or Lenovo.  It was always Toshiba.  I like toshiba, but I must assume they are not sharing their firmware or whatever with Linux developers.


How to set up bluetooth in ubuntu 18.04?

I've struggled for years with bluetooth. The bluetooth stack is very complex and has issues but it gets better year by year.

Here's what I have done and it works great

get yourself a Plugable usb bluetooth adapter (Amazon)
hot plug it, no need to reboot
find and install blueman from the repos (bluez never has worked well for me)
power up your headphones, ready to pair
open blueman, select devices, find your headphones in the list
select setup, choose how you want to connect and click next
after a couple seconds, it should pair
open sound, scroll to find and select your headphones from the list

Note: You'll have to pair again and select in sound after every boot.


As you correctly found matching on macaddress alone is not enough, if vlans are configured (and take the same MAC address).
Unfortunately, netplan does not support full RegEx matching at this time, but only shell-style glob matching. Therefore, the "|" operator in your name match does not work as intended and the interfaces cannot be found. There is currently an open pull request to improve this situation for driver and name matching in the future: https://github.com/canonical/netplan/pull/202
For now you would probably need to split up your match into two, to achieve the intended effect:
ethernets:
  id0:
    match:
      macaddress: b8:a3:86:70:cc:e6
      name: dmz*
    set-name: dmz0
  id1:
    match:
      macaddress: b8:a3:86:70:cc:e6
      name: en*
    set-name: dmz0


/var/log/messages is not used in Ubuntu (it got removed around Natty). We use /var/log/syslog for that. Everything logged to 'messages' back then was also logged into 'syslog' so we got rid of one of them.

I do have a syslog and a kern.log in /var/log/. I would expect the last one to hold anything kernel related.

There is a better method: the journald daemon has all what has been logged.

You can list kernel messages with:

$ journalctl -f _TRANSPORT=kernel

That should show you anything related to the kernel and you can grep the results if need be. But there is a lot of options to refine your results (see the link or journalctl --help).

Other examples (from the link):

Without arguments, all collected logs are shown unfiltered:

journalctl

With one match specified, all entries with a field matching the expression are shown:

journalctl _SYSTEMD_UNIT=avahi-daemon.service

If two different fields are matched, only entries matching both expressions at the same time are shown:

journalctl _SYSTEMD_UNIT=avahi-daemon.service _PID=28097

If two matches refer to the same field, all entries matching either expression are shown:

journalctl _SYSTEMD_UNIT=avahi-daemon.service _SYSTEMD_UNIT=dbus.service

If the separator "+" is used, two expressions may be combined in a logical OR. The following will show all messages from the Avahi service process with the PID 28097 plus all messages from the D-Bus service (from any of its processes):

 journalctl _SYSTEMD_UNIT=avahi-daemon.service _PID=28097 + _SYSTEMD_UNIT=dbus.service

Show all logs generated by the D-Bus executable:

journalctl /usr/bin/dbus-daemon

Show all kernel logs from previous boot:

journalctl -k -b -1

Show a live log display from a system service apache.service:

journalctl -f -u apache


Please use for these the debconf-set-selections   more here man pages of debconf-set-selections

Also you can have an example for the mysql-server installation install mysql-server without a password prompt


CPU 100% with kswapd0 process, although no swap is needed

In case someone faces the same issues - the reason was malware:  Multios.Coinminer.Miner.
kswapd0 was a binary file located in /root/.configrc/a/kswapd0.
What you need to do is:

Clear crontab jobs referring to /root/.configrc
Clear ssh keys
Delete /root/.configrc


Recovering files/not booting on Windows 7 after installing Ubuntu

If you're able see the Windows files from Ubuntu file manager, backup all the files that are important for you. Then re install Windows.


'Make' error - glib.h no such file or directory

It appears that gcc can't find the glib.h which is a part of the libglib2.0-dev package. Make sure you've installed libgtk2.0-0-dev package (which depends on libglib2.0-dev) and try again.


Can't install haskell platform because of libgl1-mesa

To answer this question, a lot had to be clarified. Read here.

The solution is, use aptitude to downgrade the package libgl1-mesa-glx. We had no luck with sudo apt-get install libgl1-mesa-glx=10.1.3-0ubuntu0.4.

sudo aptitude install libgl1-mesa-glx=10.1.3-0ubuntu0.4

After that

sudo apt-get install libglapi-mesa
sudo apt-get install libgl1-mesa-glx
sudo apt-get install haskell-platform

And after this brutal intervention you have to reinstall your desktop environment, Xorg and Nvidia drivers,


Is it possible to have Nautilus Scripts menu items without icons?

As an interim solution, i.e. to avoid identical script icons (in the absence of a way of disabling display of icons) different and more relevant icons can be set for Nautilus Scripts using this command pattern:

gvfs-set-attribute -t string "<Your-Nautilus-Script-File-Path>" metadata::custom-icon file:///usr/share/icons/<Your-Coice-of-Individual-Icon>

Note: Another trick to get rid of those icons can be assigning non-existent icons, upon which no icon is displayed in the Scripts menu!


Missing Operating System - Ubuntu on USB

We can only hypothesize what happened in between the point the USB worked flawlessly and the problem you have with it now. You could try making another bootable USB, perhaps with a different version of Ubuntu. Assuming there haven't been any hardware changes or bios/grub alterations, I can't find much other advice to give without more information.


grub mode and no other os? even ubuntu 17.10 is not complete installed?

If you have live OS on usb try fallowing:

Boot PC with live OS

Connect to internet

Mount your partition where is /boot/grub2/grub.cfg

Install Grub-Customizer

 sudo add-apt-repository ppa:danielrichter2007/grub-customizer
 sudo apt-get update
 sudo apt-get install grub-customizer

Start Grub-Customizer

 sudo grub-customizer

You grub/partitions should be loaded. Click save. Close grub-customizer and reload.


Even though Ubuntu and OSX have similar bases (Linux & UNIX), emulation is surprisingly difficult; OSX applications run in a different display server with different display toolkits.  There was large motivation to run Windows applications on Linux, the same is not true of OSX, hence there isn't one (that's working and widespread).

You can check out Darling, which is an in-progress attempt at what you mention.  It's not usable, but it's cool to see how it's going.


Wine crashes when trying to open an app through PlayOnLinux

it doesn't seem to work https://appdb.winehq.org/objectManager.php?sClass=application&iId=4594
But try with the stable version of wine (version 3.0.1)


What to do about Ubuntu only recognizing the monitor I have set as "primary" in the bios?

Sweet success. I removed the Radeon HD 7570 PCI-express and the ATI Radeon 7000 PCI cards. What I did use is the VGA and HDMI ports of the single NVIDIA GeForce 8400GS (which is recognized as PCI Bridge by the bios).

note: This does not really answer my question. But, I just want to say that I am no longer working on this problem.


Choosing a motherboard for a ubuntu build

What I'm seeing on the GA-H170M-HD3 DDR3 description is:

"Due to different Linux support condition provided by chipset vendors, please download Linux driver from chipset vendors' website or 3rd party website."

which doesn't means that linux is not supported. It should be fine - It will depends on the general configuration of the machine... :)

As a general rule, if the drivers are free you can check on the Xorg website for the list of all supported cards, otherwise you can check directly on the manufacturers' sites.

Ubuntu has also a list of certified component that you can check on the Ubuntu website.

Another good list is displayed on Linux-driver.

Hope this help!


Changing desktop background does not work as root

I'm not sure why you want to run it as root, but if assume that the gsettings configuration file is not the same for root user and your current user. try to run :

sudo gsettings get org.gnome.desktop.background picture-uri

before and after running your script as root, to see if the root-backgroud have been actually changed.

Also, you might want to take a look at this post.

Hope this helps


xbindkeys works only on verbose mode, ubuntu 20.04

It just needed to run xbinkeys -p after downloading and after every update


Just had the same problem after I installed the latest Nvidia driver. You have to go back and use the default driver.

Go to System Settings → Software Sources → Additional Drivers and select Nouveau display.
Then restart by pressing the power button on the computer till it restarts.

It will then boot up looking normal again.


Behringer UMC404 Instability (Drivers) under Ubuntu/Ardour & Mixbus 16.04 and 17.10

After this problem, I've found the 'LinuxMusicians' forum. and there, I was able to understand what was going on.

They told me to install the script "realtimeconfigquickscan".
It's a very nice script that you install which displays what is preventing your system to work properly with professional audio (my case).
From that time on, I've been working on perfecting its use. Here's how to do it:

git clone git://github.com/raboof/realtimeconfigquickscan.git
cd realtimeconfigquickscan
perl ./realTimeConfigQuickScan.pl

The site from where I've got the info is LinuxAudio.
I strongly advise to read the whole contents of the page.

We are now working to make a .deb file that will do all of these instructions at once.
We have made tests and it's 80% working properly without crashing or anything.

Pretty soon we'll make it available for everyone and leave the open code to people for improvements.


stutter every 500 ms using nvidia-driver

Maybe try another cable or another display if you see repeated messages in your /var/log/Xorg.0.log (see below).
If that doesn't help, also check this different but related issue I found in my own searches: Ubuntu 18.04 video stutters every second regularly with nvidia GPU
I was having the same problem with Kubuntu on an RTX2080 on a Skylake i7 and it seemed to be due to a flaky HDMI connection to one of my displays.  The /var/log/Xorg.0.log file showed lots of connection messages for that display.  I fixed it by unplugging and reconnecting the HDMI cable to that display.
I'm not really sure what the root cause is since this is something new.  Random uninformed guess: maybe the drivers are more picky about HDMI presence detection or EDID I2C signal quality or something.
Example Xorg.0.log messages:
[   220.145] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): connected
[   220.145] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): Internal TMDS
[   220.145] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): 600.0 MHz maximum pixel clock
[   220.145] (--) NVIDIA(GPU-0):
[   220.718] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): connected
[   220.718] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): Internal TMDS
[   220.718] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): 600.0 MHz maximum pixel clock
[   220.718] (--) NVIDIA(GPU-0):
[   220.776] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): connected
[   220.776] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): Internal TMDS
[   220.776] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): 600.0 MHz maximum pixel clock
[   220.776] (--) NVIDIA(GPU-0):
[   221.381] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): connected
[   221.381] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): Internal TMDS
[   221.381] (--) NVIDIA(GPU-0): [Display brand name] (DFP-2): 600.0 MHz maximum pixel clock
[   221.381] (--) NVIDIA(GPU-0):


Trying to update but not enough space on boot (answer here)

I found my answer here.
Not enough free disk space when upgrading

It told me how to delete multiple old kernels at once which after some effort and thought, this isn't my thing, cleaned up my boot partition.

I'm still a little nervous that this might not boot after I shut down but I'm taking that chance and leaving this here in case I don't make it back.

Well it worked. The link above provides the code and info required to eliminate the old kernels that are clogging up any boot partition.


Since upgrading to ermine, getting an error on login

I fixed this by installing Gnome tweaks and disabling the "Launch system monitor" and "System-monitor" options on the Extensions tab


How can I get Gmail notification in my indicator applet (without leaving Evolution open)?

Gmail Notifier is probably the best option for what you are trying to accomplish.


Will Ubuntu Edge be available to everyone after the indiegogo campaign?

It says in the campaign under "About our project":

  The Ubuntu Edge is an exclusive production run, available only through
  Indiegogo. All of the funding we receive goes directly towards
  producing the device for expected delivery in May 2014. The only
  pockets getting filled by this campaign will be yours when the handset
  arrives.

Main statement imho: "exclusive production run, available only through Indiegogo", so the answer is: No, it will probably not.


I cannot set my system back to English from Chinese Language

First of all, to be ensure that Chinese language packs are removed, give

sudo apt-get remove language-pack-gnome-nan*
sudo apt-get remove language-pack-gnome-zh*
sudo apt-get autoremove

commands. If you reset /etc/default/locale file as described in here, issue

localedef --list-archive

command. If it generates an output like

en_US.utf8
zh_CN.utf8
zh_SG.utf8

this, run

sudo localedef --delete-from-archive zh_CN.utf8
sudo localedef --delete-from-archive zh_SG.utf8
sudo locale-gen

commands. After these commands you still see Chinese, write

cat ~/.pam_environment

command. If you see anything related to Chinese like

LANGUAGE=en_US:zh_CN:en

this, just delete "zh_CN" from the file by using Gedit. Then give the final command

sudo locale-gen

I hope this will help to solve your problem.


Yes, you can do it. If you want to know how to use UUI, then follow these steps:

Select the operating system:
You can select almost any Linux distribution here, you can even select antivirus tools and Windows installers (Windows Vista to Windows 10)
Select the image of the distribution or operating system or antivirus tool you choosed. UUI also offers the original website's link in case you don't have the ISO image.
Select the device you want to install it on. (Be careful, you're better using a USB, not your harddrive!)
Let UUI do the job. After it says you're done, you can reboot and boot to your USB.

Here's a image of the latest UUI version:


Why does nothing happen when I click "Shutdown" from the "shutdown..." dialog?

you can try experimenting with different kernel options.
try one at a time and see if it has any effect

like for example:

acpi = force or
acpi = off

to try one out , when grub(with the selection screen of ubuntu-linux kernels,  pops up after you have booted your computer,

press the "e" button to edit your current configuration.
to the line that has the words  single quiet, add one of the proposed otions above.

this setting is not permanent over reboot so there is no risk of wrecking anything.
if this works, and  you want to make it permanent its time for a follow up question :)


Oracle has removed JavaFX from the JDK with Version 11.

As far as I know, the latest Open Java FX Version in Ubuntu is 11. So if you want to work with version 12, you'll have to install it manually. That should be no problem though. Check out the official tutorial:

https://openjfx.io/openjfx-docs/#install-javafx

Otherwise, if you are on at least Ubuntu 18.04, you should be able to install OpenJDK 11 and Open JFX 11 with your package manager (might have to enable the Universe repository).


Lenovo g5030 not having any hardware switch for wifi or bluetooth after installing ubuntu 14.04

try removing the ideapad_laptop module

for one time test:

sudo rmmod ideapad_laptop

for working after reboot:

echo "blacklist ideapad_laptop" | sudo tee -a /etc/modprobe.d/blacklist-ideapad.conf

I had the same issue, and solved for me.
(The solution can also be found here:Wifi Not Working On Ubuntu 14.04 Lenovo G 50-30 )


I would like to move windows with ctrl+alt+numpad like before on ubuntu 18.04

You can do this with the Gnome Extension Put Windows.

Press the left Win key and on the Numberpad 7/9/1/3 to place the active window in the upper left/upper right/lower left and lower right respectively.

You can install Gnome Extensions by following the instructions in this reference: https://linuxconfig.org/how-to-install-gnome-shell-extensions-on-ubuntu-18-04-bionic-beaver-linux


Jaybird Bluebuds x - Bluetooth does not work

veon@veon-XPS-15-9550:~$ lsusb; hciconfig -a; rfkill list all
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0a5c:6410 Broadcom Corp.
Bus 001 Device 003: ID 1bcf:2b95 Sunplus Innovation Technology Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
hci0:   Type: BR/EDR  Bus: USB
    BD Address: 44:1C:A8:E4:49:78  ACL MTU: 1021:8  SCO MTU: 64:1
    UP RUNNING PSCAN ISCAN
    RX bytes:13270 acl:0 sco:0 events:935 errors:0
    TX bytes:5769 acl:0 sco:0 commands:640 errors:0
    Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
    Link policy: RSWITCH SNIFF
    Link mode: SLAVE ACCEPT
    Name: 'veon-XPS-15-9550'
    Class: 0x0c010c
    Service Classes: Rendering, Capturing
    Device Class: Computer, Laptop
    HCI Version: 4.1 (0x7)  Revision: 0x1000
    LMP Version: 4.1 (0x7)  Subversion: 0x2105
    Manufacturer: Broadcom Corporation (15)

10: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
11: phy6: Wireless LAN
    Soft blocked: no
    Hard blocked: no


How do I replace OpenOffice 3.2.0 with OpenOffice 3.3.0?

Have you tried removing Openoffice prior to the new install?

You can do this via synaptic and/or the next command should work:

sudo apt-get remove openoffice

You will be asked to enter your password, after which the application will be removed, then try to install the new version as you wish.


Installed package curl and got a postfix error!? How do I fix postfix now?

It turns out that I was able to ignore the error. Apparently nothing was broken.


For the fan issue, I had to use kernel 4.8-rc1. Install from http://kernel.ubuntu.com/~kernel-ppa/mainline/

There were stability issues (machine freeze) as well with XOrg. I had to  purge/blacklist the nouveau drivers and use nvidia drivers. I'm using nvidia-367 from the graphics-drivers ppa. It seems stable now, except for an XOrg crash that makes me login twice. I haven't looked into this yet.


Dual-boot Ubuntu 12.10 on UEFI along Windows 8 (GRUB - error: can't find command drivemap)

I found a temporary solution.

Add a custom entry to GRUB bootmenu

Append the code below to /etc/grub.d/40_custom.

menuentry "Windows 8" {
    insmod part_gpt
    insmod chain
    set root='(hd0,gpt1)'
    chainloader /EFI/microsoft/BOOT/bootmgfw.efi
}

  You can use Ctrl+Alt+T to open a terminal and run sudo nano /etc/grub.d/40_custom, then copy and paste the code. Finally then press Ctrl+O to save and Ctrl+X to leave.

Heads up: hd0,gpt1 here is the ID of my EFI System Partition (ESP). If your ESP is not the first partition on your first harddrive during boot, then yours is different! E.g. hd1,gpt2 for the second partition on the second drive.

Replace part_gpt with part_msdos if the drive uses MBR and legacy partitioning and also change hd0,gpt1 to hd0,msdos1 respectively.

Apply changes to GRUB

Simply run the following command, which should generate a new GRUB configuration, including the new custom entry:

sudo update-grub

Now reboot, you should be able to boot Windows 8 now. If not, and Windows complains about corrupted BCD configuration, then continue on superuser: How can I repair the Windows 8 EFI Bootloader?

Warning: On some occasions, if you boot Windows 8, GRUB will be replaced by Windows Boot Manager as default boot manager.


Will my bluetooth keyboard work with Ubuntu on Nexus 7?

Currently, bluetooth is not yet supported, although it is currently being worked on.  You may see your devices listed in the bluetooth applet, but you may be inable to connect to them.  There have been some reports of people being able to connect, but this has not been reproduced.

You can follow the progress of implementing bluetooth on the Nexus 7 here: https://bugs.launchpad.net/ubuntu-nexus7/+bug/1070770

For now, we suggest using a keyboard and mouse via an OTG cable if you plan on doing a lot of typing on the device.


Should Ubuntu work with Dell Dimension 8200?

You can try this trick. Insert the Ubuntu CD and start your computer as usual, and then, when you see the Ubuntu logo, press arrow up and down and it should appear a menu asking to try or install Ubuntu. Choose to try it to verify if everything works. If this menu doesn't appear, maybe your CD is broken or there are some problem in starting the Ubuntu live Cd.


lightdm/unity-greeter wallpaper will not set

I found a solution.  Though it displays an error message, the lightdm background does in fact change to whatever new background image you set.

Open a terminal and get root

sudo -i

(Type sudo password)

Allow the user lightdm to create a connection to the X server

xhost +SI:localuser:lightdm

Switch user to lightdm.  I had to use sudo to do this, other guides do not do so.

sudo su lightdm -s /bin/bash

Make sure you have turned off the option to dynamically change lightdm's background to match the user's desktop background.

gsettings set com.canonical.unity-greeter draw-user-backgrounds 'false'

Finally, set your desired lightdm background.

gsettings set com.canonical.unity-greeter background '/path/to/your/background.png'

This returns an error about dconf, ignore it. The new lightdm background should be present when you log out.  To double check, you can run

exit

twice, once to get out of lightdm and once to get out of root.  Then run

gsettings get com.canonical.unity-greeter background

Which should return the path of the image you chose.  Similarly, running

dconf-editor

Gets you to a nice GUI.  Choosing the drop-down for com, then canonical, then unity-greeter lets you check the path of lightdm's background image, and should allow you to edit it as well but I was never able to make a valid change from there.

Hope this helps.

EDIT: running

gsettings get com.canonical.unity-greeter background

after logging out does NOT return the new image path, but when lightdm is next used, the correct new image is set.  I know there's a way to run lightdm in test mode, which may be a more accurate way to test if the new background is set. I did not test that method, as the above method I used to change the background image worked for me.


How can I view history in terminal for specific date?

You can set the history format to include the date using the following:

HISTTIMEFORMAT="%d/%m/%y %T "

Then filter for a specific date using grep:

history | grep "31/03"

  More info:

  Note From @muru and @Kamil- HISTTIMEFORMAT should already have been set during this period, or bash will just use today's date
  Bash Man - HISTTIMEFORMAT
  nixCraft - Bash History - Display Date and Time


I don't know, but perhaps the software library libimobiledevice needs to get updated for the recently released iOS 5.

See the bug report on Launchpad:
https://bugs.launchpad.net/ubuntu/+source/libimobiledevice/+bug/795475

There seems to be a patch for this:
https://code.launchpad.net/~om26er/ubuntu/maverick/libimobiledevice/fix-iOS5-support

See:
http://www.libimobiledevice.org/ and https://en.wikipedia.org/wiki/Comparison_of_iPod_managers


download this Realtek RTL8723BE PCIe Wireless driver (rock.new_btcoex) from github rock.new_btcoex
install

cd rock.new_btcoex
make
sudo make install

Check ant sel

modinfo -p rtl8723be

Tes ant sel

sudo modprobe -r rtl8723be
sudo modprobe rtl8723be ant_sel=1 (or) sudo modprobe rtl8723be ant_sel=2
iwlist scan | egrep -i 'ssid|level'

now you should find wifi signal on ant sel (1 or 2)

make this: depend on which ant sel that works

echo "options rtl8723be ant_sel=1" | sudo tee -a /etc/modprobe.d/rtl8723be.conf
(or)
echo "options rtl8723be ant_sel=2" | sudo tee -a /etc/modprobe.d/rtl8723be.conf

source

Read source for detail instructions, i found this work on my Ubuntu 16.04 LTS


No, Ubuntu Core does not include a container runtime.
The kernel is capable, but runtime software (LXD, Docker, etc) is not included in the normal install of Ubuntu Core.
You must add an LXD or Docker snap to Ubuntu Core to add container functionality. Happily, these are easily available in the snap store.


Can not log into SSH unless logged in locally

I'm going to assume your home directory is encrypted - in this case it is only decrypted when you log in - so when you are trying to authenticate you are not yet logged in so your home directory is not decrypted and hence as suggested above the ssh daemon can't read authorized keys file. You can fix this by following the instructions here.


Location of trash icon in Unity Launcher

By the design of Unity Launcher, Trash icon stays at the bottom. Here is an answer explaining the rationale. This is not a bug, but a design feature.


Have xbmc running on display :0 and a login prompt on display :1

On our HTPC we are running xbmc from a dedicated user account for maximum flexibility.

This allows us to:

log in passwordless with a remote control to the xbmc user account.
log in to a different account after boot from lightdm.
log in to any other account from TTY1 to TTY6 or by switching users.
keep xbmc setting in a sepatate home for better maintenance.
possibility to run xbmc on a lean desktop (e.g. GNOME flasback) for little interference.

Unfortunately we had not found a way to configure xbmc/kodi to run fullscreen on one attached monitor, and to simultaneously run a desktop on another attached monitor.


Ubuntu 18.04 huge battery drain from network interfaces wlp3s0 (iwlwifi)

EDIT: I found that this is a known bug in 18.04, that the eGPU does not turn off. It is already on Lauchpad: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1765363 Should I keep my post here or delete it?

There exists a workaround: https://github.com/timrichardson/Prime-Ubuntu-18.04

But I hope that they will change it again in the next version of Ubuntu as it worked just fine before 18.04

EDIT November 2018: I did a clean reinstall of Ubuntu 18.10 and now everything works fine. Switching between Intel and NVidia GPU is working.


Even though no characters appear when you type your password, you are actually typing your password.

For security reasons, characters typed in at the password request prompt are not echoed back to the terminal. The characters are there, you just can't see them, that's all.

So type password, then hit Enter and see.


How can I install a wifi driver for RTL8723BE on Ubuntu 18.04?

https://github.com/roopansh/rtl8723be_wifi

How to install is explaned in the README.I only hope you can reach the internet.


Solution:

Rename (move) the original file: sudo mv /usr/bin/audacity /usr/bin/audacity_orig
Create a custom script to launch Audacity: sudo nano /usr/bin/audacity_mod and add the following contents:

#!/bin/sh

export UBUNTU_MENUPROXY=1

# Preform a check if there is an argument to avoid launching Audacity twice.
# Audacity has to be opened without an argument first,
# otherwise the "alt" menu doesn't show results from the menu bar.
if [-z "$1"]; then
    audacity_orig
else
    audacity_orig | (sleep 1 && audacity_orig "$1")
fi

Explanation:

First, enable the native menus by running export UBUNTU_MENUPROXY=1
By doing audacity_orig, we are launching the original Audacity program (which we renamed in the previous step). We then wait one second and use audacity_orig "$file" to load the file into the program instance that was launched previously. Running audacity_org "$1" will pass the file path as an argument to the program. The reason we need to run both, is because the Alt menu (menubar search) doesn't seem to work unless Audacity is launched without arguments.

Note: If you don't use the Alt menu, you can replace the last 5 lines with: audacity_orig "$file"

Note: You can alternatively leave out the export UBUNTU_MENUPROXY=1 line from the above script, and change the Exec=env UBUNTU_MENUPROXY=0 audacity %F line in /usr/share/applications/audacity.desktop instead (change 0 to 1, or remove the env UBUNTU_MENU_PROXY=0 part).
Finally, link the bash script to Audacity's original location and make it executable:

sudo ln /usr/bin/audacity_mod /usr/bin/audacity
sudo chmod +x /usr/bin/audacity

Done!

You can now enjoy Audacity with the native Unity menus:

The Alt menu works too:

Note: You may need to log out and back in for the Alt menu to work again after changing the OS theme through Unity Tweak Tool.

If you wish to revert:

A: Link the original program:

Remove the link: sudo rm /usr/bin/audacity
Link the original file: sudo ln /usr/bin/audacity_orig /usr/bin/audacity
Make the link executable again: sudo chmod +x /usr/bin/audacity
Optionally, remove the script: sudo rm /usr/bin/audacity_mod, or

B: Put the original program back where it was:

Remove the link: sudo rm /usr/bin/audacity
Move (rename) the original file: sudo ln /usr/bin/audacity_orig /usr/bin/audacity
Optionally, remove the script: sudo rm /usr/bin/audacity_mod


Why can Déjà Dup not complete the backup of .cache/dconf and .gvfs?

I've been able to solve my question after finding this web page. You need to update the owner and group for each file which is failing to backup. I used these commands to solve the situation.

sudo chown mjwittering .cache/dconf .gvfs
sudo chgrp mjwittering .cache/dconf .gvfs

Then run the backup again, which should now complete successfully.


What is the difference between Unity-2D and Unity-3D?

Technical differences.
Unity

Written in C++ as a compiz plugin and uses nux for OpenGL support.
Requires hardware acceleration (Compositing). (Hardware requirements)
Is shipped as the default environment in 11.04
Also does window management via compiz itself.

Unity 2D

Written in C++ with Qt
Works on systems without hardware acceleration, like ARM-based platforms, as a result it is incapable of advanced 3D effects.
Shipped as the fallback method in 11.10. Is not shipped by default in 11.04, available as a separate package that the user has to install.
Needs a seperate window manager (like metacity) to do window management.


The university has allowed listing the directory contents for all of the user1/html maps. You can manipulate what visitors can see with the .htaccess file for each individual map of directory in 'your' tree. See documentation here


vicious circle between "sudo dpkg--reconfigure -a" and "kernel panic"

OMG! I fixed it at last. I downloaded above packages from ubuntu packages

and then installed them one by one with "sudo dpkg -i *.deb" and all of them installed successfully.
Phew!


How do i fix problem with Ubuntu 11.10 server and gitweb?

Looks like apache can't execute index.cgi because it doesn't have permission. index.cgi is a symlink to gitweb.cgi, and I can see from it's permissions that only root can execute it.

Usually Apache doesn't run as the root user, so you need to change the permissions of gitweb.cgi to allow Apache to execute it.

Try running this command (as root) to change the permissions on gitweb.cgi

chmod +x /usr/share/gitweb/gitweb.cgi


Is there a specific Ubuntu Touch rom for xperia ion?

I think you could be first to install and share your experience:
Ubuntu Touch Install Getting Started
Installing Ubuntu for Devices


Remove Ubuntu from Dual Boot windows 7 both in same drive

You can go into Administrative Tools and Select Disk Management, this should bring up your partitions, delete the Ubuntu partition (in the screenshot it's e.g. the 6,33 GB partition), then you have to restore the MBR.

Here is a good forum post explaining how to do that. If you don't do this you won't be able to boot into Windows.

All this is assuming that you didn't use Wubi, if you did all you have to do is go to Add/Remove programs or whatever it is in Windows 7, find Ubuntu, and uninstall it like you would any other program.


key shortcut to invoke last opened terminal?

Yes, if you're using Xorg.

Install xdotool:

sudo apt install xdotool

To activate the last used gnome-terminal if one is present, add a custom shortcut with the following command:

bash -c "xdotool windowactivate $(xdotool search --class 'Gnome-terminal' | tail -1)"

To activate the last used gnome-terminal or start a new one if none is present, use the following command:

bash -c "xdotool windowactivate $(xdotool search --class 'Gnome-terminal' | tail -1) || gnome-terminal &"

If you wonder why I used a command substitution with a second xdotool invocation:

From man xdotool:

  xdotool supports running multiple commands on a single invocation. Generally, you'll start with a search command (see "WINDOW STACK") and then perform a set of actions on those results.

  To query the window stack, you can use special notation "%N" where N is a number or the
  '@' symbol. If %N is given, the Nth window will be selected from the window stack.
  Generally you will only want the first window or all windows.  Note that the order of
  windows in the window stack corresponds to the window stacking order, i.e. the bottom-most
  window will be reported first (see XQueryTree(3)).

In your case, you want the last window, but there is no way to reference it using xdotool's notation, so we let it print all window ids and pipe them to tail in order to retrieve only the last window's id.

The second command above works because if there's no gnome-terminal running, the result of the command substitution is an empty string. The resulting command xdotool windowactivate exits with a non-zero status (because no window id is given), and leads to execution of the right side of the || (logical or) operator.


dpkg: error: failed to open package info file `/var/lib/dpkg/available' for reading

Open a terminal(Ctrl+Alt+t) and type the following, one line at a time:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

This should repair/recreate your /var/lib/dpkg/available file.

(Source)


How can I find and modify an application launcher in 18.04 because tuxmath seg faults in fullscreen mode?

You should find it in /usr/share/applications/ or in ~/.local/share/applications/.

It is generally not recommended to modify files in root directory. If an associated package gets updated the file will most probably be overwritten.

So if you find the launcher in /usr/share/applications/, first copy it to ~/.local/share/applications/. Open the copied file with a text editor and -w to the Exec= line.


Installing Wi-Fi driver for Realtek Semiconductor RTL8723DE Device [10ec:d723]

You may use the driver hosted at Larry Finger's rtlwifi_new git repository. You would have to disable secure boot from the the BIOS/EFI first. Also make sure you have linux-headers for the respective kernel(s) and build-essential package installed. Then follow the steps below (you need to be connected to the internet by some other mean).

Install git and dkms if they're not installed by running

sudo apt install git dkms

Clone the repository

git clone -b extended --single-branch https://github.com/lwfinger/rtlwifi_new.git

Run the following commands to install

sudo dkms add rtlwifi_new
sudo dkms install rtlwifi-new/0.6

Reboot.

This should also work with newer kernels (and hence on Ubuntu 18.04 too).

Note: If you get very weak signal try changing your antenna selection

sudo tee /etc/modprobe.d/rtl8723de.conf <<< "options rtl8723de ant_sel=2"

(or ant_sel=1 if 2 doesn't help).

(Source)

See this for Bluetooth: How to activate bluetooth device for RTL8723DE?


from this link

just download the suitable driver which extension is .deb for your system(64 or 32 bit). And click the .deb file to install it.


Internet slows down after short period of use

You can disable power saving for your wifi device. Open a terminal and run:

sudo apt install wireless-tools
sudo iw dev wlp1s0 set power_save off

Note that your wireless device might be something other than wlp1s0 like above. You can run this command to list them out:

 iw dev

Also note that once the computer is reboot or suspended that power saving will be enabled again. It's also possible that connecting a charger will cause power saving to be turned on or off as well.

If you want to permanently disable wifi power saving see this post which basically says create /etc/udev/rules.d/70-wifi-powersave.rules and put this contents into it:

ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*" RUN+="/sbin/iw dev %k set power_save off"

(Note I have modified the above command to use /sbin/iw which is where Ubuntu stores the iw command instead of /usr/bin/iw which some other Linux distributions use)


In case we want to keep pulseaudio we may also unmute a sink from the command line.

By using the Pulseaudio Command Line Interface we will get the index of available sinks

pacmd list-sinks

We then can unmute the sink with

pacmd set-sink-mute <index> 0


How can I use code or a script to lock my screen programmatically in Lubuntu?

In accordance with what @gertvdijk said, you can use DBus:

qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock

I have used that in my lock and off project.


How can I remove the gray-scale page background of a PDF document scan while preserving the text? (Binarization)

Overview

What you are looking for are tools like Scan Tailor and unpaper that are capable of Thresholding, Despeckling, and Noise Removal. Both tools work with images rather than PDF files but you can easily convert between the different formats these applications use and PDF by using the tools described at the end of this answer.

ScanTailor

You can find a video tutorial here. More extensive documentation is available on the official wiki. You will probably be most interested in the page on black and white output mode and filter settings.

Unpaper

I haven't worked with unpaper myself, yet. From what I understand it has far more features than ScanTailor but it's also much harder to master.

There is no GUI interface and you will have to rely on command line switches to get your work done. On the other hand this means that conversions with unpaper can easily be automated using scripts.

You can find some scripting examples concerning converting a scan to black and white and removing the background here.

Some helpful tools when working with unpaper and ScanTailer

I don't have enough time to write up a full tutorial on ScanTailor and unpaper¹ but here are some pointers concerning converting between .pdf and the image formats supported by these tools:

You can use pdfimages to convert PDF documents to single page .ppm files, which can be read by unpaper.

Usage example:

pdfimages *.pdf ./extracted-images

ScanTailor doesn't take .ppm files as an input. You will have to convert them to another format like the loss-less .pngfirst. mogrify out of the  imagemagick tool suite can do this for you.

Usage example:

mogrify -format png *.ppm

The output format of ScanTailor and unpaper are single page .tiff files. In order to convert them back to .pdf I would suggest using tiffcp and tiff2pdf.

Usage example:

tiffcp *.tiff all.tiff
tiff2pdf -F -p A4 -z -o Document.pdf all.tiff

Installation

This command will install all of the tools mentioned above:

sudo apt-get install scantailor unpaper poppler-utils libtiff-tools

¹: To anyone reading this, please feel free to compile a more extensive answer based on ScanTailor and/or unpaper.


I have solved the issue!

This was caused by my motherboard. I had just gotten it replaced it works great now.


Limited or no connectivity notification in Unity for 16.04

The simplest way is to use ping -c4 google.com to test your internet connection. If it can reach out beyond your router to any url, then you have internet access. This can easily be adapted to a script that periodically pings a site you choose. But I've a slightly different idea.

Here's a top-panel indicator that'll periodically request internet connection. If your internet connection goes down, it's icon will change to warning sign.  It uses standard icon names, so no need to  add any additional icons.

Save this as file, make sure it has executable permissions with chmod +x interwebs-indicator (from terminal) or via right-click menu in file manager. Run manually in terminal as

python3 intwerwebs-indicator

or

./interwebs-indicator

if have given it executable permissions.

You can make it start automatically on GUI login ,too.

Simple and easy to use.

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

#
# Author: Serg Kolo , contact: 1047481448@qq.com
# Date: November 3rd, 2016
# Purpose: appindicator for testing internet connection
# Tested on: Ubuntu 16.04 LTS
#
#
# Licensed under The MIT License (MIT).
# See included LICENSE file or the notice below.
#
# Copyright © 2016 Sergiy Kolodyazhnyy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import gi
gi.require_version('AppIndicator3', '0.1')
gi.require_version('Notify', '0.7')
from gi.repository import GLib as glib
from gi.repository import AppIndicator3 as appindicator
from gi.repository import Gtk as gtk
from gi.repository import Gio
from gi.repository import Gdk
import urllib.request as urllib2

class InterwebsIdicator(object):

    def __init__(self):
        self.app = appindicator.Indicator.new(
            'interwebs-indicator', "gtk-network",
            appindicator.IndicatorCategory.HARDWARE
        )

        self.app.set_attention_icon('dialog-warning')
        #self.app.set_status(appindicator.IndicatorStatus.ACTIVE)
        self.make_menu()
        self.update()

    def add_menu_item(self, menu_obj, item_type, image, label, action, args):
        """ dynamic function that can add menu items depending on
            the item type and other arguments"""
        menu_item, icon = None, None
        if item_type is gtk.ImageMenuItem and label:
            menu_item = gtk.ImageMenuItem.new_with_label(label)
            menu_item.set_always_show_image(True)
            if '/' in image:
                icon = gtk.Image.new_from_file(image)
            else:
                icon = gtk.Image.new_from_icon_name(image, 48)
            menu_item.set_image(icon)
        elif item_type is gtk.ImageMenuItem and not label:
            menu_item = gtk.ImageMenuItem()
            menu_item.set_always_show_image(True)
            if '/' in image:
                icon = gtk.Image.new_from_file(image)
            else:
                icon = gtk.Image.new_from_icon_name(image, 16)
            menu_item.set_image(icon)
        elif item_type is gtk.MenuItem:
            menu_item = gtk.MenuItem(label)
        elif item_type is gtk.SeparatorMenuItem:
            menu_item = gtk.SeparatorMenuItem()
        if action:
            menu_item.connect('activate', action, *args)

        menu_obj.append(menu_item)
        menu_item.show()

    def add_submenu(self,top_menu,label):
        menuitem = gtk.MenuItem(label)
        submenu = gtk.Menu()
        menuitem.set_submenu(submenu)
        top_menu.append(menuitem)
        menuitem.show()
        return submenu

    def make_menu(self):

        self.app_menu = gtk.Menu()
        self.add_menu_item(self.app_menu,gtk.ImageMenuItem,'exit','quit',self.quit,[None])
        self.app.set_menu(self.app_menu)

    def check_connection(self,*args):
        try:
            url = urllib2.urlopen('http://google.com')
            page = url.read()
        except urllib2.HTTPError:
            print('>>> err:')
            self.app.set_status(appindicator.IndicatorStatus.ATTENTION)
            #self.app.attention-icon('network-error')
        except Exception as e:
            print('>>> exception:',e)
        else:
            print('>>> OK')

            self.app.set_status(appindicator.IndicatorStatus.ACTIVE)
            self.app.set_icon('network')

    def callback(self,*args):

        timeout = 5
        glib.timeout_add_seconds(timeout, self.update)

    def update(self,*args):
        self.check_connection()
        self.callback()
# General purpose functions

    def quit(self,*args):
        gtk.main_quit()

    def run(self):
        """ Launches the indicator """
        try:
            gtk.main()
        except KeyboardInterrupt:
            pass

    def quit(self, *args):
        """ closes indicator """
        gtk.main_quit()

def main():
    """ defines program entry point """
    indicator = InterwebsIdicator()
    indicator.run()

if __name__ == '__main__':
  try:
    main()
  except  KeyboardInterrupt:
    gtk.main_quit()


Upgrade installation interrupted, and system hangs on login

Well, I just removed fglrx and then everything works fine now. (Almost fine)

My DELL Inspiron has severe heating problems with Ubuntu, which works quiet on Windows7. The fan makes a lot of noise, and the laptop heats up like mad. This happened with 11.04 too, and until I installed fglrx drivers for my ATI card, I had the issue. And even with fglrx, it was just a little better. Never normal.

But now I'm forced to continue without fglrx, because of the problem! And the heating problem is crazy again!! Too bad, Ubuntu 12.10, Y U NO SUPPORT FGLRX?


Eclipse isn't installed via apt hence you won't see it in the dash like so many other application. You have to create a launcher for it, and this can be done thus:

Create a .desktop file in one of two places:

gedit /home/$USER/.local/share/applications/eclipse.desktop
sudo -H gedit /usr/local/share/applications/eclipse.desktop

Drop this code in that file:

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/home/USERNAME/java-mars/eclipse/eclipse
Terminal=false
Icon=/home/USERNAME/java-mars/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

Note:

For launcher for you alone you install here: /home/$USER/.local/share/applications/eclipse.desktop
For every one who uses that system you install launcher here:
/usr/local/share/applications/eclipse.desktop
USERNAME: here refers to your username
And the name and location of your eclipse might be different from what I have given here, please change accordingly.
Restart the system.

With this you will now see eclipse launcher icon in dash and you don't need to always run it from its location as you are already doing.


Resizing my ext4 / partition bet keeps reverting back

Note: The size of sda4 is probably excessive, as you're only using it to transfer files between Windows and Ubuntu. You may wish to resize sda4 at some point.
Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or lose data.
Keep these things in mind:

always start the entire procedure with issuing a swapoff on any mounted swap partitions, and end the entire procedure with issuing a swapon on that same swap partition

a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor

a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor

if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)

you begin any move/resize by right-clicking on the partition in the lower pane of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window

Do the following...
Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.

boot to a Ubuntu Live DVD/USB, in “Try Ubuntu” mode
start gparted
resize the right side of sda8 partition and reduce sda8 by 35G
move sda8 partition all the way right
move sda7 partition all the way right
resize the right side of sda6 partition all the way right
click the Apply icon


Is the bug about kernels increasing temperature fixed?

It seems there is a bug in the kernel, according to this lauchpad bug. People are seeing this a lot, although they say the temperature feels the same. It is probably a bug that should be fixed soon. You don't have to worry about it. If you update your ubuntu installation a feel the machine is getting hotter, not just what is said by the lm sensors, than you could downgrade the kernel to a "safer" version.


Will dual boot of Ubuntu 14.04 + Windows XP work for old Acer Aspire 3690?

We have an Acer Aspire 5253 which runs Lubuntu very well but its stats are quite a bit better than those, especially the RAM.  I am pretty sure stock Ubuntu 14.04 won't work well at all with 512 meg.

Also I don't think you can use 64 bit Ubuntu because that is a 32 bit processor according to this Intel site.

My 2 cents worth is to try running 32 bit Lubuntu from a live CD or USB and see if it works OK, before you do anything irreversible.


Why you are still trying to install Ubuntu 12.04 , install 15.04 its really easy they even show install alongside windows option . and do you have windows 7 bootloader in another partition ? it should be a 100 MB partition check it. and install ubuntu 15.04 with custom partitioning create /boot and / in different partitions use ext4 it should work fine after installing ubuntu just to be sure it detected the windows type sudo update grub2 see if it shows "windows loader found" if not then do a sudo fdisk -l and post the output :)


For a working grub you should install Ubuntu over Windows otherwise if you install Windows over Ubuntu then it overwrite grub and boot directly to Windows without showing if Ubuntu is installed on the system.
For proper working of grub you can reinstall it.


top and sidebar menus not showing up after upgrading from 14.04 LTS to 16.04 LTS

Is the login screen still fine? Because if you can access the terminal I think it would be worth a try to just install a different GUI of your choice until you can restore Unity.  If you still want a somewhat Ubuntu feel I might try Gnome since it's sort of similar and easy to learn. If you decide on Gnome this guide should help you http://www.omgubuntu.co.uk/2016/05/install-gnome-3-20-ubuntu-16-04-lts


KDE Wallet is a core part of KDE, it's in the package kdebase-runtime.
To disable it run kcmshell4 kwalletconfig and continue at step 3 or start from the beginning:

Start System setings
Open Account Details
Go to the "KDE Wallet" tab
Uncheck Enable the KDE Wallet subsystem
Click Apply to apply the changes and close the settings window.

To get a list of the programs that depends on the kdebase-runtime package, run:
 apt-cache --no-enhances --no-suggests --no-recommends --installed rdepends kdebase-runtime

On Ubuntu, the output shows just "kdebase-runtime [newline] Reverse Depends:". On Kubuntu, a whole list follows.


File Recovery software for ubuntu 13.10 32-bit

Check this link i think it can help you , i tried this program .

Recovery tool

Or you can use Hirens boot cd it contain a lot of such tools .


How do I get my shell prompt back after using Gedit from the terminal?

If you append a & at the end of the line for example

gedit somefile &

Then you are editing somefile but gedit is running in the background so you get your command prompt back before you close gedit

you will notice that a number is returned in this case 2388.  That's the taskID of the instance of gedit that is running.

If you close the terminal you will kill the running gedit as its a child process of the terminal so you need to keep the terminal open until you have finished editing but you can run other commands.

If you want to close the terminal however you can break the link using the disown command with the number that was returned.  In this case

disown 2388

You can now close the terminal if you wish and gedit will keep running.

Note: this does not only apply to gedit it works with all programs regardless as to if they have a GUI or not


Why Ubuntu Gnome needs access to my location?

Ubuntu GNOME 17.04 uses a feature called Night Light which uses user's location to adjust the sunset and sunrise time. It also has a weather application and colord color management tool which needs location access.

Check the screenshot below


In nautilus (the file browser), use the search button and type the name of the file you're looking for, or a part of it.
Once it's shown, you right click on the icon and look into properties to get the parent directory.
You can even choose the file type, etc.


The computer does not wake up from sleep after a RAM upgrade

I don't know if this works, but I'd try resizing the swap partition. Maybe it's to small to copy all data from ram into it?


Is it possible to download snaps and install them on other machine that doesn't have internet access?

The offline system needs snapd (the snap command).
The offline systen needs the snap itelf.
The offline system does NOT need the snap store.

From https://forum.snapcraft.io/t/offline-snap-installers-and-possibility-to-update/275 :

$ snap download hello-world
Fetching snap "hello-world"
Fetching assertions for "hello-world"
kyrofa@Pandora:~$ sudo snap ack hello-world_27.assert
kyrofa@Pandora:~$ sudo snap install hello-world_27.snap
hello-world 6.3 from 'canonical' installed
kyrofa@Pandora:~$ snap list
Name                   Version                   Rev   Developer      Notes
<snip>
hello-world            6.3                       27    canonical      -

The key to offline snaps is that you must manipulate the snapd database manually to tell it about packages and updates. That's the 'snap ack' command.

The following ack from the example means: Hey, database, a local package called hello-world27.snap exists in my current working directory. If the downloaded package is somewhere else, add the full path.

 $ sudo snap ack hello-world_27.assert

The manpage for snapd explains a bit more about ack:

ack
   Add an assertion to the system

   The ack command tries to add an assertion to the system assertion data‐
   base.

   The assertion may also be a newer revision of a pre-existing  assertion
   that it will replace.

   To  succeed  the assertion must be valid, its signature verified with a
   known public key and the assertion consistent with and its prerequisite
   in the database.


the device file of an optical burner is supposed to be
/dev/srN, where N is a counting number beginning at 0.
You need read-and-write permission for that file
So what do you get from

ls -l /dev/sr*

The result might look like

brw-rw----+ 1 root disk 11, 0 2015-01-23 07:37 /dev/sr0

Although i am neither root nor in group disk, i can use it.
The "+" says that there are ACL attached. In this case
you may inquire them by

getfacl /dev/sr0

which in my case reports

...
user:thomas:rw-
...

If your desktop user lacks of rw-permission, then your
superuser will have to grant them. For the duration while
your system is running this may be done coarsely by

chmod a+rw /dev/sr0

But for a permanent solution, which survives reboot, you
will have to check the udev configuration. (I love udev
as much as you love Brasero.)

If this theory does not turn out to be true, try as
superuser:

xorriso -devices

If this finds drives like

0  -dev '/dev/sr0' rwrw-- :  'TSSTcorp' 'CDDVDW SH-S203B'

then the superuser should be able to burn a DVD by e.g.

xorriso -outdev /dev/sr0 -blank as_needed \
        -for_backup -joliet on \
        -map /home/thomas/photos /photos \
        -map /home/thomas/movies /movies

xorriso command -map gets as first parameter the path of
a directory or file on hard disk, and as second parameter
the path which it shall get inside the ISO 9660 filesystem
on DVD.

If the command xorriso --devices executed by the desktop user
shows the drive too, then this user should be able to burn too.

Thomas


How to login ubuntu core 18 raspberry pi 3 in headless startup

I'm afraid that the generic Ubuntu Core images requires a monitor and keyboard to enable SSH access (see the directions). Ubuntu Core's philosophy is "secure by default", which means there IS no default password. You must create an Ubuntu SSO account and upload your public SSH key, and then use the keyboard and monitor to provide the email address for your SSO account and it'll fetch your public key. Once that is complete, you no longer need the keyboard and monitor and you can SSH in.


How to install GCC without internet connection and what do I have to keep in mind when installing GCC?

To get the most out of your machine you should consider troubleshooting your internet connection first. As for GCC, try installing build-essential from here. It includes GCC and its dependencies.


Seems Nouveau accelerated Open Source driver for nVidia cards is not working well for your device. Proceed with installation of BinaryDriverHowto/Nvidia.