Which compiler should I use for installing CUDA 8?

CUDA 8 takes gcc-5, which is still offered in the standard repositories (with gcc-7 being the default compiler for Ubuntu 10.04).  Consider using a later CUDA install if your hardware allows it.  Install it with:
sudo apt-get install gcc-5

And if the ar-5, nm-5, and ranlib-5 do not get automatically brought in as dependencies, install them too.
Then add links to these old versions in your cuda/bin directory (which should have been added as the first location in your PATH environment variable:
cd wherever you installed cuda then add the link(s):
sudo ln -s /usr/bin/gcc-5 gcc

and for ar, nm, ranlib, and g++.
A few things could be wrong here.
First, the sample Makefiles may have embedded in them an explicit path used to find the nvcc compiler (/usr/local/cuda), which may be overridden if you
export CUDA_PATH=whereeverItReallyIs
Second, The actual error message may say gcc when it really should be complaining about g++.  You need to install and add the g++-5 link too, like you did for gcc.


Ubuntu Hotspot - Need IP range same as other LAN devices

What you need to do is to check on device that is responsible for hotspot network.

The question is not related to Ubuntu itself: You have 2 LAN segments 192.168.0.X and 10.32.0.X that are controlled by some network hardware running DHCP server software on it.

It might be one device or tow depending on the topology of your network.

As so we are here of no help as we can't guess the device models and other data needed from your question.


Overheating laptop with Ubuntu 16..04. Should I try Xubuntu?

My guess is that overheating is not due ubuntu 16.04. Maybe this could help:

https://www.ifixit.com/Answers/View/108083/Laptop+shuts+off+from+overheating


How to fix these two errors that pop up before Ubuntu boots?

Insert or connect the Ubuntu live media (DVD or USB)
Reboot the computer from live media and choose Try Ubuntu                                  Connect to the internet, then open a terminal with Ctrl+Alt+t, paste the following   commands and run them by pressing Enter:

sudo add-apt-repository -y ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

The Boot-Repair window will appear
Press Recommanded repair

Good luck!


You have to create a user under Ubuntu first.  To add a new Linux user account, simply:

Open System Settings.
Choose User Accounts and unlock the panel using your administration password.
Use the + (plus) icon to create a new user.
Enter the new user’s full name (the user name will be filled in automatically based on the full name).

  As this folder is for ‘sharing purposes only’ do not assign
  ‘administrative rights’ to this user account.  When finished, click
  Create. As the account is initially disabled, we now need to set the users password.

  Now when you return to the ‘Samba Users’ dialogue box and click ‘Add
  User’, your new user account should be found in the Unix User name
  drop-down box.

Source: Sitepoint


Triple boot Macbook into OS X, Windows or Ubuntu - is it possible in a stable manner? They seem to corrupt each other

That is rather odd... I've never used rEFInd, but it does seem like it might help. It seems like the boot selector may only scanning the local disk for operating systems, in which case rEFInd would likely solve the problem (it seems worth a shot).

I triple booted my MacBook a while ago and BootCamp didn't have a problem recognizing my Ubuntu partition (that was around 5 years ago, though - I'm not sure they may've changed).


Try with

optirun sh your_sh_file

Please note bumblebee uses nvdia card through virtualgl and the performance is very poor.

Possibly the command won't run   your game in nvdia mode. Because the the sh file is calling someother application. I think it would be better if you take a backup of sh file, then edit it to include optirun inside the sh file


I have a exploit virus detected by ClamTK that I Can't remove

You can use clamscan with the option --remove to automatically remove all infected file in the scanned folder.

clamscan -r --remove /scanned-folder

Now to delete your file: you should use  sudo with rm when deleting some files you don't own:

sudo rm -f /usr/share/mime/mime.cache


Try to reinstall:

sudo dpkg --purge --force-depends gcc
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo apt-get clean gcc
sudo apt-get install gcc


I assume this is the same bluez stack that's installed in Ubuntu, I'm using 11.10 as a reference. Regarding the dbus conf, it appears if you add your used to the 'bluetooth' group you should be able to speak to org,bluez.

 <!-- allow users of bluetooth group to communicate with hcid -->
 <policy group="bluetooth">
 <allow send_destination="org.bluez"/>
 </policy>

wrt to your bluetooth daemons script, it looks nothing at all like mine.

 dpkg -S init.d/bluetooth
 bluez: /etc/init.d/bluetooth

I'm not a bluetooth expert but from the looks of what you're doing, that
looks way off the beaten path. Bluez must have a regular method for profiling
and autostarting devices. A little googling turned up this:

http://www.gentoo.org/doc/en/bluetooth-guide.xml

https://www.hanscees.com/old/bluezhowto.html

It doesn't look like blueman is doing the right thing for you, If you
have to dive this deep into config files, it's doing more harm than good.
I would recommend dumping it and sanitizing your bluez stack e.g. apt-get
remove, dpkg --purge, and apt-get install. Then, starting from the bluez
docs, configure and pair your mouse for auto-pairing at startup.

Blueman is also part of universe so it's easily possible that it's out
of sync with our current stack and it's config changes are causing problems.

Hope that helps, good luck.


Ubuntu on XPS13 9333... Want to add Windows 8.1

I don't have ALL of your answers, but I know I have enough to save you considerable time, anguish, and probably money.

First I must caution you that microsoft does not play well with other operating systems.  It is difficult enough to set up a dual boot these days when Windows is already on the drive, but if you try adding windows to a computer which already has Ubuntu on it, there is a high probability that windows will wipe the drive despite your best efforts.  Fortunately I have a relatively easy solution which could easily cost you under $50.

To ensure windows doesn't wipe your Ubuntu installation, REMOVE YOUR HARD DRIVE.  Replace the hard drive with a nice blank one, and install Windows on that.  Move your old hard drive into a well cooled external usb case and then you can boot that (or most other computers) to your rescued ubuntu installation.

If for any reason you are hesitant to remove the physical drive, such as a warranty for example I can advise you how to clone your ubuntu onto an external drive before you attempt installing windows.  Both solutions are equally valid.  I remove hard drives all the time, so that's the solution that occurs first to me.

If I recall correctly, Microsoft now offers the installable files as a free download, so you don't need to buy disks, and the files are up to date, rather like ubuntu distros.


How to change the NetBeans IDE language?

You can try to change the locale settings when you run Netbeans and see if it uses it.

First you need to generate your locales:

sudo locale-gen en_US # or en_GB
sudo locale-gen en_US.utf8

Then, from the command line run LC_ALL=en_US.utf8 netbeans. If this works you can create a new launcher with that command.


VirtualBox error message (rc=-1908) after kernel upgrade

You must reinstall the kernel module as requested in the error message.

sudo /etc/init.d/vboxdrv setup

Make sure you have dkms installed and you will not face this problem anymore after kernel upgrade.

sudo apt-get install dkms


Graphical interface (UI) wont load on ubuntu 12.04 after install

After a fresh and clean installation, basic drivers should be available in order to install the new ones...

Here's a little help if you want to try the installation in the terminal :

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

Think about trying something like...

sudo service lightdm restart

... first, but I don't really think it'll be productive.


Where's the screen to enable/disable 3d visual effects?

They are still in the same place in 11.10 as in 11.04. The difference is this:

In 11.04 Compiz visual effects such as wobbly windows clashed with the Unity interface and removed the top panel with the app-indicators.

In 11.10 the Compiz window and compositing manager is better integrated with Unity. You can now enable wobbly windows. I know. I have done so just this week. I cannot speak for any other of the effects. But you specifically mention wobbly windows.

What do you mean by "oneiric?" It can mean: 11.10 + Unity 3D or 11.10 + Unity 2D or 11.10 + Gnome shell or even 11.10 + Gnome shell fall back mode (no special effects). With questions like your one a person needs to give more information about their set up. Do you need to use a proprietary driver to get enhanced effects?

I suggest:

1) Go to Additional Drivers and confirm that any proprietary driver (if needed) is activated.

2) Install CompizConfigSettingsManager.

3) Enable the Ubuntu Unity plugin in the Compiz Settings Manager.

4) Reboot.

5) Open Compiz Settings Manager and try to activate one of the visual effects like wobbly windows.

With some of the effects in compiz you should be prepared for the screen to blank as the old setting is replaced with the new setting.

Oh, by the way, you find Compiz Configuration Settings Manager by opening the Dash (click the Ubuntu icon at the top of the Launcher) and you type compiz in the search panel and an icon for compiz settings manager will appear which you can click to load the compiz settings manager.

You may have noticed that System Settings is less crowded than in 11.04. The Dash has some lens that effectively replaced the old Applications, Places and Administration/Preferences menus in 10.10.

I find it difficult to understand what you want information about.

Regards.


This is indeed a bug as you have linked however there is a workaround that is reported to work. Try this.

Source: https://bugs.launchpad.net/ubuntu/+source/biber/+bug/1565842

Edit: It appears there is a newer source package here: https://launchpad.net/ubuntu/xenial/+package/biber

As far as the specific error introduced by your preamble you might examine    \usepackage[backend=biber]{biblatex-history} and determine if you indeed have the package named or if there is a typo involved.

Related: https://tex.stackexchange.com/questions/52368/how-can-i-insert-by-bib-file-into-my-tex-file

and

https://tex.stackexchange.com/questions/20317/internal-bibliography-with-biblatex


Problems after adding Linux Deepin repository

I'm assuming "Linux Deepin" broke most of the system files.  I would suggest reinstallation since your system is now unusable, according to an answer you wrote (which should have been a comment).


Logging in to account on 12.04 installation leads to perpetual loop

Log in on a TTY (ctrl+alt+f1), run this:

sudo chown -R YOURUSERNAME:YOURUSERNAME /home/YOURUSERNAME/

Of course, replace YOURUSERNAME with your actual username (don't read over the semicolon).

Now, try logging in again.


Yes, there are podcast apps (e.g. Podbird) available in the Ubuntu Store, that you can download and use on the BQ Aquaris 4.5 Ubuntu Edition.

I-tunes links don't seem to work directly on podbird. However, you can use feedflipper to convert them. I did a small experiment and it worked on most feeds.


The problem was that I had edited the name in setup.py to an invalid value. I just reverted this to the original name and the problem was fixed.


In the Time and Date drop-down, click "Time and Date Settings".

Click on the "Clock" tab.

Enable the check-box "Time in Other Locations".

Click "Choose Locations". Then, add as many cities and regions as you want :)

The times for those regions will be shown in the dropdown.


Remmina will not start / open, even after reboot

Finally found the relative bug: https://bugs.launchpad.net/ubuntu/+source/remmina/+bug/753520

