Changing the mapping of the control key is a two step process. The first part is to get the right information for the keycode and keysym. The second part is to make sure the modifier mapping is right.

It sounds like you've got the correct keycode already so try this instead. Create a file myxmodmap with the following

clear control
keycode 97 = Control_R
add control = Control_R Control_L

Now process the file with xmodmap

[~]$ xmodmap myxmodmap

If you want those xmodmap expressions to be processed each time you log in change the file name to ~/.Xmodmap


Startup script for a specific user on Ubuntu Server

Try this:

Edit /etc/rc.local.
Add this to the bottom of the file:

su -c 'VBoxHeadless -s "pfsense"' enedene &


"apache2" is using port 80, but why is apache even running?

The easiest way to see whether anything is using Apache would be to check the log files. So long as Apache is configured in a semi-standard manner, you can see every incoming request.
Try this:

Open Terminal (if it's not already open)

List the files in /var/log/apache2:
$ ll /var/log/apache2/*access*

This should give you something that looks like this (minus the Japanese dates):
drwxr-x---  2 root adm      4096  2月  5 00:00 ./
drwxrwxr-x 18 root syslog   4096  2月  5 00:00 ../
-rw-r-----  1 root adm         0  2月  6  2020 access.log
-rw-r-----  1 root adm         0  2月  2 00:00 hrtool-access.log
-rw-r-----  1 root adm    105344  2月  1 14:01 hrtool-access.log.1
-rw-r--r--  1 root root    14701  1月 29 22:10 hrtool-access.log.2.gz
-rw-r--r--  1 root root        0  2月  3 16:33 kirin-access.log
-rw-r-----  1 root adm         0  2月  4  2020 other_vhosts_access.log

With this I can quickly look through the file sizes and dates. For the example above there have been recent accesses to one of the virtual hosts this week. If nothing is accessing your Apache installation, then the dates for these files may be weeks, months, or years in the past.

Before removing Apache completely, which could have unexpected consequences on any application that might need it, you can first disable it:
$ sudo service apache2 stop

If you see that all of your applications and systems continue working as expected, you can completely remove Apache like this:

Open Terminal (if it's not already open)
Remove the Apache tools:
$ sudo apt purge apache2 apache2-utils apache2.2-bin apache2-common

Clean up the packages:
$ sudo apt-get autoremove

Look for any remaining directories:
$ whereis apache2
  apache2: /etc/apache2

Remove any remnants:
$ sudo rm -rf /etc/apache2

Done and done.


How to prevent login directly to my defaul desktop?

Logging out will bring up the login screen. There, click the icon to the right of your user name to select a new desktop environment. Now you can log in using LXDE, and LXDE should be the default from now on.


How to remove audio from a specific time duration of a video

With openshot is a matter of minutes --- you can install it from the standard repositories with sudo apt-get install openshot or using the software center.

Then

open the application
load the video
move it on one track
cut the video into subclips where you want to silence it (green arrows below)
click on the audio of the clip you want to silent.
write the new video in the format you want.

You have a very nice tutorial here: http://www.openshotusers.com/help/1.3/en/ar01s03.html


Command-line-chess  does not have multiplayer capacities but can still interest you :

sudo apt-get install python3-pip
pip3 install cl-chess
chess


Ubuntu crash: BUG: unable to handle kernel NULL pointer dereference

BIOS
ASUS P8H77-M PRO
It's possible that you have an incorrect BIOS installed.
You have BIOS version 9012, dated 09/18/2018.
The most current BIOS that I see on the web site is 1505, dated 03/20/2015, and can be seen and downloaded here.
Note: Confirm that I have the correct web page for your motherboard.
Note: Have good backups before updating the BIOS.
memory
Go to https://www.memtest86.com/ and download/run their free memtest to test your memory. Get at least one complete pass of all the 4/4 tests to confirm good memory. This may take many hours to complete.


As @geon noted over on StackOverflow:

I used apt-get to install node. Npm was not included in that package, so it had to be installed separately. I assumed that would work, but apparently the npm version in the Ubuntu distribution was outdated.

The node wiki has this instruction:

Obtaining a recent version of Node or installing on older Ubuntu and other apt-based distributions may require a few extra steps. Example install:

sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

After that, npm was already included and worked perfectly.


I have a solution that does not do exactly what I want but perhaps it will help some people out. You will at least be able to access the server from a remote location while it is behind a VPN.

What you could do is set up a reverse SSH tunnel to another server not behind a VPN or use a service that provides tunnels such as openport. These services are easy to set up but won't allow you to use your own IP (and often port) to connect.


Update Manager bug: Encountered a section with no Package: header

Please do:

sudo rm /var/lib/apt/lists/* -vf

The first command will remove the damaged list and when you run the second command it will replace it with a new list.

sudo apt-get update

all should be fixed.


clipboard stops working on x2go windows client when accessing ubuntu server

I'm Stefan Baur, X2Go's Community Manager.
This is actually a long-standing bug with X2Go that is particularly hard to track down, as the conditions to trigger it are not quite clear yet.
It seems you had posted a bounty for this issue, but it was removed again?
I'm posting here to let you know we're aware of the issue and are currently looking for sponsors to get it resolved.  Some have already stepped up.
If you want to chip in (again), let us know by subscribing to the X2Go-User Mailing list (https://lists.x2go.org/listinfo/x2go-user - note that this is a double-opt-in list, you need to subscribe and click the confirmation link in the E-Mail sent to you before you are able to post) and posting a message with a Subject like "X2Go Clipboard Bounty" or similar - that should catch my attention.


after $make do i need to transfer to /usr/local/bin all files or just the executable?

You only need to copy the executable files, to a location that is on your PATH such as /usr/local/bin/ or ~/bin/.
In general, software may install some or all of the following:

executables to a suitable bin/ directory
shared library files to a suitable lib/ directory
documentation to a man/ and or info/ directory
configuration files to etc/
other files to a share/ directory

In that case, the developers usually provide an install target (run as make install) to distribute files into the appropriate directories.
In the case of the trimal software, there does not appear to be anything to install apart from the three executable files trimal, readal, and statal and no install target is provided.


Bind uses a compile-time built in default list of root servers hints if no hint zone is specified or exists in your bind config.


Does 'sudo apt-get build-dep build-essential gcc' download gcc and all its prerequisites

Your proposal is overkill!

gcc is preinstalled in Ubuntu by default
the build-essential package contains gcc
build-dep attempts to pull in packages required to build the selected packages from source but you do not need to do that to use them

Conclusion

To install gcc in Ubuntu you don't need to do anything at all.


Get Window Title or Application Name with Python

Below updated version. I'll leave the old answer, to not remove the answer that got the votes.
#!/usr/bin/env python3

import gi
gi.require_version("Wnck", "3.0")
from gi.repository import Wnck

scr = Wnck.Screen.get_default()
scr.force_update()
print(scr.get_active_window().get_name())

or get xid:
print(scr.get_active_window().get_xid())

or (not very surprising) get pid:
print(scr.get_active_window().get_pid())

Also see here to get Wnck.Window methods.

Old answer:
I'd just parse the output of either xprop or xwit and wmctrl (you might have to install wmctrl first: sudo apt-get install wmctrl). xprop gives a lot of information on windows.
xprop -root

gives you information on the active window, a.o. the window id, and
wmctrl -l

gives you a list of currently opened windows. Using the -p option also gives you information on the pids the windows belong to. Combined you can get all the info you need.
for example:
In python 3, using subprocess check_output():
To get the active window (id):
-using xprop
# [1]
import subprocess

command = "xprop -root _NET_ACTIVE_WINDOW | sed 's/.* //'"
frontmost = subprocess.check_output(["/bin/bash", "-c", command]).decode("utf-8").strip()

print(frontmost)
> 0x38060fd

-using xprop, parsing it "inside" python
# [2]
import subprocess

command = "xprop -root _NET_ACTIVE_WINDOW"
frontmost = subprocess.check_output(["/bin/bash", "-c", command]).decode("utf-8").strip().split()[-1]

print(frontmost)
> 0x38060fd

Once we have the window-id, get the (pid of) the application it belongs to, using wmctrl:
NB: first, we have to "fix" the frontmost id (output) of the command above for wmctrl; the id from wmctrl and xprop slightly differs:
0x381e427 (xprop)
0x0381e427 (wmctrl)

to fix the output of the function above (using the "frontmost" output of # [1] or # [2]):
fixed_id = frontmost[:2]+"0"+frontmost[2:]

then get the pid of the (application of the) frontmost window:
command = "wmctrl -lp"
window_pid = [l.split()[2] for l in subprocess.check_output(["/bin/bash", "-c", command]).decode("utf-8").splitlines() if fixed_id in l][0]

> 6262

In python 2, using subprocess.Popen():
In python 2, subprocess.check_output is not available, so the procedure is slightly different and a bit more verbose:
To get the active window (id):
-using xprop
# [1]
import subprocess

command = "xprop -root _NET_ACTIVE_WINDOW"
output = subprocess.Popen(["/bin/bash", "-c", command], stdout=subprocess.PIPE)
frontmost = output.communicate()[0].decode("utf-8").strip().split()[-1]

print frontmost
> 0x38060fd

to get the (pid of the) application it belongs to, using wmctrl and the output of # [1]
-(again) using (and fixing) the output of [1]:
# [2]
import subprocess

fixed_id = frontmost[:2]+"0"+frontmost[2:]

command = "wmctrl -lp"
output = subprocess.Popen(["/bin/bash", "-c", command], stdout=subprocess.PIPE)
window_pid = [l.split()[2] for l in output.communicate()[0].decode("utf-8").splitlines() if fixed_id in l][0]

print window_pid # pid of the application
> 6262

to get the window name, using wmctrl and the output of # [1]
(also using socket.gethostname() to split the output of wmctrl by machine name)
# [3]
import subprocess
import socket

command = "wmctrl -lp"
output = subprocess.Popen(["/bin/bash", "-c", command], stdout=subprocess.PIPE)
window_list = output.communicate()[0].decode("utf-8")
window_name = [l for l in window_list.split("\n") if fixed_id in l][0].split(socket.gethostname()+" ")[-1]

print window_name

man xprop
man wmctrl
man xwit


I downloaded and installed this driver (from the zip) : https://github.com/lwfinger/rtl8188eu
And it worked.


What is the default configuration for the XFCE menu?

I am using the ppas for Xfce 4.10 and 4.12 on Xubuntu 12.04, but I think /etc/xdg/menus/xfce-applications.menu will be the same as in your version. I have pasted it at Ubuntu paste, so you can retrieve it and reinstall it, logout and login again (but see my notes below).

The menu is in the package libgarcon-common:

libgarcon-common: /etc/xdg/menus/xfce-applications.menu

so this is useful to know, but a reinstall of the package won't replace the config file, and purging the package so it removes the config file would remove a lot of Xfce, so those really aren't options.

Another option would be to download the package from Ubuntu packages (or from the ppa if using one) for your particular Ubuntu version and extract the deb with your archive manager and manually copy xfce-applications.menu to /etc/xdg/menus with:

sudo cp ~/location/of/xfce-applications.menu /etc/xdg/menus

It is also best to edit the menus in /home/$USER/.config/menus, then you can use the menus in /etc/xdg/menus to replace them if you make any mistakes.


Why are my MaaS nodes stuck at the commissioning stage?

This answer is incomplete and unfinished

I think that would explain the problem, yes. MAAS is stuck waiting for the nodes to boot up, perform some simple self-test tasks, and call back to the server. But if they get stuck, or have no network access, then there's no way for commissioning to complete.


Because Papyrus UML doesn't have 64 bit version, first install the 32bit support on your system:

sudo apt-get install ia32-libs

After that:

wget http://www.papyrusuml.org/home/liblocal/docs/Papyrus/1.12/papyrus-1.12.0/RCPs/Papyrus-1.12.3-linux32.x86.tar.bz2

Followed by:

tar xvfj Papyrus-1.12.3-linux32.x86.tar.bz2

Step into the extracted directory:

cd papyrus-1.12.3

And finally, run it:

./papyrus

NOTE

I will not delete the answer, but the question was referring to Win7. Perhaps it will help someone with Ubuntu as well.


Ubuntu 18 update/reboot lost keyboard & mouse (all) inputs

You may try to update your system in order to see if it solves the problem.
Since you can't do anything from your system, I suggest you to create a script with a couple of lines, that do the update for you.
Then you should set up your system in order to run such script at startup.
#!/bin/bash

apt update

apt upgrade -y

In order to run the script at boot time you have various options, and of course you need to find one that could be activate from another OS.
One option is to use crontab,  but they highly recommend to avoid editing cronfiles by hand, but since you cannot have access to the system file you would need to do so.
Another option is insert the script in /etc/rc.local as suggested here.
In any case I recommend you to investigate this more.

Side note:
apt is not actually script friendly, but for what you need it, it shouldn't be a big deal. I'm sure there are other ways to perform an update with a script if you really need so.


How can I free up disk space by removing files that aren't needed?

I also recommend the same as Jo-Erlend but there is also a little bit of cleaning with the download packages that you already have installed.

For example with the command aptitude or apt-get you can do this:

sudo apt-get clean - Erase downloaded package files
sudo apt-get autoclean - Erase old downloaded package files

sudo aptitude clean - Erase downloaded package files
sudo aptitude autoclean - Erase old downloaded package files

You also have the tool Ubuntu-Tweak:

sudo add-apt-repository ppa:tualatrix/next
sudo apt-get update
sudo apt-get install ubuntu-tweak

Then run ubuntu-tweak. It has an option for cleaning up called Janitor:

Lastly you have Bleachbit (Or ChlorineByte ^^) which has several FEATURES which include cleaning the cache from Firefox, Temp files for more than 50 programs and other stuff that is mentioned in the Features page.

The Software Center comes with version 0.8.8 and the Official Page has the 0.9. Whichever you use will do the trick since the difference between version is SMALL.


Make sure that you have the security settings correct. Unless you have the WPA2 password set, the wireless will never associate.

Ubuntu Server - How to connect to wireless WPA2 personal network? has further instruction.


You will have to run Software Updater, allow it to update the system. After that it should prompt you to restart and after the reboot, check Software Updater again. This dialog should be displayed.

.

If you don't get a new upgrade information, open "Software & Updates" and click on the updates tab. Change the option on "Notify me of a new Ubuntu version" to "For any new version".

After this, just follow the prompts.


It was delayed due to the Meltdown and Spectre security issues. This took up a lot of everybody's time while things were patched and tested. There are still patches coming out for various CPUs. It's a complicated issue and the fixes are far from ideal.

Anyway, the new release date was recently announced as the 1st of March 2018.


"waiting for network configuration" Problem

I decided to go the CLI and Alt+Ctrl+F2 approach so YOU ARE FREE to do that while you are logged in to the GUI  - Okay, I will write the general steps so feel free to use whatever approach you like.

Edit /etc/network/interfaces:

sudo nano /etc/network/interfaces

If you are typing this from LXTerminal while logged in to the GUI then:

gksudo leafpad /etc/network/interfaces

Remove whatever written there and just keep this:

auto lo
iface lo inet loopback

It is very good idea to keep a backup copy of "interfaces" file just in case so please make sure to save a "interfaces.bak" file before you do anything

Ctrl + O if you are using nano and Ctrl + S (File > Save) if you are using leafpad.
Ctrl + X if you are using nano and Ctrl + Q (File > Quit) if you are using leafpad.
Reboot.
Done.


go into  system settings -> details -> default applications  and set up your default applications as needed, in this case,  video -> mplayer


Installing fresh Ubuntu 13.04 instead of Ubuntu 12.10

It all depends on what you want to achieve and/or how you want to achieve it. Generally speaking, you can either upgrade your existing Ubuntu installation, or make a clean installation of the newer version. Your internet connection speed (or quality) doesn't actually matter, you can upgrade from an old version to a new one even offline. If you'll do it offline, here's my advice:

Download Ubuntu 13.04 installation, and create a bootable USB installation on a flash memory stick. Instruction here. Note: It can be done on a CD or DVD instead of a memory stick, it won't make any difference. You choose your preference.
With your newly created USB Ubuntu installation inserted in your computer, restart your computer and boot from that USB. You will be asked whether you want to run a test environment or install Ubuntu on your computer. Select the second option.
During the installation, you will have several options (upgrade, or make a clean install etc.) You should select the "specify partitions manually" option, it's the third one.
Now it becomes extremely important that you act very carefully, because if you don't, you will very likely lose your important data. You will see a list of your existing hard disk partitions.

If you already have separate partitions for File system (or "/", as you say) and "/home", that's great. In that case select your existing File system partition and click "Change". Mark the "Format" checkbox, put "/" in the Mount Point field, and leave everything else unchanged. Next, select your existing Home partition and click "Change". Be sure the Format checkbox is NOT checked, but set the Mount Point to /home.This will install a fresh copy of Ubuntu on your computer, while at the same time keeping all your data and program settings, which is great.
If your "/home" partition isn't separated, then you shouldn't format your File system. So don't check the "Format" checkbox, in order to keep your data and settings.

After that, all that's left is to just follow the Installation wizard's steps (select time zone, Keyboard layout, User profile) and restart the computer once everything's finiished.

So to summarize, if you have a "/home" partition, it is very important that you don't format it. As for the "/" partition, you can format it freely, however you'll have to re-install some programmes afterwards. But even that's not a problem that much, because all your settings will be restored.

Caveat: It is good practice to ensure your vital data is backed up BEFORE modifying partitions (whether during an install or otherwise). An unexpected interruption of the process could cause irrevocable data loss.


Is it possible to perfrom ubuntu installation on dynamic HD partition or should i make it to static?

To dual-boot windows and Ubuntu, Ubuntu will not run on a dynamic disc you have to convert the disc back to a basic disc and go from there.  You can use Partition Wizard to To convert Dynamic disk to Basic disk.


There is a software called boot-repair. This should be the easiest way for repairing.

Usually, this will result in a grub which can both boot Linux and Windows.


I recall I had this problem years back probably on about Ubuntu 14.04 and I installed Users & Groups thinking I would be able to edit the users full name, but found that although you can change every other aspect of the users details you cannot edit the users full name and I found this is simply because the ability for a user to change their own full name is subject to the restrictions in /etc/login.defs. The default configuration is to prevent users from changing their full-name, which makes perfect sense.

To change your own or another user's full name I used the chfn command, this command allows a (normal) user to change all the fields for their own account, subject to the restrictions in /etc/login.defs, or this can be overridden using elevated privileges, by opening a terminal CTR +T while logged in as the user you want to change and running the command:

sudo chfn user

Changing the user information for user
Enter the new value, or press ENTER for the default
    Full Name [user]: New Full Name

where user is the user who is logged in and is the user you want to change the full-name for and New Full Name is the new full name for the user.   You can use the chfn command to change other account details, but you can change mostly all other details via Users & Groups which can be installed via the Ubuntu Software Center.

Usage: chfn [options] [LOGIN]
Options:
  -f, --full-name FULL_NAME     change user's full name
  -h, --home-phone HOME_PHONE   change user's home phone number
  -o, --other OTHER_INFO        change user's other GECOS information
  -r, --room ROOM_NUMBER        change user's room number
  -R, --root CHROOT_DIR         directory to chroot into
  -u, --help                    display this help message and exit
  -w, --work-phone WORK_PHONE   change user's office phone number
      --extrausers              Use the extra users database


Disk errors while trying to boot LiveUSB on laptop

Try using UnetBootin, and also, make sure you are using a USB 2.0. USB 3.0 is backwards compatible inside OS, but not always for booting to USB, I think your BIOS needs USB 3.0 Drivers for that to work.


You can solve it by adding the current used to dialout group. Run:

sudo usermod -aG dialout $USER

Then log off and log on.

After that you will be able to write to serial devices without sudo permissions.

If you do not want to give permanent permissions for serial devices, you can use a correct command:

echo aaa | sudo tee /dev/ttyS0


How do I upgrade the agent for my bootstrapped environment.

Try setting your agent-stream option to proposed. Something like this:

mycloud:
  ...
  agent-stream: "proposed"
  default-series: trusty

Valid values for that configuration key are devel, release and proposed.

If you have already bootstrapped, you can change it via set-env:

juju set-env agent-stream=proposed


overGrive crashes on Ubuntu 18.04 even with oauth2client installed

In the past, a workaround regarding similar errors was to add

unset LC_CTYPE

At the bottom of .profile, then source .profile to apply the changes.
Give that a try.


Receiving multiple alerts from the AWS cloudwatch

What are the criteria for the alert? In more details, what is the threshold that triggers the alert? What is the interval between health checks?

AWS will generate an alert when the the number of unanswered health checks exceeds the threshold. Take the following example:

Assume you set health checks every 5 seconds, this means your load balancer will send a health check to the registered instance every 5 seconds. Now assume, that your alert is set up to send an alarm if the threshold exceeds or is equal to 1 every 5 minutes. As a result, as soon as the load balancer does not receive a response for any of the 60 health checks sent in these 5 minutes (which is probable due to network failure, or whatever reason), it will generate an alarm.

Check this link from the AWS CloudWatch Metrics


You need to chmod the file 1st before run.

chmod +x file.sh

Now your can run your .sh file as follows

./file.sh

Another way to run .sh file in Linux

sh file.sh

OR

bash file.sh


First, try to see if any other games apart from Unturned don't work (Unturned is a dodgy game on Linux)

If that's the case, reinstall Steam, so you have a fresh new version of the library.


Does Kingsoft Office Official PPA exist?

So, does Kingsoft Office Official PPA exist?

No. You need to download the debian installer file each time. WPS does not have an update feature. And since it is closed software it will not end up in the repositories since their license is in violation of any of the values Ubuntu stands for.

Please read LICENSE AGREEMENT OF KINGSOFT OFFICE FOR LINUX COMMUNITY VERSION (also called WPS OFFICE FOR COMMUNITY VERSION) thoroughly.

Their license claims you can repack it but several other restrictions make it impossible for anyone to make a PPA: for one how are you going to prevent a North American to download from your PPA?


Is there a way to save username and password for print authentication?

that's a bug, look at bugs.launchpad

on another page they write:

  If I don't type anything, the window's form says that I will send my username only (and a blank password) but wireshark shows that it is instead sending the correct username and password (which I entered into the printers folder, but which is hidden).

maybe it works for you


Conky only recognizes one of my two monitors in Lubuntu

OK, figured it out. Played with gap_x and gap_y until it went where I wanted it to go. I was not aware those settings could have negative values. Didn't have to do that w/16.04.


Droidcam Installation Error on Ubuntu 18.04

I faced similar problem but in a bit different scenario. I was running already installed Droidcam on Ubuntu and saw this error. It was caused due to a lost video device which happened after kernel update.
So that, I uninstalled Droidcam-
sudo /opt/droidcam-uninstall

Then reinstalled it following this procedure.
The problem was solved afterwards.


There are multiple ways to find a Ubuntu package:

Use https://apps.ubuntu.com/cat/ to find the package via a browser.

Use Ubuntu Software center and search for the package you are looking for. Ubuntu Software center is shipped by default with Ubuntu.
or

Use gnome-terminal and type apt-cache policy and press Tab to list down the packages available in the repository.

Hope this helps.


How do I remotely shut down a virtual machine (over SSH)?

To shut down an Ubuntu machine from the command-line (via SSH or otherwise), run:

sudo shutdown -P now

The -P option tells shutdown to power off the virtual machine at the end; contrary to its name, shutdown will not do this by default, instead bringing the machine into single-user/maintenance mode.
See man shutdown (and man sudo) for more details.


Listmodel in QML: How to retain Listmodel values on page switch in page stack

I believe that your problem is that pushing to the stack a filename creates a new object each time, and this new object doesn't share data with any of the previously created objects.  Instead, make an instance of the page you want to push in your top level QML file and push it to the page stack each time you want it shown.

Here's an example that I hope illustrates what's going on.

main.qml

import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {
    width: units.gu(50)
    height: units.gu(75)

    PageStack {
        id: pageStack

        Page {
            id: page
            title: "Top Page"
            visible: false

            Column {
                anchors.fill: parent
                Button {
                    width: parent.width
                    text: "Open page from object"
                    onClicked: pageStack.push(subPage)
                }

                Button {
                    width: parent.width
                    text: "Open page from file"
                    onClicked: pageStack.push(Qt.resolvedUrl("SubPage.qml"))
                }
            }
        }

        SubPage {
            // This is an instance of the object declared in SubPage.qml.  All you need
            // to do to make this work is have SubPage.qml in the same directory as
            // this QML file.
            id: subPage
            visible: false
        }

        Component.onCompleted: pageStack.push(page)
    }
}

SubPage.qml

import QtQuick 2.0
import Ubuntu.Components 0.1

Page {
    title: "SubPage"

    Component.onCompleted: console.log("Made a new page")

    Button {
        width: parent.width
        property int count: 0
        text: "Clicked %1 times".arg(count)
        onClicked: count += 1
    }
}

Note that the counter on the page loaded from the object persists as you move back and forth in the page stack, while the page loaded from the file has the counter set to 0 each time it is loaded.  Additionally, the latter logs a completion event to the console each time, while the former logs this only when the program starts.


Authentication required to modify a printer- what's the password?

You might be affected by this bug.

Try running

gksudo system-config-printer

in a terminal window, then setting up the printer

However, if gksudo is not found, try:

sudo -H system-config-printer


Portable Ubuntu on USB flash drive or SD card

USB flash drives can be faster than SD cards, but it's not a hard-and-fast rule. The drive's connector inside the metal sleeve gives a hint.

Red     USB3.1 Gen2 10,000 Mbps
Blue    USB3.0       5,000 Mbps
Black   USB2.0         480 Mbps
White   USB1            12 Mbps

Of course, the connector on the PC also has to match, else you won't get that speed. The slower connection (on PC or flash drive) determines the maximum throughput.  Those are also theoretical maximum speeds.

Your card vendor provides the read and write speed on the package when you buy an SD or SDHC card. Here's a site which shows the current fastest SDHC cards. Also, a lot of older machines just won't boot from an SD card.


kaccounts-providers error after installing kde on Ubuntu 16.04

Fixed it by doing this:

sudo dpkg -r account-plugin-facebook

And then installing kaccounts-providers from synaptic package manager


Tried installing Ubuntu on a PC with Windows 7. Ubuntu did not install properly and Windows 7 won't boot. Please help

For Windows repair unable to detect the operating system, I think marking partition sda2 (your 100mb system partition) as "Active", should do the trick. Detailed instructions on how to do that are available here: http://www.sevenforums.com/installation-setup/88872-startup-repair-menu-doesn-t-see-operating-system.html#post767041

I am not sure why your installation failed, but I think sda4 was somehow mounted or in a bad state. I would suggest deleting that partition altogether, and using the "Use free space" install method in the "Installation type" step.

Alternatively, delete the partition (using Windows Disk Management tool, for example), and then create it manually as ext4 with mount point "/" if you want to.


JACK cannot start in realtime mode despite membership in audio group

After some time of doing nothing about the problem, it solved itself. Sadly, I have no idea what happened. It could have been some update in the almost two months since this problem occurred or maybe just more restarts/logouts/logins were needed which have obviously happened. Whatever happened, now it's working exactly as it's supposed to.


Why is the server version of 14.04.1 (supported until 2019) not available for download?

Direct solution to the original problem

You can find all old point releases of 14.04 LTS and 16.04 LTS via these links.

http://old-releases.ubuntu.com/releases/trusty/

http://old-releases.ubuntu.com/releases/xenial/

For Ubuntu Server 14.04.1 via torrent,

http://old-releases.ubuntu.com/releases/trusty/ubuntu-14.04.1-server-amd64.iso.torrent

http://old-releases.ubuntu.com/releases/trusty/ubuntu-14.04.1-server-i386.iso.torrent

and the iso files directly (if it does not work with torrents),

http://old-releases.ubuntu.com/releases/trusty/ubuntu-14.04.1-server-amd64.iso

http://old-releases.ubuntu.com/releases/trusty/ubuntu-14.04.1-server-i386.iso

You find the corresponding md5sums at

http://old-releases.ubuntu.com/releases/trusty/MD5SUMS

Comment to upgrading from the second point release (14.04.2 LTS)

Only the first and fifth point release have LTS. See this link (and scroll down),

http://www.ubuntu.com/info/release-end-of-life

You can keep upgrading from the second point release by upgrading the LTS enablement stack, but it is risky (known to cause problems with hardware drivers, "If it ain't broke, don't fix it"). Therefore I would say that it is best to stay with the first point release until the fifth point release is available (14.04.1 LTS and 16.04.1 LTS ...) particularly for servers.


https://askubuntu.com/a/175115/83159

The same wireless hardware, but another model and Ubuntu version (oneiric). It doesn't work on my Inspiron like yours, but I think I do something wrong. Try it.


The file ~/.profile is being ignored by the shell if a file ~/.bash_profile or ~/.bash_login exists. First check if these files exists. If not, this was not the problem.


How do I remove windows snap in Gnome Fallback Session?

I think I had the same problem, for me the solution was here:
http://earlruby.org/2012/04/getting-rid-of-self-resizing-windows-in-ubuntu-linux-12-04/

Those settings should NOT lead to that kind of extreme behaviour (I resize VLC to a tiny window - it snaps back to full height!), but turning them all off solved it for me.


How can I download attachments from emails through terminal using getmail?

Gmail provides an IMAP service through which you can use any client that supports that protocol to fetch your e-mails. How that client makes them available on the disk can vary.

By far the most widely-used command-line IMAP client has to be fetchmail. You can install it easily in Ubuntu, then google for specific configurations to use with gmail.

One thing with fetchmail is that it slurps emails from the remote server and then pipes them through your local MTA. So you'd need to have a locally-configured MTA for this setup to work. The MTA would presumably then append the emails to /var/mail/$USER, and you can then read this file to do your processing.

Another tool that may work is offlineimap. I haven't used it; setup may be easier than with fetchmail.

As for your need to save attachments included in emails, what you need is to install mpack. Then, run the munpack command on the .txt file for each email (yes, the one that contains all the gibberish from the attachments). It will decode and save the attachments in individual files:

$ munpack mail.txt
Invoice.PDF (application/pdf)
my-picture.png (image/png)


you can use tor

check this :http://alternativeto.net/software/freegate/?platform=linux

the installation

$ sudo add-apt-repository ppa:webupd8team/tor-browser
$ sudo apt-get update
$ sudo apt-get install tor-browser

open the tor browser look for app named : tor-browser

then update the browser by
clicking on help => about firefox => check for updates


kubuntu 17.10 desktop checksums appear incorrect

Those are SHA-256 sums, not MD5. Use sha256sum kubuntu-17.10-desktop-amd64.iso instead.


Try Zim . It's more of a wiki type application, but it's great for taking notes, and will work with Unity's appindicators.


Theme integration not working for various apps (Xubuntu)

Ok, I have discovered what the problem was. The fault was with the chosen theme, downloaded from xfce-look.org. While it does look good in general, it is incomplete.

I suggest, if you want a good Ambience theme experience for Xubuntu, to use the latest and complete Xfce theme found on the linuxmint-art-org website. You can download that one here.

Also, for sudo-based applications (like the Synaptic package manager), be sure to add the custom theme (if you want to use one) to /.themes (in the root directory /) Otherwise they will not pick up the theme.


Ubuntu One not syncing helped (i.e. do

u1sdtool --quit
u1sdtool --connect
u1sdtool --refresh-shares

and then I had to disconnect and connect through Ubuntu control center (the thing that will get launched via messaging menu) and now files are uploading, I hope all get uploaded:-).


dpkg -V or dpkg --verify checks the integrity of packages(s) by comparing the metadata stored in it's database and the file paths. You can select the output format using --verify-format option but it currently only supports rpm format. In rpm format only the paths that failed any check are shown.
Take an example of failed check:
??5?????? c /etc/lightdm/lightdm-gtk-greeter.conf

Here:

? indcates that the check failed e.g. due to permission issue

The third charqacter, 5, indicates that it has passed the md5sum() check

c on the second column indicates the attribute checked, currently only conffile (c) is supported

From man dpkg:

--verify-format format-name
Sets the output format for the --verify command.
The only currently supported output format is rpm, which consists of a line for every path that failed any check. The lines
start with 9 characters to report the specific check results, a '?'
implies the check could not be done  (lack  of  sup‐
port, file permissions, etc), '.'  implies the check passed, and an alphanumeric character implies a specific check failed;
the only functional check is an md5sum verification denoted with a '5'
on the third character.
The line is followed by a
space and an attribute character (currently 'c' for conffiles), another space and the pathname.


How I can enable my HP Deskjet 3636 to be able to print via wi-fi?

For that you will need first to connect the printer via USB for a last time, then add your printer as a USB one if not have done. Assuming that you are able to print via usb, then ensure that theese packages are being installed:

hplip
hplip-gui

If not then run:

sudo apt install hplip hplip-gui

Then launch the hplip-gui and choose the network printer, afterwards select Wireless/wifi setup using USB as the following image shows:

Then select the appropriate wi-fi network from the following list and press next:

Then, on the next screen, enter the password for the wifi network:

Then press Connect in case of a wrong password try again by pressing back.

On a successful set up the following screen will be shown:

As you can see from image above via the hp-setup followed by your printer's ip you are able to add your printer as network one.

This command is applicable for any GNU/Linux machine in your network that has hplip installed, as long as the printer is turned on.

Once the command given adding the printer is pretty much trivial as the following images show:

The steps above were taken from an article I wrote in a greek linux user forum also in case you favour Greek look the article explaining the spes as well in my blog as well.


You have one node.  One node is allocated for juju-gui.  You are asking for 2 more nodes.

You only have one node, and it is in use, so you have no matching nodes available.

If you are using VMs, you need to build two more.

If you are using hardware, you need to buy more.


How to get the snap-based chromium to access a separately mounted filesystem?

Snaps, by design, are sandboxed. A snap can be connected to "interfaces" to allow them to do specific things. No interfaces are foreseen to allow a snap to access system folders. Even if such interface would exist, the packagers of Chromium still would need to enable connecting the interface to the snap.
In general, you can have a snap access a specific folder (a "separately mounted file system" is, once it is mounted, just a folder structure) by a mount --bind of that folder under a folder where the snap has access.
Some snaps can be installed in "classic" mode. "Classic mode" removes all sandboxing, and hence all security. Installing in classic mode is only possible if the snap has been prepared for that. Publishing a classic snap requires manual approval of the snap store maintainers. Therefore, many snaps cannot be installed in classic mode.
Perhaps, however, you should reconsider your workflow: do you really need your browser to access /opt?


You can accomplish this by editing /etc/UPower/UPower.conf. Open the file as root and edit the PercentageLow, PercentageCritical and PercentageAction values to something you prefer.
Once the settings are what you want, restart the power manager with sudo systemctl restart upower.
Hope this helps


Don't confuse a proper Ubuntu installation to an ISO made bootable from USB (aka Live USB). The latter is mostly intended for trying/testing Ubuntu before installing, as well as installing (obviously), and could also be used for rescuing files from a system that wouldn't boot. It's not intended for any kind of long term deployment, every day use, programs installation, updating, downloading large files, and so on.

In the case of your friend, it would be best to have Ubuntu installed properly to another HDD (could be USB) or the same HDD alongside Windows.

PS: Ubuntu doesn't use EXEs. :~)


To get access to the juju environment, please run the following from the place where you installed LDS:

# If you used the install-openstack tool, you want to do this first:
export JUJU_HOME=~/.cloud-install/juju
juju status

# Get an interactive shell with the right ENV sourced on the landscape
# server itself.
juju ssh landscape-server/0 sudo 'JUJU_HOME=/var/lib/landscape/juju-homes/`sudo ls -rt /var/lib/landscape/juju-homes/ | tail -1` sudo -u landscape -E bash'

# You should see a lot of openstack services with this command:
juju status

At this point, you can poke around, deploy services, and generally wreak havoc in your environment.

In other words, here is where you would deploy ceilometer.

Good Luck!


apt help text and messages in wrong language

I see:
LANGUAGE=en_US:de

That does not do what you think it does. Since the original language is en_US, there are basically no en_US translations, so for applications which understand the LANGUAGE environment variable, gettext picks German translations instead.
Change that to:
LANGUAGE=en_US

P.S. You ought to have the issue for many more applications than APT.


Can I change the Firefox menu to look like the Firefox menu in Windows?

Right Click to the right of the menu and untick Menu Bar.

Now it will have a win7 type menu.


"No such file" when running a 32-bit program on a 64-bit system

You're missing 32-bit support. Install libc6:i386, i.e. the 32-bit base library package, and all the other 32-bit libraries that Chrome needs (it's likely to be close to the dependencies of the Chromium package).

When you fail to execute a file that depends on a “loader”, the error you get may refer to the loader rather than the file you're executing.

The loader of a dynamically-linked native executable is the part of the system that's responsible for loading dynamic libraries. It's something like /lib/ld.so or /lib/ld-linux.so.2, and should be an executable file.
The loader of a script is the program mentioned on the shebang line, e.g. /bin/sh for a script that begins with #!/bin/sh.

The error message is rather misleading in not indicating that the loader is the problem. Unfortunately, fixing this would be hard because the kernel interface only has room for reporting a numeric error code, not for also indicating that the error in fact concerns a different file.

Once you install the 32-bit dynamic loader /lib/ld-linux.so.2, which is in the libc6:i386 package, you will at least get a non-misleading error message telling you of the other missing libraries.


How to grant a java tool write permission to /var/log?

Should I run the jar as sudo?

No. Far too dangerous since you could then change about anything to the system and a single misplaced space could remove your whole system.

  Or should I give the running user write permissions to that folder? If yes, how?

Yes.  The 2 main commands are to change write permissions and change the USER of your log file:

   sudo chmod 664 /var/log/{yourdir}/mylogfile.log
   sudo chown $USER:$USER /var/log/{yourdir}/mylogfile.log

where $USER is your current active user and {yourdir}/ is a directory you defined (mysql and apache for instance use their own directory in /var/log/ instead of filling up /var/log/). It is a slightly better method.


Can't replace MDM Display Manager with LightDM!

What the message is telling you is that lightdm is already running in the background. So, login to the console-session/terminal by pressing Alt+F2, or choose Exit to console login from the window below.

Now, remove MDM, using the commands below:

sudo apt-get purge mdm
sudo dpkg -r mdm mint-mdm-themes

Set LightDM as default from this command:

sudo dpkg-reconfigure lightdm

Then reboot. MDM should be gone by now.

LightDM may start, but it's most likely to be in low graphics mode.

To fix this, you have to edit /etc/lightdm/lightdm.conf as following:

[SeatDefaults]
user-session=ubuntu
greeter-session=unity-greeter

As you are unable to edit lightdm.conf through console-session, I may suggest using the Ubuntu Live CD.

(Using the live cd, enter gksu nautilus on terminal, then locate and open /media/yourUBUNTUpartition/etc/lightdm/lightdm.conf from Gedit... then you can do the editing!)

Considering that you haven't installed unity-greeter, download the package for Precise from here, and place it on /media/yourUBUNTUpartition/home/YourName.

That's it! Get out from the live CD and get back on the Console Session. (Alt + F2).

Now install the Unity-Greeter file you downloaded before:

sudo dpkg -i **unity-greeter_0.2.8-0ubuntu1_i386.deb**

Finally start LightDM,

sudo service start lightdm


This was solved combining all the pieces from the links I posted in the questions and others (e.g. this and the comment from @oldfred)

In particular I had to:
1) disable fast start up from the Control Panel (here)
2) enter the BIOS settings and change the "SATA Operations" from "RAID On" to "AHCI"

Windows was indeed unable to boot, but I could boot Ubuntu live from the USB drive by pressing F12 at the startup (which didn't work before step 1, as I could only boot it from inside Windows)

The above made it possible to install Ubuntu the right way, i.e. I had access to the hard drive in order to overwrite it when installing.


Problem in MATLAB installation with java (install: 1: eval: Permission denied)

The answers here and in this post: How do I install MATLAB R2012a? did not help unfortunately.

For me this procedure worked -- Install instructions:

1) copy DVD content into a folder in home - e.g. MatInstall

2) change directory to folder with iso content:

cd MatInstall

3) make install and java executable:

chmod u+x install
chmod u+x sys/java/jre/glnxa64/jre/bin/java

4) create MatLabTemp directory in home:

mkdir $HOME/MatLabTemp

5) open a terminal and type the installation command:

$HOME/MatInstall/install -javadir $HOME/MatInstall/sys/java/jre/glnxa64/jre/ -root $HOME/MatInstall/ -tmpdir $HOME/MatLabTemp

(
with this command we tell the Matlab Installer manually where to look for the data, temp directory and java)


You have to install grub to the whole disk, not a partition.  Unity only allows you to select a single target to install grub to, so after installation you will want to run sudo dpkg-reconfigure grub-pc where you can select all of the drives, so that if one fails, grub can boot from one of the others.


Installing gcc-7 (and newer packages) in Ubuntu 16.04

You can already install gcc-7 and g++-7 from this package.

sudo add-apt-repository ppa:jonathonf/gcc-7.1
sudo apt-get update
sudo apt-get install gcc-7 g++-7


VNC connection results in grey or black screen

if you change default ubuntu-desktop to gnome-flashback or lxde, it will work:

it is known bug, it related to ubuntu major desktop like gnome3 or unity(?).

method 1:  it works for me (https://ubuntuforums.org/showthread.php?t=2399979)

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export XDG_MENU_PREFIX="gnome-flashback-"

gnome-session --session=gnome-flashback-metacity --disable-acceleration-check &

method 2:

https://mate-desktop.org/ (gnome-2 de)


How can I force Ubuntu to use the BIOS internal clock instead of NTP or whatever its being used?

By default, Ubuntu only sets the time when a network interface comes up.  It does this with a small piece of the "ntp" system: ntpdate.   If your machine stays connected and keeps running for days or weeks, even the best internal clock will eventually go out of sync.
Ubuntu also doesn't try to adjust your internal clock by default, and it sounds like your clock is badly adjusted.  The real time clock (hardware clock) in most systems is also not very good over the long term.

So if you want better time, I can recommend two options:

Install the full "ntp" package to get the Network Time Protocol, which regularly looks at Internet time servers and keeps your clock within milliseconds of the right time.   See some good instructions here: Install NTP....  You can also install it from the Ubuntu Software Center.  This is easy and typically pretty foolproof, if your machine is usually on the Internet and doesn't have really nasty firewalls cutting off ntp.
Manually adjust the frequency of your internal clock, using the adjtimex package.  Actually, when you install adjtimex, it runs adjtimexconfig which sets values in /etc/default/adjtimex.  But it does so quickly using the hardware clock, and in my experience the results are usually somewhere between bad and terrible.  Some machines are hard to tune well, but I've had good luck with most of my machines by doing the manual calculation necessary to figure out the right FREQ and TICK values to put in /etc/default/adjtimex.  To go this route, start by installing adjtimex via Applications/Ubuntu Software Center.  To figure out manual settings for FREQ and TICK, see the nice calculator at Tuning with adjtimex as an alternative to running ntpd.  That page also notes that your choice of "clocksource" can affect how accurate your clock is.  The hpet (High Precision Event Timer) seems more accurate than the tsc (Time Stamp Counter).

There are tips for dealing with other glitches at UbuntuTime - Help.ubuntu.com


How can the executable name of a program listed in a Dash search be determined?

Open terminal and use grep to search for "personal file sharing" in /usr/share/applications folder.

In fact, you will have this output:

$ grep -R -i "personal file sharing" /usr/share/applications
/usr/share/applications/gnome-user-share-properties.desktop:Name=Personal File Sharing

Now, if we do this:

$ grep "Exec" /usr/share/applications/gnome-user-share-properties.desktop
Exec=gnome-file-share-properties

That the actual program that runs is `gnome-file-share-properties, which is located at

$ which gnome-file-share-properties
/usr/bin/gnome-file-share-properties

To be more specific, what happens is that in linux there are .desktop files. They are somewhat similar to Windows' shortcuts. These files contain
fields Name= and Exec=. Name part is how the program shows up in the dash search and unity panel. Exec is the actual binary that gets executed


postfix to send and receive mail from gmail

Yes! If I do understand you right, would you be best of with a public static IP address for your domain.
Add a mx record and a spf record to the domain dns server.
A typical spf record could be v=spf1 mx -all.

To set up the server i suggest you to follow the instructions in the Ubuntu serverguide.

A good mail server stack could be to install:
Postfix, Dovecot and mail filtering.


Your question seems not to be about Ubuntu, but is rather a general programming question.

However, if you actually looked at the output, you would have spotted the line Cannot find module 'electron-to-chromium' in there, which clearly indicates that your project is missing the module electron-to-chromium as dependency.

You should be able to install it by running the command below inside your project directory, which also adds the module to the list of dependencies in your package.json:

npm install --save electron-to-chromium


How to Enable Lock on Suspend in Xubuntu

Xubuntu uses gnome-screensaver. First, you must replace gnome-screensaver with xscreensaver. The tool that locks the screen on suspend uses xscreensaver. On top of that, if you use an external monitor with gnome-screensaver on a laptop, and lock the screen, it will be delayed in switching to the external monitor's resolution, or not do it all, unlike xscreensaver (in my personal experience).

To remove gnome-screensaver run:

sudo apt-get remove gnome-screensaver

Then, install xscreensaver:

sudo apt-get install xscreensaver

Xscreensaver will be automatically added to your list of startup programs as the default screensaver program once gnome-screensaver is removed and it's installed in its place. If it's not, add the command xscreensaver -nosplash to your to your list of applications to be ran upon login. You can change xscreensaver's setting in the XFCE settings manager. To have all extra available screensavers for xscreensaver, run sudo apt-get install unicode-screensaver xscreensaver-gl-extra rss-glx xscreensaver-data-extra.

Next, you need to install xss-lock. This program will invoke the xscreensaver lock screen upon system suspend.

To do this, run:

sudo apt-get install xss-lock

Next, you need to run xss-lock on start and tell it to suspend the lid when closed. This part is weird, but follow me. I don't know exactly WHY you have to do this, but it won't work otherwise. You need to create an executable with the command to do this instead of just have it run that command on login. To do this, I created a file simply called suspendwhenlidclosed, and pasted the command in there.

That command is:

xss-lock -- xscreensaver-command -lock &

Next, give it permission to run as a program, in this example, the file suspendwhenlidclosed is in the home directory.

sudo chmod +x ~/suspendwhenlidclosed

Next, copy the file to /usr/bin so that it can be ran from the command line, for conveniences sake.

sudo mv ~/suspendwhenlidclosed /usr/bin

Now, add the command to list of commands to be ran upon login, you can do this from the XFCE settings manager. Open the program named Settings Manager in Settings category in the Whisker Menu, or the Application Menu if you use that, and from within the Settings Manager, open Session and Startup, and go to the tab Application Autostart. There is also a shortcut to Session and Startup in the Settings category. Click the add button and add suspendwhenlidclosed to the list like in the screenshot below.

Lastly, if you log in and out, another instance of xss-lock will be created for each time you do that, and each extra instance will have high CPU usage. To prevent this, you must run the command killall xss-lock during logout. To achieve this, create another file, in this example I call it killxsslock and it is also placed in my home directory.

Create the file killxsslock, copy this command into it, and save it.

killall xss-lock

Next, give it permission to run as a program:

sudo chmod +x ~/killxsslock

Move it to /usr/bin so it can be ran as a command:

sudo mv ~/killxsslock /usr/bin

To have killxsslock ran on logout so extra instances of xss-lock aren't created when logging in and out, you need to add two lines to your lightdm config file.

Open the file with:

sudo mousepad /etc/lightdm/lightdm.conf

Next, add these lines:

[SeatDefaults]
session-cleanup-script=/usr/bin/killxsslock

And save. Then log in and out. Xscreensaver will now be your default screensaver and your laptop will automatically run the lock screen upon suspend. I hope this helps someone! :D

OP had added this to their question - moved the content here as CW


Take a single snaphot from a webcam with a delay

I had exactly the same problem with my webcam. I ended up using streamer.

streamer -t 7 -o image00.jpeg

This command will save seven frames shot by your webcam. My webcam needs between five and six pictures to adapt to the lighting conditions with the seventh picture of good quality.

Streamer is in the repository under the name streamer. (Surprise! ;)


If you choose install Ubuntu, it will install Ubuntu in the hard drive. If you choose Try Ubuntu, you will not overwrite your Windows Installation. Try to use Unetbootin for this purposes, it will give you the option to create a persistence file which will save your modifications in the live media, just specify the size in MB where it says "Space used to preserve files across reboots (ubuntu only)".


How to install RabbitVCS on Ubuntu 14.04?

I personally haven't tried it, but there is a version for trusty (14.04) in the PPA, so I guess it should work.

You can always try if it's working (this will install RabbitVCS for CLI (terminal), gedit and Nautilus 3, if you're using another file manager see the full list of packages here):

sudo add-apt-repository ppa:rabbitvcs/ppa
sudo apt-get update
sudo apt-get install rabbitvcs-cli rabbitvcs-core rabbitvcs-gedit rabbitvcs-nautilus3

As @GermanK notes in a comment, you must to restart nautilus for the change to take effect.

And if it doesn't you can remove it:

sudo apt-get remove rabbitvcs-cli rabbitvcs-core rabbitvcs-gedit rabbitvcs-nautilus3


If you want to list USB ports which are satisfying devices.

lsusb

and

sudo lshw |grep -i usb

for assure of all port available on your Ubuntu.


login freeze after suspend on 14.04 (not nvidia related...)

Hold down the power button to shut down your laptop.

press power button again and boot computer back up and login...that should do it.

But i will say that laptops like notebooks and chromebooks, are hard to run quality OS's on because their graphic and processing capabilities are low. basically they are smartphones/tablets that look like laptops. So keep in mind that you might have to run a 32-bit OS,and even with that you may experience some issues.They are just not made for quality computing.


How can I exclude .* directories from rsync but include the .vnc directory?

The order of --include and --exclude is important for rsync.
See man rsync => FILTER RULES section:

As  the  list  of  files/directories to transfer is built, rsync checks
each name to be transferred against the list  of  include/exclude  pat‐
terns in turn, and the first matching pattern is acted on:  if it is an
exclude pattern, then that file is skipped; if it is an include pattern
then  that  filename  is  not skipped; if no matching pattern is found,
then the filename is not skipped.

(accentuation by me)
That means for you:
rsync -vvrR --recursive --exclude Downloads --include '.vnc/' --exclude '.*' "pi@$host:{/home/pi,/etc/systemd/system}" "$dir"


How to change route table and activate it on ubuntu 18.04?

you should be typing

sudo kill dhclient

not "sudo kills dhclient."

kills is not a real command.

Also it's :

sudo ip route del default via 192.168.89.2
sudo dhclient vpn_vpn


It sounds like you're using a manual registration process.

It might be easier to add the machine first, THEN add the service with --to <machine>. I don't know how to connect the pending service to the existing machine.

The other thing you can do is to deploy a service to a new LXC container on the machine, like this:

juju deploy charm --to lxc:<machine>


How do I add Ubuntu option on the Windows Boot Manager menu?

You'll need to use the Boot-Repair tool. To do this

Download Boot-Repair from here.
Burn it on a USB stick or on a DVD. (Don't burn it on a CD/DVD if you have Windows 8)
Boot your computer with the disk.
Choose language and connect to internet if possible.
Try "Recommended Repair"
Reboot.

More throughout tutorial can be found here.


This question is duplicate of topics at askubuntu, which deal with issue, that Ubuntu installation has "no sound".

You might try to install music packages and then reboot the machine:

  sudo apt-get install rhythmbox amarok

  sudo reboot

Because music packages have additional drivers. You also could try this
with packages like clementine or like with sayonara.


Can I repair Lubuntu 14.04 after trying Mate live usb key?

Upgrade to 16.04 solved my problem.

I tried more conservative ways first: I disabled the new repositories and especially the Mate DVD and I launched a new software update. But the updater always detected a partly upgraded system and so the architecture of my system was both Lubuntu-Trusty and Mate-Xenial.
The upgrade went straight and smooth: all the packages I've tried work out of the box, but it especially removed the Mate Xenial repositories and software and replaced them with Lubuntu Xenial ones. The only surviving (but unchecked) Mate repository was the DVD: I erased it for good from Software & Updates.

Therefore the answer to the question is YES, you can repair Lubuntu, but I don't know if it could be restored.


Google Search garbled on Firefox on Ubuntu 14.04

I'm assuming the problem is caused by either an unsupported font or unsupported language.

Click Edit->Preferences->Content

You should get this:

Choose default font serif. If this doesn't resolve the issue after restarting firefox, you may also wish to check languages by clicking the Choose Button highlighted above and changing to English for testing purposes

This action will result in this:

When visiting google.in I also noticed the page is available in a number of languages which you can choose by clicking on a link on that page. It's possible you have a mismatch between the language chosen on that page and the language chosen in firefox.


Snapcraft has a built-in cleanbuild function. It uses LXD to make a container, then it installs the needed tools in the container. It will then build your snap so you can make sure that all of the build dependencies required are present and your friend can build it just fine.

Ensure LXD is installed and running (an excellent guide by Stéphane Graber is available here), then run the following in the same directory as your snapcraft.yaml:

snapcraft cleanbuild


What should the correct path be for my CD/DVD drive in 12.04 and how do I change it?

I think the default device path for CD/DVD Drives is:   /dev/sr0

And when you have a CD/DVD in, you need to go to /media/[userame]/[devicename]


Ubuntu 20.10 desktop-icons gnome-shell extension crashing

I replaced /usr/share/gnome-shell/extensions/desktop-icons@csoriano (gnome-shell-extension-desktop-icons) with the following https://extensions.gnome.org/extension/2087/desktop-icons-ng-ding/...


Install this package: manpages-posix-dev. It's in multiverse -- be sure to have that enabled first.

Then just use $ man pthread.h for the manpage.

For other queuries like where some file or manpage is, just search the contents of packages at http://packages.ubuntu.com, like this and you'll find the appropriate package.


Try to escape the space;

rm just\ one.flv

No flag needed for this file.


Mouse Configuration - Where to configure special mouse button to perform some compiz actions?

The only program I know of that I use to figure this stuff out is called xev.  Run it from the command line (Terminal):

$ xev

Then you will get a pop-up box.

In that "Event tester" box, click your buttons, you will see button down and button up events show up in the terminal window. Each event will have a button number associated.  Keep clicking them till you determine which one is which.

Pretty handy utility.


After you run the command, you simply need to use Ctrl+Alt+F7 to return to unity.

If you want to get control to the terminal so you can run more commands, you can use:

nohup unity --replace&

where the ampersand makes it give control to the terminal, and the nohup makes the process immune to SIGHUP so you can logoff the tty without losing Unity.


Graphics driver details is not shown in my system inf

Try opening up the additional drivers program, and see if there is anything available. From a quick Google search, I found out that your laptop has Nvidia, so this should solve the problem.


Brightness keeps changing on Ubuntu 16.04 Unity

Late answer, but this issue is due to a "feature" of the intel graphics card used in these laptops. The "feature" is called Dynamic Contrast Enhancement, causing the brightness adjustment you describe. Most people find this undesirable, but the feature has also a benefit of saving battery power.

Dell has released a Windows only driver that allows turning this off. Linux users are left in the cold, though, even if these Dells can be purchased with Linux preinstalled. The only way to turn the feature off would be to (temporarily) install Windows and turn it off through the settings interface of the Windows driver.


Ubuntu Problems in 12.04 and 13.10 on the Sony Vaio Fit

Dual graphic cards have always been a problem with linux but fixable if you look at this website and go to step 4 on the list:

http://www.webupd8.org/2013/10/8-things-to-do-after-installing-ubuntu.

...also I'd stick with Ubuntu 13.10 for the latest driver support, more precisely Xubuntu 13.10 for a lighter and less power consuming desktop...


My screen is distorted while installing Ubuntu 12.04

Try this.  Boot from the USB, and as soon as you see the images in the bottom middle of the screen, perss your Shift.  Once that is done you will see the image below

Choose your language, and on the next screen, press F6, scroll down to nomodeset, press Enter, to choose it, and then press Esc, and choose the first or second option on the menu.  See if that helps.


ARM Cortex A8 Freescale i.MX515 still supported in 12.04?

From wikipedia

  On the i.MX51 family, the reference user interface is Ubuntu. The last
  Ubuntu version supported is 10.04.1 (still available on mirrors).
  Ubuntu dropped the "official" i.MX51 family support since version
  10.10

This is confirmed by the citation.

Looking at the Ubuntu ARM Roadmap 12.04 official support is:

  Seventh release to be in April 2012 (12.04) will support the TI OMAP 3
  BeagleBoard, and the TI OMAP 4 PandaBoard, Freescale iMX53 Quickstart
  platform

Thus - again your iMX51 series is not officially supported.

You'll note that the latest beta CD images contain a release for the iMX53 but not for the iMX51 series.

Thus - its your choice - try before you buy or look for a iMX53 ARM laptop instead.


Can a GIF be used as the Ubuntu Splash Screen instead of the boring purple one?

No.  You can't.  Animated gifs are unsupported by plymouth at this time.

You have to use timers and swap the image yourself.


Ubuntu Automatically Selects USB to Install to

The reason Ubuntu cannot be installed is because it uses a different file system.

You should create a new partition on your hard disk. The new partition should use the "EXT4" file format. You can set this up during the Ubuntu install.


I found the answer with the help of this answer from the Unix/Linux StackExchange.

Go to Settings/Privacy and turn off Network connectivity checking.

That's all.


How to toggle windows from one external monitor to another?

It seems you want to swap windows between screens.
For Wayland, solutions are specific to the window manager.

For KWin, you can try writing a KWin script.

For X11, there are options that will work with any window manager. You'll need to write some code to tie everything into a cohesive script. If screens are logically side-by-side, you can use modular arithmetic to calculate positions.

Use xrandr to change the position of the screens. Doesn't work too well if the screens are different sizes.
xrandr --output HDMI1 --pos 1366x0 --output eDP1 --pos 0x0
xrandr --output eDP1 --pos 1366x0 --output HDMI1 --pos 0x0

Use wmctrl -p -G -l to get a list of Windows. Then move them with:
wmctrl -i -r 0x0000000 -e 0,x,y,W,H

You can calculate position x,y and size W,H as desired. Use -1 to keep the same value.

xdotool is another tool that may be of use.


Is it possible to replicate a network interface?

Yes, that is possible and actually quite straightforward. It is widely used to serve multiple websites from one physical server. Google "virtual interfaces" or see e.g. here . The virtual interface can work with or without DHCP independently from the real one. Only it wouldn't be called eth1 but rather eth0:0, in your case.


Installing Ubuntu Desktop on HP MicroServer Gen10

You will need to install the GUI and display manager on the machine (via terminal or SSH). If you're looking for a default experience:

sudo apt install ubuntu-gnome-desktop

For mate:

sudo apt install ubuntu-mate-desktop

For kde:

sudo apt install kdefull kubuntu

For cinnamon

sudo apt install cinnamon

The standard choice for a server GUI is XFCE, because it is very lightweight. To get it:

sudo apt install xfce4 lightdm

To minimize what any of these pull in, use the --no-recommends be option. If you wish to access your GUI remotely, you will need to install xrdp and tell it to use your GUI. To do that, you simply type the command to start you specific GUI (not startx, but the command for the GUI, like XFCE is startxfce4) into each users ~/.xsession file

To get your dock, you will need a tool called gnome-tweaks


LibreOffice Calc format page crashes and does not give options for Sheet margins, portrait etc

This problem has now been fixed. I used apt-get delete to remove LO, and then apt-get install to re-install, and the problem has gone away.


Since you are looking at this like a gamer, then you have to go with the latest, at this time, 13.04. It has better video performance, updated kernel, updated drivers and enhancements to Unity for performance. So at the end, games will run better on 13.04.

Since you are looking at this as a gamer, then the extended support is irrelevant since most gamers tend to update their system when something new comes along. Also 13.04 is not cutting edge. It's another stable release that offers the latest version of Ubuntu. If you want cutting edge I suggest to read How do I install the Nvidia drivers? and trying out the latest drivers.

But at the end, if you want the best performance for your games, always go with the latest. The support is of less importance since when a new version comes out, you will probably update to it. I say this as another gamer.


Computer boots directly to Windows after installing Ubuntu

Did you specify your hard drive when you got to partitioning?
Will your hard drive boot with the flash drive that you used for installation plugged in?
If so boot your hard drive, remove the flash drive and in terminal run: update-grub


How to fix permissions warnings in the root folder?

Yes, it would solve the problem if you remove group write permission through chmod.

sudo chmod 751 <files or directories>


Bluetooth is disabled on ubuntu 16.04 and can't be enabled

It seems like ibt-12-16.sfi was missing. I downloaded it from this site and copied it to /lib/firmware/intel


Here is a nice article about 'Compile Linux kernel modules' http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html

Just go through it. It contains an example just give it a try.

Hope this helps

UPDATE:  I have just tried and found that copy and paste is not working. I have to manually enter the contents of Makefile to work it out. Anyway it works fine. Just try and let us know the result.


Have you tryed to reinstall the Plymouth from the drop shell, or enter in the terminal:

 sudo dpkg-reconfigure Plymouth

and you can also type in the terminal:

 sudo apt-get install --reinstall ubuntu-desktop

it might work fine this way.


How can I install Windows 10 alongside Ubuntu 20.04 LTS?

The easiest way
first backup important data

i suggest removing ubuntu
then try to install window 10 first
after the installation of windows 10
install ubuntu 20 again
this time select on install alongside windows 10
this will install window 10 with ubuntu
after the installation restart your pc
you will see a menu called grub

in the last you will see windows 10
now you can run windows 10 alongside ubuntu

by other way like resizing main extended partition ext4 will not
work as window 10 will install and it will stop ext4 partition to stop
loading and will load window


How do you globally set the default browser using KDE4?

I go to the start menu, then:

System Settings->Default Applications->Web Browser

and then I tell it to open http/https in:
google-chrome

Now links in choqok (or any other kde application) are opened in chrome,
also, if I do alt+f2 and type "man:file" for instance, the man page opens in chrome.

I also modified the default email client so that emails are launched using gmail using the following command:

google-chrome "https://mail.google.com/mail/?view=cm&fs=1&tf=1&to="%t


How can I write a script that uses argument/parameter to choose what backup to run, (daily, weekly, monthly) this is a script for ZFS backup

Execute your script as below :

./script.sh positional_parameter_1

The parameter value can be daily,monthly,weekly in your case.

Within the script you can refer to this parameter value using $1.

Example for daily backup:

script should be executed as

./script.sh daily

Within the script you should have something like :

if [$1 == "daily"]
then
{
   # code to take daily backup
}
fi


Ubuntu 18.04 on startup error, [-f: command not found

To edit those files use these steps:

Boot with installation media and select Try Ubuntu
Mount root at the point /mnt

sudo mount /dev/sdaX /mnt

Make sure that you know your root, i.e. the partition that / was mounted on during installation.

Then chroot into that location so you can edit your files:

sudo chroot /mnt

Now use your editor and edit that file your previously edited.

NOTE: If your lost just do ls /mnt to see where your going!!


Ubuntu does not distribute the latest packages, they distribute packages that have been tested and known to work together. See Why don't the Ubuntu repositories have the latest versions of software? for details.
You have specifically requested that python3.8 be installed, but incase some packages rely on the older python3 being installed python3 will still default to python 3.6.9. To specify that you really want to run python 3.8 run python3.8 on the command line in place of python3.


One possibility I found are two add-ons for Firefox and Chromium called Eye Guard.
The Firefox one gives you control over the color, and the time it operates.


Ubuntu 18.04 stuck at a black screen with lines that start with a green OK

You have Android Studio installed on your computer, so your computer probably has a discrete GPU and is using the appropriate graphics drivers for it. Booting with the nomodeset kernel option is worth a try.

Safe Graphics Mode. A new option is added to the GRUB menu in 19.04 and later which will boot with nomodeset on. This may help you resolve issues on certain graphics cards and allow you to boot and install any proprietary drivers needed by your system.

Install Synaptic package manager.

sudo apt install synaptic

Undo the most recent software update: Is there a way to undo software updates?

If booting with the nomodeset kernel option doesn't work try booting to an earlier kernel version.

Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.) With UEFI press (perhaps several times) the Esc key to get to the GRUB menu. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GRUB screen, and then pressing Shift is unnecessary.
From the GRUB screen select Advanced options for Ubuntu and press Enter.

A new purple screen will appear showing a list of kernels, which includes options of booting the kernels normally or in recovery mode. Recovery mode offers a menu of recovery options including the option of dropping to a root shell prompt.

Now you should see this recovery menu:

After a few moments, a menu will appear with a number of options. One of the options (you may need to scroll down to the bottom of the list) will be root (Drop to root shell prompt). Press Enter with this option highlighted.
The root partition is mounted read-only. To mount it read/write, enter the command

mount -o remount,rw /

If you have /home, /boot, /tmp, or any other mount point on a separate partition, you can mount them with the command

mount --all

The problem turned out to be a filled up partition. The big file was a little too big. Kushagra Gupta made some additional disk space by going into recovery mode and it worked like a charm.


Restoring of MySQL password fails and any of the Websites doesn't work

Doing flush privileges can be dangerous. You should check all your users and see if they still have the right GRANTS to their databases. Thay may solve the websites "Database error"


Have you looked into installing Postfix? Here's another link.


What happens if I install updates without checking for new updates first?

apt-get update updates your local copy of the software catalog, and apt-get upgrade installs the new updates. So if you didn't update your local software catalog, you may not get latest updates (you will get updates from the previous update check).


How to escape `$` and `#` symbols in bash?

Because you already have single quotes in the string, use double quotes, and escape only the $ sign:

echo "\$(document).ready(function() {\$('#cf-footer-paragraph').append('
Revision 12345
');});"


How to config USB ethernet to have a static IP?

If you need to plug/unplug very frequently, a HWaddr should bind to the device like this 12:a5:cf:42:92:fd. For my case, I'm using g_ether.ko on an embeded linux system, run "insmod g_ether.ko host_addr=12:a5:cf:42:92:fd dev_addr=5e:bc:ca:27:92:b1".
Then on the linux host (Ubuntu 12.04 LTS for my case), edit the file "/etc/NetworkManager/system-connections/Wired connection 2",
and input something like

####################################
[802-3-ethernet]

duplex=full
mac-address=12:a5:cf:42:92:fd

[connection]

id=Wired connection 2
uuid=2862a666-c2e6-4a3a-8e0c-8705d93c92da
type=802-3-ethernet
timestamp=1501735507

[ipv6]

method=auto

[ipv4]

method=manual

addresses1=192.168.42.21;24;192.168.42.1;
###############################################

Last, save the file, and plug/replug the usb cable.


How do I disable the "Nouveau Kernel Driver"?

All links above are correct, however you must run sudo update-initramfs -u so the initramfs can be purged of nouveau


11.10 Overview

The older GNOME 2.x experience has been retired in GNOME, however you can use the GNOME 3.x classic mode (as shown below) to make an approximation of the older experience.

install prerequisites

In the software center you have the option to install Gnome Shell :

Similarly - search for CompizConfig Settings Manager  and install this package - we'll need that later.

Whilst you are there you can also install gnome-tweak-tool  to further customise your desktop.

To quickly install all three of these at once, copy and paste the following into a terminal:

sudo apt-get install gnome-shell compizconfig-settings-manager gnome-tweak-tool

enabling compiz

Now perhaps the tricky part - getting gnome classic to function with compiz:

In a terminal copy and paste the following:

gksudo gedit /usr/share/gnome-session/sessions/gnome-classic.session

Now edit the file shown to contain this line entry:

How to login to Gnome-Classic

Save, logout and in your session options choose Gnome Classic

Changing the theme

You'll notice that the default Ubuntu Ambiance theme doesn't look great in Gnome Classic.  We can correct this by changing to a Gnome 3 friendly theme.

... and choosing Appearance

Change the theme to Adwaita...

Note - see the linked questions below for other theming options.

Changing Icons

Launch gnome-tweak-tool via the menu option:

Applications --> Other --> Advanced Settings

Change the icon theme as shown:

Restructure the desktop layout

Now lets get back the panels to something that we are familiar with...

Press Alt+Win and right-click the top menu bar - N.B. Win is the Windows Symbol key

(If you are using Gnome Classic (No Effects) i.e. gnome fallback mode then to add to the panel use Alt and right-click)

Choose Add to Panel

Click the option shown and click the button Forward

Repeat the Alt+Win + Right Click the date and choose Delete to delete the clock.

Repeat this delete procedure for the other applets on the top-panel.

Note - if an error appears indicating that the Panel has reloaded you can safely ignore this.

Repeat the Alt+Win + Right Click the top panel - add the applet Accessibility.

Repeat the Alt+Win + Right Click on bottom panel - add the applet Show Desktop and move to the bottom left.

Repeat the Alt+Win + Right Click on bottom panel - add the applet Wastebasket and move to the bottom right.

Now we need to change the number of workspaces back to two.

Navigate to Applications - Other - CompizConfig Settings Manager - General Options - Desktop Size and change the Vertical Virtual Size value to 1

Install the indicator-applet

Now lets install the indicator-applet:

see the linked question below to add a PPA containing the indicator-applet

To add to the panel:

Alt+Win+Right click the panel and choose Add To Panel and add the following indicator

Finish off by Alt+Win+Right click the indicator-applet and move it to the right side of the top panel.

Optional:

You can install fonts-cantarell  if you want to use the default upstream GNOME font

Linked Questions:

Delete extra toolbar on top of the screen in GNOME fallback mode?
How do I revert Alt-tab behavior to switch between windows on the current workspace?
How do I change to a theme not listed in the Appearance screen?
If you use autologin you need to do this: How do I set the GNOME Classic login to be the default with autologin?
How to re-add indicator-applet for 11.10
How to customize the gnome classic panel
Warning: What are some of the issues with CCSM and why would I want to avoid it?


How can I use for loop in a shell/terminal with awk?

You can tell dpkg to list details for specific packages:

$ dpkg -l util-linux ufw
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                         Version                     Architecture                Description
+++-============================================-===========================-===========================-==============================================================================================
ii  ufw                                          0.35-0ubuntu2               all                         program for managing a Netfilter firewall
ii  util-linux                                   2.27.1-6ubuntu3.1           amd64                       miscellaneous system utilities

Then you only need to filter out the heading.

Easier still would be to use dpkg-query and set the format directly:

$ dpkg-query -W --showformat '${Version}\t${Package}\n' util-linux ufw
0.35-0ubuntu2   ufw
2.27.1-6ubuntu3.1   util-linux

Then, in awk, you just need to remove the ubuntu... part as you currently do, without any filtering.


how much size required for booting ubuntu in usb?

USB drive size 2 GB - Ubuntu live-only

As @ByteCommander indicates, a 2GB USB pendrive or memory card (connected via a USB adapter) will be big enough for a live-only USB boot drive, that you can use to 'Try Ubuntu' or Install Ubuntu into another drive (an internal drive or another USB drive).

There are more details at this link.

USB drive size 4 GB - Ubuntu persistent live

A 4GB USB pendrive or memory card (connected via a USB adapter) will be big enough for a persistent live USB boot drive.

There are more details at this link.

USB drive size 16 GB - Ubuntu installed system

A 16GB USB pendrive or memory card (connected via a USB adapter) will be big enough for an installed system in a USB boot drive (installed like into an internal drive).

There are more details at this link.

General link

Try Ubuntu (Kubuntu, Lubuntu, Xubuntu, ...) before installing it


Advice on building my first pc with ubuntu

You can install just fine without a DVD drive. Preparing a bootable USB is simple from any operating system up a USB (there are help guides available on the download page - about half-way down the page).

The drivers that ship with your motherboard will undoubtedly be for Windows only. In Ubuntu, most of your devices will be covered by the drivers built into the Linux kernel so in the vast majority of cases you don't need any additional drivers to run Ubuntu.

You should certainly be able to get it to a point where it's installed and usable, by which point any missing drivers can be downloaded using a network connection.


The tools, the bash shell and the sh POSIX shell (provided by dash) are already available in Ubuntu by default.

You can begin by reading Bash Reference Manual and Lhunath's BashGuide.

Next, you should try yourself, follow this site and also Unix & Linux, where many shell related questions arise frequently.

Finally, a great source of interactive information is the #bash channel on Freenode IRC network.


Target filesystem doesn't have requested /sbin/init

Suggested fix can be found here:  http://pinoy-computing-tips.blogspot.com/2010/08/how-to-fix-ubuntu-error-no-init-found.html

Quoting:

  This morning, a friend came to me with
  his laptop that won't boot. At every
  boot attempt, his Ubuntu 10.04 Lucid
  Lynx system outputs the following
  error messages:

mount: mounting /dev/disk/by-uuid/***************************** on /root
failed: Invalid argument
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory

Target file system doesn't have /sbin/init
No init found. Try passing init= bootarg

Busybox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash)
Enter 'help' for a list of built-in commands
(initramfs) _

  Booting into "Recovery Mode" as well
  as choosing the other kernels listed
  in grub didn't help at all.

  Solution:

  Boot from the Ubuntu Live CD;
  Open/Run Terminal;
  Type: sudo fdisk -l (to get the device name) then press ENTER;

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: **********

Device Boot Start End Blocks Id System
/dev/sda1 * 1 30238 242886703+ 83 Linux
/dev/sda2 30239 30401 1309297+ 5 Extended
/dev/sda5 30239 30401 1309266 82 Linux swap / Solaris

  The device name for my friend's system
  based on the above: /dev/sda1
  Type: sudo fsck /dev/sda1 then press ENTER;
  Restart the system and boot normally.


Why is Ubuntu One going to be shut down?

Yes, it is real.

For more information you can read Canonical's Blog about it.

http://blog.canonical.com/2014/04/02/shutting-down-ubuntu-one-file-services/


Fixed changing the input method from XIM to None in
Language Support.

Posting here because i haven't been able to find this solution on AskUbuntu.


How do I open a terminal in the current location?

Installing nautilus-open-terminal (from the Software Center or using apt-get) adds the option to open a terminal in the current directory to the right click menu:


I had the same issue. I have found a report that has already been registered. There is a suggested workaround that works for me:

go to System settings > Network > Wireless > Use as hotspot > Configure (or 'Edit connections' under your connections > Edit the hotspot connection)
Switch to IPv6 Settings tab > Set Method to 'Ignore' and confirm/save
in terminal (Ctrl + Alt + T) run the following command to kill all dnsmasq processes: sudo killall dnsmasq
go to System settings > Network > Wireless > Use as hotspot

Should work, and I have set my hotspot up as it is in the Mosture's post

Link to bug report:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/857294

Edit:
I needed to set up android accessible hotspot recently, and I was successful in creating such through ap-hotspot.


Wifi keeps dropping on Dell XPS13 running Ubuntu 16.04, not sure how to use sudoedit on file

If you check terminal results for iwconfig I think you will find that power management is on and that is likely causing your issues.  You can disable power management with
sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Reboot


How do I enable my wireless switch? HP Pavilion dv4000

The wireless On/Off switch is on the top panel.  See image below.


Libreoffice writer: typing cursor appearance (not mouse pointer)

In newer configurations with compiled gtk themes, you just need to add this to ~/.config/gtk-3.0/gtk.css. Create the file if it doesn't exist.

* { -GtkWidget-cursor-aspect-ratio: 0.2; }


I think ...

I think that the KBibTex is using the Okular's Kparts /1/, /2/.

Searching kbibtex+kpart+okular /3/:

  "Last but not least, software developers need to know that KDE
  provides an excellent platform to build upon. For example, the
  integration of Okular's PDF viewer in KBibTeX with just a few lines of
  code was a big plus for me."

Here with the Kubuntu 11.10 / KDE 4.7.2 the Okular packages installed:

okular -  document viewer
libokularcore - libraries used by the Okular document viewer
okular-extra-backends -  additional document formats: TIFF, DjVU, EPub

Maybe the libokularcore is enough ?

Links

http://okular.kde.org/
http://techbase.kde.org/Development/Tutorials/Using_KParts
http://dot.kde.org/2010/10/19/thomas-fischer-kbibtex-kde-reference-manager


Find version of development library from command line?

You can quickly find what version or where a library is, even if you do not quite know the title, with dpkg, and, in your case, using boost as the query term:

dpkg -l '*boost*'

and then query dpkg again with this option for a full list of file locations now you know the name of the file:

dpkg -L <'name of lib'>

The name of the library may, for example, be libboost1.46-dev.


Connect with an AD user to a ubuntu Machine

I know this is an old question. But it seems better to provide an answer to an old question than ask one myself just to answer it with what I finally got working!

Have you tried sssd? I'm doing this without winbind.

/etc/sssd/sssd.conf

[sssd]
services = nss, pam
config_file_version = 2
domains = MBA.AC.UK

[domain/MBA.AC.UK]
id_provider = ad
access_provider = ad

override_homedir = /home/%d/%u
default_shell = /bin/bash

/etc/krb5.conf didn't require anything other than the Default realm specified in

sudo dpkg-reconfigure krb5-config

smb.conf is unchanged (I mount user shares via libpam_mount--which, however, I can tell you up front will screw with lightdm. Perhaps pam / ad issue with lightdm would help with that.)

I don't think I modified any of the /etc/pam.d/ files beyond the auto-configuration when sssd was installed.

/etc/pam.d/common-account

account [success=1 new_authtok_reqd=done default=ignore]        pam_unix.so
account requisite                       pam_deny.so
account required                        pam_permit.so
account sufficient                      pam_localuser.so
account [default=bad success=ok user_unknown=ignore]    pam_sss.so

/etc/pam.d/common-auth

auth    [success=2 default=ignore]      pam_unix.so nullok_secure
auth    [success=1 default=ignore]      pam_sss.so use_first_pass
auth    requisite                       pam_deny.so
auth    required                        pam_permit.so
auth    optional        pam_mount.so
auth    optional                        pam_cap.so

/etc/pam.d/common-session

session [default=1]                     pam_permit.so
session requisite                       pam_deny.so
session required                        pam_permit.so
session optional                        pam_umask.so
session required        pam_unix.so
session optional                        pam_sss.so
session optional        pam_mount.so
session optional        pam_systemd.so
session optional                        pam_mkhomedir.so


Login  credentials are:

Username: admin
Password: admin
Server : 192.168.33.10
Port: 5432
Database: demo

BUT! You need to install the github version if you want to use the free version. The instructions for the free version are:

install virtualBox 4.3
install vagrant 1.5.4

Comments:

Both installed in 14.04 without a problem
Do not open VirtualBox or create a virtual machine. This will be handled by Vagrant.
Use the Vagrant download page. Package managers like apt-get and gem install will install an older version of Vagrant.
This installation requires a reboot before any Vagrant commands can be performed

After installation and a reboot you need to create a config file in any place you want (I prefer my home) with:
cd ~/
mkdir xtuple-demo
cd xtuple-demo
vagrant init xtuple/xtuple-mobile

Result from the last command:

A Vagrantfile has been placed in this directory. You are now ready to vagrant up your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on vagrantup.com for more information on using Vagrant.

Create and start the xTuple server:
vagrant up

Result:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'xtuple/xtuple-mobile' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'xtuple/xtuple-mobile'
    default: URL: https://vagrantcloud.com/xtuple/xtuple-mobile
==> default: Adding box 'xtuple/xtuple-mobile' (v4.4.1.1) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/xtuple/xtuple-mobile/version/4/provider/virtualbox.box
    default: Progress: 5% (Rate: 1965k/s, Estimated time remaining: 0:09:41)

(this will take a while; took an hour to finish when I did this).
At the end is shows:
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => /home/rinzwind/xtuple-demon

After the server has finished loading, launch your local browser and navigate to the application: http://localhost:8888. Result:

and admin/admin logs me in:

I used this source to install and test.

The software in Ubuntu software center seems to be just a connector to their (non free) cloud based software. I have not seen software that allows you to run your own instance locally (ie. localhost) unless you use the method above (the virtualbox container using vagrant). The method you use (software from USC with Postgress fails because you still need apache to host the system and the software that is their website. That last one is not free and not available).


From the manpage:

  Given two or more arguments, pause for the amount of time specified
  by the sum of their values.

So:

sleep 7m 30s


How can I choose Ubuntu on my window 8.1 dual boot computer

The easiest way is to install Grub Customizer then just go to general settings and pick the entry posistion or just click previously booted. Then go to File-->Save then File--> Install to MBR.

CtrlAlt-T

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer


Is it possible to convert Ubuntu 15.10 to 15.04LTS?

To answer your first question: no, there is no simple way to downgrade your system; upgrading is a one-way road. (Of course, you could reinstall 15.04 completely from scratch, though.)

To your second question: I'm seeing people with Realtek wifi hardware reporting success on 16.04 (and other versions) with the following instructions (just run these commands one-by-one in a terminal). You'll need some sort of internet connection temporarily, such as an ethernet cable attached to your router, to download the packages:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware


Unable to boot into windows after installing Ubuntu on a second HDD

This happens when using two disks instead of just partitioning the drive Windows is on. Or, this can be cause by Grub not identifying the drive Windows is on. Your best option should be reinstalling Ubuntu on the main drive and partitioning it from windows.


You have to select the /dev/sda1 partition and change its filesystem to ext4. All previous data will be destroyed on this disk (500GB).

After that you can select where the installer should put the root file system (at /dev/sda1 newly formatted as ext4). You cannot install Ubuntu/Linux to a NTFS partition.


Just run the installer again. By the way you should try installing a newer version of Ubuntu than 10.10, such as 11.10 or 11.04, or even wait till 12.04 comes out and try that.

10.10 is not a long term support release and won't be around for too long.


Stuck in tty. Can login in tty and run commands

I solved my problem by changing the language which I did by running

  sudoedit /etc/default/locale

and editing these lines

LANG=en_US
LANGUAGE=en_US:en

Then the error messages were in English. Trying different things, I realized that removing Python 3 caused the whole problem, broke apt and my system (don't do this!).

So I backed-up my files and reinstalled Ubuntu.


Getting grey hash screen when using RDP into my server

Ok - so as it turns out, it DOES log in and provide the desktop if i haven't logged in locally - I just needed to wait...

It seems to take 20 or so seconds for the gui to fire up - rather than the couple of seconds if i'm already logged in locally.

All that's to say, it works out the box... :)


How to detect ThinkPad T530 volume up and down keys?

The buttons are XF86AudioRaiseVolume and XF86AudioLowerVolume.

They are not detected by xev, don't know why. But after using these values it worked.

Source: https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_T530#keybinding