What happens to /usr/bin/parallel if I install the moreutils on top of the parallel package?

Ubuntu 18.04 and later

If you install any one of the packages, it will provide /usr/bin/parallel. If you install both in any order, you will get

/usr/bin/parallel with GNU Parallel
/usr/bin/parallel.moreutils with moreutils’ parallel

See: How can I install GNU Parallel alongside Moreutils on Ubuntu/Debian?

Ubuntu 16.04

It will not be automatically renamed. I can’t test it, but my guess is that either will the parallel package be removed or – worse – the file will be overwritten.

A workaround to prevent the moreutils package from being accidentally removed or installed is a hold:

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

sudo apt-mark hold moreutils

This will prevent any automatic installation, however it can easily be overridden with apt-get’s --ignore-hold flag.

A similar alternative (but maybe not so easy to override?) is pinning as explained in this answer to the relevant question How to forbid a specific package to be installed?.


Messed with DNS, now does not connect to Internet

sudo /sbin/dhclient -r releases (-r) the IP address obtained from your DHCP server. That is what caused your connection to drop, since now your machine does not have an IP address to communicate to the network.

To fix this issue, you should simply request a new IP address. But first, we'll make sure that it is released by executing this command:

sudo /sbin/dhclient -r wlan0

Then to request a new one from your DHCP server, simply do:

sudo /sbin/dhclient wlan0

