Insatlling CUDA : Failed to add GPGKEY at http://cuda-repo/repos/GPGKEY to apt keys

Long story short: The DEB file currently linked on the CUDA Toolkit 6.5 page is broken and after fixing becomes equivalent with the 7.0 one.

More precisely, it seems somebody at Nvidia mixed up the file from production testing (containing but an internal network alias) with the one meant for release, which would have pointed to the actual public server.

To see that, fully extract it and run grep -R http, you'll get but references to http://cuda-repo.

You could fix the file (the linked 6.5-14 will update to the equally broken 6.5-19, so let's go with that) with…

mkdir tmp && cd tmp
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_6.5-19_amd64.deb
ar p cuda-repo-ubuntu1404_6.5-19_amd64.deb data.tar.gz | tar zx
ar p cuda-repo-ubuntu1404_6.5-19_amd64.deb control.tar.gz | tar zx
sed -i -e 's/cuda-repo\/prodtest/developer.download.nvidia.com\/compute\/cuda\/repos/g' etc/apt/sources.list.d/cuda.list
sed -i -e 's/cuda-repo/developer.download.nvidia.com\/compute\/cuda/g' postinst
tar czf data.tar.gz etc usr
tar czf control.tar.gz conffiles control postinst postrm
ar rv cuda-repo-ubuntu1404_6.5-19_amd64.deb data.tar.gz control.tar.gz
sudo dpkg -i cuda-repo-ubuntu1404_6.5-19_amd64.deb

… but once you use it, you'll find that apt-get install cuda will just try to get the 7.0 one, and that if you (I) had just tried the DEB for 7.0 to begin with, might have noticed that the package has been renamed to cuda-6-5 anyway. Thank you, Nvidia!


Password input is invisible in the terminal for security reasons. I think if you just type your password regardless and press enter it should work?


Error installing packages on my linux server

You can see which program locked the file by using this command:

# lsof /var/lib/dpkg/lock

Sometimes on desktop environment, the packagekit locks the file to find new updates when you need to use apt-get ...

Then, when you know the process wich lock apt-get, you can exit it by using the kill command.


how to move maven,spring boot,sql projects from one drive to another

Normally, you should just copy the eclipse-workspace folder.
Then install Eclipse and MySQL on your new Ubuntu.
First time you open Eclipse, it will prompt you to either use the default Eclipse workspace or a custom one. You can point to the workspace you have copied.
I you have launched Eclipse already, you can change the default workspace from the File > Switch Workspace menu:

With this, you should already be able to find your projects at the state you left them on the other drive.
Then, you will have to re-configure your environment to get your projects running : recreate the databases, the DB user(s), the server if any (Tomcat, Jetty... But SpringBoot comes with one embedded already, does it ?), server users, ensure that the config is in line with your config files, ensure that the environment variables are set...
I hope this helps, but if it doesn't, may I suggest you to edit your post and add some details about the errors you get ?


Yes, but not the version of Qt Creator in the archives. Qt 5.0 is compatible only with Qt Creator 2.6.1+. Thankfully, installing Qt Creator 2.6.1 is relatively easy:

Remove the existing version of Qt Creator you have installed:

sudo apt-get autoremove qtcreator

Download the appropriate installer from this page:

32-bit Linux Installer
64-bit Linux Installer

cd into the directory that contains the installer you downloaded and run:

chmod 755 qt-creator-linux-*-opensource-2.6.1.bin

Launch the installer:

sudo ./qt-creator-linux-*-opensource-2.6.1.bin

Complete the installer, leaving all settings at their defaults.

If all goes well, you should end up with an icon in your desktop environment's dash or equivalent. You should then be able to use Qt 5.0 with Qt Creator.


Same issue. I solved removing the chrome config.

sudo rm -r ~/.config/google-chrome


No, your source code doesn't need to match the installed layout. However the build system (Make / whatever you use) should install everything that's needed. And if a DESTDIR variable is provided, it should prefix that to the installation paths.

No, it's not a problem to host on github. If you want daily builds, you'll need to set up an automatic import into bzr on Launchpad, though.

If you're going through developer.ubuntu.com you don't need to worry about the packaging. They'll take care of it.


It depends on how you set up the crypt (ecryptfs). If it is set up to automatically decrypt when you log in, then yes the data is decrypted when you log in.

This is the default behavior when you choose to encrypt home at login.

There are exceptions, depending on how you log in, for example, ssh and other methods do no not automatically decrypt home.

If you set up a private crypt, then of course if depends on how you configured it.

If you need a more specific answer, you need to tell us how you set upyour crypt.

I don't know what will happen with power loss and physical access.


This also happened to me, and I followed these instructions, and now it works

1) Remove the ALSA packages.

sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils

2) Reinstall the same packages.

sudo apt-get install linux-sound-base alsa-base alsa-utils

3) Install further audio addon packages

sudo apt-get install dkms build-essential linux-headers-`uname -r` alsa-base alsa-firmware-loaders alsa-oss alsa-source alsa-tools alsa-tools-gui alsa-utils alsamixergui

4) Be sure to add the user to group audio

sudo usermod -a -G audio [user_name]

5) reboot

sudo reboot


You can use two methods here to check if you have any updates pending which would suggest updates were not install and need to be.

Steps:

from dash type software updater and select it
from terminal run sudo apt update

In the first one it would check and tell you if any updates are required.

In the second one it will check to see if your repositories are up to date and tell you if any packages needs updating, then if so you may update using:

sudo apt dist-upgrade

To see the history of your updates:

less /var/log/apt/history.log

Hope that helps.


Changing ./bin/sh from linking to dash to linking to bash

Ubuntu uses dash as an interpreter on many startup and core tasks. The main reason for this is to use a faster, less memory consuming and overall a more efficient interpreter than bash.
You can read more about dash in ubuntu (including developer-related issues) in this wiki documentation.
Regarding dash errors (also covered in the wiki above): not all command syntax supported by bash is also fully supported by dash. This may cause syntax and / or interpretation errors.
Changing the /bin/sh symlinc may cause unexpected results, and it is best to avoide doing so unless you are absolutely sure what you're doing.


Locating certain files in Ubuntu 18.04 LTS

find / -name "*.iso"

which will find (starting in /) all files that end in .iso

You may want to add 2>/dev/null if there are many directories you don't have read access to & don't want many permission denied errors amongst the output.


Can you check whether the partition(/path/to/your.iso)  you are trying to mount has entries in the /etc/fstab file.

If the entries in not present in the fstab files,only root user is set tomount the partition.To do automate mount please try to add them in the fstab file.


Would my downloaded Ubuntu, require an Internet Conncetion?

You will be able to install Ubuntu without an internet connection but you will not be able to download any of the extras or updates during the installation.

Once the installation is complete you can use the Ubuntu Software Centerand the Software Updater utilities to download additional software and updates.


gThumb crashes immediately on Ubuntu 20.04

