How to fix "doesn't look like an EFI partition" with WinUSB?

If what you want is to create a bootable usb to install Windows 8, you must use the dd command in Ubuntu:

Open a terminal.

Run it:

dd if=/path/to/file.iso of=/dev/sdb

Note: Carefully check that the usb-stick is /dev/sdb


how to create a new bundle for Juju 2.0 and Ubuntu 16.04Lts

To create a bundle:

Open up your model in the GUI using the command juju gui --show-credentials which will open up a new browser window and output your credentials to the console.
Click the button in the top left of the GUI which looks like an arrow coming out of a box.
The downloaded file will be a bundle file representing your model. Feel free to manually edit this file to many any valid changes.
You will then be able to deploy this bundle via the Juju CLI or by importing it back into the GUI in a new model.


There are several VPN protocols available. You may need to choose a correct VPN for your need. For more info check this wiki

In your case Cisco Compatible VPN (vpnc) plugin is needed.

To install Cisco VPN open terminal (Ctrl+Alt+ T) and run sudo apt-get install network-manager-vpnc

open VPN connections from applet and click on "Configure VPN..."
Choose "Cisco Compatible VPN(VPNC)" and click create
Under VPN tab

Gateway: 1.2.3.4
Group Name: EmployeeVPN
Group Password: 3dud934id94j49fj9j4f
Username: myUsername
Domain: ourDomain

That it when you try to connect to this VPN, you will get a pop-up window asking for password. Enter the password to connect to the VPN.


There is a bug that seems to relate to this issue and it seems related to running apps incompatible with pulseaudio 4.0.  On my system if a PA compatible app is run last before the suspend, the bug is much less likely to occur.  An answer to a similar question suggests killing pulseaudio (it restarts automatically).  Creating an executable script "00custom" in /etc/pm/sleep.d that plays a sound and resets pulseaudio before suspending completely fixed the problem on my system.  You need a Snoring.wav file in your Downloads folder for example this.

#!/bin/bash

# custom suspend resume stuff
#
# 1) play a suspend sound and reset pulseaudio to workaround Bug #1355025
#

DBUS_USERNAME=$(grep -z "USER" /proc/$(pidof gnome-session)/environ | cut -d= -f2-)
export XDG_RUNTIME_DIR=/run/user/$(/usr/bin/id -u $DBUS_USERNAME)
export HOME=/home/$DBUS_USERNAME

case "$1" in
        hibernate|suspend)

                # play a suspend sound and reset pulseaudio
                /usr/bin/sudo -E -u $DBUS_USERNAME /bin/bash -c "/usr/bin/aplay /home/$DBUS_USERNAME/Downloads/Snoring.wav"
                /usr/bin/sudo -E -u $DBUS_USERNAME /bin/bash -c "/usr/bin/pulseaudio -k"

                ;;
        *) exit
                ;;
esac


Error when running CMake Ubuntu SDK IDE Setup Wizard

All my programming projects are stored on a hard drive (mounted in /mnt) and symlinked to my home directory for easy access. Creating the scope project in my home directory solves my problem. I don't know if there is a workaround for this, but the setup wizard definitely doesn't like this.


How to enable chameleonic background using GTK webkit?

in which way are you using GTK Webkit? If, for example, combined with python, then this could be of help: http://pastebin.com/bd1NMD4g

Cheers,

Wolf


Problems with boot after update 14.04 LTS

In my case the conflict between LightDM and Nvidia driver lead to "password loop" after software update (when LightDM was upgraded but driver not)
I uninstalled LightDM, then installed GDM (choosed LightDM as login manager anyway), then uninstalled Nvidia driver and rebooted.
This worked.
To restore screen resolution I had to reinstall Nvidia driver but got probably newer version which didn't conflict with GDM/LightDM.


I know this thread has been dead for quite a while now, but the problem may still exist for some of you, as it did for me until some moments ago.
Here is how to get your tty-consoles back if you just get black screens after hitting Ctrl+Alt+F1 to F6:

In a console, run

sudo apt-get install v86d

When installation finishes, open:

gksudo gedit /etc/default/grub

Find the line that reads:

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

Note: there may be more entries between the ""s, depending on previous changes.

Replace it with (or expand accordingly):

GRUB_CMDLINE_LINUX_DEFAULT="quiet nomodeset video=uvesafb:mode_option=1280x1024-24,mtrr=3,scroll=ywrap"

Find another line which reads:

#GRUB_GFXMODE=640x480

And replace it with:

GRUB_GFXMODE=1280x1024

Note: be sure there's no # in front.
Save and close the editor.
Now open:

gksudo gedit /etc/initramfs-tools/modules

At the end of the file, add the line:

uvesafb mode_option=1280x1024-24 mtrr=3 scroll=ywrap

Save and close the editor.
Finally run:

FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash && sudo update-grub2 && sudo update-initramfs -u

Now reboot. After reboot, your tty-consoles should be accessible again.

Source: crunchbanglinux.org: How to fix tty1-6 (Ctrl+Alt+Fx terminals) if they are not working


If you are ready for reinstallation of the whole system you have an option of merging both ext4 File systems so that you atleast have 33 GB free Space on which you can smoothly run Ubuntu.

For installation help please read this -https://help.ubuntu.com/community/Installation/FromUSBStick


BCM4313 partially working on Toshiba Satellite R630 (Ubuntu 12.10)

I am also using BCM4313 on 12.10, but on IdeaPad. There are couple possible issues, so lets start with:

BCM4313 is not a great wifi card and linux support is also not perfect. However, it is  fine for day to day use and you can get it running on linux without much work.

In my case I have installed a module for the wifi using following command:

sudo apt-get install build-essential linux-headers-generic bcmwl-kernel-source

If you can see other WIFI networks, but not your one it might be because BCM4313 doesn't support high radio channels. In my case, I had to adjust my router from channel 13 to channel 8 to get it working fine.

Hope it helps.


Had similar issue, solved after reinstall.
Try to reinstall JDK from oracle. As they says:

  As of JDK 7u6 JavaFX is included with the standard JDK and JRE
  bundles.  Please download the JDK or JRE to use JavaFX.

Here is the link


What's the most space-efficient multimedia container available in Ubuntu?

