Kubuntu - cannot change fonts and widget style under sudo after upgrade to 11.10

Different users can have different settings

The root /1/ has own settings. You could change the root's settings by starting the System Settings with the command:

kdesudo systemsettings

Root's gtk apps

As default the root's folder doesn't have the link to the oxygen-gtk.

To fix this you need to copy the hidden file .gtkrc-2.0-kde4 (note the dot !) from your home directory to the /root/ with name .gtkrc-2.0 (note the dot !) /2/, /3/.

Command line:

sudo cp .gtkrc-2.0-kde4 /root/.gtkrc-2.0

If you have the Root Actions Servicemenu /4/ installed you could use it to copy and rename.

System's default mouse theme (KDM cursor)

The Debian and the Debian based are using the alternatives /5/ to set the environmental variables.

:~$ man update-alternatives /6/
NAME
       update-alternatives - maintain symbolic links determining default commands

SYNOPSIS
       update-alternatives [options] command

DESCRIPTION
       update-alternatives  creates,  removes,  maintains  and  displays
       information about the symbolic links comprising the Debian alternatives
       system.

       It is possible for several programs fulfilling the same or similar functions
       to be installed on a single system at the same  time.

To set the cursor theme with the alternatives command line:

sudo update-alternatives --config x-cursor-theme

With KDE gui:

Package: kalternatives /7/ - graphical alternatives system configuration tool

More: Change system default X11 cursor theme /8/.

Sometimes

Quote: "Sometimes, in KDE applications under my ordinary user, fonts spontaneously change to Ubuntu font - why this happens and how can I avoid it?"

Yes, I have noticed this. Why - beats me. The Kubuntu is resetting to the default Kubuntu settings (/usr/share/kubuntu-default-settings/kde4-profile/default/share/config/)

To fix this i have edited the Kubuntu defaults: /usr/share/kubuntu-default-settings/kde4-profile/default/share/config/kdeglobals.

Default Kubuntu kdeglobals has:

[General]
BrowserApplication[$e]=!rekonq
XftHintStyle=hintmedium
font=Ubuntu,9,-1,5,50,0,0,0,0,0
menuFont=Ubuntu,9,-1,5,50,0,0,0,0,0
desktopFont=Ubuntu,9,-1,5,50,0,0,0,0,0
toolBarFont=Ubuntu,8,-1,5,50,0,0,0,0,0
smallestReadableFont=Ubuntu,8,-1,5,50,0,0,0,0,0
taskbarFont=Ubuntu,9,-1,5,50,0,0,0,0,0

Looking my own kdeglobals: ~/.kde/share/config/kdeglobals and copying them to the defaults. Here:

[General]
BrowserApplication[$e]=!rekonq
XftHintStyle=hintmedium
font=Sans Serif,9,-1,5,50,0,0,0,0,0
menuFont=Sans Serif,9,-1,5,50,0,0,0,0,0
desktopFont=Sans Serif,9,-1,5,50,0,0,0,0,0
toolBarFont=Sans Serif,8,-1,5,50,0,0,0,0,0
smallestReadableFont=Sans Serif,8,-1,5,50,0,0,0,0,0
taskbarFont=Sans Serif,9,-1,5,50,0,0,0,0,0

Links:

https://help.ubuntu.com/community/RootSudo
http://forum.kde.org/viewtopic.php?f=63&t=62352
http://kubuntuforums.net/forums/index.php?topic=3092288.msg201654#msg201654
http://kde-apps.org/content/show.php/Root+Actions+Servicemenu?content=48411
http://www.debian-administration.org/articles/91
http://en.wikipedia.org/wiki/Man_page
http://packages.ubuntu.com/oneiric/kalternatives
http://kubuntuforums.net/forums/index.php?topic=3112235.0


How to fix missing libudev.so.0 for Chrome to start again?

As Gilles pointed out, this approach can lead to unwanted behaviour. Please try his solution first. If it doesn't work for you and you understand the implication that this may lead to silent data corruption, you may do the following:

Assuming a 64-bit system, the missing symlink can be created via:

sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1.3.5 /usr/lib/libudev.so.0

For Ubuntu 18:

sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1.6.9 /usr/lib/libudev.so.0

For a 32-bit system:

sudo ln -s /lib/i386-linux-gnu/libudev.so.1.3.5  /usr/lib/libudev.so.0

You may have to check your local version of libudev.


How should Juju conect to MaaS nodes with two networks?

This  is only a partial answer.   I noticed the following message under the Fully Qualified Domain Name dialog box for the nodes:

  The FQDN (Fully Qualified Domain Name) is derived from the host name: If the cluster controller for this node is managing DNS then the domain part in the host name (if any) is replaced by the domain defined on the cluster; if the cluster controller does not manage DNS, then the host name as entered will be the FQDN.

I entered North.local here and turned off DNS for the managed network x.x.137.0.   The bootstrap still didn't bring up eth0, but when I did that manually the JuJu bootstrap continued.

So the remaining mystery is why didn't MaaS configure the interface.


Ubuntu screen sharing on Google Chrome not working

Search for the file.conf in /etc/gdm3/ in my case, Ubuntu 20, it's custom.conf
sudo nano /etc/gdm3/custom.conf

uncomment the line
#WaylandEnable=false to be WaylandEnable=false
then reboot


Ctrl-X is set to editor-cut, but check the Howl Faq. There is an example to set the exit command to Ctrl-Q to exit, so following that, it's probably this in the ~/.howl/init.moon file:

howl.bindings.push { ctrl_x: 'quit' }


I figured out that it wasn't working because of conflicts with the compiz scale plugin. Now it works!


How to access and copy files from an old/other Ubuntu system's partition?

Browsing and Managing Your Files (Graphically) As Root
Open Nautilus as root:

Press Alt+F2.
Run gksu nautilus (or gksudo nautilus -- on Ubuntu, they should do the same thing).

(Or in Kubuntu--that is, if the live system that you're using to recover the files is Kubuntu--use kdesudo instead of gksu and Dophin instead of Nautilus: kdesudo dolphin For other flavors of Ubuntu, see my answer to a similar question.)
Now be very careful, because with a root Nautilus window, you can do just about anything, including things you don't want to do.
Offloading Your Files
Copy the files to wherever you want them. Then select the files at the target, where you've just copied them, and change the owner to your user account.
(If you're using a live CD, you can save this for when you access them from an installed system, if you like.)
Changing Their Ownership (Recursively)
To change the ownership of a folder and everything in it, right-click on it in a root Nautilus window and click Properties. Go to the Permissions tab.

Change Owner to you. Click Apply Permissions to Enclosed Files (or it will only be applied to the folder, not the files and folders contained in it). Click Close.
Usually that's sufficient, and changing the permissions themselves is unnecessary. However, if you need to change the permissions, you can do that the same way (using the folder and file access drop-down menus under Owner, Group, and Others.


Getting issue with file permissions in Ubuntu 10.04

the possible reason would be that you've not changed the owner of the file, though you've changed the permissions. :)

So first you've to get the owner name under which apache server is running, and assign the same owner to you /var/www/<file/folder>.

Follow these steps:

find the owner of the httpd. Execute this command to get the owner of httpd:

sudo ps aux | grep httpd

the first column will be the owner say somebody. If you get number like 1001 or any other number instead of somebody then execute this command to get the owner name:

grep 1001 /etc/passwd

Again the first field will be the owner of the process.
Now change the owner of file/folder under www to somebody

sudo chown -R somebody /var/www/<path to the file/folder>

Restart your server

sudo /etc/init.d/apache2 restart

That's it. Hope it would help you. :)


How to transform an image into a cartoon from command line?

I found a bash script for imagemagick to do that by Fred Weinhaus. His scripts are available free of charge for non-commercial use, ONLY.

Command line usage:

USAGE: cartoon [-p pattern] [-n numlevels] [-m method] [-e edgeamount]
[-b brightness] [-s saturation] infile outfile

USAGE: cartoon [-h or -help]

-p ... pattern ...... segmentation pattern (shape); 0<=integer<=100;
..................... default=70
-n ... numlevels .... number of desired segmentation levels; integer>=2;
..................... default=6
-m ... method ....... edge method; 1 or 2; default=1
-e ... edgeamount ... amount of edges; float>=0; default=4
-b ... brightness ... brightness of cartoon; integer>=0; default=100
-s ... saturation ... saturation of cartoon; integer>=0; default=150

PURPOSE: To create a cartoon-like appearance to an image.

(more on the site itself.) What the script does ...

(Optionally) applies a median filter to the image
Reduces the number of colors in the filtered image
Converts the original image to grayscale
(Optionally) applies a median filter to the grayscale image
Applies a gradient edge detector to the grayscale image
Thresholds the edge image to binary
Composites the edge image with the color reduced image

There are samples on his site but those are not near what your examples are.  You probabaly will need to play with the settings for it to come out as what your images look like.


How can I launch a Cinnamon applet from the command line?

I had the same question, and kynan has/anticipated an answer - if a bit brief:

You have to change the applet you want access by shortcut such that it reacts to said shortcut. At least this is what I did.

My aim was to have the "Windows Quick List" accessible by a short cut, so took the "Window Quick List with close button" as template.

In the _init of the applet.js I added the following lines:

        this.settings.bindProperty(Settings.BindingDirection.IN,
                                  "keybinding-def",
                                  "keybinding",
                                   this.on_keybinding_changed,
                                   null);
        this.actor.connect('key-press-event',
                           Lang.bind(this,
                           this._onSourceKeyPress));

        this.on_keybinding_changed();

And the the two handlers are needed of course:

    _onSourceKeyPress: function(actor, event) {
    let symbol = event.get_key_symbol();

    if (symbol == Clutter.KEY_space || symbol == Clutter.KEY_Return) {
        this.menu.toggle();
        return true;
    } else if (symbol == Clutter.KEY_Escape && this.menu.isOpen) {
        this.menu.close();
        return true;
    } else if (symbol == Clutter.KEY_Down) {
        if (!this.menu.isOpen)
            this.menu.toggle();
        this.menu.actor.navigate_focus(this.actor, Gtk.DirectionType.DOWN, false);
        return true;
    } else
        return false;
},

on_keybinding_changed: function() {
    Main.keybindingManager.addHotKey("must-be-unique-id",
                 this.keybinding,
                 Lang.bind(this,
                       this.on_hotkey_triggered));
},

Finally, in order to have the chance to define the hot key customizable I added the following lines to settings.json (also to be anticipated by the above on_keybinding_changed):

,
"keybinding-def" : {
"type" : "keybinding",
"description" : "Shortcut to open/close the windolist ",
"default" : "Super_R"
}

(Please take care to copy the comma too, if you forget it, you'll run into trouble)

For me this worked (so far, without major hiccups), but I'm neither  javascript in json savvy, and it was a lot of copy&paste together with try&error.

So, probably this is only a starting point and not yet the ultimate answer.


1) If I install exP as a guest OP in
  VirtualBox, will I still need to
  maintain/update Windows regularly as I
  do now on its existing sda1 partition
  to keep it secure?

Yes and No - If you intend to access the internet then you'll need to regularly update your windows XP virtual guest.  However, if you edit the virtual box network settings and disable the network adapter - then you'll have a very isolated virtual guest, both to ubuntu and the outside world!

  2) Is it recommended/better to install
  VirtualBox on a new, separate
  partition instead of on my current
  sda7 (/home) partition?

