Have you tried using apt in a terminal?
Open terminal and type the following (enter your password when prompted for it)
sudo apt update
sudo apt full-upgrade

If any error messages are shown, please post them here
But, really consider upgrading to 20.04, because the 19.10 support has officially ended, so the repositories are no longer maintained.


Why can't other machines connect to my ad-hoc wireless network?

in wpa_supplicant.conf file....

ap_scan=2
network={
ssid="gui"
key_mgmt=NONE
mode=1
 }

Can connect with non protected ad-hoc network using wpa_supplicant.

using this command....

wpa_supplicant -D **driver name** - i **interface name** -c **configuration file path** -dd

eg:

wpa_supplicant -Dwext - iwlan0 -c /home/xyz/Desktop/wpa_supplicant.conf  -dd


I do not think it is possible. That program must have superuser privileges. Because of the way the program was designed you must use sudo to run it.

The documentation is incorrect on version 16.x of Ubuntu and the software will likely be updated to suit your needs.

Edit: I belive that last line of code saying:

QObject::disconnect: Unexpected null parameter

Is the password being null (or not present)


If you create Eclipse.desktop file in .local/share/applications, then run sudo chmod a+x Eclipse.desktop and you will be able to add Eclipse to Favourites and also It's going to be visible in Applications.
[Desktop Entry]
Comment=Eclipse
Terminal=false
Name=Eclipse
Exec=/home/user/eclipse/java-2020-03/eclipse/eclipse
Type=Application
Icon=/home/user/eclipse/java-2020-03/eclipse/icon.xpm
StartupWMClass=Eclipse


just upgraded to 14.04 and my super key doesn't work and I can't find the dash either

As Akiva wrote, a fresh install would probably fix it. However, before doing that, you may want to ensure that all packages which should be installed are installed. You can do so by installing the ubuntu-desktop package.

sudo apt-get install ubuntu-desktop


Edit /etc/default/grub and replace

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with

GRUB_CMDLINE_LINUX_DEFAULT=""

then run

sudo update-grub


Open Android Studio "studio.sh" by double click on script file in ubuntu 14.04

To run Android Studio by double clicking on its icon, you will need to create a .desktop file for it:

[Desktop Entry]
Name=Android Studio
Comment=Android Studio script
Exec=/home/user/android-studio/bin/studio.sh
Icon=/home/user/android-studio/bin/studio.png
Terminal=false
Type=Application

Save the above as a file on your Desktop with a .desktop extension.

For first time it will give warning to trust on android studio.

I hope it helps.


DNS queries fail, while IP addresses work, after upgrade from Ubuntu 16.10 to 17.04 in VirtualBox

I had the same problem after upgrading. Though I didn't investigate the issue too much thus have no deep undestanding of the root cause, in my env it was fixed by editing system config file /etc/NetworkManager/NetworkManager.conf and adding the following entry to the global section: dns=dnsmasq .


At a guess, I would say that you are not trying to connect to what you think you are. Try adding the  --host=127.0.0.1 --port=3306 to explicitly set the host/port you are trying to connect to.

Also, increase verbosity with  -vvv

Check that mysqld is actually listening with

sudo ss -nlpt | grep -i mysqld

Permit all traffic on port 3306:

iptables -I INPUT -p tcp --dport 3306 -j ACCEPT


Change language encoding for file uploading

I have that happen with images, and with music files.  every time I try to upload, or add a music file to convert, I got the same error.

Its nothing wrong with the OS.  Its the file name.  I had to change all the names to English, and that fixed it.

I used  Midnight Commander to rename my files.

To install click Midnight Commander


i cann't install eclipse ADT-plugin on ubuntu12.04

According to this, that error is expected. They do not sign the Android plugin.


I can get into my administer account on my Ubuntu without typing in the password how do I disable it?

Run command :

sudo gpasswd -d $USER nopasswdlogin

Next time it will ask password.

For disable guest session follow instructions explained at How do I disable the guest session?


You can bridge the two networks
https://help.ubuntu.com/community/NetworkConnectionBridge

or route all traffic through eth0
i think this is a proper example: Trying to configure eth0 and eth1 but Failed to bring up eth1


Usb install, shows cursor only after choosing language in install

Try booting into the live environment and installing from there, if it fails there you most likely have a problem that the computer is unable to mount any drives other than the root usb drive, or the image did not write correctly. Verify you downloaded the image properly and it burned right and then check that the hard drive is connected and that smart data is good. Also, in my experience I've found it is always easier to just burn a dvd and use that as the installation medium, it's cheap and permanent.


error while installing apache on Ubuntu 18.04.1 LTS

Your image shows there is already a program running that uses port 80.
To find what program is that using port:

sudo lsof -i :80

With the pid you can find the program:

ps aux | grep <pid>

You need to stop and disable the program before starting apache


Your main soundcard is the 2nd one (the first is HDMI soundcard, attached to HDMI screen plug) .

So , in Alsamixer, press F6 , select 2nd soundcard : you will see more faders .Then set volumes and unmute faders (using arrow keys and "m" key to unmute. )

You can also install and run pavucontrol (Pulseaudio volume control) to access the 2nd sound card in the "output device" tab (click green button near it to make it default)


Unable to find a medium containing live file system: USB ports shutdown during Ubuntu install

Solution

It turns out some of the boot options probably interfered with the USB ports' functionality during install. I believe apci=off may have controlled some power settings.

What worked for me was booting with the options nomodeset and noapic. I needed the nomodeset to get past the graphical problems.


Eye of gnome image bug with ATI graphic driver

The same experience here.
There is a weird workaround: in preference, you could select the color Black as the custom background color. Somehow this background color is mixed with the picture itself.


When the code looks like:

class Foo {
    public static void main(String[] args) {
        System.out.println("Hello world");
    }
}

you need to run java Foo in the directory containing Foo.class (after compiling with javac Foo.java). If you're in a different directory, say ~ where the class file is located at ~/bar/Foo.class, you need to set the classpath before running java:

CLASSPATH=~/bar java Foo

If you're using packages, e.g.:

package bar;
class Foo {
    public static void main(String[] args) {
        System.out.println("Hello world");
    }
}

then you need to save it to path/bar/Foo.java and compile path/bar/Foo.class with javac path/bar/Foo.java and run from path/:

java bar.Foo


How do I install Ubuntu 16.04 in VirtualBox with Ubuntu 16.04 as host? When I try installing it says there is not enough space

When installing Ubuntu in VirtualBox we should assign at least as much virtual hard disk space as we need. For Ubuntu >= 17.04 this would be at least 10 GB.

  We rarely need to be that tight in hard drive space and when assigning the minimum we will very soon be face with a low hard drive space error.

So on installating we should choose to create a dynamically allocated  hard disk file (which for good reason is the default) which can be up to 2 TB:

This drive will only use as much physical space as needed (the 2 TB Testing drive is not yet in use):

So for a testing Ubuntu VM I usually allocate 25 to 30 GB dynamically growing disks but there is no harm done if you make it larger and it would be much more complicated to grow a too small disk later.


Samba user does not have folder read permission

For the lazy, there's system-config-samba in the repository ( requires X though) through which you can configure your samba server a la windows point and click way.
Samba user by default are separate from linux users, unless you configure samba to use /etc/passwd for user management, and in which case your samba server will forward the underlying permissions.
Or you could let samba do its own thing, in which case you would have to map the samba user(s) to one or more linux user(s) and samba will write in the file system as the linux users for you.
Either ways, don't forget to sudo service smbd restart after you change something.


This is a bug. Please report it the developers by pressing Alt+F2, entering ubuntu-bug unity and following the instructions. You might want to link to this question in your bug report to give the developers more information.


how to avoid others connect to my port in XRPD

This is quite unusual...When using xRDP, each user get a different session on the server....What you are describing would be the behavior of VNC software where a user can indeed connect to the same session (shadowing) and share the screen....

Which version of Ubuntu are you running (lsb_release -a )
Which version of xrdp are you running (check by typing xrdp -v)
Are you starting a remote desktop client(Microsoft RDP - Remmina -
xfreerdp) using the correct protocol (RDP and not vnc)
How do you perform your remote connection ? (in the XRDP login page,
are you selecting the option Xorg ?)

From a windows machine, the following process should happen

start your remote desktop client
type in ip address or hostname
the xRDP login screen should be displayed to you
do not change anything and provide your user name and password
if everything is ok, you should see your desktop loading and you can start working remotely

Hope this help

Til next time

See ya


DXTn texture support, no "Enable S3TC..." option

Have a look: http://en.wikipedia.org/wiki/S3_Texture_Compression

  While S3 Graphics is no longer a competitor in the graphics
  accelerator market, license fees are still levied and collected for
  the use of S3TC technology, for example in game consoles and graphics
  cards. The patent-encumbered status of S3TC and its wide use in
  software, despite non-encumbered alternatives, have led to a de facto
  requirement for OpenGL drivers to support it and present a major
  obstacle to open source implementations.

Which explains why Nouveau driver does not support it. I guess you need to switch to the binary NVidia drivers.


Show an application in the "Select Application" dialog list

Gnome requires that the Exec value contains a placeholder for the file(s) or URL(s). Use %f for a single file and %F for multiple files. See the Desktop Entry Specification for the valid placeholders.
You may also need to run sudo update-desktop-database after your changes to get gnome to pick up on your modifications.


Script for initiating ssh connection for port forwarding, and then execute vnc viewer on client's computer

You have to stick the SSH connection in the background. The ampersand at the end of the command does that and I'm passing in the N flag too to stop a shell running on the remote end (saves a handful of resources and stops SSH getting stroppy about having a console connected):

#/bin/bash
ssh -NL 5900:${1}:5900 user@${1} &
sleep 1
vncviewer 127.0.0.1:5900

I used to do something similar but run x11vnc on the remote computer, on demand. This had the additional side-effect that it was only up while x11vnc was running... And that quits after the first disconnect (desirable!):

#/bin/bash
ssh -L 5900:${1}:5900 user@${1} "x11vnc" &
vncviewer 127.0.0.1:5900


You would probably get your answer on launchpad answers (For the screenlets project): https://answers.launchpad.net/screenlets


Installing printer Epson SX235W in Ubuntu 14.04

You need to download the driver from Epson Drivers Site.

Search there for your printer (enter "SX235"), download deb files according to your architecture (amd64 or i386).

I recommend first choice "full feature" driver.

Copy them to "Epson" folder in your home folder and run in terminal

