You are attempting to clone to a directory with files already in it. Git prefers to clone to an empty directory to avoid any conflicts or accidentally overwriting files.

Check the path '/var/www/html/poc/storage/projects/dvw' it already has files in it. If you cant see them try 'ls -a' to view hidden files (its possible you have an existing .git folder hidden in that directory)

EDIT:

You are looking in the wrong folder...
Upon re-reading your post it looks like you ran the following command ~/html/poc/storage/app/projects$ ls -al... when you should have ran... $ ls -al /var/www/html/poc/storage/projects/dvw


Accidently removed very important file of my project using command "cp"

In short, unfortunately, there is no way to recover the newer versions of your files, unless you still have a copy elsewhere. Your copy command has overwritten your new versions with the old versions.

The copy command copies files from the source (old.cc in your example) to the destination (new.cc in your example). If files with the same name exist in the destination (in your case the newer versions), they will be overwritten. By default, the command cp will not ask if you want the file to be overwritten unless you supply the -i (--interactive) option, as in `cp -i  .

The mistake was that you swapped source and destination. You really wanted to execute cp new.cc old.cc ("copy new to old") rather than cp old.cc new.cc.

Data recovery - As outlined here, there are ways to recover deleted information. As a matter of fact, the copy operation does not physically overwrite your information on the disk because of the way cp works on an ext formatted file system. That means that the bits and bytes of your new versions may still be somewhere on your hard disk. However, if you attempt do it yourself, it will be a huge challenge to recover these bytes to files that will have a random name, then manually inspect all of your possibly thousand reconstructed files to determine for each file if the file is still usable and what it represents. If you give it to a specialized data recovery service, it will cost a lot.


Hello,

I had the same problem on my 14.04 LTS but the problem occured after update.

Try disabling secure boot in BIOS. After hours of fixing this worked for me.

Hope I helped

-orion-


How to stop hdd from causing a kernel panic and crashing?

Sorted! When the hard drive was connected to linux it would take down the system by causing a kernel panic. However it took a few seconds before the system stopped responding so I used a partitioning program on fedora to erase the mbr in those few seconds. Once the mbr was deleted I could connect it externally without it causing a system failure and then use other tool to recover data and reformat the hdd.


Synaptics touchpad tap-to-click is not working in Ubuntu 16.04 LTS (Gnome)

I've found a permanent solution with this command

gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true

Gnome starting at 3.20 only allows configuring devices using the libinput driver. So if you are not using the libinput driver, it won't show up in the GUI.

Comment from discussion gnome 3.22 still does not detect tap to click?.

Additionally, GNOME may override certain behaviors, like turning off Tapping and forcing Natural Scrolling. In this case the settings must be adapted using GNOMEs gsettings command line tool or a graphical frontend of your choice. For example if you wish to enable Tapping and disable Natural Scrolling for your user, adjust the touchpad key-values like the following:

gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true

https://wiki.archlinux.org/index.php/Libinput#Touchpad_not_working_in_GNOME


If you are using Ubuntu 15.04 Vivid it is now packaged and installable using the following command:

sudo apt-get install ntpstat

If you are using 14.10 or older you can try downloading the package from:

http://packages.ubuntu.com/vivid/ntpstat

and install the deb file using the following command (using the appropiate file path and 64/32bit version in the file name):

sudo dpkg -i ntpstat_0.0.0.1-1_amd64.deb

I tested the above method for 14.10 and ntpstat did not pull in any extra dependancies for me, but YMMV.


Adding RewriteRule to  to allow a link to anchor a Section in the same page

RewriteRule "^/pageA/sectionB/" "/pageA#sectionB/" [NE,R]

This directive won't match when used in a directory context (ie. inside a <Directory> container or .htaccess), because of the slash prefix on the URL-path you are trying to match. In a directory context, the directory-prefix (which always ends with a slash) is first removed from the URL-path that the RewriteRule directive matches against, so the URL-path never starts with a slash.
So, you basically, just need to remove the slash prefix:
RewriteRule ^pageA/sectionB/ /pageA#sectionB/ [NE,R,L]

I've also removed the quotes around the arguments (these are only strictly necessary if the argument contains unescaped spaces, otherwise it's just a bit harder to read IMO). It's good practise to always include the L flag on external redirects - although this is currently the last rule, so it doesn't really matter (except if you add more rules later).

OR, you move this rule to directly inside the <VirtualHost> container (ie. a virtualhost context). In this case the RewriteRule directive matches against the root-relative URL-path which includes the slash prefix.
This would actually be preferable in this instance since any .htaccess mod_rewrite directives will override the <Directory> container and your RewriteRule directive in the <Directory> container won't be processed (unless mod_rewrite inheritance is enabled - it's disabled by default).
Since you have set AllowOverride ALL in the <Directory> container it is assumed you do have (or at least potential to have) an .htaccess file that could possibly contain mod_rewrite directives. If you disable .htaccess overrides (ie. AllowOverride None) then it doesn't matter.

Aside:

RewriteEngine on
RewriteCond %(SERVER_NAME) =mydomain.com [OR]
RewriteCond %(SERVER_NAME) =www.mydomain.com
RewriteRule https://%{SERVER_NAME}%{REQUEST_URI} [END=301,L]

This (HTTP to HTTPS redirect) is entirely incorrect/malformed. You are missing the RewriteRule pattern (first) argument and the flags argument is malformed. They should read [R=301,L].
However, you don't need to use mod_rewrite here, when used inside a <VirtualHost *:80> container a simple mod_alias Redirect directive is sufficient and preferred.
Unless you are also implementing HSTS, you should also redirect to the canonical hostname:
For example:
Redirect 301 / https://example.com/


here is the solution i had the same problem and this post helped me

http://www.ubuntugeek.com/how-to-fix-the-ubuntu-gpg-error-badsig.html

but before that i suggest you to change your source.list file using this site (optional but worked for me)

http://repogen.simplylinux.ch/

select your os version and then check all entries under "Ubuntu branches" and "Ubuntu updates" and select Ubuntu partner for those you want to receive updates.
and add extra repositories if you want to.

How to change source.list?

if you have generated new source.list from repogen.simplylinux.ch then open terminal and type

  gksu nautilus

go to /etc/apt/sources.list
and backup source.list(rename it)
copy your downloaded source.list file and run update once again

Hope that helped


Stuck at terminal login (tty1) after using 'killall gdm'

The following command should help:

sudo service gdm restart

If you don't have root (sudo) permissions you might have to login as root instead and run the command without the sudo.


help with dual-booting or possibly tri-booting

The easiest way to install these OS's is to install Windows first, then Ubuntu or Arch. When you install Windows, it will overwrite the bootloader. By installing Windows first, GRUB (the Linux bootloader) will be installed on top of the Windows bootloader. This is usually better because GRUB can choose between Linux and Windows.

As for whether to install Ubuntu or Arch first, it doesn't really matter. Arch Linux is more of a manual installation, so you can just skip installing GRUB when you install Arch and run sudo update-grub under Ubuntu to add Arch to the GRUB menu.

Also, your motherboard seems to be UEFI, and I would recommend using the GPT partition table instead of MBR. Windows 10 might already use GPT on a clean installation. You can read more about GPT, but it's probably better because it doesn't have a 4 partition limit (which may be a problem with 3 OS's) and the 2TB limit.


Random thought:

If 10.04.4 LTS is no longer supported, then an install would not need (or have) any further updates.

Suggestion:

Would it not be altogether better to try to arrange for CD/DVD by Post (from some helpful enthusiasts) for Ubuntu 12.04 LTS server instead?


Try Krusader Tools > Empty trash instead of empty trash button.

Removing trash metadata file works too - until you reach trash limit again - rm ~/.local/share/Trash/metadata


installed package with snap - command not available

There is indeed a bug in current snap integration on desktop.
The binary wrapper is generated, but not in $PATH: /snap/bin/tmux.

Do you mind opening a bug against the snappy package on launchpad? https://launchpad.net/snappy Thanks a lot!


How to open new window instead of already open window in gnome

You can start a new instance of a program just clicking on its launcher icon with your mouse middle button (usually it is a wheel that can also be clicked).

If you prefer the use of keyboard only, instead of pressing Enter, press Ctrl+Enter to launch a new instance of an application.

Few programs do not support more than one instance running at the same time. For example Firefox will tell you there is an instance already running if you try to launch a second one. But it works for most of programs.


With my version of rhythmbox (2.96) on 12.04, the .pls radio stream plays fine. Choose a stream from the site you are interested in; I chose this 128k mp3 stream from the site you mentioned and added it with Music > New Internet Radio station (as in the screenshot below).

Then on the sidebar (see screenshot below) click library > radio and the new station will probably be listed in the unknown genre slot. So then just double click the new station there.

It is also important to note that when you import a radio stream rhythmbox will sometimes assign a gender to it ('Space Electronica') and sometimes not. So, for example, this stream was to be found in 'Experimental Nujazz' when imported. If you can't find the station in the program's list, look through the genres or 'unknown' and double click a station if it doesn't play automatically.

If the stream doesn't play correctly, I should choose an alternative, as there are usually several available; for example, on this page the asx stream played the best.

In general, experiment with the different stream options available on the radio site you are interested in as rhythmbox has good support for .pls and .asx feeds, etc, when the necessary gstreamer plugins are installed.

If you can't get the .pls file working, you could just open it in a text editor and extract the url and then add that as a radio station in Rhythmbox, using the process I mentioned earlier in my answer.

You could also try installing the excellent rhythmbox-plugin-radio-browser from the ppa of one of our moderators, fossfreedom; do not install the version in the repositories as that version does not work with the current Rhythmbox.

sudo add-apt-repository ppa:fossfreedom/rhythmbox-plugins
sudo apt-get update
sudo apt-get install rhythmbox-plugin-radio-browser

You have to enable it by going to edit > plugins first.

More on the plugins available is explained here:

How do I install third-party rhythmbox plugins?


Why update softwares before upgrading to next version?

No need to update your software, The Software Updater will do that for you automatically.

Except if you are using some 3rd party PPA. Those may be disabled after upgrade and software from that repo may not be available if the author has not created package for new ubuntu version.


You could, for example, pipe the result into sed (perhaps we could give you a more elegant way knowing your actual input) - add this to the end of your grep command:

| sed -r 's#.*/(EsbDw[^\.]+).*/([^"]+").*=([^/]+)/>#\1 "\2 \3#'
EsbDwMarkDownAdbSub "CleClient" "3.1"
EsbDwMarkDownAdbSub "Encrypter" "1.0"

-r use ERE so we don't have to escape () and +
s#old#new# replace old with new
.*/ any characters before a /
(EsbDw[^\.]+) find a pattern starting with EsbDw and ending with a . and save everything before the .
/([^"]+") any characters between / and " - save everything after / including "
=([^/]+)/> save whatever comes between = and />
\1 "\2 \3 the three saved patterns with spaces between them (and adding one ")


How to install the Android SDK on Ubuntu14.10 64bit OS

You seem to be having ownership issues with the file and/or folder.

Try the following commands -

cd /home/murala/workspace/android

sudo chown -R murala:murala android-sdk-linux/


How to move "Show Applications" button from bottom to top in launcher?

This command will move it to the top:

gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true

Use this to undo it:

gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top false

These commands can also be used to move the "Show Applications" button in dock from right to left or vice versa.


CMake 3.0.2 is shipped with Ubuntu 15.04. It happens that versions from new releases are made available to older releases via 'backports'.
The backports for Trusty can be found at the Ubuntu package site.
Unfortunately, CMake is not in the official backport repository. However, I found several PPAs at Launchpad offering CMake>=3 for Trusty. For example the PPA

by Nathan Osman offers up-to-date builds (3.2.2 at the time of writing)
https://launchpad.net/~george-edison55/+archive/ubuntu/cmake-3.x

by Jan Henke offers a backport of version 3.0.2
https://launchpad.net/~jhe/+archive/ubuntu/cmake-backport

Choose a repo depending on your need to always get very recent versions or not. Add it with the usual
sudo add-apt-repository ppa:<...>/<...>

do sudo apt-get update and you should be offered the newer version.
Eclipse: Apparently since the new "Mars" release of Eclipse, the developers offer a proper installer for Linux/OSX/Windows. I would remove the old Eclipse version from the Ubuntu repos and try this one.
I have not tried this out myself! I tried it out and it works very nicely. By default it installs to your home-folder, so it's very easy to get rid of if you don't like it.


partition table created with HDD connected via SATA-USB interface not recognized if the HDD is placed in laptop hard drive bay


How To Turn off mail notification blue envelope?

To remove Evolution from the blue envelope notifications, open Evolution and open the Edit -> Plugin menu and disable the Evolution Indicator:

Alternatively, to completely get rid off the GNOME panel indicator applet for Evolution, just uninstall the following package, open a terminal (Ctrl+Alt+t) and type:

sudo apt-get remove evolution-indicator

Note: keeping the mail-notification-evolution package will still popup "x new messages" using libnotify.


Laptop battery critically low cannot remove notification

sudo apt-get remove indicator-power

And reboot.


ssh: connect to host 10.0.2.15 port 22: Connection refused

Use ssh with port option:

ssh root@10.0.2.15 -p 2222

Edit

This issue happens when you change your ssh server port to a non standard port like 2222 in ssh config file. (/etc/ssh/sshd_config --> Port 2222)


Launch chrome with OS data from another hard disk

Instructions for Chromium and Chrome
The user data is in ~/.config/chrome [for example] - first make a backup of your current browser status
sudo mv ~/.config/chrome ~/.config/chrome-backup

Then copy across from external disk
sudo cp -r /media/user/.../home/username/.config/chrome ~/.config

Not sure about other browsers yet


Can only access google after removing pihole

I had the same problem today, which was a DNS problem, solved by editing

  nano /etc/resolvconf/resolv.conf.d/base

like so nameserver 192.168.1.1 for your Routers DNS-Server or nameserver 8.8.8.8 for Google's DNS-Server for example.

This creates permanent changes in /etc/resolv.conf


Bluetooth is not working in Ubuntu 12.04

Please post the output of rfkill list

If bluetooth is soft blocked, try sudo rfkill unblock bluetooth
If it's hard blocked, you have to search for a hardware switch or bios setting


Permanently set file and folder permission for a user

In the .profile of that user or in the global /etc/profile, put

umask 027

Note to self: to get the umask, subtract the desired directory octal permissions from 777, so in that case 777-750 becomes 027. This should give drwxr-x---.

With that umask, the file creation mask will be 666-027 = 640 (note that this is not real subtraction, you subtract digit by digit); this will give -rw-r-----.

In short: you can read, write and change into directories; group can read and change into directories; anyone else is blocked. Is that correct?


dpkg --get-selections | grep hold not working in 16.04

Try this

apt-get autoremove

apt-get update

If you get broken help packages error while apt-get update, check in /etc/apt/sources.list if updates are enabled or not.


14.04 battery status is not working well

Try in the console this command: upower -i /org/freedesktop/UPower/devices/battery_BAT0
It will give you a lot of informations about baterry, including the percentage, or you can download an app from the Software Center, or search to the internet for one.


No audio input and non-existing S/PDIF sinks/sources in list

It turned out that the reason is the "recording" feature is not "enabled":

sudo apt-get install gnome-alsamixer
gnome-alsamixer

In a dialog window find your sources and check Rec. for each. Input will then appear.


'Unable to locate package.' when installing linux-headers

In order to install the necessary prequisites, build-essential amd linx-headers-uname -r it is necessary to have a working internet connection. Please be sure the ethernet is connected and working. Please type in the terminal:

sudo apt-get install build-essential linux-headers-`uname -r`

Those tickmarks are on the left side of my US keyboard on the same key with ~. Press Enter and let the download and install finish. Now type:

cd ~/Downloads/rtl8187L_linux_1041.0209.2012

Press Enter. Now type:

make

'make' will take a few moments, please be patient. If it ends in an error, stop as all further steps will also be in error. Post the error here so we may assist. If it finished without error (warnings are probably OK), type in:

sudo make install

Give your password when prompted.


Can't use 3 monitors: both display outputs on XPS laptop along with laptop display. CRTC 64 error

If These 2 external screens are in addition to the internal screen, the problem is probably that your graphics card only supports a total of 2 monitors and ubuntu is not telling you. If you would like to use 2 external monitors, first disable your internal laptop screen.

Edit: A few years later, another solution appears: There are now DisplayLink drivers for Ubuntu! If you get a usb to [vga/hdmi/whatever] converter, you can plug one of your external monitors in to it and run a total of 3 displays: one off of usb.


How do I set my resolution to 1680x1050 on my machine?

Open dash (top left on the tray) and search your programs for AMD Catalyst Control Centre.
First, run the "AMD Catalyst Control Centre (Administrative)" version and enter your password. Then, open the non-administrative version.
From there, go to the display manager tab (on the left) and you should be able to set the display to any resolution.

If you cannot find CCC, you may need to change your graphics driver to a proprietary version.
To do this, go to system settings (power button in top right -> system settings), then click software and updates. Click the "additional drivers" tab and select one of AMD's proprietary drivers from there.
Once you have installed a new driver, open terminal and run "sudo apt-get update"


Ubuntu Settings (gnome-control-center) crashing after i try to access Network Settings

You can't start gnome-control-center as root. Start it normally and the error will go away.


Ping returns, "operation not permitted." Cannot connect to broadcast, or internet

I had the problem/resolution as Prof.Chaos. NordVPN has an "internet kill switch" that prevents you from accessing internet without the vpn active. Once I activated nordvpn internet worked. Fyi, for options in terminal type:

man nordvpn

To disable this killswitch (which now that you know about it you may not want to)

nordvpn set killswitch disable


chkrootkit gives the result tty of process not found

Look at the man page for utmp you will see ...

  The utmp file allows one to discover information about who is
  currently using the system. There may be more users currently using
  the system, because not all programs use utmp logging.

  Warning: utmp must not be writable, because many system programs
  (foolishly) depend on its integrity. You risk faked system logfiles
  and modifications of system files if you leave utmp writable to any
  user.

So...

utmp should have a list (in binary format) of all running user processes
chkrootkit compares all the user processes running in the system with what is registered in /var/run/utmp, reporting the fact that one process being run by root is not registered.

That doesn't mean that it is a rootkit or data logger. But it might be.

So you need to track down whether or not this registration is since malware would likely be written to avoid being registered.


I can not install ipython3-notebook in 12.04.5 amd64

so issuing:

 sudo apt-get install ipython3-notebook -t precise-backports

just now  fixed it on my system (12.04 LTS).

( meaning "ipython3 notebook --pylab inline &" launches without issue)

from:  https://bugs.launchpad.net/ubuntu/+source/ipython/+bug/1361944

  "...ipython3-notebook is in the backports repository, apt is not smart enough to figure out it needs to pull more from it, specifically it needs ipython-notebook-common. ..."


Required to enter password every time I want to save a file in VSCode

check ownership and permissions for that file.

ls -l

it will give you list of file, permission and ownership. Here is a example,
file list screen shot. If your user don't have ownership you can change it using

sudo chown -R $USER:$USER FOLDER_NAME

or if you are in user group (like www-data) and your user group own files but you can't do changes, you have to change permission level to 775, by doing this.

sudo chmod 775 FILE_NAME


Display connected to Quadro on 435 Driver not showing any image

I think I "solved" the problem. Ubuntu seems to be picky about the graphics device being used as I have an option in the BIOS that sets either the integrated graphics or the PCI/PCIe attached graphics as the primary graphics device (ie. the one that is also used by the BIOS and GRUB). Changing that setting to the PCIe graphics does make the Quadro display an image just fine and it also seems like the graphics are generated on the card (instead of generated by the CPU and only output by the card) as the GPU Utilization in the NVIDIA X Server Settings app (which now also has content and is no longer entirely blank as before) is a meaningful value that correlates to actions on the screen (ie. idleing shows low number, moving around a window very very quickly results in an a bit higher number)...

By the way now the integrated graphics does not produce any images on attached monitors. But thats fine since I am in a single monitor setup anyway and since the NVIDIA card was only gathered because the driver installation for them is a walk in the park (unlike the basically unguided mess we have with the AMD drivers where there are like 5 different places to get them 100 different "tutorials" on how to install them, all being horribly outdated and not leading to any usable result in my case).


retain white spaces in fields when using awk

Using awk

from=1; to=3; delimiter="|"; awk -F"$delimiter" -v from="$from" -v to="$to" '!/^[[:blank:]]*$/ {printf "Index="; for(i=from; i<=to; i++) {printf $i; if(i<to) {printf "|"};} printf "\n"; printf "Key="; for(i=to+1; i<=NF; i++) {printf $i; if(i<NF) {printf "|"};} printf "\n"}' foo

More readable

from=1; to=3; delimiter="|";
awk -F"$delimiter" -v from="$from" -v to="$to" '!/^[[:blank:]]*$/ {
    printf "Index=";
    for(i=from; i<=to; i++) {
        printf $i;
        if(i<to) {
            printf "|"
        };
    }
    printf "\n";
    printf "Key=";
    for(i=to+1; i<=NF; i++) {
        printf $i;
        if(i<NF) {
            printf "|"
        };
    }
    printf "\n"
}' foo

Example

$ cat foo
a|b|c d e|1|2|3
a|b c|d|1|2|2 3

$ from=1; to=3; delimiter="|"; awk -F"$delimiter" -v from="$from" -v to="$to" '!/^[[:blank:]]*$/ {printf "Index="; for(i=from; i<=to; i++) {printf $i; if(i<to) {printf "|"};} printf "\n"; printf "Key="; for(i=to+1; i<=NF; i++) {printf $i; if(i<NF) {printf "|"};} printf "\n"}' foo
Index=a|b|c d e
Key=1|2|3
Index=a|b c|d
Key=1|2|2 3


"Low graphics mode" + "system error detected" have started to display on boot only sometimes - can't identify the cause

I too experience this problem, a lot of googling and the following seems to have fixed it - but as you say it is intermittent, so I cant be certain yet.

cd /etc/default/
sudo gedit grub

Comment the line

#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and add line below turn off the splash screen and inspect boot log

GRUB_CMDLINE_LINUX_DEFAULT=""

then run

sudo update-grub

and restart.


I can't boot into windows: error: unknown command 'drivemap'; invalid EFI file path

Use the Windows 8 disc, or the repair disc that came with your computer, boot from the disc and repair the Windows MBR.


You can have a look at the log file in /var/log/syslog here is a detailed description of it: Ubuntu freezes. Which logs can I check out?

but if it occured only once,I would not bother looking it up...


Ubuntu 16.04.5 LTS loses graphics card support?

Ok. There was one thing that I missed because it didn't seem to work last time.

apt-add-repository ppa:graphics-drivers/ppa and update and upgrade only just worked now.

All is well with the world again. Credit goes here: How do I install the NVIDIA CUDA toolkit on 18.04 with Coffee Lake - is it supported?


I believe the method you already use is the only one that's really working. The main problem is that if the ssh daemon config is failing how is the server supposed to know that it is failing? In theory you can write a script that replaces the faulty config with a correct backup version but this is only useful if the server can detect the configuration is failing, For example if the ssh daemon crashes then the process is gone which can be sign it is time to put the backup in place.However you can make adjustments that negatively affect ssh connectivity while the daemon still remains active. This is something you can't detect and therefore the backup will not be copied.


You can safely ignore this error.

This is caused because Ubuntu does not recommend adding any file in /etc folder, but that is required for Google Chrome browser integration.


All ports are properly detected. Linux kernel adds both 2.0 and 3.0 hubs to USB.

So you have three 2.0 and three 3.0 hubs.

It this case the problem is that the RTL8812AU device is detected as USB 2.0 device because of the driver limitation.

But real transfer speed of a wireless device is unlikely to be more than 480M. So it doesn't look like a real problem.


How can multiple private keys be used with ssh?

You can set this up in your ~/.ssh/config file. You would have something like this:

Host server1
IdentityFile ~/.ssh/key_file1

Host server2
IdentityFile ~/.ssh/key_file2

man ssh_config is a reference


Ubuntu 16.04 is broken as far as our Epson printers are concerned

I have installed Ubuntu 16.04 myself, and got very frustrated with installing the driver for my Epson ET-2550 printer. After a lot of frustration I found a way, and have written the following how-to. Follow this and I hope that it will work for you.

How to install Epson printer in Ubuntu 16.04.

Download scanner driver (imagescan-bundle-ubuntu-16.04-1.1.9.x64.deb.tar.gz) from epson      webpage, http://download.ebz.epson.net/dsc/search/01/search/searchModule. (The file contains printer drive too.)
Extract file in to new sub folder in Home. E.g: Home/Printer
Open terminal window and type;

$ ./Print/install.sh

This will start the install process which is written in the install.sh file.

Go to System Settings>>Printers. Click add printer, click on the printer name that matches your own. Now the software will do the rest, choose name for printer when prompted. Print         a test page if you like.

Side note: It is not necsesary to install lsb 3.2 in Ubuntu Xenial to make this install work.

By the way, I am new to this place so I have not worked out how all things work.


I experienced a similar problem on my Dell XPS13 9360 (The Kaby Lake CPU succeeded the Skylake CPU on the 9350).

A couple of preliminary steps:

In the UEFI configuration (Press F2 while booting), disable Secure Boot. Reboot.
In Windows 10, Disable Windows Fast Startup. Go into Power Options, select “Choose what the power buttons do”, click on “Change settings that are currently unavailable”, under “Shutdown Settings” uncheck “Turn on fast startup”. Shut down.

Now, RAID is on in by default in the UEFI configuration for the XPS13. Linux, in the case of the XPS13, will not recognize a drive with this setting. The dilemma you face is that Windows 10 is already installed with RAID on, so if you change the setting to allow Linux see the drive, you will not be able to dual boot with Windows 10.

If you want to dual boot, you have two options:

Under System Configuration, SATA Operation, change "RAID On" to "AHCI". Boot Linux from your USB stick, partition the drive for both Linux and Windows 10, then install both OSs. You will of course require a copy of Windows 10 as you will lose the installed copy.
In Windows 10, shrink the large partition containing the OS so there is room for Linux and a swap partition. Again, change the SATA setting to "ACHI". Boot Linux from the USB stick and install on the remaining space. You will have a dual boot system but will have to change the UEFI configuration for the SATA drive to switch between the two.

If you don't need dual boot, then just change the SATA setting to ACHI and your USB stick will see the drive, which you can then partition as you please.


Where can i find free sounds to use in my application?

SoundSnag.com has some free sounds and you can make sound requests in their forum


Well, yes and no.

Most applications are installed in /bin, /usr/bin, /sbin, and /usr/sbin but some may be installed elsewhere like /opt,  /usr/local/bin, /opt/bin, or in your /home folder. However, software that is installed may be a library, which are stored in /lib.

Thus, really, there is no single folder where all of the applications are installed.


Question about instructions for Point Cloud Library (pcl) install on Ubuntu 16.04

From man apt-mark

  PREVENT CHANGES FOR A PACKAGE

  hold

 hold is used to mark a package as held back, which will prevent the
 package from being automatically installed, upgraded or removed.

  unhold

 unhold is used to cancel a previously set hold on a package to
 allow all actions again.

So, the  pcl v1.8 app you are trying to install probably needs a specific version 3.2.5-4 of the libeigen3-dev. This is called dependency. However, Ubuntu 16.04 probably uses a different version of the same file which probably does not work for pcl.

The hold tells Ubuntu not to update the libeigen3-dev you have installed specifically for pcl v1.8. After you run the command:

sudo apt-mark hold libeigen3-dev

Ubuntu will remember not to update this specific file.

If you use the unhold option then the special version of libeigen3-dev that works with pcl v1.8 will be replaced by the version that does not work with pcl v.1.8.

Note, as the installation guide implies, this issue is resolved in newer version pcl v1.8.1 and Ubnutu 17.10, as there is no apt-mark hold command needed for these versions.

It is possible that the libeigen3-dev (version 3.3.4-4) in the current version of Ubuntu 16.04 also does not suffer from this problem. If so, you may use the apt-mark unhold to let Ubuntu update this file.

If pcl breaks, then repeat the 4 lines of instructions including the apt-mark hold:

cd ~/Downloads
wget http://launchpadlibrarian.net/209530212/libeigen3-dev_3.2.5-4_all.deb
sudo dpkg -i libeigen3-dev_3.2.5-4_all.deb
sudo apt-mark hold libeigen3-dev

This will download the pcl compatible version of libeigen3-dev again and install it.

Hope this helps


Why do I have "Unassigned class [ff00]: Realtek Semiconductor"?

Try something as simple as:
modprobe -r rtsx_pci
modprobe rtsx_pci

This is because rtsx_pci module manages the card reader. Sometimes it doesn't work properly on boot.


It is the same issue here:

https://youtrack.jetbrains.com/issue/JRE-302

you should set XDG_CURRENT_DESKTOP=Unity in the .desktop file after de Exec=

This answer is related.


Why my chmod do not work even use root user?

It doesn't work since it's an NTFS file system which doesn't support the POSIX/Linux permission method.


How to replace a line that starts with a word (and use that old line on the new line)

There are a number of ways of formulating it - one would be

sed '/^\"#EXT-1,.*\"/ s//!group=12, &, name=&/' file

If you want to modify the file in place, then add the -i or --in-place switch

sed -i '/^\"#EXT-1,.*\"/ s//!group=12, &, name=&/' file


Bash syntax for arbitrary file descriptors

As per the DEVFS definitions, the correct location is /dev/fd/NNN. Note that using descriptors above 9 may cause problems as Bash uses some for its internal use. Permissions should also be respected.


Run auto-disper automatically on device wake/thaw

I searched for this auto-disper thing on google and found something by that name at https://github.com/wertarbyte/auto-disper and looked at the source. It appears to be running X11 based commands, but your pm-script is likely not being run with an X11 environment. There's no clean way to do this, but if you make the assumption that your X session will be running on display 0 (which will typically be the case if you are the only one logged in graphically), you might get it working by running the command as your user and setting the DISPLAY environment variable.

#!/bin/bash

case "$1" in
    thaw | resume )
        sudo -u yourusername env DISPLAY=:0 auto-disper --change &> /home/myHome/autodisper_on_wake.txt
    ;;
esac


What does "Install Ubuntu alongside Windows 7" actually mean?

This is what happens when you choose one of the two options "install alongside" or "something else"

OPTION "INSTALL UBUNTU ALSONGSIDE WINDOWS 7"

After choosing it you can shrink the whole windows partition with a slider to let's say 100M/100M -  assuming you have 200M space,  which I know is not enough as you need at least 8G space left.

Then the installer will continue installing Ubuntu to your new partition. It also configures the bootloader Grub for the multiboot setup you desire. It does not touch windows except for shrinking the partition to get free space for Ubuntu. This is recommended for absolute beginners,  who do not care much for partitioning.

OPTION "SOMETHING ELSE"

Choosing this option lets you partition your HDD/SSD manually to your likings. Let's say you have the 200M mentioned above,  you can split them into 2 more primary partitions -  let's say / and /home (you can't create a swap partition then,  you have to use a swapfile). How much space you assign and which filesystem (eg.  ext4 or ext3)  is up to you . you can also choose the device Grub is installed to.

This is for experienced users,  because certain features like hibernating are harder to achieve.


16.04 Blank screen with AMD 460 graphics and gnome 3 (resolved with patch)

Following the suggestion from GrannySez, I applied the patch using the method at phoronix.com/forums/forum/linux-graphics-x-org-drivers/… (a couple of posts down), and now have gnome 3 working.  The package build process does fail, but manually installing the library works.  The compiled library is much larger than the original, most likely because it is unstripped, but it works fine anyhow.  If you apply the fix manually in this way be sure to put a hold on the cogl package, as suggested in the link.


adding numeric values of two columns into text file

Try:

paste data_1 data_2 | awk '{$3=sprintf("%.10g", $3+$8); NF=5; print}'

Notes:

I see 5 fields per file not 4 as stated in OP.
paste will merge lines from the two files.
awk will see lines with 10 fields each. NF=5 tells it to keep only the first 5, which are from data_1.
The float is printed with [s]printf's format %.10f. This might or might not be ok. See man 3 printf.
If sorting is needed, it could be done with process substitution:

paste <(sort [args] data_1) <(sort [args] data_2) | awk ...


Reinstall tahoma fonts, seems like yours' broken.
Enter this in terminal to install Tahoma and some Persian standard fonts. Refresh your browser(f5).

wget -c http://hezardastan.sourceforge.net/persianfonts/tahoma.tar.gz
wget -c http://hezardastan.sourceforge.net/persianfonts/bfonts.tar.gz
sudo mkdir /usr/share/fonts/truetype/ttf-persian-fonts
sudo tar zxvf tahoma.tar.gz -C /usr/share/fonts/truetype/ttf-persian-fonts
sudo tar zxvf bfonts.tar.gz -C /usr/share/fonts/truetype/ttf-persian-fonts
sudo fc-cache -f -v


BIOS is not smart enough to ask you about partitions, in fact, it knows nothing about partitions. From the BIOS point of view, your disk is just a sequence of 512-byte sectors.

When BIOS is ready to pass the control to the bootloader, it just reads the first 512 bytes from the disk and just blindly passes the control to whatever program is located at the predefined position in that data. It is the job of that program (MBR bootloader) to load the OS (this usually involves loading a more complex bootloader program from some other location on the disk).

Point is - it is your bootloader, stored in MBR, which is aware about partitions and stuff. You may have a Windows bootloader there or GRUB. If you find a way to configure the Windows bootloader to pass control to GRUB which is installed on /dev/sdaX then your schema would work although I never heard of anyone doing this. Windows is not very concerned about being able to load other OSes, you know.

It is possible to do what you want if you have two hard drives in your machine - just install Windows on one and Ubuntu on another, and switch between them in BIOS. Or, I don't know, maybe it is possible to put GRUB on a flash drive? That actually would be cool - if the drive is unplugged Windows would boot, if you plug the drive in then Ubuntu would boot (provided that "boot from USB" comes first in the list of boot devices) .


How to get access to USB-storage from an application installed as Snap?

So we need special prepared Snap with support of removable-media connector/interface/plugin.
Below is a list of Snap with removable-media plug described in YAML-manifest :

vlc - VLC
firefox - Firefox
gimp - GIMP
mdl - Markdown lint tool
offlineimap - OfflineIMAP
magic-wormhole - Magic Worm Hole
mattermost-desktop - Mattermost
storjshare-gui - Storj
opentoonz - OpenToonz
opentoonz-morevna - OpenToonz - Morevna Edition
obs-studio - OBS Studio
steamforwindows - Steam for Windows under Wine
chromium
zotero-snap - Zotero
libreoffice - libreoffice-snap
Joplin Desktop - joplin-desktop

One can find other Snaps released by SnapCrafters with the following GitHub search link.

So if the application does not have auto-connect of removable-media we need to connect it manually with:
snap connect some-snap-name:removable-media

But not all applications have this plug/interface in YAML-manifest.

It is hard to find packages by supported plugs - so I created issue "Add ability for parametric Snap search with filters (plugs, such as removable-media and so on)" about snapcraft.io site.
The bug about snap command named "snap should provide functionality to find packages with needed plug or connector" was filed to launchpad as bug 1776938.


gimp-2.8.4 was crashing in a very similar way for me, specifically when I attempted to use the text tool.  I resolved my issue by changing the permissions on all of my font files, using something similar to the following.

sudo find /usr/share/fonts -type f -name "*.[o,t]tf" -exec chmod 775 '{}' \;

Note:  Be sure to run the command for all directories listed in Edit->Preferences->Folders->Fonts.

Hope it helps!


If you can find a vpn client supporting the SOCKS protocol, then you could use this in the middle:

http://http-tunnel.sourceforge.net/

OpenVPN might work as the VPN software.  I haven't had time to try this but my motivation (when I researched it) was the same as your dad.

The other thing you might do is to run ssh-in-a-browser on your own box, or here:

http://www.serfish.com/console/


Unable to connect to router-goes to web server instead

If you are unable to access the routers main page you can try:

Verify IP address and default gateway.
Clear browser cache and/or restore default settings for the browser.
Try unpluging the power from the Router wait for 30sec and then
replug the power to the Router and then try to access the router.
Reset the router.

Note: Keep in mind that resetting the router will cause all settings to be lost.  Make sure that you have these settings backed up or have it written down somewhere.


In your ~/.config/rygel.conf in the MediaExport section add a line for virtual-folders and restart:

[MediaExport]
virtual-folders=false


How to subscribe to .ics url in Evolution calendar?

open Evolution, go to the calendar

New [dropdown to] Calendar

Type: On The Web

put in your URL, maybe your username. my calendar didn't require credentials to access, so this worked perfectly


Boot failed with error: ieee80211 phy0: brcmf_inetaddr_changed: failed to get arp ip table err:-52

I have a Dell_XPS_9550 running ubuntu_20.04 and I get the exact same error:  … : -52.
My system hangs at boot time with the same error on the console.
The system was working and I believe that error message has always been there, but I never paid attention to it, since I have SSD_nvme_m2 installed, so it boots really fast. As with your case, my WiFi works just fine.
My hanging problem appeared when I tried to get the bluetooth working with airPods.
Note that on most (if not all) laptops the WiFi and bluetooth are on the same chip.
Once, I deleted the changes I made for the bluetooth (setting the ControllerMode=bredr in /etc/bluetooth/main.conf) the system booted just fine, however the ieee80211 …: -52 error message still shows up at boot time, but the system boots and the WiFi works.
Since you say, your WiFi works. I’m thinking your boot problem could be due to the bluetooth as it was for mine. So disable the bluetooth to see if your system boots passed that error message.


if you're using a recent version of ubuntu (13.10), after installing awesome, it is hidden by default - here's a bug page. According to comment 18, it's been fixed in trusty.

Edit /usr/share/xsessions/awesome.desktop and remove "NoDisplay=true"


Ubuntu daily build for (x86 - 64bit) arch

Yes, that image will work with Intel chips x86_64 == amd64 the terms are used interchangeably. Some distros (Fedora, openSUSE, etc.) use x86_64, while Ubuntu, Debian and some others use amd64.


What are the (possible) future plans for Ubuntu-izing 3rd party software (please read details)?

It's possible that your best bet for a heads up on this stuff is to follow the Ayatana mailing list here :
https://lists.launchpad.net/ayatana/

However that list focusses mostly on design, rather than straight software development roadmap.

Given how UbuntuOne and UbuntuFont was developed offline then introduced into betas with little to no prior announcement, I'm guessing that some things are still decided behind closed doors at the Canonical offices (they are a company out to make money after all and their developers are paid to do a job).


The same started to happen to me after updating to Ubuntu 12.04 64-bit from Ubuntu 11.10 64-bit. As in your case, my audio device is

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)

Recently I found out that people have been coping with similar problems for years:

https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/572580

And, in comment #17, there was an advice how to disable pulseaudio for your user, by issuing the following commands in the terminal:

touch ~/.pulse-a11y-nostart
echo autospawn = no|tee -a ~/.pulse/client.conf
killall pulseaudio

It worked for me. While sound indicator became unavailable, I was able to succesfully run different players and watch flash videos in browser.

Hope that helps you.

Oh, and another thing. In Chrome, the sound became choppy because of two flash plugins were active at the same time.

At chrome://plugins/ I clicked "Details" button and disabled the one at

/opt/google/chrome/PepperFlash/libpepflashplayer.so

Not sure it was the right choice, but the choppiness has gone away.


Should I symlink my /var/www directory to my home?

Every setup is different. For me I have a lot of users on a server that each hosts websites, for you, you likely won't need to create more than just one user on the system. However, if you manage multiple websites on this server this setup will help you to manage, configure, and debug each domain in a fashion easier than a standard LAMP setup. In order for that to happen I utilize several devices by Apache to get around permission errors.

First, this is the document structure I use:

/home/[USER]/domains/[DOMAIN]/html
/home/[USER]/domains/[DOMAIN]/logs

Each user has their own account with a domains folder (which I added to /etc/skel so it gets created every time. Each domain has it's own folder in the domains folder with an html folder (I have my reasons for this, primarily so domains can have web files outside of the public realm). Feel free to modify this structure as you see fit, just remember to carry those changes throughout this post.

Secondly, I host a lot of PHP sites so I use suPHP in my configuration. By default the standard archive package doesn't have the proper compile flag enabled resulting in a less secure version of suPHP. I've made my own suPHP package which I use on my servers, installation instructions below. suPHP allows you to define what user PHP scripts should be executed as (among other things including: custom php.ini for each site, etc). I also enable suExec for Apache - further removing the need to have any ownership to www-data user (a user which I despise).

First ensure you have Apache, and all other services installed on your server. Make sure they are at least working. After that I recommend installing suphp-common and the required libapache2-mod-suphp module (More information: What are PPAs and how do I use them?). Then, after those install, activate suPHP and suexec using a2enmod

sudo a2enmod suphp
sudo a2enmod suexec
sudo a2dismod php5

sudo /etc/init.d/apache restart

Next will come the configuration file. I've made various tools that automatically generate the configuration files everytime I add a new site; however, here is the basic template I use:

<VirtualHost *:80>
    ServerAdmin [EMAIL]
    ServerName [DOMAIN]
    ServerAlias www.[DOMAIN] [DOMAIN]
    DocumentRoot /home/[USER]/domains/[DOMAIN]/html

    <Directory /home/[USER]/domains/[DOMAIN]>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride all
    </Directory>

    ErrorLog /home/[USER]/domains/[DOMAIN]/logs/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /home/[USER]/domains/[DOMAIN]/logs/access.log combined

    SuexecUserGroup [USER] [USER]

    suPHP_UserGroup [USER] [USER]
    suPHP_ConfigPath /home/[USER]/etc
</VirtualHost>

This sets up logging for that domain, the document root, and all other basic necessities for the domain to operate. I place these files in /etc/apache2/sites-available/ typically named [USER]-[DOMAIN] and enable/disable them with a2ensite like so:

sudo a2ensite [USER]-[DOMAIN]
sudo a2dissite [USER]-[DOMAIN]

After each modification to configuration files Apache will need to be reloaded with

sudo /etc/init.d/apache reload

While it may seem like a lot to setup the amount of flexibility gained, in my opinion, far outweighs the setup time. Though you only need a single user webserver, in the future if you ever wanted anything other than a single user webserver, you would need to perform further actions (or just drop security all together) in order to do so.


Script in one piece is in ->here

1. Python

Python is preinstalled in Ubuntu and AFAIK it's vital to some system/desktop-env operations, but just in case:

sudo apt-get install python
sudo apt-get install python-pip
sudo apt-get install build-essential python-dev

2. MySQL

You need to install (a)server, (b)client, (c)dev libs & headers, (d)python adapter

sudo apt-get install mysql-server
sudo apt-get install mysql-client-5.5
sudo apt-get install libmysqlclient-dev
sudo apt-get install python-mysqldb

3. Credentials

Establish MySQL credentials, tutorial on this is ->here, so that you have the following users with corresponding login commands:

root user

mysql -u root -p / password

Mezzanine user

mysql -u mezz -p / masterkey

4. Install Mezzanine

pip install mezzanine

5. Create Project

mezzanine-project myproject
cd myproject

6. Configure db to MySQL

Use your credentials from step 3.

vim local_settings.py

That's a Python file. DATABASES variable should be made to be like this (use your credentials at italicized places):

DATABASES = {
    "default": {
        # Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
        "ENGINE": "django.db.backends.mysql",
        # DB name or path to database file if using sqlite3.
        "NAME": "myproject",
        # Not used with sqlite3.
        "USER": "mezz",
        # Not used with sqlite3.
        "PASSWORD": "masterkey",
        # Set to empty string for localhost. Not used with sqlite3.
        "HOST": "",
        # Set to empty string for default. Not used with sqlite3.
        "PORT": "",
    }
}

7. Do Mezzanine routines

Collect static files and templates

python manage.py collectstatic
python manage.py collecttemplates

Synchronize with database. This step depends on the Django version, at the time of writing this, Django 1.7 is still not supported, so use syncdb:

python manage.py syncdb

You may also consifer using South migration manager, but know that South project is at it's dusk since Django 1.7 has new migration system.

After syncdb output you'd have a superuser (for entering Mezzanine's admin section). You can create superuser separately after sync:

python manage.py createsuperuser

Run built-in server of Mezzanine (more concretely, it's Django's lightweight server):

python manage.py runserver

8. Go

Point your browser at http://127.0.0.1:8000 and hopefully you'll see the Mezzanine standard greeting.

9. Production Deployment

->Here is a good guide, you can use it to create a demo site in production environment (on that particular site it's free with some limits). And here are their settings for MySQL.

10. Extras

Official Mezzanine Installation Instructions (for SQLite)
Mezzanine static files explanation
Mezzanine templates explanation
More on customizing templates
Django Deployment Instructions, part about virtualenv and virtualenvwrapper

11. 'Revisions'

Some revisions I gathered on my way:

South migration manager needs some change in Database section of your settings.py
Mezzanine and versioning seemed very frustrating to me: it doesn't support django 1.7, and on my hosting provider there was no root access, so I should have installed MySQL-Python ('adapter') through pip. Some versions of adapter-mezzanine-django are incompatible.

For now, I use Mezzanine v3.1.10, Django v1.6.10 and MySQL-Python v1.2.3 and it works. I disabled South backend addon, because it made things for my deployment more complex rather than simpler.

12. Postscript

If someone advises me about how to improve this guide, I will do it. j-D


I'd check for any proprietary drivers:
System > Administration > Hardware Drivers is how it shows up on 10.04.  Typically these issues are because some proprietary driver is needed but not installed.


According to Apache documentation:

  First, all output from your CGI program must be preceded by a
  MIME-type header. This is HTTP header that tells the client what sort
  of content it is receiving. Most of the time, this will look like:

  Content-type: text/html

  Secondly, your output needs to be in HTML, or some other format that a
  browser will be able to display. Most of the time, this will be HTML,
  but occasionally you might write a CGI program that outputs a gif
  image, or other non-HTML content.

I guess that your program (elf executable) doesn't print out http header before content.

UPDATE

In order to execute CGI program in your home directory /var/www you shoud add:

<Directory /var/www>
    Options +ExecCGI
    AddHandler cgi-script .bin
</Directory>

Where AddHandler directive allow gci program execution for all file ending with .bin extension in /var/www directory.

Another possibility is to create your cgi-bin directory and put your executable in it.
In this case, add in your apache configuration file:

<Directory /var/www/mycgi-bin>
    Options ExecCGI
    SetHandler cgi-script
</Directory>


The fix: restarting the PC.

I don't know why I couldn't see the letter "g" before, but I can now.


Unable to use "pip install scp" command in ubuntu 12.04

It's just the name - it's called "scp", not "python-scp":

Use pip install scp


how can i write a shell script that will run at startup and introduce a delay in the start of an application

You can add a delay time with sleep command.

man sleep for more info .

Example

I want to startup a program with delay of 10 seconds.
I create an entry in the startup applications with this in command field

sleep 10;/usr/bin/<program name>

Example 2

I want to create a script with the delay (sleep) option and add this script to startup applications

gedit delayscript.sh

and I add these lines

#!/bin/bash

sleep 10
/usr/bin/<program name>

save the script and give it executable permissions

chmod +x delayscript.sh

and add it to startup applications (command field) with full path

/home/username/delayscript.sh


Note: This answer has been updated since when it was first posted because there is now a better way of installing the latest version of npm which is built-in with the node snap package for installing Node.js. After running the below commands running npm -v will show that the latest version of npm is installed and being used.

Node.js is available as a snap package in all currently supported versions of Ubuntu. Specific to Node.js, developers can choose from one or more of the currently supported releases and get regular automatic updates directly from NodeSource. Node.js versions 6, 8, 9, 10, 11, 13 and 14 are currently available, with the Snap Store being updated within hours or minutes of a Node.js release.
Node can be installed with a single command, for example:
sudo snap install node --classic --channel 11/stable # also install snapd in 14.04

The node snap can be accessed by the command node, for example:
$ node -v
v11.5.0
An up-to-date version of npm will installed as part of the node snap. npm should be run outside of the node repl, in your normal shell. After installing the node snap run the following command to enable npm update checking:
sudo chown -R $USER:$(id -gn $USER) /home/your-username/.config
Replace  your-username in the above command with your own username. Then run npm -v to check if the version of npm is up-to-date. As an example I checked that npm was up-to-date, checked the version of an already installed package named yarn with the command npm list yarn and then updated the existing yarn package to the latest version with the command npm update yarn
Users can switch between versions of Node.js at any time without needing to involve additional tools like nvm (Node Version Manager), for example:
sudo snap refresh node --channel=10/stable

Users can test bleeding-edge versions of Node.js that can be installed from the latest edge channel which is currently tracking Node.js version 12 by switching with:
sudo snap switch node --edge

This approach is only recommended for those users who are willing to participate in testing and bug reporting upstream.
Node.js LTS Schedule
Release LTS Status  Codename    LTS Start       Maintenance Start Maintenance End
6.x     Active      Boron       2016-10-18      April 2018        April 2019
7.x     No LTS
8.x     Active      Carbon      2017-10-31      April 2019        December 2019
9.x     No LTS
10.x    Active      Dubnium     October 2018    April 2020        April 2021
11.x    No LTS                                  2019-04-01        2019-06-30
12.x                            2019-10-22      2021-04-01        2022-04-01
13.x    No LTS                                  2020-04-20        2020-06-01
14.x    Current     Fermium     2020-10-20      2021-10-20        2023-04-30


As of netplan 0.40.2.1, there is currently no support for managing tunnels.  For the time being you will want to continue managing tunnels using /etc/network/interfaces.


Ubuntu installer/ fdisk/ gpart Can not find my SSD partition

Okay guys. I figured out.....

You will have to go to your computer Bios and switch the booting mode from "Intel RST" mode to "AHCI" mode. After that, you will be able to see all the windows partitions.

Note
Noticing that if your windows was booting using RST mode. Switching to AHCI without safe mode will result in not being able to boot your windows. This will be very troublesome if you plan to make a dual boot system with ubuntu. You will have to switch your windows to boot in AHCI as well.
Instruction:
https://medium.com/@petragospodneti/windows-10-and-linux-love-hate-dual-boot-problems-d9994cbe16c0


Libreoffice crashes after upgrade to Kubuntu 17.10

I downloaded a new version of libreoffice (6.0.1) from their site and uncompressed the file with ark.

Then I went to the DEBS folder and typed : sudo dpkg -i *.deb

This installed without any trouble LibreOffice 6.0.1 and it hasn't crashed yet. It opened the file I wanted to open in the first place.

This is not a solution, but it'll do as a workaround.


Linux + XPS15 9550 + Thunderbolt 3 docking station (USB and Ethernet not working)

I also have a dual boot system of Windows 10 and Ubuntu 16.04 and I had the same problem. My laptop is a HP ZBook 17 G4 with a HP Zbook Thunderbolt 3 Dock. I found the following solution:

Go to your BIOS setup
Go to the Advanced tab then Boot settings, disable the FastBoot (this allows for the use of the thunderbolt technology pre-boot)
Go to the Advanced tab then Port settings:
Disable the "Require BIOS PW (password) for TBT
(thunderbolt)" or something similar (This shows/allows the option
for no security on thunderbolt tech, see next step)
Change the Thunderbolt security configuration (a dropdown for me) to "PCIe & USB" or the option with no security.
Save and reboot, my Ubuntu
OS immediately started using the 2 displays and the USB Mouse and
keyboard that were connected to the HP Thunderbolt 3 Dock

Hope this helps more people, as for now there are still no Linux drivers to use this Thunderbolt technology securely


Where's documented combo box usage with zenity?

The first element of the array gets eaten up by --text. After expansion, your zenitiy line looks like:

zenity --entry --title "Window title" --text a b c d e --text "Insert your choice."
# Which zenity treats equivalent to
zenity --entry --title "Window title" --text a --text "Insert your choice." b c d e

So you first set the text to a, then you override that with "Insert your choice." And the remaining arguments become the choices.

What you want is:

zenity --entry --title "Window title" --text "Insert your choice." a b c d e
# Hence:
zenity --entry --title "Window title" --text "Insert your choice." "${array[@]}"


Make sure you've seen this guide:
https://help.ubuntu.com/community/FakeRaidHowto

In short, you could try to partition the raid within the BIOS setup and install Ubuntu using the Alternate CD.

If you're having trouble getting the system to boot up after installing, this might help: http://www.techspot.com/vb/topic153346.html


To install Ubuntu without CD/DVD or USB pendrive, follow these steps:

Download Unetbootin from here.

Run Unetbootin.

Now, from the drop-down menu under Type: select Hard Disk.

Next select the Diskimage. Browse to the directory where you downloaded the iso file of Ubuntu.

Press OK.

Next when you reboot, you will get a menu in that, select Unetbootin and you will get the "Try" or "Install" option there.

Finally, you can install your version of Ubuntu..


This is (a variant of) the script I use (/home/pduck/bup.sh):

#!/usr/bin/env bash

src_dir=/home/pduck
tgt_dir=/tmp/my-backups
mkdir -p $tgt_dir

# current backup directory, e.g. "2017-04-29T13:04:50";
now=$(date +%FT%H:%M:%S)

# previous backup directory
prev=$(ls $tgt_dir | grep -e '^....-..-..T..:..:..$' | tail -1);

if [ -z "$prev" ]; then
    # initial backup
    rsync -av --delete $src_dir $tgt_dir/$now/
else
    # incremental backup
    rsync -av --delete --link-dest=$tgt_dir/$prev/ $src_dir $tgt_dir/$now/
fi

exit 0;

It uses rsync to locally copy the files from my home directory to a backup location, /tmp/my-backups in my case.
Below that target directory a directory with the current timestamp is created, e.g. /tmp/my-backups/2018-04-29T12:49:42 and below that directory the backup of that day is placed.

When the script is run once again, then it notices that there is already a directory /tmp/my-backups/2018-04-29T12:49:42 (it picks the "latest" directory that matches the timestamp pattern). It then executes the rsync command but this time with the --link-dest=/tmp/my-backups/2018-04-29T12:49:42/ switch to point to the previous backup.

This is the actual point of making incremental backups:

With --link-dest=… rsync does not copy files that were unchanged compared to the files in the link-dest directory. Instead it just creates hardlinks between the current and the previous files.

When you run this script 10 times, you get 10 directories with the various timestamps and each holds a snapshot of the files at that time. You can browse the directories and restore the files you want.

Housekeeping is also very easy: Just rm -rf the timestamp directory you don't want to keep. This will not remove older or newer or unchanged files, just remove (decrement) the hardlinks. For example, if you have three generations:

/tmp/my-backups/2018-04-29T...
/tmp/my-backups/2018-04-30T...
/tmp/my-backups/2018-05-01T...

and delete the 2nd directory, then you just loose the snapshot of that day but the files are still in either the 1st or the 3rd directory (or both).

I've put a cronjob in /etc/cron.daily that reads:

#!/bin/sh
/usr/bin/systemd-cat -t backupscript -p info /home/pduck/bup.sh

Name that file backup or something, chmod +x it, but omit the .sh suffix (it won't be run then). Due to /usr/bin/systemd-cat -t backupscript -p info you can watch the progress via journalctl -t backupscript.

Note that this rsync solution requires the target directory to be on an ext4 filesystem because of the hardlinks.


Your problem in on the side of the NAS provider.  You'll have to configure rw permission from the file server.

Your credentials file (in this case /home/josef/.smbcredentials) will have to have an entry similar to:

username=userID
password=password

This entry userID has to be a userID that is on your NAS server.  The password will have to match the password configured on the server for that user.

The NAS server share configuration will have to be configured for read/write permission for that userID (the userID that is on the server).

Tell the NAS system administrator to provide you with a user/password for read/write permission.  If you (which is most likely) have administration access to the NAS server, that configures the NAS server for a userID with rw permissions.

If the NAS server is Ubuntu running Samba this entry would work:

[plexmedia]
        comment = Plex Media Files
        path = /mnt/data/officeshared
        create mask = 0775
        writeable = yes
        browseable = yes
        force user = plex
        force group = plex
        valid users = userid, user1, user2

From the /etc/samba/smb.conf entry above, the valid users (userid, user1, user2) would have the permissions provided in this setting.

For Windows, the settings are using done via mouse click GUI.  You can look at How to Share and Set Permissions for Folders and Files Using Windows steps in setting the permissions on a Windows NAS server.


Enhanced session with Lubuntu guest in Hyper-V

I had the same problem and I get it to work. To what it seems, there is a lot that can be "removed" from the install.sh script in order to make this work on Lubuntu 18.04 on the latest Windows 10 build. So my changes were:

Remove everything from the /etc/xrdp/startubuntu.sh script less the line that calls the startwm.sh:

#!/bin/sh
exec /etc/xrdp/startwm.sh

Add lxsession -s LXDE -e LXDE to the end of the /etc/xrdp/startwm.sh file.
I'm not sure if this is needed, but add a file to your home dir called .xsession with the content lxsession -s LXDE -e LXDE.
I also changed toggled the comments on the first lines related to the HWE kernel packages:

#HWE=""
HWE="-hwe-18.04"

I hope this fixes your problem. Some parts of this solutions were based on this blogpost.


do you mean that when you enable autohide, sometimes, hover the mouse about and it would not reveal? then try changing the sensitivity of bar in unity tweak tool.

if you think that mouse hovers but nothing happens even if you click, then try pressing alt. then the hud comes up. then click something and it would work.


As for fixing GRUB, I'll leave that someone more GRUB-savvy. I've had a similar problem as you, but when I repaired from the Live CD, it actually fixed my problem.

Recovering your data shouldn't be too difficult. The general process is as follows:
 1. Boot into Live CD
 2. Find your storage device
 3. Mount your storage device
 4. Mount your recovery storage device
 5. Copy necessary files across

1. Boot into Live CD

I won't bore you with the steps for doing 1 (since you've already done it).

2. Find your storage device

Depending on how your hard drive is partitioned, it might be a bit tricky to determine which partition is the one you need. My personal preference is to run:

sudo blkid -c /dev/null

That should give you an output that has a number of entries that look like:
/dev/sdxX: LABEL="LABEL_NAME" UUID="UUID_HERE" TYPE="FILETYPE"

You're interested in finding the correct drive from information like the filetype and label name. Once you've correctly identified the correct drive/partition, then you want to take a note of x and X (from /dev/sdxX). You'll need that bit to mount your drive.

3. Mount your storage device

Before you mount the drive, you need to create a folder to actually mount to. I suggest you create one in your home folder, such as (~/my_original_drive).

Once you've created that, you will want to run a command that is similar to the following:

sudo mount /dev/sdxX ~/my_original_drive

Replacing x and X from the letter and number derived from the previous section.

From here, you should be able to access your data from the 'my_orignal_drive' folder. Have a look around in there and make sure everything is there as you expected.

4. Mount your recovery storage device

To be honest, you shouldn't need to do much here if you're plugging in a USB stick (the newer versions of Ubuntu Live CD should mount these automagically). If it doesn't, follow the same steps above, but for your back-up device. It'll have a different /dev/sdxX and you'll need to create another folder to mount to.

If the backup drive does mount automagically, it'll be located somewhere under /media/

5. Copy necessary files across

Once you've correctly mounted both your backup and source drives, it should just be a matter of copying and pasting!

Hope this helps!


no login screen after 12.10 ubuntu update

After trying above methods and various online suggestions, (which failed, in my case), I formatted / (root) drive by installing fresh 12.04 LTS edition. This didn't deleted my /home and other data, and nothing was lost except few installed programs (which i installed later on).


It looks like you do have the free space (77GB Available from the df command and 80GB Unused from the gparted tool).

The reason it is not 88.5GB could be either filesystem related (the filesystem uses some of that space for itself) or the home folder is already starting to fill (some programs store their files in the home directory for cache, thumbnails, etc.)


How to swap Command and Control keys with xkb step by step?

This answer is mostly based on the answer given here. The reason I ask and answer this question again is the final step, which was not fully described. For further reading about xkb look here, here, and here.

Create a file in /usr/share/X11/xkb/symbols (could also be in /etc/X11/xkb/symbols) called altwin2 and containing the following mapping:

// Control is SWAPPED with Win-keys
partial modifier_keys
xkb_symbols "cmd_n_ctrl" {
    key <LWIN> {        [       Control_L               ]       };
    key <RWIN> {        [       Control_R               ]       };
    key <LCTL> {       [       Super_L         ]       };
    modifier_map Control { <LWIN>, <RWIN> };
    modifier_map Mod4 { <LCTL> };
};

Insert the following line under the option = symbols section in /usr/share/X11/xkb/rules/evdev (disregard the warning on the first line):

altwin2:cmd_n_ctrl               =       +altwin2(cmd_n_ctrl)

Add the new option to /usr/share/X11/xkb/rules/evdev.lst under the section option:

altwin2:cmd_n_ctrl    Win swapped with Ctrl

If you don't know where your keyboard configuration file is, you can edit it using dconf-editor, adding "altwin2:cmd_n_ctrl" in xkb-options under org::gnome::desktop::input-sources as shown here. If you know where your configuration file is, you should include the new option in the XkbOptions field as shown below:

Section "InputClass"
        Identifier "keyboard-layout"
        Driver "evdev"
        MatchIsKeyboard "yes"
        Option "XkbLayout" "us, ru, ca, fr"
        Option "XkbOptions" "altwin2:cmd_n_ctrl"
EndSection

Either reboot or restart lightdm to update the changes:

sudo restart lightdm

NOTE: if any changes are made directly in the layout files, i.e. not using options, the cached files in /var/lib/xkb/ need to be deleted as indicated here.


Does Ubuntu have support for the TRIM command for use with SSD?

Looks like there is support for the TRIM functionality in the 10.10 and newer releases:

How do I optimize the OS for SSDs?

Also, the TRIM stuff happens automatically - empty blocks are automatically released when they're no longer needed (eg, you delete a file), if the disk reports that it supports TRIM. You don't have to manually issue a hdparm command for this to work.


libreoffice 4.2.8 go extremely hard working with images embedded

Try to disable displaying images in Writer: Menu "Options" -> "LibreOffice Writer" -> "View" -> "Display" - untick "Graphics and objects".


Skippping acquire configured file - doesn't support architecture 'i386'

You have Ubuntu version bionic, but are looking for files for Ubuntu disco.

Locate the file that contains repos.codelite.org...

In terminal...

cd /etc/apt # change directory

grep -i repos.codelite.org sources.list # see if it's in this file

grep -i repos.codelite.org sources.list.d/*.list # see if it's in one of these files

sudo -H gedit found_file_name.list # edit the found .list file

change the line that contans "repos.codelite.org":

deb http://xxxxxxxxxx disco xxxx

to:

deb [arch=amd64] http://xxxxxxxxx bionic xxxx

Note: if you have any other references to disco in your .list files, change them to bionic.


how to stop ubuntu from accessing internet via proxy?

You could make a bash script for it, for me it sounds easier than setting everything up each time, you could use something like in this site (untested):

function proxy(){
    echo -n "username:"
    read -e username
    echo -n "password:"
    read -es password
    export http_proxy="http://$username:$password@proxyserver:8080/"
    export https_proxy="http://$username:$password@proxyserver:8080/"
    export ftp_proxy="http://$username:$password@proxyserver:8080/"
    export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
    echo -e "\nProxy environment variable set."
}
function proxyoff(){
    unset HTTP_PROXY
    unset http_proxy
    unset HTTPS_PROXY
    unset https_proxy
    unset FTP_PROXY
    unset ftp_proxy
    echo -e "\nProxy environment variable removed."
}


How to change DocumentRoot to /var/www/public?

Try to copy the backup default file to it's original location and then open it through gedit.

sudo cp /etc/apache2/sites-available/default.save /etc/apache2/sites-available/default

sudo gedit /etc/apache2/sites-available/default

Change the line as stated in the question and save the file.


Ubuntu 12.04 - Wakes from Suspend by itself

I had a similar problem and it was an annoying one until I found the fix. I would suspsend my pc and then it would do so for like 3 seconds. After that, it just wake up automatically. I've found the fix here Ubuntu Suspsend Fix. Check out the post #6. Hope it helps. :)


Ubuntu 11.10 on MacBook Air 2011 - problems with drivers

It's more robust (and less likely to cause issues in the future) to use the latest stable Ubuntu version, which is 12.04 (11.10 causes so much problems for Macs...).  You should find your trackpad, keyboard, and backlight working properly.

See https://help.ubuntu.com/community/MacBookAir4-2


How does two OpenVPN connections open the same time work?

You should be able to see what goes where using the route command.  It will tell you what IP addresses get routed where.  Here is a common example:
$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    100    0        0 enp0s31f6
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 vpn0
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 enp0s31f6
172.16.0.0      0.0.0.0         255.240.0.0     U     0      0        0 vpn0
192.168.1.0     0.0.0.0         255.255.255.0   U     100    0        0 enp0s31f6
_gateway        0.0.0.0         255.255.255.255 UH    100    0        0 enp0s31f6
minanyconnfwf01 _gateway        255.255.255.255 UGH   100    0        0 enp0s31f6

In this case, 192.168.1.* always goes to the local network, 10.*.*.* and 172.16.*.* all go over the VPN.  Everything else goes to the default gateway, which is the local network.  You can also edit this yourself.
route delete -net default gw 0.0.0.0 dev vpn0

This will delete the default gateway that uses the VPN, restoring it to the local network, handy if you don't want all traffic going over the VPN.
route add -net 10.0.0.0 netmask 255.0.0.0 dev vpn0

This would send all 10.*.*.* traffic through vpn0
Also I would point out the order of your DNS servers will also influence this.  I you are connected to VPNs in other countries and you go to a common website like Facebook, Google, Amazon, etc, they will give you a different IP address than you desire depending on your primary DNS server which may or may not be beneficial depending on the situation (very useful when shopping online while travelling abroad).


How to unassign Alt key from window context menu in GNOME

GNOME Connection Manager is intercepting the Alt key combinations for its own menu and refuses to pass it on to the shell it is hosting (where your MC instance is running). This is not configurable.

This is a bug in GNOME Connection Manager, or to be precise in the GUI library it uses (Gtk), so the only good solution is to go to their site and report the bug.

The other approach is filing a bug with GTK about "Alt being hardcoded" but you will need a lot of charisma and endurance to convince them to make Alt configurable. All alternatives will be workarounds, of which the ESC-key trick is the most elegant.


I suggest you use gedit, kate, nano, leafpad or any other text editor to set up /etc/network/interfaces something like:

auto lo
iface lo inet loopback

auto enp4s0
iface enp4s0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 192.168.1.1

Be sure to select a static address outside the range used by the DHCP server in the router, switch or other access point. Of course, substitute your details here. I recommend that servers use a static IP address so that you can later find it with ssh and ftp.

Get the system to read and use the changes:

sudo ifdown enp4s0 && sudo ifup -v enp4s0

Did you connect?

ping -c3 192.168.1.1
ping -c3 www.ubuntu.com


Cannot Get VMWare workstation to run in Ubuntu 15.04

Copy the snippet from here and paste it into a file in your home directory named vmnet313.patch.

Run the following commands

cd /usr/lib/vmware/modules/source
tar -xvf vmnet.tar
patch vmnet-only/filter.c < ~/vmnet313.patch
tar -uvf vmnet.tar vmnet-only
rm -r vmnet-only
/usr/lib/vmware/bin/vmware-modconfig --console --install-all

What is done in the code block above is untar the source of vmnet, patch the problematic code and then return the vmnet module back to it's original state with the added patch.

Source

Unable to run VMware - Failed to build vmnet


Allow systemd service to create and write files/folders

I fixed the problem by correct umask setting in my code.

Clarification: I had a problem creating files or folders and I assumed that the problem originates from the fact that my server program is systemd service but later I found out that I used umask erroneously:

umask(0755); <- bad

umask(0022); <- solved my problem


How do I get rid of the KDE Dolphin file/folder details on mouseover?

Dolphin tooltips

Dolphin Handbook: F1

Online: https://docs.kde.org/stable5/en/applications/dolphin/index.html

From the handbook:

  Chapter 3. Configuring Dolphin

  The Dolphin Preferences Dialog

  The Preferences Dialog is opened via Settings → Configure Dolphin...
  in the menu in Dolphin's main window...

  General

  This group contains settings which control the general behavior of
  Dolphin...

  When hovering over a file or folder with the mouse, a small window
  with relevant information is shown if Show tooltips is enabled.


I experienced this as well. I discovered that grub-emu actually tries to open a separate window to display the emulated menu and fails in the manner you described if X forwarding is not enabled.

To ssh with X-forwarding enabled, add the -Y option to ssh.


What's wrong with dhcpd (isc-dhcp-server) inside LXC container? Why it does nothing?

Try running "strace dhcpd --version" to see if this gives more info.

Edit:

write(2, "isc-dhcpd-", 10)              = -1 EACCES (Permission denied)

This means that the process can't write to STDERR (file descriptor 2).

Congratulations, you have actually hit Ubuntu bug 1641236 or 1667016
Quoting from lxc issue 2930

  You do have a few workarounds available though:
  Using ssh instead of "lxc exec" should work fine (as ssh will allocate
  its own pts pair) Using "lxc exec" and then running a "script" session
  should have the same effect as ssh You can turn off the tcpdump
  apparmor profile by symlinking the profile to /etc/apparmor.d/disable/
  then reload apparmor in the container (or reboot it).

The last workaround seems to be working for both bugs

ln -s /etc/apparmor.d/usr.sbin.dhcpd /etc/apparmor.d/disable/


error message when running zenity under 16.04: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged

Ignore it.

It's a warning, not an error. The application works, it's just not coded with best practices in mind, as it seems. You would have to modify zenity's source code to implement the fix described in your linked question and then compile it yourself, but... it works anyway, so why should you bother?

If you just want to get rid of the output in your terminal, you could simply redirect STDERR (standard error stream, that's where the warning gets printed to) to /dev/null (virtual character device that swallows data) by appending 2> /dev/null to the end of the command, like this:

zenity --text-info --filename=<filename> 2> /dev/null


Very slow system after installing 13.10?

Switching the acceleration method from SNA to the old UXA worked for me:

place the following lines in /etc/X11/xorg.conf (create it if it doesn't exist, you will need root privileges to edit the file):

Section "Device"
Identifier "Card0"
Driver "intel"
Option "AccelMethod" "uxa"
#Option "AccelMethod" "sna"
EndSection

Source: http://linuxg.net/fix-slow-graphics-performance-on-ubuntu-13-04-intel-gpu/


No. Well it is actually yes but you will need to recompile all the software you want this applied to.

Easier option is to flip your problem and approach it differently: why use /home/ for personal data? You can practically sym link anything in your /home/$USER/ to another location. I myself opted to change the directories to a partition /discworld/. It looks like this:

rinzwind@schijfwereld:~$ cd /discworld/
rinzwind@schijfwereld:/discworld$ ls -a

 .
 ..
 Public
 Desktop
 Templates
 Documents
 Downloads
 user-dirs.dirs
 Videos
 Music
 Pictures
 .Trash-1000

I never use /home/ so never see anything added to /home/ (my / and /home are also on an ssd, and /discworld is a hdd).


Set-top box with embedded Linux. Can it be wiped for an Ubuntu install?

While this is theoretically possible, it's not feasible without a lot of work.

As a prerequisite, you need to have profound knowledge of the hardware used in the box, if drivers are available (preferably under a permissive license) for the intended kernel and a lot more.

You need to know how to compile a kernel, most possibly not only how to compile it but also how to cross-compile it. You also need the toolchain and if things go south (and they will, speaking from experience), you need a JTAG cable to re-flash.

If there's no JTAG header on the board at all, I'd not do it, as you're going to brick the device and it'll become a fancy paperweight.


Since I restarted my system without the above extension system-monitor I dont experience the issue anymore for a week. This morning I reenabled it and the problem came back...


Ubuntu 16.04 installation hangs due to intel_rapl

intel_rapl is a power management related driver which makes no sense to load in a virtual guest anyway.

It was changed to no more show up in common configs just a bit after 16.04 kernels were taken in this commit

I'd most likely assume that it has nothing to do with your hang, but just happens to be the last message before the hang occurs for other reasons.

If you want to be sure you might mount your guest disk on the host and disable the module and then update the initramfs as well, like:

$ echo 'blacklist intel_rapl' >> /etc/modprobe.d/modprobe.conf
$ sudo update-initramfs -u

That should make your guest no more load it, but then probably still run in the - assumed to be unrelated - hang.

FYI - There was a similar discussion on the same around VirtualBox a while back.


Asking for authentication informationon Ubuntu 12.04 with XAMPP

Configure the ftp server in your Ubuntu

apt-get install vsftpd

use your user name and password to login from some client such as filezilla before that you need to configure the vsftpd


Logitech c920 (video) recently stopped working in Cheese

Cheese 3.28.0-1 Archlinux and Logitech, Inc. HD Pro Webcam C920. The camera can be loaded in VLC with Open Capture Device → /dev/video0. This problem seems to be this bug.

lsusb reports:

Bus 001 Device 005: ID 046d:082d Logitech, Inc. HD Pro Webcam C920

The solution:

sudo systemctl --global disable pipewire.socket

Afterwards, reboot.


Would any of this help?

https://downloads.mariadb.org/
https://downloads.mariadb.org/mariadb/10.1.20/

For Ubuntu, here is a better link.  Might be safe to skip #mirror=...

https://downloads.mariadb.org/mariadb/repositories/#mirror=jaleco

I haven't succeeded in solving this one yet.
(See Ubuntu 16.04 MariaDB 10.1 installation in Retrograde :D)


Is this move/resize operation safe to perform?

Regarding is GParted safe, see GParted FAQ - Is It Safe?

If you move the Linux boot/root partition or Windows boot/C: partition, then you may need to restore the ability to boot.

See GParted Manual - Fixing Operating System Boot Problems and GParted FAQ - Restore Windows Boot.


Install ubuntu on windows 8 on second hard drive without affecting setup

The recommended way to dual-boot your system is to install Ubuntu on a separate partition on your SSD.  The Ubuntu installer will help you do this.  It will also install a boot loader (probably GRUB) that will help you select which one you would like to boot after POST.  This will yield the best experience from both operating systems.


Error building main Guest Additions Module while installing VirtualBox guest additions

For VirtualBox version 4.2.0 . Oracle's Version.

Install the package virtualbox-guest-x11 and you will be fine.

From terminal (Virtual System)

sudo apt-get install virtualbox-guest-x11

Reboot you Virtual System.


Why can't I cd into a directory with a user not owner group

Your parent folder must be readable (in a sense) too.

For example, I have a folder test, with another folder, test2 inside of it. Permissions are as such:

drwxrwx---   3 kazwolfe kazwolfe     4096 Dec 30 13:18 test/
drwxrwxr-x   2 kazwolfe nogroup      4096 Dec 30 13:18 test/test2

As you can see, the nobody user (member of nogroup) has permissions for test/test2, but it can't cd into it:

cd: test/test2: Permission denied

Why? Simply put, because the nobody user does not have rights to read from test. Therefore, they are blocked from accessing any subdirectories or subfiles of test, even if they have permission!

In order to resolve this, I need to ensure that the execute bit (chmod a+x test) on any parent folder is set so I can traverse the folder(s) needed:

┌─[13:35:22]─[nobody@ArcticWolf]
└──> ~ $ cd test
┌─[13:35:24]─[nobody@ArcticWolf]
└──> test $ ll
ls: cannot open directory '.': Permission denied
┌─[✗]─[13:35:27]─[nobody@ArcticWolf]
└──> test $ cd test2
┌─[13:35:31]─[nobody@ArcticWolf]
└──> test2 $ touch hello
┌─[13:35:34]─[nobody@ArcticWolf]
└──> test2 $ ll
total 8
drwxrwxr-x 2 kazwolfe nogroup  4096 Dec 30 13:35 ./
drwxrwx--x 3 kazwolfe kazwolfe 4096 Dec 30 13:22 ../
-rw-r--r-- 1 nobody   nogroup     0 Dec 30 13:35 hello

Note that setting the execute bit on a folder allows a user to access anything inside the folder that they have permission for, and know exists. See this answer on U&L for a more in-depth view of permissions on folders.


What's the difference between unset () and unlink ()?

In PHP unlink() is a function for file system handling, unlink() is used to delete files. Suppose you have uploaded a file and wants to delete this file through the coding then unlink() function is used to delete the file.

unset() is a function for variable management. It will make a variable undefined. Or we can say that unset() is used to null out the value of a given variable. OR Unset () is used to destroy a variable in PHP. In can be used to remove a single variable, multiple variables, or an element from an array.


Q: fatal: [10.128.0.11]: FAILED! => ... "rc": 100, "stderr": "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

A: Fix broken packages. See E: dpkg was interrupted… run 'sudo dpkg --configure -a'. The task shall be working as expected then
- name: install chromium
  become: yes
  become_user: root
  package:
    name: chromium-browser
    state: present


Based on what you said, this sounds like you are using a BIOS boot password vs just the desktop logon password.

Case in point, I have a laptop in my home that is old much like yours, however, the ssh service is fully active and I don't need to log into the remote desktop. Doesn't matter how many users are present on the system. SSH is a service that will run in it's own process separate from the X environment.

My recommendation is that you remove the BIOS boot password and allow your computer to boot normally. That way you can access it remotely regardless of whether you have logged on to it physically.


How do I easily download Ubuntu ISOs via bittorrent from the command line?

aria2c and metalinks let you do a one-step, verified ISO download using the bittorrent protocol

It is extremely easy to do what you want using the aria2 CLI download manager and the ISO metalinks available on the official download page, namely:

Download an Ubuntu ISO
Preferably over Bittorrent
Automatically verify integrity of downloaded ISO

Steps:

Install aria2 with sudo apt-get install aria2c

Open the official download page for the release you want, e.g. for Precise

http://releases.ubuntu.com/releases/precise
Find the metalink for your ISO, e.g. ubuntu-12.04-desktop-i386.metalink, and right-click to copy it to the clipboard
In the terminal, type and paste the link as aria2c <URL of metalink>

You can add the --seed-time=0 option if you want aria2c to exit after downloading and not seed the ISO, e.g.

aria2c --seed-time=0 http://releases.ubuntu.com/releases/precise/ubuntu-12.04-server-i386.metalink

Unless BitTorrent (BT) is not possible on your network, aria2 will download the file as a torrent.
The BitTorrent protocol provides automatic built-in checksumming, and aria2 will continually verify pieces as they are downloaded.

In short, if you download an official metalink over BT, a successful download means that you have the original, unmodified, complete file.

  Trick: You can remove the web browser, copy-paste etc. by simply typing the direct URL for aria2 as http://releases.ubuntu.com/releases followed by this format:

/release-name/ubuntu-release.version-variant-architecture.iso

Exception/manual verification:

If aria2 had to download the ISO via HTTP/FTP (BT not available), or if you just want the security of double-verification, a one-liner in the following format should do it (split lines for readability)

wget -q -O- http://releases.ubuntu.com/releases/precise/MD5SUMS \
  | grep desktop-i386 | md5sum -c

Success will show you, e.g. ubuntu-12.04-desktop-i386.iso: OK
desktop-i386 should be replaced with the appropriate version-architecture you chose to download, e.g. server-amd64, alternate-i386 etc.
MD5SUMS can be replaced with SHA1SUMS or SHA256SUMS, with the corresponding md5sum at the end replaced with sha1sum or sha256sum
precise in the URL can of course be replaced with whatever release you're downloading.


Burning OGG compressed file to CD with Brasero

As mozzbozz said, your burning program obviously creates a standard audio cd to playback on every cd player. Therefore all audio files are converted into cd audio format. You ever heard of cd quality as reference for good audio quality in comparison with compressed formats like mp3? All standard audio cds have 44,1kHz sampling rate and 16bit stereo, no matter what the source had.

So you have to burn something like an mp3 cd, but this can not be read by old players. Or you have to burn at least 4-5 standard audio cds, but then you can have excellent quality and play it on every device. (Use the uncompressed source files then!)


Fail to run a .NET 2.0 application with mono 2.6.7

The application is looking for the 'System.Windows.Forms' assembly, which is in the package libmono-winforms2.0-cil.

If you want to install all of mono & its dependencies, you can install mono-complete.


As it was already pointed out that A2DP is unidirectional, you have to switch to HSP profile every time you need to use the microphone. But doing so manually is not ideal, and unless application sets media.role=phone for the stream (most non-voip apps don't), pulseaudio won't switch it automatically by default.

But starting from Pulseaudio v. 11.0, it's possible to automatically switch the profile whenever microphone access is requested by the application, but it's disabled by default.

Find load-module module-bluetooth-policy line in /etc/pulse/default.pa
Change it to load-module module-bluetooth-policy auto_switch=2

Now pulseaudio will switch the device profile to HSP whenever microphone access is requested and change it back to A2DP after stream is closed.

You need to reload pulseaudio module after this for the changes to take effect:

pulseaudio -k
pulseaudio -D


Icons too big after update Ubuntu GNOME 16.04

I used the steps here to downgrade nautilus to 3.14, and I'm never ever updating anything again, because everytime I do it something in Ubuntu breaks (last time was grub).


Screen brightness turns to the minimum when I try to change it

This is me from another account. I finally found a solution for my problem (although it seems rather 'hacky', but hey, at least it works!)
Using this question as a guide, I created the /etc/rc.local file (which for some reason I do not know of, was not there in the first place), with the following contents:
#!/bin/sh
sh /home/dante/scripts/initial_brightness.sh

This runs the following script on reboot, which sets the initial brightness to the maximum, so when I try to change it, it does not go back to the minimum possible value anymore.
#!/bin/sh
cat /sys/class/backlight/amdgpu_bl0/max_brightness > /sys/class/backlight/amdgpu_bl0/brightness

In my case, these files were located inside amdgpu_bl0, but I believe it can vary from system to system.
Remember to make both /etc/rc.local and initial_brightness.sh executable, using sudo chmod 755 (script location), and make root own /etc/rc.local using sudo chown root /etc/rc.local.
On a side note, for obvious reasons I won't be marking this answer as accepted, since it feels like cheating if I mark my own answer on another account, but I'll post it in the hopes of helping anyone who has the same problem as me.


Dual boot Windows 7 UEFI Raid with Ubuntu 14.04 Grub2 Problem

In theory, it should probably be working, although your use of RAID on Windows might have thrown a monkey wrench into it. I can think of a number of possible solutions. The first is to edit /etc/grub.d/40_custom and create an entry resembling the following:

menuentry "Windows 7" {
    insmod part_gpt
    insmod chain
    set root='(hd0,gpt1)'
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

You may need to change (hd0,gpt1) to identify the EFI System Partition (ESP) where the Windows boot loader is stored. With this done, type sudo update-grub to add the manual entry to GRUB.

A second option is to run Boot Repair, which often does a better job of identifying strange GRUB setups than do the stock Ubuntu GRUB scripts. The danger is that Boot Repair occasionally makes matters worse, particularly with exotic setups. If you run Boot Repair, be sure to save the URL that it gives you. If it doesn't work, you can post that URL back here to give us more detailed information about your setup.

Finally, you could try my rEFInd boot manager. If you do this, I recommend you start with the USB flash drive or CD-R version; you can try these without making changes to your disk setup or boot loader options list, so the risk factor is very low. If you can boot both Ubuntu and Windows from the rEFInd external medium, install the raw Debian package or PPA in Ubuntu.

You can try these options in any order you like.


Is there a way to switch from Fedora without wiping the home partition?

without wiping home partition

Maybe but I would not advice it. Redhat Fedora and Ubuntu are different though you can share a /home between the 2 if you remove Fedora you will have files on your disc that are useless.

I would do it like this:

Install gParted, resize disc, make unallocated space and create a new partition in that unallocated space.
Move the files you need to save to that new partition.
Install Ubuntu with format and mount the new partition without a format.
Move files from the back-up partition to you new /home

Tip: separates the root ("/") and your personal file ("/ home"), creating two partition (one for "/ home" and one for "/"). Thus, in case of re-installation, there will be no need to save the file in "/ home" (you'll just have to mount the correct partition in "/ home" without formatting)


Open a pair of tabbed terminal windows with titles

Try this:

gnome-terminal --tab -t "watch" -e "watch ps -ef" --tab -t "top" -e "top"

It seems that gnome-terminal ignores --tab if there is only one in the command line. You have to provide at least two --tab to have some effect.

The command to execute is given by -e or --command. I used watch and top in my example because they run indefinitely so the tabs will stay open. Once the command is done executing the tabs will close themselves. Read this answer for how to prevent the tabs from closing once the command is done executing.


How to enable SSH on boot in Ubuntu MATE

I think the command you're looking for is:

sudo systemctl enable ssh

(Note the letter "l" at the end of systemctl, rather than the number "1" at the end of systemct1 as you currently have it in the question.)