There isn't a strong recommendation either way - it depends.  If you like to regularly backup your home partition but dont want to regularly backup your guest virtuals, then put your guest virtuals on a dedicated partition you will not often backup.

  3) Does VirtualBox really require a
  minimum 20GB hhd space?

VirtualBox requirements are described here - it says 30MB (megabytes not gigabytes).

You could try to remove unwanted files yourself such as help etc. - however if you are short of disk space - then virtualisation isnt really for you, because you need to allocate large chunks of disk space for your virtual guests.

  4) Does the memory dedicated to
  VirtualBox reduce the memory available
  to Windows only when running a
  VirtualBox machine, or all the time?

The amount of memory virtualbox allocates to windows is up-to you when you define the guest settings.  Your ubuntu host will obviously suffer if you try to overallocate more than the recommended memory settings.

If you are not running a virtual guest, virtualbox itself doesn't "reserve" any extra memory (i.e. the amount you have allocated to the guest) other than for just running the virtualbox application itself.


Do all Linux distros use the same kernel?

All distros use the same "Linux" kernel, however all distros make slight changes to it in order make the kernel work best for them, however these changes will almost always get uploaded back to the top where Linus will merge them himself. So all use the Linux kernel, however they all have a few different lines of code in them to make them work best for that distro. It is also worth noting that distros will ship with the version of the kernel that they see fit for each version. Some distros choose a newer kernel then others. The main pro of a new kernel are improvements in driver's and hardware compatibility. The con is a loss in stability as all new code has bugs in it. So you trade features for stability. This is why distros known for being more stable will usually always ship an older kernel than the more risky distros. To find what kernel you are running enter:

uname -r

This will show you what you are running in the version of Ubuntu you have on your computer currently. Hope you enjoy!


You should be able to without problem. There is a few utilities out there that can format and setup your USB flash or external drive. One of the most popular tools seems to be Unetbootin. You can create a bootable USB from a wide variety of distributions that will work on just about any machine. You can check it out here: http://unetbootin.sourceforge.net/


Which BIOS can ignore integrated graphics card and just using discrete graphics card?

Check if you have a "Graphics" option in your BIOS: some models allow the discrete graphics card to take control of the system to be compatible with older versions of Microsoft Windows.

You may also consider installing Bumblebee to be able to use the discrete graphics card throught the integrated card:
http://bumblebee-project.org/install.html#Ubuntu

If bumblebee is not stable for your system, it's worth reporting the issue as explained here: http://github.com/Bumblebee-Project/Bumblebee/wiki/Reporting-Issues


Incorrect password at Cardamom Login for Ubuntu 10.04.4 LTS

If you're SURE that you remember the correct password, it's an issue with 'PAM'. Check this link: http://ubuntuforums.org/showthread.php?t=1702833

And, edit those files using a Ubuntu LiveCD. Set a root password on the disk after you log-in using:

$ sudo passwd root

Be advised that the password change is lost the next time you use the CD.


Ubuntu 20.04 - 4K screen doesn't work on 60 fps [Works fine in 2K@60fps or in windows at 4K@60fps]

Fixed! There are two things I did:

From the Ubuntu Login screen, choose "Ubuntu Wayland" as your primary display and then login.

I have a Samsung TU8079 (8000 series) 4K TV. From the settings, I disabled the "Input Signal Plus" option for my HDMI input and then i was able to see 4k@60HZ as an option for my display.

Resolved the issue fully! hope this helps someone.


You are not having a top bar background because of the same reason, you have installed Dynamic Panel Transparency, and when you open overview, it will not show you a background


PATH variable cannot be modified in shell function

That's because when you run a script from terminal, this doesn't run in the current shell terminal, but in a subshell. The variables, functions and aliases created in this subshell are only known to the particular bash session of that subshell. When that shell exits and the parent regains control, everything is cleaned up and all changes to the state of the shell made by the script, are forgotten.

To prevent this, you can source the script in the current shell terminal, using the following command:

source Script.sh

or, simple:

. Script.sh          #dot, space and the path to the script

Also, your Script.sh should look like:

#!/bin/bash

source /path/to/SetEnv  #if you want that your script to know about 'SetEnv' function.

SetEnv

echo $PATH

More about: http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_01.html.


dpkg error while installing fail2ban on ubuntu 15.04

I added the dependency "python3-systemd" and continued getting the error, however on restarting, the dpkg code fixed and it's good to go. Way to go me! :D


Folders from the sidebar are not showing

Pressing F9  enables and disables the sidebar view. =)


Add a cronjob entry to restart your server.

Look here for how to do that.


Does anyone know a DimScreen (brightness) for ubuntu?

I believe this is what you want:
http://joeltong.org/blog/?p=166
If you want to change lcd brightness:
There is also xbacklight (see software center) and this script http://pastebin.com/HzzHrS2g


run sequencital background commands while keeping session

It might help to know what em.py is doing and how if fails since it may affect the pipeline.
I see two issues here.
First, the nohup shell command works on the current statement, not the whole line.  So while you have nohup on the em.py calls, you do not with the other two.  Try doing running a single bash with nohup on that.  And I suggest using setsid as it's more reliable.
Second is that the controlling terminal may not be reset properly when you log out.  You should redirect stdin/out/err properly.
I see two issues here.
setsid $SHELL -c 'python3 em.py; killall chrome; sleep 60; python3 em.py' </dev/null >/tmp/em.out 2>&1 &

You could also run the commands inside a terminal multiplexer like screen(1) or tmux(1) to avoid all this.


Anaconda causes more problems with paths than any other common Ubuntu application I can think of. If you install Anaconda in a custom location, you'll end up uninstalling it when you find out how much work it takes is to maintain it.
You can do whatever you want to with Visual Studio Code, but I recommend installing the Visual Studio Code snap package in all currently supported versions of Ubuntu because you can install it directly from the Ubuntu Software app. If you install the Visual Studio Code snap package it will install it to the snap package's default location (snap packages are not installed at /usr/local/) and that can't be easily changed.


Do themes change the layout of the desktop on ubuntu?

No, the themes do not change the layout of Unity, GNOME, or KDE.


installing ubuntu with windows 8, which was not pre installed

I downloaded Ubuntu 13.10 and installed it using "Universal USB Installer" (From: http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/) on my other computer which was upgraded from Windows 7 to Windows 8 (Both 64-Bit).

I had used WUBI.exe before, but found that installing it from USB (Or DVD if you have them available) worked much more efficiently. I have not run into any problems dual-booting using this method.


Recording Sound (playing from an external device) and save to my pc using line-in and line-out

This can be done for both analogue and digital audio input sources. I have done this to convert old analogue music tapes to digital files via the PC. It is relatively simple to achieve, and will be even easier if the device you are recording from already is digital. (Although could you just transfer the tracks from your ipod to your PC?)

Anyway, you need a 3.5mm to 3.5mm male to male audio cable (it is the same at both ends-i.e it has the standard headphone jack at either end). Install audacity from the repositories and start it running. Now connect the cable to your device and plug the other end of the cable into the pink (mic) socket on the PC. In audacity, adjust the volume of input (mic) until it is about the setting on the screenshot below (or less if you get distortion) and set the input to pulse:Mic:0. Now switch on your device connected to the computer, and adjust its volume as necessary. Then press record in audacity and you will get a waveform if you are successfully recording. Depending on your audio hardware, you may need to use other settings.

If you want, you can stop the recording after a few minutes and press play in audacity to see if the volume level is ok, and then restart a new recording. Audacity has some noise removal plugins, but you will only need to use those if you also decide to connect say a non-digital player and record from it in the future. If you have the proprietary codecs installed on your system you will be able to export your recording as mp3 and other formats. See audacity>file>export> and choose your settings.

Here is a useful screenshot of my particular settings:


Keep installer from installing Nvidia drivers but install other "optional" software

Simply uncheck the

[ ] Install third-party software for graphics and Wi-Fi hardware and additional media formats

during installation.
Then on first boot install codecs by
sudo apt-get install ubuntu-restricted-extras

Optionally you can visit Software & Updates (software-properties-gtk) and check 5th tab named Additional Drivers.

But personally I would recommend to use previous Ubuntu MATE version with fully-supported Nvidia driver on this laptop.


There are many utilities you can use with the install media.
BCDBOOT or BCDEDIT or mbrfix are just a few examples.

Note that Wubi is considered deprecated ; the official method to install is to use the official iso file.

Also which OS does not boot?

If you want to fix ubuntu then use its live version and in gparted flag ubuntu partition as boot


