Boot option not included USB after fully installed in USB with UEFI

I'll edit this answer instead of responding in the comments.
To answer your last question, where on the live media are the bootloaders?
Look in the live media's /EFI/BOOT directory and see BOOTx64.EFI  and grubx64.efi.
These are the two files that should wind up on the full-install USB's EFI partition (in the EFI/BOOT directory).  Also on the full-install's EFI, there must be a /EFI/ubuntu/grub.cfg file.  This file should have a UUID in it which must be the UUID of the root partition of the full-install USB (I think it gets set up correctly, even though all the files get written to the internal disk's EFI instead of the full-install's EFI.).
Those three files in those locations should be all that it necessary for a UEFI secure boot, done by selecting the USB device for booting.  Looks like the below:

full-install USB
  EFI partition
    EFI  (directory)
     Boot  (directory)
       bootx64.efi
       grubx64.efi
     ubuntu  (directory)
       grub.cfg
  root partition

So your EFI/Boot directory is missing the grubx64.efi file (if bootx64.efi is a copy of shimx64.efi, check the sizes), or you have set up with secure boot disabled, and bootx64.efi is actually a copy of grubx64.efi (again, check sizes).  Using shimx64.efi as bootx64.efi will work with or without secure boot being on, so that's what I recommend.  Both files are found in the EFI/ubuntu directory, so you can fix that up.
  The UUID for you root, , UUID="1b3eccd8-7b52-4de9-947d-5183c43a5584 should be the UUID used in the EFI/ubuntu/grub.cfg file.  Edit the file if necessary to change the UUID.

OK, so copy grubx64.efi from EFI/ubuntu to EFI/Boot, so it's ion the same directory as bootx64.efi(shim).  Check the UUID in grub.cfg, note, I originally had the wrong ID, the partition id instead of the UUID, but I changed that.
Selecting the USB device for a UEFI boot should then work (both with or without secure boot enabled).  If not, your system does not follow the UEFI spec, so additional tweaking may be necessary, but doing the boot from the bootx64.efi gets around most name nonsense introduced by some vendors.


Swift configuration throws error "unable to create container" when I click on Dashboard to create container

@guest

If you are using Ubuntu i would suggest you to follow the official OpenStack Install guide for the same http://docs.openstack.org/havana/install-guide/install/apt/content/ch_swift.html

This guide is for latest Havana release of OpenStack, hope it helps.


It seems the google talk plugin is flash based. You may be having problems with the new version of flash.

This isn't guaranteed to fix your problem, but try disabling the latest version of flash (will default to 11.2 instead).

Type about:plugins in the url bar
Click details
Disable Flash


Ubuntu 20.04 dual monitor not working with Intel HD graphics in Thinkpad X270

Just in case anyone having similar problem - the issue is with the fact the DVI port on my docking station stopped working with Ubuntu 20.  I switched second  monitor to HDMI and its working fine now.


I am not aware of any working solution involving qtcreator.

You could of course set up a tmux/vim solution to collaborate on code edition but there's many features an IDE provides that can't actually be easily shared with your co-writers.

See [Qt-creator] Collaborative Editing


Is there any stable version of Skype for Linux?

As of September 2017, there is only Beta release of Skype for Linux 64 bit

The point to be noted is that apart from the Bright screen promise on the Skype website they have made zero efforts to release a stable version. It has been in Beta for ages.

============= Update ================

After prolonged searches and I have somehow landed on this skype.com page where you can get the 32 Bit official Skype (Although V 4.3 it works great)

skype 32 bit

I have tried this and works great, even the voice calls ...!!

Offical 64-bit Skype can be found here on skype.com

I guess they are updating the site now...


Had the same problem after upgrade to the latest ubuntu.
I copied the  system files from a laptop onto a spare disk. Did a chroot from a rescue disk and fixed grub.
Booted from a usb port on my old intel box for which there are no drivers.
ctl+alt+f1  gave me a shell.
in /etc/lightdm/lightdm.cfg found autologon for user. Disabled it by inserting # at start of line.
ran dpkg-reconfigure lightdm
ran service lightdm restart
This gave me a logon screen. Changed the session to the top option (I think gdm) and was able to logon.
Logged out and changed the session back to ubuntu unity.
Peter


yes you can install ubuntu 14.04lts or 15.04 ensure that you download a version that is 32bit and use the micro usb to usb cable to plug into a usb3 hub plug keyboard mouse and dvd drive or pen stick and reboot device and then press del to enter bios and force to boot from cd or penstick do a live boot and test then click install (note some versions of linx may require write protection switching off in bios)


How to install pycrypto 2.6 in python 3.2 in ubuntu

i am terribly sorry, but it can't be done. there is one site that claims to have done it, but i have not tried it as others say it does not work. here is the link for the site :
http://lists.dlitz.net/pipermail/pycrypto/2010q1/000198.html

hope this helps, even a little :)


According to the dmesg excerpt, the disappearance of the device in the lsusb listing, and the driver issues Windows reports, your USB drive is terminally broken. A good data recovery tech may be able to salvage the data on it, since often only the USB interface chip is broken, not the flash memory or its controller.


How to configure Conky to be on one specific viewport/desktop?

Just follow these simple steps:

Look through your conky setup for any references to own_window_hints.  If there is a reference to 'sticky', remove it as it will cause conky to draw your window on all workspaces (making this entire exercise a moot point)
Look through for references to own_window_type as well.  You want this set to 'normal', because it does not enable the 'sticky' from above.  For my money, I personally do not use own_window_type, instead preferring to set everything through own_window_hints for finer control of the own window settings.
Determine the size of each viewport.  This can be done with the wmctrl program, which you might need to install first.  The command to install it is:

sudo apt-get install wmctrl

To use it, type into a command window, wmctrl -d.  This will give you the overall size of your combined viewports (DG), the viewport location of your current workspace (VP), and a few other details like the dimensions of your current workspace.
Apply a gap_x and gap_y to match these dimensions for each workspace you want to move your conky window over to. For example, if wmctrl is giving you:

  0  * DG: 6720x1050  VP: 0,0  WA: 49,24 1631x1026  N/A

