Is it possible to restore core system files using APT if deleted them accidentally?

No they will NOT be restored, for two reasons:
The packaging system does not know the file you "accidentally" delete is missing. As far as the packaging system is concerned, nothing needs to be updated.
Second, if you "accidentally" delete some system files, you can prevent programs (e.g. login, sudo, dpkg, ... ) from running, so your system could become unrunnable and unfixable.


Philips GoGear detected by Rhythmbox but not Banshee

Set your player to MTP mode and attach it to your computer with the included USB cable.
Open the file browser and then click on the icon for your player (mine says Philips).
Once your in the window inside your player hit control h (Ctrl+H) (hold the control button and press the "H" key) to show your hidden files.
Right click in the window and select the "Create Document -> Empty File" option.
Name the file: .is_audio_player
Now open the file and paste the following text in it:

audio_folders=Music/,Recordings/
video_folders=Video/
output_formats=audio/flac,audio/mpeg

These are a list of directories for the programs to put your music into and a list of the file formats your player supports. I have only included flac and mp3, but you can add others by looking up the mime type syntax (ex wma = audio/x-ms-wma etc).
When you're done, save your file and eject your player.
Let your player update and then plug it back in to your computer.
Open Banshee or Rythmbox and you should see your player mount.


Your link for the installation instructions is bad.  Take a look at https://docs.google.com/viewer?url=https%3A%2F%2Fdeveloper.download.nvidia.com%2Fcompute%2Fcuda%2F9.1%2FProd%2Fdocs%2Fsidebar%2FCUDA_Installation_Guide_Linux.pdf&pdf=true

Basically, use the Ubuntu offered drivers (if possible, not sure about a 980 ti), use the Intel deb cuda installation, and install the Ubuntu cuda package, which gets the toolkit.  Copy the samples to a writeable location, modify the paths, and CUDA should work.


You can, indeed, customize LibreOffice with Firefox 'personas'.

In LibreOffice, go to the menu Tools | Options. Under "LibreOffice", select Personalize (№ 1 in the image, below).

Click the button Select Persona (№ 2). A new dialog will open. Click the button Visit Firefox Personas (№ 3) or visit http://www.getpersonas.com/.

Then you'll have to find a Firefox 'Persona' that you like and copy its URI address back in the LibreOffice dialog (№ 4).

Click "Accept" and you're done.

Image from this article.

And this is one I use:


How can I make Flash work with my webcam?

It's a known bug: https://bugs.launchpad.net/ubuntu/+source/adobe-flashplugin/+bug/865672

Here's a workaround: http://www.ironzebra.com/news/42/how-to-get-flash-webcam-to-work-on-ubuntu-linux

Both taken from this answer: Flash Webcam non responsive


What are the problems between PulseAudio and Wine

Latest update: Wine 1.7.55 adds proper PulseAudio support.

There isn't much of a problem at all these days.

What you're describing was years ago.

Applications under Wine only know how to talk to a Windows sound stack, so as with most of the other Windows subsystems, Wine provides this. The problem comes from our sound stack changing significantly in the last decade.

Once upon a time...

... we only had OSS and ALSA. They provide predictable interfaces but they aren't easy to code to. It took Wine ages to get to a "just works" point with their ALSA support. The stack diagram was quite simple:

Hardware → ALSA → Wine/Win32-api → Windows app

The main problem with ALSA is it's notoriously finicky if you want more than one thing to play at once. Applications could accidentally lock it from others.

Then PulseAudio got popular.

Suddenly every desktop had this thing called PulseAudio. It was another layer between applications and ALSA to allow for many applications to make noise at once and add features like sound-over-network.

But Wine still only knew how to talk to ALSA, and there was now this PulseAudio thing hogging it right from boot. Wine's audio had to be piped through an ALSA compatibility layer into PulseAudio and then back out to ALSA. The stack shows how horrible this looks:

Hardware → ALSA → PulseAudio → ALSA emulator → Wine/Win32 → Windows app

Additionally the ALSA emulation layer (provided by PulseAudio) wasn't great. It would support a couple of channels and a few recording options but nowhere near as much as the ALSA that PulseAudio itself sat on top of.

The perceived problem was always "the other guys' fault"

Audio in Wine didn't work. With hindsight it's easy to see where the problem really was but there were three opinions at the time that made Wine a real battleground:

Users clamoured for Wine developers to add a native PulseAudio driver.
Wine developers didn't see why they should spend another age (and we're talking months and months of developer time) interfacing with yet another audio layer when they saw it as PulseAudio's problem for not providing a working ALSA interface. In their eyes people could just use pasuspender to get PA to release the lower-level ALSA for direct manipulation.
PulseAudio developers also suggested that Wine should pull their collective finger out and just add a PA driver. Dozens of other applications had, so why couldn't they? And every time I asked, the PulseAudio ALSA layer was fine, without bugs and it was just Wine developers' own bugs that were the problem.
A user wrote a hacked-in PulseAudio driver that spoke directly to Pulseaudio and did the bitmap audio conversion itself. Other users loved it because despite its hacks, it did often "just work" but Wine developers hated it because it was another large branch of code to maintain, and it was a hack.

And then things got better.

Everybody gave a little.

Users stopped complaining as much.
Wine refactored to use the Windows Vista and Windows 7 approach to sound. They call this MMDevAPI. You can read all about MMDevAPI here. This strips out a ton of sound code and simplifies settings. It still uses ALSA though.
PulseAudio fixed bugs to allow Wine to work better.
WinePulse's development ceased when MMDevAPI started to show that it was working.

And while it might seem like it, I doubt that's not the end of this story. There are commercially-supported projects like OpenAL and GStreamer that could really simplify Wine's sound stack as well as providing extra features.

But then years later, Wine 1.7.55 added mainline PulseAudio support...

I've been writing this post for years and this is perhaps the weirdest thing yet. After dropping the PA driver development, somebody appears to have gone back to this and turned it into something real.

More than that, it got pulled in to the mainline version of Wine.

In an established prefix, just run wine regedit and change HKCU\Software\Wine\Drivers\Audio from alsa to pulse. Everything —including surround sound— seems to work. Here's the stack now:

Hardware → ALSA → PulseAudio → Wine/Win32-api → Windows app

Is it any better than the ALSA compatibility layer? I'm still unsure. I've tried what I thought were some of the buggier games and they still skip around a bit.

It work though, which is the main thing... but so did the ALSA wrapper in the end.


How to Install HP Printer in Ubuntu 18.04

1. Make sure you have several python (aka python2) and python3 versions installed.

Check this thread if you wish to learn more.

2. Completely uninstall HPLIP,

as explained here and here.

3. Install HPLIP and its dependencies from Ubuntu 18.04 repository

At the time of writing it is HPLIP 3.17.10.

sudo apt install hplip hplip-gui hplip-data hplip-doc hpijs-ppds libsane-hpaio printer-driver-hpcups printer-driver-hpijs

4. Run hp-doctor with python3

For those like myself, running hp-doctor and hp-setup commands alone may not work with the error: cupsext could not be loaded. please check hplip installation message printed out in response; you need to specify python version and point at where the respective binary files are located using which command:

python3 $(which hp-doctor)

Make sure nothing is missing; everything should have OK status.

5. Run hp-setup with python3

python3 $(which hp-setup)

Follow the steps.


How to completely remove audio (kmix, pulseaudio) on kubuntu-desktop for rdp/x2go

You can disable sound in the session settings on the client. If this does not help, try disabling autostart of pulseaudio for the users.
Removing pulseaudio completely from the system may result in unpredictable behaviour.

Edit: Setting "autospawn = no" in /etc/pulse/client.conf should keep pulseaudio from autostarting for all users (man pulse-client.conf). For further explanation, see e.g. https://wiki.archlinux.org/index.php/PulseAudio/Configuration


Use the following command to install kickstart

sudo apt install system-config-kickstart

To instal kickstart, you have to activate the universe software, by opening software, then click on the menu software/updates. On the Ubuntu Software tab enable Community-maintained free and open-source software (universe). Enter your password if asked for.

BTW: in this instruction # means that this command has to be used as sudo. So simple add sudo before the command, when you see a #.


How to install openssl 1.0.2 with default openssl (1.1.1) on Ubuntu 16.04?

This article has a complete answer:
https://www.miguelvallejo.com/tag/installing-openssl-1-0-2g-on-ubuntu/

Reformatted slightly:

  cURL Method

# (Install cURL library)
sudo apt-get install php5-curl

# (Install compiling library Make)
sudo apt-get install make

# (single command that will download latest binaries, extract them, cd into the directory, compile configuration and then install the files)
curl https://www.openssl.org/source/openssl-1.0.2l.tar.gz | tar xz && cd openssl-1.0.2l && sudo ./config && sudo make && sudo make install

# (This will create a sym link to the new binaries)
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`

# (Used to check the version of the Current OpenSSL binaries)
openssl version -v

  wget method

# (Install compiling library Make)
sudo apt-get install make

# (Download the latest OpenSSL 1.0.2g binaries)
wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz

# (Extract the tar ball to the local directory)
tar -xzvf openssl-1.0.2l.tar.gz

# (Enter extracted OpenSSL directory)
cd openssl-1.0.2l

#  (Configure binaries for compiling)
sudo ./config

# (install configured binaries)
sudo make install

# (This will create a sym link to the new binaries)
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`

# (Used to check the version of the Current OpenSSL binaries)
openssl version -v


You can get this by pressing right alt-; e

That is: Hold right alt key, press the key with ;:," on it, release alt key, press e.


Can't see grub menu at all! Shift doesn't work!

Well, if Shift or Esc keys doesn't work at boot when you want to go in grub menu, you should edit again /etc/default/grub file (with sudo -H gedit /etc/default/grub command from terminal) and revert the changes you have made (set GRUB_TIMEOUT=10).

After this, if you want that the changes to take effect, run next command in terminal:

sudo update-grub

If the above method still doesn't work, try to use Boot-Repair.


Laptop overheating Problem in Ubuntu 12.04 only

"no proprietary drivers" means that you are using the open drivers for ubuntu 12.04 on your ATI Mobility Radeon™ HD 4570. That can become rather hot in a thermically-not-very-well-designed laptop.

Install the proprietary drivers through the "extra drivers" or "closed drivers" icon.
it wil let your system run way cooler.

(on my netbook the difference was 20-30 degrees centigrade)


visual studio installation on Ubuntu 14.04

I'd imagine not, Visual Studio uses a lot of the windows specific functions. You could try Wine but I am not sure how much luck you'd have with this. If you want to use C++ though there are plenty of IDE's you could use on Linux, I personally use Eclipse which has support for C++, might want to check it out.