(Assuming that your wireless interface is called wlan0. If it isn't, take a look at the output of iwconfig and find out the name of the entry that has wireless information next to it).

That command should complete fairly quickly and you'll see that an IP address has been assigned to your interface. Now try browsing the internet.


Ubuntu server 14.04 after install, don't boot

I deleted the raid configuration, I disconnected the one disc and I used only one hard disk.

I installed again the ubuntu server and the problem solved..


How do one uninstall a program installed with Flatpak [Xubuntu 18.04]

Additional info on how to uninstall the package manager Flatpack
As I also wanted to uninstall the package manager Flatpak as well I took the time to look up how to do that and thought I would collect it here as a future reference for anyone in need of this info.
In short:
Uninstalling flatpak and its dependencies
sudo apt-get remove --auto-remove flatpak

Purging the config/data too
sudo apt-get purge --auto-remove flatpak

More info here:
http://installion.co.uk/ubuntu/yakkety/universe/f/flatpak/uninstall/index.html
After that I did check the /var/lib/flatpak where Flatpak resides, and to my shock I discovered the folder took up a whooping 4.2 GB of massive space, all that after a couple of days trying  it out and having 3 programs installed (Atom, Audacity, Gimp).
Looking around the internet one will come across a few comments on this matter how much space Flatpak uses and fails to clean up after itself after uninstalling it.
More on this here: https://github.com/flatpak/flatpak/issues/1391
Anyhow, I went on and deleted the folder and its content with the following line:
rm -r -f /var/lib/flatpak/

Obs! Be careful with this command, read more on how to remove folders and its content here:
How do I remove a folder?
There is one more folder with, in my case, a tiny amount of data which I also removed.
/home/YourUserName/.local/share/flatpak/

I think that should have most traces and data of Flatpack removed.

And as noted by @mook765 in his comment above I had to change from
flatpak --user uninstall io.atom.Atom

to..
flatpak --system uninstall io.atom.Atom

to get the program uninstalled.


How do I get the values of the sRGB gamut and AdobeRGB Rating of my screen on Ubuntu?

You’d need hardware via a colorimeter or spectrometer, as well as software such as DisplayCal.

With that said, neither Windows nor Linux are fully coloring managed operating systems, and don’t even manage window decorations, UI, nor wallpapers. They are colossal failures that leave the job of colour management up to the applications to choose to manage or not.

Bottom line is that if your display is wide gamut you are in for a garishly over saturated and wonky experience on those two operating systems.


Fingerprint Sensor not working in Acer Swift 3 SF315-41

The fingerprint scanner, an Elan Microelectronics reader, is not yet supported. If the device is not supported, the program can't detect it.


How to Dual-Monitor in 12.04 with fglrx?

I have the same card (Radeon 6850), but I was able to configure just using amdcccle installed through Jockey.  Here's my generated Xorg, maybe it will help.

Also, you could consider updating to the newest available driver from the AMD site if you've updated your kernel since the last install of your drivers.  Hope it helps.

Section "ServerLayout"
    Identifier     "amdcccle Layout"
    Screen      0  "amdcccle-Screen[1]-0" 0 0
EndSection

Section "Module"
    Load  "glx"
EndSection

Section "Monitor"
    Identifier   "0-DFP11"
    Option      "VendorName" "ATI Proprietary Driver"
    Option      "ModelName" "Generic Autodetecting Monitor"
    Option      "DPMS" "true"
    Option      "PreferredMode" "1920x1080"
    Option      "TargetRefresh" "60"
    Option      "Position" "1920 0"
    Option      "Rotate" "normal"
    Option      "Disable" "false"
EndSection

Section "Monitor"
    Identifier   "0-DFP10"
    Option      "VendorName" "ATI Proprietary Driver"
    Option      "ModelName" "Generic Autodetecting Monitor"
    Option      "DPMS" "true"
    Option      "PreferredMode" "1920x1080"
    Option      "TargetRefresh" "60"
    Option      "Position" "0 0"
    Option      "Rotate" "normal"
    Option      "Disable" "false"
EndSection

Section "Device"
    Identifier  "amdcccle-Device[1]-0"
    Driver      "fglrx"
    Option      "Monitor-DFP11" "0-DFP11"
    Option      "Monitor-DFP10" "0-DFP10"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Default Screen"
    DefaultDepth     24
EndSection

Section "Screen"
    Identifier "amdcccle-Screen[1]-0"
    Device     "amdcccle-Device[1]-0"
    DefaultDepth     24
    SubSection "Display"
            Viewport   0 0
            Virtual   3840 1920
            Depth     24
    EndSubSection
EndSection


Installing Ubuntu restart error (I'm a noob)

Well, this isn't an answer though currently I'm writing this in my Ubuntu instance. I have no idea what went wrong, all I did was log into Windows, wrote my question, logged back out about an hour later and tried to re-launch Ubuntu to which now it has initiated successfully and I'm able to use.

Thanks -


How to modify version of apt installed package?

I managed to discover that by modify status file under /var/lib/dpkg directory (requires root permission), one would be able to get modified package version which  reflect in dpkg utility output.


Is it possible to install older catalyst versions through jockey?

Using jokey, no, and older versions of drivers required different kernels / xorg configurations, so you will not be able to to so.


Nvidia GT 540M Problem, won't install drivers

GT540M is an NVIDIA Optimus card. Those do not work by default. See also Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?

Now, you shouldn't have installed the drivers from nVidia's website. If you're using a new installation, I recommend doing a clean install. Otherwise, jump into a terminal and run the below command to uninstall the nvidia driver:

sudo sh NVIDIA* --uninstall

(NVIDIA* is actually NVIDIA-Linux-x86*-..run)

To make use of your nvidia card, you could use Bumblebee. Within a few days, a new stable release should be available. Please do not install it from mj-casalogic/bumblebee PPA as it can break your system.


How to install ubuntu-restricted-extras without ttf-mscorefonts-installer

apt-cache show shows the following dependencies: gstreamer0.10-plugins-ugly-multiverse, ttf-mscorefonts-installer, unrar, gstreamer0.10-plugins-bad-multiverse, libavcodec-extra-52, libmp4v2-0

Removing the ttf-mscorefonts-installer and adding the ubuntu-restricted-addons dependency we come up with this:

sudo apt-get install gstreamer0.10-plugins-ugly-multiverse unrar gstreamer0.10-plugins-bad-multiverse libavcodec-extra-52 libmp4v2-0 ubuntu-restricted-addons

However this doesn't solve your problem of the network download during the install. If you're doing a bunch of installations you might want to consider customizing the installer via preseeding or kickstart or something.


postgresql broken after 14.04 despite succesful pg_upgrade

I'm sure there is a better answer than this.   But I had the same error in my dev environment, ran

  sudo apt-get purge postgresql-9.1

and rebuilt everything in 9.3 with no issues.  But I only had a couple users and small databases with migrations scripts, so you may not want to go this route.


If you'd like to run 2 shell scripts in parallel, you can use the following syntax:

script1 & script2 &

As an example take a look at the following test script (named p1):

i=1
while true;
do
    echo "1 $((i++))"
    sleep 1
    if [ $i -gt 10 ]; then break; fi
done

It will count to 10 and echo „1” before the counter. After 10 iterations it quits.

Now if you create a p2 version, just modifying the echo a bit:

    echo "2 $((i++))"

Try to run the scripts with the above syntax:

$ ./p1 & ./p2 &
1 1
2 1
1 2
2 2
1 3
2 3
1 4
2 4
1 5
2 5
1 6
2 6
1 7
2 7
1 8
2 8
1 9
2 9
1 10
2 10

As you can see, both scripts display their output and quit after 10 rounds. Note that the output is mixed, so they run in parallel.


How to connect two ubuntu computers with ethernet cable

The addresses 192.168.1.2 and 192.168.2.1 cannot talk to each other if you use the subnet 255.255.255.0. Notice the third octet (number) of your IP addresses is different, in the answer you linked to they are they same.

You need to either change the subnet mask to 255.255.0.0 or change the IP address of the 192.168.2.1 machine to 192.168.1.1 so that the third octet matches (1). You will then be able to ping one computer from the other.

A crossover cable is not needed. Ethernet devices made in the last 10 or so years support auto MDI-X which eliminates the need for a crossover cable.


Ubuntu 15.04 and later uses runlevel 5 (called as graphical.target) as its default graphical target. Earlier versions before 15.04 used the runlevel 2 as its default graphical mode.

   Runlevels in Ubuntu 15.04+
   ┌─────────┬───────────────────┐
   │Runlevel │ Target            │
   ├─────────┼───────────────────┤
   │0        │ poweroff          │
   ├─────────┼───────────────────┤
   │1        │ rescue mode       │
   ├─────────┼───────────────────┤
   │2, 3, 4  │ multi-user mode   │
   ├─────────┼───────────────────┤
   │5        │ graphical mode    │
   ├─────────┼───────────────────┤
   │6        │ reboot            │
   └─────────┴───────────────────┘

You can see the default runlevel/target in 15.04+ by:

systemctl get-default

If the output of the above command is not graphical.target, you can set it by:

sudo systemctl set-default graphical.target


CMake not installed correctly on my Ubuntu docker image

In the ubuntu docker image AFAIK there's no compiler for C++ pre-installed . And this is also the problem which CMake is complaining about :

No CMAKE_CXX_COMPILER could be found

So you have to install g++ via

sudo apt install g++

or if you want clang++

sudo apt install clang-9

It has nothing to do with cmake . That's actually the CMake's workflow to gather information about your system to actually generate the required Makefiles. If it cannot find the required softwares ( e.g c++ compiler ) or modules (e.g foo.cmake) it generates such errors.

And note that CMake just creates the Makefiles for you and in order to  compile the source code you need to run make.

Best regards :)


Square characters on gnome titlebar and some system settings

problem solved after reinstalling fonts and rebooting :

sudo apt-get install msttcorefonts
sudo fc-cache -fv


Boot partition full, failing to delete old kernels. Broken packages

By using linux-purge

I have created a helper script for this purpose. It is called linux-purge and its project page is here in Launchpad.net. In the announcements section there are installation instructions here.

In this specific case you would run

sudo linux-purge --fix

Manual method

As an alternative, there are instructions on how to do the task manually at Communiy Wiki Help which I have contributed to (as jarnos).

Anyway, here are my manual instructions as an archive:

First remove any leftover temporary files from previous kernel updates.

sudo rm -rv ${TMPDIR:-/var/tmp}/mkinitramfs-*

(There may be some due to bug in Ubuntu 16.04 and older.)

List the successfully installed kernels excluding booted kernel by command:

dpkg-query -W -f='${Status} ${Package}\n' | awk '/^[^ ]+ ok installed linux-image-[0-9]+/{print $4}' | grep -Fv $(uname -r)

Delete the initrd.img file of an unneeded kernel (due to bug); here the chosen kernel release is 4.2.0-23-generic:

sudo update-initramfs -d -k 4.2.0-23-generic

Purge the kernel by

sudo dpkg --purge linux-image-extra-4.2.0-23-generic linux-image-4.2.0-23-generic

to free some space in /boot. If the command fails, some installed package depends on the kernel. The output of dpkg tells the name of the package. Purge it first.

You may also purge respective header package

sudo dpkg --purge linux-headers-4.2.0-23-generic

and even the common header package

sudo dpkg --purge linux-headers-4.2.0-23

if no other package depends on it; otherwise the command will fail, but it is safe to run.

Then run

sudo apt-get install -f

to fix the broken dependency. If that fails due to insufficient disk space, you have to remove another kernel the way told above.

Note that there still may be too many kernels installed in your system, but now you should be able to purge the extra ones by e.g. sudo apt-get purge followed by kernel package name(s).


From the Sidebar beside the home folder press Go and go to computer.


Auto mount & Permissions on a new hard drive

In a terminal window...

gksudo nautilus

this opens a file view with root permissions.
Right click on the drive you want to change permissions and select properties then permissions.
You can now change the permissions to your username and group from the drop down lists.


Where can I find a tutorial on setting up a secure mail server?

Here are a couple of Digital Ocean tutorials that have been well received:

How to run your own mail server with mail in a box on Ubuntu 14.04

How to install and setup postfix on Ubuntu 14.04


I fixed this problem by changing my preferred server from EU West to NA.


Dual boot system fails to boot at all! Help

Yeah, I used to do this such of mess moving partitions too.
forget the grub rescue, download the grub rescue cd:
http://sourceforge.net/projects/boot-repair-cd/
run it in a USB stick or a cd and it will restore the boot to ubuntu automatically.

or you can use any debian-based live cd and follow these steps:
boot the live cd, chose try ubuntu/debian/etc., open a terminal and then run these commands:

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

sudo apt-get install -y boot-repair && (boot-repair &)


Nvidia Driver won't install on Ubuntu 20.04

You have the correct Nvidia 440 proprietary graphics packages from the default Ubuntu 20.04 repositories installed, but the integrated Intel graphics processor is being used instead of Nvidia graphics. Disable Secure Boot in BIOS/UEFI.


How to remove a directory without a name?

First you should know that this directory has a name but it's made of non-printable characters .

You can try this scenario:

Find out file inode:

ls -il

Output should be like this example :

261145 drwxr-xr-x 10 mnevile mnevile 4.0K Sep  9 15:45

Note: Here, 261145 is the inode number.

Then you can try:

find . -inum 261145 -exec rm -rfi \{\} +


A new Sandisk Ultra usb 3.0 stick reformatted to ntfs stopped working when accidentally full

In the terminal, run this command:
fdisk -l | grep Disk

Hopefully, its block device will be listed.
I will assume it showed at /dev/sdb.
Warning! Failure to type the correct block device could result in complete data destruction on your computer's internal HDD.
Next we will wipe it completely:
sudo dd if="/dev/zero" of="/dev/sdb" #Replace "of" accordingly

After that, hopefully you'll be able to format it in Gparted.


Facebook online account (it's in development, ask administrator to have access)

When you add a facebook account into Gnome Online accounts, you will have the ability to view the photos associated with your facebook account in the Gnome Photos app.
Similarly, if you were to add a gmail account, Nautilus just adds my gdrive and gdocs as shortcuts within the file browser.


Manual installation of dependencies is difficult and long process.
So I would recommend to install the DisplayCAL application using Flatpak:
sudo apt-get install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

flatpak install flathub net.displaycal.DisplayCAL


Log in loop following environment change

You assumed that /etc/environment is a script file which expands variables. It's not.


I had the same issue. I had to turn off in the bios the hyperthreading and multiprocessor until the installation was done.


How to access ubuntu partition from windows using virtualbox

I usually install Samba on the client OS, and access it as a network share from the host OS.

You may also want to have a look at the feature Shared folders in VirtualBox.


I've come across the same problem and I fixed it.

Check if there is any metadata files that have only the root read/write access in the ~/.local/share/gvfs-metadata/ directory
Open your file manager as root and change the access or remove those files (I removed them)...
Restart your user session and it should be fixed. Did the trick for me.

I knew those files were wrong because no file should have only the root access inside your home directory unless you've set it up explicitly.


Virtualbox suddenly doesn't connect to networks

Try changing the network from NAT to bridged.  This will put the VM directly on your network and allows you to select which underlying network adapter you want to share.

iwconfig won't help with guest OS because the virtual machine hides the fact that you are using wireless.  The guest OS thinks it is connected to the network using a wired connection.

Edit: After using a bridged connection, on the guest os try this:

dhclient eth2


Can't login to Ubuntu 14.04 due to ntfs partition auto mount I guess

Selected recovery from grub menu.
Selected root shell.

Remounted it in write mode

mount -w -o  remount  /

Edited fstab

nano /etc/fstab

Saved it and restated and it is working fine now.


Upgrade VirtualBox headless 4.2 to 5.0 on Ubuntu Server 14.04

Finally I have managed to set up virtualbox 5.0 up and running with all my virtual machines. I uninstalled virtualbox 4.0 using apt-get remove instead of apt-get purge, and apt-get install virtualbox-5.0 kept all virtual machines registered. The only problem was that RPD connections weren't available in my headless installation because I didn't upgrade the VirtualBox extension pack. I noticed the problem after checking current extension packs by doing vboxmanage list extpacks, and replacing the old extension pack with the latest one. To wrap up, in case it can help to others these were the steps I followed:

sudo apt-get remove virtualbox*
sudo apt-get install virtualbox-5.0
sudo vboxmanage list extpacks
sudo vboxmanage extpack install --replace 'Oracle VM VirtualBox Extension Pack' <new Oracle VM VirtualBox Extension Pack file>


How to give input to a script running using nohup?

If it is a bash script you could use a signal.

For example, this script will trap the signal SIGUSR1, do the cleanup and exit. If the signal is not received, it will end after 60 seconds:

#!/bin/bash

function graceful_exit()
{
  echo "Graceful exit..."
  # your cleanup commands
  exit 0
}

trap graceful_exit USR1

sleep 30 & wait $!

echo "Normal exit"

So, you run the script:

$ nohup script.sh

Then, you send the SIGUSR1 signal with kill using the PID you said you had:

$ kill -SIGUSR1 PID


how to install etcher on xubuntu 16.04.4 please?

Etcher is provided as as AppImage. Download Etcher from https://etcher.io/ and unzip it. Now you can directly start the Etcher AppImage.

At first start it asks you if you want to create a desktop file. This is not mandatory but quite useful if you want to start it from your Ubuntu launcher. If you select "No", it will ask you next start again, so you can try Etcher without creating a desktop file immediately.


How to implement this scenario using Terminal? (in Ubuntu 14.04.5 LTS)

Some of what you describe can be managed via normal permissions by controlling the rights at the user or group level accordingly. For the first scenario however, by nature of giving Alice (a 'he' apparently, poor guy) full rights to /home/adm/alice means that Alice would likely own that folder and thus, be able to remove it.  To do this at the group level so the parent folders would be owned by a different administrator, say root, but still give individual rights to Alice or Gabi isn't achievable with standard permissions, which only control 'rwx' for the User, Group, and Others (everyone else).

For more fine-grained control, you would need to use Posix extended
ACL's.

For more information in the context of Ubuntu, read this:  https://help.ubuntu.com/community/FilePermissionsACLs

Hope that helps,

tca


Using fgrep to filter out directories with files:

$ find -type d | \
  grep -xFv -f <(find -type f -printf %h\\n)


No boot after resizing my hard drive ubuntu 12.04

Problem solved I was flagging the wrong partition to boot
What I had to do is just flag the whole  extended partition not only the  booting one


Ubuntu 18.04.4 + chrome + Xvfb - segmentation-fault after recent update

I had the same issue, and changing the DPI / Resolution in my Xvfb config solved the issue:

Xvfb -screen 0 1280x800x24 -ac -dpi 96 +extension RANDR :99

Hope this help.


Excursus: PAE on Banias CPUs
The T41 has a Pentium-M CPU, which came in "Dothan" and "Banias" flavors. Both are PAE capable, but the Banias CPU doesn't advertise this via the CPUID.
To work around this issue, a patch was included in the linux kernel from version 3.15 on. This patch recognizes the Banias CPU and, in conjunction with forcepae, enables PAE on these CPUs.
How to boot a PAE kernel on Pentium-M
At the boot menu screen the options are
1.Install
2.Command-line options
3.Advanced options
4.Help

With the cursor on the top choice press F6.
A menu with a number of options appears. The option forcepae is not there, so press Esc to close the list.
Now a string of options is visible, often with quiet or quiet splash -- at the end. Add forcepae to the string before and after the two dashes ("forcepae -- forcepae").
Press return, and the installation begins.
Depending on the version of the kernel you're using, you may see a warning about forcepae being experimental, you can ignore this on a Banias CPU.
The forcepae option must be entered twice, before and after the delimiter "-- ", so that it is applied to both the kernel on the ISO and the kernel on the system after installation. This is a change from older installs where only one parameter was sufficient. The change applies to Ubuntu Server 14.04.2, 15.04 and later (although it will do no harm to use it on early releases).
Technical note: After booting, dmesg | grep -i pae will now show PAE forced!. You can use this as a check.
From https://help.ubuntu.com/community/PAE


openSUSE Leap 42.1 and Ubuntu 14.4.03 boot issues

Most distributions provide GRUB configuration scripts that try to identify all the OSes on the computer and boot each one correctly. This often works fine, but sometimes it doesn't. In these cases, you have several options, including:

Manually add the options you want to GRUB -- You can edit the /etc/grub/40_custom file to add custom entries to boot your other OS. (If the default loader keeps changing automatically, you might need to do this on both distributions.) This question and answers describe how to do this to add Windows to GRUB; adding a second GRUB would be similar. There's also the GRUB Customizer application, described here, which may be helpful.
Create a 100% manual GRUB configuration -- You can go one step further from the preceding and create your own 100% custom GRUB configuration. The trouble is that automated scripts will try to wipe it out, but if you can disable those scripts, this approach should work pretty well. A variant of this is to set up an isolated GRUB in its own directory (say, /boot/efi/EFI/grub). This old page provides instructions on doing this. Note that you really do want that page, not the newer one it says is more up-to-date.
Use the firmware's boot manager to choose which GRUB to launch -- If each distribution's GRUB can boot its own OS, then you can use your firmware's built-in boot manager to select which one to launch. Typically, this boot manager is accessed by hitting Esc, Enter, or a function key (usually a high one, in the F8-to-F12 range) as the computer powers on.
Add a third-party boot manager to choose which GRUB to launch -- Some computers have poor built-in boot managers, or require you hit the right key during such a short period of time that doing so is next to impossible. For them, you could use a third-party boot manager, such as gummiboot or my own rEFInd, to select which GRUB to launch. This option leads in to the next one, though....
Switch to another boot loader entirely -- The Linux kernel can function as its own boot loader. Thus, if you use another boot manager, you can use it to launch the kernel directly, bypassing GRUB entirely. (A boot manager lets you choose what to boot, whereas a boot loader loads and executes a kernel.) There are also other boot loaders, such as ELILO and SYSLINUX, which are easier to manually configure than GRUB 2. In sum, you have a lot of options to move away from GRUB. See my Web page on the subject for my detailed thoughts on them, or my answer to this question for a summary.

That list is probably not exhaustive; it's just the possibilities that spring to mind. Overall, I'd say that tweaking the GRUB configuration (either by manually editing 40_custom or by using GRUB Customizer) or switching to rEFInd are likely to be your best bets. The other options are more difficult, more awkward, or halfway efforts. (OTOH, some people are quite happy with each of those options, so they are worth considering.)


Virtualhost Serveralias does not display pictures

That did the trick: "serveralias mydomain.com www.mydomain.com" deleted and replaced by "serveralias www.domain.com".
As simple as that :)

Fred aka Cheeseburger


Why i get this error while installing graphics file and how can solve it?

You have to install development package for the SDL library by:
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install libsdl1.2-dev

and then resume the compilation process.


How do I dual boot Ubuntu and Kali on one external hard drive?

From your output it appears that you only have Windows installed on your first Hard Drive (/dev/sda).  You have most likely selected that as your default boot drive.  Windows can't read a Linux partition, so its boot manager can't boot to a Linux install.

On the other hand, the default Ubuntu boot manager, Grub, can boot to either Linux or Windows.  If you installed Grub on your primary drive when you boot to your first drive you would have the option of all the OSes in your Boot menu.

You could alternatively select your second drive as your default boot drive.  Update your grub boot manager on that drive and it will scan all your attached drives and add all installed OSes to the boot menu.  The command to update the grub boot manager is:

$ sudo update-grub

Now when you have that drive selected via your bio drive boot order as the default boot drive you will have all your OS installs (all the Windows and all the Linux installs) listed as options in your boot menu.

I see two Linux install in your output.  They are:

/dev/sdb1 - a 146G partition
/dev/sdb3 - a  73G partition

You could attach any number of drives (external or internal) and install other Linux OSes to it.  The install will install (update) the default grub boot manager and have all your OS installs including the new one in the boot menu.

You could use a disk partition editor such as gparted to rearange your partitions (resize, move, or create) so that you can have a partition of a new OS install on one of the current drives you have (/dev/sda or dev/sdb).  After you have a partition for your install, just run the live Ubuntu disk and install any additional Linux version you with to have included in your boot menu.


This is the problem which I faced too. It is because of the programs which are creating the problem. If you have any programs which you frequently use and when it is open the ubuntu freezes most of time then reinstall or uninstall it. If this doesn't fix your problem then scan and repair any corrupted or damaged files with the help of a 3rd party software. And at the end if this too doesn't fix it then backup your files and reinstall ubuntu.


I've spend weeks to remove some conflicts of libraries and ffmpeg got installed. But unfortunately I installed it in /root/bin/.

Typing this in the terminal fixed it for me:

cp -r /root/ffmpeg_build

cp -r /root/bin/{ffmpeg,ffplay,ffserver,x264,yasm} /usr/local/bin/

And it's working fine.


x201 tablet touch screen works like touchpad and not touch screen. stylus works however

It seems that your touch device works in relative mode. You need to switch it to the to absolute mode -- the same as your stylus. To do this try:

xsetwacom set "Wacom Serial Penabled 2FG Touchscreen touch" mode absolute

Note that your name of the device might be slightly different (this is from X200T). To list your devices run:

xsetwacom list


ZFS on Linux: Setting up NFS on Ubuntu 14.04

To restore the exports use zfs share -a.  This will happen at boot if you set ZFS_SHARE="yes" in /etc/default/zfs.

Your manual setup looks okay, but you did not make it clear if your data/music_lossless zfs is actually mounted on /mnt/data/music_lossless.


Allow specific mac address access to remote server through the ubuntu firewall

You mention that the server is remote, so it might not be possible to do what you want. Why not? Because Machine Address Codes (MAC) do not span gateway boundaries.

If your client computer is on the same sub-net as your remote server, then its MAC would be in the ethernet information and could be handled by iptables. Example:

sudo iptables -A INPUT -i $EXTIF -m mac --mac-source 00:14:BF:BC:25:EE -j ACCEPT

where $EXTIF in my case is "enp4s0".

I do not know if ufw (a front end for iptables) can do this or not.


Unable to Boot into Ubuntu after re-installing Windows 7

If you have a Ubuntu Live CD , then start Live session .

In The Live session , open your terminal and type this

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

Give a Enter shot

and then type this

sudo apt-get install -y boot-repair && boot-repair

then it will open boot-repair as shown in image there select Recommended Repair Option . It will do the job of restoring your GRUB and then give a restart . remove your CD . There you go with your GRUB .

Source :https://help.ubuntu.com/community/Boot-Repair


What is the most accurate estimate for the current number of Ubuntu Desktop users?

I'm going to post an amalgamation of statistics of web visitors, from many different sites.

From W3schools, which is likely to be biased in the favor of Linux, we have 5.6%, (34.5 for Windows and 9.9% for Mac). It's likely to be biased because it's a coding site, and lots of coders use linux.

The Stack Overflow Developer survey found that of the 20.5% of people that use "Linux", 58% use Ubuntu. That seems a little high - we may be able to get a more accurate number.

As of June 2015, Wikimedia said that 16.36% of visitors had Linux. This is broken down into 15.01% Android and just 0.48% Ubuntu. Each month they had
1,237,511,100 requests from Ubuntu machines.

StatCounter thinks that 5.38% of people use "Other" as of Dec 2015. This is exclusively Desktop OSes, but that includes all Linux distros.

Web-Stat says that 1.1% of visitors use Linux, and 60.3% use Windows

Statista lumps Ubuntu in with "Linux", and puts it at 4.53%, and here at 4.03%. Finally, Linux is 1.43% here.

Net Marketshare puts "Other" at 5.14%. It also suggests Linux is 1.66 or 1.62%

Piwik put Linux at 6.3% for January 2016.

The average for "Linux" and "Other" is 5.80%. 50% of these users being on Ubuntu and variants seems reasonable, so around 2.9% of internet users are on Ubuntu. Let's call it 2.5%.

And for the number?

ITU estimated that as of 2015 there were 3.2 billion internet users.

2.5% of 3.2 billion is 80 million Ubuntu users. This is short of the 200 million that was aimed for, but double the 40 million Ubuntu.com mentions as of 18th June 2015.


In bash execute umask 000 and then every directory you create will have permissions 777 and every file you create will have permissions 666. You can't create executable files by default, you need to explicitly make them so using chmod. It is a security feature.

Note that the umask is "bitwise xor" of the desired file permissions and to get the most permissive mode of 777 you need to use umask 000.

In recent Ubuntu systems you set the systemwide umask in file /etc/login.defs. Older systems use /etc/profile.

Please do have in mind that people who create operating systems know a thing or two about security and have chosen umask 022 for a reason. You will make your computer quite insecure if you follow this advice.


This is likely UEFI related. Usually on new computers (which use UEFI instead of BIOS), when selecting the device to boot from, you should have the choice to use UEFI or non UEFI mode for the USB stick. Depending on your choice, the respective bootloader is installed during Ubuntu installation (in other words, if you choose wrong here, the system might not boot after installation). If you have this choice, use the UEFI mode - if your computer does not use UEFI, you don't have the option anyhow. If you used EFI during installation and your system doesn't boot nevertheless, check your EFI settings for an option called quick boot or similar and disable it.

If you don't get the installation to work in EFI mode , you can use BIOS emulation. To enable it, open your EFI settings and disable EFI booting, secure boot, etc. If there is a setting that let's you choose between EFI and BIOS boot mode, select BIOS.

Check also the article on the Ubuntu Wiki about UEFI (or maybe it's called EFI?)


Athena is currently under HEAVY development stage (read - absolutely utterly incomplete) and it's kept on a private BitBucket repo for the time being.
So installing it is not possible for now.


Ubuntu Hangs on Boot After Installing "gnome"

After purging gnome, your pc is still trying to boot in using gnome display manager. So , you must change your display manager. so try sudo dpkg-reconfigure lightdm and change your display manager to lightdm.


Tuns out that wpa_cli is not setting the ap_isolate correctly (reported here).
So I had to create the hotspot using hostapd and dnsmasq. I followed the instructions here and set the ap_isolate=1 in the hostapd config file: https://www.shellvoide.com/wifi/setup-wireless-access-point-hostapd-dnsmasq-linux/


There are two versions. Classic rsh-{server,client} and the newer rsh-redone-{server,client} (which still has no encryption but has support for things like IPv6).

$ apt-cache show ^rsh  # output is trimmed

Package: rsh-server
Description-en: server program for remote shell connections
 This package contains rexecd, rlogind and rshd.

Package: rsh-client
Description-en: client programs for remote shell connections
 This package contains rsh, rcp and rlogin.

Package: rsh-redone-client
Description-en: Reimplementation of rsh and rlogin
 Rsh-redone is a reimplementation of the remote shell clients and servers.
 It is written from the ground up to avoid the bugs found in the standard
 clients and servers. It also fully supports IPv6.
 .
 This package provides rsh and rlogin.

Package: rsh-redone-server
Description-en: Reimplementation of rshd and rlogind
 Rsh-redone is a reimplementation of the remote shell clients and servers.
 It is written from the ground up to avoid the bugs found in the standard
 clients and servers. It also fully supports IPv6.
 .
 This package provides rshd and rlogind.


WiFi is disabled by hardware switch on toshiba tecra A9

This problem seems to happen from time to time and dissapears automatically. I suspect it's due to old hardware (laptop +- 7 years old) so maybe the wifi card (which is soldered on the mb unfortunately) is malfunctioning.


The video that you have just watched is 100% legit way of updating your kernel. To summarize things up you basically download 4 kernel files

Linux-image
Linux-image-extra
Linux-headers-generic

You download first 3 based on your OS bit so 32bit - i386 or 64bit - AMD64

The

Linux-headers-all

is for both OS architecture

once you have those files downloaded you open terminal and locate files that you have just downloaded using

  cd

command and then simply execute the installation process by running

  sudo dpkg -i linux*.deb

Notice that it is good thing to remove all other .deb files from the folder that you downloading kernel files so they won't mess up during installation.


Open terminal with Ctrl+alt+T and put this command:

sudo apt-get install ubuntu-restricted-extras

This solution solves the problem for me.


The solution lies in using update-alternatives(8). For more information on the reasoning behind it, refer to What exactly does `update-alternatives` do?

sudo update-alternatives --install /usr/bin/qmake qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake 100

followed by:

sudo update-alternatives --config qmake

to make sure the qt5 version is being used. This will update /usr/bin/qmake to point to the qt5 version.

A side note: You may need to check /usr/bin/ to see if there is already a symlink. If it is not managed by update-alternatives then you may need to manually remove or rename it for this to work.

Hope that helps!


Dual-monitor nvidia xorg settings are reset after login

The following fixed the issue:

I manually upgraded the NVIDIA drivers to 319.32 (may not have been necessary)
I modified the xorg config file MetaModeOrientation options to the following:

Option         "MetaModeOrientation" "CRT RightOf DFP"


"/usr/sbin/grub-probe: error: failed to get canonical path of `'."" when using grub customizer

Im not familiar with grub customizr, but i assume it will call the underlying scripts, namely grub-mkconfig which might fail here.

Run the debug command from here Debian Bug 736928

sudo sh -x /usr/sbin/grub-mkconfig >/dev/null 2>grub-mkconfig.err

and look at grub-mkconfig.err, which showed me what the problem was for me, a customized 00_header file which was not valid anymore.

You might also be facing a problem where GRUB is installed into /boot/grub/i386-pc but the GRUB_PREFIX variable isnt set anywhere, just like mentioned here.

Fix this by making a backup of /usr/sbin/grub-mkconfig and add the following lines at the top, where the other variables are set

GRUB_PREFIX="/boot/grub/i386-pc"
export GRUB_PREFIX

You might just set the variable somewhere else, thats up to you.


How can I disable tap-to-click on Apple Magic Trackpad?

If you're using Ubuntu 18.04 or higher you should be able to enable/disable this feature by using gnome-tweak-tool. If you need to install the gnome-tweak-tool, you could do that through the terminal:

$ sudo apt install gnome-tweak-tool

Then run tweaks, navigate to the Keyboard & Mouse-section. Under the Touchpad/Mouse Click Emulation headline select disabled.


I've covered running a single application on a stripped down machine a few times on the site but I think the following is the pinnacle:

How to install one GUI program on Ubuntu Server?

I was calling Boxee (a XBMC fork) at the end of the script but you could replace that with your command to start a RDP client. I'd suggest you install rdesktop and then on boot launch:

rdesktop -f <server-ip>

These are both in the Universe section of the repo so make sure your /etc/apt/sources.list contains a line like this:

deb http://archive.ubuntu.com/ubuntu precise universe
deb http://archive.ubuntu.com/ubuntu precise-security universe

Obviously, substitute precise for whatever version you're using. After they're added, run a sudo apt-get update and then you should be able to install nodm and openbox packages. You probably don't need openbox though as you're only running a single window.


If you want to mirror a directory skeleton and copy no files:

find -type d -links 2 -exec mkdir -p "/path/to/backup/{}" \;

What's going on here:

Find is only selecting directories
We're using -links 2 to find the deepest possible directories.
mkdir -p will make any missing directories along the way.

I've done it like this rather than find -type d -exec mkdir -p "/path/to/backup/{}" \; because it'll cut out on a whole buttload of mkdir calls. We can quickly prove this with a little test. Here's the test tree followed by what I ran to compare the two commands:

$ tree
.
├── dir1
│   ├── dir2
│   │   └── dir3
│   ├── dir7
│   └── dir8
└── dir9
    └── dir0

$ pr -m -t <(find -type d) <(find -type d -links 2)
.                               ./dir1/dir8
./dir1                          ./dir1/dir2/dir3
./dir1/dir8                     ./dir1/dir7
./dir1/dir2                     ./dir9/dir0
./dir1/dir2/dir3
./dir1/dir7
./dir9
./dir9/dir0

And that's only going to get better in a real-word solution with thousands of directories.


Multiple network cards, I lose internet on reboot

I've solved the problem by installing NetworkManager as my netplan renderer instead of networkd, using the exact same file and configuration, I just change to NetworkManager as renderer and everything works like a charm.

So it looks like networkd is having problems setting up my NICs, any ideas ?


Why is gksu no longer installed by default?

After a long discussion on #ubuntu-devel I now understand the thinking.

gksu can be installed on 13.04 with sudo apt-get install gksu and it will work.

If you decided to install gksu and are using the 64-bit version you'll need to run gksu-properties once to set the authentication to sudo.  There is no need to do this on 32-bit as it's set to sudo by default.

However gksu is not recommended any more and it may be removed entirely from future issues of Ubuntu.  In general the development team would prefer us not to use GUI applications as root but to use sudo and the command line instead.

In the long term pkexec is preferred however it's not very easy to use at the moment.

pkexec allows an authorized user to execute PROGRAM as another user. If username is not specified, then the program will be executed as the administrative super user, root.

see the man page man pkexec for more information.

In the mean time you can open a terminal CTRL+ALT+T or search for terminal in dash.

Do not close the terminal until you have finished this is important as the GUI program is a child of the terminal and if you close it the GUI program will also close.

Enter sudo -i

You are now logged on as root so can make the changes you want for example

gedit path_to_file

to edit a configuration file, or

nautilus

to run the file manager

When you are finished close the GUI application then in the terminal

exit

You can now close the terminal.


Lubuntu on Virtual Machine: (minimum) disk space requirements?

There is no difference in disk space requirements depending on whether you install Ubuntu on a physical or on a virtual machine. I even can't think of a possible reason for those requirements to be different - are bytes only 6 bits when you run on VirtualBox? Just joking.

The amount of disk space the installer requires to proceed with the installation, however, is not calculated based on real disk usage - this is a ballpark figure which is hard-coded in the installation script, and is around 2 times more than the space which will actually be taken after the install - to allow for copying, creating temporary files and other stuff during the installation.

I'm finding that the figure is a bit on the safe side, so if you want to install, say, Lubuntu on a machine with only 4Gb of disk space you can edit the installer script and adjust the amount of disk space the installer requires. I don't remember the exact location of the file to be edited though.


"network DISABLED" on new installation on Dell Inspiron 15 3000 Series laptop

The Wi-Fi is blocked by dell_rbtn. You need to blacklist it.

Run in a terminal

sudo tee /etc/modprobe.d/blacklist-rbtn.conf <<< "blacklist dell_rbtn"
sudo modprobe -r dell_rbtn && sudo rfkill unblock all

Wi-Fi should work.


i have downloaded qt-everywhere-src-5.15.0 how to install or use it

Where should I keep this folder and how to use and install it?

tar.gz should go to /opt/ IF intended for every user on the system or in your home into a dedicated directory if for 1 single user.

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.

You need to set export QT_DEBUG_PLUGINS=1 before starting to enable debugging and track the errors or the notices it shows. But the notice has an interesting bit: "xcb" in "" The last "" is an indication some setting is NOT set.


Our sabdfl, Mark Shuttleworth has spoken:

  I'm afraid that won't work with our broader design goals, so we won't
  implement that.

There is a bug report open for this already, status "wontfix"


How do you show the desktop in a blink in Ubuntu?

There seems to be a problem when compiz ("desktop effects") is enabled:
https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/236376

I'm afraid for now the only workaround is to disable all desktop effects.


You can setup this

vi /etc/environment

append these lines

http_proxy=http://myproxy.server.com:8080/
https_proxy=http://myproxy.server.com:8080/
ftp_proxy=http://myproxy.server.com:8080/
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
HTTP_PROXY=http://myproxy.server.com:8080/
HTTPS_PROXY=http://myproxy.server.com:8080/
FTP_PROXY=http://myproxy.server.com:8080/
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com"

and after that

source /etc/environment

and for installation of packages etc...via apt-get
Create a file called 95proxies in /etc/apt/apt.conf.d/, and include the following:

Acquire::http::proxy "http://myproxy.server.com:8080/";
Acquire::ftp::proxy "ftp://myproxy.server.com:8080/";
Acquire::https::proxy "https://myproxy.server.com:8080/";


Feel free to take mine as example. There is no guarantee that it will fit your needs, but I think it can serve as good starting point to create your own. Here is its content, for convenience:

" Configuration file for Vi Improved, save as ~/.vimrc to use.
" Written on 2014-07-16 by Miko Bartnicki <mikobartnicki@gmail.com>.

" use Vim mode instead of pure Vi, it must be the first instruction
set nocompatible

" display settings
set encoding=utf-8 " encoding used for displaying file
set ruler " show the cursor position all the time
set showmatch " highlight matching braces
set showmode " show insert/replace/visual mode

" write settings
set confirm " confirm :q in case of unsaved changes
set fileencoding=utf-8 " encoding used when saving file
set nobackup " do not keep the backup~ file

" edit settings
set backspace=indent,eol,start " backspacing over everything in insert mode
set expandtab " fill tabs with spaces
set nojoinspaces " no extra space after '.' when joining lines
set shiftwidth=8 " set indentation depth to 8 columns
set softtabstop=8 " backspacing over 8 spaces like over tabs
set tabstop=8 " set tabulator length to 8 columns
set textwidth=80 " wrap lines automatically at 80th column

" search settings
set hlsearch " highlight search results
set ignorecase " do case insensitive search...
set incsearch " do incremental search
set smartcase " ...unless capital letters are used

" file type specific settings
filetype on " enable file type detection
filetype plugin on " load the plugins for specific file types
filetype indent on " automatically indent code

" syntax highlighting
colorscheme solarized " set color scheme, must be installed first
set background=dark " dark background for console
syntax enable " enable syntax highlighting

" characters for displaying non-printable characters
set listchars=eol:$,tab:>-,trail:.,nbsp:_,extends:+,precedes:+

" tuning for gVim only
if has('gui_running')
        set background=light " light background for GUI
        set columns=84 lines=48 " GUI window geometry
        set guifont=Monospace\ 12 " font for GUI window
        set number " show line numbers
endif

" automatic commands
if has('autocmd')
        " file type specific automatic commands

        " tuning textwidth for Java code
        autocmd FileType java setlocal textwidth=132
        if has('gui_running')
                autocmd FileType java setlocal columns=136
        endif

        " don't replace Tabs with spaces when editing makefiles
        autocmd Filetype makefile setlocal noexpandtab

        " disable automatic code indentation when editing TeX and XML files
        autocmd FileType tex,xml setlocal indentexpr=

        " clean-up commands that run automatically on write; use with caution

        " delete empty or whitespaces-only lines at the end of file
        autocmd BufWritePre * :%s/\(\s*\n\)\+\%$//ge

        " replace groups of empty or whitespaces-only lines with one empty line
        autocmd BufWritePre * :%s/\(\s*\n\)\{3,}/\r\r/ge

        " delete any trailing whitespaces
        autocmd BufWritePre * :%s/\s\+$//ge
endif

" general key mappings

" center view on the search result
noremap n nzz
noremap N Nzz

" press F4 to fix indentation in whole file; overwrites marker 'q' position
noremap <F4> mqggVG=`qzz
inoremap <F4> <Esc>mqggVG=`qzza

" press F5 to sort selection or paragraph
vnoremap <F5> :sort i<CR>
nnoremap <F5> Vip:sort i<CR>

" press F8 to turn the search results highlight off
noremap <F8> :nohl<CR>
inoremap <F8> <Esc>:nohl<CR>a

" press F12 to toggle showing the non-printable charactes
noremap <F12> :set list!<CR>
inoremap <F12> <Esc>:set list!<CR>a


I'm not sure if this is a valid Ubuntu bug to file

Yes, that's a reasonable bug to file.

To find the right place to file it, you can Google for something like site:launchpad.net ubuntu installer.  I think Ubiquity would be a reasonable place to start - people can always move it if it's not exactly right.

It's also worth searching the web for some keywords around the symptoms you're experiencing eg ubuntu installer keyboard layout, to see if it's already known.

You might read http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

However, I also use Dvorak, and I've never noticed a problem there.  Maybe I just always use the mouse or cursor keys to choose my location?  I tend to install from the Alternate disk and I know there you can choose the keymap using the cursor keys from the boot loader screen.

There's a bit of a chicken and egg thing here, in that the installer wants to use your location to suggest the most likely keyboard layout.  Asking you for the layout first won't help much in guessing a location.


Windows 8 / Ubuntu 13.10 in dual boot - how to make Grub by default to manage it

You probably have Windows installed in EFI mode and Ubuntu/GRUB installed in BIOS/CSM/legacy mode. If so, either of the following should fix the problem:

Prepare a USB flash drive or CD-R with my rEFInd boot manager, boot it, and test its ability to boot both Windows and Ubuntu. If it works, boot to Ubuntu and install the Debian-package version of the program. This procedure will cause the computer to boot via rEFInd, bypassing GRUB.
Boot an Ubuntu live CD or USB flash drive in EFI mode and run the Boot Repair tool. This should fix the problem properly if you boot in EFI mode. If not, it may apply a hackish fix that might work, but could cause problems down the line.

If you try both of these solutions and neither works, post back with the URL that Boot Repair displays. If you prefer to determine if the assumption in my first sentence is correct before proceeding, run the Boot Info Script, post the RESULTS.txt file that it generates to a pastebin site, and post the URL to your document here.


"colormgr get-devices" returns empty list

I had the same problem with Ubuntu Gnome 15.10 (64bit).
I did a fresh install without any other programs. Both, the graphical user interface from Gnome and "colormgr get-devices" (which propably both are using the colord daemon) returned an empty list for me.

But it only appears on gdm3. I installed lightdm from the repository, enabled it, and now colormgr and the GUI work fine.

sudo apt-get install lightdm
sudo dpkg-reconfigure gdm


Edit Libreoffice-Files from Command Line

.ods is an archive. So you will need to extract the archive.
From the documentation:

XML file structure
Documents in OpenDocument file format are stored as compressed zip archives that contain XML files. To view these XML files, you can open the OpenDocument file with an unzip program. The following files and directories are contained within the OpenDocument files:

The text content of the document is located in content.xml.

So it is not as simple as
[a command -insert] Alf|test -file=test.ods

since you also need to insert the XML parts.

$ cd ~/tmp/
$ unzip ../test.ods
Archive:  test.ods
 extracting: mimetype
 extracting: Thumbnails/thumbnail.png
  inflating: settings.xml
  inflating: content.xml
  inflating: meta.xml
  inflating: styles.xml
  inflating: manifest.rdf
   creating: Configurations2/images/Bitmaps/
   creating: Configurations2/toolpanel/
   creating: Configurations2/progressbar/
  inflating: Configurations2/accelerator/current.xml
   creating: Configurations2/floater/
   creating: Configurations2/statusbar/
   creating: Configurations2/toolbar/
   creating: Configurations2/popupmenu/
   creating: Configurations2/menubar/
  inflating: META-INF/manifest.xml

When you look at content.xml and you want to add a new row below the last one you would need to add something like this ...
<table:table-row table:style-name="ro1">
<table:table-cell office:value-type="string" calcext:value-type="string"><text:p>a2a2a2</text:p>
</table:table-cell><table:table-cell office:value-type="string" calcext:value-type="string">
<text:p>b2b2b2</text:p>
</table:table-cell></table:table-row>

before
<table:named-expressions/>

and then zip the files again (zip -r ../test2.ods . from the directory with the files).
Result:

To edit the file from command line I used this command. I put the example in ~/Downloads and made a tmp/ in there to test. All the commands used for this:
cd ~/Downloads/tmp/
unzip ../test.ods
sed 's#</table:table><table:named-expressions/>#<table:table-row table:style-name="ro1"><table:table-cell office:value-type="string" calcext:value-type="string"><text:p>a3a3a3</text:p></table:table-cell><table:table-cell office:value-type="string" calcext:value-type="string"><text:p>b3b3b3</text:p></table:table-cell></table:table-row>&#' content.xml > content2.xml
mv content2.xml content.xml
zip -r ../test2.ods .

All you need to do is replace the text segments with your own.

Newer version courtesy of Terdon (it uses variables to make it better readable):
$ from="</table:table><table:named-expressions/>"
$ to="<table:table-row table:style-name="ro1"><table:table-cell office:value-type="string" calcext:value-type="string"><text:p>a3a3a3</text:p></table:table-cell><table:table-cell office:value-type="string" calcext:value-type="string"><text:p>b3b3b3</text:p></table:table-cell></table:table-row>"
$ sed "s#$from#$to$from#" content.xml

The "#" is a separator. If you have a "#" in the text use something else.


Does ubuntu live cd erase files if you install ubuntu again?

So, to help future users with the same issue:
-Boot into the Live USB
-Click install ubuntu
-When there is a list of options such as "Erase Partition and Reinstall Ubuntu", choose "Something else" instead
-There will be a list of partitions. If you, like me, have only one partition for ubuntu, and don't have any other separate partition for /home, then, one and only one of the partitions will be listed as having ubuntu. Choose that partition, choose Ext4 and mount point /, and make sure the "Format?" checkbox is not checked.
-If, for example, the ubuntu partition is /dev/sda2, choose /dev/sda as the device to mount the bootloader.
-If you do things right, the installation will warn you that you DIDN'T choose any partition to be formated. That's good. It will also warn you to backup any critical system files, and will list some system file directories as examples, which do not include /home. That's good too.
I had a kernel panic 0x0007f00, and could solve it after doing this procedure for reinstallation.
Always backup your personal data. But, if you, like me yesterday, wasn't able to do it in time, this procedure might help you reinstalling ubuntu while preserving the data.


What IDEs are there for Android development?

Probably the easiest to use, and officially supported, is Eclipse.

The Eclipse Android Developer Tools (ADT) plugin allows for basic project creation and management, as well as step debugging and ability to easily export your app for deployment/publication.

http://developer.android.com/tools/index.html

Google now distributes an ADT Bundle, which includes Eclipse with the ADT plugin, SDK and platform tools, and latest Android platform and system image for the emulator.

http://developer.android.com/sdk/index.html

The Android SDK Tools alone can still be downloaded if you prefer not to have the entire bundle, or if you already have Eclipse installed and just want to add the ADT plugin and SDK/platform tools, or if you prefer to use another IDE.

http://developer.android.com/sdk/installing/index.html


This can be fixed by modifying the power template for etherwake found in /etc/maas/templates/power/ether_wake.template.  The following modifications should fix your issue:

mac_address={{mac_address}}
power_change={{power_change}}
ip_address={{ip_address}}

if [ "${power_change}" != 'on' ]
then
    if [ -n "${ip_address}" ]
    then
       ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@${ip_address} -C "echo 'sleep 2 && sudo /sbin/poweroff -f' | at now"
    else
       echo "Unable to power down a node using etherwake without ip address." >&2
       exit 1
    fi
elif [ -x /usr/bin/wakeonlan ]
then
    /usr/bin/wakeonlan $mac_address
elif [ -x /usr/sbin/etherwake ]
then
    if [ -n "${iface}" ]
    then
        /usr/sbin/etherwake -i "${iface}" $mac_address
    else
        /usr/sbin/etherwake $mac_address
    fi
else
    echo "No wakeonlan or etherwake program found." >&2
fi

exit 0


Ubuntu 18.04: nvidia PRIME issue - prime-select intel does not work

Got my same problem. You should switch to Xorg. I think is a 18.04 Wayland bug.

My gdm3 session was running in wayland. To check it:

 $ loginctl
 SESSION     UID  USER     SEAT     TTY
       2    1000  velix    seat0    tty2
      c2    1000  velix
      c1     120  gdm      seat0    tty1

The command loginctl show-session <session-n> -p Type show the session type:

$ loginctl show-session c1 -p Type
Type=Wayland

To change it, edit the file /etc/gdm3/custom.conf and uncomment the line WaylandEnable=false.

After rebooting:

$ loginctl show-session c1 -p Type
Type=x11

See My question and answer for a little more details.


I had the same problem: couldn't run AVD (Nougat x86_64 image).
How I solved: just enabled Intel Virtualization Technology in BIOS (at BIOS Features section for my Gigabyte motherboard).

See also this post.


Chrome does not reconnect to my Mic when restarting pulseaudio

This is a known issue with chromium (and chromium based browsers).
https://bugs.chromium.org/p/chromium/issues/detail?id=1085744#c3
The only current workaround without restarting is to restart the browser audio service.
Press Shift + Esc. In the Task Manager window that opens find Utility: Audio Service (it's usually the very bottom for me) and click End Process. Refresh your page and voila.


There are a few things that could be limiting your speed:

The receiving server: some servers limit up/download speeds depending on the protocol used (eg: I used to have a web hosting server that throttled HTTP downloads to 40 KB/s, but SCP worked full speed)
Your ISP (ie: your upstream speed limit): if this is the case the only choice is to upgrade
Your client (FileZilla): if you can upload with better speeds to the same server using the same protocol with a different client, it might be a setting on your client.


Check your PPTP Server configuration (/etc/ppp/chap-secrets).  Place the static IP under the IP address column.

Example:

Change from:

# *     *       ""      *
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
MyUser    pptpd    mypassword   *

Change to:

# *     *       ""      *
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
MyUser    pptpd    mypassword   10.200.21.3

This resolution uses a matching pair of client (/etc/pptp/peers/peername) and server (/etc/pptp/chap-secrets).  Quick setup can be found at:
http://faq.apollo3.com/ljames/ubuntu/vpn/


Install gmtp, and use it to connect to the phone or tablet :

sudo apt-get install gmtp


Chrome suddenly crashing just after starting

Can you try this command :
rm -rf ~/.config/google-chrome

Though let me tell you that this will reset all your bookmarks, history. This is kinda like reinstalling chrome. If you had backedup your history into your email id then you can back it up easily after doing this command.


I had the same issue because of the on-screen keyboard. After I disabled it, the fancy lockscreen got re-enabled


Why are Unity 7 and Unity 8 discontinued now?

Didn't you read the announcement post penned by Mark Shuttleworth at all? Selected quotes:

  I took the view that, if convergence was the future and we could
  deliver it as free software, that would be widely appreciated both in
  the free software community and in the technology industry, where
  there is substantial frustration with the existing, closed,
  alternatives available to manufacturers. I was wrong on both counts.

  The cloud and IoT story for Ubuntu is excellent and continues to
  improve. You all probably know that most public cloud workloads, and
  most private Linux cloud infrastructures, depend on Ubuntu. You might
  also know that most of the IoT work in auto, robotics, networking, and
  machine learning is also on Ubuntu, with Canonical providing
  commercial services on many of those initiatives. The number and size
  of commercial engagements around Ubuntu on cloud and IoT has grown
  materially and consistently.

  The choice, ultimately, is to invest in the areas which are
  contributing to the growth of the company. Those are Ubuntu itself,
  for desktops, servers and VMs, our cloud infrastructure products
  (OpenStack and Kubernetes) our cloud operations capabilities (MAAS,
  LXD, Juju, BootStack), and our IoT story in snaps and Ubuntu Core. All
  of those have communities, customers, revenue and growth, the
  ingredients for a great and independent company, with scale and
  momentum.

Plain English: no money in Unity.


Eclipse: The color used for text in a content assist popup

eclipse -> preference -> General -> Appearance -> Colors and Fonts

Code assist

Basic > Content Assist background color    -> change
Basic > Content Assist foreground color    -> change
java doc

Java  > Javadoc background ( overrides default: information background color) -> change


Try Ubuntu without installing it on your hard-disk using Ubuntu live disk.From that you can understand which one is better whether to dualboot Windows and Ubuntu or replacing Windows with Ubuntu.


GradeQuick now has a web interface available.  I used the Chrome UA Spoofer extension to spoof Safari.  When I went to my Edline page, I was able to open up their web interface called "My Gradebooks".  So there is now a solution for Linux!


Software for Plantronics Gamecom 788 Headset

This seems to be a typical USB stereo headset.

If it doesn't offer any special modes in alsamixer or the Windows software/driver blob enables some proprietary mode that makes it receive multichannel audio and processing audio on the device or cable plug, then stereo is all you will ever get. "Emulated surround sound" as you already said.

You could – no, you better should – contact the the manufacturers customer support and tell them that you expect this to work on non-Microsoft operating systems, too. (Creative for example offers Android and IOs apps.) Probably at some point in time the proprietary technology gets licensed for other platforms and the "customer experience" gets ported.

I don't want to sound like I'm ranting, but the choice of calling it 7.1 is so unbelievably ambiguous. I remember older 5.1 headsets being sold with 3 drivers per ear, which were technically 4.2 and upgrades to that would be 6.2 or 8.2, but if the driver or virtual speaker count doesn't matter why not just go ahead and call it Atmos Portable or Atmos Gaming? It certainly must be a mixture of fear about watering down the high end line of brands, not being confident about the the capabilities of the software, or to expensive for the licensee. In the meantime new companies are trying hard. :(


How do I tell a start up program to start minimized?

You can use a tool called devilspie .

This tool can take actions as soon as programs are started, like sending to workspaces, pinning, and also minimizing. A tutorial is here.

To install it from the command-line run:

sudo apt-get install devilspie.

To configure it to minimize Teamviewer everytime it is executed:

mkdir ~/.devilspie

Create a file called ~/.devilspie/teamviewer.ds and paste the following lines:

(if
(is (application_name) "Teamviewer")
(begin (minimize) )
)

If you'd like a gui for easier configuration you should take note of gdevilspie

(if GDevilspie not starting try patched one).


Got problems downloading updates in Ubuntu 12.10

sudo apt-get install steam-launcher
This command should install steam-launcher and the dependencies that needs.
If you continues with problem maybe you can try using
sudo apt-get install -f steam-launcher


amd64, i386 (32bit / 64bit) - Which version to choose?

Your CPU can run both versions. Which version you install is more or less up to you, however, if your machine has at least 4GB of RAM, I would recommend installing the amd64 version. Some more insight into the differences between 32 and 64bit architectures can be found here. As for stability and availability, it seems you've already covered this in another question, so I won't go deeper. ;-)

You can get your download here. Choose 10.10, the latest version.

If you're in no hurry, you can wait about a month, then the next version (11.04 - Natty Narwhal) will be released, with significant changes to the default user interface.
If you're a beginner you will save yourself some re-learning.

If you're especially patient, it may be good to wait another two weeks or so, then the worst, inevitable, bugs popping up at release will probably be fixed already, and your ride will be smoother.


Why does launching an application via gksu not work?

When you run gksu or gksudo and attempt to run a command that doesn't exist, you don't usually see an error message.

If the gksu and gksudo commands are not installed, you do see an error message when you try to run them, but if the program you're trying to run is not installed, you do not always see any error message.

I am able to confirm this by running a command that is not installed (gksu blahblah) on a Lubuntu 16.04 system where I know the gksu is installed and working.

The OP was able to solve the problem by checking if gedit was installed and, upon discovering it was not, installing it.

Besides running gedit as root with gksu or gksudo, another way to edit a system file with a graphical text editor is to use sudoedit (as waltinator has suggested) but set the VISUAL environment variable to the editor you want to use:

VISUAL=gedit sudoedit /etc/fstab

Setting EDITOR instead of VISUAL also works, provided that VISUAL is not also set; if VISUAL is set and not blank, its value takes precedence. VISUAL doesn't mean "GUI" here.

The filename your editor shows you for the file you are editing will be something like fstab.XXEZgT6C. This is because sudoedit makes a copy of the file, you edit the copy, and your changes (if any) are written to the file when you close the editor. The filename shown in the editor is the name of the temporary copy.

The editor itself runs as your user, not as root, and has your settings, which can be convenient. However, since the sudoedit command only completes and writes your changes once you have quit the editor (not just when you've quit the file in the editor but the editor is still open), you'll probably want to either

not have that graphical editor already running when you run it, or
use a graphical editor that is configured so that a new instance is created every time it is run (rather than a new tab or window in the original instance).

In some editors, you can change this in the settings.

Of course, your editor does still have to be installed for this to work. But (as with the gksu/gksudo way) the editor doesn't have to be Gedit; you can use any editor you like.


You are searching in your home directory only by ~/.

To search in the root directory and all subdirectories recursively i.e. throughout the system:

sudo find / -iname "view.php"

Also as you are looking for a file, you should specify the file type with -type option to make the command efficient:

sudo find / -type f -iname "view.php"

Also you should exclude the virtual filesystem mount points, /proc, /sys, /dev and tmpfs mount point /run from search:

sudo find / \( -path /proc -o -path /sys -o -path /dev -o \
               -path /run \) -prune -o -type f -iname 'view.php'


Can I try the 2d version of Unity on a Live CD?

No, in ubuntu 11.04 it isn't installed by default. You can try to install it on the live cd.

How do I install and switch to the Unity 2D desktop?


Open the home directory using nautilus.

Open a terminal and write:

sudo nautilus

This will help you giving a root permission to access all directory's.


Upgrading from Ubuntu 18.04 LTS to Ubuntu Studio 20.04 LTS with minimal hassle

I see two options to get to an Ubuntu Studio 20.04 installation:
Install a fresh new Ubuntu Studio 20.04
This would be my recommended way.

Make a list of the software you are using regularly, so you can easily add it afterwards if it is not already installed.
Backup your home directory and any other personal data you have on the machine.
Think about if and how you want to partition your drives, and if you want encryption.
Write an Ubuntu Studio 20.04 image to a USB drive and go for it.

Advantage: You can be sure you have a clean and proper OS without any dependency issues. If you find you're missing an application, you can always install it afterwards.
Disadvantage: You will have to reinstall any applications that are missing from the base OS yourself, backup your personal data before, and will probably have to spend some time to tweak the configuration to your liking.
Upgrade your existing installation
Alternatively, you could upgrade your existing Ubuntu to Ubuntu 20.04, and then install the Ubuntu Studio installer to add the Ubuntu Studio parts. I have never done it this way and cannot testify as to how well that works, or how it differs to a fresh Ubuntu Studio install.
Advantage: This should keep all your existing applications and personal data, as long as they are still compatible with 20.04.
Disadvantage: You risk dependency issues or issues with applications that are no longer supported in 20.04.
Personally, I keep a spreadsheet with all the software I installed on top of the original OS image, as well as all custom configurations I did and pitfalls to avoid. There seems to be no tool available that tells you which packages a certain user installed manually after the OS was installed, so you have to keep track yourself.


18.04 Cog not visible on login screen, can't boot with Wayland

After looking at configuration differences between my virtual machines, it seems this was caused by setting the video card drivers to the ones supplied in the VirtualBox Guest Additions ISO. Setting the drivers to "do not use device" in the "Software & Updates" program made the cog appear again. Both virtual machines had guest additions installed for copy-paste abilities between the host and guests, but only one of them had opted for the proprietary drivers for the video card.


How do I change my wallpaper in Lubuntu?

In Lubuntu...

Right click the Desktop and choose Desktop Preferences from the pop-up menu.

For Lubuntu 11.10:

In the Appearance Tab you can choose the Wallpaper - all wallpaper has to be in .png format

For Lubuntu 12.04 and above:

In the Appearance Tab you can choose the Wallpaper - wallpaper can be in JPEG or PNG format format


Can't boot into UBUNTU, after Yosemite install

I had a similar situation and was able to get past the 'no boot device' using tips from refind and the Web. Basically it consisted of moving some refind EFI folders and files around. I'll try to post the link.

But even getting Ubuntu to allow me to choose kernel, it continues to fail to mount /dev, /sys, & /proc so I'm stuck again.

Strangely I am unable to boot using USB or DVD as it seems to launch an illegal video mode and scrambles the screen.

Good luck!


E: Package 'mysql-server' has no installation candidate

Please review your /etc/apt/sources.list configuration. Does it have a line pointing to the "main" repository section? Like
deb http://de.archive.ubuntu.com/ubuntu/ bionic main
where 'bionic' might instead be some other ubuntu version (it should match the DISTRIB_CODENAME in /etc/lsb-release).

Or you might have network/proxy problems so that you cannot access the package repositories at all. Does apt-get update display any errors?


No keyboard/mouse input on Login Ubuntu 18.04

Did u checked any other on that same port (eg..speaker)

working or not

*ctrl+alt+t

*sudo apt-get update press enter give yes

*sudo apt-get upgrade press enter

*reboot and check now


Can't start mongod , configured storage engine is 'mmapv1'

exception in initAndListen: 28574 Cannot start server. Detected data files in /data/db created by storage engine 'wiredTiger'. The configured storage engine is 'mmapv1'., terminating

The WiredTiger storage engine is only supported in MongoDB 3.0 or newer, so you cannot use these data files with MongoDB 2.6. I would also note that MongoDB 2.6 reached end of life in October, 2016 and is no longer supported.

If you are unsure what version of MongoDB your data files were created with, I would suggest installing the latest version of MongoDB (currently the 3.4 release series). See: Install MongoDB Community Edition on Ubuntu.


JDK Crash when attempting to run Minecraft on Ubuntu 18.04

I edited my profile. I changed the JVM Arguments from

-Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M

to

-Xmx1G -XX:+UseConcMarkSweepGC -XX:-UseAdaptiveSizePolicy -Xmn128M

Then Minecraft worked for me.

(I got the Idea from: JVM errors when running minecraft)


You could use the program KeyboardLayoutEditor.

In this program, you can directly drag and drop your characters from the character map. It is very comfortable for editing XKB layouts.


LightDM won't start after Grub - Cannot Access TTY unless closing and re-opening lid

Instead of installing the beta, I followed the instructions here for installing via command line.

I also followed the instructions here for some troubleshooting to remove all errors
https://help.ubuntu.com/community/BinaryDriverHowto/AMD

Then I looked through some x.org logs to find any errors.

Following these two posts helped clear those errors up
https://askubuntu.com/questions/46524...ossfirex-in-ub
https://askubuntu.com/questions/94272.../175677#175677

As of this morning with a hard reboot, it is back to normal


Trying to make a .desktop file that runs a .py file

Sometimes it is a small thing...

A desktop file's keyword should always start with a capital, so in this case it is:

Type=Application (Type instead of type)

it is not necessary to use python in front of the /path/to/script section in the in the Exec= line, IF you made it executable AND you have the shebang in your script

Note

if you run your desktop file on your desktop, you should make the desktop file executable as well!


Vectr wont start: Illegal instruction (core dumped)

Duplicated on Ubuntu 18.04 LTS x86_64 (outputs are excerpted)

Run from the command line with strace, (strace vectr example.svg) produces:

  geteuid()                               = 1000  write(2, "need to run
  as root or suid", 27need to run as root or suid) = 27

Run from the command line with sudo (sudo vectr example.svg) produces:

  mkdir: cannot create directory '/run/user/0': Permission denied
  /snap/vectr/2/bin/desktop-launch: line 231: 11359 Segmentation fault
  (core dumped)

If you turn the dial to '11' and run it as (sudo strace vectr example.svg), you'll see a very long string of -1 ENOENT (No such file or directory) errors scroll past, complaining mostly about libraries, which leads me to guess that there's a configuration error somewhere in this snap. It might be that the line 231 error points a little more specifically at not being able to load gdk-pixbuf-2.0, but I'm not familiar enough with snaps to dig much further than that.


Apache2 403 Forbidden - you don't have permission to access

We eventually found that is a misconfiguration between 00-default and mysite.com.

I guess that request are serverd by mysite.com VirtualHost that have not permission to access /var/www/html.

If you need both VirtualHost working, Apache need to recognize both either by name or by ip.

You should add ServerName directive in 00-default and add both name in /etc/hosts as described in How to access a website under Ubuntu

Also don't forget that 404 error means "not found", when you change DocumentRoot, you should move file to the new directory too.


Some applications do not have proper graphics after sleep in ubuntu

You might need to upgrade video driver, if you have Nvidia video card then try this instruction if not find your video graphic card chipset and google it for driver update
https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-10-groovy-gorilla-linux


Unable to install mysqlclient on Ubuntu 20.10

This can usually be resolved with the libffi-dev libraries; libffi.so specifically. It can be installed via apt with:
sudo apt install libffi-dev

Note: I have not found a way to install this via pip3. Do let me know if you find it somewhere.
Once libffi-dev is installed, run ldconfig to load the new .so.
Important: If you compiled your own Python installation, then you will need to recompile it for libffi-dev to be loaded.


GIMP stands for the

  GNU Image Manipulation Program

and it is by this name that it appears in the menu. If I search for 'gimp' it still shows, but listed in it's full name.


How to build GUI application in C language using GTK+?

If you have installed the libgtk2.0-dev package in the normal way from the repository, then you can build your application with gcc, using pkg-config to set the appropriate include and library directives e.g.

gcc -o myapp myapp.c `pkg-config --cflags --libs gtk+-2.0`

For more information see the GTK+ 2.0 Tutorial at the Gnome Developer Center


You can enter the mount in /etc/fstab so it gets automatically mounted with the options you prefer.

The line in fstab should like like:

  UUID=0391a5db-61d8-4c3d-b633-59c710ed4386 /media/pc-user/SDA2 auto
  defaults 0 0

Now you have to make a directory in /media/pc-user named SDA2:

  sudo mkdir /media/pc-user/SDA2

After reboot the dir will be linked to your partition (SDC1)

No need to reformat your hdd, the dir /media/pc-user/SDA2 is just a name and does not do anything with you actual SDA2 partition.


From man touch:

-d, --date=STRING
      parse STRING and use it instead of current time
-t STAMP
      use [[CC]YY]MMDDhhmm[.ss] instead of current time
DATE STRING
   The  --date=STRING  is  a mostly free format human readable date string
   such as "Sun, 29 Feb 2004 16:21:42 -0800" or "2004-02-29  16:21:42"  or
   even  "next  Thursday".   A  date  string  may contain items indicating
   calendar date, time of day, time zone,  day  of  week,  relative  time,
   relative date, and numbers.  An empty string indicates the beginning of
   the day.  The date  string  format  is  more  complex  than  is  easily
   documented here but is fully described in the info documentation.

Take your pick.


How to fix "K3b can only copy CD-Extra mixed mode CDs" error?

You can't create an ISO because they only store a single track, and mixed CD's have multiple tracks. Instead, you have to clone the CD. To do this in K3b, first click Copy CD; then on the Options tab, change Copy Mode to Clone Copy. Then copy the CD like normal.

K3b should also create a TOC file to go along with the CD image. K3b can then use both of those files to burn a copy of the original CD.


There was speculation on the 18th of February 2013 about HTC releasing a tablet that runs the Ubuntu OS. Information about this can be found in the following sites:

Gotta Be Mobile
OMGUbuntu
Slashdot

The Ubuntu site on the same day offered a countdown that would end on February 19th 2013. The countdown when finished showed the following video: http://www.youtube.com/watch?v=h384z7Ph0gU

Apart from the information provided above, you can also read the following link for more information regarding Tablets: http://www.ubuntu.com/devices/tablet

One thing we can see from the information here is the hardware requirements for Tablets:

Regarding the installation of Ubuntu (Or any other Distro for that matter), please see my answer here: How can I install Ubuntu on an iPad?

I also recommend reading this question: What is Ubuntu Touch (Ubuntu for Phones)

UPDATE Feb 21 2013 - The Ubuntu Phone, Tablet Developer Preview has been released

You can also visit the official Touch site


Boot the USB flash again, use "Try Ubuntu", press Ctrl+Alt+T to go to a terminal and type:

sudo parted --list
sudo grub-install /dev/XdY

Where X and Y are in the output of the first command after Disk /dev/ (probably s and a)

Then shut down the machine completely, remove the USB disk and start again!


Ubuntu 20.10 - Steelseries Arctis 9 Bluetooth settings output and input

Correct if the the headphones are set to stereo the profile does not allow mic and stereo at same time mono does.


You don't want your username in the original command: just type telnet 192.168.0.4 23 (with the 23 being for the port) and then it will ask for your username and password. With what you're doing, it will assume the whole thing to be an address.


I'm new to Ubuntu. How do I access my SD Card?

-Reboot with the SD card in the slot.

-Do a PCI re-scan

echo 1 | sudo tee /sys/bus/pci/rescan

for more details visit this


The command should be

../configure CFLAGS="-O3 -pipe -fPIC -mfpu=neon -mfloat-abi=hard"

so double quotes, not single inverted commas.


How do I search in Ubuntu Mate's "Software Boutique"?

The Software Boutique contains only a small selection of software applications, and is meant to be browsed, not searched. If you want a wider, searchable selection, you have to install Gnome Software or Ubuntu Software Center. The Boutique itself says as much on the front page:

  If you can't find what you're looking for, install one of the software
  centers to explore the complete Ubuntu software catalog.


EasyBCD doesn't support the windows 10 boot loader as you said. However it should be possible to add a entry manually to the with bcdedit as described here.

A simpler solution might be to install grub boot loader on your Ubuntu partition and choose grub as the primary boot loader in UEFI or BIOS.


What could I use instead of the GNOME panel applet "Character Palette" in unity

It's very quick to load the "Character Map" (installed by default).

In the first screenshot I am loading it from the dash (click on the Ubuntu button in the top left, or press Super). For even quicker access you could add it to your Launcher on the left as seen in the second screenshot.


Lubuntu/LXDE Desktop Configuration Files/Desktop Shortcuts

You can try to edit the .desktop file with Leafpad. If you can't open it clicking it with mouse second button, you can try it from terminal.

An example of a shortcut that launchs a shell script, viewed here: http://forum.lxde.org/viewtopic.php?t=31647&f=8

[Desktop Entry]
Encoding=UTF-8
Name=Nix
Comment=RunNixNote
Icon=/home/username/.extra-icons/Nevernote-164x308.png
Exec=sh /usr/share/nixnote/nixnote.sh
Terminal=false
Type=Application


What you need to do from a fresh install is to update and then install additional hardware. You'll have the options to install a stable driver that works with Steam without throwing up out of date driver messages at you. They may not be the fastest drivers but they are faster than the Gallion drivers at the moment.


How to configure GSM modem network type (EDGE/UMTS/Auto/etc) since Ubuntu 16.04?

You can use modem-manager , to install it , open the terminal and type the following command:

sudo apt-get update
sudo apt-get install modem-manager-gui


I am unable to type polish characters when connecting via ssh

I figured it out, thank you very much for all your help nonetheless!

I have Windows 7 and I had my keyboard set to US.

I had to go to Control panel → Region and language > keyboards and languages and add Polish programmer keyboard (adding Polish keyboard but with US layout didn't work). I also set the location to Poland (was US).

This is my work laptop that got rebuilt recently hence I didn't have this set. Polish chars via putty seem to be working perfectly fine now! :)


3.13.0-30 kernel issue will not log in / sign in

There's a pretty old post about having just the background and mouse, and supposedly some fixes for it.  This did happen to me once, and I ended up reinstalling my system.

The basics: From the TTY window ctrl+alt+f1, enter the following commands:

sudo apt-get install compizconfig-settings-manager
export DISPLAY=:0
ccsm

Then re-enable graphics ctrl+alt+f7, find an enable the unity plugin.

Or, again at the tty window

dconf reset -f /org/compiz/
unity --reset-icons &disown

There are other suggestions...  but as I said, I ended up doing a reinstall.  This was well before the 3.13.0.30 kernal, and I had been messing about with CompizConfig manager.

Unity doesn't load, no Launcher, no Dash appears


Internet access possible only through Tor browser after upgrading to Ubuntu 18.04

Did you try to add Google servers? That's a hard reset I do sometimes after updating NordVPN I cannot access the internet neither Chromium or Firefox but Telegram works perfectly fine, like what a hack... There's a hard reset I use by overwriting resolv.conf

sudo nano /etc/resolv.conf

delete what is inside and add

nameserver 8.8.8.8
nameserver 8.8.4.4

Save it and close. Resolv.conf gets overwritten all the time by your system environment so you won't do much damage to the network it more likely will produce debug effect.

Now run

sudo systemctl restart NetworkManager.service

Or click switch On / Off network icon.

You can find lots of variants in this old thread as well as similar to my way of workaround above and use it as a fix.


How to check what GPU is a program using?

Here is a low-level answer. It might need further refining if it is not exactly what you are looking for, but I can hardly help you more as I have only one GPU on my laptop.
First identify the PID (process ID) of your OpenGL program.
/proc/PID/fd is a directory that lists the files your program has opened. If you ls -l that directory, you will see files like /dev/dri/card0, /dev/dri/card1, etc. The file depends on the GPU your OpenGL program is using.
Another similar way is to execute:
lsof -p PID | fgrep /dev/dri

You can have a general view of all your programs at once with:
fuser -v /dev/dri/*


Installed ubuntu and trying to install motherboard drivers from from a usb, but the flash drive isn't showing up in "disks."

I don't know if this will solve your problem (connecting USB devices to the system via USB 2.0 ports) but you can give it a try.

Install usbmount on your system. You can either install it from the Ubuntu Software Center ;

Or by using Synaptic Package Manager;

As it can be seen in the description, usbmount automatically moounts USB mass storage devices. Once it has been installed, connect your USB device and see if it shows up.

I hope this would help in resolving your problem.


Evolution repeatedly reports "Unable to move deleted messages"

I've put this in the "answer" so I can add a screen shot.
This is how I have my Evolution / Outlook set up. I don't have the same issue as you, so experimenting with options may help.


What is the most ms Word-compatible word processor available?

As of right now, LibreOffice is the most compatible word-processor with MS Office.

KingsoftOffice has an interface which is more similar to MS Word than LibreOffice, but the documents made in KingsoftOffice are less compatible with MS Office than the documents made in LibreOffice.

Even though KingsoftOffice has a similar interface (GUI), that doesn't mean that it is compatible with MS Office.

I understand your problem, and I want to give you a good advice: Make the entire document in LibreOffice. Work in LibreOffice, but use MS Office only for final editing.

My advice does not work with complicated files with tables, but is sufficient for university dissertation with text and the occasional simple table. For final editing you can use someone else's MS Office, for example - The MS Office in your universities library.

I know that My proposition is not ideal, but it is a proper solution: Editing mainly with LibreOffice, but using MS Office Word only for compatibility checking and compatibility editing. In some cases it may occur that the document made in LibreOffice is 99% compatible to MS Office Word, in some cases not.

Format editing usually takes less time than creating an entire document in MS Office.

For example, when I learned in university, I wrote my thesis in LibreOffice, but my roommate had legal installation of MS Word. I asked him for his MS Office installation only few times a month, when I need proper MS Word formatting.


As workaround, you tried rebooting with the hdmi connected? I had the same problem with an asus laptop and the sound only appears if you reboot the system with the HDMI connected. Only happens since 20.04


Simply use the Ubuntu 10.10 CD/USB installer and, when prompted, choose to install side by side with the existing operating system. The process is the same as installing Ubuntu side by side with Windows.

Please read the full installation instructions here. Click 'Show me how' on step 4 of the instructions.


There is no such thing as a "correct PPA". PPA is a personal package archive created by some user. You install software from PPA's at your own risk.
If you installed nemo from Ubuntu official repositories, there is no reason to look for some PPA.


How to customize locally an apparmor profile?

The problem arises from the opening brackets ( { and } ). The #include statement is already inside the main profile's declaration, so the brackets are not required.

# Site-specific additions and overrides for usr.bin.firefox.
# For more details, please see /etc/apparmor.d/local/README.
# Allow gnome keyring integration to work

dbus (send,receive)
  bus=session
  interface=org.freedesktop.DBus.Properties
  path=/org/freedesktop/secrets,


Files have modes, on creation time the mask will determine the mode, based on the requested mode. A mask works like a stencil and can best be illustrated using the binary representation.

An umask of 0002 (common octal integer format) is represented as

000 000 000 010

in binary form, or

--- --- --- -w-

in symbolic form.

Let's say a file is to be created by the user, the mode is 0777 by default (for executables), but the mask will be "substracted" in a manner of speaking. This results in the w bit to be removed.

--- rwx rwx rwx  (mode)
--- --- --- -w-  (mask)
_______________ -
--- rwx rwx r-x  ==  000 111 111 101  ==  0775

For regular files (non-executables), the requested mode is without the x (executable) bit, i.e. 0666, so the mask will then result in:

--- rw- rw- rw-  (mode)
--- --- --- -w-  (mask)
_______________ -
--- rw- rw- r--  ==  000 110 110 100  ==  0664

The latter one is common in directory listings (in which the first octet with SUID/SGID bits isn't shown), e.g.:

-rw-rw-r--   2 gert gert      228 Mar 20  2012 .vimrc

Of course, you can always change these modes with for example the chmod command, for which the umask will not be considered in editing.


Disk burner software supporting Label Tag

There is unfortunately no Linux software available that supports Liteon's proprietary labeltag feature; the native Linux version of Nero has been discontinued. It was announced on the official site that:

  As of March 27, 2012, Nero Linux 4 and the technical support for the product (and its family including Nero Linux 3) is no longer available.

However, this version of Nero in fact never supported the labeltag feature, as was revealed when a technical support question was raised on the official forums.

The labeltag feature is unlikely to ever be in any native application, as the official word is that the source code 'won't be published' and the specifications of the technology won't be able to be obtained.

Nero 8 comes with the Liteon burner, but very few cd burning applications will work properly under Wine, so unfortunately there is no real way of using labeltag under Ubuntu.


I accidently solved one part of one of my questions.

To fix login screen problem (lightDM):
At first it may not be overridden and just switched to kdm. Enter this command in terminal:

sudo dpkg-reconfigure lightdm

Hit enter to enter the menu. Select light-dm or gdm instead of kdm and hit enter again. logout or reboot to see if it's fixed.

If the problem persists it means that kde changed the theme of lightdm. Enter this command in terminal: sudo gedit /etc/lightdm/lightdm.conf and change/add these lines:

greeter-session=unity-greeter
user-session=ubuntu

save the file, sudo reboot, enjoy!


How to re-configure graphics from Intel integrated to Intel / ATI switchable?

I found a solution for while googling. You have to put a script in rc.local specifying which VGA you want to use.

This link explains everything.

I will post important notes here:

First install needed driver and script from git

sudo apt-get install git && cd ~/
git clone https://github.com/mkottman/acpi_call.git
cd acpi_call && make
sudo insmod acpi_call.ko
chmod a+x test_off.sh

de-activate ATI VGA

sh test_off.sh

Now you can check if your ATI VGA is already disabled by lspci -vnnn | grep VGA.
It will show the following output:

00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc NI Seymour [AMD Radeon HD 3650M] [1002:6760] (rev ff) (prog-if ff)
If it works, to make this run at boot, edit /etc/rc.local:

sudo insmod /acpi_call/acpi_call.ko
sudo sh /acpi_call/test_off.sh

Also, remove radeon blacklisting by editing /etc/modprobe.d/blacklist.conf:

#blacklist radeon

You should have xorg.conf like this to make VGA detectable :

 Section "ServerLayout"
 Identifier "aticonfig Layout"
 Screen 0 "aticonfig-Screen[0]-0" 0 0
 EndSection

 Section "Module"
 Load "glx"
 EndSection

 Section "Monitor"
 Identifier "aticonfig-Monitor[0]-0"
 Option "VendorName" "ATI Proprietary Driver"
 Option "ModelName" "Generic Autodetecting Monitor"
 Option "DPMS" "true"
 EndSection

 Section "Device"
 Identifier "aticonfig-Device[0]-0"
 # Driver "fglrx"
 BusID "PCI:1:0:0"
 EndSection

 # Section "Screen"
 # Identifier "Default Screen"
 # DefaultDepth 24
 # EndSection

 Section "Screen"
 Identifier "aticonfig-Screen[0]-0"
 Device "aticonfig-Device[0]-0"
 Monitor "aticonfig-Monitor[0]-0"
 DefaultDepth 24
 SubSection "Display"
 Viewport 0 0
 Depth 24
 EndSubSection
 EndSection

Note: To activate ATI/AMD radeon VGA again:
Just comment what we've added to rc.local

Solution 2

I found this solution from askubuntu.com, I might be easier to put into practice:

This question assumes using vga_switcheroo.

Add this to /etc/fstab:

none  /sys/kernel/debug debugfs defaults 0 0


/usr/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status

You can install with

sudo apt-get install libgcc1 lib32gcc1 libx32gcc1

And for successful compilation of other stuff install build-essential:

sudo apt-get install build-essential autoconf automake libtool


IntelliJ invalid Maven location when switch OS

On your Linux OS, check the file permissions of the maven.jar file in the ../plugins/maven/lib folder.  Pretty sure it should have execution rights for at least your user if not the group as well.

Seems like some of those maven jar files have not always been marked executable in the past when they should have been.

I think I found this beginning with IntelliJ 2016 and on.

You might try comparing the permissions of your personal install of maven with those "bundled" with IntelliJ to ensure they have the same permissions.

Also, make sure that the "program" files, and scripts, are executable.  These are found in ../plugins/maven/lib/maven3/bin


It is not a low-latency kernel. On Ubuntu, low-latency kernels are available as a separate package named linux-lowlatency. The 3.13 kernel won't be available for 16.04.


In my case with Ubuntu 16.04 it was sudo apt install libdbusmenu-gtk4:i386. So try it if @Vesnog's answer doesn't fix your problem.