Why are many options in gnome-tweak-tool inaccessible?

Gnome in the login menu is gnome-shell. You need to have gnome-shell-extensions-common and gnome-shell-user-theme installed. There are a number of ways to do this, one is to use

https://extensions.gnome.org/

to add the different extensions for your GS version. Another way is to add one of the PPAs that are available! such as webupd8's...

sudo add-apt-repository ppa:webupd8team-gnome3/oneiric

editor's note: oneiric is EOL; adding this repository will probably break your system

If your extensions are not loading properly then check that your extension and gnome-shell version are the same :-)

sudo -H gedit /usr/share/gnome-shell/extensions/user-theme@gnome-shell-extensions.gcampax.github.com/metadata.json

and look for shell version. You can edit the extension version to match your own, e.g. 3.2.1.


Unable to Create Backup Image With Gnome-Disk-Utility

Applause for wanting to make a System Backup!
The easiest way to accomplish this is with a bootable USB stick and an external USB HDD using CloneZilla Live:

Download and "Burn" the CloneZilla Live ISO (Instructions are provided over there)
Boot the CloneZilla Live USB stick
Use the Save Disk Image system
Insert the external HDD when CloneZilla asks you to do so:
Wait until done.

The best way to accomplish this is to copy the CloneZilla ISO to your existing system and just boot it from grub on your own system (one less USB Stick that you can lose) and follow the same steps as above.  (CloneZilla Live is the very last example in that answer).
:-)


How to view the all command in man page 8

I believe that this will get you a list of every man page in section 8:

apropos -s 8 . | less

The option -s 8 restricts the search to section 8.  Since the specified regex . matches anything, this should produce all the pages.


There is a bug, as described here.

A workaround is to remove indicator-multiload, at the command line do:

sudo apt-get purge indicator-multiload

Or use your package manager to remove it.


How to change the icon for Qt application?

The icon used in the Launcher will be the icon specified in the application's .desktop file.


Ubuntu / Windows: to boot one or other I have to manually change os mode selection

UEFI AND CSM OS

mean

UEFI and Compatibility Support Module OS

If ubuntu start with CSM, it mean you installed it as bios boot, while win8 is uefi boot.
If you want boot twice from grub, or uefi menu of your board, you must convert ubuntu from bios to UEFI.
If boot repair has failed, it mean you have not fullfilled every pre-requisite to install UEFI boot


Location of "Connect to Server..." mount

You should found it under ~/.gvfs.

For more information see here


Try Repairing the system form grub menu list after the installation if you see a grub menu try the repairing part.. there might be some important files missing or orphaned
See
 https://help.ubuntu.com/community/Boot-Repair

for more information on boot repair and  for more questions visit following link
.

How can I repair my installation?


Open a terminal
Run alsamixer (pictured in original question)
Use left/right arrow keys to select "Auto Mut"
Use up/down arrow keys to Disable Auto Mute
ESC exits

https://superuser.com/questions/431079/how-to-disable-auto-mute-mode
http://www.tutonics.com/2012/10/fix-no-sound-turn-off-auto-mute-in.html

To save settings try sudo alsactl store (untested)

Howto save AlsaMixer settings?

This fixed my sound problems with Ubuntu 12.10 on a ThinkPad x230

alsa version : cat /proc/asound/version

Advanced Linux Sound Architecture Driver Version 1.0.25


What's the difference between OptionSelector and ItemSelector?

After having a chat with designers and SDK developers, it seems that the plan moving forward is to deprecate OptionSelector, and in general embedding UbuntuShapes in controls.

I understand that there is no particular reason for having both components, as they have overlapping functionality. So the recommendation is to use ItemSelector for now.


Yes, but it is in the proprietary drivers, it is called nvidia-smi.
See [1]

[1] http://manpages.ubuntu.com/manpages/precise/man1/alt-nvidia-current-smi.1.html


I'm not sure, if I understand you correctly.
Do you run your Ubuntu 20.04 in VMWare 15.0.4?

If yes, you have to tell your VM, that you want to add an generic usb device. For more information see the link below.

https://www.vmware.com/support/ws5/doc/ws_devices_usb_connect.html


I have 3 different distros in use and I want to refer 3 Transmissions to one config file?

The default configuration settings for transmission-daemon are specified via CONFIG_DIR="/home/${USER}/.config/transmission-daemon" in /etc/default/transmission-daemon.

You might want to change these settings in the other two installations on your pc.


xorg driver doesn't use my radeon videocard 14.04

To actually use hybrid graphics, you have to use the fglrx driver.

There are many other things fglrx can do which xserver-xorg-video-ati can't. An example is frequency change of an AMD APU with an integrated Radeon chip, like the AMD A8 series.

What you could try is to install the latest fglrx build from AMD's website. However, you can't be sure whether this build will actually work (and not crash your OS). So you might first want to install it in a Live System with a persistency. Best use UNetBootin for this.

If this latest build doesn't fix it for you, you have to decide between using the Radeon card and suffer from the other problems you mentioned, or only use the embedded Intel Ivybridge chip, but without the other problems.


Can't Change User from Lockscreen, Ubuntu 16.10

Seems you have Gnome's user-switching option disabled.
You can check this running gsettings get org.gnome.desktop.lockdown disable-user-switching, which should return true if its disabled.
Maybe it has been disabled from Unity Tweak Tool, dconf-editor, or other tweaking tool. Anyway you can restore that functionality in a couple of ways (or more).
Changing user-switching from terminal (gsettings)

You can enable the user-switching option again running:
gsettings set org.gnome.desktop.lockdown disable-user-switching true

To disable it again simply run:
gsettings set org.gnome.desktop.lockdown disable-user-switching false

Changing user-switching from GUI (dconf-editor)
If you prefer GUI tools for this kind of tasks, you can use dconf-editor. If you don't have it yet on your system, you can install it running sudo apt install dconf-editor.

Open dconf-editor from Unity's dash.
Navigate to org.gnome.desktop.lockdown on the left pane.
Click the disable-user-switching item on the right pane.
Change its value (true/false) from popup window and hit save button.

Personally, I prefer to keep it disabled (for security reasons) on systems without such requirements (Examples: one user only, no need for fast user switch, etc...).
Hope it helps.


Scanner driver/software for Canon imageclass mf4820d multifunction laser printer on ubuntu 14.04

Go on this page :
http://www.usa.canon.com/cusa/support/consumer/printers_multifunction/imageclass_series/imageclass_mf4880dw#DriversAndSoftware

Sorry, i had to take an approching model, your printer was not listed.
Download the driver, and extract the archive.
Install both deb driver files depending on your system (32/64 bits).

Then, open 'System settings', and in the printer section, add a new printer.
In the "choose driver" menu, you will find 'MF4800...' for MF4800 series printers.
Select it and finish the installation.


How can I switch back to Nvidia card from Intel with Nvidia-prime

This is a bug (LP #1214508).

You can switch using:

sudo prime-select intel
sudo prime-select nvidia

Also, Bumblebee is still supported so you can install it if you prefer. You'll have to remove nvidia-prime then as you can't use both.


First Generation ipod Shuffle does not automount in Ubuntu 14.04

You might need mtpfs

sudo apt-get install mtpfs


Upgrading to Ubuntu 20 has caused all audio output except HDMI to disappear

Welcome to Askubuntu!
Have you tried to install pavucontrol?
sudo apt install pavucontrol

+Check so that nothing is muted (in pavucontrol)
+Related links:

Ubuntu 20.04 "Dummy output" No sound card in use
Ubuntu no sound, dummy output, and no sound card detected

Edit: Glad it worked for you:
From the first link provided:

Found here: Ubuntu no sound, dummy output, and no sound card detected
Open /etc/modprobe.d/alsa-base.conf and add the following line at
the end:
options snd-hda-intel dmic_detect=0

Then:
pulseaudio -k && sudo alsa force-reload

You will hear the sound.
sudo apt-get remove timidity
sudo reboot


The HTC Salsa is NOT supported. The officially supported development devices are only the Nexus 4, 7 (WiFi) and 10 from Google. The instructions you posted will NOT work with any non-supported devices.

A wider set of devices is supported by community-driven ports but I see no support for the HTC Salsa there. See here for the list.

The status page for each device in there gives instructions on how to install, though again, ubuntu-device-flash can't help you and you would need to follow a device-specific installation process.


pip got corrupted after uninstalling python packages

On taking a look at the error described, this looks like an issue with the PyOpenSSL python package. Please follow these steps for resolving this issue (please make sure that the commands are run from a sudo prompt):

cd /usr/lib/python2.7/dist-packages/
rm -rf OpenSSL
rm -rf /home/<Your Username>/.local/lib/python2.7/site-packages/OpenSSL
pip install pyOpenSSL

If that doesn't work out, run the following (please make sure that the python3 and pip3 are installed in your machine):

sudo pip3 install --upgrade pyOpenSSL


How can I specify the hour at which my daily schedule of the DejaVu backup tool should run?

Assuming that the question is about deja-dup, you can't.

See also https://bugs.launchpad.net/deja-dup/+bug/479191


After connecting printer to PC through usb cable just click on add printer option which you should get within devices  or you can just search  using key word printer
 after that just click on add option and then select the printer and then click on add
this should work for you for printing jobs.

this is for the person who are using ubuntu


How can I add and change items in my Applications Menu?

First, open the Menu Editor ("alacarte") by right clicking on the Main Menu and selecting "Edit Menus":

You can disable Entries in the menu temporarily by un-checking the boxes next to them:

To disable entire sub-directores, select the parent directory (i.e. Applications in the list on the left) and uncheck the box at, for example, "Games". My thanks to Hans Parshall for reminding me to put this in here.

Move them around, changing their position in the menu or dragging them onto folders on the list on the left hand side of the window.
You can also create folders by selecting "New Menu" from the list of buttons on the right.

To access the sub-directories, expand them by clicking the arrow next to them:

As you can see there, I've created two sub-directories inside accessories to keep my menu clean.

Click the New Item button to add a launcher to your menu. This will ask for

A Name: this can be anything you like
The command: This is what you would type into the terminal or the Run Dialog (Alt+F2). Often it's just the name of the application (i.e. firefox, inkscape, ...)
A Comment: This will show up as the tool-tip of the Item. Put some useful description in here. An example from Firefox: "Surf the Web".

You can select your own icon by clicking on the current icon:

You can also edit existing launchers this way.
Note that you can do the same things for your Settings Menu:

The technical bit:

To see, in detail, what launchers are on your system, navigate your File Browser to /usr/share/applications/ on your File system. You will find a lot of files that look like the icons in your menu. You can drag those files into the Text Editor to see what they do:
Please Note: The /usr/share/applications is where launchers for all users are stored. The ones you've created yourself are in your home directory at .local/share/applications/. A . at the begining of a file or folder name indicates that it's hidden. Press Ctrl+H show them.
An example of a launcher, stopwatch.desktop:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=0.1.1
Type=Application
Terminal=false
Exec=/opt/simple-stopwatch/simple-stopwatch
Name=Stopwatch
Categories=GNOME;GTK;Utility;
Name[de]=Stoppuhr
Name[fr]=Chronomètre
[...]
    Name[hu]=Stopperóra
Name[ja]=ストップウォッチ
Icon=/usr/share/pixmaps/simple-stopwatch.svg

The Exec part corresponds to the Command.
This is also the place to Translate your custom launchers, if you are on a multi-language system, or if you want to give them away to people.

If you want to share a launcher with all the users on your computer, open the File Browser with superuser privileges by pressing Alt+F2 and typing gksu nautilus. You can now drag launchers from /usr/share/applications to ~/.local/share/applications/. (~ is short-hand for your home directory)


Which, among the humble indie bundle V games, work on 10.04?

On the download page, Amnesia and Bastion have .sh downloads, Limbo and Superbrothers have .tar.gz downloads, and Psychonauts has a .zip.  All of those are most likely statically linked and shouldn't depend hugely on a specific version of linux.

That doesn't mean they will necessarily work, but it is pretty good odds that they ship with everything they need.


Why does Wireless function key not effect the wireless card but only Bluetooth?

to make sure that your wireless is not affected by the wireless function key, you can  type in a terminal

rfkill list

then press the wireless function key
then type again the same command.

if you are still "hard blocked" then your key combination is not correctly assigned and you can manage it with xdotool.

sudo apt-get install xdotool

xdotool is powerful tool to simulate and manage event with your mouse / keyboard.

use xindkeys if you want a GUI


Nitro todo list app doesn't appear to work in Trusty (14.04)

You can download the script here (https://gist.github.com/metasoarous/11328060 - choose 64 or 32 bit depending on your system) and run with sudo.

You will have to reboot for the changes to take effect, but after that Nitro should work again.


What is the best Ubuntu version for my hp tc4200 netbook?

The best Ubuntu variant for your system would be Lubuntu or Xubuntu. Xubuntu will do OK on that system (suggested specs), and it has a lot of nice features. Lubuntu will run even smoother (suggested specs), but it is more simplistic.

If you want even better performance but not-as-good support and software updates, you can try another distro such as SliTaz. I recommend Lubuntu and Slitaz to any user who needs a lightweight desktop. I dual boot SliTaz with Firefox, Flash, and Java downloaded from their respective websites, and Lubuntu, on an old Dell laptop and Slitaz runs like a beast, and Lubuntu huffs along to catch up but still does pretty well.

Lubuntu has no LTS version, but you can choose between 12.04 LTS and 13.04 with Xubuntu. If you're concerned about stability, then you have the option of receiving software updates for an extra year and a half with Xubuntu 12.04 LTS, but I recommend going with the latest release because it is better software and it's easy to upgrade as long as you have hardware that's well supported by the kernel.


Group shares not listed by smbtree, nautilus due to not asking for password

As indicated in @Robert Riedl comment the man page for smbtree make it clear that the -N --no-pass switch will suppress the normal password request.

The possibilities that come to mind and the solutions are as follows.

1) It's possible that an alias was set for smbtree you can check this with the command alias | grep smbtree and if you get output similar to alias smbtree='smbtree -N'or alias smbtree='smbtree --nopass' you can remove the alias with the command unalias smbtree

2) You have discovered a bug and should report it. so that it can be squashed by the developers.