What is the use of the Grave/Backtick ( ` ) character in man pages?

The use of different symbols for opening and closing quote is just a common typographic style. See Wikipedia: Quotation mark - Electronic documents - Typewriters and early computers:

Typographically, there are two types of quotation marks:
'…' and "…", are known as neutral, vertical, straight, typewriter, or "dumb" quotation marks. The left and right marks are identical.
‘…’ and “…”, are known as typographic, curly, curved, or book quotes. The left (start) and right (end) forms are different, resemble small figures six and nine raised above the baseline (like 6…9 and 66…99), but then solid, i.e., with the counters filled. In many typefaces, the shapes are the same as those of an inverted (upside down) and normal comma.

The second ‘…’ typographic style is the one used in man pages.
A similar style is used for double quotes in Latex, except the ` and ' characters are repeated twice to signify the double quote:

``You were a little grave,'' said Alice.


It looks like your Ubuntu installation has the Ubuntu 14.04 CD/DVD listed as one of its sources, which if you're using 12.04 is strange, to say the least.

Is it possible these were left behind after a failed attempt to upgrade or something?

You'll need to find the specific lines in either /etc/apt/sources.list or the files in /etc/apt/sources.list.d/ that refer to this CD and comment them - and only them - out.  Then re-run sudo apt-get update.

If you're having this problem, though, then there may also be other issues in your APT sources.  You should only have lines referring to "precise" (Ubuntu 12.04) and not "trusty" (Ubuntu 14.04).

Note that the warning you received about duplicate sources.list entries seems to be unrelated to your problem, and not a serious problem (other than generating this warning), but could be a further indication that you - or something - has messed up your sources.list file(s).


Installing UBUNTU on a PC with win 8 and win 7 and just remove win 8

First  : Do backup your data from Windows 8 partition if needed.
Don't worry Windows 7 will be intact , if you take care while installing.
To remove Widows 8 , refer this and this.
If not not deleted the windows 8 partition then from your Windows 7 OS , delete the windows 8 partition through Disks Management , which can be brought through right Clicking the My computer Icon. Reboot to see and confirm the changes.
Now with your  LiveCd or PenDrive of Ubuntu 12.04 , you are ready to go.

Boot from live CD or Live USB drive , use the Try before Install option, or if you want to install directly then choose Install option.

Proceed with installation steps , Select the First Default option  Install Ubuntu alongside Windows 7 for ease of installation. ( sorry for wrong optioned screenshot)

Then at the Partition table , select the Free space or Unallocated space .
--Select the Add option and then allocate the desired  Space for root / and swap partitions in ext4 format [search or refer Ubuntu Guide for minimum and your Ram based swap space requirement], or you can also select the something else option for manul way ,if you want different partitions for /home, /boot ,etc , you cam allocate them in same way.
-- Then select the appropriate Drive at the Grub Bootloader Installation option, if only single Hard Drive then most probably sda . And its done.
You can further refer to Official wiki here.


Can't boot from liveUSB when trying to install it alongside Windows 7

Before proceeding further, it's imperative that you determine how Windows is booting: in BIOS (aka legacy) mode or in UEFI mode. This is tied to the partition table type: In BIOS mode, Windows must boot from an MBR disk, whereas in UEFI mode, it must boot from a GPT disk. This is described in more detail here. Installing Linux in the wrong boot mode is likely to be a recipe for frustration; for best results, the boot modes of both OSes must match. If they don't match, you'll have to jump through extra hoops to get them to match or to switch your computer's boot mode whenever you boot.

Once you know the boot mode, the question becomes: How do you boot the Ubuntu installer in the desired boot mode? In some cases there are two boot options for CDs and/or USB drives in your firmware's boot-time boot menu, so once you access it (typically by pressing F2, F10, F12, or some other key at boot time), you can select the appropriate boot mode and continue. It's easy to overlook the distinction between these options, but one typically mentions "UEFI" (for UEFI) or "legacy" (for BIOS). Unfortunately, some firmware implementations don't give you the sort of control you should have, so you might not see these options. Also, there are sometimes bugs, particularly with UEFI boot mode, that can make it very difficult to get started; you may need to replace one EFI boot loader with another. Alternatively, you could install in the "wrong" mode (despite what I just wrote about that being bad) and then switch the boot mode later by manually installing the correct type of boot loader. Debugging such problems is system-specific and so is better handled in forums than on a site like this one.


The problem is that you are running an older version of StackApplet that is no longer supported and doesn't quite work as well.

You can find the new version (1.4.1 beta) in the StackApplet PPA.

What are PPAs and how do I use them?


"Failed to import images from camera" in Darktable to NTFS drive

As was the case here: Ubuntu: Fail to open NTFS drives, I turned off Windows 10 Fast Startup and this fixed the issue.


How to resume/bring back to foreground X-session running in the background?

X sessions run on virtual terminals, F7-F12

When you start a new X session, although you might call it "1" or "2" or what not, they start on the next available vitrutual terminal.

Try locating your second X session on Ctrl Alt F8


Exception in thread "main" java.lang.NoClassDefFoundError: Finger

As discussed in comments...

Finger.java is a Java source code file. .java source code files cannot be run in that form; they must first be compiled.

As you've explained, Finger.java is intended to provide code that may be used as part of a Java program, and also is designed to function as a standalone application.

To use a class defined in a .java file in another program, it will have to be compiled, but this often need not be a separate build step from building your whole program. Typically, when you build your program, all the .java files in its source code are compiled. Integrated development environments like Eclipse ensures this happens, but you can do this from the command-line as well.

How you'll do it depends on whether or not you're using an automated build system (such as Ant or SCons). If you're not using an automated build system, you can still often build from the command-line with a single invocation of the javac command; the manpage for your javac implementation details how (run man javac). Since this is not the focus of your question, I won't go into any more detail here about how to build a Java application from multiple source code files.

Since any .java source code file will need to be compiled before it can be run, and you want to run Finger as a standalone program, you will have to first compile it:

javac Finger.java

Then you can run it:

java Finger

That's actually running the file called Finger.class that is created from compiling Finger.java with javac as detailed above. The java command cannot execute Java source code.


You should be able to connect and disconnect your USB keys using Virtual Box device menu.

You can also disable it from the command line like this:

VBoxManage controlvm "VMName" usbdetach usbid

or

VBoxManage controlvm "VMName" usbattach usbid

This should allow you to script it.


I can't find any snap app after I update the system

Canonical doesn't want users to discover snaps this way anymore.
snap find

now returns this error:
error: cannot list snaps: empty query

According to Canonical’s John Lenton:

“snap find” without arguments has not shown “all available snaps” in quite a while; it would show 100 arbitrary snaps. That is expensive and never what the user wanted, so in 2.11 we stopped doing that.
Having ‘snap find’ return all snap packages is expensive, both on server resources (to get, collate and serialise everything), network bandwidth (to transmit the dump), and client resources (to display all of that). It would also force us to support pagination of the store queries in snapd, and of snapd responses.

Workaround
snap find .

Explanation:
You need to pass an argument to the snap find command. The argument can be either the name of a snap package or a regular expression to return a list of packages matching the regular expression as in the above example command.


How do I revoke the default snakeoil certificate?

Given the extra information you've provided, it is probably easier for me to start another answer.

It doesn't appear that the dummy "snakeoil" certificate is being presented to the Windows client.  The "snakeoil" certificate is generated with a subject of CN=Ubuntu, while the certificate being presented to the Windows box has a subject of CN=Production.  So we're looking at a third certificate here.

I can see the same certificate if I connect to your server with OpenSSL's s_client:

$ openssl s_client -connect portal.avendimedia.com:443
...
Certificate chain
 0 s:/CN=Production
   i:/CN=Production
...

What I believe is happening is that you've configured your web server to use the Server Name Indication extension.  This extension is designed to let a server present different certificates depending on which host name the client wants to connect to.

This works fine in most modern browsers, but does not work in Internet Explorer on Windows versions prior to Vista.  At this point, it seems highly unlikely that Microsoft will update the SSL libraries on Windows XP to support the SNI extension.

If you need your site to work with Internet Explorer on XP, see if you can remove the references to this other SSL host running on the same IP address from your Apache configuration.


Same problem here ... I'm using dell xps14z

I got it partially working with 1360x768 and to make the changes permanent I added this lines to .profile hidden file like this:

gksu gedit ~/.profile

then at the end of the file I added:

xrandr --newmode "1360x768_60.00"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync
xrandr --addmode LVDS1 1360x768_60.00

  when I reboot I still get 640x480 in the login screen but after successful login I get 1360x768

Just to mention it: I got into this problem after trying to enable Unity 3D which I got using bumblebee


how can I set my ubuntu for flashing my android phone

You can not flash it to a android phone but you can emulate it with Limbo PC emulator.
It is available in play store.

OR

If you want to install ubuntu touch on your device then

follow this link:http://forum.xda-developers.com/showthread.php?t=2219740
Only 2011 Xperia models like Xperia Arc are supported and please specify the name of the device.


How can I implement full disk encryption for a disk containing Ubuntu with plausible deniability?

Check this out:

http://and1equals1.blogspot.ro/2009/10/encrypting-your-hdd-with-plausible.html

I don't see why you wouldn't be able to use the above tutorial but for an additional OS installed in the free space (under cryptsetup - as described in the tutorial - which does not create a LUKS header) left after installing your main decoy OS.


Using your example, open a terminal and do:

cd /home/bob
mv myfolder myfolder1
mv myfolder1/myfolder .
rm myfolder1

Or just cut/paste in a file browser.


I just dual booted 12.10 into my asus g74sx installed nvidia drivers and now I cant see the dash and pretty much anything HELP!

The same thing happened to me. I think it installs the 304 drivers, and they seem to have a few problems on some systems with some of the cards.  Uninstall the nvidia-current drivers: Open a terminal window by pressing CtrlAltt then type the following:

sudo apt-get remove nvidia-current

This will cause it to revert to the Nouveau driver module.  If you want to try an alternative Nvidia driver:

sudo apt-get install nvidia-current-updates

which worked very well for me.  If it doesn't for you remove that one as well:

sudo apt-get remove nvidia-current-updates

If you have trouble opening a terminal window above, try switching to a console with CtrlAltF2


My keyboard entry mode says it's Irish, but isn't

First run:

sudo dpkg-reconfigure keyboard-configuration

to reconfigure the console keyboard layout. Then run:

sudo dpkg-reconfigure console-setup


How to do file operations in Ubuntu on Windows with explorer?

So Jack Hammons, a program manager from Microsoft linked to this great official resource: https://blogs.msdn.microsoft.com/wsl/2016/06/15/wsl-file-system-support/

Problem is that I'm pretty much out of luck (a little edited from link above):

  While [WSL] files are stored in regular files on Windows in the
  directories mentioned above, interoperability with Windows is not
  supported. If a new file is added to one of these directories from
  Windows [WSL] simply ignores it. Many editors will also
  strip the [Extended Attributes, which are used for storing WSL metadata] when saving an existing file, again making the file
  unusable in WSL.

  Additionally, since [WSL] caches directory entries, any modifications to
  those directories that are made from Windows while WSL is running may
  not be accurately reflected.

So it seems even though I can see the files/folders in C:\Users\<username>\AppData\Local\lxss\home\, I should not interact with them with Windows.

On Symbolic links:

  While NT supports symbolic links, we could not rely on this support
  because symbolic links created by WSL may point to paths like /proc
  which have no meaning in Windows.

One question remains: When symlinking files from somewhere on /mnt/c/ everything seems to work fine from Windows as well as from WSL. So right now I have several folders symlinked from My Documents into my WSL home folder. Am I messing things up?

EDIT: Rich Turner was so kind to put this information in a semi-official blog post here https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/. Although not specified my symlinking idea actually seems to be a good way as the mounted NTFS partitions are treated differently.


How do I get redshift to start with my computer?

There is a known bug #868904 that stops Redshift starting automatically in 11.10 due to geoclue conflicts on startup.

See Comment #17 on the bug report for a possible solution of setting the location permanently on start up.

    1) Use http://itouchmap.com/latlong.html or any other service to find
    your latitude/longitude

    2) Adjust the startup command of redshift to:
    gtk-redshift -l <latitude>:<longitude>

    Example of latitude/longitude of Amsterdam for redshift: gtk-redshift -l 52.37:4.9