You can just install Ubuntu on virtual box or VM workstation. or you can turn your physical windows machine into a virtual one using VM workstation and can smoothly dual boot. One other thing that you can do (but i think it's too advanced is to try booting using V Sphere and then work on multiple OSs). I hope this info helps.


Want To Completely Install Ubuntu As Only OS But Dont Know What Happens To Files

No matter what, always backup your data. If you switch os and do not have a separate data partition, you will lose everything that is on your disk, you will have to copy it back after installation.

Then the next thing is to decide how you would want your disk to be partitioned; as one big partition + a swap area, or a separate data partition to hold your files. See here to do that


How to set screen borders for HDMI output

What you are looking at is a"feature called "overscan" (or "zoom" on some TVs). It's the TV itself cutting off the edges!

So, look for a feature called overscan (or zoom) in the setup of the TV, and disable it!

Some history:

Long time ago, when cathode ray tubes - CRTs - were used as television displays, and the images were transferred in an analogue way, it had a technical reason, it was useful.
The TV stations were used to always have a border with nothing important in it.

With pixel matrix displays like LCD, overscan no longer makes sense.
But people are used to have it, and think it's better to have the feature than not have it.

If you want to sell LCD TVs, you have customers asking for it, and because it costs nothing to provide it, you better list that feature in the description.
It will not do any harm, no problem. Except if someone enables it.


How can I make files received by Bluetooth be saved in my own specified folder?

When using the standard Gnome BT Manager, you can't change the location. If you are using Blueman (which is better anyways) you can change it by going to the service list and then to the settings of the File transfer module. There you can enter a new path


Is there a tool to split a scanned PDF when reaching a separator page?

It turns out the technology I was looking for is called a "patch code", see https://en.wikipedia.org/wiki/Patch_Code.
There indeed seems to be software which can handle this, like for example on https://www.chronoscan.org/ just to mention one. (Free version available.)
Also there is an online generator to generate patch code pages available at https://patchcode.kodakalaris.com/en/index.html.
Trying to create some scripted pipeline in Ubuntu for batch PDF processcing, it may be worth looking at http://zbar.sourceforge.net/ (available as zbar-tools in Ubuntu) as a starting point.
Also I managed to have some successes with https://github.com/MomsFriendlyDevCo/pdf-dicer


creating desktop icon for Arduino 1.6.7 in 14.04

Ubuntu has something called a .desktop file, which acts as a shortcut to whichever app you want. You can specify an icon you want, the name of the shortcut, the description that appears when you hover over the shortcut, and a lot of other stuff. It's not the easiest setup, but it's not hard, either. Here's how to do it.

Open a terminal (Ctrl+Alt+T), and run gedit ~/Desktop/Arduino.desktop.
In the text editor window that opens, paste this:

 [Desktop Entry]
 Name=Arduino
 Comment=Arduino IDE
 Exec=/path/to/the/arduino/executable
 Path=/path/to/the/arduino_folder/
 Icon=/path/to/arduino/icon.png
 Terminal=false
 Type=Application
 Categories=Utility;Application;Development;

Edit the Exec,Path, and Icon fields to point to the appropriate locations.
Save the file and close Gedit.
Now, go to your Desktop folder and test the shortcut bu double-clicking it. If it works, you can drag the icon to your launcher to have it there, as well.

NOTES:

You may get a warning when you try to use the .desktop file, telling you it is not trusted, or something similar. If you see this, right click on the file, go to Properties >> Permissions and check the box that says something like Allow executing file as program. The warning will be gone.
Remember to use absolute paths in the desktop file. Don't use relative paths. An example of an absolute path is /home/username/arduino-1.6.7/. A relative path is something like ~/arduino-1.6.7 (the ~/ points to your user folder) or ./arduino-1.6.7 (./ means whatever folder you're currently in, which would be the Desktop in this case).

If you need any help, comment.


You can't build gcc without gcc. The gcc source code is heavily dependent on being compiled by gcc. If you just need a C compiler for small projects, you can transfer a small compiler like tcc, which can compile its own source code. It can't build gcc.


How to make external USB harddrive mount properly for backup script with udisks2

I have given this answer, which may be the best approach. However, there is also a simpler solution based on the new default behavior of udisks2. Ubuntu's switch from udisks1 to udisks2 is what initially caused my problem. Rather than reverting to the udisks1 behavior, I found a way to use the new default behavior to my advantage.

The key to the solution is that both of the following mounts (for the same device) can co-exist:

/media/myusername/Backup
/media/root/Backup

Therefore, if I change my backup scripts to use /media/root/Backup and to always mount the device at that location before the backup, my issue is solved. I can continue to use Dolphin the way I do now and I can live with the default (non-root) mount location of /media/myusername/Backup. They do not appear to conflict with each other.

I was striving to avoid having two mounts for one device, but after testing this option I find that it seems to work fine. It solves the backup problems I was seeing.

Unless anyone knows of problems from this approach it may be my preferred approach because it doesn't change the new default behavior, it doesn't rely on any scripts (which always require maintenance over time) and it assures that my backup will not fail due to the device not being mounted.


Cannot log into Cinnamon after deleting ~/.config

I would like to suggest reinstall Cinnamon.log in recue mode pressing shift booting system, choose Recovery mode from grub boot loader options.

First Completely uninstall Cinnamon By

sudo apt-get --Purge cinnamon

Reinstall it by

sudo apt-get install cinnamon


I had something the same with 16.04 and Eclipse Mars. I thought it had frozen but in fact it was running very, very slowly. The problem is the version of GTK+ 3, shipped with 16.04. Fortunately the solution is very easy. Open a terminal and then type export SWT_GTK3=0, then start Eclipse from the terminal. If that works, then a more persistent fix is to put the 2 lines below, as they appear in your eclipse.ini:

--launcher.GTK_version
2

before the line:

--launcher.appendVmargs

The bug is filed with Ubuntu at bug 1552764


Partitioning strategy for external hard drive

Well, since you will be using it for data storage I would favor partitioning the drive considering the following:

Organizing data (Keep like files together - separate work and entertainment files)
Privacy (Use an encrypted partition to protect personal files)

If you plan to use the drive with Ubuntu alone I would partition the drive in ext4 format. Also, keep in mind that ext4 can be mounted in windows using Ext2Fsd.

Check this link regarding performance impact.


How to get and set php.ini variables through terminal

Get:

grep '^post_max_size ' php.ini

Replace:

sed -i 's,^post_max_size =.*$,post_max_size = 2048M,' php.ini

Note that it's a good idea to create a backup of php.ini before running sed:

cp php.ini php.ini.bak


Ubuntu 16. Trying to set up 3 different monitors

I run 3x1920x1200 and often have to edit ~/.config/monitors.xml to manually set their order, and X/Y pos.

*I have profiles for work and home...monitors.work.xml, monitors.home.xml


Graphics trouble after resuming from hibernate or suspend

This is pretty clearly a bug and not something that should have to be worked around or which could be fixed through user action. The best thing to do in these cases is to open a bug in launchpad so that Ubuntu developers can see it and track it.

For suspend/resume or hibernate problems, it's best to open the bug against the linux kernel. You can do that from a shell by typing:

ubuntu-bug linux


Packaging MATLAB (or, more generally, a large binary, proprietary piece of software)

1. You can make dh_install do whatever you want by adding this to debian/rules:

override_dh_install:
    dh_install # if you still want to use some things via *.install files
    cp -l src/foo debian/$packagename/usr/share/$matlabname/foo
    cp -l tools/bar debian/$packagename/usr/share/$matlabname/tools/bar
    # etc...

I don't know if this is a good idea though...

2. Yes, though not as straightforward as one might wish...

You could call debhelper commands individually:

dh_prep -p$packagname
dh_installdirs -p$packagname
dh_install -p$packagname
dh_installdeb -p$packagname
dh_gencontrol -p$packagname
dh_md5sums -p$packagname
dh_builddeb -p$packagname

Probably needs adjusting for your case, see

man debhelper

for the list of available dh_* commands

3. I think I would prefer doing it all in one package, but I'm unsure, splitting into several source packages has it's own problems...


How do I Add Cairo Dock with OpenGL to Startup?

follow the guide and you can specify in the command option which backend to use when running cairo-dock by specifying it as an option.

Run with OpenGL backend

cairo-dock -o

Run with Cario backend

cairo-dock -c


Ubuntu 16.04 final not booting from stick: gfxboot.c32: not a COM32R image

Press TAB when that happens (when you boot and the error message appears) and then you will be able to choose between options (live, live-install, ...). Type live, press ENTER and it will boot you into the live try from there you can install.

I just did it last night.
Some kind of systemUSB issue, no idea.


How to use Wget with TMG proxy without username and password

Configuring wget proxy
Add below lines in file ~/.wgetrc or /etc/wgetrc:
http_proxy = http://[Proxy_Server]:[port]
https_proxy = http://[Proxy_Server]:[port]
ftp_proxy = http://[Proxy_Server]:[port]
use_proxy = on

Add below lines in file ~/.bash_profile or /etc/profile:
export http_proxy=http://[Proxy_Server]:[port]
export https_proxy=http://[Proxy_Server]:[port]
export ftp_proxy=http://[Proxy_Server]:[port]


Internet doesn't work decently, I'm hardly regretting for chosing Ubuntu

That sounds really odd.  The only thing I could think of is:

Checking if it is a server issue relating to the website's server itself.  But it sounds like wit's widespread so this may not be the case.
Reinstall your internet drivers.  That may fix the issue although only do this if you know how to.
From a quick glance it looks like the servers are having issues. Just check around to see if thats the issue.
Check your own internet connection.  There may be some issues that are extending from your own internet connection.


Show available/installed version in the output of apt-cache

In a terminal run apt-cache policy with the name of the package.  This will show you what version you have installed, if any together with what is available in the Ubuntu repositories.  For example if on my machine I enter apt-cache policy sudo, the output is:

sudo:
  Installed: 1.8.3p1-1ubuntu3.4
  Candidate: 1.8.3p1-1ubuntu3.4
  Version table:
 *** 1.8.3p1-1ubuntu3.4 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main i386 Packages
        100 /var/lib/dpkg/status
     1.8.3p1-1ubuntu3 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

Showing that I have version 1.8.3p1-1ubuntu3.4 installed and this is the latest.

In addition you can use the Ubuntu Packages Search website to see what is available searching by name or description.  Though this will not tell you what you have installed.


How-To limit user-names in LightDM login-screen when AccountsService is used

The simplest solution would be to change the UID of the non-user accounts to something below 1000. (Just tested, works)

... actually, the UID needs to be < 500 - and therefore nominally considered to be a 'system' UID - before the greeter will exclude it from the list. (the test referred above must have used such a value)
HTH


Ubuntu 18.04 one of my 3 displays keeps disappearing

Apparently the cause was that I was always trying with different type of displays.

Since I replaced my displays in order to have 3 displays of the same brand and model, the problem disappeared.

So, to whoever is experiencing the same issue: check if one of your displays is way older/different compared to the other ones, in that case there is a good chance that replacing it with a newer one will solve the issue forever.


Can't login, although password is correct (ubuntu 20.04)

Dropping into non-gui mode (alt-ctrl-F3) then running sudo apt-get install --reinstall ubuntu-desktop , then choosing a default graphics manager of lightdm took care of it.
sudo dpkg-reconfigure sddm and rebooting gets me into kde without problems and actually doesnt need to be run from  non-gui mode.
Actually kde/sddm isn't problem-free, videos in firefox and elsewhere don't run (if playback doesnt begin shortly try restarting your device ) so I'm back to lightdm.


Installing libapache2-mod-python removes cacti

If I'm reading that correctly, the first step would be  dpkg-reconfigure cacti.

This may or may not work- I'm assuming the configs somehow got munched during the install.

I just installed libapache2-mod-python on this machine and did  aptitude why-not cacti and got "Unable to find a reason to remove cacti." This is a bit odd, as cacti is not installed.

Result of  aptitude install cacti after installing the above:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
  apache2-mpm-prefork{a} cacti dbconfig-common{a} libapache2-mod-php5{a}
  libdbd-mysql-perl{a} libdbi-perl{a} libhtml-template-perl{a}
  libnet-daemon-perl{a} libphp-adodb{a} libplrpc-perl{a}
  mysql-client-5.1{a} mysql-client-core-5.1{a} mysql-server{a}
  mysql-server-5.1{a} mysql-server-core-5.1{a} php5-cli{a} php5-common{a}
  php5-mysql{a} php5-snmp{a} rrdtool{a} snmp{a}