3) The only other way I know of that this can occur is if you designate a section as a Guest Service in smb.conf by using the guest ok = yes line in the share configuration. See this excerpt from the related man page

If this parameter is yes for a service, then no password is required to connect to the service. Privileges will be those of the guest account.

This parameter nullifies the benefits of setting restrict anonymous = 2

See the section below on security for more information about this option.

Default: guest ok = no

The solution to this is to remove the guest ok = yes from the share configuration so that it reverts to the default.

If as you surmise this is related to the group assignment:

If the force user parameter is also set the group specified in force group will override the primary group set in force user.

force group (S)

  This specifies a UNIX group name that will be assigned as the default >primary group for all users connecting to this service.

  This is useful for sharing files by ensuring that all access to files on >service will use the named group for their permissions checking. Thus, by >assigning permissions for this group to the files and directories within >this service the Samba administrator can restrict or allow sharing of these files.

  In Samba 2.0.5 and above this parameter has extended functionality in the following way. If the group name listed here has a '+' character prepended to it then the current user accessing the share only has the primary group default assigned to this group if they are already assigned as a member of that group. This allows an administrator to decide that only users who are already in a particular group will create files with group ownership set to that group. This gives a finer granularity of ownership assignment. For example, the setting force group = +sys means that only users who are already in group sys will have their default primary group assigned to sys when accessing this Samba share. All other users will retain their ordinary primary group.

    Default: force group =

    Example: force group = agroup

To dive deeper into all things samba visit here.

Sources:

How do I report a bug?

http://manpages.ubuntu.com/manpages/trusty/man1/alias.1posix.html

http://manpages.ubuntu.com/manpages/xenial/man1/unalias.1posix.html

https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html


From your lsusb output I figure you are talking about a Huawei E352 USB 3G/4G modem, provided by T-Mobile NL. Most likely this is a Windows-induced problem. Windows first needs to install USB modem drivers to be able to mount the device as such. Instead of delivering a mini CD with drivers along with the USB modem, Huawei (and others) install some flash storage on their devices. So the device will be initially mounted as flash storage. Then, on a Windows machine, the installer will install the modem drivers and finally change the devices settings so it will be recognised as a modem next time.

For Linux users this is confusing, since their systems too will first recognise the flash storage, but not the modem. And the flash storage is not needed since the Linux kernel already has all necessary drivers onboard. I do not think you need to install any drivers.

What you need is the usb-modeswitch tool. Install it from the Ubuntu repositories:

sudo apt-get install usb-modeswitch

The following commands need to be run as root. So pay proper attention to what you are doing!

Connect your modem and find the vendor ID and product ID for your Huawei:

lsusb | grep Huawei

You will find what you already knew:

Bus 002 Device 003: ID 12d1:14fe Huawei Technologies Co., Ltd. Modem

The vendor ID is '12d1' and the product ID is '14fe'.
usb-modeswitch has a lot of ready configuration files in a tar-archive. First find your device's configuration file in the archive:

grep 12d1 /lib/udev/rules.d/40-usb_modeswitch.rules ATTRS{idVendor}=="12d1", ATTR{bInterfaceNumber}=="00", ATTR{bInterfaceClass}=="08", RUN+="usb_modeswitch '%b/%k'"

Then extract your configuration file from the archive:

tar xf /usr/share/usb_modeswitch/configPack.tar.gz 12d1\:14fe

And bring it up:

cat 12d1\14fe

It wil probably say:

# T-Mobile NL (Huawei E352)
TargetVendor=0x12d1
TargetProductList="1506,150f,151d"
HuaweiNewMode=1

Finally change the setting on your Huawei device:

usb_modeswitch -v 12d1 -p 14fe -c 12d1\:14fe

Now the flash storage driver will be detached and the modem driver activated. To check if everything went well run lsusb once more:

lsusb | grep Huawei

If all is well, you should see another product ID. A minor change with huge usability consequences.

After this you can set up your 3G/4G internet connection as usual with Network Manager. Make sure you switch off your WiFi, since WiFi and GSM will not run alongside each other.

If you want to keep track of your data use, install the vnstat package. It is text based, but gives all the information. Might you prefer a GUI, also add the vnstati package.

(Many thanks to Filip Vervloesem who covers this topic in length in the Dutch Linux Magazine 09/2017 issue.)


What's the maximum amount of RAM I can use on an specific hardware

The limit is actually between your hardware (Motherboard memory support and amount of slots in it) and the version of Ubuntu (32 Bit, 32 Bit + PAE, x32ABI, 64 Bit)

If you have a motherboard that supports a maximum of 4GB, it does not matter if you use 32 Bit, 32 Bit PAE or 64 Bit since you will have a hardware limit of 4GB.

But if you buy a motherboard that supports a higher amount of memory, you can play around with the versions of Ubuntu, which have the following maximum supported memory:

Ubuntu 32 Bit - 4GB RAM

Ubuntu 32 Bit + PAE (Physical Address Extension) - 64GB RAM

Ubuntu x32ABI - 4GB RAM (This is for 32 Bit architecture modified with 64 Bit enhancements running on 64 Bit hardware. It is not yet available.)

Ubuntu 64 Bit - A LOT! (Actually 2^64) but because of hardware limits and real world computers the limit is around 1TB ( 1024GB RAM)

So the question about memory limit should be used when you are using more than 4GB of RAM. In this case you would need, either 32 Bit PAE or 64 BIT which support really big memory sizes.

Also note that if you have for example 4GB right now, and you buy 16GB of ram, there is no need to reinstall Ubuntu or do any changes. Just change the memories and Ubuntu should read and work with them out of the box. No configuration necessary. If you have 32 Bit with 4 GB RAM and you install 16GB or RAM, Ubuntu will automatically change from 32 Bit to 32 Bit PAE. I can vouch for this since I moved from 4GB to 16 GB in the beginning of this year.

Here is a link to a very good explanation for Ubuntu about memory in 32/64: https://help.ubuntu.com/community/32bit_and_64bit#Memory

UPDATE - Forgot to add that some motherboards have BIOS updates that enable, correct or enhance the maximum memory supported. For example, some Intel motherboards in the past had problems working with the maximum they supported. A BIOS update fixed this. Other motherboards had support for 4GB because of a BIOS problem, after upgrading they had support for more than 4GB.

Also comparing the Maximum supported memory for the CPU and the Motherboard, the Maximum you can have is the Minimum of any of them. So for example:

CASE 1
CPU Maximum Supported Memory - 16GB
Motherboard Maximum Supported Memory - 8GB
Your Maximum Supported Memory - 8GB (Because is the lowest value between the CPU and Motherboard)

CASE 2
CPU Maximum Supported Memory - 16GB
Motherboard Maximum Supported Memory - 32GB
Your Maximum Supported Memory - 16GB (Because is the lowest value between the CPU and Motherboard)

CASE 3
CPU Maximum Supported Memory - 16GB
Motherboard Maximum Supported Memory - 64GB
Your Maximum Supported Memory - 16GB (Because is the lowest value between the CPU and Motherboard)

The reason behind this Memory Limit relation to the CPU is because of technical modifications by Intel with the latest Core CPUs.

So in your case, you have a motherboard that supports 8GB and a CPU that supports 16GB. This means the maximum you can have is 8GB which you can use depending on the amount of slots in the motherboard. In that Asus you have 2 Slots, which means you can have two 4GB of RAM to complete the Maximum of 8GB.

More Info about x32abi:

KernelNewbies - http://kernelnewbies.org/Linux_3.4#head-039c9d273884c9639937c10d68b4a3214869eb4b

LWN - https://lwn.net/Articles/456731/ (Recommend reading comments for easy to learn explanations about memory limit)

Google - http://sites.google.com/site/x32abi/

Lastly, since Ubuntu 12.04, all 32 Bit versions of Ubuntu come with PAE activated by default so all 32 Bit will support a maximum of 64 GB of RAM. In case you are using 12.04+ and want to know which architecture to use, you now know that you can use any of them as long as you follow some recommendations:

If you have 512 MB of RAM or less it is highly recommended to use 32 Bit
If you have less than 4 GB of RAM but more than 512 MB it is recommended to use 32 Bit (But you can still use 64 Bit)
If you have 4 GB of RAM it is recommended to use 32 Bit (But you can still use 64 Bit)
If you have between 4 GB or RAM and 64 GB of RAM you can use either 32 Bit or 64 Bit, but it is recommended to use 64 Bit.
If you have more than 64 GB of RAM you need to use 64 Bit


Bash scripting to create next highest file

Without parsing ls or find output and without creating any extra files, incrementing the name of the last file only (the other files may have any names).

To count files in a directory:

stat * --printf "%i\n" | wc -l

To get the last file:

i=0; j=$(stat * --printf "%i\n" | wc -l); for k in *; do (( (j - ++i) < 1 )) && echo "$k"; done

(( (j - ++i) < 1 )) this tests how many times the loop has been run and compares it to the number of files in the directory. It relies on the fact that for loops over files in an ordered way.

To get the name of the next file assuming the pattern name_{01..99}

i=0
j=$(stat * --printf "%i\n" | wc -l)
for k in *; do
  (( (j - ++i) < 1 )) &&
  echo "${k%%_*}"_$(printf %02d "$(( ${k##*_} + 1 ))")
done

To create the file:

touch $(i=0; j=$(stat * --printf "%i\n" | wc -l); for k in *; do (( (j - ++i) < 1 )) && echo "${k%%_*}"_$(printf %02d "$(( ${k##*_} + 1 ))"); done)

or

touch $(
  i=0
  j=$(stat * --printf "%i\n" | wc -l)
  for k in *; do
    (( (j - ++i) < 1 )) &&
    echo "${k%%_*}"_$(printf %02d "$(( ${k##*_} + 1 ))")
  done
)


Found it in the ubuntu wiki page https://wiki.ubuntu.com/BootToRAM

Basically you need to edit kernel options from your liveCD while it's booting. While grub2 is loading, you should be able to use e and add option to the kernel toram.


Problem resizing partitions in the middle of the drive with GParted on dual-boot

I move the Recovery Partition at the end if the disk using a tool called AOMEI.
Then I tried to resize the main partition of Ubuntu (my files and the system files), and it created some space inside the main partition. I resized the partition containig my files and it worked!


Wait for the connectivity to your mirror to improve, or use another one. The mirror list is here.

To change your mirror, edit your /etc/apt/sources.list to change tr.archive.ubuntu.com to the URL of your desired mirror, for example for this one it would be mirror.ni.net.tr. You can also use a one-liner like this:

printf ',s/tr\.archive\.ubuntu\.com/mirror\.ni\.net\.tr/\nw\n' | sudo ed /etc/apt/sources.list

Then run sudo apt-get update again to refresh the packages list from the new mirror.


Error updating python-cryptography from terminal 16.04

The package having issues is python-cryptography , NOT dpkg. dpkg is fine.

Try doing:

sudo apt-get -f install

If that fails, then try:

sudo dpkg --configure -a


shell file opens terminal and run a sequence of commands in specific order

Just write a script:

#!/usr/bin/env bash

PACKAGE_PATH=/home/userA/package1:/home/userA/package2:$PACKAGE_PATH

cd /home/userA/scripts
## You need to source this script if it defines variables. Otherwise
## the variables won't be available to your main script. '.' is the same
## as 'source' but more portable to different shells.
. varset.sh &&

. ff.sh $input $output &&
bb.sh &&
bc.sh 8 &&

The && afater each command ensures that the next one will only be run if the first one exits successfully.

Now you can save the script as ~/scripts/foo.sh, make it executable (chmod 744 ~/scripts/foo.sh) and run it from a terminal:

~/scripts/foo.sh

Alternatively, you can create a .desktop file for it and run it by double clicking as explained here. Just change the Terminal=false line to Terminal=true.


Gedit embeded terminal showing both background and foreground in white color

You have too many characters in your color defs. Change background color to #FFFFFF and foreground color to #000000. You can use an online tool such as this one, http://www.colorpicker.com/ to pick the colors you want. You can also use color names, like red, black or blue. Also, in case others are having this issue, make sure you uncheck use-theme-colors, as it is checked by default.


Why 'gsettings range' is not showing all options?

The type s indicates that the parameter is a string. So, you can't use gsettings range

But a I found the available themes in /usr/share/gtksourceview-3.0/styles/


Can't install Ubuntu, getting error 'failed to load fecs_inst'

I found out that my mother board, an Asrock B85M-ITX is not compatible with Linux. That's the reason it would not boot or install.


Unable to save BIOS options after Ubuntu 17.10 upgrade

It seems like a specific issue with your laptop. I would try disconnecting disk and going to bios without any disks first. If you still can't change bios settings we can pretty much assume there is not much you can do. You could try upgrading bios to a newer version if you haven't done already though.

My assumption would be that the disk's boot section is confusing the bios and causing it to disfunction somehow. Unplugging the disk will reveal if that's the case.

Also sharing more details about your bios boot section would save you time here. Like sharing whether your usb drives show up in your bios boot menu or not.

I would advise you to try and boot by selection menu, please forgive me for bringing up such a simple detail which everybody already knows about but i had to tell you because you didn't mention it in your post. It's around F5,F6,F7 or ESC keys mostly.


disabled option "enable wi-fi" Ubuntu 14.04 (i have only wi-fi access at home)

First, let's see if we can get the device unblocked:

sudo modprobe -r ideapad-laptop
sudo rfkill unblock all

Now is it working? If so, let's blacklist the module:

sudo -i
echo "blacklist ideapad-laptop"  >>  /etc/modprobe.d/blacklist.conf
exit


Sorry, No.
See the answer here.
And Here.


"Hardware Drivers" item missing from menu

The tool is now called "Additional Drivers".


Oke, If you remove the content.opf file it will automatically follow the order of the index page (I was very lucky to actually have an index page or else I would have had to sort this by hand)


Will upgrading from Ubuntu 10.04 to 10.10 delete my personal data?

As 10.10, and 11.04 even, are now end of life, while 11.10 will be in ~6 months, you should probably just upgrade direct to 12.04 instead.

An upgrade will only upgrade programs which are installed, though some old, unused, or no longer supported applications and libraries, may be removed during install; though you will have the option to keep them if so.

If you do an install from USB/CD-ROM/etc… then it will depend on how your system is currently partitioned, and whether you format or repartition any of it for the installation.

In either case, there is of course still risk of losing data, as there is no guarantee from Ubuntu that your hardware or power won't fail during the upgrade, or that some other external factors will not happen.

You should always back up any important and non-recoverable data.


Problem while Installing on Windows 7 laptop

I don't know why it doesn't recognize it but as a solution you can install Ubuntu on an external drive so when you want to get to windows you just go to the boot menu or unplug the drive


Selecting any of the UEFI entries in GRUB keeps me booting Windows 7, what to do?

This is not definitive, since I've never tested it; however....

First, the MBR is irrelevant on your system, except insofar as a protective MBR is part of the GUID Partition Table (GPT). Your boot loaders are stored as files in the EFI System Partition (ESP), which is mounted at /boot/efi in most Linux installations. Ubuntu stores GRUB in the ESP's EFI/ubuntu directory (that is, /boot/efi/EFI/ubuntu from Ubuntu), and Microsoft stores its boot loader in the EFI/Microsoft directory tree on the ESP. This is why you get the dual boot loader treatment when you want to boot Windows -- Microsoft uses one location for both Windows 7 and Windows 8, just as Ubuntu would if you were to install multiple versions of Ubuntu, so that one boot loader must present a menu to enable you to boot either version of Windows.

In theory you might be able to create a second ESP, copy the original ESP's EFI/Microsoft directory to it, and edit files on both ESPs to limit them to boot just one version of Windows. Unfortunately, I don't know enough about the Windows boot files to give more precise instructions. In fact, I don't even know that it would really work, but it might.

If you're willing to go to the effort, you could try this to get Windows to do most of the work for you by re-installing Windows 7:

Create a second ESP on the disk. In GParted, you'll need to shrink a partition by a small amount, create a new FAT32 partition in that space (be sure it's FAT32, not FAT16), and give it a "boot flag." I also recommend giving it a unique name, like "WIN7ESP." (This might be useful if you end up using rEFInd or to help identify it in file browsers.)
Remove the "boot flag" from the original ESP.
Optionally, change the type code on the Windows 8 partition. You could set the "lvm flag" on it in GParted, for instance. The goal here is to make it less likely that the Windows 7 installer will detect Windows 8.
Erase the original Windows 7 partition by creating a fresh NTFS filesystem on it. Give it a unique name to make it easier to identify.
Re-install Windows 7. At this point, Windows 7 should boot directly.
Restore GRUB as your default boot manager. If you're unsure how to do this, you can use Boot Repair. Alternatively, you could install another EFI boot manager, such as rEFInd or gummiboot.
In Linux, launch GParted and undo the partition type code changes you made earlier -- reset the boot flag on the original ESP and, if you changed the type code on the Windows 8 partition, remove that flag to restore it to the correct type code.
In Linux, type sudo update-grub to get it to re-detect boot loaders, with any luck including both of the Windows boot loaders. If that fails, you may need to edit /etc/grub.d/40_custom to add a custom menu; or you could install my rEFInd boot manager, which should detect both copies of the Windows boot loader.

I make no promises that this procedure will work. Also, even if it does work, it may create problems down the line, because Windows doesn't support more than one ESP per system. (The EFI specification says it's OK, though.) Thus, a future Windows update or re-installation could end up getting confused and misbehaving. You should be able to work around such problems by temporarily resetting the type code on one or the other ESP (that is, removing its "boot flag" in GParted).

If this procedure doesn't work, or if it sounds too involved for you, I recommend you ask about this on a Windows forum, since Windows boot loader configuration is more of a Windows issue than a Linux issue.

Two more points:

AFAIK, Ubuntu is still giving its Linux partitions the same type code that Windows uses. This makes the Linux partition(s) show up as unformatted disks in the Windows file browser. I recommend correcting this problem with gdisk, as described here. Neglecting to do this makes it too easy to accidentally trash your Linux installation from Windows.
Windows 8 uses a new "fast startup" feature that's incompatible with dual-booting (even with Windows 7). It's IMPERATIVE that you disable this feature, as described here. Failure to disable this feature will almost certainly result in filesystem corruption.