I seem to have the same problem with gThumb on Ubuntu Budgie: gthumb: ../../../../src/cairo-surface.c:930: cairo_surface_reference: Assertion `CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)' failed.
Aborted
At least I could break down the issue to 4 images in my image library (all of them panorama/360° images) were causing the crash. After moving the images to a backup folder gThumb worked again.
I will try to open a bug report, when I find out to which project to report this issue to.
At least it should not crash just because one or a few images are not correct.


Space escape character in Debian Makefiles

"?" can be used as a glob character, which works for spaces as well.

/usr/share/themes/Example?Directory/gtk-3.0

Note however that installing into a directory with spaces may not be the best idea, since they tend to be inconvenient (although applications should work with spaces unless they are buggy).


How do I set the launcher to always show in Unity 2d?

For 11.10
The following terminal commands will set the launcher to always show:
First install the dconf-tools:
sudo apt-get install dconf-tools

Then input these lines to configure the launcher:
dconf write /com/canonical/unity-2d/launcher/hide-mode 0
dconf write /com/canonical/unity-2d/launcher/use-strut true

See also:

How do I configure Unity 2D?


The Disk Drive for /tmp is not ready yet. S to skip mount or M for manual recovery

It can be related to : https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/1091792

You need to reboot and press M for manual to run mount -o remount, rw /, but I think it won't solve your problem on it's own. You should run a fsck on / (or /tmp if it's a separated filesystem from /).

Did you upgrade your ubuntu recently? If yes you should also try to apt-get install -f repair all packages. (maybe some packages from installing themes are broken)


How to config proxy in Ubuntu on VirtualBox

First of all check whether you are able to ping your proxy server using Ubuntu in your virtual box. the command for this is :

ping <address_of_the_proxy_server>

If you are able to ping the proxy-server, now you can check whether your credentials are correctly set or not.Open the terminal and run env.

A lot of information will appear on the screen. Check for http_proxy and https_proxy. If they are not correctly set you can set them using a Graphical tool named ubproxy .You can download a python it to set proxy authentication. Here is the link to it.

Or else you can set proxy authentication using the following steps:

Go to /etc/apt. Create the file apt.conf if you don't have it there. Write the following lines there.

Acquire::http::proxy "http://username:password@proxyserver:port/";
Acquire::https::proxy "https://username:password@proxyserver:port/";
Acquire::socks::proxy "socks://username:password@proxyserver:port/";

Save it. You are done.
If the problem persists please comment.


I once tried apt-get purge apt-get in a vm and it worked, but I would never do this on a real pc. Many programs (for example Libre office) had also been removed.


E: Syntax error /etc/apt/apt.conf.d/00aptitude:2: Extra junk after value

I removed both lines and saved it. Now I can open Synaptic.


You've got 2 possibilities.

Check if there are any proprietary graphic drivers available. You can do this by going to System -> Administration -> Additional hardware drivers. If there are any proprietary drivers available, select the recommended one, and click the Activate button.

This method might not always work.
Install the unity-2d package, reboot, and choose the Ubuntu 2D or Unity 2D session at the login screen. If you can't find the unity-2d package in Synaptic or the software centre, add this ppa to your software sources and update the package data: ppa:unity-2d-team/unity-2d-daily.
Unity 2D is the alternative version of Unity which doesn't have such high requirements, as it doesn't need 3D acceleration. For most people Unity 2D will work faster as well.


How can I mount a FreeBSD disk in Ubuntu?

sudo mkdir /mnt/freebsd
sudo mount -t ufs -o ro,ufstype=ufs2 /dev/sdaX /mnt/freebsd

sdaX = the freeBSD partition.


Very Slow Internet Speeds On Ubuntu 18.04.2 LTS

EDIT: I tried this again and it didn't make a different.

However, this may help you.

Fixed It By Going into Settings > WiFi > Gear Icon Next To Connect internet connection.

Then go to IPv6 settings.

The finally. Change the method to disabled.

And Your Done!

While Downloading Left 4 Dead 2 (A Game)

Before: 45 minute

After: 20 minutes

Also, i just found out my sister was streaming 4K video on nexflix


Ubuntu Touch on Nexus 7 3G (autodeploy.zip not found)

The 'Manual Installation' instructions appear to be incomplete (for a full install).

The two files are used to 'update' an existing install. A 'full install' has 3-4 more steps.

Specific to ASUS Nexus 7 3G

The Nexus 7 3G model is not yet supported, but can use the standard Nexus 7 ('grouper') build.

The tag -d grouper needs to be present.

Try using the provided tool, as described on the Wiki.

phablet-flash -d grouper -b (full install, current) or

phablet-flash -d grouper -b --pending (full install, untested daily)

From there, you can probably create the extra manual steps.

To download ALL files first (without a device attached) use:

phablet-flash -d grouper -b -D (current)

phablet-flash -d grouper -b -D --pending (untested daily)

UPDATE: (23-Aug-2013)

The ASUS Nexus 7 3G (and in particular the 32 GB model) are somewhat different from the base model of the Nexus 7 ('grouper'). They have support for GSM 3G/4G and other low-level firmware changes.

Before Ubuntu Touch was 'flipped' (still ran Ubuntu in a container inside Android), this did not provide an insurmountable problem. However, the additional features not found in grouper were also not available.

Now with the 'flipped' design, and with current changes to the underlying Ubuntu Touch OS and UI, only the base model Nexus 7 (grouper) is currently supported.

See also:

Latest two images will not install on Nexus7 (32GB + 3G), but older were Ok

  The latest two (newest) daily images will not install on my Nexus 7, 32GB + 3G. The older versions work fine. Background looks like coloured snow. ..

Nexus 7 3G [2012] problem with ubuntu touch

  Nexus 7 3G is not equivalent to grouper.

  Nexus 7 is a commercial name that hides a lot of different hardware configurations in it.

  If the hardware codename is tilapia [2012, 3G] or razor [2013] the device will not work without modifications or what people call ports, please refer to https://wiki.ubuntu.com/Touch/Devices

and more technical:

https://bugs.launchpad.net/ubuntu-nexus7/+bug/1079729

  Ubuntu uninstallable on 32GB 3G Nexus 7

  Nexus7 variants without 3G support map their user data partition (UDA) to mmcblk0p9, where variants with 3G support map UDA to mmcblk0p10 ..


Open a terminal and Run this command:

xinput --list --short

output :

abcd@abcd-abcde:~$ xinput --list --short

Virtual core pointer

↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]

↳ Logitech USB RECEIVER                     id=12   [slave  pointer  (2)]

for me my pointing devices are a Lgitech usb reciver and synaptic touchpad

To list out device Properties :

xinput --list-props "SynPS/2 Synaptics TouchPad"

Now reduce it's Property values to suit your need :

Device Accel Constant Deceleration (267):   2.500000

using this command :

xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 1.5

You may have to play around with this number a bit to set it exactly as you need.

If you need to set this value automatically every time Ubuntu starts then :

create a .sh file

#!/bin/sh

xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 1.5

change the file to executable :

chmod +x

and Put this in the start-up applications list.

Thanks To : vikash-singh

Source  : Configuring Mouse Speed manually


How to skip the language selection screen and install menu on an autoinstall ISO 20.04

Remove Try/Install screen
Have a look at /boot/grub/grub.cfg.
The command maybe-ubiquity will send you to the Try/Install screen.
The command only-ubiquity will send you to the Install screen.
If you remove these, you should go directly to Try Ubuntu.
If you are booting using Syslinux, edit /isolinux/txt.cfg.


Ubuntu stopped responding just after boot

Try this, might help

Boot to your installed system, switch to a virtual terminal (Ctrl+Alt+F1) and install Unity2D.

sudo apt-get install Unity2D

Restart GDM

sudo service gdm restart

and switch back to your login screen (Ctrl+Alt+F7..F9) if it does not do so automatically.

At the bottom of the screen, you will find a list of options; look for Unity2D in one of the dropdown boxes. Select it, and login as normal. (You may have to enter your username before being allowed to select Unity2D as your desktop environment).


Will a 3rd party repo update a manually installed package?

Regarding potential problems in switching sources

It's always a good idea to back up configuration and settings regularly, especially when changing software sources. It's possible some of your server's settings might be missed if one package is looking for data in another location, or deleted or overwritten with default values (this shouldn't happen, but is possible - For clarification, I'm talking about your server's metadata & config, not your media)

Replace manual with apt:

Yes, if apt finds a newer version of a package in a repository that isn't blocked by your preferences, it will propose installing it. If you want to see exactly what will happen if you install the new package, you can do a dry run of the upgrade by running:

sudo apt-get upgrade --dry-run

which will install nothing, but will give you a play by play of what changes would happen if you did run the upgrade.

So, if you once installed Plex Media Server with dpkg, and then add the plex repository to your sources using their recommended method, your version of Plex Media Server will be upgraded. I successfully tested an upgrade from a version of ~1.5.5 I found, then added the repo, and it updated to 1.7.5.4035-313f93718, the version currently offered as an update to xenial. There were no obvious problems with the update, sources were retained and the web interface updated. Before attempting this, it would be a good idea to back up your server's configuration, as mentioned earlier.

Manual over apt:

  if a new feature comes out that I want to try, could I then manually install and hold back apt as well?

apt will only install a newer version of a package, as long as you haven't excluded it with your preferences. So, as long as the advance builds have a higher version number than what is in the repositories (they should), apt should not try to overwrite the package that you manually installed with an earlier version.

To be extra safe, you can prevent updating of a specific package - that linked answer shows exactly how to do that in dpkg or apt.


When creating a launcher item in 15.04, what is the significance of quotes in the file path?

but these paths don't have spaces.

The path have a space between Application and Data.
Therefore you need the double quotes or a backslash \:

Exec=/"home/aortiz49/Application Data/Sublime_Text_2/sublime_text"

or

Exec=/home/aortiz49/Application\ Data/Sublime_Text_2/sublime_text

And for Icon:

Icon=/home/aortiz49/"Application Data"/Sublime_Text_2/Icon/256x256/sublime_text.png


Go to:

  System Settings | User Accounts

Double click on User Account. Then select your user and double click.

click Unlock in the upper right hand corner. (you will need to put in your password if you have one).

Ensure your account has a password.
Ensure that Automatic Login is turned off for your account.


Why is the current directory in the ls command identified as linked to itself?

Taken from this excellent answer by Gilles

Historically, the first Unix filesystem created two entries in every directory: . pointing to the directory itself, and .. pointing to its parent. This provided an easy way to traverse the filesystem, both for applications and for the OS itself.

Thus each directory has a link count of 2+n where n is the number of subdirectories. The links are the entry for that directory in its parent, the directory's own . entry, and the .. entry in each subdirectory. For example, suppose this is the content of the subtree rooted at /parent, all directories:

/parent
/parent/dir
/parent/dir/sub1
/parent/dir/sub2
/parent/dir/sub3

Then dir has a link count of 5: the dir entry in /parent, the . entry in /parent/dir, and the three .. entries in each of /parent/dir/sub1, /parent/dir/sub2 and /parent/dir/sub3. Since /parent/dir/sub1 has no subdirectory, its link count is 2 (the sub1 entry in /parent/dir and the . entry in /parent/dir/sub1).

To minimize the amount of special-casing for the root directory, which doesn't have a “proper” parent, the root directory contains a .. entry pointing to itself. This way it, too, has a link count of 2 plus the number of subdirectories, the 2 being /. and /...

Later filesystems have tended to keep track of parent directories in memory and usually don't need . and .. to exist as actual entries; typical modern unix systems treat . and .. as special values as part of the filesystem-type-independent filesystem code. Some filesystems still include . and .. entries, or pretend to even though nothing appears on the disk.

Most filesystems still report a link count of 2+n for directories regardless of whether . and .. entries exist, but there are exceptions, for example btrfs doesn't do this.

Now to try and answer your query in the comment:

  What is here being listed as a link ? Is the file itself listed ? Or is the directory that contains the file being listed ?

That link belongs to the file not the directory, Let me use an example to illustrate that fact. Now if I were to do nano file.txt, the link here will be used to locate the inode number for that file and the inode will subsequently provide the information that will enable the nano program modify that file. Remember that the inode holds information about that file (whether folder, file, or block device).

Now each filename must be linked to an inode number for normal operations to be carried out on that file, so yes that link belongs to that file and not the parent. I hope I understood your question correctly and also answered it.


How to ping all the ip in LAN using Terminal?

You can install an application called nmap.

sudo apt-get install nmap

Then you can check your entire network for all connected IP addresses by typing in the following:

nmap -sP 192.168.1.1/24

The above command will scan all IP addresses starting at 192.168.1.1 through 192.168.1.254 and show you all IPs that responded.

You can scan other IP address ranges like 192.168.0.1 - 192.168.1.254 by typing in the following:

nmap -sP 192.168.0.1/23

A typical scan might return something like the following:

terrance@terrance-ubuntu:~$ nmap -sP 10.0.0.1/24

Starting Nmap 6.40 ( http://nmap.org ) at 2015-12-24 00:20 MST
Nmap scan report for Linksys03773 (10.0.0.1)
Host is up (0.00078s latency).
Nmap scan report for terrance-ubuntu (10.0.0.100)
Host is up (0.00020s latency).
Nmap scan report for android (10.0.0.148)
Host is up (0.099s latency).
Nmap scan report for PC (10.0.0.149)
Host is up (0.0014s latency).
Nmap scan report for 10.0.0.150
Host is up (0.0016s latency).
Nmap scan report for 10.0.0.165
Host is up (0.011s latency).
Nmap scan report for 10.0.0.169
Host is up (0.010s latency).
Nmap scan report for 10.0.0.179
Host is up (0.014s latency).
Nmap scan report for android (10.0.0.181)
Host is up (0.093s latency).
Nmap scan report for android (10.0.0.188)
Host is up (0.043s latency).
Nmap scan report for android (10.0.0.196)
Host is up (0.014s latency).
Nmap scan report for 10.0.0.253
Host is up (0.0013s latency).
Nmap done: 256 IP addresses (12 hosts up) scanned in 4.46 seconds

I hope this helps!


In ubuntu, how to find whether CMOS battery is working or not?

I have not used SMBIOS for CMOS data (I use it to query for other data), but per it's manpage:

  The files contained in  usr/sbin  retrieve  and/or  manipulate  several
         parameters via the SMBIOS calls:  activateCmosToken ascii2enUS_scancode
         assetTag  retrieve   the   system’s   Asset   Tag   createUnitTestFiles
         dellBiosUpdate  dellLcdBrightness dellWirelessCtl disable_console_redir
         dumpCmos produce a dump of the CMOS dumpSmbios produce a  dump  of  the
         SMBIOS  in  this system getPasswordFormat getSystemId isCmosTokenActive
         probes propertyTag retrieve the PropertyTag, if set serviceTag retrieve
         the  Service  Tag,  the same which can be read in the label at the back
         (necessary to call DELL’s customer service) smitest perform  SMI  tests
         stateByteCtl tokenCtl upBootCtl verifySmiPassword wakeupCtl

See if this provides what you need:

http://manpages.ubuntu.com/manpages/hardy/man1/smbios-bin.1.html
http://packages.ubuntu.com/lucid/smbios-utils

On the man page is the link to download the files to use smbios.  If this doesn't apply, let me know and I'll delete my post.


The best option would probably be to install unity-tweak-tool using apt-get. From there you can change the settings of the fonts used, including the thickness.


Install the libirrlicht-dev.

To see the list of files installed by the package:

dpkg -L libirrlicht-dev

Also, on the Ubuntu site:

https://packages.ubuntu.com/bionic/libdevel/libirrlicht-dev


I was using zsh instead of bash. That is what was causing the problem.
I had to modify .zshrc instead of .bashrc.


Are you able to boot from a LiveCD? If you are, please open 'Terminal' (go to Ubuntu icon > click and type 'term') and type sudo fdisk -l in the Terminal application. Paste the output of the command here. Also take a look at this wiki article Grub2/Installing

If you feel that you are unable to follow the steps or it just doesn't work...Backup your important data to a USB drive while using the LiveCD and reinstall the whole OS.


Is there any VM for Ubuntu 14.04 with best results on notebooks with UHD displays?

VirtualBox or VMware does not care what resolution the guest or the host is running. Both use what they find. To view correctly in the guest system, the installed guest operating system is solely responsible and in your case 14.04.

But as I already wrote here:

  The 4K technology is relatively new. On the other hand your system is
  relatively old. If you want to improve the situation, then you must
  use newer software versions. A first step is to update your system to
  Vivid or to Wily in some days. And then the application developers are
  required. The individual applications have to be adjusted.

Therefore install Vivid or Wily and have patience and in any case, install the guest addons, e.g. VMware Tools and/or Oracle VM VirtualBox Extension Pack.


How to start windows after having installed Ubuntu 14.04?

Boot into Ubuntu 14.04 and try updating Grub from terminal(ctrl+Alt+T)

sudo update-grub

That will check for the other OS that are installed in your machine and updates grub then reboot to see if it worked

If that did not work then you have to repair your windows boot-loader first and then re-install grub

for windows boot loader

=> u need a windows 8 repair disc or windows 8 live usb or live cd

boot from any of the above windows disc and go to

Repair=>System Recovery Options=>command prompt

type the following two commands in cmd exactly

Bootrec/fixmbr 'press enter'

Bootrec/fixboot 'press enter'

now reboot u can see windows boot loader again

Now back to grub boot loader

=> u need ubuntu live usb and use " load ubuntu without install" then install boot-repair and repair grub u can see it in this how it is done https://help.ubuntu.com/community/Boot-Repair

if u install windows boot loader u can create a ubutnu live usb in windows using unetbootin(in case if u have a single pendrive currently)


How to search for both within filename (find) and file (grep) using a single line of code?

You're right - you can use semicolon to run list of commands sequentially:

$ find . -name 'test'; grep test *

You can also group it to run as single command: http://www.gnu.org/software/bash/manual/html_node/Command-Grouping.html


Installed Ubuntu alongside Windows 8, and W8 won't boot anymore

That's it! I've been able to boot on Windows 8 again ! The second link given in the comments by SimplySimon was extremely useful. I've installed rEFInd boot manager and it does the job perfectly.

For future readers having the same issue, rEFind manager is a new boot utility that allows you to choose from your installed OS when you start your computer. I chose Windows, and it simply worked (even with fast start-up option on). And I restarted and chose Ubuntu, and it worked fine too.

Thanks again.


Bluetooth is not working in Ubuntu 14.04

First we need to get some files

sudo apt-get install linux-headers-generic build-essential
wget https://www.dropbox.com/s/f503f6r686riiow/fw-105b_e065.hcd
echo btusb | sudo tee -a /etc/modules

If uname -a shows that you have a 3.13 kernel, then
wget https://www.dropbox.com/s/rlv2prqzzptcr6f/bluetooth-trusty.tar.gz
tar -zxf bluetooth-trusty.tar.gz
cd bluetooth
cp /boot/config-$(uname -r) .config
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$PWD modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo cp ~/fw-105b_e065.hcd /lib/firmware/brcm/BCM43142A0-105b-e065.hcd
sudo cp ~/fw-105b_e065.hcd /lib/firmware/
sudo modprobe btusb

If you have a 3.16 kernel
wget https://www.dropbox.com/s/uocd0xqaprm4yvi/bluetooth.utopic.tar.gz
tar -zxf bluetooth.utopic.tar.gz
cd bluetooth
cp /boot/config-$(uname -r) .config
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$PWD modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo cp ~/fw-105b_e065.hcd /lib/firmware/brcm/BCM43142A0-105b-e065.hcd
sudo modprobe btusb

If updates happens to install a new kernel that doesn't yet support the device, you will need to do the following to get it working again

cd bluetooth
make -C /lib/modules/$(uname -r)/build M=$PWD clean
cp /boot/config-$(uname -r) .config
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$PWD modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo modprobe -r btusb
sudo modprobe btusb

If you have a different series kernel, just add it in a comment.
If you do a sudo update-usbids and look at lsusb you should notice that device with ID 105b:e065 is identified as a Broadcom BCM43142A0 Bluetooth


Why is this single-word address being resolved?

Just so you know, the entire client-side of the domain name system is entirely arbitrary; by convention programs are supposed to go through the system's C library to resolve hostnames, but technically they could entirely bypass that mechanism if they wanted to, either by shipping their own C library (statically compiled or otherwise), or using a completely custom DNS lookup system that does or does not use the DNS protocol.

Assuming a standard Ubuntu install, running programs that are linked to the system C library, you've got eglibc (which is a minor fork of GNU libc), and the default path of the file that tells gethostbyname() and other C library DNS resolution functions what DNS server to hit is /etc/resolv.conf.

nameserver 127.0.0.1 means "use the DNS protocol to ask 127.0.0.1 about DNS queries" -- I assume you have a local caching DNS server that forwards to an upstream DNS server, such as dnsmasq or bind, for performance reasons (when doing a DNS query, it's a heck of a lot faster to query a server on your own computer than to go hit the network!)

search redacted.mycompany.com means "when trying to resolve foo, if it doesn't resolve directly then add the string .redacted.mycompany.com on the end and try again; if that works, return that result".

I think this is working "by design", but I don't know why it wouldn't work on coworkers' machines, unless they don't have the search line.


ping is an application, considering this it needs an existing connection between the sender and receiver, in other words a routing path; since you specify a gateway in your setup it means that everything that is send or received by 192.168.1.2 has to pass through 192.168.1.1, and if 192.168.1.1 it's not present in your topology you simply do not will have any connection at all from 192.168.1.2 .


What happened to Ubuntu Desktop's global menu and Linux Kernel 3.8.5?

The kernel is based on linux v3.8.5. And wait for the final release, I guess you are using one of the latest daily builds. The appearance has changed, also its more snappier than 12.10.


What programs should I use to get a picture of resource usage on Ubuntu ?

Try top with parameter such as -b and -d delay.

In facts, from man top:

  -b : Batch-mode operation
  Starts top in 'Batch' mode, which could be useful for sending output from top to other programs or  to  a  file.

and

  -d : Delay-time interval as:  -d ss.tt (secs.tenths)
              Specifies the delay between screen updates

The command top -b -d 1 > mylog put every second the output of top in the file mylog.


How give a specific to a command and call it by its name later

You can create an alias for it
Run the command
vim ~/.bashrc to open your .bashrc and add alias shortName="your command here"
In your case, add:
alias vpn-start="openvpn3 session-start --config /home/user1/Downloads/myconfiguration.ovpn"

You can then use vpn-start shortcut to open your VPN session


Open "System Settings" and select "Displays".

"mirror displays" will mirror the laptop display on the external device. This will show the same on both screens but the resolution may be limited.

Based on your description, it sounds like you have it set to display as an extended desktop.

Extended desktop settings:

Set "launcher placement" to show on all displays or only the primary display.

"Scale all window contents to match" can be set statically to either desktop individually or set to favor the "Display with largest . . ." or " . . . smallest controls".

Pretty much the same so far but here's where there's been some changes.

The primary desktop is the monitor to the left as seen below (Built in Display):

To change this, you can click and drag the external monitor to the left of the "Built in Display" as seen here. When you click "Apply" the primary monitor and the active window will change to the external monitor.

In 12.04, videos and full screen applications such as web browsers would only show full screen on the primary monitor, however, this has changed. In 14.04, videos and web-browsers set to full screen will display full screen on the same monitor as the application. Drag the application to the monitor you wish to display the full screen image and then click full screen or press F11.


Boot Repair should have no problems with your setup, although you should be careful to boot your emergency disc in EFI mode, since Windows is installed in that way. Your Boot Repair output indicates that GRUB is installed in BIOS mode, and there's no evidence of an EFI-mode installation of GRUB, so my suspicion is that this is the root of your problem. I therefore recommend that you first attempt to get your emergency system booted in EFI mode by fiddling with your boot-time options. Check for a directory called /sys/firmware/efi; if it's present, you've booted Linux in EFI mode, and if it's not, you probably haven't.

If you have problems with that, you could try my rEFInd boot manager instead. Download the USB flash drive or CD-R version from its downloads page, prepare a medium with it, and boot to it. If the rEFInd menu appears and enables you to boot either Ubuntu or Windows, boot to Ubuntu and install the Debian-package version.


The simplest way to get the effect you're desiring is to follow best practice for installing Linux Apps.

Leave behind that download from the browser and launch Terminal instead. Type this command to install VLC:

sudo apt-get -y install vlc

It'll even show up in the search app!


How do I get out of purple boot screen while installing Ubuntu on an iMac Intel Core i7 Haswell 2013?

Download the Ubuntu 13.10 64-bit PC (AMD64) desktop image, not the Mac one. Burn it to a CD/DVD with disk utility, the next step is creating a partition for Ubuntu. Go into Disk Utility and manually shrink your Mac partition. Shrinking your Mac partition will create some free, unallocated space, which is exactly what we need. Don't forget to Install The rEFInd boot manager before you proceed.

Now we can begin installing Ubuntu. Boot from Ubuntu CD by holding the option key on your keyboard (alt) right after the chime sound) and choose  the "Windows" CD. I know this sounds strange but for some odd reason the mac thinks it's windows. This will bring you to a Ubuntu-like desktop where you can check out Ubuntu or use some useful tools. Just start the installation. When you start the installation you will be led through the installation process. Somewhere early along the path you will be asked where to install Ubuntu. I chose install alongside Mac OS X and it worked fine for me!

You will then be guided through the installation. If you are not familiar with Ubuntu installations, I can assure you that this is pretty straightforward. You will be able to pick a username, password, computer name etc. I recommend you to install the third party audio software since Ubuntu can't provide Audio codecs itself. Installing updates will increase installation time of course, but since it's the first thing we will do after the installation, you might as well do it. After having finished the basic configuration feel free to look at the slideshow, play around Ubuntu a little bit or just leave the installation to itself. Check in every 15 to 20 minutes to see if everything is alright. The installation took about 20 minutes on my iMac after having entered the personal info. The usb stick method did not work for me, I was only able to install and boot Ubuntu properly with a CD/DVD. Try this workaround and let me know if it worked for you..


Open a terminal and run the following command:

sudo rm -rf /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages

and then run:

sudo apt-get update

You can then try installing bumblebee:

sudo apt-get install bumblebee bumblebee-nvidia


what exactly do the terms nomodeset, dual boot an wubi mean?

No-modeset: What does `nomodeset` do

Dual-boot means having 2 operating systems on a machine where you, during the -boot- process, select 1 of these to start. Technically it refers to 2 systems but you can have something like 255 operating system on your system (and most would still call this a dual boot).
With this method you will have 1 system active and 1 system dorment.

WUBI is a method of installing Ubuntu -inside- a Windows (but NOT in Windows ME and NOT in Windows 8). You boot into Windows and within Windows you can start Ubuntu. WUBI was created as a tool for people interested in Ubuntu but who did not want to mess with their partitions to get a dual-boot. (so it should not be used as a permanent method for using Ubuntu).

If you want to install Ubuntu inside Windows you can also use virtualBox, VMWare or another "virtual machine" software.


I believe you found a bug with that snap.

If you would like to use the snap, consider contacting the publisher directly to file a bug (however I'm not sure that developer is still with Canonical and the email listed is para.siva [at] canonical.com). Alternatively, you might try posting on https://forum.snapcraft.io/

If you don't care about using a snap vs deb, just uninstall the snap (sudo snap remove tree) and install it with apt (sudo apt install tree).

If you would like a hacky wordaround. Install the deb with apt, then immediately remove it. This worked for me, and I believe it's because it installs some missing shared libraries, that probably should be bundled with the snap.


Weird pointer+mouse+touchpad functionality in Ubuntu + ASUS X550L

Just check for the wheel mouse ( Weird that the touchpad is recognized as wheel mouse)

xinput --list

PS/2 Logitech Wheel Mouse                 id=XX   [slave  pointer  (2)]

if XX is the id number then

xinput --set-prop XX "Device Enabled"  0

Waiting for a fix

Cheers
Fuki


According to motd manual:

   The  contents of /etc/motd are displayed by login(1) after a
   successful login but just before it executes the login shell.

according to login manual:

   On some installations, the environmental variable $TERM will be
   initialized to the terminal type on your tty line, as specified in
   /etc/ttytype.

and according to clear manual:

   It looks in the environment for the terminal type and then in the
   terminfo database to  figure out how to clear the screen.

I guess that TERM variable is set after your motd scripts execution and because of this, clear command print TERM environment variable not set.

On lubuntu 12.04 I tested this by unset TERM and exec clear. In this condition I obtain same error.


I tried to upgrade from 11.04 to 11.10 so that I can get to 12.10-14.04

That is an old release. Try making a fresh install of 14.04, you will not be able to upgrade with such an old Ubuntu version.


Are there docs for the Juju bundle file format?

Yes. The bundles are actually part of the juju-deployer tool. You can find more information about the tool and the bundle config file format here:

http://pythonhosted.org/juju-deployer/config.html

Here's a bunch of bundles if you want to see existing ones:

https://jujucharms.com/solutions?type=bundle

sources:

Is it possible to deploy multiple charms in one click?
Is it possible to deploy bundles to specific machines?


You have to burn your CD as ISO-Image, else it will end as a single, normal file on the CD.


Xubuntu after new installation booting from old disk

after booting to the old hdds xubuntu install grub2s MBR on the new hard disk using this command:

sudo grub-install /dev/sdb

/dev/sdb has to be replaced with the device node of your ssd


Ubuntu install stops at "Creating ext4 file system for / in partition #1 of SCSI2 (0,0,0) (sdb)..."

Physically disconnect main 1TB hard drive data cable from motherboard, connect your NEW (2nd) hard drive to system using a different data port on motherboard, and leave main disconnected, boot system from pendrive and install UBUNTU onto (2nd) hard drive, after installing UBUNTU to 2nd hard drive, REconnect main hard drive to it's original data port. If you do not already have it, I would recommend downloading Boot-Repair-Disk from sourceforge.net onto a dvd and booting to repair disk first thing and let repair disk set-up GRUB, after Boot-Repair-Disk has done it's magic, REBOOT system and you will have a choice of the two hard drive you have installed. I have 3 hard drives on my GATEWAY PC and this procedure has worked flawlessly every time. I have Ubuntu 14.04 & windows 7 on one drive, ubuntu 15.04 on drive #2, and RoboLinux on drive #3, the KEY here is to let Boot-Repair-Disk do it's magic to GRUB and everything should be PEACHY :-)


Exec=opt/chat/bin/chat
1 chat - name of application. 2 chat is target of pro file...

It`s ugly but it work/