For a test case I downloaded a copyright free video via torrent(Destroy All Planets) from The Internet Archive. As it contained a number of files in different multimedia containers at different bitrates I chose the highest quality version which was Destroy_All_Planets.mpeg which was 720x480 at 30 fps and a MPEG2 video stream with a variable video bitrate of ~3000 kbps (6000 kbps max per mediainfo and a AC-3 audio stream sampled at 48000 Hz with bitrate of 192 kbps. I attempted conversion to all the multimedia container types I could find. using the command avconv infile -c:a copy -c:v copy outfile The AVI attempt appears to have defaulted to uncompressed and was clearly re-encoded (or unpacked) as there was a substantial increase in size and an adjustment to 90fps with a bitrate of 15.9 Mbps. Several other containers failed to accept the data input and can be seen in the results with a 0 file size. According to the results of this test MP4 and MOV containers appear to be the most efficient (tied for 1st place) with the Matroska container a solid 3rd place finish. All other multimedia containers tested resulted in an actual increase in size over the source material.

11036656 Destroy_All_Planets.avi

 2287920 Destroy_All_Planets.ts

 2140308 Destroy_All_Planets.asf

 2140308 Destroy_All_Planets.wmv

 2106300 Destroy_All_Planets.mpeg

 2103940 Destroy_All_Planets.mkv

 2103404 Destroy_All_Planets.mov

 2103404 Destroy_All_Planets.mp4

       0 Destroy_All_Planets.3g2

       0 Destroy_All_Planets.3gp

       0 Destroy_All_Planets.flv

       0 Destroy_All_Planets.mxf

       0 Destroy_All_Planets.ogg

       0 Destroy_All_Planets.webm

In the interests of full disclosure it should be noted that in this case conversion to mkv also failed and I got the error Can't write packet with unknown timestamp I resolved this problem before on other files by adding -fflags +genpts before the input file which is the workaround outlined here. In this instance it resulted in a playable file which no player I tried was able to determine the duration of. Converting the previously converted mp4 to mkv worked fine in this instance. Another test resulted in the following results:

3129112 disorder_in_the_court.avi
 623632 disorder_in_the_court.ts
 583424 disorder_in_the_court.mpeg
 575288 disorder_in_the_court.mov
 575288 disorder_in_the_court.mp4
 575224 disorder_in_the_court.mkv

The previous test included an mpeg with subtitles, this one did not have embedded subtitles and the Matroska container came out with the smallest file size. It also has the benefit of being the most flexible of the containers tested allowing for virtually any video, audio, or subtitle format currently available.


Get an iso file that is small enough to fit in your USB pendrive, and that can do what you want.

I would recommend using the Ubuntu Minimal CD alias mini.iso alias Netboot iso file, if it is OK to boot in BIOS mode.
Otherwise, in UEFI mode, you can use an Ubuntu Server iso file which is also smaller than 2 GB, and install a minimal system.

When running the installed minimal system, run

sudo apt update
sudo apt install kubuntu-desktop

and reboot to get Kubuntu.

You can find these iso files via the following links

http://releases.ubuntu.com - Ubuntu Server with the new style curtin installer
http://cdimage.ubuntu.com/releases/ - Ubuntu Server with the old style debian installer
http://cdimage.ubuntu.com/netboot - mini.iso with the old style debian installer


Keyboard shortcut to switch applications (Alt+Tab) isn't working

Workaround until the bug is addressed:

Install & run ccsm:

sudo apt-get install compizconfig-settings-manager && ccsm
Enable 'Application Switcher' under 'Window Management'

This worked for me

(note that I'm using Linux Mint 13 Maya + 'Gnome Classic' session)


Can I install Ubuntu in my Windows partition without wiping Windows?

You probably can but i would first make a copy of your c drive first somewhere else so if it messes up, you can just restore it. Simply run the installation but when it gives you a choice of what drive to pick, choose the one where windows is installed but do NOT wipe it. Also make a separate boot partition at the start of the drive(200mb) with the ext4 filesystem. Let the installation continue and when grub is selected for installation, choose the ext4 partition. I wouldn't try installing grub to the windows drive because it might overwrite the windows boot files.


How does the update manager determine when to prompt users?

Update manager is configured not to notify on updates on pre-release versions of ubuntu. This prevents update notifications from occurring all day long due to frequent updates during the pre-alpha through beta phases of a release cycle.

It's important to manually update frequently or you won't be able to report issues due to out of date packages.


Is there a vocal interface system for Ubuntu (able to map voice commands to console commands and parameters)?

http://sourceforge.net/projects/speech2text/

As i know it features and language to develop own modules.
You should give it a try.


I realize you've fixed the problem, but I want to point out what went wrong and how it should be fixed (both by end users and by Ubuntu's developers).

First, Ubuntu's developers have decided -- most unwisely -- to create a GRUB configuration that relies on files in the Ubuntu root (/) partition, as well as on the EFI System Partition (ESP). This makes GRUB vulnerable to removal of or damage to the Linux partition, and therefore makes it difficult to boot the computer after removing Ubuntu or if the Ubuntu installation is damaged in some way. This vulnerability is unnecessary; it is possible to configure GRUB to look for all its support and configuration files on the ESP. If GRUB were configured in this way (as Fedora does), then deleting Ubuntu would not affect GRUB's ability to redirect to Windows. The system would still boot through GRUB, but it would at least still boot. So, shame on Ubuntu for setting GRUB up the wrong way.

Second, based on the filenames you mentioned, you seem to have run Ubuntu's Boot Repair tool at some point. This tool automatically renames the Windows boot loader, EFI/Microsoft/Boot/bootmgfw.efi, and places a copy of GRUB in its place. It does the same thing with the EFI fallback boot loader, EFI/BOOT/bootx64.efi, and drops another copy of GRUB in as EFI/Microsoft/Boot/bootx64.efi, for reasons that I don't claim to fathom. This is a done as a workaround for a bug in a handful of EFIs. The trouble is that Boot Repair does this by default. On most computers, it is not necessary. When it's subsequently desirable to make changes to the boot configuration, this renaming and replication of GRUB becomes a complication, since users are left guessing about what's going on. So, shame on Boot Repair's developers for being unsubtle about their repairs. (In their defense, though, it would be very difficult for Boot Repair to reliably detect which computers have the bugs that require moving boot files in the way that it does by default.)

One more point is important: In a properly-functioning EFI system, a list of boot programs is held in NVRAM. The EFI tries each of the programs in this list in sequence; if one fails or is absent, the next one is tried. When Ubuntu installs, it adds its version of GRUB to the top of the list. Most EFIs also enable users to specify which boot program to use from a built-in boot manager, but this built-in boot manager is crude on most EFIs.

Sum all these factors up, and the simplest solution to the original problem becomes:

Undo the Boot Repair tool's changes. This can be done using the Boot Repair tool itself; it has an Advanced Options menu with a check-box called "Restore EFI Backups". Use that and the multiple copies of GRUB will be removed and Windows' boot loader will be restored. Alternatively, this can be done manually. Most importantly, the backup of bootmgfw.efi (probably called bkpbootmgfw.efi, although some versions of Boot Repair have used other names) should be copied to EFI/Microsoft/Boot/bootmgfw.efi on the ESP.
Delete GRUB in its official/proper location -- EFI/ubuntu/grubx64.efi for Ubuntu. If Secure Boot was active, deleting EFI/ubuntu/shimx64.efi would be necessary instead. In fact, deleting the whole EFI/ubuntu directory, or at least renaming it, would do the job in any case.

That's it. With those two things accomplished, the EFI will skip the Ubuntu boot option because it's not longer valid and go on to boot Windows. Some EFIs will also automatically remove the Ubuntu boot option from their boot managers' menus, too, although this practice is not universal.

Note that in your case, Matthew, I don't recommend doing these things; you've got a working configuration, and as they say, "if it ain't broke, don't fix it." You may have a few stray files left on your ESP, but they aren't doing any harm, so it's best to just leave it alone. I've presented my answer in the hope that somebody else will find it useful.

EDIT: The above was correct when I first wrote it, and the principles remain the same; however, Boot Repair no longer automatically renames the Windows boot loader and replaces it with another copy of GRUB. (Boot Repair can do this optionally, but the option is buried on an advanced options menu, so it's no longer done by default.) This fact makes recovery from this problem easier today than it was in 2013. In most cases, you need only delete the EFI/ubuntu directory on the ESP to make the system boot directly to Windows. If GRUB still appears after you do this, you may have used the Boot Repair option to back up and rename boot files, in which case using it to undo those actions is in order, as noted earlier.

Another option is to use the computer's built-in boot manager (usually accessed by hitting a function key, Esc, or Enter soon after you turn on the computer) to bypass GRUB and boot to Windows. You can then use EasyUEFI to adjust the boot order and/or delete the ubuntu entry from the boot list. This action won't delete GRUB from the ESP, but it will bypass GRUB.


This has been reported elsewhere, as not yet working for 12.04 and 12.10.

They appear to have focused on the next Ubuntu release (13.04), so you need to be patient, or try this on 13.04.

WebUpd8 > LibreOffice 4.0 Available For Download

  The Document Foundation has released LibreOffice 4.0 today, which, according to the official announcement, is the "first release that reflects the objectives set by the community at the time of the announcement, in September 2010: a cleaner and leaner code base, an improved set of features, better interoperability, and a more diverse and inclusive ecosystem".

This also notes:

  However, the appmenu integration by default didn't work in my test under Ubuntu 12.04 or 12.10 (with LibreOffice debs downloaded from its website). This does work with the LibreOffice 4.0 beta 2 version available in the LibreOffice Pre-Releases PPA for Ubuntu 13.04.


How to disable password on Hibernate/Suspend?

This worked for me:

 gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'

It disables the locking altogether.


Go to the color settings page, then click on the monitor and it should show you the profile in the right. Click on that profile and then remove it with the prompt. It should remove the profile immediately, but if not try logging out or rebooting.


How to upgrade phpmyadmin to version 4.9.4?

https://github.com/phpmyadmin/phpmyadmin/issues/15515#issuecomment-589945384

I published the 4.9.4 version to the Ubuntu PPA.

Available for Eoan and Bionic only.


Initramfs error whenever booting Ubuntu after booting windows

in Ubuntu
Do these commands:
sudo update-initramfs -c -k $(uname -r) # we create a new ramdisk
reboot # we reboot the computer
in BIOS
Disable Secure Boot.
in Windows
We disable fast boot and hibernation:

boot into Windows
open the Power control panel
choose change what the power buttons do
choose change options that are unavailable
uncheck fast startup
close the Power control panel
open an administrative command prompt window
type powercfg /h off
type chkdsk /f c:
approve to run chkdsk at next reboot
reboot into Windows to let chkdsk run on drive C:


How to solve 'error: invalid efi path' while trying to boot Windows 7?

First, which Windows entry are you trying to use? There are three in the grub.cfg file that you posted. The first two (Windows 7 (loader) (on /dev/sda3) and Windows Recovery Environment (loader) (on /dev/sda5)) won't work. The third (Windows 7 UEFI) is closer to working, but it sets the wrong --root option; it should read --root CF46-460C, not --root 0EEC3E6EEC3E5067. To fix this, you'll need to edit /etc/grub.d/40_custom and then run sudo update-grub.

If that doesn't work, you could try another boot manager, such as rEFInd, which tends to be less finicky about launching Windows. Booting to Ubuntu and then installing the rEFInd Debian package should set everything up to work, although you might then want to tweak a few settings, especially if you see duplicate entries in the menu. (Check the dont_scan_volumes, dont_scan_dirs, and dont_scan_files options in refind.conf.)

EDIT: If selecting the Windows entry in rEFInd brings you to GRUB, then something (probably the Ubuntu Boot Repair tool) has copied GRUB over the Windows boot loader. With any luck, you should be able to find the original file under a backup filename and copy it back. From Ubuntu, the Windows boot loader (which has been replaced by GRUB) is /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi. Look for this file, and look for a file with a similar name, like bkpbootmgfw.efi or bootmgfw.efi.grb. Copy the backup file over the bootmgfw.efi file (creating your own backup first, just to be on the safe side).


Configure connection sharing with specific IP Address

In versions before 1.4.2, 10.42.0.x is hard-coded into NetworkManager. Forget about GUI-based solution or wait until the bug/feature request is fixed. Or fix it yourself for all of us. Or at least vote the bug on launchpad for faster resolution.

Either upgrade to Ubuntu 17.04, with version 1.4.4, or use the following command from Thomas Haller to set the host IP and class.

nmcli connection modify $CONNECTION_ID +ipv4.addresses 192.168.5.1/24

where $CONNECTION_ID if found via nmcli connection show. Afterwards, verify with nmcli connection show $CONNECTION_ID.


Extensions in gnome 3 are not working. I recently upgraded from Ubuntu 16.04 to 18.04.

Ubuntu 18.04 uses Gnome instead of Unity, and you need to install/enable some things differently.

Nightlight

Gnome has this feature built in now.

Go to settings->devices->display and turn on "Night Light"

Netspeed

This is now a Gnome Extension. It, and many other useful extensions can be installed via apt.

From the command line install extensions and tweak tool:

sudo apt install gnome-shell-extensions gnome-tweak-tool

You will need to reboot, then run:

gnome-tweaks

and you can then enable the desired extensions by clicking the extension button on the left of the window.


What Compiz addons/plugins are available?

You can install many Compiz plugins with one command

sudo apt-get install compiz-plugins-extra

Then go to software center and install compiz config settings (cant remember the package name for apt)

This allows you to config them, open it in dash and choose the "effects tab"

You will see there are now many, many effects you can use, some of my favourites include

Wobbly Windows, cube desktop changer, some nice fire effects and in the animations tab you can chage the open/close/min etc for the windows, I like the dream effect.

I know you asked what is available but there is to many to list here as you will see and the best ones are very subjective.

Enjoy


Script not running from crontab but running from terminal?

Your 'mkdir.py' script is not in a location that is visible to your current path.
You can see the places that cron/sh are looking in the error message mail:
X-Cron-Env: <PATH=/usr/bin:/bin>
This means that anything not qualified with a directory needs to be in either /usr/bin or /bin. Python is in one of those directories (or else cron would say something like "command not found: python"), mkdir.py is not.

A simple fix: Try changing your crontab entry to:
python /path/to/mkdir.py

A more involved fix: Since you have '#!/usr/bin/python' in your script you do not need to explicitly invoke python in order to execute it; you could give it execute permissions via chmod +x mkdir.py and then copy it to /usr/bin.

Changing your crontab entry to mkdir.py should work once you have moved the executable script to the correct location.


question regarding package update process

Yes Debian/Ubuntu (deb/apt) Packages and Package Management do contain a mechanism to ensure package security.

  Apt-get package management uses public key cryptography to
  authenticate downloaded packages.

If you want to understand how, please refer to
https://help.ubuntu.com/community/SecureApt which includes sections on

Basic Concepts (Public Key crytography)
How to Find a Key
How to validate a Key
The Web of Trust (verification of Keys)
Validation of Release File and Packages
Links for more information

An alternative source is upstream (Debian's) https://wiki.debian.org/SecureApt


Can't boot to GRUB/ubuntu on dual boot machine

Go back into Windows and in the power settings, turn off fast boot.  The 8.1 upgrade turns it back on, preventing a normal boot.

Also check that the INtel Rapid Start is disabled.


The problem was in Gxneur app. It was reading mouse movements. Disabled this option ("Do not track cursor movement") and everything now works fine.


Configuration error when using postfix with postgrey

Commas are missing after each of the rules, should be:

smtpd_recipient_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_unauth_destination,
    check_policy_service inet:127.0.0.1:1002


This is not a question related to Ubuntu, but to linux as Ubuntu is a distribution.

If I was you, I will install Arch Linux with all the tools I require in the USB. Here is the instructions.

But a simple solution would be Ubuntu core.


How do I do a batch downgrade of packages from one repo back to canonical?

Yes, there is an easy way.

Just install ppa-purge

sudo apt-get install ppa-purge

Then you should run it against the PPA you added, in this case:

sudo ppa-purge ppa:xorg-edgers/ppa

It should disable the PPA and rollback any package updated from the PPA back to the ones in the Ubuntu official repository.

http://www.webupd8.org/2012/02/how-to-use-launchpad-ppa-add-remove.html


Remove manually installed java application

Open Terminal And Type :-

 cd /opt/VP_Suite5.0/

 sudo ./uninstall

Source :- From svisual-paradigm forum


Yes, you can but this would be a very bad idea.

If you run:

sudo apt-get remove 'apt.*'

apt would show the warning:

WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!

But again you can perform the operation as the lower level tasks will be done by dpkg.


I'll make my comment an answer.

It looks like you have auto-login enabled, which is good in that case ;-)

Open a terminal (press CTRL+ALT+T)
You now see something like username@hostname where username is your username
If your prompt does not look like this for any reason (modified .bashrc, ...) type in the opened terminal whoami. This will print out your username.

If you want the username from a not logedin user:

Open a terminal
execute ls /home/. This will list the home directory, which has a folder for each user.


I figured it out just before posting the question so I thought I might just post the answer as well.

The reason my terminal is not searching for global commands is because I'm not running as administrator, sudo javascripting works.


kdenlive won't see my external hard drive

I have found out that there are two versions of Kdenlive. One version works great at the Ubuntu Store.


Top command - what do the "slash number" next to each process name mean?

It depends on the process. The /… is part of the process name, as can be seen from pgrep output:

$ pgrep kworker -a | head
5 kworker/0:0H
16 kworker/1:0H
21 kworker/2:0H
26 kworker/3:0H
31 kworker/4:0H
36 kworker/5:0H
41 kworker/6:0H
46 kworker/7:0H
165 kworker/0:1H

For kworker processes, the answer is in this Unix & Linux post:

  According to kernel.org, the syntax is kworker/%u:%d%s (cpu, id,
  priority). The u designates a special CPU, the unbound cpu, meaning
  that the kthread is currently unbound.

  The workqueue workers which have negative nice value have 'H'
  postfixed to their names. (source)


ubuntu will not boot from hard drive after installation

Secure Boot is usually OK, but can sometimes cause problems, so it's best to disable it during troubleshooting. Ideally, it will provide some added protection against pre-boot malware (which usually targets Windows but can theoretically affect any OS), so it's worth having -- IF it doesn't cause any other problems. It's possible that Secure Boot is causing your problems, but I suspect a defective firmware.

Your Boot Repair output indicates that Ubuntu should be booting; however, some EFIs have known problems that prevent the system from booting anything but the Windows boot loader (or a program with the same name as the Windows boot loader). There are a number of ways you can overcome this problem:

Look for an updated firmware from your computer's manufacturer. (They'll probably call it a "BIOS update" or words to that effect, although it's technically not a BIOS.) After doing this, you may need to re-install a boot manager (see below).
Using Boot Repair, click the Advanced item and select the option to back up and replace the Windows boot loader. (I don't recall the precise phrasing of this option.) Once this is done, GRUB should theoretically come up.
Download the CD-R or USB flash drive image of my rEFInd boot manager and prepare an image with it. If that image starts, it should boot Ubuntu just fine. If that works, you can either continue booting with rEFInd on the external medium or install the Debian package in Ubuntu. If that works as-is, then great. If rEFInd also fails to start from hard disk, then you can boot to Ubuntu using the USB drive or CD-R, open a Terminal window, and type mvrefind.sh /boot/efi/EFI/refind /boot/efi/EFI/BOOT. (Note the doubling-up of efi, once in lowercase and once in uppercase.) This mvrefind.sh command essentially does what the Boot Repair option to replace the Windows boot loader does, but with rEFInd rather than GRUB.
Since the computer is new, return it to the store and buy another model. Make it clear (in a letter to Toshiba, if nothing else) why you're returning it. Manufacturers have had more than enough time to fix these problems in their firmware, and yet they keep delivering garbage. They do this because few people complained about the garbage in the first couple generations of EFI firmware, and they'll continue delivering it for years more if people keep accepting it.
Enter the firmware setup utility and find whatever options exist to control the boot mode. Set the computer to boot in BIOS/CSM/legacy mode and to disable (if possible) EFI/UEFI mode. You can then re-install Ubuntu in BIOS mode, which should set up a BIOS-mode version of GRUB; or run Boot Repair in BIOS mode to do the same without actually re-installing anything.


Installing applications onto external sd card?

Applications get installed on internal memory which is faster and they are run from there directly. You can save non-applications like songs, videos, and other things on SD card though. If you are very low on internal memory then uninstall some not so frequently used applications.


Install Unity Tweak Tool to use installed themes.


How to determine the distribution of Ubuntu

Ubuntu 16.04 (the 5th item in the list in the question) is codenamed xenial. You can verify this by opening the terminal and running the following command:

lsb_release -c

If the operating system is 16.04 the results of the above command will be:

Codename:   xenial


Real time audio normalisation / limiting

VLevel - LADSPA plugin and command-line filter


You have probably have the executable in a folder which is not searched for executables. I do not know MetaACE and how it works.

Verify:
env | grep PATH

Either:
1) add folder for executable to PATH.
PATH=~/Downloads/MetaACE_LTD/bin:$PATH
(metaace.bash assume executable is placed in /bin)

2) add active folder to PATH (This is dangerous in case one should get executables in download folders, copy files, etc. Normally not done in PRODuction environment.)
You then need to have ~/Downloads/MetaACE_LTD/bin as active folder in order to start executable, like you example.

3) start binary by using complete path and file:
~/Downloads/MetaACE_LTD/bin/metaace
One might in general run into additiopnal problem with other executables, but MetaACE seems to only have one.

