Windows installer for Ubuntu 14.04 LTS onwards

The WUBI installer is on the 14.04 ISO and works with windows up to 7. Windows 8 and Windows ME are not supported by WUBI. The only ISO that does not have WUBI is the 13.04 version (and that is end of life already)

Take note of the accepted upvote on the 1st link from a developer of WUBI. Copied parts from META:

  ...
  It has shipped on the CD and is still shipped. Primary function is to
  be a "cd autolauncher" for people who pop the cd into a Windows
  machine, at that time it says "You need to reboot, to try ubuntu!
  [reboot now]" or some such.

  If one copies the wubi.exe off the cd, it will launch and offer Wubi
  based installation.

  If one downloads wubi.exe off official release mirrors or
  releases.ubuntu.com, it also works.

  It works O.K. for all defined flavours i386/amd64 builds in BIOS mode.

  There is no confirmation if it works with UEFI, UEFI Windows 8, UEFI
  Windows 8 + SecureBoot. The last one believed to be the typical
  configurations of new computers that do not come with ubuntu
  pre-installed.

  Since it's no longer an optimal solution for the default new installs, it has been de-emphasised on the ubuntu.com/download website.

  Officially it is still supported - precise has 3 more years of support, and wubi has not yet been removed from any isos and is present to download for all releases and is present on all released .isos. (12.10, 13.04, 13.10 and 12.04.x point releases)

Mind the operating system noted not including 14.04 because this was posted before the release of 14.04. Support for WUBI has NOT dropped; it is no longer the preferred method though since Windows 8 does not play nice but if you have Windows 7 or older (excluding Windows ME) all you need to do is copy the installer from the ISO and it will install.


Can't index .odt files with Recoll under Ubuntu

For 20.04 --
I found in lesbonscomptes.com/recoll/pages/features.html#doctypes that recoll versions >= 1.26 do not need helpers for Open Office files. This seemed to be correct. I installed recoll on a test 20.04 system and it asked for only the helper antiword. I installed that. After starting an index from scratch, it sucessfully found words in an .odt file

For 18.04 --
The package you install to get recoll to index the OpenOffice files is
python-libxslt1
Reference here

I managed to fix non-indexing of ods files in debian by installing this dependency: apt-get install python-libxslt1

I also always install
python-mutagen
python-chm
ibimage-exiftool-perl


Why do I have two docks in Ubuntu desktop (with GNOME 3) after installing Dash to Dock?

Running Dash to Dock along with the default Ubuntu Dock is not a good idea. As Ubuntu Dock is a fork of Dash to Dock (and hence they share many same schemas), issue like this is not really surprising.

Disable one of the two extensions (Ubuntu Dock and Dash to Dock) using Tweaks or in some way (refer to this if you want to disable Ubuntu Dock).


Ubuntu will not load since I updated to 14.10

I had the same problem on a computer for which I had changed unity to gnome. I think the gnome was the cause - I ended up reinstalling everything from scratch. But be careful when you do fresh installation because Ubuntu (at least in my language) did not make the options between replacing the current Ubuntu installation and completely formatting the drive clear.


Any way not to have to log into network on restart when using a live image?

Since you're using a live image without persistence (per comments), there is no way to do this. A live image forgets all settings as soon as you turn it off.

You could look into making a persistent live image (which Rufus doesn't support) or even a full install on the flash drive.


The message, "command not found" means that you are entering something that the terminal doesn't know what to do with.  More simply, you are entering the command incorrectly or it is not a command at all.
The manual pages can help find the command you want, plus show you how to use it.  From the terminal, try:

man man
man apt-get
man -k cd
man -k cd downloads

The first command is to show the manual page for the manual pager.  The second is for an important command used to install new programs (installed from packages in Ubuntu), remove them, or update your system.  The third command above uses the -k option, which means to search for commands, packages, and (more importantly) the descriptions for them.  You'll get a list of commands with that string.  If you spot one that looks right, use the man command to see what it does.
This will help you figure out what to do.  If you need help with a specific problem, you need to describe it, give links to wiki page(s) you are referencing, copy/paste the commands or pictures of what you are trying with the output.


Why can I not deselect "encrypt my home folder"?

Are you upgrading a previous install (or using an existing Home partion)?

If so this is most probably because you previously installed Ubuntu with an encrypted home folder. The installer automatially detects this. You cannot unset "Encrypt my home folder" as you would not be able to access your files otherwise.

It is very important that you select the same login password as before. If needed you can change it after the instalation.


This is very difficult if not impossible to achieve. The PendoPad uses an ARM chip with a different instruction set to a normal CPU, which as far as I know is not compatible with any current versions of Ubuntu including Lubuntu. Even if it were compatible, I'm not sure how you'd install Lubuntu onto a device running android as there's no obvious equivalent of BIOS to set the boot preferences.


Setting up Ubuntu server with firewall - do I need 2 NICs?

I have an Ubuntu Server with Zentyal 3.0 installed on top, and in order to function as a Firewall, it requires two NICs. I assume this to be true in all cases (one in, one out) but I only have experience with my own configuration. Hope this helps :-)


How does /will Unity handle multiple monitors?

I can't link anything or cite any sources but I do know that it is in the planning to have the global menu appear on whatever monitor the active window resides in. This ingenuity reduces mouse movement quite a bit on the menus side.


Is there a comprehensive list of "typing" keyboard shortcuts

I am afraid there is no such "comprehensive list" of keyboard shortcuts. Keyboard shortcuts are conventions. Some of these are widely used, many not. The assignment of keyboard shortcuts can differ between operating system, between different desktop environments, and between applications. Gnome Shell prefers Ctrl+PgDn to navigate between tabs, in Firefox, it's Ctrl+Tab.
As a programmer, you certainly are aware of the following (you refer to it), but I mention it for completeness.
Keyboard shortcuts can be system wide, e.g. Alt+F4 to close a window. They will trigger the same action irrespective of the application in focus. They will eventually override the definition of the same keystroke at the level of the application (i.e., they have priority).
Other keyboard applications are defined by the application, e.g. Ctrl+q will be defined in many cases to quit the program. Ctrl+c will in the vast majority of applications be used to to copy information to the system clipboard.
None of these are set in stone, as you discovered. Ctrl+Shift+e in Ubuntu happens to trigger the entry of Emoj (at least it does not for me on Ubuntu 20.10), but that is not a convention that is widely used.
In short, no, there is no universal list of "reserved" keyboard shortcuts. As a programmer, you need to choose your combinations carefully. Don't worry too much. If you make the wrong choice at some point, your users will likely get back to you soon to fix it in an update.


VMWare Player 3.1.6 32 bit installed with Ubuntu 14.04

You are right: VMWare 3.1.6 is the last real 32bit VMWare Player! This is sad!

Nethertheless I spend some hours to made some changes to the patch 716 of "weltall":

diff -r -u source-original/vmblock-only/linux/dentry.c source/vmblock-only/linux/dentry.c
--- source-original/vmblock-only/linux/dentry.c 2012-06-10 01:03:20.000000000 +0200
+++ source/vmblock-only/linux/dentry.c  2012-06-14 11:28:25.093911963 +0200
@@ -104,7 +104,11 @@
       return actualDentry->d_op->d_revalidate(actualDentry, nd);
    }