The following packages will be REMOVED:
  apache2-mpm-worker{a}

0 packages upgraded, 21 newly installed, 1 to remove and 0 not upgraded.

Need to get 33.2MB of archives. After unpacking 86.6MB will be used.

I don't understand why aptitude want to remove mpm-worker if it doesn't detect it as a conflict (via aptitude why-not). Do you still have mpm-worker installed?


Sounds like windows is still on your hard drive just in a separate partition. Grub is configured, done during the ubuntu install, to let you choose between ubuntu and windows. Grub will boot windows or linux... it is an advance bootloader. If you do not mind windows being on the hard drive then the easiest thing you could do is just edit windows out in the /etc/grub.conf file. Warning: You may create additional  boot problems if that is not done correctly. If this were my computer I would just erase the entire hard drive and install ubuntu thereafter. Windows is taking up uneeded drive space. Many ways to erase the hard drive. This is how I do it. I use the gparted live CD. The live CD is on sourceforge for download. http://gparted.sourceforge.net/livecd.php


How to update ImageMagick (imagick) for PHP

I believe that version 6.6.9.7 is the latest for Ubuntu 12.04.  Now there is a debate that the newer version may or may not work.  If you would like to update, you may want to try downloading the latest version, and installing it.

If using it is important, maybe you can consider upgrading Ubuntu to 13.04

Take a look at Ubuntu Updates, and click on the link under Links.


If you just want to recover the PDF file (if possible), then I suggest you go with photorec tool. You can install it using the command

sudo apt-get install testdisk

What is lost+found dir?

Information found on TLDP Page

  Linux should always go through a proper shutdown. Sometimes your
  system might crash or a power failure might take the machine down.
  Either way, at the next boot, a lengthy filesystem check (the speed of
  this check is dependent on the type of filesystem that you actually
  use. ie. ext3 is faster than ext2 because it is a journalled
  filesystem) using fsck will be done. Fsck will go through the system
  and try to recover any corrupt files that it finds. The result of this
  recovery operation will be placed in this directory.

This link would be helpful as well:
What is the purpose of the lost+found folder in Linux and Unix?


How to I connect to WIFI when installing Ubuntu

Instead of installing directly, use 'Try ubuntu', then try to look if there's an additional driver and use it.
When connected, install ubuntu.


You've provided currently no further information or error messages. Therefore here is the basic procedure.

Clone a repository via:

Team » Git » Clone

You need:

User name: git
Your private key file


How do I get the brightness buttons on a Dell Inspiron N4010 working?

Try using this boot parameter apci_osi='!Windows 2012'Command:

`sudo sed -i "s/quiet splash/quiet splash acpi_osi=\'\!Windows 2012\'/" /etc/default/grub;sudo update-grub`

if it makes things worse run this

`sudo sed -i "s/ acpi_osi=\'\!Windows 2012\'//" /etc/default/grub;sudo update-grub`


Xubuntu taking a minute plus to shut down for reboot

Given that the question has no other clues (besides the absence of shutdown log), I can only provide the answer by guessing based on my experience only.

  Is this normal?

I can't tell, but may be normal for your current setup (which I don't know how you set up the dual-boot with Linux Mint). But if you were to compare with mine, yours is not normal.

I have a quite aged, second hand, circa-2005 single-core machine. This machine has been installed with Xubuntu 14.04 to primary partition and multiboot with other distro (always changing, but Linux Mint 17 was one of them) on other partitions.

Yet, the machine can shut down Xubuntu 14.04 in less than 10 seconds--this is my normal.

  If not, what might be the cause?

From here onwards is just guessing, talking about possibilities (which I can think of, but not necessarily have experience) for your case. You may check from the listing below.

Did you setup shared partitions between Xubuntu and Linux Mint? Sharing partition such as /home may cause slow access, depending on their compatibility. However, this issue is irrelevant for sharing /swap partition.
Did you setup encrypted partitions on Xubuntu? Unmounting encrypted partition may behave differently than non-encrypted ones.
Did you setup RAID array for your Xubuntu? Occasional bug may present for systems that has been installed with RAID configuration.
Which Xubuntu release are you using? Regular releases such as 14.10, 15.04 etc. occasionally introduce issues which are not present on LTS releases. Booting or shutdown issue could be one of them. Read the release note of your release on this Ubuntu Wiki.
Is the partition where Xubuntu been installed has disk error or having corrupted filesystem? You could use fsck to check disk error (backup first, because running fsck may have risk of making any corrupted filesystem even worse), or see if reinstalling Xubuntu will make any difference (as last resort).

Besides above, if Linux Mint boots and shutdown fine on the same hard disk, there is likely something amiss with your current setup for Xubuntu. That is all I can say.

Updated: I just found this post which has similar symptoms like your case. The answer suggests "The wrong driver is loaded which prevents shutdown".


Don't extract the ISO. Save it in the same folder as wubi.exe and run Wubi and it will use the ISO.

Make sure you have the right version of wubi.exe. Either copy it from the ISO or download it from the same place you got the ISO i.e. http://releases.ubuntu.com/12.04/

Also, you can run it from a mounted ISO (not extracted) as long as you use the --force-wubi option (i.e. run wubi.exe --force-wubi)


package maneger broken. unmet dependencies

I see no reason to reinstall software center.

The "apt-get install" command needs "sudo" in front of it.

As you can see from the error message
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

I don't know what your wireless issue was, but I don't see why installing network manager would have fixed it (considering network manager is installed by default and from the messages you posted, I'm guessing you just upgraded it)


see if this helps:
scrolls down for unistalling instructions.
http://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux

1.6 Uninstalling
If you need to remove and purge an application and finally removing/purging also the application configurations files, do so by using the following commands:
sudo apt-get update
sudo apt-get remove kodi*
sudo apt-get purge kodi*
Then remove the settings folder to remove all settings and library data. This will not delete any videos or music, but just the settings and library data itself:
rm -r ~/.kodi/
or
rm -r ~/.xbmc/
for older versions before 14.0


for a relative path it is interesting where the playlist is located. --> the paths are relative... relative to what? for sure the playlist! ;-)

for example the easiest is, everything is located in the same folder... then just delete the complete paths except the filenames and that's it: track.flac
or lets assume a sampler with more than one disc in sub-folders: disc1/track.flac
or the other way round; the playlist is located in a sub-folder: ../track.flac --> ../ stands for one folder up.
and the combination; a sampler with more discs and also playlists in different sub-folders: ../disk1/track.flac

the difference for absolute or relative paths are just the leading /!

so... to combine all them together for your case, the correct relative path would be ../../Eminem/The EMINEM Anthology/074 - Patiently Waiting (ft. 50 Cent).opus (if i'm right). ;-)

--> but keep in mind changing the folder structure will in most cases also mess up relative playlists, except just renaming the playlist-folder(s).


When will Octave 3.6.1 be available to be installed?

Short answer: No

Octave is still in version 3.2 in 12.04. A bug report has been filed for Octave to be upgraded from 3.2 to 3.4 and then to 3.6.1 but no action has been taken regarding this lately.

You can possibly subscribe to the bug and get updates regarding this bug report:

How do I subscribe to a bug?

It is a community package which means it is up to the community to package and update the Universe repository.

If you really want to use the latest version, you can help fix the several bugs that is blocking the transition of Octave from 3.2 to 3.6 in the Debian repository and hopefully, the latest version will then be imported into Ubuntu repository.

Update for 12.10
Htorque has just confirmed that Octave 3.6.1-4 is in the Quantal repository. Time to rejoice.


Since Autokey is defunct, here is how I accomplished this.
First install xclip and xdotool:

sudo apt-get install xclip xdotool

Now write the text you want to paste and save it in a text file. In this example I wrote my address in a file I called address.

Now write the bash script:

#!/bin/bash
xclip -in -selection c ~/scripts/xclip-scripts/address
sleep 0.5
xdotool key ctrl+v

xclip -in -selection c tells xclip to copy the contents of the file you saved.  In this example, that file is at ~/scripts/xclip-scripts/address.

The sleep command simply allows enough time for xclip to finish copying before xdotool starts trying to paste the text.

The xdotool command actually does the pasting of the text that xclip copied from your text file.

Save your script and make it executable.

chmod +x /path/to/your/script/<script_name>

The last step is to bind a shortcut key to your script.  In Ubuntu this can be set by going to System Settings/Keyboard/Shortcuts and create a custom shortcut.


One can set the time zone environment variable for each invocation of ls like so:

TZ=utc ls -l

or set it once with:

export TZ=utc

in a shell to have it always on, for the remaining duration of the shell session.


need app to map keyboard and mouse contols to wired xbox360 controller+chatpad

Qjoypad (joysticks) is no longer supported, AntiMicro picks up where that left off.

In a terminal add the repo, update and install, with

sudo add-apt-repository ppa:ryochan7/antimicro
sudo apt-get update
sudo apt-get install antimicro

Start from dash or run antimicro from a terminal.


How to execute ubuntu command in python code?

Editing dconf/gsettings from python
You really shouldn't use os.system() for system calls anymore, it has been deprecated and totally outdated for a long time.
There are different options to edit the dconf database.
Using subprocess
Say I have a dconf path /com/gexperts/Tilix/keybindings/app-shortcuts, I can use:
import subprocess

key = "/com/gexperts/Tilix/keybindings/app-shortcuts"

subprocess.Popen([
    "dconf", "write", key, "'enabled'"
])

Mind the quoting!

In most cases however, you will also be able to use (better)gsettings. Use Gio.Settings if the value also can be set from gsettings.

Using Gio.Settings
from gi.repository import Gio

key = "com.gexperts.Tilix.Keybindings"

settings = Gio.Settings.new(key)
settings.set_string("app-shortcuts", "enabled")

See also https://lazka.github.io/pgi-docs/#Gio-2.0/classes/Settings.html#Gio.Settings and https://people.gnome.org/~gcampagna/docs/Gio-2.0/Gio.Settings.html
About gsettings/dconf
Preferences on modern Ubuntu versions are mostly stored in the dconf database in binary format. These settings can be edited directly by dconf (cli), or dconf-editor (gui). Dconf is low level, and directly editing settings via dconf extremely fast and light-weight.
In general it is however considered better practice to edit settings in the database via gsettings if possible, which is the cli frontend to dconf. The reason is that gsettings has a consistency check, safer to use.
You might find this an interesting read on gsettings: https://developer.gnome.org/gio/stable/GSettings.html
And this one on dconf: https://developer.gnome.org/dconf/unstable/dconf-tool.html
Notes

I used another path / key example since I don't run Unity.


Jpg images turn black on using cp command line

Maybe the files permissions are not correctly set. Run the following to reset permissions to default (644 for files and 755 for directories):

sudo find /usr/share/backgrounds/ -type f -exec chmod 644 {} +
sudo find /usr/share/backgrounds/ -type d -exec chmod 755 {} +


Open the directory in Nautilus of a file found with locate

If the command only replies one file with its path then use the following command:

nautilus $(dirname "$(locate /home/*special*.odt)")

dirname strips the last component of the path
nautilus ... open nautilus file manager at the given folder

But I recommend to use it like this:

nautilus "$(locate /home/*special*.odt)"

With the file as argument, the folder will be opened AND the file is selected in nautilus.


Shotwell tags - difference between 'Keywords' and 'Subject'

Answered my own question. 'Subject' is an XMP tag and 'Keywords' is an IPTC tag. Curious that there is no actual EXIF tag.


Why xcalib invert screen doesn't work with ubuntu 12.10

The gamma ramp is not defined (0), but xcalib expects multiples of 16. Installing gcm solved the issue for me:

sudo apt-get install gnome-color-manager


where to get ubuntu phone/touch daily updates for the nexus 4?

Thanks for answering

I used the method described in this (official?) one : https://wiki.ubuntu.com/Touch/Install

So how do i go about flashing these daily builds to my phone, is there a PPA and howto guide similar to the one described in the wiki (above) ?

If not a terminal command instruction would be very much appreciated, if you or anybody has the possibility and time to help me out with this.

The reson is that I keep seeing these much more developed versions popping up on youtube and other places and it seems I running a dated version, I am aware of the risks involved.


Could not apply stored configuration for monitors

Try to delete the file

~/.config/monitors.xml

I had the same problem and this worked for me.


Yes, you can format or delete the empty partitions however you like. Windows doesn't care because nothing of importance to Windows is on there (they're empty after all).