It is reportedly fixed in the package 1.7-1ubuntu2 but the Launchpad homepage for the project lists only 1.7-0ubuntu1 built 35 weeks ago.

You could try downloading direct from their website to see if it fixes the issue with a later version.


files created then deleted at every second in tmp directory

I suggest installing and running fnotifystat to detect the process that is creating these files:

sudo apt-get install fnotifystat
sudo fnotifystat -i /tmp

You will see process that is doing the open/close/read/write activity something like the following:

Total   Open  Close   Read  Write   PID  Process         Pathname
  3.0    1.0    1.0    0.0    1.0   5748 firefox         /tmp/cubeb-shm-5748-input (deleted)
  2.0    0.0    1.0    0.0    1.0  18135 firefox         /tmp/cubeb-shm-5748-output (deleted)
  1.0    1.0    0.0    0.0    0.0   5748 firefox         /tmp/cubeb-shm-5748-output (deleted)


Back up multiple hard drives to a folder on Google Drive?

Gnome Disk Utility

It is native to Ubuntu and can be used to create a whole disk backup. It is rather user friendly. It takes 2 clicks to create a whole disk backup. Top right the 3 lines:

and ...

an alternative would be clonezilla.

You can also do this from command line:

  dd

Warning: dd can and will happily destroy the location that is used as the output file. Without any warning. So before you do this make sure you have a emergency backup made. Example:

sudo dd if=/dev/sda of=/tmp/backup_sda.iso

would pick the whole of sda and put it in the outputfile. Add a digit to sda (sudo dd if=/dev/sda1 of=/tmp/backup_sda1.iso) if you want just a partition. And you can then upload it to google drive.

  tar

cd /
sudo tar -cpzf backup_sda1.tar.gz --exclude=/backup_sda1.tar.gz --one-file-system /

would make 1 compressed file of all your files. And, again, upload it to google drive.


xinput_calibrator : How is the calibration data generated?

This data is read from evdev. And, as this is an open-source project, we can even see the code!

In fact, the line that outputs this data is right here:

printf("\tSetting calibration data: %d, %d, %d, %d\n", new_axys.x.min, new_axys.x.max, new_axys.y.min, new_axys.y.max);

Now, the parent function for this (set_calibration) is called in finish_data. This, in turn is called by finish.

In short, it does some complicated scaling based on the screen size and the captured points, and then returns the parameter values for the valid X/Y range, which is the new defined "corner" of the screen.

Basically, it takes the average of all of your calibration clicks, determines the scaling, parses it into more scaling so that X can understand it, and then rounds it into "pretty" values. If needed, it will optionally reverse/swap the touchscreen calibration data in order to fit the touchscreen's setup.


It was a version problem. By installing the latest version that works.


Is swap area required? Can we install Ubuntu without a swap area?

No, you don't need a swap partition, as long as you never run out of RAM your system will work fine without it, but it can come in handy if you have less than 8GB of RAM and it is necessary for hibernation. For more information see this question: Do we still need swap partitions on desktop?

However, you can get around the 4 partition limit by creating an extended partition, and then creating a swap partition and a default partition (these "sub" partitions appear under the extended partition and are called "logical" partitions). This will be an option when you create your partitions in the installer. Check out this related question: My disk already has 4 primary partitions, how can I install Ubuntu?


I am not booting to the gnome desktop since upgrading to 16.04

Try this:
Start in text-only mode

Switch on your computer. Wait until the BIOS has finished loading, and press and hold Shift, which will bring up the Grub menu.
Select the line which starts with Advanced options.
Select the line ending with (recovery mode)
Press Return and your machine will begin the boot process.
After a few moments, your PC should display a menu with a number of options, including Drop to root shell prompt. Press Return with this option highlighted.
The PC will start in a terminal.

Run these commands:
Mount partitions in read-write mode
mount -o remount,rw /
mount --all

Update repositories
apt-get update

Install aptitude and deborphan
apt-get install --reinstall aptitude deborphan

Eliminate the components of ubuntu and unity that are not necessary in gnome
aptitude remove '?and(?reverse-depends(ubuntu),?not(?reverse-depends(?exact-name(gnome))))'

aptitude remove '?and(?reverse-depends(unity),?not(?reverse-depends(?exact-name(gnome))))'

Reinstall gnome-desktop
apt-get install --reinstall gnome

Eliminate orphan packages
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)

Remove unnecessary packages
apt-get autoremove

Remove downloaded packages
apt-get clean

Restart system
reboot


Does anybody know the name of this system monitor application?

It's conky, an system monitor for clients based in the X server. You can find more information in http://conky.sourceforge.net/.

It also can be installed using:

sudo apt-get install conky


How can window snap be enabled in Openbox?

I know I can do this with keyboard shortcuts, but not with the mouse unfortunately. I do not think the openbox configuration file have support for a "on drag" mouse event.

<keybind key="W-Left">        # HalfLeftScreen
    <action name="UnmaximizeFull"/>
    <action name="MoveResizeTo"><x>0</x><y>0</y><height>97%</height><width>50%</width></action>
</keybind>
<keybind key="W-Right">       # HalfRightScreen
    <action name="UnmaximizeFull"/>
    <action name="MoveResizeTo"><x>-0</x><y>0</y><height>97%</height><width>50%</width></action>
</keybind>
<keybind key="W-Up">          # HalfUpperScreen
    <action name="UnmaximizeFull"/>
    <action name="MoveResizeTo"><x>0</x><y>0</y><width>100%</width><height>50%</height></action>
</keybind>
<keybind key="W-Down">        # HalfLowerScreen
    <action name="UnmaximizeFull"/>
    <action name="MoveResizeTo"><x>0</x><y>-0</y><width>100%</width><height>50%</height></action>
</keybind>

If you want to do this with the mouse it will be a lot more tricky, but openbox does have mousebindings, but it does use the same actions. openbox does not really have a binding for dragging to one half of the screen though, so you will need to trigger it from something else.


How can I find out if a particular package has been updated (or not)?

There is a list of Updates in History tab in Ubuntu Software Center:

If you are interesed by a particular package, you can search for it:


How to install 32-bit Brother drivers on 64-bit Ubuntu 13.10 or later?

Run sudo apt-get install gcc-4.8-base:i386 libgcc1:i386 libc6:i386 to resolve dependancies and subsequent instructions to install Brother's official drivers should just work.


maybe the flash is not working or is not installed
but you can play it on mozilla firefox

if you do not have the firefox installed

sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
sudo apt-get update
sudo apt-get install firefox

Then close all browsers & install the flash plugin

sudo apt-get install flashplugin-installer

or

Install Fresh Player Plugin

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install freshplayerplugin