-   if (path_lookup(iinfo->name, 0, &actualNd)) {
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
+   if (compat_path_lookup(iinfo->name, 0, &actualNd)) {
+#else
+   if (kern_path(iinfo->name, 0, &(actualNd.path))) {
+#endif
       LOG(4, "DentryOpRevalidate: [%s] no longer exists\n", iinfo->name);
       return 0;
    }
diff -r -u source-original/vmblock-only/linux/filesystem.c source/vmblock-only/linux/filesystem.c
--- source-original/vmblock-only/linux/filesystem.c     2012-06-10 01:03:20.000000000 +0200
+++ source/vmblock-only/linux/filesystem.c      2015-03-19 23:32:04.000000000 +0100
@@ -44,9 +44,14 @@
 /* File system operations */

 #if defined(VMW_GETSB_2618)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
 static int FsOpGetSb(struct file_system_type *fsType, int flags,
                      const char *devName, void *rawData, struct vfsmount *mnt);
 #else
+static struct dentry *FsOpMount(struct file_system_type *fsType, int flags,
+                     const char *devName, void *rawData);
+#endif
+#else
 static struct super_block *FsOpGetSb(struct file_system_type *fsType, int flags,
                                      const char *devName, void *rawData);
 #endif
@@ -66,7 +71,11 @@
 static struct file_system_type fsType = {
    .owner = THIS_MODULE,
    .name = VMBLOCK_FS_NAME,
+   #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
    .get_sb = FsOpGetSb,
+   #else
+   .mount = FsOpMount,
+   #endif
    .kill_sb = kill_anon_super,
 };

@@ -336,7 +345,11 @@
       goto error_inode;
    }

+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
    if (compat_path_lookup(iinfo->name, 0, &actualNd)) {
+#else
+   if (kern_path(iinfo->name, 0, &(actualNd.path))) {
+#endif
       /*
        * This file does not exist, so we create an inode that doesn't know
        * about its underlying file.  Operations that create files and
@@ -553,7 +566,7 @@
  *-----------------------------------------------------------------------------
  */

-static int
+/*static int
 FsOpGetSb(struct file_system_type *fs_type, // IN: file system type of mount
           int flags,                        // IN: mount flags
           const char *dev_name,             // IN: device mounting on
@@ -561,7 +574,7 @@
           struct vfsmount *mnt)             // IN: vfs mount
 {
    return get_sb_nodev(fs_type, flags, rawData, FsOpReadSuper, mnt);
-}
+}*/
 #else
 /*
  *-----------------------------------------------------------------------------
diff -r -u source-original/vmci-only/linux/driver.c source/vmci-only/linux/driver.c
--- source-original/vmci-only/linux/driver.c    2012-06-10 03:23:58.000000000 +0200
+++ source/vmci-only/linux/driver.c 2012-06-14 11:33:13.813197965 +0200
@@ -42,7 +42,6 @@
 #include <linux/miscdevice.h>
 #include <linux/poll.h>
 #include <linux/smp.h>
-#include <linux/smp_lock.h>

 #include "compat_file.h"
 #include "compat_highmem.h"
diff -r -u source-original/vmmon-only/linux/driver.c source/vmmon-only/linux/driver.c
--- source-original/vmmon-only/linux/driver.c   2012-06-10 03:23:55.000000000 +0200
+++ source/vmmon-only/linux/driver.c    2012-06-14 10:26:33.505000591 +0200
@@ -785,7 +785,7 @@

 #define POLLQUEUE_MAX_TASK 1000
-static spinlock_t pollQueueLock __attribute__((unused)) = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(pollQueueLock);
 static void *pollQueue[POLLQUEUE_MAX_TASK];
 static unsigned int pollQueueCount = 0;

@@ -1046,7 +1046,8 @@
        * but unfortunately there is no way how to detect that
        * we are building for RedHat's kernel...
        */
-          static spinlock_t timerLock = SPIN_LOCK_UNLOCKED;
+
+          static DEFINE_SPINLOCK(timerLock);

           spin_lock(&timerLock);
           mod_timer(&linuxState.pollTimer, jiffies + 1);
diff -r -u source-original/vmmon-only/linux/hostif.c source/vmmon-only/linux/hostif.c
--- source-original/vmmon-only/linux/hostif.c   2012-06-10 03:23:54.000000000 +0200
+++ source/vmmon-only/linux/hostif.c    2012-06-14 10:35:41.671455630 +0200
@@ -46,7 +46,6 @@
 #include <linux/mman.h>

 #include <linux/smp.h>
-#include <linux/smp_lock.h>

 #include <asm/io.h>
 #include <linux/mc146818rtc.h>
diff -r -u source-original/vmmon-only/linux/iommu.c source/vmmon-only/linux/iommu.c
--- source-original/vmmon-only/linux/iommu.c    2012-06-10 03:23:54.000000000 +0200
+++ source/vmmon-only/linux/iommu.c 2012-06-14 10:34:34.493160044 +0200
@@ -35,6 +35,11 @@

 #define PCI_BDF_SLOTFUNC(bdf) PCI_DEVFN(PCI_SLOT(bdf), PCI_FUNC(bdf))
 #define PCI_BDF_BUS(bdf)      (((bdf) >> 8) & 0xff)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 42, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)) || LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
+#include <linux/pci.h>
+#define iommu_found() iommu_present(&pci_bus_type)
+#define iommu_domain_alloc() iommu_domain_alloc(&pci_bus_type)
+#endif

 typedef struct PassthruDevice {
    struct pci_dev *pdev;
@@ -44,7 +49,7 @@

 static LIST_HEAD(passthruDeviceList);
-static spinlock_t passthruDeviceListLock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(passthruDeviceListLock);
 static void *pciHolePage = NULL;

 /*
diff -r -u source-original/vmnet-only/compat_netdevice.h source/vmnet-only/compat_netdevice.h
--- source-original/vmnet-only/compat_netdevice.h   2012-06-10 03:23:56.000000000 +0200
+++ source/vmnet-only/compat_netdevice.h    2012-06-14 11:04:48.318105972 +0200
@@ -47,6 +47,20 @@
 #   define net_device device
 #endif

+/* it looks like these have been removed from the kernel 3.1
+ * probably because the "transition" is considered complete.
+ * so to keep this source compatible we just redefine them like they were
+ * previously
+ */
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 41, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)) || LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0)
+#define HAVE_ALLOC_NETDEV      /* feature macro: alloc_xxxdev
+                      functions are available. */
+#define HAVE_FREE_NETDEV       /* free_netdev() */
+#define HAVE_NETDEV_PRIV       /* netdev_priv() */
+#define HAVE_NETIF_QUEUE
+#define HAVE_NET_DEVICE_OPS
+#endif
+

 /*
  * SET_MODULE_OWNER appeared sometime during 2.3.x. It was setting
diff -r -u source-original/vmnet-only/driver.c source/vmnet-only/driver.c
--- source-original/vmnet-only/driver.c 2012-06-10 03:23:56.000000000 +0200
+++ source/vmnet-only/driver.c  2012-06-14 10:44:17.628702772 +0200
@@ -28,7 +28,6 @@
 #include <linux/poll.h>

 #include <linux/smp.h>
-#include <linux/smp_lock.h>

 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
@@ -105,7 +104,7 @@
  * not have vnetStructureMutex already acquired,
  * it is most certainly a bug.
  */
-static rwlock_t vnetPeerLock = RW_LOCK_UNLOCKED;
+static DEFINE_RWLOCK(vnetPeerLock);

 /*
  * All concurrent changes to the network structure are
@@ -115,6 +114,7 @@
  * vnetStructureMutex and vnetPeerLock for write.
  */
 compat_define_mutex(vnetStructureMutex);
+compat_define_mutex(vnetMutex);

 #if defined(VM_X86_64) && !defined(HAVE_COMPAT_IOCTL)
 /*
@@ -264,11 +264,11 @@
                struct file * filp)  // IN:
 {
    int ret = -ENOTTY;
-   lock_kernel();
+   compat_mutex_lock(&vnetMutex);
    if (filp && filp->f_op && filp->f_op->ioctl == VNetFileOpIoctl) {
       ret = VNetFileOpIoctl(filp->f_dentry->d_inode, filp, iocmd, ioarg);
    }
-   unlock_kernel();
+   compat_mutex_unlock(&vnetMutex);
    return ret;
 }

@@ -1134,9 +1134,9 @@
    if (filp && filp->f_dentry) {
       inode = filp->f_dentry->d_inode;
    }
-   lock_kernel();
+   compat_mutex_lock(&vnetMutex);
    err = VNetFileOpIoctl(inode, filp, iocmd, ioarg);
-   unlock_kernel();
+   compat_mutex_unlock(&vnetMutex);
    return err;
 }
 #endif
diff -r -u source-original/vmnet-only/filter.c source/vmnet-only/filter.c
--- source-original/vmnet-only/filter.c 2012-06-10 03:23:55.000000000 +0200
+++ source/vmnet-only/filter.c  2012-06-14 11:07:27.433702814 +0200
@@ -40,6 +40,9 @@
 #include "vnetFilterInt.h"
 #include "vnetInt.h"
 #include "vmnetInt.h"
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
+#include <linux/export.h>
+#endif

 // VNet_FilterLogPacket.action for dropped packets
 #define VNET_FILTER_ACTION_DRP         (1)
@@ -85,7 +88,7 @@
  * callbacks can be concurrently executing on multiple threads on multiple
  * CPUs, so we should revisit locking for allowing for that in the future.
  */
-spinlock_t activeRuleLock = SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(activeRuleLock);

 /*
  * Logging.
diff -r -u source-original/vmnet-only/hub.c source/vmnet-only/hub.c
--- source-original/vmnet-only/hub.c    2012-06-10 03:23:55.000000000 +0200
+++ source/vmnet-only/hub.c 2012-06-14 10:46:12.983201426 +0200
@@ -81,7 +81,7 @@
  * so we use __attribute__((unused)) to quiet the compiler.
  */

-static spinlock_t vnetHubLock __attribute__((unused)) = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(vnetHubLock);

 /*
diff -r -u source-original/vmnet-only/netif.c source/vmnet-only/netif.c
--- source-original/vmnet-only/netif.c  2012-06-10 03:23:55.000000000 +0200
+++ source/vmnet-only/netif.c   2012-06-14 10:58:15.294677818 +0200
@@ -62,7 +62,9 @@
 static int  VNetNetifStartXmit(struct sk_buff *skb, struct net_device *dev);
 static struct net_device_stats *VNetNetifGetStats(struct net_device *dev);
 static int  VNetNetifSetMAC(struct net_device *dev, void *addr);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 42, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)) || LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
 static void VNetNetifSetMulticast(struct net_device *dev);
+#endif
 #if 0
 static void VNetNetifTxTimeout(struct net_device *dev);
 #endif
@@ -131,7 +133,9 @@
       .ndo_stop = VNetNetifClose,
       .ndo_get_stats = VNetNetifGetStats,
       .ndo_set_mac_address = VNetNetifSetMAC,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0)
       .ndo_set_multicast_list = VNetNetifSetMulticast,
+#endif
       /*
        * We cannot stuck... If someone will report problems under
        * low memory conditions or some such, we should enable it.
@@ -620,11 +624,12 @@
  *
  *----------------------------------------------------------------------
  */
-
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 42, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)) || LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
 void
 VNetNetifSetMulticast(struct net_device *dev) // IN: unused
 {
 }
