Where to save files and install software in a full install usb

Sorry, I am not sure of your actual questions either.

This might help you to understand what you have done.

When you install an OS, files are added to a disk.
In Microsoft, this would be the C: drive.

Linux does not have drive letters to define the hardware.

Linux connects hardware to a directory.

Microsoft has created something called 'My Computer' which all disk drives appear to be connected to in Windows manager.

Linux has a file system that is made up of one or more disks connected together in one file system tree. The top of the file system is known as the root of the file system and is denoted as '/'.

I do not remember if Ubuntu 14 is a single install ISO or if there is a live desktop and live server version ISO. Ubuntu 15.x has 2 downloads, a desktop and a server version.

Assuming you copied the install ISO using the 'dd' command, what you did was essentially duplicate all the files that represent the installation (on the C: drive of a windows host, all the partitions on a Linux host) onto a single device (USB) drive, equivalent to the D: drive in a windows world.

You normally have to force the motherboard to boot off a USB device or it will default to using the local hard drive, the C: drive in windows.

If you were to boot this device by rebooting your host, it would bring up a Ubuntu console (server version) or a graphical desktop (desktop version).

If you try to view this USB stick on windows, you will get nothing. Windows does not have a driver that will view the format of this USB stick (ext4 is my guess). Hence you cannot see it from Windows.

If you boot this USB device on your host, you will bring up a console or desktop view.

On the desktop view, there should be a file manager icon or option in the menu that you can start. This will give you access to a memory resident file system.

Here is where it gets weird. The USB device is mounted as the underlying file system and memory is used for the disk space you save files to.

Put another USB device in, windows format or linux, and then copy your files to these devices.

Linux hosts can usually mount and use Windows formatted devices but not the other way around.

Hope this helps.


The manual to ping states that only the super-user may set an interval to less than 0.2 seconds.

   -i interval
          Wait  interval seconds between sending each packet.  The default
          is to wait for one second between each packet normally,  or  not
          to  wait in flood mode. Only super-user may set interval to val‐
          ues less than 0.2 seconds.

I tried this out on a clean 14.04 installation and sub 0.2 intervals only work for the super-user, this is to stop ping floods from unprivileged users.


Where can I find the full list of Compose combinations for my locale?

The full list of key combinations is available on the local filesystem here:

/usr/share/X11/locale/en_US.UTF-8/Compose

Everything that starts with <Multi_key> is a Compose key combination.

You'll find a lot of multi-number combinations producing stuff like:

34 as ¾
(10) as ⑩

And there are some fun (nearly easter egg) things in there too, including:

:) as ☺
<3 as ♥
CCCP as ☭

etc...


The remote computer was reboot and i can't go in its autorun TeamViewer

I don't know if TeamViewer will allow that, most desktop sharing apps will only work then one user is connected, including the Ubuntu bundled one.

FreeNX is a remote desktop server than can be useful for you. It will ask you for a username and password and open a new session with that user. It's tunnelled under ssh, quite fast and very secure. But it's not as near as easy to configure (read convenient) as TeamViewer: You will need to install the server, install a client on the computers where you are going to connect from, and open port 22 on your router. See this question and this.

Note that after the pain it works really well, we used it at work for a couple of years to let around 20 computers access our server through low-speed ADSL lines and we were very happy with it.


Which files are you trying to sync?

Ubuntu One syncs everything inside the “Ubuntu One” folder in your home, as well as any folders on which you right click and select “synchronize this folder”:

We're not currently able to offer syncing of individual files:


How can I change a drive's partition table from MBR to gpt without losing an NTFS partition at the end of the drive?

There actually is an easy way to do it: Run gdisk on the disk and then type w to save the changes (which, if you do nothing else, consist of converting from MBR to GPT, which gdisk does automatically). That said, there are a few caveats:

If the disk is bootable, it will cease to be bootable after the conversion. Bootability can often be restored by installing a suitable boot loader. NTFS implies Windows, which would mean a conversion from BIOS-mode to EFI-mode booting. Making this change is possible, but is a bit tedious. Here is one page that describes how to do it. If the disk is strictly a data (non-boot) disk, then this issue isn't important for you.
If the final partition on the disk ends too close to the end of the disk, it may need to be shrunk by a small amount -- just a few sectors, normally, although many tools will require rounding to 1MiB units, so you may lose 1MiB or so. GParted often ignores tiny gaps like this, so it's unclear from your screen shot if you'd need to do this.
If the first partition begins too close to the start of the disk, its start point may need to be moved. That's obviously not the case for your disk.
Some meta-data, like partition type codes, won't be correctly converted. This isn't an issue for your disk.

For more on this subject, see my GPT fdisk documentation on MBR-to-GPT conversions. (Note: I'm the author of gdisk, which is installed by default with recent versions of Ubuntu; so that page can be considered official documentation.)


Shared folder in VirtualBox (Ubuntu and Windows 7)

Host: Ubuntu

Choose the folder that is to be shared (the same way as below - open VM settings on Your host and choose). Lets say it is (folder on Your host which You want to see from Win7 guest):

/home/misery

This tutorial covers the answer. After adding Your Ubuntu folder to shared start or reboot Your Win7 VM You should search Your local area network (in Win7 guest; wait until it has searched it - the green progress bar). After that network disk should appear.

On my PC it was found with no further steps. In case of problems please refer to the tutorial.

Host: Win7, Guest OS: Ubuntu

First go to Your virtual machines settings:

Add the folder You wish to share and name it (it will automatically name it). Here the Win7 path to my folder is C:\Misery and the name is Misery

Then mark Auto mount option to mount it always when starting Your VM.

And basically that's it. Now start Your virtual machine. This tutorial explains the rest, in short You need to create the folder that will be Your mounting point (on the guest). Let's say it will be GMisery on Your ubuntu. So Create it in Your user directory. So now we have existing empty folder on guest OS:

/home/misery/GMisery

Next open Your terminal and write:

sudo mount -t vboxsf -o uid=1000,gid=1000 Misery /home/misery/GMisery

Now it should work. At least id does on my PC :] If no error occured, logout and login again and it should be done.

Please read attached  tutorial also.

And in general it is a good idea to install on your host VB extension pack. However it has no influence on the topic discussed here.


Ubuntu 20.04 Bluetooth device only connects after removing it

I don't know why but this keeps happening to me to. This isn't a solution just a mere workaround.
For me, I needed to toggle on the button multiple times to get it working. I posted this on reddit if you want to see it.
You can install bluetooth quick connect extension from here. This mostly automatically connects your bluetooth device to your pc. And you can also install blueman by using sudo apt install blueman as an alternative if the extension isn't working correctly.


There are no applications that do that or anything like what you want.

Of course it is a matter of developing a software that does that. If you have the time and expertise to do that go to Launchpad Blueprints, there you will be able to receive help from other developers. You will need to know what you are doing ; they won't do the work for you.

But if you don't have time and expertise you can use Ubuntu Brainstorm, as Leopoldo already pointed out. This idea already exists there: Ubuntu login fade-in.

Also you can file a bug at Launchpad requesting the feature and it will be marked as Wishlist, and depending how many users mark the bug as affecting them, the feature might end up being released by the Ubuntu team.


What's the correct way to revert Mysql 5.7 strict mode back to how it was in 5.6?

To disable strict SQL mode, SSH in to your server as root and create this file:
/etc/mysql/conf.d/disable_strict_mode.cnf

Open the file and enter these two lines:
[mysqld]
sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

Restart MySQL with this command:
sudo service mysql restart

This change disables two SQL mode settings, STRICT_TRANS_TABLES and ONLY_FULL_GROUP_BY, that were added in MySQL 5.7 and cause problems for some older applications.
Confirming Strict SQL Mode Is Disabled
You can confirm strict SQL mode is disabled by running this command as root:
 sudo mysql -i -BN -e 'SELECT @@sql_mode' | grep -E 'ONLY_FULL_GROUP_BY|STRICT_TRANS_TABLES'

If strict mode is disabled, you won't see any output from that command.
If disabling strict mode causes any problems for you, you can enable it again by deleting that file and restarting MySQL again.
Source: How to Disable Strict SQL Mode in MySQL 5.7