Unable to boot either Ubuntu or Windows after kernel panic

Since you can't boot into either, perhaps your bootloader is hosed. Try reinstalling that from your LiveUSB environment.


How to remove my first Ubuntu because my computer has two Ubuntus

Don't worry, follow my instructions.

IMPORTANT NOTE: I suggest you to remove Ubuntu (Wubi) and not the real Ubuntu installation, because the real Ubuntu installation will always be faster: Ubuntu (Wubi) is installed as a Windows software and can be removed like any Windows application, from the Control Panel (if you remove Wubi you will lose any data saved in the Wubi virtual partition).

INSTRUCTIONS: To remove permanently the real Ubuntu installation with all its data, enter in the Ubuntu (Wubi) installation and with a partition software like gParted delete the real Ubuntu partition; you can also use a live DVD/CD with any distro installed to do the procedure.
You can execute Gparted Partition Editor from System -> Administration in Ubuntu systems or use the apposite gParted live CD (a safer alternative) by following this official guide (CLICK!).
After that reboot and test your in-use systems at least two times.

SUGGESTION: If you format the deleted partition's space with NTFS you'll be able to re-use it in both Windows & Linux (Linux will need extra support drivers & wrappers).

Click the up arrow if I'm of any help and feel free to comment down here if you need more help,

have a nice day. :-)


Customize in Libre Office 4.1 on Ubuntu 13.04

Go to Tools->Options->Advanced in the right pane make sure Enable experimental features as well as Enable Macro recording are selected.

Now if you go back to the Macro menu you will have an option to record Macro.


Ubuntu server: Start dropbox.py of a user without logging in

Try to start dropbox.py from rc.local

sudo -H gedit /etc/rc.local

and put line

/home/x/dropbox.py &&

somewhere above exit 0

save end exit

This will work if dropbox.py is already configured.


How to open a GUI application and 'disconnect' it?

You can use disown command to detach background processes from the terminal.

If you have only one running background job, you can simply use

disown

and the owner of this background process will no longer be the terminal, so it will keep running even after the terminal is closed.


MythTV could not connect to the database

I found the correct password (which was randomized) in /etc/mythtv/config.xml and entered this in the Password: field of the MythTV setup screen.  This solved the problem for me. mythtv was not the correct password.  This issue may be Ubuntu/Debian-specific.


Gnome Scheme manual please, for aisleriot

From the official source code git repository itself:

https://gitlab.gnome.org/GNOME/aisleriot/blob/master/games/Rules.HOWTO

Its table of contents is very promising, and it looks like it's exactly what you're looking for:

1. Introduction
2. Getting started.
3. A primer for the Scheme language
4. Functions you need to define to make a game.
5. A real example.
6. Submitting your new work as a "bug".
7. A brief list of the aisleriot 'library' functions available.

Also worth reading:

https://gitlab.gnome.org/GNOME/aisleriot/blob/master/games/README

How to write a new game for Aisleriot
=====================================

For an introduction on how to write the scheme code for a new game see the
Rules.HOWTO file.

How to add a new game to Aisleriot
==================================

 * Move foo.scm file into games/ and git add it
 * Add foo.scm to the list in games/Makefile.am, keeping the list
   sorted alphabetically
 * Add games/foo.scm to po/POTFILES.in
 * Move the documentation foo.xml file into help/C/ and git add it
 * Add foo.xml to HELP_FILES in help/Makefile.am, keeping the list
   sorted alphabetically
 * Edit help/C/index.docbook to include the new game's documentation
   by adding

     <xi:include href="foo.xml" />

   in the list of games. Make sure to keep the list sorted alphabetically!
 * Run the src/get_titles.pl script
 * In help/, run "make check" to make sure the documentation validates
 * Add foo to the list of games in the man page in help/sol.6
 * git commit help/C/foo.xml help/C/index.docbook help/Makefile.am games/foo.scm \
              games/Makefile.am src/game-names.h po/POTFILES.in help/sol.6

 Done!

Unfortunately, and surprisingly, both docs are missing from aisleriot Ubuntu binary package in the repository, so they're not installed in your system as most such READMEs are.


Can't upgrade manually installed package

Since you didn't update the package manager's view of your system when you "manually reverted to an old version of thunderbird", it thinks you're running the current version. Rather than trying to tell the package management system about your old version, you could simply reinstall the current version with:

sudo apt-get install --reinstall thunderbird

which man apt-get documents as:

--reinstall
           Re-install packages that are already installed and at the newest
           version. Configuration Item: APT::Get::ReInstall.


Volume control applet doesn't work, but alsamixer does!

I have seen this type of behaviour when you aren't adjusting the output volume on the active audio output device. In my case when I connected a USB audio device audio output would switch to it, however the volume control would control the unused onboard audio.

If you open the sound settings window do you see more than one output device? Does the volume control on one of the output devices work correctly?

Here's some (solutionless) discussion of the same issue: https://answers.launchpad.net/ubuntu/+source/gnome-media/+question/5735


Ubuntu 13.04 Black screen with nomodeset/xforcevesa/acpi=off

Unfortunately the support for this hardware is extremely limited on
  Linux. There are several drivers, but all lack certain basic features,
  such as future and current maintenance or support for suspend and
  hardware acceleration.

  Currently, the best supported driver for Ubuntu is gma500_gfx.

Also:

  Ubuntu 12.10 +

  No workarounds should be required, however, upgrading from 12.04 is
  not recommended because of general UI sluggishness.

From: https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo which your unit has according to: http://us.kontron.com/nano

Maybe it's just generally slow and you don't see the difference because it takes too long to get an image, or drawing times out?


You can do something similar in Kubuntu 18.04.

There are at least two ways: using the keyboard and using the mouse.

Using the keyboard

Open System Settings > Shortcuts > Global Shortcuts > KWin
Scroll down to Decrease Opacity of Active Window by 5%, click on Global and then in the Input box and press the keys you want: I use Ctrl+Meta+L.
Similarly, set something for the Increase Opacity of Active Window by 5% such as Ctrl+Meta+H

Using the mouse

A second way that I know of is to use the scrollwheel of your mouse:

Open System Settings > Window Behavior > Window Actions

Here, in the lower area titled "Inner Window, Titlebar & Frame", click on the dropdown next to "Mouse wheel:" and select Change Opacity

Here's an example: Google Chrome is the topmost, active window. Pressing Ctrl+Meta+L a few times shows the InfoCenter window immediately below and a konsole window further down.


I want to boot Ubuntu from a old PC internal HDD with USB adapter

If your able to boot up the Ubuntu on your notebook, or any other computer.
try to do this

There are several ways you can do it.

if you only have access to one computer that's working then do this:

Boot up your Ubuntu installation.
Install vmware workstation.
load up vmware workstation and go to file -> visualize an physical machine.
when you have visualize your physical installation of ubuntu:
right click on it in vmware workstation, go to settings and under general you will se the machines "working Directory" Copy the content of that folder, to an external hdd or usb stick.
Install an fresh installation of ubuntu, following this guide (remember to install the same version of Ubuntu, as the one you had on your notebook.
when you have done this, boot up your new ubuntu installation, install vmware workstation again, and import the virtual machine you have located on your USB/External HDD. and make sure its accessible on the local network.
and then try this

*if you have access to an other computer, that you can boot up the old ubuntu installation on, then boot it up, make sure its accessable on the local network and try this *

if your stucked, try to google any of the steps. there are plenty of guides on how to do the different steps.


I am not answering your question as to how to solve the script issue; however I will venture an explanation as to why this is happening. The audio is a stream that is sent to the audio device, it is a one way communication; Awaiting no further response from the device, once the target is located and the stream is under way. As such, it is not easy to detect when the stream is broken, unlike any two way data flow,  when it would be obvious that there is no longer any communication; thus after the stream is interrupted, by a suspend, the flow is halted and it looses its target. However it does not realise that this has happened due to the target location process happening only when the stream is being started; when the memory pointer is initialised.

The work around is most likely researching and reinitialising these memory locations.

Pulse Audio, it would seem, uses multiple buffers depending on the hardware, the hardware is of course the eventual target of the stream. Any one of these buffers, if they lose the pointer to the memory location, will stop playback. Here is an interesting little article:

http://voices.canonical.com/david.henningsson/2014/11/21/pulseaudio-buffers-and-protocol/

It is most likely that dma is happening during this process so as to free the stream from any heavy cpu dependency; of course depending on your hardware.

https://en.wikipedia.org/wiki/Direct_memory_access

Hope this helps in some way.


Yes the latest drivers ATI drivers give more problems than the previous ones specially using Gnome3 desktop. Its an ATI thing.

I would wait before using 11.9 packages on 11.10.

Have a look here to see the difference between available driver versions in Ubuntu.


USB 3.0 port with USB 3.0 device in Ubuntu 12.10

If the following does not work then I suggest you read How do I report a bug?

Some users have reported the same issues on Windows 7 & Windows 8. The solution was doing the first 2 steps provided in here which were basically:

Update the BIOS
Make sure that in the BIOS (After upgrading it) you check that in Advanced -> Chipset -> Southbridge the option USB 1.1 OHCI Controllers and USB 2.0 EHCI Controllers are "enabled". Of course, there are a couple of K55VD Models, so this applies to some of them.

The general idea is to do the steps for the BIOS. If it works great. If not, you have just found a bug my friend. So file the bug using the link above and a developer will help.


Why am I unable to access the context menus in new Firefox?

This seems to be a bug with Unity; I've looked for a report on Launchpad but the keywords are so generic that it's not an easy search!  Anyway, for me the problem occurs as follows:
1. Open Firefox on Workspace A.
2. Do some other activity (maybe email in Thunderbird) on Workspace B.
3. Use the keyboard to navigate back to Workspace A.  (i.e. Ctrl+Alt+Arrow)
4. Right-click and URL drop-down menus will now fail to work properly.

However, if I move back to Firefox by clicking on the Firefox icon in the Launcher, things work just fine.  If encounter the problem I just go back to Workspace B, and then use the mouse to return to Firefox.  This is a bit annoying though, as I prefer to use the keyboard as my primary input.


Error in brand new External Hard Drive: "ls: reading directory '.': Input/output error"

This is old enough that the original poster has probably moved on but maybe this will help someone.  I had a very similar problem that I was able to 'fix'.  It was on the internal hard drive of a fairly new machine so I really didn't think it was hardware related.  It's a Windows 10 PC with the Ubuntu Linux app.  I had one folder (~40 files, 3 Gb) that became unreadable under Linux; same error ls: reading directory '.': Input/output error.  I couldn't ls, mv, rm, rename, tar, etc. that one directory but all else seemed fine.  I wasn't sure how it got that way, but turning the machine off when things were open may have been it (I swap a large monitor between a couple machines and don't always recall what state things are in for the monitor-less one). And, like the OP, I even had a file Notes.txt that I knew had been there and could no longer list but I could open it in vi!

The original post did help me (thanks) because I hadn't yet thought of going to look at the same place from the Windows file explorer.  When I did, everything I expected was there and looked okay except I noticed one file not intentionally created by me called .~lock.hways_us.dbf#

I had been massaging/extracting some highway lat/longs from a shapefile/database set with my own code.  So I just deleted the .~lock... file above with Windows and then the Linux side started working again just fine.  I know this may be tougher to do with thousands files and it sounds like the OP may have had some file loss too, but perhaps there was some weird orphan file or file fragments like this that caused the problem.


Most likely the HDMI cable going from your computer is bad and or has oxygen inside the cabling. If replacing the cable dose not fix the problem the HDMI ports could be dirty and or damaged.


Seems like the link between grub and the linux kernel doesn't work....

This may help when you're at the grub prompt

https://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux/


mssql-server: Depends on libjemalloc1 which is a virtual package and is not provided by any available package

I'm assuming you've followed the installation steps given on Microsoft's SQL server installation page right upto the point where you faced the error.

Here is a workaround:

Download the latest version of libjemalloc (this one is for Ubuntu 18.04) from this mirror here - http://ftp.osuosl.org/pub/ubuntu/pool/universe/j/jemalloc/libjemalloc1_3.6.0-11_amd64.deb
Install it: sudo dpkg -i libjemalloc1_3.6.0-11_amd64.deb
Now run the apt command to install ms-sql server: sudo apt-get install mssql-server

Hope this works for you.


Ubuntu installed on a pendrive - bootloader issue

First, be aware that Windows 8 uses various tricks to reduce boot time. One of these is to turn shutdown operations into suspend-to-disk actions, which enables faster startup. The problem with this is that filesystems are left in an unclean state; only Windows (indeed, only the specific instance of Windows that was most recently "shut down") can safely access the filesystem. Dual-booting in such a configuration is unsafe, since the EFI System Partition (ESP), which holds boot loaders, is affected. It gets worse if you try to access the Windows partition or any shared data partition from Linux. To safely manage a dual boot of Windows 8 or later and Linux, you must disable this "fast startup" feature, as described here (among many other places).

Second, you can boot a BIOS-mode Linux installation by setting up an EFI-mode boot loader. In the case of your installation on a flash drive, you can either:

Create an EFI System Partition (ESP) on your flash drive and install whatever EFI boot loader you like on there as EFI/BOOT/bootx64.efi. You'll then need to use your firmware's built-in boot manager to select the USB flash drive to boot, much as you'd do if you wanted to run an Ubuntu installer.
Install your EFI boot loader of choice on the hard disk's ESP. You'll have to configure it to boot the kernel from the USB flash drive, or at least to boot a kernel from the hard disk's ESP and use the USB flash drive's root (/) filesystem.

The first approach makes your USB flash drive installation easily portable to other systems but may be a little more hassle to use. The second approach means you won't have to monkey with the firmware's boot manager, but you'll be altering your boot path even when you want to boot Windows, which will slightly slow things down.


Finding and editing gnome terminal colors without gui

They are stored in gconf .gconf/apps/gnome-terminal/profiles/Default/%gconf.xml as 12 digit hex values (where Default is the profile name).

You can set them with gconftool-2 e.g.

gconftool-2 -s -t string /apps/gnome-terminal/profiles/Default/foreground_color  #65657b7b8383

there is also background_color and palette which takes a list of 16, colon separated values, (no idea what these correspond to though).


Xfce4 keybinding and logout randomly not working since Ubuntu 14.04

I have the same problem, logout fails and loads of user gui processes still running after each failed logout.

I wouldn't normally use Xfce4, but rdp access is required and unity over rdp is currently broken in 14.04.

Looking forward to either of these issues getting fixed by the point release.  If I can be of any help or provide any more information please let me know.


automatically unmount sshfs network drives before VPN disconnects on suspend

Try this

Make script witch will umount sshfs drives when vpn is terminated.

Make script in the folder /etc/network/if-down.d/ with execute permissions 755

# Check for specific interface if desired
[ "$IFACE" != "ppp0" ] || exit 0
# Do something

umount /path/drive

When int ppp0 will go down command umount /path/drive will be executed

Also you can make "auto mount" if int ppp0 go up

Make script in /etc/network/if-up.d/

# Check for specific interface if desired
[ "$IFACE" != "ppp0" ] || exit 0
# Do something

your_script_for_mounting_drives

Solutin No 2

Make script link_stat

nano /path/link_stat

#!/bin/bash

if ip addr show ppp0 | grep 'state UP'; then
    echo "Network ok."
else
    echo "$ERR Network down, umounting"
    #put_here_your_sommand_for_umount
fi 2>&1 >> /path_to_log/stat_log

do

chmod 777 /path/link_stat

Run script with cron

sudo crontab -e

run command on every 30 sec

* * * * * /path/link_stat
* * * * * sleep 30 && /path/link_stat

This will check for vpn status and if status if dovn will be umount drives


Am I using the Nouveau driver or the proprietary NVIDIA driver?

nvidiafb is a framebuffer driver inside the Linux Kernel. Is not the proprietary module from nvidia. (nvidia.ko).

If you want to see the short description of the module, issue the following command in terminal

modinfo nvidiafb | grep description

If you want to read more a about framebuffer , read the FrambeBuffer on Ubuntu Wiki.

You can see if some nvidia package is installed by applying the following command

dpkg -l | grep -i nvidia

If you want to search if the nouveau module is loaded you can apply

lsmod | grep nouveau

If nvidia restricted module was loaded , then the nouveau module Cannot be loaded too (conflict each other).

Nvidia's (restricted) module name is nvidia . Not nvidiafb or something similar.

Also you can search from Additional Drivers page . In example below , no proprietary drivers are in use

And another command that can show you, which driver is in use:

lspci -nnk | grep -iA2 vga

There you will see a line like

kernel driver in use: *****

If it's nvidia , then you have nvidia driver installed and in use. If it's nouveau, then you don't.


How can I update my BIOS on my Intel NUC6i7KYK for proper internet connection?

(1) What can I do to successfully update my BIOS?

Nowadays my bios allows updating from bios itself.

Did you see this on the Intel site on upgrading NUC? It shows 3 options for Linux with video's. Your link points to 1 of those options but the more easier method to me seems to be Power Button Menu BIOS Update Instructions for Intel® NUC.

Pick the bootable USB version and not one through an SD card. Those through a bootable USB work a lot better since it is done through a normal USB boot.

  (2) How likely is it that a BIOS update will restore proper internet connectivity to my Ubuntu NUC?

Unlikely. Unless that system has a seriously flawed design where the wireless is messed with by the systems hardware (metal casing with a badly placed NIC is not unheard of).

  (3) What software package(s) are available for Ubuntu 16.04 that might be able to automate this update process for me and make it easier?

See https://help.ubuntu.com/community/BIOSUpdate for specific methods per manufacturer. Option 5 (using freedos has always been my best working method) IF the normal Intel methods with a bootable usb fail. Always go for a method by the manufacturer instead of a method by the OS.

  Other threads I found while googling the issue suggest that Intel NUCs are intrinsically bad with internet, AKA the metal casing or the wifi chip or something else adversely affect their internet connectivity - so could this be an issue with me as well and what can I do to fix it?

Yes, that could be the issue and the most efficient method would be to get a WLAN dongle and stop using your internal wireless. The more expensive ones are 50 euro (roughly 80 NZD acc. to google ;) ). That is besides returning the machine and getting another one ;)


Delete certain filetypes and empty folders within a folder and subfolders

Try with -mindepth option to delete all the files ended with .jpg which was present inside subfolders,

find . -mindepth 1 -name "*.jpg" -type f -delete

To delete empty directories,

find . -empty -type d -delete


Encountered problem resizing LVM drive with GParted

In order to grow the LVM2 PV partition, you will first need to deactivate LVM.  After that you can grow the extended partition followed by the LVM2 PV partition.  The steps roughly are as follows:

Backup your data in case anything should happen to go wrong.
Boot VM using GParted Live.
Select /dev/sda5 LVM2 PV partition
Choose Partition -> Deactivate
Select /dev/sda2 Extended partition
Choose Partition -> Resize/Move
Grow the partition to the end of the drive.
Select /dev/sda5 LVM2 PV partition
Choose Partition -> Resize/Move
Grow the partition to butt up against the end of the sda2 Extended partition.
Apply the operation
Exit GParted, and boot into the VM OS.
In a terminal window, with root privilege (su or sudo), use the appropriate lvresize command line options to grow the logical volume(s) you wish to increase in size.

'Hope that helps.


What is the syntax for commenting out lines in logrotate config files?

man logrotate

  Note that comments may appear anywhere in the config file as long as the
         first non-whitespace character on the line is a #.


How do I mount my sata dvd writer in ubuntu 16.04?

I suppose you work on Ubuntu Desktop:
Check your dvd-writer with gnome-disk-utility , then mount it.


failed to start etc/rc.local error after updating to Wily

Thanks, I removed that xinput line at it worked!


Not able to change /usr/bin permission - Permission denied

In case you cannot remeber your password anymore, or are not part of the sudo group, you won't be able to sudo anymore. There is no such thing as a "default password".

Edit: Just saw the comment of @steeldriver with similar content now.


How to get netplan on 17.10 server to work with a Windows Server DHCP server using MAC address reservations?

I recently encountered this as well.  The answer is in the netplan.io examples.  You can add the line dhcp-identifier: mac to the yaml file in /etc/netplan/ and then run netplan apply to apply the change immediately.

From the last item on https://netplan.io/examples:

  Windows DHCP Server

  For networks where DHCP is provided by a Windows Server using the dhcp-identifier key allows for interoperability:

network:
  version: 2
  ethernets:
    enp3s0:
      dhcp4: yes
      dhcp-identifier: mac


Cannot open 90% of recently saved images

The 90% of the images that you were unable to open are .webp image files which are becoming more and more common on the web. webP uses the modern VP8 compression format to deliver efficient compression of images for the web. More than 30% extra gain over optimized JPEG for the same quality is not unusual. You can see the difference in quality when you decompress a .webp file.
In all currently supported versions of Ubuntu open the terminal and type:
sudo apt install webp

Let's assume you have an image file named FILE that doesn't show a thumbnail image in Files file manager and returns an Unrecognized Image File Format error when you try to open it. To convert a .webp file named FILE to .png run the following command.
dwebp FILE -o output_image.png