sudo dpkg -i ~/Epson/*.deb
sudo apt-get install -f

But before Ubuntu could download Epson drivers automatically, when you add an Epson printer in System Settings. Did you try that?

Same way you can install scanner driver. Download iscan and iscan-data packages and install them same way. For current Ubuntu releases you need to download packages with ltdl7 in name.

Also iscan-network can be installed for scanning over the net.

To setup network plugin you need to add line net <your_printer_ip> to file /etc/epkowa.conf.


Ubuntu usb wont work on ASUS t100 transformerbook

You need a customized version of the distro,  See the posts and files available on the Asus T100 Ubuntu Google+ group


407 Proxy Authentication Required when trying to install a package but there's no proxy

From your command line, see if can you do the following:

$ echo "GET / HTTP/1.1
>
> " | nc repo.mongodb.org 80

note pay attention to the quotes, there are two returns in the string pipped to netcat (may be called nc on your system).  You should get a response like below.  If netcat is not installed, then you can use telnet as well if it happens to be installed.

  HTTP/1.1 400 Bad Request Server: CloudFront Date: Thu, 06 Aug 2015
  17:39:05 GMT Content-Type: text/html Content-Length: 551 Connection:
  close X-Cache: Error from cloudfront Via: 1.1
  7dcd2c4f2f9e03bee8b952ac4503c140.cloudfront.net (CloudFront)
  X-Amz-Cf-Id: A4aLCzPa4Wfqfp5eKZRWTLrU79JdCrd7C0lDPfyj39fynCyZr_SI0A==

  ERROR: The request could not be satisfied
  ERROR The request could not be satisfied.  Bad request.    Generated by cloudfront (CloudFront) Request ID:
  A4aLCzPa4Wfqfp5eKZRWTLrU79JdCrd7C0lDPfyj39fynCyZr_SI0A==

If you do not get that, then your HTTP connection is being intercepted by a proxy of some sort, possibly a TCP proxy or transparent proxy - and you would need to talk with your network provider for more information.


Can't log to my Ubuntu session after power failure

Try in a terminal to run this command: :

mv ~/.config ~/.config-old

Then logging out and logging back in.

Or, maybe this post can be helpful for you.


Update Manager won't collect upgrades for me

You seem to have added software sources that are not the Ubuntu official repositories. It is very likely that you wanted to "Add a PPA".

The immediate method to get rid of your problem is by doing the following: in the Ubuntu menu, search for 'Software Sources' and lauch it. Then in the 'Other Software tab', see which checkboxes are checked or not. Uncheck all the boxes under "Independent", "Independent" being excluded. Run the Update Manager again, it should work.

If you still want to add PPAs, follow those instructions: What are PPAs and how do I use them?. Anyway, welcome on Ask Ubuntu!


How to determine if window is maximised or minimised from bash script

Retrieve info on the window state

You can get the info (and a lot more) from the command:

xprop -id <window_id>

To get what you are specifically looking for:

xprop -id 0x04c00010 | grep "_NET_WM_STATE(ATOM)"

The output will look like:

_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_HIDDEN

on a window that is maximized (h + v) and minimized at the same time, or just

_NET_WM_STATE(ATOM) =

(or no output at all) if none of those is the case.

More fun

Of course, using various languages, you can use Wnck, like in the python snippet below. (snippet from window-shuffler). The snippet outputs a list, showing the window name + either True or False (minimized).

#!/usr/bin/env python3
import gi
gi.require_version('Wnck', '3.0')
from gi.repository import Wnck

def get_winlist(scr=None, selecttype=None):
    """
    get the window list. possible args: screen, select_type, in case it is
    already fetched elsewhere. select type is optional, to fetch only
    specific window types.
    """
    if not scr:
        scr = Wnck.Screen.get_default()
        scr.force_update()
    windows = scr.get_windows()
    if selecttype:
        windows = [w for w in windows if check_windowtype(w, selecttype)]
    return windows

wlist = get_winlist()
for w in wlist:
    print(w.get_name(), ",", w.is_maximized())

Output looks like:

Wnck.Window - Classes - Wnck 3.0 - Mozilla Firefox , True
Postvak IN - vlijm@planet.nl - Mozilla Thunderbird , True
Showtime , False
settingsexample.vala - Visual Studio Code , False
*Niet-opgeslagen document 1 - gedit , False
desktop_weather , False
Tilix: Standaard , False

N.B.

xprop will handel both hex (as output from e.g. wmctrl) and decimal (as output from e.g. xdotool) id's equally e.g. either use:

xprop -id 111371626

or

xprop -id 0x06a3656a

Methods will not work on Wayland!


You can set this in Lubuntu from the Preferences / Language Support application.

If the language of your choice is not already installed, install it using the "Install/Remove Languages..." button.  Then drag it to the top of the list.

Then click the "Apply System-Wide" button.

Now, log out and back in.  Lxpanel and all other menus will be displayed in your selected language.

---Before---

---After----


How can I backup media from a tablet to my Ubuntu desktop?

short answer: install the rsync deamon on your linux box, then install the rsync tool of your choice on your tablet and then run the backup from the Android device.

long answer

start the rsync daemon (see for example http://www.fredshack.com/docs/rsync.html). you can do this just once, or make sure it is always loaded at boot by adding it to the /etc/initd.conf
for example use "rsync backup for Android" it is very straightforward and get the job done (see https://sensortower.com/android/de/michal-kowalczuk/app/rsync-backup-for-android/eu.kowalczuk.rsync4android for more info)
3.1 make sue your Linux and Android boxes are on the same (wifi) network (includes being powered on etc.)

3.2 on your Linux box type ifconfig and identify your relevant ip-address

3.3 fire up the "rsync backup for Android" on the small device, click [menu] and then [add profile]

3.4 there you fill out all the details (including the ip-address of the Linux box and the rsync options (you might want to consult the man pages, but -av is probably what you need). Then click [Save profile]

3.5 execute the backup from the device

PS: optional: configure your Linux box to use  a fixed ip-address

... total cost $0.00


How to make Java GUI programs look more modern?

See: https://stackoverflow.com/questions/209731/how-do-i-force-get-to-use-gtklookandfeel-in-java-on-kde

You can hint to the JVM to use a different "Look and Feel" (LAF). There are a number of shipped LAFs available to the VM, and a few that are specific to some operating systems (i.e. The Windows LAF is only available on Windows.)

I suspect you are seeing the "Metal" LAF, which is pretty ugly (and happens to be the default if the developer does not specify a different LAF for a GUI app). You can try to force the GTK (or Nimbus, if you have the right version of the VM) LAF as suggested in this link. It will be something like this:

java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel YourAppName

You will have to substitute the application name for YourAppName. Or you might have to edit a file if your app is being started up via a Java launcher of some kind. The idea is that you want to add this Java define ("-Dswing.defaultlaf=...") to the VM arguments somehow.

Since you are using the Oracle Java 8 VM, you might even want to try the nice new javax.swing.plaf.nimbus.NimbusLookAndFeel.

Refs: How to Set the Look and Feel


how to manually provision juju on multiple servers

The Juju client is installed on your 'user-space' computer which can then get the Juju State Server up and running on one of your machines. To get all three of these machines in one environment you'll first want to get MAAS set up. Take a look at MAAS http://www.ubuntu.com/cloud/tools/maas whos documentation can be found here: http://maas.ubuntu.com/docs1.5/install.html


What is Namoroka, and should I have it instead of Minefield or Firefox 4?

Taken from the firefox wiki:

  After Firefox3.5 ("Shiretoko") is
  released, the next version of Firefox
  will be developed under the project
  name "Namoroka". The Firefox version
  number will be "3.6" and the Gecko
  Platform version number will be
  "1.9.2". The release will be shipped
  as a minor update to users, replacing
  Firefox 3.5 ("Shiretoko").

  Namoroka is to be an incremental
  release, building upon the success of
  Firefox 3.5.

you can get more information here

Firefox 4 is currently in RC (Release Candidate) mode, meaning its nearing its final launch date. While I'm using it for my day to day browsing its safe to keep your Namoroka install until 4.0 reaches its release date

Minefield was/is the name of the nightly build of FireFox 4. A little snippet about Firefox Minefield:

  WARNING: THIS IS NOT A FINAL VERSION OF FIREFOX. This program is provided without any guarantees of stability and you should back up your profile regularly as there may be bugs that corrupt your data. If that sounds scary, please use the latest version of Firefox.

What this should mean to you, is unless you're willing to deal with breaking changes, constantly, dont run minefield. Its distributed as a public-test release of FireFox so the community can Quality Check the build before it hits a 'near stable' milestone.


Open gnome-terminal via Ubuntu dash or via shortcut ctrl+alt+t and paste following commands:

Download driver from Samsung site (link is dead, download the linux version from http://www.samsung.com/levant/support/model/SL-M2020/SAU)

wget 'http://org.downloadcenter.samsung.com/downloadfile/ContentsFile.aspx?CDSite=UNI_LEVANT&CttFileID=5999976&CDCttType=DR&ModelType=N&ModelName=SL-M2020&VPath=DR/201503/20150311160833703/ULD_v1.00.35.tar.gz'

Unpack it

tar zxvf ULD_v1.00.35.tar.gz

Install driver, with sudo command you need to enter your root password.

sudo ./uld/install.sh

Now, you should be able to to add your printer via Printers program. Add it as network printer or simply plug it in via USB and it should work.


How to remove obsolete packages after failed release upgrade via do-release-upgrade on Ubuntu?

Test this:
Open a terminal (press Ctrl+Alt+T).
Run this:
sudo -i

apt-get update
apt-get autoremove
apt-get clean

UNUSCONF=$(dpkg -l|grep "^rc" | awk '{print $2}')
apt-get remove --purge $UNUSCONF

NEWKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')

ADDKERNEL="linux-(image|headers|ubuntu-modules|restricted-modules)"

METAKERNEL="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"

UNUSKERNELS=$(dpkg -l | awk '{print $2}' | grep -E $ADDKERNEL | grep -vE $METAKERNEL | grep -v $NEWKERNEL)

apt-get remove --purge $UNUSKERNELS

update-grub


How to get a drive formatted with exfat working?

Turns out the packages from the official repositories do the trick. Just install exfat-utils and exfat-fuse packages using the package manager of your choice, or just using apt-get from the command line:

sudo apt-get install exfat-utils exfat-fuse

This should delivery a working exfat file system (read and write support, but not formatting the drives with exfat via Gnome Disks and GParted).

From 13.04+ it hasn't been necessary but if you're using 12.04 you might need to reboot your computer before you can mount your exfat partition. If it isn't working for you after installing the packages, try rebooting.


You have to press Ctrl + Shift + u  (for Unicode characters) then add the respective hexadecimal number of your symbol, which you can get from the Character Map (gucharmap) and press enter. In your case this would be 2013 or 2010.


First, I highly advise against using ntfs on linux this way.

Second, you can not change ownership or permissions with mount --bind

You can try mounting the partition with the permissions option, then the usual commands chown and chmod should work.

If that does not work, see https://www.tuxera.com/community/ntfs-3g-manual/#7


Prevent extraneous formatting of apt output

For the use in scripts, dumb terminals etc. there is apt-get, see man apt:

  apt provides a high-level commandline interface for the package management system. It is intended as an end user interface and enables some
         options better suited for interactive usage by default compared to more specialized APT tools like apt-get(8) and apt-cache(8).

  SCRIPT USAGE AND DIFFERENCES FROM OTHER APT TOOLS

  The apt(8) commandline is designed as an end-user tool and it may change behavior between versions. While it tries not to break backward
         compatibility this is not guaranteed either if a change seems beneficial for interactive use.

  All features of apt(8) are available in dedicated APT tools like apt-get(8) and apt-cache(8) as well.  apt(8) just changes the default value of
         some options (see apt.conf(5) and specifically the Binary scope). So you should prefer using these commands (potentially with some additional
         options enabled) in your scripts as they keep backward compatibility as much as possible.


It's not anywhere near 1 GB larger. In fact, since the Lubuntu 18.04 installer ISO is about 1 GB, it might be hanging on to the package installer files it downloaded while you were upgrading your system.

You can try cleaning up APT packages and package installer files which might not be needed anymore by opening a terminal (press Ctrl+Alt+T) and running:

sudo apt autoremove --purge
sudo apt clean


Installing Ubuntu problem "the partition assigned to starts at an offset"

Just switch from ext to xfs format, fixed the problem from me


Append letter before previous name in folder. (Rename)

User prename command:

$ prename -nv 's/^(.*)$/A$1/' *.wav
1.wav renamed as A1.wav
2.wav renamed as A2.wav
3.wav renamed as A3.wav

The way this reads is simple:

*.wav allows the shell to expand the wild card to list of all files that end with .wav. When the shell runs the full command, the computer will see prename -nv 's/^(.*)$/A$1/' 1.wav 2.wav 3.wav and so on as the actual command.
The 's/^(.*)$/A$1/' is actually is s/PATTERN/REPLACEMENT regular expression with grouping (.*), which allows us to group the whole name of the file from beginning ^ to end $ and refer to it as $1.

Note that -nv switches are for verbose -v and dry-run -n. If you're happy with the test run, remove -n to apply actual renaming.


Installed Ubuntu alongside Windows 10 can't get into Ubuntu now

I only have a BIOS, so I don't think that my Windows is installed in UEFI. Also, when first tried installing Ubuntu, I chose the UEFI way

This statement is internally inconsistent. If you could choose a UEFI boot option, then you have an EFI, not a BIOS. (Note that UEFI is Unified EFI, aka EFI 2.x. I use "EFI" to refer to any variety of EFI, including UEFI, as "EFI" is the more general term.) You're probably confused because of the bad habit of many manufacturers to refer to their EFIs as BIOSes. I suspect they do this because many people have at least a vague idea of what a BIOS is, and as an EFI fills a similar role, it's easier for the manufacturer to use the term "BIOS" where they really should be using "EFI" or "UEFI"; but this practice creates confusion because people like you see "BIOS" in the documentation or computer's screens and think they've got a BIOS. People also see "BIOS" and drag in BIOS-specific knowledge that's just plain wrong on EFI-based computers. In fact, though, BIOS and EFI are two entirely different types of firmware, much like a pickup truck and airplane are two entirely different types of vehicle.

You may want to read more background information on what EFIs are, how they work, and how they differ from BIOSes:

Adam Williamson's blog entry on how EFI works -- This page describes the theory behind EFI-mode booting.
A question and answers on the differences between BIOS and EFI booting on Superuser.com -- This provides the basics of the preceding, but is more concise.
My page on installing Linux on EFI systems -- This page is a more practical introduction to EFI-mode booting than Adam Williamson's blog.
My page on the CSM -- This page covers the Compatibility Support Module (CSM), including when it's useful and when it's not.
The Ubuntu community wiki entry on UEFI -- This page is a bit disjointed, but is the most Ubuntu-specific introduction to EFI and its issues.

  I chose the UEFI way and it told me, that windows was not installed in UEFI and that there will be a problem, so I chose the normal (SATA) way and then it didn't show any option.

This reveals more confusion over terminology. Serial ATA (SATA) is a hardware standard for connecting hard disks to computer motherboards or disk controller cards. It makes no sense in the context in which you've used it. I suspect you mean BIOS/CSM/legacy.

It's certainly possible to install Windows in BIOS mode, but all computers that shipped from major manufacturers (Dell, HP, Acer, Sony, etc.) with Windows 10 installed shipped with it installed to boot in EFI mode. Thus, chances are you either installed Windows yourself in BIOS mode or you're misinterpreting or mis-remembering the error message you saw. It's hard to know which of these is the case (or if it's something more exotic) without more information, and understanding your current configuration is critical for fixing it.

I realize that this is a long response and it doesn't come close to answering your question. Unfortunately, you haven't provided the details necessary for me to do more than guess about your real issue. If you want more help, please run the Boot Repair utility from an Ubuntu installer in its "try before installing" mode and select the "Create BootInfo Summary" option. (DO NOT click "Recommended Repair," at least not yet!) When asked whether to upload the report, click "Yes," and then post the URL provided here. This will give us more details about your configuration, which is required to base an answer on more than guesswork.

EDIT:  Based on your Boot Repair summary, it looks like your computer is EFI-based, but both Windows and Ubuntu are installed in BIOS/CSM/legacy mode. GRUB (the Ubuntu boot loader) is installed to the MBR of /dev/sda, and the Windows boot loader is installed to the MBR of /dev/sdb. Ubuntu and Windows seem to be installed mostly to /dev/sda and /dev/sdb, respectively, although there's one NTFS partition on /dev/sda.

Thus, it looks like your system is set up correctly, at least in terms of on-disk data structures. Chances are your booting straight to Windows is caused by the boot order in your firmware. I recommend launching the firmware setup utility and adjusting the boot order so that what Linux calls /dev/sda (a Hitachi HDP72505 disk) is first in the boot order. Unfortunately, the details of how to do this vary greatly from one computer to another. You usually access the setup utility by hitting Esc, Enter, or a function key shortly after powering on the computer, before the GRUB menu or any OS-specific messages appear. If you need more help with this, or can't find a boot order option, you should ask the manufacturer or ask on a manufacturer-centric forum.

As you asked about it, it is possible to convert both Windows and Ubuntu to boot in EFI mode; however, the process is tedious and runs a risk of making matters worse. Thus, I don't recommend doing this unless you become desperate -- and even then, only if you back up your important data first. You could try this new Microsoft tool or this older procedure to convert Windows from BIOS-mode to EFI-mode booting. For Ubuntu, you could install my rEFInd boot manager after converting Windows or run Boot Repair from an EFI-mode boot (which is how you booted it to get the summary data). In either case, you'll need an EFI System Partition (ESP), which the Windows conversion process should create.


Reducing power consumption of Intel chipset

You can try laptop mode tools. You properbly need to read a bit about it. I use it and with that I come close to windows battery life.

I don't know about xubuntu, but in ubuntu you can do;

sudo apt-get install laptop-mode-tools

and install it. laptop mode tools should make most of those 'bad' into 'good'

Do you have another graphics card in your laptop ?

EDIT:
In powertop you can also see how many watt is approximately used. You can also see this using battercare in windows. You can use this to compare under different circumstances/loads. And it's a bit fun. :)


Download SolarisStudio12.2-linux-x86-tar-ML.tar.bz2 (note that this is not the rpm version) for generic Linux from the link given in above post. You also need JDK on your system. Download and extract latest from http://www.oracle.com/technetwork/java/javase/downloads/index.html.

After extracting the solstudio archive, navigate to that location and run the shell script as root. That will do away with the permission errors.

sudo ./[scriptname].sh

Next add the sol-studio and jdk bin directories to PATH variable. This can be done permanently by adding the following lines to /home/[user]/.bashrc at the end:

PATH=$PATH:/home/[user]/jdk1.6.0_23/bin:/home/[user]/solstudio/solstudio12.2/bin
export PATH

[Replace the paths for jdk and solstudio with those where you extracted them].

Make the bash profile active by running

source ~/.bashrc

Once the path is set, run the IDE from terminal normally:

solstudio &

Some of this info is also available in one of the read-me files extracted along with the main directory.


Installing Ubuntu 18.04 on Inspiron 13 7375 AMD

If you are still interesting in this question -
I solved same problem by adding noacpi noapic nomodeset to grub command
and setting FastBoot to "Thorough" and Virtualization(maybe that's don't needed) to Disabled in BIOS(1.4.1)

I found that here

Also, everything working exclude HandleLidSwitch


Yes, you can run it with --desktop to manage the desktop.

pcmanfm --desktop

For more info see: man pcmanfm. You can add it to startup applications or just take nautilus example below:

$ more /etc/xdg/autostart/nautilus-autostart.desktop
[Desktop Entry]
Type=Application
Name=Files
Exec=nautilus -n
OnlyShowIn=GNOME;Unity;
AutostartCondition=GSettings org.gnome.desktop.background show-desktop-icons
NoDisplay=true
X-Ubuntu-Gettext-Domain=nautilus


To get it straight:

This is a backslash: \
This is a slash: /

They are named accordingly in the Xmodmap files.

If in doubt, run the xev program from the console and read its output.


Getting Dependency is not satisfiable: libgcrypt11 in Lubuntu 16.04

libgcrypt11 package is not available for Xenial. Instead it has newer libgcrypt20.

You can follow these steps to install Brackets in Xenial.

Download and install libgcrypt11 for trusty from here http://packages.ubuntu.com/trusty/libgcrypt11
Install the brackets from the website (by downloading the deb and using dpkg). Check this question if you need help regarding this

How do I install a .deb file via the command line?

Note: I have Brackets installed in Xenial. The above steps is verified by a Bracket contributor here


Ubuntu booting screen missing in 15.04 desktop

I think you can't fix it this is depends on your graphics card driver the default have normal ubuntu animation and if you change the driver the boot maybe look diferent (i was changed my and is displaying only Ubuntu 14.04 text and blinking dots). If you have the default one maybe somewhere is a problem try install Super Boot Manager and change Plymouth.


I would recommend you to first rely on the OFFICIAL Documentation rather than on other tutorials. You should first check out the official documentation for the article and then if you don't understand the things that those people are doing, you should search for some other articles. Here is the link to that article. You can read that article and then ask any questions here if you don't understand any part of it.


I installed again with this script from https://gist.github.com/henriquemoody/3288681. It now almost works (gives a small error when starting from terminal, I'll ask the script-creator about that).

Thanks for helping!


Install penetration tool on Ubuntu 11.10

Blackbuntu is a distribution changing quite a lot of ubuntu. But you can look to their tool list to see what packages they are using:
http://www.blackbuntu.com/tools-list

After you see a tool you are interested to, google it - e,g, "ubuntu install httprint".

Another way of using Blackbuntu is to install virtualbox and run a blackbuntu instance within a virtual pc. That would keep your daily working ubuntu installation clean.


I don't have an "extract" option when right-clicking .tar.gz files? How else can I run these?

Depending on the file manager you are using you may need additional packages:

file-roller  - archive manager that supports tar files etc
nemo-fileroller - plugin for the Nemo file manager (only) that enables the the Right Click extract button

You can install them via apt-get - e.g sudo apt-get install file-roller. You may also be able to do this from and installed graphical package managers such as the Software Center or Synaptic.

Alternatively, you may be able to open the archive via Right Click > Open With 'Archive Manager' or similar. You can use command line as well:

tar xf archive.tar.gz

Tar should recognize any extra format (source) and use the appropriate decompress or (e.g gunzip (gz))

N.B. tar files are files that can contain files and folders in one file (without compression). Gunzip, 7zip, etc can be used to compress tar files to reduce their size, making file names such as archive.tar.gz or archive.tar.7z etc. Sort of similar to .zip files


Netplan did not change my newly set IP address?

Your yaml file clearly states:

renderer: NetworkManager

If you are running Network Manager, it is recommended that you make your static IP declaration there:

I suggest that you revert the yaml file to defaults:

network:
  version: 2
  renderer: NetworkManager

And follow with:

sudo netplan generate
sudo netplan apply

Reboot.


Failed to install Grive tools on Ubuntu 12.04

Ubuntu 12.04 is NOT officially supported because of dependency issues and besides
 THIS PROJECT IS NO LONGER SUPPORTED DUE TO GOOGLE DRIVE API CHANGES .
Here is the installation instruction of "overGrive", the new Google Drive client.

Step 1:  Download the latest version of overGrive (.deb) here.

Step 2: Launch overGrive from launcher

Step 3: A window will appear - click on Connect account.
Then a  browser window will open for you to sign in to your Google account.

Step 4: At the end you will get a code.
Copy that code and paste it into the overGrive window at Account entry box and click validate.

Step 5: After setting your preferences (like location, etc.) click Start Sync.

Reference here


Keyboard shortcut for application menu dropdown

In the standard Ubuntu Desktop (Gnome Shell), try Super+F10 to open the Application menu.


How to set the monitor to its native resolution when xrandr approach isn't working?

BadName means it interprets the .00 as special characters.  Simply change the name of the new mode by removing the decimal and everything after but appending a single letter or maybe try VGA.  Note there are double quotes around the newmode name, but not when adding it to a specific output nor setting the mode of the monitor.

$ cp off your xorg.conf file just in case.
$ xrandr --newmode "1600x900_60VGA"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
$ xrandr --verbose --addmode VGA-0 1600x900_60VGA
$ xrandr --verbose --output VGA-0 --mode 1600x900_60VGA


Rhythmbox Plugin To Browse Your Music By Folders

I too was looking for this feature. It can be done as follows:

I wanted to play songs based on folder, which is not possible using default.

Using Edit - Preferences, add the Location field.  Then sort by this field by clicking the header of the column.

This image shows how to play songs by folder.


Lost bluetooth functionality after upgrading from 17.04 to 17.10

I've upgraded Kubuntu from 17.04 to 17.10 yesterday.

Mostly the same issue for me, I'm no longer able to connect my bluetooth speaker (RYGHT TANK) even though my bluetooth service is running.

Here is my sudo service bluetooth status and dmesg | grep -i blue results:

soul@soul-ZBOX-ID88-ID89-ID90:~$ sudo service bluetooth status
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2017-10-27 23:50:19 CEST; 5min ago
     Docs: man:bluetoothd(8)
 Main PID: 11613 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─11613 /usr/lib/bluetooth/bluetoothd

oct. 27 23:50:18 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Starting Bluetooth service...
oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 bluetoothd[11613]: Bluetooth daemon 5.46
oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Started Bluetooth service.
oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 bluetoothd[11613]: Starting SDP server
oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 bluetoothd[11613]: Bluetooth management interface 1.14 initialized

soul@soul-ZBOX-ID88-ID89-ID90:~$ dmesg | grep -i blue
[   21.008903] Bluetooth: Core ver 2.22
[   21.008918] Bluetooth: HCI device and connection manager initialized
[   21.008920] Bluetooth: HCI socket layer initialized
[   21.008922] Bluetooth: L2CAP socket layer initialized
[   21.008927] Bluetooth: SCO socket layer initialized
[   31.455093] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   31.455095] Bluetooth: BNEP filters: protocol multicast
[   31.455098] Bluetooth: BNEP socket layer initialized
[  116.012720] Bluetooth: RFCOMM TTY layer initialized
[  116.012730] Bluetooth: RFCOMM socket layer initialized
[  116.012738] Bluetooth: RFCOMM ver 1.11

A print screen of the message after trying to connect:
connecting failure

Any idea?

EDIT (11/05):

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2017-11-05 09:42:42 CET; 7h ago
     Docs: man:bluetoothd(8)
 Main PID: 958 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─958 /usr/lib/bluetooth/bluetoothd

nov. 05 09:42:40 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Starting Bluetooth service...
nov. 05 09:42:40 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: Bluetooth daemon 5.46
nov. 05 09:42:42 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: Starting SDP server
nov. 05 09:42:42 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: Bluetooth management interface 1.14 initialized
nov. 05 09:42:42 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Started Bluetooth service.
nov. 05 16:32:46 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: a2dp-sink profile connect failed for FC:58:FA:55:F4:68: Protocol not available
nov. 05 16:32:54 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: a2dp-sink profile connect failed for FC:58:FA:55:F4:68: Protocol not available
nov. 05 16:33:02 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: a2dp-sink profile connect failed for FC:58:FA:55:F4:68: Protocol not available

EDIT (11/05) (after having installed pulseaudio-module-bluetooth):

soul@soul-ZBOX-ID88-ID89-ID90:~$ service bluetooth status
    ● bluetooth.service - Bluetooth service
       Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
       Active: active (running) since Sun 2017-11-05 17:05:04 CET; 3min 32s ago
         Docs: man:bluetoothd(8)
     Main PID: 875 (bluetoothd)
       Status: "Running"
        Tasks: 1 (limit: 4915)
       CGroup: /system.slice/bluetooth.service
               └─875 /usr/lib/bluetooth/bluetoothd

    nov. 05 17:04:57 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Starting Bluetooth service...
    nov. 05 17:04:58 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Bluetooth daemon 5.46
    nov. 05 17:05:04 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Started Bluetooth service.
    nov. 05 17:05:04 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Starting SDP server
    nov. 05 17:05:05 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Bluetooth management interface 1.14 initialized
    nov. 05 17:06:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSource
    nov. 05 17:06:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSink
    nov. 05 17:07:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
    nov. 05 17:07:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: connect error: Connection refused (111)
    nov. 05 17:07:26 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: connect error: Connection refused (111)

EDIT (11/05 got it!):
I ended up with a solution:

sudo apt install kmix
reboot

then

sudo apt install pulseaudio-module-bluetooth
reboot
pactl load-module module-bluetooth-discover

(last command may fail)

Then remove all your saved bluetooth devices and pair them again.

Do not forget to set the bluetooth devices at the top of the list of audio configuration:


How to auto-complete commands by typing first letter?

I might not understand the question but you could put an alias for various commands in .bashrc which is located in your home directory.

as an example to be more specific

choose your editor

sudo gedit `/.bashrc

add the following line (preferably near the bottom and don't forget to use # to describe your alias for future reference)

alias z='df -h'

you may need to reload .bashrc

if you have multiple entries you wish to add it is suggested in the original .bashrc file to create a seperate .bashrc_aliases file.


Windows 10 Guest freezes on initial boot under virtualbox in Ubuntu 16.04

You may have an old version of VirtualBox.

I had this problem with a Windows 10 guest on a Ubuntu 16.04 host and solved it by removing VirtualBox 5.0.40 (sudo apt-get autoremove 'virtualbox*') and then installing VirtualBox 5.1.24.  https://www.virtualbox.org/wiki/Linux_Downloads

Use VirtualBox --help to see your version of VirtualBox.


The key combination you're looking for is Control-x Control-e. It's listed in output of bind -p:

$ bind -p | grep edit
"\C-x\C-e": edit-and-execute-command


In a MAAS/juju setup, is it possible to deploy multiple charms (eg. mysql and wordpress) on one single MAAS node?

--to is what you looking for:

juju deploy wordpress --to 0
juju deploy mysql --to 0

Will deploy to the same 0 node.

References and examples:

https://jujucharms.com/docs/stable/charms-deploying#deploying-to-specific-machines-and-containers


Multitouch to singletouch on touchscreen Xubuntu 16.04

Ok. So VLC (2.2.2) doesn't support multitouch so in order to interact with DVD menu, I installed touchegg and configured an action for one finger only.

Works like a charm now.

install touchegg : sudo apt-get install touchegg

my touchegg.conf

<touchégg>

<settings>
    <property name="composed_gestures_time">0</property>
</settings>

<application name="vlc, VLC, Vlc">

<gesture type="TAP" fingers="1" direction="">
        <action type="MOUSE_CLICK">BUTTON=1</action>
    </gesture>

</application>


I had a similar issue with ubuntu gnome 14.04 (Gnome 13.10). I have followed the same steps you mentioned, installing cuda 6.5 and removing 5.5 (that comes with the standard ubuntu repositories). After that cat /proc/driver/nvidia/version/ gave no results.

Moreover rebooting resulted in a failure in loading the login screen (the screen was fixed on the gnome splash screen). I could login with command line, using the command ALt + Ctrl + F1, but I wasn't able to have the GUI working.

After a day of trial and error of recovery attempts (and many Ubuntu reinstalls), I've found that the problem was gdm, so I solved my problem installing lightdm and rebooting with it. This was needed only for the first reboot after cuda installation, then I could revert to gdm.

Hope it helps.


Ubuntu Brainstorm was indeed shutdown/sunsetted. The data will be available to the community as soon as it's anonymized. There hasn't really been an announcement after that post.

I talked about Brainstorm a bit in this interview:

https://soundcloud.com/stack-exchange/stack-exchange-podcast-48

(Fast forward to 12:30 if you just want to listen to the part about Brainstorm).


See this thread - I had the same similar issue for my 12.04 installation except the resolution was being set too low. Turning off the screen saver fixed it.


Can't open Catalyst with administrative privileges

I got it working (on Xubuntu 12.04) using

sudo -s

and then as root run

amdcccle

Configuring in the AMD Catalyst resulted in a proper configuration at the login screen.

To get it working after login I had to change settings through the "Settings editor"
 then unfold "display" find the display you have on the right, unfold "position" and as x-position enter the x-resolution of your left display. This moves the image of the right display to the right. Log out and in again to see the result.


Most likely it is because your flash drive has FAT32 format and your BIOS can't see it (because it is old). After I have formatted my flash drive with FAT16 everything went fine.

I have used 2gb flash drive and Rufus software to make bootable drive. I have tried to use larger flash drive (8gb) but my BIOS still had the same error.
So if you use Rufus choose FAT option (which means FAT16) while making bootable drive.

BTW: If you have only 1gb flash drive you can write the Lubuntu (it is light weight).


Limit phpMyAdmin installed by apt to one Apache Virtual host

Disable phpmyadmin in apache2.conf.
Enable in virtual host for you choice.
phpMyAdmin /etc/apache2/sites-enabled/yourvirtualhost.conf
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
</Directory>


You can change the from address using mailx. Mailx is a Unix command line utility used to send emails from the command line. It is just a newer version of the mail command. If you do not have mailx, you can get it by running

sudo apt-get install mailutils

To send an email with a different from address, use mailx like this

echo 'This is the email body.' | mailx -a 'From:name <the_email_address>'  -s 'a subject if needed'

Aliases are used for when you want to have multiple email addresses for the same email, which does not apply to you in this situation. You can learn more about mailx by using

man mailx


taken from Launchpad:

[Workaround Option 1/3]

To reset your MySQL configuration back to defaults,
type "sudo update-alternatives --remove my.cnf /etc/mysql/my.cnf.migrated" after the upgrade.
Then use "sudo service mysql start" to start the MySQL daemon
and "sudo apt-get -f install" to recover your system packaging state.


Install unrar to open and extract rar archives.

Open the terminal with ctrl + alt + t
Run

sudo apt install unrar

Now file-roller should open and extract rar archives without error.

If you cannot install unrar, you need to activate the multiverse repository; but, I assume you have them activated as they are by default.


Disable auto-mount for particular partitions on USB drives

for this purpose I'm using the following line in /etc/fstab and i've not done any modification in gnome...  it works in ubuntu 11.04

# Prevent mounting specific partition on external hd
UUID=57f8f4bc-abf4-0000-675f-946fc0f9f25b none ext4 ro,noauto

there are two differences between my fstab and yours:

I use partition UUID instead of LABEL
I set 'none' as mount point

I don't know which is the difference that makes my config working, but I'd bet the second one..

(if you want to get the UUID of the partition you can use the command sudo blkid)


Does Ubuntu come with disk partitioning in the installer?

Yes.  It will allow you to manipulate your partitions.  Always be careful when dealing or using partitioning software.  When you get to the Installation type screen, that's where you can create/modify partitions

For more info you may look at Manual disk partitioning guide for Ubuntu


SkylakeX Hyperthreading Bug and Microcode Update

Skylake-X with the up-to-date intel-microcode package that addresses Spectre, etc. has the hyperthreading fix.


How to use the webcam's microphone in Skype?

First check the input tab, if your webcam mic is there, select the radio button beside it.
If it isn't listed. Go into the hardware tab. Select the webcam input and change the Profile below. Then go into the input tab and select the radio button.

If it is selected in the input tab, it should work in Skype.


adding executable file to path and launching from terminal directly

To answer it in simple way.

If you have installed the sublime app using ppa

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

then you can invoke the app using sublime through the command in terminal.

But if you have downloaded the .tar.gz file from here then you have to create a .desktop file invoke from unity launcher or create a alias and invoke from terminal.


14.04. Unity gone. Tried everything in the forums. Nothing will bring it back

Open Virtual Console via CTRL + ALT + F1
Reinstall unity , ubuntu desktop and lightdm using the command line below

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

Check your unity by re-run it.

unity

read the error line shown on the console
If it match the Error message shown blow , Go To Step 4. otherwise (if no Error log   displayed) ,re-install your driver and reboot your device .

Error : plugin "opengl" could not be loaded

restore xorg.conf files amd reset plugins

sudo mv /etc/X11/xorg.conf.XXXXXXXX /usr/share/X11/xorg.conf.d/xorg.conf

export DISPLAY=:0

gsettings reset org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins

reboot your PC


Upgrade to 13.04 dialog still offering Development Release (ALPHA), not stable one

You don't need to look for -d versions anymore. It might come up normally.

But if not, do these steps:

Open the Ubuntu Software Center and under Edit > Software Sources > Updates you will find a Notify me of a new Ubuntu version option, from the drop box select For any new version.


If you have any system-wide program that blocks it, maybe you'll find some entries with grep.

sudo grep facebook /etc/ -rs

It's also possible that you've blocked hosts with a DNS service like OpenDNS. Try to change your DNS servers using Network Manager in Gnome Settings. You can use CloudFlare's DNS.

It could be a firewall as well. Look for any rules in your iptables:

sudo iptables -S


Installation Error on Netbook with 12.04

Unless you're dead set on using Ubuntu, I would try installing Xubuntu or Even Lubuntu. I have an older eeepc (2G Surf) and this worked for me.

Also try installing Ubuntu from an external CD drive.


How to reload environmental variables in .profile using source for entire session?

You cannot. Environment variables are kept in each shell's per-process memory. Other processes (other shells, like the one you want to change eveything) cannot access this memory. Nor does bash listen to a socket for getting updates.

Reread man bash, especially the INVOCATION section.

~/.profile is more a ksh startup file. However, you could put source $HOME/.profile in your ~/.bashrc.


AMD driver does not work on kernel 3.19.0-26

This is an Ubuntu bug resulting in an incompatibility between kernel 3.19.0-26 and the fglrx-updates package.

You can boot with the previous 3.19.0-25 kernel using grub.

This bug has been fixed already, but the new package did not reach the stable repository yet. It is released today and will reach main server today. Local mirrors may be updated a bit later.

You can download and install the patched package for 15.04 now from HERE

BugLink

To fix it now press Ctrl+Alt+F1 when you get stuck on black screen.
Then log into the console and run there:

sudo apt-get remove linux-image-3.19.0-26-generic
sudo reboot

But after you see fglrx-updates package is updated, you will need to run:

sudo apt-get install linux-generic

to restore the meta package to get kernels updated.

For Ubuntu 14.04.3 run:

sudo apt-get install linux-generic-lts-vivid

instead of the previous command.

Update Now this issue is completely resolved in repositories.


I didnt see the answer here but I had a smilar problem with my netbook. Go to advanced boot options and disable acpi. This show allow the NAS to boot and display on screen. Hope this helps.


Proxy settings should be in Network settings.
Like System->Preferences->Network Proxy

Here is a similar question.

How do system wide proxy settings work?


how to search program in /usr/sbin via DASH

You'll need to make a .desktop file for it and it needs to contain Terminal=true so that running it will also open your preferred terminal. You place the desktop file in either /usr/share/applications/appname.desktop if you want it for all users in the system, or in $HOME/.local/share/applications/appname.desktop if you only want it for yourself.

The desktop entry specification can be found here: http://standards.freedesktop.org/desktop-entry-spec/latest/

And remember to run update-desktop-database afterwards so you don't have to log out and back in for it to work.


#!/bin/bash

sleep 11 &&

<your_script> -c ~/.<your_scriptrc>

#!/bin/bash tells the computer you want it to do the following in bash, sleep 11 && tells the computer to wait 11 seconds
(increase or decrease the time as needed).


How can I restore my previous version of Linux after a bad video driver install?

How did you install the driver ? You can probably just remove it or delete/move your xorg.conf

Boot to recovery mode, start a root shell. You will be at the command line without a graphical interface

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.ati

exit the root shell, and continue with a normal boot

exit


Firefox default language keeps changing automatically to arabic

Go to Edit -> Preferences -> Contents tab and click the Choose... button to see the preferred languages. You can remove Arabic or Move Down to make it less preferred.

As you can see on the upper part of the window, this setting is for displaying web pages offered in more than one language. So it have nothing to do with browser language nor with any locales.


network:
  version: 2
  renderer: networkd
  ethernets:
    ens3:
      addresses: [192.168.3.15/24]
      dhcp4: no
      routes:
       - to: 0.0.0.0/0
         via: 192.168.3.1
         metric: 100
         table: 101
      routing-policy:
       - from: 192.168.3.0/24
         table: 101
    ens2:
      addresses: [192.168.5.100/24]
      dhcp4: no
      gateway4: 192.168.5.1
      nameservers:
        addresses: [1.1.1.1]

This has been confirmed by 'cyphermox' on IRC, lead developer on netplan.io.
Check with ip route and ip rule if systemd has created everything needed and if not restart it -> sudo service systemd-networkd restart


Comment not answer.  I have the same problem described above after trying to add flash to Chromium, via advice(?) found in the community.  Now I don't have flash on either Firefox or Chromium.  I would also appreciate help for a path forward.


Something like that maybe :

#!/bin/bash

while read LINE ; do
 [[ -n "`echo $LINE | awk '{print " "$NF}' | grep ' 00:'`" ]] && echo "$LINE" | tee -a test1.txt
 [[ -n "`echo $LINE | awk '{print " "$NF}' | grep ' 01:'`" ]] && echo "$LINE" | tee -a test2.txt
 [[ -n "`echo $LINE | awk '{print " "$NF}' | grep ' 02:'`" ]] && echo "$LINE" | tee -a test3.txt
done < test.txt

Where :

while read LINE ; do ; done < FILE

is a loop that reads every line of FILE

[[ -n "`<command>`" ]] &&

means : if <command> outputs a non-zero lenght string, then...

echo "these are something"| awk {print $NF} | grep 'thing'

means : read "these are something", keep only the last column, and see if "thing" is in it.

echo "something" | tee -a FILE

means : I print "something" in FILE, without overwriting anything and by creating it if it doesn't exist yet.


Pointing Devices, syndaemon, touchpad sensibility (Macbook Pro)

Well, I think I may have found a solution, with a direct edition of the paremeters for the touchpad from the g-conf-editor.

You have first to install G-conf-editor from the Ubuntu Software Center or via the terminal (sudo apt-get install gconf-editor).

Then switch to the subfolder Desktop > Gnome > Periphericals > bcm5974 where you can check or uncheck the options you need. I checked everything: disable_tapping, palm_detection, palm_detection_depth, palm_detection_width.

After one hour writing stuff with LibreOffice, seems like the touchpad is disabled at last when typping...


Can't use GTK Inspector for gnome-terminal

I've found the solution, I'm using GTK+ 3.22 for reference, just need to turn on this setting:
gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true

And then the "Help" menu of gnome-terminal will show a "Inspector" item you just need to click it.
This is for the VTE widget only:
Alternatively, if you are using jhbuild, the vte module has a test program for the vte widget (that gnome-terminal uses) so you can run it like this:
# inside jhbuild/checkout/vte
GTK_DEBUG=interactive src/testvte

Update:
On 20.04, the "Inspector" link is in the gnome-terminal window's "hamburger‑menu‑button > Advanced" submenu.


Ubuntu Server 14.04 does not boot upon restart following fresh installation

You might try install another kernel. Sometimes additional kernel needs to be installed. You can run Ubuntu from USB, run a terminal, mount the system to /mnt, and install new kernel from here:

http://kernel.ubuntu.com/~kernel-ppa/mainline/

for example this one (when you are using AMD64):

http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.10-trusty/

EDIT:
You need to make sudo su - firstly. Mount your main filesystem: sudo mount /dev/sda1 /mnt.

You can then chroot to the system:

chroot /mnt

and install new kernel:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.10-trusty/linux-headers-3.13.11-03131110-generic_3.13.11-03131110.201410302136_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.10-trusty/linux-headers-3.13.11-03131110_3.13.11-03131110.201410302136_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.10-trusty/linux-image-3.13.11-03131110-generic_3.13.11-03131110.201410302136_amd64.deb
dpkg -i *.deb


simon listens 4.0 build - further - error

Note: We built Simon on Raspbian (Raspberry Pi) (Was a bad idea anyway). This should help you out too.

QAccessibilityClientConfig.cmake
qaccessibilityclient-config.cmake

aptitiude install libqaccessibilityclient0 libaccessibility-dev

WARNING: OpenCV was not found. Please specify OpenCV directory using OpenCV_DIR

aptitude install libopencv-dev

LibSampleRate  http://www.mega-nerd.com/SRC/

aptitude install libsamplerate0-dev

You will also need:

aptitude install libboost-dev

I also needed the following packages to compile successfully:

aptitude install libasound2-dev libxtst-dev
aptitude install bison
aptitude install libqwt6 libqwt-dev
aptitude install kdepimlibs5-dev kdepimlibs

It seems that Pocketsphinx and Sphinxbase are allready on your system. But you will also need Sphinxtrain. You will need to compile it from source (Note: they have to be in the same directory). Get it here:

http://sourceforge.net/projects/cmusphinx/files/

or try the HTK Speech Modul

http://htk.eng.cam.ac.uk/download.shtml

Those who try to compile Simon on a armhf Based Platform will get the error message:

error: no matching function for call to 'qBound(double, qreal, qreal)'

replace the doubles to float around line 222 in qwt_bars_item.cpp, and line 65 qwt_bars_item.h

/tmp/simon/sam/src/qwt_bars_item.cpp:222
/tmp/simon/sam/src/qwt_bars_item.h:65

Those steps should result in a successful build of Simon.

To use Simon, make sure you have Julius and libqt4-sql-sqlite installed.


Pass array to function parameter in terminal inside for loop

You seem to be expecting the shell to generate some kind of anonymous array variable - AFAIK that's not possible in bash.

The simple approach is to pass individual arguments (which may contain whitespace, if properly quoted) and then refer to them with "$@"

myfunc ()
{
    group=("$@");
    for i in "${group[@]}"
    do
        printf "%s\n" "$i"
    done
}

then for example

$ myfunc "one nine" "two" "three four five"
one nine
two
three four five

although in this particular case I don't see any benefit of the additional array variable - you may as well just loop over "$@" directly:

myfunc ()
{
    for i in "$@"
    do
        printf "%s\n" "$i"
    done
}

If you just want it to "look like an array" in the calling context, then the only way I can think to do that would be to pass it as a string e.g. myfunc '("one nine" "two" "three four five")' and then eval the assignment inside your function eval group="$1" but I do not recommend doing that.


When I redirect Maven commands, the file looks wrongly encoded

The program mvn, whatever it is, wants to colorize its output and seems to do this even if standard output is not a terminal. Look for an option to disable colorizing the output.

Hat tip to @Douglas: it appears that the required option is mvn -B.


Error 101: Network is unreachable when trying to update

Have you tried changing the repository to the 'Main server'?

You can change it by opening 'Software & Updates' and selecting a different mirror.

From time to time the local repository mirrors go down so its always a good idea to check other ones ;)

I have also noticed that it is trying to connect via IPv6 which your router or ISP may not support. Have you tried this?


Check your /etc/network/interfaces file,
it should contain:

auto ens192
iface ens192 inet dhcp

or for static:

auto ens192
iface ens192 inet static
#params


If you need absolutely to do it from the liveusb then choose something else then select that large partition as the root partition / and use the same username and password and it should just save your home folder and documents, but it will not retain packages in any way reliably.


Step 1: Go to packages.ubuntu.com and download the python2.7-minimal package for your release of Ubuntu.

Step 2: Use dpkg to install python2.7-minimal Often that's enough to restore apt to functioning.

Example:

 sudo dpkg --install /path/to/wherever/I/downloaded/python2.7-minimal_package_name.deb

Obviously, that's not an exact command for you to copy-and-paste. You must determine the path and the exact package name.

Step 3: Then you can use apt for the rest:

sudo apt install python


Mp-bios bug:8254 timer not connected to io-apic error on Vostro 1000 LiveUsb

This error occurs because the BIOS incorrectly reports the ExtIntA I/O APIC input is cascaded from the 8259A (Programmable Interrupt Timer) as the timer interrupt input.

There is a kernel workaround, I believe booting with the kernel parameter "noapic" may help. So, when the LiveCD image first boots, hit F6 and a pop-up menu will appear; select the "noapic" option.

See "Changing the CD's Default Boot Options" in the Boot Options Wiki


How do I password protect my webservers document root?

The easiest way is to use a htaccess-file to require a password authentification. Take a look at this guide, it is really simple:

http://www.htaccesstools.com/articles/password-protection/


How can I ensure that Ubuntu 16.04.3 Python libraries installed with pip stay within the virtual environment

You can only install packages into your system installation as root. When inside your virtual environment you shouldn't need to use "sudo" when installing any packages because the entire environment is owned by your user. If you get any "permission denied" errors when running pip in your virtualenv as non-root then there is something broken with the packages installer and it's trying to install into your system installation.


Has Ubuntu 16.04 failled to fetch repository information or is my computer software up to date? (different case)

i've also been struggling to add the extras repository...
it's just not there...

anyone who's saying it's working must be lying or must be interpreting the data wrong on his screen...
you can check it yourself; in your webbrowser go to http://extras.ubuntu.com
you'll get the root directory of the repository on your screen... the first thing ubuntu will do is go into dists and check for the correct version info...
as you can all see; there is no xenial directory available (as of yet).

and as long as there is not xenial directory, we won't be able to use the extras repository under 16.04 without possible flaws.
you COULD use the version for 14.04 (trusty tahr).
what you need to do then is change the info in your "software and updates" settings; edit the extras repository and change the line to let it looklike this;
deb http://extras.ubuntu.com/ubuntu trusty main
now there won't be an error when you update your repositories (or do apt update) but if you use software out of this repository it could end up damaging your system as it is designed for an older system; so i would definitely not recommend it; only if you really need some apps that are in there of which you are sure that they don't mess up the system, then it'd say go for it (let's say apps like a game or a paint program; but don't get any system tools out of it because they could really harm your system (ie things could've changed between trusty and xenial, and those old tools don't know that; they make changes according to the trusty settings but your computer is expecting xenial settings; a lot of things stay the same between xenial and trusty, but some things have changed too. if you modify one of those changed ones with outdated software you could render your system useless (constant crashing or even data loss in the worst case... If you really know what youre doing, then go ahead off course!)


how to manually install hid-logitech-dj module?

Try:

modprobe hid-logitech-dj

then disconnect and reconnect the receiver.
This worked for me on a desktop Ubuntu. Of course this is not persistent, but was enough for using ltunify for pairing.

For a persistent setup you will have to tinker with udev rules...


Update manager and sudo apt-get give the following message" E: The method Driver/usr/lib/apt/methods/http// could not be found

Check your software source, somewhere you are using http//: instead of http://


How to create a read-only link to a directory?

You can create a read-only bind-mount.

mount --bind /path/to/source/ /path/to/dest/
mount -o bind,remount,ro /path/to/dest

Yes, this must be done in two steps in kernels after Linux kernels 2.6.25 (see the link above for why).

Or, alternatively, as an /etc/fstab line example ref:

/path/to/source/ /path/to/dest/ none bind,ro

In either approach, a bind mount lives in the Virtual Filesystem layer (VFS), so this it's not specific to any filesystem, nor do you really 'mount' anything. So, basically, this is creating a sort of symbolic link for you, but this doesn't show up as such.

And to reply on the comment below on data loss... no, these instructions do not remove any files. In case you have files present on the destination path, this mount will lay over this. Just unmount to be able to list your files in the path on the filesystem underneath. Even better; in general, avoid mounting on top of an non-empty destination path.


Lubuntu 13.04 How to install entire repo?

That is certainly possible, but then the repo owner should provide a meta package which lists all the other packages as requirements. I don't think there's any command that performs apt-get install * as doing so would hardly ever make any kind of sense. The ubuntu-desktop package is a meta package that does nothing except list other packages to install. If it makes sense to install the entire repo in your case, I'd look for that kind of package.


Graphics corrupt after upgrade from 11.10 to 12.04

Did you try this one: http://www.samael.me.uk/2012/05/how-to-fix-nvidia-graphics-issue-in.html ?
Maybe it helps. It is just a beta driver, however, available for
32-Bit at: download.nvidia.com/XFree86/Linux-x86/302.07/NVIDIA-Linux-x86-302.07.run
and for 64-Bit at:
download.nvidia.com/XFree86/Linux-x86_64/302.07/NVIDIA-Linux-x86_64-302.07.run


Using juju with maas worked at first but is now giving 503 error gomaasapi

Someone (could have been me) had done something clever trying to proxy redirect web services using the same apache which is servicing maas.
This was in /etc/apache2/sites-enabled
This breaks /MAAS
<VirtualHost *:80 >
 ServerName example.com
 ServerAlias www.example.com

 ProxyPass / http://10.0.0.151:6543/
</VirtualHost >

Be sure to include a ProxyPass /MAAS ! directive BEFORE ALL of the proxy pass directives.
This allows MAAS to continue to work while proxying
<VirtualHost *:80 >
 ServerName example.com
 ServerAlias www.example.com

 ProxyPass /MAAS !
 ProxyPass / http://10.0.0.151:6543/
</VirtualHost >

So that the /MAAS urls are not proxied.


Error during installing skype , software update and while starting ubuntu

Make sure you already download skype

wget http://www.skype.com/go/getskype-linux-beta-ubuntu-64

A file named getskype-linux-beta-ubuntu-64 has been downloaded in your home directory. This is the latest Skype package.

Add the 32bit architecture

sudo dpkg --add-architecture i386
sudo apt-get update

Install some essential 32-bit packages

sudo apt-get -f install -y
sudo apt-get install sni-qt:i386 -y

Finally, install skype package

sudo dpkg --install getskype-linux-beta-ubuntu-64

(Note: If you was to use the software centre for installation, you should add ".deb" at the end)

Source


Windows 7 can't boot with Ubuntu on different hard drive

I think the source of the confusion is how Grub works. Grub typically attaches itself to the MBR of your hard disk, and it is the hard disk that you have setup in the BIOS to boot first. In addition, you can select that hard disk with F12 as you already have done.

In the MBR there is the starting point for Grub, which then points to a Linux partition that contains the rest of the Grub code. The Grub code resides in the /boot directory.

So what I can guess is that you installed Grub on the MBR second (160GB) hard disk, therefore Grub can only activate when you select to boot from the second hard disk in the BIOS. This might be fine for Ubuntu, but probably messes up with the Windows booting because of drive number changes.

What I recommend is to put Grub/MBR on the first hard disk so that Grub takes over the booting of your computer. Then, you need to make sure that /boot is always accessible. Either the second hard disk is always there, or you can be a pro and create a separate /boot partition (about 500MB) and place it on the first/primary hard disk.

If you do not want to let Grub take over the computer, you can keep the Windows boot manager in charge (but you lose fancy boot options). For this, see https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows


All files become hidden in Nautilus file manager

Sometimes Nautilus lags behind on filesystem changes. I don't think I've ever experienced a delay that allowed me to post a whole question but oh well.

You can refresh Nautilus by pressing F5, or changing directory and then back.


I would presume this is a graphics issue (from the "No signal" part).

When you boot the LiveCD press enter to show the options, press F4 and pick "Safe graphics mode".

You may also want to try F6 -> acpi=off (but try "safe graphics" first).

For more information on boot options, see here: https://help.ubuntu.com/community/BootOptions


Cannot install Ubuntu 18.04 on Microsoft Surface Pro 7

I decided to go with WSL (Windows Subsystem for Linux, Ubuntu version) plus Xming X Server to get all the graphical functionalities. I can even use my pen to draw on Linux's Gimp using this combo. I got all the benefits of having a Linux and at the same time preserving the unique interface that Surface Pro 7 offers.


Why won't this php script execute bash script?

First, be sure that the shebang is exactly as follow:

#!/bin/bash

Second, be sure that the script is executable using the following command in terminal:

chmod +x /path/to/a.sh

And third, you must to use the full path for the bash script, or in your case, you can use:

$message=exec("$old/a.sh");

And, as an aside note, the following two commands from your php script have no sense:

$old = getcwd();
chdir($old);

They are equivalent with chdir(getcwd()), which change the current directory to ...the current directory, so in fact, nothing happens.


No, unfortunately there is no way to run Mac software on Ubuntu AFAIK. Wine only works with Windows software, so you're out of luck when it comes to that.

However, you may be able to use a virtual machine (VirtualBox, VMWare Player, etc) to install OSX and use iLife that way.


Ubunto 19.10 can't install Controller Update?

You could try running

sudo fwupdmgr update

from a terminal.


Backlight on/off button doesn't work on an Asus EEE PC 1005HAB

I used a Eee PC 1005HA to confirm this. Running dmesg I get:

  keyboard: can't emulate rawmode for keycode 244

The keycode refers to XF86KbdLightOnOff, so I think this is a bug.

Workaround:

Use xrandr -q to get the monitor's name, should be something like LVDS1.
Use compizconfig-settings-manager  commands plugin to set hotkeys to:

xrandr --output LVDS1 --off  change LVDS1 with your monitors name.
xrandr --auto dont use output with this command, it seems to cause window glitches.


Ubuntu 12.04: Problem running "apt-get upgrade"

Open terminal and type :

 sudo apt -f install libssl-dev

 sudo apt update

If it doesn't work :

   sudo apt-get install --reinstall libssl-dev


Do we really need to delete the home directory when we give up with encryption?

I took courage and created an encrypted mock user, say unlockMe (owing no sudo rights). On the terminal I did the following:

log in as user unlockMe
$ ecryptfs-umount-private  ## as per instructions no. 3
$ chmod 700 .  ## as per instructions no. 4; . is \home\unlockMe
$ rm -rf ~/.Private ~/.ecryptfs  ## unlike the instructions no. 5
exit the unlockMe profile
log in as another user
$ sudo ls /home/unlockMe whence I could see the unencrypted content. In contrast, in case of encrypted content, I would have rather seen the files Access-Your-Private-Data.desktop and README.txt

Also note that one does not need to uninstall the utilities (unlike instructions no. 6) -- obviously not, if other users keep on using encryption.

Tested with Ubuntu 14.04 LTS and package ecryptfs-utils version 104-0ubuntu1.14.04.4.

Out of this single experiment I would conclude that there is no need to move your data anywhere else to give up encryption.

One reserve that I still have is that these operations might not actually mean giving up encryption completely, rather making the folders visible, (breaking the outer shell, so to speak). The directory /home/.encryptfs/unlockMe still seems to be storing a lot of information in encrypted form. So it might well be that there much more going under the surface, and I await expert answers here.

Please feel free to comment, edit or post alternative answers.


Create a udev rule for when the drive is inserted, and run your backup routine (rsync or other procedure on the device).

This is a crude example to get you started.

The rule to call your backup script (/etc/udev/rules.d/10-local.rules):

ACTION=="add", RUN+="/bin/sh -c 'exec /home/userid/backupscript.sh & > /home/userid/Desktop/test.out'"

Replace userid above with your userid, or place the script in a different  path.

The backup script:

#!/bin/bash

templine=/tmp/line.$$

backuproutine () {
    # backup rountine goes here
    timestamp=$(date)
    message="This is the Backup noice."
    device=$(mount | egrep "sd.1")
    echo -e "$timestamp:$message\n$device" > $templine
    cat $templine >> /home/userid/Desktop/backupnotice.txt
}

backuproutine
rm $templine

This is a crude script, but something to get you started.

This command will provide details on how to use the udev rules.

man udev


How well does the Macbook Air work with Ubuntu?

There is a good discussion on the Apple Users section of ubuntuforums which is definitely worth a read through and contains probably the most up to date guide and experiences which others have had. You could also look at:
http://ebsi4711.blogspot.com/2010/10/ubuntu-on-macbookair31-11.html


It means that the system cannot find an appropriate driver for the device (i.e. no driver is 'claiming' it) - it should be supported by the S3 legacy driver, so I'm not sure why that would be the case.


Will Evolution still be included as an option?

If you are upgrading, then all your previous applications that you have installed will remain installed - if there is a newer version of the app, then the application will be upgraded.

Thus for evolution, your app will be upgraded - it will not be removed.

N.B. evolution remains in the repository - it is just  not installed by default in a new install.

remember - as with all major upgrades - have a valid disk image tucked away, just incase the upgrade goes wrong


How can I have 1 image stretch across multiple workspaces?

This could be accomplished by splitting the image into four different images and adding a different one on each desktop.

You could use a variety of different things to split the images. Using ImageMagick:

Open a terminal
If ImageMagick isn't installed yet, install it: sudo apt-get install imagemagick
Split it! convert imagename.png -crop 25%x100% imagename-%02d.png

25% was used above based on a setup of four desktops. If you have a different number use 100/#ofDesktops

Now, setup the compiz plugin to use them:

System --> Preferences --> CompizConfig Settings Manager
Enable "Desktop Cube"
Select "Desktop Cube" and go to the "Appearance" tab
"Add" the images you created above under "Background Images"
Make sure they are ordered correctly


Sound issues with intel audio on a laptop running 20.04


Starting a process (sudo start) on boot up

You can try it with Upstart (/etc/rc.local doesn't work for me either).

Example:

author "Your name goes here - optional"
description "What your daemon does shortly - optional"

start on started dbus
stop on stopping dbus

# console output  # if you want daemon to spit its output to console... ick
respawn # it will respawn if crashed/killed

script
   echo "Hello world!" > /home/username/test.txt # without root permissions
   sudo -u root fdisk -l > /home/username/fdisk.txt # with root permissions
end script

You would put that in /etc/init/myUpStart.conf.

Further details:

Running commands on boot in 11.10
How do I  start jobs as a non privileged user in Upstart?
Run a Job as a Different User


Why won't Steam start after a recent update?

Try to update your sources first:

sudo apt-get update

And then try again or search for steam-launcher in the Software Center for example.


Compiz will occasionally crash within 12.10 right now.  Most likely because 12.10 will run in software rendering mode rather than attempt to use 3D acceleration.

Check out this post to see if it helps:
Why does a Ubuntu guest in VirtualBox run very, very slowly?


Why unattended-upgrades does not fix heartbleed bug?

You do not have the Heartbleed vulnerability on your server, OpenSSL has been patched to fix this issue (without upgrading it).

You have left out several important lines in the OpenSSL version output, that's how you know it's been patched, not with the version number:

openssl version -a                                                                ✭
OpenSSL 1.0.1e 11 Feb 2013
built on: Mon Apr  7 20:33:19 UTC 2014
platform: debian-amd64
options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wa,--noexecstack -Wall -DOPENSSL_NO_TLS1_2_CLIENT -DOPENSSL_MAX_TLS1_2_CIPHER_LENGTH=50 -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
OPENSSLDIR: "/usr/lib/ssl"

The 'build on' line is what matters here, Apr. 7 or after: you're good. Otherwise: you're in trouble.

Update, since the build date doesn't seem to be good:

Maybe the unattended upgrade hasn't run yet, on my server the scripts in cron.daily are configured to run at 6:25

25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

Also, check the contents of /etc/apt/apt.conf.d/10periodic and check that security updates are installed:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";

Source: https://help.ubuntu.com/lts/serverguide/automatic-updates.html


Swap Partition: What to do with two different swaps, one of them encrypted?

There is no point in having more than your RAM in swap. By the time you have that much data stored there, you would have died of old age waiting for the incredibly slow hard drive to be used as RAM. The only reason you would want more than a few gigabytes is for Hibernation, which is disabled by default because of bugs. I would delete the 12 GB file, as you would need to edit /etc/fstab and set the new partition as swap. Backup your data first. The encryption of swap I have not heard of. Unless you are planning on Hibernating (which requires some small configuration, etc.) then there is no point in having more than 6GB of swap (with 6GB of ram).


It looks like this is a known bug in Ubuntu.

The fix appears to be:

  Uninstall usbip package if you've installed it.

  On trusty, install linux-tools-generic-lts-utopic. I can't seem to
  find a package that will create a binary, but you can run the binary
  manually from /usr/lib/linux-tools/. As of this writing it's
  /usr/lib/linux-tools/3.16.0-23-generic/usbip. NOTE, I am running the
  HWE utopic kernel on my trusty box.

  On utopic or vivid install linux-tools-generic. usbip is registered as
  a binary in this case, you can use directly with 'usbip'.


Problem installing Ubuntu 14.04 on a Power Mac G5

I know this question is very old, but I happened to install Lubuntu (then converted to Xubuntu) on an iMac G4 a while ago. Basically, that problem can be solved by creating the file /etc/X11/xorg.conf.d/10-monitor.conf with the following lines:

Section "Monitor"
    Identifier "Monitor0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Monitor "Monitor0"
    DefaultDepth 24
EndSection

Section "Device"
    Identifier "Card0"
    Driver "radeon"
EndSection

Pay attention to the Driver line. The iMac I was working on had an ATI video card, but you might need to tweak the line if yours has a different brand.


Brother Scanner ADS-2700W brsaneconfig4: command not found

Well, it turns out I had thought I read Brother's instructions, but I wasn't careful enough.  I was working with an ADS-1000W previously and had assumed the setup process was the same for the ADS-1000W and the ADS-2700W.
It's not.
For the ADS-1000W:
brsaneconfig4 -a name=(name your device) model=(model name) ip=xx.xx.xx.xx
For the ADS-2700W: sudo conf_ip 192.168.xxx.xxx
It works now.
Also, official Brother support didn't tell me this.


How do I remove windows after installing Ubuntu 12.04 via WUBI

You cannot remove Windows after a WUBI installation.  WUBI installs as a folder INSIDE Windows so if you delete your Windows partition, you will delete your Wubi-Ubuntu as well.

If you want to remove Windows you have 2 options.

Install Ubuntu as a dual boot and then after you know everything works you can remove your Windows.
Install Ubuntu and during installation select the option that will install Ubuntu on the entire disk.  This will reformat the entire disk and wipe Windows in the process.

If you are sure that Ubuntu will work with your system then I would recommend the second one as it is less work, just make sure to save all your important files first.

If you are not sure if Ubuntu is for you, install as a Wubi system and try it, if it works on your computer and you want to wipe Windows you can either migrate your Wubi install or just do a Standard install (if you don't do alot of changes to your Wubi install, I would just do a clean install rather than migrate).


Ubuntu 14.04 lost wlan0 connection after a certain time

It turns out my problem is because I installed the internet manager on the Ubuntu server, after uninstalling the internet manager and reconfiguring the internet settings problem solved.


After long time surfing from google. I have alternate way to fix this problem by replacing archive.ubuntu.com repo with alternate repo from https://launchpad.net/ubuntu/+archivemirrors


If I understand correctly you have changed your GNOME Keyring password and it doesn't match to your user's password that is used within the shell. In result you can't use sudo, because you don't remember this password.

If this is true, you can follow the next steps to run your system in the recovery mode and change the system user password:

Hold Shift during the boot to open the Grub menu.
Choice Advanced Options for Ubuntu, then choice the item that contains (recovery mode) at the end.
In the next menu choice root - Drop to root shell prompt and press Enter on the next question.
Remount the file system with read/write permissions:

mount -o remount,rw /

Set a new user password (where <USERNAME> is the actual user name):

passwd <USERNAME>

Restart the system. Type exit and in the menu choice resume - Resume normal boot. Or just type reboot.


Why am I getting autoconf AC_* macro errors?

Found the problem, apparently my files weren’t in the right directory causing this problem to occur.


Keyboard shortcut to minimize a window on Ubuntu 18.10

Super+H Hide Window

Alt+Esc Switch Windows Directly


How to install gnome shell extensions offline?

You are almost there. After:

copying the folder in the ~/.local/share/gnome-shell/extensions/
just restart Gnome Shell: Alt+F2 -> R ->  Enter

and the extension should appear in the gnome-tweaks tool (restart that one as well).


First unmount the sdb5

sudo umount /tmp

then mount it to your home directory  using:

sudo mount /dev/sdb5 /home

refer to mapages of mount for more details.


Looks like a CPU or RAM failure.  In the GRUB menu you should be able to find Memtest86 that you can run and test the RAM.  You can also try booting to a LiveCD and try it out and see if it still crashes.  If it doesn't crash, it is your installation that is probably corrupted.  If it does crash, then more than likely CPU, motherboard or RAM is defective.

Since your error codes are showing mce errors, I would push more towards defective hardware.

Memtest86 booting can be found at:

http://www.memtest86.com/technical.htm#boot

More information for MCE can be found at:

https://en.wikipedia.org/wiki/Machine-check_exception

Hope this helps!


It is already installed but is not seen by the launcher by default. In order to make it visible, follow the other answer posted by DK Bose.
It can be launched with the command
sudo -H software-properties-kde

as suggested in a comment by @DKBose
Or, through the Kubuntu's Software -Center (Discover), clicking Settings and the upper-right button

After having installed LXQT desktop (on top of Kubuntu), what I prefer now is to use the lxqt-sudo tool in the Exec line of the .desktop file  /usr/share/applications/software-properties-kde.desktop.
Exec=lxqt-sudo software-properties-kde

which shows the window with Qt-GUI (the Qt widget style of KDE/LXQT set under the LXQT settings) instead of GTK.

It seems that lxqt-sudo has that effect only in LXQT, and not in KDE/Plasma.


I've found this question with an extensive answer about pinning - does it apply to your case (it's from 2012, but seems to be up to date, version names aside)?


Dual-boot Ubuntu / Windows 10 on SSD + HDD

Well, here's how I would do it:

Create and format all partitions to be used by Windows only.
Install Windows 10 in either BIOS or EFI mode.
Get a few cups of coffee while this installs.
Install Ubuntu from the CD/DVD, and select to use your own partitioning (Make sure to boot from the Ubuntu DVD using the same mode you installed Windows in - BIOS or EFI).
Create the Ubuntu partitions.
Let it install Ubuntu.
Get a cup of coffee while it installs.
Check to see that it boots to the GRUB2 boot manager.
Boot into each OS and make sure both have Identical network configurations.  e.g. IP address, hostname, etc.  You might want to add an identifier to the end of the hostname to distinguish which OS you're in, like this:  MyAwesomePC-Win10 and MyAwesomePC-Linux.


Zend Studio 9 crashes after Ubuntu 14.04 upgrade - Segmentation fault

I have found a solution!

Open the ZendStudio/configuration/config.ini file and add these two lines:

org.eclipse.swt.browser.UseWebKitGTK=False
org.eclipse.swt.browser.DefaultType=mozilla

Now Zend Studio works fine.


Remove Leading or Trailing Space(s) in File or Folder Names

To remove any number of leading spaces from file names you can use rename (prename) :

rename -n 's/^ *//' *