It's indeed the problem that you don't have permissions to view the /opt/tomcat/*. This is because you've created a tomcat user and only gave that user the rights to view them. You're IntelliJ is running under your own user. To find out which user that is you can run whoami in your terminal.

If you execute the following commands, but with your own user instead of tomcat (replace the MY_USER) it should not give you the error message inside IntelliJ.

cd /opt/tomcat
sudo chgrp -R MY_USER /opt/tomcat
sudo chown -R MY_USER webapps/ work/ temp/ logs/

Keep in mind that the Tomcat user is created for security purposes though. That means that this solution of giving your super user the tomcat access is only good for local development.


From you comment, the error message should read:

  Error storing `~/.evolution/mail/local/myusername (mbox)': Summary and folder mismatch, even after a sync.

Probably the summary file is corrupted. To fix this you'd need to delete it and let Evolution rebuild it.

First make sure you backup your '~/.evolution' folder!

Now delete the summary file:

rm ~/.evolution/mail/local/myusername.ev-summary (adjust the filename)

Now you need to restart evolution and evolution-data-server, and it should rebuild the summary file.


Libreoffice writer freezes my system - nothing appears on the terminal

I assume that Libreoffice is Java based because when i installed sun's java from a PPA the problem was solved.


Get name and version of available packages to text file - name and version only on same line, per package

If you have a list of packages (say, in a file named input, one per line), then you can do:

while read package
do
    echo $package "$(apt-cache show $package | awk '/Version/{print $2}')"
done < input > Output.txt


Unable to remove/uninstall Ubuntu from a MacBook

Check these pages:

Erase Ubuntu
I want to uninstall Ubuntu
How do I completely remove Ubuntu 12.04 on my Mac?

Hopefully works...


Using the Terminal in Ubuntu to change directory

Arguments in the shell are are separated using spaces. This means that whenever you run a command and try to pass a file or a directory as an argument that contains a space in it, bash assumes it is two separate arguments. There are many ways to specify this. You can use what is called an escape character to signal that the space is part of the argument. To do this, just insert a \ before the space in the file name

cd Program\ Files

or you can use quotes to signal that it is a single parameter

cd "Program Files"

However, often you will not need to type the whole thing if you use the Tab Completion feature

cd P<TAB>

If there are multiple files starting with P, add another alphabet and press tab again to complete.


Install ttf-mscorefonts-installer, then logout and in again - see e.g. http://ubuntuguide.net/install-google-earth-and-fix-ugly-fonts-in-ubuntu-11-04-natty (found by searching for "googleearth natty fonts").


You don't.  The files in the fs are owned by whoever owns them, and you can not change that at mount time.  Instead you need to change the permissions to give yourself access with sudo chown yourname.yourname /path/to/mount.  On a freshly formatted filesystem, the root directory is owned by root, so you will need to change it and from then on, you will be able to create new files which will be owned by you.


You can us the SQLite offline storage API directly from Qml using Javascript:

import QtQuick.LocalStorage 2.0

If you want in-depth examples, I'd suggest looking at the source of some of the Ubuntu Touch Core-Apps. I know that at least the weather, clock, and RSS reader apps all use this. For now though, here's a simple example:

import QtQuick.LocalStorage 2.0
import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {
    id: root
    // Note: applicationName sets the storage path
    applicationName: "com.ubuntu.developer.andrewsomething.example-app"

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

    property var db: null

    function openDB() {
        if(db !== null) return;

        // db = LocalStorage.openDatabaseSync(identifier, version, description, estimated_size, callback(db))
        db = LocalStorage.openDatabaseSync("example-app", "0.1", "Simple example app", 100000);

        try {
            db.transaction(function(tx){
                tx.executeSql('CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)');
                var table  = tx.executeSql("SELECT * FROM settings");
                // Seed the table with default values
                if (table.rows.length == 0) {
                    tx.executeSql('INSERT INTO settings VALUES(?, ?)', ["distro", "Ubuntu"]);
                    tx.executeSql('INSERT INTO settings VALUES(?, ?)', ["foo", "Bar"]);
                    console.log('Settings table added');
                };
            });
        } catch (err) {
            console.log("Error creating table in database: " + err);
        };
    }

    function saveSetting(key, value) {
        openDB();
        db.transaction( function(tx){
            tx.executeSql('INSERT OR REPLACE INTO settings VALUES(?, ?)', [key, value]);
        });
    }

    function getSetting(key) {
        openDB();
        var res = "";
        db.transaction(function(tx) {
            var rs = tx.executeSql('SELECT value FROM settings WHERE key=?;', [key]);
            res = rs.rows.item(0).value;
        });
        return res;
    }

    Page {
        id: app
        title: i18n.tr("Settings")

        Column {
            anchors.fill: parent
            anchors.margins: units.gu(5)
            spacing: units.gu(2)

            OptionSelector {
                id: distroToggle
                text: i18n.tr("Favorite Distro")
                model: [i18n.tr("Ubuntu"), i18n.tr("Debian")]
            }

            OptionSelector {
                id: fooToggle
                text: i18n.tr("Foo")
                model: [i18n.tr("Bar"), i18n.tr("Baz")]
            }

            Button {
                text: i18n.tr("Save settings")
                onClicked: {
                    var distro = (distroToggle.selectedIndex === 0) ? "Ubuntu" : "Debian";
                    console.log("Saved " + distro);
                    saveSetting("distro", distro);

                    var foo = (fooToggle.selectedIndex === 0) ? "Bar" : "Baz";
                    console.log("Saved " + foo);
                    saveSetting("foo", foo);
                }
            }
        }

        Component.onCompleted: {
            var distro = getSetting('distro');
            distroToggle.selectedIndex = (distro === "Debian") ? 1 : 0;
            var foo = getSetting('foo');
            fooToggle.selectedIndex = (foo === "Baz") ? 1 : 0;
        }
    }
}

It sets up a database and some functions to get and save key/value pairs. Then it provides an interface using the Ubuntu OptionSelector components.


Strange network issue; works on windows, but not on ubuntu, works on campus wireless, but not at home

The resolv.conf was probably changed for VPN use and was not changed back for normal use as a result of the crash. Deleting the old resolv.conf may help. You can make a backup copy of the file and delete the original with this single command:

sudo mv /etc/resolv.conf /etc/backup.resolv.conf

A new resolv.conf will be generated as and when needed. See the answer to the following question:

Internet connection not working although it says it is connected

Hope this helps


Why is that updating problem after just installing ubuntu 12.04?

This means that some updating software is already running. If you are using the terminal to do sudo apt-get update and sudo apt-upgrade be sure that the Software Center and Synaptic are closed.


How can I use aria2c to convert magnet link to .torrent file while changing .torrent file name?

No, as per the man page. The name is always the btih field of the magnet link.
--bt-save-metadata [true|false]
      Save meta data as ".torrent" file. This option has effect only when BitTorrent Magnet URI is used.  The file name is hex encoded info hash with suffix ".torrent". The directory to be saved is the same directory where download file is saved. If the same file already exists, meta data is not saved. See also --bt-metadata-only option. Default: false


I'm using amdgpu 19.10 and it works fine for me.

https://www.amd.com/en/support/kb/release-notes/rn-rad-lin-19-10-unified

I recommend you to use amdgpu(All-open driver) not amgdpu-pro driver.
Using pro-driver causes some applications crash frequently (firefox etc...)

ThinkCenter M715q Tiny/Ryzen 5 Pro 2500U (BIOS M1XKT41A)
Kernel linux-image-4.18.0-21-generic
Driver amdgpu-core 19.10-785425
Ubuntu on Wayland

Until then I had used ppa:oibaf/graphics-drivers. It seemed to work very fine. But I cannot launch GUI session from this month. I'm not sure it caused by updated kernel, amdgpu-driver or etc.

19.20 a new version has been released. I'll try it later.
https://www.amd.com/en/support/kb/release-notes/rn-rad-lin-19-20-unified


what do I need to do on all hosts after setting up internal DNS

If you are using DHCP in your network, then you have to configure your DHCP server to provide the IP address of your internal DNS server to hosts.
If you configure networking in your hosts manually, you need to specify the IP address of your internal DNS server in TCP/IP settings on each host. How exactly to do it, of course depends on the OS. In Ubuntu, you have a field to specify DNS servers in IPv4 tab of your network connection's properties window.


Ubuntu 13.10 Cannot download files with firefox after 7 march 2014 update

After searching elsewhere it seems the trouble was from firefox itself not from ubuntu.

Using this guide resolve my problem:

What to do if you can't download or save files

Doing the "Change file type settings" seems to do the trick for me

posting this for future reference if anyone have the same problem


Attempted to move home folder back to original ext4 partition and now can't start session

The process I used, which may have been dopey but worked, was restoring my old fstab, logging in as usual and creating a home_backup with the necessary files and permissions.

I then got rid of the /home line in fstab, booted from the Ubuntu flash disk, and cp -rp the home_backup to home.


Can I convert Ubuntu Desktop 14.04 to Server?

NOTE: the following commands are good only to Ubuntu version less/older than 12.04, see Server FAQ, CAUTION: you might end up with a useless system.

Thanks for your answer but I've found you need to add the update line

sudo apt-get update

Also corrected the following line

sudo apt-get -purge remove lightdm

To

sudo apt-get purge lightdm

The full version of the corrected script is below

# update
sudo apt-get update

# install the 'tasksel' package so we can remove the desktop image
sudo apt-get install tasksel

# remove the desktop image
sudo tasksel remove ubuntu-desktop

# tell tasksel to start the server image setup
sudo tasksel install server

# install the server images
sudo apt-get install linux-server linux-image-server

# remove lightdm
sudo apt-get purge lightdm

# remove all packages no longer required (~400 MB)
sudo apt-get autoremove


How to find the reason of the alert sound?

There is a tool called "Recent Notifications" that may help

sudo add-apt-repository ppa:jconti/recent-notifications
sudo apt update && sudo apt install indicator-notifications

Log out/log back in and in your top right of the screen you should have a mailbox icon. You can customize the settings as well, but as that is outside of the scope of your question you could simply google how to make changes, blacklist apps, etc.

Hope it helps!


Unity not working since nvdia graphic driver installed

It looks like a compiz problem to me more than a driver installation. However if you haven't yet check if there's any graphic driver suggested for you to update in 'Software and Update'->'Additional Drivers'. sudo apt-get update might help to see the latest.

check if ubuntu unity plugin check box is enabled in ccsm. Also try to reset all compiz settings to see if it goes to default.

dconf reset -f /org/compiz/

unity --reset-icons &disown

Restart then.


No such file or directory when executing /usr/bin/time

The problem is that mka is a bash function exported by your script and not an executable (as opposed to make), so /usr/bin/time doesn't find it, as it looks for an executable.

There are two possible solutions.

First, note that there is a difference between the bash built-in function time, and the executable /usr/bin/time. These are different commands, which take different parameters and generate different output:

$ time sleep 1

real    0m1.001s
user    0m0.000s
sys     0m0.001s

$ /usr/bin/time sleep 1
0.00user 0.00system 0:01.00elapsed 0%CPU (0avgtext+0avgdata 664maxresident)k
0inputs+0outputs (0major+215minor)pagefaults 0swaps

Type help time to get help for the bash built-in time. Type man time to get help for the executable /usr/bin/time.

The first solution uses time, whereas the second solution uses /usr/bin/time.

First solution: using the bash built-in function time

The bash built-in function time is aware of declared bash functions, and you can immediately use it to measure the time of such functions.

$ foo() {
    sleep 1;
    echo "Hello World"
  }
$ time foo
Hello World

real    0m1.002s
user    0m0.000s
sys     0m0.001s

In your case, the following command should work:

$ time mka -j8 bacon

This would be my preferred way. However, it may not generate exactly the output you want. In particular, it does not measure or print CPU usage.

Second solution: using the executable /usr/bin/time

You cannot directly measure the time of a built-in bash function using /usr/bin/time (as far as I know), but what you can do is measure the time of the /bin/bash executable executing that bash function. This is a little hacky, and it generates a little overhead as you are launching an extra instance of bash. But this overhead may be negligible when faced with a function that takes minutes to compute, so it may still suit your needs better.

To be able to launch the /bin/bash executable on a bash function, we have to export the function first.

$ foo() {
    sleep 1;
    echo "Hello World"
  }
$ export -f foo
$ echo foo | /usr/bin/time /bin/bash
Hello World
0.00user 0.00system 0:01.00elapsed 0%CPU (0avgtext+0avgdata 1476maxresident)k
0inputs+0outputs (0major+707minor)pagefaults 0swaps

Hence, in your case, to be able to use /usr/bin/time and generate the output format you want, you could proceed as follows:

$ export -f mka
$ echo 'mka -j8 bacon' | /usr/bin/time -f "User\t%U\nSys\t%S\nReal\t%E\nCPU\t%P" /bin/bash


How can I grep through tab completion possibilities?

The solution is the bash builtin compgen. To grep 'svn' from all available commands and command aliases accessible through $PATH, type.

compgen -ac | grep svn

Want to search from a certain prefix (eg all commands that start with ecrypt)? Use regular expressions..

compgen -ac | grep "^ecrypt"


Well, you could just install kdeconnect on Ubuntu GNOME, it would probably also install lots of KDE dependencies, but if you're fine with that then just install it and you'll get the functionality you want. Installing it and its dependencies shouldn't cause any problems and they will be available to all flavours with access to the official repositories (main, universe, restricted and multiverse).

But you should be aware that as you are not on a system with KDE libraries etc pre-installed that this will pull quite a lot of dependencies.


Ubuntu 20.10 Livepatch isn't available for this system

Let's take a look at the LivePatch Datasheet:

Product Overview
The Canonical Livepatch Service delivers live kernel patching
to Ubuntu LTS systems without the need to reboot.

Ubuntu 20.10 is not an LTS release.
Unfortunately, livepatch is not available for non-LTS releases.


How to shrink /home and extend /root partitions

Note: You really need a larger HDD/SSD
Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or lose data.
Keep these things in mind:

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

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

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

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

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

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

boot to a Ubuntu Live DVD/USB
start gparted
resize the right side of /dev/nvme0n1p7 (home) and reduce that partition by 5-10G
move the /dev/nvme0n1p7 (home) partition all the way right
move the /dev/nvme0n1p6 (swap) partition all the way right
resize the right side of /dev/nvme0n1p5 (/) all the way right
click the Apply icon


Even after doing all I could found - Keep on getting the typical Failed to find 'ANDROID_HOME' and Failed to find 'android' command in your 'PATH'

I had the same problem after install with umake android.

Solved adding to .zshrc (.bashrc in your case):

export PATH="$PATH:/home/username/opt/android-studio/bin"
export ANDROID_HOME="/home/username/Android/Sdk"

Are you using npm with sudo?

If you installed one as a normal user and the other as sudo you could try to reinstall or add the paths to the root user.

Install node without sudo.


Mount Veracrypt volume without having adminstrative privileges

Create a script that mounts a specific device and add it to sudoers.
A file container has the problem that it may be replaced by a modified version if it is not read only.

More infos see:
https://www.veracrypt.fr/en/Command%20Line%20Usage.html

Use the ID for partitions:
/v ID:53B9.....1EDCA


If you want to control exactly what runs when you run startx you should create a .xinitrc file in your home directory.  If you make .xinitrc something very simple like:

xfwm4 &
xterm

Then startx will run with only a window manager and a terminal.


How to add grauphel to the owncloud server

After being without Tomboy sync for a year, I finally discovered this grauphel app for owncloud.  I worked with it for a week trying to get it running and finally got it running.  I found lots of documentation and references, but all of them fail short when it comes to the actual steps to get it up and running.

I'm sure many people met the same or similar problems.

I'm going to work on steps that should work very easily for everyone and update this answer in a couple of days.  However in the meantime, I was able to install the grauphel app into own cloud by:

(For Ubuntu:)

Look into your Apache configuration /etc/apache2 for the owncloud
conf file.  I found a new directory created called conf-enabled.
Here I found an alias for owncloud: /var/www/owncloud/
Copy the grauphel directory extracted from the tar download to the apps folder of that
directory.  You'll then have /var/www/owncloud/apps/grauphel.
Restart apache2.  Log into the server.  Then you'll have a new app
available called tomboy.

If I find an easier method (or if anyone knows of an easier method), I'll update these steps to make it easier.  At present this works!

More details can be found at: http://faq.apollo3.com/TomboySync.html
The details in the link will be updated as I easier and more seamless ways for the steps.

I'm told there is a way to install apps for owncloud without manually downloading them, but I couldn't find it documented anywhere.  It most likely is.  I'll edit these steps for that if I find such a method.


Ubuntu is supporting any VGA cards,but sometime it doesn't list them in "system setting",
You should try to install mesa-utils.
From the Software Center :

Or install it from terminal :

sudo apt-get update
sudo apt-get install mesa-utils

Or if this can't find in your repository list, go to http://apt-web.dahsy.at
and then choose your ubuntu version (or select the latest version in the list) according your OS Architecture (64bit/32bit{i836}). and type mesa-utils. Download the file and type on terminal :

sudo dpkg -i location-of-downloaded-file/Package-name.deb

And replace the bold text with the location and name of the downloaded file.


The only problem here is a forgotten import in the Python script mentioned at the bottom of the traceback :

    File "/usr/share/anki/aqt/webview.py", line 90, in <module>
      class AnkiWebView(QWebEngineView):
NameError: name 'QWebEngineView' is not defined

Just open webview.py and add the import needed:

from PyQt5.QtWebEngineWidgets import *

(There are a bunch of other imports missing from QtWebEngineWidgets aside from QWebEngineView, so it's easier to just import them all)


Solved: Ubuntu phone: what is the difference between a web app and a native one?

Qt and QML applications would be considered Native, generally because they use C++ as a framework, thus requiring compiling for your platform. Not to mention that Unity8 is being written in Qt, and the Ubuntu SDK is a plugin enriched version of QtCreator.

HTML5 and by extension, Javascript are going to be associated with being a web application.


find command is not able to find piped file

As your file isn't a regular file but a pipe you can't use [ -f ...] or -type f. Use [ -p ... ] opr -type p instead:
if [ -p $NETHERMIND_SOCK ]; then
    ....

or
sudo find / -type p -name "*.sock" ...


You've got part of it right.  This is what you need to do in order to modify a setting like you want to.

1) Add override_dh_installgsettings to debian/rules:

override_dh_installgsettings:
dh_installgsettings --priority=50

2) Add the gsettings-override file like you did.

Now the bad news.  Your change will not append to the whitelist, it will overwrite it.  In addition, if the user has modified the setting in any way at any time, their modifications will always take precedence.


Any command to check packets received and transmitted

You can try iptraf or iftop for network-monitoring.

Just install it with sudo apt-get install iptraf or sudo apt-get install iftop


How to create a Debian/Fedora live USB on Ubuntu 17.10?

You can use mkusb in Ubuntu to create USB boot drives for all the major linux distros. And you can use it in many other linux distros to create Ubuntu boot drives. The standard method clones the iso file to a live-only system on the target drive using dd under the hood. mkusb 'wraps a safety belt' around the powerful but dangerous dd tool.

See this link,

help.ubuntu.com/community/mkusb

sudo add-apt-repository universe  # only for standard Ubuntu

sudo add-apt-repository ppa:mkusb/ppa  # and press Enter
sudo apt-get update
sudo apt-get install mkusb mkusb-nox usb-pack-efi

There is a list of tested operating systems,

Linux distros where mkusb works


This produces unexpected results:

tail file.txt > file.txt && echo $(date) >> file.txt

The first redirection truncates the file before the tail process starts, so tail  is now operating on an empty file. (ref)

2 suggestions:

a temp file:

f=file.txt
tmp=$(mktemp)
{ tail "$f"; date; } > "$tmp" && mv "$tmp" "$f"

sponge from the moreutils package

f=file.txt
{ tail "$f"; date; } | sponge "$f"

Note that echo $(date) is redundant: you don't need echo to send the output of date to stdout -- date does this by default.


Should I include logs that contain "sensitive information"?

The software uses several data sources for a bug report. One such source is your user environment. This is the content of the file /proc/PID/env where PID is the process ID of a specific process. In the case of a networking program this might reveal to which servers you are connected. Some software allows it to enter a password as commandline option.

Also a hostname can be sensitive. Just assume you are working inside a company. The fact itself that you're working there, could be revealed through a hostname and might be sensitive.

So in many cases a hostname will not sensitive per se, but with additional information it can easily get sensitive or sometimes dangerous.

The error message is just a reminder for you to reflect if your hostname or other information are worth being protected. If no, all is OK. If yes, you should modify the report.


Touchpad disabled and cursor invisible with touchscreen laptop on 13.10

obviously, your touchpad is not enabled. see > man synaptics :

  Option "TouchpadOff"
   0 Touchpad is enabled
   1 Touchpad is switched off
   2 Only tapping and scrolling is switched off

in your case TouchpadOff=2, so tapping and scrolling is switched off.

go to system settings->mouse&touchpad and enable touchpad.

NOTE: synclient is is always your friend when debugging touchpad. all its options are
      documented by 'man synaptics'. you can change touchpad options directly by synclient, but the settings can not persist after the user session. this is when gnome-settings-daemon comes into play. gnome-settings-daemon re-applies the system settings every time a new user session starts.


Now that sudo setpci -s 00:02.0 F4.B=80 is working for you, lets make it executed everytime you login.

Please do the following

sudo vim /etc/rc.local

It might ask you to enter your root password. and then it will open
up a window
Now press Shift+G. This will take you to the
last line of the file.
Press i
Now type sudo setpci -s 00:02.0 F4.B=80
Press Esc
And then type :wq

Thats it. Restart your computer. That command will be executed automatically everytime you login, so that you dont have to execute it manually.


In version 13.10 and newer of Ubuntu you can just tick it off in Text 'entry settings' (last menu options when you click the keyboard icon). Tick off the 'show current keyboard' option.


Please supply more details.  Did a purple looking boot loader called GRUB appear?  Did you have a black screen after that?  Did anything give an error?


List all entries in the current directory whose names contain only uppercase letters

By default, grep uses basic regular expressions (BRE), in which ? matches a literal question mark. Adding the backslash made it have your desired interpretation as a quantifier meaning "zero or one occurrences of the previous expression" (i.e. optionally matching the trailing /).

From man grep:

Basic vs Extended Regular Expressions
           In  basic  regular expressions the meta-characters ?, +, {, |, (, and )
           lose their special meaning; instead use the  backslashed  versions  \?,
           \+, \{, \|, \(, and \).

You could achieve the same by switching to grep into extended regular expression (ERE) mode by adding the -E or --extended-regexp flag:

ls -p | grep -E -e '^[[:upper:]]*/?$'