then you might want to start with gap_x of at least 1631 to start with to get onto the second workspace (in this example you have 4 workspaces of 1631x1026 set side by side in a horizontal arrangement.

From there, obviously tinker away to get it precisely where you want it...and happy Conkying!

Source


It is a bug in a library you are using, or a bug in the way you are using it. Given the pulse/mainloop.c:741 in the error, it seems like you're probably using Pulseaudio, and likely doing something wrong with the way you're using that API.

You probably need to fix the bug in your code (or in pulseaudio, if it's actually a bug there), to avoid the issue.


You don't say if you have sound with other software but I guess yes.
Check pulseaudio doing a Skype test call while running  "sound settings" and going  in the "applications" tab: you should see Skype (or Mumble) with a volume setting   .
But it is better to install pavucontrol (pulseaudio volume setting) and look in the "playback"  tab : Skype (or mumble) should also appears , adding  a vumeter  .
Look also in "output device" tab : if you use f. i. a usb headphone only for Skype, you can choose it there.


Crontab a command with password input automatically

You should set up your account to be able to ssh to root@me.com without a password by using ssh keys. Many, many sources on how to to this are available via a web search.


How can I 'hide' icons away to a different panel?

I can think of two possible ways:

Using Drawer applet

Right click on the panel and select Add to Panel...
Select Drawer from the list of applets
Right click on the Drawer icon and select Add to Drawer...
Select Indicator Applet Complete, Notification Area etc. from the list

Now you'll see all those icons only after clicking on the Drawer icon.

Adding an extra panel

Right click on the panel and select New Panel
Right click on the new panel and select Add to Panel...
Select Indicator Applet Complete, Notification Area etc. from the list
Right click on the new panel and select Properties
Select Orientation (position) as you like and mark the checkbox next to Autohide

Now the new panel with all those icons will only show up when you drag the mouse pointer to the correct edge of the screen.


How to open the Software-Center in the terminal?

The command to open the software center via the Terminal is -

software-center

Additionally, if you wish to display a package using the software center -

software-center <packagename>

To install it -

sudo apt-get install software-center


OK finally got mine working perfectly here are the steps I did. This is all done from the terminal, minus the download. I'm brand new to Ubuntu, so far drivers have been a pain in the a.., wifi setup was worse.
Ubuntu 16.04 - fresh install on a Samsung Ativ Book 9 Spin
Note the driver version number and update yours accordingly as it will change in time.

Download driver from http://www.displaylink.com/downloads/ubuntu

Move the driver to somewhere for manipulation (I put mine under ~/driver/displaylink) and unzip it

Make the installation script executable
chmod u+x displaylink-driver-1.0.335.run

Run the script
./displaylink-driver-1.0.335.run --keep --noexec

Enter the created directory
cd displaylink-driver-1.0.335.run/

Modify the the displaylink-installer.sh with your favorite editor:
Remove these lines
detect_distro()
    {
      if which lsb_release >/dev/null; then
        local R=$(lsb_release -d -s)
        echo "Distribution discovered: $R"
        if [ -z "${R##Ubuntu 14.*}" ]; then
          SYSTEMINITDAEMON=upstart
        elif [ -z "${R##Ubuntu 15.04*}" ]; then
          SYSTEMINITDAEMON=systemd
        fi
      else
        echo "WARNING: Unknown distribution, assuming defaults - this may fail." >&2
      fi
    }

Replace them with these:
detect_distro()
{
  if which lsb_release >/dev/null; then
    local R=$(lsb_release -d -s)
    echo "Distribution discovered: $R"
    SYSTEMINITDAEMON=systemd
  fi
}

Install the dkms package (This was to resolve an error I was getting regarding missing packages for dkms, whatever that is)
sudo apt-get install dkms

Run the installation script
sudo ./displaylink-installer.sh install

Go to Settings > Displays. I saw it listed at this point but only a black screen on the Asus monitor. Unplug it

Restart, plug in the monitor and it magically worked for me. Clear as mud

Solution is from a mix of:

"How to install DisplayLink for Ubuntu" from displaylink.com
Using the Asus MB168B+ with Ubuntu 15.10

Note I really only followed the coding struggles article and was missing the dkms packages that were mentioned in the displaylink.com article.


As suggested by @bodhi.zazen, installing ubuntu from the scratch fixed everything. Make a backup your home folder and root folder and  you are good to go to perform a new install.


How do I measure performance of a virtual server?

Well, since nobody wants to answer... :)

Searching Synaptic for "bench" finds a lot of benchmarking suites capable of testing different aspects of a machine. The only one I heard about previously is phoronix-test-suite, which I'm sure is very comprehensive although my short attention span didn't allow me to figure out how to use it.

Then I found UnixBench, which is described as

  UnixBench is the original BYTE UNIX benchmark suite, updated and
  revised by many people over the years.

  The purpose of UnixBench is to provide a basic indicator of the
  performance of a Unix-like system; ... These test results
  are then compared to the scores from a baseline system to produce an
  index value, which is generally easier to handle than the raw scores.

  Multi-CPU systems are handled. ... The tests compare Unix systems by
  comparing their results to a set of scores set by running the code on
  a benchmark system, which is a SPARCstation 20-61 (rated at 10.0).

UnixBench is mentioned by Linode as a tool for VM performance testing in this blog post:

  Using identical hardware, KVM Linodes are much faster compared to Xen.
  For example, in our UnixBench testing a KVM Linode scored 3x better
  than a Xen Linode.

The test suite is NOT in Ubuntu repositories, but it is trivial to download and compile it:

wget https://github.com/kdlucas/byte-unixbench/archive/master.zip
unzip ./master.zip
cd ./byte-unixbench-master/UnixBench
./Run

The tests take a while to finish. The output looks like

------------------------------------------------------------------------
Benchmark Run: Mon Oct 15 2012 23:55:22 - 00:23:16
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       12015218.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2214.8 MWIPS (10.1 s, 7 samples)
Execl Throughput                                896.9 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks         58968.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           14578.6 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        422068.2 KBps  (30.0 s, 2 samples)
Pipe Throughput                               70993.3 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  16001.5 lps   (10.0 s, 7 samples)
Process Creation                               1861.8 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2525.5 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    737.8 lpm   (60.1 s, 2 samples)
System Call Overhead                         432496.2 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   12015218.4   1029.6
Double-Precision Whetstone                       55.0       2214.8    402.7
Execl Throughput                                 43.0        896.9    208.6
File Copy 1024 bufsize 2000 maxblocks          3960.0      58968.3    148.9
File Copy 256 bufsize 500 maxblocks            1655.0      14578.6     88.1
File Copy 4096 bufsize 8000 maxblocks          5800.0     422068.2    727.7
Pipe Throughput                               12440.0      70993.3     57.1
Pipe-based Context Switching                   4000.0      16001.5     40.0
Process Creation                                126.0       1861.8    147.8
Shell Scripts (1 concurrent)                     42.4       2525.5    595.6
Shell Scripts (8 concurrent)                      6.0        737.8   1229.7
System Call Overhead                          15000.0     432496.2    288.3
                                                                   ========
System Benchmarks Index Score                                         249.7

------------------------------------------------------------------------
Benchmark Run: Tue Oct 16 2012 00:23:16 - 00:51:20
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       42619039.2 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     8274.0 MWIPS (10.4 s, 7 samples)
Execl Throughput                               3398.5 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks         68332.4 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           21462.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        718205.6 KBps  (30.0 s, 2 samples)
Pipe Throughput                              149713.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  61968.3 lps   (10.0 s, 7 samples)
Process Creation                               5321.7 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5957.1 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    812.6 lpm   (60.1 s, 2 samples)
System Call Overhead                        1557391.5 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   42619039.2   3652.0
Double-Precision Whetstone                       55.0       8274.0   1504.4
Execl Throughput                                 43.0       3398.5    790.4
File Copy 1024 bufsize 2000 maxblocks          3960.0      68332.4    172.6
File Copy 256 bufsize 500 maxblocks            1655.0      21462.9    129.7
File Copy 4096 bufsize 8000 maxblocks          5800.0     718205.6   1238.3
Pipe Throughput                               12440.0     149713.5    120.3
Pipe-based Context Switching                   4000.0      61968.3    154.9
Process Creation                                126.0       5321.7    422.4
Shell Scripts (1 concurrent)                     42.4       5957.1   1405.0
Shell Scripts (8 concurrent)                      6.0        812.6   1354.3
System Call Overhead                          15000.0    1557391.5   1038.3
                                                                   ========
System Benchmarks Index Score                                         592.5

Which means that the VPS in question has a score of 249.7 for single task and 592.5 for parallel processing.

My desktop machine, while having similar or lower specs to the physical machine my VPS is running on, produced a score of 1409.7 for single task and 5156.3 for parallel processing. Exactly the kind of metric I was looking for.

Another important metric is network speed. I've found a script which downloads test files from  different locations and measures download speed. The script can be run with

wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash

(although it probably would be safer to download the script and inspect its contents before running)

To monitor disk I/O latency there is ioping utility which can be installed from Ubuntu repositories:

# ioping . -c 10
4096 bytes from . (ext4 /dev/disk/...): request=1 time=16.4 ms
4096 bytes from . (ext4 /dev/disk/...): request=2 time=16.1 ms
...


After upgrading to nvidia 375, glitchy borders around windows

Same problem. My driver was updated to nvidia-375 after upgrading cuda.

I found that restarting the window manager with

unity --replace

fixed this, although some windows crashed (Chrome for example) in the process.

Restarting compiz mighty also work, though I haven't tried it.

Edit: compiz --replace seems to work better for this, with little or no window crashing.


Recovering Very Important Lost Data From external hard drive when copying it

You can use testdisk

install

sudo apt-get install testdisk

attach external drive and run

sudo testdisk

select >[no log]

select external drive from options press >[proceed] >[intel]

and use >[analyze] >[quick search] >[deeper search]

it will analyze drive and give list of files deleted files will be red
you can then copy them to desired place.


VPN won't connect after most recent update

I'm having the same issue and not resolved it yet.

However, it appears to be a GUI problem as the command line works.

Try the following from the command line:

nmcli con show
nmcli con up "<VPN-Conn-Name>"

The first command lists all connections, then second starts the VPN.


How can I use DropBox as a simple backup?

First off, you should be aware that you can recover deleted files from Dropbox. Also, Dropbox keeps a version history of your files. So you don't need to worry about accidentally deleting files from your Dropbox folder.

Backing up to your Dropbox folder is easy. Just use any back up tool, and set the destination to your Dropbox folder.

Here's how to do it with Ubuntu's Backup tool  that comes with Ubuntu by default:

Launch "Backup".
Click the "Storage" tab.
Under Backup location, choose your Dropbox folder.

You can also use other backup tools like rsync .

Another method to back up files automatically is to create a symlink in your Dropbox directory, pointing to directories you want to back up.

For example, this will include your Documents folder in your Dropbox storage automatically:

cd ~/Dropbox
ln -s ~/Documents Documents


Getting the Installer
First you need to download the actual linux rpm files from the autodesk website. Forget trying to bootleg it, Autodesk offers the files here: http://usa.autodesk.com/support/
Getting a License
You should obtain a personal edition license, a student license, or a commercial license. Autodesk also includes the utilities needed to connect to a network license.
You can also rent a license (such as the Maya LE for only $50 a month).
Note that when going through the student license process, you won't be offered a Linux download. Simply prepare to download the Windows version, and you will be given and emailed a key that works with the linux version.
Installing
Basically consists of converting the .rpm files to .deb files, installing the files, obtaining the proper libraries through apt-get and symlinking some files to make Maya happy.
See this script for the basic process: https://gist.github.com/MichaelLawton/32ca5cf6145f0ca4a7ebcdc510d7447d
Some Problems & Solutions
How to disable Alt+Click drag (Note you can use Super also in Maya, but if you are used to alt like me this helps a lot):
How do I disable window move with alt + left mouse button in GNOME Shell?
Fluxbox:
https://askubuntu.com/a/392752/226792
Ubuntu Linux Maya doesn't load at all. Running maya at the command prompt displays no output. Maya no gui, Maya hangs at startup, etc.
Try first running it as a super user sudo maya. You should be able to run it as a normal user afterwards.
If you get an error about csh, you need to apt-get install csh first.
You might also try removing your maya directory ~/maya [source]
Ubuntu Linux Maya crashes when loading a file, Maya crashes when rendering. Maya some 3D elements missing, Maya grey starup screen, Maya crashes when making a file, etc.

You need libjpeg62
Remove the symlink /usr/lib/x86_64-linux-gnu/libGL.so [Source]

Maya does not load Mental Ray, MENTALRAY_DIR not a file
Install the mentalrayForMaya.rpm package with scripts:
fakeroot alien --scripts mentalrayForMaya.rpm && sudo dpkg -i mentalrayForMaya.deb


What is simplest process to get ImageMagick 7 with PNG support on Ubuntu?

I highly recommend ImageMagick Easy Install (IMEI):
https://github.com/SoftCreatR/imei/
It tracks down all the source/development libraries needed for the additional ImageMagick "delegates" (image formats in IM-speak). Plus, it can also incrementally update your local install from newer source after the initial installation.
Installation steps as of now:
git clone https://github.com/SoftCreatR/imei
cd imei
sudo ./imei.sh


Laptop can't control fan speed after 16.04 upgrade

I had about the same problem but with the speed of my GPU's fan and all of them over all.I used this LMT program and it started running without any problems even when the laptop is  on battery power!


Compatibility between ubuntu and new MacBook Pro 15' with retina

You'll need to use the 64bit Mac image. It is not listed on Ubuntu.com, but you can download it from here: http://releases.ubuntu.com/trusty/. That'll give you the 14.04Beta for Mac. If you want 13.10 instead, use http://releases.ubuntu.com/saucy/


Does Ubuntu support the thumb-shift keyboard for Japanese?

Both the ibus-anthy and scim-anthy input methods support japanese thumb-shift keyboards, though there may be some customisation required.

You may need to first install japanese language support under System Settings -> language support, then set the keyboard input method to ibus -> Japanese -> anthy.

Some more information:

https://groups.google.com/forum/?hl=ja&fromgroups=#!topic/ibus-user/lnoCRoIEBZk

http://www.localizingjapan.com/blog/2012/05/29/japanese-input-on-ubuntu-linux-12-04-lts-precise-pangolin/


How to make a command execute once a certain command terminates?

The hard part is parsing the arguments correctly. You can handle simple apt-get install pkgname cases easily, but as soon as you want to handle apt-get -y install pkgname in addition, you suddenly need a full fledged option parser.

Assuming the simple cases is ok enough, something like this wrapper script may suffice:

#!/bin/bash

/usr/bin/apt-get "$@"
status=$?

if [[ $1 = install ]]; then
    read -rp 'Run this other thing too [Y/n]? ' ans
    if [[ ${ans:-y} = [Yy] ]]; then
        other-thing
        exit # exit with other-thing's exit status.
    fi
fi

exit "$status" # exit with apt-get's exit status.


Ubuntu wifi option disappears in Ubuntu20.04 + Windows10

bcmwl-kernel-source is completely unrelated to the problem. You have an Intel device, not a Broadcom.
Disable Windows Fast Startup feature. With the feature enabled, it doesn't shutdown hardware properly.


(I've edited this message a couple times ‒ I'd forgotten to answer to the airplane key problem. Sorry!)

Before logging in Ubuntu, try clicking on the cogwheel icon, and choosing “Ubuntu over Xorg” instead of just “Ubuntu”. My HP laptop seldom crashes since I've done that.

Just “Ubuntu” uses Wayland as a display server, instead of Xorg. I suppose this is a Wayland bug.

The airplane key issue might be more difficult. The “airplane mode triggered upon opening lid” is solved. The actual airplane key works in a text console for me, but not under Ubuntu & Xorg.

There's also another question about the airplane key in an HP, that might or might not be related.


This:

${command} |
while read -r line; do echo "# ${line}"; done |
yad ${config} --title="${title}"

With error handling:

#! /bin/bash
#  (GPL3+) Alberto Salvia Novella (es20490446e.wordpress.com)

mainFunction () {
    title="${1}"
    command="${2}"
    log="/tmp/$(date +%s)"
    config="--progress --pulsate --center --no-buttons --auto-close --progress-text='Working...' --width=800"

    ${command} 2> "${log}" |
    while read -r line; do echo "# ${line}"; done |
    yad ${config} --title="${title}"

    checkErrorLog "${log}"
}

checkErrorLog () {
    log="${1}"
    error=$(cat "${log}")
    rm "${log}"

    if [ "${error}" != "" ]; then
        echo "${error}" >&2
        errorWindow "${error}"
        exit 1
    fi
}

errorWindow () {
    error="${1}"
    config="--center --button=OK:1"

    yad ${config} --title="Error" --text="${error}"
}

mainFunction "Ping" "ping google.com -c5"


/bin/sh, /bin/bash and /bin/dash all broken, how can I install them again

As you currently have a working system:

Download the packages. Normally I'd suggest running apt-get download bash dash but if you have a browser, you can fish them manually from http://packages.ubuntu.com/ Just make sure you get the version for your distribution release and architecture.
Extract the files you need and put them in the right place. You might need to Alt+F2 to run pkexec nautilus to get root access to write.

/bin/sh is actually a symlink to /bin/dash. I'm not sure how this is managed (it's a "diversion", but I'm not sure by which package) so you might need to manually create the symlink. Again from Alt+F2:

pkexec ln -s /bin/dash /bin/sh

But I'd also download a LiveCD now while you're at it and get that burnt onto a USB stick. If you've forgotten anything you're going to need that when you reboot.


What Version of Ubuntu should I install?

If you want the latest version of Ubuntu and all latest softwares then you should use Ubuntu 13.10. However it is supported only until January 2014 and you will have to upgrade when the next version comes out.

But if you want more stability then you should use Ubuntu 12.04 LTS which will be officially supported until April 2017.

Ubuntu 14.04 LTS will be released on April 2014 and will be supported until 2019.


Have you installed corefonts via PlayonLinux?  This would be done with winetricks if you were using wine directly.  PlayonLinux could have brought this in, but you should double check to confirm.

Have you installed the Ubuntu packages needed for Microsoft fonts?

sudo apt-get --reinstall install ttf-mscorefonts-installer


USB wifi adapter Ralink MT7601U installed but not connecting

For privacy reasons, the default settings for Ubuntu 17.04's network manager causes the MAC address of the USB Wifi device to change constantly. To fix this, you just have to edit a configuration file and then restart the network-manager service.

Open a terminal and run:

sudo nano /etc/NetworkManager/NetworkManager.conf

At the bottom of this file, copy and paste the following:

[device]
wifi.scan-rand-mac-address=no

Proofread carefully, save and close the text editor and run:

sudo service network-manager restart

You should be all set.


What is the right way to connect to Reliance Netconnect+ and share the connection via Wireless?

Maha,
I cannot help you with the Reliance problem, however I recently setup my laptop to share its internet connection via adhoc wireless.  You cannot share a wifi internet connection because you are already utilizing your wireless device but you can share a wired connection, aircard or usb tether connection.

Confirm that dnsmasq-base is installed and install the dhcp3-server package.
Left click on network manager, select "Create New Wireless Network".  Give it a name, add your desired security.  Click Create.
Use network manager to connect to the newly created network and you are sharing your internet connection.

Good luck!
Ray


First of all,I have to tell you that 12.10 is NOT worse than 10.04, but the update thing is the problem. Second I had some sort of same problem, although I could solve it for myself, but it worked that terrible that I had to re install it at last. In your case I don't think there is any problem with your hard disk, but I'm afraid I have to tell you that the best way is to reinstall 12.10.


All you logic is inside an if [ "$1" = start ] block, so if you don't give that argument on the command line, your script doesn't do anything.

You should validate the arguments first:

if [ $# -ne 1 ] || [ "$1" != "start" ]; then
    echo "usage: $0 start"
    exit 1
else
    # your stuff here
fi


How can I connect to Netware, IPX and use BTRIEVE?

You can install NetWare, or whatever outdated OS is necessary for your IPX program in VirtualBox. Since VirtualBox runs anything that runs on an X86 chip, you can pretty much install an old workstation on it.


As one option you can just reinstall the linux bootloader and have the selection of what to boot made in the linux loader. I have that on all my systems and it works stable with Win10, Win7 and WinXP.

For this to work you should install the grub2 on the disk rather than the partition. On standard BIOS it will put itself into the Master Boot record (MBR). If you have a running Linux installation you could try it out with

sudo grub-install /dev/sda

It will need your password. That does two things
*checks your drive for any bootable partitions
*Creates a new boot loader on the disk
A boot loader on the partition will be replaced by other boot code.

Now you should at least see a windows boot option. If that fails, i.e. "bootmgr" missing, you still need the windows install cd, enter repair mode and execute the automatic repair up to 3 times. just search for ""bootmgr missing" for a wide choice of tutorials.

An advantage of that option is that fixing grub is very quick and does not require a repair CD. I need to do it when I restore images or partitions from backup or other computers and it is quite quick.

A disadvantage is that the setup of grub2 has become more complicated than it has been with the old grub (I call it grub1). The old had a config file, you google for what option you need, copy&paste it in and voila. The new you need to change script files and its a bit cryptic for a windows person. Luckily I rarely need to do it and on AskUbuntu its quick to find a step-by-step guide on what to do.

If you are confused and want to stick with Linux, its a good thing to browse about the grub and boot process. This will not be wasted knowledge.


How to install Emmet.io (former zen coding) on Sublime Text 2 on Ubuntu Precise?

I just found that (or at least it works for me, without installing anything else) that Ubuntu Precise 64 bits already have pyv8 and google v8.

I just simple git clone emmet plugin and it works immediately


How to backup and restore all installed snap packages?

You can save installed packages using following code

snap save

And then all the installed packeges will be zipped with data to /var/lib/snapd/snapshots/

For more information go here https://snapcraft.io/docs


What do the groups do in "Users and Groups"?

Some groups allow access to files or directories, for example: the www-data allow the access to web files or the adm group to read files in /var/log. This is the trivial use.

But some groups allow access to certain devices. For example the dialout group allows access to the serial ports via files in /dev:

$ find /dev -group dialout -exec ls -ld {} \;
crw-rw---- 1 root dialout 4, 64 Jan 19 12:51 /dev/ttyS0
crw-rw---- 1 root dialout 4, 67 Jan 19 12:51 /dev/ttyS3
crw-rw---- 1 root dialout 4, 66 Jan 19 12:51 /dev/ttyS2
crw-rw---- 1 root dialout 4, 65 Jan 19 12:51 /dev/ttyS1

So if you are member of the dialout group you can use the serial ports by reading and writing to the device file: echo "Hello world" > /dev/ttyS0. The video group allows access to the video hardware.

For description of each groups, read the file: /usr/share/doc/base-passwd/users-and-groups.html

EDIT about first comment:

In fact, usually you don't have to be in those groups to "access" the hardware resources, from a user point of view. The common practice is to have a daemon/server managing it, being member of the most restrictive group, then allowing you access to the daemon/server.

For your case, being member of the video group allows direct access to the graphic hardware, not through the X server. Usually on desktop/laptop computer it is nice to have direct access to the graphic hardware (glxinfo | grep "direct rendering").

Side note, if you have direct rendering but you are not member of the video group (id | grep --color video), you were allowed hardware access by an acl of the /dev file (find /dev/ -group video -exec getfacl {} \; | grep $USERNAME).


ubuntu 16.04 pwmconfig 'no working fan sensors'

Not really the best fix ever but I just turned the fan down manually so my server is not loud as all hell.

echo 170 > /sys/class/hwmon/hwmon0/pwm2


No titles on windows in activities overview (GNOME 3.26)

According to the release notes for Gnome 3.26 this was an intentional change:

  Refined activities overview - window titles now shown on hover and spacings have been adjusted to give larger window thumbnails. This gives a cleaner view and results in larger window thumbnails, making it easier to pick the window you want.

One could probably change this by writing a gnome shell extension.


Fdisk cylinder doesn't match device format

CHS addressing has been entirely made up nonsense for decades, so a few years ago fdisk finally switched the default reporting units to sectors.


NMCLI works in script when I run itdirectly , but not when run in CRON

The reason while nmcli does not through cron is because the VPN details (username, password) reside in the account details of the user in the keyring.
And nmcli requires DBus to retrieve the information.

That is, if you want to configure your system so that nmcli works, you need to get nmcli to work with the environment that CRON offers to the scripts.

See some examples at https://stackoverflow.com/questions/5819667/help-me-setup-a-cron-job-on-ubuntu
and also at http://ubuntuforums.org/showpost.php?p=9016250&postcount=2
and https://wiki.archlinux.org/index.php/NetworkManager#Automatically_unlock_keyring_after_login


Will enabling ufw through ssh disrupt current session?

Ya. It may. Based on the default configurations. You can check the present configuration by using the following command sudo ufw show raw. The command will show the configuration of all policy's rules in iptable.


How can I connect from Ubuntu 12.10 to file shares on a Windows 8 system using a Microsoft ID for login?

I figured it out.

The particular Microsoft Account aka Microsoft ID aka Windows Live ID is based on an email address lastname@somedomain.com which has "Firstname Lastname" as the user name.

The password is that of the the online Microsoft Account but the username for connecting to shares is the first name of the Microsoft Account, in this case Firstname.

A good clue is that C:\Users\Firstname is the home directory.

So...

USERNAME = first name of username in Microsoft Account = folder
name under C:\Users
WORKGROUP = whatever group the machine is in
PASSWORD = password used to login to the Microsoft Account on the
web

I have confirmed this works with connections from:

Ubuntu 12.10
Ubuntu 10.04LTS
Mac OS X 10.8.2

From other Windows 8 and 7 machines the username is the full email address: lastname@somedomain.com


Open up a terminal by browsing to /usr/share/applicationsin your file manager and double-clicking gnome-terminal.desktop. Now, run unity --reset.


You might be able to accomplish this using find, exec, and rename.  I'm fairly sure this will run on Ubuntu without needing anything special.

#!/bin/bash

find /path/to/files -name "*.tar?h=ocdist105&=%2Fdata1%2F4070d0f0f1d62757%2Frequested_files" -exec rename .tar?h=ocdist105&=%2Fdata1%2F4070d0f0f1d62757%2Frequested_files .tar {} \;

This has not been tested, but should work.  Here is what the command looks like when trying to rename the extension .css to .txt for example; for clarity.

#!/bin/bash

find /path/to/files -name "*.css" -exec rename .css .txt {} \;

To Use

Put the above content in a file.  Give the file executable permissions, and run it.

TESTING

You can test the above command to see what the result will be without actually making changes by adding -n after the rename.

#!/bin/bash

find /path/to/files -name "*.css" -exec rename -n .css .txt {} \;


Ubuntu 19.10 can't able to access the internet in the VMware Workstation

This issue is commonly related to time synchonisation. run

date -u

in both your host and your guest and compare the results. If the date and time in the guest is significantly different, you can run the command

hwclock --set --date="2020-05-11 12:37:25"  --utc

but being careful to change my date and time above to the one given by your host system.


alias "nautilus $(pwd)" does not open in pwd directory

man bash:

  Enclosing  characters  in  double quotes preserves the literal value of
         all characters within the quotes, with the exception of $, `,  \,  and,
         when  history  expansion  is enabled, !.  The characters $ and ` retain
         their special meaning within double quotes.  The backslash retains  its
         special  meaning only when followed by one of the following characters:
         $, `, ", \, or <newline>.  A double quote may be quoted  within  double
         quotes by preceding it with a backslash.  If enabled, history expansion
         will be performed unless an !  appearing in double  quotes  is  escaped
         using a backslash.  The backslash preceding the ! is not removed.

As a consequence, in your definition $(pwd) is expanded when the alias is defined, not when it is executed. Use single quotes around the right-hand side of the alias definition.

On the other hand, as Bharadwaj Raju observes, the current working directory is always ., so nautilus "$(pwd)" is the same as nautilus .. And you probably want doublequotes around $(pwd).


Wireless card disappeared in Ubuntu 14.04 (Ralink RT2860)

Since your wireless card no longer appears in Windows either, I don't think this is an Ubuntu driver problem.  I think this is a hardware problem.

If your wireless card is integrated on your motherboard, purchase a separate wireless card or USB dongle.
OR
If your wireless card is separate, open the case and make sure that the card hasn't come loose out the socket. Alternatively, you can change which socket it is plugged in to.  Ultimately, I think your wireless card has seen its end-of-life and needs replacement.


This appears to be a bug. The tomcat user is a system account and not a user account. There is now way that it should be displayed on your login screen. I had a similar issue when I installed KVM. It listed "Libvirt Qemu" as a user on login screen. The issue was reported as a bug on launchpad:

https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1672112

If you get annoyed by a particular user appearing on your login screen. You can see the following post to hide a user from login/welcome screen

How do I hide a particular user from the login screen?


xterm argument terminal close immediatley

You can use the -hold option.

i.e. xterm -hold -e nmap 74.125.130.100


After installing 16.04.1, while keeping an old home directory, I cannot read/write into it

Probably something went wrong with files ownership settings (can be checked ls -al /home/USER). You can repair it by:

sudo chown USER /home/USER/ -Rv


How do I configure the /etc/network/interfaces file?

You shouldn't need to edit that file. Just use NetworkManager, in Kubuntu (KDE) you can access it from the drop-down menu next to the clock.


Can't connect to wireless, broadcom doesn't work

Download the drivers from here

You will have to select amd64 for a 64 bit install or i386 for a 32 bit install and then select a mirror site.  If you are unsure if you have 32 or 64 bit, open a terminal window (CTRL + t) and enter arch, x86_64 = 64 bit.  Then double click on the downloaded file to install.

I checked just a few days ago and the version of bcmwl-kernel-source on the Ubuntu 14.04.2 installation ISO was the incorrect version for kernel 3.16 and if this fixes your problem, feel free to click "This bug affects...does this bug affect you" on this bug report


On a regular Ubuntu system, the content is generated by /usr/lib/update-notifier/update-motd-updates-available using the following command:
/usr/lib/update-notifier/apt-check --human-readable

You can run this command manually without elevated privileges:
$ /usr/lib/update-notifier/apt-check --human-readable
103 packages can be updated.
77 of these updates are security updates.
To see these additional updates run: apt list --upgradable


Stuck While Installing Ubuntu along side Windows 10

There's this page about UEFI on the official Ubuntu documentation that covers the subject matter pretty well.

The gist of it is that if you have an OS (like Windows) in legacy mode, you'll have to have the other OS (Linux) in legacy mode too, that is likely why Ubuntu is being skipped on your machine when you turn UEFI on.

Also make sure that you downloaded a 64 bit image of Ubuntu, since the 32 bit version doesn't support UEFI at all. If you read the link to the guide I gave you carefully it'll all make sense.

From my experience, I'd suggest you to install Windows 10 in UEFI mode, then follow the guide on how to install Ubuntu and once the dual booth mode is working perfectly install your video card drivers or third party software that requires you to disable secure boot via the MOK management utility.

When (and if) you'll decide to install third party drivers (you can do that in the Ubuntu installation itself) you'll be asked to input a password to disable secure boot at the next reboot. When the system will reboot The MOK management utility will show up, it's similar to GRUB in style, very monochromatic.

It'll have four options:
continue booting, disable secure boot, enroll hash (was it?), enroll (can't remember). I really can't remember the last two but they're not important in this context.

You'll have to choose the second option (secure boot) and insert the password by entering the correct character(s) it will ask you pertaining to the password you entered before. If you don't choose the second option and boot normally the MOK management utility won't start again unless you uninstall and install third-party drivers again. So be careful. There is likely a way to invoke it by using some arcane command, maybe someone more experienced can enlighten us.


Here is how I solved a similar brightness issue on my Toshiba Satellite the easy way:

http://prahladyeri.wordpress.com/2013/02/18/how-to-make-brightness-changes-permanent-in-your-linux-desktop/


How to get my ssh passphrase remembered during a Ubuntu session?

I do not use the GUI util in "settings" -> "passwords and keys"

I have installed keychain.

  sudo apt-get install keychain

If you're running bash you need to add a few commands to your .bash_profile
If you do  not have a .bash_profile create one in your home folder. Add these lines:

### START-Keychain ###
# Let  re-use ssh-agent and/or gpg-agent between logins
/usr/bin/keychain $HOME/.ssh/id_dsa
source $HOME/.keychain/$HOSTNAME-sh
### End-Keychain ###

At the start of a work day I will login. When I open a terminal, I will be prompted once for my passphrase. For all other new terminals and connections I will not be asked for my passphrase again.


crt certificate not appearing in menu for selection

It may be too late to help you, but I'm posting this here for future reference. I had the same problem. I ended up just typing the file name in the address at the top and it worked. Took me an hour to figure it out though.


Take a look into Gammu - it's available in the main repositories and has wide support for most phones. It also supports SQL database backends (though you may need to structure your database in a way it will understand).

It can both send & recieve SMS messages as well as a whole host of other things.


Dual monitor setup, why does NVidia 340 Prime only detect one monitor?

Post-installation and removal Nvidia, I noticed a strange(and a good one at that) behavior. And that its that the GUI  response in the second monitor has become much improved.

And I also noticed that the xorg.conf has a different setting, pasting it for your reference,

jpvel@jpvel-M11xR3:~/Downloads$ sudo cat /etc/X11/xorg.conf.04192015

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "intel"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "SNA"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection

I suspect that the existing nouveau driver seems to start honoring the configuration and appropriately instruct the graphics card to send the output to the external monitor. As

For those souls who tried using the DVI port or HDMI to VGA adapter, let me forwarn you, it does not work. As neutrino pointed out, the HDMI port is welded with Nvidia card in Alienware laptops

Edit from 2nd answer:

I went for the reinstallation and again tried using the latest Nvidia drivers from ppa:xorg-edgers/ppa for Nvidia-340, it ended up mucking the UI. So I decided to uninstall and live with the existing setup.

However, with the fresh installation, I am able to work with a dual monitor setup that is not perfect, but usable. I mirrored the displays and ensured that the intel's graphics driver could do the rendering(but it is lousy though I admit)


wubi installation and standard ubuntu installation together?

Should do.

WUBI lives entirely within the Windows partition and modifies the Windows bootloader to work. Ubuntu-proper will have its own partition and will move Windows' bootloader off as a secondary bootloader and replace it in the MBR with Grub.

To boot to Wubi you'll have to select Windows at Grub and then Ubuntu from Windows' bootloader.


White noise from headphones in Ubuntu 18.04.1 on Dell XPS 13 9370

Not sure if that qualifies for a full answer but:
There's a doc describing the process step by step on example:
https://www.proware.com.tw/support/software/cdb16patch-lnx/linux-patch.pdf

in fact, you apply the patch with a patch tool, same as any patchfile is applied. Anyways, not having 9370 here, so wish you luck in the process. I'd wait for official kernel release, though.


USB device does not appear in Ubuntu 13.04

It is something wrong with the partition partition table on the USB. [ 1179.950956]  sdc: unknown partition table

Have a look at the answer here, Running Ubuntu from a USB Flash drive on Acer .

If your device contains no valuable data, write a new partition table using e.g. gparted.
If it contains valuable data, you should make a raw backup before trying to restore the partition table.

To make raw backup you can use e.g. dd. sudo dd if=/dev/sdX of=usb-image.iso
Remember to substitute X.


Yes.. U can. Go to Documents and create a folder with the name u specified(file in ubuntu one). Then open "Ubuntu one" (app) from your system and click "Add a folder from this computer" and choose that folder which u created and make sure there is a tick mark in the column "Sync Locally". Now if u edit any file within that folder it will be automatically updated to your Ubuntu one each time u press "save".


Checking each cell if value appears (pairwise checking)

If the data in the question is on the sheet named Sheet1 then add another sheet and enter the following in Sheet2.B1.

=IF(Sheet1.B2<0.4;Sheet1.B2;"")

Then drag to fill the formula down to F16.  Also, copy and paste the first row and first column, or in Sheet2.A1 enter the following formula and drag to fill.

=Sheet1.A1

The result:

CID/2D      70701913    70701915    70701916    70701903    59697911
70701913                                        0.396
70701915
70701916
70701903    0.396
59697354
59697683
59697583    0.381
59697533
11164341
59697614
70701907    0.366
70701904    0.383
70701905    0.383
70701906    0.383
70701901    0.379


Did you blacklist nouveau-driver, when using nvidia-driver?

Maybe this thread can help you (2nd answer): blacklist nouveau


How to fix the command-not-found databases?

On 20.04.4 LTS, this helped me:
$ sudo apt install --reinstall command-not-found

The -data package is no longer there.
I was getting something like:
$ kbounce
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.3
Python version: 3.8.5 final 0
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:        20.04
Codename:       focal
Exception information:

unable to open database file
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 23, in crash_guard
    callback()
  File "/usr/lib/command-not-found", line 90, in main
    cnf = CommandNotFound.CommandNotFound(options.data_dir)
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 79, in __init__
    self.db = SqliteDatabase(dbpath)
  File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 12, in __init__
    self.con = sqlite3.connect(filename)
sqlite3.OperationalError: unable to open database file

Right now, I get:
$ kbounce

Command 'kbounce' not found, but can be installed with:

sudo apt install kbounce

Edit 2020-12-16
The problem returned after a reboot. I debugged /usr/lib/python3/dist-packages/CommandNotFound/db/db.py and found the following:
$ ls /var/lib/command-not-found/ -l
total 3076
-rw-r----- 1 root root 3141632 gru 16 08:17 commands.db
-rw-r----- 1 root root    3253 gru 16 08:17 commands.db.metadata

So, the DB is there, but the permissions are wrong.
So I executed:
$ sudo chmod -R o+r /var/lib/command-not-found/

Now, it works again.


As you seem not to be able to use your Wacom tablet through Wine you have three options:

switch to a native Ubuntu application (that would likely be Gimp) which allows drawing with a pressure sensitive device (see e.g. How to set pressure sensitivity in GIMP to control line thickness?).
Install and run Photoshop on Windows with an USB enabled virtual machine (this would be at the cost of performance).
Dual boot for best performance when running Photoshop on Windows or Mac OS.


Unmounting and detaching volumes on AWS ec2 instance not working?

figured it out in case someone else has this problem.

sudo vi /etc/fstab

LABEL=cloudimg-rootfs   /        ext4   defaults,discard        0 0
/dev/xvdf1              /backup ext4    defaults,discard        0 0
/dev/xvdg1              /backup/3jun    ext4 defaults,discard   0 0

first line is root volume
dev/xvdf1
dev/xvdg1
are the backup volumes that I'm trying to get rid of you can either remove those two lines or modify to:

LABEL=cloudimg-rootfs   /        ext4   defaults,discard        0 0
/dev/xvdf1              /backup ext4    defaults,nofail        0 0
/dev/xvdg1              /backup/3jun    ext4 defaults,nofail   0 0

nofail means that if these volumes are not attached when rebooting or starting instance it will still run normally.


This is one of the reasons why geeks love GNU with Linux. It's seriously awesome when it comes to network access. Anything Windows can do, is just a pale shadow in comparison. The master tool is SSH. Using it, you can accomplish anything that you can do on the console from any computer client, be it a mobile phone or a smart tv. If you want a remote desktop solution, then I would recommend using X2go from http://x2go.org. It's free software, easily installed and quite user friendly.


How do I go back to original 12.04 kernel?

Install synaptic package manager, open it and search for "linux-image". Uninstall all images but the one with the lowest version number and click "Apply". You're done.


How do I stop the speaker from unmuting after wake-up?

In the gconf-editor, have you tried /apps/indicator-sound/volume_mute

The description says:

  On start up volume should not be muted.


"One cluster is not yet connected to the region" after install ubuntu server?

Assuming you installed maas with the following.

sudo apt-get install maas

You can set the region and cluster locations with the following commands.  You'll want to make sure the URLs are correct.  If you have created two interfaces, the cluster controller most likely would be your external network.  (http://192.168.1.1/MAAS/)  Where the region controller would be located on your local network (10.0.0.1).

sudo dpkg-reconfigure maas-cluster-controller
sudo dpkg-reconfigure maas-region-controller


(Xubuntu) - How to turn off Laptop screen while external screen is connected

What happens if you run the following in Terminal and while your laptop is connected to the external monitor and both screens are displaying?

xrandr --output eDP1 --off


Is it really necessary to upgrade the kernel?

Now is it really necessary to update the kernel?

You should use the latest updated kernel.

  What are the pros and cons of updating kernel?

There could be exploitable vulnerabilities in the current kernel.  There could also be bug-fixes, API changes(less likely), or new features.  I understand it's a pain to recompile vbox modules or whatever, but I haven't had a kernel update break something in quite some time.

  After updating kernel, should I keep older kernel version?

Keeping the old version let's you roll back the changes if you get a kernel panic in the case of a failed update.  Keep it until you have at least tested the new kernel or run it for a week or two...


From the original author

To fix the Alsa Audio Output:

sudo add-apt-repository ppa:ferramroberto/vlc
sudo apt-get update
sudo apt-get install vlc mozilla-plugin-vlc

then, open Update Manager, there were 2 updates for vlc there, install them and reboot. Now alsa works fine and audio is in sync with video.


Ubuntu 18.04 Dash file search equivalent?

In GNOME in Ubuntu 18.04, you will find files by name by typing part of the name in the search box in the dash. This, without the need to have the GNOME file indexing service, tracker, installed, which is not installed in Ubuntu by default. "Files" must be checked under "Search" under "Settings".

In Ubuntu 17.10, a search in the dash would not bring up files.

MATE standard has no such build-in feature, but a dedicated search panel plugin may be available.

Alternatively, you may want to consider a dedicated quick-launcher. The Albert launcher is very good in what you are seeking, finding files by name to launch them. You could assign it the shortcut Super + S. Other launcher may also do well, but personally, I did not find one that performs like Albert for this task.


As far I understand, you can run Word as user Administrator, but when trying to run it from another different account (user300246 for instance) you get errors.

In fact seems absolutely normal, let me explain. You installed it as "Administrator" user, so the files has the correct (read/write) permissions for that user. When you try to run it from other user (user300246, for instance), perhaps Winword.exe is trying to read/write from/to a file which is owned by Administrator, which throws the error.

Try to install Winword with a different user and run from the same user.

Hope this helps.


Restore files moved to trash using command line

For listing all files in the trash,

ls -l .local/share/Trash/files/

sudo ls -l /root/.local//share/Trash/files/

should do under Ubuntu (in my case: MATE 16.04). I found those paths here. It also has further explanations of what is in the other folders next to files/. In case you want to code your own restore routine, that should help...

Not sure what you are up to (writing tests to verify delete-to-trash?, ...) but looking at the specific source of the trash npm module (js) might give further insight.


Bluetooth Headset: Can't set A2DP (High Fidelity Playback). Poor sound quality

I've managed to fix it. Even though I'm not sure if the following steps are in the exactly order to do it, I'm pretty sure it was the combination of them that fixed it. Here they are:

I've installed Blueman: sudo apt-get install blueman
I've edited the /etc/bluetooth/audio.conf file: sudo -H gedit /etc/bluetooth/audio.conf and add this line in the end of it: Disable=Headset. Users on Ubuntu 17.04 and above may not have audio.conf, but can instead use main.conf.

Note: I've also installed something called "pavucontrol" via terminal with the command sudo apt-get install pavucontrol, but I'm really not sure if it was this or the Blueman that solved it. I suspect it was the Blueman, but if it doesn't help, try the pavucontrol and see if it solves.

Hope this helps!


Script to mute laptop when suspend button is pressed

Here's how the script in /etc/pm/sleep.d should look like. Name it 20_mute_audio

#! /bin/sh
case $1 in
     suspend|suspend_hybrid|hibernate)
         amixer -q -D pulse sset Master toggle
        ;;
esac


Make apt-get (or aptitude) run with -y but not prompt for replacement of configuration files?

You may use:

sudo apt-get update
sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade

For only specific packages, e.g. mypackage1 mypackage2:

sudo apt-get update
sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install mypackage1 mypackage2

Source: http://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/

Avoiding the conffile prompt

Every time that dpkg must install a new conffile that you have modified
(and a removed file is only a particular case of a modified file in dpkg’s eyes),
it will stop the upgrade and wait your answer. This can be particularly annoying for
major upgrades. That’s why you can give predefined answers to dpkg with the help
of multiple --force-conf* options:

    --force-confold: do not modify the current configuration file, the new version
is installed with a .dpkg-dist suffix. With this option alone, even configuration
files that you have not modified are left untouched. You need to combine it with
--force-confdef to let dpkg overwrite configuration files that you have not modified.
    --force-confnew: always install the new version of the configuration file, the
current version is kept in a file with the .dpkg-old suffix.
    --force-confdef: ask dpkg to decide alone when it can and prompt otherwise. This
is the default behavior of dpkg and this option is mainly useful in combination with
--force-confold.
    --force-confmiss: ask dpkg to install the configuration file if it’s currently
missing (for example because you have removed the file by mistake).

If you use Apt, you can pass options to dpkg with a command-line like this:

$ apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade

You can also make those options permanent by creating /etc/apt/apt.conf.d/local:

Dpkg::Options {
   "--force-confdef";
   "--force-confold";
}

You can find more information and more options in the dpkg manual at http://manpages.ubuntu.com/manpages/xenial/en/man1/dpkg.1.html or man dpkg and i.e. look for "confdef".


Nemo Randomly Makes Itself Default File Manager and Creating Desktop Shortcuts

To completely remove nemo:

sudo apt-get remove --purge nemo


You use gnome-session --session=ubuntu-2d as the command in your NX client.


WorkAround

Disable the Default keyboardshortcut Alt+Super+8

Create a Custom keyboardshortcut with command /bin/bash /home/<user>/multizoomup

create a script named multizoomup in /home/<user>/ with below content

#!/bin/bash

key="org.gnome.desktop.a11y.magnifier mag-factor"
current=$(gsettings get $key)
increment=0.2
gsettings set $key $(echo "$current + $increment" | bc -l)
gsettings set org.gnome.desktop.a11y.applications screen-magnifier-enabled true

Note that the increment I have used is 0.2, you can change this value as you wish.

Now when you press Alt+Super+8, the script reads present value and increase it by 0.2 at every key press

Similarly you can create one more script with below command for decreasing the value by 0.2 with custom shortcut Alt+Super+9

#!/bin/bash

key="org.gnome.desktop.a11y.magnifier mag-factor"
current=$(gsettings get $key)
increment=0.2
gsettings set $key $(echo "$current - $increment" | bc -l)
gsettings set org.gnome.desktop.a11y.applications screen-magnifier-enabled true

Tested on Ubuntu 18.04.3

Thoughts/ Requests:

Scripting Experts can modify the script to read the current value and increase it by given increment value like 1.0, 1.2, 1.4, 1.6, 1.8 and then back to 1.0 this way we can reduce the additional keyboard shortcut for zoomdown.. This means when we press Alt+Super+8 for the first time it should set the magnifier to 1.2, for the second time 1.4, 3rd 1.6, 4th 1.8 & 5th time back to 1.0


I came here by searching for "kubuntu grid desktop". I want the normal desktop, but with a
grid, so icons get arranged nicely.

Solution:

sudo apt-get install plasma-containments-addons

Then right-click desktop > "Desktop Settings" and select "Grid Desktop" as layout.

Note that the widgets must be unlocked for the "Layout" option to be enabled.

Tested on Kubuntu 12.04


Connect klip xtreme bluetooth headset to ubuntu

I have found the answer!

I just had to open Ubuntu Software center and search for pavu
then install PulseAudio Volume Contorl (first in the list)
and finally go to configuration tab and set the headset profile on A2DP


elantech touchpad - multi touch is not working for kernel 3.13.0-35-generic

Fix the kernel 3.13

You can try the patch attached to the bug in Launchpad. So first, download the patch and:

cd /path/to/destination/folder

Before to install the patch you may need to install the package dkms using the command:

sudo apt-get install dkms

Then, install the patch:

sudo dkms ldtarball psmouse-elantech-x551c.tar.gz
sudo dkms install -m psmouse -v elantech-x551c

After it's installed successfully, you need to remove and re-add the module from, and to the kernel:

sudo rmmod psmouse
sudo modprobe psmouse

Finally, to make changes permanent on boot:

sudo update-initramfs -u -k all

The patch works but disables the physical right-click, so I decided to upgrade the kernel.

Upgrade to newer kernels (e.g. 3.16)

Trying new kernels is not much difficult. All you need is 3 .deb files from kernel mainline : two linux-headers and linux-image (both of them from either generic or lowlatency) suitable for your architecture and one linux-headers-*-all; for example 3.16 for a 64-bit system will be:

linux-headers-3.16.0-031600-generic_3.16.0-031600.201408031935_amd64.deb
linux-headers-3.16.0-031600_3.16.0-031600.201408031935_all.deb
linux-image-3.16.0-031600-generic_3.16.0-031600.201408031935_amd64.deb

You can install them from Software Center, or by commands:

cd /path/to/download/folder
sudo dpkg -i linux*.deb

Then you need to update grub settings:

sudo update-grub

Restart the system to see if the kernel works. Be aware that proprietary drivers may have problems with new kernels. In the case of your system failed to boot properly, go to boot advanced option, select a working kernel to boot. Then remove the non-working kernel, the same example here:

sudo apt-get remove linux-headers-3.16.0-* linux-image-3.16.0-*

And update grub again with sudo update-grub.

Edit: It is safer to install kernel packages from Ubuntu repositories with Software Center or Synaptic Package Manager. There are four files of each version; for example, for the latest build of 3.16:

linux-headers-3.16.0-28
linux-headers-3.16.0-28-generic
linux-image-3.16.0-28-generic
linux-image-extra-3.16.0-28-generic


Why are graphics so slow/jerky/lagged with an ATI 4250?

Hey, if you install compizconfig you can try unchecking the V-Blank in general options, as in the open-source ATI driver in natty there is already V-sync activated. It did the trick for me so you can try it


No sound in Ubuntu 18.04 after rebooting from windows 10

This ended up being a bug in the Realtek ALC294 alsa driver. It has been already reported in launchpad:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1742852

Upvote it if it affects you so that devs increase its priority


UI feels zoom/magnified after recent UBUNTU 20.04 installation

You can also set your resolution through the xrandr command
Open up a terminal using Ctrl Alt t and type xrandr You will get a similar output

Then see the command structure here
xrandr --output MONITOR_ALIAS --mode SUPPORTED_RESOLUTION

You will find the MONITOR_ALIAS at the location I underlined in red and all SUPPORTED_RESOLUTION will be listed below it. Suppose I want to use 1024x768 I will use the command
xrandr --output XWAYLAND0 --mode 1024x768


Crash fails to resolve symbol "init_level4_pgt"

Apparently the bug is fixed in newer version of crash (crash 7.2.1).


You can always download the .deb packages and install them manually using

dpkg -i package_name.deb

To download the package, go to this web page and select your Ubuntu version.

You will find a web site giving you alternate package versions (emacs23-lucid and emacs23-nox, the latter only to use with a terminal); also, you will find a number of dependencies -- packages that you must install before installing emacs, for example common emacs binaries. dpkg will complain about unsatisfied dependencies.

That said, I would rather search for a solution with your proxy setup, because you will have a recurring problem with updates (including security updates) and installing new software. Ask a new question with details on the error messages and your proxy configuration.


Installation of netbeans 8.1 from the .sh file in ubuntu 14.04

First get the installer

wget download.netbeans.org/netbeans/8.1/final/bundles/netbeans-8.1-linux.sh

Now give it executable permissions

chmod +x netbeans-8.1-linux.sh

Now to execute it run from its directory

sudo sh netbeans-8.1-linux.sh

This will start the installer

As requested in comments, here is a one liner

wget download.netbeans.org/netbeans/8.1/final/bundles/netbeans-8.1-linux.sh && chmod +x netbeans-8.1-linux.sh && sudo sh netbeans-8.1-linux.sh

Alternatively there is an old version in the repository’s, you can install with one command

sudo apt-get install netbeans


12.04 logs session into small terminal window

You may have accidentally choosen the failsafe session from the session menu in the login screen.

When you are on the login screen choose your user and click on the Ubuntu logo and choose Unity or Unity 2D from the list and login.


AMD Fglrx Driver causes Ubuntu 15.10 to Crash

In the Ubuntu 15.10 Release Notes here, it states:

  AMD's fglrx driver does not work with the current kernel (1493888). It is warmly recommended to uninstall the fglrx driver before upgrading to Ubuntu 15.10. The open source "radeon" driver can be used as a temporary replacement until a fix is available.


How do I list all installed packages with specific version numbers?

Use dpkg -l instead.
Example:
dpkg -l | grep '^ii' | grep skype

Outputs this:

alaa@aa-lu:~$ dpkg -l | grep '^ii' | grep skype
ii    skype      4.2.0.11-0ubuntu0.12.04.2       i386     client for Skype VOIP...

If you only want to extract the name and version, you can do this:
dpkg -l | grep '^ii' | grep skype | awk '{print $2 "\t" $3}'

Which will only print the second and third column from the above output, like this:

alaa@aa-lu:~$ dpkg -l | grep '^ii' | grep skype | awk '{print $2 "\t" $3}'
skype   4.2.0.11-0ubuntu0.12.04.2

Of course, if you want to list all of your installed packages with their versions, and not only Skype, then just remove the grep skype part to make the command like this:
dpkg -l | grep '^ii' | awk '{print $2 "\t" $3}'


14.04 Mouse and Keyboard issues with a fresh install

I haven't found anything about the issue you're having with your keyboard, but it seems that lots of information has been posted about something similar to the one you have with your mouse here.

I am using Ubuntu 14.04 GNOME and this bug only happens when I use my wireless mouse. It never occurred when I used my touch pad. I read some of the answers and the main points that may help are:

Unplugging your wireless mouse and plugging it in again temporarily fixes the issue.
Disabling synaptics in the xorg.conf file may help. However, I did not try this myself. I got the information from this answer.
Killing the process which the mouse is stuck in can also temporarily fix it.

Please read the original answers to this bug before following any of the tips I posted above. I am not sure if they really are going to be of any help.


According to Paolo's email the developer of fileroller the quit option removed from code since version 3.20.


Why does my laptop overheat and discharge faster in Ubuntu than Windows?

most probably installing the correct VGA driver can reduce overheating. To install correct VGA driver

you need to do some simple things if your using ubuntu 12.10

first go to software center and type drivers.
in there find additional drivers. and install it.
after installation complete open it. it will search drivers for your VGA card. warning! do not close it. because additional drivers not working properly in 12.10 so once you close you cannot find it anywhere. then you must remove it and re-install it again through software center.
install all available VGA drivers for your machine.
after installation complete it will ask you to restart. you done!.
after restart go to Settings >  Details there you can see your VGA name and type.


Adobe hides this well, but there is a download of a standalone flash player on http://www.adobe.com/support/flashplayer/debug_downloads.html.

The Flash Player Projector (64-bit) works well for me; if you're a developer who wants to debug swf files, use the Flash Player Projector content debugger (64-bit). Once downloaded, you need to open the file, extract the binary to a convenient place, and use something like flashplayerdebugger assets/myfile.swf from the command line.


Completely stuck when Rebooting or Shutting down Ubuntu

I had this problem in the past with a different Dell computer. For me, the problem was with the graphics driver. Apparently, the Xorg driver doesn't work very well with some newer GPU's and the problem manifests whenever I tried to shut down or restart my machine. The solution was to open "Software & Updates", navigate to the "Additional Drivers" tab, and select one of the proprietary drivers (e.g. NVIDIA) instead of the default Xorg one. The change requires a restart, which will hang up, but every restart after that was clean for me. Hope this helps!


It's really hard to tell if a key is sticking but they often do.

With a standard PC keyboard (inexpensive), I've often turned them upside down and rapped on the bottom and been amazed at the crud that fell out.

With a laptop keyboard that is more expensive and harder to replace sometimes I'll just tap the key repeatedly until it works as advertised.

Blowing the keys out with canned air often works and if your not big on replacing things is likely the best idea.

I've never seen a software problem that was intermittent that didn't have an underlying hardware problem (bad sector in swap, stuck bit in RAM, short in cable, crud in keyboard, cold solder joint...)


Inserting USB drive into netbook using 11.10 activates movie player

Click the gear/power icon in the top right, select 'System Settings...', click 'Removable Media', and change the appropriate setting, to the appropriate option.


Where is the code downloaded by apt source stored?

They are located in same directory as their corresponding deb files, use --print-uris to get a list of links related to the package source and patch:

apt-get source pkg --print-uris

And as others mentioned after downloading the source it will be placed in same directory where you ran the command.


How do we use mounted DVDs with multiple accounts without ejecting the disk?

First I have no solution only a workaround guess...

If you often use the same DVD try to copy these files in local folders or create an ISO-file and set up the right group permissions...

Additionally you can deactivate automount (option no-auto in /etc/fstab) and mount the dvd by yourself via command line. In this case you can mount to an local folder with useful group permissions for your accounts

I hope this would be helpful


Unable to Upgrade from 14.04 to 14.10 "No New Version Found"

You can easily upgrade over the network with the following procedure.

Run the update-manager application from the Unity Dash or a command line

In Update Manager, click the Settings... button, and enter your password to start the Software Sources application.

Select the sub menu Updates from the Software Sources application.

Confirm the "Notify me of a new Ubuntu version:" option is set to "For any new version", and change it if otherwise.
Close the Software Sources application and return to Update Manager.
In Update Manager, click the Check button to check for new updates.

If there are any updates to install, use the Install Updates button to install them, and press Check again after that is complete.

A message will appear informing you of the availability of the new release.
Click Upgrade.

Follow the on-screen instructions.

SOURCE:https://help.ubuntu.com/community/UtopicUpgrades


How to setup Déjà Dup backup scheduling time?

First: Typing deja-dub --backup in a terminal starts backing up immediately.

Second: Open up a terminal and type crontab -e, press enter and then type 2 to select the nano editor. Enter again and now you have text something like;

# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h  dom mon dow   command

So far I understand should following command 0 12 * * * deja-dup --backup written without the # at start, start the backup at 12 a.m (I suppose a 24h system here).

More examples:

5 12 * * * deja-dup --backup: Start backup at 12:05 a.m
* 12 5 * * deja-dup --backup: Start backup 5th of every month at 12 a.m
* 6 * 2 * deja-dup --backup: Start backup at 6 a.m in Frebruary

Refer to this askubuntu question to have a better idea about cron jobs in ubuntu


How to connect Tata photon +(Huawei EC156) in Ubuntu 14.04?

To use Tata DoCoMo 3G on Ubuntu OS, find the step below on Techulator. Read them carefully before you take the step and do not miss the step mentioned herein.

  You try to connect Tata DoCoMo 3G stick and boot up Ubuntu / system.

  You may choose network connections and click on the 'New Mobile Broadband Connection'
  Select 'continue' in the dialog box and select "India" as country & then click continue.
  It will show the list of service providers, select 'I don't know my provider' option and type 'TATA DOCOMO UMTS', click continue. Note:
  Don't select 'Tata DoCoMo' since it is for Tata Photon+ (2G) and not
  for DoCoMo 3G
  Now, under billing dialog, select 'My plan is not listed' option and enter as "tatadocomo3g" as APN, just click 'confirm' and save your
  settings.
  After these steps, you will get Network Connections, you will find "TATA DOCOMO UMTS connection" option and click on it. In case if it
  does not connect to internet then you can just unplug and then plug
  your 3G stick.
  That's it the step, now you can enjoy by using Tata DoCoMo 3G stick with your Ubuntu OS.

Hope this helps!


How do I change the icon for a particular file type?

Here is a set of instructions that should get you a custom icon for hwp files.

Open a terminal :

Check the MIME type exists : grep 'hwp' /etc/mime.types

if you get an output resembling application/x-hwp hwp skip the next step.
Create the MIME type sudo -H gedit /etc/mime.types and add the line application/x-hwp hwp
Add the icon (which must be called application-x-hwp.svg):

sudo cp PathToIcon/application-x-hwp.svg /usr/share/icons/gnome/scalable/mimetypes

(don't forget to replace PathToIcon)

Got the information from here


Google Chrome writing problem -- freezes up during typing

Disable your spelling checker. Even on my machine, it will freeze for a second when I'm typing something with spellchecking enabled.

The only other issue I can think of is an input method. I see scim in your packages and processes list. Try uninstalling it by running:

 sudo apt-get purge scim


Script to login and load main gui in Ubuntu 11.10

You would probably have to come up with something that hooks into PAM (Pluggable Authentication Module). For obvious reasons, authentication mechanisms are quite tricky to deal with. I suggest reading up on all things related to PAM and then hooking in to your welcome screen, which is likely lightdm unless you've changed it.

Aside from that your project is really cool (which it is!), I would cautiously recommend against securing your system solely with a physical object that someone can steal or borrow, since it would give them access to everything on your computer should they obtain it.


How to check exactly what apt install [some package] is going to do?

Simulate the results of installing a package without actually installing it. Open the terminal and type:
apt install --simulate package-name
Results

The following additional packages will be installed:
Suggested packages:
The following NEW packages will be installed:
X upgraded, X newly installed, X to remove and X not upgraded. The X's are replaced by numbers. Example: 0 upgraded, 99 newly installed, 0 to remove and 6 not upgraded.
Inst  - indicates packages that will be installed (99 lines in the above example, one package on each line)
Conf  - indicates packages that will be configured


Boot the system via usb-stick again, choose "Try Ubuntu", open a terminal by typing  ALT+F2 and entering gnome-terminal.

In the terminal run the following command:

sudo fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009ac04

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       13206     6655792+   7  HPFS/NTFS
/dev/sda2           13207      232581   110565000    5  Extended
/dev/sda5          228706      232484     1904616   82  Linux swap / Solaris
/dev/sda6           13207      228705   108611464+  83  Linux
/dev/sda7          232485      232581       48856+  83  Linux

Disk /dev/sdb: 4051 MB, 4051697664 bytes
83 heads, 12 sectors/track, 7945 cylinders, total 7913472 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00099e83

  Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          62     7910095     3955017    c  W95 FAT32 (LBA)

In this case /dev/sda6 (ATTENTION, this varies from install to install!) is the Linux-Root-Partition, which you can check by running

sudo mount /dev/sda6 /mnt
ls /mnt

and you'll get the / directory tree:

bin     dev      home      media     proc      sbin     tmp     var
boot    etc      lib       opt       root      sys      usr

afther that run:

sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt

with this commands you're now on your harddisk. Undo any changes you did after the install using your harddisk-user and password (e.g. playing with your synaptic-config), run

sudo apt-get update
sudo apt-get upgrade

and try to reboot.

These are the instructions corresponding to your problem from the ubuntu community help!


How to give priority to auto-mount on boot in Ubuntu 12.10?

had the same problem. Ubuntu loads applications in alphabetical order, so changing the name in Startup will solve your problem.
Hope it helps you.


file-as-folder is fixed via https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1872476

It's fixed in the package https://launchpad.net/ubuntu/+source/samba/2:4.11.6+dfsg-0ubuntu1.2 which is currently sitting in focal-proposed, and will be in updates shortly.


In my case because I have 2 versions of python installed, python3.5 and python3.6 , the module wasn't found on the python3.6 version so what I did thanks to @Emmet suggestions was:

nano /usr/bin/add-apt-repository edited the line #! /usr/bin/python3 into #! /usr/bin/python3.5 and now add-apt-repository command works again.


Installed Office 2007 in Wine, How to Run Them?

Microsoft Office 2007 typically installs to C:\Program Files (x86)\Microsoft Office on Windows 64-bit.  We can kind of assume that this will apply in the case of Wine as well, but we need to change C:\ to a Linux file path.

The default wine prefix, and the drive_c directory, ends up in your user profile data, such that wine's C: drive is in /home/$USER/.wine/drive_c.

Try searching in /home/$USER/.wine/drive_c/Program Files (x86)/Microsoft Office as a starting point.  Keep in mind that you should probably put that entire string in single quotes, like so:  cd '/home/$USER/.wine/drive_c/Program Files (x86)/Microsoft Office'

Within that directory, you should find some kind of OFFICE## directory in there.  If I remember correctly, Office 2007 is OFFICE12.  The binaries should be within that folder (/home/$USER/.wine/drive_c/Program Files (x86)/Microsoft Office/OFFICE12/).  You will need to know the actual executable names to run with the wine command, or you can double click the .exe (winword.exe for example is Word).


same problem here
seem to be fixed by removing appmenu-gtk

  sudo apt-get remove appmenu-gtk


Why is Nvidia 430 missing from the offical repos and the ppa for 19.04 when its available in 18.04?

Ubuntu 19.04 will reach End of Life in 3 months, so it makes no sence to update the driver in reposiroies. It is available in PPA.

You will be able to upgrade to 19.10 in a month or two, where you'll get the latest driver.

18.04 is LTS and will last for many years. That's why it got the update.


How can I do a backslash in Spanish keyboard using ubuntu

Try with : "ALT Gr" + the "?"

It may depend of course of your keyboard distribution(not all spanish keyboards have the same)

But as suggestion, the Ctrl + Alt thing of windows looks like works only with the "ALT GR" key. It should be in the right side of the space bar.

I have the "?" sign at the right of the "0(zero)" so you could try that way if you dont see the \ in that key.


I think the problem was an old version of tzdata-java

Installing the never version with sudo apt-get install tzdata-java=2015b-0ubuntu0.14.10 actually did the trick.


Gaming black-lit keyboards - do they work on ubuntu?

The manual you linked indicates that the back lighting control is hardware based and controllable on the keyboard itself. This means that the back lighting would work and be customisable regardless of operating system.

The multimedia keys on the other hand will be dependant on the operating system to determine that they have been pressed and this may require further configuration to make them work.


How do I clean up my "home" drive or "/" to get some free space?

The program baobab presents a graphic tree diagram of what uses how much space.  I find it useful for identifying where I wasted space, in particularly in my home directory.


How many loopback devices can Linux support?

The amount of loopbacks is a setting in modules.conf. It used to be /etc/modules.conf and before that /etc/conf.modules but looks like in 15.04 is is /etc/modules-load.d/modules.conf.

You can add 64 loopbacks with

options loop max_loop=64

It looks like 256 is a hard coded limit in loop.ko. From a redhat system:

# modinfo loop
...
parm:           max_loop:Maximum number of loop devices (1-256) (int)

If all fails execute this from a root session:

for i in $(seq 0 255); do
  mknod -m0660 /dev/loop$i b 7 $i
  chown root.disk /dev/loop$i
done

That will attempt to create them. If it works add it to /etc/rc.local.


Howto to move window to another monitor on the left/right using keyboard shortcut?

In 18.04, the default hotkeys for moving windows to another monitor are Shift + Super + Arrow. Each arrow will correspond to the location of the destination monitor relative to where the focused window is.

Also, are you saying that you do not see a list of hotkeys in Settings > Devices > Keyboard?
I assume you are using gnome-control-center.


How to stop display from blanking on Ubuntu Server 15.10?

Nevermind. I found a solution. I just added setterm -blank 0 -powersave off to my .bashrc file.


What is it, and do I have to increase the allocated space for /dev/sda1?

/dev/sda1 is your boot partition, you don't have to increase it. Your main partition is /dev/mapper/... and that's lots of space, but in case you need more space you can another HDD and increase the size of it using LVM since you have it enabled.


click on system settings.

Click on Language Support.

Click on the Regional Formats Tab, and change language to English, and apply system- wide. and that will do it.

Note: You may have to reboot, so changes can take effect


How can I delete a stubborn directory from my external HD trash?

I ended up using Windows to solve this.

To do so, I plugged in the External HD and browsed into the .Trash-1000 folder with the file explorer. The file explorer paused, thinking, for a couple of seconds, and then eventually presented the contents of the folder as empty. I then simply unmounted the HD, rebooted into Linux, and it seems to me that everything has worked as expected since.


Gnome shell extension to place icons wherever i want in the dock?

Try this:-

Open your terminal.

Type the following command gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true

This should work !!


I am afraid there is no a really good solution. The only driver that support this adapter [14e4:4365] is the wl driver that is already installed.

It is a proprietary Broadcom driver.

In some cases it is slow, but there is no better solution so far.

You can use an external usb wireless dongle or replace the internal wireless adapter in your laptop.


GameRanger interface not usable in Wine 1.6

Well, my solution was simple but overkill: I copied my whole Windows installation over to wine's virtual drive, and it worked.


How can I convert a .jpg or .png image to .raw format?

I just find out here how to do that with Gimp !

Works almoust perfectly ! :P

Update

Used method:

Export the file on Gimp: Ctrl Shift E
On the export window, choose Raw Image Data on Select File Type

Click on Export button

On the raw image export window, Choose Planar for the RGB Save Type

Click on Export button

Open the folder where the file was saved and rename his extension from .data to .raw
On Unity3d, chose Bit 8 for Depth on the Import Heightmap window

Unfortunately, the generated image by Gimp isn't that good... So, I'm still would appreciate some help.


How to resolve locales dependency on 12.04

I also had similar problem 'packages have unmet dependencies' and the only solution that worked for me is to purge and reinstall all the unmet dependencies and their parents.


Installing Ubuntu over Windows - dangerous?

I recommend you to not erase Windows 7 and install Ubuntu alongside. It's safer option in case something goes wrong, especially that you're not pro user.

A) The situation here is very similiar to Windows - Ubuntu comes with great amount of built-in drivers to plenty of different devices and if something is missing, you should get it online.

B) You can run Windows games on Ubuntu using Wine or PlayOnLinux + a lot of Steam games are available.

C) I think it's impossible to make PC inoperable by installing Ubuntu. Ubuntu installer is extremely user-friendly, so it's almost impossible to ruin your PC. Don't be afraid and give Ubuntu a try :)


error: file '/grub/i386-pc/normal.mod' not found ans filesystem unknown, Ubuntu 18.10

You're gonna have to locate where the normal.mod file is. Try ls (hd0,gpt1)/, (hd0,gpt2)/, (hd0,gp3)/ and so on. There should be a boot/grub/i386-pc folder inside one of those. Let's suppose it is inside (hd0,gpt2), so if you run the command ls (hd0,gpt2)/boot/grub/i386-pc you'll see over a hundred modules on your screen. The normal.mod file should be there amongst them. Now run the command set prefix=(hd0,gpt2)/boot/grub/i386-pc, so grub will know where the file is. At last, run the command insmod normal and then run normal.

If you get an error message when running insmod normal like "error: file '/boot/boot/grub/i386-pc/nomral.mod' not found". Notice that, for some reason beyond my knowledge, the boot folder appears twice. In this case, just rerun the command set prefix=(hd0,gpt2)/grub/i386-pc (without the boot folder).

If your root folder is located in a different partition, like (hd0,gpt3), you should make sure grub knows where to find it (though it is usually not a problem), run set root=(hd0,gpt3) and you're all set.

At last, if the problem persists every time you turn on your computer, you can simply create a symbolic link of the boot folder. I, for instance, had to create a boot folder inside the regular boot folder and then linked grub inside it, so I had /boot/boot/grub/i386-pc. For some reason that was where grub was trying to find the file. Oh! Don't move the file, create a link, so whenever grub is updated you won't miss anything.

Any questions or further issues, just ask!


The last two times I have updated from the Software Updater, I have had to reinstall my graphics drivers and restart Unity

You certainly can use the nVidia .run files, IF you have Dynamic Kernel Module Support, dkms, installed before you start. It will make the driver rebuildable for a kernel upgrade.


Firefox font is messed up after update to Firefox 80

Alright, so I found a workaround. Still not entirely sure what caused it, but I fixed it by disabling sync for settings, then deleting .mozilla and setting up Firefox again.


The file
libprintbackend-file.so

is responsible for this. Do a locate libprintbackend-file.so and rename it to test out if this works. It will be in a directory like this:
/usr/lib/gtk-*.0/*/printbackends/

where the * denotes the gtk version.
In case you use snaps each snap might also return a version. Doing that on those files also removes the option "Print to file" from that specific snap.


How to install something from one computer to all computer?

For this, my preferred solution is Ansible (https://www.ansible.com/). It let's you automate any kind of configuration or installation across as many computers as you could possibly want. Another upside to Ansible is the community which has already made a lot of robust scripts available, for performing most configuration and installation tasks.

This looks like a fairly comprehensible tutorial to get you up and running with Ansible.

However, if this is just a one-off command you want to run on multiple computers, you're better off just scripting it in Bash.


@zpletan's answer lead to a bit of hunting around, which quickly unearthed what seems to be the root cause of my problem. It's detailed in Ubuntu Bug #574296. In summary, my Core i7 system with an SSD starts everything with sufficiently different timings that gnome-settings-daemon runs too early, bails, and leaves me mostly with a stock GTK theme.

A short sleep in /etc/xdg/autostart/gnome-settings-daemon.desktop fixes it:

Exec= bash -c "sleep 2; /usr/lib/gnome-settings-daemon/gnome-settings-daemon"


Script to extract/push a list of wireless configurations including passwords?

It turns out, a simple copy operation will suffice! With a little more snooping around on askUbuntu it turns out that all network connections are stored in /etc/NetworkManager/system-connections/, so I just need to copy them (root access required) around using any of the distribution methods I'd pick.

To document the settings (we love spreadsheets) a simple script (solved with a little help) one can use this script:

#!/bin/bash
#Document wifi passwords
echo ssid,password > knownwifi.csv
for f in /etc/NetworkManager/system-connections/*
   do
      ssid=$(awk -F= '$1=="ssid" {print $2}' "$f")
      pwd=$(   awk -F= '$1=="psk"    {print $2}' "$f")
      #We are only interested in password protected Wifi
      if [ x$pwd != 'x' ]
         then
           echo "$ssid,$pwd"
      fi
   done >> knownwifi.csv
echo done

You need to run that script as root and you might want to add additional values from connection setting. Opens nicely in a spreadsheet of your choice


Why does this command doesn't run at startup

On recent Ubuntu versions there's a dconf option (if you are using GNOME or Unity):

org.gnome.desktop.input-sources xkb-options

which you can set via dconf-editor or gsettings. For example,

gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"

This option is permanent across reboots.


Freeze at startup: "It seems that you do not have the hardware required to run Ubuntu"

The error means that your 3d graphics are not enabled for Unity to work, OK the error message and go into Classic Desktop and install your 3rd party graphics for nvidia or ati (if that's what you have), then on next boot Unity should work fine...


Compressing videos create even larger file

As @pram said above in the comment, mp4 videos are already compressed, and other video formats probably also use compression to some extent. Therefore, trying to compress them won't result in little (if any) reduction in size (this also applies, at least in part, to pictures and music). In this case, it looks like the metadata (for the compressed file itself) might be causing the increase. The only compression format that might (and that's a strong might) result in some reduction is xz.

On another note, if you want to reduce the size of those videos, look instead into re-encoding the videos using something like Handbrake.


Dell XPS 13 7390 is lagging (caused by background updates?)

I am quite confident that the lag is caused by background updates. In particular for the slow boot, systemd-analyze blame revealed that apt-daily.service was running for 7 minutes!
A workaround the "slow boot" issue was to do this:
https://askubuntu.com/a/1085711/38648
To properly fix this issue, I guess the update-mime-database issue needs to be solved. There is another question on this:
update-mime-database is the bottle neck of apt intall now, any workaround?