4) install/move/copy MetaACE in other folders.

5) make softlink for execuble in a folder used by PATH to where you have it.


Error 'failed to create directory locally' while downloading with Fire FTP

Apparmor is stopping fireftp traffic, so you need to configure apparmor to allow FireFTP.  If more help is needed in regards to apparomr have a look at this site


Trying to duel boot linux/windows with each OS on a different HD

The last time I installed ubuntu with windows it gave an option for dual boot. It would flash on the screen and allow you to choose which operating system to start. I believe you have an installation issue. Try reinstalling ensure you choose the dual boot options. All else fails you can load ubuntu on a USB drive and run it from there.


I looked up the specs for your computer, and can't tell if it has a Mux or not.

The arch wiki has a little bit better information about this I think. I found it while looking up what a Mux is.

https://wiki.archlinux.org/index.php/hybrid_graphics

Maybe that will help you decide if you have Mux or not.

In the screen shot it shows that you are using the proprietary AMD driver. To use the vga_switcheroo you have to use the X.org X server (open source, tested) driver.


Ubuntu open to black screen with blinking underscore character after release upgrade

Try the following:

press Ctrl+Alt+F1

You'll see a terminal for login, enter your credentials and execute the following command:

sudo service lightdm --full-restart

Enter your password again and you should see the login page


Ubuntu 20.04 can't persist the Iptables configuration

I can at least answer part of your question, it appears that there is no way to suppress the save prompt during the reconfigure and also have it perform the save.  You can suppress the prompt by setting "iptables-persistent/autosave_done" but that also prevents any saves from happening.  If you want to look at the logic, it's contained in /var/lib/dpkg/info/iptables-persistent.config and /var/lib/dpkg/info/iptables-persistent.postinst.
I have no idea why the reconfigure save isn't working, this sounds silly but can you do a iptables -t filter -L -n before you run the reconfigure?  Does it look like you expect?
As a side question, are you running reconfigure for the sole purpose of saving your rules?  If so, it's far easier to do iptables-save > /etc/iptables/rules.v4 && ip6tables-save > /etc/iptables/rules.v6


How to copy/paste text without formatting by default?

In fairly recent Ubuntus you can use Ctrl-Shift-v to paste plain text.


I have had same problem, and you have to type this in the terminal:

        sudo amount -a
        sudo gedit /etc/fstab

and type it in manual enter this:

        uuid=2949d1df-f311-4068-b0c8-c40437738250              ext4      defaults    errors-noremount-ro
    1

and save the file, and then type this in the terminal:

         sudo mount -a

and it might work fine this way.


Ubuntu 13.10 32-bit, Crossover error, installation

Try running

sudo apt-get -f install

If that fails,

sudo apt-get install crossover-trial-bin


Install ntfs-3g by following command :

sudo apt-get install ntfs-3g

Then run the ntfsfix command on your NTFS partition.

For example:

ntfsfix /dev/sda1

Then try removing folders

sudo rm -rf folder

or

sudo rm -Rf folder


"Unable to mount location. Failed to mount Windows share" error when trying to share folders

I had a similar problem and found that it was because of permissions on folders above the one that I was trying to share.

For example if you are trying to share:

/media/shared/music

Check that the permissions of the /media and /media/shared folders are 755 (drwxr-xr-x) or similar that allows the group and others to execute (open) the folder.


how to know how many hardlink count an inode has and where are they located

The hard link count can be established with tools like stat(1) or even ls(1).

To find all hard links use find [...] -samefile [PATH].


Can OpenOffice Calc read web services to populate fields?

I'm pretty sure you will have to do a little bit of programming (which can be done in e.g. Python, C++ or Java, or maybe even OOo/LibO Basic) to create your own Calc function.  If you like to use Python, search the web for "python uno bridge" (or replace "python" with your favourite language).

(BTW: something similar is also possible in MS Excel really...)


ViewSonic Monitor and Nvidia Graphics Card: Overscan

You can add Option      "UseEDID"   "False" and Modes "1920x1200"

to same sections of the new file.

Also

    HorizSync       24.0 - 82.0
    VertRefresh     50.0 - 85.0
    Option      "PreferredMode" "1920x1200"
    Modeline    "1920x1200_60.00"  193.16  1920 2048 2256 2592  1200 1201 1204 1242  -HSync +Vsync
    Option      "ExactModeTimingsDVI"   "TRUE"

in "Monitor" section may be useful.

But do not create duplicate lines. E.g. replace HorizSync 30.0 - 82.0 with HorizSync       24.0 - 82.0


It's a known and solved bug, reported here:

https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1076186

You should now be able to upgrade by running:

sudo apt-get update
sudo apt-get upgrade


According to this bug there are two workarounds.

killall software-center or
Reboot your system.

If this is permanent, you can check its log file: ~/.cache/software-center/software-center.log


directory permissions adding user in a group

You are probably still logged in.
When you change a user's groups, that user needs to log out and back in for the change to take effect.


Be aware, you can only have 4 primary partition on a drive. Keep it simple, using Gparted you could easily and rapidly increase the current Linux partition to 52GB and create the Linux data partition in the free space at the end. Your current Linux partition has at least 40GB for storage, just add another 2GB.