Can`t install python3-venv (unmet dependencies)

I may be wrong, but venv supposed to be in default Python distribution try to check it by running

 python3 -m venv

If it fails, you need to specify subversion of Python. If you are on Python 3.6, try to run

 sudo apt-get install python3.6-venv

If you are on Ubuntu 16.04, then by default you should have Python 3.5. Run

 sudo apt-get install python3.5-venv


You must escape any special characters comming from your read line. E.g if the $line contains any characters like / \ " { } ... your sed expression falls apart.

See this post for some escaping magic: https://unix.stackexchange.com/a/33005


Removing newer linux kernel and retain the older one

Since you installed the kernel manually, posting a link to what instructions you followed would be helpful.

To delete manually, you can run  ls -l /boot  . Typically the files would be:

abi-*
initrd.img-*
config-*
System.map-*
vmlinuz-*

Delete these files (corresponding to 3.16) and update grub.


How can I use a .ovpn file with Network Manager?

First, install the OpenVPN Network Manager plugin:

sudo apt-get install network-manager-openvpn-gnome

Open Network Manager, click "Add" and from the opened window select "Import a saved VPN configuration..." under "Choose a Connection Type". Navigate to your .ovpn file (~jrg/Documents/vpn-config.ovpn). If it doesn't automatically find your certificates/keys (the paths of which are found in the .ovpn file), you can select them here, or make any other small changes.

One other thing that may save you some headache down the road is to click IPv4 Settings, then change the method to "Automatic (VPN) Addresses Only". When kept at the default, this will cause ALL internet traffic to go over the VPN, regardless of your .ovpn settings. Here you can also set the DNS server and search domains to use while connected.


Open ${user.home}/.sqldeveloper/${sqldeveloper.version}/product.conf file and set appropriate value to the SetJavaHome Directive.


Make application / service priority really high

You can launch the Synergy command from the Terminal through nice, like so:

nice --adjustment=-20 Synergy [arguments]

When setting the adjustment parameter, a lower value means a higher priority.  Possible priority values are between -20 and 19.  You will have to make sure you replace the Synergy above with the correct path to launch it.


I just "fixed" it. I was running Ubuntu with my Nvidia Graphics card all the time. I switched back to the build-in Intel graphics with the Nvidia Control Center and rebooted. After this, the configuration of the kernel didn't hang and everything seems to work as normal.

So if you also have this issue, try to change back to Intel graphics before running dpkg --configure -a


How to access/delete a folder accidentally named with escaped characters?

A funny way to deal with that, using Bash: cd into the directory (that's easy).

Then we'll check that a control character is in the file's name: if you issue

printf 'strange: %s\n' *[[:cntrl:]]*

you should see your file there. If not, try to use another character class or modify the glob so that it matches your file name. (But very likely, you'll only have the bizarre one.) Then, three possiblities:

The previous command only issued your bizarre file. Then, easy, just rename it:

mv -nv *[[:cntrl:]]* a_less_bizarre_name

done!
The previous command issued several filenames with bizarre names. Then, rename them all as:

i=0
for biz in *[[:cntrl:]]*; do
    mv -nv "$biz" a_less_bizarre_name$((++i))
done

done!
The previous command output several names, but you only want to change one. In this case, we'll put them all in an array, print them all out with a number in front, and then we'll select only the one we want:

bizarre=( *[[:cntrl:]]* )
for index in "${!bizarre[@]}"; do
    printf "%s --> %s\n" "$index" "${bizarre[index]}"
done
# Then, look at the index of the one you want to rename
# If its index is 42, issue:
mv -nv "${bizarre[42]}" a_less_bizarre_name

done!

Note. If you use these commands, make sure you use them with the proper quotings (i.e., the quotings I gave). Do not alter the quotings!

Remark. You will very likely want first to issue the mv I gave with an echo in front, just to see what it'll do, e.g.,

echo mv -nv *[[:cntrl:]]* a_less_bizarre_name

and remove the echo when you're happy with it! Anyways, I'm using the -n switch so as to not overwrite an otherwise existing file. All these commands are rather safe if you use them as I typed them.

Good luck!


How can I connect via ssh to my ubuntu phone?

If your PC is running Ubuntu, try installing the package "phablet-tools" and then use "phablet-shell" while the device is plugged to USB. That should deploy a ssh key for you. After that, it should work fine with normal ssh and through WiFi too.


Different laptop models have different BIOS access keys assigned to them. If you can find your laptop manufacturer and model in this list, press the corresponding key while your laptop is booting up, before you reach the screen allowing you to select an operating system. If your laptop model is not listed on the above site, attempt performing a web search on your Ubuntu partition for your laptop model and the BIOS access key associated with it.

Once you reach BIOS, there should be a setting to change the boot order. Move hard disk drive (HDD) to the top of the list and you should be able to access Windows assuming your Windows installation is not corrupted.

Once again, the link for reference: http://en.kioskea.net/faq/4178-laptops-access-bios-settings-key


Try changing the compositor back to OpenGL in Sytemsettings -> Hardware -> Display and Monitor -> Compositor


Copying a file between two OS, if one OS is virtual

VirtualBox uses guest additions as extra tool to make working between a native and virtual machine easier. There are many howto's to be found, but this one worked for me some time ago:

HowTo


12.04 giving problems with IOGear GPSU21 print server

I have and use that very same print server. First, find out in the administration pages of your router the IP address of the print server. Set the router to reserve the IP address assigned so that the address doesn't change.

Next, I set up the printer with the Device URI of ipp://192.168.1.xx:631/lp1. Substitute the reserved IP address for 192.168.1.xx here. Then select the make, model and driver for your printer and print a test page.

A very few printers are subject to a bug: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/945028 If you get the mentioned error, then try the Device URI of ipp14://192.168.1.xx:631/lp1.

The lp1 part comes from the manual of the IOGear.


You will need gir1.2-gwibber-0.2 installed.

Here is a basic example:

from gi.repository import Gwibber
s = Gwibber.Service ()
s.send_message ("This is a status update", None, None, None)

Description of the parameters (which you can likely ignore):

"""
  send_message: Posts a message
  @message: The message to post to Gwibber as a string or None
  @id: The gwibber message id or None
  @action: The action or None (reply, private)
  @account_id: The ID of the account to post from or None
"""

And for a more detailed example you can see the tutorial.


How to stop the double cursor from appearing?

it's an old thread but if trying the code above, new gsettings is in this format:
gsettings set "SCHEMA" "KEY" "VALUE"

so will be the following:
gsettings set org.gnome.settings.daemon-plugins.cursor active false

i have always hated how gnome renders the double cursor or cursor over cursor.


The problem was in the the AP script. I have accidentally replace wlan0 with ap0

sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

Here are all the configuration files in case somebody needs to do the same thing :

https://github.com/ybouhjira/hostapd-configuration


Locate two variable strings and write one as a file

awk -F'"' 'NR==1 {fname=$(NF-1);} NR==2{print $(NF-1) >fname;}' file

Explanation

awk implicitly loops through every line of a file.  Each line is divided into fields.

-F'"'

This makes the a double-quote character function as the field separator.  Looking at the sample input, that means that the fields that we want will be the second to last on each line
NR==1 {fname=$(NF-1);}

The first line has the filename.  In awk, NF is the number of fields on a line.  So, $(NF-1) references the second to last field.  Its content is saved into the variable fname.
NR==2{print $(NF-1) >fname;}

The second line has the ID as its second to last field.  We print this ID to a file named fname.

Example

If the above code is run against the sample input, a file TestingFile.txt is created in the current directory:

$ cat TestingFile.txt
9B46BCAEDC9923

More complex input

Suppose that the input file looks like:

12:"content":"file;\r\n\tfilename=\"TestingFile.txt","date":"2014-10-23"}
13-"refid":"9B46BCAEDC9923","author":"Anon"}]

Since our data will no longer be the second to last fields, we need to change the awk code:

awk -F'"' 'NR==1 {sub(/.*tfilename=\\"/, "");fname=$1;} NR==2 {sub(/.*refid":"/,"");print $1>fname;}' file2

This code removes all characters before the filename (line 1) or ID (line 2).  Once this has been done, the information that we want will be in field 1.  The code is otherwise the same.


ubuntu hotspot wifi for captive portal and authentication via sms

To view the available versions of a package you can do:

apt-cache show <package_name>

In your case squid3 doesn't exist in a version < 3.2 in trusty.

You can, however, find an older .deb at http://us.archive.ubuntu.com/ubuntu/pool/main/s/squid3/ in particular the 3.1.19 version should satisfy your requirements, provided that it doesn't have dependencies itself which cannot be met by the trusty repos.


I see (judging from the folder name and path) you're trying to install Tor Browser from the WebUpd8 Tor Browser PPA. There's a bug in the PPA package which I will fix in a few minutes. So in about 30minutes-1hour, use the following commands to update Tor Browser

sudo apt-get update
sudo apt-get install tor-browser

Then it should work.


While trying to upgrade postgresql postgresql-10 I get libpq5 : Depends: libssl1.0.0 (>= 1.0.2~beta3) but 1.0.1f-1ubuntu2.26 is to be installed

So the reason it was not installing was because it was somehow trying to install versions which were not compatible with ubuntu 14.04 so I took the installed versions from a colleague and it worked.
The versions to install

libpq5:amd64 11.0-1.pgdg14.04+2
postgresql-client-common 195.pgdg14.04+1
postgresql-client-10 10.5-2.pgdg14.04+1
postgresql-10 10.5-2.pgdg14.04+1


CUPS is an acronym for Common Unix Printing System. So when a new printer comes out, it needs to be added to the database (one portion of the update). If it uses the same commands as a previous printer from the manufacturer, then the drivers are already in the database, otherwise new drivers are needed (second portion of the update).


What is the best config file for kernel compilation

Just steal the config file for the Ubuntu version of the kernel you want to build. For example, say you wanted to compile kernel 4.0 yourself. Go to the kernel PPA, get and install the kernel. Then from your build location do:

cp /boot/config-4.0.0-040000-lowlatency .config

where in my example, I have used the lowlatency kernel, you might use a different version.
Now, and this is very important, the Ubuntu default configuration file has all debug information enabled. Such a kernel will take at least twice as long to compile and be huge. Before you compile do this:

scripts/config --disable DEBUG_INFO

I compile kernels several times per week and have never run any make config stuff.


Short answer is no.  They do not plan to support any release beyond the EOL.

More information can be found here:  https://www.ubuntu.com/info/release-end-of-life


While executing, when JVM does not find a .class file with the specified name then a run time error occurs saying “Could not found or load main class”. The reason why this happens is mostly due to:

Wrong Class Name
Invalid Classpath
Wrong package

Main class could not be found when there is typo or wrong syntax in the fully qualified java class name or it does not exist in the provided classpath. You must ensure that you add the location of your .class file to your classpath. So, if its in the current folder, add . to your classpath. Note that the Windows classpath separator is a semi-colon( . If you want to execute the main() method in MainClass, you must use the full class name, including package name, in the java command.


How do i install a GUI for my Ubuntu Server 14.04?

I use Webmin it is a web-based interface for system admin on server. As it is web based you can access and manage you server from your ubuntu Desktop pc's web browser.

You can download and get install instructions from the website.

webmin

Hope it helps you as It did for me.


Most of the time, index updates in the mirror have replaced those files with newer versions before your local indexes have been updated, so the ones referred to by your out-of-date indexes no longer exist, hence a 404. In this case simply sudo apt-get update and then sudo apt-get upgrade or sudo apt-get dist-upgrade again and you'll be fine.

If pain persists however, then consider switching to another mirror.


Here is how. Open a terminal and type

sudo apt-get install erlang erlang-doc


I cant login in Ubuntu Server after passwd command

The password not showing is normal on a non-graphical login.

You can test that the keyboard types what you think it types by typing your password in as the login name.

Try searching for Authentication token manipulation error...


Try installing foo2zjs driver.
foo2zjs is an open source printer driver for printers that use the Zenographics ZjStream wire protocol for their print data, such as the HP LaserJet 1020 or HP LaserJet Pro M12a/M12w or HP LaserJet Pro 1102 or HP LaserJet Pro 1018.
Supported printers:
   HP LaserJet P2035
   HP LaserJet Pro P1606dn
   HP LaserJet Pro P1566
   HP LaserJet Pro P1102
   HP LaserJet Pro M12a
   HP LaserJet Pro M12w
   HP LaserJet Pro P1102w
   HP LaserJet Pro CP1025nw
   HP LaserJet 1022
   HP LaserJet 1022n
   HP LaserJet 1022nw
   HP LaserJet 1020
   HP LaserJet 1018
   HP LaserJet 1005
   HP LaserJet 1000
   HP LaserJet M1319 MFP
Download the driver. These two commands and the other commands that follow them are run from the terminal.
cd ~/Downloads
wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz

Unpack the driver.
tar zxf foo2zjs.tar.gz
cd foo2zjs

Compile and install it.
make
./getweb 1018

Install driver, foomatic XML files and extra files.
sudo make install

Configure hotplug.
sudo make install-hotplug

Restart the spooler.
sudo make cups

Create printer entries for your spooler.
system-config-printer


Integrate Dropbox and Ubuntu One in the same menu

Ubuntu One does not itself have an indicator. It integrates with the system sync indicator in Ubuntu.

To have Dropbox in there as well, Dropbox itself needs to also be changed to integrate with this indicator, rather than provide their own. You should report this as a bug against Dropbox upstream, for not integrating with the indicator.


How to resolve the DNS locally when there is a proxy configured?

This isn't possible when you use an HTTP proxy because:

The server you connect to is that of the proxy, not of the ultimate destination.
You send the full URL (including hostname) of your request to the proxy.  The proxy then does the request on your behalf.

Therefore, it must be the proxy that does the DNS lookup.

It isn't possible to do the DNS lookup locally, and send only the IP address to the proxy server. Firstly, there is no mechanism to specify that the proxy should try a particular IP address for a particular host. You could change the URL from, say, http://example.com/mypage to http://33.33.33.33/mypage, but then the proxy server won't know which hostname to request, an importanta part of the modern web (HTTP/1.1 and later), which depends on a Host header always being present in a request, removing the restriction that all hostnames be served from different IP addresses.

Your best bet would be to configure the proxy server to use the DNS resolver of your choice. This would only be possible if you use a local proxy server that you control.

Note: When you use a SOCKS proxy or another lower-level tunnelling method, you can use a local DNS server. Just not with an HTTP proxy.


I can not find /usr/share/php5/php.ini-development file

diff /etc/php5/apache2/php.ini /usr/share/doc/php5-common/examples/php.ini-development

If this command returns nothing, then your PHP uses dev configuration.

diff /etc/php5/apache2/php.ini /usr/share/php5/php.ini-production

If this command returns nothing your PHP uses production configuration.

If you want to use dev configuration,

sudo cp /usr/share/doc/php5-common/examples/php.ini-development /etc/php5/apache2/php.ini

If you want to use production configuration,

sudo cp /usr/share/php5/php.ini-production /etc/php5/apache2/php.ini


Use AMD/Intel switchable graphics program on specific programs like in Windows?

It should be possible with Catalyst Control Center:

To install open your Terminal and execute:

  sudo apt-get install fglrx

Then give a restart.

If you have trouble setting up visit Ubuntu/AMD Binary Driver Guide


You disabled Unity. If the window is still open, tick the box in front o Unity.
If not, switch to a terminal (CTRL+ALT+F1), login, type unity --reset and press enter. Then, for simplicity's sake, type sudo reboot, enter your password, and hit enter once more.
After it reboots, Unity should be fully functional again.


Change Context Menu option "Open in Terminal" of Nautilus to launch tilix In Ubuntu 18.04?

I am not using ubuntu at the moment, so I cannot double check. But if I remember correctly, I used this to change the default terminal emulator to Tilix.

sudo update-alternatives --config x-terminal-emulator


Cannot access disk partition (created by gparted) from windows 10

I would add this as a comment but I don't have the reputation.

Windows has a bad reputation with FAT and NTFS partitions created after or behind a non-Windows partition. I've found a comment from  that explains it well (https://superuser.com/a/613864):

  "The only other possibility that springs to mind is that this is a
  Windows bug -- namely, that it can't read a primary partition that
  comes after an extended partition. If so, the obvious (but awkward)
  solution is to delete the NTFS partition, use a Linux emergency disc
  and GParted to move your Linux partitions to the end of the disk, and
  to create a fresh primary NTFS partition that comes before the
  extended partition."

I hope it helps.


I found a hint to the solution in Ubuntu Forums, where a user sent a link to Gnome Developer Center explaining the configuration for Gnome Shell. My solution explains what to do for Unity.

You will need to install dconf-tools if you don't have it yet:

sudo apt-get install dconf-tools

Then run the tool (for example, pressing Ctrl+F2, then typing dconf-editor and pressing Enter).

Expand the key system on the left pane and click on the proxy key. On the right pane you will get the place to enter the list of ignored proxies (ignore-hosts).

In the key proxy and subkeys of it (ftp, http, https and socks) you can configure more proxy options that are not available in the new-shiny-but-almost-useless GUI.

Don't forget to log out and log in again to make the configuration active!

The only difference for Unity compared with Gnome Shell is that the keys to be modified for Gnome Shell are in the org.gnome.system.proxy key.


Copying and pasting from ubuntu thru putty to another computer

Have you tried CTRL + SHIFT + V ?

Alternatively, sometimes I paste via by right clicking and selecting from the context menu.


Eclipse on Ubuntu 12.04 - minimal c/c++ installation

This worked for me: installing eclipse on ubuntu
Good luck!


Full restore of home directory from backup

It's likely that the UID (the number behind your user name) has changed.

You'll probably need to find out the old UID (maybe it can be retrieved out of the backup somehow) and change your current user name's ID to the old number. Further information on how to do that is available in this question: How can I change my own user ID?


Starting Dropbox...Dropbox isn't running!

I have had the same problem when trying to run dropbox to a linux server.
What was strange is it only happened when I had X11 forwarding on from putty (yet i had not installed X on the machine...)

Try to have X forwarding disabled (on putty do not check the X11 forwarding), it worked for me...

One note: try to also run .dropbox-dist/dropboxd directly, it might give you some hint on what is going on, such as if it has not yet registered the device.


I had the same problem on 16.10 with Mate over XRDP. I initially fixed it by installing Firefox 51 like so:

$ sudo apt-get remove firefox
$ wget https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/ppa/+build/11952503/+files/firefox_51.0.1+build2-0ubuntu0.16.10.2_amd64.deb
$ sudo dpkg -i firefox_51.0.1+build2-0ubuntu0.16.10.2_amd64.deb
$ sudo apt-mark hold firefox

However I found the bug that is actually tracking this problem, here:

https://bugzilla.mozilla.org/show_bug.cgi?id=1345413

I was able to confirm that by setting the LOGNAME environment variable, the problem goes away:

$ export LOGNAME=$USER
$ firefox &

The bug is quite old (October 2016), but it appears recently to have been fixed upstream. The 52.0.1 release of Firefox on Ubuntu 16.10 does not contain the fix yet however, so for now manually setting LOGNAME is the way to get around the problem.


Where can I find statistics on package downloads and dependencies?

Debian has the popularity contest: http://popcon.debian.org/


Selective package updates through apt-get

I think that you were on the right track with pinning. I'm not sure if you need to be concerned about /etc/apt/apt.conf.d/01ubuntu. However, you should just be able to create it yourself if you really do need it. The apt.conf.d directory just gives you a place that you can add custom configuration directives.

You will probably be fine just following the steps for updating /etc/apt/sources.list and adding your package pinning information to a file in /etc/apt/preferences.d/99-file-name-of-your-choice. I think that adding the default release was just a precaution.


Installer Crash and "No Bootable Device" with Acer R11

In the end I found that I had to  install Ubuntu from a DVD, not a USB.

That worked perfectly.


How to tell if I am running the latest version of Ubuntu

The answer by @Kosmiczne_Konsoli will give you your current version. If you also want to check for latest version on ubuntu servers do:

do-release-upgrade -c

Upgrade:

do-release-upgrade

And If you want to upgrade to the latest development version (not recommended) you can also try:

do-release-upgrade -d

Before attempting upgrade check the community doc's for upgrading Ubuntu.


GRUB Customizer stopped working after kernel upgrade

Re-installing Grub Customizer might help.  To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install --reinstall grub-customizer


VDPAU errors in VLC with official nVidia drivers installed

You've been affected by this bug: https://bugs.launchpad.net/ubuntu/+source/libav/+bug/1374825 so the only thing for you to do is to subscribe to the bug list and whenever the bug is resolved, and the update comes in, the problem will go away all by itself...

If you don't want to wait, have a look here instead.


filename substitution -- is there something to make sure it is not a certain letters?

If you want to use globbing (it's not always a good idea), you can use:

$ ls -d !(*[qQ]*)

or with shopt -s nocaseglob:

$ shopt -s nocaseglob
$ ls -d !(*q*)

The -d option so as to not list the content of the matched directories.

For this to work you must have extglob set, it's probably the case by default. If not, shopt -s extglob will do.

A better approach would be to use find, as you'll be able to -exec some stuff on the matched files if you need (rename, grep, edit, etc...), and you'll have a much better control on what you need to match. An example:

$ find . -maxdepth 1 \! -iname '*q*' -type f

This will find all files (-type f) in current directory (.) not in subdirectories (-maxdepth 1) that don't (\!) have a q or a Q in their name (-iname '*q*').

If you have a huge number of files, find is better and faster than Bash's globbing, and won't overflow the maximal number of arguments.

Hope this helps!


Can write review on Ubuntu software center, for ClamTK

You might try removing it with synaptic, choose the "remove completely" option to remove all config files as well, then re-install. This should do the same thing:

sudo apt-get --purge clamav

When you remove via the software center, all the configuration files get left on your system, and when you re-install, they are still there. It's like you never removed it.

I'm not saying this is the problem, but it could be the problem.

[Edit] I don't believe either option removes config files in ~/ so you might try looking in your home directory as well for some .clam directory or file you'd want to delete as part of a purge.


How to enable automatic security updates on ubuntu 20.04

Go to Software and Updates and enable Livepatch.
Canonical Livepatch helps keep your system secure by applying security updates that don't require a restart.
Or you can use the terminal for security updates using the command:
sudo unattended-upgrade


I change the last line in /etc/passwd and I can't use sudo

You must NEVER edit your passwd file manually because you will mess things up.

The proper way to change your username is:

usermod -l newUsername oldUsername

Then change home folder:

usermod -d /home/newHomeDir -m newUsername

To change password you should use:

sudo passwd yourusername

I suggest you to revert your passwd file back, or if you can't edit it because you can not login with root - then boot with live cd and revert the file back. Then use the proper way.


I am also a HP 250 G3 user. Bluetooth driver present is Ralink rt3290. I successfully got my Bluetooth working using the module in the link below.

https://www.github.com/dineshraj01/rtbth-dkms

you need to compile it and install it using commands given below

make
sudo make install

Works like a charm for me.
Sometimes on restart bluetooth doesn't work.
you can simply remove and add the module again using the commands below and it will work.

sudo rmmod rtbth
sudo modprobe rtbth

You can also read the instructions on the github repo given :)


Device or resource busy errors when setting up a RAID array

Are the /dev/sdb1 etc.. mounted in /media or anything? Sounds like Ubuntu may have auto mounted it somewhere.

Also check out http://en.wikipedia.org/wiki/Mdadm the "Known Issues" section has a solution if the dmraid driver has taken control. (You get the same device busy error)


Cron jobs got executed, but it does not show any results at destination database

You have a mistake in your cron:

*/10 * * * * /home/dbase/Salesforce/InsertJob1

should be

*/10 * * * * /path/to/env/bin/python /home/dbase/Salesforce/InsertJob1.py

When you run code from the terminal in a virtual environment (if you're not using one, you should consider it), you run it as

python script.py

The cron runs in much the same way, except you should specify a path to your python executable that has the appropriate packages installed.

In general, while logging for a cron job, you should have some output written to the log files that tell you whether the appropriate parts of your cron have run or not. Just add a few print() at the right places, or use the python logging module for your script.


Nvidia driver installation keeps failing, diversion issues

Running sudo dpkg-divert --remove "/usr/lib/x86_64-linux-gnu/libGL.so.1" resolved my issue.

All thanks to @Terrance !


Pros/Cons GUID vs. MBR and NTFS vs. Ext4 on Portable External Hard Drives

GPT partitioning (what you call GUID) is newer and has some features that make it better than MS-DOS partitioning (what you call MBR).  For example you will need it for disks that are larger than 2 TiB.  But not all operating systems recognize it (especially older OS, like Windows XP, but linux distros from a couple of years ago too), and teh same is true for soem utilities, so using MS-DOS partitioning is better if you don't know beforehand what computers you need to connect to, or what applications you are going to use.

Similarly, when you need to exchange data with Windows or Mac OS X users sometimes, it's probably best to use NTFS or even FAT32.  Personally I solve this by having multiple partitions on my portable disk.  That way I can use the FAT32 partition for when I need to exchange files, and the ext3/4 partition for "personal usage".  If you only use them as storage for Ubuntu systems, I'd suggest you use a linux filesystem (e.g. ext3/4) because it will be faster & more stable.


You can place Grub, Ubuntu's boot loader, on any drive from which the BIOS can boot.

If Grub was set up correctly you can select any operating system on any drive connected to the computer. If that doesn't work please open a new question with the specific issue.


How to create a link to a file on a LAN?

I have no idea how this happened, but you got "Fraction slash" characters (Unicode U+2044) in your filenames:

smb:⁄⁄user@computer⁄path/
    ^^             ^
/media/user/windowsshare⁄path/filename.ext
                        ^

I noticed this cause the italic double-slash in your question looked weird: smb:⁄⁄

Only a "Solidus" (U+2f) is a valid path delimiter, so this command should work:

ln -s "/media/user/windowsshare/path/filename.ext"


Dell doesnt provide drivers for Ubuntu. But Ubuntu Supports for many printers including almost all the AIO printers (no additional drivers needed). Just need to configure the printer. To configure the printer follow this question.


Why are the extra buttons on my Logitech mouse no longer working under 20.04?

I did some tinkering and discovered that the hid_logitech_dj module is causing this issue. I disabled the module via adding hid_logitech_dj to /etc/modprobe.d/blacklist.conf and install hid_logitech_dj /bin/false to a new /etc/modprobe.d/logitech-mouse.conf file. Then I rebooted my system and everything works fine again!


How to verify if a exported gpg key is a public or a private one

Run on the command line:

gpg the-keyfile

With the-keyfile being the .asc (armored) or .pgp (binary) file. The output will either start with sec (secret available) or pub (public key only). This is a successful export of a secret key:

sec  [more key details]
ssb  [more subkey details]

And this for a public key:

pub  [more key details]
sub  [more subkey details]

Note that exporting the secret key also implies the public key (one can derive the public from the secret).


Ubuntu grub menu doesn't appear after installing windows 10

I solved the problem like this (Ubuntu was not deleted):

I installed grub2 on a usb following those steps here
I restarted my computer and pressed F9 to enter into the boot menu
I selected "Boot from usb" then the grub Terminal appeared
Enter the following commands to start Ubuntu
ls -l to see where Ubuntu is (hd1,msdos5) for my case
set root=(hd1,5)
linux /boot/vmlinuz-5.8.0-44-generic root=/dev/sda5 you can press tab after linux /boot/ to complete the command
initrd /boot/initrd.img-5.8.0-44-generic
boot
This will start Ubuntu
Once in Ubuntu , I used Boot Repair to fix the problem,
sudo apt install software-properties-common; \ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"; \ sudo add-apt-repository -y ppa:yannubuntu/boot-repair; \ sudo apt-get update; \ sudo apt-get install -y boot-repair && boot-repair .


Mouse moving and clicking on its own in 13.04

To be short; no this is not an Ubuntu-problem.

What can you do ?

do a fresh install of 13.04 (so avoid the problems one could have with an upgrade that went wrong)
check in a live mode if the touchpad does the same tricky thing as before with your installation as now. If this happens = your touchpad has issues (what I don't know this you have to deal with yourself (maybe some liquid on the touchpad .... ) )

No way this is a driver issue.

Succes !


You need to install the SIP wrapper before you install PyQt5.

Alternatively, the package python3-pyqt5 is in the repos.


How to get alert when the system goes down?

You can use ping. Although ping failure doesn't necessarily mean that your system is down, it can also happen if the network is down but I believe for most intents and purposes these are same thing. You can use following script

#!/bin/bash
HOSTS="cyberciti.biz theos.in router"

COUNT=4

for myHost in $HOSTS
do
  count=$(ping -c $COUNT $myHost | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
  if [ $count -eq 0 ]; then
    # 100% failed
    echo "Host : $myHost is down (ping failed) at $(date)"
  fi
done

This is from here. You can also setup a cron job for this or any similar script to ping all your servers after a regular interval.


When precisely will security support for Ubuntu GNOME 16.04 LTS end?

30-April-2019 for all GNOME related GUI parts, plus anything else from the 'universe' (or community-supported) repository.

End of April 2021 for all 'main' repository software, which includes kernel & some programs provided in Ubuntu-GNOME 16.04.

For more information on your actual install, please use ubuntu-support-status


You can remove the package light-themes in Ubuntu 11.10 to get right of these two themes.

As per the package description:

 Light Themes (Ambiance and Radiance)
 Includes matching Ambiance and Radiance themes

 * Ambiance is a light-on-dark theme
 * Radiance is a dark-on-light theme

 Introduced as the default themes in Ubuntu 10.04 LTS.

WARNING:

If you remove this package, please do it at your own risk. This will remove the ubuntu-desktop metapackage which is useful for updating from one 11.10 to 12.04

Geeky details:

manish@Blackbeast:~$  aptitude why light-themes
i   ubuntu-artwork Depends light-themes
manish@Blackbeast:~$ aptitude why ubuntu-artwork
i   ubuntu-desktop Depends ubuntu-artwork


I found the problem and a possible solution.
Simple dont install applications from snap store if you want to access NAS files directly or want to add extensions or extra scripts to applications.
That worked for me.
In ubuntu software you are able to choose the source that you want to install.


Cannot enter phpmyadmin as root (MySQL 5.7)

MySQL 5.7 changed the secure model: now MySQL root login requires a sudo.
I.e., phpMyAdmin will be not able to use root credentials.
The simplest, safest and permanent solution will be create a new user and grant required privileges.
1. Connect to mysql
sudo mysql --user=root mysql

2. Create a real password
In the below steps I'll use <please_replace_this> as a sample password. PLEASE, REPLACE IT BY YOUR PASSWORD! DON'T USE <please_replace_this> AS PASSWORD!
3. Create a user for phpMyAdmin
Run the following commands (replacing <please_replace_this> by the desired password):
CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED BY '<please_replace_this>';
GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

If your phpMyAdmin is connecting to localhost, this should be enough.
4. Optional and unsafe: allow remote connections
Remember: allow a remote user to have all privileges is a security concern and this is not required in most of cases.
With this in mind, if you want this user to have the same privileges during remote connections, additionally run (replacing <please_replace_this> by the password used in Step #2):
CREATE USER 'phpmyadmin'@'%' IDENTIFIED BY '<please_replace_this>';
GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

5. Update phpMyAdmin
Using sudo, edit /etc/dbconfig-common/phpmyadmin.conf file updating user/password values in the following sections (replacing <please_replace_this> by the password used in Step #2):
# dbc_dbuser: database user
#       the name of the user who we will use to connect to the database.
dbc_dbuser='phpmyadmin'

# dbc_dbpass: database user password
#       the password to use with the above username when connecting
#       to a database, if one is required
dbc_dbpass='<please_replace_this>'


lp/lpr color printing option and lines counter

I have had trouble printing in color with lp and lpr (especially with hp printers). It may be a driver issue, as some of the default drivers in Ubuntu have issues. Have you tried installing the manufacture's drivers? If this is an hp printer try installing the hp-lip package from the repositories.


Reports of Ubuntu working smoothly on HP Spectre X360 -- will it work on Spectre 13?

The Spectre 13 has well above the minimum system requirements for Ubuntu of any version (https://help.ubuntu.com/community/Installation/SystemRequirements) so the main thing you would want to worry about is your gpu.

However, the HP Spectre 13 has Intel HD Graphics, which I am also flawlessly using right now with Kubuntu 16.10 on my own Toshiba Laptop.

Most HP computers have an option to choose boot device, and I would think that this one is no exception.

Ubuntu also has the option to install alongside, so once Windows 10 is installed, just install ubuntu and the GRUB will allow you to choose which os to boot.


VirtualBox simulates a complete computer to the OS it's running. It uses a virtual solid disk (what you called 25GB VM), which is saved in a file on your real disk.

The Erase disk and install Ubuntu refers to your virtual disk, so your Mac OS will not be affected in any way. Ubuntu will be installed on this virtual disk and has no possibility to know what's going on on the "outside" - unless you use some interaction features, such as shared folders.

This is exactly the purpose of a virtual machine: To use any operating system without affecting the "host", the OS that's natively running on your computer.


Games by Feral renders everything as black, other games work just fine

Based on the hardware that you have here are some suggestions that might or might not help (Remember I have Nvidia and Intel, basically the opposite of you), but it's worth a shot at the expense of creating issues since some of the suggestions are in development:
Check out the notes for each game. For example if you look at Shadow of Mordor you will see this:

They mention Catalyst there because they are still talking about 14.04 and older version that used Catalyst instead of Mesa only at the time, but with the modern changes to Mesa for AMD, and the fact that you mentioned it was working correctly on 16.10, it means that things have improved a lot. Still, the note they leave is not to be taken lightly (Meaning that it might work, or might not). So with that said, here are the steps you could take if you want to.
Install a bleeding edge Mesa driver.
Add this PPA to your Ubuntu version (Oibaf's PPA):
sudo add-apt-repository ppa:oibaf/graphics-drivers

It uses the latest Mesa driver from Git, meaning you will get the latest update to it, along with getting a bunch of updates every day but also a bunch of errors. So it's risky.
Install the latest Stable version of Mesa
Safer than installing the latest bleeding edge one and you are able to test out the big changes applied to it. Coming from the 17.0.2 you have to the latest 17.2.4 means a lot of important performance enhancements. Get it by installing the Swat PPA:
sudo add-apt-repository ppa:ubuntu-x-swat/updates

After selecting either the Bleeding Edge one or the Stable one, you need to do a sudo apt update && sudo apt upgrade to upgrade your current Mesa to the latest one in said PPA. The Stable one was updated by the looks of it because Feral was asking for an updated Mesa version to test their games in. At the end you are ending up with Mesa 17.2 which brought tons of improvements for Ati graphics card.


I just encountered the exact same issue.

I achieved to make my dual screen working after typing the following command:

unity --replace &


Assuming you installed to $HOME/miniconda (adapt the paths to your exact setup!), for the conda commands to be found immediately after the installation you need to:

change your PATH variable to include $HOME/miniconda/bin

export PATH="$HOME/miniconda/bin:$PATH"

source the activation script called activate

source "$HOME/miniconda/bin/activate"

This will make it possible to execute conda commands without running a new shell. If you run the installer without the -b option it will add those two commands presumably to your ~/.bashrc, which is loaded when you open a new terminal (or start a new bash shell). Therefore a simple source "$HOME/.bashrc" might do the trick as well.

Source: conda.io


What microblogging clients are available?

Hotot
I've been using hotot, and I am very satisfied, because:

It's lightweight
It has preview for images
Threaded Conversations
Extensions Support (although there aren't any at the moment, AFAIK)
It just looks good

There are a few quirks, this client is new, but improving rapidly.
Add the 'ppa:hotot-team' ppa(see this for how to add a ppa) then install hotot via the software center.


Ubuntu won't boot after a power-cut during upgrade

You said your drive is mounted to /media/ubuntu/a293fd60-8bea-49cb-8f12-9cd4fe4d240b but you're trying to chroot /media/ubuntu/ and not to the drive.

So either

Try chroot /media/ubuntu/a293fd60-8bea-49cb-8f12-9cd4fe4d240b and edit all the other answer's mount commands to match
Or easier, just mount the drive to /media/ubuntu and follow the other answer's commands as-is.


How can I upgrade to systemd-241 in Disco?

Another option would be to recompile systemd-240 with the patch applied, assuming it cleanly applies to systemd-240.

If it is spossible, it is indeed simple. You just have to add your patch to the list of patch already used by ubuntu.


What is the Best way to use Microsoft exchange in Ubuntu 17.04

I find that Evolution with EWS Plugin works well with Microsoft Exchange.

sudo apt-get install evolution evolution-ews


Remote rsnapshot failing with "Permission denied" error

Ok, looks like I figured it out. Poking around on my laptop, I tried to run the rsync command (that rsnapshot would normally invoke over ssh) manually as the backup user and noticed I was getting permission errors locally as well.

It seems that even if you have the entry in your sudoers file to explicitly allow a user run a certain binary without a password, you still need to actually preface your command with sudo. (I'm on a macbook so I'm not sure if this is particular to OSX)

There didn't seem to be a good way to do this in rsnapshot.conf so I followed the instructions in this tutorial

I made a file on my laptop called rsync_sudo.sh and added the following:

/usr/bin/sudo /usr/bin/rsync "$@";

then symlinked it to /usr/bin/ and back on my server I added the following to /etc/rsnapshot.conf:

rsync_long_args         --rsync-path=rsync_sudo.sh --delete --numeric-ids --relative --delete-excluded

and now everything seems to be working


I placed:

options snd-hda-intel model=hp-dv5

options snd_hda_intel model=hp-dv5

In my /etc/modprobe.d/alsa-base.conf

I don't know which syntax is the correct one, but I left them both in for good measure.

I did NOT restore my heaphones option, however it did mute the speakers when I plugged in my headphones and that was good enough for me.


Youtube video plays on only one single tab in firefox

Thanks @Xen2050, the problem was due to the extension called "Youtube enhancer", it did not allow me to play two or more youtube videos simultaneously on different tabs.


Right click on desktop.It will give you an option Add widget
Click on it and it will open a pane at the bottom of your screen
containing all your widget.
From here you an add a widget by double clicking a widget.


I`m not a geek! I just want to share my experience. try stopping some services like network-manager! like:
sudo service network-manager stop
I could not change my mac... but after stopping network-manager I could change my mac permanently.
remember not to restart it, but to change settings during the stopped services!!!