issue the command

sudo blkid

you may find that you are attempting to repair raidz 1-1 with a member of or spare reserved for raidz 1-0. rgardless you should probably insure that you assemble your raid arrays in future by id rather than /dev/sdx

In response to the comment about disregarding membership. This is a dangerous course of action. Insure your backups are current and accessible. This is not my strongest suit but I did find:

This has been apparently asked and answered here Replacing a dead disk in a zpool

I also found information here which may or may not be relevent:

http://docs.oracle.com/cd/E19253-01/819-5461/gaypw/index.html

To remove a member of a zpool

zpool remove pool vdev

source:http://manpages.ubuntu.com/manpages/lucid/man1/zpool.1M.html


how come ubuntu is not compatible to the galaxy note 3

Ubuntu-touch is in development. At first they will get it working and stable on just a few devices, after this more work on porting to other devices will (I assume) have more priority. It doesn't make sense to try to develop the system for everything at once.


Move trash icon to bar with function icons

Is the "bar" the top bar? Look for extensions then.

Maybe this -> https://extensions.gnome.org/extension/48/trash/


My Uninstall of Ubuntu 14.04 from Windows 8.1 messed up using EasyBCD

If you want to fix GRUB first:

I had this happen to me once when I "broke" GRUB. Here's how you can boot from the GRUB terminal:

http://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux/

After you get into Ubutnu, you can fix GRUB by installing and running boot-repair:

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

Then select the recommended fix.

If you want to skip GRUB and boot into your windows partition:

Go into your computer setup and change your boot order to boot from Windows partition first by pressing F2, ESC, or whichever button it is for your board.

Alternatively

Having installed, reinstalled, and rearranging partitions all day for the past few days, here's what I found the easiest way to do it. NOTE: THIS WILL WIPE ALL DATA FROM YOUR UBUNTU PARTITION, SO MAKE A BACKUP.

Boot from a live installation disk and run gparted. (Unmount your hard disk if it's mounted) Delete the Ubutnu partition(s) and create new partition(s) how you want to arrange them. Hit "Apply", exit the application, and run the installer. Select "Other" as the method you'd like to install Ubuntu, then choose your partition(s).


how to completely remove snap and replace with flatpak?

sudo apt purge snapd gnome-software-plugin-snap

Thanks to doug

it feels so clean now, all snap removed.


Dell Vostro 3450 Bluetooth disables on reboot

I don't have a Dell Vostro 3450, but on my Dell Vostro 3350 I solved this problem with this guide and so bluetooth works fine.


How to extract a backup from old 1993 files from an IBM PS2?

This was much too large to write in a comment.

You have 25 disks likely 1.44 MB format totaling 36 MB of backup. If they are compressed from the hard drive it was likely 60+ MB which was very large for that era. I remember around that time a pair of SCSI 150MB drives (the size of toasters) setup in RAID 1 with were $5,000.

Looking at this PC Magazine review from 1993, there were five popular backup programs:

Central Point Backup
DOS 5
DOS 6
Fastback Plus
The Norton Backup

When you have 25 disks it's almost certainly in compressed format making it unreadable to the human eye.

You have to do some digging into internals to find out which compression format the archives are in. Then you need to find the program which can decompress them. Luckily in 1993 there weren't too many compression algorithms so there are probably only 3 or 4 possibilities. Also data encryption was rare which is good because that would make it next to impossible for you to decompress the data.

The catalog for the backup files is almost certainly on the last diskette. Somewhere on each diskette their should be a file containing the disk number plus other control information.

Good luck in your endeavors and keep us posted if you can.


Ubuntu 18.04 Dual boot Windows 10 fails to boot

You may want to try:

bcdedit /set {bootmgr} path \EFI\BOOT\grubx64.efi

I downloaded on 2 Oct 2018, Ubuntu 18.04.1 LTS AMD64. And I  found the grubx64.efi in the \EFI\boot directory on my USB drive. I got no grub screen as well until I added the command I mentioned.


A Wine v1.61:1.6.3 install locked up about 2/3rds through.

force it to quit and then run the following commands:

sudo rm /var/lib/dpkg/lock
sudo apt-get update
sudo apt-get install --reinstall wine


What vector-image application can export in Corel or Adobe Illustrator formats?

Corel as well as Illustrator can recognize and read SVG format. But the problem is that sometimes they don't open SVG properly.
Generally some publishers can print from pdf. I think, the main issue is to get along with the publishing house about the file prepared for print.


unit.service failed because the control process exited with error code. What does this error mean?

The error you pasted is "Exec format error".

There are already a number of possible causes for "Exec format error" documented in the Stack Exchange network. I recommend reviewing that answer.

Also, if you can, avoid mixing systemd config files with legacy "sysVinit" scrypts in /etc/init.d. They can work together, but it makes problems harder to be debug. I recommend using exclusively systemd if possible.


Why command line completion doesn't work anymore with ":>"?

I think something changed in bash-completion. Now you have to escape the colon (:).

\:> my


For a full Ubuntu experience without installing it on HDD I would recommend creating a bootable USB stick or disk. To do it on Windows you can follow this tutorial, it is pretty straightforward.


I am on Ubuntu 18.04 LTS, and is dual booted. I can't install Netbeans!

Netbeans and Java versions seems to be either incompatible or either of the two is broken. Ubuntu's default jdk is JDK 10 but has Netbeans 8.1. Also, release notes of Netbeans 8.2 clearly states: The tested JDK for this release is JDK 8u101 for Windows, Linux, and OS X. The 8.2 version of the IDE cannot be installed or run on the JDK older than JDK 8.

Note: I have also tried using Netbeans with JDK8 which is already present in repository and it's also having some sort of bugs.

I have also observed that not only Netbeans but Eclipse is also having some problems. So, what I did is first of all I uninstalled java completely from my system following steps from here. Then downloaded Netbeans+JDK8 from here. I assume that your downloads go in ~/Downloads folder.

Then follow these steps:

cd Downloads
chmod +x jdk-8u171-nb-8_2-linux-x64.sh
./jdk-8u171-nb-8_2-linux-x64.sh

For Installation of Netbeans 9.0 see here.


write image with last version of ultraiso. i had this problem with every ubuntu release. unetbootin didn't help, only the latest versions of ultraiso at the moment.


Environment variables?  I'd start looking here: http://manpages.ubuntu.com/manpages/precise/man5/rcS.5.html.

UNIX and its children use UTC as the system time and then set the offset from that through a $TIMEZONE, $TZ or similar variable.


Can a script modify an environment variable of its calling shell?

It is not possible. As you have correctly observed, your script is executing in its own shell. This shell gets a copy of its parent shell's environment when it is forked, and it has no way to access the parent shell's environment. And that is good, because otherwise scripts could have all kinds of unforeseen side effects. ;)