The cache integrated into your hybrid (solid state and hard disk) drives is either (1) inactive or (2) transparent which means that Ubuntu will (1) either not touch it unless told otherwise or (2) not be aware of it and the disk controller will just manage the cache without knowledge of or importance to the operating system of the hour.


If you want to search for existing files, then you should do that in Nautilus. If you want quick access to files you've used, then the Files and Folders lens is great tool. Perhaps in the future, there will be another lens for it, but at least for now, the lens searches the Zeitgeist log for file events. I think that's a good thing, because it means the system learns from my actions instead of just providing a "dumb" search.

But I do think, from a usability point of view, that both types of searches should be available from the same place. It's a work in progress :)


Ubuntu Versions in Login loop even the terminal window

Same issue happened with me few months back. Issue was with my current user through which I was trying to login. I logged into a single user mode and created a new user and try log in using new user which solved my issue. I know it's a hack but it worked :)

P.S. I'm not sure about the exact reason why it was failing with old user and working with new one.


snap install of hugo yields snap-confine elevation error

This error indicates that the snap-confine profile is not loaded as suggested by this. Snapd is dependant on the kernel version. I suspect if you install an Ubuntu kernel (eg: linux-generic (4.4)) and reboot, it will work.

Use this guide to install another kernel.


Why doesn't Ubuntu/Thunderbird save my PGP key?

I would say the easiest way to do this would be to use Enigmail.
Just install it and follow the instructions.
Quoting your link:

Thunderbird
Thunderbird supports OpenPGP through the enigmail plugin.
Enigmail is available in the "Main" repository.
sudo apt-get install enigmail
Configure OpenPGP support in Thunderbird under Enigmail->Preferences and add under GnuPG executable path. The path for GnuPG is /usr/bin/gpg.

You don't need to configure anything. No need to mess it up.


Webkit2.h, what package does it reside in?

There's no exact match, but it looks like you're looking for libwebkitgtk-dev as seen by the file list.


