So, after looking around I installed gnome-contacts from via Synaptic and the version of Kontakte installed with that (3.36.1) worked. But my activity button showed  two versions of Kontakte alongside each other. One working and one not.
I did a whereis gnome-contacts in a terminal and found out that the old one was a snap-app. So I did sudo snap remove gnome-contacts and that removed it.
Now I only have a working gnome-contacts version 3.36.1, installed via Synaptic, on my laptop.


Using find in systemd service results in error: 'paths must precede expression'

I think I solved this with the following method:

ExecStartPre=/bin/bash -c '/usr/bin/find /home/jake/finished/ -size +1G > /etc/restic/exclude_large.lst'


Actually, it's not recommended to handle those files by hand. Per crontab man page:

  Each  user  can  have their    own    crontab,    and    though
  these    are    files   in /var/spool/cron/crontabs,  they are not
  intended to be edited directly.

Files under /var/spool are considered temporary/working, that's why they probably get deleted during an upgrade, though a closer look at the cron package's upgrade scripts may shed some light on this.

Anyway, it's always a good practice to back up your cron entries or keep them in a file in your home directory.

I assume you're using crontab -e to create crontab files on the fly. If so, you can get a "copy" of your crontab file by doing crontab -l. Pipe that to a file to get a "backup":

crontab -l > my-crontab

Then you can edit that my-crontab file to add or modify entries, and then "install" it by giving it to crontab:

crontab my-crontab

This does the same syntax checking as crontab -e.


i have a usb floppy drive. how do i format a floppy disk with the ext2 file-system?

For a pretty graphical way to do it, install/use gparted or even gnome-disk-utility ("Disks"). I strongly prefer gparted, gives more options and tells you more details on what it does, Disks may work, but seems more like a black-box "click and hope" solution.

Or, you can use the terminal tools yourself, using mkfs.ext2 (alias to mke2fs). If your floppy drive is /dev/fd0 then this command should make an ext2 filesystem on the floppy drive, using ext2 and automagically figuring out the other parameters (see man mke2fs for all the options). This would use the whole floppy disk with no partitioning, probably the same as gparted would do, I'm not sure.

mkfs.ext2 -t ext2 /dev/fd0

Making the disk bootable / setting bootable flag isn't an ext option, I always use gparted to do that, or even gnome disks, but you can use the terminal program fdisk like fdisk /dev/fd0 and then the a command to toggle the bootable flag (may need to add 1 for the 1st partition), then w for write.

Or if your floppy drive isn't /dev/fd0 then you could try lsblk or maybe blkid and see if it's listed, or after you plug it in check the logfiles and it should be listed in there somewhere (use dmesg or browse through /var/log/syslog and it should have some info. I think /dev/fd0 is the standard name for floppy drives, but with a usb floppy drive it could be different, I suppose you could try linking /dev/fd0 to whatever name the usb floppy drive is called if it's different, but I've never tried to needed to try that.

And installing grub to a floppy disk should work, though a cd/dvd/usb would be big enough for a whole ubuntu live iso, and might be easier. Unless your computer won't boot from usb or doesn't have a cd/dvd drive...


It's a correct command:

libreoffice --calc


Problems with subversion (in gnome keyring, maybe), user=null

I found the bug here.

The following should solve the issue:

rm ~/.gnome2/keyrings/login.keyring


How to Customize the (Phonetic-Arabic) Keyboard Layout?

This could be one feasible way: taking the ubuntu Arabic phonetic layout as a template, and customizing it (as described in the link) to meet your preferences.

Further, see Create my own keyboard input layout and the links cited therein:

  http://people.uleth.ca/~daniel.odonnell/Blog/custom-keyboard-in-linuxx11
  http://ubuntuforums.org/showpost.php?p=1092145&postcount=1
  http://code.google.com/p/keyboardlayouteditor/

Further, on the idea of porting/converting a Windoze keyboard layout to the Linux world (welcome, btw!), these links might be a good starting point:

http://blechtog.wordpress.com/2012/05/31/project-linux-to-windows-keyboard-layout-converter/
https://github.com/adobe-type-tools/keyboard-layouts


how to get debian package from the installed binary

If you're referring to the .deb package file, you can find it in /var/cache/apt/archives providing you have not cleared your apt cache.

You could download the package to your current directory using apt-get download <pkgname> or sudo apt-get install -d <pkgname> to save it to /var/cache/apt/archives without actually installing.


How to remove particular words from lines of a text file?

If there's only one = sign, you could delete everything before and including = like this:

$ sed -r 's/.* = (.*)/\1/' file
0.000205348
0.000265725
0.000322823
0.000376445
0.000425341

If you want to change the original file, use the -i option after testing:

sed -ri 's/.* = (.*)/\1/' file

Notes

-r use ERE so we don't have to escape ( and )
s/old/new replace old with new
.* any number of any characters
(things) save things to backreference later with \1, \2, etc.


Make a bootable image of a VirtualBox machine?

You can dd a virtual machine image to USB

Here are some instructions that worked for me:

https://ubuntuforums.org/showthread.php?t=1904557


As of April 2019, there is no plan to deprecate any of them.

The most likely to survive over the long term is GNOME (plain GNOME).

GNOME Classic is merely a the Gnome desktop without the Ubuntu modifications. Some folks prefer this experience.
GNOME on XORG is merely a fallback option for folks who don't have complete Wayland compatibility yet.
Ubuntu is the popular, community-maintained Unity desktop built on top of Gnome. Some folks prefer this experience.
Ubuntu on Wayland is for folks who have complete Wayland compatibility.


1) I have not seen any GUI or curses tool.

2) There are a couple of existing scripts out there.  I haven't tried them, but they look interesting:

SnapBtr:  https://btrfs.wiki.kernel.org/index.php/SnapBtr

btrfs-snap: http://blog.patshead.com/2010/11/tweak-btrfs-snap-for-more-frequent-snapshots.html

A related btrfs development is the announcement that Natty (11.04) will feature automatic btrfs rollback for packages.  I.e., for btrfs installations it will automatically snapshot before any apt install/upgrade/remove operation:
http://mvogt.wordpress.com/2011/03/10/apt-btrfs-snapshot/


I also use Ubuntu 17.04, 64 bits, with a HP Compac laptop and needed to exchange CONTRL and CAPS-LOCK keys, as recommended for use with Emacs. Since I've seen many posts about xmodmap not working, I'll contribute my 2 cents, even though the remapping I did is not exactly the one you intend.
Following the advise in the man page of xmodmap, I invoked this script from the terminal (I called it 'remapkeys' and put it in home directory):

remove Lock = Caps_Lock

remove Control = Control_L

keysym Control_L = Caps_Lock

keysym Caps_Lock = Control_L

add Lock = Caps_Lock

add Control = Control_L

(without spaces in between)

    xmodmap -verbose ~/remapkeys

Everything worked as intended, even if Emacs is already running when I do it. CONTROL key and CAPS-LOCK keys are exchanged.
The same procedure should reverse the changes, but you can always re-start and the keymap turns back to normal.

So in my case, xmodmap worked right but the parameters (in their correct order) are tricky, and the the man page is rather obscure for a beginner.


Are there still 9.10 software sources available?

unsupported releases are available from: old-releases.ubuntu.com.

To find particular package, you can:

wget http://old-releases.ubuntu.com/ubuntu/ls-lR.gz
zcat ls-lR.gz | less

and once you find the correct path, just download the packages, for example:

wget http://old-releases.ubuntu.com/ubuntu/pool/universe/m/mc/mc_4.6.1-1ubuntu2_i386.deb


Presentation background not showing correctly

No, it will not open the same as on Powerpoint, and I doubt that's possible to work around.  All of these presentation programs are great when used consistently, but they run into issues when trying to interpret closed formats that aren't made by the company that develops them.

If you can't make one of those programs your standard everywhere (you do realize there's Libreoffice and Kingsoft for Windows, right?) I'd recommend exporting it into a PDF and presenting it from that.  You won't be able to edit it, but that's what I'd do if all you're trying is to show it.