Note that / is literal in both BRE and ERE - so doesn't need to be escaped in either case.

You could also consider using -x to enforce a whole-line match without the explicit ^ and $ anchors.

Note that (although it's fine as an exercise), piping ls to grep is generally not a recommended way to select files. In bash, you could instead consider using extended globbing:

shopt -s extglob nullglob

ls -pd *([[:upper:]])


Problem solved. i reinstalled the flash-aid plugin in firefox, then proceeded with the wizard mode, but this time, unlike the first time, i did NOT choose the option of tweaking gpu validations. that did the trick.


How do I install VLC 3.0 on Ubuntu Zesty 17.04?

You can install a snap of vlc 3:

sudo snap install vlc

It will be installed alongside your original vlc (if you don't uninstall the original vlc).


What does "Package build-essential is virtual" mean? How to solve it?

The package build-essential is essentially an "Informational list of build-essential packages" rather than an actual package, hence the 'virtual' tag. The details of the most 'essential' of these files can be seen here for Trusty Tahr.

A start, if for whatever reason you cannot install the actual 'build-essential' package, would be to run:

sudo apt-get install dpkg-dev g++ gcc libc6-dev make

And this would provide at least a start for compiling applications...


Apache solr and eclipse taking up huge amounts of memory

You have a problem with Java, all the programs you've got issues with are Java projects.

Consider installing a different JVM, if icetea isn't working try sun-jvm. If that isn't doing the trick then try one of the other javavms.

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


How can I prevent Windows 10 from corrupting the ext4 superblock every time?

I have done some research and it seems that since ext2fsprogs 1.43 (Ubuntu 16.10), the 64bit and the metadata_csum features are enabled when a new ext4 filesystem is created. I did a fresh install of Ubuntu 16.10, but before installing, I started into the USB live session and removed the 64bit and metadata_csum features for ext4 from /etc/mke2fs.conf. After this I ran the installer out of the this live session and now I can start Windows 10 without corrupting my ext4 partitions (you have to reformat your ext4 partitions during the installation of Ubuntu 16.10).

The problem is related to ext2fsd which obviously does not support the 64bit feature and/or metadata_csum feature. It is sufficient to have ext2fsd installed to corrupt your ext4 partitions. No need for them to be mounted in Windows.

You can check if these features are enabled with the following command:

sudo tune2fs -l /dev/[sdXX]

where [sdXX] stands for the ext4-partition in question.


First, check that there is in fact a folder called "Documents" in the current directory by using the ls command (Linux is case sensitive for files and directories). After executing this command, you will see the folders that exist in the current directory. To see your current location in Terminal, type pwd and it will show you where you are.

For example:

$ pwd
/home/allejo/
$ ls
Development    Documents    Downloads

If you would like to go into your home directory in Terminal, simply type: cd or cd ~/. Either command will return you to /home/<username>/.


Software Center PDF Studio 7 link not working

Try to update your packages with sudo apt-get update prior to install.

I am not sure but I think the banner feed has nothing to do with the status of your lists so there is a chance you see software in the banner that has not been updated to your packages list.

If that does not work change the server from what your have at the moment to main server and try to update again.

If updating your lists and changing server did not work you should definitely report this as a bug.


You can use a Gnome Shell extension, such as Multi Monitors, to add the top bar on the second monitor.

If you're not familiar with installing Gnome Shell extensions, you may want to see this: How do I install and manage GNOME Shell extensions?


First install the module:

sudo apt-get install sshfs

Load it to kernel:

sudo modprobe fuse

Setting permissions (Ubuntu versions < 16.04):

sudo adduser $USER fuse
sudo chown root:fuse /dev/fuse
sudo chmod +x /dev/fusermount

Now we'll create a directory to mount the remote folder in.

I chose to create it in my home directory and call it remoteDir.

mkdir ~/remoteDir

Now I ran the command to mount it (mount on home):

sshfs maythux@192.168.xx.xx:/home/maythuxServ/Mounted ~/remoteDir

Now it should be mounted:

cd ~/remoteDir
ls -l


Problem closing a program with upstart in 14.04

Edit-Thanks to muru this is a working solution.

description "NZBGet upstart script"

setuid {user}
setgid {group}

start on runlevel [2345]
stop on runlevel [016]

respawn
respawn limit 5 30
expect fork

exec /home/{user}/nzbget/nzbget --daemon
# post-start /home/{user}/nzbget/nzbget --{user-defined configuration options}


Why does my application hang in interruptible state?

It's attempting to read a socket and is hanging waiting for the server to respond. You might not have a timeout for the socket or your internet may be not fully functional, or the target server might be causing you to wait without response.

Either way, this is an issue for the developers of the program to sort out, they need to make sure all their reads have timeouts and errors and perhaps retrying. Unless the developers have looked at the issue and determined it's a upstream library issue or a downstream packaging issue.


host is able to resolve a hostname, ssh isn't

Whereas ssh and other programs such as ping use the glibc resolver to look up the host name ('pangolin' in this case), host looks the name up in DNS directly, bypassing the glibc resolver.  That's the difference.

However, given that the glibc resolver is, on your machine, configured to try dns after files, I can't explain why the resolver fails where host succeeds.

To try with the glibc resolver, one can use getent hosts ... in place of host ....

I have seen this behavior reported before when dnsmasq was used as a local forwarding nameserver (https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/998712) but you aren't using such a local nameserver; but perhaps the problem there and here wasn't in dnsmasq but in the glibc resolver.


I found out that there is already an icon with the source code and I slightly modified rules file to make use of this icon instead of my own one.
Moreover debuild -us -uc seem to build that package without problems.


How to improve the sound when using Skype 2.2.0.35 on 10.10?

About the sound I might help you:

open a terminal (ctrl-alt-t)

type in alsamixer

I think you got at least these options: Master, Headphone, PCM, Front Speaker, Surround.

Set all of these options on max: arrow up until its at 100% ; arrow right for selecting the next option.

When you have set all these options, your sound should be better. Press 'esc' to exit the alsamixer settings.

To save your settings, type in sudo alsactl store.

When the wrong settings are loaded at boot time, just restore your settings with alsactl restore.


If you want your friend to access these files directly on your network, you will have to open some kind of port. You could add some security through obscurity by using a random port to the outside world (as you already suggested).

You didn't tell us what kind of firewall/router you are using, but generally it should be possible to have your port forwarded to the internet with a random number, while still being able to access it internally with a different port, though I don't quite understand the reason why you would want a different port number instead of just using the same (random) port internally and externally:

https://www.liquidweb.com/kb/changing-the-ssh-port/

Apart from that, SFTP is probably the easiest to set up while providing the features you need. A slightly more complex solution might be FTPS with vsftpd which is only slight more complex to set up and also provides encryption.


set_right_justified() is deprecated since GTK3.2 anyway and should be replaced by gtk_widget_set_hexpand or gtk_widget_set_halign

Edit: Save yourself the time with porting to GTK3, these methods don't work either. Here's your ported example:

#!/usr/bin/python
#coding=utf-8

from gi.repository import Gtk
from gi.repository import AppIndicator3 as appindicator

a = appindicator.Indicator.new('test_indicator', '/some/ico',
                               appindicator.IndicatorCategory.APPLICATION_STATUS)
a.set_status(appindicator.IndicatorStatus.ACTIVE)
m = Gtk.Menu()

item0 = Gtk.MenuItem("דוגמה: שורה ראשונה\nשורה שניה")
item1 = Gtk.MenuItem("שורה שלישית\nשורה רביעית")
item1.set_hexpand(True)
item1.set_halign(Gtk.Align.END)
m.append(item0)
m.append(item1)

a.set_menu(m)
item0.show()
item1.show()
Gtk.main()

It seems like this is an appindicator restriction (like many).


We have the same laptop model:)I love my laptop.

Go to your bios-->configuration-->devices
And turn off switchable graphics.This will completely shut down your radeon gpu and you will only use the integrated intel gpu.If you dualboot with windows you should turn it on again every time you want to boot into windows.The problem is basically in the open source drivers.

I know this is just a fix and not a real solution,but...
Let's hope this get's fixed in Ubuntu 13.10 which will be released in 6 days.


If you have a corrupted sources.list file. You could try this:

Remove the corrupted file:

sudo rm /etc/apt/sources.list

sudo software-properties-gtk

Then tick all the boxes, and change the 'Download from' server, this will create a new sources.list.

Then add any additional repos as needed.

This worked for me.

Also a nice tool that builds the source list for you. Ubuntu Sources List Generator: HERE


How to use `vi` when you've never used it before?

Run the command vimtutor to learn a lot of the many cool functions of vim.

If you just want to do very basic things here is a little cheat sheet:

Pressing i in normal mode allows you to insert text. You can usuallu get into normal mode by pressing the Esc key.

Entering :w will write or save your edits.

Entering :q will quit the application.

To save time, entering :wq will write and quit.

I highly recommend to run the vimtutor command to see some of the power of vim.

Good luck on your Minecraft Server!


How can I create my own OS by customizing Ubuntu?

One among other, Cubic, acronym for Custom Ubuntu ISO Creator, is a GUI application to create a customized bootable Ubuntu Live CD (ISO) image.

  Cubic (Custom Ubuntu ISO Creator) is a GUI wizard to create a
  customized bootable Ubuntu Live CD (ISO) image. Cubic features an
  integrated command line chroot environment to make the customizations
  and permits effortless navigation, backward and forward, through the
  ISO generation steps. You can create new customization projects or
  modify existing projects. Important parameters are automatically
  populated with intelligent defaults to simplify the customization
  process.

See https://launchpad.net/cubic and many tutorials on internet.


The suggestion here is that you may be able to simply recreate the RAID array by doing mdmadm --create.. and mdadm --assemble. But unless I had a full backup, I'd do it the slow way. I.e.

Create an array with sdb1+missing
Create the filesystem on sdb1
Copy everything from sda1 to sdb1
Fix up fstab on sdb1 to mount the raid device as root (it probably points to sda1)
Reboot using sdb1 (which should be recognized as 1-drive RAID mirror)
Add sda1 to existing RAID
Wait for rebuild to finish...

Good luck.


Install alongside Windows 10 option not appearing, windows boot drive seems to be unrecognized

Solved it, the problem was the SATA setting. It was set to RAID / RST, but Ubuntu needs AHCI to find the SSD. Followed this tutorial here, but be careful, it may make your computer unable to boot. In my case (Dell G5) it worked but I needed to follow the comments and boot into safe mode to properly boot.


Incorrect shell password correct terminal password

Maybe your keyboard settings are not exactly the same in the tty and elsewhere (layout, numeric pad use and so on).
I suggest you type your password in the login field in order to see how it looks really.

HTH


How to run an automated internet-radio station in a server environment?

The answer is: liquidsoap.

liquidsoap, a swiss-army knife for multimedia streaming, notably used for netradios and webtvs. It has tons of features, it's free and it's open-source!

It took me some days to understand how streams are generated. liquidsoap consists of little scripts which describe the stream parameters. a simple script which loads and plays a mp3-playlist, let's call it basic.liq, is show below:
#!/usr/bin/liquidsoap

# load a playlist file
stream = playlist("/path/to/playlist.pls")

# output the playlist to icecast
source = output.icecast(%mp3, host="localhost", port="8000",
         mount="listen.m3u", password="hackme")
source(stream)

test the script with:
liquidsoap --check ./basic.liq

and start the script with:
liquidsoap ./basic.liq &

but liquidsoap is much more powerful. for example, to play a jingle every full hour, simply add:
# add a jingle every full hour
jingle = single("/path/to/jingle.mp3")
add([stream,switch([({0m0s},jingle)])])

but a lot more features are described at the homepage:

static or dynamic playlists
time-based selection of the audio source
quota- or time-based insertions or mixes of jingles
live DJ interventions
interactive user requests
fully-customizable transitions, e.g. crossfading
speech-synthesis of track metadata
simple access to remote files
and much more

It's worth taking a look at the quick start guide, a more complex example and the documentation there.


How to show mount icons on the desktop, in gnome classic?

It can be done via gsettings:

gsettings set org.gnome.nautilus.desktop volumes-visible true


Exactly the same problem with my Ubuntu 14.04.

So in order to prevent flickering we did:

1) Settings > Advance Settings > System > uncheck the hardware acceleration