Application (puddletag) can not open files from second drive, only files located at /home/user/* (solved)

UPDATE: I figured out, that this program (puddletag) just had access problems- it seems, that the program can not handle NTFS partitions or idk... now I'm using (a for me better mp3 tag editor) kid3 and there are no problems- easy accessing all drives and all folders. Perfect :)


As mentioned in the comments by enzotib

Try to remove completely, then reinstall bind9: sudo apt-get purge bind9 && sudo apt-get --reinstall install bind9. You will loose local configurations, if you have them.


cant receive external mail on my ubuntu 10.10 64bit server

Do you have a firewall enabled? If yes, open the SMTP port.

The port is at:

$ cat /etc/services|grep smtp
smtp        25/tcp      mail
ssmtp       465/tcp     smtps       # SMTP over SSL


Running programs on Ubuntu with different environment

Yes all programs should work fine no matter which Window Manger you choose.


My quest to find the fastest search app for Linux

My first recommendation is ANGRYsearch. Superfast, fully configurable. You can find the official website here. To install, you need some dependencies (if not there already). In a terminal type:

sudo apt install python3-pyqt5

Then, download latest release from here. Unzip in a folder, and then from a terminal inside that folder type:

chmod +x install.sh
sudo ./install.sh

A second recommentation is regexxer. This is easier to install. From a terminal, just type: sudo apt-get install regexxer. Yet, I have not used this so I cannot tell how fast it is.


After upgrade to xubuntu 12.10 I have 2 mount points for each partition

This happened to me as well.  I was just experimenting with settings when I found a way to remove the duplicates.  It is by no means a solution, but I thought I'd share the observation.

There is a setting in Settings Editor called "/desktop-icons/style" and if you change it from the default 2 to 1 and then back to 2, the duplicates are gone...  You can alternatively run the following two lines:

xfconf-query -c xfce4-desktop -p /desktop-icons/style -s 1
xfconf-query -c xfce4-desktop -p /desktop-icons/style -s 2

I'm not really sure of the reason, this was just something I observed.  Good luck!


Purple Lines at boot (possibly initramfs decoder error)

Well, the problem is now fixed and this is what I did:
1- installed the nvidia display driver using the command "sudo ubuntu-drivers autoinstall"
This installed the latest tested drivers (It should be estable). That fixed the lines, but I got the famous purple screen of death. For those who don't know, that is a common problem in Ubuntu, Mint, Debian, etc. that happens when nvidia drivers are installed.
2- removed the display driver manager gdm3 using the terminal in the recovery mode
I boot into the recovery mode and opened the terminal there. Then I used the command "sudo apt-get remove gdm3" and rebooted.
3- removed the latest nvidia drivers, installed a older one and installed back the gdm3 display manager
Without a display manager, I could boot into the system normally, but now I have no GUI. I tried to use lightdm as as display driver instead of gdm3, but I got a different frozen screen. Then I uninstalled using the same method as before and booted into the system again.
The next step was to uninstall the nvidia drivers and to do that I used the commands "sudo dpkg -P $(dpkg -l | grep nvidia-driver | awk '{print $2}')" and "sudo apt autoremove". Then instead of using the command "sudo ubuntu-drivers autoinstall" again to install the latest drivers, I first used the command "ubuntu-drivers" to see what drivers were available and manually installed a older driver to see if it would work. for that I used the command "sudo apt install nvidia-driver-xxx" (xxx is the version that I chose. The latest version at the time of writing this is 455 and I installed version 450)
At last, I used the command "sudo apt-get install gdm3" to get a graphics back and it worked. No more lines or frozen screen.
Summary: I think that the purple lines were some kind of problem with the nouveau drivers, because as soon as I installed nvidia drivers, they were gone.
The purple screen was/is some problem with the driver version 455 and the display manager. Now I can boot normally into the system, but my second monitor isin't beeing recognized and the command "nvidia-smi" returns " Failed to initialize NVML: Driver/library version mismatch"... I will try to fix it now


Hardware MAC address change using live CD?

What network card? Some NICs store the MAC in EEPROM that can be reprogrammed by software.  If your card is setup like this, and the Linux driver exposes an interface to the EEPROM, ethtool (available in Ubuntu repos) can read/write to it.

This article looks like a good overview of the process of rewriting the MAC.  Don't blindly use the examples from there though, since they may not be suited for your card.


Gracefully close applications on shutdown

A normal shutdown gracefully closes all processes anyway - that is, it calls SIGTERM on them, then waits for them to terminate - SIGTERM being the normal way of telling a process to close and allowing it to do any clean-up work necessary before actually terminating.

That is, you don't need to worry about doing this.


Ok I accomplished my goal, but not in a precise method.
I watched /var/log/syslog which shows my bluetooth activity when I activate the bluetooth joystick

Dec 14 06:27:16 SuperComputer kernel: [ 1908.362129] input: Amazon Fire Game Controller as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8:1.0/bluetooth/hci0/hci0:41/0005:1949:0402.000F/input/input22
Dec 14 06:27:16 SuperComputer kernel: [ 1908.365299] hid-generic 0005:1949:0402.000F: input,hidraw2: BLUETOOTH HID v0.21 Gamepad [Amazon Fire Game Controller] on 00:0c:76:46:da:d9

Now I made a change to my udev rule:

#1 /etc/udev/rules.d/90-joystick.rules (changed)

SUBSYSTEMS=="hidraw", ACTION=="add", RUN+="/usr/bin/sudo -u johndoe /home/johndoe/systemscripts/joystick.sh"

Since I only have 1 bluetooth device I am concerned with, I am only looking for hidraw activity. I will look for 16.04 udev info and see if I can fine tune this to look for its address but for now, I am satified.
Also I removed passing the %p to my script

#2 /home/johndoe/systemscripts/joystick.sh

#!/bin/sh
export DISPLAY=:0.0

/usr/bin/xinput > /tmp/joystick.txt 2>&1
whoami >> /tmp/joystick.txt
/usr/bin/xinput set-int-prop "Amazon Fire Game Controller" "Device Enabled" 8 0

In my joystick.sh, I had to export display as xinput needs this to function correctly.

Now I am set!!!! When I click a button or move the joystick, once it establishes connection to bluetooth, I no longer have a crazy cursor to content with.

If anyone can give me clues or refer me to good udev info so I can fine tune this, I'd appreciate it

Hope this helps someone


Routing sound from different cards to a single output

From version 0.9.16 pulseaudio-module-loopback accepts parameters for source and sink respectively. This would be the command line terminology:

pactl load-module module-loopback source=<name_or_index> sink=<name_or_index>

By this the input source with a given name or index will be looped to the output sink with the given name or index.

If no paramter is given this module just guesses what to loop where (usually using our default sinks/sources).

The indices of a source or a sink will be listed on pacmd list-source resp. pacmd list-sinks.

Alternatively we may want to move a running input stream to a given sink. See this answer for details on how to do this).


Netplan, VLANs, and Nameservers (Where does all the info come from?)

Your configuration file states at the top, "Generated by dhcpcd from IOTDevices.dhcp".  This is not part of netplan.  You have the dhcpcd package installed, which is not part of the default Ubuntu system, and does not integrate with netplan.  You should remove this package, as well as resolvconf,  which is also not part of the standard Ubuntu network stack.
Making these changes should result in /etc/resolved.conf being restored as a symlink to the systemd-resolved managed file under /run.


Ubuntu 18.04: Why is Java CPU usage so high?

Java application high CPU usage may resort from a number of reasons. Bellow are some causes:

A poor application code with inefficient loops.
Java Virtual Machine (JVM) memory shortage.
Incoming workload.
For reference purpose visit this page.

A quick solution here will be increasing the JVM memory. This will help in the application taking more time in processing other than in Garbage Collection.
For aid on how to achieve this see the solution here.
Success in your solution!


connected secondry drive how to increase /home value

This is not difficult and is explained in detail here: Installing A New Hard Drive

To summarize the key steps.

First you need to find out what the system has called your hard drive

sudo lshw -C disk

the output will look something like this

 *-disk
       description: ATA Disk
       product: IC25N040ATCS04-0
       vendor: Hitachi
       physical id: 0
       bus info: ide@0.0
       logical name: /dev/sdb
       version: CA4OA71A
       serial: CSH405DCLSHK6B
       size: 37GB
       capacity: 37GB

Note the logical name for your new drive in this case /dev/sdb

partition the drive

sudo fdisk /dev/sdb

Select n Enter for new partition

Select p Enter for a primary one and finally

1 Enter

If it asks about the first cylinder, just type "1" and enter. (We are making 1 partition to use the whole disk, so it should start at the beginning.)

Once complete w Enter to write the partition table.

Format the drive

sudo mkfs -t ext4 /dev/sdb1

Create a mount point

mkdir /home/$USER/MyData

Setup automouunt

gksudo gedit /etc/fstab

and add this line (replacing username) with your username

 /dev/sdb1    /home/username/MyData   ext4    defaults     0        2

Save

For these changes to take effect either enter sudo mount -a or reboot and you should be good to go.

--

Alternatively you can mount your new drive as your '\home' folder in a similar way


How to run a job in several machines that have Ubuntu as operating system

There are several tools for having a kind of "parallel ssh". As you use Python, pssh should be fine. Install it with pip:

$ sudo pip install pssh

Create a pssh hosts file like this:

192.168.0.10:22
192.168.0.11:22

and then invoke:

$ pssh -h pssh-hosts -l root -A echo "Hi!"

You will asked for your password, but you can use certificates to avoid manual entering of passwords.

See more:

http://www.tecmint.com/execute-commands-on-multiple-linux-servers-using-pssh/

One important note: If you want to solve a problem in parallel, you may need MPI (Message Passing Interface). I suggest MPICH. MPI provides a standard means of communication to solve a problem collaboratively with multiple machines in parallel. Although, writing fast applications to find prime numbers/factors is nothing new.

If you have a multicore machine, use multithreading. But if you are going to use multiple computers, you will need MPI.


Install LibreOffice 3.5.0 on Ubuntu 16.04

I just found /old repo instead /stable.

http://downloadarchive.documentfoundation.org/libreoffice/old/3.5.0.3/deb/x86_64/


The UNetbootin Homepage features 3 big buttons on the top of the page. Click on the one with the penguin on it and you will receive a executable file. Open a terminal with Ctrl + Alt + T. Navigate with cd <folder-where-you-downloaded-the-file> to the folder. Mark the file as executable

sudo chmod +x unetbootin-linux-585

Start unetbootin

./unetbootin-linux-585


How to achieve fast transfers over 10Gbe

It's due to the transfer limits caused by various aspects of scp/OpenSSH.

If you look at your destination machines resources while doing lperf and scp tests you should notice that even at 5x the speed the CPU will be under a lower load with lperf than with scp , this solely due to encryption.

There is a great set of resources and patches available from the Pittsburgh Supercomputing Center, https://www.psc.edu/index.php/hpn-ssh


That's perfectly natural, the reason why the downgrade occurs is to put you back on the latest 'releases', which contains packages that are selected to work well together.
If you want the bleeding-edge version of each package run conda update --all
Hope this helps :)


Over the holidays there was a problem with the scanning server. It has been fixed, and you should get the proper tags for yours songs within the next 24hs.

Sorry for the problems it caused you  :(


FTP server with active directory integration

You can try Wing FTP Server, but it is not a freeware.


Lubuntu is not able to read file names with cyrillic characters

I managed to resolve the issue. Go to «Preferences / LXQt settings / Locale» and verify the input fields. In my case all of them except for the upmost one some how changed to «Russia - (ba_RU)». Setting them to  «Россия - русский (ru_RU)» followed by rebooting has had the desired effect.


UDEV rules for FTDI not completely working

To make a FTDI breakout work on Ubuntu:

Open the file /etc/group with root permissions:

sudo nano /etc/group

After that, search for tty:x5: and dialout:x20:

Add your user to this groups typing your username in front of each line:

tty:x5:<user>

dialout:x20:<user>

You can also use the next two commands to avoid search for the file:

sudo usermod -aG tty <user>
sudo usermod -aG dialout <user>

Where <user>, is your user name.

Finally, reboot your computer.

If you want to use udev rules, connect the FTDI Module, then run:

lsusb

This will show the vendorID and the productID. For example:

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

Where 8087 is the vendorID, and 0024 the productID.

Then, create a rule like this:

ATTRS{idVendor}="8087", ATTRS{idProduct}="0024", MODE="0660", GROUP="dialout"


How do I add an overlayfs to /etc/fstab?

From the figure-it-out-as-you-post-the-question department.

The following /etc/fstab entry successfully mounts /mnt/log-overlay on top of /var/log at boot:

overlayfs   /var/log    overlayfs   defaults,lowerdir=/var/log,upperdir=/mnt/log-overlay,comment=cloudconfig    0   2

Previous fstab entries:

LABEL=cloudimg-rootfs   /    ext4   defaults,discard    0 0
/dev/xvde   /mnt/log-overlay    auto    defaults,nobootwait,comment=cloudconfig 0   2


Power outage during apt-get upgrade broke apt-get commands

Running a series of apt-get autoremove and apt-get autoclean commands after manually deleting .deb files seems to have cleared it up.


It is called a "modeline" and is part of standard VIM. You can read all about it in the documentation typing:

:help modeline

or look on this vimwiki page

It basically allows you to set options for a specific file that are not (necessarily) included in your vimrc. Most of the times it is much more useful to set specific options per filetype in your .vimrc, but sometimes it can be very powerful to have a per-file option.


Gaming with Virtualbox, has it worked for you?

Gaming in a Virtual box is a bad idea. You wont have the great 3D support that you desire and applications that require a lot of resources will lag. Some games will probably work, like minecraft and minesweeper. But running heavy programs like Battlefield, Skyrim and similar will not work.

The reason for this is that you are basically running two operating systems within each other and the one you will be emulating will be limited to a small portion of that computers resources.

A solution to this problem is dual boot. For example you have one partition with Linux (where you are all serious and stuff) and one partition with windows (for gaming). I had this setup on my laptop for several years it works great.

There are instructions in the Ubuntu installer for how you install with a dual boot setup. The easiest is to install Windows first and then install Ubuntu.

Good luck.


How to remove kernel image (4.7-RC3) after failed installation on 16.04

I carried on searching after posting the problem, and found an answer which allowed me get on with installing and upgrading. I am not experienced enough to know if the answer I followed (below) or the solution posted by Zanna (thanks!) is better.

The solution I used was posted in this thread where Ox450 answers his own question, which is as follows:

The cause of the problem:

I checked the dpkg status of the packages:

dpkg --status linux-image-3.13.0.57-generic
dpkg --status linux-image-extra-3.13.0-57-generic

The output clearly stated that the packages were in bad state. They were "not fully installed" as I have written in the question above.

The solution:

The entries of these packages must be deleted from the status file of dpkg in order apt-get to function normally. The steps are as follows:

Make sure to make a back up of the status file if something goes wrong.

sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.backupOpen /var/lib/dpkg/status with your preferred text editor and search and delete ONLY the references of the broken packages. You must not delete anything else!

Run sudo apt-get upgrade to make sure that everything is fixed.


Help with the installation of Ubuntu 13.10

You need to explain more in detail, I am assuming you already have downloaded the Ubuntu ISO file and you want to setup a dual boot with your windows OS.
to do so I'd suggest you follow the instruction mentioned here.

First Backup

Install Ubuntu after installing windows

A Windows OS should be installed first, because its boot loader is very particular and the installer tends to overwrite the entire hard drive, wiping out any data stored on it. If Windows isn’t already installed, install it first. If you are able to partition the drive prior to installing Windows, leave space for Ubuntu during the initial partitioning process. Then you won’t have to resize your NTFS partition to make room for Ubuntu later, saving a bit of time.

When a Windows installation already occupies the entire hard drive, its partition needs to be shrunk, creating free space for the Ubuntu partition. You can do this during the Ubuntu installation procedure.

then create separate partition

Go To “Computer Management”.

1.2 Go To “Disk Management”.

1.3 Right Click on Disk you want to Partitioned, Select “Shrink Volume”.

1.4 Enter the amount of space to shrink in MB. Then click Shrink. This will create New Partitioned Disk with disk amount entered by you.

Once done you need to reboot and boot from your Ubuntu Live CD or USB (Read this for more info: http://www.ubuntu.com/download/desktop/install-desktop-latest)

When you are ready to install Ubuntu on your hard disk, click the Install Ubuntu button. The installation wizard will appear:

Click Continue

and select the desired options. Click Continue. The Installation type window appears.

Installation Type

If you want to install Ubuntu alongside you other systems (eg alongside Windows), select the Install Ubuntu alongside them.

then Click Continue and follow the on screen instructions.

For more info Have a look on these pages:

http://www.linuxbsdos.com/2014/02/01/dual-boot-windows-8-or-windows-7-and-ubuntu-13-10-with-ubuntu-on-a-btrfs-filesystem/
http://techsultan.com/install-ubuntu-13-10-dual-boot-windows-7-8/
http://www.ubuntu.com/download/desktop/install-desktop-latest


## https://askubuntu.com/users/233326/david-c I know this is old, but for future references:
## I'm sorry but that's not true. This is what I have configured and working:

ip link add gretap14 type gretap local 192.168.1.8 remote 192.168.1.5
ifconfig gretap14 up
brctl addif br14 gretap14

## And I can get dhcp (on a different subnet) from the server 192.168.1.5, in clients on the local br14. Pure bridge L2. For me, it's just a question of passing multi VLan's (Trunk) on a single wireless Link.


SDK manager in Android Studio not available

I've encountered the same issue and resolved as follow :

downloading stand alone SDK
(https://developer.android.com/sdk/index.html)
expand in SDK directory under main directory of android-studio
set the SDK path from Welcome to Android Studio window -> Project defaults -> Project
structure -> Android SDK location


Meizu Pro 5 - 13.5 GB of internal storage "used by Ubuntu"

The gps daemon has logging enabled and is consuming a large amount of disk in /userdata/android-data/gps/log

Please see https://bugs.launchpad.net/canonical-devices-system-image/+bug/1595704 which has a script to clean up the files. This is fixed in the rc-proposed channel and will be in OTA 12.


Java windows open up off-screen (multi monitor setup with Ubuntu 14.04)

ALT+TAB, then keep TABbing until you find the application you want.

ALT-SPACE to open its menu (even if you can't see it)

Press 'M' to select “Move”, then use the mouse or arrow keys to bring window into view.

source


Strictly speaking there is no way to "redirect" from old.office to new.office.

What you can do is add old.office in the same line, so that it will resolve to the same IP address:

xxx.xxx.xxx.xxx new.office old.office

Of course if you have old.office currently defined in /etc/hosts, you need to remove it.


Will ubuntu be able to detect windows if prevous grub got scraped?

The simple answer is yes, its easy to detect and windows entry to grub if windows partitions were left untouched.

A simple grub-update detected windows.


Can I Use Asp.Net as front end and MSSQL as back end?

The equivalent technology to .net on linux is the mono framework. I am not aware of any  database back-ends that can directly replace mssql (i.e. that are open sourse versions of it). Of course there are quite a few open source database systems available on linux (mysql and postgresql to name a few) that are at least as potent if not superior to mssql in a wide variety of use cases.


If redshift or f.lux don't do what you want you can try:

Night Light (for Ubuntu versions 18.04 and 20.04). This may have the same problem.
eyesome (for all Ubuntu versions 16.04+ not using Wayland). Supports three monitors independently and probably does what you want.

Disclaimer: I wrote eyesome.


Why can I only connect to my printer when ethernet is disconnected?

It seems to me that Ubuntu favours the ethernet connection when resolving the address.
This means that when you try to reach 10.23.161.x, you get the 'outside' connection; your traffic is blocked by 10.23.161.x's router firewall.

If you can use the printer's internal (private) address through the wireless network, you could try the solution from
https://superuser.com/questions/216678/ubuntu-network-priority/217510#217510 :

Right click the network icon -> Edit connections -> wlan0 [or whatever your wireless interface is called] -> ipv4 Settings -> Routes...

Tick the box with "Use this connection only for resources on its network"

After 'OK'-ing and 'Apply'-ing your way through all opened dialog boxes, you should be able to print while being connected to the wired network.
(Except perhaps if both the wired and wireless network use the same private network space (e.g. both use 192.168.002.xxx). If this is the case, and you still can't print, you might try checking whether one of the routers supports changing its network space.)


What are the advantages of using Ubuntu over Windows?

Some advantages

Ubuntu is free-of-charge, except that you need a blank DVD or a USB drive 1 GB or larger to put the installer on. Windows 10 costs about US$120 for the Home version (or about US$30 for the unsupported-by-Microsoft Home OEM version).
Ubuntu's APT package manager provides a lot of—again—free-of-charge software and makes it easy to install, uninstall, and keep updated with security fixes and other updates. You can issue two commands and know that all your software is updated to the latest version. Major software like Chrome, Firefox, and Skype work well with APT. Windows usually requires you to find, install, uninstall, and keep track of updating all your software yourself.
APT doesn't force upgrades and system restarts on you like Windows 10's Windows Update does.
A lot of Windows software has either official Ubuntu versions or alternatives that are usually free-of-charge unlike the Windows software. A few examples: Skype has an official Ubuntu version, Microsoft Office can be replaced with the free-of-charge LibreOffice, and Photoshop can be replaced with the free-of-charge GIMP.
Though it's not immune, Ubuntu isn't a big target for malware like Windows is, keeping you safer.
Ubuntu has official alternatives like Xubuntu and Lubuntu that work faster and leaner than Ubuntu on older machines while providing the same software library Ubuntu provides. This is nice if you want to breathe new life into old computers. Those official alternatives are also supported here on Ask Ubuntu.
If you try Ubuntu for a while, you'll have both Windows knowledge and some Linux knowledge. Ubuntu is one of the easier Linux distributions to use and get help with, because it's partly intended for beginners to Linux.
Other Linux distributions are more approachable after you get comfortable with Ubuntu, particularly if you get comfortable with the terminal.
If you keep your Ubuntu installer DVD or USB drive around after you install it, it also provides a Try Ubuntu without installing option that you can use to troubleshoot Windows or Ubuntu if either ever stops working on your computer or someone else's, which can come in handy.

Some drawbacks

Some Windows software doesn't have an Ubuntu version or alternative and won't run on Ubuntu through Wine or PlayOnLinux (though you can generally run this sort of software through something like VirtualBox).
Some rare hardware isn't supported on Ubuntu because some companies only make drivers for Windows and nobody else has made an Ubuntu driver for it.
Less people are available to provide support for Ubuntu than Windows. For example, you're lucky if your local computer repair shop can fix an Ubuntu problem. Luckily there are sites like Ask Ubuntu and the Ubuntu Forums.

No forced choice

You don't have to make a hard choice between Ubuntu and Windows. If you want to keep Windows around and still try Ubuntu, you can do that! There are three different ways:

Dual boot Windows and Ubuntu.

This only allows one OS to run at a time, but that OS gets the full power of the computer. You choose which OS to run when your computer is starting up.
Install VirtualBox (or some other virtual machine software) on Windows and install Ubuntu into a virtual machine on VirtualBox. Remember to install the VirtualBox Extension Pack for your VirtualBox version and to install the Guest Additions into Ubuntu so that resizing the Ubuntu window works and so that you can turn on things like the shared clipboard.

This allows both OSes to run at the same time, but the OSes have to share the computer's power. You start up VirtualBox and then the Ubuntu virtual machine to get Ubuntu running.
If you have Windows 10, install the Windows Subsystem for Linux with Ubuntu.

This allows both OSes to run at the same time, but the OSes have to share the computer's power and Ubuntu can only (officially) run terminal applications. It can't (officially) run graphical applications.


GLSL version 1.30 on 7640G, cannot run Minecraft Shaders

After looking at several,
posts:

What is the latest version of Ubuntu 14.04 on which fglrx for AMD can be installed?
What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD?
Why Radeon Users May Want to Avoid Ubuntu 16.04 LTS

And this article:

BinaryDriverHowto/AMD from Ubuntu official documentations.

The best Ubuntu version is 14.04 and any planning to use fglrx would fare better sticking with Ubuntu 14.04.

The ‘Xenial Xerus’ will not support the widely used — and widely hated
— proprietary graphics driver for AMD/ATI graphics cards.
Instead, Ubuntu “recommend[s using] open source alternatives (radeon
and amdgpu)”, and say “AMD put a lot of work into the[se] drivers, and
we back ported kernel code from Linux 4.5 to provide a better
experience.”
Phew, right?
Well kinda.
Rough edges with the (newly recommended) open-source replacements
could mean that some upgraders will encounter poorer performance under
16.04 than in Ubuntu 14.04 LTS or 15.10.
source: http://www.omgubuntu.co.uk/2016/03/ubuntu-drops-amd-catalyst-fglrx-driver-16-04

From the second answer in this post

If you are running a 14.04 installed prior to 14.04.5, and continue
installing standard updates, but DO NOT install the lts-xenial HWE
stack by hand, then fglrx should continue to work, even though the
About information in System Settings and elsewhere, will say that you
have 14.04.5.
The important part is to NOT be running the lts-xenial kernel and xorg
packages, to get fglrx to work.

Basically what this means is if you want the latest version and best performance:

Stay away from Ubuntu 16.04 if you wan to continue to use fglrx
If you want to, then take care to install the right Ubuntu 14.04 version so an upgrade will work as well.

Hopefully these resources will help you determine how best to continue using fglrx in your Ubuntu version and if an upgrade will work best.
A good installation guide can be found in this post for Ubuntu 14.04


Just boot the CD and from the menu run Check disc for defects:

If everything's ok, you should get the message Check finished: no errors found.


Unable to unset xbindkeys map for mouse buttons

You could verify that those buttons map correctly with xev | grep button and then clicking those mouse buttons to make sure they are 8 and 9. I just did this and this was the article I referenced.


If you do not need any files currently on your laptop then restart, enter BIOS, set CD-ROM as first boot device, insert Ubuntu DVD and restart again. Computer will boot of off Ubuntu DVD and then you just follow the wizard to do a clean install.

If your laptop's hardware is OK then there is no risk of it not booting so no worries there.

Here you can find it all explained: http://www.ubuntu.com/download/desktop/install-ubuntu-desktop


19.10: Thinkpad L13: Intel 9560: wifi interface suddenly disappeared

Had the same issue on ThinkPad L13. Fixed it. The issue was in the latest update of the kernel.

Reboot your machine and press shift or escape while it is loading to get to GRUB menu
Choose Advanced options
Load with a previous kernel, not the upper one (not a recovery one as well). Laptop should load normally with WiFi working
Remove bad update

sudo apt-get purge linux-image-5.3.0-40-generic

sudo apt-get purge linux-headers-5.3.0-40-generic


Easy.

Spin up another VM and install Ubuntu into it
Attach the VDI file from your old VM to the new VM
Use Nautilus to browse the other drive and recover the files


Getting rid of mounted sd card notification on ubuntu touch?

If you go into the System Settings app, and the Notification page therein, you can disable notifications for the External Drives app. That should disable the notification.


According to Epsilon History page it is bit outdated.

  May 2006 - Epsilon 13 Released
  October 2003 - Epsilon 12 Released

But main page has newer update date:

  Last updated: 30 January 2018

It is confusing.

But it starts normally if I download it as tar.bz2 archive:

wget https://www.lugaru.com/cgi-bin/send13.pl/eval/epsilon13eval.tar.bz2
tar -xjvf epsilon13eval.tar.bz2
cd epsilon13.16/
./bin/epsilon

And if I install it from deb-package:

wget https://www.lugaru.com/cgi-bin/send13.pl/eval/epsilon13eval-1.deb
sudo apt-get install gdebi-core
sudo gdebi epsilon13eval-1.deb # will satisfy all dependencies
epsilon


We had the same issue after updating from 12.04 to 14.04, same error dialog box but still able to see the printers via a browser, and a similar error message from system-config-printer --debug . Here was the solution that worked in our case:

In /etc/cups/cupsd.conf we replaced the default browsing section with:

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another
subnet.)
BrowseAllow @LOCAL
BrowsePoll printhost.yourserveraddress.com

And in /etc/cups/client.conf we added /version=1.1 to the server address:

ServerName printhost.yourserveraddress.com/version=1.1

After restarting cups with sudo service cups restart the network printers were visible and usable.

I hope you found a solution sooner than this, but I wanted to reply here as I found this question when I had this problem the other day, and hopefully it'll help anyone else updating to 14.04 a little late.


Really weird hidden dash bug involving OpenJDK and Minecraft

I use SKMC Launcher http://ci.ecocitycraft.com/job/SKMCLauncher/ as it doesnt patch minecraft directly it builds a patched version at runtime. This allows you to try different load sequences of minecraft mods.

I do use the Oracle Java and not the Open version as Minecraft seems to run better this way. I have been using this since version 1.2.5 with no issues.

As to Apport, I unistalled that as it causes more issues than solves.


I've figured out the problem. Going to mark this as solved after making this comment:
Thanks to Thomas Ward asking what the output of ifconfig -a was, I determined that eth0 is enp2s0. Some more google searching and I determined that my problem was DNS. Or rather, a lack thereof. Ubuntu's network manager is having problems getting DNS addresses. So I was able to fix this problem by adding google's DNS servers to the network profile.
8.8.8.8, 8.8.4.4
Then restarting network manager (sudo systemctl restart NetworkManager.service) and I now have internet. Further thanks to wildmanne39 of the ubuntu forums for details on Ubuntu Network Manager's problems with DNS


Boot-repair disk failed "please change to EFI mode"

All I needed to do was to press del at the Asus screen after startup which took me to BIOS? I first did something in the 'GRUB options' in 'Advanced options' of Boot-repair disk, where I disabled the boot of sta2.

At the boot menu I just 'disabled' legacy (EFI was already enabled). Then I started Boot-repair disk and a totally new screen appeared with only 1 option, the boot-repair disk. Then I had no more problems and the Boot-repair did what it should, and now Ubuntu has launched.

So I'm not sure if only disabling legacy boot was enough or if what boot repair did was needed as well.


How are two wifi adapters handled in ubuntu 17.10 by default?

Networking, and which packet goes out which interface is called "packet routing". Read man ip-route.

"Load-balancing" is hard, and not available out-of-the-box.

Failover can be done with my net-o-matic script, https://github.com/waltinator/net-o-matic.git - Watch for (WiFi) network going down, then do a user-specified thing to fix it.


Open the file /etc/network/interfaces and add the following content:

auto eth1
iface eth1 inet static
  address 10.5.15.200
  netmask 255.255.255.128
  pre-up ifconfig eth1 hw ether AA:6F:78:UI:34:34

This sets the specific values. However at the moment it is unclear what you meant with your comment on the default gateway. Could you elaborate?


This should undo anything of any significance that you did following that blog post:

sudo apt-get purge hostapd dhcp3-server

echo "auto lo
iface lo inet loopback" | sudo tee /etc/network/interfaces

sudo perl -pi -e "s/^iptables.*//g" /etc/rc.local