+#endif

 /*
diff -r -u source-original/vmnet-only/userif.c source/vmnet-only/userif.c
--- source-original/vmnet-only/userif.c 2012-06-10 03:23:55.000000000 +0200
+++ source/vmnet-only/userif.c  2012-06-14 10:53:49.212819374 +0200
@@ -572,10 +572,19 @@
     unsigned int tmpCsum;
     const void *vaddr;

-    vaddr = kmap(frag->page);
-    tmpCsum = csum_and_copy_to_user(vaddr + frag->page_offset,
-                    curr, frag->size, 0, &err);
-    kunmap(frag->page);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 42, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)) || LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
+vaddr = kmap(skb_frag_page(frag));
+#else
+vaddr = kmap(frag->page);
+#endif
+tmpCsum = csum_and_copy_to_user(vaddr + frag->page_offset,
+curr, frag->size, 0, &err);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 42, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)) || LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
+kunmap(skb_frag_page(frag));
+#else
+kunmap(frag->page);
+#endif
+
     if (err) {
        return err;
     }
diff -r -u source-original/vsock-only/linux/af_vsock.c source/vsock-only/linux/af_vsock.c
--- source-original/vsock-only/linux/af_vsock.c 2012-06-10 01:03:21.000000000 +0200
+++ source/vsock-only/linux/af_vsock.c  2012-06-14 11:36:10.596974749 +0200
@@ -102,7 +102,6 @@
 #include <linux/miscdevice.h>
 #include <linux/poll.h>
 #include <linux/smp.h>
-#include <linux/smp_lock.h>
 #include <asm/io.h>
 #if defined(__x86_64__) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12)
 #   if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
diff -r -u source-original/vsock-only/linux/util.c source/vsock-only/linux/util.c
--- source-original/vsock-only/linux/util.c 2012-06-10 01:03:21.000000000 +0200
+++ source/vsock-only/linux/util.c  2012-06-14 11:36:48.302138890 +0200
@@ -34,7 +34,7 @@
 struct list_head vsockBindTable[VSOCK_HASH_SIZE + 1];
 struct list_head vsockConnectedTable[VSOCK_HASH_SIZE];

-spinlock_t vsockTableLock = SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(vsockTableLock);

 /*
  * snprintf() wasn't exported until 2.4.10: fall back on sprintf in those

Booting the computer you have to use "Shift" in order to choose Kernel 3.2!!!
If you use the original "patch-modules_3.4.0" and my modified module it should work for you, too.

It would be great, if you even find a solution for Kernel 3.13!

Good luck,
Claus


iwlist set essid -> Operation already in progress

You can add  iface wlan0 inet manual to /etc/network/interfaces.

Network manager will not manage your wireless network.

But you will need to do ifup wlan0 and ifdown wlan0 manually too.

You can also manage your wireless by Network Manager using nmcli utility.


It's not a permissions issue, but a path issue.

The ./ is required because it specifies the path of the file you intend to execute (or edit, touch, whatever).

If you don't specify a path (for instance, running a program like vim), the shell will look at your $PATH variable (which is a list of folders) and look in each one until it either finds a file that matches or exhausts the list without finding one.

Some users like to add . to their $PATH so that they can always interact with files in whatever directory they're in. It may be the case that . used to be in your $PATH and was somehow removed.

There's more information and a complete answer regarding adding a directory (including .) to your $PATH at How to add a directory to the PATH?


How to restore or clean the Application Menu Unity in Ubuntu 16.04 LTS?

That looks like it's showing you a Java file as part of the "document" search in Unity,  which clicking on will try to use the default program associated with Java source files. You may want to see:

Intellij IDEA launching another icon at start

and

Update Launcher for Intellij IDEA in Ubuntu

For known issues with the IntelliJ .desktop launcher and Unity.

Also take a look at how to create launchers yourself in Unity to run your idea.sh script:

How can I edit/create new launcher items in Unity by hand?


Have you tried renaming these on your Mac or in Ubuntu? I'd try it on the Mac first and then move everything over.

For your audio codecs and drivers, open a terminal and execute the following commands:

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install ubuntu-restricted-extras

Also, according to here Rhythmbox uses gstreamer. According to here the  "ASF demuxer" is provided by the gstreamer "ugly" plugins:

sudo apt-get install gstreamer1.0-plugins-ugly

As for the Word documents, save them as .odf files, then you can use them in LibreOffice.

Hope this is helpful! PM me if you have further questions... I'd be happy to help!

source


How do I can extend the Ubuntu partition?

Sorry mate, you're not gonna be able to extend your root partition into that unallocated space. You can only extend partitions into unallocated space that are next to each other (or when spanning across multiple disks). In this case only dev/sda5 or /dev/sda6 will be able to use that space. Your only options are to add another drive and migrate your ubuntu instance to that, or delete sda6 and sda7 and then extend that way. Deleting sda6 isn't a big deal, it's just a swap partition. sda7 is a hidden Windows part, probably a boot or recovery partition. Unless you know exactly what that partition is, and you aren't afraid to lose any of that data, I would advise against messing with it.


Nvidia Quadro K2200 on Ubuntu 16.04.1 LTS Possible?

This card is supported. If you have trouble booting with it, use nomodeset boot option, then install Nvidia drivers by

sudo apt install nvidia-367


42" Panasonic being recognized as a 65" with an ATI mobility HD 5400

installed xubuntu and discovered more monitor selections.  Can now select higher hertz (60HZ) and 1080P selections but have to disable laptop monitor.  This was not possible with standard 11.10.


Opening a NTFS partition fails with report: Not authorised

I use NTFS-config and it mounts all me external and internal drives with write capabilities

Install Ntfs-Config

sudo apt-get install ntfs-config

just run this in commandline after installing

sudo mkdir -p /etc/hal/fdi/policy

this will make ntfs config run and u can enable read write

Run NTFS Config from dash and have it auto configured your windows drive

this sshould help you access your ntfs partition


How can my app request sudo permissions when installed from the Software Center?

I'm also searching for an answer, although i think it isn't possible exactly through software centre.
It's probably some configuration in a setup.xx file.


dns_probe_finished_nxdomain error caused by Ubuntu

I solved this by clearing the DNS cache on my computer. I think I used this command, but I'm not 100% sure:

sudo /etc/init.d/dns-clean


grep only returns No such file or directory

Did you try it this way

echo 'dog eat dog' > dog; /bin/grep 'd' ./dog

If this works, your aliasing or other bashrc settings a wrong
Do you have write and read access in the directory where you call the command?


Maybe the graphical environment is disabled.

Try:

startx

or when needed:

sudo startx

If this is the problem, you may need to proper configure your graphical environment settings to run at the very startup.

Another idea that comes to my mind is that your machine is probably stuck in the wrong virtual desktop. Try with the [Alt][F7] keys combo (or a different one) in order to search for the graphical environment, which may be already started but not shown.

This happened to me a couple of times, and was self-solved after updating.

Good luck.


Custom motd in /etc/update-motd.d/20-fortune-cowsay only working partially

Change your script to look like this:

#!/bin/bash
export PATH="/usr/games:$PATH"
fortune | cowsay

"fortune" and "cowsay" are considered games by ubuntu and those are not in the default system path.


How to execute a bash command when you login

It's common to put commands like this in the ~/.profile script, which is executed at login.

I'd personally recommend using ntpd instead of ntpdate as it is a service which runs in the background and constantly checks and corrects the time.

To install it, run sudo apt-get remove ntpdate to remove ntpdate, then sudo apt-get install ntpd.


Try the following

Use the boot option on grub that tests your memory to rule out memory issues
Iffy USB devices, always boot without them connected. If its the mouse or the keyboard you can test that too by disconnection everything, see if you can successfully boot a bunch of times with no issues
If there is a Wifi on/off switch on the laptop? If there is, always boot with it off

Otherwise you will need to trawl through error logs


I had the same problem. It looks like CUPS overwrites any changes you make. So to fix this type in terminal:

sudo service cups stop

now you need to open /etc/cups/printers.conf in text editor

sudo gedit /etc/cups/printers.conf

and change

option media na-letter

to

option media iso-a4

save your changes and start CUPS with the following command:

sudo service cups start

You should see your changes in the printer settings. I haven't found a way to change these settings without stopping CUPS.


how to connect to wireless network through terminal

First list your wireless devices

sudo lshw -C network

*-network
description: Wireless interface
product: BCM4306 802.11b/g Wireless LAN Controller
vendor: Broadcom Corporation
physical id: 0
bus info: pci@06:00.0
logical name: wlan0
version: 03
serial: 00:12:17:35:17:10
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ndiswrapper+lsbcmnds driverversion=1.48rc1+Cisco-Linksys ,LLC.,02/1 ip=192.168.1.101 latency=64 multicast=yes wireless=IEEE 802.11g
resources: iomemory:3c000000-3c001fff irq:11

If the card is DISABLED it will show it.
Run this command where eth0 is your network card

sudo ifconfig eth0 up

That command will turn on the wireless card.


How to make GRUB remembers what I boot last time?

You need to set save_default in /etc/default/grub (at the top of the file is OK):

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

After adding these two lines  to /etc/default/grub, you then need to update Grub's configuration using this command:

sudo update-grub

This should add the line savedefault at the end of each entry in /boot/grub/grub.cfg.


How to set home directory mount point for drive

During this process, you should avoid using directory /home by any application, so it's best to not login from GUI, but from the text console (available after pressing Ctrl+Alt+F3 key).
Perform everything with root permissions (run sudo -i first).
Create a partition on the unused drive (using fdisk) and format it (create a filesystem) using mkfs.
Rename directory /home to /old_home. Create a new, empty
directory /home, with the same owner and permissions as /old_home.
Mount the new partition you just formatted under /home, For example if the new partition is /dev/sdb1, use the command mount /dev/sdb1 /home.
Copy everything from /old_home to /home, preserving ownership, permissions etc. (you may use rsync for that as mentioned in the comment above: rsync -a /old_home/ /home/).
Edit /etc/fstab file so that your new /home will be automatically mounted when the system reboots. Your /etc/fstab currently contains a line for the drive you are already using, it might be something like this (I'm making this one up now, yours may be different):
/dev/sda1 / ext4 defaults 0 1

Add a similar line for your new partition that says for example:
/dev/sdb1 /home ext4 defaults 0 2

(if your file has something else instead of "defaults" just copy these parameters to the new line).
Reboot your system (shutdown -r now) and after reboot check if everything is working properly (ie. everything that should be under /home is there). If yes, then delete the /old_home directory - it's not needed anymore.


How can I downgrade packages without removing their dependants?

I never played with this before, but I would suggest that you hold (or lock) the version of the dependencies that cause you trouble. This way apt has a more limited number of possible solutions, and perhaps doesn't get confused when you attempt to downgrade the other packages.

If nothing else works, you could take the manual approach suggested in this answer: How to Downgrade a Package via apt-get?. Basically, download the necessary .deb packages manually, then install them one by one using the lower-level dpkg and one of its forceful arguments: --ignore-depends, --force-depends, --force-depends-version, or even --force-all.

In the same spirit as the above, you have the --force-downgrade argument:

          downgrade(*): Install a package, even if newer version of
          it is already installed.

          Warning:  At  present  dpkg  does  not  do any dependency
          checking on downgrades and therefore will not warn you if
          the  downgrade  breaks the dependency of some other pack‐
          age. This can  have  serious  side  effects,  downgrading
          essential system components can even make your whole sys‐
          tem unusable. Use with care.

But this assumes that you've read man dpkg, and that you understand what you do:

          Warning: These options are mostly intended to be used  by
          experts  only.  Using  them  without  fully understanding
          their effects may break your whole system.

See Error: version number does not start with digit and How to install an older version of Java and How to install a older version of package like liquid 2.2.2? for examples of:

sudo dpkg --force-downgrade -i your_mesa_package.deb

And see How can I install a package without installing some dependencies? for an example (along with the appropriate warning) of:

sudo dpkg --force-all -i your_mesa_package.deb

Yet another approach would be to create a dummy .deb package using the equivs package (and perhaps a slightly different name). Then installing the dummy package should allow you to remove the "true" package while keeping the relevant deps, and then install the older version. I'm not sure how exactly this would work, but check this relevant thread for details: How to remove a deb without removing its dependencies.


Noise after resuming computer from suspend

You could add a script to /etc/pm/sleep.d/ to run things when the computer wakes up. The scripts in this directory run at both sleep and wake so in order to detect which are which, the scripts are passed an argument to say what's going on. In your case, it doesn't really matter, but I'll code for it anyway.

Run gksu gedit /etc/pm/sleep.d/20_restart-alsa and then paste the following into it. You'll want to make edits because I'm not sure how you're restarting the sound system. Just add what works for you.

#!/bin/sh

case "${1}" in
    hibernate|suspend)
        # we don't need to do anything when it's going to sleep
        ;;
    resume|thaw)
        # this is coming back from sleep/hibernate
        # ** ADD YOUR ALSA-RESTART CODE ON THE NEXT LINE **

        ;;
esac


If you are trying to do a dual display, look into your "System Settings" for "Screen Display". There is usually a setting for "mirror display" (same thing on both screens) or "extend display" (have your desktop use both screens). On many installations, these don't turn on just by plugging a 2nd screen in.

If this is a single display and you are trying to replace a monitor by a TV, make sure that:

your TV can handle the resolution and refresh rates that the graphics card is trying to output
your TV is set to the correct HDMI outout that you've plugged into (my TV has 4, and you can cycle through them using the "input" button on the remote)
try another HDMI connector on the TV
make sure your graphics card is sending a signal through HDMI. You may need to edit your xorg.conf file for this, see details here.


No notification sound of google talk on ubuntu 12.04

You might be able to right click on the flash object, select global settings, and then on the right hand side, it'll say "Peer-Assisted Networking Panel" and enable each site. I have to do this in ubuntu 12.04 with webcam toys for chromium, so I figured it'll help you with another website flash related issue.


Problem Upgrading System 76 Gazelle From Ubuntu 18.04 to 19.04

I solved this problem with the help of System 76 support.  I downloaded a new .iso image of Ubuntu 19.04 onto a flash drive and did a clean reinstall of the operating system.

It still wasn't easy.  My first attempt used a 32GB flash drive, but for some reason it got stuck, too.  A second attempt with a 16GB flash drive did the trick.

I've had to download and install a lot of software to get my machine back up to snuff, but all is well today.


Booting the liveCD/USB in EFI mode fails on Samsung Tablet XE700T1A

** [2012-10-12] **

After some days of despair trying to compile a custom kernel to manage to boot Ubuntu in EFI mode, with no real belief and no success, I tried (again, with no real faith in it) with the new ubuntu 12.10 beta 2 version dumped on a flash drive with usb-creator-gtk.

Et voila !

The Ubuntu-12.10-beta2-amd64 LiveUSB manages to boot in EFI mode ! Install works, and I am left with ... A perfectly booting EFI install of ubuntu !!

I can now use efibootmgr and all. I installed rEFInd to get a nice graphical OS chooser.

I'm so happy !

took me a full month to get it work....

BTW: This answer is posted through my newly working samsung xe700t1a tablet runing Ubuntu 12.10 beta2.


How to install Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09)?

According to HybridGraphics Wiki you have to use the ATI control panel to switch between graphics cards. Unfortunately, it's not as seamless as Windows configuration. But, as you probably know, things in Linux rare are ;)

If I'm not mistaken (and I may be, I'm not an X11 guru), the Intel HD graphics driver is preloaded and utilizes the MESA driver rather than its own driver. I do know, however, that Intel HD graphics work out of the box. In this case, it's just a matter of switching over to it with the ATI control panel.


In the Terminal, type:

sudo su
mv  /var/lib/dpkg/status  /var/lib/dpkg/status-bad
cp /var/lib/dpkg/status-old  /var/lib/dpkg/status
mv /var/lib/dpkg/available  /var/lib/dpkg/available-bad
cp /var/lib/dpkg/available-old  /var/lib/dpkg/available
rm -rf /var/lib/dpkg/updates/*
rm -rf /var/lib/apt/lists/*
mkdir /var/lib/apt/lists/partial
rm /var/cache/apt/*.bin
apt-get clean
apt-get autoremove
apt-get update
dpkg --configure -a
apt-get install -f


I cannot install updates and software in 16.04

You just use the wrong command, the correct command is : sudo apt-get update Let's test it ...

$ sudo apt-get updates
E: Invalid operation updates
$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu yakkety InRelease
Hit:2 http://archive.ubuntu.com/ubuntu yakkety-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu yakkety-backports InRelease
Hit:4 http://archive.ubuntu.com/ubuntu yakkety-security InRelease
Reading package lists... Done

Note : This is an example from the setup on Ubuntu 16.10, repositories are different in your case.


Virtual interface shows up in ifconfig but no connections can be be made to it. What is wrong?

chris@Optimus:~$ sudo ifdown eth0:0
ifdown: interface eth0:0 not configured
chris@Optimus:~$ sudo ifup eth0:0
RTNETLINK answers: File exists
Failed to bring up eth0:0.

Looks as if ifup was confused about the state of eth0:0. Easiest solution is to reboot.

resolvconf: Error: /etc/resolv.conf isn't a symlink

To fix this, run

sudo dpkg-reconfigure resolvconf


Similar to answer from a question here, but more specific to my issue of nginx:

/usr/local/openssl/lib/libcrypto.so.1.0.0: no version information available (required by /usr/sbin/nginx)

Mine issue could be caused by install other software that create "/usr/local/openssl/lib/libcrypto.so.1.0.0". It masks the real libcrypto.so.1.0.0 file.

SOLUTION:

I run ldd /usr/bin/openssl, then got:

libssl.so.1.0.0 => /usr/local/openssl/lib/libssl.so.1.0.0 (0x00007f1eb7e91000)
libcrypto.so.1.0.0 => /usr/local/openssl/lib/libcrypto.so.1.0.0 (0x00007f1eb7a36000)

These two files are wrong for nginx to run. So remove them as follows:

/usr/local/openssl/lib/libssl.so.1.0.0
/usr/local/openssl/lib/libcrypto.so.1.0.0

Reboot machine, run ldd /usr/bin/openssl again, got:

libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f40f5ee4000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f40f5a9f000)

SOLVED!

Debug process is inspired by this blog


27 inch monitor desktop not full size LG 27EA33V 1920x1080 DPI?

This sounds quite strange.  Your monitor is a 1920x1080 model and your graphics mode appears to be 1920x1080, so everything seems like it should be correct.

Troubleshooting steps:

Make sure you are connecting to your monitor via an HDMI or DVI cable.  Don't use an old-style analog cable or anything else (like s-video).
If you have an Nvidia card and you're using the proprietary driver, see if you can go through the nvidia-xconfig process again to generate a new xorg.conf.
See if your monitor has, in its menu, options for adjusting overscan or scaling the display.


Do kernel updates require every version in between?

Ubuntu will only download and install the most recent kernel

I have an Ubuntu computer that stays turned off for months. When I turn it on and let it update itself, it only downloads the latests kernel, and skips the ones in between.

You may want to run

sudo apt autoremove

After each updating kernels so that /boot has only two most recently installed kernels. This way, if the latest kernel misbehaves you can go back to the previously working kernel, and at the same time keep /boot from getting clogged up with old kernels.

Hope this helps


No,you doesn't need to install drivers for linux.Drivers are needed for graphics,mobile broadband,etc.You can't able to install backedup XP drivers on linux.


To configure your system's timezone, either from a terminal run

sudo dpkg-reconfigure tzdata

or via the GUI open the application "Time & Date" (in the dash type "time" and it will show up) and set your location.

To configure NTP servers, if you have the (default) ntpdate package installed, edit NTPSERVERS in /etc/default/ntpdate, or if you (additionally) have the ntp package installed, edit /etc/ntp.conf.


do-release-upgrade requests updates when there are none

Take this link steps on official Ubuntu blog:
How to upgrade from Ubuntu 18.04 LTS to 20.04 LTS today
before starting the update, run this commands:
sudo apt update
sudo apt upgrade

if didn't work, try these:
sudo apt update -y
sudo apt upgrade -y


After some help from my brother and doing some more research, I found a fix!

https://askubuntu.com/a/67723


How to fix VT-x/AMD-V error in the AMD Ryzen 3 2000G Bios

There is no CPU BIOS, but your computer BIOS instead. All major newer CPUs have VT-X/AMD-V support. As you start your computer, press DEL, F2, F10, F12 or the correct key, which is displayed as you start it. As you navigate through the menus, you'll find the option. Just activate it (usually, it is inside the "Advanced" one) and you should be good to go.

But this seems odd to me, these technologies are for virtualization, like VirtualBox, VMWare, Xen, KVM and such, and should not be required to install the operating system itself.


Remove previously flashed vbios splash screen

By vbios, I take it to mean your video bios. The video bios exists on a chip on your video/graphics adapter much in the same way that your Motherboard's bios is stored on a chip. Both your video bios and motherboard bios are read and executed every time at boot. You could have multiple and different OS's or no OS at all, but the bios still executes. It's what gives your system its basic functionality (and is responsible for letting you know when there are problems with your system, like when there is no OS installed, for example) and what eventually loads your chosen OS after all the hardware checks out.

Specifically, your video bios sets up the complicated components that make up your video card. It contains things like clock speeds, fan settings, operating modes, capabilities, and even the model information. It does mostly all the same things your motherboard bios does, but only for the video card and its components.

So all the long-windedness aside, all I'm trying to say is that all of your bioses are indepenent of any OS you choose to install. Whenever you flash one, it's permanent (until you flash it again). Adding/removing hard drives, wiping your OS, etc will not change your bioses.

A video bios can contain a splash screen. Most don't because they are annoying and usually introduce a delay in your boot process to give the user time to "admire the artwork". But after booting the same PC the first 100 times, the effect starts to wear off. And then, to top it off, you still have to sit through your motherboard's bios splash screen (if enabled, of course). (After all, we wouldn't want the thousands of dollars the company who made the card spent on making a 64-128kB image which is pixelated and an eyesore to go to waste).

And generally, the vbios is not user-configurable in any way. So you likely would not be able to turn of the video splash even if you wanted to. (And why would you? That art is phan-see!)

So here's what you can do: However you managed to flash your vbios, do it again. But this time, use a different version. Maybe the original one that was on it? A good practice is to make a backup of the original bios before you go flashing a new one. So I'm hoping you have one stashed somewhere. Different versions of a vbios you choose to use may have the splash feature disabled.

Bonus: This chip's architecture is of a kind that is called Complimentary Metal-Oxide Silicon or CMOS. Does CMOS sound familiar? The name comes from the manufacturing processes and techniques that went into making it.

Also, nowadays, with modern OS's anyways, many video card vendors are writing unified drivers for their products. Part of the advancements made with this driver model is that the driver should have more direct control over the hardware. Thus the vbios has been rendered impotent as it's really only used during boot and the driver loaded in the OS handles all of the configuration that vbioses handled previously. So in most situations, flashing your vbios does not gain you much of anything unless your card has secret cuda or shader cores that a hacked vbios can enable. Heck, even video card vendors have stopped releasing vbios updates, as they are all but useless anymore.


Ubuntu 16.04 Does Not detect external monitor

Your post is only a few hours old.  So fyi, I just applied this morning's updates to a Thinkpad with integrated graphics and external CRT.  The CRT wasn't detected after reboot.  So there may have been a recent regression.

It seems a failure to activate the monitor.  After detection has failed, if I power cycle the CRT, so it is not on standby, then detection works.  I see Linux 4.4.0-42-generic intermittently failing to activate during cold boot.


Oversized main screen overlapping on secondary screen - clean Ubuntu 20.04 install

I encountered this issue as well when I upgraded to Ubuntu 20.04. This isn't much of a solution, but I was able to switch from the proprietary NVIDIA drivers to the Nouveau drivers. Doing so allowed me to correctly configure my multi-screen layout (2 vertical, one portrait center display) in the display manager without any hiccups.

I do prefer the NVIDIA drivers, they seem to perform a bit better. That being the case, I re-test my setup with them every time I pull in updates. I just updated, and things improved marginally! Before the update, my center screen overlapped on both of my vertical screens. Now, my center screen only overlaps on one vertical screen. The other vertical screen works perfectly! If you do not have a tertiary monitor as I do, try using the NVIDIA drivers after pulling in the latest upgrades, it might solve your issue.


Website it is not loading index.php and showing index of folder

Change the name of the Index.php file to index.php. Linux servers are case-sensitive. The index.html, index.htm, or index.php file names must be in all lowercase in order to be found. If the server finds no index, it will show a list of files.


I figured this out. All I had to do was change the command to: shutdown -P now.

To be clear, to put a "shutdown" button on the desktop:

type "shutdown" in Unity search bar.
drag the result shutdown button to the desktop.
right click, choose Properties, and in command, change it from
gnome-session-quit --power-off to shutdown -P now.

Now all you have to do is double click this "shutdown" button on your desktop and Ubuntu immediately shuts down the computer. This works great!


As far as I'm aware, no free/open source software (including Shotwell) is capable of this.  It's one of the sad facts of life that comes with using a proprietary device.

As a Shotwell developer and iPhone user, believe me, I'd love to see this. But it's unlikely to happen (barring some decision to open up on Apple's part.)


Plasma Desktop: Can I move Atom's Main menu to Panel like on Unity

You can move it to the panel thanks to plasma 5.9.x app menu; unfortunately, there's a bug with electron (atom base) abusing the plasma app menu to 100% CPU: https://github.com/electron/electron/issues/8455
I've got a feeling both Kubuntu 17.04 and this electron issue will get solved at the same time...Can't wait! :-)


syslog error: home kernel:...audit:. type=1400 audit: apparmor="DENIED" operation="ptrace" profile="docker-default"

I had a similar issue and solved it.  My problem was that I have a docker container with the following in the run command.

--cap-add SYS_PTRACE

apparmor is denying the container that access to the host by default.  I resolved the issue by adding the following to my docker run command:

--security-opt apparmor:unconfined


Just a pink screen after "sudo apt update && sudo apt upgrade". My laptop is new and it came with ubuntu

Do you know how to return to factory mode?
Because the only method that can fix it is to download the ubuntu 18 or 19 .iso, which is free from this page:

https://ubuntu.com/download/desktop

If you have other computers with windows system you have to do the following.
Then with the rufus program you throw an EMPTY USB with the ubuntu iso and when finished, you insert this USB to your device and if it starts by default, if not, you have to enter the bios to start from the USB. Link to download rufus:

http://www.mediafire.com/file/698ediiqe6n09tr/Rofus-TutosDaniHD.rar/file

Link to boot the iso with rufus:

https://www.youtube.com/watch?v=z5ZTGIrjBsU

Also if you have just bought it you should call the store or the supplier and explain that after an update the computer failed.


How to install AMD legacy drivers in Ubuntu 12.04.3

I think the latest driver is version 8.960 for AMD 4xxx Series graphics card and available from Ubuntu Package archive for distribution Precise:

http://packages.ubuntu.com/search?keywords=fglrx&searchon=names&suite=precise&section=all

Download the two packages:

fglrx
fglrx-amdcccle
Remove old fglrx and reboot the OS
Install the two DEBs with dpkg -i


Packages dependencies after sudo apt upgrade?

sudo apt autoremove will safely remove any obselete packages without damaging your system. The packages listed are those used to compile the Linux Kernel for your system.

Autoremove will delete old version to clear disk space on your system, but will also keep one old kernel version to revert to in case your system doesn't work with the most recent kernel version. It should be perfectly safe to use the command.


How to revert ubuntu updates and installs to specific time?

Maybe i'm wrong. But all i know ubuntu doesnt have "time machine" or "system restore" like tool. You can not revert all update that you have installed. About ur netbeans you can remove using terminal with command: sudo apt-get remove netbeans or apt-get purge netbeans


Apache Web Server is accessed from LAN but website (virtual host) not accessible from LAN

If you want to access 192.168.0.21/10000MT in a web browser, you don't need to create a virtual host for that. Just move 10000MT folder inside /var/www/html. See default document root in /etc/apache2/sites-enabled/000-default.conf.


How do I boot up in windows after using the wubi installer

I had this problem with a Compaq computer, when you turn it on, change the boot-order and put the C:\ Drive first
You can access this by pressing ESC when you turn on your computer, although im not sure if its equal for ALL computers, hope it helped! And best of luck :)


Google Chrome Address Bar Font has gone too large, how can we reduce it

As part of Chrome 35, Chrome has switched to the Aura framework and is no longer using GTK. Some of the UI changes are due to the change to Aura, while other changes are by design.

As far as I know, the font size within the Omnibox can't be changed, and the colors likely cannot be changed.


MAAS 1.9.1 GUI Taskbar missing Network TAB on Ubuntu 14.04.4

if you install Ubuntu Server 16.04 LTS you will see the Network tab. I ran in to same issue but when I install 16.04 then I lost Cluster tab, still trying to figure it out..


Screen flashing on boot, gui repeatedly failing to load, segfault in libmutter

Turns out that the new version of gdm3 and it's related packages fixed the problem.
First time i've fixed anything by trying the same (checking for updates) again later :)


How can I make pbuilder use my apt-cacher-ng instance?

Like this:

$ sudo pbuilder --login --save-after-login
# echo 'Acquire::http { Proxy "http://servername:3142"; };' > /etc/apt/apt.conf.d/02proxy
# exit
$

Alternatively, you could use the --execute option:

$ sudo pbuilder --execute --save-after-exec -- /tmp/setup-apt-proxy.sh

... where /tmp/setup-apt-proxy.sh contains commands to create /etc/apt/apt.conf.d/02proxy.


Installing Steam games on a RAID 0 array

Using a Symlink

Mount your RAID array somewhere (like /media/tank)
Close Steam
Move ~/.steam/steam/steamapps/ to your RAID array.

mv ~/.steam/steam/steamapps /media/tank/steamapps
Make a symlink

ln -s /media/tank/steamapps ~/.steam/steam/steamapps
Start Steam and install some games.

Using Steam

Sometimes Steam detects mountpoints and shows them in the install dialog.

Screenshot

Mount your RAID array somewhere and it should appear.


Google Chrome didn't add apt source list

From Google chrome download page:

  Note: Installing Google Chrome will add the Google repository so your
  system will automatically keep Google Chrome up to date. If you don’t
  want Google's repository, do “sudo touch /etc/default/google-chrome”
  before installing the package.

So to fix it:

Remove that file

sudo rm /etc/default/google-chrome

Reconfigure chrome package to add repository

sudo dpkg-reconfigure google-chrome-stable

Check using grep -r google /etc/apt/sources.list.d/, no output then reinstall it.

sudo dpkg -r google-chrome-stable
sudo dpkg -i google-chrome-stable_current_*.deb

Otherwise add it manually

64bit:

echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list

32bit:

echo "deb [arch=i386] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list


ModuleNotFoundError: No module named 'idlelib'

Try installing deb for your python version (for python 3.8 it's "idle-python3.8"):

$ sudo apt install deb name


No option for C++ in Qt Creator (for project)

Problem was created due to fonts :P I changed fonts setting from gnome tool, due to which '+' sign was not showing. And my projects was not working because my collage uses old version of qt and i have latest one so i need to convert it. After changing font to' sans' no i can see c++ option :P :P , and i edited code to latest one now pojects are working.


Is there an option for task switching similar to MacOs?

Mostly:  Alt+`
(Alt + plus key left of the "1", above the "Tab")

https://help.ubuntu.com/stable/ubuntu-help/shell-keyboard-shortcuts.html


How to make a backup with deja-dup from command line?

deja-dup uses is a GUI that uses duplicity as the back-end and hence there are only limited command-line options. You can run man deja-dup and see the various options available. For example to start a backup run:

  deja-dup --backup

or to restore a file file:

  deja-dup --restore file

(Note that these commands just invoke the GUI from terminal)

To get more powerful options from command-line you should consider installing duplicity which is strictly a CLI.


how to change default launcher icons in unity for a new user?

Ok, after googling around I found the answer. It's quite simple. The answer is a combination of the two answers above plus a few more. Open a Terminal and type the following command:

sudo cp -rf .config/ .gconf/ .gconfd/ .gnome2/ /etc/skel/

That's it. Now all the changes will appear for the new user. This worked for me. I tested the changes by creating a new user.

Note that this will not change the launchers for already existing users, just for newly created users.


Enable fractional scaling for display in ubuntu 19.04

It might be that the gsettings you called is not the one provided by the system, but the one provided by, in my case, the conda/anaconda python distribution, which is causing the error message. Then, you can try directly calling the system's /usr/bin/gsettings instead.

Note, to check the full path to the gsettings you called, try which gsettings.


The following works on windows and linux/unix:

std::cout << "Press \'Return\' to end." << std::endl;
std::cin.flush();
std::cin.get();

The first std::cin.flush() clears the input que, the next command waits for an input.


What you need is a mechanism called flushing: forcing a process to write its output, which would otherwise remain buffered until completion.

Shell scripts flush on a line by line basis. If you need the output of a shell script before the script is ended, make sure it contains a newline.

Python programs can explicitly flush their stdout by calling the flush method:

import sys
sys.stdout.flush()


How to split awk output to multiple lines for piping

You can make it work with ordering awk to add a newline-character (\n) to each line:

vagrant ssh-config | awk '/IdentityFile/{print $2"\n"}'

And then pipe this to ssh-add.


Cannot set quota for user - numerical result out of range

I know it is an antediluvian question but I stumbled on the same problem recently and here is the solution that worked for me.
For large quotas (for me >4Tb) one needs to use the 64 bits format of quotas vfsv1:

In /etc/fstab after "defaults" or whatever options you already set, insert:
grpjquota=quota.group,usrjquota=quota.user,jqfmt=vfsv1

Then:
$ sudo mount -o remount /home
$ quotacheck -cug -F vfsv1 /home


After logging in on terminal with user name and password, how do I start the GUI?

Ubuntu Server does not include a graphical user interface by default. If you are connected to the system console you will see a screen similar to the following:

To login to Ubuntu Server from the above screen:

At the login: prompt type your username and press Enter.
At the Password: prompt type your user password and press Enter.

To install the default Ubuntu desktop environment (Unity) in Ubuntu Server run the following commands:

sudo apt-get install ubuntu-desktop
sudo reboot

These commands will also install the LightDM greeter so that you can login to the Ubuntu desktop environment from a nice login screen.

If you logged in at the system console, one of the following two commands will bring up a GUI login screen to login to the Ubuntu desktop environment.

sudo systemctl start graphical.target # Ubuntu 15.04 and later

or

sudo service lightdm start # Ubuntu 12.04/14.04


Unity search, how to get rid of certain results?

Why is it showing up as first result on search with "calc" and not with "cal" or "ca"?

That is because until you write calc it is sorting alphabetically, when you write calc there will be a program that contains the full word (LibreOffice Calc) so that program will jump to the first position on the list, its called a hit.

We can then assume that the dash search will look first for possible matches and sort them alphabetically if none matches the complete query and display hits always on the first positions if it found a matching word.

  How to prevent LibreOffice Calc to show up as first result without removing it completely from Unity?

Has for the first part of your question you should look at

How to remove icons/shortcuts from Unity menu?

it explains how and why you cannot simply remove a search result (with a possible workaround for it).

There is no way to just hide one single application without removing the global shortcut for it (even tough you could still have that shortcut on the Desktop for example).


Why does apt-get fail to install the python-gasp package?

Your system is not using the "Universe" repositories.  You need to enable the Universe repositories to get python-gasp.

This answer here will explain how to enable those repositories graphically.  Once you've enabled them and updated your system with apt-get, you should be able to find that package.

If you are on a command-line-only setup, then I will give you a set of commands to run here, courtesy of bodhi.zazen's answer here.

(1) Edit /etc/apt/sources.list with any editor with superuser powers (for command line, I recommend sudo nano /etc/apt/sources.list, for graphical, gksu gedit /etc/apt/sources.list).

(2) Modify your sources.list file to look similar to this:

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ precise main universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main universe

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ precise-security main universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main universe

While this does not put the "Multiverse" repositories in (non-free software), you do not necessarily need Multiverse (if you want it, add "multiverse" to the end of each of the deb lines above.)  For whatever archive is there in your current sources.list, use that one instead of the us archives, I'm in the US so I have that in this.

(3) sudo apt-get update to update the repository information

(4) sudo apt-get install python-gasp should now work.


sudo apt-get -f Attempts to correct a system with broken dependencies in place


How do I enable live window resizing in Ubuntu 13.04?

If you install the CompizConfig Settings Manager, you can tweak the resize setting:

sudo apt-get install compizconfig-settings-manager

Then run it either by firing up the dash and searching for CompizConfig, or run ccsm from the terminal.

Look under Window Management -> Resize Window -> General -> Default Resize Mode and change it to Normal and you should have sensible window resizing again!


I've installed Dual Boot, Windows 8 and Ubuntu, how I can select to boot Win8 on boot?

I am not familiar enough with Grub and Grub2 bootloader to help.... I do know there are settings that change the default OS being booted first....

Another option is to try Easy Bcd which is an after market bootloader that is installed from windows. It is quite easy to use and the download and instructions can be found at:

http://neosmart.net/EasyBCD/

this will get you up and running for now...

It does not remove Grub but works with it so you can just uninstall Easy BCD when you figure out the problem you have with Grub....

I just left mine running with Easy BCD because I am lazy....

Oh get the free version on the website if you are only using it for your personal computer...

You only need to buy it if you use it commercially....


dpkg: error processing package sudo (--configure)

I have exactly the same bug, on several fresh 1604 installations. I don't know why this doesn't get fixed, because it would come up if they ever tested this package.

The solution I found from another post is:

change the word 'dist-upgrade' to 'update' in
/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py
delete /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.pyc

Annoying that the "solution" to a problem like this is to edit the installed package, but that's what it is.


Can't get into desktop after messing with input method settings

For normal use, you should never need to call im-config manually in the first place. Switching between IBus and fcitx is best done using Language Support.

Anyway, you did. If you are reasonably sure that the problem is caused by your "messing" with IM settings, I'd suggest these steps:

Open a console window with Ctrl+Alt+F1 and log in.
Run these commands:

rm .xinputrc
sudo apt-get purge im-config
sudo apt-get install im-config
sudo apt-get install xubuntu-desktop
sudo reboot

Please note that purging im-config will likely result in the removal of a bunch of other packages. You need to accept that. Re-installing xubuntu-desktop should put those packages (at least most of them) back in place.


Ubuntu 16.04 not working on my new PC, Intel i5-6600 Skylake with Nvidia GTX 970

Definitely for your hardware, start with 16.04.  The 16.04.1 release should be out soon (now?) would be even better.  The series of kernel parameters mentioned below can be added at the grub menu -- type "e" to edit, follow instructions at bottom of screen.  Add the parameters to the "linux..." line before the "quiet splash" words. Below are Intel options, and Nvidia options, Use only one set at a time, and start out using one at a time, unless you can find a previous answer using multiple options.
  There are six "virtual' terminals available (the GUI runs on the seventh).  From the background you describe, you can switch to a vitrual terminal one by typing ctrl-alt-F1 (F1 through F6 to select which one).  From there, you get a text login prompt.

For UEFI machines (with a black screen grub (grub-efi)  without any
function key options, like the older grub-pc, edit the grub menu and add the below options on the "linux" line, then boot with F10 or ctrl-X.

Options for Video problems:

nomodeset
acpi=0
acpi_osi=linux
acpi_backlight=vendor
noalpic

Older Intel video card:
i915.modeset=1 or i915.modeset=0
newer:
i915.i915_enable_rc6=1
i915.enable_execlists=0

video=1280x1024-24@60
video=VGA-1:1280x1024-24@60

To allow Nvidia hybrid machines to boot.
nouveau.blacklist=1

Skylake needs this (15.04...):
i915.preliminary_hw_support=1
noveau.blacklist=1 edd=on nolapic pcie_aspm=force tpm_tis.interrupts=0
Maybe
intel_idle.max_cstate=1 nouveau.modeset=0

To slow SSDs to allow them to boot:
libata.force=noncq

worked on an Asus F555u
pci=nomsi nodmraid


I had the same problem.

I seem to have fixed it with the command:

sudo usermod -a -G lpadmin pi

This adds the user name pi to the cups user group lpadmin.  You can then use the default user name "pi" and password "raspberry" when prompted.


Ubuntu Keyboard shortcut to launch terminal is very slow

I have the same problem and this answer helped a lot.

Apparently it's a bug within gnome-keyring, more info here.


Running/Compiling binaries that require boost 1.58 on 18.04

You will need to install the necessary boost 1.58 packages form the xenial repository to keep things built against 16.04 running in 18.04, or you will have to rebuild against the newer libboost that is in 18.04, yes.


Eclipse not creating a binary file when building a simple program

As cqcallaw recommended in his second comment, installing using sudo apt-get install eclipse instead of manually downloading and unpacking the compressed package, solved the weird behaviour eclipse exhibited.


Can't start dhcpd on Ubuntu with systemd

dhcpd forks itself so I had to change service type appropriately:

[Service]
Type=forking
ExecStart=/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf eth1

Now it works


Since your virtual host file has a .conf extension, then I guess you are using 13.04 or 14.04, or maybe you just updated apache to apache 2.4.

In your case, you need to remove the following two directives:

Order Deny,Allow
Allow from all

and replace them with the following directive

Require all granted

For a more detailed info, please look at my other answer which explains what needs to be changed after upgrading apache2.2 to apache2.4.


You could use grep to find the files that contain abc.com.
And then you could use sed to replace abc.com with abc.us.
You just need to be careful to avoid false positives.
I would first add all site files to a Git repository,
then perform the replacements,
check the replacements with git diff,
so that if something went wrong, I could easily roll back.

cd path/to/site
git init
git add .
git commit -m 'Add files'
grep -rlFwZ abc.com . | xargs -0 sed -i 's/\<abc\.com\>/abc.us/g'
git diff

Explanation of the flags of grep:

-r search recursively in all sub-directories
-l print filenames that matched instead of the matches
-F treat the pattern as a literal string, not as a regular expression (keep the . a dot, not "any character")
-w match whole words (so that "foo abc.com bar" matches, while "fooabc.com bar" or "foo abc.combar" doesn't)

In the pattern of sed the \< and \> serve the same logic as the -w of the grep, and the . is escaped to serve the same logic as the -F of the grep.


Missing spotify album image from top bar pop up menu

Spotify's album art missing isn't any fault of your desktop, it's due to Spotify using the wrong URL to get album art from.
Related bug report: Album art missing from notifications


How to transfer files from Samsung Galaxy to Ubuntu 12.04?

You might be able to use AirDroid to transfer files over home WiFi. I sometimes use it and it works well for me.


How can I start Busybox at boot time, from GRUB, or even before GRUB?

You will need to make a custom initrd.

Extract an initrd, note I use ~/initrd as a working directory

cp /boot/initrd_your_version ~
cd ~/initrd
gzip -dc ../initrd_your_version | cpio -imvd --no-absolute-filenames

You did not mention what you wanted to do, so I can only give general advice here.

Now, add any libs and/or binaries you need into the ~/initrd . Use ldd to identify dependencies.

Edit ~/initrd/init , it is a shell script, so add in what you need.

Package it up

cd ~/initrd
find . | cpio --quiet --dereference -o -H newc | gzip -9 > ../initrd-custom.img.your_version

See also: http://en.gentoo-wiki.com/wiki/Initramfs

Sure that link is gentoo, but I do not know of any such detailed document for Ubuntu.

See also : http://www.busybox.net/about.html


If you have enough juice in your hardware, I recommend you to first install it in a virtual machine (using VirtualBox for example) if you fancy the word "installation" or just play with the live version of Ubuntu for a while. I am an ex-owner of (I think) the same Toshiba notebook and had bad experience years ago. However things have changed and improved (more or less) so drivers will probably not be an issue. Before you install a new OS, it is always a good idea to do some research and see if others had good/bad experience with Ubuntu and your model in particular. Drivers provided by the notebook-manufacturers are in 99% of all cases extremely outdated. They usually provide some drivers once (when the model appears on the market) and that's it. So you will probably get newer (and better) drivers than you have in Windows (unless you install for example customized GPU drivers in Windows like I do).

I might be going too far but I do believe that if the drivers are the only thing that keeps Vista Home Edition on your hard drive you should format your hard drive (after you make sure that you won't have too many troubles with having just Linux on your notebook) and install Ubuntu.


OK, it seems that in it's default configuration 11.10 with compiz doesn't ever play the system alert sound.

To fix this, open /etc/pulse/default.pa:

sudo nano /etc/pulse/default.pa

Around line 158, you should see a line that looks like:

#load-module module-x11-bell sample=bell-windowing-system

Remove the leading "#" so that it reads:

load-module module-x11-bell sample=bell-windowing-system

Save that file, log out and back in, and you should have your alert sounds back.


I was able to get all my data back. So for anyone that runs into a problem where your drive suddenly losses it's partition and unable to mount testdisk is an easy and powerful tool for recovery.

Pretty easy, just run testdisk select the drive you want to recover, have it analyze your drive, list the contents, and select files to copy, and copy them to another device.


The Stanley Parable Demo not launching on Ubuntu 18.04

I fixed it by browsing the game files, opening the file named bin, and renaming lipstd++.so.6 to BADlibstdc++.so.6


If you have the names in a text file (names.txt) already, you just want to replace all newlines with commas:

$ perl -pe 's/\s*\n/,/' names.txt
map_leaf_M_BAN.AC.txt,map_leaf_M_BAN.A.txt,map_leaf_M_BAN.C.txt,map_leaf_M_BAR.AC.txt,$

But that still needs a final newline and has an extra comma in the end. So remove those with:

$ perl -pe 's/\s*\n/,/' names.txt | sed 's/,$/\n/'
map_leaf_M_BAN.AC.txt,map_leaf_M_BAN.A.txt,map_leaf_M_BAN.C.txt,map_leaf_M_BAR.AC.txt

And, to save this in a new file, just redirect the output:

perl -pe 's/\s*\n/,/' names.txt | sed 's/,$/\n/' > newFile.txt


I just found what was causing it. Finally!

The problem was that I had installed xboxdrv in order to use my twin gamepad in games. It didn't work, and it soon turned out that I didn't need that driver anyway since Steam can map the controls all by itself, so I removed it.

However, I just found that there are some files left over, and one of them was causing my suspend issue. It was /etc/pm/sleep.d/xboxdrv. I just opened that folder as root and moved the file to another location, and voila, the suspend function works.

I hope that my "discovery" will be useful to others.


How to invoke the Shutdown dialog in Docky under Lubuntu 12.04

Go to /usr/share/applications/Then search for Shut and it will bring Shut Down. Just drag and add it to your Docky


how can I customise the launcher icons and add a few files to the homedir of the to-be-user?

The directory to use in this case is the /etc/skel. Here you can create all files that you want your users to have once they create their accounts. This directory already have files that you can modify too:

ls -al /etc/skel
total 28
drwxr-xr-x.   2 root root  4096 mar 24 11:46 .
drwxr-xr-x. 174 root root 12288 abr  2 19:15 ..
-rw-r--r--.   1 root root   220 dic 31  2012 .bash_logout
-rw-r--r--.   1 root root  3392 dic 31  2012 .bashrc
-rw-r--r--.   1 root root   675 dic 31  2012 .profile


How can I use RAM storage for the /tmp directory and how to set a maximum amount of RAM usage for it?

You are absolutely right. The according fstab entry would look like this:

tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=512M 0 0

Please note:

As tmpfs gets filled up, it will behave as any physical hard drive by giving an "not enough space" error. While rebooting (and thus emptying the cache) will fix this, you may run into trouble when a single operation consumes more space to begin with than there's space on tmpfs. In this case your computer will start to swap from ram to disk, which will make your system crawl to a halt, given you've got a swap partition to begin with, of course.

Considering this, a size of 512MB might be far too less nowadays, since much more ram is in existence in modern machines and it has become much cheaper. Since you've already got 16GB of ram, using the default value of half your ram for tmpfs should more than suffice for almost all scenarios. To use the default value, simply leave out the size=512M entry in your /etc/fstab file.

Another note:

You can quite as easily mount other system folders into ramdisk as well, such as

/var/cache

/var/games

/var/log/apt (use only defaults,noatime without mode= or nosuid)

But beware: the same rules apply as above, running out of space might cause major trouble. E.g. imagine running out of space for /var/log/apt will render you unable to install any programs!
Furthermore, loading /var/log folders into ramdisk will delete all your log files upon reboot, so you won't be able to debug your system if anything unexpected happens.
So use these settings at your own risk!

Editorial note:
I removed the /run in tmpfs mount option since this folder and its subfolders are already mounted in tmpfs by default.


Separate Icons for Open Applications and Favourites in Ubuntu Dock

So your issue appears to be that sometimes you click the wrong icon on the dash, i.e., not the icon of the app you want to switch to, but another icon next to it, of a favorite that is not running.

Unfortunately, this is not supported with the default dock. There, the idea is one of "launch or switch to", i.e., clicking an icon either switches to the application if it is running, or launches the application. Favorite icons remain in their fixed place.

You could change your workflow somewhat by not including any favorites on the dock. Then, you could launch from the "Show applications" overview. The "Frequent" tab will show all your frequently applications anyway. Switching then is on the Dock, which at that point will only contain icons of running programs. Small drawback is that launching is then two clicks away instead than one.

Alternatively, you could use the Gnome shell extension "Dash to Panel". Going into the extension's options, you can configure that launchers and running applications are separated. The drawback here (or the advantage according to your taste) is that this extension will quite significantly change the look and feel of your desktop: it will change the current topbar and icons to a single bar at the bottom of the screen, much like in Windows 10.

Of course, you could entirely move to a desktop that supports this workflow from the start, such as Cinnamon, xfce or Mate.


What solved this problem in my case was posted over at the Ubuntu Forums.

Append /etc/modprobe.d/alsa-base.conf with the following line:

options snd-hda-intel model=generic

Then restart your Ubuntu system.


How do I change default boot kernel if I set it wrong to memtest?

From the https://help.ubuntu.com/community/Grub2

You can change which kernel grub boots to during the computers start-up.

As the computer starts up.

  Hold down SHIFT to display the menu during boot. In certain cases, pressing the ESC key may also display the menu.

You should now see the the grub menu. Use the arrow keys to navigate to the correct kernal to boot. Then follow instructions in the above post.

Then follow the instructions in this post to fix the menu entry.

Or try the ubuntu community documentation here.
https://help.ubuntu.com/community/Grub2/Setup#Configuring_GRUB_2


nvidia-331 +Nvidia Optimus (K2000M, Lenovo W530) + Ubuntu 14.04 + external display on VGA not recognized

solved it by downgrading to ubuntu-drivers-common=1:0.2.91.4

sudo aptitude install ubuntu-drivers-common=1:0.2.91.4

sudo aptitude hold ubuntu-drivers-common


Can I (if so how) uninstall windows after completely installing Ubuntu 12.04 from a USB boot drive?

I just thought I would write a clearer, and more noob friendly version of the others answers. :)

Steps are:

Open Disk Utility (Go to menu and search for it).
Identify your Windows partition. It should be a NTFS filesystem.
If mounted, click the "Unmount disk" button.
Click the "Format disk" button.
Choose Ext4 from the dropdown list.
Choose a name for the partition.
Make sure that, the "Take ownership of filesystem" checkbox is ticked, and that the "Encrypt underlying device" checkbox is not.
Click format.

Edit: Step 9: Open a terminal, by either searching for it in the menu or pressing CTRL + ALT + T, and type update-grub and press enter.

Enjoy! :)

(Thanks to John S Gruber for Step 9.)


Can I have a dhcp interface in /etc/network/interfaces?

Without catching what you really want to do you could use multiple instances of your interface: See setting up multiple ips in ubuntu

Hope this helps


Ubuntu 20.04 and Docker 19.03.8 - docker removes default gateway and breaks host connectivity

I was running into the same issue with Ubuntu 20.04 LTS and Docker 18.09.2. route -n showed the same symptom. sudo netplan apply would bring it back temporarily.   I was able to fix it by creating /etc/docker/daemon.json with default-gateway set.
{
    "debug": true,
    "default-gateway": "192.168.1.1"
}

After starting docker again, the gateway address seemed to stick around and route -n looked good still.


cannot connect to MYSQL server through phpmyadmin

Remove the lampp folder from the /opt folder using the command

  sudo rm -rf  /opt/lampp

and now make a clean install again. But still I cannot figure out what my problem was.


How to update from a unsupported version of ubuntu to latest?

Well in order to be able to do that, you'll need to go from 11.o4 --> 11.10 --> 12.04 and then 13.04.  Plus some of your installed software that was done under 11.04, might not work with 13.04.

I would recommend that you backup any information that you want to keep, and do a fresh install.

Also the fact that 11.04 has reached End-of-life.  End-of-life releases are versions of Ubuntu that have no official support. So it would be best to perform a fresh install of the latest Ubuntu release.

Now if you still want to go the upgrade route, then take a look at Upgrade Notes.


https://www.jalview.org/getdown/release/install4j/1.8/jalview-2_11_1_2-linux_x64-java_8.sh is a bash installer that will put an (auto-updating) copy of Jalview into your user-space (default ~/opt/jalview).  The "linux_x64" installer also installs a local Java 8 JRE (found in ~/opt/jalview/jre) so a separate Java 8 JRE is not required.
Work has started on putting a maintained Jalview into the Debian repository but there's not been a chance to do much work on this yet so it is not going to be soon!


Formatted Partition and now I have Grub Rescue Error

The problem is because you deleted the Ubuntu partition, and hence Grub's (the bootloader manager which took care of your multiboot system) configuration files. Since you've decided to use Windows OS, you'd have to restore Windows bootloader.
Here are the ways to fix your Windows XP/Vista/7/8 bootloader:
Using Windows installation disc:

If you don't have a Windows installation DVD, make your own bootable USB.

Boot with your Windows installation DVD or USB.

Choose your regional settings, select your Location/Keyboard setting then click next,

Click on Repair your computer,

Choose the correct installation of Windows from the operating system list box and then click next,

Then in the System Recovery Options screen choose Command Prompt (Here are some step-by-step pictures on how to get to command prompt using a Windows 10 bootable USB.)

From there, type in the following 2 commands:
bootrec /fixboot
bootrec /fixmbr

Now close the two windows and click "Restart." Take out your Windows DVD and hopefully, you will be left with your Windows bootloader.

Using Boot-Repair disk:

In Advanced options of the Boot Repair disc, choose to Restore MBR under the Main options.
Under MBR options, select the Windows 7 partition for Partition booted by the MBR option
Click the Apply button.


What causes SSH problems after rebooting a 14.04 server?

Quick answer:

SSH is not the problem. The command you use to reboot is the problem: don't do reboot now, do reboot or shutdown -r now to reboot your system.

The command syntax (since 13.04) has been:

reboot [OPTION]...  [REBOOTCOMMAND]

The REBOOTCOMMAND never existed before. In 12.04, your now was just ignored but now it's being used... And it's breaking everything.

Long answer, with my tests results and explanation:

I have a similar problem with some servers running 14.04 AND in VPS (hosted at the French OVH provider - running OpenVZ) AND when doing reboot now inside the server itself.

Like you I've issued the command reboot now from the console (logged in using SSH). A few second after I pressed RETURN, my session is automatically disconnected.
Like you I've never been able to reconnect to the server via SSH after issuing this command.

So, I decided to open the KVM console provided by OVH. (emulating the direct access using keyboard and screen on a physical server for this kind of virtual server).

I was able to connect to my machine and I saw that she was entering into Single User Mode, waiting for me to press CTRL+D to continue or to enter the root password to go into maintenance mode.
I pressed the key combination to go let the process continue and then was able to SSH into my system again. What was my surpise to see, after running uptime, that the uptime was not 2 or 3 minutes but yet a lot of day : reboot now executed inside an Ubuntu 14.04 VPS is not really rebooting but is just asking to go into Single User mode!

From this, I've learned to never ask a reboot from within my VPS but to request it from the command provided on the management interface of the hoster.

Thus there is no problem with your SSH installation. The problem is when you type reboot now. In fact, I tested it afterward also, if you had typed reboot (just the word, no option), it would have done what you were intending to do : reboot the server.

Using reboot with an argument (from the man page) call the command shutdown with the given arguments.
And indeed, if I execute shutdown now, I have the same behaviour : the system is not rebooted, it goes into single user mode.

Remark: it looks like it is the intended behaviour as the message appearing on the screen after hiting executing this command says something like :

  The system will be brought to the maintenance mode

Maintenance mode or single user mode, this represent the same, a runlevel with noting more than a shell, no network, no network processes, ...

This may be confusing, but note that the correct usage of shutdown is, for instance : shutdown -h now to halt the system now or shutdown -r now to reboot it now.
I wasn't aware that shutdown now would only bring the system into single user mode. I usually do init S to achieve this.


Why does Skype 4.3 look so outdated (old) in Ubuntu 14.04 (64 bit)?

What have I done wrong?

Nothing.

Skype is not maintained by Ubuntu or even anyone in the Linux community. Skype is currently owned by Microsoft and they do not care about other operating systems than their own unless someone pays them to care.

Microsoft bought Skype 10th of May 2011, that is probably when it stopped getting new versions and the current release kept that version.


How do I access Ubuntu server running in VirtualBox from outside

By default a guest machine in VirtualBox is configured to use so called NAT networking - the guest's network adapter's IP is in a "virtual" subnet which includes the guest and the parent VirtualBox application which acts as a gateway. For the guest it looks like it accessing internet via something like an ordinary DSL modem, but the guest can't be accessed from anywhere, just like you can't access machines in your local network from Internet without specifically configuring your modem to allow such access.

VirtualBox documentation has the following list of networking modes:

  Each of the eight networking adapters can be separately configured to
  operate in one of the following modes:

  Not attached

  In this mode, VirtualBox reports to the guest that a network card is
  present, but that there is no connection -- as if no Ethernet cable
  was plugged into the card. This way it is possible to "pull" the
  virtual Ethernet cable and disrupt the connection, which can be useful
  to inform a guest operating system that no network connection is
  available and enforce a reconfiguration.

  Network Address Translation (NAT)

  If all you want is to browse the Web, download files and view e-mail
  inside the guest, then this default mode should be sufficient for you,
  and you can safely skip the rest of this section. Please note that
  there are certain limitations when using Windows file sharing (see the
  section called “NAT limitations” for details).

  Bridged networking

  This is for more advanced networking needs such as network simulations
  and running servers in a guest. When enabled, VirtualBox connects to
  one of your installed network cards and exchanges network packets
  directly, circumventing your host operating system's network stack.

  Internal networking

  This can be used to create a different kind of software-based network
  which is visible to selected virtual machines, but not to applications
  running on the host or to the outside world.

  Host-only networking

  This can be used to create a network containing the host and a set of
  virtual machines, without the need for the host's physical network
  interface. Instead, a virtual network interface (similar to a loopback
  interface) is created on the host, providing connectivity among
  virtual machines and the host.

  Generic networking

  Rarely used modes share the same generic network interface, by
  allowing the user to select a driver which can be included with
  VirtualBox or be distributed in an extension pack.

If you need to access your guest from outside, you need to configure bridged networking, which will give your guest its own IP in your local network. The configuration is done in VirtualBox settings, not in the guest OS.

To be able to access the server from your mobile (i.e. from outside of your LAN), after configuring the networking you additionally will need to set up port forwarding on your DSL modem.


Check if the CPU supports VT-x virtualization:

lscpu | grep VT-x

If the CPU supports VT-x virtualization you will see this result:

Virtualization:        VT-x

If it does not show this result and the computer doesn't support VT-x virtualization in the BIOS setup, you can't install a 64-bit guest OS in VirtualBox.

You can also check if your computer's CPU supports Intel Virtualization Technology (VT-x) at the official Intel website by searching the web for ark <CPU-model>


Android device connects to my computer, but doesn't play audio over Bluetooth

You should install bluez-audio and blueman . and it will work


Ubuntu GNOME was "merged" with "original Ubuntu" - Ubuntu GNOME is  obsolete now, because "original Ubuntu" starting with edition 17.10 will have the GNOME desktop environment as default.


CUPS Not reaching printer unless printer powered on and off

Looks like it was a name resolving failure.  Fixed by statically assigning an IP to the printer and changing the connection info to the ip.

lpd://BRW00234EA65E02/BINARY_P1

to

lpd://PRINTERIPADDRESS/BINARY_P1


Can't install php5-fpm after upgrade to 12.10

I was able to solve this but I am not exactly sure how. I don't really understand the apt system.

Apparently the 'c' at the beginning of the aptitude search response means that the package was removed but left some configuration information behind. I guess Saurav's commands should have corrected this and I am not sure why they didn't.

I added several entries into sources.list but I found this one at packages.ubuntu.com/php5-fpm:

deb http://security.ubuntu.com/ubuntu quantal-security main universe

(maybe that's two, but note that Thomas W's universe is in there, but the rest of the php packages drew from main)

I then updated the package list in interactive aptitude (which I only discovered now - I don't have access to synaptics). In aptitude, php5-fpm at first showed up in 'Not Installed Packages \ php \ main' and after the update that disappeared and it showed up under '... \ php \ universe' at which point the install successfully reinstalled all the php packages.

There must have been some incompatibility between the version that was stuck in my system (whose version was different from that of php5) and the versions available in the repositories (also lacking universe, at least). Something I did in aptitude (I assume the update but I didn't record all I did) must have removed the old information. I think if I had followed Saurev's suggestion after adding the correct source it would have worked. Thanks, Thomas and Saurev, for your suggestions.


in eclipse.ini

insert

--launcher.GTK_version
2

before

--launcher.appendVmargs


maybe the image of ubuntu was not correctly recorded to usb stick or there were errors during ubuntu iso download? I use unetbooting to make bootable usb drive and it works perfectly


Why doesn't it work to install Ubuntu? Please help!

very similar issue just slightly different HW, safe boot is disabled (or just using legacy):

boot for install crashes on 14.04 (Display related)


How to install printer Canon Pixma iP1800 on (x)ubuntu 20.04

I received answer from Mr. Thierry. He's guy who maintains repository for Canon printer drivers for Linux
sudo add-apt-repository ppa:thierry-f/fork-michael-gruz

Hi,
I am not Michael Gruz, I have taken over his work and modernized it.
ia32 does not exist anymore.
Ubuntu has decided to ban the i386 from PPAs since version 20.04
I suggest you use the Disco (Disco Dingo = Ubuntu 19.04) versions, they are compatible.  From now
on, you have to proceed differently, I give you the procedure below:
sudo dpkg --add-architecture i386

wget https://launchpad.net/~thierry-f/+archive/ubuntu/fork-michael-gruz/+files/cnijfilter-ip1800series_4.10+3.5.4-1904ubuntu1_i386.deb
wget https://launchpad.net/~thierry-f/+archive/ubuntu/fork-michael-gruz/+files/cnijfilter-common_4.10+3.5.4-1904ubuntu1_i386.deb

sudo apt update
sudo dpkg -i --force-all ./cnijfilter-ip1800series_4.10+3.5.4-1904ubuntu1_i386.deb ./cnijfilter-common_4.10+3.5.4-1904ubuntu1_i386.deb
sudo apt install -f

Thierry

This solution works for my 2 computers with Ubuntu Mate 20.04 and Xubuntu 20.04 like a charm


network bridge not forwarding traffic from span port on router

Here's what I've learned:

A Linux bridge is a misnomer... In the brctl world, a bridge behaves more like the switch of the networking world. Bridges are smart, in the sense they figure out what MAC addresses are attached to it and only forward ethernet frames to the bridge member that has a matching MAC address for efficiency. This is the behavior you'd expect out a physical networking switch.

The virtual software defined device I'm looking for is analogous to a networking hub... Where all frames are rebroadcast to all members of the hub, regardless of the MAC address the frame was destined for.

Clues:

http://linuxcommand.org/man_pages/brctl8.html
https://rarforge.com/w/index.php/Port_mirror_(span)

So for my bridge span0:

brctl setageing span0 0
brctl setfd span0 0

or in /etc/network/interfaces:

auto span0
iface span0 inet manual
  bridge_ports em1
  bridge_fd 0
  bridge_maxwait 0
  bridge_stp off
  bridge_maxage 0
  bridge_ageing 0

whew. Hope this helps someone else!


Can any browser switch to already open tab, if address you're opening is already open?

This is a feature of Firefox 4.  If you start typing an already opened address, the drop-down menu will suggest switching to the already active tab pointing to that address.

There is an add-on for Firefox that will give you total keyboard control over the browser called "Pentadactyl" (here).  While not required, you'll probably enjoy it more if you already know vi keybindings.

So in fact, there is a way to change tabs with a "terminal" (ok, not really a terminal).  But Pentadactyl supports the following commands:

:tabnext
:tabprevious
:tablast

and several others.


What is the difference between locate/whereis/which

which finds the binary executable of the program (if it is in your PATH). man which explains more clearly:

  which returns the pathnames of the files (or links) which would be
  executed in the current environment, had its arguments been given as  commands in a strictly POSIX-conformant shell.  It does this by searching the PATH for executable files matching the names of the  arguments. It does not follow symbolic links.

whereis finds the binary, the source, and the man page files for a program. For example

$ whereis gimp
/usr/bin/gimp /usr/lib/gimp /etc/gimp /usr/share/gimp /usr/share/man/man1/gimp.1.gz

You can get extra detail by passing the output of these commands as arguments to ls -l or file

$ ls -l $(which gimp)
lrwxrwxrwx 1 root root 8 Jun 30 19:59 /usr/bin/gimp -> gimp-2.8

$ file $(which gimp)
/usr/bin/gimp: symbolic link to gimp-2.8

locate indeed finds all the files that have the pattern specified anywhere in their paths. You can tell it to only find files and directories whose names (rather than full paths) include the pattern with the -b option, which is usually what you want, and gives a less unwieldy list.

locate is fast because it uses a binary database that gets periodically updated (once daily, by cron). You can update it yourself to ensure recently added files are found by running sudo updatedb

One more thing about locate - it doesn't care whether files still exist or not, so to avoid finding recently deleted files, use -e. Often I also pipe to less as the list can be long. Typically I do:

sudo updatedb && locate -b -e gimp | less

How Unity's dash works is explained here - it uses Zeitgeist to index system files and learn from usage patterns, and enables other applications to make use of this data, so it is doing a lot more work than locate.


ubuntu 13.04 not working properly after being upgraded from 12.10

First of all try to complete the installation of the downloaded packages, run from a shell this command:

$ sudo apt-get install -f

and possibily report the output of the command (take a picture with your phone if you cannot connect in some way).

Let us know


Ubuntu live cd : black screen and blinking cursor

The original poster solved the problem and reported the solution in an edit:

  In fact, it was not a graphic card problem. I had to disconnect the
  dvd drive and connect it to another free sata connector (I don't
  really understand why Ubuntu had trouble with this connector and
  Windows 7 not). After that, everything worked fine.


Here are the contents of /usr/share/doc/libdvdread4/README.css

  Content Scramble System (CSS)

  Many DVDs use CSS[0] as a form of a Digital Rights Management (DRM) to
  encrypt the content of Video DVDs. To play such discs a special
  library is needed to decode them, libdvdcss.

  Due to the legal limbo of libdvdcss in some particular juristictions,
  some distributions including Debian do not distribute libdvdcss.

  If it is legal for you to use CSS in your juristiction, you can:

  Manually download and compile the source code from
  http://www.videolan.org/developers/libdvdcss.html.
  Use packages from derivatives that include libdvdcss.

  [0] http://en.wikipedia.org/wiki/Content_Scramble_System

  -- Daniel Baumann   Fri, 02 Oct 2009 16:10:06
  +0200

So we need other solution.

Try to install other packages with

sudo apt-get install libdvd-pkg ubuntu-restricted-extras
sudo dpkg-reconfigure libdvd-pkg