2) Go to: chrome://flags/#smooth-scrolling and Enable it.

But this has a side effect in introducing distorted lines


Docker ate all free space and can't be started to free it?

This has unlikely anything to do with docker. Docker normally stores its container info on /var/lib/docker and that is on your / mount point which has 105Gb free.

What is full is /boot, probably because of multiple old images. If you cannot uninstall these the normal way first look at what image you are running:

uname -r
then at what is under /boot:

ls -l /boot
and remove a initrd.img.... and/or vmlinux... file that doesn't match the kernel version that you are actually running.

After you freed up some space you should be able to use apt-get again.


Why does grub selection no longer appear on my dual-boot system?

Try installing the Grub Customizer with

sudo apt-get install grub-customizer

When you open the app, it shows all the detected OS's (as well as old kernel versions). You can tick/untick the boxes to show/hide options at bootup.

It may be possible that Fedora is hidden. If so, you can easily fix it with the customizer.


How do I install older PostgreSQL (8.4) in Ubuntu 12.04?

sudo apt-get install postgresql-8.4

Seems to do the trick (well, not really a trick).


How can I use LaunchPad.net packages in 11.04?

You can not add Launchpad itself as a source but you can add specfic PPA's sources for packages.

For instance the Launchpad Project Old and New Python Versions has a PPA settings block where it details the information needed to add that PPA to your software sources

