Kazam is available in the official Ubuntu repositories, but it's an old version (1.4) and ppa:kazam-team/unstable-series has not been updated for 16.04 (and does not include debian patches).
You can install Kazam 1.5.4 from my own ppa (it provides the debian packages up to 21.04):
sudo apt-add-repository ppa:sylvain-pineau/kazam
sudo apt-get update
sudo apt-get install kazam


How to discover the package a utility belongs to

Check with apt-file because in your case nvcc is part of a package (nvidia-cuda-toolkit).

First you have to install apt-file

sudo apt-get install apt-file
sudo apt-file update

Now start

apt-file search nvcc

or

apt-file search --regex /nvcc$

or

apt-file search $(which nvcc)

To check why the package nvidia-cuda-toolkit was installed use aptitude.

sudo apt-get install aptitude
aptitude why nvidia-cuda-toolkit


finally i found out this link which answered my question,  mono sandbox runs untrusted code with trusted code,  it was made for moonlight and they have even mentioned stackoverflow in it

http://www.mono-project.com/docs/advanced/sandbox/


Ubuntu 14.04.01: inxi -Z -i WAN None detected!

You probably were banned from the service is my guess due to abuse. How many times an hour were you running this command? Post the contents of that script that runs that command, that might show the source of the problem.

Where are the servers located? And why do they need their WAN checked? Most servers have static IP addresses, except for home things I guess.

Note that inxi has an option to set alternate IP WAN address source, you have to set the script configuration file with it.

However, inxi requires a specific format, where there is one single line of output from the IP source, and the ip address is the last item in that line of output, I believe it's the last.

Anyone who plans on sending a large number of requests to remote addresses without prior approval from that source in general can count on getting banned from those services, as a rule.


You appear not to be running the Remmina version packaged with Ubuntu. It should be version 1.0.0-1ubuntu6.1 for Ubuntu 12.04:

$ apt-cache policy remmina
remmina:
  Installed: 1.0.0-1ubuntu6.1
  Candidate: 1.0.0-1ubuntu6.1
  Version table:
 *** 1.0.0-1ubuntu6.1 0
        500 http://nl.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0.0-1ubuntu5 0
        500 http://nl.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

Rather than trying to find out why your current installation doesn't work, you might just want to run the Ubuntu version. Make sure you've uninstalled other versions, removed local builds, etc. Then install it using your package management. If already installed (to some extent), do this:

sudo apt-get remove --purge remmina remmina-\*
sudo apt-get install remmina


Windows 10 boots to purple screen with broken diagonal lines from grub menu after installing Ubuntu 18.04

Boot into Ubuntu by selecting it from the GRUB menu (GRUB menu screenshot in step 4).

Open the terminal and run sudo fdisk -l

Restart your system with sudo reboot

Select Windows 10 from the GRUB boot menu.

It may boot into safe mode.

In Windows 10 Start menu type System Configuration -> select Boot tab -> uncheck Safe boot -> click Apply button -> click OK button.

Reboot again with sudo reboot.


Can i use grep to search words on the content that i already have in terminal

Not exactly --

You have to copy the whole terminal content and save them into a file, before you can use grep to search words on the content.

Copying the content from terminal various from terminal to terminal, but I bet yours has a menu which allows you doing so.

If you can plan ahead, check out script - make typescript of terminal session.


How to install Ubuntu onto a 2GB flash drive?

Try the Mini ISO image. Click here to download it (for Ubuntu 11.04 32-bit).

For more information take a look at this question:

How can I reduce the Ubuntu install size to the minimum, with GUI?


how can I prevent Ubuntu from sleeping when plugged in?

This should be controllable in the power section of settings. Suspend & Power Button > Automatic Suspend, as seen here https://i.imgur.com/ykGJ3x3.png


Kill the notify-osd program. That'll stop it from notifying until you reboot.


How can I install things on a mounted filesystem?

You can install from source and tell the system to compile the software with a specific path. Biggest issue: dependencies ... you need to sort those out yourself. And install them from source too.

I would advice to use a source-based distribution rather than Ubuntu if you want to go that path. Like Gentoo, LFS, Crux.


Can't download libprotobuf8 from trusty with aptitude

Couldn't get to install with suggested answers so downloaded the file from http://mirrors.kernel.org/ubuntu/pool/main/p/protobuf

and

sudo apt install ./libprotobuf8_2.5.0-9ubuntu1_amd64.deb


How can I get boot menu after Ubuntu installation?

Since i can't comment :
 possibly a duplicate question

Second thing: As you have stated

  In windows, System and security>System>Advanced system
  settings>Advanced>Startup &recovery>Settings: lists windows 7 as the
  default OS and doesn’t give me a choice to select Ubuntu in the drop
  down menu.

windows can't handle the ext4 file-system(Ubuntu partition) by default hence you can't access Ubuntu partition while in windows without a third-party software.


How can I change the prompt of the terminal permanently

Test it with this:

export PS1="gcc :\w\$ "

If if its what you want, then change it in your .bashrc file:

gedit ~/.bashrc

delete or comment out this line:

PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

and replace with

PS1='gcc :\w\$ '

note if your username is "gcc" then you could replace gcc with \u

Hope that helps. More info on PS1 here.


ubuntu 16 battery indicator has disappeared

Try reinstalling it:

sudo apt-get remove --purge indicator-power
sudo apt-get install indicator-power


Can't get out of console mode. Screen dies after 10 minutes

I got around the problem for now by switching from lightdm to GDM. Now doing more testing.


How to selectively transition from safe mode to normal mode?

Modules:

You get of the list of all loaded modules with the command:

lsmod

To compare them, you redirect the output to a file:

lsmod > lsmod.savemode

restart in normal mode

lsmod > lsmod.normal
diff lsmod.normal lsmod.savemode

diff might need to be installed. A more comfortable tool for viewing is xxdiff, which needs to be installed too:

sudo apt-get install xxdiff
xxdiff lsmod.normal lsmod.savemode


ubuntu gnome 15.10 error with using bumblebee optirun: KMS not enabled

Remove bumblebee and use nvidia-prime to switch between the two graphics solutions instead.

First identify your NVIDIA graphics hardware - open a terminal and execute:

lspci -k | grep -EA2 'VGA|3D'

Search for available drivers on the NVIDIA Drivers website.

Update :

Uninstall every NVIDIA related software ...

When the GRUB boot menu appears : Highlight the Ubuntu menu entry and  press the E key.
Add the nouveau.modeset=0 parameter to the end of the linux line ... Then press F10 to boot.

When the login screen appears press Ctrl+Alt+F1.

Enter user name and password - then execute :

sudo apt-get purge nvidia* bumblebee
sudo reboot

Update :

Install the latest stable NVIDIA drivers ...

When the GRUB boot menu appears : Highlight the Ubuntu menu entry and  press the E key.
Add the nouveau.modeset=0 parameter to the end of the linux line ... Then press F10 to boot.

When the login screen appears press Ctrl+Alt+F1.

Enter user name and password - then execute :

sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot

Use the NVIDIA X Server Settings application (Prime Profiles) to switch between the two GPU's.


Touchpad not working properly on ASUS UX330U

I also faced a similar problem. I noticed that it works after waiting for a about 10 secs or else by locking the screen again and reentering password. I know there exists a better method but this works for me.


[update, 12/29/20]. I know it's been a few years.  I also realize that I am not sure if I did, or how, to mark my question answered, hence why it may still be opened, so thought I would update in case it helps someone else.  I ended up using Avago (LSI Logic > Avago > Broadcomm) HBA adapters and in Ubuntu 16 through 20 (server and desktop) the cards work perfectly and I didn't need to install anything for them to work (no special drivers required).  I used 9211-8i, 9212-4i4e, (pair of) 9206-16e (which ran too hot for a non-server case, even though I had a boat load of fans, and added some to the card heat sink, but that's another story), and a (pair of) 9202-16e which I am using today on an old i7-4770K/Asus ROG mobo.  The list provided in the comments below by Sylvain were helpful and got me in the right direction to help make the selection.  I ended up using the HBA cards (IT mode) for static media to support about 50 TB of storage (backed up separately since the media doesn't change, no need for live mirroring, and no need for excessive performance, so no need to stripe it), and I also run 2 MDADM mirror arrays for 6TB and 10TB for desktop backups and critical storage needs.
The 9206-16e cards are x16 (physical) cards, PCIe 2.0, about 13 watts, and working in 2x x16 slots, that are running in x8 mode (max operation for the cards is x8 each).  I had tried the 9206-16e's because they were PCIe 3.0, and x8 cards (physical) running x8, but due to heat from about 28 watts per card, and insufficient air flow, they would shutdown when they overheated.  In any case, streaming multiple instances of 4K, 1080P (tested 1x 4K, 3x 1080P, and 2x 720p instances simultaneously) and the controller cards and the drivers had no issues keeping up.


How do add a new line when an expression is found in a text file?

There are several ways to do it. For example, you can write a small program or script to do the work, or use a text editor capable of formatting HTML, or one that can do a search/replace using regular expressions.
I'll show you the last two options, using jEdit (sudo apt-get install jedit),  although there are plenty of other editors you can use.

Auto format the HTML text

You'll need one of the "Beauty" or "XML" plugins for jEdit. In jEdit, go to "Plugins" -> "Plugin Manager...", tab "Install", check "Beauty" or/and "XML", click button "Install". If you now go to the tab "Manage", the plugin(s) should be listed there.

To use Beauty, you'll need to make sure that the html formatter is selected. Go to "Plugins" -> "Plugin Options...". In the left tree, open "Plugins"/"Beauty"/"Modes". In the right list, select Beautifier html:beauty for Mode html.

Click OK. Now open your file and check that the edit mode is html (status bar, bottom left)

Run the plugin by going to "Plugins" -> [initials] -> "Beauty" -> "Beautify Buffer".

Or, to use XML, just go to "Plugins" -> [initials] -> "XML" -> "Indent XML".

Search/replace using regular expressions

Load your file in jEdit, press Ctrl+F to open the "Search And Replace" dialog and change the options so that it looks like this:

That is: Search for: (]*)?>.*?). Replace with: \n$1\n. Be careful that "Regular expressions" is checked. Now press "Replace All" and all links should get a new line before and after. If you want the new line only before the link, replace with \n$1 instead; if you want it only after, replace with $1\n. Here's the reference of regular expressions in jEdit.

I tested the replace with:

Test

first linkpagesmt
more  third  text

Which resulted in:

Test

first link

page

smt
more
 third
 text


Trouble installing Maya 2020 in Ubuntu 18.04

I figured it out:
The instructions substituted a dash for an underscore.

It says I should enter
$ sudo apt-get install ./adlmflexnetclient-17.0.49-1_amd64.deb
but it's supposed to say
$ sudo apt-get install ./adlmflexnetclient_17.0.49-1_amd64.deb


To activate the speaker driver that produce beeps only for current session use the following command in terminal:

 sudo modprobe pcspkr

To disable it again, run:

sudo modprobe -r pcspkr


BackendException: Could not initialize backend: No module named gi.repository

This worked for me:

sudo apt install python-gi

maybe you need this too:

sudo apt install duplicity


Problem in concatenating 3 strings in bash script

The script has  been edited in windows format (with a CRLF end of line by the editor). Apart the fact that's a /bin/sh and not /bin/bash, you can use

echo -E $v3

in order to suppress the \r (carriage return), as per any other escape char.


How to make the top bar of my terminal say what command is running?

Taken from Bash - Update terminal title by running a second command · U&L and slightly changed:

trap 'echo -ne "\033]2;$(history 1 | sed "s/^[0-9 ]* \+//")\007"' DEBUG

This (ab)uses the DEBUG signal as a trigger to update the title with the last entry from your history, i.e. the last command you executed, via an XTerm Control Sequence. Add the line to your ~/.bashrc to have the feature enabled in every new terminal window.

To print other command output alongside in the title, say the current directory with pwd followed by ": " and the currently running command,  I recommend using printf as follows:

trap 'echo -ne "\033]2;$(printf "%s: %s" "$(pwd)" "$(history 1 | sed "s/^[0-9 ]* \+//")")\007"' DEBUG

Some terminal emulators allow you to specify a dynamic title and even give you the command name as an option so that you don't even need to fiddle around – I searched and found it in yakuake's profile settings.


juju --version will return the installed client version. You can also use the juju version syntax.

All of the commands can be listed by running juju help commands


Clone LVM based installation to larger drive and extend root partition to use new space

Boot up on a live CD/USB and then use dd to clone from the old disk to the new one:

dd if=/dev/sda of=/dev/sdb

Shutdown and remove old drive to avoid vg conflicts
Actually what I did is clone /dev/sda to a file on third drive so I could a) have a backup and b) start from scratch fairly easily.
If you run the dd step again, reboot as pvdisplay will still show the old statistics.

shutdown -h now

After booting up on live cd/usb again, sdb becomes sda

use parted to create a new partition after all existing partitions. I found parted to be easier than fdisk in this case because you can just tell it to use all available space

gparted /dev/sda

Now create a new physical volume. Some people suggest changing the existing pv size (pvresize --setphysicalvolumesize), but this never worked for me and resulted in errors at the lvextend step

pvcreate /dev/sda3 (The new partition)
vgextend /dev/vgname /dev/sda3

You should now see the additional free space

vgdisplay

Apologies for the lack of output, I'm not running all of this again :D

Now we need to extend the lvm partition. Note that if you have a swap partition at the end, don't worry, lvm handles that for you.

lvextend /dev/vgname/root -L+150G

(vgdisplay showed you how much space you could add)

lvscan

This will show you that the space has been allocated, but we're still not quite there, df won't show the additional free space.

e2fsck -f /dev/vgname/root
resize2fs /dev/vgname/root

Now we should be there, if you mount up /dev/vgname/root, df will report the new partition size and free space.

Remove your live CD/USB and reboot, your install should work.

These steps worked with a Ubuntu Server 16.04.2 install and a Ubuntu 16.04.2 live USB.


Laptop Suspended During Upgrade to 17.10

You session manager probably froze due to the upgrade. I you are still on the lock screen, you may try to switch to console with CTRL+ALT+F3.

In worth case, nothing is lost as you should able to resume the upgrade with the following process :

How do I resume a release upgrade?

If you are unable to switch to terminal and force reboot is failing, you should be able to drop in rescue mode, and in worth case, you will need to boot from a live CD/USB and do the following process.

# Identify the partition where is installed your system
sudo fdisk -l

# Mount your partition (replace xx by the correct partition)
sudo mount /dev/sdxx /mnt

# Bind system directory
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo mount --bind /run /mnt/run

# Enter in chroot
chroot /mnt

# Fix potential installed package
sudo dpkg --configure -a

# Fix potential dependencies issues
sudo apt -f install

# Finalize the upgrade
sudo apt dist-upgrade

After that, just close your terminal and restart your system, everything should be upgraded.


How to use multiple cores to run a program

A program must be made to use multiple cores. The programmer needs to write a instruction for each core.

If the program you are running don't use it, it never will without a update/upgrade.

  What can I do to speed up my program?

You can disable some cores and overclock the one that is left. But first ask yourself if the program needs that speed. Or rewrite the program if possible.


How do I search shell command history with a text editor?

From man bash:

HISTFILE
    The name of the file in which command history is saved.
    The default value  is  ~/.bash_history.
    If unset, the command history is not saved when a shell exits.

So, the variable HISTFILE will contain the filename where the history will be saved.

$ echo "$HISTFILE"
/home/user/.bash_history

You can now search for the pattern:

$ grep "vim" "$HISTFILE"
vim foo.text
vim bar.text
vim file.txt

As @Dennis has pointed out, if you want you can run history -a to append the command history of the running session to the $HISTFILE file. Basically the commands will be automatically appended once you close a session, history -a will do the same thing right at that instant.

Run help history to get more idea on the history builtin itself.


How to download a specific version of Duplicity

http://packages.ubuntu.com/search?keywords=duplicity

so we want the raring version: http://packages.ubuntu.com/raring/duplicity shows:

The i386 leads to: http://packages.ubuntu.com/raring/i386/duplicity/download and the amd486 leads to: http://packages.ubuntu.com/raring/amd64/duplicity/download where you will find the actual .DEB file for download.
In short:

download i386
download amd64

and after it finishes double click the download and Ubuntu Software Center will do the installation. This does not always work for any download: it is possible that a package depends in something else that is not installed. The 2nd link above (this one) shows what packages it depends on.


gnome icons messed up on top bar - show white blocks

It seems the current icon theme somehow got broke.

Open GNOME Tweak Tool and change the icon theme to one that works properly.


Unity does not load when selecting Xorg open source radeon driver

This likely happens because you have a card that is not well supported by the open source drivers (which are still under a heavy state of flux in their development, especially with newer cards).

If Unity does not detect certain features in your driver, or encounters a bug, it will fail to load. This is why you would have to use the proprietary drivers.

To determine the exact problem, you can run Unity from a terminal (even on a TTY) and see what output it gives you with either driver. If it is crashing with the Open Source drivers you will most likely see "segfault" or something similar, and if it fails to load it will report why.

With this information in hand, you can then report a bug using ubuntu-bug unity, and describe what information you got on the command line output in your bug report.


Graphic elments fall apart after installed new RAM


With /Home you are probably referring to what in Nautilus is signified with 'Home'. The name of this folder actually is not "Home". This folder is named /home/ in the filesystem. /home is the folder which contains all the users Home-folders. (Which explains why you need sudo to do anything there.) /home/username is the personal folder of that user.

So, you can type cd /home/ and press tab to see which options you have (or if you're the only user it will autocomplete your username). ls /home will list all the files and folders in /home. If you have anything there, I would highly recommend moving it to your personal folder, since that's much cleaner.

Faster ways you can cd back to it, are cd (without arguments) or cd ~ (with a possible path behind it, like ~/Pictures )


Unable to connect to remote server via SSH (requires public key)

If you have been given the .ppk file by the sysadmin, you can use puttygen to create the ssh key files (install putty-tools from software centre)

Install putty:
sudo apt install putty putty-tools
Create the public key file:
puttygen /path/to/puttykey.ppk -L > ~/.ssh/id_rsa.pub
Create the private key file:
puttygen /path/to/puttykey.ppk -O private-openssh -o ~/.ssh/id_rsa

also, there are some mac instructions  which should also work

Note that when running command

puttygen /path/to/puttykey.ppk -O private-openssh -o ~/.ssh/id_rsa

it may ask for password to decrypt the key, plus you should run it as the user which will make the ssh connection so that it stores the key in the correct directory (the ~ symbol is equivalent to the home directory of the current user)
Then after checking the chmod permissions are correct you can use

ssh -p 52 user@server.com


How to solve [Errno 30] Read-only file system

I found out what to do.
I followed
https://developer.ubuntu.com/en/start/ubuntu-for-devices/installing-ubuntu-for-devices/ (archived)
and skipped the actual installation. There is a part Enabling read-write mode which fixed this problem. It says:

Enabling read-write mode
By default the system is read-only. You can switch to read-write mode,
although this disables Ubuntu system upgrades. The main purpose for
this is developing the Ubuntu system directly. This is not required
for developing apps or using the system normally. Recovering from
read-write mode is possible but requires reinstalling the system from
scratch.
Warning: Switching a device to read-write mode (and/or recovering from it) is an advanced feature and may result in complete data loss.
It also disables automatic over-the-air delta updates. Accepting a full over-the-air update after making a device writable may undo
changes you have made.
$ phablet-config writable-image

The system reboots in read-write mode.


How to install Ubuntu on a dell latitude 5400 with WD SN520 NVMe SSD?

After doing a test with another disk from an older machine (also a dell but another smaller nvme (toshiba)) were installation was succesfull.
I checked again on the Dell support site and found a new BIOS firmware, released last week. I applied it and it and booted with Linux installation media, and successfully installed on the WD nvme.
I am not sure but I suspect that this firmware enables the mainboard to force the disk to go to previous/simpler version of power managment when the OS does not support the P4 standard (APST or PCIe Active State Power Management (ASPM)) Like mentioned in this comment

Nevertheless, SATA interface must be set to AHCI instead of RAID.

I know this is bizarre (=The NVMe is using a separate PCI express interface on the north bridge and not SATA which is on the south bridge, how can this setting on the southbridge chipset influence a north bridge interface?) But it works.


Is this a kernel panic or a kernel oops?

This is a panic (look at 720139), and because all panics are oops, it is also an oop.

It looks more like a BUG in a driver than faulty hardware, that scheduling while atomic message usually is caused by a programing error, not hardware faults.


You need to execute sudo make install, instead of just make install.


You would have to install windows 7 first (So it can boot from MBR) Then Install ubuntu alongside windows. Wubi installer and I think there is a option to set a different partition to dual boot for ubuntu


Rhythmbox opens out of focus from Sound Menu

Don't worry, it's not just you. :)