I had the same issue, but prefer the Humanity theme over the Yaru one. (I first changed the theme to preview the Yaru theme via Gnome Tweaks)
My solution was as follows:

go to Dash
open a Menu Editor (if necessary install a Menu Editor, such as MenuLibre)
find Ubuntu Software (System Tools --> Ubuntu Software)
left click icon (I had a blank icon showing)
Browse Files...
browse to the Yaru folder and select your desired size of the following icon: ubuntusoftware.png (stored under /usr/share/icons)


Execution permission issue always happens in GNU/Linux when you try to install something from CD-ROM. This is probably because the CD-ROM filesystem is not designed to handle Unix execution permissions.

The best thing you can do here is to copy the content of the disk to a local folder, give files appropriate permissions and run the setup.

If the problem with colon (:) exists because the setup program expects it, you can simply fake it by renaming the parent directory with a colon in it (I'm afraid I'm not sure about it -- it could have been an issue with Nautilus also; anyway, try).


Can't open Ubuntu 20.04 after installing alongside Windows 10

Insert the USB drive and boot into Ubuntu from it.
Once in, open a terminal and do:
sudo -i
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
efibootmgr -o 0002,0000

Although efivarfs should already be mounted, it doesn't hurt to double check it.
efibootmgr will switch the boot order that your BIOS chooses. From your paste, 0002 would be Ubuntu's GRUB and 0000 would be Windows as a backup in case something happens to GRUB.


Locked my self out my original account and don't want to reinstall

This can be easily undone. Boot into recovery mode using grub, and get to a terminal. Then type in

sudo usermod -U <username>

Where (<username>) is your username. That should unlock your account.


Ubuntu doesn't bind usb device after reboot

I have a similar wifi usb dongle and had just the same problem. I was web searching for a working solution very long. But I found one. Later, after I interchanged the usb plugs, it doesn't work anymore. In order to reproduce my solution I was looking for hours again. On that way I found this question. My solution step by step is:

ls /sys/bus/usb/drivers/
lists for instance: hub  r8712u  uas  usb  usbfs  usb-storage
Pick the driver of desired usb device r8712u.
ls /sys/bus/usb/drivers/r8712u
lists for instance: 1-2.2:1.0  bind  module  new_id  remove_id  uevent  unbind
First entry 1-2.2:1.0 is id of usb device. This id should be valid as long as the usb device is connected to the same usb port.
Disconnect and reconnect usb port at logon or startup. In my case I needed a delay of 3 seconds. Therefor call for instance:
sudo nano /etc/rc.local
Before exit 0 insert following 3 lines. Replace 1-2.2:1.0 and r8712u suitable.

sleep 3
echo '1-2.2:1.0' > /sys/bus/usb/drivers/r8712u/unbind
echo '1-2.2:1.0' > /sys/bus/usb/drivers/r8712u/bind

Afterwards /etc/rc.local should look like this

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

sleep 3
echo '1-2.2:1.0' > /sys/bus/usb/drivers/r8712u/unbind
echo '1-2.2:1.0' > /sys/bus/usb/drivers/r8712u/bind
exit 0

If necessary enable the script with
sudo chmod ugo+x /etc/rc.local


The standard Ubuntu NVidia drivers generate some problems on slightly older and slightly newer NVidia hardware.

If you want more then the standard Ubuntu repository drivers, install the xorg.edgers PPA.  As the xorg.edgers group ask not to give installation instructions directly without linking to their page, this is the best I can do.

This PPA will allow you to install experimental drivers which you then will be able to install.  I would start with the 346 as it runs 10°C cooler then the other ones at the time of this writing.


Is there a way to play an .mp3 file without opening a Banshee window?

You can play a .mp3 from the terminal with mpg321 (universe).
You can also create a bash script that will play your .mp3 without opening a window.

Install mpg321

.

sudo apt-get install mpg321

Create a new file with the .sh extension
Then add this code inside the .sh file:

.

#!/bin/bash

mpg321 /PathForMP3.mp3

Make sure your new .sh file have execution privilege. You can use chmod +x or via the nautilus GUI (right click file, properties, Permissions tab, Tick Allow executing file as program box.)


I suggest you use awk instead of grep e.g. to find lines whose second space-separated field starts with letter S

awk '$2 ~ /^S/' file


Two ways:

One:

You can list the rule by rule number and delete that by using the number.

The PREROUTING chain belong to the nat table; let's list all rules belonging to the table:

sudo iptables -t nat --line-numbers --numeric --list

Look at the rule number on the leftmost column; assuming the number is 2:

sudo iptables -t nat --delete PREROUTING 2

Take extra care when picking the rule number, otherwise you might be removing the wrong rule.

Two:

Another way would be to delete the rule by expression:

sudo iptables -t nat --delete PREROUTING -i eth0 -p tcp --dport 80 \
        -j REDIRECT --to-port 3000

Note that, in this case the rule specification needs to match exactly.


There are drivers available for your printer from the manufacturer - I would suggest that you try these first.

The drivers for the PIXMA MG 6821 are abailable here.  You want to download the 'debian archive' format.

Another post suggests that you may need to install some packages first, although I am unsure why they have chosen the particular installation method that they did.  I would suggest that you should download the driver .deb file to some handy location on your home directories, and open it with 'Ubuntu Software Center'


Packaging with CDBS: Unknown sequence cleanbuilddir

The mistake was, while the CDBS header /usr/share/cdbs/1/class/cmake.mk was included, the default target

%:
   dh $@

was still present in the file. Commenting out the later makes debuild run fine.


Did you completely install ubuntu onto another partition or did you just install it within windows? If you just installed it within windows you should be able to go to "Programs and Features" in the control panel, find Ubuntu and uninstall it that way.


GRUB Boot Error: "the second sector of Stage 2 is unknown"

I would try reinstalling GRUB2 from the Live CD; if this errors out, this should give you at least some hints about what is going wrong with the system. (The fact that you found the computer non-functional after leaving it powered on for some time suggests some hardware problem happened.)

There are step by step tutorials on the Ubuntu wiki and on FOSSwire (more command-line oriented).


Binary file wont run. How do I install it?

For whatever reason (Hopefully someone will be kind enough to explain) the following post helped me to fix my problem and i am now running blender 2.70 =)

it was the first post that did it for me

How do I install and keep updated with the most recent versions of Blender on Ubuntu?


Loading data into MySQL database using cron

the best solution would be to make a short script of this, and call that script from cron -- you could do it as a one-liner, but it would be ugly and hard to maintain, and there's no advantage to be had.  (let me know if you need an example)

edit:

try something along these lines, off the top of my head:

#!/bin/bash

DB_USER='my_user';
DB_PASSWD='passwd';

DB_NAME='db_name';
TABLE='rass';

INPUT_FILE='/full/path/to/re.txt';

SQL="USE $DB_NAME; LOAD LOCAL DATA INFILE '$INPUT_FILE' REPLACE INTO TABLE `$TABLE` LINES TERMINATED BY '|' CHARACTER SET utf8;"
mysql --user=$DB_USER --password=$DB_PASSWD --default_character_set utf8 $DB_NAME -e "$SQL"

As for where to put it, well, that's up to you.  Bear in mind that if you use the root crontab then the script will execute with root permissions, and must be owned by root (and not be world-writable).  For this reason, I sometimes have scripts of this kind in /root.

Hope this helps :)


After some searching of the web, I found that most visual elements in Gnome Shell are to be found in the /usr/share/gnome-shell/theme/gnome-shell.css file.

Opening it I realised it is using the Cantarell font which was not installed. I downloaded it from the web and installed it (by copying the ttf files in ~/.fonts) and the problem was gone.


Need a way to start web cam recording at specific time

streamer will record from the command line.

sudo apt-get install streamer

This command will start and record for 10 seconds. You could start it with cron or with scheduled tasks from the repo:

  streamer -q -c /dev/video0 -f rgb24 -r 3 -t 00:00:10 -o /home/marc/outfile.avi

man streamer will tell you all you need to know.


Ubuntu 18.04 doesn't shutdown when power off button is pressed

HP Pavilion Laptop 15-cw0002la

You have BIOS F.35.

There's a newer BIOS available, F.42, dated Dec 11, 2019, and can be downloaded here.

Note: Confirm that I've got the correct web page for your model #.

Note: Have good backups before updating the BIOS.


MAAS does not currently support encrypted LVM. I'd suggest you file a bug request for tracking purposes.


Reason for snap apps (re)installation on 19.10 upgrade?

Look at the manifest. It specifies all the snaps and snap-associated packages that would be installed.

gir1.2-snapd-1:amd64    1.49-0ubuntu1
gnome-software-plugin-snap      3.30.6-2ubuntu10
libsnapd-glib1:amd64    1.49-0ubuntu1
snapd   2.41+19.10.1
snap:core       stable  7917
snap:core18     stable  1223
snap:gnome-3-28-1804    stable/ubuntu-19.10     71
snap:gnome-calculator   stable/ubuntu-19.10     501
snap:gnome-characters   stable/ubuntu-19.10     317
snap:gnome-logs stable/ubuntu-19.10     81
snap:gtk-common-themes  stable/ubuntu-19.10     1353

The fact that you deleted them in 19.04 shouldn't have affected what's installed in 19.10 but that doesn't seem to be the case.

In 19.04, if you run sudo apt purge snapd, doing so would remove, in addition to snapd, the snaps presently installed on your system. Now, if you run sudo do-release-upgrade, neither snapd nor any snaps are installed. Two users, here, and here, have verified this. I also checked, in a VM, that the upgrade from 19.04 to 19.10 didn't reinstall snaps or snapd, if sudo apt purge snapd was run before sudo apt purge snapd.

Whether this situation will persist if users eventually upgrade from 19.10 to 20.04 is unclear.

However, there's a comment over at discourse.ubuntu.com worth reading. Quoting from there:

  This just sounds like a feature request in the upgrade tool.
  Essentially if the user has already removed a snap, and installed the
  deb of the application, then an upgrade happens they get a thing back
  that they removed.

  However, I’m not sure the upgrade tools have the intelligence to know
  that you previously removed the snap, and don’t want it back. Further,
  the point of the upgrade tool is to take you to the new release. Those
  snaps are part of the new release. I have a feeling if you removed
  firefox from 19.04 and upgraded to 19.10, you’d get firefox back.
  Which is a similar use case that you’re describing.

That comment indicates that snaps should be reinstalled which isn't what we, who purged snapd see.