By doing so, the packages listed on this page will be made available to you.

If you can figure out what DEB goes first here is a list of all the DEBs you need for python 2.5: packages Open the 'python2.5 - 2.5.5-8~ppa2~natty3' and you get to see all the DEBs involved!


Problem is that the Public Key for that Repository was not Imported.

To Import Public Key run;

sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com E0F72778C4676186

Then run update.


Read the table after a specific line and count occrences with awk

Use this awk:

awk '/CARTESIAN COORDINATES \(A.U.\)/{a=1;next} a==1&&/NO LB/{b=1;next} $0==""{exit}
a==1&&b==1{c[$2]++} END{for(i in c){printf "%s%s", i,c[i]}}' file

/CARTESIAN COORDINATES \(A.U.\)/{a=1;next}: This block searches for CARTESIAN COORDINATES (A.U.) and then sets the variable a to 1, next means to jump to the next line and start the processing again with that line.
a==1&&/NO LB/{b=1;next} checks if a is 1 and if the second string NO LB is found somewhere in the line. It sets the variable b and then loads the next line.
$0==""{exit}: Then if the line is empty exit the processing (it jumps to the END{} block).
a==1&&b==1{c[$2]++}: If both matches are found (a and b equal 1) increment an array called c with index $2 (field 2). This will count the occurences of each value in the second field.
END{...}: This will run when the file processing is done (the array is filled).

for(i in c) run trough each element in the array...
printf "%s%s", i,c[i]: ... and print the index and the value.

The output (with your example file):

C5H2


"FIXING RECURSIVE FAULT BUT REBOOT IS NEEDED!" During installation

This is a bug according to what I've read on Launchpad:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/775950

The very last comment dated 16.06.2011 from Felix Griewald claims to have sorted the problem.

  Felix Griewald wrote on 2011-06-16:

  I confirm that the bug appears to be fixed in Linux Kernel 2.6.39

  I installed the Ubuntu mainline kernel
  v2.6.39-oneiric and you also need
  fgrlx 2:8.850 (you can use the
  Ubuntu-X ppa).

  Tested on Lenovo Y560 Tested about 3
  reboots without AC plugged in - it
  seams to work.


Ubuntu-make (umake) security: package signatures?

I could not find a complete answer to this, either. Just one aspect:

Ubuntu make recently failed to install a package due to the wrong checksum, so there seems to be some checking. See f.ex. https://github.com/ubuntu/ubuntu-make/issues/457 and https://github.com/ubuntu/ubuntu-make/issues/346.

This does not state where the hashes are stored etc, but at least a MD5 checksum seems to be computed.

Update: seems like some packages have a GPG signature. See Error(s) while installing Android Studio using umake.

Update 2: seems like, for android, they just download the checksum from the same HTML page that also has the download link. See the repo, which says

  """Parse Android download links, expect to find a sha1sum and a url"""


I didn’t found any perfect solution but setting up a grey color with 50% of transparency looks like default.


EFIs sometimes get very confused and refuse to boot. In some cases, unplugging all the disk devices can work past this sort of problem. With all disks unplugged, the computer should launch its setup utility, which you can generally use to reset the firmware settings to the defaults. (The details of how to do this vary from one computer to another.) The problem with this is that it usually wipes out the NVRAM entries that enable you to boot any OS, so you may need to use recovery tools to do so. Some EFIs enable you to launch EFI programs you select using a file selection tool. In other cases, you may need to use a recovery disk. An Ubuntu install disk can work for this; it will enable you to boot to a working system, where you can use efibootmgr to re-create a working entry. Another option is to use my rEFInd boot manager on a USB flash drive or CD-R to boot your regular system, and then use efibootmgr to re-create your regular boot entry.

There's a small chance that your computer is completely "bricked." Such things have been known to happen, but mostly with EFIs from 3-5 years ago, which were often quite buggy. (Some Samsungs achieved notoriety for a bug that could cause them to brick themselves.)


How can I listen to a specific signal in Rhythmbox?

I assume that you are creating some sort of plugin. Plugins can be written in C or Python. I don't know how to do this but I know where you could possibly find out this information:

The documentation for creating plugins.
The API documentation.
Asking on the rhythmbox-devel mailing list (rhythmbox-devel@lists.gnome.org)
Asking on the IRC channel (#rhythmbox on irc.gimp.net)


How to apply numix color to the folder background?

I've figured out a solution, and I'll post it just in case someone has had the same problem. I found most of the answer from this post How can I change the white background in the file manager?
But I had to go to /usr/share/themes/Numix/gtk-3.0/gtk.css.
Then, change base_color to the numix theme color(#2d2d2d).
Hope this helps.


Impossible to wget a link with php redirection

The answer is to open the link you've been given.  You'll probably notice something that says "GET" at the top of your web page
Use wget on that link.
wget "http://111.90.145.72/get.php?md5=5c757ea95b47ceab5065b26eeb55896a&key=FIS7AXJH8YP1OC66"

It will put that in your current directory.  The last thing you have to do is rename the file.
mv 'get.php?md5=5c757ea95b47ceab5065b26eeb55896a&key=FIS7AXJH8YP1OC66' random.epub

Then you can open your epub file in an ebook reader.


Horizontally:

Just drag a window to the screen edge and it should automatically take up half of the screen. Do the same for the other edge and you should have two equal sized window tiles next to each other.


You can install GCC 6 by adding the ubuntu-toolchain-r/test PPA. To do so, run the following commands:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-6

You can verify that gcc-6 is installed by running gcc-6 --version and the output should say gcc-6 (Ubuntu 6.1.1-2ubuntu12~16.04) 6.1.1 20160510.

As suggested by Mohamed Slama, if you want to further change the default GCC and G++ to the latest versions, install g++-6 with

sudo apt install g++-6

and then run

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6


No, drive encryption is not the problem. Violations of the rules are the problem.

First, ensure that none of the partitions on the disk is mounted, with

mount | grep -E "/dev"

sudo umount every one of the disk's partitions.

Then, since you're trying to gain direct access to the disk structure, run your command as root:

sudo dd ......

or

sudo shred ......


Open a terminal window and copy/paste these commands, one by one:

sudo apt-get remove nautilus
sudo apt-get install nautilus
sudo apt-get install samba


14.04 stalls on boot up, waits for button press

What happens if you hit F2 or F12 during boot? I also have a Lenovo with Secure Boot/UEFI enabled and was always able to hit either one of those to be taken to BIOS or boot menu.


Try boot-repair by booting into Ubuntu from live CD.

Install boot repair --> For this, open a terminal and do the following:

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

Run boot-repair -->

sudo boot-repair

Click on Recommended repair. Write on a paper the new URL that will appear.

Reboot your PC


ubuntu 14.04 wireless disconnects after rebooting until router is switched off and on

It turned out it was a Power Management thing but all of the commands I tried and were posted in the links above didn't permanently set power management to off. So I followed these steps and it worked:

https://askubuntu.com/a/129634/433874


Cannot access Internet after 14.04 upgrade

In /etc/NetworkManager/NetworkManager.conf, change managed=false to managed=true.
From the top-right corner select Edit Connections, and add a new connection. Specify your ip address, netmask, gateway, and the DNS server being 8.8.8.8.
Then run: sudo service network-manager restart.


Control dynamic power management options for Ubuntu 16.04

If you looking tools to monitoring use:

powerstat

For reduce power base on profiles i suggest use :

pm-utils

In ubuntu there is a lot of package and configuration base on your hardware for manage power
As sample for cpu:

cpufreq-selector

For graphic card use official document for example lowe power in radeon driver:

echo low | sudo tee /sys/class/drm/card0/device/power_profile
exit

Also you can tweak hardware base on kernel parameters :

https://wiki.ubuntu.com/Kernel/PowerManagement/PowerSavingTweaks


Install curl first:

sudo apt install curl

Issue command in terminal afterwards to get your public IP:

curl ipinfo.io/ip


Can I override fonts installed by ttf-mscorefonts-installer, prefer Liberation fonts?

fontconfig employs a complete set of font substitution systems. There are different levels of font definition: font name and font families. Given a specific font, fontconfig uses the font of the same name if available, then seeks otherwise the font family of the same name. If there is still no match, it uses the standard font family definition as substitution, i.e. Sans, Sans-serif and Mono.

Ubuntu has the font family 'Verdana' defined in `/etc/fonts/conf.d/45-latin.conf', where 'Verdana' is set default to 'Sans-serif', which means Sans-serif is employed for 'Verdana' by default. But 'Verdana.ttf' would be used instead if it's installed.

In your system, the preferred font in the Sans-serif family is 'Liberation Sans', so fontconfig uses the 'Liberation Sans' as substitution for 'Verdana' provided there is no font of the same name, whereas uses 'Verdana.ttf' if it's in the search path. This explains what you've posted.

So the solution to your problem is that, you have to remap the font 'Verdana' to a different font, or to a group of fonts which assigns to 'Liberation Sans' the highest priority. (The latter case is recommended)

Open or create the file ~/.config/fontconfig/fonts.conf, append following:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

<match>
    <test name="family"><string>Verdana</string></test>
    <edit name="family" mode="prepend" binding="strong">
        <string>Liberation Sans</string>
        <string>Verdana</string>
    </edit>
</match>

</fontconfig>

Note that ~/.fonts.conf is deprecated now, and if you already have user-defined fonts.conf, remove the header and footer and only keep the 'match' section. And it would be too long-winded to demonstrate the same workaround on 'Arial'. I'm sure you can find it on your own.


Firefox 16 won't start from the gnome shell in 12.10

It turned out to be easy.

Just disable all unity add-ons in firefox:

Unity Desktop Integration
Unity Websites Integration

and it will work.

To do that be sure there is no firefoxes in the processes in the system monitor and launch firefox in the terminal with the command firefox.


Skype: show previously hidden chat; show text in recent chats

If you are getting 'chat deprecated' messages in your event history in Skype 4.2, update to Skype 4.3.

If you click on the event history button (clock above and to the right of the contact list), you should be able to search through your event history, and reopen the chat through there.

To see more of your chat history, just set the history filter (the clock next to the plus in the chat window) to forever.


If we are really taking about a system tray icon, the one possible answer could be the fact that unity (under 14.04) is not showing the system tray icons at all.

The one thing that works is to add a special PPA and fetch the "unity" from there.
This version of unity is patched (basically it is the latest unity + the code for showing the system tray ... the part that was removed by Canonical).

So, you can try:

sudo apt-add-repository ppa:gurqn/systray-trusty
sudo apt-get update
sudo apt-get upgrade

Reboot (or logout and login again).

The one problem: it could happen that the official PPA has newer versions of unity; and if you dont pay attention, the newer version is installed at some point; and whoops, next login ... system tray is gone again.


Audacious is integrated in Lubuntu by default, because of its light-weightedness. You can try it: sudo apt-get install audacious. It supports two different layouts: a GTK-interface, and a Winamp-like interface, from which the latter can be skinned. It doesn't support Unity Sound Menu integration.

Above: the GTK-interface

Above: the Winamp-like interface


Safari doesn't have Linux version. But you can run it using Wine.
First install Wine.

sudo apt-get install -y wine

Then create, download and build directory.

mkdir -p ~/build/safari
cd  ~/build/safari

Download Safari ( version for windows)

wget http://appldnld.apple.com/Safari5/041-5487.20120509.INU8B/SafariSetup.exe

Open using wine.

wine SafariSetup.exe


The command for freeing memory in ubuntu doesn't work

Ctrl-Z doesn't kill the process.  It sends the SIGTSTP signal to the process.  You can even resume the thus killed process by saying fg.

If you want to kill the process, you probably want SIGKILL or SIGINT (Ctrl-C).


How can I subscribe without a credit card?

You can now pay for your music subscriptions using PayPal:

Login to your ubuntu one web account...

Click the button shown to subscribe...

Choose your subscription...

Pay for your subscription via PayPal


About resolution first of all check if you use correct driver for you graphics card if yes, try this in terminal :

xrandr -s 1024x768( change to your resolution)

About bar if it is unity try this in terminal :

unity --reset

or

sudo apt-get install dconf-tools

dconf reset -f /org/compiz/

setsid unity

unity --reset-icons

It resets Unity .


Why does emptying the rubbish bin in nautilus take so long?

When the first operation occurs it just moves the files to the trash.

When you "trash" those files it loads the entire tree file into memory and then deletes each file one by one. This allows for timing calculations to know how long it takes to delete the file, how many files are to be deleted, how big those files are, although most of the parameters are not used here, and allows you to press that little red cross to stop the process.

Thats why I always delete from the shell


There are many ways of doing it. I am assuming that you have a card reader.

Start gparted and make the partitions.

You can do it from the terminal.

List all disks

sudo fdisk -l

You need to figure out which disk is your card; it's usually something like /dev/sdc. I will use "xxx".

sudo fdisk /dev/xxx

Some fdisk commands:

d: delete partition
n: create a partition
l: list types
t: set type (c for fat32. 83 for Linux)
w: save
q: quit without making any changes

Then you create filesystems with a command:

sudo mkfs -t vfat -F 32 /dev/xxx1
sudo mkfs -t ext4 /def/xxx2


Is it possible to unmount the /home partition?

You can enter single user mode for such operations by adding 's' to the end of grub boot line edit or run sudo init 1. there you can umount /home, if again get errors run sudo umount -fl /home. -f force and -l disconnect in lazy!


How do I export Outlook 2013 mails and contacts to Thunderbird?

There's a program available on the Ubuntu Software Center called readpst - this command line program can convert pst files from outlook (you e-mails) to a format that Thunderbird can read in.  It's been quite a while since I did this, so I don't recall if this also handled the contacts.

readpst -u -o ~/dirname foo.pst

Contacts:

Contacts may be more difficult to pull over, as there is no real easy way to export contacts.  I'll put this example together using outlook2013, which is the obnly version I currently have running.  You know that you can send an outlook contact as a vcard, and what you want to do is send all outlook contacts as a vcard - unfortunately outlook will not send multiple contacts in a single file.

So...  Open your contacts in Outlook, select them all, and choose to forward them as business cards (vfc files).  Send the mail to yourself.  This is a pain, I know.  When you get the mail, choose to save all attachments in a single folder somewhere.  You will now have a folder full of vcf files.

Open a cmd (dos) window, change to the directory with all the contacts, and enter the command

copy *.vfc contacts.vcf

This will create a single file called contacts.vcf, with all of your contacts in it.  Copy this file to your Ubuntu system, perhaps on a thumb drive?

Alternatively you could perform this function on Ubuntu:  Create a directory in your home area, copy all of the vcf files from the e-mail into the home directory, open a terminal and navigate to this directory. The command would then be

cat *vcf >> ~/contacts.vcf

This will create a 'contacts.vcf' file in your home directory, with all of the individual contact files placed into it.

Open Thunderbird, click on Address Book, and choose 'Tools->Import' from the menus.  Tell thunderbird you would like to import an address book, and use the vcf file import, locate your contacts.vcf file and away you go.


getting error message Package operation failed

For some reasons the file /var/lib/dpkg/available is damaged.

Move it away, for example with

sudo mv /var/lib/dpkg/available /var/lib/dpkg/available.bak

If there is a file /var/lib/dpkg/available-old try if this one works:

sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available

If installing software works now you are done.

If it still doesn't work run

sudo rm /var/lib/dpkg/available
sudo sudo touch /var/lib/dpkg/available
sudo sh -c 'for i in /var/lib/apt/lists/*_Packages; do dpkg --merge-avail "$i"; done'

to create a new file.


Need JDBC Driver Class for LibreOffice Calc (Database)

Use JTDS.

Interface                           jTDS Implementation
java.sql.Driver                     net.sourceforge.jtds.jdbc.Driver
javax.sql.DataSource                net.sourceforge.jtds.jdbcx.JtdsDataSource
javax.sql.ConnectionPoolDataSource  net.sourceforge.jtds.jdbcx.JtdsDataSource
javax.sql.XADataSource              net.sourceforge.jtds.jdbcx.JtdsDataSource
javax.naming.spi.ObjectFactory net.sourceforge.jtds.jdbcx.JtdsObjectFactory

The URL format for jTDS:

jdbc:jtds:<server_type>://<server>[:<port>][/<database>][;<property>=<value>[;...]]

server_type is "sqlserver" for MSSQL.
See the link for a description of all the options.
Driver download


Simple way to connect Ubuntu Mate to Mac?

What is missing from your description is adding your Mac user to the smb password database on the Mac.
After you go to Sharing > enable File Sharing click on the Options button > then enable your Mac user name.
Now go back to caja and enter the Mac users password.
Don't obsess about the workgroup / domain.


I fixed it. I had to update my Linux (sudo-apt get update) then get the libraries. It won't work if you don't update it.

sudo apt-get install gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

After that, I had to add '--no-sandbox', on launch code (from myapp.js).


smbclient doesn't show folder permission of server?

Windows permissions are usually governed by an ACL, which is not displayed by smbclient.  Instead, try smbcacls //SERVER/SHARE FILENAME -U user%password.  You should get something like:

REVISION:1
CONTROL:SR|PD|DI|DP
OWNER:NT AUTHORITY\SYSTEM
GROUP:NT AUTHORITY\SYSTEM
ACL:NT AUTHORITY\SYSTEM:ALLOWED/OI|CI/FULL
ACL:BUILTIN\Administrators:ALLOWED/OI|CI/FULL
ACL:LAPTOP-CD837F\localuser:ALLOWED/OI|CI/FULL
ACL:Everyone:ALLOWED/OI|CI/READ


The gsettings command line tool doesn't change the background

gsettings apparently exits successfully if it could not write the setting:

$ chmod a-w .config/dconf/ -R
$ gsettings set org.gnome.desktop.background picture-uri file:///usr/share/backgrounds/Forever_by_Shady_S.jpg
$ echo $?
0

Either that is stunningly bad design, or a bug. Ensure that the ~/.config/dconf folder and everything in it is writable and owned by you:

sudo chown $USER:$USER ~/.config/dconf -R
chmod u+w ~/.config/dconf -R


I can see WiFi networks and try to connect to them, but it won't work (no error messages)

I've been having similar issues lately in Ubuntu 16.04 running Unity.

To get it to work, I stop, and then start the network-manager service, and it starts working properly again.

First type this in a terminal:

sudo service network-manager stop

And then type this:

sudo service network-manager start

Or you could just do it in one step with the restart option, but I prefer to give it a few seconds just in case it needs a little time to completely shut down.

sudo service network-manager restart


How to automatically run commands on SSH connection?

The solution is basically to run a script on login.

Since Bash looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable.

I did a simple ls -la ~, saw that from that hierarchy .profile was the first only one available, so I just appended my commands here.

Problem solved!


Unity Desktop: Couldn't find a perfect decorator match

Try running this command:

unity --reset

Also, make sure you have the compiz-gnome package installed. This package contains unity-window-decorator. Run this command to ensure that compiz-gnome is installed:

sudo apt-get install compiz-gnome


eeschema.html open by wrong App - KompoZer

Not sure if this is the right answer, but is seems to work. I am hoping by running the command in only the directory /usr/share/doc/kicad/help/en this will not effect the root drive or path. Anyway the answer was found as the question
"How do I set the default file association in Ubuntu Nautilus to something that is not listed in the Open With tab?" in Ask Ubuntu by souravc.

The command I ended up using was /usr/share/doc/kicad/help/en$ mimeopen -d *.html and my choice was the generic ubuntu Browser selection form the selections (not all enumerated)

Please choose a default application for files of type text/html

1) Browser  (webbrowser-app)
2) winebrowser  (wine-extension-htm)
3) Luakit  (luakit)
4) KompoZer  (kompozer)
5) Opera  (opera)
6) Firefox ESR  (firefox-esr)
7) Firefox Web Browser  (firefox)
8) Google Chrome  (google-chrome)
9) Geany  (geany)

I do not know however what the following generated messages mean or if it is a concern? But the Documents seem to no longer open in KopoZer web page editor!
Perhaps someone could enlighten me about the latter as I have much to learn:-)

use application #1
Opening "cvpcb.html", "eeschema.html", "gerbview.html", "getting_started_in_kicad.html", "gui_translation_howto.html", "idf_exporter.html", "kicad.html", "pcbnew.html", "pl_editor.html", "plugins.html" with Browser  (text/html)
[0922/084031.493187:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
OxideQQuickWebView: loadingChanged is deprecated. Please connect loadEvent if you want load event notifications, or loadingStateChanged if you want to detect changes to the loading property
OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please use userAgentOverrides instead
Loaded 1 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js
OxideQQuickWebView: canGoForward is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoBack is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
[0922/084031.977250:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
OxideQQuickWebView: loadingChanged is deprecated. Please connect loadEvent if you want load event notifications, or loadingStateChanged if you want to detect changes to the loading property
OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please use userAgentOverrides instead
Loaded 1 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js
[0922/084032.145653:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
OxideQQuickWebView: loadingChanged is deprecated. Please connect loadEvent if you want load event notifications, or loadingStateChanged if you want to detect changes to the loading property
OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please use userAgentOverrides instead
Loaded 1 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js
OxideQQuickWebView: canGoForward is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoBack is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoForward is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoBack is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
[0922/084032.478951:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
[0922/084032.481142:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
OxideQQuickWebView: loadingChanged is deprecated. Please connect loadEvent if you want load event notifications, or loadingStateChanged if you want to detect changes to the loading property
OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please use userAgentOverrides instead
OxideQQuickWebView: loadingChanged is deprecated. Please connect loadEvent if you want load event notifications, or loadingStateChanged if you want to detect changes to the loading property
OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please use userAgentOverrides instead
Loaded 1 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js
Loaded 1 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js
[0922/084032.578491:ERROR:layer_tree_host_impl.cc(2190)] Forcing zero-copy tile initialization as worker context is missing
OxideQQuickWebView: canGoForward is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoBack is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoForward is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoBack is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
[0922/084032.658138:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
OxideQQuickWebView: loadingChanged is deprecated. Please connect loadEvent if you want load event notifications, or loadingStateChanged if you want to detect changes to the loading property
OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please use userAgentOverrides instead
Loaded 1 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js
[0922/084032.732053:ERROR:layer_tree_host_impl.cc(2190)] Forcing zero-copy tile initialization as worker context is missing
OxideQQuickWebView: canGoForward is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoBack is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
[0922/084032.862368:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
OxideQQuickWebView: loadingChanged is deprecated. Please connect loadEvent if you want load event notifications, or loadingStateChanged if you want to detect changes to the loading property
OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please use userAgentOverrides instead
Loaded 1 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js
OxideQQuickWebView: canGoForward is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoBack is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
[0922/084033.193566:ERROR:layer_tree_host_impl.cc(2190)] Forcing zero-copy tile initialization as worker context is missing
[0922/084033.193805:ERROR:layer_tree_host_impl.cc(2190)] Forcing zero-copy tile initialization as worker context is missing
[0922/084033.380643:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
OxideQQuickWebView: loadingChanged is deprecated. Please connect loadEvent if you want load event notifications, or loadingStateChanged if you want to detect changes to the loading property
OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please use userAgentOverrides instead
Loaded 1 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js
[0922/084033.402729:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
OxideQQuickWebView: loadingChanged is deprecated. Please connect loadEvent if you want load event notifications, or loadingStateChanged if you want to detect changes to the loading property
OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please use userAgentOverrides instead
Loaded 1 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js
[0922/084033.411169:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
OxideQQuickWebView: loadingChanged is deprecated. Please connect loadEvent if you want load event notifications, or loadingStateChanged if you want to detect changes to the loading property
OxideQQuickWebContext: userAgentOverrideDelegate is deprecated. Please use userAgentOverrides instead
Loaded 1 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js
[0922/084033.523098:ERROR:layer_tree_host_impl.cc(2190)] Forcing zero-copy tile initialization as worker context is missing
[0922/084033.564325:ERROR:layer_tree_host_impl.cc(2190)] Forcing zero-copy tile initialization as worker context is missing
[0922/084033.600776:ERROR:layer_tree_host_impl.cc(2190)] Forcing zero-copy tile initialization as worker context is missing
OxideQQuickWebView: canGoForward is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoBack is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoForward is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoBack is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoForward is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
OxideQQuickWebView: canGoBack is deprecated. Please use the API provided by OxideQQuickNavigationHistory instead
[0922/084034.268586:ERROR:layer_tree_host_impl.cc(2190)] Forcing zero-copy tile initialization as worker context is missing
[0922/084034.401553:ERROR:layer_tree_host_impl.cc(2190)] Forcing zero-copy tile initialization as worker context is missing
[0922/084035.393201:ERROR:layer_tree_host_impl.cc(2190)] Forcing zero-copy tile initialization as worker context is missing


What's a simple/standard way to set up a secondary ubuntu server on the same machine?

I don't think there is an easy way.

And really, you don't know that you need this at install time.. its something that comes up much later when things are really broken.

Leaving a little bit (1G maybe) of the "whole disk" unpartitioned on the guided partitioning install would be a very simple way to make this a lot easier without giving up too much space. brainstorm.ubuntu.com would be a pretty good place to suggest this.


How can I resize my ubuntu partition if ubuntu is the only system I can get into?

You can try Ubuntu live and use Gparted there.


Installed windows 10, grub problem, linux drive became unallocated

Windows deleted your LInux partition but it still is there and just needs to be re-added to partition table. You can use testdisk or parted rescue.

Some then work, others need grub or fsck but most are able to recover missing partition. Of course you do have good backups just in case of issues?

Windows 10 upgrade led to grub rescue

Use parted rescue to restore missing partition details in post #22

http://ubuntuforums.org/showthread.php?t=1775331
http://www.gnu.org/software/parted/manual/html_node/rescue.html
http://gparted.sourceforge.net/faq.php/#faq-22

Parted rescue seems easier than testdisk

'Upgraded' to Windows 10 on dual boot, and can't boot to Ubuntu partition


How can I use multitouch gestures under LXQt with a touchscreen?

You can use touchegg.

Installation and configuration

See my other answer.

My experience with touchegg

Sadly, at least with my touchscreen (ThinkPad X201 Tablet), I have found that the more complex gestures like "two-finger pinch" are not recognized reliably enough by touchegg. With a bit of caution, it can be well used for two-finger-tap right-clicking (details). The two-finger-drag gestures are also recognized well, but for me, none beyond these.

Alternatives to touchegg

There is fusuma, a Ruby based application made for gesture recognition on touchpads. It may also work on touchscreens; I did not try yet. For installation instructions, see this answer.
There is libinput-gestures, and you can find recommendations for it. In my understanding, this is however specific to the libinput driver, which is used for most touchpads. Touchscreens will usually use the wacom driver instead. But, I did not try this – there might be a way to get it to work.


Preseed auto partition disk with no prompting only if disk is empty (no existing partition tables)

This does not appear possible help.ubuntu.com - LTS Installation Guide:

B.1.2. Limitations
Although most questions used by debian-installer can be preseeded
using this method, there are some notable exceptions. You must
(re)partition an entire disk or use available free space on a disk; it
is not possible to use existing partitions.

I'll dig around a bit more to see if someone has come up with a solution to the drawback.


Yes, you can remove it as seen here.

There are other boot manager alternatives and you could simply use the pre-installed boot menu via power on holding the alt/option. Although the efi boot menu may not detect Ubuntu at all, so it is more reliable to use a boot manager.


Ubuntu guest freezes on logo after VirtualBox compacting VDI

The VDI disk was full (visible after mounting this VDI in another guest).
Increasing the disk size fixed booting.


I read about a similar problem recently, could it be that you have a Saitek Cyborg RAT mouse? If so, try this: How to Fix Saitek Cyborg RAT Series Mice in Ubuntu • TechSpheria


DLink DWA 131 wireless adapter not working on ubuntu 15.10

I packed this driver to a PPA with DKMS. It can be installed by

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192eu-dkms

I do not support this driver for 4.8+ kernels. For those who are using Ubuntu with 4.8+ kernels I suggest installing it from github using DKMS by

sudo apt-get install git dkms
git clone https://github.com/Mange/rtl8192eu-linux-driver.git
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install rtl8192eu/1.0


ok the answer is this: I had the WRONG directory for the applications. The path I had before was incorrect/. to determine which path was the correct one i executed:

**

  $ which xscreensaver

**

which pointed out this was the path:

  /usr/bin/xscreensaver

I put that in the command line in the startup menu application and it worked!


First download some packages

sudo apt-get install bluez-utils bluez-gnome bluez-alsa

Find the MAC of the headset

sudo hcitool scan

The output will look something like this:

$ sudo hcitool scan
Scanning ...
        XX:XX:XX:XX:XX:XX       Stereo Headset

Setup ~/.asoundrc file

pcm.bluetooth {
        type bluetooth
        device "XX:XX:XX:XX:XX:XX"
        profile "auto"
}

Reboot

sudo reboot

Connect Bluetooth Headset
Change alsa-audio-device in ~/.config/vlc/vlcrc:

gedit ~/.config/vlc/vlcrc

Find:

# Audio output device (string)
# alsa-audio-device=default

And change it to

# Audio output device (string)
alsa-audio-device=bluetooth

Hope this help.


ubuntu hang out with this message :blocked for more than 120 seconds

You are hitting a hung task time out, while your system is waiting for some resources (maybe I/O to complete) to complete which are not presently available. I would recommend first collecting some data checking with any sar data or using tools like iostats and vmstat to identify the loads and the times the freeze/hang occurs. You could possibly write a small cron job for this.

ex:
sar -A 1 30 > /tmp/sar_-A.out.txt &
vmstat 1 30 > /tmp/vmstat.out.txt &
iostat -tkx 1 30 > /tmp/iostat_-x.out.txt &
ps aufx > /tmp/ps_aux.out.txt &

Also get a kernel thread dump using: "echo t | sudo tee /proc/sysrq-trigger" as this would help in determining to some extent what the apache process is waiting for.

Alternatively, you could get configure crashdump when your system is in a hung state and obtain a vmcore file, if you are more adventurous to do a dump analysis.


If you have a standard installation you just have to move your mouse to the left edge of the screen and the Launcher will show. Alternatively you can simply press the Windows key on your keyboard (referred to as "Super" on Linux) and the Dash will open, where you can type in the name of any Program you search. If this does not work try right clicking on your desktop and click "Change Desktop background" (or something similar, my Ubuntu is not in English).There you can configure the behaviour of the Unity launcher. If all that does not work, Press Ctrl+Alt+T and type software-center into the opened terminal. Then search for unity and reinstall the package.


Installing Ubuntu Server 20.04 on Intel Nuc 10

I gave it a chance and worked without any problems. Smooth and easy installation of Ubuntu Server 20.04 on NUC10i5FNK. No LAN or 4k display issues at all.


Of course.

create unallocated space on the SSD, 20GB is more than enough.
create unallocated space on the HDD, as much as you feel is needed.
Create a partition on the SSD as ext4 on the unallocated space and name the mountpoint /.
Create a partition on the HDD as ext4 with a mount point you create yourself.
after install open a terminal and set the mountpoint to your user.
after install open a termimal and remove all the visible directories in /home/$USER/ (so not the hidden files).
edit ~./config/users-dirs.dirs and change it to your mountpoint.
put a copy of users-dirs.dirs on your HDD.

This way you keep all system related files and settings on the SSD and all personal data on the HDD.

When you re-install: format / and mount the mountpoint without formatting. Remove dirs in /home/$USER/ and copy users-dirs.dirs  on the HDD to ~./config/


Django 1.4 dependency when packaging a Precise application

A general solution is putting a notice on your PPA description for users to manually install newer version, e.g. "install Django 1.4.1 via this PPA first: [...]". However, I can't seem to find any semi-official PPA providing this latest release of Django.

For Quantal (12.10), 1.4.1 is already included in the main repositories (python-django in Quantal). So, try to re-build the regular Ubuntu package for Precise and put it in your PPA. That seems to be the easiest and best way in your case, I think. More people can profit from your work of backporting this Django version for Precise! It also allows you to set a clear dependency on your package.

I would avoid any scripts downloading and installing packages from source, unless licensing issues are forcing you this way - e.g. Adobe Flash, Oracle Java, MS fonts, etc.


How to see what pkaction a software uses

Ask Ubuntu has this answer (How to configure pkexec to not ask for password?) that is closer to what you need than the link you found earlier.

As a quick example to finding the application, I'll illustrate using my own script. I wanted to replace gksu which is being deprecated with pkexec so I wrote a wrapper script called gsu.

I invoke gsu from the command line with:

Notice the Details drop down arrow. Click it and this is revealed:

In my example the pkla is controlled by org.gnome.gedit. I'll use that in the next example, which you would replace with your own:

If you want to run without password prompt you would set the following:

  <allow_any>yes</allow_any>
  <allow_inactive>yes</allow_inactive>
  <allow_active>yes</allow_active>

On a personal note I don't like repeatedly entering the password myself but will not change gedit to never ask for password when changing root files using pkexec. However I would like it to not repeatedly ask for password when running it many times in given session. You can do this with sudo and you can extend the period from 10 minutes to 120 minutes as I have done on my system. I would like similar functionality for policy kits.


How can I make sure an environment variable is set when I sudo?

Try with

sudo su -

The - loads up all the environment files. From man su:

-, -l, --login
   Provide an environment similar to what the user would expect had
   the user logged in directly.

   When - is used, it must be specified as the last su option. The
   other forms (-l and --login) do not have this restriction.

Update:
In the general case you run sudo -i mycomment, as the man page of sudo says,

-i [command]
           The -i (simulate initial login) option runs the shell
           specified in the passwd(5) entry of the target user as a
           login shell.  This means that login-specific resource files
           such as .profile or .login will be read by the shell.  If a
           command is specified, it is passed to the shell for
           execution.  Otherwise, an interactive shell is executed.
           sudo attempts to change to that user's home directory
           before running the shell.  It also initializes the
           environment, leaving DISPLAY and TERM unchanged, setting
           HOME, SHELL, USER, LOGNAME, and PATH, as well as the
           contents of /etc/environment on Linux and AIX systems.  All
           other environment variables are removed.


Unable to find new release ( after interuppting a release upgrade)

sudo apt-get update;sudo apt-get dist-upgradeyou may need to use the debian menthod:
sudo sed -i 's/quantal/raring/' /etc/apt/sources.list then run the above command
then to upgrade then you can upgrade to saucy by running sudo sed -i 's/raring/saucy/' /etc/apt/sources.list then run the 1st command

if you meant 13.04 and not 13.10 don't do the second sed command


Can anyone confirm if the Samsung RC520 touchpad is correctly recognised in 11.10?

This is not a direct answer but I had similar issue with 11.10. The fix developed by Seth Forshee available at https://bugs.launchpad.net/linux/+bug/550625/comments/492 solved my problem and also worked for A LOT of people.

It is worth checking it out and asking there about it. It definetely might be the solution IF the output of xinput list on the shell shows you have an Alps TouchPad.


Can't install TP-link Archer T4U V3 driver on 19.04

As far as I know this USB Wifi Card is based on Realtek RLT8822BU Chipset.

On support page I only see "outdated" drivers T4U V3 180511 and T4U V3 181018 Beta, may they work, may not.

I would try to use driver from https://github.com/brandon-bailey/rtl8822bu and compile it.

sudo apt-get update
sudo apt-get install git
git clone https://github.com/brandon-bailey/rtl8822bu.git
cd rtl8822bu
make
sudo make install
sudo modprobe 8822bu


Is there a mirror for the daily Natty ISO (/daily-live/current) in Asia?

It seems that most mirrors only mirror releases or the package archives, but not the daily ISOs.

I've put together a Google search that brings up some mirrors that you could try. I haven't seen any that are in Asia though. Below are the first few results I get.

http://ftp.heanet.ie/mirrors/download.sourceforge.net/ubuntu-cdimage/daily-live/current/
http://ftp.df.lkams.kernel.org/pub/ubuntu-cdimage/daily-live/current/
http://mirrors.med.harvard.edu/ubuntu-cdimage/daily-live/current/
http://147.32.127.222/MIRRORS/ubuntu-cdimage/daily-live/current/
http://ftp.sh.cvut.cz/MIRRORS/ubuntu-cdimage/daily-live/current/
http://mirror.leaseweb.com/ubuntu-cdimage/daily-live/current/


Can I delete /var/log files due to low root space?

It is generally safe to delete log files. The only disadvantage associated with doing so is that you may not be able to examine the log, if you're troubleshooting some other problem later. Since new logs are automatically generated, even this disadvantage is short-lived.

Most logs are deleted automatically (after being rotated by compression and renaming, and kept a while in that archived format). If you have a log that's expanded faster than Ubuntu is deleting it, it's unlikely that you'll experience any problems from deleting it manually.

However, if you have a log file that's 22 gigs in size, something very strange is happening, and it would be worthwhile to investigate that. I recommend editing your question again to include a link to the Ubuntu Forums thread you're talking about, and also to include the full name of the 22 GB log file.