In order to change variables in your current shell, you can always source your script file (instead of executing it as an independent process), so the script gets executed by your current shell instead of a forked one. If your script is called myscript.sh, call it as source myscript.sh instead of ./myscript.sh.


Is there an alternative to mail-notification which supports Hotmail?

Probably you were using Evolution and didn't like Thunderbird either. If that was to be the case maybe you might be interested in Popper: https://launchpad.net/~ralf.hersel/+archive/rhersel-ppa . It incorporates very well with your Ubuntu system.

I haven't tried it myself but those who did said it's very functional.


I've found something in the GVFS man page that states that it's for browsing windows file shares.

• gvfsd-smb-browse - browses Windows Shares Filesystem volumes

GVFS is the gnome virtual filesystem:

GIO provides a VFS API to GLib applications. It includes a 'local'
implementation using POSIX. gvfs provides implementations that go
beyond that and allow to access files and storage using many protocols,
such as ftp, http, sftp, dav, obexftp, etc. It also provides support
for trash folders, for cd burning and for monitoring interesting
devices and volumes on the computer.

There are several reports of bugs in GVFS which caused 100% cpu usage including this one which is currently open.


How can I make the icons in Ubuntu Dock slide when mouse hovered in Ubuntu 20.04?

The feature is not available yet in Ubuntu Dock (note that Ubuntu Dock in GNOME 3 environment and the Launcher in Unity are two separate things).
When you have too many applications open so that all of them don't appear in the dock, you can simply use you mouse's scroll wheel (or touchpad's scrolling feature) to scroll the icons up or down in order to reveal the hidden ones in the top or bottom.
Note: It is still possible to use Unity on Ubuntu 20.04 instead of the default GNOME 3.


Follow the below steps properly:

STEP - I: Deleting Ubuntu Partitions

Boot into Windows OS
Press Windows + r keys together and type diskmgmt.msc to enter into your disk management utility
You can easily recognize the Ubuntu partition by their size. Another hint to recognize the partitions is to look at the partitions which don’t have a file system and drive number. Windows partition is labeled with a drive number such as C, D, E etc and are usually in NTFS or FAT file system
Manually select all your Ubuntu partitions one by one and right click on each and select the option - Delete Volume
All the deleted space will show as Unallocated on your Windows partition table. Now, either extend any of your existing partitions or simply create a new partition (using the entire Unallocated space you got)

STEP II: Fixing the Boot loader

Use your Windows OS disk and restart your computer. Press F10 or F12 at the boot time to go into BIOS/UEFI and choose to boot from removable disk
Select 'Repair your computer' option
Go for the 'Troubleshoot' option here and then select 'Advanced options'
Look for the 'command prompt' option and select it
Once you enter into the command-line interface, type the following command:
bootrec.exe /fixmbr
Once it’s done, restart your computer and this time boot normally from the hard disk. You should be able to boot into Windows.

In case you encounter Grub rescue error, try the steps below:

If the command bootrec.exe /fixmbr did not work, try the 'Automatic Repair' option in advanced troubleshoot option
It will find the issue and take some time to repair it

Once done, reboot your system and you should be able to boot into Windows OS directly (with no GRUB options).


How do I remove a website from Ubuntu's web applications?

Update

Easy way for 12.10 onwards:

Go to the Software Center and search for the specific web app and uninstall it. E.g.

unity-webapps-gmail or unity-webapps-googledocs

Hard way, for 12.04 and older Ubuntu versions

Press Alt + F2 , run dconf-editor.

Now go to com → canonical → unity → webapps.

Edit Allowed domain value and remove the undesired entry.

To prevent any more popups for a site, add the site URL to:

Firefox :Edit>preferences>General> Desktop integration > exception

or

Chrome  : Settings > Extension > Desktop integration > Exception

How do I disable unity webapps notifications from popping up everytime I visit a supported webpage?


Why am I getting locked into 'Activities/Overview' after Super Key on Ubuntu 21.04

This appears to be a bug in the current Ubuntu 21.04 release.
If you are using XOrg, you can restart GNOME shell.
Type AltF2, then type the r key in the "Run a Command" dialog and press Enter.
This will restart GNOME Shell, and you do not have to log out or lose your work.
To use XOrg instead of Wayland...

On the GDM Login Screen, click your user name
Before entering the password, click the gear icon at the bottom right of the screen
Select "Ubuntu on Xorg"
Type your user's password, and press Enter

To verify you are using XOrg...

Open System Settings
Select "About" from the left panel
Confirm "Windowing System" is "X11"

The next time you log in with this user, Ubuntu will default to XOrg.
Then, if you ever get locked in the Activities Overview, simply restart GNOME Shell using the procedure above.
IMPORTANT
I've opened a bug report, Unable to exit Activities Overview in Ubuntu 21.04, for this issue against gnome-shell.
If you are impacted by this issue, it is critical that you create an account on Launchpad and mark yourself as impacted.
If the developers do not know that multiple users are affected and are looking for a fix, they will not fix this bug.


unable to format usb 1204 [daemon inhibited ]

Try this

  sudo killall udisks

then load gparted - format to desired file system

good luck Mal


Enable compiz on intel core i5 (Nvidia GT330M) based laptop

I managed to get compiz to work. i uninstalled nvidia's proprietary driver (nvidia-current). now with nouveau, glxinfo gives decent output and says direct rendering is enabled (turns out its talking about the intel chip). then i go to desktop effects, and when i select extra, it says install nvidia proprietary drivers, i click cancel, the screen blinks but compiz is now enabled

Ubuntuforums solution


You have downloaded Monero GUI Linux 64-bit 0.12.0.0 Lithium Luna, from official link I hope.

So you have monero-gui-linux-x64-v0.12.0.0.tar.bz2 file in your ~/Downloads folder. Then you can extract it by any known way.
The folder monero-gui-v0.12.0.0 will be created here.

This directory has start-gui.sh, you can click on it or run it from terminal with ./start-gui.sh.


I've also faced the same issue a few weeks back when I installed Ubuntu on my new laptop. Here is a fix (which involves partially disabling the suspend thing)
I've found a workaround

Set "blank screen" to "never" in settings>power

Set "automatic suspend" to "off" in settings>power

Set "power button action" to anything other than "suspend" in settings>power

The most important :
Open logind.conf file in
etc/systemd using gedit
"sudo gedit /etc/systemd/logind.conf"

Then uncomment (remove the #) the line containing "HandleLidSwitch" and set its value to "lock"


Invisible space when trying to remove file (but exclude all files in a list)?

It seems that your a.txt file contains hidden characters due to possibly being created or edited on other OS's like Windows.

You need to sanitize the file first in order to use it without syntax errors.

The easiest way is to use a tool called dos2unix. Please follow these steps to do so:

Firstly: Install dos2unix by opening a terminal and running the following command:

sudo apt install dos2unix

Secondly: Back up your a.txt file.

Thirdly: Use dos2unix on your file by running the following command in the terminal from within the directory containing your a.txt file:

dos2unix a.txt

Finally: Test your file. It should be fine now.


No hardware events in perf list on PC w/ Intel Core i7-4770 CPU running Ubuntu Server?

I didn't get any hardware events listed either, until after I used some. Now, even after a fresh re-boot, some are listed:

doug@s15:~$ perf list hw

List of pre-defined events (to be used in -e):

  branch-instructions OR branches                    [Hardware event]
  branch-misses                                      [Hardware event]
  bus-cycles                                         [Hardware event]
  cache-misses                                       [Hardware event]
  cache-references                                   [Hardware event]
  cpu-cycles OR cycles                               [Hardware event]
  instructions                                       [Hardware event]
  ref-cycles                                         [Hardware event]
  stalled-cycles-backend OR idle-cycles-backend      [Hardware event]
  stalled-cycles-frontend OR idle-cycles-frontend    [Hardware event]

doug@s15:~$ perf list pmu

List of pre-defined events (to be used in -e):

  branch-instructions OR cpu/branch-instructions/    [Kernel PMU event]
  branch-misses OR cpu/branch-misses/                [Kernel PMU event]
  bus-cycles OR cpu/bus-cycles/                      [Kernel PMU event]
  cache-misses OR cpu/cache-misses/                  [Kernel PMU event]
  cache-references OR cpu/cache-references/          [Kernel PMU event]
  cpu-cycles OR cpu/cpu-cycles/                      [Kernel PMU event]
  instructions OR cpu/instructions/                  [Kernel PMU event]
  mem-loads OR cpu/mem-loads/                        [Kernel PMU event]
  mem-stores OR cpu/mem-stores/                      [Kernel PMU event]
  power/energy-cores/                                [Kernel PMU event]
  power/energy-gpu/                                  [Kernel PMU event]
  power/energy-pkg/                                  [Kernel PMU event]
  ref-cycles OR cpu/ref-cycles/                      [Kernel PMU event]
  stalled-cycles-backend OR cpu/stalled-cycles-backend/ [Kernel PMU event]
  stalled-cycles-frontend OR cpu/stalled-cycles-frontend/ [Kernel PMU event]
  uncore_cbox_0/clockticks/                          [Kernel PMU event]
  uncore_cbox_1/clockticks/                          [Kernel PMU event]
  uncore_cbox_2/clockticks/                          [Kernel PMU event]
  uncore_cbox_3/clockticks/                          [Kernel PMU event]
  uncore_imc/data_reads/                             [Kernel PMU event]
  uncore_imc/data_writes/                            [Kernel PMU event]

Earlier I had done these:

doug@s15:~$ sudo ~/bin/perf stat -a sleep 5

 Performance counter stats for 'system wide':

      39997.230896      task-clock (msec)         #    7.998 CPUs utilized            (100.00%)
               396      context-switches          #    0.010 K/sec                    (100.00%)
                 8      cpu-migrations            #    0.000 K/sec                    (100.00%)
                82      page-faults               #    0.002 K/sec
       359,328,178      cycles                    #    0.009 GHz                      (83.29%)
       827,261,275      stalled-cycles-frontend   #  230.22% frontend cycles idle     (83.33%)
       797,161,705      stalled-cycles-backend    #  221.85% backend  cycles idle     (66.74%)
        49,220,050      instructions              #    0.14  insns per cycle
                                                  #   16.81  stalled cycles per insn  (83.37%)
        10,011,396      branches                  #    0.250 M/sec                    (83.37%)
         1,800,790      branch-misses             #   17.99% of all branches          (83.29%)

       5.000925953 seconds time elapsed

doug@s15:~$ sudo ~/bin/perf stat -e cycles,instructions,cache-references,cache-misses,bus-cycles -a sleep 5

 Performance counter stats for 'system wide':

        24,268,338      cycles                                                        (100.00%)
         8,505,561      instructions              #    0.35  insns per cycle          (100.00%)
           657,099      cache-references                                              (100.00%)
            73,174      cache-misses              #   11.136 % of all cache refs      (100.00%)
         1,507,017      bus-cycles

       5.001004407 seconds time elapsed

doug@s15:~$ sudo ~/bin/perf stat -e L1-dcache-loads,L1-dcache-load-misses,L1-dcache-stores sleep 5

 Performance counter stats for 'sleep 5':

           170,208      L1-dcache-loads
            14,139      L1-dcache-load-misses     #    8.31% of all L1-dcache hits
     <not counted>      L1-dcache-stores           (0.00%)

       5.000957676 seconds time elapsed

I do not how know if my list is now complete, nor how to get the complete list if it isn't.


Shutdown my system in 30 minutes with telinit

Using at:

at now + 30 minutes <<<'telinit 0'

Or use sleep 30m; telinit 0.

telinit itself cannot do this. You will have to use other tools in combination. at and sleep both allow you to cancel the operation (with atrm for at and CtrlC for the other).


As per a comment:

    Todays update fixed the issue


How to start deluge minimised, only with a tray (notification area) icon?

If you start deluge from command  line it will start in the tray.


automatically log clipboard into logfile

Full disclosure: I'm the author of the suggested software

Yes, possible with clipboard manager. It has to be on to record what is being placed into clipboard. If you want to review what was in clipboard from a week ago, but you had no clipboard manager running - there's no way to review previous information, as clipboard is not actively stored anywhere by operating system or desktop environment itself.

Specifically, I'd suggest Indicator Bulletin, of which I am the author, exactly because clipboard entries are timestamped, so you can search by time. Again, to review clipboard entries the software has to run to record clipboard.

Installation via PPA:

sudo add-apt-repository ppa:1047481448-2/sergkolo
sudo apt-get update
sudo apt-get install indicator-bulletin

See other suggestions on another Ask Ubuntu question: Searchable Clipboard Manager


Nvidia - Graphics interface not loading at startup

You could try running lspci in a terminal, if you see:

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation      Core Processor Family Integrated Graphics Controller (rev 09)

you will need to install bumblebee (the instructions on the git wiki are quite clear). It's needed to switch between the intel and nvidia optimus card.

The correct xorg.conf is the first one, and remove nvidia driver from the blacklist.


systemctl failed to execute because it isnt a directory

Run this command to find the failing command

  strace -f systemctl enable sonarr.service

This will log every system call made by the operation to STDOUT.
The failing command will be one of the last ones run. From what you could be able to figure out what is being referred by the "not a directory" diagnostic message.


Suddenly can't type non english characters any more

I see that you have IBus set as the input method framework without having IBus installed. I suggest that you run this command:

im-config -n none

and log out and log in again. Doing so might make a difference.


Why is `df -h` not showing the whole disk space?

When installed using wubi (the Windows installer) the file system is limited to 30GB max, no matter what the target partition is. If you want to use more space, in fact, if you plan on using Ubuntu for anything other then testing, do a proper installation.


Recursively copying specific directories

Yes it will work.
If company don't like you testing in production, they of course provide a test-system ? Or you can test in a vm on ypur pc, for instance in VirtualBox.


It's very subjective to say whether it is compatible or not. Even I cannot say that for myself, since I've had quite a lot of trouble until I got my system in a state that I wanted to. But I guess it is always the case when you are trying to install GNU/Linux on a laptop and especially on a newer one.

I have the very same model (Lenovo Y510p) with Ubuntu 13.10 installed which is currently running quite well. My model is the one with only one graphics card (Nvidia GeForce GT755M).

Let me try and break down the current state of my machine:

Graphics: I'm currently using the integrated Intel GPU for the system and I'm able to use Nvidia for a process with a command. (Bumblebee) Actually this is just what I want since I don't want my laptop heating up without any need just because it's using the Nvidia graphics. And it saves a bit of battery power to use the integrated Intel GPU as well :) So you only call the heavy artillery (Nvidia) when it's needed. There are still a few glitches that need to be fixed. (e.g, The brightness is automatically set to 0 when booting and I need to set it up manually with my keyboard.) But for now I'm happy.

Audio I/O: No issues so far. Works like a charm.

Bluetooth: Works fine but has a few problems as well. (e.g., When you resume from sleep, my devices are not able to connect.) So far I have found some workarounds but they are not very convenient.

Touchpad: After some set up it works pretty decent.

I cannot currently think of other things that could be relevant to what you would demand from your machine. Please feel free to ask me if you want to know something more.

If I (personally and subjectively) had to give some compatibility score, it'd be:

Compatibility with Ubuntu: 5/10

I'm yet giving such a low score, since I would expect all the things to work out of the box without the need to further configure and tweak.

Good luck!


Have you already tried Ubuntu's advanced boot options?

When booting the DVD, press any key when the keyboard and the little guy are on the bottom of the screen.

Especially note the function key F4 modes:

I would start trying the following video modes:

771 (800x600)
775 (1280×1024)

All of the video modes for Linux are in this excellent Wikipedia article

Once you've got everything up and running, and can see what you're doing you can then try to go to "additional drivers" in the dash and download video drivers that better fit your 1600x900 screen.


Why is my browser leaving out so much space in both sides?

This is normal. It depends on how a site is designed (for example, from the screenshots you added, Stack Overflow and help.ubuntu.com have the empty spaces, but YouTube doesn't).
In general, regarding everything being tiny on all sites, you can reduce your screen resolution, or use zoom in Firefox settings.


How to install a clock face on my desktop?

There is a desktop clock widget you can use here:

There is also a nice clock/weather indicator


Wireshark installation complains about unmet dependencies

The solution is to remove Wireshark PPA and install Wireshark from Ubuntu universe repository:

sudo apt-get install ppa-purge

sudo ppa-purge ppa:wireshark-dev/stable
sudo apt-get install wireshark


I would try

sudo apt-get update && sudo apt-get upgrade

and check if there are any dependencies not met or for any other errors.

sudo apt-get dist-upgrade is another solution as well (check what the difference between these commands are).


Select Layer → Transparency → Add Alpha Channel
Select the background using the Fuzzy Selection Tool (Magic Wand)

and press the Del key.

GIF will allow you single-color transparency, while  PNG has full alpha channel support.


cp: cannot stat 'filename': No such file or directory

I am not familiar with running Ubuntu inside a ChromeOS. It looks to me the folder VueScan exists in two places:

In the screenshot, the file manager shows the location as: My files/Linux files/VueScan

Based on the output of the pwd and ls commands the location is:
/home/robwilton/VueScan

It is possible ChromeOS and Ubuntu denotes the file locations slightly differently. These two are the same location. I will assume that they are.
Method 1: Change directory and then copy:
Step 1: Change directory to VueScan in the terminal
Open a terminal (if not already open) and enter:
cd VueScan

Note, Linux files are case sensitive. VueScan and vuescan are completely different folders or files. So type with care. When you type the above command and press Enter the command prompt will change from:
robwilton@penguin:~$

to:
robwilton@penguin:~/VueScan$

Now you know that you are inside the ~/VueScan folder.
Step 2: Copy the files as directed:
Now you can follow the instructions and use the cp command to copy the files in the location specified. For example:
sudo cp vuescan.svg /usr/share/icons/hicolor/scalable/apps/

Now the above command should work, and the file vuescan.svg resides inside the folder ~/VueScan and you have entered this folder.
Note: Normally when a file is successfully copied you don't get a confirmation. Only errors are reported by default.
(Advanced) Method 2: Copy with relative or absolute file path
You can avoid the change directory, cd command and use just the copy, cp command and tell the command where the source file is:
sudo cp ~/VueScan/vuescan.svg /usr/share/icons/hicolor/scalable/apps/

Note the upper and lower cases in the folder and file names. Also do not forget the ~ and the / before the folder name. The ~ stands for your current location, which is /home/robwilton. I know this from the pwd command output.
So another way of specifying the source file location is:
sudo cp /home/robwilton/VueScan/vuescan.svg /usr/share/icons/hicolor/scalable/apps/

Now you can copy all the files to their respective location by using one of the two methods.
Hope this helps


I used the command "cd /mnt/c" and that did the trick.


Should I do anything about unsupported packages after `do-release-upgrade`?

You probably have nothing to worry about but you can double check with command:

$ apt list | grep -E 'gcc-.?-base'

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

gcc-5-base/xenial-updates,xenial-security,now 5.4.0-6ubuntu1~16.04.12 amd64 [installed]
gcc-6-base/xenial,now 6.0.1-0ubuntu1 amd64 [installed]

In above case it's a Ubuntu 16.04 installation and it is showing what you have lost. When you run the command the results should show what you have gained (newer versions) with the code name bionic instead of xenial.

gcc is the compiler for Ubuntu and most other Linux distributions. It is needed when certain drivers and applications are released in source code rather than binary format. gcc compiles that source code (which humans can read) into binary format for the machine to run.


Screen Resolution stuck at 640x480 after installing Bumblebee

I have a Dell XPS 17 laptop and just had the same problem after running nvidia-xconfig and then rebooting. Got stuck with 640x480. I deleted the /etc/X11/xorg.conf file and the resolution returned to normal after rebooting again. It worked, but I'm just not sure this was right thing to do to return to a previous state..


It seems once you configure the CMAKE_BUILD_TYPE to debug then press c a couple of times then pressing g generates the MakeFile.


In bash `$-` yields `himBHs` but `i` and `s` are invalid options -- what's going on?

Note that the bash man page, right near the top, says

OPTIONS

All  of the single-character shell options documented in the description of the set builtin command, including -o, can be used as options when the shell is invoked.  In addition, bash interprets the following options when it is invoked:

And the goes on to describe -i and -s (in addition to the perhaps more well-known -c and -l)
"In addtion" being the key bit there.


First off this has to be startup application material. Second it's not sure docky is enough to run the application. In addition you lack env in the beginning.

So I guess you should try this as a command to a new entry of startup applications:

env LANG=en_US.UTF-8 LC_MESSAGES=tr_TR.UTF-8 /path/to/docky


How can I find out which file was changed a few minutes ago?

Let's look at a few examples of using find:

with the -ls directive:

$ find /var/log -maxdepth 1 -mmin -30 -ls
15533117     60 -rw-r--r--   1 root     wheel       60616 Jan  2 09:46 /var/log/daily.out
15955192     12 -rw-r-----   1 root     admin        8638 Jan  2 10:00 /var/log/system.log
15870477    132 -rw-r-----   1 root     admin      117797 Jan  2 09:45 /var/log/wifi.log
1081546  32088 -rw-r--r--   1 root     admin    31966363 Jan  2 09:46 /var/log/install.log

Clearly very hard to sort.
using -ls and -printf

$ find /var/log -maxdepth 1 -mmin -30 -ls -printf '%T+'
15533117     60 -rw-r--r--   1 root     wheel       60616 Jan  2 09:46 /var/log/daily.out
2020-01-02+09:46:36.1361086600 15955192     12 -rw-r-----   1 root     admin        8710 Jan  2 10:06 /var/log/system.log
2020-01-02+10:06:54.3077120650 15870477    132 -rw-r-----   1 root     admin      117797 Jan  2 09:45 /var/log/wifi.log
2020-01-02+09:45:28.8952892010  1081546  32088 -rw-r--r--   1 root     admin    31966363 Jan  2 09:46 /var/log/install.log
2020-01-02+09:46:04.0508866900

Quite a mess with the timestamp printed on the next line with no
newline.
using -printf only: we'll print the mtime, a tab, the pathname and a newline:

$ find /var/log -maxdepth 1 -mmin -30 -printf '%T+\t%p\n'
2020-01-02+09:46:36.1361086600  /var/log/daily.out
2020-01-02+10:06:54.3077120650  /var/log/system.log
2020-01-02+09:45:28.8952892010  /var/log/wifi.log
2020-01-02+09:46:04.0508866900  /var/log/install.log

OK, straightforward. Let's sort it so the newest is on top

$ find /var/log -maxdepth 1 -mmin -30 -printf '%T+\t%p\n' | sort -r
2020-01-02+10:06:54.3077120650  /var/log/system.log
2020-01-02+09:46:36.1361086600  /var/log/daily.out
2020-01-02+09:46:04.0508866900  /var/log/install.log
2020-01-02+09:45:28.8952892010  /var/log/wifi.log

And then just print the pathname

$ find /var/log -maxdepth 1 -mmin -30 -printf '%T+\t%p\n' | sort -r | cut -f 2-
/var/log/system.log
/var/log/daily.out
/var/log/install.log
/var/log/wifi.log


Wireless Network not working for Broadcom Corporation BCM43224 802.11a/b/g/n [14e4:4353] (rev 01)

Your image link suggests that the wrong driver is installed. Please remove it. From the terminal:

sudo apt-get purge bcmwl-kernel-source

Reboot.

Check to see that the correct driver, brcmsmac loaded:

lsmod | grep brcmsmac

Check for informative clues in the log:

dmesg | grep brcm


How to create partition after ubuntu installed

Use Gparted. But be carefull when use it.Otherwise your data will loose. This link could help you http://www.dedoimedo.com/computers/gparted.html


How to get back top menu bar after it disappears while using Firefox?

As Seth says, Firefox is probably in full screen mode. F11 both enters and leaves full screen mode. So try pressing F11. That's probably the button you pressed by accident; pressing it again should bring you back to normal windowed mode.


I have the same issue after kernel update to 4.13.0-43, my laptop is Acer 573g. On Windows (also dual boot) screen totally fine.

I temporarily resolved this problem by booting with previous kernel (4.13.0-41 in my case), and now wait for another kernel update..


How can non-superusers mount second internal HDD?

You need to add the drive at /etc/fstab file, you can use my recent answer to help yourself to do this:
Mounting a device by fstab file

Might it helps.


How do I enjoy Unity 2D in Ubuntu 12.10 with a computer that is capable of running Unity 3D?

You can look at Unity going forward for an idea on the current understanding of how older machines may cope.

  As I mentioned, this approach is a work in progress as we tweak the
  experience and effects to maximize the performance. We expect this to
  shake out over the rest of this cycle and bleed into 13.04 as well. ...
  Still, with all the above, there will be systems that are simply too
  old to run Unity. In those cases it would be necessary to either stick
  with 12.04 LTS or run another desktop
  environment.


I finally solved the problem when setpci doesn't change the value of PCI-E bridge.

If you are unable to set the value of PCI-E brigde registers using setpci command in order to get nVidia GeForce drivers working on your Apple MacBook machine try these steps:

1. Find your PCI-E bus identifiers

lshw -businfo -class bridge -class display

[root@kernelLinux]# lshw -businfo -class bridge -class display
Bus info          Device      Class          Description
========================================================
pci@0000:00:00.0              bridge         MCP89 HOST Bridge
pci@0000:00:03.0              bridge         MCP89 LPC Bridge
pci@0000:00:15.0              bridge         NVIDIA Corporation
pci@0000:00:17.0              bridge         MCP89 PCI Express Bridge
pci@0000:02:00.0              display        MCP89 [GeForce 320M]

You will need the ID's of PCI Express Bridge and your display in format XX:XX.X

Your ID's can be different.

In this example our ID's are 00:17.0 for PCI-E brige and 02:00.0 for display [GPU].

2. Create a GRUB script

Our script will be slightly different than in mentioned post above.

I have noticed of two things. Grub2 installed using distro (mine is Centos) installation process doesn't contain setpci grub module. It's the reason why grub do not change registers while boot.
Then It is necessary to load setpci module into grub before we run commands to change registers.

Download grub2-efi-modules

Ubuntu Linux

sudo apt-get install grub-efi-amd64-bin

Fedora Linux

sudo dnf install grub2-efi-modules

CentOS Linux

sudo yum install grub2-efi-modules

Modules will be installed in /usr/lib/grub/x86_64-efi/
but the setpci module files needs to be present in /boot/efi/EFI/centos/x86_64-efi/

Create x86_64-efi folder

sudo mkdir /boot/EFI/centos/x86_64-efi

Copy setpci module files into grub2 folder

sudo cp /usr/lib/grub/x86_64-efi/setpci.* /boot/EFI/centos/x86_64-efi

Create the 01_enable_vga.conf file.

The file should contain these lines of code:

Do not forget replace 00:17.0 for PCI-bridge and 02:00.0 for display [GPU] with your values.

sudo nano /etc/grub.d/01_enable_vga.conf

cat << EOF
insmod setpci
setpci -s "00:17.0" 3e.b=8
setpci -s "02:00.0" 04.b=7
EOF

Then repair permissions

sudo chmod 755 /etc/grub.d/01_enable_vga.conf

and update the /boot/efi/EFI/centos/grub.cfg

Ubuntu Linux

sudo update-grub

Do this command only on other distributions (not necessary on Ubuntu after update-grub):

grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

3. Reboot your system and check registers

Reboot your machine and check if it's working. Replace ID's with yours again. Your terminal should finally show 08 (PCI-E bridge) and 07 (GPU).

sudo setpci -s "00:17.0" 3e.b
08

sudo setpci -s "02:00.0" 04.b
07

4. Install nVidia drivers

Screenshot: http://imgur.com/a/YiBXi


Can't get my graphics driver (GMA 3150) to work

It seems you GMA 3150 is working correctly.

Playing HD content ( even 720p ) is usually not possible with such hardware as the video decoding cannot be handled by the GMA 3150 hardware on any OS including windows .

Just confirm that you can view 480p youtube video in HTML5 mode http://www.youtube.com/html5


The installation instructions for the Ubuntu SDK can be found at the Ubuntu App Developer Site. The guide currently only supports Ubuntu as the installation host, but since the SDK is based on Qt5 and QtQuick 2.0 you should be able to port (integrate) it yourself to other platforms after installing Qt5 (see the Qt5 Download Page).

The problem is that you won't be able to test the full functionality of your applications yet, as on the desktop you'll need to run the them using Qt's QML viewer (qmlscene), which can run the QML based layout, the JavaScript based actions and the Qt backend, but it could not emulate the behaviour of the application within the Ubuntu environment.

There might be an emulator in the future, but it isn't clear yet when it will be released and if there will be a Windows version of it.

So I think the best solutions for you are:

Wait for the first open release version of the Ubuntu Touch Developer Preview and try to run it within a virtual machine (I don't know if this is possible).
Install Ubuntu in a virtual machine and develop there.
Drop windows and install the latest Ubuntu OS.
Try to install the Ubuntu Touch Developer Preview on a developer board like the BeagleBone or Pandaboard and use this for development.

(I would prefer the third point!)


apt-get install -f seems to purge too much

This is me guessing, but you downloaded the old 32-bits skype deb package and tried to install with dpkg -i in a 64-bit system. I'm not going to ask you about that.

Now to solve your little problem, uninstall skype:

sudo apt-get remove skype

If that don't work then with dpkg:

sudo dpkg --remove skype

Then, either download the 64-bit skype package, or use the Ubuntu Partner repositories and install it:

wget http://download.skype.com/linux/skype-ubuntu-precise_4.2.0.11-1_i386.deb
[...]
sudo apt-get update
sudo apt-get --no-install-recommends install libasound2 libqt4-dbus libqt4-network libqt4-xml libqtcore4 libqtgui4 libqtwebkit4 libx11-6 libxext6 libxss1 libxv1 libssl1.0.0
sudo dpkg -i skype*.deb
sudo apt-get -f install

That should allow you to install skype with easy.


Yes, it would be possible to see the files which are related to a particular package.

dpkg -L <pacakge-name>

From dpkg --help,

-L|--listfiles <package> ...     List files `owned' by package(s).

Example:

dpkg -L apache2


For Ubuntu 14.04 default VirtualBox package version (4.3.10) USB 2.0 support is integrated but there is still no USB 3.0 support. Consider this while trying to use your USB ports.

For adding specific USB devices to your VirtualBox's guest you need to add your user to vboxusers group via sudo adduser yourusername vboxusers

If you plug your device to an USB 3.0 port of your PC, Laptop etc. a Windows guest will then give this error:


Can I prevent my time consuming backup command from being interrupted by system suspension due to inactivity for a period?

1) systemd's inhibit

Using systemd's inhibit for a single process can be accomplished by running

sudo systemd-inhibit --what=idle:sleep:shutdown:handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch --mode=block rsync -a /home/tim  /media/tim/externaldrive/  2>rsync-errors

systemd-inhibit requires elevated privileges. The invoked command was run as root on my system. For additional options see either Systemd-inhibit or run man systemd-inhibit

2) logind D-Bus API

The logind D-Bus API and Inhibitor Locks can be used in developing an app that properly issues and releases inhibitor locks.

3) Presentation mode

xfce4-power-manager gui includes an option called Presentation mode. It will; turn off DPMS (Display Power Management Signaling) so your screen won't blank or sleep, and prevents screensaver mode from activating.


There is no video thumbnail for Dolphin file manager on Ubuntu 16.04

I have found the answer, Dolphin's "Show previews for" blank

Making sure that you have installed "kio-extras" and "ffmpegthumbs", then "sudo ln -s /usr/lib/x86_64-linux-gnu/plugins/* /usr/lib/x86_64-linux-gnu/qt5/plugins/"

I can't believe that they put these files in the wrong path.


In a default Ubuntu 10.04 installation, the terminal can be opened via Applications ▸ Accessories ▸ Terminal. If this menu item does not exist, you should consult the company that installed the operating system for you.


No Sound output from my built-in speakers (Dell N5040)

You need to edit this file /etc/modprobe.d/alsa-base.conf and then add a line in its end.

Use the following commands in a terminal

sudo gedit /etc/modprobe.d/alsa-base.conf &

Now add the following line at its end:

options snd-hda-intel model=generic

Now reboot your computer. It should solve your problem. If the solution doesn’t work it is likely that the term model = generic may not work in all the cases as sometimes it depends on the model of your sound card.

Find your sound card by typing aplay -l | grep card in a terminal

You can try replacing the word generic by the following words depending upon your model of Dell laptop:

options snd-hda-intel model=ref

Refrence


How can I check whether Live Ubuntu 12.04 LTS CD is having defects or not?

Boot the ubuntu live-disk and click on Try Ubuntu option.Now you can check for errors without installing ubuntu on your hard-disk.

To check the md5sum of the downloaded ubuntu.iso file refer this.


Pressing shift does not get me into any grub menu

If the keys aren't working, you can actually edit the grub config file so that there is a little bit of a timeout for you.

sudo gedit /etc/default/grub

Change the value of GRUB_HIDDEN_TIMEOUT to a number in seconds.  For example if you change it from 0 to 10, it will display the Grub menu for 10 seconds before automatically booting the first option.

Once you have made your desired change and saved the file, close it and run the following command to apply the changes:

sudo update-grub

After that

sudo reboot


Openstack installation on ubuntu server 14.04

You can enable the Ubuntu Cloud Archive for OpenStack Kilo on Ubuntu 14.04 installations by running the following commands:

sudo add-apt-repository cloud-archive:kilo
sudo apt-get update

For more info check the following source:

https://wiki.ubuntu.com/ServerTeam/CloudArchive

For a step by step installation:

http://docs.openstack.org/kilo/install-guide/install/apt/content/

Hope this helps.


In order to define multiple sites you should define "Name-based virtual hosts".

Try to add in your apache configuration file this directive:

  <VirtualHost *:80>
      DocumentRoot /var/www/firstSite
      ServerName firstSite.localhost
      ServerAlias www.firstSite.localhost
      <Directory "/var/www/firstSite">
             Options +Indexes FollowSymLinks
             AllowOverride All
             Require all granted
      </Directory>
  </VirtualHost>

  <VirtualHost *:80>
      DocumentRoot /var/www/secondSite
      ServerName secondSite.localhost
      ServerAlias www.secondSite.localhost
      <Directory "/var/www/secondSite">
             Options +Indexes FollowSymLinks
             AllowOverride All
             Require all granted
      </Directory>
  </VirtualHost>

This configuration define two virtual hosts associated with any ip, port 80.

  When a request arrives, the server will find the best (most specific)
  matching  argument based on the IP address and port used
  by the request. If there is more than one virtual host containing this
  best-match address and port combination, Apache will further compare
  the ServerName and ServerAlias directives to the server name present
  in the request.

Now, to edit your /etc/hosts file, run this as a single command:

  echo '127.0.0.1 firstSite.localhost
  127.0.0.1 secondSite.localhost' | sudo tee -a /etc/hosts

/etc/hosts file is static table lookup for host names.

  This file is a simple text file that associates IP addresses with
  hostnames, one line per IP address.

It is used to resolve names in the absence of dns server.

Finally restart apache server and verify http://firstSite.localhost/ and http://secondSite.localhost/


Openvpn instability after upgrading to 17.04

The OpenVPN server you are connecting to is running an insecure configuration (using small block ciphers for encrypting packets in the data channel) as indicated in the logs:

WARNING: cipher with small block size in use, reducing reneg-bytes to 64MB to mitigate SWEET32 attacks.

The 2.4 release of OpenVPN tries to minimize the security impact by renegoniating more often. However, that's a work around and for that reason producing warning messages. As a side effect of renegotiation, you'll have to reauthenticate.

As you said you are not in control of that OpenVPN server, please negotiate with the operator of that OpenVPN server to configure it more securely. It's perfectly possible to be compatible with your 2.4 client without an upgrade from 2.3 to 2.4.

Shamelessly linking to my own blog post (for 2.3 server at the time of writing). After that you will need a new client configuration from him adapted to the new settings. https://blog.g3rt.nl/openvpn-security-tips.html


cp and mv alternative with better merge support?

rsync can be used locally to copy/update files.  As an example:

rsync --progress -a sourcedir/ destdir/

If you don't already have it,

sudo apt-get install rsync

There are a tremendous number of other things rsync does, see the man page for details and /usr/share/doc/rsync/ for examples.

ETA: Following up to the "PS" in the question, if you need even more sophisticated syncing, try:

sudo apt-get install unison unison-gtk

Run unison-gtk and set up a profile. Each time you run the sync from that profile, you'll be prompted what to do when there's a collision/conflict between the two directories in the profile. For each conflict, you'll interactively be able to choose the correct action (sync aa or skip) for each file.


CUPS not supporting printing any filetype in Ubuntu 18.04

Legacy (non-modern) printers require printer drivers.
sudo apt-get install printer-driver-all
sudo systemctl restart cups

Also, make sure your printer is being added in Settings > Printers

You could also add the printer from the cups web interface at localhost:631.
Under administration click on Find New Printers. If your printer is plugged in you'd find it under the local printers.


Why do I get "Directory not empty" when I try to remove an empty directory?

I had the same problem on a external hard disk, I tried so many ways using command line, but I failed every time.
That's what worked for me:

Right click on folder
Move to trash
Empty trash

Yes, it's silly but it worked for me (I don't really know how and why, but the damned folder no longer exist)


Guayadeque won't allow to me set podcast directory

Make sure your guayadeque is closed. Then edit its config file ( ~/.guayadeque/guayadeque.conf ). Find the lines:

<podcasts>
  <LastPodcastUpdate value="Tue 30 Dec 2014 19:24:56 EET"/>
  <Path value="/home/[somelogin]"/>

and change path value <Path value="/home/[somelogin]"/> to something else you need.


Unable to connect to VPN using gnome-network-manager

In my case selecting the password option "Store the password for all users" got it working. All other options produce the mentioned error.


I have installed Ubuntu 14.04 on my Sony Vaio VGN-T37GP but it runs slow

With such an old laptop you should use Lubuntu. 1Gb of ram and a 400 MHz CPU is far from recommended hardware parameters.


first you need to run

  sudo apt-get update

then you can search for the available packages related to samba by typing

  sudo apt-cache search samba | grep samba

also if the package was halfway installed you can fix the broken packages by using the following command

  sudo apt-get -f install

Hope this helps. Good Luck.


Mouse Speed far too slow on new Ubuntu 20.04.2LTS install

Your mouse may have a low DPI, perhaps even a 1:1 setting. Increasing the acceleration isn't going to help much.
The easiest solution is to get a mouse that has an adjustable DPI and turning it up to the point where it matches your needs/expectations. There are many available and they're not expensive.


404 errors on subdirectories after upgrading to Ubuntu 14.04 from 12.xx

I was having similar problem like you in the past, and found out after lot of digging that rewrite module was disabled after upgrade..

Try this,, I hope that it will help you..

enable rewrite

a2enmod rewrite

restart apache

/etc/init.d/apache2 restart

or

service apache2 restart

also this will help after that,, add this to your .htaccess file in root of domain you are previewing:

AllowOverride All

hth, cheers, K


How do i open a Terminal with a command ready?

You can make a profile in Gnome terminal that automatically opens a script every time you open a Terminal.

Open a terminal and make a script in your home dir (ctrl-alt-t).

nano test

Enter your script, change the command and echo text to whatever you want

#!/bin/bash
echo "input syntax"
read command
#input command here instead of ls
ls "$command"
/bin/bash

save and exit. (ctrl-x, y)

Now open a terminal (ctrl-alt-t)
Select Edit --> Profile prefferences.

Select run a custom command:

The next time you open a terminal it runs the script waiting for your input and finishes by opening bash.


how to publish c++ qt project in ubuntu app store

Check this link. Its the official Ubuntu web page for developers.


Failure to connect to archive.ubuntu.com

Same kind of problem I faced few days before. I figured it out there was some network changes. Make sure that the method use to connect with network will be selected as "none". You can get this option in network proxy interface in network settings.


Brightness goes down for the whole screen,  when windows with dark backgrounds are enlarged

This sounds like it's your monitor. Some monitors have a feature called "dynamic contrast" which basically adjusts the backlight based on what's on the screen. This way they can claim in their advertising that it has a ridiculously high contrast ratio. It may look nice in some places, depending on your preference.

You can probably turn this off. Fiddle with the controls on your monitor and there should be something about dynamic contrast in the menu. (On my Samsung T240, the option is under Picture / MagicBright).


No Windows 10 option in GRUB and Windows drive seems empty from Ubuntu

If your Windows partition is still there then you can run

sudo update-grub

and if GRUB can find the Windows boot loader then it will add it to the GRUB menu.

It might be possible that Ubuntu and Windows are not installed with either or both being the legacy boot mode or both being UEFI. If one is UEFI and one is legacy BIOS then GRUB will not be able to populate the menu with windows 10.

Another option is to use the BIOS boot options menu, usually press F12 or some similar key on boot up to access it, and select the Windows partition to see if you can boot from that partition directly.

If your Windows partition is gone then you only option may be to reinstall Windows and then install Linux again making sure everything installs to where they are supposed to be. If you have access to another Windows computer you can prepare a Windows installation USB/CD using this program on microsoft.com. Make sure you install both OSes as BIOS or as UEFI.


How can I automatically switch the boot order in grub2?

On both systems a script in autostart:

#!/bin/bash
sudo grub-install /dev/sda
sudo update-grub

and in /etc/default/grub

GRUB_DEFAULT=4

So everytime a system starts it reinstalls grub, puts itself on the top of the boot list and the other system on place 4. When  a system switches the boot order switches too.


Ubuntu 17.10 Suspend on Laptop Lid Close?

These instructions will only work if you are using systemd. Contact your distribution for more information.
You need to have Tweaks installed on your computer to change this setting.

If you do not want the computer to suspend when you close the lid, you can change the setting for that behavior.
Be very careful if you change this setting. Some laptops can overheat if they are left running with the lid closed, especially if they are in a confined place like a backpack.

Open the Activities overview and start typing Tweaks.
Click Tweaks to open the application.
Click the Power tab.
Switch Don’t suspend on lid close to ON.
Close the Tweaks window.

But if you want to run your command as root then try  this  .