Changing the keyboard layout from ZA to US resolves the issue and enables the launch of Remmina.


One of my user accounts logs in without system sounds

Enable system sounds in System -> Preferences -> Sound. Maybe the output volume for system sound is set to zero or a low level.

Then check, whether there is a "startup application" called "GNOME Login sound" and that it is enabled. If it does not exist, create a new one with the following command:

/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"


Can't uninstall PHPmyadmin in Ubuntu 16.04

This answer should be tried as well for Ubuntu 16.04, I would advise to try it second:

cd /var/lib/dpkg/info/
sudo rm -r phpmyadmin.*
sudo apt-get clean
sudo apt-get update
sudo phpdismod mcrypt mbstring
sudo service apache2 restart
sudo sed -i 's/Include \/etc\/phpmyadmin\/apache.conf/ /g' /etc/apache2/apache2.conf
sudo apt-get purge phpmyadmin -y
sudo apt autoremove


Does manual kernel update affect the next regular automatic update?

Updates should still work normally once a newer version of the kernel is available from any of your defined software sources.

If you are interested you can see which version apt considers newer with this command:

dpkg --compare-versions [version1] gt [version2]

The exit status will be 0 if apt considers version1 newer or 1 otherwise.


How to set the network proxy for ubuntu 16.04?

I think you should put your target sites into the pac file.
If your pac file is generated by the genpac,
you should use that to add some user rules, just take a look at its document on github.

genpac --format=pac --pac-proxy="SOCKS5 127.0.0.1:1080" --gfwlist-proxy="SOCKS5 127.0.0.1:1080" --user-rule-from="/Where/rules/at/rules.txt" --output="proxy.pac"

rules.txt:

||bilibili.com
||I-cannot-access-this-directly.com

If you do that, https://bilibili.com will get accessed through the proxy(gets slower)


How can I set up PyCharm to launch from the Launcher?

PyCharm can create it's own launcher icon (but it's not created by default).

All you have to do is:

Start PyCharm.
From the Tools menu, select "Create Desktop Entry..."
Tick the corresponding box if you want the launcher for all users.
If you selected "Create entry for all users", you will be asked for your password.
A green message bubble should appear informing you that it was successful.
You should then be able to find PyCharm in the Unity Dash or pin it to the launcher.

Note: You may need a system restart before it appears.


The presence of -> means that that "entry" in the directory is a symbolic link (symlink) to a file/directory somewhere else. In this case, /proc/mounts is a symlink to /proc/self/mounts.

Symlinks typically have a permission of 0777, since it isn't the one allowing/restricting access to a file/directory (hence, the rwxrwxrwx). However, whatever permissions are on the file/directory still do come into effect, so if a file has permissions 0600 or rw-------, then only the user owning the file can read or write into it, either directly or through a symlink.

I'm not entirely sure on the l, but my guess is that it's an indication that that entry is a symlink.


Preventing "pasting" (p) from copying selected text to register in Vim

Not very good answer but...

Instead of selecting and pasting (p):

move to beginning of selection to be replaced
paste
select unwanted selection
delete it using "delete to black-hole register" ("_d)

or vice versa, "delete to black-hole register", then paste.


Is there a genealogy program on Ubuntu that will **synchronize** with Ancestry.com?

Synchronise isn't an option that I know is available. Import/export of GEDCOM files is the common procedure to exchange data.

Follow the instructions at gramps site, https://gramps-project.org/wiki/index.php/Import_from_another_genealogy_program

Please note that ancestry.com GEDCOM format isn't consistent.

Quote from the URL:

The GEDCOM layout used by Ancestry for each item seems to not be consistent, and might change depending on the time at which the initial entry was made into the Ancestry.com tree.


As mbiber said, source another file. For example, your config file (say some.config) would be:

var1=val1
var2=val2

And your script could look like:

#! /bin/bash

# Optionally, set default values
# var1="default value for var1"
# var1="default value for var2"

. /path/to/some.config

echo "$var1" "$var2"

The many files in /etc/default usually serve as configuration files for other shell scripts in a similar way. A very common example from posts here is /etc/default/grub. This file is used to set configuration options for GRUB, since grub-mkconfig is a shell script that sources it:

sysconfdir="/etc"
#…
if test -f ${sysconfdir}/default/grub ; then
  . ${sysconfdir}/default/grub
fi

If you really must process configuration of the form:

var1 some value 1
var2 some value 2

Then you could do something like:

while read var value
do
    export "$var"="$value"
done < /path/to/some.config

(You could also do something like eval "$var=$value", but that's riskier than sourcing a script. You could inadvertently break that more easily than a sourced file.)


Black screen every time I start computer

Did you marked option " install third party software" during installation ?
It should automatically install proprietary drivers to your PC/Laptop a it's the easiest way. This issue is common. Also, disable secure boot in Bios.


anbox is preventing me from installing anything

I tried this command and it worked for me:
sudo apt purge anbox-modules-dkms


Why do I get 'This computer name is already in use on this network' prompt?

Are you sure that the name conflict prevented you from going on with the installation?

I had the same warning last week when upgrading my systems, since i used the same names they used before I also got the warning (I think it comes from a DNS lookup), but it did not stop me from continuing at all, all I had to do was ignore the warning and click to continue.


Well, in my despair I wanted to clean install the device, which would have been a lot of trouble due to migrations.
So, I still wanted to try static IPs via netplan and in search for the correct syntax stumbled upon this article . It basically says to remove the ifupdown package (apt remove ifupdown), which I was not even aware, that an distupgrade would still keep remnants.
However, either the static IP or the removal of ifupdown seems to solve the issue.
Thanks @all.


How to allow Sonarr running in Docker access to host volumes

Sorry for the late answer but it may help someone else looking for an answer. When you configured your YAML you made a volume mapping, the directory /storage will be mapped to something else for that container. You can run portainer and see container volume mappings host-container to see whats the directory was configured as.

The whole idea of a container is that it appears completely separately from the host, with its own network, file directory etc. Therefore you can't directly map a host drive to the container, you have to specify a mapping from the container configuration. I hope this helps you (or someone out there)


You might want to check out some GTK themes over on gnome-look.org, or--interestingly--in a quick Google search, I came up with this site that develops emulated OS themes for Linux, including OS X. Best of luck!


This is because you do not have permission to write to the /usr directory.
drwxr-xr-x  12 root root  4096 May 28 17:06 usr/

As you see the owner and group of /usr is root. As a normal user, you only have read and execute (for directories, this means access) permissions. Placing a file here is a write operation, so you will need to perform that action as root.
In Ubuntu we run commands (or programs) as root using sudo.
GUI method:
sudo -H nautilus

This opens an instance of nautilus as root. We use the -H option (this sets HOME to avoid root becoming owner of local config files, a problem that may arise if you make the mistake of running graphical applications with normal sudo.
Now you will be able to copy (and delete) files anywhere, so please be very careful.
Command line method
Simply use the cp command with root access:
sudo cp /path/to/your/file /usr


I had same issue with Ubuntu 18.04

Just added PPA to system and worked fine for me.

sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update
sudo apt-get install vlc


From the comments above one can easily deduce that doing sudo apt-get install gnome-software or sudo apt-get install gnome-software=<version you chose> would solve this problem as it would install the missing package that is causing the Software Updater to fail.


okay, a third reset weaker to fix the problem. Sorry about that, Linux novice who knows vary little regarding terminal.


Linux isn't meant for that, it would require modifying login scripts. Easiest way would be to make www site with option to add users.


Why is Chrome/Chromium missing the Downloads Icon?

I had the same issue.

Solved it by installing the "gnome-icon-theme-full" package.


Trying to install Ubuntu and got message about Kernels

The message you are receiving means that you are trying to install 64-bit software on a 32-bit system.  You have to download the 32-bit version of Ubuntu which can be found over here and this is the .iso you need to download: ubuntu-16.04-desktop-i386.iso.

Since you are about to use Ubuntu on older machines, it would be better if you gave us more information about their hardware and RAM size because Ubuntu is not a very light distro and it's very likely that you may need a lighter one.


What is the preferred way to install R packages in Ubuntu?

I think the only R packages available through the Ubuntu repos are the packages maintained by the R development core team. Like with most packages, those available through apt or synaptic are not always the newest versions. Luckily you have the option of adding a CRAN-maintained software source by creating a new file at /etc/apt/sources.list.d/CRAN.list that contains a single line of text:

deb http://cran.r-project.org/bin/linux/ubuntu trusty/

(replace trusty/ with your distribution's codename; if you don't know it type lsb_release -c into a terminal).  After that (and an apt update) your package manager will always install (or update to) the CRAN-maintained versions of r-base, r-base-core, etc., because they will have higher version numbers than the ones in the debian sources.  See here if apt complains about the repo being unsigned.

For all other packages (AKA "contributed packages"), I prefer to install within R via install.packages(c("name_of_package", "name_of_other_package")) whenever possible, unless I know for a fact that the version on CRAN is old and that a newer version has functionality that I need. In such cases you can install from GitHub with devtools::install_github('AccountName/RepositoryName') or download an archive and install it from a terminal window via R CMD INSTALL name_of_package.tar.gz, or within R via install.packages("/path/to/downloaded/package.tar.gz", repos=NULL, type="source").

For completeness, here is the official guidance from CRAN.


How Do I install the Nagios check_snmp Plugin?

This is in the nagios-plugins-standard package. I'd suggest installing the nagios-plugins package, as that will install it, as well as the nagios-plugins-basic package:

sudo apt-get install nagios-plugins

Then, your SNMP plugin will be available in:

/usr/lib/nagios/plugins/check_snmp


What is the best practice for security updates?

What I can think of:

You might receive updates later than when using the main repository (due to the lag in synchronization),
You might receive no updates at all if there's a problem with a mirror that's not closely monitored, and
You might install problematic updates that have already been removed from the main repository (again, the lag in synchronization being the problem).

Security-wise I wouldn't worry that much, since packages and lists are all GPG-signed.


Switching tabs in Gedit 3.* with the mouse wheel

It may not be the answer you want to hear, but it looks like changing tabs with the mouse wheel was removed in gtk+.


Logging out means that all applications quit(work is not saved) and your user session ends.

Locking, on the other hand, simply means that you have to enter your password to 'unlock' your computer. Any applications you have running will still be there when you get back.

Usually, Ubuntu will give you both options when you press Ctrl+Alt+Del. Select lock if you wish to keep any unsaved data.


Go to Options -> FrameSkip -> Throttle -> 200%


Ubuntu how to edit files using graphical interface w/o being root?

You should add your user to www-data on the server.

sudo usermod -a -G www-sata your_user

You then keep /var/www , and the files in this directory, owned by root:www-data

See also Set default owner/user

Then ssh in with the -X option

ssh -X user@server

You then edit with

gedit /var/www/file_to_edit

If you have ssh installed, you can mount files locally with sshfs. Permission denied on SSHFS automount

I think sshfs will most easily give you the functionality you want ;)

From windows you can use winscp.


How can I install klogd on ubuntu trusty?

To install klogd in 14.04, run the following commands:

  sudo apt-get install busybox-syslogd


Installing Ubuntu from a tablet, what do I do?

There's a cool app called DriveDroid that should be able to help you out with booting from your Android device. Your device will need to be rooted for this to work. Once you've booted into Ubuntu on your computer, you should be able to find a shortcut that will allow you to install Ubuntu on your new computer. Enjoy the new Ubuntu-powered computer!

Source: Lifehacker Article


How to view and enable Write Cache in PCIe NVMe Samsung SSD 950Pro in Ubuntu Linux?

I believe it is enabled by default. You can check it:
cat /sys/block/nvme0n1/queue/write_cache
write back

Probably this is optimal setting
Write through caching:
When the controller receives a write request from the host, it stores the data in its cache module, writes the data to the disk drives, then notifies the host when the write operation is complete. This process is calles write-trough caching because the data actually passes through-and is stored in- the cache memory on its way to the disk drives.
Write back caching:
This caching technique improves the subsystem's response time to write requests by allowing the controller to declare the write operation 'complete' as soon as the data reaches its cache memory. The controller performs the slower operation of writing the data to the disk drives at a later time.

In most cases nvme ssds has built in ddr cache like 500MB or 1GB (probably managed by disk firmware if not let's someone correct me because maybe that's the problem)
You can check if trim is working as expected by manually executing sudo fstrim -av and test write speed in real life by copying and pasting big file and measure time taken.
But there are still slow writes and it seems like these are handling in this way by kernel itself (maybe some reliability syncing):
SSD slow write speed on Ubuntu


How to use office365 mail from Thunderbird?

For connecting Thunderbird with your office365 mail account  ...

you don't need your mail password, that you set up (past form verb)
you need your application password.

Requirements:
Two-factor identification setup
Detailed explanation by Microsoft: https://support.office.com/en-us/article/Create-an-app-password-for-Office-365-3e7c860f-bda4-4441-a618-b53953ee1183
Rough explanation: Get app password, if you already logged into your mail account ever in your life:

Log in per web interface
Settings → Account settings → Security and privacy → Additional security verification → Update my phone numbers used for account security → follow screen


How to join a Ubuntu desktop client to a ubuntu server domain controller

I made a comment for you to rephrase your question. But I'm quite sure the answer you are looking for is not an easy fix. Therefore i would recommend you read this tutorial about Linux and Active Directory. I'm sure you will find your answer. (Or what to ask).

This is a guide to Active Directory on linux:

https://technet.microsoft.com/en-us/magazine/2008.12.linux.aspx


Try a DHCP address for the wired connection maybe, I know that whenever I try to set a static address I cant connect to anything.

Cheers

P.S I know this may not be an answer but where else am I suppose to post this, there is no comment button :/


As @Cyrus suggested, you probably have a non-printing character there that is causing you problems. The most likely reason is that at some point you edited this script from a Windows machine and a \r was added to the end of the line. You can check if anything is there on that line by running

grep 'if [ "$exit"' script.sh | od -c

That will show all characters, including non-printing ones.

If you do indeed have a \r there, you can fix it by running"

sed -i 's/\r//' script.sh

Or, installing dos2unix (sudo apt-get install dos2unix) and running

dos2unix script.sh > fixed.sh


I cannot log in to my account on Ubuntu desktop

The problem was that my user has lost ownership of some items in my home folder.

This was fixed with help of Eric^^ in #ubuntu.


Ubuntu 16.04 Desktop Sharing - connect from one Ubuntu to another

The steps you mentioned that you have performed would be specific if you were on the same network or connecting to a remote machine with it's IP exposed with no firewalls.

If the host machine (as in almost all cases) is connected to a router and have a provide IP you would have to perform port forwarding to the computer you want to connect to.  The router port to forward is 5900 TCP.  You'll also have to ensure you have not blocked port 5900 though the host's firewall.  Also ensure to allow connection from the client's IP via /etc/hosts.allow.

Summary of client's access to the server:

1) Port forwared to the host IP in the routher (tcp 5900)
2) Firewall's port 5900 open
3) Access granted to the client's IP address via /etc/hosts.allow