(I would also point out that before upgrading to 19.10, I purged several fonts I don't need. They too were not re-installed.)

Re.

  What makes these snap applications better?

Martin Wimpress is the new Desktop Director of Ubuntu. He talks about the rationale behind snaps in this video: Future of Ubuntu & Unpacking Snaps with Martin Wimpress | Part 2 | IG Talks ep. 4.


Virtualbox 4.1.12 Unable to connect to network

If the problem is with network interface driver in guest OS, try changing adapter type in VirtualBox Manager -> Settings -> Network -> Advanced. I had similar problem with windows as guest and choosing PCnet-PCI II solved the problem.


Google chrome version that keeps open on bar

The version is not important because this feature has been in Chrome for a long time. Here's how to have Chrome run in the system tray:

Open the settings in Chrome
Scroll to the bottom and click "Advanced options"
Check the box next to "Continue running background apps when Google Chrome is closed."


using ubuntu-sdk to create app with problems

I was having the same problem today, however, I just discovered the solution (and what the error was specifically).

The problem is the qml plugin files required are not in the currently specified include directories.

If you make a new app and select App with Simple UI, there will be a file called [projectName].qmlproject in the app project root directory.

On mine, the include was near the bottom of the page, like this:

/* List of plugin directories passed to QML runtime */
    importPaths: [ "." ,"/usr/bin","/usr/lib/x86_64-linux-gnu/qt5/qml"]

I ran find / -name *qml* and found something that looked to be a suitable directory, with many items that had a good chance of being qml plugins, so I copied that directory, went to [projectName].qmlproject to the statement posted above and added the directory. The final importPaths statement looks like this:

/* List of plugin directories passed to QML runtime */
    importPaths: [ "." ,"/usr/bin","/usr/lib/x86_64-linux-gnu/qt5/qml","/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/" ]

After doing that, I could open the qml file in designer in that project as well as in another that doesn't have a qmlproject file, so I assume the memory of the directory was retained.

The issue is, however, that it's looking in the wrong directory for the qml plugin files, so find those and a way to include them (the way specified above solved the issue for me).


If it is just only about videocard, try to remove nvidia drivers and install it again. Can be kernel vs nvidia troubles (there are lot of them).

If your drivers are installed from repository, try this:

sudo apt-get remove --purge nvidia-*

after reboot try to install additional nvidia drivers from repository.

If you have installed your drivers via shell script, then uninstall it (How do I remove the driver installed from nvidia.com?) and then try to use additional drivers from repository.


Ubuntu 17.10 - Is It Possible To Add Application Or Application Shortcut To Desktop?

I read all solutions from possible duplicate - they demonstrate systematic illness of modern GNOME DE.

So the most user-friendly way is to install MATE DE (ubuntu-mate-desktop package) and create application launchers here on desktop:

with simple drag-and-drop from Applications menu to desktop

or

single right mouse click on desktop and selecting Create Launcher menu item from here:


First

cd /opt/lampp/phpmyadmin

Give permission to config.inc.php

sudo chmod -R 777 config.inc.php

Edit config.inc.php file

gedit config.inc.php

Go to line or search for // $cfg['Servers'][$i]['host'] = 'localhost';

Remove // from //$cfg['Servers'][$i]['host'] = 'localhost';

Edit it with from Localhost to 127.0.0.1

$cfg['Servers'][$i]['host'] = '127.0.0.1';

Now restart services

service mysql restart


Why does upstart keep respawning my process?

The difficulty here is the combination of 'respawn' with a pre-stop script that tells the process to stop.  From init(5):

   respawn
         A service or task with this stanza will be automatically started
         if it should stop abnormally.  All reasons for a service stopping,
         except the stop(8) command itself, are considered abnormal.  Tasks
         may exit with a zero exit status to prevent being respawned.

The documentation is a little unclear on the point of whether exiting with a zero exit status should cause a respawn.  However, fundamentally you've found an upstart bug because the main process ending when the goal is 'stop' should not result in a change to 'respawn'.

To work around this bug, you should be able to use "normal exit" to tell upstart that this is a normal way to stop the job and that it should not respawn.

  normal exit STATUS|SIGNAL...
         Additional exit statuses or even signals may be added, if the
         job process terminates with any of these it will not be considered
         to have failed and will not be respawned.

         normal exit 0 1 TERM HUP

Note that in general, it would be more robust to kill the process with a signal (specifying "kill signal N" if necessary) instead of with a pre-stop process that issues commands; but of course this is not always possible if the service doesn't support clean shutdown upon receipt of a signal.


Hit Alt+F2 and run software-properties-gtk.

Click on Other Software tab, you'll see that each PPA have two lines here, one for the compiled packages and one for the source, Uncheck both lines to disable a PPA.


How to get vino to run after autologin on a headless server - Ubuntu Server 18.04.2 LTS

Found it here: https://wiki.archlinux.org/index.php/Vino#Running_on_a_headless_server

Just had to create ~/.config/autostart/vino-server.desktop with this:

[Desktop Entry]
Type=Application
Name=Vino VNC server
Exec=/usr/lib/vino/vino-server
NoDisplay=true

And then reboot the server.


Can't install 16.04.5 LTS on Dell Precision 5820

So I do believe I figured out a "solution" but it literally makes zero sense and indicates a problem with the Dell BIOS and potentially some oversight in the Ubuntu installer.

Built 16.04.5 Desktop image with Rufus 3.3.1400.

Partition Scheme: MBR

Target system: BIOS (or UEFI-CSM)

All other options default.

1.0 So with the computer in UEFI Boot, Secure boot off.

Hit F12 to get into "One time boot menu".

In the "One time boot menu" you can select "Legacy" and UEFI boot options (e.g. USB Boot Device under legacy menu, and then under UEFI it shows the devices one being this Kingston USB device as a boot option).

1.1 In the UEFI Boot mode if you select the UEFI device, the system will
    not boot as describe above, no combination of nomodeset, acpi=off,
    noapci will work. The system hangs at a blinking cursor or in some
    type of error code as listed above.

1.2 In the UEFI boot mode if you select the USB boot drive under LEGACY,
    it boots into the selection screen correctly of (Install Ubuntu, Try
    Ubuntu, etc. menu). You will have to add the F6 options of
    nomodeset, acpi=off, noapci and then select the "Install Ubuntu"
    option and then the important part...YOU CANNOT BE USING ONE OF THE
    DISPLAY PORTS ON THE VIDEO CARD, YOU HAVE TO BE USING THE DVI PORT!
    At this point you will have the Desktop installer functioning.

I didn't really like this "solution" since you would have to be using the DVI port, so I dug some more...

2.0 I switched the machine into "LEGACY BOOT MODE, SECURE BOOT MODE
    OFF". In the one time boot option (when you hit F12 during POST) the
    boot menu will still show "LEGACY Boot Options" and "UEFI Boot
    Options". The same as before. However the results are different.

2.1 While in LEGACY boot mode in the one time boot option if you select
    the USB boot drive under LEGACY you get the SAME interaction as what
    I stated in 1.2. (e.g. to get the Installer Desktop GUI to show you have to add the nomodeset, acpi=off, noapci flags and then be plugged into the DVI port)

2.2 This is where it gets fun...while in LEGACY boot mode, select the USB boot device under the UEFI menu. The "Try Ubuntu, Install Ubuntu menu option shows", hit 'e' to edit the boot string, add the "nomodeset" flag hit F10, AND IT BOOTS CORRECTLY, with the DisplayPorts.

So why is this stupid? The computer has to be IN LEGACY BOOT MODE AND you must select the boot option from the UEFI menu. Which makes literally zero sense. Why would I need to put the computer in LEGACY mode to only select the boot option from the UEFI menu. You have to add the nomodeset option as well, but the options you have to select are quite absurd to me.

So for anyone running into this with BIOS 1.8 in a Dell Precision 5820.

Create USB drive that will boot in UEFI mode. You can use Rufus that will boot in UEFI mode or Legacy mode, but I doubt this matters.

Set the computer to LEGACY BOOT MODE (THIS IS IMPORTANT)
When the computer is posting hit F12 to enter in the one time boot menu.
Select the USB device to boot from WITHIN the UEFI menu (you will see both).
Highlight the "Install Ubuntu" option and hit 'e'. On the "Linux" line before the "---" change the line to be "[...] nomodeset ---"
Hit F10 to boot and you will get the Desktop installation menu.

Reading material:

https://access.redhat.com/solutions/58790
https://bugs.freedesktop.org/show_bug.cgi?id=105319


Unable to boot due to GNOME Power Manager error

Two solutions:

Live cd: Boot a live cd, open a terminal, run sudo tune2fs -m 0.5 /dev/sda1 (If your first partition is low on space, and is on ext filesystem. You can check this with a df -T command.) This will regain the root reserved free space, and you can boot normally to clear some more. This will only work on ext[2,3,4]. On the live CD there is no password for sudo, just hit enter-.
Recovery mode: After POST, hold down right shift button until GRUB menu appears, select recovery mode. When you get to the menu, remount everything as rw (there is an option for that). And select root. If you haven't set any root password, it will drop you to the root shell immediately. Run apt-get clean and apt-get autoremove. Here you can also run the command written in the live cd solution.

Update
As you can log in normally on tty1, run the sudo tune2fs -m 0.5 /dev/sda1 (please replace the partition with the one on which you are low on space)

Let me know if you had any problems.


Ubuntu Server Fails to boot from USB with External Drive

I dont really have a lot of knowledge with NUC. But maybe this will work. Take the usb hard drive and unplug it. Leave the usb stick in. Turn on the NAC and then wait like 1 second then plug back in the hard drive. It sounds crazy but it might work. If you can plug it in the second it boots it could work. If your NAC displays something like the Intel logo before it boots try to plug it in right after that.


Cannot save file with either nano or sublime text

Turns out, if you read the article it says:

  NOTE: If AC power is plugged in you will always see 0s in the file,
  however, it will keep the same setting for both on AC power and on
  battery power

D'OH!

so I unplugged my computer, then modified the value, and the modifications actually showed up, so that's good. Then I plugged in my computer again and it went back to 0s. So all makes sense now...


SimpleScreenRecorder ERROR - missing codecs?

Try running the following in a new terminal window :

sudo apt-get install ubuntu-restricted-extras
sudo apt-get install update

Additionally, you can install VLC media player for streaming :

sudo apt-get install vlc


Mac only booting into Ubuntu and not rEFInd

Try holding down the Option (or Alt) key as you start up the computer. This should provide you with a menu you can use to select the OS to boot. Using that menu, boot to OS X. You can then re-install rEFInd. With any luck that will fix the problem.

If you continue to boot straight to Ubuntu, look for a directory called /sys/firmware/efi. If it's present, you've booted in EFI mode; if it's absent, you've booted in BIOS/CSM/legacy mode. If you boot Ubuntu in EFI mode, you may be able to use efibootmgr to adjust the boot order -- but Macs are a bit weird and doing this may not work in quite the normal way.


Remove Ubuntu and restore DOS, not Windows

If you want to use a live Ubuntu disk/usb, you could

"clear" the Ubuntu partitions. You would run gparted, choose your hard drive and format to "cleared" any partitions you want to effectively erase. I believe it is equivalent to running wipefs on the partition, though it does not really erase or overwrite the data.

[Excerpt from man page]

  wipefs - wipe a filesystem signature from a device

  DESCRIPTION
         wipefs can erase filesystem or raid signatures (magic strings) from the specified
         device to make the filesystem invisible for libblkid.  wipefs does not erase  the
         filesystem  itself nor any other data from the device.

Or you could just create a new Partition Table (in GParted, under the Device menu), that would erase (hide) all the partitions on the drive.

Then you would need a DOS install disk to install just DOS, though I don't think they're easy to find, according to Wikipedia the final MS-DOS release was in 2000. All the DOS install disks I've seen have been actual floppy disks, not many laptops have a floppy disk drive. You might want to try a web search for "reinstall windows", I found this site that sounds promising http://www.windowsreinstall.com/

OR just installing Windows (or DOS) will often overwrite any Ubuntu stuff, Windows is traditionally excellent at ignoring anything on your hard drive and just installing itself over top (whether you want to erase the other things or not). So first I'd try not removing Ubuntu, and just install something else.


copy/paste multiple lines or line by line from site

Make a text file and copy all lines there. Let's call it lines.txt

Then execute all commands of that file via

bash lines.txt


The simplest way I have discovered that doesn't require sudo is to use
pkexec lxqt-backlight_backend --inc to increase the backlight brightness and pkexec lxqt-backlight_backend --dec to decrease it.

You can add keyboard shortcuts for these commands in LXQt. I hope this will be fixed soon and it will become the default action for brightness adjustement keyboard combinations instead of the rather useless contrast regulation.


VirtualBox Sharing Folders with Windows 10 Guest and Ubuntu Host

In the latest version of virtual-box (v5.2 for example), I complete this task without command line:

Open the guest system
Settings -> Shared Folders -> Add, then select the real directory of the folder and name it,  and select auto-mounting and fixed-mounting (I use a version not in English, but I think you can see some options similar)
Restart the guest system, then you can see the folder by GUI, like My Computer in win10, or in the sidebar of files in ubuntu

By the way, I have installed the VboxGuestAddtions and the Oracle VM VirtualBox Extension Pack


Why Skype doesn't let me log in via MS acc. on Ubuntu 14.04

I too faced this problem for one of our users. Microsoft has updated their terms and conditions. Please try login to  your account in
Microsoft website. Accept the updated terms and conditions and then try login to Skype using Microsoft account.

Hope this helps.


gcc --version and package version is not the same

gcc is installed on your Ubuntu (18.04, 18.10 or 19.04) as well gcc-6 and possibly some other gcc version(s). Although gcc is installed, gcc-6 is currently the default version of gcc. To show all the versions of gcc installed on your OS, run the following command:

apt policy gcc gcc-5 gcc-6 gcc-7 gcc-8 gcc-9

As you can see from the results of the above command, there are several different alternative versions of gcc in the default Ubuntu repositories, and multiple versions of gcc can be installed alongside each other. You can select which version of gcc to use if multiple versions are installed by following the instructions in How to use multiple instances of gcc?


What programs and packages are updated by the update manager?

Anything that is registered in your /etc/sources.list will get updated.
Skype

See: https://help.ubuntu.com/community/Skype

The source code is proprietary and not available for modification so Ubuntu will never update it. The version in the repositories is as is and will only get updated when a new Ubuntu is released. Updating has to be done by Microsoft.
VirtualBox
Installing this: https://www.virtualbox.org/wiki/Downloads will not get updates from Ubuntu.
VBox is in the repositories so use that one.
Opera

See: https://help.ubuntu.com/community/OperaBrowser

Install opera for the shared version or opera-static for static version. The reason it's recommended is that when you update the rest of your packages (e.g. sudo apt-get update && sudo apt-get upgrade), Opera will be updated too without having to tend to Opera specifically.
There is a generic Opera repository available at http://deb.opera.com (with full description of how to add it).

The recommended way for installing Opera also means it will get updated. Otherwise you need to take care of it.
Ubuntu is not about having the newest software as soon as possible so if you want bleeding edge you need to take care of your system yourself (or switch to another operating system).


Mixxx

It is a DJ application that easy to handle.

Can mix several file types.(.wave .ogg .mp3 etc.)

Can be installed with Software Center or with:

sudo apt-get install mixxx


How can I enable video and audio codecs?

Install this package via the command line:

sudo apt-get install ubuntu-restricted-extras

Installing this package will allow you to play MP3 files, and
to decode various audio formats such as LAME. It will also allow you to use Microsoft fonts, install the Java Runtime Environment, Adobe Flash, and play DVDs.

Additional reading: Restricted Formats, and Medibuntu.


how do I add an indicator to display lm-sensors information?

It is easy.Just type CPU Temp in Synaptic and install the one you like most.


Alsamixer: Headphone volume controls Speaker volume in Acer NE46RS1 Laptop

Yesterday, I found a workaround. I simply installed Alsamixergui (An interface for Alsa), and the program saved my config (headphone volume) to my next boot.


How to prevent pdf script code from executing?

Evince doesn't support javascripts so not an issue.

Okular according to Okular News dated July 29, 2008: Preliminary (really basic and most probably incomplete) support for JavaScript in PDF documents. No update has been made since on this subject so I believe there is no security threat here.


How can I automatically switch off my internal screen on startup if an external monitor is connected?

The issue is pretty sure the result of a bug, but easily fixed on log in.

What to do

Copy the script below into an empty file, save it as set_screen.py

#!/usr/bin/env python3
import subprocess
import time

#--- set the name of your internal screen below
internal = "DVI-I-1"
#---

time.sleep(10)

extr = [l.split()[0] for l in subprocess.check_output("xrandr").decode("utf-8").splitlines() if " connected" in l\
       and not internal in l]
if extr:
    subprocess.Popen(["xrandr", "--output", internal, "--off", "--output", extr[0], "--auto"])

Get your internal screen's name: open a terminal window: press Ctrl+Alt+T, and type the command

xrandr

and press Enter. Among the lines in the output, there is one line looking like:

DVI-I-1 connected 1680x1050+0+0 (normal left inverted right x axis y

You need to look at the first string, like DVI-I-1, this is your internal screen's name (obviously, you do not pick the one with HDMI in it :) )
Enter the name you found in the head of the script, in the line:

internal = "DVI-I-1"

between quotes, like in the example.
Test- run the script with the command (again, from the terminal window):

python3 /path/to/set_screen.py

(where you obviously need to replace /path/to by the actual path)
After ten seconds, the internal screen should shut down, while the external screen stays.
If all works fine, add it to Startup Applications: open Dash > Startup Applications > Add. Add the command:

python3 /path/to/set_screen.py

From now on, within a few seconds after log in, your internal screen will shut down.


issue with installing php 5.4.9 with apt

Try this answer

sudo aptitude install php5

It will install php5 along with it's dependencies.

from here https://askubuntu.com/a/403353/246710. Helped me.


How to determine whether a process is running or not and make use it to make a conditional shell script?

A bash script to do something like that would look something like this:

#!/bin/bash

# Check if gedit is running
# -x flag only match processes whose name (or command line if -f is
# specified) exactly match the pattern.

if pgrep -x "gedit" > /dev/null
then
    echo "Running"
else
    echo "Stopped"
fi

This script is just checking to see if the program "gedit" is running.

Or you can only check if the program is not running like this:

if ! pgrep -x "gedit" > /dev/null
then
    echo "Stopped"
fi


The problem you are hitting is that the keystone charm stores some information outside of the keystone database; specifically usernames and passwords for services are stored locally on disk so that when additional service units related to keystone, the keystone service can hand out the correct password for the requested user to the related service.

You will also hit issues if you have not provided admin-password and admin-token configuration when deploying keystone; the keystone service units will randomly generate these if not explicitly configured - so they will change when you remove and then add a new keystone service unit.

What you end up with is a set of hashed passwords in the database (created by the first service unit) that don't match the generated passwords on disk in the second keystone service unit.

Ideally we would fix this by some sort of generic object storage feature in juju (think object-put/object-get) but this is not a supported feature.

All of the on disk storage of passwords and tokens takes place in /var/lib/keystone; you might be able to pick these out as part of a backup of the keystone service unit itself; however you will hit races when you add the new service unit as the service relations will fire prior to you being able to restore these files.

As one of the OpenStack charm maintainers, I'll give this a bit more thought and see if we can come up with something more elegant.


An archive of old google chrome versions may be found at:

http://mirror.pcbeta.com/google/chrome/deb/pool/main/g/google-chrome-stable/

Unfortunately, google-chrome will tell you that the stuff in ~/.config/google-chrome is from a newer version. I renamed this directory to google-chrome_newer hoping to return to it when the problem with chrome is fixed.

EDIT There's no problem with that stuff from newer version, just press "ok". And I am afraid the chrome will never be fixed.

EDIT2

mirror.pcbeta.com does not work now. As usual, you may use https://archive.org/web/ .

The direct link to the page of interest is:
https://web.archive.org/web/20160322044606/http://mirror.pcbeta.com/google/chrome/deb/pool/main/g/google-chrome-stable/

If you have problems connecting to web.archive.org, e.g. "DNS address could not be found", try to use the TOR Browser (probably with its "New TOR circuit for this site" feature, Ctrl+Shift+L).


Indicator-multiload at 100% CPU after power disconnect

This behavior is caused by power management kernel bug related to the Wake-on-LAN function of Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10). When power cord is disconnected (and sometimes also when ethernet cord is disconnected) the kernel goes into an infinite loop of ACPI attempts, almost freezing the laptop, and flooding syslog with the following messages:

r8169 0000:07:00.0 eth0: rtl_counters_cond == 1 (loop: 1000, delay: 10).

A more technical description, links to bug reports, and a proposed patch are here: https://patchwork.ozlabs.org/patch/586315/.

Before updated kernel is released there seems to be no permanent solution, but as a workaround reloading the r8169 module seems to help:

sudo rmmod r8169 && sleep 5 && sudo modprobe r8169

This needs to be run after every power disconnect. Alternatively, if you can live without ethernet, r8169 might be blacklisted which prevents the kernel from loading it at boot.


Unable to start GRUB2 on Triple boot Macbook Pro with OS X Lion, Windows 7 and Ubuntu

Sometimes it is a good idea to install grub-efi (use a bootable install disk, mount your root-fs then run

chroot /mnt/{mount-point of your install}
sudo apt-get install grub-efi

and reboot. If grub-efi is already installed then it may be better to install the default grub and remove grub-efi (some macs work better WITHOUT the grub-efi bootloader)


How do I set XBMC as the default media player?

xbmc is a media center not a media player.
You must start xbmc first to open a file with-in
I agree it is a great media center probebly the best but i would use Mplayer if you  want to just click on files to open them


have you upgraded to 11.04 ? if so it could be problem with bluez,

https://bugs.launchpad.net/system76/+bug/762964

they mention that restarting bluetooth helps ( it does for me, but i still have problems with pairing )

sudo service bluetooth restart


What is "IP-Config:" during bootup and why is it overriding my /etc/network/interfaces?

I finally found what was causing this. Not by finding a hidden pointer to it somewhere, no, but rather by grepping my entire filesystem for DHCP settings: grep -ri 'dhcp' /. There's almost certainly a better way. But anyways:

Earlier attempts at playing around with ISCSI netbooting on this machine somehow led to the creation of a /run/network/dynamic-interfaces file, which appears to use the same syntax as /etc/network/interfaces. Sure enough, therein was the line telling the machine to bring up eth0 as DHCP, and since this is happening in the context of initramfs, it's bringing the interface online long before iftools gets a chance.

This file is part of the cloud-initramfs-dyn-netconf package which is standard on Ubuntu server. You don't want to uninstall it since it's part of the ubuntu-server metapackage (and if you uninstall that, upgrades might fail in the future)

After clearing the file and rebooting, the NIC is controlled by the interfaces file as normally expected.


.gvfs is a virtual mountpoint not owned by your login user (hence you don't have write-access to it). You will need to set up a mount point manually, e.g.

$ sudo mount -t cifs //server/share /mnt -o username=windowsuser,password=windowspassword

Once you have this you can mount the volume from there (in this example, /mnt) and it should work as expected.


You should edit /etc/default/grub.

Edit the file by opening a terminal and executing sudo nano /etc/default/grub. Navigate with the arrow keys. Once you have finished editing the file according the following instructions, press ctrl + o to save, and then ctrl + x to exit.

Change the line GRUB_DEFAULT=0 to 'GRUB_DEFAULT=<the description of your OS>' or 'GRUB_DEFAULT=<the index of the OS you wish to launch>.

The description of your OS is found in the grub loader at start up. For example if the first option says something like Ubuntu 64bit (on /dev/sda1), then you would change that line to GRUB_DEFAULT=Ubuntu 64bit (on /dev/sda1).

The index is n - 1 for the n'th option. So the first option is option 0. The second option is option 1. If windows is the third option, you can change it to GRUB_DEFAULT=2. If windows is the second option, you can change it to GRUB_DEFAULT=1.

After you make the change to /etc/default/grub, run sudo update-grub. Everything you do must be done as root. If you need help changing the file I can elaborate.


You should use the --allow-unauthenticated option to skip it:

sudo apt-get --allow-unauthenticated update
sudo apt-get --allow-unauthenticated upgrade

Or if you have have the id of the missing key (from the output of apt-get), you can add it to the apt key manager to be authenticate :

 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys put_the missing_key_here


Dual Boot Problem In Lenovo G580(20157) model

Disable SecureBoot in your BIOS. If possible, also disable FastBoot and IntelSRT.
Reduce your Windows partition via Windows tools
Install Ubuntu 64bit via the "Something else" option (screenshot). For example if you have 100GB free space, you will fill it with a 2GB SWAP partition and a 98GB root partition. See this page for more info.
Reboot your PC and check if you can access both Windows and Ubuntu.
If needed, use Boot-Repair to make the GRUB menu boot both Ubuntu and Windows.

If you cannot disable SecureBoot at step 1, then follow those 3 steps instead of the 5 above:

backup your data
disable UEFI in your BIOS
format your disk, then reinstall Windows (it will install in Legacy mode), then install Ubuntu.


Can't access Ubuntu through Windows Remote Desktop

Since this is a remote computer, it's going to need to have the correct ports forwarded to it if you want to use RDP.

You need these ports forwarded for RDP to work:

TCP 3389
UDP 3389 #this seems to be optional


How can I push to Launchpad if port 22 is blocked?

We may add pushing to git.launchpad.net over HTTPS in future, but it's not a feature we have right now, unfortunately.
Your best bet is probably to look for a proxy that you can use to tunnel your SSH traffic over a port that your employer's firewall allows.


How do I create a Windows XP Pro boot USB disk on Ubuntu 16?

I found a way to fix this!

Since Windows requires an NTFS bootable USB, it has to be created as such.

I installed http://gparted.org/ and formatted the USB as NTFS, and subsequently set a flag within Gparted to "boot", so that it can be treated as the boot drive.

After the USB is formatted, any ISO content can be moved to it.


Sorry,the application sudo has stopped unexpectedly?

This is an open bug, but upgrading your system should upgrade your sudo package and fix it.

sudo apt full-upgrade

Will upgrade your system and hopefully fix the error.


It's a catalyst bug. It has been a year thet this bug exist and amd still doing nothing. I have same cpu but with 8970m. It affects all distro as I was an Ubuntu user now an Arch one. And others people from Gentoo are also complaining about it. Even latest Omega driver doesn't solve the bug. All you can do now, is crying because, the open source driver for xorg has great bug with DRI2 to use your discrete card and DRI3 is unsupported. So we have both to wait another year to have it working. I have already a post at AMD forum but nothing from the staff.

Have a nice New Year


How to make PCManFM default file manager in Ubuntu 20.04.1?

Then disable Nautilus from drawing the desktop icons by executing in a terminal:
gsettings set org.gnome.desktop.background show-desktop-icons false

Then allow Pcmanfm to draw the desktop icons for you:
gsettings set org.pcmanfm.desktop show-desktop-icons true

Now execute the following command:
xdg-mime default pcmanfm.desktop inode/directory application/x-gnome-saved-search

Edit /etc/mime.types and carefully review if nothing is left of nautilus. If it is, replace it by pcmanfm.
Reboot afterwards.


on version 18.04 i3wm have problem binding Keypads

I recently switched to i3 and had the same problem. Not sure exactly why it happens but it was the topic of this github issue here. It is since closed but the issue persists. However the suggestion at the bottom of the issue thread works for me. Here is the related lines from my config:

# Switch with numpad
    bindsym $mod+Mod2+KP_1 workspace $ws1
    bindsym $mod+Mod2+KP_2 workspace $ws2
    bindsym $mod+Mod2+KP_3 workspace $ws3
    bindsym $mod+Mod2+KP_4 workspace $ws4
    bindsym $mod+Mod2+KP_5 workspace $ws5
    bindsym $mod+Mod2+KP_6 workspace $ws6
    bindsym $mod+Mod2+KP_7 workspace $ws7
    bindsym $mod+Mod2+KP_8 workspace $ws8
    bindsym $mod+Mod2+KP_9 workspace $ws9
    bindsym $mod+Mod2+KP_0 workspace $ws10

# move with numpad
bindsym $mod+Mod2+Shift+KP_End move container to workspace $ws1
bindsym $mod+Mod2+Shift+KP_Down move container to workspace $ws2
bindsym $mod+Mod2+Shift+KP_Next move container to workspace $ws3
bindsym $mod+Mod2+Shift+KP_Left move container to workspace $ws4
bindsym $mod+Mod2+Shift+KP_Begin move container to workspace $ws5
bindsym $mod+Mod2+Shift+KP_Right move container to workspace $ws6
bindsym $mod+Mod2+Shift+KP_Home move container to workspace $ws7
bindsym $mod+Mod2+Shift+KP_Up move container to workspace $ws8
bindsym $mod+Mod2+Shift+KP_Prior move container to workspace $ws9
bindsym $mod+Mod2+Shift+KP_Insert move container to workspace $ws10


Screen configuration not saved after first reboot

Unfortunately and thank you for your prompt response ! The problem appears to lie with the external monitors ( LG screen ) EDID not being seen correctly and also unavailable when boot is completed, so when monitors is selected as you kindly suggest all options are greyed out and only one monitor is seen as unknown .

Looks like I will be either setting up TwinView or separate instances of X server for each screen and obtaining ( powerstrip ) and saving both edids and pointing to them and editing xorg.conf to ignore the edid provided, which is what I have done so far !. Now I have 1 X desktop 640 * 480 on external LG  ( very big ) and 6 tiled screens on laptop in 1366 * 768.

I believe I have to provide refresh rate and resolutions manually.


You can use wireshark  to do this, but you will have a lot to learn about its usage.


How to enable WLAN on Ubuntu after boot?

Seams to be fixed with the latest Cosmic update.

I'm curious how long it will work until the next update kills it again.


The /dev/mapper/ubuntu--vg-root in place of a traditional /dev/sdxN block device just indicates that you chose to install the system using LVM2 logical volume management. See What is LVM and what is it used for?


Using Ubuntu's "screen" command to share screens

You do this using the multiuser function of screen.

Assuming you use the same user name to ssh in and connect ...

1) Start a ssh session

ssh user@server

2) start a screen session, -S names the session

screen -S shared

3) Enable multiuser.