If the only problem is the background opacity (I doubt it, there's probably all manner of weird glitches), you can change the opacity of the background in Libreoffice - go into 'Master View' to edit the slide templates, and you can mess with the uneditable background content as if it were just text and images.


smelling something Dangerous about update

Based on the images there seems to be very less space in /boot.
You should remove your old and unused kernels following this

try this

sudo apt-get autoremove --purge

to purge manually installed kernels

sudo purge-old-kernels


How do I overcome this "group 'libvirtd' does not exist" issue in installing juju?

You don't need to run this command. The guide states:

  pre v0.6 users only Then you need to add yourself to the libvirtd group:

sudo usermod -a -G libvirtd <YOUR_USER>

As Ubuntu 12.10 provides juju version 0.6, this does not apply.

To explain a bit more on the error you got, the libvirt-bin package (the base of Libvirt basically) will create this system user group for you. Because you don't need to install this for 0.6 version of Juju, it's not installed and you'll get the error about the group specified not being a valid existent group. The command is listed for pre-0.6 versions and the guide also lists this package to the lists of packages to install for these older versions.


Right Alt is AltGr in KDE. How can I make it behave the same as the left Alt?

To correct this one should check Right Alt key never chooses 3rd level under Key to choose 3rd level  in

System Settings > Input Devices > Keyboard > Advanced


I think it's a fault in the program itself,  I also have great problems with it.  That is why I am loading UBUNTU 14.04.1 again.


Ubuntu 15.10 missing mouse pointer speed in settings

Temporary fix is is to use xset, this seems to be ok for me:

xset m 02.5 1

This is a basic gui config setting and should be visible. I could make the xset command run at startup,  but it should really be fixed.


As I know most of the Ubuntu applications are installed in  /usr . so while you creates the HDD 1 partition , set its mount point to /usr , so that all your applications will installed into HDD1 as you want.

I mean in this step( A sample image) , set mount point as /usr for HDD1

hope that helps.


You just have to evaluate the output (not the exit code) of gsettings:

if $(gsettings get org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled); then gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled false; else gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled true; fi


can't resolve local domain name with bind9

For the /etc/bind/db.domain.local file do this:

$TTL 10800
@       IN SOA domain.local. root.domain.local. (
        20180202;
        3h;
        1;
        1w;
        1h);
        IN A    192.168.1.251
@       IN NS   srvubuntu.domain.local.
srvubuntu       IN A 192.168.1.251

Your reverse file looks O.K., although I don't use an $ORIGIN line in mine.

I am doing pretty much the exact same thing as you:

doug@s15:~$ nslookup s15
Server:         192.168.111.1
Address:        192.168.111.1#53

Name:   s15.smythies.com
Address: 192.168.111.112

doug@s15:~$ nslookup s15.smythies.com
Server:         192.168.111.1
Address:        192.168.111.1#53

Name:   s15.smythies.com
Address: 192.168.111.112

See also the Ubuntu server guide.

EDIT: Please note that on my LAN my client computers know to automatically append "smythies.com" to DNS requests because my DHCP server has this line in it's /etc/dhcp/dhcpd.conf file:

option domain-name "smythies.com";


This sounds like something that might happen if you don't have graphics drivers properly installed. If you see anything on the list with the Additional drivers program, make sure it is properly configured and running.


Ubuntu 14.04 Unable to connect to internet

Ubuntu just had a major glitch.
One of the last updated caused you & me and probably many others to stay disconnected because network-manager is crashing.
This is a major glitch since now users are disconnected from the internet and cannot get the fix for this problem.

Open a terminal and type

grep network-manager /var/log/syslog.*

If you see errors like this one:

  init: network-manager main process (1318) killed by SEGV signal

Than you're affected by this bug.
You'll have to connect manually without network manager and update the system again with

sudo apt-get update ; sudo apt-get upgrade

If you have an ethernet card than you can simply do

sudo dhclient -v eth0

to restore your connection,
Then run the apt-get commands above.


In a desperate attempt to solve this problem, I installed the following packages on the remote machine:

gtk2-engines-sapwood
gtk2-engines-murrine
community-themes
gtk2-engines-nodoka
murrine-themes
shiki-colors
gtk2-engines-pixbuf

I also copied all the folder ~/.themes/elementary-borderless from the local computer, to the remote machine.

This actions resolved the problem however I can't say for sure what's really needed.


Mounting a camera as mass storage automatically

Your camera does not support being mounted as a USB Mass Storage device, however it does support MTP/PTP.

This will allow it to show up in gthumb and other image viewers or camera import tools that use gphoto2.

It will also allow it to appear by default in Nautilus, but it sounds like Thunar does not include support for MTP devices by default.

According to this discussion, you will need to install the package gvfs-backends (which you may already have).  That will install the ability to mount MTP devices on the filesystem but it doesn't magically teach Thunar how to mount/unmount them.

For that you'll need some other tool to mount/unmount them, and apparently people have had success with gmtp.  An alternative was go-mtpfs but someone said that didn't work out.

If this is too difficult you could just install nautilus and use that instead of Thunar when you want to access the contents of MTP devices.


xfce VNC environment no longer has control bar menus for screens (no close, or maximize panel)

This is one of the known 20.04 issues mentioned in the release notes.
"Window decorations are not displayed with tightvncserver. Users depending on VNC are advised to wait until 20.04.1 or use an alternative window manager for VNC until this is resolved."
Here is the bug report about it.
https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1860921


Editing songs' meta-data INCLUDING the album art

Song metadata tags can be edited in Rhythmbox by right-clicking on the song and then selecting Properties from the popup menu. This will open a small Properties window in which you can select the Basic tab and edit the song's tags from there. However this way of editing tags is unnecessarily slow and repetitive if you are trying to edit the tags of multiple songs that have the same tags in some of their fields. If instead of Rhythmbox you use a music tag editor, you can batch edit the tags of multiple songs in a graphical application that is easier to use than Rhythmbox for editing tags.

EasyTAG would be a good GUI music tag editor to start with for three reasons:

It is easy to use.
You can edit (add or remove) album art.
You can batch edit the tags of multiple music files.

EasyTAG writes music metadata in a logical standardized way. There are two other music tag editors that offer you more freedom to choose the way you want to edit music tags: Ex Falso and MP3 Diags. All three of these applications can be installed from the Ubuntu Software Center.


The segfault probably happens when gnome tried to use wayland. If you don't want this to happen, the easiest fix is to disable gnome from attempting to use wayland. Edit the gdm3 configuration file:

sudo vi /etc/gdm3/custom.conf

And make sure you have the following line under the [daemon] section:

WaylandEnable=false

I works for me, the segfault no longer show up in dmesg for me after this change.


Is there a way to copy-paste text into Unity's new 'Alt+F2' launcher?

This isn't possible. It is a bug currently affecting 37+ people, see filed bug

How do I subscribe to a bug?


To me the stance the FSF takes is to rigid. I also can understand why; if they do not they tarnish their principle: software needs to be free.

Problem though: that would not allow us to play MP3 and MP4 where we need to stick to OGG. Even using a tool to convert it to OGG would violate the FSF stance.

So from a users point of view not really user friendly.

The FSF has the following complaints about Ubuntu:

  Ubuntu GNU/Linux

  Ubuntu provides specific repositories of nonfree software, and
  Canonical expressly promotes and recommends nonfree software under the
  Ubuntu name in some of their distribution channels. Ubuntu offers the
  option to install only free packages, which means it also offers the
  option to install nonfree packages too. In addition, the version of
  Linux, the kernel, included in Ubuntu contains firmware blobs.

  The “Ubuntu Software Center” lists proprietary programs and free
  programs jumbled together. It is hard to tell which ones are free
  since proprietary programs for download at no charge are labelled
  “free”.

  Since October 2012, Ubuntu sends personal data about users' searches
  to a server belonging to Canonical, which sends back ads to buy things
  from Amazon. This does not, strictly speaking, affect whether Ubuntu
  is free software, but it is a violation of users' privacy. It also
  encourages buying from Amazon, a company associated with DRM as well
  as mistreatment of workers, authors and publishers.

  This adware is one of the rare occasions in which a free software
  developer persists in keeping a malicious feature in its version of a
  free program.

  Ubuntu appears to permit commercial redistribution of exact copies
  with the trademarks; removal of the trademarks is required only for
  modified versions. That is an acceptable policy for trademarks. The
  same page, further down, makes a vague and ominous statement about
  “Ubuntu patents,” without giving enough details to show whether that
  constitutes aggression or not.

  That page spreads confusion by using the misleading term “intellectual property rights”, which falsely presumes that trademark law and patent
  law and several other laws belong in one single conceptual framework.
  Use of that term is harmful, without exception, so after making a
  reference to someone else's use of the term, we should always reject
  it. However, that is not a substantive issue about Ubuntu as a
  GNU/Linux distribution.

So ...

repositories show non-free and free applications. I am afraid in 16.04 this is still the case and I doubt Canonical is
ever going to give in on this. Commercial applications have a place in Ubuntu. The 1st page that shows does not even tell you that there is software we need to pay for when we want to use it.

Regarding personal data: Canonical still does this though it is now an opt-in instead of opt-out. It still will not make the FSF happy: they consider Amazon to be evil (they support DRM and claim it abuses its employees). Does the deal with Amazon make most of us unhappy? Maybe. Some users did make a switch to another operating system. Will this stay in Ubuntu? Probably. Ubuntu is not making a profit and this will generate a little bit of revenue. Do I personally like the Amazon link? Well no. It is the 1st to disappear from my launcher and all the "send data to" options are turned off. Minor nuisance ... big deal for the FSF.

Regarding "redistribution". No problems there it seems; the vague comment regarding patents has not stopped someone from creating Mint. Nor any of the other clones (I counted 45 on that wikipage). But have a look at this image: http://futurist.se/gldt/wp-content/uploads/12.10/gldt1210.png (not including it in the post itself). But the spin-offs from Ubuntu is astonishing.
The last one about copyright. There has been a change in that so the FSF is a bit more happy about it.

Conclusion: If Ubuntu ever will become 100% GNU it will not be in the near future. Plus there needs to change a lot in the way everyone looks at using operating systems. MP3/MP4 is not going to go away and if Microsoft keeps supporting those and not switch to OGG we (users) will need the codec to play it. The same goes for the video drivers. nVidia and AMD can support open source but they will also always provide binaries to protect their software.

Not going to happen. Proprietary blobs are not going away in the near future.

  Also maybe list the ways you can list all blobs on the system to better highlight what is limiting its GNU stamp of approval.

Search for "restricted" in software center and you will get the codecs that are proprietary. Then there is the additional drivers in dash that will show proprietary drivers.

A kernel with proprietary modules is considered "tainted" (see What does the kernel taint value mean? or https://unix.stackexchange.com/questions/118116/linux-what-is-a-tainted-kernel )

cat /proc/sys/kernel/tainted

will show a number on how tainted your kernel is. And What does the kernel taint value mean? has a list on what the number means (if it shows 75 it means 64, 8, 2 and 1).


Failed to fetch http://ppa.launchpad.net/ferramroberto/sopcast/ubuntu/dists/trusty/main/binary-amd64/Packages

I think it has to do either with the Internet connection or administrator  permission.

Try checking connection problems.
Try installing as root.

sudo su

Then in the root terminal type:

sudo apt-get update


dual boot UEFI problem cannot open the other os

I recently had a similar issue. My interim fix was to use rEFInd which worked really well. I use it on USB. If it picks up both OS, you can install it as your boot manager.


Can't install the newest versions of packages

A bit long to comment.

If you do not upgrade your OS, the newer version of the packages will be not available in your package repository. So, if you want to get newer version of the packages, you should consider upgrading your OS.

And by the way, about ESM.

ESM is a paid service that is provided by Canonical. You can purchase them if you want to stay with your current version of Ubuntu. They will release security updates.


How do I remove a repository from the terminal?

You would need to locate the specific lines in /etc/apt/sources.list
Open the sources file with some editor while using sudo, such as vim (I personally use nano, but you can use whatever you want):
sudo vim /etc/apt/sources.list
Locate the lines which contain the broken link, and remove them.  Save the files, then run sudo apt-get update after you save the file and close out the editor.  Your sources will be updated to work with the non-broken repositories.
Note that if the lines don't show up in /etc/apt/sources.list then they'll exist in other files in /etc/apt/sources.list.d/ in which case you'll have to go through the files in that directory and comment out the broken source definition there.


Starting Tor on Ubuntu: "no such file or directory"

Instead of chmod +x start_tor_browser.sh the correct commands to allow executing the start-tor-browser file as a program are:

cd ~/Downloads
tar -xvf tor-browser-linux64-4.0.1_en-US.tar.xz  # extract the contents of the archive
cd tor-browser_en-US  # change directories to the root directory of the extracted files
chmod +x start-tor-browser

After that, the command to start Tor Browser is:

./start-tor-browser

If Tor Browser is running correctly, you can stop reading or else keep going and find out how to launch Tor Browser from the Dash by clicking on the Tor Browser icon instead of opening Tor Browser from the terminal every time.

If the Tor Browser is running correctly, you can make an icon to launch the Tor Browser from the Dash by following the instructions in How can I edit/create new launcher items in Unity by hand?. Or you can skip those instructions, and follow the instructions below which are specific to the  tor-browser-linux64-4.0.1_en-US.tar.xz archive that you downloaded, so hopefully they will be easier to understand. I don't know your username, so instead I used your-username and you will have to replace that with your own username.

Below is an example of a .desktop file used to start Tor Firefox Browser from the Dash by clicking the Tor Browser icon. The Tor Browser icon looks the same as the Firefox icon with a label underneath it that says Tor Browser. The command used to show the .desktop file is cat '/home/your-username/.local/share/applications/Tor-Browser.desktop' which gives the following results:

[Desktop Entry]
Version=1.0
Type=Application
Name=Tor Browser
Comment=A secure version of Firefox, from the Tor project
Icon=firefox
Exec=/home/your-username/Downloads/tor-browser_en-US/start-tor-browser
Path=/home/your-username/Downloads/tor-browser_en-US/
Terminal=false
StartupNotify=false
Categories=Network
Name[en_US]=Tor Browser
Comment[en_US]=A secure version of Firefox, from the Tor project

Make a new file in the /home/your-username/.local/share/applications/ directory called Tor-Browser.desktop and copy the above text into the Tor-Browser.desktop file.


'whoami' returns 'root' - how do I set myself up as user?

Generalizing the answer:

Firstly, check if you have a user created for yourself,
For that, check

passwd username

If the command says user doesn't exist. You would have to create a new user.
To create a new user

adduser username
Once you have the user created and password setup, to change to a different user, type su followed by a space and your username. Type the password when prompted.
Also check if you have a shell assigned to your username. Refer this question


"fatal error: openssl/opensslv.h: No such file or directory" compiling mitmproxy

The other answers only address the dependencies to make the errors you mentioned go away. The list of all dependencies needed is actually much longer.

You can install them all with:

sudo apt-get install python-pip python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1g-dev

Then you can install mitmproxy:

sudo pip install mitmproxy

And run it:

mitmproxy

Source: the documentation


How to set printing options as reverse order as default on 18.04

Open "Printers" Program.
Click "Additional Printer Settings..." to invoke advanced settings.
Select your printer, right click and click "Properties".

 →

On the left pane, select "Job Options".
Click "More" to display hidden options.
Set the "Output order" from Normal → Reverse.

Click apply then to save the configuration.


How to launch specific programs on particular workspaces at i3 startup without assign?

You probably missed it in the excellent i3 user documentation (see 4.17), but you can achieve that with a construct as
exec --no-startup-id i3-msg 'workspace 3; exec firefox; workspace 1'

to start firefox on startup on workspace 3.
It is unclear what you consider an "efficient way". You need to issue a command for any application you want to autostart. You could include multiple statements to change workspaces and launch different applications in the construct above, but at some point, you will hamper the readability of your configuration file.


I believe the observed behavior to be a manifestation of the following bug:

https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1365375

I provided a workaround in the above-cited bug report, in Comment #4:

https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1365375/comments/4

For your convenience, the text of that post is herein reproduced:

To follow-up on my previous comment, I was able to work around this "broken state" in aptitude by purging the offending packages with "--force-depends":

dpkg --purge --force-depends "gcc-multilib"
dpkg --purge --force-depends "lib32z1-dev"
dpkg --purge --force-depends "libc6-dev-x32"

Now, I'm able to use "apt-get" as normal.

Hopefully, this workaround won't cause problems in the future.

Unfortunately, the long-term solution is to await a proper fix from Canonical.


Edit /etc/ssh/sshd_config on the server to have:

Match User <username>
    PubkeyAuthentication yes

Then just add the .pub key file to ~/.ssh/authorized_keys on the server with:

cat key.pub >> ~/.ssh/authorized_keys

Make sure to restart SSH afterwards with sudo service ssh restart


The simple answer, as Web-E pointed out, is that WUbI is incompatible with Windows 8, and should not have been on the CD.  The best option here is to boot from the CD (or a live USB key), and install Ubuntu directly onto its own partition.


At me this problem appear if the bluetooth is disabled when system is starting, for me work this solution: open System Settings > Bluetooth and enable if it is disabled, or disable and enable if it is enabled; Restart and try again.


All these commands are path-relative. That is to say, what they alter changes depending on what directory you're currently in. I suspect the instructions intended for you to be in your Wordpress directory before you ran this but that you fired these off before changing directory...

So if my suspicions are correct, you've changed the permissions on your home directory. That's pretty bad. You can check this with ls -l (while in your homedir).

Putting it right isn't so easy. At the very least you can re-own all your files with:

sudo chown -R $USER: ~

The permissions mask 755/644 isn't terrible but some things like ~/.ssh need more restrictive permissions in order to work. If you're not willing or able to compare against a proper setup, it may simply be easier to create a new user and copy your documents over.


Never mind, I'm an idiot
I forgot the shortcuts don't support bash script
I changed my command value to

bash -c "echo &#60;value I want&#62; > /sys/class/backlight/intel_backlight/brightness"

That worked.

ooh well. this might still be useful to for some other people.


Change in sudoers does not take effect. Ubuntu 16.10 fresh install + one line.

You don't have to reboot for the change to take effect.

You are missing the :ALL part of the entry.

Change from:

vidar ALL=(ALL) NOPASSWD: ALL

change to:

vidar ALL=(ALL:ALL) NOPASSWD: ALL


glib.h make error. fatal error: glib.h: No such file or directory

You may probably just need the -dev package containing glib.h: libglib2.0-dev

sudo apt-get install libglib2.0-dev

http://packages.ubuntu.com and its Search the contents of packages form can help finding such development packages when you only know the header filename.


Solved! :)

Downloaded "libnl libnl-genl libnl-route" from other computer. And installed.

Here solution by steps:
Last upgrade crashes network manager (no internet connection, no applet)

Thanks community!


Counter strike is available on steam

sudo apt-get install steam

Just search for it, if you already own it on Windows, you own it for Ubuntu too.


How to remove application installed from source code

It actually depends on the Makefile provided. Try running make uninstall. If you are lucky, this might work. Otherwise you get something like:

make: *** No rule to make target `uninstall'.  Stop.

In that case you can try running make clean, but that will most probably delete files from source directory only.

You might want to read more about make and study the corresponding Makefile to see available options.


How to route KVM virtual machine audio to Ubuntu 11.10 host using virt-manager?

Somebody clicked a link above that put the URL for this page into one of my logs and I stumbled on it just now. I'm sure the subject is no longer important but just in case it might help somebody:

I'd like to point out a small detail for people who are still using K/Ubuntu 11.04: The PulseAudio system is quite sophisticated and the people who maintain it consider it to have some security issues. As such, in 11.04, they had a bunch of features that were turned OFF by default. They were related to the permissions that a VM could get so that it would talk to Pulse.

If you rummage around the various configuration files for virt-manager, KVM and Pulse Audio you can just change the settings to allow VM's to talk to the local pulse installation without restriction (well, it makes sense if you are the only user on a desktop - don't do it if you are sharing a server with multiple users.) Sorry I can't remember the specifics. I have had no reason to look at any of this stuff since upgrading to K/Ubuntu 12.04.

Regarding RDP: For a long time there were bugs in rdesktop related to audio. At some point the problems were resolved and I used rdesktop without any difficulty. Unfortunately I can't remember if it was the rdesktop group that changed their code or if the solution was to change the permissions in Pulse. In any case I don't remember any significant difficulty under K/Ubuntu 11.10 and, once again, I'm not having any sound issues as of K/Ubuntu 12.04

Finally, FYI, some months after I wrote the above-mentioned howto about spice (which has moved, btw, to this link and remains one of the most popular articles on my site,) Canonical did incorporate the most excellent SPICE work of Mr. Derzhavets into the main Ubuntu repos. So, if you upgrade now to K/Ubuntu 12 you will find that SPICE just works - out of the box, no voodoo - with both WinXP and Linux VM's.

I should mention that K/Ubuntu 12.04 gave me choppy video (I was watching Netflix over a local network to a WinXP VM,) but it did work. Now I've upgraded to 12.10 and the video is smooth, audio is excellent. Again: this is out of the box. Just create your VM and, if it's WinXP, install the appropriate SPICE drivers. Instructions are available in the same howto

If you have VM's that you created under K/Ubuntu 11 you can follow the instructions under "Modifying a VM's Hardware Configuration" to add SPICE support.

Note that your video drivers might give you better/different results on 12.04 and even 12.10. Also I am using the simple spicec client, not the more sophisticated client that is called via virt-manager.)

HTH and thanks for the link! All the best, God bless, --Sam.


How to get Office 2010 (specifically Outlook) to run?

The 32-bit version of Microsoft Office should be installable through Wine, as they refer in their site in Ubuntu 11.10; so please follow their instruction and be sure you have a version of Wine above 1.3.35. There is also a trick to solve your problem about the file machine.config.

http://appdb.winehq.org/objectManager.php?sClass=version&iId=17336


Use a light panel with Elementary (or other GTK+ themes that use dark panels)?

Hit Alt+F2 and use this command:

gksudo gedit /usr/share/themes/elementary/gtk-2.0/gtkrc

Scroll to the bottom of the file and find the line include "Apps/panel-dark.rc

Replace panel-dark.rc with panel.rc

Save the file, and then switch to a different theme and then switch back to Elementary.


phpMyAdmin message "The mbstring extension is missing." but php7.1-mbstring is installed

I had the same issue, mbstring for PHP 7.1 was installed and enabled yet phpmyadmin was telling me otherwise.

We were both right, mbstring for 7.1 was installed but apache was running on PHP7.0 after the upgrade, so I swapped PHP versions...

a2dismod php7.0
a2enmod PHP7.1

restarted apache2 and all was good.

(this happened right after a release-upgrade to 17.10 which reported some issues)


Can I make the MAAS server Juju machine 0?

I'm going to assume you mean the maas-master, the provisioner, in which case no; not at this time. In order to deploy something with MAAS and Juju the machine needs to be enlisted within MAAS otherwise Juju has no idea where it is or how to talk to it. If you were to enlist the maas-master then when you did "bootstrap" it Juju and MAAS would end up wiping and re-provisioning it. In doing so you would lose the maas-master.

Containerization and other co-location features are landing soon (including new provider types) which will allow you to pack more density in to a single machine. So in theory, you can soon run a bootstrap then deploy services on to the bootstrap, shrinking the number of physical machines needed in a deployment.


First off, Squid 3 is installed by:

sudo apt-get install squid3

Then, you have to add your acl, which you have done, good.

Then you need to create your cache_dirs by running:

sudo squid3 -z

Then you need to start the service:

sudo service squid3 start

After that, you might need to tweek your config a bitty, look at: allow_cache and always_direct, you really don't want the latter! Have a read of this: http://wiki.squid-cache.org/SquidFaq/ConfiguringSquid#Can_I_make_Squid_proxy_only.2C_without_caching_anything.3F for what NOT to do. I tend to use cache allow all


How to install Nvidia GT 840M graphics driver in Ubuntu 14.04

Uninstall the NVIDIA proprietary graphics driver. Find the file you used to install the NVIDIA graphics driver from the NVIDIA website. It's in whatever folder you downloaded it to (your Downloads folder, for example). It should be named something like NVIDIA-Linux-x86_64-340.58.run. If so, the command to uninstall it is:

sudo ~/Downloads/NVIDIA-Linux-x86_64-340.58.run --uninstall
sudo reboot

If the NVIDIA-Linux-x86-XXX.XX.run file has a different name or location, then change the name and/or location in the above command. The name and location of the .run file in the above command have to match exactly to the name and location of the .run file that is in your computer.
Run the following command to identify the recommended NVIDIA proprietary graphics driver:

ubuntu-drivers devices

Install the recommended NVIDIA proprietary graphics driver and reboot.
NVIDIA Prime is a way of adding hybrid graphics support to your laptop. NVIDIA Prime allows the user to switch between NVIDIA (Performance Mode) and Intel (Power Saving Mode) graphics from the NVIDIA Settings utility.

If your computer has an NVIDIA 319 or more recent graphics driver installed, run the following command to install NVIDIA Prime packages:

sudo apt-get install nvidia-settings nvidia-prime

Then NVIDIA Prime can be enabled/disabled from the NVIDIA X Server Settings application.


How to find the saved Wifi Password in Ubuntu

Open up a terminal ( Ctrl+Alt+t  ) then issue:
cd /etc/NetworkManager/system-connections
ls -la

Now just cat out whichever file matches the connection you need to view:
sudo cat my_cool_network   #  you MUST use sudo as file is root owned

In output look for something like this:
[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk=ele55Hroad

As you can see my WiFi password is  ele55Hroad
Above works on Ubuntu 18.10+


How to turn my Ubuntu PC into a work-space for my other laptop?

Synergy is a commercialized open source product which enables this, and there's a Linux GUI for it.  Barrier is an free fork of Synergy.

If that doesn't do what you want, then run a remote desktop app like VNC, full screen, in one of your workspaces. Here's a list of such apps; to filter on Linux only, double-click on Linux Client and Linux Server on the table's title bar.


Temperature sensors hwmon5 and hwmon6 keep swapping around. How can I consistently monitor devices?

From version 1.11.3 (feb 2019) of conky, you can now use the device name instead of a number. This searches in all the /sys/class/hwmon/*/name files for the name, and takes the first one that matches. So instead of ${hwmon 5 temp 2} you might be able to use, say,
${hwmon coretemp temp 2}

if coretemp is the string in hwmon5/name.
Failing that, the simplest answer is to use a small script to edit your config file before starting conky as I don't think it will be easy to fix the order of discovery of these i2c devices. See also, the lm_sensors package that can find sensor values for you.


How to convert WinWord files to open in gedit?

Try the MS Word replacement, LibreOffice Writer.  There are a whole group of open office application to replace MS Office apps.

A text editor such as GEdit is, by definition, only a plain text editor, not a "rich text" editor.  Formatting is not desired, since these editors are used for editing plain text configuration files.


Installer detects more operating systems than I actually run

Resize your Windows partition from Windows. If Ubuntu says it can't tell how much space is used then that's a pretty big red flag to me to not mess with it, from Ubuntu at least. If it can't see what's inside the partition then it won't be able to move it or resize it likely.

You should be able to make a logical partition in the empty space you create that can hold a partition for Ubuntu and Linux swap. If you need help with that, I can add to this answer when you get there.

I'm afraid I can't walk you through editing partitions from Windows, since I have no experience doing it.


Sounds like a bug to me. I'm not experiencing the same problem as you with grep version 2.16.

Assuming it's a bug with your version of grep, perhaps a workaround would be to use -B and -A instead of -C:

  grep -A 1 -B 1 -m 2 -n "string" filename


Unity Wifi GUI - Connects ok, but doesn't display any other networks

This is a bug that has yet to be fixed: https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/1569959

In the meantime, restarting Network-Manager usually corrects it (until the next time you suspend or reboot):

sudo systemctl restart network-manager.service


Restore Windows 8.1 bootloader after installing Ubuntu on a separate HDD

Open Terminal (Ctrl+Alt+T) and run:

sudo update-grub

If everything is OK, you Windows partition should be recognized at GRUB menu after this command.


Blogilo is a great one.

Edit

ScribeFire Blog Editor is also a firefox (and some other browsers) extension which provides many features.

  ScribeFire is an extension for the Mozilla Firefox Web browser, Google Chrome Web browser, Opera Web Browser, and Apple Safari Web browser that allows you to easily post to all of your blogs.

Drivel is another option:

  Drivel is a GNOME client for working with online journals, also known as weblogs or simply "blogs". It retains a simple and elegant design while providing many powerful features

and BloGTK also which is mentioned in previous answers.


Always open a new terminal when clicking the terminal icon

It can be assumed you are using the standard version of Ubuntu 19.10.

Short answer: When you are in the second workspace Shiftclick on the terminal to open a new terminal in the second workspace.

Background: By default, Ubuntu 19.10 icons behave as "Launch or switch to". Clicking an icon will launch an application (for example the terminal) if it is not yet running. If it is running, Ubuntu instead will switch you to an already existing instance, which in your case is the terminal on workspace 1. Some people may like that because it reduces clutter of having each time additional windows if a terminal is already open.

You can overrule that behaviour by holding Shift before clicking the icon. Then, a new instance will always be launched.

Changing the system behaviour

If you rather wish that clicking an icon always opens a new instance of an application, then you can change the default behavior of the system as following.

1 Install gnome-shell-extensions by opening a terminal and entering following command:

sudo apt get install gnome-shell-extensions

This installs a number of official Gnome Shell extensions.

2 Activate one of the extensions. For this, you need to install an additional tool, "Gnome Tweaks". You can find that in the software center. Once installed, launch that configuration utility by searching for "Tweaks". On the Extensions tab, find the "Launch new instance" extension and activate it.


Icon does not disappear from "all applications" after uninstalling DeadBeef

Check your ~/.local/share/applications/ folder for a .desktop launcher that may still exist for this application and was not potentially removed. If there is, deleting that particular .desktop file should solve the problem.

Checking /usr/share/applications/ for this as well may also be useful, but tinkering in your root folder can be dangerous, proceed with caution!


What is the classic mode of snap, and why do some snaps not install without it (e.g. MS Visual Studio)?

Watch this short video that explains each of the confinement models available in snaps, why --classic exists and its use case.

Sources: The following documentation is taken from snapcraft.io: confinement policies.

strict

This is the default security policy applied to snaps. The snap has read and/or write rights only in its own install space and selected areas. It has access to libraries it bundles and/or provided by the core or ubuntu-core snap. Extended rights can be granted with interfaces, which are connected either at install time or by the user with the snap connect command. For example, the home interface will grant read rights in the user’s home.

Strict confinement gives you the following readable and/or writable paths:

/snap/snapname/revision (read-only, snap install path)
/var/snap/snapname/revision (read/write, per-revision data)
/var/snap/snapname/common (read/write, common data)
/home/$USER/snap/snapname/revision (read/write, per-revision user data)
/home/$USER/snap/snapname/common (read/write, common user data)

See the list of environment variables for more details on what is visible to a strictly confined snap, as well as ways to access a shell within the confined space of a snap.

devmode

Developer mode, also known as devmode, uses the same security policies as strict confinement, but security denials are turned into warnings in /var/log/syslog (see Debugging). This is useful when snapping an application, to discover which interfaces need to be declared. Snaps in developer mode can not be released into the stable and candidate store channels.

classic

A snap in classic confinement behaves as a traditionally packaged application, with full access to the system. As opposed to strict and devmode, what a classic snap sees as "/" is the host system’s "/" and not the core snap’s "/". Snaps using this fully open security policy are manually reviewed in the store and are only allowed on systems where snapd is installed on top of a traditional Linux distribution, as opposed to system booting from an Ubuntu Core image. They can be released in all store channels.


Cannot use software-center to install packages from local repository without internet

I have filed a bug report in launchpad. This is the URL of the filed bug.
I was told that, the bug was already submitted, was a duplicate of this bug.
The response was

Hi Mohammed, and thank you for your report. So, as I understand it, the issue is that you want to be able to install packages using Software Center while you are not connected to the Internet, is that correct? In other words, your Internet connection is disabled at the time you try the install, and the "Install" button is disabled. If this is the case, then this bug is a duplicate of bug 911706. I will mark it as such, but please feel free to comment here if you feel this is not a duplicate of that bug. Otherwise, please add any additional info to bug 911706, and follow that one for the status of a fix.
Many thanks!

The bug status was changed to "Confirmed" on the day 06-10-2012.
So, there is indeed no solution until this bug is fixed.
I think, this answers the question.


install ubuntu 13.10 without losing data on d rive

No you cant install ubuntu 13.10 on a drive with data in it. Earlier in Ubuntu 12.04 LTS, wubi(windows ubuntu installer) does install in a drive as it makes a folder name ubuntu inside the d drive. but it get discontinued after that. During installation, you must format the drive as ext4 or ext3 to install it.

There is other way, you can shrink your d drive to make another drive which can be used to install ubuntu. But beware it can damage the partitions, as it might be a chance your d drive is a logical partition. So see your partition from the manage storage in windows before doing anything.


Currently Ubuntu server exists only for AMD64 architecture. Raspberry however is an ARM device, and for that purpose exits snappy. It is however somewhat different, it doesn't use apt but rather uses snappy, the new transactional package management. According to Mark Shuttleworth with 16.04 however there should be apt and dpkg available for snappy available. Personally, I've been using it with docker. But as of now there is lack of packages for ARM architecture. You can try Arch linux for raspberry but as of now, Ubuntu Snappy and Mate are two best choices the Ubuntu community can offer


I have the same issue.  Ubuntu 12.04 hdmi A8 APU and same HD 6550D GPU  The weird thing is it only happens when I am doing full 1080P out over hdmi.  My new tv also had trouble detecting anything being displayed.  Had ubuntu running fine on an old 720P samsung lcd, now with a new 1080P samsung it is throwing a fit.  I installed 3 different catalyst drivers and followed a guide in the ubuntu forums and say that any switchable graphics is really not supported??  Also getting red dots only in xbmc during dark scenes.


Your question is really not very clear. Why don't you have your friend open the window himself? Anyway, yes it is possible to ssh into a remote machine and open a graphical window displayed on that remote machine's currently running X server.

You need to tell your friend to allow you access. This can be done either by allowing everyone to connect to his X server:

 $ xhost +
 access control disabled, clients can connect from any host

Or by allowing you specifically:

$ xhost + si:localuser:eddieferetro
localuser:eddieferetro being added to access control list

In both cases, he needs to run these commands from his existing X session. He can then close it again by running the same command but replacing + with -:

$ xhost - si:localuser:eddieferetro
localuser:eddieferetro being removed from access control list

Or by blocking all external access again:

$ xhost -
access control enabled, only authorized clients can connect

Once he has done that, you can ssh normally, export the DISPLAY variable and run GUI commands that will appear in his X session (I am using eog as an example):

eddie@local$ ssh eddie@remote
eddie@remote$ export DISPLAY=:0
eddie@remote$ eog

To make this window persist after you log out, you can run it with nohup:
    eddie@remote$ nohup eog &

You can now log out with no problem.


Ubuntu 17.04: Starting up laptop with lid closed

I had the same problem, but i use arch linux with xfce4, all i did was disable the monitor completely. the problem is the in built monitor will always be disabled and you cannot use the laptop without the external monitor(s).
how i did it


What is gstatic and why did it show up in my spreadsheet?

Fear not. gstatic.com is a domain owned and controlled by Google, Inc. They use the domain to host static content for their own services. I'm not sure how or why it ended up in your spreadsheet, but it's probably not malicious.


Steps i've done to fix it:

copy /lib/udev/rules.d/85-lvm2.rules to /etc/udev/rules.d/
change ENV{ID_FS_TYPE}=="lvm*|LVM*" to ENV{ID_TYPE}=="disk"

It's a real bug :  https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/147216


How to change Shotwell keyboard shortcuts?

We've had other complaints about the rotate key shortcuts. They  will be changed back to Ctrl+R and Shift+Ctrl+R in Shotwell 0.8.


How do I navigate between directories in terminal?

The filesystem is GNU/Linux is like a tree, except that the root is on top. :-) So you have structure like:

/
  bin/
  home/
    sharon/
      Documents/
      Downloads/
      fileA.txt
      fileB.jpg
  usr/
  var/

If you want to move inside the tree, one option is to use relative paths. If you are in /home/sharon, then typing cd Downloads will work, because Downloads is an immediate child of your current directory. If you are in the subfolder Documents and want to change directory (cd) to Downloads, you have to go up (..) and then to Downloads. So the correct command would be cd ../Downloads.

You could also enter an absolute path. So the Downloads folder is a subfolder of sharon which is a subfolder of home which is … (you get the idea :-))
So you can also enter cd /home/sharon/Downloads wherever you are in the filesystem.

~ always refers to the home directory of the current user (/home/sharon in your case). If you enter cd ~/Downloads you'll land in your Downloads folder.
. refers to the current directory, so cd ./Downloads is roughly equivalent to cd Downloads.
.. means "parent directory".
/ at the beginning of file path refers to the root directory.

The next nice thing is tab expansion. If you enter cd ~/DowTab (last is pressing Tabulator key), the bash automatically expands it to cd ~/Downloads.

As the others said GNU/Linux is case sensitive. So it makes a difference if you enter Home, hOme or home. Furthermore I hope that you see now that there is a difference between /home and home. The first is adressed absolute while the last is relative to your current directory.


In gimp you have an option "Export as" and you can choose the format. Then you have to write the extension yourself.


You can see which version of clinfo is installed with dpkg -l clinfo. You can see the files installed by the clinfo package with dpkg -L clinfo.


How to give apache2 permission to write and read files?

Use following command:

chown -R www-data:www-data /var/www

This will make all your htdocs writable by Apache2.


Recovering Data from TOSHIBA MK4026GAX (0201)?

Given all that errors that the hard disk is giving out, it is pretty clear that it is beyond its end of life. It is not going to work.

You can try to recover data using ddrescue or if the  data is very important, you may better pay some money and go with the experts.


How to install DB Browser for SQLite via PPA?

Ok so adding the below line fixed the issue

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7F2583EA

then sudo apt-get update

install software sudo apt-get install sqlitebrowser

Reference: Ubuntu forums


It's sudo systemctl restart network-manager or sudo service network-manager restart.  You're just missing part of the command.


You need to

sudo apt-get update

after adding the ppa. Then the installation command should work.


How to install Err in a Python 3 virtual environment?

Err pulls in a lot of dependencies along with it, so I would suggest to use Virtualenv in order to install it. And since they mention that as of Err v2.0, they have written it with Python 3 in mind, you should use Python 3 if you can (although Err is compatible with Python 2.7 too).

To understand how to use virtualenv, have a look at its documentation and create a couple of them to play and understand the concept. Basically virtualenv is to keep the dependencies separate for each project and not to mix up with the ones already installed on the system by default.

Virtualenv comes by default in the standard library from Python 3.3 onwards. But since you have Python 3.2, we would need to install it first.

sudo apt-get install python3-pip
sudo pip3 install virtualenv

Now, create the virtualenv for installing Err and activate it following the documentation above. I don't have Python 3.2 so cannot test it right now, but the following should work (assuming you want to create it at ~/venv/py3-err/):

python3 virtualenv.py ~/venv/py3-err/
. ~/venv/py3-err/bin/activate

Once activated install Err using pip. Since, you are facing issues with sleekxmpp, a bug was reported in this regard and it has been fixed in their Github master branch. So, install it directly from there:

pip install https://github.com/gbin/err/archive/master.zip

If you get any build-errors in this step, download the basic build-packages and re-run the above command:

sudo apt-get install build-essential cmake libffi-dev

Once installed, you need to save the config-template.py as config.py in a separate data directory. cd to this directory and start it by just running err.py or err.py --daemon following the user guide.


Why isn't Roundcube's Upgrade Shell Script Working?

Turns out installto.sh is not a linux shell script, though it ends with .sh. It is a PHP file that is meant to be run from the command line. To successfully upgrade Roundcube, it needs to be executed as follows:

cd roundcubemail-1.0.5 && sudo php bin/installto.sh /var/www/html/roundcube

My mistake was I was trying to run the script using bash instead of php.


Installation of ns-allinone2.34 in ubuntu 10.04

It looks like the line which includes "cp: cannot create regular file" may be trying to create a filename with illegal characters. I don't think both the number sign and colon (# and :) can be used in a file name, and it looks like the space in the name may also screw with things. If there is an alternative to using this filename through some installation configuration, I would start by trying that.


VirtualBox black screen after installing guest additions

Shut down the guest and, from VM Settings > Display, change it to the older VBoxVGA controller (the one with no S).


How can I use a pendrive to increase my RAM (to speed up the system)?

It won't make any difference if you already have a swap partition. The speed of the computer is not just determined by the amount of memory available, but also the access speed for that memory. For RAM, that speed is extremely high as compared to say, access speed on a usb flash drive. So even though you could extend your total memory, access speed to the part of the memory on the flash drive would be extremely slow, defeating your very purpose. For that purpose, a swap partition is created on your hard disk itself. What windows does is the same, it creates a swap space on the flash drive. So all in all, if you're running out of ram, adding more swap space isn't really a viable alternative. You're much better off upgrading your RAM. Read this for more info.


How to connect wirelessly in a cafe with 11.04

That is actually not a problem in Ubuntu, but a problem with the configuration in the cafe. Not all cafes offer free, one click away internet connection. Cafes and Airports for example offer a website to which you connect (Tipically a 192.168.1.1, 10.0.0.1 or similar IPs) and in the web page the charge you with some credit point or credit card the time or bandwidth you will be using. This is one case.

Other cases include a proxy setting that you need to do or some static ip that you need to configure.

In any or all cases you need to ask in the place where you want to connect. Either to the person attending the cafe or if in an airport to somebody in charge.

Mentioning that the wireless connection works in your home just shows that the wireless device in your laptop is working correctly. So the problem must be somewhere else and not in Ubuntu.


Can I safely cancel in the middle of a system install?

No, it will not, if you have data in another drive or u haven't format your system drive.

But use another ISO to reinstall system.


Ubuntu Touch - adding time & date stamp to photos

If the intent is to watermark your photos with the date/time they were taken then check out http://jambula.sourceforge.net/ to batch insert shooting date/time/comment on jpeg images in different formats and languages. A special feature is that the date stamp is lossless. It is supported on Linux as well.


Command "apt-get-repository" doesn't work on Ubuntu 12.04

As answered in the comments:
I see some inconsistency there: add-apt-repository vs apt-get-repository, was that a typo or did you really get a different error? – guntbert 3 hours ago
Try sudo add-apt-repository ppa:libreoffice/ppa – Mitch 3 hours ago

Adding it as an answer, so this can be ticked off as the correct answer, closing this.

(Added this answer as community karma as I had little to do with it ;) )


How do I customize Wubi (like a LiveCD)?

Please note that customizing Ubuntu for Wubi may require some additional steps, compared to customizing a standard LiveCD.

The Wubi Customization section in the official Wubi Guide contains some hints and tips.

The guide also talks about customizing Wubi itself and using Wubi for non-Ubuntu distributions, so I have included the points I think are most relevant for your needs/problem, along with my comments:

A Live CD with ubiquity + casper + lupin-support (which provides lupin-casper)

If your custom LiveCD boots and works, then you already have ubiquity+casper; just check that you don't remove lupin-support during customization.

The ISO must have a .disk/info formatted like the one in the Ubuntu ISO and with data matching what you provided in the isolist.ini

This is very important - a customized CD is always going to contain more/less/different files than a stock Ubuntu LiveCD, so you will need to ensure that the .disk/info files contain this list, and also modify isolist.ini with this information.

If you want users to be able to download the ISO, in your web server you need to provide a metalink file for each ISO provided, the md5 of said metalink files, and the signature of the md5s. To verify the signature you need to add the signing key to data/trustedkeys.gpg. If this is too much trouble, you can disable signature checks in data/settings.nsh. The metalink file must be on a "stable" URL since that is hardcoded in isolist.ini. The metalink file can in turn point to all your mirrors. You will notice that 2 metalink files are provided in isolist.ini, one is for final release, and one for development versions.

I don't think this matters if you are using the local ISO for installation.

Your Linux distribution must have a mechanism to do unattended installation using a preseed file. Wubi takes advantages of debian-installer/ubiquity presiding. If you use a different mechanism, you will have to modify src/wubi/installer_preseed.nsh. The make prerequisite scripts may need to be updated as well, since they are Debian specific.

Preseeding refers to the automated/unattended installation script, which basically contains answers to all the questions users are normally asked during an interactive installation. Your customization may modify some of these questions, so you would have to modify the preseed file accordingly.


The file is index.html and is located in

/var/www/index.html


You can try with the RTMP Nginx module. It is a fully-featured streaming solution for Nginx.

It is available in the official Ubuntu repositories and it can be easily installed:

sudo apt install libnginx-mod-rtmp


Slow/laggy desktop effects with Nvidia card

I have the same nvidia card (GeForce 6150SE nForce 430) and experienced the exact same problem as WPBloyd (desktop effects were very slow, but it was otherwise fine) using the nvidia driver.
I followed the instructions on this page in order to use the "Nouveau" driver (open-source driver for nvidia cards).

Problem: Need to fully remove -nvidia and installing or reinstall -nouveau from scratch
Here is a recipe which removes all old video drivers, and reinstalls nouveau:
sudo nvidia-settings --uninstall
sudo apt-get remove --purge nvidia*
sudo apt-get remove --purge  xserver-xorg-video-nouveau
sudo apt-get install nvidia-common
sudo apt-get install xserver-xorg-video-nouveau
sudo apt-get install --reinstall  xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg

(I copied what I used; it is the same as on the last link, except that I suppressed server-xorg-video-nv, libgl1-mesa-glx and libgl1-mesa-dri because they did not seem to exist anymore)
It worked for me, I hope this can help somebody else :)


Ubuntu 14.04 will not update/remove or install any packages

Try putting the machine in recovery mode (basically yank power twice), then pick advanced options, recovery mode, and try the dpkg option. Worth a try.


To disable locking open Terminal application, then copy, paste and execute following command.

Notice: it's one long command, 12 lines, starts with "echo" and ends with "disable-file-locking.xcd".

echo '<?xml version="1.0" encoding="UTF-8"?>
<oor:data xmlns:oor="http://openoffice.org/2001/registry">
  <dependency file="main"/>
  <oor:component-data oor:package="org.openoffice.Office" oor:name="Common">
    <node oor:name="Misc">
      <prop oor:name="UseLocking">
        <value>false</value>
      </prop>
    </node>
  </oor:component-data>
</oor:data>' |
sudo tee /usr/lib/libreoffice/share/registry/disable-file-locking.xcd

To undo changes:

sudo rm /usr/lib/libreoffice/share/registry/disable-file-locking.xcd


Perhaps you'd like to try Shairport Sync. It runs on Ubuntu 14.04. It has evolved a fair bit from the original Shairport.

https://github.com/mikebrady/shairport-sync


You can stop a service with systemctl, but you need to also disable it and anything that would cause it to start up.  You can use systemctl disable sshd so that sshd will not be started when you turn the system on in the future.  If I'm not mistaken, any existing ssh connections will be maintained even after running systemctl stop sshd.  No new connections should be able to become established.

You can see that with your systemctl command, you have sshd.service and sshd.socket.  You need to stop and disable both of these using systemctl, likely the socket first, and then the service.  One is dependent on the other and will not be disabled unless done in the proper order.

$ sudo systemctl stop sshd.service sshd.socket
$ sudo systemctl disable sshd.socket
$ sudo systemctl disable sshd.service

As it has been mentioned, Ubuntu's openssh-server only installs ssh.service, and no socket.  This is also true about Debian Stretch.  It seems you've deviated from default and without more details it's hard to know exactly what's going on.

Depending on the requirements, removing the package providing sshd  (openssh-server) would be a more fool-proof approach.  Please consider things such as the physical location of the machine, etc, before completely disabling sshd .


Ubuntu 12.04 - incorrect graphics information

I hope you have not installed Nvdia Drivers in your system,

$ sudo nvdia -v

Will show your driver version[if installed and configured correctly].

To check Nvdia configuration, follow this link.

If you not yet installed Nvdia Drivers, follow this link.

Alternatively you can install manually at your own risk described here.


Is it possible to store Thunderbird's passwords in GNOME keyring?

Have not yet tried it but: https://github.com/infinity0/mozilla-gnome-keyring#readme


How to make FirewallD and hybrid-sleep work together?

Update April 23, 2018: Fixing the root cause solves this problem

Root Cause

The service file - /lib/systemd/system/firewalld.service says firewalld conflict with ebtables.service which is enabled by default in Ubuntu 16.04.

Solution

Disable and mask ebtables.service with the following two commands:

sudo systemctl disable ebtables
sudo systemctl mask ebtables

This resolves the issue with FirewallD and hybrid-sleep  and the associated problem of Firewalld does not start at boot

Thanks to alfred's answer to the above question

Original answer:

Stop firewalld before hybrid-sleep and start it at resume

Background

Put a bash script file in /lib/systemd/system-sleep/. Immediately before entering system suspend, hibernate, or hybrid-sleep the systemd-suspend.service (and the respective equivalents) will run the bash script in /lib/systemd/system-sleep/ and pass two arguments to them. The first argument will be pre, the second either suspend, hibernate, or hybrid-sleep depending on the chosen action.

Immediately after leaving system suspend, hibernate or hybrid-sleep the same bash script is run, but the first argument is now post.

Source: https://www.freedesktop.org/software/systemd/man/systemd-suspend.service.html

How to do it:

Create a text file: /lib/systemd/system-sleep/firewalld-sleep.sh with the following content:

#!/bin/bash
case $1/$2 in
    pre/*)
    # Disable firewalld before hybrid-sleep
    systemctl stop firewalld.service
    ;;
    post/*)
    # Enable firewalld after hybrid-sleep
    systemctl start firewalld.service
    ;;
esac

Make the file executable. See http://askubuntu.com/questions/484718/how-to-make-a-file-executable for details.

Note, the script stops the firewalld before any of the three types of sleep/hybernate/hybrid-sleep and starts it again at resume.

Now firewalld and hybrid-sleep will coexist and system will not freeze if you close the lid while firewalld is running.

Hope this helps


Acer - Aspire 5742 wifi hard blocked with ubuntu16.04

You can try to reactivate your wifi by using

sudo rfkill unblock wifi


Bluescreen after Ubuntu 12.10 installation, after recommended boot repair "no filesystem found" please help!

download and use a Windows disc this way: https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader , until you get direct access to Windows
then use Boot-Repair to recover the GRUB menu


No global application menu for Aptana Studio 3

I found you can do the following at the command line (src: https://bugs.launchpad.net/ubuntu/+source/indicator-appmenu/+bug/659931):

$ UBUNTU_MENUPROXY=

Then start the application:

./studio3

I edited the "studio3" starter script adding
UBUNTU_MENUPROXY= as the 3rd or 4th line to make this change permanent. Make a backup before you edit "studio3", to be safe.


there is a Nautilus script that can save/restore the ubuntu 14.04 desktop icon positions. It also has the ability to align all of the icons ..

It can be downloaded at gnome-look.org and is named "Happy Desktop"

just google it.


Unable to install a CGI script on Ubuntu

That means that the web server doesn't know that at this location, a file ending with '.cgi' should be executed rather than passed directly to the browser. You need to configure the web server in such a way that the directory in which nph-proxy.cgi resides or the extension are automatically considered programs. The specifics of the configuration will depend on your web server (Apache, lighttpd etc.).

Or try to move the file into an existing directory (such as /var/server/www/cgi-bin/) that is already configured for executables.

To configure Apache, open the file (with sudo or gksu) /etc/apache/apache2.conf:

gksu gedit /etc/apache/apache2.conf

Search whether there is a line like this:

ScriptAlias /cgi-bin/ /some/directory/or/another/cgi-bin/

If yes, create that directory (sudo mkdir /some/directory/blah/blah/cgi-bin/) and put your CGI script there. If not, add this line. Then when you call the URL

http://your.machine.blah.foo/cgi-bin/nph-proxy.cgi

it will be executed.

Alternatively, you can allow the CGI scripts to be executed in a particular directory. Put the following in your config file:

<Directory /the/directory/where/your/script/is/>
   Options +ExecCGI
</Directory>
AddHandler cgi-script cgi pl

(check whether the AddHandler line is already in your config!)


deviceQuery fails on CUDA 7.5 installation ubuntu 14.0.4

In the CUDA documentation, we were advised to use the command setenforce 0 under SELINUX. That worked once for me (in running CUDA samples).

On other forums, we were advised to work under superuser, via sudo su of sudo COMMAND and this always worked.

I had another hiccup while compiling the CUDA samples but i corrected it by adding these lines to my ~\.bash_rc:

LIBRARY_PATH=/usr/lib/nvidia-355:${LIBRARY_PATH}
export LIBRARY_PATH

We had been advised to use:

$ LIBRARY_PATH=/usr/lib/nvidia-355:${LIBRARY_PATH} make

But i don't understand that for now.


It turned out, there was a problem with permissions of this file. Setting it to 644 solved the problem.


Uninstall then install makes vstpd service unrecognized, vsftpd: unrecognized service

Problem

There currently is a kernel bug in 14.04 that will be solved by a kernel update.  My current kernel is: 3.13.0-34-generic, and the minimum needed kernel version at the time of this writing is: 3.15.0-031500.

Workaround

This is not a solution to the problem, but will allow you to run vsftp and will allow you to stop vsftp by rebooting until a solution to the kernel problem is deployed to Ubuntu 14.04

To start vsftpd:

Edit the /etc/vsftpd.conf and set the listen= parameter to YES

sudo reboot

vsftp will get started as a standalone program (not a service)

To stop vsftpd:

Edit the /etc/vsftpd.conf and set the listen= parameter to NO

sudo reboot

If anyone has any better ideas then mine, feel free to add to this answer!!!


Making systemd service unit produce output on start/stop

You can check sudo netstat -nlutp | grep weed to see if the port assigned in your .service file, (9333 in this case) opened.

If you see like this, the service may started

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 192.168.0.2:8081        0.0.0.0:*               LISTEN      25878/./weed
tcp6       0      0 :::9333                 :::*                    LISTEN      1244/./weed


How do I use my Ubuntu machine as a bridge to allow an old XP machine internet access?

Here is the link, You have to do masquerade.

http://www.ubuntugeek.com/sharing-internet-connection-in-ubuntu.html

Hope it helps.


Ubuntu VirtualBox VM unable to connect to internet in office environment

I have resolved this issue. The solution was simple. Since the only issue was internet connectivity, I configured the proxy manually. I went to FireFox -> Edit -> Preferences. Under 'Network' tab, clicked on "Settings" button. Under this provided the IP address of the  proxy, which is accessible from the VM. (Ping the IP addresses of the available proxy severs on your network, before giving this IP in the proxy setting). I have tried this in both NAT and Bridged Adapter setting and it is working file.


HP Pavilion tx2514 wacom convertible tablet "Wacom ISDv4 93 Pen stylus" won't reveal launcher

I have found a workaround for my problem.

If you use "Onboard", you can reveal the Launcher with the Super key.

You can still auto-hide Onboard, and if you set it to show notification icon, and set it to auto-show when editing text the keyboard will reveal. From there you can press the Super key to reveal the Launcher.


NOT an acceptable solution, but just a workaround for those in a similar situation, needing to get the server started at least temporarily:

grub>

set root=(hd0,1)
linux /vmlinuz  root=/dev/xvda1   ro
initrd /initrd.img
boot

NOTE:
after booting, update-grub seems to run fine, but a reboot lands into the same helplessly stuck grub> prompt...
Same with grub-install /dev/xvda


Mouse cursor disappearing at every second boot Ubuntu 13.10

You can check this bug

https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1238410

I'm no longer affected on a new 14.04 dev install but on my 13.10 install from 2 weeks prior  to release it still could happen

For the 13.10 install disabling the gnome-settings-daemon cursor plugin has proved effective. To try, in terminal

gsettings set org.gnome.settings-daemon.plugins.cursor active false

To re-enable just run same command but use true instead of false


This function should get you started:

good () {
    if [ -z "$1" ]; then
        echo "Perhaps you meant 'good night'?"
    else
        if [ "$1" = "night" ]; then
            echo "GOOD"
            echo "NIGHT"
            echo "good"
            echo "night"
            echo "etc"
        else
            echo "ERROR: strange time detected: $1"
        fi
    fi
}

Save it as, for example, good.sh, then source it:

. good.sh

good night now will execute various commands (replace the echo statements with whatever you want).


No incoming connections after upgrade to 20.10

So, it turns out that during the upgrade, my external IP address had changed. A quick Google revealed the correct IP address and I was able to connect to ssh and my website.
I don't understand how/why the external IP address changed though?


14.04 fresh install, freezes before login/no keyboard mouse

In the terminal (press Ctrl+Alt+T to open or otherwise login in recovery mode, jump to root command line then try this) run this

 sudo apt-get purge nvidia*
 sudo reboot

This will remove any installed nvidia drivers.

Then install the new drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361
sudo reboot

This will fix at least the nvidia issue - once you can login you can determine what other issues are there?


Change screen resolution using the terminal (command line) in Wayland - Ubuntu 18.04

I use gnome-randr. Someone created it 1 year ago to "reimplement some of the functionality of 'xrandr' for the gnome desktop using mutter's dbus-api. It currently has not been tested with fractional scaling support."
You can download it here : https://gitlab.com/Oschowa/gnome-randr
Then you :
$ chmod +x gnome-randr.py

You can also replace the first line by this :
#!/usr/bin/env python3

and run it
$ ./gnome-randr.py

It will give you current configuration and names of your monitors, like DP-1 DVI-1 HDMI-1.
Then you can use xrandr syntax :
$ ./gnome-randr.py --output DP-1 --rotate normal --mode 1920x1080

Help is also available for all possibilities :
$ ./gnome-randr.py -h
usage: gnome-randr.py [options]
    where options are:
    --current
    --dry-run
    --persistent
    --global-scale <global-scale>
    --output <output>
        --auto
        --mode <mode>
        --rate <rate>
        --scale <scale>
        --off
        --right-of <output>
        --left-of <output>
        --above <output>
        --below <output>
        --same-as <output>
        --rotate normal,inverted,left,right
        --primary


You wrote 2 in the minute column, so the job runs at 2 minutes past the hour, every hour. To run the job every 2 minutes, write

*/2 * * * * php /srv/www/<snip>/<snip>/run.php


Where can I get an application to work with my kml files?

You can view them online with GPS Visualizer.  You load them directly with Viking GPS Analyser.

You can also convert them to GPX files using Viking or GPSBabel.  Both are available from the Ubuntu repos. See Viking GPS Documentation for details.


Ubuntu 14.04 & Lenovo Yoga 2 pro screen resolution

Stripping down the resolution to 1920px might not be the best solution.

You can easily adapt Ubuntu to such a high resolution: Adapt Ubuntu to a high-DPI resolution screen

There is a new new option since Ubuntu 14.04:
In System Settings->Displays  Look for "Scale for menu and title bars."

I solved some more issues in my Guide for the Yoga 2 Pro

Also you can Adjust Firefox and Thunderbird to a High DPI touchscreen display (retina)


How to run full text search on help pages offline (from Yelp / gnome-help or something other)?

This is especially for man pages in Linux.

find -name "cp.1.gz"| xargs zcat


Cannot mount iPod touch to Ubuntu due to Lockdown errors

I changed the permissions of ~/.config/libimobiledevice/*.pem from 644 to 600. My ipod connected fine after that.

chmod 600 ~/.config/libimobiledevice/*.pem

Obviously that was after installing libimobiledevice.


Your device is actually driven by the driver 8812au. There is a package in the Ubuntu repositories called rtl8812au-dkms, however, it does not cover your exact 2357:010e device. 0101 and 010d and several other similar devices are covered. We will, emboldened by this post, modify the code: https://unix.stackexchange.com/questions/345375/issue-while-installing-driver-for-archer-t4u-ac1300-on-mint-17

  I can confirm the above solution worked for me:  The only
  difference I had to do was when I ran the command 'lsusb'. It showed a
  device named '2357:010e'. When I had to add a new 'line in usb_intf.c'
  I had to change the reference from 'd' to 'e' instead. :)

With a working internet connection by ethernet, tethered or whatever means possible, open a terminal and do:

git clone https://github.com/gnab/rtl8812au
cd rtl8812au/os_dep/linux
nano usb_intf.c

Scroll down until you find the line that says:

{USB_DEVICE(0x2357, 0x010d),.driver_info = RTL8812}, /* TP-Link - Archer T4U, AC1300 */

Simply change the d to an e so that is now reads:

{USB_DEVICE(0x2357, 0x010e),.driver_info = RTL8812}, /* TP-Link - Archer T4U, AC1300 */

Spacing, punctuation and spelling are critical so proofread carefully, twice. Write out the file (Ctrl+o) and exit (Ctrl+x).

Now do:

cd ~/rtl8812au
make
sudo make install

This 'makes' on my 17.10 system with a very few possibly harmless errors. Next do:

sudo modprobe 8812au

Is your wireless working? Please report back as I will have another step if we are successful.


Install PycURL in my virtual environment in PyCharm

python3-pycurl and python-pycurl are in the default repositories of all currently supported versions of Ubuntu. To install python3-pycurl open the terminal and type:

sudo apt install python3-pycurl

Next you must configure your PyCharm project to find the python3-pycurl package that you installed. PyCharm does not automatically find your globally installed Python packages unless the project has been configured to find them. To do this select the Inherit global-site packages option when you create a new project.

Select File -> New Project to create a new project. Click the triangle marked by the mouse cursor in the below screenshot to show the new project's options. In the below screenshot the project is named plotimage.

Then check the Inherit global-site packages checkbox and click the  Create  button in the lower right corner of the Create Project window.

Now your PyCharm project will be able to use all global-site Python packages.


I was on my laptop in Ubuntu when a window popped up asking to upgrade to 15.10.  I clicked on it and the download started.  I did not watch it download and when I saw it later, I can not get to the home page.  What I get to is a request in the upper left corner:  owner-Latitude - 5400 loginin:  (Is there a way to bypass this to get to a home page?  If not, how does one delete 15.10?

Thanks,

Tom


enabling initrd and kernel boot messages grub2

Answering my own question, the following steps can be taken to enable initrd and kernel boot messages. Please be aware that I'm doing this only on a server install with no graphical environment.  Desktop users may be unconcerned with a lack of boot nessages. So, take an unmodifed /etc/default/grub and make two changes:

Remove the 'quiet splash' options from GRUB_CMDLINE_LINUX_DEFAULT
Uncomment GRUB_TERMINAL=console
As root or using sudo, run update-grub and reboot

If you want to take a further step and also obtain a console something like the old kernel option 'vga=xxx' would give, see the following url:
http://frontseed.com/entry/enable-frambeuffer-ubuntu-karmic-koala-using-grub2

Following the steps there, I only found it necessary (at least for ubuntu-12.04-1) to:

add 'vesafb' and 'fbcon' to /etc/initramfs-tools/modules and run

  # update-initramfs -u

edit /etc/default/grub, adding only (for my desired screen resolution):
GRUB_GFXPAYLOAD_LINUX="1024x768" then update-grub and reboot.

The solution isn't perfect, but is as close as I can get to a similar boot screen as with other distros that are still using grub-legacy.


xrandr not showing all ports and resolutions

I solved this problem by following this answer to a similar question on ubuntuforums.org:

Disabling NVIDIA KMS (enabled by default in 390.77) resolves the issue:

Edit /lib/modprobe.d/nvidia-kms.conf file and set modeset to 0:
options nvidia-drm modeset=0

Save, update initramfs and reboot:

sudo update-initramfs -u

reboot


How do I use the new "Ubuntu Font Family" in older releases?

The Ubuntu Font Family packages are being inserted into order (still supported) releases of Ubuntu as they are released.  As of February 2011, those older releases are:

Ubuntu 10.10 Maverick
Ubuntu 10.04 LTS Lucid
Ubuntu 09.10 Karmic
Ubuntu 08.04 LTS Hardy

If you have software updates enabled then you should be able to select the package and install it from the Ubuntu Software Centre or using:

sudo apt-get install ttf-ubuntu-font-family

For more details on the process (or to help validate that new releases are suitable for backporting as Stable Release Updates), see:

bug #650889 Ubuntu Font Family would be valuable for older releases
bug #709980 SRU ubuntu-font-family 0.70.1 for all


Resource Usage between 12.04 LTS, 12.10 and 13.04

Talking about resources, both are going to be more or less equals because both use Unity, but Ubuntu 12.10 adds a Amazon lens and some previsualization ones, which maybe use more memory than the 12.04, and the same with Ubuntu 13.04 (adds more graphical changes as the shutdown menu) but Unity is more debugged at this stage. And, obviously, Ubuntu 12.04 is more stable than 12.10 because it's a LTS version (Long Term Supported) and is older than 12.10 (which is not a LTS release). The same occurs with 13.04.

As a personal mark, I use LTS version until the non LTS version gives me enough stability or features. In my case nowadays, this depends of the graphic card support, and Ubuntu 12.04 has full support with my AMD driver and Ubuntu 13.04 not yet.

And I use Ubuntu 12.04.2 to daily use, to install my home server and code with C, C++, Java, Scala, Scheme, Python, PHP...


How to install Radeon HD 8670A/8670M/8750M graphic card driver on Ubuntu 16.04?

Have a look at the Release Notes. It tells exactly what is going to happen, and IMHO, it is a step in the right direction, not a problem.

The fglrx driver is now deprecated in 16.04, and we recommend its open source alternatives (radeon and amdgpu). AMD put a lot of work into the drivers, and we backported kernel code from Linux 4.5 to provide a better experience.
When upgrading to Ubuntu 16.04 from a previous release, both the fglrx driver and the xorg.conf will be removed, so that the system is set to use either the amdgpu driver or the radeon driver (depending on the available hardware).
More information is available at https://tjaalton.wordpress.com/2016/03/11/no-catalystfglrx-video-driver-in-ubuntu-16-04/


I installed a program by getting its source code, and then running `sudo make install`; how to make `apt-get` know about it?

TL;DR checkinstall is your friend ;)

sudo apt-get install checkinstall

After a installation with sudo make install your package manager knows absolutely nothing about this installation. But it knows all about a package with the same name in the Ubuntu repositories or in a PPA.

Use sudo checkinstall instead of sudo make install and use a higher version as the version in the repository to be sure, that your package manager accepts this version as correct dependency for ProgB.

Further information:

checkinstall is really nifty, since it follows what the make install command would do, in order to figure out how to build a package.

This means that if you install a program using make install, but then want to repent for your sins, all you have to do is sudo checkinstall -D make install, and that command will:

follow make install to figure out what it does
copy-cat make install, except in *.deb package form
install from the package (exactly as make install would have, given point 1)) except also let apt-get know about it, and thus overwrite all the files exactly where make install would have put them as long as you choose YES to include the files put by make install in the home directory in the package as well -- a couple of options during the checkinstall process will let you choose (obviously though, the choice is there so you can exercise it on a case-to-case basis)

Bonus: you can also remove a package (call it progA again) installed using make install that odes not have make uninstall support by following the checkinstall process outlined so far, and then simply doing:

dpkg -r progA


A strange behavior for globbing in find command

When you use unquoted (or un-escaped) * i.e. glob token * (any number of characters i.e. any file), the shell expands * to all files in the given directory, in case of *c, all files ending in c. So when you run:

find / -name *c

assuming there are three .c files in the current directory namely foo.c, bar.c, and spam.c, the command actually would run is:

 find / -name foo.c bar.c spam.c

which is an invalid command, as you can see it's using multiple filenames after single -name option. This is what happening when you are at /.

Now, while at /home, presumably there was no *c files present, hence the glob pattern *c will be retained (in bash, this is shell dependent behavior; in bash, you can change the default behavior by nullglob/failglob shell options), so the command find gets is:

 find / -name *c

which is a valid command and expectedly being run.

Now, with find you should quote or escape any shell globbing token, as you want find to interpret (expand) those, not beforehand by the shell. So do any one of:

find / -name '*c'
find / -name "*c"
find / -name \*c


Xubuntu doesn't ask me to create a new user on first boot (Ubuntu 20.04)

Resolved with sudo adduser command, that gui can't create a new user on first login because its weak so just do it manually.


The fact that you had to do sudo chmod -x ./install_geographiclib_datasets.sh means the script has to be run using sudo. And like has been stated by MichaelBay the command chmod +x only adds the execute bit to the script but doesn't change the ownership which will determine who has permission to run it.

So run the script like so sudo ./install_geographiclib_datasets.sh, and it should go well.

Based on muru's splendid observation, you need to rerun sudo chmod +x ./install_geographiclib_datasets.sh, as sudo chmod -x removed the ability to execute that script.


Can't connect to MS Windows share after switching to 12.04

I was having this same issue.  I got it to work by entering the domain with all capital letters.  Never have I had to do that before.


According to this, LAN messenger stores its config files in:

$HOME/.config/lmc/lmc.ini

So you should remove that file.

rm -vf $HOME/.config/lmc/lmc.ini

Then restart the program.


vga connection with Ubuntu 12.04 32b problem

You dont need to install any drivers... you need to change the mode on TV.

Are you using Ubuntu?


Will a Ubuntu upgrade affect my Windows installation?

Upgrading Ubuntu will not affect Windows installation.

But upgrading Windows may overwrite grub. It can be easily restored though.


refer pm-action man page: http://manpages.ubuntu.com/manpages/trusty/man8/pm-action.8.html, and refer the FILES section.

Any executable script put in the directory /etc/pm/sleep.d/ will be invoked before the suspend happens. Putting a file here will require sudo.


Unity launcher shortcut to a terminal command

You can create a simple shell script to grab the color and copy the output to clipboard and using that in the desktop file

Here is the shell script.
I have named it as grab.sh

#!/bin/bash
OUT=`grabc`
echo ${OUT} | xclip -sel clip

Change your .desktop contents

[Desktop Entry]
Type=Application
Name=Grab Color
Exec= sh /home/user/grab.sh
Categories=Development;
Icon=/home/diogo/.local/share/applications/colorline.png

This will copy the output to clipboard. You need to have xclip installed. If its not installed. Install it using command.

sudo apt-get install xclip


Ubuntu Server 14.04.3 LTS IP address nonexistent

/etc/network is the directory

interfaces is a file, not a directory

You may edit the file with a text editor

# nano /etc/network/interfaces


SIGRTMIN on plymouthd after switching from upstart to systemd

tldr;

If you are working on a dual boot system (Windows + Linux), an auto-mounted partition (in Linux) might still be locked by Windows (even if it is not the Windows system partition!).

long version

I had the same problem with my xubuntu 16.04. I have Windows 10 and xubuntu installed on my laptop (dual boot) and divided the hard drive into three (+1) partitions: windows, ubuntu (+swap) and 'exchange'. 'Exchange' is thought as an partition for storing common data between Windows and Linux. It is automatically mounted under Windows and Linux.

Unfortunately, the Windows "hybrid" shut down does not only lock the Windows partition but also the 'exchange' partition. When starting xubuntu after a regular (=hybrid) shutdown of Windows, xubuntu cannot auto-mount the 'exchange' partition.

In order to find out whether this is the case, one should use the command systemctl --failed. In my case it returned the information that the mounting of 'exchange' failed.


cp fails to copy with errors "cp: error reading 'file': Input/output error" and "cp: failed to extend 'file': Input/output error

For me, I got this error when trying to copy disk images that totaled something like 128GB. cp was trying to load the whole thing in memory in order to rewrite it back out and that obviously won't work, so it has to be done in chunks.  The best way I've found to chunk the file is to force it through ssh.

scp user@localhost:/path/to/source /path/to/dest

You have to use user@localhost; omitting it will revert to cp-like behavior.


Try these following commands as root.

ifconfig eth0 x.x.x.x

route -add default gw x.x.x.y

You may also want to run dmesg to see if there is more information.

It would be better if we knew which Ubuntu version you use.


Ekiga - free(gratis), free(libre)
QuteCom - free(gratis), free(libre)
Skype - free(gratis), non-free(libre)
To find this I searched 'voip', 'video chat' and 'softphone' (seperately) in the Ubuntu Software Centre (I already knew about Skype)


Replace all instances of date with /usr/bin/date and do the same for every command/path.

Use absolute paths in cron scripts, expect the shell to be dumb and not use any PATH or environmental variables. Also the shell used by default is /bin/sh not bash.

  date: not found

which date
/usr/bin/date


There is a script made by Marco Ceppi and modified by George Edison that allows Firefox to use Notify-OSD.

For Firefox to use Notify-OSD, you need to have Greasemonkey extension installed in Firefox. After that, you need to download this script.
You also have to download NPAPI plugin and copy them to your ~/.mozilla/plugins/ folder and restart the browser.

After all that, run the following command in a terminal:

sudo ln -s /usr/lib/x86_64-linux-gnu/libnotify.so.4 /usr/lib/x86_64-linux-gnu/libnotify.so.1

You now should have Firefox using Notify-OSD for displaying notifications.


cannot create a virtual machine in virt-manager

Found that the package qemu-system was missing.


How do you configure desktop for a static IP address?

Right click nm, choose Edit connections... find your interface, click Edit..., click IPv4 Settings, choose Manual and configure your interface.

An alternative would be to edit /etc/network/interfaces. an example configuration would be:

auto eth0
iface eth0 inet static
   address 192.168.1.1
    netmask 255.255.255.0
    gateway 192.168.1.1

then run

/etc/init.d/networking restart

Keep in mind that this will deactivate nm for this interface and you will have to delete (or uncomment) the entries to activate nm again.

Edit (see Casey's post):
You also have to set a DNS after editing /etc/network/interfaces:

  Set one or more desired nameserver in
  /etc/resolv.conf:

  nameserver 192.168.1.1


The answer is QuickTile, which can be found here:

http://ssokolow.com/quicktile/

I never figured out how to customize it, because I changed my monitor setup to an entirely different solution, but if you come across this question and want a solution, this program should work quite well.


This answer is directed at a Windows host, but if you use bash in place of the PowerShell and replace '\' with '/' it should work just fine.

Enlarge virtual drive

From VirtualBox

Release the VDI file: File -> Virtual Media Manager -> Select VDI -> Release
Copy the location of the VDI inside the properties box 'C:\Users\campbell\VirtualBox VMs\Ubuntu14\Ubuntu14.vdi'
Backup the VDI file

Copy the VDI file to a new location.
Assign a new UUID to the original VDI file:

Start Powershell (not as an administrator):
Change to your Oracle VirtualBox directory cd  C:\Program Files\Oracle\VirtualBox
.\VBoxManage.exe internalcommands sethduuid "C:\Users\campbell\VirtualBox VMs\Ubuntu14\Ubuntu14.vdi"

Remove and re-add your machine's .vdi file to update its UUID.

File -> Virtual Media Manager -> Select VDI -> Remove
Apply.
Right click your VM -> Configuration -> Storage -> Controller: SATA -> Add new hard drive. Select your .vdi file.

From host

Work out desired size: you can google it, eg. '40 Gb=MB' returns 40000 MB
Start PowerShell (not as administrator)
Change to your Oracle VirtualBox directory cd C:\Program Files\Oracle\VirtualBox
Resize your .vdi file .\VBoxManage.exe modifyhd "C:\Users\campbell\VirtualBox VMs\Ubuntu14\Ubuntu14.vdi" --resize 40000
Now start your virtual machine. You will receive the same warning about space that prompted you to engage in this procedure. Not to worry, we are near the end.

On your virtual machine

Start the partition manager gparted (install it if is is missing sudo apt-get install gparted)
Get rid of the swap partition, which prevents you from expanding the root partition. Note that you cannot harm the rest of your machine - this is all happening inside a single file. Worst case scenario you trash this file and you have to use your backup instead.

Make a note of the size of the linux-swap partition 4 GiB in my case
Right click on it and Swapoff
Right click on it and Delete
Apply by clicking on the checkmark (Apply all operations). Ignore the dire warning - life is too short to indulge Cassandras
right click on the extended file system that once housed the swap partition (/dev/sda2 in all likelihood) and delete it
right click on the root partition (/dev/sda1) and resize it. Tab to the 'Free space following' field and enter the size of the swap partition. Shift-Tab and the machine will work out the new size for you automatically.
Right click in the unallocated space at the end and make it an extended partition
Right click in the new partition and select linux-swap in the File system field.
Commit your changes as before
Right click on your swap partition and select swapon
Tell the Fat Lady to commence singing.

References:

https://tinyapps.org/blog/misc/201204120700_virtualbox_increase_disk_space.html
Resize Ubuntu 10.04 VirtualBox VM virtual disk


You can use xsel. To install it run this command in a terminal:

sudo apt install xsel

Now, when you want to clear your clipboard, enter

xsel -bc

For more information about this command enter man xsel

Source.