The same problem was reported as a Banshee bug as well, but it was closed because this is actually a bug with Compiz. If you have a Launchpad account, you may want to click the "this affects me too" link and mention that Rhythmbox is also affected by this when it is opened from the sound menu.


I see that software is for rooting an android device.  To do so you don't need that application, or wine at all.  Android, being linux, can be rooted and modified in many ways from a linux machine (including one running Ubuntu).  Of course, it might differ from phone to phone, but there are many guides out there, and from many sources.


Where do I install the bootloader for a dual-boot system?

Since you are dual-booting, the boot-loader should go on /dev/sda itself. Yes, NOT /dev/sda1 or /dev/sda2, or any other partition, but on the hard drive itself.

Then, at each boot, Grub will ask you to choose between Ubuntu or Windows.


There have been projects to get operating systems other then iOS installed on the iPhone, however, it's not as simple as putting a bootable image on a USB and connecting it to an iDevice.  For more information regarding this see:

http://linuxoniphone.blogspot.com/
http://linuxoniphone.blogspot.com/2010/04/ive-been-working-on-this-quietly-in.html
http://code.google.com/p/iphone-linux/
http://twitter.com/#!/planetbeing

There seems to have been a lull in development lately.  The short answer to your question is that currently it's not possible to boot a Linux image from an iPad/iPhone.


Can't start my-weather-indicator under 16.04

This issue was actually fixed by the developer. See here: https://bugs.launchpad.net/my-weather-indicator/+bug/1569161


What desktop distro I should use when coming from Windows?

It depends on the person, and your personal Linux preference.  I suggest a 64 bit version of the OS if possible, since your computer can easily support it.

Heres some websites with good in-depth evaluations of different Linux distrobutions.

http://www.techradar.com/news/software/operating-systems/best-linux-distro-five-we-recommend-1090058

http://www.pcpro.co.uk/features/382288/best-linux-distros-for-2013


What is Private Ubuntu extension in Glade?

I asked myself the same question.
In the documentation we can find :
The “ubuntu-almost-fixed-height-mode” property

  “ubuntu-almost-fixed-height-mode” gboolean
Private Ubuntu extension.

Owner: GtkTreeView

Flags: Write

Default value: FALSE

Looking for ubuntu-almost-fixed-height-mode on google, it seems that this is an extension related to the ubuntu software center.
Here for example : https://github.com/mortenpi/ubuntu-software-center/blob/897c3933f5a27b6755cde72bb06329a4bc8b97b8/softwarecenter/ui/gtk3/widgets/apptreeview.py#L61
Whe can read here: https://answers.launchpad.net/ubuntu/+source/software-center/1.1.18

softwarecenter/view/appview.py:
- use "ubuntu-almost-fixed-height-mode" when available
to speed up the treeview drawing significantly


How to downgrade back to 14.04 from 14.10 without live cd or usb drive?

I don't know about downgrading ubuntu without like running into some serious problems, even upgrading ubuntu "in-place" used to cause problems often too, but backing up your home (and other important files) and then installing a new (or in this case old) version should work.

You could try fixing the usb stick to make it bootable, using gparted or fdisk should be able to set the bootable flag on the usb stick, if that's the only problem.

Sometimes the live-usb creators just don't work, you could try another different method of making a bootable usb stick, like using unetbootin or plain dd, but I really like the multi-iso method that pendrivelinux.com suggests, it works from the terminal of any linux, and you can add new iso's (if the drive has space) by just copying the whole iso and editing one grub text file. It's at http://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/ and there are programs that should do something similar if you don't want to DIY.

They recommend formating the usb to a single partition, but this isn't really necessary if you can get grub to boot & work from the 1st partition. Most usb drives come from the factory as a single partition anyway so should be ready to go, or you can use gparted to (format if needed and) make the usb bootable (set bootable flag) too.

Here's the key parts, to get grub onto the usb & setup:

Mount the usb - Type mkdir /mnt/USB && mount /dev/sdx1 /mnt/USB (replacing x with your actual usb device)
Type grub-install --force --no-floppy --boot-directory=/mnt/USB/boot /dev/sdx (replacing x with your actual USB device, often sda or sdb etc... but NOT the partition sda1 or sdb1)
Type cd /mnt/USB/boot/grub (to change directory)
Download the demo grub.cfg - Can use web browser to save it or wget: Type wget pendrivelinux.com/downloads/multibootlinux/grub.cfg (to get the grub.cfg file)

The grub.cfg is basically this, with a few more/different examples, can copy & paste this and edit to fit your specific iso's instead of wget/download, and put this into the usb's boot/grub/grub.cfg:

# This grub.cfg file was created by Lance http://www.pendrivelinux.com
# Suggested Entries and the suggestor, if available, will also be noted.

set timeout=10
set default=0

menuentry "Ubuntu Desktop ISO" {
 loopback loop /ubuntu.iso
 linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu.iso noeject noprompt splash --
 initrd (loop)/casper/initrd.lz
}

menuentry "Linux Mint ISO" {
 loopback loop /linuxmint.iso
 linux (loop)/casper/vmlinuz file=/cdrom/preseed/mint.seed boot=casper initrd=/casper/initrd.lz iso-scan/filename=/linuxmint.iso noeject noprompt splash --
 initrd (loop)/casper/initrd.lz
}

Parts to edit are the name of the iso, change "ubuntu.iso" or "linuxmint.iso" to the actual iso name you've downloaded, and the menuentry title to be more descriptive.

Then just download a live iso and copy it to the usb's root. Or you could even put them in an iso directory, but then you'd have to chance references to "/ubuntu.iso" into /iso/ubuntu.iso". And you can put as many different live iso's to try as will fit on your usb.