Note that the second command is one command over two lines. Make sure you preserve the newline when you're pasting it in or you'll roger your /etc/network/interfaces file even more.

Anyway, run these and reboot.


Can't load images from Apache2 web server

There is an error:
According to the files list given by ls, Your image file is a .jpg file, not a .png file
You may review your html code

<html>
<head>
<title>test</title>
</head>
<body>
<img src="sniky.jpg">
</body>
</html>


sssd windows domain users does not have privileges over the ubuntu gui

I solved this problem by adding the sudo group I'd created in AD to the /etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf config file.

In my case the AD group to allow sudo in the terminal was EngineeringSudo, so my 51-ubuntu-admin.conf file looks like this now.

[Configuration]
AdminIdentities=unix-group:sudo;unix-group:admin;unix-group:EngineeringSudo

This works by making your AD sudo group an "Administrator" as far as PolKit is concerned.


Netbeans 8.2 only works with Oracle JDK 8, but not with JDK 9. I had the exact same problems. (I think Netbeans 9 will work with JDK9, but it's not out yet.)


I solved it rebooting;)
I get the effect of adding me in the audio group take effect after the reboot


18.04 Gnome-Wayland Screensaver ignores configuration?

Problem does NOT appear to be due to screensaver, rather it occurs when running Kodi in Wayland AND turning your display off. When you do this, gnome-shell segfaults. You may need to leave display off a minute or two before the problem shows up.