Reusing encrypted home directory in a fresh system installation

Short:

The suggestion was wrong.
Ubuntu DOES take care of that automatically.

Long:

I mistakenly assumed that the problems described under the first link were happening despite using the same username and password combination.

It seems that some other combination was used, and a fresh install reuses encrypted $HOME quite seamlessly.

Encryption options will be disabled during the reinstall process:

Kudos to @Panther for showing me the thread about disabled encryption options in a comment below.


(JuJu) How to install "ubuntu-12.04-server-cloudimg-amd64.tar.gz" manually?

That vmlinuz file you see over there, is bootable. So you do not need to install. Just append it to a virtual drive.

Using Virtualbox, I think you could start using the OS immediately. It says "virtual" so you won't be able boot the OS without such third party app.

So no manual installation is necessary, because there is no installation at all.

EDIT: Answer to your first comment.

Use your image file in Virtualbox by opening the img file within Virtualbox.
According to the report, you've already chosen a couple of services. So you're better off asking whether you want to solve the Jojo error or install the OS manually because your question according to the title is the latter one, in which I already explained  its solution above. But if you want to solve the error, then the details are below.
Your error is: GZIP failed to extract your archive at line 33; saying "Unexpected EOF in archive". My guess is the file is corrupt. It is probable that you have failed to completely download the file due to some bad connection.