/etc/hosts.allow:

# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5) and hosts_options(5).
#
# Example:    ALL: LOCAL @some_netgroup
#             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#

ALL: [remote desktop client's ip here]

You mentioned Ubuntu's default Desktop Sharing.  That is the one I'm addressing.  It doesn't use rdp so you can leave that protocol along.  Just concentrate on the VNC capable clients.  The  Remmina Remote Desktop Client will work.  Just make sure you have it set for VNC and not the other choices.

You have already specified port 22 (ssh) is working which means that port is forwarded.  Now the same way you setup and tested ssh, you will have to do the same thing with port 5900, for vnc.

You have already specified what you need in the Vino configuration which is:

1. Allow other users to view your Desktop (Checkmark)
2. Allow other users to control your Desktop (Checkmark)
3. You must confirm (No Check mark)
4. Require the user to enter password (optional)
5. Automatically configure UpNp router (optional)
6. Show Notification area icon (optional)

Only three settings (highlighted in bold) is required for the connection.  The other items are optional.

Just set the above configuration, close and connect with a VNC enabled client.
While the Remmina client will work, I used vinagre to test and prepare thses steps.


Eclipse ADT: Layout Properties Editor doesn't work correctly

Selecting the correct target API level in layout editor (click the green droid character) solved the problem.

I was developing an App using Android 4.1.2 (API 16) SDK but the editor was using various data from Android 4.4 (API 19).

I accidentally thought it was Linux-specific problem because:

I had Android 4.4 (API 19) and Android 4.1.2 (API 16) SDKs installed in my Linux Mint
When testing in my Windows XP sub PC and Lubuntu 13.04 Virtual Machine I had only Android 4.1.2 (API 16) SDK installed.


How do I use Nvidia GTX 860M with 14.04?

The 860M card is supported by nVidia's proprietary drivers.

You can install them pretty quickly and easily. It just looks scary.

Download the appropriate driver from nVidia's webpage. It saves a .run file.
Change to console mode with alt+ctrl+F2, log in and then navigate to your Downloads folder with cd ~/Downloads
Type chmod +x NVIDAFILENAMEHERE.run and then press enter
Type sudo service lightdm stop and then hit enter
Type ./NVIDAFILENAMEHERE.run and then press enter
Follow the prompts on screen to install the drivers.


It's a confirmed bug, you can watch it here: https://bugs.launchpad.net/deja-dup/+bug/882699

As of comment #16 there is only one workaround known: try to create another folder for your backup.


Okay, it looks like the issue has something to do with me not knowing how to run shellscripts, and me porting the script over from a Windows machine. (Similar to this thread)

After re-writing it in vi, and running it with sudo ./SETUP.sh it works


Firefox Aurora 13 and Flash Plugin problem

Just install the Flash-Aid plugin. It will choose the flash version for your browser version. It worked for me even when adobe said that they will not support flash for FireFox anymore. https://addons.mozilla.org/en-US/firefox/addon/flash-aid/


Mouse undetected, Graphics crazy - trying to save my dinosaur desktop

The problem with Ubuntu 14.04 probably isn't driver related, it's more likely to be that the demands on your graphics card are too great. As you go back through older unsupported versions, there will be less and less hardware supported, which may explain the mouse problems.

I'd recommend installing either Lubuntu or Xubuntu which are both lightweight desktop environments. Lubuntu is slightly less resource hungry than Xubuntu, so is often a better choice for older PCs, but it does have quite a plain feel to it. Xubuntu definitely looks more swish. Whichever you choose, I'd recommend downloading LibreOffice for word processing etc.

As a side note, it's generally not a good idea to use an old unsupported release, security fixes aren't maintained, and you can't ask questions about them on Ask Ubuntu either! Using an LTS version is the best way to guarantee stability in your system, 12.04 and 14.04 are the current LTS releases, and 16.04 is just around the corner (it's in final Beta testing at the moment). Personally I normally wait for the first point (16.04.1) release of a new version to give it time for bugs to be ironed out.


This link https://gitlab.freedesktop.org/hadess/power-profiles-daemon is providing all the details required for command line.
Installation Steps
git clone https://gitlab.freedesktop.org/hadess/power-profiles-daemon.git
cd power-profiles-daemon
meson _build -Dprefix=/usr
ninja -v -C _build install

to know which profile is active run below command
gdbus introspect --system --dest net.hadess.PowerProfiles --object-path /net/hadess/PowerProfiles