To remove any number of trailing spaces from file names you can use rename (prename) :

rename -n 's/ *$//' *

Remove -n (dry-run) if you are satisfied with the file names.
To remove files or folders that are empty (recursively) :

find . -empty

Satisfied ? Let the action take place :

find . -empty -delete

Only in the current directory :

find . -maxdepth 1 -empty -delete

Also use -type f for only files and -type d for only directories if you want.

Read man rename and man find to get more idea.


Chrome freezes on freshly installed Ubuntu 18.10

Apart from 2 settings mentioned in the linked question, I had to disable two more flags, which helped me, but not completely. All the settings I changed:

Use hardware acceleration when available = Off
GPU rasterization = Disabled
Accelerated 2D canvas = Disabled
Out of process rasterization = Disabled

UPD. Well, after a couple of days testing, the changes above haven't helped get rid of freezes completely, but reduced them significantly. Chrome still freezes, but less often, and if it does, it does it only itself without freezing the whole Ubuntu.


Install Ubuntu 18.04 lts on Dell Inspiron 15 5000

After several days trying to solve the problem, I found this post explaining some solutions, it seems that the kernel that is using Ubuntu 18.04 has some problems with the Nvidia cards.

Using this option "nomodeset" by editing the properties of the bootable USB, this can be done by pressing the letter "e" when the advanced menu of the Grub appears:

You can check how this can be done too in this other post.

In step 1 I managed to boot the Ubuntu installer and I was able to install correctly.
When the installation is finished, and the system is rebooted, it is not booting from the hard disk, then doing the same process used for the USB installer but in this case, using the option "acpi=off" Ubuntu booted without problems in my laptop Dell Inspiron 15 5000.
The last step is to make persistent this change in Grub config file avoiding to do this process every laptop boot.

You must edit this file:

sudo nano /etc/default/grub

and then add "acpi=off" to GRUB_CMDLINE_LINUX_DEFAULT:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"
GRUB_CMDLINE_LINUX=""

And then save by hitting Ctrl+O, then exit nano with Ctrl+X, then simply run:

sudo update-grub

Final Solution and last step:

Due to the risk of disabling the acpi=off, because this controls everything related to temperature sensors, fan speed I tried a final option:

sudo ubuntu-drivers autoinstall

This installs all the default drivers including the Nvidia driver in my case with the version: nvidia-driver-390

When you do the reboot, the laptop does not do the booting, but do not worry, let doing the same procedure to pass parameters to the kernel but this time we remove the "acpi=off" and we put "nvidia-drm.modeset=1". We get out the grub edition and the laptop works correctly again but with all the functionalities that in my case were disabled as the battery sensor percent and others.

Now finally we have to make this persistent change in the grub configuration file, the final result will be this:

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia-drm.modeset=1"
GRUB_CMDLINE_LINUX=""

Save and close and do this last command:

sudo upgrade-grub

Reboot the laptop and everything will work perfectly. This solution was found here.

So enjoy your fresh Ubuntu 18.04 LTS installation.


Firefox stuck on old version and problems with held packages

I fixed this by changing the server in Software and Updates. For some reason the server I was using for the updates was misbehaving.


How do I disable the right click when pressing the right side of my trackpad?

This did it for me:
http://kernpanik.com/geekstuff/2015/01/12/disable-rightclick-synaptics.html

For me this disabled the right hand side click area without disabling two finger "right-click".

Essentially, run this:

synclient RightButtonAreaLeft=0
synclient RightButtonAreaTop=0

To persist, add a script that does this into "Startup Applications".


You can have a look at the help section of Ubuntu where you have steps to install Windows after you've installed Ubuntu or you already have it installed.

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

Also, there's a similar question which might help you

How can I install Windows after I've installed Ubuntu?