To check this, generate the MD5 sum of the file on your hard drive with the hash I found here. If they're not same, all you need to do is to retry the download.

So you last question was how to introduce it to juju; you need to solve this error beforehand by trying this solution out.

Hope this works out for you.


Failed to start saned.service: Unit saned.service is masked

I am not expert about systemd internal workings, but I was able to connect to scanner in this setup:

computer_A  ---network--->  computer_B with SANE  ---USB---  scanner

after running this (on computer_B):

sudo systemctl start saned.socket

It is probably the right way of doing it, judging by description here:
- https://unix.stackexchange.com/questions/159462/what-is-systemds-target-service-and-socket

And to make it start automatically on startup:

sudo systemctl enable saned.socket


How to play games on an ubuntu server but redirect all rendering to the client

I do not believe that what you are asking for is possible.  I have been researching various VNC and X11 remote gaming implementation for Ubuntu (18.04 if you are curious) and all implementations of X11 and VNC render ON THE HOST MACHINE, and then transmit the rendered data to the client machine.  Of the two technologies, VNC has been a better option so far.

as a side note, if you think about the transmission capabilities of PCIE versus monitor cables (even HDMI) then it becomes pretty obvious that transmitting the rendered image is far "cheaper" than transmitting the memory required to generate that image.


Prevent Nautilus / Nemo from creating .Trash-1000 folder in mounted devices