Ctrl+a+:

:multiuser on

Ctrl+a+:

 :acladd user2

4) Now on the server , you can connect with

screen -x user2/shared

I wrote a detailed description of how to do this on my blog

http://blog.bodhizazen.com/linux/shared-ssh-sessions-update-for-jaunty-ubuntu-904/

Some of the information in that blog is a bit dated, but, it covers additional issues of security and more then one user. should get you started.


Creating A Simple Bash Script With Multiple Commands

(For Ubuntu 12.04) The problem here is that with your script bash will open a gnome-terminal and then executed the command in you current terminal instead of the newly opened one (if that's what you are actually trying to do.)

Note: Also as suggested by @unorthodox grammar & should be used at the end of the command that you don't want to wait for (allowing them to run in background). However, interestingly that's not the problem at least in Ubuntu 12.04. But perhaps in other Ubuntu flavors this might be an issue.

You can execute the commands in the newly opened gnome-terminal by using the following command:

gnome-terminal -e "ls -a /examplefolder"

or

gnome-terminal --command "ls -a /examplefolder"

However, this would close the terminal as soon as the commands are executed and if you want to see the result of those command you won't be able to. Note that gnome-terminal is not designed for this use case (seeing the results in a newly opened gnome-terminal from script). One of the work around as defined in this nice answer is the following:

Let gnome-terminal run bash and tell bash to run your commands and then run bash

gnome-terminal -e "bash -c \"echo foo; echo bar; exec bash\""

or

gnome-terminal -x bash -c "echo foo; echo bar; bash"

The exec bash at the end is necessary because bash -c will terminate once the commands are done. exec causes the running process to be replaced by the new process, otherwise you will have two bash processes running.

You can refer to this answer for further workarounds.


After reboot my wlan0 disappeared and keep getting a disconnected message, how can I bring it up again?

Check if the iwlwifi module is loaded. You can do this by typing:

lsmod | grep iwlwifi

If the result is empty, try typing:

modprobe iwlwifi

If that doesnt restore your wifi adapter, try typing

dmesg | grep iwl

And see if that gives you any hints on to why you are still having issues.


How can I tell Ubuntu 18.04 to do nothing when I close my laptop lid?

Install gnome-tweaks

sudo apt-get install gnome-tweaks

and invoke it with

gnome-tweaks

Under the menu Power you can disable Suspend when laptop lid is closed.


How can I connect to wi-fi with this old laptop?

Please get a temporary wired ethernet connection and open a terminal and do:

sudo apt-get update
sudo apt-get install linux-firmware-nonfree

Detach the ethernet, reboot and your wireless should be working. If it is not working, run and post: sudo modprobe b43 && dmesg | grep b43


Unusually high CPU% and bad performance on both Ubuntu and Xubuntu

First off, your processor is nothing more than a triple core processor rebranded with some hardware virtualization done. This virtualization cuts down the processing power read by the OS. so Linux will read that a process is using more of the CPU than it really is.

Second, Xorg is kind of like a graphics adapter; without it you would not have the Graphical User Interface (GUI) like Unity or KDE. The higher the graphics requirements of a program, the more processing Xorg will need. Xorg will also work as a basic graphic card driver. You may need to reinstall Ubuntu using 12.04 rather than 12.10, because 12.10 may not have any compatible third party graphics card drivers (that's why you will need to cut down the work load of Xorg to fix laggy video issue). 12.10 is fairly new. Companies like ATI and Nvidia do not update the drivers for every version of Linux or Ubuntu that comes out.

As far as Firefox goes, I really can't help you. I use Chromium which is like Google Chrome, only the Developer's version.


No audio when plugging external monitor through HDMI

Go to the sound menu at the top of the screen and click preferences. Alternatively, execute the command alsa-mixer. Under the output tab, see if there is an option in the dropdown for HDMI Output.


19.10 Ubuntu host entirely freezes during Windows 10 qemu install

You will almost certainly need to blacklist nouveau and nvidia device drivers, and set up a startup script that does the above binding to vfio-pci, and then explicitly loads nouveau/nvidia kernel drivers to let them bind do the hardware devices you didn't already explicitly bind to vfio-pci in your script prior to that point. Once the host side driver has tainted the device, the device tends not to work for pci passthrough any more on most setups.


Increase max speaker volume in KDE 5 without installing additional software

This is possible by accessing the Audio Volume widget's settings.

Right-click the Audio Volume widget and open settings.
Open the General Tab.
Change max volume and volume step as per your needs.
That's it. Now, increasing volume through the volume keys lets you reach volume levels greater than 100%.


In starting SMathStudio in Ubuntu 18.04 message: System.Exception: List of Available Languages is not loaded

After some trial and error I got version SMathStudioDesktop.0_99_6671.Mono.tar.gz working on Ubuntu MATE 18.04.1 LTS by installing two packages - mono-runtime (contains mono executable)  and mono-devel (as you already did):

sudo apt install mono-runtime mono-devel

Then launch ./smathstudio_desktop_mono executable, it works:

Note 1: this version is currently stored on this Slackware mirror and in ArchLinux. So we can consider it as stable.

Note 2: if you are using default GNOME Shell, then you can try to use previous version - SMathStudioDesktop.0_98_5997.Mono.tar.gz.

Note 3: to start over remove SMathStudio configuration folder with rm -rf ~/.config/SMath/.

Other method is to install version for MS Windows (SMathStudioDesktop.0_99_6839.Setup.msi) using PlayOnLinux.

sudo apt-get install playonlinux

Run PlayOnLinux (Applications→Games→PlayOnLinux or playonlinux) then:

select Install
click Install non-listed program
in opened wizard click Next twice
in Manual Installation click Next
select Install program in a new virtual drive, click Next
enter name for wine virtual drive (for example, smathstudio) and click Next
check Install some libraries and click Next
select 32-bit and click Next, wait it to finish
scroll Please make your choice to check POL_Install_dotnet20sp2 and click Next, wait it to finish
in Please select the install file to run click Browse, select SMathStudioDesktop.0_99_6839.Setup.msi and click Next, follow SMath's wizard
in PlayOnLinux wizard agree with creation of SMath Studio Desktop.exe desktop shortcut by selecting it and clicking Next
then select I don't want to make another shortcut
enjoy using SMathStudio by starting it from desktop shortcut.

It works great from here (tested on Ubuntu MATE 18.04.1 LTS):


It will be better if you install the latest version of wine using these commands

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install -y wine1.7

I don't think there should be any error if you try to open wine now.Check it out though.


Did you disable secure boot in BIOS?
These links might help you.

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

http://ubuntuforums.org/showthread.php?t=2160313


Ubuntu 16.04 themes not working after cloning HD

As per the comments and chat discussion under your question:

Run these commands to fully update and upgrade your system:

$ sudo apt update
$ sudo apt upgrade
$ sudo apt apt full-upgrade
$ sudo apt install --reinstall ubuntu-desktop

This will upgrade and update your system packages.


Why is my computer not running VIrtualBox correctly?

You are most likely getting impacted by the recent tightening of Secure Boot restrictions.  I had to turn off Secure Boot to get Virtualbox to run.

If you are running a 64 bit UEFI system, turn off Secure Boot, and you should be able to install it properly.


Unable to connect two LG screens, GeForce GTX 750

After installing Ubuntu with whatever version, open the System settings and go to Software and updates

Then go to additional drivers tab and select a (proprietary, tested) driver and hit apply changes :


Update seemed to turn my GPS on - switched off
changed wallpaper back to Ubuntu from photo
rebooted

My phone is now back to being brilliant again


How can I delete files or folders created by Nano editor?

The file "brightness" is on a pseudo file system used by the kernel.

See Why are these directories called file systems?

The general location is /sys/class/backlight/ , although the exact location varies by graphics card.

Example - /sys/class/backlight/intel_backlight/brightness

You can not delete these files.

There are many ways to adjust brightness, but of them I would not use nano.

See How to change LCD brightness from command line (or via script)?

Personally I a script and invoke the script as sudo or you can simply

echo 10 | sudo tee /sys/class/backlight/.../brightness

The "..." varies with video card and driver, you will need to adjust the path an necessary.

For example, using an Intel GMA500 (my favorite card ;p)

Poulsbo driver (closed source) path is /sys/class/backlight/psblvds/brightness
Open source (kernel) driver path is /sys/class/backlight/acpi_video0/brightness

Note: depending on the card there may be a fix, see also https://wiki.ubuntu.com/Kernel/Debugging/Backlight


Fullscreen not working in Kindle using wine

After a lot of experimentation, I have found a workaround:
Instead of going in full screen mode from a maximized window,

Unmaximize (yep, that's a word according to Ubuntu) the window first

Now press Fn+f11 or go to View -> Full Screen and you'll get the full screen window as shown below!

Note: This is just a workaround and does not solve the problem actually. It is still not possible to go into full screen mode from a maximized window of the app. I hope the bug is resolved in future.


permissions changed from 14.04 to 16.04?

While updating from 14.04 to 16.04 the order of the applications for text *.log  was changed. I had an entry for 'kate' named Kate and one for 'kdesudo kate' named KateP.

In the old order 'kate' came first. After update 'kdesudo kate' was first.

So this was the reason.


DEB package: Shell script with debconf does not show input dialog

Simple solution:

db_input high ...

This is not mentioned in the tutorial at http://www.fifi.org ( http://www.fifi.org/doc/debconf-doc/tutorial.html ), only in an indirect manner.

A priority of medium is too low for showing the dialog. The threshold priority must be set somewhere on the computer. Unfortunately I still do not know where. But at least I know how to make the dialogs work.


Browse to the file.
Click on More and then Delete File as shown in the image below:


File System Root - Low Disk Space - PARTIAL folder

They are not important to the update system, because that are the partially downloaded package lists. And you can clean the cache of apt with sudo apt-get  clean.


How do I replace the breadcumbs and replace with the full text path?

Assuming you are using 11.10:

Install the dconf-tools package and then open dconf-editor:

Navigate to org ➜ gnome ➜ nautilus ➜ preferences
and check the always-use-location-entry checkbox:


Boot from the same internal hard drive but enclosed in an external usb 3.0 case. Ubuntu 14.04.

Does the portable disk have a bootloader, (grub) on it?

If not, that may be the problem, you can add a menuentry to the internal drive's grub that will boot the USB drive.

If it does have a bootloader, boot-repair might be the answer.


Cannot get past Emergency Mode Ubuntu 17.10

Usually one of your file systems is faulty and needs check,
a good practice before anything is to check all your file systems:

sudo fsck -y /dev/sda2

sudo fsck -y /dev/sda3

...

and so on.


umount dev/sda1 to mount dev/sda1 or change partition to ntfs

You cant resize an parttition you are using.You have to unmount it first so if you booted from the same partition then you cant resize it.

You have to resize the partition in a computer which didnt boot from the partition you are trying to resize.

You dont have to use commands. Utilities like GParted are much more user friendly.


How can I merge files on a line by line basis?

The right tool for this job is probably paste

paste -d '' file1 file2

See man paste for details.

You could also use the pr command:

pr -TmJS"" file1 file2

where

-T turns off pagination
-mJ merge files, Joining full lines
-S"" separate the columns with an empty string

If you really wanted to do it using pure bash shell (not recommended), then this is what I'd suggest:

while IFS= read -u3 -r a && IFS= read -u4 -r b; do
  printf '%s%s\n' "$a" "$b"
done 3<file1 4<file2

(Only including this because the subject came up in comments to another proposed pure-bash solution.)


Computer stuck on "Getting Windows Ready" while installation from usb

The message you are getting is not from Ubuntu or Linux, but from Windows, which I presume is already installed on your computer. A quick Google search shows many discussions about this "stuck on blue screen" issue, but this is not the place to discuss them.

Your problem is that when you restarted your computer, it did not boot into your USB key.

You need to find a way to make your computer boot your USB key:

Maybe you can press a key (such as F10 or F12) at the very start, only available for a very short time, that displays a menu of all bootable devices; you should find your USB key in there.
You may need to access your computer BIOS (using another key at computer startup, such as Esc, F2, etc.) to enable boot from USB devices, or to give higher priority to USB devices (above the internal hard drive).

This is very dependent on the precise computer you are using (brand and model). It is also dependent on the way you created the USB key (which tool you used, and whether this is a legacy boot key or a more modern UEFI boot key).


Right click on the input area,and select the input method you installed,I just resolve the problem like you.I use fctix input method to typing Chinese.


Move and rename files that have no name extension

You can use extended globbing to search for files with only digits in their names:

shopt -s extglob
for file in +([0-9]) ; do
    newname=newpath/...    # Build the new name.
    mv "$file" "$newname"
done


Upgrade to recent release of ubuntu from 10.04 on dual os

If you are managing your dual boot through grub2 i.e. the boot software installed as part of Ubuntu, then upgrading through Update Manager will not affect other operating systems installed.

If you have installed boot software through RHEL then this is off-topic for this forum and you should flag this to be moved to Unix & Linux stack forum.

With regards to your upgrade to 11.10 from 10.04, you cannot upgrade directly through Update Manager.  You will need to upgrade in steps - 10.04 to 10.10 to 11.04 and finally to 11.10.

It is not recommended to move to 12.04 - it is still in early alpha state.

If you want to help out the testing effort - upgrade as explained above to 11.10.  Then in a terminal type update-manager -d - Update Manager will appear with an extra button for you to install the 12.04 development version.


How do I start a service after the network is up?

You should modify the squid.conf file in /etc/init so that it only starts when network is up:

start on (started networking)

You can find much more info here, and looking at the files in your /etc/init/ dir.

This question should also help. If you prefer to configure it with a GUI, look here.