To convert webp to .png run the following command.
dwebp input_image.webp -o output_image.png # or output_image.jpg for jpg
To convert multiple webp files to .png run the following command.
for x in ./*.webp; do
  dwebp "${x%}" -o "${x%}".png
done
find . -type f -name "*.webp*" -exec rename 's/.webp//' {} +

The webp package also contains the cwebp command. cwebp compresses an image using the WebP format. Input format can be either PNG, JPG, TIFF, WebP or raw Y'CbCr samples.


Steam Library must be on a filesystem mounted with execute permissions 1

i found  a very easy answer for this problem,
just type this in the terminal
udisks --mount /dev/sda2 --mount-options umask=022  (mounts with exec)
steam will accept the windows partition and start downloading/installing your game.


Suddenly I have USB 2/3 problems. Keyboard and mouse no longer function on blue 2/3 ports

In one sentence you say the keyboard "no longer functions", in another you say it's "partially functioning". Please clarify this.
Also please grab the manual of your board and plug the devices into USB2.0 connectors. USB3.0 is proven to sometimes make problems even under Windows.


Yep if eth1 is not listening on any existing DHCP/DNS servers then that will be the one you choose for MAAS to manage its own DNS/DHCP services.


Lost PGP private key and want to remove it from keyserver.ubuntu.com

TL;DR: There is no way, you're out of luck.

Deletion

OpenPGP key servers do not allow removal of keys for various reasons, mostly it boils down to

having the OpenPGP web of trust being resilient against deletion attacks,
missing procedures to do so,
technical reasons with the key servers exchanging keys with each other ("gossiping") and
the fact key servers are operated by hundreds of individuals all over the world (also in pretty much all countries of the world, if you'd like to go through the legal route).

If you'd ask the individual operators to remove a key, they might block it on their own server (but the others will still be hosting it), or simply tell you they won't do so because of the reasons given above.

For further reading, I'd recommend How long do keys stay on keyservers? for a more detailed discussion why deleting keys would be a bad thing to have.

Revocation

The "OpenPGP way" to remove old keys is to mark them as revoked by uploading special revocation certificates. These will tell other OpenPGP users that your key is superseded.

Revoking keys is not possible if you don't have access to the private key, defined a designated revoker or a pregenerated revocation certificate.

If you don't have a revocation certificate for your new key yet, generate one now!

Comments

Comments are hardly possible, either:

people would not realize they're there if using some OpenPGP client software
anybody could've uploaded them, as you can't sign them with your private key
there is no such thing as comments anyway.

Precautions

To prevent loosing access to your key, do following:

Regularly backup your computer (important anyway).
Create an offline copy of your private keys.
Create a revocation certificate immediately after creating a primary key. Store it both in a digital way and print it on a piece of paper (I recommend something like gpg --gen-revoke | qrencode to be able to scan the certificate without the hassles of OCR).
Create a second copy and hand it to somebody you trust. He cannot do anything but revoke your keys with it (never gain access!), but you always have a fall-back in worst case scenarios (house burned, robbery, ...).


19.04: MATE panel : command-applet[31803]: gtk_label_set_text: assertion 'GTK_IS_LABEL (label)' failed

The issue has been resolved in this way :

System/Preferences/Hardware/Additional Drivers offers three choices: 2 NVIDIA drivers and the Nouveau. The most recent NVIDIA was selected so I selected the Nouveau and rebooted.

The display was badly distorted through the previous settings so I reset to the most recent NVIDIA and rebooted again, thinking I'd look for another solution.

Now there are no LABEL assertion failures in the log.

Note that of my three 19.04 MATE machines this is the only one with NVIDIA graphics.


You can do this using GParted.

Note: changing your partitions may cause data corruption, always make a backup of your important data!

Make sure GParted is installed:

sudo apt-get install gparted

Open GParted
Right click on your ext4 partition
Click on Resize/Move
Enter a new size for your NTFS partition in the Free space following (MiB) field

1 GiB = 1024 MiB, so if you want your partition to be 200 GiB it would be 204800 MiB.
Click on Resize/Move

This may take some time depending on the size.

Now it will be available as unallocated space. You can format it as NTFS now with GParted or during the installation of Windows.

Windows 7 will overwrite the MBR, so it'll load Windows' bootloader instead of Ubuntu's one (GRUB). You won't be able to boot Ubuntu after you install Windows until you fix this.

Start Ubuntu Live (using a CD or USB drive)
Open a terminal
Install GRUB:

sudo grub-install /dev/sda

Replace /dev/sda by your hard disk.
Update GRUB:

sudo update-grub

Now restart your PC and GRUB will show again, giving you the choice to boot Ubuntu or Windows.


with mv, consider the path/name of the original file when choosing destination

In the first case, if you are using bash, you can use brace expansion:

mv /etc/dir1/dir2/dir3/{a.out,b.out}

or even

mv /etc/dir1/dir2/dir3/{a,b}.out

In the second case you could use brace expansion again:

mv some{very,really}bigfilename.png

Or (although it doesn't really save much typing) you could use Bash history expansion as follows:

$ mv someverybigfilename.png !#$:s/very/really
mv someverybigfilename.png somereallybigfilename.png


As Lubuntu 14.04 seems to work: install that and then head over here on how to install the nVidia drivers and then just add the MATE desktop:

sudo apt-get install mate-desktop

and then you have what you want.


Where to put .config file when recompiling kernel?

The.config file needs to be present in the base directory of a kernel source code which you are going to compile using make utility. Go to base directory and type ls -a the  .config file should be there (probably in /usr/src/).

This is a blog for compiling a kernel from source (not ubuntu specific). https://prashantchikhalkar.wordpress.com/2015/05/07/linux-kernel-compilation-from-source-to-running/


That notification says something about Proprietary Drivers not paid.

Anyway open the Dash and type Software and Updates. Another way is to open Terminal (Ctrl+Alt+T) and type gksu software-properties-gtk then hit Enter.

Once it opens select the last tab Additional Drivers. You should see there the drivers available for your PC. Select one of the tested ones and click Apply Changes.

Another way to install graphics drivers is from terminal:

If you have NVidia:

sudo apt-get install nvidia-current

If you have ATI:

sudo apt-get install fglrx

After installation it would be a good idea to restart, or at least log out and back in.


Found option 'When cover is closed' in system settings...


Can anyone explain scopes in reactive charms to me please (juju 2.0)?

After asking around a bit, it turns out that it has nothing to do with scopes! It was actually because we were using set_remote(...) elsewhere in the charm, which is not supposed to be used outside of the interface layer.


You should use GTK PPP: https://sourceforge.net/p/gtk-ppp/ (new gtk3 version of GNOME PPP)


Just go and install it from Ubuntu Software Center

After trying

sudo apt-get update –fix-missing

and

sudo dpkg –configure -a

and

sudo apt-get install -f

the problem of a broken package still exist the solution is to edit the dpkg status file manually.

$ sudo nano /var/lib/dpkg/status

(you can use vim or gedit instead of nano)
Locate the corrupt package, and remove the whole block of information about it and save the file.

Information taken from iasptk.com


My best friend passed away. He encrypted his computer but did not tell her what the key ring password was

If the computer is indeed running Ubuntu, with the home directory encrypted (option suggested, during install), then breaking the password (forcing to a known value) will let you access the computer but will NOT give access to the encrypted content.

This is simply to protect the contents from exposure, if the computer is ever compromised or lost.

For there to be a conventient way around this would be a serious design flaw (much like Windows 7/8/10, sans BitLocker).

Not sure what can be done to assist you ..

What further details can you provide?

version of Ubuntu, type of encryption;
loss to next-of-kin/society, if data not recovered;
what backups exist (are they also encrypted);
etc. ..


How can I view the total disk space taken up by all operating systems?

The entire disk space usages are visible irrespective of which OS you are using. Each OS provide disk utilities to provide the details.

If you are in Ubuntu - then you can use the common Unix commands -

df -h - To see all the mounted partitions.

fdisk -l - To all the Disk partition on top of you HDD.

you can learn more about fdisk which is very powerful tool.

Regarding the GRUB menu issue - The multiple Linux Kernel version will be displayed. Which is actually asking the user to pick which kernel version to use to boot the machine. By default grub use the latest version. If you uninstall old version then you won't see the extra entries on the grub.


Windows had over-written the Grub menu. So I used Boot-Repair for re-installing Grub .
Link - https://help.ubuntu.com/community/Boot-Repair

Source - Thanks to " grahammechanical " on UbuntuForums .
Link - http://ubuntuforums.org/showthread.php?t=2159718#post12717318


Jobs run through cron, crontab, aren't run in the same runtime environment that you have on your desktop. None of your PATH changes, or other environment  variable settings are automatically propagated to your cron job. For example, there's no $DISPLAY, so GUI programs need special treatment (read man xhost).
One can set environment variables for all one's cron jobs in the crontab file
Read man 5 crontab.
Look at the results of  echo "=== set ===";set;echo "=== env ===";env | sort;echo "=== alias ===";alias in each of your environments.
Since the command part of the crontab line is, by default,  interpreted by /bin/sh, which has a simpler syntax than /bin/bash, I recommend having command be a call to a bash script  (executable, mounted, starts with #!/bin/bash) which sets up the environment,  then calls the desired program.


Defragmenting tools on Ubuntu for non EXT* formats

Moving all the data off the USB drive and then copying it back again will ensure that there are no fragmented files.

However, there's absolutely no point in doing this since fragmentation does not affect performance of solid state drives


volume gone and the system does not wake up

I had the exact same issue on Ubuntu 18.04 ... Very disturbing . I got my speaker back by doing what was written here https://superuser.com/a/1509313/1151609

but i still have issues with my microphone and with the Bluetooth ...

Those updates are excessively annoying ...


How to use apt-get install with suggested packages?

If you read carefully the accepted answer in the question you link, you can see that this is the default behavior.

To install suggested packages you should add this to the command line:

-o APT::Install-Suggests="true"


How can I grab Unity scrollbars from the side of the screen?

This will be available in the next Ubuntu release (11.10), and is not available in 11.04 (unless backported). Unfortunately some things end up getting "shipped" before they are polished :/.


How to install PAPI on Ubuntu 16.04 and access performace monitoring counters?

To install PAPI

Step 1: sudo apt-get update

Step 2: sudo apt-get install papi-tools

To Remove PAPI

Step 1: sudo apt-get remove  papi-tools

To Completely removing papi-tools with all configuration files

Step 1 : sudo apt-get purge papi-tools


Additional display is always added on the wrong side

It appears your TV is physically disconnected when you switch it off,  else it won't possibly lose the set up. Below two options to solve the issue, which is most likely the result of a bug:

The (background) script below (option [1.] should automatically move the TV screen (in your case: HDMI-0) to the right of your main screen, if it was connected after being disconnected.
The keyboard shortcut does the same, but manually after connecting (switching on) the TV.

1. A background script, automatically setting the second screen

The script is written in such a way that it takes the screen you want to appear on the right (the one that is disconnected now and then) as an argument (see explanation below). Therefore, it works with any combination of screens, you only need to enter the name of the right screen into the command. The script will find the resolution of the left screen, for correct positioning.

The script

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

"""
This script is a fix for what is presumably a bug, causing the secundary screen
to appear on the left side instead of the right side of the "main" screen.
Run it in the background.
"""

#--- set your secundary (right) screen below
sec = sys.argv[1]
#---

scr_id = sec+" connected"

def get_xrandr():
    return subprocess.check_output("xrandr").decode("utf-8")

def get_setup():
    # returns output of xrandr if secundary monitor was connected (else None)
    get_xr = subprocess.check_output("xrandr").decode("utf-8")
    if scr_id in get_xr:
        return get_xr

def get_xshift(xr):
    # find connected screens (lines)
    mons = [l for l in xr.splitlines() if " connected" in l]
    # get name and x-size of main screen
    left = [l.split() for l in mons if not l.startswith(scr_id)][0]
    return [(left[0], s.split("x")[0]) for s in left if s.count("+") == 2][0]

check1 = []
while True:
    time.sleep(4)
    check2 = get_setup()
    if check1 != check2:
        # on change in monitor setup:
        if check2 != None:
            # if secundary monitor was just connected
            print("run setup")
            x_shiftdata = get_xshift(check2)
            cmd1 = ["xrandr",  "--output", x_shiftdata[0], "--pos", "0x0"]
            cmd2 = ["xrandr",  "--output", sec, "--pos", x_shiftdata[1]+"x0"]
            for cmd in [cmd1, cmd2]:
                subprocess.call(cmd)
    check1 = check2

How to use

Copy the script into an empty file, save it as screen_set.py
Test- run it with the secondary screen as an argument with the command:

python3 /path/to/screen_set.py HDMI-0

(since HDMI-0 is your secondary screen)
Disconnect (switch off) the TV and connect it again, it should appear on the right side.
If all works fine, add it to Startup Applications, with a little break: Dash > Startup Applications > Add. Add the command:

 /bin/bash -c "sleep 15 && python3 /path/to/screen_set.py HDMI-0"

Now it should be solved.

2. Alternatively; a keyboard shortcut

The background script adds practically nothing to the processor load, and will not be noticed whatsoever. If you however would prefer a keyboard shortcut to an (automatically working) background script, add the command:

/bin/bash -c "xrandr --output DVI-0 --pos 0x0 && xrandr --output HDMI-0 --pos 2560x0"

which will do the same, but manually: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

/bin/bash -c "xrandr --output DVI-0 --pos 0x0 && xrandr --output HDMI-0 --pos 2560x0"

Explanation; the background script

Once per four seconds, the script checks if the TV is connected by checking if the string HDMI-0 connected is in the output of the command xrandr.
(Only) if there is a change in the state: False -> True, the script runs the command (in your case):

xrandr --output DVI-0 --pos 0x0 && xrandr --output HDMI-0 --pos 2560x0

which arranges your screens from left to right, as explained here.
If your screen resolutions are different however, the script looks up the correct figures and the name of the main screen. As long as you use the secondary screen as an argument, it works fine.


There is no tool that will "convert" a NTFS file system to EXT4 in place. Even if it existed, it would be extremely dangerous. Handling data is serious business, I guess you do not want to play russian roulette with your important files.

The procedure described in that answer can be replicated manually but it is still a workaround and it will only work if you have some free space on the drive. "Some" means slightly more than the size of the biggest file you have.

Nevertheless, the answer is pretty clear:

  it is very risky and very time consuming

You have been warned.

Regarding Parted Magic:

  Does this micro-distro work with external USB drives?

Sure, it's a Linux distro. It has excellent support for USB drives and many kinds of file systems.


What is the sugested way to upgrade 20.04 kernel to v5.6?

The kernels you listed can be installed on desktop machines for general use. You can find more information about the Ubuntu OEM kernel on this wiki page. The number before -oem is the build number, the higher the number, the newer the kernel.


people nearby contacts appears twice in empathy list, how to correct this?

This is due to avahi which will probe ipv6 and ipv4 network as you can see with:

avahi-browse -t _presence._tcp

Each user presence is broadcasted in ipv6 and ipv4.

Thus, if you don't need ipv6, you can set ipv6 to no in /etc/avahi/avahi-daemon.conf. Don't forget to restart avahi with:

sudo /etc/init.d/avahi-daemon restart

In my experience, it can take several minutes for empathy to remove all spurious duplicate contacts.


This is how I work with VLAN's on my machine. In my situation, I only need to access VLAN's when administering specific machines, so by default, the network interface runs untagged (i.e. without VLAN configuration).

I've made a little script which creates a secondary interface running on the specified VLAN:

#!/bin/bash
# This script will configure and start a virtual network interface which is a member of VLAN 2.
# TODO
# 0. Check if package 'vlan' has been installed and if not, prompt the user to do so.
# [code goes here]
# 1. Load the VLAN kernel module
sudo modprobe 8021q
# 2. Add enp1s0 to VLAN 2
sudo vconfig add enp1s0 2
# 2.1 Wait 3 seconds before bringing up enp1s0.2, otherwise enp1s0.2 will not get an IP
sleep 3
# 3. Bring up enp1s0.2 with IP address 10.0.0.2
sudo ifconfig enp1s0.2 10.0.0.2 netmask 255.255.255.0 up

NOTE: You will need to replace 'enp1s0' and the IP info to match your situation.

NOTE2: as you can see in the code, the script requires the package 'vlan' to be installed. You can do this by running:

apt install vlan

If anyone knows how to check for this dependency in the script, please let me know.

NOTE3: this script will not persistently add the network interface with VLAN access to your machine - when you reboot, it will be gone. Of course, you can always run the script again, or edit

 /etc/network/interfaces

and add it there. However, I'm running into issues when I try to do this on one of my servers (actually, I was hoping to find an answer to that issue here, but instead I only found unanswered VLAN-related questions), so that might not work.


Minimum Brightness Level too Bright/High on an Asus UL-50

1- Open Terminal

2- Enter the following command:

cat /sys/class/backlight/intel_backlight/brightness

3- Write down the resulting value (12421 in my case)

4- Divide value by 6 and write it down (2070 in my case)

5- Enter the following in the terminal, replacing 2070 with your value:

sudo su -c "echo 2070 >/sys/class/backlight/intel_backlight/brightness"

6- Close Terminal

7- For future usage of last command, open terminal, press Ctrl and R together, start typing "brightness". When last command appears just press Enter.

It does work for me (Samsung NC110, Ubuntu 12.04)


Most of the times ddrescue can be run with default settings and let handle damaged areas itself. You may also limit the amount of retries with -r2, for instance.

The fact that it is going pretty slow at the beginning is normal and quite common. Disks do not end up becoming damaged in a perfectly uniform way. Quite the opposite, actually.

Most of the time the wear level of a hard drive becomes really bad at the "beginning" of the disk, which gets used the most. I wouldn't be surprised if your speed rose up after the first 15-20 GB of sectors have been passed.

  is there a way to tell if the recovery has finished the sectors that have data in them as opposed to no data?

No. That would require you to read the file system metadata from the drive first. You cannot read the drive before reading the drive.


Alt+F2 set to "Activities" view in GNOME Shell, can't access the command prompt anymore

Change keyboard shortcuts
Here's how:

1-

2-

3-

4-

5-

6-

7-
**


Installing HP Deskjet on Chromebook using Ubuntu?

Actually , yes you can do this. It will take some set-up, but it is possible. I've done this to my own Hp 14 Chromebook. I should say that I'm not particularly using the HP deskjet 1515, but I'm using the HP photosmart 5180. Instead of typing out the entire process, I will enter links for you in chronological order of doing this.

Installing Ubuntu on Chromebook via CROUTON method. (Nevermind the Minecraft steps at end.
A little extra information/Pay attention to Unity,Crouton etc.
GitHub, CUPS,CROUTON set-up with HP
You'll need to install Gedit if your moving on to step 5 with
A little further for setting up CUPS start-up. Look at Bweinel's answer

These are the links I have saved from my set-up a few months ago. Hope this helps you out. And here's a link to my own Askubuntu question, from when I was having trouble getting the printer to connect.


The software that's free and works with Ubuntu and is in the software center is "Ekiga Softphone" if you go to their web site you will even get a free VIOP address so its free as air. They also have services that allow you to have a call in number if you want.

The site is here http://www.ekiga.org/


It's the same with version 11.2.202.418, I updated adobe flash and the problem appeared.

I fixed it by reinstalling the version 11.2.202.233


I had the same problem. VLC did not work either.

I have updated Intel drivers and it worked for me :)

Link to Intel driver updater


Can't connect to select wi-fi networks in ubuntu 17.10

I had the same problem with Ubuntu 17.10 in a Starbucks in Montreal. I was able to fix it by removing the manual configuration of my wireless NIC.

In gnome-shell:

Settings > Network > Gear icon on your wireless NIC > IPv4 tab > Change to Automatic (DHCP)

You will probably need to do the same for IPv6

Settings > Network > Gear icon on your wireless NIC > IPv6 tab > Change to Automatic, (DHCP) only


When updating, is using "sudo apt-get update" the same as using the GUI update on desktop?

If you do the command line updates, there are a couple of extra steps:

sudo apt-get update updates the libraries such that your computer can tell what packages are outdates

sudo apt-get upgrade upgrades most packages

sudo apt-get dist-upgrade upgrades packages which require greater system modification.

A combination of ... update followed by ... dist-upgrade and then sudo reboot is the same as the gui

There is a very good link to the apt-get upgrade commands here


Connect to internet via captive portal from console

wicd-curses is a ncurses network manager.

Alternatively you can do it manually.


How to force to Linux to connect only 5GHz channel?

For any distro with Network Manager, this is an editable parameter in the nm-connection-editor UI. You may wish to change this setting for each saved connection since not all routers are created equal. This feature has existed in Network Manager since 2008 (which appears to correspond to NM Applet >= 0.7.2).

Run nm-connection-editor or open your network settings and edit your WiFi connection. If you're on a distro like Arch, you might want to install this package.
There is a Band option under the Wi-Fi tab that will let you select Automatic, A (5 GHz), or B/G (2.4 GHz). If you don't have the 5 GHz option, you might need to debug further (I can't say definitively from lack of experience with older systems).


It's a kernel module issue tracked in this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1548587


Looks like your bootloader is on separate partitions.

1) When you burn the iso image to your usb stick for Ubuntu installation, assuming you're using Rufus Tools, make sure you enable both the UEFI and BIOS boot option for your usb stick.

2) When you install Ubuntu, in the partitions page, make sure to install the bootloader on the same partition (or disk) as Windows.

What motherboard did you use? It's strange to hear that you can't switch to legacy mode. If the problem persist, try to burn the USB stick using only UEFI mode or whatever mode you have Windows installed.


So it turns out it wasn't the settings in dconf-editor it was looking for specifically, but somehow the schema had gotten out of sync.

First try reinstalling the package gsettings-desktop-schemas; it didn't work in my case:

If that doesn't work, and this is a bit of a hack, but using the information from the Gnome Shell docs, I recreated the schema entries and compiled them. Gnome Shell lives!

Add missing values

Using (after backing up the file)

  gksudo gedit /usr/share/glib-2.0/schemas/org.gnome.desktop.a11y.magnifier.gschema.xml

add the following somewhere in the middle:

<key type="b" name="invert-lightness">
  <default>false</default>
  Invert lightness
  <description>(none)</description>
</key>
<key type="d" name="brightness-red">
  <default>0</default>
  <range min="-1.0" max="1.0"/>
  Brightness (red)
  <description>Values range between -1.0 to 1.0, where zero indicates no change in brightness, negative values indicate a decrease in brightness and positive values, an increase.</description>
</key>
<key type="d" name="brightness-green">
  <default>0</default>
  <range min="-1.0" max="1.0"/>
  Brightness (green)
  <description>Values range between -1.0 to 1.0, where zero indicates no change in brightness, negative values indicate a decrease in brightness and positive values, an increase.</description>
</key>
<key type="d" name="brightness-blue">
  <default>0</default>
  <range min="-1.0" max="1.0"/>
  Brightness (blue)
  <description>Values range between -1.0 to 1.0, where zero indicates no change in brightness, negative values indicate a decrease in brightness and positive values, an increase.</description>
</key>
<key type="d" name="contrast-red">
  <default>0</default>
  <range min="-1.0" max="1.0"/>
  Contrast (red)
  <description>(none)</description>
</key>
<key type="d" name="contrast-green">
  <default>0</default>
  <range min="-1.0" max="1.0"/>
  Contrast (green)
  <description>(none)</description>
</key>
<key type="d" name="contrast-blue">
  <default>0</default>
  <range min="-1.0" max="1.0"/>
  Contrast (blue)
  <description>(none)</description>
</key>

Recompile the Schema

sudo glib-compile-schemas /usr/share/glib-2.0/schemas

Once you next logout, select "GNOME" at log in and it should be fixed.

(Note: If the above xml data I recreated could be updated at some point from a working installation, I think that would be even better.)


How do I turn off Hold Super for shortcut list?

Make sure you have compizconfig-settings-manager A.K.A. CCSM(installable from Apt-get or software centre) then launch it and go to "Ubuntu Unity Plugin" and then to "Experimental" and then uncheck the "enable shortcut display". Hope this helps!

Can I define keyboard shortcuts using the Super key?


Command history seems to be missing the first 75 lines

First of all, If you need to get a backup of your command line history, then just copy this file:

~/.bash_history

Remember that you have to close all your terminals or run history -a to append all commands from those history sessions to the history file.

  If not, is there any way that I can see lines 1 to 75?

Every command that has been saved in your history is available at ~/.bash_history file, to see all of them open a terminal and run:

cat ~/.bash_history

To get an output similar to history command with numbering run:

cat -n ~/.bash_history

  Do the line numbers just start at 76 for some reason?

Run this command:

grep "^HIST" .bashrc

You have to get an output similar to:

HISTSIZE=1000
HISTFILESIZE=2000

As I said before ~/.bash_history keeps command-line's history.

The HISTFILESIZE show how many command should ~/.bash_history keeps track of, for mine it's 2000.
And HISTSIZE is the number of commands that history command (shell built-in actually) keeps track of.

When you open a terminal and run history, it will picks the last HISTSIZE number of commands from ~/.bash_history and shows that to you.

If you run new commands it will remove the older ones from session and append the new ones at the end of its list so the number of commands will match HISTSIZE.

I guess while asking the question you had 74 command more than of HISTSIZE in your .bash_history and that's the reason why it starts at 75.

From man bash:

HISTSIZE

  The  number of commands to remember in the command history.

HISTFILESIZE

  The maximum number of lines contained in the history file.


(Only) YouTube Videos automatically fast forward

In my case I solved it this way; First install "PulseAudio Volume Control" if it is not installed yet;

sudo apt-get install pavucontrol

Now start "PulseAudio Volume Control" and go to the Configuration tab. Under "High definition Audio Controller" I had "Digital stereo (HDMI) Output" selected. I had to change that to "Off". I also had to change the build in audio profile from digital to analogue, otherwise I didn't hear anything.

edit: after the change above, it still happens sometimes. But I can use pulseaudio -k to restart pulseaudio. (-k will kill it, but it will restart automatically).


Webapps do work in 14.04 LTS

If they don't work for you, then you most likely have some missing packages.


How do you disable launcher without disabling global menus in 11.04?

long answer: you can get the global menu behavior another way,

in classical mode you can add the 'indicator applet app menu' to any panel (i recommend the top for emulating the unity global menu)


Ubuntu 12.04 Gnome Classic: white background for systray icons

Finally, solved: switched from Xinerama to TwinView


How to force Wine into acting like 32-bit Windows on 64-bit Ubuntu?

It turns out that to make Wine run in 32-bit-only mode, one needs to:

Remove ~/.wine if it was already created in the 64-bit mode. (WARNING: This removes all stuff you have installed under Wine. Move it aside instead if you want to avoid dataloss.)
Set the WINEARCH environment variable to win32 i.e. export WINEARCH=win32
Then run wine (or winetricks, etc.)


First, I suggest you try kubuntu with the live USB.

If you like that, then install kubuntu-desktop ;

sudo apt-get install -y kubuntu-desktop

The desktop meta package will install the missing parts / functionality.


There's actually no need.

https://one.ubuntu.com/services/music/

Stream your music, just ask them to make a web app and I think that'd be it! I don't think Canonical could afford the licences in which Apple can afford for the match service anyway.


You have an additional file manager installed in addition to the default file manager, nautilus. The appearance of the screenshot makes me suspect that the second one is nemo. They are different file managers, but they have similarities. That is because nemo actually has been based on nautilus many years ago, and then has continued its own development. These file managers are deeply integrated into the system. It is not a good idea to have them installed together within the same desktop environment.

It is difficult to troubleshoot the "sometimes non starting" issue. Having also nemo installed could be part of the issue, but there might be other issues with your current operating system.

Warning ahead: make sure you have an updated backup of your user data before attempting troubleshooting

1 - I would advise as a first troubleshooting step to remove nemo from this system. You can use software center, but a more complete removal is achieved with following terminal command:

sudo apt purge nemo && sudo apt autoremove

2 - If the issue persists (after a reboot), then check whether it is related to your account settings. Create a new account, and log into that new account. If the issue is gone, you know it is related with issues in your current user account settings. You may then permanently move to the new account, or reset your existing account.

3 - If the issue persists in a fresh account, then you may try whether purging and reinstalling nautilus solves the issue. To that aim, you should boot in a recovery terminal with root permissions and network access, purge nautilus and then reinstall. A good way to do this is by reinstalling the ubuntu-desktop metapackage, as that will check that everything belonging to a standard Ubuntu desktop is in place:

apt purge nautilus
apt autoremove
apt install ubuntu-desktop

4 - If this also fails, you will need to reinstall fresh. This will give you a fresh and clean new operating system, which will not be plagued by the default file manager, nautilus, sometimes not starting.


There's a program that moves the mouse when it detects you are away, or idle.

https://github.com/carrot69/keep-presence/

You can install it from snap:

sudo snap install keep-presence

Then run it:

keep-presence --seconds 30

It will move the mouse after 30 seconds if it detects that you are idle.


Ubuntu 14.04 server tomcat7 won't start on reboot

Check this to see if it is related:

Tomcat7 installation failed via apt-get on Ubuntu 14.04

Basically, there is a dependency that may be missing (fixed with sudo apt-get install libtomcat7-java), but assuming you already did this, it seems the apt-get package is generically FUBAR and requires post-install massaging (which typically I don't recommend as apt-get reconfigure or other package commands may result in undesirable consequences).

Thus, installing the .tgz (from Apache) manually may be the most stable path of least resistance.


I can't remove Lucida Grande from Ubuntu 10.10

You could install a Gnome font manager:

sudo apt-get install font-manager

And then

Applications->Graphics->Font Manager

Then find the "Manage fonts" button on the bottom to remove fonts.
Does this help?


If a package is available as both a deb and a snap, which method is preferrable?

Generally speaking, I would say you should stay with DEB for most applications that rely on system libraries. This has the advantage that if you update this one library e.g. for security reasons, all applications using this library will benefit, even if the maintainer of the original application is unaware of the vulnerability.

SNAPS are good in cases where you are interested in updating particular applications without updating your entire system. E.g. you are on an LTS release, but want to have the newest version of a particular application.
Compared to PPAs where the applications have to be compiled against the "old" system wide libraries, in a snap the applications bring their own libraries. This is easier for maintainers and may keep you from landing in dependency hell if you happen to otherwise use a lot of PPAs.


Your unmet dependencies problem is caused by the MySQL APT Repository repository. MySQL Server 5.6 from the MySQL APT Repository requires libstdc++6 >=4.9 however MySQL Server 5.6 (mysql-server-5.6) from the default Ubuntu repositories requires libstdc++6 >=4.6. When you install the version of MySQL Server 5.6 (mysql-server-5.6) from the default Ubuntu repositories, it automatically resolves all the package dependencies for you.

To fix the problem you need to remove the MySQL APT Repository and then uninstall all the packages that you installed from the MySQL APT Repository.

To remove the MySQL APT Repository, use a command of the form:

sudo dpkg --remove package-name

where you replace package-name with the package name of the MySQL APT Repository you previously installed. Or else you can also search in the Ubuntu Software Center for the MySQL APT Repository .deb package that you installed and remove it from there.

Then install the MySQL Server 5.6 with the command:

sudo apt install mysql-server-5.6


To properly play disc media on Ubuntu, you will need to install and setup libdvdcss. Instructions and more information can be found on the Ubuntu Help website.

Banshee Media Player

Banshee used to be the default music player in Ubuntu, before Rhythmbox, and plays a wide range of media formats (including CDs and DVDs). It is available for all supported Ubuntu versions in the Ubuntu Software Center.

VLC Media Player

Available on all three major operating system platforms, VLC Media Player is a popular media player that can, like Banshee, play a variety of media formats. It was created by the VideoLAN team, and makes use of libdvdcss. It is available for all supported Ubuntu versions in the Ubuntu Software Center.


error: Unable to initialize the encoder: Transport library initialization error

I finally found the solution for my question. Apparently mpegts is not the correct output format to encode audio in aac_ld or aac_eld. I replaced mpegts with nut.

ffmpeg -y -f alsa -ac 2 -ar 44100 -i hw:0 -acodec libfdk_aac -profile:a aac_eld -b:a 320k -r:a 48000 -f nut udp://192.168.1.60:1234?pkt_size=1316

but this format can only be decoded using ffplay.