And, you should be able to get this method to work by copying the iso to a partition on your hard drive, and installing grub to the hard drive (if it isn't already there) and adding the appropriate grub.cfg lines to point to the iso on the HD and install from there, though a separate live usb or cd is more common and should be more tested & reliable... And if you want to overwrite your whole HD, including the iso you booted from, and have enough ram you could boot the live iso with the toram boot parameter (added to the line with noeject noprompt splash toram -- for example)


VLC Media player automatically create a blank duplicate when I open it

Try this solution  :

Open Vlc -----> Tools ------> Preferences .

Check Allow only one instance .

Click Save , and check if your issue is solved.


Yes, a RAM upgrade will always improve performance, especially in your case, where opening multiple large applications slows things down, which is an indication of insufficient memory. You can also check how much memory is in use / available  with the System Monitor tool.

I'd recommend upgrading to as much RAM as possible (4GB), since Android studio needs a lot of memory.


Resize image from command line to 1024x576

Imagemagick can do it. Install it with:

sudo apt install imagemagick

Resizing can be done like this:

convert -resize 1024x576 input.png output.png


tar cares about your present working directory at invocation time.

What you want to do is:

cd /mnt/backups/
tar -cvpzf backup.tar.gz *
cd /home/john/recover/
tar –xvpzf backup.tar.gz


No, PPA's are never part of the sources when you install a fresh copy of any Ubuntu as of 13.10. To get the standard sources, go to your dash, type "Software sources". In the window that pops up, make sure they are as shown in the screenshots:

You can choose the server that is best for your needs. And if you want, you can choose the "Proprietary drivers for devices (restricted)" ones, if you need drivers for your graphics card, sound card, etc. You may most probably not need the source code(unless you are into learning how these programs have been written).

In the above screenshot, you may see different PPA's than mine, don't worry, you don't need to select them to have the default sources.

Check for updates depending on your needs.


For those who will have same problem with me, i found the solution here:
https://github.com/Xubuntu/lightdm-gtk-greeter/blob/master/.github/workflows/distcheck.yml
it listed all the dependency it need, just do each steps indicated.
The one thing I encountered that it is not in the list is an error upon running the autogen.sh.. it cannot find autopoint
so i search the web and run: sudo apt-get install autopoint
its from:
https://dausruddin.com/autoreconf-failed-to-run-autopoint-no-such-file-or-directory/

from now, my next step is to find out how to deploy my changes in the codes to may machine. If anyone has idea, please help.
Thanks,
Mike


How to force Ubuntu use AC power instead of laptop battery

When plugged in to the AC power, the AC power is used rather than the laptop.
If you look into the bios of your computer, you may be able to set that charging should not go above a certain percentage, or should only start when below a certain threshold. Not having your battery charged 100% all the time will increase the life time of the battery.
If the battery is removable, you can consider removing it, and only inserting it when on the road. A more limited use also will increase the life time. Drawback, however, is that the computer is at risk if there is a power outage.


How to install Nvidia Geforce GTX 960 Driver

In the terminal (press Ctrl+Alt+T to open) run this

 sudo apt-get purge nvidia*
 sudo reboot

This will remove any installed nvidia drivers.

Then install the new drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361
sudo reboot


The solution was simpler than I thought... =/
When using multiple NVME drives, GPUs addresses are (in some way) changed.
All I had to do to make Gnome work was run nvidia-xconfig again (since I'm using nvidia video cards)


If you have partially installed updates you can complete those with dpkg --configure -a

You can fix broken dependencies with apt-get --fix-broken install

At that point you should be able to fully install X.


How to make Xbox joypad work with Bastion?

This is fixed in the latest package from the Software Centre.


Terminal and Software Center Dissapear, Unity will not initialize after Power Cycle

To re-install and keep files intact, keep in mind that there is no guarantee all your files will be intact.  So its best to have a backup handy just in-case.  Plus the best way that I recommend that you do a fresh install once you get all your files.

To get your files, just copy the folders that you want to save like Downloads, Documents, Music, etc. to a different partition, Re-install Ubuntu, and after the installation is done copy the folders over.

For reference, the best way you can preserve your settings is to use a separate /home partition. That way, whenever you re-install, just define your /home partition by selecting Something Else, to create manual partitions and choose not to format it. Make sure you have 3 partition. /, /home and Swap.

To get a list of applications that you have installed so you can install them once you re-install Ubuntu, you can use the Ubuntu Software Center to see installed applications.


What name to use in activation of encrypted root partition?

How to identify the name originally assigned to LUKS partition?

Identify your root partition in the broken system when booted to Live USB

We will assume the encrypted partition is /dev/sdXY where X is a letter and Y is a number.

Decrypt the root partition so we can look inside

Open a terminal by pressing Ctrl+Alt+T and enter:

sudo cryptsetup luksOpen /dev/sdXY temp_name

First, you will be asked for your sudo password. Type the password and press Enter. Next it will say:

Enter passphrase for /dev/sdXY:

Type the passphrase and press Enter. Neither the password nor the passphrase will show and the cursor will not move. This is normal. This will create /dev/mapper/temp_name

Mount the decrypted partition and see whats inside

sudo mkdir /mnt/temp_dir
sudo mount /dev/mapper/temp_name /mnt/temp_dir
sudo cat /mnt/temp_dir/etc/crypttab

The last line should show you the contents of the crypttab file which should look like:

correct_name UUID=78base79-8463-4046-a2b1-3a36b14cf42d none luks,timeout=30

Write down the correct_name to continue with the tutorial.

Undo all the steps

Type the following commands to return everything as they were before:

sudo umount /mnt/temp_dir            # Un-mounts /dev/mapper/temp_name
sudo rmdir /mnt/temp_dir             # Deletes the temp_dir
sudo cryptsetup luksClose temp_name  # Un-maps the LUKS partition from tem_name

Hope this helps


I have had a whole boatload of problems with the wireless in ubuntu, it isn't just an isolated problem nor is it something that automatically makes you an idiot if you don't understand. If it is a card that ubuntu does not have open source driver alternatives, then it is not by default supported. A famous example is the broadcom series. If it is a broadcom card, you can try pressing ctrl+alt+f1 then typing in (while connected to a network via ethernet) "sudo apt-get install bcmwl-kernel-source". I will try and find the page that goes into detail the procedure for some of the more specific cards, but you can try that to start


Cannot run conjure-up due to LXD permission denied error

https://www.ubuntu.com/containers/lxd
Before you run comjure-up openstack, you have to run sudo lxd init.


Enable external VGA output on a laptop with a broken screen

This should do the trick:

xrandr --output VGA1 --auto

Best results if you ssh into the laptop and verify the parameters with xrandr.


The system is running in low-graphics mode ubuntu 14.04

Try the following:

When you hit the log on screen type ctrlaltF1 to open a tty1 session.

Log in with your username and password.

Type

sudo service lightdm stop

and then

sudo apt-get install --reinstall ubuntu-desktop

See if that solves your problem.


Workspace switcher shortcuts do not work anymore and new windows will be placed under launcher

This typically happens when compiz plugins become un-set for whatever reason. To re-enable them you can use command line, but simplest way is via CompizConfig Settings Manager (not installed by default, so run sudo apt-get install compizconfig-settings-manager).

The example of what I have is in screenshots below. The Desktop Wall plugin is responsible for viewport (workspace) switching  , while Place Windows is responsible for placement. Make sure they are checked. Note that Viewport Switcher is unchecked , since it provides extra keybindings for switching, but the default functionality is actually provided by Desktop Wall, not by Viewport Switcher plugin


@oldfred is correct... Best to use Windows to resize NTFS partitions and reboot immediately and run chkdsk.
Make sure that you have a good backup of your important Ubuntu and Windows files, as this procedure can corrupt or loose data.
Here's an abbreviated procedure...
The use of an extended partition (sda4) makes this a little difficult. I'll outline the easiest way first, and we can add more to the procedure if we have to.
Keep these things in mind:

always start the entire procedure with issuing a swapoff on any mounted swap partitions, and end the entire procedure with issuing a swapon on that same swap partition

a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor

a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor

if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)

you begin any move/resize by right-clicking on the partition in the lower part of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window

Do the following...
Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.

boot the a Ubuntu Live DVD/USB
start gparted
move sda3 all the way left
resize the left side of sda4 all the way left
move sda5, sda6, and sda7 all the way left
resize the right size of sda7 all the way right

If it looks correct, click the Apply button.


How can I verify correct CUDA is installed on my Ubuntu 16.04?

sudo apt install nvidia-cuda-toolkit

Without login into GUI and after installation of cuda, reboot system.


You can't be able to rename a partition's label when it was mounted.

In your case it's /dev/sda1 ntfs partition which was already unmounted.So right-click on the partition and select Label.

Give the label name and apply it.


avconv seems to be the solution

avconv -i $file -map 0:0 -map 0:2 -acodec copy -vcodec copy $outfile

I put this into a loop

dir="*.avi"
for file in $dir
do
 avconv -i $file -map 0:0 -map 0:2 -acodec copy -vcodec copy $outfile
done

I did not try saving to the same file name but I assume it would not work. You can easily have this delete the old file and rename the new one. I just output to a temp directory with the same names and then moved them all overwriting the originals.

To explain The map arg. tells avconv what tracks to copy. 0:0 is the video and 0:2 is the second audio track. Then acodec and vcodec are set to copy meaning it copies the audio and video without changing it.


If you want stability and support you can use 12.04 LTS as it stands for Long Term Support and it'll be supported untill April 2017 nevertheless Ubuntu 13.10 not, but if you want to experience newer features and possibilities of Ubuntu then you can use 13.10 version but again you may experience some troubles with this version in work as it's not the LTS version and being improved from time to time, the next LTS stable version of Ubuntu is Upcoming in Spring 2014. How to install Ubuntu you can read over here and what partitions you'll be needed to work with over here


Tabbed desktop organizer for open programs?

As Uri Herra mentioned above, what I was looking for is a dock. I've installed AWN and everything is running smoothly; I'd recommend the same to anyone shuffling many windows, and to netbook users in general--it's proving to be VERY MUCH faster than the Unity launcher.

There are a number of good ones available, with Cairo Dock appearing to be the most popular (but not the lightest--check Uri's comment). Hope this helps someone! = )


Your question has been well answered here.

The gist of the answer: While keeping your laptop continuously on AC power or charging and discharging it frequently doesn't matter, what matters is its temperature; if it gets heated often, you are reducing your battery's life.


Where are the network manager configuration files?

https://help.ubuntu.com/community/NetworkManager#Editing_Network_Settings_in_GConf

That link seems pretty up to date.  Basically, can be stored in two places.  On my oneiric box, I see most everything under /etc/NetworkManager.


checking what the previous versions of a package that were installed or checking transaction records for apt

apt is just a front end for dpkg. transactions are recorded in dpkg.log you can get a list of recently installed packages with a terminal with the command zcat -f /var/log/dpkg.log* | grep "\ install\ " | sort which will give you a nicely sorted list with the most recent installation at the bottom or with the GUI by running the System Log application and choosing dpkg.log from the left menu as:

Sources: Experience and https://help.ubuntu.com/community/InstallingSoftware


Lighter in CPU/Memory Usage: Lubuntu or Xubuntu

Your case studies are indeed challenging.

Take your Grandpa PC

Pentium 2 and 64Mb RAM.

Lubuntu minimum requirements are 128Mb if using the alternate installer - 256Mb for the Graphical installer.

The recommended RAM is 384Mb just to run the LiveCD.

Therefore - I'm afraid, you will not be able to install a graphical environment on Grandpa PC.  At best you might get a text only "server" type install via a minimal ISO - i.e. you need a minimum of 64Mb to run the minimal CD.

The "old meat":

That is more promising:

Pentium 3 with 128Mb RAM - you should be able to squeeze on Lubuntu via its alternate CD.

However the minimum requirement for Xubuntu is 256Mb with 512Mb as a recommended RAM size.

I've experimented with various "low" RAM installs.  I've never tried 128Mb - but in general, I install from a minimal ISO CD and install various components manually - for example, SLIM, LXDE with apt-get install --no-install-recommends to ensure no excess packages are installed.

Typical packages you should look out for if you go this route are described in the linked question below.

Stick with a lightweight browser such as midori - abiword should be ok for wordprocessing.

Flash and general movies will struggle with your video card.  However playing music should be fine (see below)

Links:

https://help.ubuntu.com/community/Installation/MinimalCD
How do I install LXDE / Lubuntu?
Lightweight music player


Rescue data from corupted FAT32 micro SD card

Use ddrescue to make a copy of the SD card - you don't want to work off of the original.

You can use TestDisk or Autopsy to try recovering the filesystem or a tool like scalpel to carve files from the disk.

Here are some basic commands:

ddrescue

ddrescue is used in a similar fashion to dd. Namely:

ddrescue /dev/XXX /home/user/Desktop/copy_of_sd_card /home/user/Desktop/logfile

The logfile will store the information about any sectors it had trouble reading.

Source.

TestDisk

You can then use TestDisk to try to retrieve files from the image:

testdisk /home/user/Desktop/copy_of_sd_card

It has a wizard-like interface. as well. A full guide is here.

Autopsy

Autospy is a graphical interface over the sleuth kit. When you run it, it creates a web interface.

This site has a simple walkthrough on how to use Autopsy.

Also, see this


The descriptions of the options are all given in man dh_make:

   Single binary (s)
          The package will generate a single binary .deb  package.  It  is
          the standard case, so if you don't know what to do, choose this.

   Arch-Independent (i)
          The  package  will  generate  a  single  package  that  is arch-
          independent.

   Multiple binary (m)
          The package will generate multiple binary .deb packages from one
          source  package. Choose this for larger packages that need to be
          split.

   Library (l)
          The package will generate at least  two  binaries.  One  library
          package   containing  just  the  lib  in  /usr/lib  and  another
          *-dev_*.deb package containing documentation and C headers.

   Kernel module (k)
          The package will generate a  binary-all  kernel  module  -source
          package for use with the make-kpkg(1) command. It also generates
          a binary package for additional utilities,  daemons,  etc.  that
          may come with the source.

   Kernel patch
          The  package will generate a package that can be used for kernel
          patches.

For a single program, you would normally use s, but in your case, it is a shell script, which does not depend on the architecture of the target system, so pick i.
For m (multiple binary), it would generate multiple packages (an example would be the various vim packages, which are all generated from the same source package).


Which is the right location i.e. partition to install ubuntu 11.10 using wubi?

It doesn't make a difference. Wubi uses a virtual disk and that can be stored on any partition. If you have more space on one partition, then it might be more convenient to use. But there is no requirement or difference between one or the other. Note that the max space you can use for Wubi is 30GB.

Additional info:
This may not apply to you,  if all your partitions are NTFS, but the 11.10 Wubi doesn't support a standalone installation (using just wubi.exe) on a FAT32 partition at the moment (see this bug).  If you have a FAT32 partition then you should either install using a downloaded Desktop CD ISO or use your NTFS partition as there is a size limit of 4GB on FAT32 file systems.


You might want to try installing version 1.7 (oracle's one, not openjdk), and making sure it is the active version using update-alternatives and java -version.

Do note, however, that java is NOT a fast technology. Your applications are compiled to intermediate bytecode which needs to be interpreted by a fairly heavy application called the JVM. Although I don't remember ever having experienced multiple seconds of interface lag, I do know the GUI's written in java tend to be slow.

I've never noticed any difference between windows 7 and ubuntu/opensuse though (each 64-bit), but that might be due to the version: I always get the latest official java sdk (that is, from Oracle).

--

Although this might not be the answer you'd like to hear, if you don't explicitely need java (which you would if you were targetting mobile devices, I suppose) and/or if performance is important for your application, you might want to look for a native-compiled alternative. C++ with Qt would be an excellent alternative, if you're familiar with C++. It keeps your application cross-platform, without affecting the general performance.

Mono/C# comes with an option to precompile the bytecode, so you basicly have a native executable with the mono runtime included (heavy at startup, but faster than java at runtime).


Application wants access to keyring default in Ubuntu 13.10

Have you set Ubuntu to automatically login at startup or are you using a wireless connection to the network?

If yes,

click the Network Managers icon on the Panel
Edit Connections
Wireless Tab
Tick Automatically Connect and Available for all Users.


Sorry, I know I shouldn't post this as an answer, but I couldn't see a place to add a comment. Thanks!

Here's the result for:  lspci -nnk | grep -iA3 audio

john-hill@john-hill-E-4100:~$ lspci -nnk | grep -iA3 audio
00:1f.5 Multimedia audio controller [0401]: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller [8086:24d5] (rev 02)
        Subsystem: Gateway 2000 Device [107b:2019]
        Kernel driver in use: snd_intel8x0
        Kernel modules: snd-intel8x0
01:00.0 Multimedia audio controller [0401]: Creative Labs SB Audigy [1102:0004] (rev 03)
        Subsystem: Creative Labs SB0090 Audigy Player/OEM [1102:0058]
        Kernel driver in use: snd_emu10k1
        Kernel modules: snd-emu10k1
john-hill@john-hill-E-4100:~$

Here's the result of: speaker-test

john-hill@john-hill-E-4100:~$ speaker-test

speaker-test 1.0.25

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 192 to 2097152
Period size range from 64 to 699051
Using max buffer size 2097152
Periods = 4
was set period_size = 524288
was set buffer_size = 2097152
 0 - Front Left

Here's the result for: amixer

john-hill@john-hill-E-4100:~$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [0.00dB] [on]
  Front Right: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Master Mono',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 0 [0%] [-46.50dB] [off]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [0.00dB] [on]
  Front Right: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Headphone Jack Sense',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [12.00dB] [on]
  Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 31 [100%] [12.00dB] [off] Capture [off]
  Front Right: Playback 31 [100%] [12.00dB] [off] Capture [off]
Simple mixer control 'Line Jack Sense',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 31 [100%] [12.00dB] [off] Capture [off]
  Front Right: Playback 31 [100%] [12.00dB] [off] Capture [off]
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono: Playback 0 [0%] [-34.50dB] [off]
  Front Left: Capture [on]
  Front Right: Capture [on]
Simple mixer control 'Mic Boost (+20dB)',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Mic Select',0
  Capabilities: enum
  Items: 'Mic1' 'Mic2'
  Item0: 'Mic1'
Simple mixer control 'Video',0
  Capabilities: cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Phone',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono: Playback 0 [0%] [-34.50dB] [off]
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Aux',0
  Capabilities: pvolume pswitch cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
Simple mixer control 'Mono Output Select',0
  Capabilities: enum
  Items: 'Mix' 'Mic'
  Item0: 'Mix'
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 8 [53%] [12.00dB] [on]
  Front Right: Capture 8 [53%] [12.00dB] [on]
Simple mixer control 'Mix',0
  Capabilities: cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Mix Mono',0
  Capabilities: cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'External Amplifier',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Stereo Mic',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
john-hill@john-hill-E-4100:~$


Openstack Landsacpe is in https connection so port forwarding for port 80 don't work.
I added this two iptables instructions and it works! ;)

sudo iptables -A PREROUTING -t nat -p tcp -d 155.158.102.80 --dport 443 -j DNAT --to 10.1.1.102:443
and
sudo iptables -A FORWARD -p tcp -d 10.1.1.102--dport 443 -j ACCEPT

MAAS is working on http (80) so We can forward port 443 without problems.

Regards.


Fixing the problem is simple. This worked in Firefox 4.0.1 with Quake Live plugin version 1.0.433:

Go to Quake Live and login (or sign up, then log in)
The site will try to install the plugin
Instead of allowing Firefox to install your plugin, right click on the link and save the file
Open the file using Archive Manager and right click on install.rdp and 'Open With...' your choice of editor
Modify the line containing <em:maxVersion>...</em:maxVersion> so that it reads <em:maxVersion>4.*</em:maxVersion> -- or substitute whatever version or versions you run
Add a line containing <em:unpack>true</em:unpack> inside the <Description>...</Description> tag
When you save, Archive Manager will ask if you'd like to update the archive. Click 'Update'
Fire up Firefox and click Tools -> Add-Ons -> Extensions
Click the button to the left of the Search text box (in the top right) and choose 'Install Add-on from File...'
Select the XPI file which you just modified and install it
Once finished, go to Quake Live and log in
It should begin downloading all the game data you need to play
Pick a game

Here is where I found the fix (thanks to @fossfreedom). In case something changes or you run another version of linux/firefox, you can always follow it to get a good answer or a link to a good one.


System does not shut down properly (on any Linux distro)

I have a Dell Inspiron 7559 ( i5-6300HQ, Nvida geforce 960M).

After installing Ubuntu 14.04, I had a similiar issue. The CPU would halt on Shutdown or Suspend, requiring me to hold the power button to turn it off.

I found this and this answer helpful, but it only worked once.

So I wrote a script to edit that config file and update grub:

sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT=quiet splash/GRUB_CMDLINE_LINUX_DEFAULT=quiet splash acpi=force apm=power_off/g' /etc/default/grub && sudo update-grub

Then I added that script to my Startup Applications so it runs every time I open Ubuntu. I haven't had any issues since.


Xorg has high CPU load after unlocking XFCE

The culprit is described here
When executing xmodmap ~/.Xmodmap which happens on "unlock" (so the question title is basically wrong) the CPU of Xorg, Firefox and Thunderbird is going up.


Installed updates, now unity / compiz wont load

I had exactly the same issue.  Eventually I ended up here (https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1188123)

and noticed that issue arose with the xserver-xorg-intel-video package, so I did:

sudo apt-get install --reinstall xserver-xorg-video-intel

Which fixed it for me (after purging the nvidia drivers I already had, which did not fix the issue).  Someone who knows more can hopefully contribute as well.  Good luck.


Ubuntu booting extremly slow after tweaking partitions using Gparted

As you guessed, the UUID of the swap partition has changed, and that's why it's taking so long to boot. It's looking for a partition with the old UUID, timing out, and then finishing the boot, but without swap.

Since you can boot, it makes it easy to correct the problem.

Boot Ubuntu and open the terminal and do...

cd /etc # change to the /etc directory

sudo cp fstab fstab.bak # make a backup of fstab file

sudo blkid | grep swap (or lsblk -f | grep swap) # determine the UUID of the swap partition /dev/sda6.
* note the correct UUID of the swap partition. Copy it to the clipboard.

sudo swapoff

sudo pico fstab  # edit fstab

Find the lines that looks similar to this...

# swap was on /dev/sda6 during installation
UUID=071f8b0e-8e16-4f4d-90ff-a4ae9cc56e2b   none   swap  sw  0 0

STOP here if the correct UUID was already showing in the fstab file, and contact me for further instructions.

Replace the old UUID with the new UUID. You can right-click the mouse to paste the UUID from the clipboard.

Ctrl+o  # to save your edits

Return             # to confirm the filename to save

Ctrl+x  # to exit the editor

sudo swapon -a # to enable swap (there should be no errors here)

swapon # to confirm that swap is engaged

reboot  # reboot the computer

And you should be fine.


Open .blend files on nautilus with snap installed version of blender

Run the following command over the terminal

gedit ~/.local/share/applications/mimeapps.list

Or:

nano ~/.local/share/applications/mimeapps.list

Then append the following entry to the end of it:

application/x-blender=blender.desktop

Also this can be done via the following command:

echo "application/x-blender=blender.desktop" >> ~/.local/share/applications/mimeapps.list


Unable to change theme using terminal but can do via Tweaks

That key is no longer used in GNOME, window decorations are now dictated by the GTK+ theme.

To check the current theme, run

gsettings get org.gnome.desktop.interface gtk-theme

You can use set to load your preferred theme.


Ubuntu 16.04 - How to display hard disk details in computer like it does on Windows in My computer?

Menu -> Show Applications -> Disk Usage Analyzer and/or Disks should give what you want.

You can directly search for it by Power/Windows button and typing Disk. There are 2 utilities that comes by default in ubuntu : Disks and Disk Usage Analyzer. That is assuming you are using Desktop version.


How to connect and disconnect to a network manually in terminal?

This applies to 12.04+ since these are the ones I could test but could also be used in older versions. I have separated this guide into several parts, which consist of:

Part 1 Wireless Routers with no password or WEP Key
Part 2 Wireless Routers with WPA or WPA2 security Key

Part 2.1 Connecting to a WPA Router with wpa_supplicant
Part 2.2 Connecting to a WPA Router with Network Manager

Part 3 Easy Connection Via nmcli
Part 4 Disconnecting from a Wireless Router
Part 5 Deleting a Connection (Including Configuration File)
Part 6 Automatic connection when login in
Bonus How to find your network interface name via GUI

The following command lines can be used to connect and disconnect depending on the Wireless card, wireless security and wireless router settings. Before proceeding, make sure the network service is enabled (For cases where you might start Ubuntu using Recovery mode):

Depending on your Ubuntu Version, you would need to start it using one of the following way:

If using SystemD (since 14.10+):

sudo systemctl start networking

If using the Legacy init.d way: sudo /etc/init.d/networking restart

If using the Legacy Upstart way: sudo service network-manager restart

Part 1: Wireless Routers with no password or WEP Key

For cases where the wireless router has no password or WEP security, do the following:

Open the terminal and lookup for the wireless connection:

iwlist wlan0 s

(The s is for Scan. wlan0 is my wireless card but could be different for each user. Some have eth0, others wlan2.. You need sudo to execute this option.To find out the name of your wireless card simply type iwlist and press TAB. This should autocomplete the line with the network card's name. You can also type iwconfig and find the name on the list that will show.)

If you do not know the name of your wireless devices type: iwconfig which will show you your wired/wireless devices and their names. They might be something like wlan0, wlan1, eth1, eth2..
The lookup will show you all possible Access Points (AP) visible to you. After you see your router in the list try to connect to it:

If it does not have a password do the following:

iwconfig wlan0 essid NAME_OF_ACCESS_POINT

For example

iwconfig wlan0 essid CYREX

after that, make sure to use dhclient so you can get a dynamic IP in case you don't get assigned one by the router. That should leave you connected to the CYREX router.

If it has a password then do:

iwconfig wlan0 essid CYREX key PASSWORD

That should connect using the PASSWORD you gave there.

Again, do dhclient after connecting to make sure you get an IP assigned.
Making sure you are correctly connected is always good so execute iwconfig to make sure your wireless card is connected to the SSID you mentioned above. It should show your device connected and the IP assigned to you. If it does not and gives you an error like Interface doesn't support scanning try the following 2 options:

Test if your interface is UP: sudo ifconfig wlan0 up
Try adding sudo when doing the scan: sudo iwlist wlan0 s
Try bringing the device down and then back up:

sudo ifconfig wlan0 down
sudo ifconfig wlan0 up

Part 2: Wireless Routers with WPA or WPA2 security Key

For cases where the wireless router has a WPA/WPA2 password there are a few ways of doing this. I will mention the 2 most popular ones::

Open the terminal and lookup for the wireless connection:

iwlist wlan0 s

(The s is for Scan. wlan0 is my wireless card but could be different for each user. Some have eth0, others wlan2.. You need sudo to execute this option. To find out the name of your wireless card simply type iwlist and press TAB. This should autocomplete the line with the network card's name. You can also type iwconfig and find the name on the list that will show.)

If you do not know the name of your wireless devices type: iwconfig which will show you your wired/wireless devices and their names. They might be something like wlan0, wlan1, eth1, eth2..
The lookup will show you all possible Access Points (AP) visible to you. After you see your router in the list try to connect to it:

Part 2.1 WPA-SUPPLICANT GUIDE: Connecting to a WPA Router with wpa_supplicant

Type the following in the terminal (Assuming you have the wpasupplicant package installed which installs all the needed commands we will use here):

wpa_passphrase SSID PASSWORD > CONFIG_FILE

Example: wpa_passphrase Virus LinuxFTW > wpa.conf

Where Virus is the name of my router,LinuxFTW is my password and wpa.conf is the file where I want to store all of this information in. Note that you can save the file in another place, many users save the file in /etc/wpa_supplicant.conf instead of wpa.conf. The data of the wpa.conf file should be something like this:

network={
        ssid="Virus"
        #psk="LinuxFTW"
        psk=1d538d505f48205589ad25b2ca9f52f9cbb67687e310c58a8dd940ccc03fbfae
}

Up to this point, we should know the name of our wireless card interface (eg: Wlan0, eth2, Wlan2...). We now need to know which Driver is in use. for this we type:

wpa_supplicant

It should show us a lot of information, but there will be a section called **Drivers* which shows all available drivers (These are available when compiling wpa_supplicant). In my case it is like this:

drivers:
  wext = Linux wireless extensions (generic)
  nl80211 = Linux nl80211/cfg80211
  wired = Wired Ethernet driver
  none = no driver (RADIUS server/WPS ER)

The whole list is hostap, hermes, madwifi, wext, broadcom, wired, roboswitch, bsd, ndis. This can change depending on how wpa_supplicant was compiled, but the one that shows for me should be similar to the one on your system. Most users will select the wext driver.
So now that we have our wireless interface card name and the driver name, we proceed to connect to it using the already created configuration file using the following format:

wpa_supplicant -iINTERFACE_NAME -cCONFIGURATION_FILE -DDRIVER_NAME

For example:

wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dwext

Where -i is your interface card's name, -c is where your configuration file is and -D is the name of the driver you will be using to connect. If it connects correctly, then we press CTRL+C to cancel it and then execute the line again but this time we send it to the background with -B so we can continue to use the terminal:

wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf -Dwext

After that simply do a sudo dhclient wlan0 to get an IP from the router.
Some users have reported removing the Hash and leaving only the password in the config, for example:

     network={
            ssid="Virus"
            psk="LinuxFTW"
    }

Others have added the ssid_scan to the config file:

    network={
            ssid="Virus"
            scan_ssid=1
            #psk="LinuxFTW"
            psk=1d538d505f48205589ad25b2ca9f52f9cbb67687e310c58a8dd940ccc03fbfae
    }

Or even adding the Key type:

    network={
            ssid="Virus"
            scan_ssid=1
            key_mgmt=WPA-PSK
            #psk="LinuxFTW"
            psk=1d538d505f48205589ad25b2ca9f52f9cbb67687e310c58a8dd940ccc03fbfae
    }

More information about this in man wpa_supplicant.conf

Part 2.2 NETWORK MANAGER GUIDE: Connecting to a WPA Router with Network Manager

The good thing about network manager is that it comes with a couple of nice scripts and tools. Two of these are nmcli and create_connection (Neat Python 3 script) which we will use in this case.

After doing the steps mentioned previously to find your router's SSID name (Remember the part about iwlist above) we do the following:

sudo /usr/share/checkbox/scripts/create_connection -S SECURITY_TYPE -K PASSWORD SSID_NAME

Where SECURITY is the type of security the Router uses (WPA, WEP), PASSWORD is.. well..the password and SSID_NAME is the SSID Name of the Router. For example:

sudo /usr/share/checkbox/scripts/create_connection -S wpa -K LinuxFTW Virus

Will create a connection for Network Manager which should look something like this:

  $ sudo /usr/share/checkbox/scripts/create_connection -S wpa -K LinuxFTW Virus
  [sudo] password for cyrex:
  Connection Virus registered
  Connection Virus activated.

After this, you should get an IP assigned from the router. If not simply do sudo dhclient wlan0 (Assuming wlan0 is the name of your interface). You can also check your network manager's connections using nmcli like this: nmcli c which should show something like this:

 $ nmcli c
  NAME                      UUID                                   TYPE              TIMESTAMP-REAL
  Xcentral                  f51a5a64-8a91-47d6-897c-28efcd84d2b0   802-11-wireless   Fri 22 Mar 2013 02:25:54 PM VET
  Realtek                   9ded7740-ad29-4c8f-861f-84ec4da87f8d   802-3-ethernet    Tue 05 Mar 2013 01:18:31 AM VET
  Intel                     e25b1fd8-c4ff-41ac-a6bc-22620296f01c   802-3-ethernet    Fri 05 Apr 2013 10:04:05 PM VET
  Virus                     3f8ced55-507b-4558-a70b-0d260441f570   802-11-wireless   Tue 09 Apr 2013 06:31:10 AM VET

I mention the Network Manager's way because there are a couple of cases where using  wpa_supplicant will simply not work (Problems between router and wireless card, security issues, etc..). In my case, all attempts to use wpa_supplicant on one PC did not work, but in another it worked the first time I tried. So am posting both methods to help on each case and to make it easier for users to decide which one they want.

Part 3: Easy Connection via nmcli

Although we have talked about the ways to connect to it without a network manager, there is also the case of using nmcli (CLI version of the network manager) when it applies. To do this, we do the following:

Check to see which ESSID we can see:

nmcli dev wifi

Verify the name of the ESSID and we proceed on using it on the next line including the password needed for it (This includes WEP and WPA type passwords):

nmcli dev wifi connect ESSID_NAME password ESSID_PASSWORD

Here is an example of me connecting to the ESSID Linux5G

If you have multiple wireless devices on your computer, you can specify which one to use using the ifname parameter like so:

nmcli dev wifi connect ESSID_NAME password ESSID_PASSWORD ifname WIRELESS_DEVICE_NAME

For example in my case the name of the device is wlp9s0 so I would use this line to specify the device that I will use to connect with:

More information about nmcli can be obtained by using the help parameter. For example if you wanted to know about about nmcli dev you would type nmcli dev help. If you wanted to know more about nmcli dev wifi, you would type nmcli dev wifi help and so on.

Part 4: Disconnecting from a Wireless Router

There are several ways of accomplishing this:

Disconnect by "force": sudo ifconfig wlan0 down

This will turn your wireless card interface off (Driver turns off). To turn in on simply type ifconfig wlan0 up followed by a sudo dhclient wlan0. It will still show as connected if viewed by Network Manager but there will actually be no connection to the router. Trying to ping will throw an connect: Network is unreachable error.
Release the DHCP IP: sudo dhclient -r wlan0

Remember to do sudo dhclient wlan0 to assign yourself an IP again.
Disconnect using Network Manager: nmcli nm enable false

Where nm is the parameter of nmcli that manages and sets Network Manager's states. The option enable can be true or false, meaning if set to false, all network connections managed by Network Manager will be disconnected. note that nmcli does not need root permissions.

To see the status of Network Manager type nmcli nm, it should show something similar to this:

      $ nmcli nm
      RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN
      running         connected       enabled         enabled    enabled         enabled

Another way of turning the Connection On or Off (Connecting/Disconnecting) is by doing the following:

nmcli c down id NAME` - Will disconnect the connection NAME

nmcli c up id NAME` - Will connect the connection NAME

Part 5: Deleting a Connection

To delete an existing connection is fairly easy. First type in the terminal:

nmcli c

It will output something like this:

$ nmcli c
NAME                      UUID                                   TYPE              TIMESTAMP-REAL
Realtek                   9ded7740-ad29-4c8f-861f-84ec4da87f8d   802-3-ethernet    Tue 05 Mar 2013 01:18:31 AM VET
PrivateSys                86b2b37d-4835-44f1-ba95-46c4b747140f   802-11-wireless   Sun 21 Apr 2013 07:52:57 PM VET
pepe                      9887664b-183a-45c0-a81f-27d5d0e6d9d8   802-11-wireless   Thu 18 Apr 2013 02:43:05 AM VET
Virus                     3f8ced55-507b-4558-a70b-0d260441f570   802-11-wireless   Tue 16 Apr 2013 11:33:24 AM VET
Intel                     e25b1fd8-c4ff-41ac-a6bc-22620296f01c   802-3-ethernet    Sun 21 Apr 2013 08:12:29 PM VET
Xcentral                  f51a5a64-8a91-47d6-897c-28efcd84d2b0   802-11-wireless   Fri 22 Mar 2013 02:25:54 PM VET

Now let us say we want to delete Xcentral, we then proceed with the following command:

nmcli c delete id Xcentral

After doing it should look something like this:

$ nmcli c delete id Xcentral
$ nmcli c
NAME                      UUID                                   TYPE              TIMESTAMP-REAL
Realtek                   9ded7740-ad29-4c8f-861f-84ec4da87f8d   802-3-ethernet    Tue 05 Mar 2013 01:18:31 AM VET
PrivateSys                86b2b37d-4835-44f1-ba95-46c4b747140f   802-11-wireless   Sun 21 Apr 2013 07:52:57 PM VET
pepe                      9887664b-183a-45c0-a81f-27d5d0e6d9d8   802-11-wireless   Thu 18 Apr 2013 02:43:05 AM VET
Virus                     3f8ced55-507b-4558-a70b-0d260441f570   802-11-wireless   Tue 16 Apr 2013 11:33:24 AM VET
Intel                     e25b1fd8-c4ff-41ac-a6bc-22620296f01c   802-3-ethernet    Sun 21 Apr 2013 08:12:29 PM VET

All connections are stored in /etc/NetworkManager/system-connections/

If I were to look in that folder right now I would see the following files:

$ ls /etc/NetworkManager/system-connections
Intel  pepe  PrivateSys  Realtek  Virus

This is only in case you wish to edit/delete/add a connection by hand.

Part 6: Automatic connection when login in

For cases where you would like to login automatically to a wireless router here are the steps:

Open the interface file:

sudo nano /etc/network/interfaces

Add the following information (Assuming your interface is called wlan0):

auto wlan0
iface wlan0 inet static
address ASSIGNED_IP
netmask 255.255.255.0
gateway THE_GATEWAY
wireless-essid YOURSSID
wireless-key WIRELESSKEY_HERE

Save the file and reboot computer. Note that this will be saved on a plain text file which can be accessed from the same computer.

Bonus: Find your wireless connection's name GUI Style

Click on the Network Manager and go to Connection Information

Go to the Tab that holds your wireless card

In this image, this network card is named eth1 (Inside the parenthesis) but this can be different for each user. Normally it would be a wlan (Like wlan0, wlan1, wlan2...) but it can also be eth1, eth2, etc.. So you need to see what name it has.

Another way to find the name quickly is by typing iwconfig which will show all the wireless network card available.


I do not think you need any extensions or extra tools for that in Ubuntu. In nautilus, if you right click a file and paste to a text editor you will get the full path to that file, similarly for folders, also, if you right click a file and select properties, in the basic tab you can copy the filename and location.

If you select multiple files and select copy, then paste to a text editor you will get the full paths to the selected files, you can use your text editor's search and replace feature to strip away the path names and you will have only file names remaining.


How to migrate Ubuntu12.04 to LVM without any data loss

To my knowledge it has no real easy way. I've done this operation by making a backup / restore from a partition to another.

Have you watched the btrfs file system that provides some similar functionality to LVM ? I recently installed a machine with this file system and I'm very happy. In addition, there are commands to convert ext4 to btrfs.


How can I make Chromium to not save history?

Chrome Menu > Settings > Show Advanced Settings > Content Settings > Under Cookies and select Keep local data only until you quit your browser
Extension to clear history on exit.
Start in incognito mode.


Finally by putting following config to /usr/share/sddm/scripts/Xsetup you can turn screen pad off:
#!/bin/sh

# to find display
# xrandr | grep ' connected'

# Xsetup - run as root before the login dialog appears

if [ -e /sbin/prime-offload ]; then
    echo running NVIDIA Prime setup /sbin/prime-offload
    /sbin/prime-offload
fi
xrandr --output HDMI-1 --off
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal
xrandr --output HDMI-1-1 --off
xrandr --output eDP-1-1 --mode 1920x1080 --pos 0x0 --rotate normal


Touchpad disabled after login on a  Lenovo G550 laptop

synclient TouchpadOff=0

in the terminal worked for me


How do I install Ubuntu with some broken keys on the keyboard?

Just get an external keyboard and use that for the installation.

At the setup screen (boot menu) or even at the installation selection screen, no kernel is alive yet, so you have nothing to fiddle with. (read: no options, no workaround for your current hardware faults)

After installation, you can get rid of that external keyboard after you've remapped keys on your laptop's keyboard. That is a very common other question:

How do I remap certain keys or devices?


You can create aliases using the /etc/locale.alias, you should be able to achieve this:

en_US     en_US.utf8

Source:

http://manpages.ubuntu.com/manpages/wily/en/man5/locale.alias.5.html


Broadcom 4360 and Ubuntu 20.04 on Macbook Air 2015

After an automatic software update in Jan 2021 for Ubuntu 20.04 on my MacBook Air 2015 I couldn't enter the wireless network settings anymore.
I managed to get it working again, but I tried many failing recommendations so I'm not sure what steps can be left out and neither can I  remember all steps taken.
Here's what I think are the essential steps:
broadcom-sta-dkms is a proprietary driver. Ensure you have enabled this under 'Software & Updates / Ubuntu Software'

sudo apt update
sudo apt remove broadcom-sta-dkms bcmwl-kernel-source
sudo apt-get remove --purge  bcmwl-kernel-source
Reboot your computer

And finally the step that made it work again
sudo apt install --reinstall broadcom-sta-dkms
Then reboot your computer

I'm aware some of these commands overlap and even some commands might not be required, but since my computer is working now I can't verify a simplified procedure.


Is it safe to upgrade Ubuntu on Dell Vostro V130?

I tried the upgrade and it seemed to have worked.

dell-laptop-dkms package failed to upgrade to the new kernel (and I have no idea where to get it in a newer version), but the system seems to be working anyway (haven't noticed anything missing yet).


It is safe to include Kate in the sudoers so it can run sudo without password?

Well, once they had sudoers, they could edit any of your configurations, even, edit the kate binary to make a script that gave them total privileges, like:

#!/bin/bash
chpasswd victim

Then just run kate in any terminal change your password and you are screwed. So, yeah, giving root privileges without password to any editor that can manipulate files is bad a idea.


OpenStack Autopilot landscape setup stuck in check 3 - Minimum nodes

What state are the servers in MAAS? You will want them to be Ready. Can you share a screenshot of the node listing page?


Thick black edges appear after coming out of sleep

The bug and a workaround is described on https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1292830 (you can check it out for more details).

Workaround

Press Ctrl+Alt+F2 (Warning: you will be sent to a text console where you won't be able to read this document).
Press Ctrl+Alt+F7.

Once the workaround has been applied the problem no longer seems to occur on next suspend/resume.


I  just reinstall it

$ sudo apt install gnome-control-center

then rebooted


OK, got this working. No translation of the partition numbering is needed at all - logical partitions starting at #5. Therefore, the correct entry looks like this:

menuentry "Work" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/mapper/isw_hjcbchkb)'
    parttool (hd0,1) hidden-
    parttool (hd0,2) hidden+
    parttool (hd0,5) hidden-
    parttool (hd0,6) hidden+
    parttool (hd0,6) boot-
    parttool (hd0,1) boot+
    search --no-floppy --fs-uuid --set B36431DD6432B247
    chainloader +1
}


Can't install xfburn, unable to locate package

xfburn is located in the universe repository, which might not be enabled by default on your installation.

To enable it, simply run

sudo add-apt-repository universe

Then update your software index lists using

sudo apt update

Now finally you can install your application by typing

sudo apt install xfburn


How to make Cuttleflish open Chrome when computer connects to the internet

Sadly cuttlefish only provides a "connected to WiFi-Network" stimulus only at the moment. There is ongoing work on network-specific stimuli, so the best solution I can think of is to wait for the next release.


Did you go to sound preferences and see if the laptops inbuilt speaker is default? .Also see if you enabled Ubuntu sounds


There are certainly ideas for dynamic workspaces in Budgie, but it did not yet come into reality.


How do I change the default view in kate?

This is not a bug, its a "feature"!

Kate remembers the last view you had open when you save a document and tries to restore it as it was from it.

To revert that effect you need to close the current views using the View > Split View > Close Current View menu and then use the Sessions > Save Session option.

After you have done this Kate will open with a the session as you left it.


How do I install drivers for the Atheros AR8161 Ethernet controller? - update

In Ubuntu 13.04 64-bit the following has worked for me:

Download and extract this.

cd compat-drivers-2013-03-04-u/
./scripts/driver-select alx
make
sudo make install
sudo modprobe alx #Loads the module (or restart)


Why can't non-admin users install software?

Why you're asked for a password
Most software is designed to touch sensitive files, i.e. sensitive to the security of your private data or the systems integrity. This is why software installation is a potential risk and should be validated by a user who knows what he is doing. Even for open source Software you can not be sure that no bad code bits arrive with your percious new audio player until someone checked. And even then something could have been overlooked or packages could be manipulated on the way. Who knows what's hidden in the depth of the program? One user should.
Ubuntu provides a comfortable way of installing software. Software developers can rely on that comfort and make the assumption that synaptic/software center/apt enables them to access these sensitive files. Canonical checks the software repository for bugs and malicious code. But the ultimate responsibility is yours.
If the software in question does not need access to sensitive files, it can (in principle) be installed in the home folder though not in the Ubuntu way. You will for instance have to compile the source code yourself or run a custom install script. Beside the greater efforts of that it has the disadvantage of not allowing other users access to your just installed program (as they have no right to access your home-folder). They will need to installed it a second time. So this way of installation makes no sense in a large scale and in a small scale it's usually easier to type a password than to install software manually.
So that's why Synaptic aaks for a password and why it's good that it does.

Sudoers
If you are really in dire need of having other users install software without password, you can add them to the sudoers list. This however will result in a great security risk. If that doesn't concern you, consider that there a bot networks out there with great resources to break into your computer via Internet. They do this just to add your computer to the net and use it's connection and computing power without your knowledge to do all sorts of illegal stuff. They are not even after your personal data your you for that matter. They just want to hijack your PC. Still not concerned? Really? Then look at the following answer which is a small how-to on the workings of sudoers list:
How to make Ubuntu remember forever the password after the first time
Read that carefully. You could lock yourself out of the system.
The scare is over
So now you have the scare behind you are and taking the matter seriously, I can tell you it's really not that bad. If you trust the people working on your computer, and you don't have programs installed that allow remote access to your system (e.g. an ssh- or ftp-server), then it's really not that dangerous to disable the password stuff. Just don't do it without considering the worst case and think of your private data.

Overlook on the proceedings (don't do this lightly - see text and link above):
# in shell type these commands
sudo su       # in case you do something stupid, you'll have a root shell open
select-editor # (optional) will allow you to select text editor
visudo        # secure way to open sudoers list

An editor will open ADD a line like this:
confus confusion=(root) NOPASSWD:/usr/sbin/synaptic,/usr/bin/software-center

Syntax explanation: username machine=(usernameToRunCommandAs) command1,command2,.... So the above line allows confus to run synaptic and softwarecenter as root without password query. You will still need to start it with sudo synaptic or gksudo synaptic or put an alias `alias synaptic='sudo synaptic' in your shell profile.


Note: This answer is old. With 18.04 this is irrelevant. Works "out of the box"

Ill add how to get the touch keyboard as soon as I have time. But as a surfing pad this is fine.

I just bought this ((Lenovo yoga 710 (I7)) and had some issues, here's what I found.

Update your BIOS (The fan appreciates it! trust me)
Some might need a special BIOS: https://forums.lenovo.com/t5/Lenovo-Yoga-Series-Notebooks/Yoga-900-and-Ideapad-710S-Linux-Only-BIOS/ta-p/3466850

I used the normal one from late 2016 (Or newer)

If you have boot problems:

Dont disable ACPI"

Linux will boot if you add the kernel parameter: modprobe.blacklist=hid_sensor_hub
If you are happy without the gyroscope, just add this to your kernel parameters in /etc/default/grub: "modprobe.blacklist=hid_sensor_hub quiet splash"

Or press E when you are at the first boot menu for install and do the same. Exit and start with Ctrl-X

If however you want the Gyroscope to work, you need to do some extra work. I am currently running Ubuntu 16.04 with this configuration (I imagine this would work independent on your distro with some minor mods to suit the distro):

You need to get a kernel newer than 4.10rc4 from the Ubuntu mainline
You no longer need to pass the kernel parameter. Adds a couple of seconds boot time but with flip flop screen who cares

After you installed the kernel you need something that can monitor your sensor

This project is already in the Ubuntu repos:

sudo apt install iio-sensor-proxy inotify-tools

NB: You might have to put your computer to sleep and wake it up for the sensor to work. After that it keeps working.

Then if you are running Gnome 3.18 or newer, you should be good to go. Gnome should detect your tilt and move accordingly.

If you are running unity you need to add a script. Follow the guide here with one exeption. Use my modified script as the original flips the screen wrong.

Modified:

#!/bin/sh
# Auto rotate screen based on device orientation

# Receives input from monitor-sensor (part of iio-sensor-proxy package)
# Screen orientation and launcher location is set based upon accelerometer position
# Launcher will be on the left in a landscape orientation and on the bottom in a portrait orientation
# This script should be added to startup applications for the user

# Clear sensor.log so it doesn't get too long over time
> sensor.log

# Launch monitor-sensor and store the output in a variable that can be parsed by the rest of the script
monitor-sensor >> sensor.log 2>&1 &

# Parse output or monitor sensor to get the new orientation whenever the log file is updated
# Possibles are: normal, bottom-up, right-up, left-up
# Light data will be ignored
while inotifywait -e modify sensor.log; do
# Read the last line that was added to the file and get the orientation
ORIENTATION=$(tail -n 1 sensor.log | grep 'orientation' | grep -oE '[^ ]+$')

# Set the actions to be taken for each possible orientation
case "$ORIENTATION" in
normal)
xrandr --output eDP1 --rotate right && gsettings set com.canonical.Unity.Launcher launcher-position Bottom ;;
bottom-up)
xrandr --output eDP1 --rotate left && gsettings set com.canonical.Unity.Launcher launcher-position Bottom ;;
right-up)
xrandr --output eDP1 --rotate normal && gsettings set com.canonical.Unity.Launcher launcher-position Left ;;
left-up)
xrandr --output eDP1 --rotate inverted && gsettings set com.canonical.Unity.Launcher launcher-position Left ;;
esac
done


The problem is not related to Apache2, it is related to your folders permissions.

Use

ls -l /

what the rights are for these directories and change them from rwxrwxrwx to rwxr-xr-x using chmod


After adding a new user, its not possible to login via the GUI with that user

Unix-like systems including Linux derive some special meaning from user IDs of less than 1000. Here is a Unix Stack Exchange answer that explains some of the speciifcs, and a quick summary:

Less than 50 to 99 == high risks of conflicts with system applications
Less than 499 = risk of conflicts with programs
Less than 1000 = small risk of conflicts with programs
For network UID systems, you want to use only high numbers

Looking at the lightdm source code it does seem to treat UIDs below 1000 as "system" accounts and I found this question which provides information on a config file to specify the minimum user ID, which probably defaults to 1000:

How to make users with UID under 1000 appear in LightDM?


How do I setup pointer-keys/mouse-keys in Lubuntu? (move cursor with num-pad keys)

- Enable via conf file
Create a file /usr/share/X11/xorg.conf.d/90-enable-pointerkeys.conf, with contents:

Section "InputClass"
    Identifier             "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option                 "XkbOptions" "keypad:pointerkeys"
EndSection

- Enable for duration of session
setxkbmap -option keypad:pointerkeys

In either case, Shift+Num-Lock will toggle mouse keys on/off.


rename files inside a folder in real time

There's a framework in Linux called inotify which allows a program to register a handler to be called each time a file or a directory changes, so if you're writing a C program you can just use that. Obviously, your program will need to be running when the change occurs.

There is a special daemon called incron which is like "cron for inotify" and is able to run scripts when a file/directory changes. It can be installed with sudo apt-get install incron, then you'll need add a few lines to its configuration file.

Here's a helpful article: Linux incrond inotify: Monitor Directories For Changes And Take Action

If you search synaptic for "inotify" you'll find many more libraries and programs with similar functionality.


Is it possible to package Python app into snap packages?

Oh certainly-- here is a detailed walkthrough of how (and why) to create a Python snap.


How does Ubuntu know it is connected to the Internet?

How does Ubuntu know whether I am connected to the Internet or not?

It's not aware of that. It only knows about local interface configuration and IP routing tables in that sense. Whether they work or not is not something for the OS to keep track of. Applications will find that out by themselves. E.g. A web browser that will time out on requests.

Why isn't this the task of the OS? The connection may be limited intentionally for security reasons for example using a proxy.

  It seems to know because of the notifications it shows when I connect to disconnect

No, that's just the local connection of your interface it is reporting the status of. Once IP configuration has completed (either static or DHCP), it will say it's connected. The connection to the internet is the responsibility of your gateway in your network.

  How do the background sync services know when I am connected and when to sync data?

They'll have to figure this out by themselves.

  Is there something similar to the Windows Connectivity Status Indicator where Microsoft detects Internet connectivity (not just any network connectivity)?

No. Ubuntu does not do any calls to the outside world to check for real internet connectivity.


I have to disable/enable an add-on to reload /usr/lib/firefox/omni.ja.


Error while installing driver for rtl8723de from https://github.com/lwfinger/rtlwifi_new.git

Please try:
sudo apt update
sudo apt install linux-headers-generic

Next, try to install the wireless driver again.


newly purchased and formatted (ext4) seagate external hard drive 5tb cannot store files in Lubuntu 18.10 + almost 40gb used somehow

how i may get the external hard drive to be useable? Is it possibly faulty? Could I have done something that may have damaged it by formatting it. Could it perhaps work if i tried a different variant of ubuntu like xubuntu ?

The problem is permissions. Run sudo chown username:username /media/h/f0de3be3-77d2-4ef0-95d9-65f6b7ac5451/ to change ownership to your user and group. This will give you write permissions on the disk. Replace username with you actual username.

  why gparted says that 37.76gb is in use in this new external 5tb drive, and only 4.51tb is available ? (The drive i bought was from ebay and heavily discounted, however, there appeared to be a seal on the package and everything seems new).

First, EXT4 reserves some space for root. This defaults to 5% of the available space. This is to stop users from filling a drive completely, allowing some room for root to clean up, and some space is used for a journal.

This can be modified by running sudo tune2fs -m 0 /dev/sdx1, where sdx1 is the partition. You can identify the partition by running sudo lsblk

Second, disks use 1TB = 1000GB, while (most of) the rest of the world uses 1TiB = 1024 GiB. This means that a drive that is advertised as 5TB is actually 5000GB, or  4.88TB. Minus the 30-ish GB consumed for journal and reserved for root, this matches the 4.51 reported as free.


Increase swapfile size to match RAM size

Check the swap that is in use:
sudo swapon -s

If swap partition(s) are found:
sudo swapoff -a
sudo nano -Bw /etc/fstab

Add # before the UUID of the swap partition(s):
# UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX   none   swap    sw     0       0

Add a line for the swapfile, if one does not exist:
swapfile   none    swap     sw      0       0

Create the swapfile:
sudo fallocate -l XG /swapfile*

where X is swapfile's size in GB:
sudo mkswap /swapfile
sudo chmod 0600 /swapfile
sudo swapon /swapfile

Reboot:
sudo reboot


Enable Wireless option is disabled in network settings in Ubuntu 12.04

Have a look at the output of 'sudo lshw -C network' after your connection has broken. If no Wifi device is listed, you may have a hardware problem.
I had the same problem and it turned out that the Wifi adaptor was not seated properly in it's socket.


How to copy files to external drive on second Ubuntu machine?

To copy between linux systems connected by IP, I recommend rsync. Type $ man rsync to see the documentation. I usually recommend zipping your files before copying across IP.

$ rsync [options] src destination

Example:

$ rsync file.zip username@ip:/home/ubuntu/Documents

The above command would copy file.zip to Documents directory of your remote.