Bug: #1789962 opened: gnome-shell segfaults in Wayland when display is turned off while Kodi running.


How to find lost disk space while switching from ubuntu to windows?and how to run windows normally after then?

First of all. Nobody stole your hard disk space. It is there. Somewhere. Whole of it. I swear.
Secondly, Ubuntu and Windows are two entirely and fundamentally different operating systems. They function completely... different. Windows has ntfs and fat partitions, Ubuntu typically has swap and ext partitions. Ubuntu can recognize Windows partitions, but Windows CANNOT recognize or identify Ubuntu partitions.

When reinstalling Windows, you tried to erase the entire hard disk, but Windows could not do that because it couldn't recognize some or all of the linux partitions. 12 GB seems like correct size for the swap partition (not recognized).

And now, the solution: you need to boot the Ubuntu installation medium in live mode. After the Live Ubuntu desktop starts, open GParted and you will see ALL the partitions on your hard drive. Including those not "seen" by Windows. Delete the ext and swap partitions. Make sure you don't delete your ntfs (Windows) partition. After applying the changes reboot, remove the Ubuntu installation medium and boot into Windows.

In Windows, go to Start and open Disk Management app. Your lost space should magically appear as empty/unformatted space on your hard disk map.

Bit of advice: it is easier if you first install Windows and Ubuntu afterwards. Much easier for beginners. For many reasons.


"Sudo: Must Be Setuid Root" error after login to diskless client

This error indicated that the /usr/bin/sudo file doesn't have the setuid attribute set. The setuid attribute means that when you execute as if you were the user that owns the file. So, sudo must be owned by root and have this set or it is not able to allow you gain root privileges. You can set this attribute by running chmod u+s /usr/bin/sudo while running as root. You may also need to change the owner to root (chown root:root /usr/bin/sudo).


Can I get an always-on-top button in windows' titlebar (alongside with minimize/maximize/close buttons)?

You can add such a button to your titlebar, however there is a very strong limitation on it. The issue is that the theme you are using must have an image for it.

In gconf-editor (Alt+F2 and enter gconf-editor), go to /apps/metacity/general and add the value above where ever you like it. eg:

menu:above,minimize,maximize,close

Now you'll probably not see a whole lot of change, since according to this blog post from the metacity developers only a few themes support it. An example of such a theme would be Crux.

Adding that button to the theme yourself will, at first glance, require you to delve into your theme's settings; more precisely its metacity-1 folder. It looks like there you would be have to edit the xml file as well as dropping some image files in the folder.


Yes it works for me - ish.

The field needs focus before you can middle-click-paste so just left click, then middle click.


High DPI Screens Configuration

Preparations

Install dConf and the Unity Tweak Tool from the Ubuntu Software Center.

Alternatively install from terminal:

sudo apt-get install dconf-editor unity-tweak-tool

Accept any other dependencies it may require. This programs let you change values for different settings of the system.

Scale the Display

Using dConf look for scale-factorUnder under com->ubuntu->user-interface. This property will change the size of many things but it will change the size of the icons you want to change.

On my laptop

Scale 8:

Scale 13:

As you can see the icons change size. You will notice other things also change size.

The scale value is specific for each display. In my examples HDMI2 is the external HDMI monitor and eDIP is the laptop integrated monitor.

  Per monitor scale factor for all user interface components. The values are stored in a dictionary where the keys are IDs of monitors and the values are the scale factors. The scale factors are not the traditional float scale factors that one might expect. Instead they are integers that need to be divided by 8 before being used as regular scale factors. That limits the number of possible scalings applied to the UI without jeopardizing flexibility (there is still enough possible scalings for all devices out there). This limiting allows for better testing since there is now only a finite number of possible scalings. The scale factor also maps directly to the grid units used in the Ubuntu UI Toolkit where one grid unit is exactly equal to 'scale factor' number of pixels.

I suggest you change the value only by 1 at first to test that you are changing the scale of the correct monitor.

Launcher Icons

If you don't like the size of the Unity Launcher then you can go into System Settings -> Appearance and change the size of the Launcher icons. This will not change back the size of the other icons.

Alternatively you can use dConf again under org->compiz->profiles->unity->plugins->unityshell modify icon-size to change the size of the Launcher Icons.

Login Screen

As of changing the size of the icons at the login screen (ubuntu-greeter) it is not as straight forward. A bug has been reported on this subject but its importance appears as undecided.

Firefox

From this site, I found that entering about:config in the Firefox address bar will let you change some settings.
Change the value of layout.css.devPixelsPerPx to 1.5 or 2. It takes a floating(Decimal) value so play with it until you like it.

Font Size (Including Firefox)

Install the Unity Tweak Tool. From here you can change the system wide font sizes. Unlike chrome this sizes will affect the fonts of Firefox interface.

Left Chrome - Right Firefox

If the websites are not viewed correctly I suggest to use zoom but the configuration of the style sheets of each website control the content.


Access a virtual host on a server in VirtualBox directly

First, you configure Virtualbox to use bridged networking

Next you install dnsmasq on your dns server. I assume this is Ubuntu with an ip address of 192.168.178.10 , adjust accordingly

sudo apt-get install dnsmasq

You then add your virtualbox server into /etc/hosts on the dns (dnsmasq) server

# Graphical
gksu gedit /etc/hosts

# Command line
sudo -e /etc/hosts

Add in your server

192.168.178.91 example.server www.example.server

You then point your clients to use your dns (dnsmasq) server for dns. You can do this with network manager, put 192.168.178.10 in as the dns server.


Networks In Ubuntu 20.04.2 LTS Stopped Working Since Last Update

Networking should be working during the Live session, did it work? If it worked something happened during the installation process. Try some of the Ubuntu flavors instead of clean Ubuntu. If only WiFi is not working, when you plug the cable and you have internet it might be just missing driver. Look for a proprietary one in your Drivers Manager. One of my laptops works only with a proprietary driver for the Wifi, otherwise it gets limited connection or simply disconnects...


Few keys suddenly stopped working altogether!

Since the same exact problem exists in both Windows and Ubuntu, it's extremely unlikely that it's a software issue causing the problem.
Instead, it's likely that you have a firmware or hardware problem.
Since keyboards rarely have firmware, the most likely explanation is that your keyboard is broken or perhaps it needs to be cleaned.
FYI: You are using an EOL operating system that needs to be replaced ASAP (Win7).  Ubuntu 16.04 is also getting close to EOL in a few months.  This might be a good opportunity to upgrade/reinstall your system.


If you can go to a command line using Alt-Ctrl-F1 then restart X. Else rebooting is the only options.


I solved the issue by using kernel 4.20 and adding these binaries to

  /lib/firmware/amdgpu

Source: Phoronix