After looking at Nautilus's source code and Michael Stumpfl's answer  it becomes clear that trash folder creation, is something hard-coded in Nautilus's source code itself and is part of how libgio works - the library behind file manipulations in Gtk/GNOME applications. Therefore disabling such behavior is currently not possible without recompiling either the file manager itself or altering source code of the library ( which I wouldn't recommend doing, since other applications rely on it, so changes may affect other applications' behavior ).

Probably the best solution is to propose a feature request to Nautilus developers and wait until it is fixed. One could also resort to permanent deletion of files via Shift+Delete short cut or using command-line utilities such as mv (move to user's trash folder on / filesystem) or rm. Otherwise - switch to using different file manager for the time being.


I only get vital work as vst3 version in Ardour. lv2 - just freezes Ardour permanently trying to add to mixer stack...
Ubuntu 20.04


There is no way to find out you password as it is a hashed form of it.

If you really want to it would take stupid amounts of cpu and time.


Hard drive crashed while installing ubuntu 12.04 on a dual-boot that had Win7 + Mint 12

Wait! Don't reformat yet...

What probably happened is that Windows cannot see the ext4 partitions. Boot with your Ubuntu live cd and use Gparted. It should see the partitions. Use it to fix the Grub.

Let me know if it works. I'm writing like a bat-out-of-hell to keep you from formatting!


LUbuntu installed on USB flash drive won't boot

This is how I fixed the issue.  First, I booted to a Live USB image.  Along the way I found the switching between legacy boot and UEFI / Secure boot had a weird glitch.  I recalled that I originally ran the Live USB image in secure boot, but in legacy mode it still ran, but with a different looking menu.  But when I switched back to secure boot in anticipating of making Ubuntu work with that, my attempt to boot the USB flash drive initially did not work - at first it just ignored my attempt, then it rebooted back to the POST and tried to boot into windows.  On the third attempt it finally brought up the original LUbuntu menu and I was able to boot into Live mode.

Once booted I opened a terminal.  I installed and Boot-Repair with the following commands:

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

When boot-repair had started, I clicked on "Advanced options", and then on the "GRUB location" tab.  I found that there was already a "Separate /boot/efi partition" line referring to /dev/hda1.  After doing a bunch of research it appeared that it was okay to use the already existing Windows created partition, so I left this option checked.  It wanted me to disabled secure boot, but I ignored this and pressed on.  It then gave me some commands to copy/paste into a terminal. (I'm not sure why it couldn't run them itself...)  After letting them finish running I clicked to continue and got more commands to copy/paste.  When this was all done and boot-repair was finished, I rebooted.  Now when I go to the BIOS boot device list, there is a new "ubuntu" option - I have to select it instead of the actual device ubuntu is installed on, but it works and boots!

When I went back to boot into Windows, I discovered that ubuntu had been placed above the normal windows boot, so with the USB flash drive removed, it dropped me into Grub.  So I had to go into the BIOS to change the order.

(Note: When Windows started it wanted to go into automatic repair and claimed it may take over an hour to repair the disk, but after about 20 minute it was done and had booted successfully, after which I was able to boot back into LUbuntu)


This is normal functioning for a laptop. Remember that the external temperature of the laptop is not necessarily a guide as to the temperature of the CPU, and naturally manufacturers are cautious when it comes to keeping the hardware cooled!


Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00

There seem to be two problems. Read from the bottom upwards, the first problem seems that your kernel cannot start properly.

This may be very easy to workaround - simply select another kernel at the GRUB prompt (Alternative method).

The second problem is that you seem to have broken iptables, your system's firewall. This is indeed a problem, as it may prevent your system from booting properly. Happily, it also seems fairy easy to fix IF your system can be booted (see above):

sudo apt install --reinstall iptables

If your system still cannot be booted, then it looks to me that you have two choices:

Boot from a LiveUSB, chroot your system, and then reinstall the iptables package. This method is NOT for beginners, and makes sense for intermediate/advanced users with a LOT of customizations that they don't want to lose.
Boot from a LiveUSB, backup your data, and reinstall your Ubuntu system. for most newer users, this is going to be faster and easier.

We don't know what you did...but don't do that again.


How does sharing a file affect quotas in Ubuntu one?

Person A in your scenario would have no issue, as they do not own the share. Quota for shares is counted against the share owner. However, if Person B grants read and write access to the share, Person A can alter Person B's quota usage by uploading new files to the share.

But quota is always counted against the owner, not the recipient.


How can I export ubuntu terminal's profile in another computers?

Have you tried backing up the folder ~/.gconf/apps/gnome-terminal? You can  even try = but it's not the best solution - copying `/home/kostasz/.gconf/apps/gconf-editor.


Where to change password when browsing webdav shares with dolphin?

Open kwalletmanager. (Alt + F2 and type wallet). There you can manually edit the passwords. The fact that you are not prompted to enter new credentials is most probably a bug.


Is it possible to install Node.js and NPM on Ubuntu Core?

This worked for me.
I used the info here: Install applications in Ubuntu core

sudo snap install classic --devmode --edge

then

sudo classic

To enable aptitude, then your normal:

sudo apt-get install nodejs nodejs-legacy npm
sudo npm i -g npm

To get NPM to version: 3.5.2 and Node to: 4.2.6
Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':

sudo npm i -g n
sudo n stable

But as NPM doesn't work with this version of Node that's not happening.
I found this How can I update my nodeJS to the latest version? and used:

sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.
Then you can install git to clone your app or do whatever.
You've probably already solved your problem, but offering a possible solution in case anyone else is after one.


Can't find other port on ssh, other than 22 (i.e. - 23)

Looks like you are trying to access 2 devices remotely.
You maybe able to change the Port Forwarding in your router at home and open the fire wall.

Leave the Desktop as is I assume port 22 = 22.

For the Server pick any port then map it back to its IP on Port 22 on your home network.
So your router should have have incoming port mapped to IP address and port number in port forwarding section, if by any chance just have DMZ to open a computer to the Internet then you may need to buy a Gaming Router check port forwarding ability first before purchase.

You will also need your computers on Fixed IP's this is by raising the DHCP starting range slightly to allow it and set fixed ip's on computers, this so that normal devices still can get a automatic connection.


How do I disable the Unity keyboard shortcut overlay?

For Ubuntu 12.04 and below:
The keyboard shortcut overlay is controlled by an option in the compiz unity plugin.

In the experimental tab of ccsm you can untick the option shown.
Remember the use of CCSM is strongly discouraged - you can achieve the same via gconf-editor

untick the option shown in the path /apps/compiz-1/plugins/unityshell/screen0/options/shortcut_overlay


Assuming you're using the standard package for Ubuntu Web Browser, you can uninstall it by opening a terminal (press Ctrl+Alt+T) and running:

sudo apt purge webbrowser-app
sudo apt autoremove --purge


Ubuntu 14.04: Problems with nivida driver for Geforce GTX 965M

Try to add a kernel boot parameter reboot=pci to the Grub configuration. This solved the problem in my case.

To do this you need to edit the file /etc/default/grub and modify the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to include reboot=pci so afterwards you have for example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=pci"

After changing the file, run sudo update-grub then reboot for changes to take effect.


Where is my imported Windows account data?

I think you're suffering from this bug:
https://bugs.launchpad.net/ubuntu/+source/migration-assistant/+bug/987902

They seem willing to fix it, but in a new upcoming "point" release of 12.04, 12.04.1.

I suggest that you create a launchpad account (or login) and click "This bug affects you and 1 other person" > "Yes it affects me" to increase the bug "heat" (its "importance").


I deleted boot folder (grub rescue mode) + unable to boot from linux live (from usb stick)

You should create a new live-usb with Xubuntu 64 bits or some derivative of Debian 64 bits and try this:

Step 1: Boot into Ubuntu Live-Usb

Step 2: Open a terminal, Press Ctrl+Alt+T

Step 3: Login as user with administrator permissions.

sudo -i

Step 4: Find out how your partition / is called with fdisk.

fdisk -l

Step 5: Suppose it is /dev/sda1, mount the partition in /mnt, previous fsck

umount /dev/sda1
fsck -a /dev/sda1
mount /dev/sda1 /mnt

Step 6: Mount the following paths in the respective locations in the /mnt
namely – /dev, /sys, proc, and devpts.

mount -o bind /proc /mnt/proc
mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
mount -o bind /dev/pts /mnt/dev/pts

Step 7: chroot into the Ubuntu partition

chroot /mnt

Step 8: Create /boot folder an instal linux kernel and Grub2

mkdir /boot
apt-get update
apt-get install --reinstall linux-headers-3.13.0-83 linux-headers-3.13.0-83-generic linux-image-3.13.0-83-generic linux-image-extra-3.13.0-83-generic grub-common grub-pc grub-pc-bin grub2-common
grub2-install --root-directory=/mnt /dev/sda

Step 9: Un-mount the previously mounted directories and reboot.

umount /mnt/proc
umount /mnt/dev/pts
umount /mnt/sys
umount /mnt/dev
umount /mnt
reboot


sudo ntfsfix /dev/sda5 : I fired this command and the boot sector of my drive got corrupted?

I would suggest you create a boot able USB of Ubuntu image.
Then boot into live USB install boot-repair and run boot-repair as a root user. After that select recommended repairs.
If this doesn't work then try to install test drive (bootsectorfix).

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

Test-drive:
https://help.ubuntu.com/community/BootSectorFix


How to create a tar.gz package to upload to your ppa

You don't put compiled binaries in the tarball (tar.gz), just the source code. Then use the debian packaging helper scripts to create a debianized singed source package (command would be debuild -S IIRC) and upload the dsc file to the PPA. Launchpad will then build the actual debian packages with binaries and the correct directory structure depending on the configuration. To not stress launchpads resources more than neccessary you should try pbuilder first on you local machine. The Ubuntu wiki has a complete packaging guide and more on that topic.


Try keryx portable  It works in ubuntu 12.04

Download keryx portable
Extract the Downloaded file
goto ../Downloads/keryx_1.0-public21_portable/bin
Double click on keryx.py and choose run/run in terminal


What does the Ubuntu Firefox Modifications extension to firefox do?

It came with xul-ext-ubufox :

  Ubuntu-specific configuration defaults and apt support for Firefox.

  Adds Ubuntu-specific modifications to Firefox.

  Integrates the browser with Ubuntu to:

  Enable searching for missing plugins from Ubuntu software catalog
  Add the following options to the Help menu:

  Get help on-line
  Help translating Firefox
  Ubuntu Release Notes

  Set homepage to Ubuntu Start Page
  Display a restart notification after upgrading Firefox
  Add ask.com to the search engines.

  You can uninstall this if you prefer to use a pristine Firefox install.

Homepage: https://launchpad.net/ubufox


Easy way to check installed software and configurations?

You can use the following command to find the installed software or packages:

$dpkg --get-selections

If you want to specific installed package or software then you can use following command:

$dpkg --get-selections | grep <package/software name>


12.04 - Screen glitches / freezes after "Lock Screen"

Edit: I wrote a script that works around it by detecting the screen state and automatically switching virtual terminals (same as a manual Ctrl+Alt+F-key sequence) at the right time. Try it out and let me know if it works. I don't use lightdm but maybe we can figure out a way to patch it in. You can get it on GitHub and follow the instructions to use it:

https://github.com/appleYaks/switcher

Old method: only works on laptop lid close.

If you're on a laptop, you can make the machine switch ttys automatically when you close and open the lid. This is how I fixed it. I'm not running Ubuntu, so YMMV:

Edit the file /etc/acpi/lid.sh and put the commands chvt 1 and chvt 7 in the right places.

grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
    . /usr/share/acpi-support/screenblank

    # this is the line we add to switch to tty1
    # when the laptop lid closes
    chvt 1

    if [ x$LID_SLEEP = xtrue ]; then
        pm-suspend
    fi
else
    # this is the other part of the pair,
    # that switches back to tty7 when the lid opens again
    chvt 7

Those two lines with chvt are the only changes to the file. I haven't yet found a way to fix it when the screen shuts off when idle, but I'm happy with this for now.


As discussed in the comment, I post the answer.
To solve the tearing problem, add this following command to be run at startup:
nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
To do so, you can search for 'Startup Applications Preferences' and add the command to startup commands by pressing the Add button, pasting the command in the Command field (you can add the name you want in the Name section) then press Add.

Or you can add that command to your Crontab by:

Run crontab -e on the terminal.
If it is the first time you open Crontab, you'll be asked to choose an editor, choose nano for example (which is number 1) then press Enter.
Add the following line to the end of the file: @reboot nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
Save using Ctrl + O and exit.

In order to make the changes effective, you should reboot your computer (for both methods).

If the tearing problem still persists even after applying the steps above, please do the following:

Install compton using sudo apt install compton compton-conf
Add compton to be run at startup following one of the methods already described.

If it the screen is still tearing:

Add compton.conf to .config folder by running: touch ~/.config/compton.conf
Add compton --config ~/.config/compton.conf

And restart your computer.

CREDITS: Fix Screen Tearing in Linux with Nvidia Graphics


Installing Armory on Ubuntu after installing Bitcoin

It doesn't sound like you have actually installed armory. Typically you need to run sudo make install to install it. After that, according to the armory docs it sounds like you can just run armory to launch it. Hopefully that helps.


Where are Google Chrome 'open as window' shortcuts stored?

These applications come up in app list as they are also stored at
~/.local/share/applications/
other than desktop.
Chrome Apps are internally consistent with Chrome Extensions, so you will find those app files in
~/.config/google-chrome/Default/Extensions/
where Default is the profile. You will find chrome apps and extensions here with in app-id folders. I believe you can backup this folder to migrate or as a fail-safe, you could backup the whole profile Default.