I downloaded the desktop 18.04 LTS and it doesn't work?

these two icons prompt you to touch "any" key (e.g. the spacebar) in order to set your language and keyboard layout. If you do nothing the file system will be checked, then it will start.
Obviously that did not happen. You did not write, what kind of hardware you have, (would be great if you'd provide ALL information and not just tiny bits) but it seems to be something that ubuntu can't cope with. So I'd do the follwing:

Start again and touch the keyboard when you see the two icons
Select the Language you understand/want
Press F6 Function key -> a menu pops up:

Select nomodeset by selecting it an hit the "Return"(that means: don't try to load anything, just get it running). A "x" should appear in front of "nomodeset"
Press "ESC"
Select "Try Ubuntu without installing (safe graphics)

The last point only, because you did not tell us, what kind of hardware you're using.
So it would be great (and fair to those who try to help) to tell us, what hardware you have, how you created that usb stick and specify what happend before you had your window problem....

When you selected that entry something should happen. Describe it - exactly what you see. Do not hesitate to take pictures of your screen and paste them into your question - which you can edit to add more information.... and change your title. Its 18.04  not 12..

(This should've been a comment - but I don'know how insert images into one. )


Unable to click in Windows install of 12.04

If you're talking virtual machine, you can't really rely on the experience. Wubi however should behave just as a "full" install. Have you tried looking for drivers etc.? Try System settings -> Additional Drivers or check online directly querying for your product.


Ubuntu 16.04 with external 2560 x 1440 often blacks out

My problem was caused by somehow bad hdmi cabel. Other laptops with windows had no problem, just ubuntu at specific tasks. Anyway, hdmi cabel is to be blamed.


I am getting this error when using apt-get command

are you root?

Did you run the command with sudo before apt-get? Sudo allows you to launch commands with root privileges, which are needed to manage programs.

Your command should look something like this

sudo apt-get install

or

sudo apt-get remove


Is it possible to consistently integrate Kontact in gnome?

I have never had much success in making KDE apps look integrated into the GNOME desktop. The problem is that the desktop environments use different toolkits (KDE uses Qt; GNOME uses GTK). Each toolkit has its own quirks.

I'm afraid the answer is probably no.


Ubuntu fails to boot after attempting to install Nvidia driver

This procedure has worked for me.  A quick attempt to validate that nvidia-390 was the proper driver for your card resulted in a finding that nvidia-384 might be the proper one.

sudo apt-get purge nvidia*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-390 nvidia-settings

Then restart your system.

If this does not work, I would repeat, replacing nvidia-390 with nvidia-384.


My Laptop (Alienware M17x R3) keeps overheating on 14.04 (LTS) while W7 keeps it cool

Use top to identify processes which are consuming power. You can also install powertop for power consumers. If there are none, try using laptop-mode-utils:

sudo apt-get install laptop-mode-tools

Then edit the file  /etc/laptop-mode/laptop-mode.conf and set this:
BATT_CPU_MAXFREQ=medium
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=powersave
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=performance
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=performance
NOLM_AC_CPU_IGNORE_NICE_LOAD=0

To check the actual temperature of youre chipsets, do sudo apt-get install lm-sensors, then sudo lm-sensors, when asked for automatic module load say yes, and restart for the modules to be loaded.

Then just type sensors into a terminal to see your chipset temperatures.


Nvidia 384.111 driver upate: Login/password prompt disappears

First of all make sure to get access to a root shell;

Pressing ESC as the computer BIOS screen closes, some say that holding a SHIFT key also works, to get access to the grub boot menus. In there you can navigate to an option that reads "recovery console" - and press RETURN to run it.
(at the recovery console, select to run fsck and then activate networking, before dropping to root shell - press enter one extra time to actually get the shell prompt! - this is the easy way, you don't have to remember any commands to get through)

Alternatively you might have luck and get a text mode login prompt if you press CTRL+ALT+F1 during the text mode boot (press esc to reveal it)... before the login gui appears. You will probably have to be quick to succeed with this though.

After login from text mode prompt; type these commands and keep an eye open for error messages. If something fails here, I suggest using a text mode browser (links, lynx, ...) to google the error(s).

Here is what I did to get back to a GPU-driven GUI:

When checking with dpkg --list | grep nvidia it did show:

ii  nvidia-361
367.57-0ubuntu0.16.04.1                      amd64        Transitional package for nvidia-367 ii  nvidia-367
375.66-0ubuntu0.16.04.1                      amd64        Transitional package for nvidia-375 ii  nvidia-375
384.111-0ubuntu0.16.04.1                     amd64        Transitional package for nvidia-384 ii  nvidia-384
384.111-0ubuntu0.16.04.1                     amd64        NVIDIA binary driver - version 384.111 rc  nvidia-opencl-icd-361
367.57-0ubuntu0.16.04.1                      amd64        Transitional package for nvidia-opencl-icd-367 rc  nvidia-opencl-icd-367
375.39-0ubuntu0.16.04.1                      amd64        Transitional package for nvidia-opencl-icd-375 rc  nvidia-opencl-icd-375
384.90-0ubuntu0.16.04.1                      amd64        Transitional package for nvidia-opencl-icd-384 ii  nvidia-opencl-icd-384
384.111-0ubuntu0.16.04.1                     amd64        NVIDIA OpenCL ICD ii  nvidia-prime
0.8.2                                        amd64        Tools to enable NVIDIA's Prime ii  nvidia-settings
361.42-0ubuntu1                              amd64        Tool for configuring the NVIDIA graphics driver

Which shows a hive of different nvidia drivers all installed at the same time... I went on with uninstalling all of them, and then attempt to reinstall the previous version:

sudo apt purge nvidia*
sudo apt autoremove
sudo apt autoclean
sudo apt install nvidia-375 # makes 384.111 emerge *sigh*

... but as you see in the comment; that still brought in the "latest and greatest" version.

Instead of giving up at this point, I gave it a try...

sudo reboot

... and the login prompt came up!

Now, leaving it like this might have disable auto-updates, (as the nvidia-375 package was specified explicitly). That remains to be seen though.


Why does the Screen momentarily go dull and the open windows get unresponsive?

This is where a process is happening that is taking some time to complete. It does this to prevent further actions being taken, the window becomes unresponsive. It is normal for this to happen. It may be that you could do with a faster computer or some optimisation. It depends what you have running at the time and if this happens with one program in particular, such as eclipse (optimisation of the config file usually helps with quite a bit). You can always run a system monitor whilst performing these actions to see what process is causing this extra load. Keep an eye on CPU and memory usage for each process. You can do this from a terminal window by running the top command.


Desktop icons are disabled in recent Ubuntu releases. To enable them, you need a third party tool, such as unity-tweak-tool .

To install via command line the command is:

sudo apt-get install unity-tweak-tool

To use Unity Tweak Tool to change your desktop icons, run Unity Tweak Tool, and then click Desktop Icons:

Then choose those you want to display:

You can also use Ubuntu Tweak for this. See here for instructions on how to install Ubuntu Tweak.


Openstack juju charms test suite not running

We really appreciate contributions and we are happy to help guide developers toward a successful code merge.  Unit test and Amulet test coverage are indeed going to help speed up the review process.

I can confirm that the issue that you described is a known issue.  We have merge proposals in flight to address those amulet test dependency issues ahead of the 15.10 OpenStack charm release.  In the mean time, Amulet test dependencies can be satisfied by editing the 00-setup file to make it look like the proposed 00-setup file.

To ensure a smooth review and landing of amulet test contributions, proposed amulet test additions should be in the form of new idempotent test_ methods in the tests/basic_deployment.py file.  Each test_ method is exercised against and is expected to pass for all currently-supported Ubuntu + OpenStack combinations, regardless of test_ execution order.

The Ubuntu Cloud Archive page provides a chart which describes which combinations are supported at any given point in the release timeline.

To ensure a smooth review of added hook features, corresponding unit test coverage should be included so that those code features can be validated.

On the broader topic of contributing to the OpenStack charms in general, the OpenStack Charm Development Policy is worth reviewing.

Specifically, any proposed changes should be made against the "next" (development) charm branches, and not against the trunk or stable charm branches.  In the case of neutron-api, that next branch would be:

lp:~openstack-charmers/charms/trusty/neutron-api/next

Thank you and feel free to reach out here, on freenode #juju, or on the Juju mailing list.


Ubuntu 18.04.1 freezes when connecting to a second screen

So, the issue is in the 4.15.0-44-generic kernel and has been solved in the 4.15.0-45-generic. To manually update, run:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

And that fixes it.


ImportError:cannot import name '_gi' while trying to add any PPA repository

Sounds like your system might have issues choosing the correct Python version.

Try editing the file /usr/bin/add-apt-repository and changing out the line #!/usr/bin/python3 with the specific version of python, in your case:

#!/usr/bin/python3.8

Alternatively see if you have an older working version of python installed that you could use instead:

ls -al /usr/bin | grep python

look for other versions, like python3.5 or python3.6 and try replacing the #!/usr/bin/python3.8 with the apropriate version number.


Ubuntu 16.10 won't wake up after suspending

This is what I discovered on two computers, one with Ubuntu 14.04 and another with 16.04.  If there is a drive installed that is not enabled in the CMOS settings OR if there is a drive or device missing from the unit and it is enabled in the CMOS then Ubuntu will not recover fully from suspend. I have no idea why this happens but both computers would not recover.  One had a SATA drive installed and not enabled in CMOS while the other had an optical device enabled that was not installed.  Fixing the CMOS settings in both instances fixed the problem.


Can I look at the upgrade log after a distribution upgrade?

Found it in the end - should have looked harder before asking the question. Anyway, it is in /var/log/dist-upgrade - quite a bit of info in there. In my case:

$ ls -l /var/log/dist-upgrade/
total 1984
-rw-r--r-- 1 root root 598030 May  3 20:01 apt-clone_system_state.tar.gz
-rw-r--r-- 1 root root 308107 May  4 08:56 apt.log
-rw-r--r-- 1 root adm  514929 May  4 09:01 apt-term.log
-rw-r--r-- 1 root root 103992 May  4 08:57 history.log
-rw-r--r-- 1 root root   2526 May  3 20:01 lspci.txt
-rw-r--r-- 1 root root  72747 May  3 20:31 main.log
-rw-r--r-- 1 root root 401853 May  3 20:30 term.log
-rw-r--r-- 1 root root     74 May  3 20:30 xorg_fixup.log


With the information you provided, I can only guess. This can happen for any of three reasons:

Reason # one:

There is a duplicate IP to the server's IP. Please check your network IPs and make sure to fix the duplicate IP by changing it to something different.

Reason # two:

The server is out of range for the client machines because of one of the following:

Multiple vlans are configured on the switch and the server is on a different vlan than the client machines. Please check if vlans are configured on your switch and make sure the server and the client machines are on the same vlan.
The subnet masks for the server and the client machines do not match. For example the servers subnet mask might be 255.255.0.0 while the clients subnet mask might be 255.255.255.0. Please check the subnet masks on the server and the client machines and make sure they are all on the same IP class and the same subnet mask.

Reason # three:

There is some sort of security device in between the server and the client machines for example a firewall a proxy or an antivirus... etc ( wireless access points with ap isolation enabled included ). Please check and make sure nothing is blocking or interfering with the connection between the server and the client machines.

Best of luck.


I just installed the GMT package from synaptic, but none of the command can be found

The gmt package seems to provide the file you want, but it's not in the standard $PATH.

To use it, you'll need to use the full path like so:

/usr/lib/gmt/bin/minmax file.txt

reference

If you want to edit  your $PATH, you can  put this into .profile or somewhere else:

export PATH="$PATH:/usr/lib/gmt/bin/"


I finally got it to work! and It was really easy!

just from additional drivers I didn't download the proprietary driver for Nvidia and used the open source option available.

then from the settings I get all the things I wanted to adjust.

for brightness I haven't found anything inside the system settings, I just downloaded the app "Brightness Controller" and I user that (which is not really helpful, but does the job)


Download Ubuntu 11.10 for Dell Vostro 3360

You have a few different options.

As fabricator4 mentions, you can contact Dell and ask if they have any available for purchase.
You can build your own, following the instructions on Dell's support page explaining the process. Ubuntu 11.10 images are available here.
You can just install any current version of Ubuntu normally. You don't need to do anything special, it's just a laptop. 12.10 is the most recent version, but 12.04 is also current and has long-term support. Both are available on the Ubuntu.com download page.
If your goal is to preinstall Ubuntu in preparation for selling or giving away the computer, you can do what is called an OEM install, explained here.

Your best solution is going to be either #3 or #4, as they are free and use current versions of Ubuntu.


Is there a way to backup your package configuration?

Configuration for your applications will be in folders whose names start with a dot, in your home folder.  Backing those up may be advisable, especially if you want to revert to Precise, as config formats may change in newer packages, and things.

System-wide configuration is in /etc.  Ditto.

You can back up your package selections with dpkg --get-selections > /path/to/backup/file and restore them with dpkg --set-selections < /path/to/backup/file && sudo apt-get install, but note that you'll also need to backup several files from /etc/apt if you're using any non-default repositories.

EDIT: If you don't have somewhere to do backups to, or you want to revert your system to exactly the way it was, package-versions and all, you have the following options (copied from my comments on the question):
For the release upgrade, there's the --sandbox flag for do-release-upgrade, which (AIUI) puts the changes in an aufs tmpfs, so you can roll it back without trouble. There may be a way to do this with the later apt-get upgrades: Remount your partitions as aufs or overlayfs (overlayfs is meant to be without some problems aufs has, but Ubuntu didn't consider it stable enough to use it by default, so that may be a consideration) bases and use either tmpfs (if you have a lot of RAM) or a spare partition as the writable overlay before doing the upgrade. I don't believe there's really anything simpler, but I could be wrong.  More information on this at this page - it's geared to USB Flash devices but should be useful even on "proper" hard drives.

If you choose certain filesystems at install time, you may be able to produce copy-on-write snapshots, enabling you to roll your entire system back to precisely its previous state.  Note, though, that the only fs I know to be able to do this is btrfs, which is very slow to run package-management on, because dpkg uses lots of fsync(), which is slow on btrfs.  This can be overcome by installing and using the "eatmydata" package, but that will make your system a lot harder to recover if it crashes or loses power in the middle of package-management operations.  Other filesystems may have the same snapshotting capability; you may want to research this.


No way to show seconds in Gnome Classic clock

This is an unusual issue - for myself, this works using dconf-editor
dconf-tools

Possibly you need to reinstall the package indicator-applet-complete
sudo apt-get purge indicator-applet-complete
sudo apt-get install indicator-applet-complete

logout and login and then use dconf-editor as described above.


debian packaging: forward-port a package from xenial to bionic

I achieved this by using the "copy package" feature in launchpad.net.  When you copy a package you're able to specify the distro version as target.  I was never able to "cross build" a package from one distro version to another locally.


Ubuntu Phone - both SIM cards always active?

No, you cannot.  But you can unplug the SIM card when you don't need it and re-insert it when you do...

(Hardware solution to a software problem)


You are using lvm so you can use the lvcreate command to create a new logical volume, then format it and mount it in a location of your choosing.  Or you can just enlarge the size of your root volume wtih sudo lvresize -L +50G mona-vg/root and sudo resize2fs /dev/mapper/mona--vg-root.

Or ... id your Volume Group

$ sudo vgs
VG      #PV #LV #SN Attr   VSize   VFree
mona-vg   1   2   0 wz--n- 237.76g 191.20g

And then id your logical volumes:

$ sudo lvs
LV     VG      Attr      LSize  Pool Origin Data%  Move Log Copy%  Convert
root   mona-vg -wi-ao--- 38.74g
swap_1 mona-vg -wi-ao---  7.82g

And then add a new logical volume with

$ sudo lvcreate --name music --size 10G mona-vg


How to install Totem 3.2 in Ubuntu 12.04?

http://dxdown3.onlinedown.net/down/totem-3.2.1.tar.zip
You can try this.But it will download slowly.


Python 2.7 is not installed in Ubuntu 20.04 by default, but it can be installed from the terminal. Open the terminal and type:

sudo apt update
sudo apt install --install-suggests python2.7 python-pip python-pytest

For Python 3.x:

sudo apt install python3-pip python3-pytest

Example

The first file is the file which should be tested.

fibonacci.py:

def fib(n):
    old, new = 0, 1
    for _ in range(n):
        old, new = new, old + new
    return old

This file will be used by 'pytest' to test fibonacci.py:

test_fibonacci.py:

from fibonacci import fib
def test_fib():
    assert fib(0) == 0
    assert fib(1) == 1
    assert fib(10) == 55

Change directories with cd to the directory that contains fibonacci.py and test_fibonacci.py.

Results of pytest:

============================= test session starts ==============================
platform linux2 -- Python 2.7.17, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /home/karel/Desktop, inifile:
collected 1 item

test_fibonacci.py .                                                      [100%]

=========================== 1 passed in 0.04 seconds ===========================

Source of example code: Python Tutorial: Testing with Pytest


I am unclear on this: Are WUBI Installations actually supported on Ubuntu 14.04?

Thank you to Bodhi.Zazen for pointing this out:

Windows installer for Ubuntu 14.04 LTS onwards

Quote:

  Support for WUBI has NOT dropped; it is no longer the preferred method though since Windows 8 does not play nice but if you have Windows 7 or older (excluding Windows ME) all you need to do is copy the installer from the ISO and it will install.


can x11vnc be used on cloud servers without a "real" display

I think what you want is Xvnc.  It's an X server that displays to VNC instead of a monitor.
http://manpages.ubuntu.com/manpages/trusty/man1/Xvnc4.1.html


Is gstreamer the best encoder for vorbis or is there a better encoding engine I should use?

Some people prefer an AoTuV tuned oggenc & in some cases the shared vorbis libs.

If you're on 11.04 or higher it's quite simple in a number of ways, eariler than 11.04 requires some workarounds.

This thread in UF concerns this over a period of time, there are methods for 10.04 thru 11.10 though 10.04 & 10.10 haven;t been updated for current AoTuV

http://ubuntuforums.org/showthread.php?t=1137670

For the moment just concerning 11.04/11.10 & probably 12.04

The easiest method is in post 40, it builds new shared libvorbis* & replaces your current ones in /usr. You can use your current oggenc & likely a gstreamer encoder thru libvorbis*. Very simple to do.

An alternate method is to build a static AoTuV to /usr/local & then also build vorbis-tools off of it. This provides an oggenc that has built-in AoTuV support & provides static libs/headers for vlc/ffmpeg if building those. Myself prefer the latter method for various reasons.

So for the latter method i'll copy here, currently post 61

To start remove your current vorbis-tools package, then open  a terminal

sudo apt-get  build-dep libvorbis vorbis-tools

.

sudo apt-get install checkinstall

This is 1 complete command, copy & paste

cd
mkdir -p ogg_build && cd ogg_build && \
wget http://www.geocities.jp/aoyoume/aotuv/source_code/libvorbis-aotuv_b6.03.tar.bz2 && \
tar -xvjf libvorbis-aotuv_b6.03.tar.bz2 && \
cd aotuv-b6.03_20110424 && chmod +x configure && \
./configure --disable-shared && make && \
sudo checkinstall --pkgname=aotuv-vorbis  --backup=no --default \
--deldoc=yes -deldesc=yes --delspec=yes --fstrans=no --pkgversion=6.03

Finish up with, again one command

cd
cd ogg_build
apt-get source vorbis-tools && \
cd vorbis-tools-1.4.0 && ./configure && make && \
sudo checkinstall --backup=no --deldoc=yes  --deldesc=yes --delspec=yes \
--default --fstrans=no  --pkgversion 1.4.0+aotuv-b6.3

If you have no intention of building ffmpeg and or vlc then you can now remove the aotuv-vorbis package, it's no longer needed, *the first package built

Use oggenc as normal or thru apps that use it like abcde, rubyripper,  soundkonverter

oggenc --help can prove useful, use ogginfo /path to whatever.ogg to ck.

Ex. from simple -q 9 parameter -

ogginfo '/home/doug/Music/luckynight.ogg'
Processing file "/home/doug/Music/luckynight.ogg"...

New logical stream (#1, serial: 6e5e6d64): type vorbis
Vorbis headers parsed for stream 1, information follows...
Version: 0
Vendor: AO; aoTuV [20110424] (based on Xiph.Org's libVorbis)
Channels: 2
Rate: 44100

Nominal bitrate: 320.000000 kb/s
Upper bitrate not set
Lower bitrate not set
Vorbis stream 1:
Total data length: 2489270 bytes
Playback length: 1m:00.479s
Average bitrate: 329.268519 kb/s
Logical stream 1 ended


What are the risks of using an outdated Ubuntu version?

If you're offline, the risks are non-existent (though if you are using files transferred via usb-thumb-drive etc. they are no longer nill, but are still small).
I wouldn't browse the web from such a machine, and likely restrict it to a unique VLAN on the local network, as it's possible (you provided no details) some programs if they use network data, may cause increased risk to other machines on your network (the machine will be easier prey for attack, esp. targeted attacks).
You weren't specific to what use you intend for the machine, I've already mentioned I'd restrict it to it's own VLAN and not let other machines on my local network speak to it. I'd also look up what programs I was to use, and look for flaws that were detected in that software, but were never patched for your EOL system.  These checks (or homework) are time-consuming, and are part of why updating to supported software is easier & safer.
Many privacy attacks on browsers are specific to a browser, eg. if it targets chrome (or firefox), it'll impact users regardless of OS (so windows, mac & GNU/Linux users almost equally).  In these cases; using an older browser would increase the security risk in my opinion, unless using a atypical browser such as lynx that doesn't run any scripts usually used for such attacks (thus having a smaller attack risk).
You mention 10.04, which reached EOL on 2015-April-30 for servers, and 2013-May-9 for desktops (https://fridge.ubuntu.com/2015/04/30/ubuntu-10-04-lucid-lynx-end-of-life-reached-on-april-30-2015/ https://wiki.ubuntu.com/Releases) so that's a lot of potential security risks that you are un-patched for, and a lot of homework to ensure your system is safe.
If you were talking about say Lubuntu 16.04 LTS, where the desktop itself has been EOL since 2019-April, but the Ubuntu base still gets security patches, my concern would be lower, also the amount of homework I'd need to do to assess the risks is far less and I may consider it (I'd still treat the box with concern & be careful what I did on it; but I'm somewhat careful anyway, having multiple boxes I do things specific things on).
(Ubuntu 16.04 LTS can have extended security when it reaches EOL in 2019-April through the use of ESM which can involve paid subscriptions but is also available free of $cost. It doesn't include all packages, but is still of far lower security risk than say 10.04 LTS)
The risks will vary on your use-case, packages installed, protocols those packages use (using network traffic) plus what system you installed and what was detected since security maintenance ceased. Yes this can be assessed (the homework), but as time is often more expensive than hardware, is it worth it?


Have to manually 'startx' after upgrading to 18.04

Re-initialising gdm3 has helped:

sudo dpkg-reconfigure gdm3

Although it took two reboots for my system to be completely happy again.


I was able to fix this problem by updating FOG from version 1.5.0 to 1.5.2.


Is there any mongoldb GUI tool support mongodb 3.2?

Please check out MongoBooster.  MongoBooster is a shell-centric cross-platform (OSX+Windows+Linux) GUI tool for MongoDB v2.2-3.2, which provides update-in-place, Lodash & Moment.js integration, ES6 syntax support and true IntelliSense experience.

The mongochef  and Mongo Management studio  support mongodb 3.2 too.

Disclaimer: I work for MongoBooster.


Ubuntu 20.04, Usb ports stop won't mount external drives

I had a similar problem for my devices.
You can once use this:
udisksctl power-off -b /dev/sdX
And the next time, I should be alright and you would also have Safety Remove option.


This is one way to make only caja show the labels in American English, while keeping British English for other applications:

Create the directory ~/bin

mkdir "$HOME/bin"

Use your favorite text editor to create a text file named caja in that directory and give it this contents:

#!/bin/sh
export LANGUAGE=en_US
exec /usr/bin/caja $@

Make the file executable

chmod +x "$HOME/bin/caja"

Relogin


How do I install spellcheck in Ubuntu Web Browser?

That should be easy!

Open System Settings (Top right button) --> Language support --> Add support for your language.

In Firefox switch spell check language by clicking left button on text box and select from list of languages.


I got this to work on Ubuntu 14.04 LTS by running the following:

curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo npm i -g raml2html

See https://github.com/nodejs/LTS/ for more information on the different NodeJS versions.


XEV doesn't detect my key - is there any hope?

If xev can't detect the keys then you will need to use or write a different driver that can enable the keys. That keyboard looks very much like a rebranded logitech keyboard so there drivers might be a start.


Yes you can. As described here (ubuntuhandbook.org - Boot into text console ubuntu) you need to edit /etc/default/grub to have the next boot end up in text mode. In summary you will set these parameters:

GRUB_CMDLINE_LINUX_DEFAULT="text"
GRUB_TERMINAL=console

After saving changes you need to run:

sudo update-grub
sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target

Undoing text-mode

To undo sudo systemctl set-default multi-user.target simply type

sudo systemctl enable graphical.target --force
sudo systemctl set-default graphical.target


Let's see:

$ find /usr/lib -name 'libSDL2_*'
/usr/lib/x86_64-linux-gnu/libSDL2_image.a
/usr/lib/x86_64-linux-gnu/libSDL2_image-2.0.so
/usr/lib/x86_64-linux-gnu/libSDL2_test.a
/usr/lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0
/usr/lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0.2.1
/usr/lib/x86_64-linux-gnu/libSDL2_image.so

$ dpkg -S /usr/lib/x86_64-linux-gnu/libSDL2_image.so
libsdl2-image-dev:amd64: /usr/lib/x86_64-linux-gnu/libSDL2_image.so

So it should be provided by the libsdl2-image-dev package for your architecture


Files on web server can be found without extensions

Looks like content-negotiation is active. See the comment on the linked page regaring the directory effect.


HEVC (x265) on Ubuntu 15.04 is not working (even after installing vlc-plugin-libde265)

Run these commands in terminal:

sudo apt-get update
sudo apt-get install --reinstall --fix-broken vlc-plugin-libde265 gstreamer0.10-libde265

This will ensure that the required packages are installed and not broken.


MITM-attack? I have an untrusted certificate dns.hinet.net

Checking the hostname on mxtoolbox and ssltools.digicert confirm its down the chain from Chunghwa...

one of its SANs is hntp1.hinet.net / 168.95.192.1dnslytitcs

small extract from 2009 (not mine)

  The Hinet.net domain belongs to Chunghwa Telecom Co., Ltd. According to Spamhaus.org (very authoritative), Chungwa a/k/a Hinet is the #4 spammer service company in the world. Like most Asian phone companies, they take nationalistic pride in ignoring complaints from the West. (Mainland China and South Korea are equally imperious, and Viet Nam is even worse.) So lots of email systems in the West are blocking Hinet. It is not to make a political statement. We know Hinet does not care, and does not take protesters seriously. It is a simple mechanical defense against the ongoing spam attack by Hinet's spammers.

I advise you check certificate stores for each browser you have installed these are separate from where you would usually find certs in /etc/ssl/...


Which "file browser" is able to open many file types by itself?

You can actually do something like that with Nautilus aka (GNOME) Files (default in a vanilla Ubuntu installation). First you need to install the gnome-sushi package by running

sudo apt install gnome-sushi

After installing gnome-sushi, you can open files of various types (e.g. image, text, video, pdf, audio etc.) in Nautilus by selecting the file and hitting the Spacebar key.


Difference between xul-ext-ublock-origin package and ublock origin Chrome extension?

The xul-ext-ublock-origin package in repository is for "Firefox" browser (Also "thunderbird" or "Seamonky") :

$ apt-cache show xul-ext-ublock-origin | grep -i depends
Depends: firefox (>= 24.0) | thunderbird (>= 31.0) | seamonkey (>= 2.21)

So you should compare it with ublock-origin, there is no difference in my opinion except when you install the package it will be available system wide to all users.

The other thing you should pay attention to is the version of add-on, in Ubuntu repository it's between 1.6.6 to 1.10.4 however the last version is 1.12.4.

 $ rmadison xul-ext-ublock-origin

 xul-ext-ublock-origin | 1.6.6+dfsg-1  | xenial/universe  | all
 xul-ext-ublock-origin | 1.9.10+dfsg-2 | yakkety/universe | all
 xul-ext-ublock-origin | 1.10.4+dfsg-1 | zesty/universe   | all
 xul-ext-ublock-origin | 1.10.4+dfsg-1 | artful/universe  | all

it might not be that much important cause after first run it will be updated to last version.

And the other one which you mentioned is just a port of same thing for Chrome browser.


How to remap Super(left) key to control key

To make major changes to your keyboard, including remapping characters and changing modifiers, you need to use the xmodmap utility - see man xmodmap. There are a couple ways to execute the changes:

either from the command line

xmodmap -e "your commands"

or write the commands to a file like .xmodmaprc, then execute it in your login items or your .bashrc with

xmodmap .xmodmaprc

If you name the file ~/.xmodmap it will be executed automatically on login.

Now the commands

What you want to do is a two-step process. First you unmap Super from its modifier, then you map it to control.

Run xmodmap -pm in a terminal window to get a list of the bound modifiers. On my machine (and presumably yours) Super is referred to as mod4. Super_L and Super_R are separate keys which output the same modifier.

Now you can unmap the modifier from it. Run the xmodmap command (using one of the methods above)

remove mod4 = Super_L

Now the physical key is still referred to internally as Super_L, but it doesn't do anything.
Now just remap it. Run the xmodmap command:

add control = Super_L

If you want to undo this later on, just run the same commands with the appropriate arguments.

No Super_R?

The output of xmodmap -pm might given you several keys named Super_L but none named Super_R). If it did, you now have several extra keys assigned to Control, but none assigned to Super. You'll have to rename one key. (NB: it might give you several Super_L and at least one Super_R. This is fine.)

The key names in the table all have a hex number in parentheses next to them. This number is the physical keycode of the key on your keyboard (it can vary by model). If you need to change one Super_L to Super_R, first find the keycode you want to be associated to Super_R (aren't sure which is the correct one? Run xev then tap the right Super a couple times. Somewhere in the maze of output is "keycode = 133" (with a different number)). Run the xmodmap command

keycode 133 = Super_R

to rename the key, then

add mod4 = Super_R

to assign it to Super.


Free Storage on Live USB Not Equal to USB's Capacity

What you're seeing is the root partition of the usb drive. The remaining space might either be unformatted or might be on another partition. Typically other partitions would be visible as other "subdevices": If your usb drive is recognized as /dev/sda, then the root partition might be /dev/sda1 and the other (in your case larger) partition would be on /dev/sda2. If the remaining memory is formatted as an other partition, you might try to mount it separately (e.g. pmount /dev/sda2 in the above example). Otherwise, you might be successful using fdisk to format the free space. Note the "might".


Try this command:

unity-window-decorator --replace


Cannot fully install hwe stack on 18.04.2

You can reinstall this kernel and modules with low-level commands (download and direct extract to the file-system):

apt-get download linux-image-4.18.0-15-generic
apt-get download linux-modules-extra-4.18.0-15-generic
apt-get download linux-modules-4.18.0-15-generic
apt-get download linux-headers-4.18.0-15-generic

sudo dpkg -x linux-image-4.18.0-15-generic*.deb /
sudo dpkg -x linux-modules-extra-4.18.0-15-generic*.deb /
sudo dpkg -x linux-modules-4.18.0-15-generic*.deb /
sudo dpkg -x linux-headers-4.18.0-15-generic*.deb /

sudo update-grub

then reinstall them with regular way:

sudo apt-get install --reinstall linux-image-4.18.0-15-generic
sudo apt-get install --reinstall linux-modules-extra-4.18.0-15-generic
sudo apt-get install --reinstall linux-modules-4.18.0-15-generic
sudo apt-get install --reinstall linux-headers-4.18.0-15-generic

and finally install the HWE:

sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04


Use chkrootkit and send status via ssmtp

Since chkrootkit runs as root, the emailed output is sent to root. Use a "mail alias" to have root's email delivered to you. Read man 5 aliases for details. On MY Ubuntu 16.04.05, MY /etc/aliases looks like:

# See man 5 aliases for format
postmaster:    root
root:    walt

That is, all of postmaster's email is sent to root, and all of root's email is sent to ME.

You MUST execute the newaliases command after changing /etc/aliases to make your changes take effect.


No vga/vgaswitcheroo in /sys/kernel/debug (Ubuntu 13.10)

I found this

There are two versions of hybrd graphics: MUXed and MUX-less. MUXed have a
display MUX to switch the displays between the discrete and integrated cards.
MUXed systems can be switched using vgaswitcheroo. MUX-less do not have a
display MUX and the displays are only connected to the integrated card. On
MUX-less systems, the discrete card is solely for rendering, not display. X
Server 1.14 is required to support rendering and display from different cards.
Most new laptops (2011+) are MUX-less.

So I think it's highly likely that my system (being a very recent laptop) is MUX-less (i.e. only the Intel card is actually connected to the display), and although I can "switch" through the AMD Catalyst Control Centre (should I be brave/foolish enough to install fglrx) this really just amounts to: "High performance" -> outsource hard graphics calculations to dGPU then reroute them back through the iGPU for display, "Low performance/good battery" -> do calcs on iGPU, then send directly to display. I also have no ability to switch GPUs in the BIOS, which also suggests MUX-less.

Thus, I probably will never be able to use VGA switcheroo.

One other consideration is that the radeon driver does not officially support my card yet (the 8670M code name Mars XT solar system series, not to be confused with OLAND). Thus when I boot up with open source drivers I get messages like No screens found for the radeon. Given that switcheroo needs radeon and intel both to there, it could be somehow failing because the radeon driver doesn't support my card.

If this is true, it leads to the question of how does one switch between ATI/Intel cards (without fglrx) in a MUX-less system.


Is there an e-mail client which does not need to download mail?

You can tell Thunderbird to use IMAP and not store attachments bigger than a given size and not keep too many emails on your computer.

I guess you cannot download no emails since they have to be displayed somehow, but this will minimize memory usage.


How to convert markdown to rich text (rtf) in Ubuntu 13.04?

One alternative is http://johnmacfarlane.net/pandoc/ which is in the repos,

sudo apt-get install pandoc

Then you can take your markdown file and convert it to rtf, or a variety of other formats with,

pandoc -s -f markdown -t rtf -o file.rtf file.txt

The -s switch is for standalone, so that it doesn't just create an rtf fragment. There are also a variety of other useful switches such as -S for smart quotes. I use it all the time to create epub and pdf files.

It would also be a good idea to check out the documentation on their site, since the pandoc markdown format supports several extensions.


Not able to see the GRUB after updating with rerular updates...in14.04

Use Boot-repair tool of Ubuntu:
1: Boot your computer on a Ubuntu live-CD or live-USB then choose "Try Ubuntu"
2: Connect Internet
3: Open Terminal ctrl + alt + t
4: Execute following command

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

5: Launch boot-repair and select Recommended-repair
6: Once finished reboot  check if you recovered access to your OSs.

OR You can use Windows EasyBCD tool to repair you boot
   here's the link http://www.softpedia.com/get/System/OS-Enhancements/EasyBCD.shtml

Run the Program and select
   Add New Entry -> linux tab ->
       a) Select Grub2
       b) Select A name for your ubuntu distribution
       c) Select the drive where your ubuntu 14.04 is installed
       d) Once done save and reboot check if you recovered access to your OSs.


Burned iso to USB, wiped entire hard drive how ever, Ubuntu doesn't fully install

The flash drive has to be removed from the USB port before booting into your Ubuntu Installation.


Wifi issue after running sudo dkms add ./rtlwifi_new-master

First, in terminal, do a man dkms to read/learn about dkms.

Second, assure that any dkms kernel module doesn't already exist in the system, or is older that the source that you're working with.

To install a dkms module, you copy the source code to /usr/src with a folder name in the format of module-version (ie:rtlwifi-0.10). (Adjust the following examples as necessary).

sudo cp -r rtlwifi-new-0.10 /usr/src/rtlwifi-0.10

Then you issue a series of dkms commands like so:

dkms status # to show the current dkms status

Due to your previous attempts, you may have to clean up dkms first, with:

dkms remove module/version -k "$(uname -r)/$(uname -p)"

Then you can start fresh:

sudo dkms add rtlwifi/0.10 -k "$(uname -r)/$(uname -p)"

sudo dkms build rtlwifi/0.10 -k "$(uname -r)/$(uname -p)"

sudo dkms install rtlwifi/0.10 -k "$(uname -r)/$(uname -p)"

dkms status # to show the final dkms status


Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
/usr/bin/firefox -safe-mode

and then click on Reset Firefox.

Addition for the latest version of Firefox:
Click on the three lines (Hamburger Menu), and then Click on Help

Click on Troubleshooting information

Click on Refresh Firefox


What can I use to transcode MKV to MKV with good automatic compression?

Handbrake is actually pretty good for what you intend to do:
http://handbrake.fr/downloads.php

The PPA for the software centre is here: https://launchpad.net/~stebbins/+archive/handbrake-releases

It meets the following criteria:

It scans DVDs for non-trivial titles
It can include all the audio and subtitle tracks, although not automatically
(you have to select which ones you want beyond the default audio track and manually
select auto-passthrough)
It default to automatically cropping black bars. Further to this it detects anamorphic,
stores the original video, calculates the correct display-as resolution and embeds it
in the video. This is even better than scaling the original and compressing that.
You should go into the settings though and activate de-comb and de-telecine. Haven't
tried with telecined materiel yet, not sure what the output framerate will be (24fps
hopefully!)
Defaults to h264, constant quality 20. So far it looks like this needs to go up a bit
(which means you actually decrease the number by 1-2)
Supports MKV, although defaults to MP4.
Defaults all subtitle tracks to not-default, one can be marked as default. Not ripped
any multi-track audio yet
Does not appear to be any support for MKV meta-data.

The actual package you need to install is handbrake-gtk, handbrake does not exist.


What is "the star" communicating in Synaptic?

Those are "new" packages there weren't in the list of available packages the last time you run Synaptic.

You can also see them in the New in repository filter in the Status view:


Not sure of all the details, but codeweavers provide a lot of support for wine.

Have a look at this link for more details


If Memtest86 is freezing (or otherwise not completing) then you have bad RAM. If this is a custom build/upgrade, make sure the memory modules are properly seated without any gunk on the leads. If Memtest86 continues to fail, try running with just two of the memory sticks to determine which memory module is bad. Hopefully it can be replaced under warranty.


Compilation of Realtek RTS5229 driver fails

You dont need to compile them. They are in the following packages, Install them.

sudo apt-get install build-essential libssl-dev linux-headers-`uname -r` linux-firmware-nonfree


Make sure your BIOS is made to boot to a CD first.  If it's UEFI instead of BIOS, make sure you have downloaded the 64-bit version.  Hope this helps!


How to set exact position of external monitor in XFCE?

You can use a program called ARandR. It is basically the perfect program for your needs.

Description:

ARandR is a visual front end for XRandR 1.2/1.3 (per display options), which
provides full control over positioning, saving and loading to/from shell
scripts and easy integration with other applications.

If not already done, you can install ARandR via the Software Center or sudo apt-get install arandr.


This happens to me too. But, at random, when I press F11, it goes full screen.
So I keep pressing F11 until it stays full screen.
Sometimes it takes up to 10 tries.

Try using Magic Launcher


Sublime is killed when logging out from ubuntu

This is how things work. Unless they are services. when you logout, all of your programs will be killed.


Notice that if you use some kind of extension for USB ports like an express card to get USB 3.0 on your laptop or something like this it can be the your computer is unable to boot from these ports. Use the ones built into your computer.

Most modern computers will allow you to boot from USB. You can find this option in your BIOS or UEFI settings. Look out for "booting options" or "boot order" and move USB to the top.

If there is no USB option there, you simply can't boot from USB on your computer. Move the DVD boot option to the top and burn Ubuntu to a DVD.


Hibernating Swap while Cloning Disk
I tried this using a USB flash drive as all my HDD's are in use.

Created Full install USB using sudodus 20.04 image file.
Enlarged swapfile to 5GB.
Set up hibernation.
opened a bunch of programs.
Invoked hibernation.
Created an image file of the flashdrive using Gnome-Disks*.
Zeroed the flash drive using mkusb.
Flashed the image to the flash drive using mkusb.
Returned the flash drive to it's original socket.
It booted to it's state at the time of hibernating.

This may be a little different than your case with a server, but it proves that your premise works.
I do think it is important to plug the new disk into the same SATA port the old disk was plugged into at time of hibernation.
*A pro would use dd and clone disk to disk, but Disks and mkusb give a level of comfort.


How to set Iron as default web browser in Unity2D?

I have a way to make Iron system-wide default:

sudo ln -sf /usr/share/iron/iron /etc/alternatives/x-www-browser


How about parsing the output from mpstat from the sysstat package? You can get statistics for each processor and set the interval (below is for 2s interval).

Sample output:

$ mpstat -P ALL 2
Linux 3.5.0-19-generic (ubuntu)     11/30/2012  _x86_64_    (4 CPU)

08:34:28 AM  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest   %idle
08:34:30 AM  all    1.01    0.00    1.26    0.00    0.00    0.13    0.00    0.00   97.61
08:34:30 AM    0    2.50    0.00    1.50    0.00    0.00    0.50    0.00    0.00   95.50
08:34:30 AM    1    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00  100.00
08:34:30 AM    2    1.01    0.00    3.02    0.00    0.00    0.00    0.00    0.00   95.98
08:34:30 AM    3    0.50    0.00    0.50    0.00    0.00    0.00    0.00    0.00   99.00

Alternatively, you could implement the algorithm yourself.  Take a look here and here.

Another way to do it would be to monitor the difference in idle time vs other usage time in /proc/stat at defined time interval and calculate the load based on that. Here's more info on /proc/stat.


How to restore Firefox icon in Ubuntu 10.10?

If You use Gnome, just click right mouse button on the panel and add activator. Point it to Your firefox executable, and name it firefox. It should take firefox icon automatically.


Trackpoint on Lenovo T460p in Ubuntu 16.10

The last comment in this Lenovo support thread suggests that it is due to faulty hardware: https://forums.lenovo.com/t5/forums/v3_1/forumtopicpage/board-id/tp01_en/thread-id/109005/page/3


Now it works. Just Use the combo of keys above, select the corresponding Unicode code with numeric keypad and press Enter.
Anyway, Gnome Tweaks is so useful (why it's not default/preinstalled??!?) I recommend it to everyone.


Define outgoing ip address when using ssh

From ssh(1)

 -b bind_address
         Use bind_address on the local machine as the source address of
         the connection.  Only useful on systems with more than one
         address.

If this doesn't do what you want then you will have to configure routing (with ip route) in such a way that the preferred interface is used for the connection.


Why doesn't Ubuntu automatically disable wireless networking when a wired connection is active?

To put it simply, your wired network card and your wireless card are two different cards. Therefore, you have two different possible connections. Since it can connect to both of them, it doesn't assume that you want it any other way.

As for why one would use both network connections, there are a number of reasons:

Network stability - no loss of connection when one or the other goes out, as long as both don't go out at the same time. This also allows you to keep things that require internet access for one reason or another from being disconnected (just because you're not actively typing or surfing the Internet, doesn't mean you have zero use for the Internet while in transit).
Load balancing - advanced usage may be able to allow for things like gaming over the wired connection, and downloads over the wireless, keeping both from slowing to a crawl unless they tax the common connection point (the router, incoming connection, etc).
Maintain Internet access when using a VPN connection - VPN connections often cut off your access to the Internet. One way around this is to simply use one connection for the VPN, and the other for Internet.


How can I run a command at the background without ampersand (&)?

Use coproc python app.py

From man bash

  Coprocesses

  A  coprocess is a shell command preceded by the coproc reserved word.  A coprocess is executed asynchronously
         in a subshell, as if the command had been terminated with the & control operator, with a two-way pipe  estab‐
         lished between the executing shell and the coprocess.

  The format for a coprocess is:

  coproc [NAME] command [redirections]


Future Xubuntu updates after the three year LTS period?

Since this is a new way of providing LTS, by allowing each flavor to decidee the length of support, all the details may have to wait three years. However, under the 3/5 year support plan, anything Xfce specific will no longer be updated or fixed after three years. Also, bug reports will no longer be accepted after three years.

I do not know if the developers will attempt to determine the desktop package, and only allow certain systems to have updates, or if some updates will be allowed for everyone for five years.


Unable to resize launcher icon in ubuntu 16.04

In VirtualBox 5.1.4 r110228 with the same version of VirtualBox extensions installed in Ubuntu 16.04, enabling 3D Acceleration (Settings... > Display > Screen > Enable 3D Acceleration) fixed the launcher icon resize issue.

Virtual machine settings

Unfortunately, I also had to disable Hardware Acceleration in Google Chrome running in the VM otherwise Chrome just appeared as a black window.

Update 1
In addition to enabling 3D Acceleration, install VirtualBox Guest Additions from the Ubuntu repo instead of inserting the VirtualBox CD image:

apt install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11

VirtualBox Guest Additions from the Ubuntu repo fixed rendering issues with Chrome and VS Code.


Bugs when trying to play 'Battleswarm: Field of Honor' through Wine

Install winetricks, `open a terminal( Ctrl + Alt + T ) and paste this  :

sudo apt-get install winetricks
Use winetricks to install the required libraries

winetricks directx9 vcrun2005 vcrun2008 allfonts allcodecs

NOTE : if you have a trouble when install xvid from koepi, open your winetricks and edit this part :

gksu gedit /usr/bin/winetricks

edit this part

  load_xvid()
  {
   w_call vcrun6
   bla...bla...bla...
  }

edit path download and md5 with this
 w_download http://www.koepi.info/Xvid-1.3.2-20110601.exe b1bbd74395a34ff7fd069d3b6fe23016

`cd "$W_CACHE"/xvid`

 `w_try $WINE Xvid-1.3.2-20110601.exe $W_UNATTENDED_SLASH_SILENT`

NOTE2 : if you install wine1.2 or wine1.3, winetricks is included, so you just need to type winetricks (list app you want to install), ex :

winetricks directx9 vcrun2005 vcrun2008 allfonts allcodecs


From https://wiki.ubuntu.com/LoCoDays:

  LoCo Days were designed to encourage LoCo Teams to start doing more Classroom sessions in their native languages.

LoCo Days are the LoCo equivalent of User Days:

  User Days was created to be a set of courses offered during a one day period to teach the beginning or intermediate Ubuntu user the basics to get them started with Ubuntu.


Well, it depends on what you're willing to do.

You can actually set your background as the video that's playing in VLC. Granted, you'll have to have VLC playing constantly and have the video on loop, but you'll get the desired effect.

There's also the side affect that you lose  your icons, but if you don't have icons on your desktop (like me) that's not a big deal.

Using VLC:

Just launch VLC from the terminal (Ctrl+Alt+T) via cvlc --video-wallpaper --no-audio /path/to/your/video

As a note, I took this information from this question. This question could be a duplicate of that.

Here's a quick video showing what VLC does:

https://www.youtube.com/watch?v=TpRU7iWKloI&feature=youtu.be

You're going to see the VLC title bar, so it's not the most perfect of solutions, but it's something.

Using XWinWrap & Mplayer:

Another option is to follow the steps given in this tutorial here. I haven't actually tried this myself, so I can't vouch for the success in any newer versions.


How do I reinstall Windows 7 while keeping my dual boot configuration?

If you want to replace the old Windows 7 32-bit with a new Windows 7 64-bit installation, follow this procedure:

0. Edit volume label on existing Windows system

You should first boot to Windows and give a name to your windows partition. That will help you to identify the old Windows partition in the partitioning phase (described below).

1. Install Windows 7

Insert the Windows 7 64-bit DVD and restart your PC.
Press the appropriate keyboard button to enter into boot device selection menu. In Phoenix BIOS (used by Dell machines and some others as well), it is F12. If you press this button, you will be presented with some devices from which you can boot. Your DVD drive should be listed as one of the bootable devices.

Some BIOSes don't provide this boot device selection menu. In that case, you must enter the BIOS setup. To do so, Press F2 in a Phoenix BIOS. These key may be different on other BIOS. Some common keys are DEL, F2, and F12. There should be also a message telling you this kind of messages : "To change BIOS configuration, Press ...". Look at those messages and Try use that key.

After booting to Windows 7 DVD, Go to the Installation phase. Select Custom Install option. Don't choose upgrade option.
After accepting EULA and completing some other installation steps, you will be presented with the partitioning page. Click on Drive options (advanced), then select the previous Windows 7 partition. Choose to format the partition and then Click Next.
Now a new Windows 7 64 bit will be installed replacing the old installation.

Please note that Windows 7 64-bit will automatically replace the old one since you've chosen to format the old partition.

See these articles on Microsoft's website for help with Windows 7 installation:

Installing and reinstalling Windows
Installing a 64-bit version of Windows 7 on a computer running a 32-bit version of Windows

2. Re-install and repair GRUB using an Ubuntu live CD/DVD/USB

Get a Ubuntu live CD/DVD or live USB. To have a CD, you just need to burn the .iso image to a blank CD:

How to burn or mount an ISO file? (has answers for both Ubuntu and Windows)
How to burn a CD on Ubuntu
How to burn a CD on Windows

To get a Live USB, See these links:

How to create a bootable USB stick on Ubuntu
How to create a bootable USB stick on Windows
How can I make a Ubuntu Live USB with Ubuntu, GParted & HBCD?

Boot the Ubuntu live CD/DVD or USB flash drive that you just created. Select the appropriate entry from the boot device menu in BIOS. Select the Try Ubuntu option (not Install Ubuntu) when you presented to choose an option.
When the desktop comes up, reinstall and repair GRUB. Get help from the below links:

How can I repair grub? (How to get Ubuntu back after installing Windows?)

Use this method if you don't have Internet connection in the live CD/DVD/USB system. But if you have a good, working Internet connection, this way is quicker.

Note that in that answer, although it says to use GParted to see the partition's UUID, you can also use sudo blkid command for this.

Now, restart your PC from the menu at the upper-right corner of the live system's desktop. Remove the CD/DVD or USB flash drive when told to do so. (You don't want to accidentally boot from it again.) You should now have a machine with your original Ubuntu system and the newly installed 64-bit version of Windows 7 (which replaced the 32-bit version).

The essential difference between the installation of Windows 7 system while you already have Ubuntu (but not Windows) and installing a new Windows 7 system replacing an old one is, in the latter case you don't need to create and specify the partition for new Windows 7. You can just select the old Windows partition, select it to format and Click next to proceed to the installation. See this article for an official statement.


I had the same problem 2 month ago. I decided to contact Sergey Prochorov, autor of network manager plugin for l2tp. He answered me that "I'm now stop supporting l2tp plugin, since I just don't use it in my everyday life."

After many days I switched to Fedora. But unfortunately also in Fedora there is possible to connect only using terminal and some bash scripts. Network manager solution is not working too. I don't know about any Linux distribution with network manager L2tp PSK VPN support.

Finally - interesting is that under new Windows 10 is also a bug - there is impossible (interactively) to set Ipv4 and Ipv6 options for VPNs ;).


No GUI after upgrading from 14.04 to 16.04

Try this:

In the terminal run it:

exec sudo -i
dpkg --configure -a
apt-get -f install
apt-get update
apt-get dist-upgrade
apt-get install --reinstall ubuntu-desktop
apt-get autoremove
apt-get clean


Ceph Openstack HA installation with maas and juju but partially on physical servers and few on virtual machines

This is completely possible and a valid solution to paring down the number of machines needed for an HA deployment of OpenStack. The latest version of MAAS, available in the cloud-archive, has support for "vMAAS" or Virtual MAAS, which gives MAAS the power to drive virtual machines in addition to physical ones.


13.10 Can't see results from software center in dash

Make sure that the  unity-scopes-master-default package is installed


Thunderbird's Unity Icon keeps showing unread mail indication even if there is no unread mail

There is already a bug report in Launchpad with Thunderbird indicator and icon messages count and you can take a look at it here.


How to minimize all windows from command line in LXDE?

Your command, wmctrl -k on is respected by Openbox which is the window manager used in LXDE and it works for me (Openbox session of Lubuntu 14.04 LTS).

If it doesn't work for some reason, install xdotool from the software center and use this command:

xdotool key super+d

What this command does is the same as simultaneously pressing Super+d which is the Openbox toggle for minimizing all windows or showing all windows unless you've modified your lxde-rc.xml or lubuntu-rc.xml or rc.xml, a file normally located in ~/.config/openbox.


Looks like some bits of GRUB are left intact. Recipes for various situations (including UEFI systems) are discussed in answers to Uninstall Grub and use Windows bootloader.


When writing a Bash script, how do I create then open a file with the date as part of the name?

Your line for today= should look like this:

today=$(date +%Y_%m_%d)

since today is now a variable, it would be designated with a $ leading the word like this:

echo $today

which would give 2016_02_23 as the output.  So, the lines after using that today variable would look like this:

filename="~/homework/${today}.homework"

and

vim "~/homework/${today}.homework"

or since you gave filename as a variable then you could do this:

vim "$filename"

Or, if you want to really get creative, instead of assigning the variable first, you can just do the command itself in the filename when you're opening it all in one line:

vim "~/homework/$(date +%Y_%m_%d).homework"

Hope this helps!


Logitech K360 keyboard types extra characters on certain keys like the 'n' key

If you have lent your computer to a friend, or if someone else got in the neighborhood of your computer, then I would look at the calendar and ask him/her for help.

Debugging tools:

Open a terminal, type the xev command and press Enter. Now see if you still see multiple characters when typing the command.
In the terminal, list all files in your home folder sorted by modification time. If your .bashrc got modified lately, then that would be a good candidate file to check out. The command is: ls -latr (newest file on the bottom). You could also check this in the graphical file browser, ensure that you configure it to show hidden files and sort by time too.
For hardware modifications: plug the device and receiver in a second computer and see if it is also affected by this.


ttf-mscorefonts-installer needs to be reinstalled

Okay . you can change this topic to [Solved] i knew where is the problem , i had a problem with apt-get update that stucks at Zero, one of the sources was using https instead of http i removed this source and updated the apt-get and all worked fine , thanks !


Unable to open .Rproj with RStudio from terminal or ranger

There is a way to open files from terminal using it's assigned default "open with" sofware.
In the console and asuming you are in the same place where your file lives, you must try:

xdg-open file.extension

I have opened several different kinds of files with "xdg-open", should be the same with *.Rproj.

Good luck!


Remove user's ability to disable lockscreen in Gnome 2

This turned out to be pretty easy and involved changing a flag from "True" to "False" in the screen.ui file under the "screen_lock_on_switch" section. After I logged out and back in the Lock toggle button was gone.

Code before modification

                          <object class="GtkSwitch" id="screen_lock_on_switch">
                            <property name="visible">True</property>
                            <property name="can_focus">True</property>
                            <accessibility>
                              <relation type="labelled-by" target="lock-section-heading"/>
                            </accessibility>
                          </object>

Code after modification

                          <object class="GtkSwitch" id="screen_lock_on_switch">
                            <property name="visible">False</property>
                            <property name="can_focus">True</property>
                            <accessibility>
                              <relation type="labelled-by" target="lock-section-heading"/>
                            </accessibility>
                          </object>


You can use Zoneminder.

  ZoneMinder is intended for use in single or multi-camera video
  security applications, including commercial or home CCTV, theft
  prevention and child or family member or home monitoring and other
  care scenarios.1

  The three main reasons for surveillance are security, safety and
  nosiness. Whether you need a visual check on a sleeping baby, or a
  video of a stranger putting your cat in a wheelie bin, Zoneminder fits
  the bill. Zoneminder is a sophisticated camera manager, including
  support for multiple image sources, motion detection, email alerts,
  and X10 automation. It supports most V4L (Video for Linux) devices,
  and can control network IP cameras. The web interface makes it ideal
  for use on our headless server.2  Read On

To install Zoneminder, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo apt-get install zoneminder

Or

1Source:Ubuntu Apps Directory

2Source:TuxRadar


Switch encoding of terminal with a command

You are looking for luit which is designed for this purpose:

$ luit -encoding ISO-8859-1 ssh remote.host

It will convert the output of the ssh command to UTF-8 so you don’t need to change the encoding of the terminal.


In recent versions bcrypt-ruby seems to use the GMP library.

Something like this should help:

sudo aptitude install libgmp-dev

Do not forget to install all the stuff for development:

sudo aptitude install build-essential


How often does Ubuntu 19.04 and later sync time?

The configuration for time synchronization is located in the file /etc/systemd/timesyncd.conf.
The polling defaults are set as follows:
PollIntervalMinSec=32
PollIntervalMaxSec=2048

The systemd-timesyncd.service service will poll the NTP servers(the default is the ntp.ubuntu.com server pool) every 32 seconds. If the client is out of sync (by how much, depends upon how drift variance is accounted for in the defaults), it will attempt to sync with the server.
If it is not out of sync, the polling cycle will continue. Should the servers become unreachable, the polling cycle will continue, and most likely, follow a normal NTP exponential backoff algorithm until the Max Poll Interval of 2048 seconds is reached.
Additional details:
The time server is synchronized using the systemd-timesyncd.service.
one can check the status of the service by using the command systemctl status systemd-timesyncd.service
The output of the command should be something similar to the following output:
● systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor prese
   Active: active (running) since Thu 2019-07-04 18:29:39 PDT; 2 days ago
     Docs: man:systemd-timesyncd.service(8)
 Main PID: 3821 (systemd-timesyn)
   Status: "Synchronized to time server 91.189.89.199:123 (ntp.ubuntu.com)."
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/systemd-timesyncd.service
           └─3821 /lib/systemd/systemd-timesyncd

Jul 04 18:29:39 wintermute systemd[1]: Starting Network Time Synchronization...

As indicated in the documentation, more information can be found from the command man systemd-timesyncd.service.


Why can't I see, or boot into, Ubuntu 17.04 on my external drive after a Windows 8.1 reinstall?

You should try and reinstall Grub via a live session.
As described in this post.


Show PHP (v 7.0) code in browser in Ubuntu 16.04

It seems according to this that you need to install php7 apache-module

sudo apt-get -y install php7.0 libapache2-mod-php7.0

Then restart apache

sudo service apache2 restart

Or

sudo systemctl restart apache2


What I did to solve my question after rebooting and googling more:

reboot (Reboot the computer)

sudo apt-get update (this will give you a warning about expired keys)

apt-key list | grep expired (as suggested in another post) and I got:

pub   2048R/E084DAB9 2010-10-19 [expired: 2015-10-18]

copy the key ID is the bit after the / (in my case E084DAB9)

sudo apt-key adv --recv-keys --keyserver keys.gnupg.net E084DAB9 (remember to change the key ID of this command to the one you get from your computer)

sudo apt update

sudo apt upgrade


The main difference between the two Ubuntu editions :
Ubuntu 14.04.3 - kernel 3.19 | Ubuntu 15.10 - kernel 4.2

Performance depends on the hardware being in use.
There will be not a big difference to be experienced.
The general drivers support is not different as well !

Ubuntu 16.04 LTS is only a few months away ... you can choose whatever fits more to your needs.
Ubuntu 14.04 is stable - Ubuntu 15.10 has more current software packages - both run pretty fine.


How to install Ansys15 in Ubuntu 14.04 LTS?

Please take a look at is manual: http://saiwal.esy.es/tech/installing-ansys-15-in-ubuntu-14-04/


are there any mirrors for boot-repair-disk-64bit.iso?

There are 12 available mirrors in different locations worldwide for downloading boot-repair-disk-64bit.iso. The mirrors for boot-repair-disk-64bit.iso are listed at this link.


upgrade php - php5 is already the newest version. - but it is not

I have php5 5.5.8 on my Trusty Ubuntu, so you have to upgrade your ubuntu to a newer version to get a more recent php5. Edit /etc/apt/sources.list, replace the version with a newer one (like trusty or saucy), and apt-get upgrade will bring you the most recent one.


If by "swipe" you mean erase all data from the hard-drive, then chances are that the rescue center won't be available any more. And if you don't have installation CDs, then you might not be able to reinstall Windows 8. However you should still be able to see the BIOS settings in any case.


How do I create a .xession / .xinitrc file to launch the default Xubuntu-Session?

You could do something like this in your slim.conf

login_cmd exec ck-launch-session /bin/bash -login /etc/X11/Xsession %session

or in your .xinitrc

exec ck-launch-session /usr/share/xubuntu/session.sh

reference: debian arch


Why not use the built-in trash?

It's better, and it deals with symlinks and duplicate files correctly, and it will appear in the GUI file manager.

To move a file to the trash use the built-in command gvfs-trash $file or trash-put from trash-cli. To restore use restore-trash from the same package. trash-list can list the files in the trash.


Email notifier that supports Online accounts, notifications, Messaging Menu

IF you really want UOA integration then you should try Evolution (& evolution-indicator plugin). Otherwise Unity-Mail has  most of the required features.
Unity Mail
Launchpad: https://launchpad.net/unity-mail
With Unity Mail we can handle multiple gmail accounts. You will get an OSD notification whenever you receive a new mail showing the sender, and the subject of a mail.

In addition it adds a launcher icon to display the count of unread messages, integrates with the mail indicator to turn it blue, and displays a list of mails in the drop down menu there.

Install it using:
sudo apt-get install unity-mail

Evolution

Has messaging menu support
Show notification bubble
Integrated with Ubuntu Online Accounts
no ppa

Install it with following command:
sudo apt-get install evolution evolution-indicator


Cursor theme does not change in Ubuntu 14.10

I found a solution.
I was making experiments with KDE before. And after reinstalling 14.10 I didn't remove /home/user/.icons directory because I had some icons there. But KDE made 'default' directory in .icons and there was 'index.theme' file with KDE cursor settings. Deleting the 'default' directory helped me.


Have you tried opening the BIOS menu (Like you did to get it to boot from CD/DVD) and setting "USB-ZIP" as the first boot device?


Error while loading shared libraries: libogg.so.0: cannot open shared object file: No such file or directory

Open the terminal and type:

sudo dpkg --add-architecture i386

After that retry to install the Auteria game.

See also: File list of package libogg0 in trusty of architecture i386 for the location of 32-bit libogg.so.0 in the filesystem.


Try Alt on right Alt gr+q Beware that left Alt and right Alt have a different result in Ubuntu.

By clicking at the language keyboard menu icon, you can click on Show Layout Chart and you will see in right lower corner what will actually work with right Alt.


I upgraded to Ubuntu 17.10 and my trackpad is not working properly

I tried a lot of things which did not work. At last i updated my ubuntu to 18.04 Bionic Beaver. This fixed my issue. I know this is not a real solution to the problem, but as of now i have not got any other solution.
Thanks for the help.


Can't install Ubuntu Touch on Nexus 4. The command "ubuntu-device-flash" hangs

You could try cleaningthe local cache bythis command: 'ubuntu-device-flash --cleanup-cache touch'.

After that just rerun your flash command.

If its NOT the first time your flashing UbuntuTouch? Then try it without the '--bootstrap' option.


Can no longer connect to PPTP VPN on 13.04

Update on this:  After sleeping on this problem, I suddenly remembered a long forgotten friend:  Synaptic Package Manager.  So, I opened that up, removed everything related to PPTP, then reinstalled it.  I then installed some extra stuff in the hopes that it would repair the pppd daemon:  OpenVPN and the PPP daemon itself.

And, lo and behold, it worked!  I've got to remember that next time!


Installing aircrack in ubuntu 14.04.03. When running make install I receive the following message:

It's not an error, you have successfully installed Aircrack. With

sudo airodump-ng-oui-update

you downloads and parses IEEE OUI list.


Error: Can't connect to mysql server on 'ip' 10061

If you have grant all privileges then you need to do this.

To access remotely, for mysql server running on Ubuntu 16.04,
modify file 50-server.cnf. (In earlier version it was /etc/mysql/my.cnf.)

and comment out line skip-external-locking and bind-address      = 127.0.0.1.

$ sudo gedit /etc/mysql/mariadb.conf.d/50-server.cnf

#skip-external-locking

# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address       = 127.0.0.1

or you can also set bind-address only for your ip as bind-address=youriip

bind-address tells MySQL what interfaces to listen on
skip-external-locking: Do not listen for TCP/IP connections at
all.This option is for systems where only local requests are allowed. To allow remote connection, comment out this line.


Ubuntu Crashed, Now, how to load kernel in GNU GRUB?

Once you have created a Boot Repair CD, you computer should boot it automatically if it is in the computer at startup. If you computer doesn't boot it automatically, look on the BIOS screen for Boot Menu. Press the corresponding key (sometimes one of the F keys) at the BIOS screen. You will then be presented with a menu where you can select your CD drive (the name will usually be similar to what is written on the front of the CD drive the CD is in.


I had the same problem and went to the canon support site and searched for a linux driver. I downloaded the debian package (cnijfilter2-5.00-1-deb.tar.gz) and unzipped it. By double clicking on the package file (cnijfilter2_5.00-1_i386.deb) I installed the file via the Ubuntu software center. (no sudo this or sudo that) After the installation I  went to the system settings and added the printer (after searching for a network printer). Now the drivers were chosen from the system automatically.

I hope this helps.

Regards
Konstantin


Help installing Ubuntu Desktop Next 15.04 from USB

I am using 15.04 beta (installed from USB)

Creating [UEFI-only install] USB Drive:

Download .iso file;
Insert USB Drive; (all content will be lost)
Start Disk Utility; (aka 'Disks')

Select the USB Drive;
Click on 'cog' icon, at top right
Select 'Restore Disk Image', and navigate to .iso file;
Click 'Start Restoring'

Insert USB Drive on target system.
Reboot the System, and manually select UEFI 'boot' device.

Have fun!

Daniel


The 4shared package has a LOT of dependencies (additional packages required to run), including Java and other Java libraries. If you install the .deb with Software Center or gdebi, all the dependencies should be automatically installed.

If not, or if your Ubuntu variant doesn't use Software Center, do this:

Open a terminal with Ctrl-Alt-T.
Type the following, one line at time, and enter your password whenever prompted:

sudo dpkg -i desktop4shared-1.3_1-all.deb
sudo apt-get -f install

Go to the Launcher and type "4Shared" to start it:


What does "Support for ZFS" actually mean?

Whenever Ubuntu is installed, the root partition / require some file system to be created. Ubuntu, prior to 19.10, had options such as extended file system, btrfs, JFS, XFS, etc. Of all the options available, extended file system, to be precise, ext4 is preferred for now*.
*There are some blogs that says Linux might gradually move to btrfs.
Eoan Ermine announced the support for ZFS for root file system. According to New Features - Eoan Ermine/ReleaseNotes:

ZFS on root

Support for ZFS as the root filesystem is added as an experimental feature in 19.10
Create the ZFS file system and partitioning layout automatically direct from the installer

Eoan Ermine had ZFS version 0.8.1. The option to use ZFS for root filesystem is only available from the installer, i.e., while installing Ubuntu. The usage is experimental and thus optional.
Focal Fossa (20.04) introduced the newer version of ZFS and this was the first LTS release to have ZFS support for root filesystem.  From Storage/File Systems - Focal Fossa/ReleaseNotes:

ZFS 0.8.3
Continuing with what started in the Eoan release, Ubuntu Focal ships zfs 0.8.3. Compared to what was available in the previous LTS release, zfs 0.8 brings many new features. Highlights include:

Native Encryption (with hardware acceleration enabled in Focal)
Device removal
Pool TRIM
Sequential scrub and resilver (performance)

Although Ubuntu supports ZFS but Linus Torvalds discourages its usage because of licensing issues from Oracle.
It seems you've installed Ubuntu in /dev/sdb2 which is formatted in ext4 file system. sqashfs is the filesystem being used by snaps in small loop devices (See Small snap loop devices visible in gnome-disk-utility OR what is the function of snap ubuntu-core). As a result, you didn't find anything related to ZFS in your system.
Though Ubuntu started supporting ZFS for root partitions after the release of Eoan Ermine, ZFS was supported for other partitions since Xenial Xerus (16.04) (see Ubuntu 16.04 LTS (Xenial Xerus) - Ubuntu version history - Wikipedia). zfsutils-linux is a package which provides some management utilities for ZFS. If you run cat /proc/filesystems | grep zfs without installing the above said package, the output would be empty which means that some, if not all, operations for ZFS won't be available and may not work as expected.
Similarly, e2fsprogs provides management utilities for extended file systems. This include ext2, ext3 and ext4. This package mostly comes pre-installed since as of now ext4 is the widely used filesystem for Linux system. For information about pre-installed packages, see the corresponsing manifest file. For example, this is the manifest file for 20.04's server image.

Some related articles:

Enhancing our ZFS support on Ubuntu 19.10 – an introduction | Ubuntu

Using ZFS Filesystem on Ubuntu 19.10 - It's FOSS

Install Ubuntu 20.04 with ZFS - LinuxConfig.org

Which Linux File System Should You Use? - How-To Geek

Linux File System Explained: Boot Loading, Disk Partitioning, BIOS, UEFI and File System Types - TecMint


Is it ok to have both a swap partition and swap file on an Ubuntu 18.04 system?

It's a common practice to have a partition and dynamically increase swap via swap files. It is an accepted method among others on How to increase swap space? and in fact I have implemented a script to add swap files to make the steps even easier. In fact, keeping original partition and adding/removing a swap file is far easier and safer than increasing partition size, since during partitioning improper steps can lead to loss of data on the main partition, where as swap file concerns only with one file and does not touch partitioning layout or other data located on hard drive.

Errors with having both swap file and partition can result from improper formatting of swap file (think data corruption, file truncated or overwritten by privileged process), if it has been deleted ( unlinked ) or moved but corresponding entry in  /etc/fstab has not been updated (if you use /etc/fstab to mount the swap file on boot). However, these aren't directly related to having both swap file and partition, and as far as swap file  it is easy to deal with such issues. When it comes to failing hardware, hardware issues aren't directly related to having partition or file, and there's also no good alternative aside from replacing the hardware as soon as possible. It is often recommended that you only use swap file on SSDs, since SSDs have shorter life compared HDDs. But in my research I've so far found no evidence that having a partition on SSD dramatically decreases SSD lifespan and there's other factors to consider.

If you have large amount of RAM (above 4 GB), it might be advisable to keep either small partition (1 GB) or swap file on SSD, since it would be a waste of disk space. ( Note: there's couple other low level hardware considerations which need to be addressed, but I currently cannot recover the sources needed for such discussion)

See also Waren Young's answer on swap reliability.


I can only assume I have not asked the question correctly, or that no one has the answer.  I have reloaded Kubuntu 14.04.3 on the HP B&O Pavilion Core i5. in hopes of correcting the problem.  It did correct the initial problem in that it will now connect to the network without scrolling continuous error messages, but the operating system will not stay connected to the internet.(that is not exactly correct, because the network symbol on the desktop says it is connected to the network) The browser will not connect to the network or internet, after a couple of minutes it says it cannot find the server.  If I restart the computer everything connects, and works.  If I let the computer set, say overnight, it somehow loses the connection.  I can only assume there is some sort of incompatibility between the network adapter and the operating system. The network adapter is; Realtek Semiconductor C., Ltd. RTL8723BE PCIe Wireless Network Adapter.  I will continue searching for an answer.  If anyone has any ideas please don't hesitate to give me a shout.  Thanks.


Using 12.04's wubi installs 13.04 instead

You're not using the latest version of wubi.exe. You have 12.04.1 instead of 12.04.2. It's release specific and that's part of the problem of why you're getting the development release. Also the same reason it rejects the ISO which is release 12.04.

When you first got the wubi.exe it was the current version at that time (12.04.1). But since then they've updated everything (for LTS releases they have 4 subsequent releases, each with a new version of wubi.exe) and now it's no longer valid and will only work offline with the 12.04.1 ISO.

Your ISO isn't 12.04.1 or 12.04.2, it's the original 12.04. And this is it rejecting the 12.04 ISO:

01-30 19:43 DEBUG  Distro:   parsing info from str=Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
01-30 19:43 DEBUG  Distro:   parsed info={'name': 'Ubuntu', 'subversion': 'Release', 'version': '12.04', 'build': '20120423', 'codename': 'Precise Pangolin', 'arch': 'i386'}
01-30 19:43 DEBUG  Distro: wrong version: 12.04 != 12.04.1

And this is it not finding the diskimage (no longer available) and downloading the development release diskimage:

03-08 13:46 DEBUG  TaskList: ### Running download...
03-08 13:46 DEBUG  downloader: downloading http://releases.ubuntu.com/12.04.1/ubuntu-12.04.1-wubi-i386.tar.xz > D:\ubuntu\disks\ubuntu-12.04.1-wubi-i386.tar.xz
03-08 13:46 ERROR  TaskList: [Errno 14] HTTP Error 404: Not Found
Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\downloader.py", line 77, in download
  File "\lib\urlgrabber\grabber.py", line 927, in urlgrab
  File "\lib\urlgrabber\grabber.py", line 845, in _retry
  File "\lib\urlgrabber\grabber.py", line 913, in retryfunc
  File "\lib\urlgrabber\grabber.py", line 1001, in __init__
  File "\lib\urlgrabber\grabber.py", line 1072, in _do_open
  File "\lib\urlgrabber\grabber.py", line 1182, in _make_request
URLGrabError: [Errno 14] HTTP Error 404: Not Found
03-08 13:46 ERROR  TaskList: Non fatal error [Errno 14] HTTP Error 404: Not Found in task download
03-08 13:46 DEBUG  TaskList: ### Finished download
03-08 13:46 DEBUG  TaskList: New task download
03-08 13:46 DEBUG  TaskList: ### Running download...
03-08 13:46 DEBUG  downloader: downloading http://cdimage.ubuntu.com/wubi/current/i386.tar.xz > D:\ubuntu\disks\i386.tar.xz
03-08 13:46 DEBUG  downloader: Download start filename=D:\ubuntu\disks\i386.tar.xz, url=http://cdimage.ubuntu.com/wubi/current/i386.tar.xz, basename=i386.tar.xz, length=576048376, text=None
03-08 14:02 DEBUG  TaskList: ### Finished download
03-08 14:02 DEBUG  downloader: download finished (read 576048376 bytes)

I'll still file the bug report, because it shouldn't download the dev release. But you need to redownload the latest wubi.exe from http://www.ubuntu.com/download/desktop/windows-installer


apt-get install fails because of libmagic1

check /etc/magic and see if that file exists also check /usr/share/file/magic folder exists

If /etc/magic doesn't exist use the following

sudo touch /etc/magic

If the usr/share/file/magic folder doesn't exist use the following

sudo mkdir /usr/share/file/magic

Then try again .. this should solve the issue or at least come up with something else to go on


There's system wide equalizer provide by this package: http://www.ubuntuupdates.org/package/webupd8/xenial/main/base/pulseaudio-equalizer

However, I'm not sure if it works for a specific software,namely Spotify for Linux which seems to not having much attention lately.


Assuming that you can see the network menu and the network you want to connect to:

Click the network menu in the menu bar, and click the name of the network you want to connect to.If the name of the network isn't in the list, select More Networks to see if the network is further down the list.

If the network is protected by a password (encryption key), enter
the password when prompted and click Connect.

The network icon will change appearance as the computer attempts to connect to the network.

More info here.

Hope this help.


How can I clone a 120GB ssd to a 80GB one?

Use resize2fs (see man resize2fs) to shrink your existing partition from 120GB to 80GB (since you have only 50GB of data). Then, use your standard 80GB to 80GB clone process.


UBUNTU 14.04 LTS - FREEZES - How to Analyse?

Try by installing the below to fix freezing issue,

sudo apt-get install nvidia-prime

After installing reboot the machine using,

sudo reboot

Hope this helps.


PPPOE internet not working in ubuntu,but it works on Windows

I managed to fix it. Edit /etc/network/interfaces as root, and delete every line except these:

auto lo
iface lo inet loopback

Then

sudo service network-manager restart

Then created (not pppoeconf) DSL connection where I entered my username and password, and the cloned MAC address of my PC.


fcitx doesn't work with Sublime Text 3 and RStudio

There is a fix to do this on github. Make sure your system is updated and the commands to install this fix are (I assume you have both sublime and fcitx installed) ...

git clone https://github.com/lyfeyaj/sublime-text-imfix.git
cd sublime-text-imfix
./sublime-imfix

Important: There is a note in the link that you need to start sublime from commandline (using subl command) for this to work.


Myunity depends on gambas2 but Ubuntu 12.10 release comes with gambas3

Myunity packages are not supported for 12.10 release hence they are removed from here

So by adding PPA wont help you to install Myunity.


How secure is the traffic behind the SSH tunnel to VPS virtual server?

The VPS will be able to see

Websites/Serveraddresses you connect to.
Unencrypted contents (http, ftp, ...)

The VPS won't be able to see

Encrypted contents (https, sftp, ssh, ...)

  Note: This is a general concern. You always have to use https OR trust your provider (and any node between you and the server) to not steal your passwords etc.

In terms of sneaking on which websites you visit, you always have to trust someone. It's just a matter who you trust more. Be it your VPS provider, your VPN provider, your ISP or your boss at work.

That said, there are networks that try to prevent that by rerouting your traffic through several nodes (e.g. TOR).


Auto SSH on startup is actually starting, but it's not mapping commands?

1. The tilde (~) will resolve to your home directory, but it hasn't a meaning while you are not logged in. This is not so important according to the next suggestion but is good to be emphasised. Related answer. My suggestion here is to rewrite the script in this way:

#!/bin/bash
while true; do sleep 60; ssh root@ip -i "$HOME/.ssh/key" -N -f -R xxxx:localhost:22; done

or better use /the/full/path/to/ instead of $HOME.
-f Requests ssh to go to background just before command execution.
-N Do not execute a remote command.  This is useful for just forwarding ports.

2. SSH keys are readable only for their owner, so other users can't use them and they cannot be used system wide. So my suggestion is to use a Cron for this task.

Log in with the user that is owner of the SSH key and run crontab -e (-e means edit), or use sudo -u <user-name> crontab -e (-u means execute as the user called <user-name>) and add this line at the bottom:

@reboot /full/path/to/the/script/autossh.sh > /tmp/autossh.log 2>&1

Save and close Crontab. This line should execute the script at system startup and will write a log.

References:

Auto start a reverse ssh tunnel on system startup.
Connecting a SSH tunnel on reboot?
man ssh

Update:

Better scripts for similar task.


Can VirtualBox and KVM run alongside each other?

You can't make them work together. They both need access to the CPU's virtualization features, but that's not designed to be used by more than one hypervisor at once.

You could try disabling Virtualbox's VT-X support so it doesn't try to use hardware virtualization. Edit the virtual machine's settings, in the system tab find the "enable vt-x/amd-v" tick box and unmark it. I don't promise it will work, and even if it does, it will use software virtualization for virtualbox so your VMs will be slower.

If at all possible, I strongly recommend you choose just one hypervisor and use it for all your VMs.


Trying to run Google Chrome and Maps on Ubuntu 16.04

Welcome to AskUbuntu!

There was a bug when 16.04 first came out that made it difficult or impossible to install third-party .deb packages through the graphical software manager. However, Canonical has released an update that fixes the issue.

Install all the available software updates for your system, log out and log back in, and you should be able to install Google Chrome.


Every action performed and tells by sound

You might have enabled Screen Reader accidentally.

To solve, try to press Alt+Super+S to disable it.

If it still sounds for every action, go to System Settings --> Universal Access --> Seeing and turn off Screen Reader.


How to compile and install clamav from surceforge?

Searching for solution, I've followed the thread How do I enable the "backports"repository? and it helped, the recent version of clamAV began accesible through apitiude tools.


Adding extra options to right-click menu

The first thing you need to do is install the Nautilus Actions application:

sudo apt-get install nautilus-actions

After it is installed, press the super(windows) key then search for Nautilus Actions you will find the icon click on it then you should now see the Nautilus Actions main screen

Click the Add button and you should see the Add a New Action screen

Fill out the Menu Item & Action properties with whatever you would like in your right click menu.  Above, you can see I am using VLC as an example.

Next, click on the Conditions tab.

Under the Conditions tab you need to make sure that Both is selected under “Appears if selections contains”.

Next, click on Advanced Conditions

First, uncheck the “File / Local Files” box.  Second, in order for the menu items you add to appear every time you right click, you will need to add a blank entry under the Advanced Conditions.  To do this, click on the + and erase “new-scheme” and “new-scheme description” so that both entries are blank.
Click OK.
You now have added your first right click menu item.  In order for the item to appear on your right click menu, you need to restart the nautilus daemon.

killall -HUP nautilus

Now you should be able to see the VLC media player on the right click menu.

To continue adding more items to the menu, repeat steps 3 through 8 until you are satisfied.


How to recover data from a partition with unknown filesystem

For further reference: Following @MaNyYaCk's advice, I have managed to recover the partition using Testdisk

Download from https://www.cgsecurity.org/wiki/TestDisk_Download and uncompress
Locate the folder download on #1 and run command sudo ./testdisk_static
Click on create

Navigate through the hard drive(s) and select the desired one and then the command Proceed.
Select the type of partitions, which in my case was Intel (usually makes a reasonable guess and selects it accordingly)

Select the partitions you want to work with and then select Analyse command.
Select Quick Search command. After a while (it can take some time) it will find the partitions on that drive and you will see new options available.
Click on the new write option that appeared after #7 (if it is not available you may want to make a Deep search instead of a quick one). You will be asked to confirm that you want to write partition table.

If everything goes as expected your partitions will be recovered and available again (it may require to reboot)


Gnome not automatically detect screen resolution after login

but the only solution that i have is this
in terminal make this

sudo nvidia-settings

select x server display configuration, later advanced and write your resolution in viewportin, later make click in other side and later in apply, later you need save your configuration in xorg.conf then press save to x configuration file and save

lot of problems i have because the resolution that ubuntu detect is 1024x768 but the real resolution is 1600x900 of my monitor this cause a blurry text and your screen is moved to one side, for solutions this, you need to set in your monitor o tv autoset config for adjust your new resolution in your monitor o tv, the blurry text is for me, i have a gtx 970 and a monitor vga, i buy an adapter fro vga to dvi, this cause that some of colors the principal problems with analog to convert to digital, but some people works of this way, go to antialiasing settings and uncheck enable FXAA , and save your configuration, for make changes if your use ubuntu and unity

  sudo service lightdm restart

and tell me How did it go


scp output from remote grep back to my machine in a script

You could do this in one step:

ssh user@server "grep pattern logfile.log" > temp.txt

This will ssh to the remote host, issue grep pattern logfile.log on that remote host and
redirect the output of the whole ssh command to your local file temp.txt.

In this case quoting matters a lot, i.e. it's crucial where you put the quotes ". For instance

ssh user@server "grep pattern logfile.log > temp.txt"

would write the output to a file on the remote host (not what you want) because it
runs the complete "grep pattern logfile.log > temp.txt" on that host. But in the first case
only the command is run remotely and the redirection happens on your local host.


Is there hope for having an ubuntu theme that looks like unity's context-menu theme?

Canonical might not. The community might, or you might! If you're interested in this kinda thing, take a look at this question: How do I make a Theme from scratch for Unity?


Does anyone have some suggestions for me I deleted some important files

Is there a way to recover removed files in a situation such as described below?

Technically, yes for example using testdisk. However, it is not worth it. You basically deleted some system files (the entire /lib and /lib64 directories) but not your user data.

Therefore, you are better off just making a copy of your home directory and reinstalling from scratch. I have described how to back up files using a live CD in this answer, here's an excerpt:

  Backup using a live DVD or USB

  If you have access to a Ubuntu installation medium, do the following:

  boot your computer using the live DVD or USB
  connect the external hard drive
  run sudo nautilus in the terminal
  copy all the files you want in the external drive
  safely disconnect the drive
  re-install Ubuntu


Script to notify system services status on login

If you want output like:

The following services are running: ntp, rsync, ssh,

You can use awk to transform the output of service --status-all:

$ service --status-all | awk '/+/{printf "%s", sep " " $NF; sep=","}'
 acpid, alsa-utils, apache-htcacheclean, apache2, apparmor, apport, atd, avahi-daemon, cron, cups-browsed, dbus, grub-common, irqbalance, keyboard-setup, kmod, lightdm, network-manager, networking, ondemand, procps, rc.local, resolvconf, rsyslog, speech-dispatcher, ssh, udev, ufw, urandom, whoopsie

So your script would look like:

#! /bin/sh
printf "The following services are running: "
service --status-all | awk '/+/{printf "%s", sep " " $NF; sep=","}'
echo

The awk command is simple:

/+/ matches lines with + in it. Normally, + would mean one or more of the preceding expression. But, by itself, + means just +. Awk runs the following {...} block if this pattern matches.
printf "%s" sep " " $NF prints the contents of the variable sep, followed by a space, and followed by the last field of the line (NF is the number of fields, and $x is the contents of field no. x).
sep is empty at first, so the first service to be printed has just a space before it. Now I set sep=",", so the next line onwards, we have a ,.
This doesn't print a newline, so I use a simple echo at the end to print one.

Now use something like this: Run script on shell login for all users to run the script on login.