There is a bug files about this particular problem: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/836250

One of the comments mentions the Centrino n1000 but still it does not work correctly. I am guessing in the final 12.04 it might work properly. The user also points to have tested the RC2 of Ubuntu from the date he mentions so it might not be the same once 12.04 comes out.

Existe un bug mencionado sobre este problema particular. Alli puedes encontrar el comentario de otro usuario con la misma Centrino n1000 y el mismo problema. Posiblemente en la version final de la 12.04 te funcione mejor. Lo que podria recomendar seria probar el Beta y ver que tal te va. Te daria una idea de como va el progreso para esa tarjeta.


You need to edit /etc/fstab and remove the /usr/share mount point:

sudo gedit /etc/fstab

You should see a line like this:

UUID=XXXXXX   /usr/share    ext4    rw,errors=remount-ro    0   0

That is the line telling your system to mount the partition with UUID XXXX to the directory /usr/share. Deleting that line should solve your problem.


ssh key administration for many users, servers

Landscape

Canonical's Landscape makes it very easy to manage many machines at once.

You could just have a centralised key store and, on demand, push out changes to every machine's known_hosts file.

Rsync

Alternatively, if you don't want to use Landscape, how about simply synchronising the known_hosts via rsync? I'm not all that familiar with all this enterprisy business, but it should work very well.

Assuming the company's computers get shut down every night, i would do this:

Have on some server a centralised known_hosts file that you manage manually.
write a very simple program that, at boot time, tries to fetch that file and replace the current one
on the administrative side, test all changed to the master-file before pushing it out, which you do by just replacing the one all the clients try to access.

you could use RCS, an old sysadmin's favourite, to manage different versions of your master-file.

Note that many sysadmins will tell you that centralising things is a security risk, and generally not a great idea.

LDAP

Now, I'm not a sysadmin (and therefore not to be trusted on this matter). You really should ask this question on serverfault

LDAP seems to come up there quite a lot. Here's a bit information about fetching SSH Public Keys from LDAP, and here's some more.

This question might also be of interest to you.

I hope this is helpful. As you've discovered yourself, managing ssh access in large setups really is quite complicated.


For wifi Ad-Hoc Click Network Manager then Create New wireless network
And in window choose wep and enter 5 or 13 character long password and click ok.
That will make your laptop as ad-hoc router sharing Internet connection if it has any.


I can't start my computer after installing 12.04

Looks like you installed the GRUB boot record onto that external Hard Drive. To fix the GRUB boot record on the MBR do following:

Boot The machine (preferably from CDROM, to avoid breaking the Live USB by chance)
Open terminal, sudo su -
Find out the name of the partition you installed the ubuntu onto (use fdisk to look up the device (for example: fdisk -l /dev/sda))
chroot into the partition and fix the GRUB (the commands below assume partition /dev/sda1)

mkdir /tmp/a
mount /dev/sda1 /tmp/a
cd /tmp
for t in dev proc sys;{ mount -o bind $t a/$t; }
chroot $t
grub-install --recheck --no-floppy /dev/sda
update-grub
exit
for t in dev proc sys;{ umount a/$t; }
umount a

take out the CDROM and reboot


Guake Terminal transparency sometimes acts weird

As far as I know, this issue occurs with other terminals with transparency too (like Terminator) if they are set to start when you log in. If however, you manually start them (that's why it worked after you killed Guake), this issue doesn't occur.

So to fix it, you can create a simple script to launch Guake with a delay. Create a file called "guake-start.sh" in your home folder and paste this:

#!/bin/bash
sleep 15 && guake

"sleep 15" will make Guake start with a 15 seconds delay. If 15 isn't working for you, try a different value. Then save the file and make it executable using the following command:

chmod +x ~/guake-start.sh

And add guake-start.sh to your startup applications instead of the regular Guake executable.


Plantronics Voyager Legend BT dongle recognized - but no sound?

Actually the answer goes more like: "user error; read the manual more carefully".

This Plantronics has a little button called "play" (directly at the beginning of the micro boom).
This button is used to enable/disable transfer of audio input/output between headset and dongle.

After I figured that ... no more problems.

EDIT: checking the manual again I found that it is somehow misleading:

a) the button you have to press is the "call" button (the one with the phone icon next to it in the manual drawings)

b) the "play" button ... is actually the mute button on the boom

(I assume that "call" enables/disables the audio stream from your computer; whereas "play" might really "pause"/"play" when you are using Windows and media player ...)


Why is Ubuntu finding no bootable medium?

Your settings are greyed out because your virtual machine is running.
Did you put in the installation file (.iso) in the sata-port?


Receiving obscure data after upgrade to 14.04

Dropbox may just be checking for updates and looking for any updated files. Not sure if this is because you have a lot of files or if 25MB is standard. You can try Wireshark to take a close look at the network traffic (not sure what you could expect to find though).

You can see what the most recently updated files are with the method answered here:
https://stackoverflow.com/questions/5566310/how-to-recursively-find-and-list-the-latest-modified-files-in-a-directory-with-s


You need to install the TopIcons extension: https://extensions.gnome.org/extension/495/topicons/


How to install Screenlets on Ubuntu 16.10?

Why another answer: With anwar's answer you will not get cool update while shubham arawkar's answer is for Ubuntu 16.04 not 16.10(OP's choice). So I'm providing a solution to take care of both the issues.

The Screenlets PPA provides numerous screenlets (desktop widgets), such as RSS readers, weather, clock, countdown, a Conky-like system information widget, folder view, calendars, sensors, and much more.

Install Screenlets in Ubuntu 16.10:

sudo add-apt-repository ppa:screenlets/ppa
sudo sed -i 's/yakkety/xenial/g' /etc/apt/sources.list.d/screenlets-ubuntu-ppa-yakkety.list
sudo apt update
sudo apt install screenlets screenlets-pack-all

Done now go to dash and type screenlets and choose whatever screenlets you want.

Some snaps:


You are assuming that Thunar and Brasero are in conflict in measuring the size of the data.
In fact, they are both right.
This has to do with the way that data is stored in blocks on a disk. If you have a file with 1 byte of content, it will still take up a whole block of space (generally 1024 bytes).  Similarly if you have a file with 1025 bytes of content, it will actually take up two blocks or 2048 bytes.
Different applications use different algorithms to estimate the size of data.
In the case of Brasero, you are getting this error because there truly is not enough space on the disk for the data you have asked it to burn. You will need to leave something out, or otherwise reduce the size of the data you want to write to CD.
FYI: an audio project will definitely be too large because MP3s would be converted to a raw format which takes up a lot more space. This is why audio CDs can only play ~80 min.


Converting to ogg via avconv - Unknown encoder 'libtheora' (ubuntu 16.04)

Ubuntu 16.04 Xenial Xerus LTS does indeed still have a package named libav-tools:

andrew@athens:~$ apt-cache policy libav-tools
libav-tools:
  Installed: 7:2.8.6-1ubuntu2
  Candidate: 7:2.8.6-1ubuntu2
  Version table:
 *** 7:2.8.6-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages
        100 /var/lib/dpkg/status

and thus still has avconv. However all of the executables in the libav-tools package are pointers to related FFmpeg executables:

andrew@athens:~$ ls -l /usr/bin/{avconv,avplay,avprobe}
lrwxrwxrwx 1 root root 6 Mar 15 06:32 /usr/bin/avconv -> ffmpeg
lrwxrwxrwx 1 root root 6 Mar 15 06:32 /usr/bin/avplay -> ffplay
lrwxrwxrwx 1 root root 7 Mar 15 06:32 /usr/bin/avprobe -> ffprobe
andrew@athens:~$

Now FFmpeg can be tested for libtheora encoding as follows, a test I have undertaken on my Xenial installation:

andrew@athens:~$ ffmpeg -encoders 2>/dev/null | grep theora
 V..... libtheora            libtheora Theora (codec theora)

So a stock, unmodified installation of FFmpeg (or the dummy libav-tools package) can successfully encode video using libtheora.

My best advice to you is to completely remove all copies of FFmpeg or libav-tools on your system, as well as totally remove FFmpeg PPAs for older versions of Ubuntu, and then simply run:

sudo apt-get install ffmpeg libavcodec-extra

And all will be well :)


Updated Ubuntu to 16.04 and now have text screen on boot

Run this command

sudo dpkg --configure -a
sudo apt-get install -f

To fix packages problem. then update

sudo apt update
sudo apt upgrade

If it didn't work check this:
Answer on: How do I continue configuration if apt-get was interrupted?


MySQL won't start after removing bind-address

In the list of related questions here on AskUbuntu, I noticed one titled "12.04 - MySql won't start by using service mysql start".

Reading this alerted me to the fact that MySQL can be stopped/started/restarted with:

perrin@LinuxServer1:~$ sudo service mysql stop

or

perrin@LinuxServer1:~$ sudo service mysql start

or

perrin@LinuxServer1:~$ sudo service mysql restart

These methods worked for me, even after commenting out the bind-address line in my.cnf, and I can now log into mysql again after starting/restarting it up.

It just bugs me that I don't know why the init.d method doesn't work. :(


QtWidget couldnt be configured for installation after running configure.py of PyQt5.5.1 source

The interesting part of the error message is /usr/bin/ld: cannot find -lGL, which means libgl was not found.

You're aware you can simply install PyQt5 via apt-get install python3-pyqt5? If you really have a reason to build it by hand, you can tell apt-get to install all build dependencies via apt-get build-dep python3-pyqt5.

This will also install libgl1/libgl1-mesa-glx which is the missing bit here.


How to reduce the load in the memory RAM

I'm not sure what utility this is a snapshot of, but analysing memory usage is tricky. For example, Linux will cache stuff in memory because... hey why not. So if I run:
find . -type f | xargs cat >/dev/null

When it's finished, you might find all the memory is "used" because it is caching your whole file system. However it isn't really used, because its caching stuff you'll never need again. So you tend to want to analyse not how much memory is used, but how hard your swap partition is getting hammered. If its not getting hit hard, then you may have plenty of memory. You could try disabling your swap. Does the server run fine without it? Maybe you have plenty of memory. I'd still enable swap though because it can get rid of rarely used things. As far as controlling swap, for the most part you can't control what's put there, the kernel does that for you. Which it generally does a good job of.


No, that is not a problem. Ubuntu, like Windows, has a boot manager and that boot manager is installed by default onto the first hard drive1. The image you show just suggests that Ubuntu's boot manager (GRUB) and Windows' are both installed on the same drive. It doesn't mean that the operating systems are on the same drive, only that the BIOS sees two boot managers there.

Unless you can no longer boot Windows, in which case this is a different problem, everything should be fine.

1OK, strictly speaking, in modern systems it is installed in the EFI partition which is usually in the first physical drive.


Large number of ssh failures in message log

Short answer, yes.

Long answer, yes, someone is attempting to login to your server.  You'll see many of these attempts from all around the world.  It's quite common and isn't necessarily a targeted attack.

There are a number of things to do that could prevent this from occurring.  The simplest is, if you don't need SSH from everyone around the world, block/firewall it.  If you want to keep access open, you should at least look to harden the service.  Actually, either way, if you tighten it up, you should still look to increase security.

This looks like a good resource to start with.  Your mileage may vary...

Top 20 OpenSSH Server Best Security Practices


Is there a way to access my current windows installation within a VM environment?

Yes.  You need to use the microsoft disk2vhd program to create a VHD copy of your hard drive.  You'll likely need a backup drive to put the exported copy on.  Before you copy your harddrive, delete all unecessary programs and files.  Empty your recycle bin and temporary internet files as well as defrag the harddrive.  If the computer is attached to a domain (even if it's a .local) disjoin it from the domain before capturing a copy.