some of the result
  interface net.hadess.PowerProfiles {
    methods:
    signals:
    properties:
      readwrite s ActiveProfile = 'balanced';

to set the Performance mode run the below command
gdbus call --system --dest net.hadess.PowerProfiles --object-path /net/hadess/PowerProfiles --method org.freedesktop.DBus.Properties.Set 'net.hadess.PowerProfiles' 'ActiveProfile' "<'performance'>"

Available Profiles

power-saver
balanced
performance

Try this command and reboot and see for the persistence. If the profile is changing back to what you dont want, then put the above command in startup command list.


I don't provide packages for outdated releases, so you will have to upgrade to saucy first, but you can try installing systemd from my ppa:ondrej/systemd.


Firefox 65.0 resize tabs height to make tabs touched the top of the screen?

Launch Firefox, go to the 'Customise' screen, and disable the "Drag Space" option (next to "Title Bar") at the bottom:


How to make user account always use default configuration

You should probably look into Terminalservers, since they seem perfectly suited for your needs. Look for LTSP (Linux Terminal Server Project).

A Terminalserver setup means that there is only a very basic system installed on your (thin-)clients, and everything that is done actually happens on the server. This way, you can also save a lot of cash on the actual pcs that your students are supposed to use.

A whole bunch of schools in Greece use LTSP, as is described here: Link
Maybe you can even get in touch with one of their admins to ask them about the setup!


Is it possible to install the same applications on Ubuntu Touch and Ubuntu Desktop?

Most desktop applications won't run on Ubuntu Touch.  No Gtk apps, like Gimp, will run on the display server it uses, until Gtk gets a new backend for SurfaceFlinger and/or Mir.


Unable to upload directory to hdfs. `/usr/local/tmp/': No such file or directory

You say your local files are under (path: /home/shradha/Downloads) but you are trying to upload /shradha/Downloads.

check local directory existence:

ls -al /home/shradha/Downloads/states

if you can list files you are good to go:

bin/hadoop fs -put /home/shradha/Downloads/states /hdfs/states


Can you give the error reports on running the apt-get install python-lxml command?.  Generally path where modules are stored /usr/lib/. For python modules try using the python based installers PIP, easy_install!


Don't forget to set the mount point to "/"

then in terminal:

sudo update_grub

The swap of 4 GB is more than enough if you have RAM >= 8 GB .


Nginx not forwarding port 80 correctly for specific directory

To resolve this, I ended up removing Nginx all together. I only had two server blocks setup so it wasnt a big deal to restore everything.

Once I installed Nginx and setup my server blocks, everything was working fine.

apt-get purge nginx
apt-get install nginx

I can see how this might not be the best thing but it resolved my issue none the less.

Also instead of having two separate server blocks I configured one as such:

    server {
    listen www.xxxx.net:80;
    server_name www.xxxx.net;
    location / {

    location /confluence {
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://localhost:8090/confluence;
        }

    location /jira {
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://localhost:8080/jira;
        client_max_body_size 10M;
        }
    }
}

It was important that I added the base location location / as without this I wasnt allowed to have my locations set as /confluence /jira  Having them without the base location resulted in this error:

location "/jira" is outside location


You can install libstdc++6-4.5-doc to get the manuals for the GNU c++ library, and then man std_basic_string tells you about the contents of that class.

You may ask: how should I know to look in that particular manpage?  Well, what you want is the -k (keyword) argument to man:

mbp@joy% man -k c_str
....
std_basic_streambuf (3cxx) - (unknown subject)
std_basic_string (3cxx) - (unknown subject)
std_basic_stringbuf (3cxx) - (unknown subject)
std_basic_stringstream (3cxx) - (unknown subject)

and then you can ask man for one of those particular pages.

Or, of course, if you search the web (more thoroughly than I did), you might be able to find a PDF of the standard library definition.


How does Ubuntu determine the date/time if no NTP server and a broken RTC clock?

Since you removed the battery needed for the RTC to function, it uses whatever's in the BIOS/firmware when plugged into the wall, and most (but not all) start counting at 1980-01-01 12:00:01 AM when connected to mains power.  Most will run somewhat accurately, but inaccurate enough that people came up with NTP to make it really accurate.

Yours has an executable, somewhere, which sets it to start at 2018-01-28 10:58:48 EST.

Most PCs do not have GPS capability, and instead use NTP.  Tablets and phones do have A-GPS which has a GPS-band receiver, but rarely do desktops and servers have that; some laptops do.


ubuntu-desktop doesn't work in Ubuntu 17.10

Installing the LightDM display manager to replace the default GDM3 can solve this problem:

apt install lightdm


Having issues recording Minecraft with glc-capture

You shouldn't be launching Minecraft by running launcher.jar. This file is not built to be executed alone and can't be.

You have to use Minecraft.jar instead. This is the program that takes care of the login and actually calls the launcher.

The technical reason is the following:

Executable Java Archives (.jar files) have to contain a line in their META-INF/MANIFEST.MF that looks like this:

Main-Class: com.example.MainClass

Without this line the JVM doesn't know where to start execution.
Non-executable archives don't have this line in their Manifest, if they have one at all. Such non-executable archives are commonly used as library modules or modules that are loaded later, like the Minecraft launcher.


I switched to another resolution and then revert to the original resolution.

It did the trick.

But I still don't understand why this bug happened in the first place.


Lubuntu 16.04: Nouveau disp ERROR 5 on startup

I fixed it!

I'll go through what I did in case some other new user could use the information:

I'm unfamiliar with grub, so I googled how access it (hold shift after BIOS pages load) and then did so. I entered the advanced options menu, selected recovery mode, and it brought me to this message:

  /dev/sda1 contains a file system with errors, check forced.

  Inodes that were part of a corrupted orphan linked list found.

  /dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

  (i.e., without -a or -p options)

  fsck exited with status code 4
  The root filesystem on /dev/sda1 requires a manual fsck

  BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash)
  Enter 'help' for a list of built-in commands.

  (initramfs)

I wasn't sure how to run fsck manually, so I hopped back on my usb and googled it. I booted back into the recovery mode, and I ran: fsck /dev/sda1

Every time it found a corrupt file and asked if it should fix it, I said yes.

When it was done, it brought me to a new screen with a list of options, such as using dpkg to fix broken packages. This is the only option I used. After that I booted back into my usual GUI. I needed to reboot again for my graphics card to turn on (and thus fix the resolution).

This is probably such an obvious thing, but after using windows and mac all the time--you know.

Good luck from a huge noob!


Wireless network cannot be enabled for Sony VAIO E series

I had the same problem. My wireless option was grayed out in network manager.

Solution: Blacklist mac80211 and voilà!

Ubuntu 12 and sony vaio e 14 series


It seems that I've found a working solution (as suggested here: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/549727).

Editing the relevant Gnome variable with the command gconftool -s /desktop/gnome/peripherals/touchpad/touchpad_enabled -t boolean true seemed to work to an extent.

What really finished the trick was using sudo modprobe -r psmouse; sudo modprobe psmouse proto=imps.

Some people have recommended just using sudo rmmod psmouse; sudo modprobe psmouse. That didn't work, while the above command did. I don't know what those extra arguments do, but they work.

Oh, and it still works when xserver-xorg-input-synaptics is installed, so you can reinstall that if you've taken it out. Also, new versions of the xserver-* packages have just been released, so upgrading is probably a good idea. I have, and everything still works.

One restart later and my mouse is working perfectly.

Thanks to the folks on Launchpad.


I managed to install it with with flathub: https://flathub.org/apps/details/ch.openboard.OpenBoard


Do what it says - type Y. Then download the 64bit .deb from https://www.teamviewer.com/en/download/linux.aspx, double-click on that and install that - it'll work.


When a release stops being supported (as Natty Narwhal (11.04) was in October of last year) three things happen:

The repositories get moved making it much more difficult to install new software.
All development stops so there will be no bug fixes and security patches.
Support on sites such as this one and Launchpad stops

I would definitely recommend only using supported versions of any OS.

If you have older hardware then consider a lighter desktop such as Xubuntu or Lubuntu both are supported here and will run on lower specification machines.


I am looking for exactly the same solution as well:

For now, this what I found for LXDE

rsibreak (will need some confirguration to match the pomodoro timing)
goforit (go UI but timer is only available on the app window)
pomello (kanban integration) Pomello has an option to be omnipresent,
but I am specifically looking for a gnome-pomodoro equivalent --
which the abilty to show the time in system tray. The task management
option also adds to the clutter as well.

I switched to LXDE for over a year now, and still struggling to find this exact solution.

So for now, I'm painfully using pomello as my pomodoro timer.


canon pixma mg2440 scanner not working with xsane

If you have installed the drivers from Canon, the ScanGear application is there too, and that's all you need.

Run scangearmp. That command can be added into a .desktop file, like so.

It can be run from within Gimp, but scanning is not dependent on that.


Grub2: Is it possible to boot in window-8 by directly loading the bootmgr without having to chainload the "volume boot code"

For me it worked. I did something like this:

You can adding a suitable entry to /etc/grub.d/40_custom and then doing a sudo update-grub. An entry might look something like those:

if you find a EFI partition

menuentry "Win 8" {
    set root='(hd0,gpt1)'
    chainloader /EFI/microsoft/BOOT/bootmgfw.efi
}

although if you find the bootmgr file

menuentry "Win 8" {
    set root='(hd0,msdos1)'
    ntldr /bootmgr
    boot
}

(hd0,msdos1) are my disk and my partition where win 8 is installed. To find the right settings for set root='(hd0,gpt1)' you can do as followed:

When GRUB starts: press c to enter in command line mode
write the command ls to get the list of all (disk,partitions) entry like (hd0,gpt1) etc.
Type ls (hd0,gpt1) and try also the others to find the right one, where win 8 is installed.
When you find the right one you can type ls (hd0,gpt1)/ to list the content of the partition. And than look if you have a /EFI/ folder or only a /bootmgr file

Now you can finally adding the right entry in the /etc/grub.d/40_custom file!


microphone stopped working despite being detected

You could try hitting F6 in alsamixer, which should show up a list of sound cards on your machine. Your mic could be one of those, and need the volume raising there too.

Likewise F4 from alsamixer for main input, which you may have done already, but is worth checking.

The mic on your second picture is the onboard mic not the usb one. Have you tried rebooting with the mic plugged in? My experience with external mics has always been nicer after doing that

If you see your mic in alsa soundcards, but your "input" alsa device is something funny instead of your mic, and it's still not showing on sound options, you might need to reorder your audio devices, which arch has a tutorial for here


How do I fix APT errors "W: Failed to fetch [...] Hash Sum mismatch"?

The problem is that you deleted recursively /var/lib/apt/lists, which deleted the partial directory too. So, recreating the directory should solve the issue:

sudo mkdir -p /var/lib/apt/lists/partial
sudo chmod 755 /var/lib/apt/lists/partial

Also, is possible that the mirror you are using have problems. Select another mirror and update again.


At the login prompt (the LightDM Greeter), there is a small icon that changes based upon what the current default shell is set to be, such as the Ubuntu Unity triskelion or the GNOME footprint. If you click that icon, you get a pull-down list of installed desktop shell environments to choose from.

As an aside, I haven't had good results with GNOME on Wayland as it seems highly dependent upon hardware compatibilty, so if it works then more power to you.


Installer stuck at "Configuring target system"

After boot  from liveCD, In start menu[Try ubuntu/ install ubuntu/ etc]
press F6 then select nomodeset.
press ESC.
Now select install ubuntu.


Force a script to run

sudo bash /path/to/file.sh

Setting a file for execution

chmod +x /path/to/file.sh
`./path/to/file.sh

Problems with symbolic links

echo "set mark-symlinked-directories on" >> ~/.inputrc
`./path/to/file.sh


How to use the command "rename" on subdirectories as well

If your subfolders as well as files may end with trailing spaces (as discussed in comments), then you will need to process the directory tree depth first1. You can do this with the find command:
find . -depth -name '* ' -execdir rename -n 's/ *$//' {} +

You can replace . (current directory) with a specific starting directory path/to/dir.
The use of -execdir rather than -exec ensures that the replacement is only applied to the file or directory name (rather than the whole path), so it's safe even when the regex pattern isn't anchored to the filename.

1. otherwise it will look OK when testing with -n but will likely fail when applied for real, since it will attempt to rename files in directories whose names have already been changed


Bash one-liner to display ALL `gsettings` in GUI dialog window

Yad works but not Zenity (yet)

I tried doing this with zenity but couldn't figure it out. I managed to make it work with yad but after a couple of clock days had to turn to google groups to get help from the yad experts. They fixed my one-liner bash code in 12 hours!

If you don't have yad installed already you need to use:

sudo apt install yad

yad lets you sort the list by any column in ascending/descending order. You can grab the scroll bar to quickly move up and down the list. The Up/Down arrow, PgUp, PgDn, Home and End keys navigate as expected.

The one-liner bash code

Here's the bash one-liner code you can copy and paste into your terminal window:

gsettings list-recursively | sed 's/  */\n/;s/  */\n/;s/\&/\&amp;/g' | yad --list --title "gsettings" --item-seperator='\n' --width=1800 --height=800 --wrap-width=600 --column=Group --column=Key --column=Setting --no-markup

This is for a 1080p display where the screen is 1920 pixels wide. If your screen is smaller, reduce the size of these arguments:

--width=1800 --height=800 --wrap-width=600

Sample output

When the yad scroll box opened I:

Clicked on the Group column heading to sort by group. Otherwise the order is random as gsettings list-recursively dumps out the database.
Scrolled down org.gnome.settings-daemon.plugins.power section.
Noticed a gsettings I've never seen before but might help me solve suspend problems I've encountered (as highlighted in screen shot below)

The one-liner pays for itself right away

Here is the new gsettings I discovered:

$ gsettings get org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor
false

The gsettings contradicts a systemd setting I have:

$ cat /etc/systemd/logind.conf | grep -i lidswitchdock | grep -vF "#"
HandleLidSwitchDocked=suspend

dconf-editor a complete GUI application

There is also dconf-editor a full blown GUI you can use: What is dconf, what is its function, and how do I use it?

To summarize the link, install it using:

sudo apt install dconf-tools

The whole link is highly recommended reading and it covers gsettings in depth as well.


Can anyone get an myname@ubuntu.com email address?

An @ubuntu.com email address is a benefit of Ubuntu Membership:

  Benefits of Membership

  Membership entitles you to the following
  benefits:

  Voting privileges to confirm Ubuntu Community Council nominations.
  An @ubuntu.com email alias that forwards to your real email address.
  See UbuntuEmail for more details.
  An ubuntu/member/your_nick cloak on freenode - See IRC/Cloaks.
  The right to print business cards with the Ubuntu logo - The business
  cards can be found at the
  BusinessCards page, you will need to
  take care of the printing yourself.
  Syndication on Planet Ubuntu of your Ubuntu blog or the Ubuntu category
  posts in your blog, if you have one.
  Follow the registration instructions
  on PlanetUbuntu to add your blog!
  An Ubuntu Member title at the Ubuntu Forums. See this post for more
  information.
  A subscription to Linux Weekly News - see this page for instructions on how to apply.
  Ability to join the Official Ubuntu Members group on LinkedIn. See
  Membership/LinkedIn for more
  information.
  Signing up for SixXS account with an Ubuntu email address and a link to
  your Launchpad page will grant you an
  "Ubuntu Credit Bonus" of 25 credit
  points.
  SFTP access to a Web-accessible directory on people.ubuntu.com

(Emphasis mine)


Why I cannot shutdown or reboot from lightdm?

Try to reconfigure lightdm, it may fix your issue

Open terminal(CTRL+ALT+T) and execute following command:

sudo dpkg-reconfigure lightdm

Then chose lightdm from the list.
Restart your system:

sudo reboot now

It may fix your issue. If doesn't fix then follow 2nd Method.

Method 2:

Installing a new display manager can fix your problem. Steps to install GDM(a display manager much like lightdm):

Open terminal(CTRL+ALT+T) and execute following commands:

sudo apt-get install gdm
sudo dpkg-reconfigure lightdm

then choose gdm from the list. And restart your system:

sudo reboot now

Hope these methods might solve your issue. Reply for further assistance.


Getting "Scheme missing" error with wget

You need to remove the double quotes surrounding the URL, for example by using the -r option to jq:

url=$(curl 'https://api.desktoppr.co/1/wallpapers?page='$(shuf -i 1-1000 -n 1) | jq -r ".response[].image.url" | sed $(shuf -i 1-20 -n 1)'!d')

Currently the command actually results in

wget "\"http://a.desktopprassets.com/wallpapers/...jpg\""


gsutil tool is not found while building ubuntu-1804 images using packer

You have to install the package for gsutil executable by
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install gsutil


Can't upgrade Ubuntu 14.04 or install new apps on it

The problem is explained in the error message:

dpkg: error processing archive /var/cache/apt/archives/libnss3_2%3a3.26.2-0ubuntu0.14.04.3_amd64.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libnss3/changelog.Debian.gz', which is different from other instances of package libnss3:amd64

This is a rare error, and can have several possible causes. If this error recurs frequently, then DON'T keep fixing it over and over - you have a deeper problem that must be investigated and fixed.

How to fix: Since you probably are not using the changelog file, try renaming it. If the install succeeds, you can safely delete it.

sudo mv /usr/share/doc/libnss3/changelog.Debian.gz /usr/share/doc/libnss3/changelog.Debian.gz.bak
sudo apt-get upgrade
sudo apt-get -f install
sudo rm /usr/share/doc/libnss3/changelog.Debian.gz.bak

If you encounter any error messages during the process, STOP.


How to add directory bookmark when the parent directory is not readable?

Press CtrlL, enter the address to the desired directory, and press CtrlD.


Is it safe to remove xorg in Ubuntu 17.10?

You cannot remove all of xorg. The xorg package is a mostly empty meta package, so removing only it will achieve no perceivable difference in normal operation of the system.

The session files for both the wayland and xorg sessions, are in the same package, as well, so you won't be able to get rid of the Ubuntu (Xorg) option from the login menu.


Try to boot with an old kernel. I have the same problem and I realized that with kernel version 3.0 the booting process goes smoothly. Also , can you say your version of Ubuntu please.


Is there any way to zoom in external display?

You could zoom with

xrandr --output <Display-Name> --scale 0.5x0.5
#adjust 0.5 (^(-1) = 2x zoom) and <Display-Name>

then with arandr move the screens so they overlap to your liking (or do the math by yourself and also do the positioning with xrandr in terminal).

EDIT:
Step by step example:
Find the screen name for the screen you want to zoom (this case your external) with xrandr in terminal

$ xrandr #will output similar to this
    Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 8192 x 8192
VGA-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis)
[[...] list of modes]
DVI-I-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis)
[[...] list of modes]

this case my active displays are "VGA-0" and "DVI-I-1" (they will differ for your screen), atm DVI-I-1 right to VGA-0. Now we want VGA-0 show zoomed mirror of bottom-left quarter from DVI-I-1. So we execute in terminal:

$ xrandr --output VGA-0 --scale 0.5x0.5 #or i.e. 0.75 for 1.333x zoom factor

thereafter we start arandr and drag the screens like so:

click "apply". See if we got what we wanted, we export via "safe as" to a shellscript containing (in this case):

 xrandr --output VGA-0 --primary --mode 1920x1080 --pos 0x540 --rotate normal --output DVI-I-1 --mode 1920x1080 --pos 0x0 --rotate normal

we can add the zoom part to this:

xrandr --output VGA-0 --scale 0.5x0.5  --primary --mode 1920x1080 --pos 0x540 --rotate normal --output DVI-I-1 --mode 1920x1080 --pos 0x0 --rotate normal

now when we execute this command (in terminal, or via shellscript, ...) VGA-0 will be zoomed and put at pos 0x540 (DVI-I-1 not zoomed at 0x0).

Note that your screen names, resolution, desired zoom-level etc. will/may vary, so you have to adjust to your (and each new) screen.

Also note that some zoom factors will yield blurry results.

Side note: I used this for zooming out, wich made me able to play a game with fixed resolution on my netbook with sightly lower display resolution than desired – just noting, that's also possible ^^

EDIT2:
Another way to zoom would be changing the resolution with arandr (right click screen icon to get to context menu -> resolution), and drag screens to overlap like shown above.

pro:

less likely to blur
doable with pure gui-workflow

con:

limited to resolutions the monitor device claims to provide


Many commands seem to hang Ubuntu Server

I think I've discovered the culprit, and it has nothing to do with the VM itself. I think our network/firewall settings changed recently and it was interfering with SSH traffic. I connected to the VM with a different internet connection (outside our corporate network) and was able to administer the machine over SSH with no issues.

I'll leave this as the accepted answer in the event that someone else comes along with random weird SSH hangs and it is helpful, but mods should feel free to close this question if it is too narrow.


Referencing my own answer on a similar question

open PulseAudio Volume Control

Once you've opened PulseAudio Volume Control, choose the configuration (the last tab), then select the output and/or input you want to use from the profile dropdown menu. It should look similar to this.

If this doesn't solve the problem, verify that you get sound from other outputs, try a different HDMI cable Verify that whatever device you are trying to play sound through is working, volume is turned up, audio output is connected etc.).

PulseAudio Volume Control can also be used to adjust volume levels for each input, output, system sounds and applications that are currently in use.

Here's a post from Linuxhint with more info on PulseAudio.


You can boot without blacklisting the driver and then use lspci -v to display the information about the hardware and the kernel driver and module associated with it. The Kernel Modules: section should show module name you need to blacklist (most likely)

Sample output:

00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
    Subsystem: Red Hat, Inc Qemu virtual machine
    Flags: medium devsel, IRQ 9
    Kernel driver in use: piix4_smbus
    Kernel modules: i2c_piix4

Module name in above example is i2c_piix4

Let me know if that works. Source of this info is https://askubuntu.com/a/110343/142100


There are a number of ways of isolating and munipulating the image components.  The steps below is an easy guide to get started.

You can move the text layer independent of other components of your image with these steps.

Hit Ctrl+L to bring up the Layers palette.
Create a new Layer by clicking the New Layer icon at the bottom left of the Layer's window.  Select a solid color such as white for the Layer Fill Type.
Drag the new layer to just beneath your text layer.
Now lower the Opacity for your new layer so that you can see the image below your text layer.  You can do this by selecting the new layer and clicking the down button in the Opacity option.
Now you can move your text layer, which will be easily selectable and is isolated away from the other parts of your image.

Note:

Using the Layer palette, you can easily identify whether the whole thing is one layer.  If that is the case, you can't move the text independently.  You'd have to find a copy of the image without the text, then add a text layer to that image, and work with that.  Then use the steps above to move the text independent of the image, as well as any other components of the file.

When saving the picture for distribution, it's often flattened, where you can't work on the individual components.  You would have to save a copy in Gimp's xcf format if you want to perform more editing of the components in the future.


Ubuntu 20.04 not work lock screen after update

I had this problem as well, and after not finding a solution on S.O. / AskUbuntu, I went over to Luanchpad to poke around for related bugs or questions.
It seems this issue is specific to LightDM, and is perhaps part of a bigger security issue, and switching to GnomeDM (gdm) fixes the issue. Here are the steps I followed:
Install GDM if not already installed:
sudo apt-get install gdm3

Switch from LightDM to GDM3:
sudo systemctl status display-manager

Reset/reinstall some stuff:
sudo dpkg-reconfigure lightdm
sudo apt install --reinstall ubuntu-session

Reboot, and you should be good. Note that I don't know if switching back from GDM to LightDM will maintain the fix. From the links below it sounds like it may be part of a broader security issue and the Super+L keyboard shortcut is disabled for a reason.

More links to background:
https://answers.launchpad.net/ubuntu/+question/693197
Can't lock screen with shortcut on Ubuntu 20.04 gnome
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1806961


In 10.04, you can just install the php-apc package.  9.04 is no longer supported (see https://wiki.ubuntu.com/Releases).  9.10 does have this package as well.  Also, 10.04 has PHP 5.3.2, not 5.2.x.  PHP 5.2 is no longer supported by PHP.  If you need PHP 5.2, Ubuntu Hardy (8.04) will still have PHP 5.2.4 supported until April 2013.


How to add a temperature indicator to the panel?

Yes, Psensor is available on the Ubuntu repositories since Oneiric.

For other Ubuntu versions, you can install it using a PPA. You will find the installation instruction in the Ubuntu dedicated page of the Psensor website


If it is an old machine, use better Xubuntu or Lubuntu, which are less demanding to system resources. If you like to use ubuntu, use maximum RAM (2-4 GB is ok). With less memory you can run ito the troubles and performance can be slow then.

Easy steps: download ISO, burn ISO, install. You can use official guidelines: https://help.ubuntu.com/community/Installation


Unable to install Postgresql-10 on Ubuntu 16.04?

I guess  Postgresql apt repository didn't added.

Add PostgreSQL apt repository

echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' >> /etc/apt/sources.list.d/pgdg.list

Import the repository signing key, and update the package lists

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

Install PostgreSQL

  sudo apt-get update
  sudo apt-get install postgresql-10

ref


GRUB Drops to Rescue Shell - Fix MBR and Windows Bootloader

Maybe the boot repair tool will help (see also this and this answer). You can install it inside a live system using:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update && sudo apt-get install -y boot-repair && boot-repair

Here's some information how to proceed in grub rescue mode.


I found something in Application-> System tools-> Preference-> Display

Then you should have something like Color (where you  see keyboard, power management, printers). Open that thing up, select your display and then click properties. In my case it offered to install packages automatically libicc2, libcolord-gtk1, argyll, libimdi0.
Ubuntu 14.04, gnome-session-fallback.

Alex.


Lubuntu 18.04 freezes after hours of idling

Yes this happens in Ubuntu/Lubuntu in case you are using Laptop I don't know why. But the solution is choose the option 'do nothing' or make it clear that It do not 'suspend'. Hope this solves the problem.


How do I install Ubuntu alongside a pre-installed Windows with UEFI?

If you are using Ubuntu 16.04+, many issues with compatibility are now solved. But still, depending on the version you are using and the hardware/model you have, you might need all or some of the steps provided in this answer.
If you are reading this in August 2017+, I can say that with Ubuntu 17.04 I have installed it on over 40+ Laptops with UEFI, ranging from Lenovo, Dell, HP, Sony, Acer and Toshiba where the models were 2016 and Up, and I have had no issues at all installing Ubuntu by simply following the steps in the installer. With the basic steps I mean:

Insert the Ubuntu USB Installer
Select Install Ubuntu (Install Ubuntu alongside Windows)
Select Wireless Card & Upgrade 3rd Party software while installing Ubuntu
Finish installation and see Ubuntu install without any issue with Windows or Ubuntu.

Now, this is not a 100% full proof verification. Am just mentioning that I am impressed by the fact that out of 43 total Laptops, 43 did not have any issues whatsoever on my end. Still, if you do have an issue, this is the reason why this guide was created.

Before explaining the steps to do it, I want to be clear that I have tried many ways of installing Ubuntu with versions older than 15.04 (Or any other distro for that matter) from within Windows 8 or Windows 10. No luck. Microsoft Windows really created a big mess for all Linux distributions. If you have a pre-installed Windows 8 system, you will probably never be able to install Ubuntu or any other OS in the normal (LiveCD/LiveUSB) or Wubi way. This is because Windows 8 introduced several new features, of which 2 are:

UEFI which substitutes what we have known as the BIOS (an alternative to)
Secure Boot which prevents anything but the installed operating system, in this case, Windows 8 from booting. This is no longer the case for Ubuntu since 12.04.2 so there is no need to disable secure boot.

On a further note I want to mention something about Secure Boot taken from the UEFI Wiki

SecureBoot

"Secure Boot" is a new UEFI feature that appeared in 2012, with Windows 8 preinstalled computers. Ubuntu supports this feature starting with 12.10 64 bit (see this article) and 12.04.2 64 bit, but as PCs implementing support for it have only become widespread at the end of 2012 it is not yet widely tested, so it's possible that you may encounter problems booting Ubuntu under Secure Boot.

IMPORTANT: If you do find a bug, please file a bug report against the shim package in Ubuntu, preferably using the command:

ubuntu-bug shim

once you've installed with Secure Boot disabled. As mentioned by slangasek:

  It is not required to disable SecureBoot in the firmware to install
  Ubuntu on a Windows 8 machine. Ubuntu 12.04.2 and 12.10 are
  SecureBoot-compatible. Any machine that ships with the recommended
  Microsoft Third-Party Marketplace keys in firmware will be able to
  boot Ubuntu under SecureBoot. If there is any problem file a launchpad
  bug for the shim package.

I also want to notify that I spend this week testing 15.04 and had an excellent outcome. Of 12 Laptops ( 4 Toshibas, 3 HP & 5 Lenovo) where Windows 8.1 was pre-installed, on all cases, Ubuntu detected the Windows Boot Manager correctly, gave the option to install alongside Windows 8.1 (It actually said Install alongside Windows Boot Manager) and solved any issues that appeared on previous Ubuntu versions. I basically did not have to do anything else on this cases. This was with Secure Boot on and on an EFI enabled boot system. I also. Tested 4 Windows 10 PCs and it worked perfectly with 15.10 & 16.04.

This does not mean that in your case it will work perfectly, it just means that on my cases, I had a 100% Ubuntu Perfect installation. Again, with 15.04 (Also on 15.10 and 16.04. On all cases it was 64-bit). I even had talks with users like Marius Nestor from Softpedia who actually had to disable Secure Boot in order for the installation to work, so it should be noted that, even if I currently have an excellent experience with Secure Boot, you might not. Keep this in mind when all else fails (We can thank Marius for his excellent contribution). I would in any case, send the bug report to the provided link above.

So with all of this said, installing Ubuntu via WUBI is not doable (not recommended at least from me), things like trying to boot for example with the Windows 8 bootloader are not possible right now unless something changes in the future (There are also some bugs related to this in launchpad, like the one mentioned by bcbc). Apart from this, WUBI does not work from within Windows 8 and up if you have UEFI with a GPT Partition (Not MS-DOS type partition). Pleas read Does UEFI support mean Wubi will now work on laptops shipped with Windows 8? for more information.

Not only that, but trying to install 32 bit Ubuntu is impossible. You need the 64 bit version for everything to work correctly. Read more about Wubi in Can I install Ubuntu inside Windows?

The following is a small guide to install Ubuntu with a Pre-Installed Windows 8 or 10 system. The steps HAVE TO BE done in the precise order I mention them here to get everything started. If a step is skipped or done before another, you will most likely end up with some of the problems mentioned at the bottom of this guide.

For the time, you need to do it via a LiveCD, LiveDVD or LiveUSB, assuming (actually requiring) you have the following points:

You are using a 64-bit version of at least Ubuntu 12.04.2. 32-bit versions will not work.
Your system came with Windows 8 or 10 pre-installed (And you do not want to delete it)
You are not installing Ubuntu inside of Windows 8 or 10 but rather alongside of it. Inside it is impossible because it needs Wubi which is unsupported.
Your system has UEFI activated (And cannot be disabled) with Secure Boot.
You have already created a free space for Ubuntu from within Windows 8 with at least 8 GB (I recommend to leave at least 20 GB or so, so you can test the hell out of it).
You made sure that you actually have free space left on the drive to create the needed partitions and you also made sure that you did not have all primary partitions used (In case of using an MS-DOS Scheme) because this will create a problem with the Ubuntu installer showing you only the "Replace Windows" option instead of the "Alongside Windows" option.
You know how to burn a LiveCD, LiveDVD or LiveUSB from within Windows 8. If not, look for Windows apps that can do that for you. I do mine in another PC with Ubuntu ^^.
Windows 8 was not shutdown in either Hibernation mode or any other mode ('fast start-up' which is by default on Windows 8) that leaves it on a saved state. Shutdown Windows 8 in the normal way, with the shutdown option. This will prevent other problems related to this from appearing. Read the bottom (TROUBLESHOOT) of this answer for more information regarding this point.
You are installing on an MS-DOS type disk scheme (You can only have 4 primary partitions as opposed to GPT Scheme) which has at least 1 Free Primary Partition (You can find out the type of scheme you have from here if operating on an Ubuntu Live CD or here if from Windows). Remember that if you are already using 4 Primary Partitions no partitions will appear on the Ubuntu installer since there are no more Primary partitions left to use (MS-DOS type partitions are limited to 4 Primary ones, GPT are limited to 128). This happens a lot on many laptops that come with 4 pre-created primary partitions. If you are installing on a GPT type partition and want it to boot, you need to leave UEFI enabled.

PLEASE READ THE ABOVE POINTS SINCE MANY USERS JUMP THIS PART AND WHEN THEIR PROBLEMS ARE FOUND IT NORMALLY IS BECAUSE THEY DID NOT FOLLOW ONE OF THEM.

Before we start we need to do the following:

Run compmgmt.msc on  Windows 8. From there on, create a partition with enough size. Note that I mention creating this FROM Windows 8 because I have had cases where doing the partition from the LiveUSB rendered Windows 8 unbootable, even after doing a boot repair. So to remove that problem or have a greater chance of removing it (Or simply skipping the problem altogether) and making sure both systems work, partition your hard drive from within Windows 8 first.

Now follow this steps to have a working Windows 8 + Ubuntu installed on your system:

Windows 8 + Ubuntu

We first need to know with what type of motherboard options we are dealing with. Open a terminal (By going to the start menu and typing PowerShell for example) and run the terminal as an Administrator (Right Click the app that will show in the start menu and select Run as Administrator). Now type Confirm-SecureBootUEFI. This can give you 3 results:

True - Means your system has a Secure boot and is Enabled

False - Means your system has a Secure boot and is Disabled

Cmdlet not supported on this platform - Means your system does not support Secure boot and most likely you do not need this guide. You can install Ubuntu by simply inserting the LiveCD or LiveUSB and doing the installation procedure without any problems.

If you have it Enabled and have the necessary partitioning done then we can proceed with this guide. After booting into Windows 8 we go to the power off options and while holding the SHIFT key, click on Restart.

(This is a really old trick on most Windows, even since Windows 3.1 where you hold a key to do something special when rebooting)

Windows 8 will show you a totally different restart window:

When you get the menu above, select Troubleshoot

You will then get the following options:

Select UEFI Firmware Settings

NOTE - In the Spanish version of Windows 8, the option for UEFI Firmware Settings is not available in several laptops, tested Lenovo, HP, and Acer. They do have an option to boot the computer and another custom menu will appear which lets you do a couple of things. In the case of Lenovo, you will not have an option to install Ubuntu with Windows 8, the only option is to remove Windows 8 completely. This only applies if you are not using 15.04+.

THIS IS AN IMPORTANT PART

The system will reboot and you will be allowed to go to the BIOS (If not press the appropriate key, some common are DEL,F2 or F10).

In this part, I can't help much since each BIOS is different for each Motherboard model. There are 2 options you can take here, both of which are optional since Ubuntu might install without any problems at all. You can either look for an option to disable Secure Boot or an option to disable UEFI. In some cases you will be able to find both, it will show in the BIOS as an option called Secure Boot or Enable UEFI.

If you find this options, then depending if you cannot install Ubuntu with Secure Boot enable then disable Secure Boot (Remember to report this as a bug using ubuntu-bug shim), to be able to still stay in UEFI mode and also be able to Boot with Ubuntu. In some motherboards, this will be the only option you actually need to change and also will be the only option you see related to UEFI because they will not offer the possibility to disable UEFI.

DUAL BOOT ISSUES

I would also like to mention an important note here. If you happen to install Ubuntu in Legacy Mode (No SecureBoot) you might have problems booting both, Windows and Ubuntu at the same time since they will both not appear on a Dual-Boot Menu. If you have Windows on UEFI for example and you install Ubuntu on Legacy Mode, you will only be able to boot to Ubuntu in Legacy Mode and Windows in UEFI Mode.

So before proceeding, make sure that you are installing Ubuntu with the same boot options as Windows. This way you will be able to choose which one to boot from in the same boot menu and not worry if one will work or not. From the Ubuntu UEFI Guide
you can see that there is a section that teaches you how to know if you actually installed Ubuntu in the same Boot setup as Windows (UEFI Mode):

An Ubuntu installed in EFI mode can be detected the following way:

    its /etc/fstab file contains an EFI partition (mount point: /boot/efi)
    it uses the grub-efi bootloader (not grub-pc)
    from the installed Ubuntu, open a terminal (Ctrl+Alt+T) then type the following command:

    [ -d /sys/firmware/efi ] && echo "Installed in EFI mode" || echo "Installed in Legacy mode"

So if you have ANY dual boot problems, this could be the problem. Please read the Ubuntu UEFI Guide since it covers various ways of solving Dual boot problems and converting Ubuntu to Legacy or EFI mode. I have already tested this with various Ask Ubuntu members that helped me apart from 2 Laptops I was provided with for the testing. This should then solve any Dual Boot problems related to Windows 8 + Ubuntu, but I again encourage anyone with problems (same or new) to file a bug report as mentioned above. The Ubuntu Developers are working very hard in providing an easy to install solution for all cases and this is one of the top priorities.

Continuing with the guide, in other motherboards that do offer the possibility to disable UEFI which would completely eliminate UEFI and Secure Boot on it and boot in the normal BIOS like way, if you find this is the way you want (To have a UEFI free computer and not face any of the problems related to this) then, by all means, do it. I for one have tested the Intel DZ68DB and did both case studies. Remember that doing so will make the Dual Boot process not work in almost all cases you will be left with a system that either Boot Windows in UEFI or Boots Ubuntu in Legacy.

With that in mind, remember to also select the Boot Order to make sure that it boots either your CDROM, DVDROM or USB Drive so you can boot from your Live Ubuntu image after rebooting.

Some points we should consider before continuing:

If Windows 8 was installed with UEFI enabled, it is highly recommended to stay in UEFI, although if you still want to disable it for specific reasons you can, GRUB will create the bootable part for Windows 8. But if you do disable UEFI and want to access Windows 8 afterward (before installing Ubuntu), it will not work since the boot part for Windows 8 needs UEFI (Again the Dual Boot problem).
If you only disable Secure Boot, there is no problem in some cases. You are only disabling the part that creates the most problem between Windows and Linux, which is the one that prevents Ubuntu from booting correctly. In either case, I encourage you to first try to install Ubuntu with UEFI/Secureboot, since in most cases it will work. if you disable any of them and install Ubuntu, you might not be able to boot to Windows 8 afterward through the GRUB Boot Menu.

Now before saving, some motherboards offer a Boot Mode option. Verify that this option is not pointing to UEFI Boot but instead to CSM Boot (Compatibility Support Module) which provides support for Legacy BIOS like systems.

Other systems offer a UEFI Boot option you can enable or disable. Depending on the options I mentioned above you can set this to the one you want.

And lastly, others offer a UEFI/Legacy Boot First option where you select which one you wish to use first. Obviously, the option is self-explanatory.

Now save the changes and reboot.

When the Ubuntu Live image starts, it will show rather different than the normal one we are all used to. Do not worry, this is because Ubuntu has an alternative boot option when a system has EFI installed. Just select everything like you are used to. I highly recommend reading the following article in the Ubuntu site regarding Ubuntu installations when using UEFI. If there is a problem, then try to create a small partition (About 250 MB of size) for the EFI part of the system. This is done in the installation part where it asks you if you want to install on the desired partition or used the Advanced Options. Select the advanced options if you come up with a problem.  In there, create a 250 MB partition for EFI and the rest for GRUB and other stuff you are accustomed to.

I think up to here you should be fine and have avoided several problems typically found when trying Ubuntu with Windows 8 which are:

Not booting a LiveCD/LiveDVD/LiveUSB/Wubi
Not installing Ubuntu because of security issues (Yeah right, more correctly monopoly issues)
Not booting either Windows 8 / 10 or Ubuntu (not showing either one of them)
Not letting Ubuntu create a partition
Not recognizing the EFI part of the system
Ubuntu not recognizing the Windows 8 / 10 Partition
Not seeing GRUB and booting directly to Windows
Windows 8 / 10 not booting or readable because or partition changes are done from Ubuntu

TROUBLESHOOTING

YOUR COMPUTER BOOTS DIRECTLY TO WINDOWS

This is a common problem and if you do not get a GRUB menu, re-installing or repairing grub will NOT HELP

Every BIOS/EFI system is different, it might look like one of the following pictures:

Notice the "UEFI Boot Option Priority" or "Boot Option Menu". Usually, Windows is the default and Ubuntu (or as in the second picture elementary OS) will be an option.

Once you select Ubuntu on the UEFI boot menu you will then get a grub menu. You should be able to boot either Ubuntu or Windows from the grub menu.

Another issue that could make the system boot directly to Windows (without even showing the GRUB menu) is if either Windows took hold of the boot manager or after installing Ubuntu, the EFI partition was not properly configured for Windows. To solve this, simply go to Windows and open a terminal, then type the following (Need Administrative Privileges):

bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

This will configure the Windows Boot Manager to take into consideration the GRUB Boot Manager. This could still happen even after running the Boot Repair from within Ubuntu. So making sure that Windows reads the Ubuntu EFI partition, in case you are using an EFI boot system instead of the old BIOS will solve it. In the above command line, the difference between shimx64.efi and grubx64.efi is that shimx64 is the actual Microsoft signed binary that works with Secure Boot enabled while grubx64 is the normal grub binary (Not signed).

Windows 8.1 / 10 Not Recognized / Ubuntu not showing option to Install Alongside

If you have followed all the steps above including making a partition ahead of time through Windows 8.x, proceed with the normal Ubuntu installation. When you arrive at the option to how you would like to install it if you do not see the option to install Alongside it, select "Something Else" instead of wiping the hard drive. Configure the new partition layout on the empty space you've set aside that isn't Windows 8 / 10.

You need to create at least 1 partition for the root system (Which shows as the symbol "/") and set it to Ext4, another for SWAP (Virtual Memory). The SWAP space can be as small as 128MB if you have a lot of ram or as high as 4GB. With this 2 partitions created based on the empty space you provided you should be ready to proceed. And one last one for the EFI part which should be around 100MB.

When the installer asks where to put the bootloader, tell it to put it on the partition with the type "efi". This will install GRUB which will load once your system starts in the future which will give you the choice of going with Ubuntu (or whatever flavor is installed) or going to the Windows Boot Manager which will take you to Windows 8.

I would also recommend reading the following links to get additional information on some issues and causes in this particular part:

"Install alongside" option missing. How do I install Ubuntu beside Windows using "Something Else"?
How do I install Ubuntu alongside UEFI enabled Windows 8?
How to use manual partitioning during installation?

REPAIRING THE BOOT

After finishing the installation, if you happen to have Windows 8 disabled from booting and it only boots to Ubuntu, do not worry. In Ubuntu after it boots, install Boot-Repair in Ubuntu by opening a Terminal and typing the following:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install boot-repair
boot-repair

Boot Repair will mention that we have some GRUB error, that we have an EFI system and that Ubuntu rocks. Since Ubuntu rocks (It does not work if Ubuntu does not rock! ^^), just click on Apply so boot repair fixes everything. Now reboot and you should see Windows 8 and Ubuntu side by side.

For cases with rare booting problems, partitioning or using old hard drives on a newer motherboard, your solution might be checking out FixParts which solves misaligned partitions and other partitioned type problems.

If you are experiencing one of the following issues:

Loosing Data when copying from Ubuntu to Windows 8 after shutting down Windows 8
Can not access your Windows partitions from Ubuntu getting a Disk contains an unclean file system

This is most likely the cause of an option in Windows 8 called Fast Startup which behaves similar to hibernation and keeps a snapshot of the system so when you boot up, it will load faster. Since it keeps a snapshot, anything you copy or change in Windows 8 from Ubuntu after doing the fake shutdown will be lost (Apart from other issues found HERE).

The solution in Windows 8 is to go to:

Control Panel --> Power Options --> Choose what the power button does

In here click on "Change settings that are currently unavailable" where you should see something like this:

Uncheck the option that says "Turn on fast startup".
You also need to disable hibernation. You can do this with this command (you need to be in a console with admin rights):

powercfg.exe -h off

This should remove the hibernation file and enable partition to be mounted in Ubuntu.

A demonstration video is now available on this issue. We can install Ubuntu 12.04.2 (64 bit versions) onwards with SecureBoot enabled. But we need to disable the SecureBoot after the Boot Repair step.


How can I click the "Home Folder" on dash to open another Nautilus explorer when there is one already opened?

Middle click on an icon in the unity dash to open a new instance of the program. This applies to nautilus also.


Its not clear to me whether the original feature was meant to invoke the "bell" on the mainboard speaker, or use the desktop audio system. But this feature seems to have been broken in Ubuntu for several years. I just checked it with a Ubuntu 14.04 live CD and it definitely still does not work.

Its a shame, as this feature would not only be useful for people with accessibility needs, but for everyone; after all its easy to accidentally bump the Caps Lock key without noticing it.

The caps lock indicator light on most keyboards is a piddly little thing at the opposite end of the keyboard (really clever!), and on some laptops it is absent or is a micro-LED tucked under the lip of the laptop so you have to hold it up to eye-level to see the damn thing (there should be a special hell for the people who designed that 'feature').

There are various bug reports about this issue, none of which seem to have received any serious attention. Pretty disappointing, when Windows provides this feature but Ubuntu can't be bothered.

There is a "fix" mentioned here: "Can I make my Ubuntu make sounds when I press Caps Lock etc.?" (I have not reproduced the content of that article as its rather long). I have not yet tried that suggestion.


Minecraft Black Screen Ubunutu 12.10 using Java 7

Just realized...you are running minecraft directly, you don't run minecraft from the bin directory, you run it from the launcher.

Launcher is located on the minecraft.net site

https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar

Same name, different programs

If that doesn't help refer to the following...

Definitive guide, I have been running Minecraft for a long time now and this guide has shown me a few tricks

How can I install Minecraft?


How to stop an application from outputing sound?

Once an application is already running if you launch the gnome-control-center, then go to the Sound section:

After you have entered that section go to the Applications tab:

And then you will be able to change the volume for individual applications (only applications currently outputting sound will be listed):

You can use the On/Off sliders to mute and unmute the volume.


Manually deleting log files is a very bad idea, especially, if these files are still being held open by the kernel. Please use and configure logrotate accordingly. For further details see - Ubuntu manpage for logrotate


My issue was that I had pulseaudio running at the same time as JACK on the same sound card.

Pulseaudio and JACK can't run on the same sound card at the same time.

This link fixed my problem


Audio volume is maximum but when i play music its not the best maximum level yet compared to Fedora, Windows XP

This might be something you have done already, but just in case you have not:

If you go to the sound settings you will see that the sound goes normally only up to 100%:

But if the soundcard does not report the maximum correctly, then you might still get decent sound above 100%:

If you haven't tried this before, it might help.


14.10 - Wifi stopped working on two laptops, both with Atheros AR9285 network adapters

This may help you:

atheros wireless ar9285 driver
http://ubuntuforums.org/showthread.php?t=1286503


The cd setup command needs to be run from the user's Home directory where the setup directory is located, not from the C: drive in DOSBox, otherwise DOSBox will not be able to find it.

The setup directory can be mounted in DOSBox as follows:

Z:\>mount C: /home/rajat/setup
Drive C is mounted as local directory /home/rajat/setup

where Z:\> is the DOSBox prompt and mount C: /home/rajat/setup is the command to mount the setup directory in rajat's Home directory in DOSBox. This command returns a message that says Drive C is mounted as local directory /home/rajat/setup.

To list the contents of the setup directory type C: to change directories to the new C: directory and press Enter. Then type dir, the DOS equivalent of the ls command in Linux, and press Enter to list the contents of the setup directory.

DOSBox is different from Linux in the way that it gives its own names to files and directories, so it is convenient to type only the first few letters of the file or directory's name and then press Tab to  autocomplete the name in DOSBox.

Turbo C++ is very old; some say it's obsolete. The modern alternative to Turbo C++ in Ubuntu is g++ which can be installed with sudo apt install g++ and IDEs for C++ in the default Ubuntu repositories are codeblocks and codelite.


Try:
lscpu | awk '/CPU MHz/{if($NF+0>1000)printf "%.3f GHz\n",$NF/1000; else printf "%.3f MHz\n",$NF}'

How it works

/CPU MHz/{...}
This selects the line we want and executes the commands in curly braces only for that line.

if($NF+0>1000)printf "%.3f GHz\n",$NF/1000; else printf "%.3f MHz\n",$NF
If the final field, $NF, is greater than 1000, then we divide it by 1000 and print it as GHz.  Otherwise, we print it as MHz.  The format %.3f determines how many significant digits are printed.  Adjust this to suit your tastes.

Multi-line version
For those who prefer their commands spread over multiple lines:
lscpu | awk '
    /CPU MHz/{
        if($NF+0>1000)
            printf "%.3f GHz\n",$NF/1000
        else
            printf "%.3f MHz\n",$NF
    }'


Fan is on constantly after recent update

Found the answer, just reinstalling it fixed it:

    sudo apt-get purge fancontrol && sudo apt-get install fancontrol


Ubuntu 16.04 repeats keys without holding down any key

I tried turning off "repeat keys". It does stop the endless 5's across the screen, but I still get random single 5 characters.  Losing the ability to repeat arrow keys is a nuisance, but not as bad as the main fault.


Raspberry Pi 4 Microk8s cluster is not starting containers?

I'm going to leave this up in case anyone runs into the same problem. The issue was that I was trying to run an x86 container on an arm64 architecture. Definitely a novice mistake, but that's why I bought my pi's to begin with!


How should a rewrite rule look like in htaccess

To "redirect" all visitors from sub.example.com to https://sub.example.com:9545, whilst maintaining the URL-path (I assume) then you could do something like the following in .htaccess using mod_rewrite:
RewriteCond %{HTTP_HOST} ^sub\.example\.com$
RewriteRule ^ https://%{HTTP_HOST}:9545%{REQUEST_URI} [R=302,L]

However, I wonder if you meant "rewrite" (as in internal redirect), rather "redirect" (as in external HTTP redirect) - do you wish the user to see the port?
If you wish the port to be hidden from the user then you can't simply rewrite the request, you need to configure your server as a reverse proxy and proxy the request to https://sub.example.com:9545 using mod_proxy. This does require some additional server configuration.


Internet not working after switching wifi

Create a script that restarts your NetworkManager after suspend:

sudo gedit /etc/systemd/system/wifi-resume.service

Paste the following in it:

#/etc/systemd/system/wifi-resume.service
#sudo systemctl enable wifi-resume.service
[Unit]
Description=Restart networkmanager at resume
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart network-manager.service

[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

Now activate it:

sudo systemctl enable wifi-resume.service

From Wifi doesn't work after suspend after 16.04 upgrade but can't mark as dupe, credits to Joakim Koed.


Ubuntu 16.04.3, Google chrome plays very little sound

Finally, fixed this issue, in sound setting.


Maybe you need to install the devel packages of gstreamer. Try installing these packages:

sudo apt-get install libgstreamer-plugins-base1.0-dev


How to fix microphone that sometimes has wrong volume, other times doesn't work at all?

Install gnome-alsamixer  and select the mic boost option in it.


Command sudo halt don't run : speed dispatcher disabled edit /etc/default /speed dispatcher

Updated as per comment above: Your computer is probably behaving as it should. There's a difference between "halt" and "poweroff" (and "reboot", of course).

Reboot means, as you probably know, "shutdown the operating system, then restart it".

Halt means, "shutdown the operating system, then leave the machine as it is, so the human operator can do as he pleases (reboot, power off or whatever he wants)".

poweroff means, "shutdown the operation system, then power off the machine".

There are commands for all three of those, called reboot, halt and poweroff. Additionally, you can use the shutdown command which offers options which way of shutdown you want, shutdown -h now, shutdown -r now etc. For more information, see man shutdown. Of course, there's a man page for reboot, halt and poweroff as well.

Maybe the line you're seeing is about speech-dispatcher rather than speed-dispatcher? There are applications for Ubuntu that allow you to synthesize speech, for example to have the computer read texts for visually impaired users. speech-dispatcher is a package that supplies a common interface that such speech synthesizers can use. It looks like you installed that package (maybe as a dependency for some other package), but didn't configure it. If want to use speech-dispatcher, you'd probably want to configure it. If you don't, you can disable it to be started at boot time. This can for example be done with the graphic run level editor bum, as described here.

This should get rid of the "speech-dispatcher" line, but not necessarily of all lines. Ubuntu writes a lot of information to its terminal, about what it's doing, maybe what went wrong and such. When you start the graphical interface, it "covers" those messages. When you stop the graphical interface, the messages get visible again. So it's possible that the messages you're seeing are not from the boot process, not from the shutdown process.

In my estimation, your problem mostly is that when you command your computer to shutdown, it shuts down the graphical interface, but for some reason can't shut down the computer as a whole. Maybe your machine doesn't support it, or maybe something can't be terminated properly. Judging from this question, speech-dispatcher may be the cause, but this is mostly guesswork. If you disabled speech-dispatcher and your machine still doesn't shutdown properly, I'd look into the ACPI support of your machine.


Why is the PSPP program not present in the Ubuntu 20.04 LTS Focal Fossa repository?

The PSPP package was dropped from Debian, and thence from Ubuntu, due to a licensing problem.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=924937


Creating A Bootable Partition On USB Drive

It isn't recomend but you can resize current partition and create, make bootable another one using GParted. This flash drive may not work correctly on some systems.


Open terminal (Ctrl+Alt+T) and run this command:

tar -zxvf aircrack-ng-1.1.tar.gz
cd aircrack-ng-1.1
make
make install

That's it.


How can I list folder contents in Samba share?

You can try with -c|--command command string

smbclient -U <user> //192.168.0.1/Share -c "dir myFolder/*" > output.txt

Man page


Where are the software update files stored, and what happens after they are applied?

try

  sudo apt-get autoclean

It will not delete any installed packages but only clean /var/cache/apt/archive from deb-files (essentially can be used for cleaning temp files)