Get disk2vhd here:
http://technet.microsoft.com/en-us/sysinternals/ee656415.aspx

Once you have an image of the HDD, you can create a VM with that drive as the "existing hard drive".  I once created a knowledge document on how to p2v a workstation, here's its text...

  Before beginning the P2V process you should:

  Defragment the Host to be virtualized.
  Remove any unnecessary programs.
  Delete temp files and anything else that isn't necessary.
  Unjoin the workstation from the Domain.

  When ready to initiate the P2V process, create the VHD copy of the harddrive:

  Determine where the VHD copy will be stored.  If you're exporting to the Hard Drive being copied, ensure the Drive has at least twice it's used space available as free space.
  Download the Disk2VHD application onto the workstation which will be virtualized.  You can find that executable attached to this KB in the attachments section as well as the Disk2VHD help file.
  Launch the Disk2VHD.exe file and agree to the TOS.
  Determine where the .vhd file will be saved to, and deselect any unnecessary drives.  By default, the tool will want to export all attached hard drives, inluding the external drive you're trying to export to (if present).
  Select the "create" button and allow the process to finish.  The time to completion depends on the size of the VHD file.
  If necessary, move the finished VHD file to it's final storage place.  The file is now ready to be used with VirtualBox.

  Using the VHD with VirtualBox:

  If you're creating a new VM then select "New" from the menu bar and follow the prompts until you reach the Virtual Hard Disk page.
  Change the radio button on the Virtual Hard Disk page to "Use existing hard disk" and select the folder icon which will let you navigate to where the VHD file is stored.  Select it, and click next.
  Continue with the prompts until the new VM is created.
  Depending on the system, special settings may be required in order to get the VM to boot.  For most XP VM's, "Enable IO APIC" must be checked for the VM to run.


How to avoid high CPU fan speed while running genymotion virtual device?

Easy: just slow down the emulator....  Open a terminal by pressing Ctrl+Alt+T and type:

apt-get install cpulimit

then, limit the amount of CPU cycles of genymotion.  Again in (the same) terminal type:

cpulimit --exe=genymotion --limit=xx

where xx is the % of CPU you're willing to give it.  (I would start with 50)

Now start genymotion normally, while keeping the terminal open.

If the fan is still too loud, click on the terminal, press Ctrl+C and then type the cpulimit command above again lowering xx until you have a comfortable fan speed


Recover User account in virtual machine (after trying to extend memory)

This is no attempt to rescue your broken installation (we don't know what went wrong) but to show you how to recover files from your HOME when the virtual OS won't boot.
Create a new virtual machine
You may want to recreate a running virtual machine anyway - so it is the best time to do that now. Please also create a new virtual disk (VDI) file for your new installation an make it large enough to not run out of space again. When creating a dynamically growing disk it will not use up more physical space than needed but it can grow up to the size we gave it on demand. So it is safe to create a large virtual drive (tak 50 or 100 GByte if your system allows this).
Bind the old virtual disk to your new virtual machine
If all is set up to your liking you may want to copy your personal files from the broken virtual machine. To do so you just add the old VDI-file that holds your broken Ubuntu:

You will see that you new Ubuntu is able to mount this drive with Nautilus. Then you can browse files and copy them over to your new machine. As long as you don't delete the old VDI you have all the time you need to do so.
When all is finished you can remove the old drive from the virtual machine.


Can't install 14.04 alongside Windows 10 (boot device not recognizable)

Prepare a Live boot USB or CD. Live Boot your computer.
Instead of Installing Ubuntu, Select Try Ubuntu.
When Ubuntu OS boots up and ready for use.
Go Terminal, Type the following commands.

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

Once installation is finished.
Type boot-repair.
You will get the window like this.

Click Recommended Repair. It will create all Boot Menu entries.
For more details,visit Boot Repair.


I get an error when trying to install any software or update my ubuntu system

There are a number of ways to clean up unused or obsolete kernels.

If all you have is the terminal have a look at this posting
How do I remove old kernel versions to clean up the boot menu?

Personally I use synaptic to ensure all my packages are upto date, you may want to look at it too after sorting out your boot partition.


Do I need to manually install AMD GPU driver updates on Ubuntu 20.04?

They'll be updated by sudo apt update && sudo apt upgrade, yes. You don't need to do anything else. They're actually part of the kernel (and therefore come shipped with every Linux distro), but apt handles new kernel releases nicely, so there's basically nothing extra to do. The only time you'll want to download them from the AMD website is if you need the Pro version for some reason, which is basically only if you want to use your card for OpenCL computing.
The other thing to bear in mind is the default Ubuntu kernel is often slightly behind the actual vanilla kernel, because Canonical adds a bunch of stuff that they need time to develop and test. If you ever have issues with graphics, it's worth installing the latest kernel to get the newest amdgpu drivers, just to see if that fixes things for you.


In the absence of clarification, at the request of Elder Geek...

  I've done a whereis on the file name to give the the following response:

/usr/bin/'file_name' /opt/'file_name'/bin/'file_name'

It sounds like you already installed it, and you should be able to launch it by typing

'file_name'

(replacing your unwieldy appellation 'file_name' with the actual name of the application). To see which of those three files is being launched, you can do

which 'file_name'

If nothing happens, and you get no output from which it's possible that you put those files there yourself as root, and they are being found by whereis even though they are not executable files.

If this is the case, and you want to move any of these files to your Downloads directory to do something with them, use the mv command, for example:

sudo mv /usr/bin/'file_name' ~/Downloads

If the application does launch when you type 'file_name' and it just doesn't have a launcher, then take a look at this question


Ubuntu 18.04 boot time is very slow (userspace taking a lot of time)

Are you using any kind of systems that enable 3D compositors to be used as primary display servers for example Wayland or something like that?

Because plymouth-quit-wait.service seems to take a lot of time. If that's the case, please try to disable Wayland and then give a try to print systemd-analyze blame results.

You can disable it from /etc/gdm3/custom.conf by removing the # from the beginning of this line #WaylandEnable=false.


right click select program to open the file

1) Right click the file in question, and click "Properties".

2) In the properties window, select the "Open with" tab.  Highlight the program you want to open those types of files with and select "Set as Default".

3) Now focus your file browser window, click the "Edit" menu, then "Preferences".

4) Go to the "Behavior" tab, and under the heading "Executable text files" select the option "Ask each time".  That way it won't default to one specific type of behavior with certain files, it will just ask.


Quick shortcut to dismiss notifications in Gnome 3?

Super+N to focus the currently displayed notification followed by Esc works for me.


Ubuntu 14.04 Live works perfect, but after installation nothing but the keyboard works?

Welcome to the Linux world. Sorry you met a little bump there. Not sure what went wrong, but try these first before attempting a reinstall:

Plug your laptop to a wired internet connection and boot up. Once
booted, press "Ctrl+Alt+F1". If your built-in keyboard doesn't work,
try using an external keyboard.
Login into the system by typing the username and password you set during installation.
Execute the following in sequence: sudo apt-get update(this will update your software repository from the net and check for updates); then sudo apt-get upgrade (this will perform the update if any); and just in case, do sudo apt-get dist-upgrade too (similar as before, but just as an additional measure in case previous update has conflicting packages this should resolve it automatically).
Finally do a reboot by executing sudo reboot.

The above are basic maintenance procedure performed through terminal, if interested you can read more on this page: https://help.ubuntu.com/community/AptGet/Howto#Maintenance_commands

Best of luck!


Tiptoi Ravensburger - How to add new audio files?

How to add new audio files in Ubuntu Linux:

Download the free audio files manually from the page of the individual product, click on "Audiodatei manuell herunterladen", e.g. from Weltatlas book, and another right click on the "Klicken Sie mit der rechten Maustaste auf folgenden Link: Audiodatei zu ..." from the opened overlayed window and with "save links as" to your hard drive or directly to the connected Tiptoi (see 3.).
Connect the Tiptoi with the USB cable, turn it on. It will appear as new drive "tiptoi" in your file browser (e.g. Nautilus, Nemo, Thunar).
Transfer the downloaded audio files from your harddrive to your tiptoi drive without changing the name (e.g. in your file browser).
Disconnect the Tiptoi.
Restart the Tiptoi.
Instructions in German.


FIX for Hulu using Firefox v49.0 on Ubuntu 16.04 LTS (64-bit):

(For Netflix, see further down below.)

Install Flash 11.2 (use the APT download method via Adobe).
Install Zombie HAL. Restart your browser.
In Firefox go to Edit -> Preferences.
Click on the Content option.
Ensure that "Play DRM content" is enabled.

Another workaround is to use Google's Chrome browser.

Netflix: After you do the steps above, you can also stream Netflix on Ubuntu using Firefox, but Netflix is annoying because they don't like supporting Firefox on Linux and because they use Microsoft's Silverlight technology (which is another proprietary competitor to Flash). A workaround is to do the following:

Install Pipelight for Ubuntu, then restart Firefox.
Install the "User Agent Overrider" add-on (I'm using version 0.4.1 by muzuiget). You do this by clicking on Tools -> Add-ons and searching for it there in Firefox.
Once you have the User-Agent add-on installed, you click on its button and you can choose one of the Windows identities. This spoofs to Netflix that you are on a Windows computer when you are actually using Ubuntu. Though, when I'm done viewing Netflix, I'll disable this spoofing feature by clicking on the "Default" identity as I want websites to know I use Linux. This way, I help to encourage more companies to support us natively. (Or you can leave the spoofing feature on if you're helping people to convert to Linux. So it seems to them that there are no "weird bugs" with using Linux.)

Oh, also, if Netflix throws you to an error page saying that you need Silverlight installed, you need to make sure that you enable the fake User-Agent spoofing BEFORE you visit Netflix not once you arrived at their site.


Enabling port 80 with iptables works but does not work with ufw

Actually, I kept googling, I found this: Opening port 80 on Oracle Cloud Infrastructure Compute node - Stack Overflow.
From Jason's answer:

I figured it out. The connectivity issue was due to Oracle's default
use of iptables on all Oracle-provided images. Literally the very
first thing I did when spinning up this instance was check ufw,
presuming there were a few firewall restrictions in place. The ufw
status was inactive, so I concluded the firewall was locally wide
open. Because to my understanding both ufw and iptables look at the
netfilter kernel firewall, and because ufw is the de facto (standard?)
firewall solution on Ubuntu, I've no idea why they concluded it made
sense to use iptables in this fashion. Maybe just to standardize
across all images?
I learned about the rules by running:
$ sudo iptables -L

Then I saved the rules to a file so I could add the relevant ones back
later:
$ sudo iptables-save > ~/iptables-rules

Then I ran these rules to effectively disable iptables by allowing all
traffic through:
$ iptables -P INPUT ACCEPT
$ iptables -P OUTPUT ACCEPT
$ iptables -P FORWARD ACCEPT
$ iptables -F

To clear all iptables rules at once, run this command:
$ iptables --flush

Anyway, hope this helps somebody else out because documentation on the
topic is rather sparse.


Does 'Ubuntu One Mobile' support Ogg Vorbis?

We've just released ogg support on devices that support it (Android, Ubuntu).

There are 2 things that held back ogg support in our first release:

iPhone does not support ogg (we would need to build per-os music libraries, which added a lot of complexity and time)
Battery life for ogg was pretty bad, as it wasn't using hardware to decode the stream. we need to do more research in this area

We also surveyed mimetypes of our existing users, and only a very small percentage of people had ogg files  (I do understand the chicken-and-egg situation).


How do you hibernate/suspend Ubuntu like Windows or both at the same time?

Hibernating is not supported with the wubi installation.

http://wubi.sourceforge.net/faq.php

You'll have to migrate to a dedicated partition or reinstall properly to be able to hibernate.


sudo apt-get autoremove

This command removes the unnecessary packages

sudo apt-get autoclean

This is same as a clean command

you can also use Ubuntu tweak program and clean using janitor option


It's coming to LibreOffice now. Expect it in v3.5.


Pasting Clipboard Contents into Terminal

Middle-click, Shift+Ins, or Shift+Ctrl+V.


The kernel is updated because of an evolving dependency from kernel meta-packages. For example, my LTS-HWE kernel is updated because I have  linux-headers-generic-lts-utopic. This depends on the latest version of the Utopic kernel (rebuilt for Trusty) and when a new version comes out, the meta-package is updated to depend on it and therefore Ubuntu updates to it.

So the solution is simple: remove or pin the meta-package.

Finding the right package is a little tougher. As you're using a non-LTS release, you can probably just nuke the linux-{image,headers}-generic packages. You can check what they depend on (remember I'm on 14.04 - your output will differ):

$ apt-cache depends linux-{image,headers}-generic
linux-image-generic
  Depends: linux-image-3.13.0-55-generic
  Depends: linux-image-extra-3.13.0-55-generic
  Depends: linux-firmware
  Conflicts: linux-image-generic:i386
linux-headers-generic
  Depends: linux-headers-3.13.0-55-generic
  Conflicts: linux-headers-generic:i386

But if you're still seeing potential upgrades after an apt update, you might have other meta-packages depending on new kernels. Like my HWE one, for example. If you see this, you can do a reverse-depends search

$ apt-cache rdepends linux-image-3.16.0-41-generic
linux-image-3.16.0-41-generic
Reverse Depends:
  linux-image-3.16.0-41-generic:i386
  linux-signed-image-3.16.0-41-generic
  linux-image-virtual-lts-utopic
  linux-image-generic-lts-utopic
  linux-image-extra-3.16.0-41-generic

And root through those until you find the package you need to kill. In my case that would be linux-image-generic-lts-utopic.

You might find that the system tries to clean up after itself the next time you apt-get autoremove, and delete the kernels that aren't depended on now. That would just leave you with your manually installed 4.x kernel. If you want to hold onto the current versions of the kernel, just run a

sudo apt-get install linux-image-3.16.0-41-generic

And Apt will mark them as "manually installed". Obviously, replace the package names with the ones you want to keep.


Installing ubuntu in free space of extended partition: "You have not selected any partitions for use as swap space"

The installer is warning you that you have not created or configured a swap partition. On low memory systems, having a swap partition can increase performance by making more physical memory available, because the system can write out allocated but unused memory pages to disk.

If you have a large amount of physical memory (>8GB) then you probably do not need a swap space for a desktop system. If you have low memory (<2GB) then you might want to enable swap.

If you do decide to enable swap, you will need to create an extra partition of the appropriate size, and in the "Use as" drop down select "Swap".

Also see:

Ubuntu Swap FAQ
Why is swap being used even though I have plenty of free RAM?
I have 16GB RAM. Do I need 32GB swap?
Do we still need swap partitions on desktop?


Making nautilus/cp/scp/rsync "progress" cache-aware

I use ubuntu 11.10 64-bit as well. You can use lsof command to poll and see if the cache has been written. This command lists which processes/commands keep files open. I'm not sure if it will work for usb stick cache.

I tested with rsync a ~2gb file transfer
usb stick: Bus 002 Device 004: ID 8564:1000 (Transcend Jetflash 8gb retractable, one FAT32 partition)
mount command shows:

/dev/sdd1 on /media/19D1-8868 type vfat (rw,nosuid,nodev,uid=1001,gid=1001,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)

Command used:

rsync -Pr ./testfile /media/19D1-8868/test/

"-P" shows progress.

lsof while transferring:

$ lsof +f -- /media/19D1-8868/
COMMAND   PID   USER   FD   TYPE DEVICE  SIZE/OFF NODE NAME
rsync   23132 testme  cwd    DIR   8,49      4096   33 /media/19D1-8868/test
rsync   23133 testme  cwd    DIR   8,49      4096   33 /media/19D1-8868/test
rsync   23133 testme    1u   REG   8,49 666271744  350 /media/19D1-8868/test/.testfile.2Ejgei

lsof when done:

$ lsof +f -- /media/19D1-8868/

However, I cannot reproduce what you say with rsync. I could almost instantly (2-3 seconds) remove the usb using "Safely remove" option.

Also, when I tried transferring with nautilus, the transfer got stuck to "2 seconds left", until it transferred the whole file, probably including cache because the usb led light stopped blinking and I could again almost instantly safely remove the stick.

What does mount show in your case?
Did you try to boot from a live cd and test it there too?
Did you try to completely format the usb stick with gparted and create a new fat32 partition?


Over 4GB Persistence on LiveUSB Boot drive

Use the application Universal USB Installer. It is really easy and straight forward for usage. You can set the persistence to a value even higher than 4GB. When you have Ubuntu (or whatever linux distro) installed on it, just simply re-mount the drive (plug it out and plug it in again).

Then copy what ever games you want to the drive. You will be able to run the games from the usb drive and it will still be bootable.


Install Ubuntu 18.10 in Asus Aptio Notebook with Preinstalled Windows 8.1

Looks like you need to install a 32-bit version*. The T100TA has a 64-bit processor, but is still restricted to 32-bit for its OS because of the lack of 64-bit UEFI and a legacy boot option.

*If you'd really like to, though, it is possible to install a 64-bit Linux distro with 32-bit UEFI, but it's a little more work; for example, there's the multiarch Debian build here. Instructions on its installation here. Make sure "launch CSM" is enabled in your BIOS, by the way.


How can I create 3D molecule models like the link given in the body?

I prefer VMD (link). You'll have to complete some license information in order to download, but its graphical user interface is easy to use and you have the most control over all the atoms and their properties.

You'll need to load the coordinates of the molecule and then change the representation.

(If you don't want to go through the entire download/install process, consider Rasmol - link)


Permission denied when auto mount a network drive

I resolved this using the following:

Terminal:

sudo gedit /etc/fstab

Then adding the following:

  //192.168.0.2/Music /home/pst007x/Music/ServerMusic cifs
  _netdev,comment=systemd.automount,auto,owner,credentials=/home/pst007x/.smbcredential,uid=1000,gid=1000,iocharset=utf8,sec=ntlm
  0 0


how to make a .desktop file pointing to "the newest file in a specific folder"?

You have to use some scripting inside the Exec line.
Something like shown below:
Exec=sh -c "xdg-open $(ls -t1 ~/your-dir/* | head -n1)"

Notes:

The sh -c is used to allow nested command execution
The xdg-open is used to open file using default application
The ls -t1 ~/your-dir/* lists all files by in the ~/your-dir directory (change to correct path) by time and place them in single column
The head -n1 extracts first item from ls's output by using piping with |


Lost all the directories with sudo rm -rf ~/.local/share/Trash/* in ubuntu 16

The command sudo rm -rf ~/.local/share/Trash/* will only remove the contents of your local Trash directory.  Additionally, for future reference, deleting your own user trash does not require sudo privileges.

Your $HOME files structure may indeed be deleted as you say, but the command you posted wouldn't do that.


Try running unity --reset from a terminal.

How do I reset my Unity configuration?


Why does Microsoft Excel change the characters that I copy into it?

This is an encoding problem anyway it may be hard to solve this issue for you. But you can use Libreoffice Calc it looks like Microsoft office excel and also you can save in Microsoft office formats(xls-xlsx)


Why does penguin.local point to an odd IP, when it is meant to be local?

5.16.138.166 will be the IP address assigned to one of your local network interfaces.

Also, Not sure why your network is using that IP subnet as it doesn't appear to be assigned for use as a LAN subnet and in fact appears to be assigned for use on the internet.

daniel@daniel-desktop:~$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr bc:5f:f4:0f:21:d6
          inet addr:192.168.0.97  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::be5f:f4ff:fe0f:21d6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:911590 errors:0 dropped:0 overruns:0 frame:0
          TX packets:426938 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1212763085 (1.2 GB)  TX bytes:53171838 (53.1 MB)
          Interrupt:53 Base address:0xa000

daniel@daniel-desktop:~$ ping daniel-desktop.local
PING daniel-desktop.local (192.168.0.97) 56(84) bytes of data.
64 bytes from daniel-desktop.local (192.168.0.97): icmp_req=1 ttl=64 time=0.024 ms


I have a Mobility Radeon HD 5470 installed in my secondary notebook and Ubuntu 12.04 LTS works without any qualms. This might be anecdotal evidence at best but I personally don't see any reason why Kubuntu wouldn't run on your graphics card as well.

I recommend installing the proprietary drivers (FGLRX), though, as they significantly improved the battery life on my machine.


Application for trimming a video mp4 of ubuntu 16.04 LTS

You need to install ffmpeg.

To install the ffmpeg sudo apt-get install ffmpeg to copy specific short durationg from the video file.

Sample :-

ffmpeg -i original.mp4 -ss 00:03:20 -c copy -t 00:00:30 output.mp4

-i  -->Input file. The file name of the original video clip.

-ss -->Copy the new video from the original video started after
       3 minute and 20 seconds.

-t  -->Duration of the new video clip,(ex:- 30 seconds.)


First, try to enable the service with the following command:

sudo systemctl enable xboxdrv.service

and then try starting it with:

sudo systemctl start xboxdrv.service

If the service is not found, then the service needs to be created.

Make a file called "xboxdrv.service" in the /etc/systemd/system and copy/paste the following in it:

[Unit]
Description=Xbox controller driver daemon

[Service]
Type=simple
User=root
PIDFile=/var/run/xboxdrv.pid
ExecStartPre=/usr/share/ubuntu-xboxdrv/xboxdrv-pre
EnvironmentFile=/usr/share/ubuntu-xboxdrv/uxvars
ExecStart=/usr/bin/xboxdrv --daemon --silent --pid-file /var/run/xboxdrv.pid --dbus disabled $XBOXDRV_OPTIONS $PAD_OPTIONS $CONTROLLER0_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER1_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER2_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER3_OPTIONS

[Install]
WantedBy=multi-user.target

Then enable the service:
sudo systemctl enable xboxdrv.service

Followed by starting the service:
sudo systemctl start xboxdrv.service

Make sure the Xbox controller is connected when you start the service.


boot hangs at "Started GNOME Display Manager" after updating to 18.04 (kernel 4.15.0-66)

Try the following (This was the solution for me):

Disable Secure boot (BIOS setting)
In the GRUB menu, select the first Ubuntu option (don't press enter)
Press e
Find the line that starts with linux and after quiet splash add: modprobe.blacklist=nouveau
Press F10 to start.

If this solves the problem, you can make the change permanent by editing /etc/default/grub:

In a terminal run sudo nano /etc/default/grub

Then add the following line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash modprobe.blacklist=nouveau"

Ctrl+o to save and Ctrl+x to exit nano

Then run sudo update-grub

Solution adapted from: https://gist.github.com/mari-linhares/cef4cb3440408e44963d1447a7db5ae0


Trouble connecting to XFINITY wifi, using Kubuntu 20.04

Buy an Apple or 2nd device (i.e. walmart TV) for use as your TV/Streaming on Netflix and Amazon or Xfinity Stream. Comcast hotspot compatible with Apple or other streaming device for tv/movies/music downloads in seconds.
For more private matters, use your Linux/Ubuntu plugged in Ethernet wired directly into router. You can use both devices (i.e. Linux/Ubuntu) and Apple or Walmart TV at the same time.
Ubuntu will use Ethernet wired for enhanced security. Apple or Walmart TV will use the wireless hotspot.
And you keep your business/family private matters separate from your entertainment needs.
(This is one workaround that may or may not meet your requirements, it is just a suggestion as a possibility for you to consider to avoid lot of headaches, but there are of course a lot of ways to get the job done).


Increase in laptop temperature on dell 3521

Most of times it could be about your graphic card gets warm and because your graphic card is integrated into your cpu the system thinks that cpu gets warm

install mesa-utils and mesa-utils-extras and reboot  , for installing use the following command-

sudo apt-get install mesa-utils mesa-utils-extra

it will work for Intel Graphic Cards

If you are having NVIDIA graphic card then use bumblebee because mesa and NVIDIA will conflict with each other for sure.. to install bumblebee use-

sudo add-apt-repository ppa:bumblebee/testing

then for 12.04 and 13.04 use-

sudo apt-get install bumblebee bumblebee-nvidia virtualgl linux-headers-generic

otherwise  for 13.10 use-

sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generi

( for newcomes: the $ before this command is just an indicator that tells this command should be entered in a standard user command shell. if you want to use it just press <ctrl>+<alt>+<t> and copy-paste without this dollar mark )

If that doesnt work, try to

Cleaning your laptop- As might be its because of just that, stopping fan from running  properly.
Update bios - After updating it can perform good operations like increasing compatibility .That solved my issue.
Update Kernel

hope the very first suggestion will resolve your problem.


Dual boot Windows 8 and Ubuntu UEFI! Can't load windows 8 anymore

Try re-booting with the live-CD (USB) from your installed Ubuntu distro.
Don't change the partition table that exists on your harddisk. Don't wipe it out!!! Keep it.
Reinstall Ubuntu - use exactly the same partitions that you used the first time to install Ubuntu in.
During this install choose to install the GRUBbootloader in the Masterbootrecord of your harddisk. This will overwrite the Windows bootloader.
Reboot. Grub should be able to see Windows.


How to type Italian characters from US keyboard with Italian characters

You need to use "level 3 select key" to access those characters. Usually the AltGr (aka right Alt) key is the level 3 select key. For the fourth character use Shift+AltGr.


The arc4random function is a BSD utility that is not part of the standard C library on Ubuntu. To use it, I think that you will need to install the libbsd-dev package, and then include the BSD version of the header explicitly using

#include <bsd/stdlib.h>

You will then need to link your executable with the libbsd library by adding -lbsd to your compiler command line, for example

g++ -o prog -Wall prog.cpp -lbsd


Can I configure networkmanager to set up a VPN (vpnc) connection that uses "IPSec obfuscated secret"?

According to the man page: http://manpages.ubuntu.com/manpages/trusty/man8/vpnc.8.html
You can use obfuscated secrets in the conf

  Scrambled passwords from the Cisco configuration profiles can be
                used with IPSec obfuscated secret and Xauth obfuscated password.

You could also try importing a pfc file (with the obfuscated passphrase in) into Network manager.


Makefile is a configuration file for make, not a separate command. The canonical build & install procedure is:

./configure
make
make install   # usually: sudo make install

Most projects describe their installation process in detail in text files README, INSTALL or similar.

However, this one does not have any configure script and has a ready Makefile instead. It does not contain INSTALL section, so the third command is also not applicable.

So you only have to run:

make

It is documented in the README file in the src directory. Funny is that it’s written in Czech (which is by the way my native language).

Fixing undefined reference errors

There is a problem in the provided Makefile that can be fixed using the following patch (based on a Stack Overflow comment):

diff --git a/src/Makefile b/src/Makefile
index 367dcc4..dda5fb3 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -44,7 +44,7 @@ profile_compile: all

 $(TARGET): $(OBJECTS)
-       $(LINK) $(LINKFLAGS) $(LIBS) $(OFLAG) $(TARGET) $(OBJECTS)
+       $(LINK) $(LINKFLAGS) $(OFLAG) $(TARGET) $(OBJECTS) $(LIBS)

 #####################################
 #other rules


Unable to install php 5.6 in ubuntu 16.10

As per the answer given by @Zanna :

16.10 is now out of support, so you'll need to install 17.04 or 16.04 (or 14.04). Package management will be broken on unsupported releases, so trying to install anything is likely to be problematic.

In 17.04, it works perfectly fine..!!


Create Wifi Ad-hoc to connect Ubuntu and windows 8.1

Ok, I am a complete noob, but here is something that you can at least try...
I am using 14.04 LTS, so it might be a slightly different process for you. Note: you must either be connected to Ethernet or have a usb wifi adapter for this to work.

First, click on the top right where all of your wifi networks are listed. Then, near the bottom of that list click "Edit wifi networks." This will open a page with the networks that you have most recently used on the front. Click the add button on the top right, and when it asks you for the connection type, make sure to click "wifi." Then, set the connection name and SSID to whatever you want, provided that the SSID is one word. Also, change the mode from Infrastructure to Ad Hoc. If you want your hotspot to be password protected, then move over to the security tab and select WEP 128-bit passphrase from the dropdown list. Lastly, move over to the IPv4 settings and select "shared to other computers" near the bottom of the dropdown list. Click save on the bottom right.

Next, click on the wifi list again from the top right of your screen. Click on add a new wifi network near the bottom. On the dropdown menu select the name of whatever you named your hotspot. It will autofill all of the information. Then click "Ok." Now, your computer will automatically connect to the hotspot, and it should be visible to those relatively near you. However, it won't actually work yet because your computer isn't actually connected to your router. This is why you need to plug into Ethernet or plug in a separate USB wifi adapter and connect to our home network from there. Then, it should work. Good Luck!


I personally vote for Playonlinux. Playonlinux is a third party wine wrapper and has the necessary script for AOE2.

You can install Playonlinux by

sudo apt-get install playonlinux

then in Playonlinux install menu choose Age of Empires 2 and prepare your disk with AOE2, then follow the install steps on the screen.


How to force Ubuntu to detect external display?

Actually, you don't need to log out. Simply going to a VC with ctrl-alt-F1, restarting x with sudo service sddm restart and
and going back to your graphical interface with ctrl-alt-F7 (or F2) should do it.

This way, you don't lose all your windows...


How do I enable dual boot after Windows 7 Reinstall with no cd?

When you reinstalled Windows, it took over your MBR with it's own boot loader.  Your Ubuntu is still fine you just need to restore GRUB so you can dual boot.  You want to use a tool called boot-repair.

EDIT:

With no optical drive, your best bet is to boot a live distro via USB.  For this, download an Ubuntu iso and then flash it to the USB as a bootable image using Unetbootin.  This is my preference when rescuing systems using a "live CD."  It allows you to get the same effect using a disc or requiring an optical drive.


graphics card error on dual boot with windows 7

Paste into a terminal

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-319

press Enter.


How could one prevent named making recursive queries?

According to dig manual:

  +[no]trace - Toggle tracing of the delegation path from the root name servers for the name being looked up. Tracing is disabled by default.
  When tracing is enabled, dig makes iterative queries to resolve the
  name being looked up. It will follow referrals from the root servers,
  showing the answer from each server that was used to resolve the
  lookup.

So to check if your server supports recursive queries or not, just run:

#dig @192.168.12.90 wikipedia.org

and see if the RA(Recursion Available) bit is set in the response header.

e.g. for Google DNS server

#dig @8.8.8.8 wikipedia.org
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1


Does partitions need to be physically neighbor to combined

Yes, once you delete sda2, you have two options for expanding partitions into the space it leaves behind

sda3 (extended) then sda5 (ext4 within extended)

I assume this is what you want.

sda1 (ext4)

See How to resize partitions? for how


Ubuntu 13.10 won't update. apt update and apt upgrade fail

Try downloading https://packages.debian.org/wheezy/amd64/libreadline6-dbg/download (assuming you're on an x64 system) and installing it using

sudo dpkg -i [filename]

This is the version of libreadline6 available on the official debian repositories.

As for the problem with the bad key, I don't think that's actually a problem - just something to be aware of, that that particular ppa isn't working properly.


Apache Directory Studio cgi how to make it run on lubuntu?

ok after a while, and by using the IRC #apache. I couldn't set up this. so I followed the steps to install the plugin on Eclipse: http://directory.apache.org/studio/installation-in-eclipse.html

This works for me.

But I had to change the java, like @fossfreedom told me, that was a big step forward.


Firefox will still be the default Web Browser in 11.10. While it was proposed that Chrome or Chromium would replace it, the end decision was that Firefox would remain as default in 11.10 when it was discussed (or rather set to discuss, but then the discussion was canceled, automatically keeping things the same) at the Ubuntu Developer Summit.

Also it was set to be Chromium since it is fully open source and Google Chrome has some proprietary code in it.


How to Install Ubuntu 14.04 on Specific Partition?

I have Total 5 Partition In Which 2 Are Primary And 3 Are Logical.

Therefore, I Deleted My Second Primary Partition And Create Logical Instead. Now, There is only 1 Primary and 4 Logical Partitions.

Now, Ubuntu 14.04 Installation Shows My Current Partition Table. And Problem is Solved!
(Now It Also Detects Windows XP).

This Answer Should Helpful To Others Which are Facing Similar Problem.


Errors while installing VMWare Player Tools

Today I changed GNOME to GNOME on Xorg, and when I tried to install VMWare tools it asked me for authentication and then that were installed successfully. Earlier it never asked me for authentication and showed the above mentioned error. I don't know the explanation but love to learn about that.


Did you add the PPA?

Try adding this ppa to the list: sudo add-apt-repository ppa:atareao/lenses and after adding try installing the lens


Failure on installing htop on the server

The htop package is in the repository 'universe'. The following commands should work to install it.

sudo add-apt-repository universe

sudo apt-get update
sudo apt-get install htop

or as root

add-apt-repository universe

apt-get update
apt-get install htop


Cannot delete apt-fast for a clean install

I think, apt-fast is running in background thus locking the process. You have two options:

Restart your PC and try again. (This is the best).
Or Delete the /var/cache/debconf/config.dat file using the command

 sudo rm /var/cache/debconf/config.dat

I am not going to recommend this method, because it may cause problem


Usually 802.1q tagging is not needed for network clients, just for switches and inter switch/router/firewall configurations, so this is not something enabled by default in the Linux world. But of course you can setup a Linux server as a firewall or to do routing for example so in these cases you want to keep tagged packets so the switches know where to send the traffic coming out of your Linux server.

Ubuntu needs a device and drivers that are vlan, 802.1q aware.
You need to install the userspace tool vlan to be able to enable the configuration that your interface(s).

sudo apt-get install vlan

You then need to load the module:

sudo modprobe 8021q

You then need to add your physical interface to a vlan interface (which will create a new sub interface to the vlan):

sudo vconfig add eth1 10

Then finally create an ip address for the sub interface:

sudo ip addr add 10.0.0.1/24 dev eth1.10

If you want to make this permanent:

Add the module to the kernel on boot:

sudo su -c 'echo "8021q" >> /etc/modules'

Then create a stanza in /etc/networking/interfaces:

auto eth1.10
iface eth1.10 inet static
    address 10.0.0.1
    netmask 255.255.255.0
    vlan-raw-device eth1

https://wiki.ubuntu.com/vlan


docker container not able to write on host machine

This was because the container (pyrun) that I was using was not optimized to handle large files. When I used the default python image, it worked.

docker run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp python:3 python convert.py


Disk partition failed when trying to install in dual boot

You need a newer version of e2fsck because of the special needs of your disk configuration. The fix is to use Ubuntu 16.10 Live DVD/USB, or newer.


BCM4313 Bluetooth not working on 64-bit Oneiric (wireless does)

I upgraded to 12.04 beta and after patching and installing wl driver (see http://www.mindwerks.net/2011/11/wireless-bcm4312-3-2-kernel for the patch), now both bluetooth and wireless work great!


Adjusting resolution for individual Wine programs

You could try a way i was searching for when i wanted to use different programs an the same time or even the same program in multiple windows:

Lets assume you have World of Warcraft installed in /media/fun/wow
Lets also assume you have Left 4 Dead 2 installed in /media/fun/l4d2
Lets last assume you installed yesterday Ventrillo and it went to .wine in your home folder.

Do the following if you want to have them all open at the same time

FOR WOW:

export WINEPREFIX='/media/fun/wow'
wine --prefix '/media/fun/wow'
wine explorer /desktop=WOW,1024x768 "/media/fun/wow/Wow.exe" -opengl -console

FOR LEFT 4 DEAD 2:

export WINEPREFIX='/media/fun/l4d2'
wine --prefix '/media/fun/l4d2'
wine explorer /desktop=L4D2,1024x768 "/media/fun/l4d2/left4dead2.exe"

LAST VENTRILLO

Just run it from the wine menu. Applications>Wine>Programs...

You will have all 3 open and visibly active. Here is the trick:

You EXPORT the wine configuration to the games folders using the export WINEPREFIX
You them run the wine --prefix so it makes the new wine configuration in that directory.
Then run the game in its own wine configuration.

The wine explorer options used above are (In the case of WOW):

wine explorer - Opens the explorer

/desktop=X,Y - It creates a virtual desktop where X is the name of the desktop and Y is the resolution. For example WOW,1024x768

" " - After the variables for /desktop the stuff inside the double quotes is the executable. You do not need to have it inside quotes but just in case you have spaces you will need them.

-opengl -console - This are only parameters that WOW uses. You can put the parameters for a game after all has been typed as you can see in the above example for wow.

This took me almost a whole year to find and use since sometimes users wanted 2 or 3 opened programs at the same time. And since i teach free software i had to really dig into this.

After doing the above you can just create a LAUNCHER in the desktop pointing at the executable with the wine explorer /desktop line.

Other tips and tricks are:

Using Regedit

Just type regedit in the terminal. It will open the wine regedit version for you to edit anything related to the registry.

Unistall App

Just type wine uninstaller in the terminal. It will open an app similar to the Add & Remove of Windows.

Hope it helps anybody.

 For more information see How to install and configure Wine?


ubuntu 14.04 realtek rtl8812ae scans but can't connect

According to a German forum thread it may help to update the kernel to at least v3.14. Since Utopic's kernel is based on v3.16, you can simply install that (just the newer kernel, not all of Utopic)

sudo apt-get install linux-generic-lts-utopic

and reboot to the new kernel.


Ubuntu installer seems to have broken my chipset raid array

You encountered this issue because your RAID chipset is only a fake RAID. A fake RAID only takes care to create the RAID array (usual from the BIOS) then a driver enables the RAID features over the operation system which is mostly a software RAID.

When installing Ubuntu, it's possible that you erased the hard drives signatures and then break the RAID array done by your BIOS. Linux generally doesn't support very well fake RAID feature.

I haven't any process to propose for your data recovering, you may try to have a look in your BIOS if you can add the drive back to the array without wipe them, but this implies to add them in the same order than previously. If you have no backup of your files, it's probably a bad idea of doing this before you know what you are doing.


Administrator user session only shows a terminal

It took me a couple of days to notice that. on the Login screen, underneath the gear in the upper right corner of the password prompt window, "Recovery Session" was selected. "Ubuntu" or "Ubuntu 2D" are probably what you want, if you have the same problem I did.


Does anybody know if other distros are capable of overwriting existing OS's?

As far as I know, they all happily reformat the disk as part of the installation if you tell them to. If you are experimenting, you might want to partition the disk into, say, 10Gb partitions and install alternative distros on different partitions.


The line FATAL 19:39:59.009 ~ Permission denied indicates the directory wasn't created, probably because it didn't have permission.

So run the command with sudo

sudo sproutcore gen statechart_app TestApp


How can I know which is the source of an specific standard shared libraries?

It depends on the concrete library you're looking for.

As an example, let's take a look at /usr/lib/liba52-0.7.4.so (this was simply the first file in my /usr/lib directory).

First, let's find out what package the file belongs to:

$ dpkg -S /usr/lib/liba52-0.7.4.so
liba52-0.7.4: /usr/lib/liba52-0.7.4.so

So now we know that the package name is liba52-0.7.4. To download the source code, use

$ apt-get source liba52-0.7.4

Note: no need to use sudo. The latter command will create a directory a52dec-0.7.4/ in the working directory. This contains the source code.


What Programming Language Would Be Best For Ubuntu Programming?

@ShockWave: I would say python, via quickly http://developer.ubuntu.com/resources/tools/quickly/. Ubuntu provides some pretty neat tools to get you started. c++, via qtCreator, is also a good choice.


Authentication Problem on first Loging attempt 18.04

I had this issue on Ubuntu 18.04 too. I solved it by uncommenting WaylandEnable=false in /etc/gdm3/custom.conf (forcing GDM to run under X11).


cant get samba share to work on ubuntu server vm

Try adding [global] section parameters and guest only = yes, also remove public = yes and available = yes as follows:

[global]
        security = user
        encrypt passwords = true
        map to guest = bad user
        guest account = nobody

[Plex]
        comment = plexdir
        path = /var/plx
        writeable = yes
        browsable = yes
        guest ok = yes
        guest only = yes
        read only = no
        create mask = 0755
        directory mask = 0755

Then connect as user nobody, guest or any user not existing on the target machine.

Additionally, if you have more than one network or network card, you have to let samba know explicitly where to work by adding this lines to [global] :

interfaces = 127.0.0.1, 192.168.X.XXX/24
bind interfaces only = yes

substituting 192.168.X.XXX/24 as needed.

Also be sure you don't have any of this lines, which forces PAM user authentication:

obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u

https://help.ubuntu.com/community/Samba/SambaServerGuide


Extract line beginning with a specific pattern in sed

egrep can get multiple lines from a file.  Using a pipe | as a separator you can pull as many different criteria as you want.  egrep is the equivalent of grep -E.  egrep is a script found in the /bin folder with the contents pointing to exec grep -E "$@".

Example:

egrep "IDno=|Type=Student" inputfile

or

grep -E "IDno=|Type=Student" inputfile

Should output:

IDno="1"
Type=Student
IDno="2"

Hope this helps!


Possible to use multiple ports on Dell XPS 8940 for NVIDIA GeForce GTX 1660 Ti output to multiple (four) monitors?

(Answering my own question, mainly for future references and might hope that could help somebody else too)
Looks like the three connectors work to attach three monitors.
However the NVIDIA Geforce GTX 1660 Ti has a "fake" USB-C controller which I can't load:
[    6.861728] nvidia-gpu 0000:02:00.3: i2c timeout error e0000000
[    6.861738] ucsi_ccg 0-0008: i2c_transfer failed -110
[    6.861742] ucsi_ccg 0-0008: ucsi_ccg_init failed - -110

This is independent on the usage of either the nouveau driver or proprietary NVIDIA driver (460 tested proprietary) provided on Ubuntu 20.04.2 LTS.
DVI-D, HDMI and DP can be driven simultaneously with Xorg.
(Depending on your mainboard and CPU combination you might have an additional DP and HDMI output which is attached to the integrated GPU, in my case Intel UHD 630)
Stephan


Use Firefox Windows profile in Firefox Ubuntu installation

Assuming that your Windows partition is mounted as /media and that your Windows username is userName, first copy the (randomly named) old profile directory to your Ubuntu account:

cp -r /media/Users/userName/AppData/Roaming/Mozilla/Firefox/*.default ~/.mozilla/firefox/win7profile

Then quit Firefox and edit the ~/.mozilla/firefox/profiles.ini file, changing StartWithLastProfile=1 to StartWithLastProfile=0 and adding the following to the end:

[Profile1]
Name=win7profile
IsRelative=1
Path=win7profile

Restart Firefox. It should then allow you to select which profile you want to use.


try this:

    sudo apt-get install usb-modeswitch

These sticks come with a ZeroCD setup. When you first plug it it, you only see it as a pendrive for windows drivers. But the kernel already has the drivers, but not the information, that it needs a switch. This package solves the problem.


VirtualBox has a command line utility called VBoxManage that can be used to control virtual machines (VMs). You can read the documentation here: Chapter 8. VBoxManage.

The command to start a VM is:

VBoxManage startvm <NameOfVMHere>

If the name of your VM has spaces, you have to enclose it in "quotations". You can use the following command to list your VMs to see their names:

VBoxManage list vms

Armed with this information, you can now create a script that will run this command for you under the conditions you want. You did not mention what is this "particular moment" you want to start the VM in, so we cannot further help you with the script.

Also, it is worth noting that there is a lot more to the VBoxManage command. You can start the VM with a window GUI, or without a GUI at all (if that's what you're looking for). Take a look at the documentation link I listed above as well as this: Chapter 7. Remote virtual machines, VBoxHeadless.


Battery consumption comparison of Unity, Gnome, Gnome Classic XFCE and LXDE

To consume the minimum battery charge you have to load at minimum your pc, so use the minimum resources and this include ram.

The order that you did is correct, is difficult to make a rank because it varies. But if you want realy load at minimum your ram you can choose Enlightenment.


Make a full bootable usb stick with Gnome disk utility

Make a Full Bootable USB Stick with Gnome-Disk Utility
To create a bootable Live Linux USB using Gnome-Disks:

Open Disks.

Plug in Target drive.

Select Target drive in left hand column.

Select the three lines or dots on the upper right of the window.

Click Restore Disk Image.

Select the Linux ISO as Image to Restore.

Follow the instructions.

If your intentions are to make a Full Install bootable USB:

Click Restore Disk Image.

Select an image file of a Linux system as Image to Restore. You can find an image of Ubuntu 20.04 at: Easy Full Install USB that Boots both BIOS and UEFI

Both methods should start with a grub menu when booting in UEFI mode. or with BIOS or UEFI in 20.10 and later.


I think not all of your software sources are activated. The software is organized in different sources, which are 'main', 'universe', 'restricted' and 'multiverse'. Main contains open source software, supported by Canonical. The software in universe is maintained by the community. Restricted contains proprietary drivers and in multiverse is software which is restricted by copyright or legal issues.

It seems, that some of this sources are not activated. To do so, go to 'System Settings' -> 'Software Sources'. In the tab 'Ubuntu Software', check all boxes, except 'Source Code' and Cdrom.

Then you have to install the packages gstreamer0.10-fluendo-mp3 and*gstreamer0.10-plugins-ugly* in Ubuntu Software Center


cordova install on ubuntu 14 doesn't seem to be working

I had the same issue as you, I found the following after digging in the README file. Executing the following seems to get create to work. I'm yet to try the other commands!

sudo apt-add-repository ppa:cordova-ubuntu/ppa
sudo apt-get update
sudo apt-get install cordova-cli
npm install -g cordova
sudo apt-get install cmake debhelper libx11-dev libicu-dev pkg-config qtbase5-dev qtchooser qtdeclarative5-dev qtfeedback5-dev qtlocation5-dev qtmultimedia5-dev qtpim5-dev qtsensors5-dev qtsystems5-dev


It should be possible with 9.10 (but not with 10.04), but it's a bit tricky to get to the Add to panel-option. Let me cite Paul Larson from this bug report:

  This is actually possible to do,
  although perhaps not as
  straightforward as many people would
  like it to be. I was able to just do
  this on a UNR install by following
  these steps:

  right click on the indicator applet (the icon that looks like an envelope)
  deselect "Lock to panel"
  right-click on it again and select 'Move'
  move it over a bit to the left, thus leaving an open blank area to the
  right of it
  right click in the blank area and select 'add to panel'

  I'd like to make this a wishlist item
  for now, but it could perhaps be
  converted to a question as well if it
  is decided not to pursue this as
  something that could be improved


Installed PaintSupreme 3D and it is not loading

I've launched it from midnight commander from /snap/paintsupreme-3d/2

And got new description of error:

error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

then i've installed missing library:

sudo apt install libgconf2-4

Than paintsupreme-3d lauched!

P.S.

Also you must to edit link in main menu.

to open it, you must do this command:

/snap/paintsupreme-3d/2/paintsupreme-3d

P.P.S.
Sorry for my bad E.


What are the differences between Lubuntu and LXDE sessions?

Apart from the different theme, and icons, I couldn't find any other differences. Even the number of processes was exactly the same. You can see all running processes with ps aux, and ps aux | wc -l to get their number.


From the locale output I see that you have set LC_ALL persistently in a config file. Remove that LC_ALL entry, whereever you set it.


Sometimes Unity Boots, Sometimes it Doesn't

Sorry, I thought I had a link to the card info in the post: http://reviews.cnet.com/graphics-cards/ati-radeon-x850-xt/1707-8902_7-31245051.html


How do I install a different Python version using apt-get?

Felix Krull runs a PPA offering basically any version of Python (seriously, there is 2.3.7 build for vivid...) for many Ubuntu releases at https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa.

Do the usual:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.5

It will not overwrite your existing python3.4 which is still symlinked as python3.

DON'T change the symlink! There are apparently many system functions that don't work properly with python3.5.

I tried this and afterwards couldn't open a terminal, software updater,...

cd /usr/bin
sudo rm python3

The upgrade to Wily will adapt the meta-package python3 to point to python3.5. I don't expect any breakage, but at this point the foreign repository is not needed anymore. So to be really safe, you can purge the PPA before doing the upgrade.


Why this .pam_environment setting prevents me from logging in?

I've learned from the web of someone that got in the same trouble. .pam_environment syntax for referring to variables must include curly braces, fixing this has solved the problem:

VISUAL       DEFAULT=/usr/local/bin/vim
EDITOR       DEFAULT=/usr/local/bin/vim
PATH         DEFAULT=/usr/local/src/rbenv/bin:${PATH}
WORKON_HOME  DEFAULT=${HOME}/.virtualenv
GOROOT       DEFAULT=/usr/local/src/go
PATH         DEFAULT=${PATH}:${GOROOT}/bin
GOPATH       DEFAULT=${HOME}/.go
PATH         DEFAULT=${PATH}:${GOPATH}/bin
PATH         DEFAULT=${PATH}:/usr/local/src/llvm/tools/clang/tools/scan-build
PATH         DEFAULT=${PATH}:/usr/local/src/llvm/tools/clang/tools/scan-view
PATH         DEFAULT=${PATH}:/usr/local/src/.build/kint/bin
M2_HOME      DEFAULT=/opt/apache-maven/apache-maven-3.0.5
M2           DEFAULT=${M2_HOME}/bin
PATH         DEFAULT=${M2}:${PATH}
JAVA_HOME    DEFAULT=/usr/lib/jvm/default-java
PATH         DEFAULT=${JAVA_HOME}/bin:${PATH}
ECLIPSE_HOME DEFAULT=/opt/eclipse
PATH         DEFAULT=${ECLIPSE_HOME}:${PATH}

I don't find it a best approach, but what I'm doing now is setting variables at .pam_environment for them to take effect for any application (not just the ones started from bash) and putting setup that requires additional logic beyond trivial assignment into .profile/.bashrc.


Create FTP users with limited access only to home directory Ubuntu 12.04

(Not sure why a question from 2014 pops up again on the homepage, but anyway :D )

It's probably not a good idea to mess with the overall permissions of the rest of the file system, like it has been suggested in the other answer. A better way would be to use a feature called "chroot".

"chroot", short for "change root", just does that: It changes the root of the directory tree the (FTP) user can acccess to what the admin wants it to be. Sometimes the same feature is referred to as "jailing" the user in their home directory.

Most FTP servers support chroot (with the exception of some very small, bare-bone ones). I'm not really familiar with vsftpd, but according to this how-to on Cybercity you need to set the config directive chroot_local_user to 1.


It is perfectly normal for software to create files and their own directory in /tmp/ to store temporary files (most likely these are session related files). That is what /tmp/ is for.

In general these files contain the name of the software (like your example with owncloud* and a "random" set of characters behind it). If you never installed owncloud and you have these files I'd expect something to be wrong. If you did install (as you did) it I would assume all is fine.

In  my own /tmp/ I have a sni-qt_synergy. Synergy is software to connect 2 systems to 1 mouse and keyboard. You will also see this behaviour when using encryption (though this probably will be outside of /tmp/).

At the moment and with the information you provided I would say: perfectly normal.

Related to the malware: it is installed from WordPress and Joomla exploits and a cracked DirectMailer (if you do not have these you are safe(r)) and detection is very simple since it creates its own cron job.  A crontab -l used with root and a more /etc/crontab will always reveal if this malware is present on your system

Remove that cron job, clean /tmp (or /var/tmp) and delete the cracked DirectMailer.


Asus zenbook UX32VD: which kind of ubuntu installation? CUDA capable?

I reply to myself: I have installed Ubuntu 12.10 64 bit in dual-boot mode with win7.
On Ubuntu my laptop is Cuda Capable, but it must be careful because this laptop has a Optimus Technology for switching two graphic card (a Intel integrated with motherboard and a Nvidia Geforce GT 620 M). Bumblebee fix it for use Geforce (just use the command "optirun" for run any program that will use Geforce). For compiling Cuda-code is necessary install Cuda Toolkit, but without install the Nvidia's drivers, because they will be in conflict with Bumblebee's drivers (you can download this toolkit from NVidia's website).
If somebody needs my help for this laptop contact me!!!
I'm sorry for my not so good english.


Cannot sharing my second harddrive with Samba

A "Windows cannot access .... You do not have permissions" error is usually not a Samba issue but a Linux permissions issue. The folder that is shared and the path to that folder has to allow the samba client user access.

This type of problem usually results when a second HDD is partitioned and mounted to /media/your-user-name/XXX. The way Linux is set up the only user granted access to XXX is "your-user-name" regardless of the permissions of XXX itself.

There is an easy fix for this in a home network and that is to add a line in smb.conf that forces all remote users to appear to be "your-user-name" - at least for your samba shares:

force user = your-user-name

Where you put that line in smb.conf depends on how you created your samba share. If the share definition is in smb.conf then add the line to the share definition. If you are creating shares through the file manager then add it to the [global] section of smb.conf - right under the "workgroup = WORKGROUP" line is where I would put it.

If you want more specific guidance you need to edit your question and add the results of the following commands:

testparm -s

net usershare info --long


The tutorial you mention is outdated, try following this one instead, but start from scratch, running rm -fr ~/.juju/environments* first. Make sure you change the necessary settings in the environments.yaml file juju generate-config created, in the configuration of the maas sample environment.


Ubuntu 18.04: Permission Denied:.ipynb_checkpoints when trying to create a new python3 notebook in jupyter

You are in the home directory while creating a new python3 file on jupyter.
To avoid the error just click on any of the folders listed(documents or downloads etc) other than home, now try creating a new python file again. It will do.


How create Ubuntu DVD for Mac? (16.04.1 / Xenial Xerus)

With help from a friend, I was able to create an install disk.  Here are the steps we took after downloading the ISO:

Used Toast to convert the ISO to DMG.
Opened Disk Utility.
Dragged the DMG file from the Finder to Disk Utility.
Used Disk Utility to burn the DMG to a new disk (DVD-R), by selecting the DMG file and clicking “Burn”.

In retrospect, it seems likely that one of my prior attempts was actually successful but that I couldn’t tell it was successful.  Notice how one of the results I listed was that the DVD seemed to burn and verify successfully, but then I got the error, "The disk you inserted was not readable by this computer”?  I’m guessing that was because my Mac (OS X version 10.8.4) couldn’t read the file system used in the ISO, and that if I’d tried to use that disc it have worked.


How do I report a bug if I have no internet or USB or mouse on my machine?

You'll likely need to file the bug manually from another machine:

How do I report a bug?

Alternatively, you can use this (replace PACKAGENAME in the URL with the package name. For example: unity, gnome-shell, etc):
 http://bugs.launchpad.net/ubuntu/+source/PACKAGENAME/+filebug?no-redirect

So in your case you can click here to file the bug report:

http://bugs.launchpad.net/ubuntu/+source/xorg/+filebug?no-redirect

And then copy and paste all the information from your question into that report.


About open ssh latest version in ubuntu 16

Ninety percent of vulnerability scanners go strictly by the version string returned by the OpenSSH libraries.  Unfortunately, they aren't smart and don't know what patches are on your system nor do they actually test for the presence of the vulnerabilities (because this can be destructive and dangerous on production systems).
OpenSSH currently has no unpatched CVEs in Ubuntu Xenial 16.04 according to the Security Team's CVE Tracker.  Ubuntu Security Notices are issued for when there's patches being pushed out into the repositories' -security pocket.  (Note that this does not include currently embargoed issues - issues that are not yet public knowledge yet - nobody has any insight into those except the Security team)
If you have specific CVEs the vuln scan references you can look them up in the CVE tracker yourself here with the specific CVE identifier you're wanting to ID if you're patched from.
Chances are, though, if you are running OpenSSH Server 1:7.2p2-4ubuntu2.8 or later (at the time of this post) on Ubuntu 16.04 you are on the latest patch-set.  (You can verify this by looking at apt-cache policy openssh-server and looking at the "Installed" line for identifying the version you've got installed)
Just a tidbit, unless you pay for Ubuntu Advantage, 16.04 dies in just about six months for general support, so you should probably start thinking of upgrading from 16.04 sooner than later.


Which other "photo booth" program can I use besides cheese (on a Toshiba AC100)?

You can try with guvcview and check the other software.


You can resume a process via a PID number from any shell by using the kill command.

kill -CONT <pid>

Don't forget the -CONT part or you will kill your process.

P.S. David Purdue is correct that fg and bg only work with processes on the same process tree. His solution seems to be a better fit your needs.
However because the title is "Resume a process via a PID number" I figured that others who do need this might want to find it.


Okay, I fixed the problem. The problem happened when I added some lines to the ~/.bashrc file as part of ROS installation. I had to remove the part that is causing the problem, and it worked as before.


You need libpkcs11-helper1 package so try to run following command before installing openvpn:

sudo apt-get install libpkcs11-helper1


Err:5 http://in.archive.ubuntu.com/ubuntu bionic InRelease

changing servers from India to Main fixed the problem: How do I change mirrors in Ubuntu Server from regional to main?


I suggest using rvm to install and manage your Ruby installations rather than apt-get. It makes it much more flexible, you can have multiple Ruby installations at the same time then flick between them with one command.

See their page: http://beginrescueend.com/


How to see list of ASCII code on the terminal

just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

man ascii

Here what you'll see


Have you tried reinstalling Virtualbox and importing the Virtualmachine by running the .vdi (or whatever Disk image format you are using)?


Try this:

$ echo 50 | sudo tee /proc/sys/vm/overcommit_ratio
50
$ echo 0 | sudo tee /proc/sys/vm/overcommit_memory
0

This will revert those files to the default parameters. Notice that you can not delete them because they are virtual and your system relies on that they are persist.


This problem was solved by the OP:

The following configuration fixed the problem:

1) Added the following line to /etc/pulse/default.pa

load-module module-alsa-siice=hw:0,8

2) Added the following line to /etc/modprobe.d/alsa-base.conf

options snd-hda-intel model=mbp55 enable=1 index=0 position_fix=1

The last three parameters actually solved the problem. Before that I had to run speaker-test to get fluent sound. dmesg returned the following error but afterwards sound was okay.

hda-intel: Invalid position buffer, using LPIB read method instead.

3) I am not sure if this is related but I had temporarily success with the following grub boot parameter in /etc/default/grub

GRUB_CMDLINE_LINUX="nomodeset noacpi"

I am still not sure what the problem was. If anyone could tell me I would like to learn it. Thanks.

Some useful resources:

ftp://download.nvidia.com/XFree86/gpu-hdmi-audio-document/gpu-hdmi-audio.html
http://my.opera.com/Hoelli/blog/show.dml/1646577


How to upgrade to the latest GNOME version?

Warning: this version is in development.
You can install the latest version of GNOME with two PPAs:
sudo add-apt-repository ppa:gnome3-team/gnome3-staging
sudo add-apt-repository ppa:gnome3-team/gnome3

Update the repositories:
sudo apt-get update

Upgrade your system (avoid using upgrade, it can cause problems to the PPAs you just added):
sudo apt-get dist-upgrade

Or if you want to reinstall GNOME
sudo apt-get install --reinstall ubuntu-gnome-desktop

To revert the upgrade install ppa-purge
sudo apt-get install ppa-purge

and run the following commands, in this order:
sudo ppa-purge ppa:gnome3-team/gnome3-staging
sudo ppa-purge ppa:gnome3-team/gnome3


What is the basis behind default installed applications?

Mark Shuttleworth had a blog post about this and the key questions are ...

  In evaluating an app for the Ubuntu default install, we should ask:

  is it free software?
  is it best-in-class?
  does it integrate with the system settings and preferences?
  does it integrate with other applications?
  is it accessible to people who cannot use a mouse, or keyboard?
  does it look and feel consistent with the rest of the system?

The discussion about default apps starts at the Ubuntu Developer Summit. 16.05 was the last online one (UOS). But changing an app to another will need a blueprint or something similar before it gets picked up (there has been an ongoing discussion on replacing firefox for chromium for years. That one is more likely to be based on sentiment and popularity than any of the above).


How to determine which theme is currently enabled

You can use gsettings to show currently enabled gtk theme:

gsettings get org.gnome.desktop.interface gtk-theme

and set eg. Radiance

gsettings set org.gnome.desktop.interface gtk-theme Radiance


How can I use convert to resize images to a specific width keeping the ratio for the height?

This should do it:

#!/bin/bash

while IFS= read -r jpg
do
    convert "$jpg""[1024x>]" "$jpg"
done < "$1"

Save the script above as ~/bin/shrink.sh, make it executable (chmod a+x ~/bin/shrink.sh) and run it, giving the list of files as an argument:

shrink.sh /path/to/list

This is basically the same as the proposed duplicate, adapted to i) match your desired size and ii) read the names from a file. The [1024x>] ensures that only images whose size is greater than 1024 pixels will be resized.


Firefox/flash loads new page and finally halts (on yt eg)

It is from the flash I got 24Gb of RAM and got stuck with the same problem.
I will try to find any solutions and come back with an answer for you ... any way for youtube is quite simple just switch to html5 player:

Just visit this page https://www.youtube.com/html5 after you login to youtube and change your default player to html5 player.


Thinkpad A285 stop working after 18.04 latest update applied

I have an Ideapad flex 6, similar issue after recent updates (computer very slow even with a lot of free memory, high peaks of processor usage), but its with both OS, anyway to make a long story short, either or you downgrade kernel to default one 5.0.0.23.24 or you need to upgrade it. I have been dealing with this issue for about 3 weeks now, clean installations and everything in between, what I can tell you is that last night just by chance I decided to upgrade kernel and it worked for me. Now I have to decide which one I will be using.

I recommend you creating a recovery USB with the lenovo default software so you will have restore USB in case you need it and then test all you need to. I hope it helps


How to insert a page in a DJVU file without quality loss?

You can convert your DJVU file to .jpg and the .jpg to DJVU.


I can ping my gateway but can't ping yahoo, microsoft and bing

Configure your /etc/resolv.conf file.

Edit your /etc/resolv.conf and put nameserver 8.8.8.8 as the un-commented first line.

You can make this change permanent by editing your /etc/resolvconf/resolv.conf.d/head and putting nameserver 8.8.8.8 as the first un-commented line there.

Some sites such as microsoft.com blocks the ping packets.  However, the ones such as google.com and yahoo.com will respond.

Update:

Run these commands:

$ sudo apt install traceroute
$ sudo traceroute 8.8.8.8


A new UEFI boot record is created on each reboot

I still don't know for certain what caused the issue, but after I updated to the Windows 10 Anniversary Update this no longer happens.


Setting an environment variable in /etc/environment doesn't work but export does?

Close the console you're using then open it again, worked for me.


Ubuntu unity Video/Music/Picture lens - Settings for locations?

Mount all your drives and then edit by typing the following line into a terminal window with CTRL+ALT+T

sudo gedit /etc/fstab


rsync in crontab fails with mkstemp: no such file or directory

I had the similar issue when I tried to sync data with remote FTP server mounted using curlftpfs

Probably your /space/backup folder is also mounted remote folder

The solution worked for me:

create temp folder
indicate to rsync which temp folder to use (should be outside of remote destination folder)

rsync -T "my_temp_folder_other_than_space/backup" -ravv user@serverprod:/home/user/sites/main_site/backup/*.zip /space/backup/main_site/


alright, i've figured it out.

i had previously mounted partition

mount -v -t ext4 /dev/sda4 $LFS

for some reason, this mount was not working anymore, probably after restart. i found it when i checked directory /mnt/lfs  - it was empty, all the folders that i had created were in partition sda4 which i had previously mounted.

re-mounted partition,

#ln -sv $LFS/tools /

and it works now.

2nd question: what happened to mount, why does it stop working after restart ? at the same time, environment variable $LFS also resets ?


afaik there is no ppa maintained for Xenial Xyrus 16.04 anymore.
current duplicity is 0.8.15 and install options are mentioned below (from the release notes). note: the ppa repos are for "recent" ubuntus only. also beware of the note to UNINSTALL other versions before installing a recent duplicity.

Source - https://gitlab.com/duplicity/duplicity
Stable tarball install - https://launchpad.net/duplicity/+download
Daily duplicity PPA -    https://code.launchpad.net/~duplicity-team/+archive/ubuntu/duplicity-develop-git
Stable duplicity PPA -    https://code.launchpad.net/~duplicity-team/+archive/ubuntu/duplicity-release-git
https://code.launchpad.net/~duplicity-team/+archive/ubuntu/duplicity-develop-git
Stable snap builds - “sudo snap install duplicity —classic"
Latest snap builds - “sudo snap install duplicity —classic —edge"
Latest pip3 builds - “sudo pip3 install duplicity"

NOTE: UNinstall duplicity first if it was installed via the distribution
repository.  For Ubuntu, that would be "sudo apt-get purge duplicity".


chromium-browser version 28 for Ubuntu 12.04

Install It with
sudo apt-get install --reinstall google-chrome-stable=28

From your terminal


Ubuntu on Asus eeebookX205 with all peripherals

I'm running Ubuntu 14.10 on my X205TA. Right now the major gripe for me is that audio doesn't work. I would recommend that you do get the laptop if you're okay with using Windows for a while. It is a really good laptop for the price.
I followed instructions from the following pages

https://github.com/lopaka/instructions/blob/master/ubuntu-14.10-install-asus-x205ta.md
https://wiki.debian.org/InstallingDebianOn/Asus/X205TA

What works for me right now

WiFi - Installed the latest linux 4.0 kernel and then followed instructions from the debian page.
Battery Meter - Works out of the box once you install the linux 4.0 kernel.
Brightness works if you add the boot flag acpi=force to grub.

Before getting the inbuilt WiFi fixed, I used my android phone to connect to my WiFi using USB tethering. That helped in following all the instructions and not having to juggle files from my desktop to this laptop.
Please make sure you don't wipe your entire drive, since you need some files from the windows partition to get WiFi to work.


The Unity lens does not search all your files and folders, but rather only has access to files that you have opened at least once in the past (this is because it uses Zeitgeist for search).

There is a different lens you can install called "Unity Place Filesearch" which will search for every single file on your system. This provides much more thorough search results for files that you have never opened before. Once this new better search lens is installed, you can uninstall the old one if you do not want it anymore.

To install Unity Place Filesearch:

sudo add-apt-repository ppa:pydave/unity-lenses
sudo apt-get update
sudo apt-get install unity-place-filesearch

Then enter the following to make the lens appear:

setsid unity

OPTIONAL You can also set which folders to ignore (if you have private files) by editing the following file:

gedit ~/.filesearch.cfg

If you do edit this file, you can apply your changes by saving it then entering the following commands to stop and restart the lens.

killall unity-filesearch-daemon
setsid unity

To remove the old lens:

Backup the lens files first (just in case):

mkdir ~/backups
cp /usr/share/unity/places/files.place ~/backups/

Remove the lens:

sudo sed -i '14i ShowEntry=false' /usr/share/unity/places/files.place

And finally apply your changes by running:

unity --replace

All finished! Enjoy your new better search!

Sources all by Webupd8:

http://www.webupd8.org/2011/05/real-files-folders-search-unity-lens

http://www.webupd8.org/2011/04/things-to-tweak-fix-after-installing.html


home directory copy from 1 machine to another

Just take care with the external hard drive, if it is FAT or NTFS it will not preserve permissions.

More likely then not you do not need or want all of your home directory. I would identify the things you want to transfer, firefox bookmarks, Documents, etc and put them in a tar ball (tar.gz). You can then put the tar ball on a FAT or NTFS partition and extract it on the other machine.

tar cvzf home.tar.gz .mozilla Documents

To extract

tar xvz home.tar.gz

Another option would be to use rsync


How can I repair unity from terminal while on a WiFi that requires me to login through a web browser?

Text mode browser

You could try a text mode browser, if you have one installed: elinks, links2, w3m, lynx (roughly in order of preference for your use case). They may or may not work depending on whether the login page requires fancy stuff that these browsers don't support.

Download the files on another computer

Since you seem to have access to a computer, you could download the packages on the other computer and copy them. The following command displays the URLs of the packages required to install unity; the second one displays just the URLs with no extra noise.

apt-get --no-download --print-uris install unity
apt-get -y --no-download --print-uris install bup | sed -n "s/^'//; s/'.*//p"

Another approach that leverages another computer would be to use that computer as a router. If you have a smartphone and a USB cable, activate your phone's tethering mode.

Running a GUI anyway

At the GUI login prompt, click on the icon with the Ubuntu logo and you'll see a list of possible sessions (corresponding to the window managers and desktop environments that you have installed). The menu may be accessed through a different UI element if the interface you see isn't the default display manager from 12.04. If you have a session type other than Unity, select it.

If you have no window manager at all from your system, you can still run GUI applications: all it takes is the X server. From a text console, run the following command:

startx firefox -- :1

Replace firefox by your favorite browser. You may prefer to run a terminal emulator where you can more easily start other commands. The -- :1 part instructs X to use a different display number from the default (0), in case there is already a GUI login prompt occupying display 0.

You may even run the X server directly, this has minimal dependencies. You can start a GUI application by specifying the display number through the DISPLAY environment variable.

X :1 &
DISPLAY=:1 firefox

To kill the X server, run jobs -l in the shell, note the job number (which will be 1 if you hadn't started another background job before), and run kill %1 (or whatever the job number is).

Without a window manager, with just the X server, you get an extremely crude interface. There are no menus, workspaces, window borders, keyboard shortcuts or anything convenient. Worse, the only way to switch the focus between windows is to move the mouse cursor, and there is no way to move a window or raise a window that's hidden behind another one. Nevertheless this is a convenient method when you need to run one application (such as a web browser with support for fancy Javascript) in an emergency.


Ubuntu web browser does not start after upgrade to 16.04

I have figured it out finally. The directory ~/.local/share/webbrowser-app has been owned by root, not by me. Solution was then as simple as using chmod.


Can I use a Bash variable in a sed command?

You want to replace $i in $ip with your shell variable? Use double-quotes

... | sed "$ip" ...

This has certain implications. It doesn't apply here but you might have to escape things you wouldn't need to in single-quote-marks.

But I'd also consider rewriting that so you're not running the same commands n times to print the first n lines (which is what this does). Here are some alternatives...

Using head:

maas maas nodes list | grep hostname | cut -d\" -f4 | head -5

Storing the command output:

output=$(maas maas nodes list | grep hostname | cut -d\" -f4)
for i in 1 2 3 4 5; do
    sed -n "$ip"
done

Creating a better sed string:

maas maas nodes list | grep hostname | cut -d\" -f4 | sed -n $(printf "%dp;" {1..5})

Roll all your search/trim code into one awk:

maas maas nodes list | awk -F'"' '/hostname/ && i<5 {i++; print $4}'

I'm an awk fetishist so I'd probably go for the last.


I've used Cairo-dock before in Ubuntu, according to a quick google search, it works in KDE as well. While not as feature rich, it is cross platform. Here is the launchpad site for the Cairo-Dock project, which even includes instructions for how to install the software on several different distributions of linux. For example, in Ubuntu:

echo "deb http://download.tuxfamily.org/glxdock/repository/ubuntu $(lsb_release -sc) cairo-dock" | sudo tee -a /etc/apt/sources.list
wget -q http://download.tuxfamily.org/glxdock/repository/cairo-dock.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install cairo-dock cairo-dock-plug-ins


You can try that delete the sources.list and regenerate again. But please, backup your file first.

Open the terminal CTRLALTT

Delete the sources.list with this code:

sudo rm /etc/apt/sources.list

After this open software-properties-gtk:

software-properties-gtk

This will open software-properties-gtk and a new sources.list will be created automatically.

And check another checkbox, it helps for regenerate the sources.list file. And close, it asks you for delete caches. You can check your sources.list file now.

Edit:
Also, you can use that website for regenerate a sources.list file.


Precautions to take before replacing Hard drive in desktop

I would do this like this:

Add the 2nd hard disc to your system.
Install Ubuntu on that hard disc.
Boot into it.
Copy all files you need from the 1st hard disc over to the 2nd one.
Format the 1st one and add it as a spare partition.

Just remember to make regular backups for files on that old hard disc. If you are lucky it will last another few years.

Alternative:

Make a live DVD if you do not have one yet.
Put all files you need to save to a DVD.
Remove old disc; put in new disc.
Install from live DVD
Restore the files you saved.

Just to be hmmm annoying: I expect anyone always to make backups. Even when NOT messing with your system.


How to link libgattlib.so in a VS2017 VC++ for Linux project

Thank you very much. It helped to solve my problem in Visual Studio 2017 with Linux remote compiler. Where I've needed to include Linux libraries I've had __float128 error and was stuck. I've done the following:

Copied /usr/include from Linux machine into Windows.
D:\usr\include into Project -> Configuration Properties -> VC++ Directories -> Library Directories
The library that I wanted to use for my project was portaudio so I added portaudio into Project -> Configuration Properties -> Linker -> Input -> Library Dependencies
-lportaudio -lrt -lpthread to Project -> Configuration Properties -> Linker -> Command Line


Change my keyboard layout for my profile only

You can to it with setxkbmap
sudo apt-get install x11-xkb-utils
man setxkbmap to get the right syntax.


How to add/delete/modify folders/files in storage media in Ubuntu when they are locked?

NB. This is not necessarily the solution, but it is a practice that helps prevent your problem.

As noted by @Hemal, Windows did not shut down properly, technically. To ensure that Windows shuts down properly, you need to shut it down the proper way.

i.e.

Press Win+X
Navigate to shutdown using directional arrows
Hold down Shift while pressing Enter

This procedure completely shuts down your windows and releases all drives of the machine.


Timeout during install on an Acer Aspire 5742G

I had the same problem.
In instllation disk menu press F6 for "other options" and disable acpi by selecting acpi=off (also you can select "noapic" "nolapic", but i think its not necessary), fnd try to boot ubuntu.
If there is no more errors you can install ubuntu.
Also after installation I had problem with wifi - it was disabled by hardware and there is no way to turn it on.
So i replace "acpi=off" with "pci=noacpi" in my /boot/grub/grub.cfg (it should be added to the end of the line which contains "quiet splash" without qoutes)

PS. after installing system you should boot with one of this optionsб or system will not boot.
you can add them directly from grub menu.


Generally that symbol just means there was a problem accessing the data within the partition, either because of an unsupported filesystem or some other issue. Try right clicking on the partition and then clicking on "Information"


Problems creating bootable USB-(SSD)-Drive

Does your system has UEFI mode?

Try booting by switching off the secure boot in the bios setup of your computer. If it doesn't works you can try the next method.
Load the system default settings in the bios setup. If you are using windows to create bootable usb-ssd, try Rufus [ https://rufus.akeo.ie/ ] and create the bootable ssd by selecting "GPT partition scheme for UEFI". Then try to boot.


There is a Good One called Cubic, And here is a Good Tutorial for it, to!

Tutorial - https://www.ostechnix.com/create-custom-ubuntu-live-cd-image/