I have just found a solution here:

https://help.ubuntu.com/community/DefaultFileManager#Restoring_Nautilus_as_a_default

Go to the end of the article and you will find the easiest way to do it as follows:

One more way - for "mousemonkeys", like me

Just do in terminal

exo-preferred-applications

then switch to Utilities tab and select File Manager you prefer. And that's all!

You could need to install exo-utils before, but it will prompt you if necessary.
Anyway the command to install it is:

sudo apt-get install exo-utils


Ubuntu server 20.04 - time format 24 hours on shell with date command

The easiest way is to change LC_TIME variable to locale that uses desired time formatting. en_GB uses 24h clock for example. You can set it system-wide using localectl:

localectl set-locale LC_TIME="en_GB.UTF-8"

Then, you have to relogin to see changes.

Alternatively, you can customize date and time formatting in locale definition file /usr/share/i18n/locales/en_US. You will find date and time formatting in the following section:

% Appropriate date and time representation (%c)
d_t_fmt "%a %d %b %Y %r %Z"
%
% Appropriate date representation (%x)
d_fmt   "%m//%d//%Y"
%
% Appropriate time representation (%X)
t_fmt   "%r"
%
% Appropriate AM/PM time representation (%r)
t_fmt_ampm "%I:%M:%S %p"
%
% Appropriate date and time representation for date(1)
date_fmt "%a %d %b %Y %r %Z"

In this case, to get 24h clock, you have to replace %r to %T and run locale-gen to regenerate locales.


Problem upon restarting Ubuntu: grub rescue

Oh dear it sounds like your grub boot loader is corrupt.

You can do the following to repair it.

Boot from your installation CD choosing try ubuntu without installing.
Open a terminal.
enter the following commands:

BUT FIRST This assumes that your hard drive is showing as /dev/sda you may need to adjust. If you computer is under 10 years old and has only one hdd and your not running under a virtual machine then your hdd is probably lableled /dev/sda

These are the commands to reinstall the boot loader.

sudo mount /dev/sda1 /mnt
sudo grub-install --boot-directory=/mnt /dev/sda
sudo reboot


Change home folder background on Ubuntu 13.10

It's not possible in default Ubuntu file manager anymore, however you can install Caja - fork of Nautilus 2.32. After installation go to edit -> backgrounds

Run commands in terminal (open by ctrl+alt+t or from Dash)

For 64 bit system:

wget http://repo.mate-desktop.org/ubuntu/pool/main/m/mate-file-manager/libcaja-extension_1.6.1-4.1+raring_amd64.deb
sudo dpkg -i http://repo.mate-desktop.org/ubuntu/pool/main/m/mate-file-manager/caja_1.6.1-4.1+raring_amd64.deb

For 32bit system:

wget http://repo.mate-desktop.org/ubuntu/pool/main/m/mate-file-manager/libcaja-extension_1.6.1-4.1+raring_i386.deb
sudo dpkg -i http://repo.mate-desktop.org/ubuntu/pool/main/m/mate-file-manager/caja_1.6.1-4.1+raring_i386.deb

To determine if you have 32 or 64 system

uname -p

x86_64 - means 64bit

x32 - means 32bit


Which proprietary driver should I activate?

I do not think you can get the proprietary driver working without doing a standard install. Persistence will save data and changes, and you can install some packages, but it uses a cow (copy on write) so it does not replace a standard installation. This is an example of where persistence will not work.

Once you do an install, each driver should have a version or number associated with it. Choose the highest number.

After installing the driver you typically need to then reboot for the changes to take effect, and this is where persistence fails.


Ubuntu 18.04 service not working for start/stop/restart actions and not printing the echo statemetns

You might be lacking the aliases for controlling systemd. This aliases were created in some distributions of linux as a way to easy the transition.
You are better off learning and using systemctl to control it.
Learn more here: https://www.freedesktop.org/software/systemd/man/systemctl.html
In your case the proper command is:
~# systemctl start process

Basically the same as you would using "service" but first come the action (enable, disable, status, start, stop, restart) and then the service name.


watch -t -n1 'figlet $(date +%Y/%-m/%-d) $(date +%-H:%M:%S)'

or

watch -t -n1 'figlet $(date +%Y/%-m/%-d" "%-H:%M:%S)'


Run typical sudo commands from button on unity

You can change the icon using the Icon option. I guess you knew that already but I'm noticing that you have declared it only on the first entry. Also it is declared twice there which might be conflicting. Remove one of them and see if it works.

Also your icons are given as relative path. I don't know in what folder unity is looking for icons but you have to copy the file there or use an absolute path (e.g. Icon=/home/myuser/myicon.png).


How can I see what happens during the boot process?

When you get to Grub (hold left shift on boot), edit the top option by pressing e and search the boot command until you see the two words "quiet splash". Delete these from that line and press Control+X to boot.

This will show you what's happening behind the scenes (and what it's getting stuck on).

This is temporary. It will revert to the old behaviour on the next boot so it's fairly safe.

If you want to make it permanent, edit /etc/default/grub as root, delete "quiet splash" from the GRUB_CMDLINE_LINUX_DEFAULT variable, save and then run sudo update-grub.


Printing PDF-files via network extremely slow

Just for people to who it would also happen: I had the same problem, and in my case the solution was also to change the driver: more precisely change my footmatic/pxl color driver to the footmatic/postscript equivalent.

My printer was a Sharp MX-2300N, and the "Generic PCL5e printer" only enabled to print in grey scale, so I really had to stay on the manufacturer drivers.

Well, actually I have no idea why it worked, I just did it because an other printer on the network had also a postscript driver and was working perfectly well...

What's actually the difference between postscript and pxl drivers?


Can users with the same $HOME have separate bash histories?

I would highly recommend to keep separate user homes for different users and discourage the idea of having a shared home directory for different users.

This makes e.g. custom settings for users impossible, will likely break caches and configs for applications.

Concerning your question and assuming you already have made the according changes to /home/mydir to make user2 able to access and write to this directory, you could add the following line in /home/mydir/.bashrc:

HISTFILE="${HISTFILE}_${USER}"


Lenovo Thinkpad x1 carbon 7th Gen cannot use fingerprint reader

Updating firmware as described in arch wiki helped me on 20.04:
# fwupdmgr refresh
# fwupdmgr get-updates
# fwupdmgr update

After restart I was able to set fingerprint via Settings -> User -> Fingerprint Login
I think this should also work on 19.10


Sound Converter doesn't convert at all. Any clues?

Why don't you try Format Junkie?

Format Junkie is a converter of audio, music and video. You can give it a try.

To install it:

sudo add-apt-repository ppa:hakermania/format-junkie; sudo apt-get update; sudo apt-get install formatjunkie


There are a couple of reasons its not working:

http_proxy is set
https_proxy is set
dropboxd is not being called correctly

In the command line do the following:

unset http_proxy https_proxy
~/.dropbox-dist/dropboxd

Does the dropbox icon show up in the toolbar?  If so is the menu blank? If YES/NO then you should be fine.

I don't know what the webproxy is all about...


When installing Grub to a windows 7 install USB I get this error

Avoid at all costs file paths that contain spaces. So give your USB a label without spaces!
The root-directory value is incorrect. You must specify the USB mount path, not its UUID.
Read this again and don't forget the target argument.


Ubuntu 14.04.5/16.04 and newer on AMD graphics

PRE-NOTES

This answer also applies to the latest HWE upgrade for 14.04 (AKA 14.04.5). That upgrade brings Xorg and the kernel to the versions on 16.04. Read below for more details on why this is important.

BACKGROUND

Let's start off with a general description.

With the release of Ubuntu 16.04, came the lack of proprietary drivers for AMD. "Why?" you might ask. Well, it's because of a few things.

Firstly, it's just not compatible. You won't find fglrx in 16.04 repositories, nor will you find a version for 16.04 online. If you download the latest version from AMD's website and install it, you'll run into Low Graphics Mode, blank screens, and other nasty stuff you don't want to happen.

You might be hoping that AMD will step in to update the driver, but then you must not know AMD's reputation for ditching support for even slightly older cards on Linux. Since AMD doesn't want to update the driver, Canonical could make one for Ubuntu, except it won't. Since 16.04 is an LTS release, Canonical would have to maintain an AMD driver for at least 5 years, which would be hard to do.

There's always the possibility that AMD will release another widely compatible graphics driver or that people might just move away from AMD on Linux. It doesn't make sense to spend a lot of effort on a driver for a few Linux OSes (doing it for all would be harder), which would still have to be supported if a new driver came out from AMD.

More on this here: http://www.omgubuntu.co.uk/2016/03/ubuntu-drops-amd-catalyst-fglrx-driver-16-04

PERFORMANCE

Now, just because you don't have a proprietary driver doesn't necessarily mean you'll have a terrible time. After all, Intel does it just fine.

If you just use your computer for web browsing, email, answering/asking questions here, a few YouTube videos, and not much else, then the lack of proprietary drivers probably won't bother you. You may notice some stutter in video, and you may not. Honestly, there's no way to tell beforehand.

If you game, use rendering applications, 3D modeling programs, or any other graphically advanced or intense software, you're in a much more complicated situation.

Personally, I've mostly seen reports here and on reviews and articles elsewhere that say AMD with open source drivers is terrible: programs don't work, since they need OpenGL/CL versions that the default drivers can't provide; games are laggy and stuttery; videos cut out, and take the audio with them; etc. However, I've also seen a few people say they can game just fine, videos are perfect, and there's no trouble.

This contradiction may be due to the two different open source drivers available: radeon and AMDGPU. AMDGPU provides better performance I believe, but it's only available for newer cards. Older cards (which to AMD could mean 6 months if you're unlucky) are stuck with radeon, and a search of Google and Ask Ubuntu will show you there's no way to switch which one you're using. At least, there's no way that's been released.

Just like with many things, you can't know what will happen unless you try, so if you're willing to risk an upgrade, go ahead.

OPTIONS

So maybe you took the plunge, hoping you'd have the card that would get AMDGPU, but weren't so lucky. Maybe you installed or upgraded without knowing the situation with AMD. Maybe you got AMDGPU and it just isn't enough. Whatever the reason you're on 16.04 with AMD graphics, there are a few options for you.

 1. The first, and most obvious, is to just to downgrade to 14.04.

It's still supported until 2019, so you have 2-3 more years to use it. Who knows? By that time, AMD may have decided to completely change its business model and actually provide good support.
You get to use fglrx and get the performance you want/need.
Please Note: 14.04.5 brought with it Xorg 1.18, which is what causes the problem in 16.04 to begin with. Luckily, it is completely possible to downgrade Xorg to 1.16 (on 14.04), so you can still use fglrx. Read here.

Maybe 14.04 is too old for you, though. Maybe it doesn't have compatibility for that new application you use so much. Maybe you don't want to go through the trouble of backing up data and reinstalling. Well, there is another option.

 2. Try out Oibaf's drivers.

They work for AMD, NVIDIA and Intel, so you can even try them out if you dislike NVIDIA's proprietary drivers or are hoping for more performance from your Intel card.
They support newer OpenGL and OpenCL versions, so stuff that depends on those will work.
They claim to be optimized, so you could see an real boost in performance.

Oibaf's driver seems like a great replacement to fglrx, and it probably is. However, if you have a really recent AMD card, you may want to try out AMD's own offering.

 3. AMDGPU-PRO

It's proprietary and maintained by AMD, so it should provide the same performance as fglrx did.
It actually works on 14.04 too, so you can try it if you're still on that.
UPDATE: 16.60 was released, which adds support for quite a few older (3-4 years old) cards. Link updated.

Unfortunately, AMDGPU-PRO is not a true replacement for fglrx. While it does provide support for 16.04, it's only compatible 20 models. That's not very much.

If you don't care about performance, or you already have what you need, then don't bother with all the proprietary stuff, downgrading or weird installations.

 4. Just stick with the open source drivers.

No hassle to install, since they're already running.
They provide you everything you need if you don't do anything special.

Just be aware that these won't generally work for games, especially high end ones.

 5. Downgrade Xorg

This will not work on 16.04.

It may work, it may break your system until you reinstall the correct version. However, if it does work, then you have fglrx back.

Read the answer here.

Options are far from limited on 16.04, but some of them may not be the best. I recommend trying Oibaf's driver before doing anything else, and only downgrading if you really can't stand the performance and can't use AMDGPU-PRO.


Counting printed pages on a network printer

All you need is CUPS.

https://help.ubuntu.com/lts/serverguide/cups.html

for advanced configuration and policies you can look at

http://www.cups.org/documentation.php/doc-2.0/policies.html


Resuming after suspend problem ,Freezing and multible errors on wakeup

In my case, this looks like a problem with the 5.3 kernel not handling the nvidia gpu usb-c driver properly. See here on Launchpad for a detailed and well written description of the bug. I was having the same problem as that person (seeing a 50 second hang on resume). On that page, a temporary solution is given, namely to 'blacklist ucsi_ccg'. When I implemented that fix, my hang on resume went away and I saw no errors.

My steps to fix...

Ran ls /etc/modprobe.d and found a catchall blacklist.conf file that looked like it might be a good spot to add my new blacklist line.
Ran sudo nano /etc/modprobe.d/blacklist.conf and add a line blacklist ucsi_ccg to the bottom of the file. Save file and exit nano.
Reboot, then suspend my machine to test the fix. When I open the lid, the machine immediately starts back up with no errors.

Note that since that driver is blacklisted, you might lose your ability to use the usb-c port on your machine, but I wasn't using mine so it wasn't a big deal for me. The trick for me will be to remember in 6 months why my usb-c port doesn't work when I plug something into it. :)


No notifications from notify-osd on 13.10

Also, for the working notifications (like notify-send), the notification is drawn with a mix of Gnome3 and unity notification styles. That's quite ugly.

It seems to be caused by notification-daemon, which comes with gnome-flashback (but conflicts with notify-osd?). Unfortunately, the package can't be removed because it is a dependency of gnome-flashback.

Killing the process fixes the notification system, i.e. only notify-osd is used and volume up/down/mute shows a notification again.

killall /usr/lib/notification-daemon/notification-daemon

In order to prevent the notification-daemon to start at each gnome-fallback session, I edited the file /etc/xdg/autostart/notification-daemon.desktop. I changed the line:

AutostartCondition=GNOME3 unless-session gnome

To:

AutostartCondition=false

Note that this is just a workaround. I think a bug report should be filled in launchpad for this, unless it can be fixed without manually editing a file provided by a package.


does this work in Ubuntu correctly - or is there missing something?

In Linux, commands, file names, etc. are all case sensitive. Try using

dd if=/dev/dvd of=whatever.iso

instead of

dd if=/dev/DVD of=whatever.iso

Also, you can list the contents of /dev to make sure /dev/dvd exists, by typing ls /dev.


What do I do about these errors when attempting to install Ubuntu?

Error1 is not critical, it just tells that the kernel can't read certain parts of your hardware (namely tpm - a clock and some acpi registers). That is not critical.

Error 2 indicates that your iso image or you filesystem might have a flaw.
So you should try to rewrite the iso file unto you usb stick. Make sure to checksum the iso file with the given MD BEFORE you put it on a stick/SD_Card.


Ubuntu 20.04 "show applications" button does not work

May be you have installed chrome-gnome-shell. Open the Gnome Shell Integration extension on your browser, then disable the Hide Activities Button extension if you have installed it.


How to install wammu in ubuntu 13.10 (Saucy)

This PPA doesn't have packages for saucy/13.10. Only for 12.04, 14.04, 14.10 and 15.04. I would suggest you update to 14.04, which is an LTS release, and a direct increment to the 13.10 you have.


Force gdm login screen to the primary monitor

For newer versions of Ubuntu such as 13.10 or upgraded 13.04 using Gnome 3.8, this procedure is different because the X configuration file no longer controls the monitor layout. You must do the following:

Set the monitor layout correctly as a logged-in user (see Permanantly set monitor as primary)
Copy the configuration file over to the gdm settings

cp ~/.config/monitors.xml ~gdm/.config/

For more details, see https://bbs.archlinux.org/viewtopic.php?id=161903

Within the monitors.xml file there are tags labeled: <primary>something</primary>

For the monitor you want to be primary put a 'yes' in between the tags and a 'no' for all other screens.
        ex: <primary>yes</primary>


How can I install Gnome2 on recent versions of Ubuntu?

There's no way to install GNOME 2. Gnome 2 depends heavily on GTK+2 which it's being depreciated in later versions of Ubuntu. If you somehow manage to "install" GNOME 2 you will get an unstable system. The only way is to get some fork of GNOME like MATE or Cinnamon. Otherwise, no.


Not able to install Virtual box in Ubuntu

Although Ubuntu 15.04 is not supported anymore, you can install VirtualBox this way :

First completely remove all traces from the previous VirtualBox installation attempts.

sudo apt-get purge "^virtualbox-.*"

Download and register the ORACLE public key.

wget -q -O - https://www.virtualbox.org/download/oracle_vbox.asc | sudo apt-key add -

Add the VirtualBox repository to the sources.

echo "deb http://download.virtualbox.org/virtualbox/debian vivid contrib" | sudo tee /etc/apt/sources.list.d/oracle-vbox.list

Update the repositories :

sudo apt-get update

Install VirtualBox 5.0 :

sudo apt-get install virtualbox-5.0

Note for other users reading this answer, in case they use another Ubuntu edition as 15.04 :

You have to replace vivid with the Ubuntu edition you are using when adding the repository !

As of Ubuntu 16.04 the ORACLE public key to download and register has  changed :

oracle_vbox.asc has to be replaced with oracle_vbox_2016.asc !


Cannot Execute Binary File: Exec Format Error OOTP2015

Files with the .tar.gz extension are (supposed to be) archives, just like the .zip extension known in Windows. You have to extract them in order to use the content.

This archive will most likely contain an installation script, which you can then execute, or a deb package, which can be installed using the Software Center or the dpkg CLI.


My brand new Dell Vostro got very slow after two days of usage, what can I do to fix it?

As a start, check with the application "System Monitor" to see if there is anything hogging your device's resources. and report back.


How to fix crackling sound in Ubunu 20.04 when laptop is charging?

Turns out it was an extension plug that is probably not grounded correctly - when plugging the device directly into to the wall socket, I get clean audio.
Thanks @walttheboss and @Rinzwind!


How to remove all online smart scopes completely and permanently?

I think, the best thing to do is to unintall the packages:

sudo apt-get purge unity-scope-chromiumbookmarks unity-scope-colourlovers unity-scope-deviantart unity-scope-gallica unity-scope-gdrive unity-scope-github unity-scope-gmusicbrowser unity-scope-googlenews unity-scope-gourmet unity-scope-musicstores unity-scope-musique unity-scope-openclipart unity-scope-openweathermap unity-scope-soundcloud unity-scope-video-remote unity-scope-yahoostock


How can I use prior version recovery mode?

This is not really an answer to this question, but I was able to recover.  Essentially, since I dual boot with Windows, I am always presented with the option of "Prior ubuntu version recovery mode".

So I chose that
chose the latest version in following screen
Chose "dpkg" to fixbroken packages and let the installation continue clicking yes whenever prompted.

That ended up fixing the issue and I am able to use my computer now without re-installing.  So just to be clear, now I have 12.04 and since I didn't rollback, this is not really an answer for this question but I hope it is useful to someone facing the same situation


Ubuntu install freezes right after Grub "install Ubuntu" menu

From the comments...

Booting the Ubuntu Live DVD/USB required the use of the nomodeset parameter, which sets the video card up in its basic operation mode.

I believe that you should still check for a BIOS update for your motherboard, and firmware update for your Nvidia.

If you're still receiving ACPI errors, please start a new question for that.


Why There is a Long List Waiting for Internet: What Does http Do?

/usr/lib/apt/methods/http is used by the package manager (APT) to download files, like .deb packages and package lists.

If you aren't installing new packages or updates it's quite likely the update manager updating its package lists.


Why is my harddrive louder, when I use Windows, compared to linux?

If this is a Windows 7 (or Vista) installation, it's likely the prefetch and superfetch processes that have your hard drive moving.  However, be cautioned that this could indicate a hard disk problem (such as a bad sector) within the Windows partition.

I just replaced a bad hard drive on an Acer Aspire laptop due to numerous bad sectors.  The Windows partition repeatedly crashed (I reloaded the OS a few times, though getting a solid installation was futile).  My Ubuntu partition ran well, even though it displayed numerous hard drive errors during boot.


Firefox is always going to java site for updated version

Enter about:config in the address bar, then press the "I'll be careful, I promise!" button.
Enter blocklist in the "Filter:" text box, then double click the "extensions.blocklist.enabled" entry so its value changes to "false".
Go to Tools -> Add-ons, then Plugins. Enable the Java plugin if it is disabled.


HOW TO? Uninstalled 'I2P' (Java application) but 'I2P' still starting java service after system startup

try this:

sudo apt remove i2p
sudo apt remove i2prouter
sudo apt autoremove
sudo apt autoclean

If you also installed an i2p daemon:
also do this before autoremove: sudo apt remove i2pd

In case the above cmd lines didn't remove the .i2p/ dir in your home dir, you can manually remove it: cd ~; rm -R .i2p


I'm by no means an expert, and my answer should really be in the comment area but I can't post there since I'm a guest. I would suggest trying the server iso as it uses a text based installer it should avoid any graphics issues, you can install the standard desktop experience to it once you have it up and running.

2 Things to keep in mind when installing the server edition for desktop use are. 1 when the option to install packages come up during the installation use the down arrow to go to "Manual Package Selection" DO NOT SELECT THE OPTION THOUGH, just press return to continue with your installation, 2 when you have successfully installed the OS and boot it up you will just see a terminal screen, you will need to enter your "username" then "password", then type "sudo apt-get install ubuntu-desktop" which will install your normal desktop interface found on the desktop version of ubuntu, alternatively if need be you can install a different desktop environment that is less demanding if needed such as "xubuntu-desktop".

I do not know that this will help solve your issue, but it's where I would start.


the dual boot is not working. ubuntu installed but startup is with win7 only

Follow the steps laid out in Boot Repair wiki.  It should help you fix your boot issues.


Ensuring files on the fly are not compressed to zero byte

No file, when compressed, is ZERO bytes. It's more likely that your transfer failed. Here's an example, using the smallest file I can create (zero bytes):

$ touch zerobytes.demonstration
$ ls -l zerobytes.demonstration
-rw-rw-r-- 1 walt walt 0 Oct 21 11:26 zerobytes.demonstration
$ gzip -9 --verbose zerobytes.demonstration
zerobytes.demonstration:      0.0% -- replaced with zerobytes.demonstration.gz
$ ls -l zerobytes.demonstration.gz
-rw-rw-r-- 1 walt walt 44 Oct 21 11:26 zerobytes.demonstration.gz
$ od -bc zerobytes.demonstration.gz
0000000 037 213 010 010 272 256 047 126 002 003 172 145 162 157 142 171
        037 213  \b  \b 272 256   '   V 002 003   z   e   r   o   b   y
0000020 164 145 163 056 144 145 155 157 156 163 164 162 141 164 151 157
          t   e   s   .   d   e   m   o   n   s   t   r   a   t   i   o
0000040 156 000 003 000 000 000 000 000 000 000 000 000
          n  \0 003  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000054
$


Installing appropriate software to play DVDs

libdvd-pkg only installs the libdvdcss files required for decrypting the discs.

Also run the following to install the applications files needed for browsing the discs:

sudo apt install libdvdnav4 libdvdread4

Then you should just be able to install the VLC Player:

sudo apt install vlc

I like to install everything that VLC has, so I run this:

sudo apt install vlc*

You can also install the ubuntu-restricted-extras that gives you more encoders and applications for playing media:

sudo apt install ubuntu-restricted-extras


Cannot drop incoming packets of an interface using iptables

Looks like a bug to me.

The interesting thing is that it works for IPv6: alice pings bob, which has the drop rule in place:

First, without the rule (edited to remove real addresses!)

alice# ping6 -f bob
PING XXXX 56 data bytes
.^C
--- XXXX ping statistics ---
4798 packets transmitted, 4797 received, 0% packet loss, time 4274ms
rtt min/avg/max/mdev = 0.435/1.143/203.132/6.988 ms, pipe 17, ipg/ewma 0.890/0.679 ms

Install the rule on bob:

bob# ip6tables -i eth1 -A INPUT -m statistic --mode random --probability 0.1 -j DROP

Run the test again on alice:

alice# $ sudo ping6 -f bob
PING XXXX 56 data bytes
.......................................................^C
--- XXXX ping statistics ---
1003 packets transmitted, 906 received, 9% packet loss, time 2324ms
rtt min/avg/max/mdev = 0.461/0.907/21.699/0.993 ms, pipe 2, ipg/ewma 2.319/0.811 ms

I'll try to remember to check the source later. Meanwhile, we should file a bug.


You should be careful just purging things, it can really mess up dependencies, especially if you force it.

I can only guess that you probably purged the main package, then some of the dependencies remained, then when you reinstalled it all of the required dependencies weren't reinstalled.

The package that you're specifically missing is apache2-bin, which is a dependency on apache2 that was probably not removed or reinstalled correctly.

So first try just installing that with:

sudo apt-get --reinstall install apache2-bin

If that doesn't work then do:

sudo apt-get purge apache2
sudo apt-get autoremove
sudo apt-get install apache2

If that still doesn't work you can try to do:

sudo apt-get --reinstall install apache2

Always remember to do autoremove after an uninstall or purge to make sure that the orphaned packages are also removed before trying to reinstall it.

Hope that helps.


Unable to find Boot Screen to install Ubuntu , with windows 8 installed

I you have the UEFI secure boot, then you need to download Ubuntu 64-bit. It is recommended for Windows 8 and will bypass secure boot. To download it, just go to the Ubuntu Download page, but this time, select 64-bit instead of 32-bit. Then download and install as normal. If you want to dual-boot, it will ask. (Run alongside Windows 8.)

Hope this helps!


VMWare Workstation Pro 12 on Ubuntu 16.04 cannot compile vmmon

I had the same issue. Here is the fix
Go to the folder

cd /usr/lib/vmware/modules/source

Untar the file vmmon.tar using (you might need su/sudo to do these)

tar xf vmmon.tar

Edit the file ./vmmon-only/linux/driver.c

nano ./vmmon-only/linux/driver.c

Apply these changes, courtesy of https://forums.gentoo.org/viewtopic-p-7841306.html#7841306 At around line 400, delete lines starting with a - and add ones starting with a + (don't actually put the +). There's a way to do this using the patch command but whatever. If you know how to read patch files you'll see the user on that form included another change to another file but it all works without me carrying that out.

#ifdef VMX86_DEVEL
    unregister_chrdev(linuxState.major, linuxState.deviceName);
 #else
-   if (misc_deregister(&linuxState.misc)) {
-      Warning("Module %s: error unregistering\n", linuxState.deviceName);
-   }
+   misc_deregister(&linuxState.misc);

Backup the original

mv vmmon.tar vmmon.tarbackup

Retar the files

tar cf vmmon.tar ./vmmon-only

I'm a little iffy from this point on, since I did a few things and didn't test after each step. So both of these might not be strictly necessary.
Recompile libs using the driver.c you just edited

sudo vmware-modconfig --console --install-all

Run VMWare, telling it to use the libs you just compiled

sudo VMWARE_USE_SHIPPED_LIBS=yes vmwarex:


The tricky thing about your configuration is that, in a default Ubuntu installation, the boot process relies on files that span two partitions:

Ubuntu's boot loader program (GRUB) is installed to the EFI System Partition (ESP), which in your case is likely to be on your internal hard disk.
GRUB's configuration files are stored in the Ubuntu /boot/grub directory, which by default will be on the main Ubuntu partition, which you say you want to be on your removable SSD.

Thus, in a default installation, everything will work fine when the SSD is installed in the computer; but when you remove the SSD, GRUB will launch, be unable to detect the SSD, and drop back to a grub> prompt. IMO, this is a bug; in fact, I filed this bug report about the problem.

Several workarounds are possible, but they take a bit of planning and deviation from the default installation procedures:

You can create a separate /boot partition (I recommend 512-1024 MiB) on your main disk and put the rest of Ubuntu on the removable SSD. This will require a small modification to the internal disk, and when you boot, GRUB will show an "Ubuntu" option even when it's not available because the SSD is unplugged. It will be basically functional, though, and it's pretty close to a default Ubuntu configuration.
You can skip GRUB entirely in favor of a boot loader that doesn't rely on configuration files off of the ESP. My own rEFInd boot manager works well for this. The easiest way to do this is to install Ubuntu normally, then install rEFInd from a Debian package or PPA; however, you may have to periodically correct what I call boot coups -- GRUB taking over the boot process against your wishes. You can tell Ubuntu to not install GRUB at all by booting the installation medium using the "try before installing" option, launching a Terminal, and typing ubiquity -b. This should bypass the problem with boot coups. Note that rEFInd scans for boot loaders and kernels on every boot, so if you take this approach, rEFInd will not show Ubuntu kernel options when the SSD is removed. (It will still show GRUB as an option if it's installed to the internal disk's ESP, though.)
Instead of installing GRUB to the ESP on your internal disk, you can install it to a second ESP on the removable disk. Ideally, you can configure your computer to boot to GRUB when the SSD is inserted, but this entry will be skipped and the computer will boot via the Windows boot manager when the SSD is unplugged. One problem with this approach is that many ESPs automatically delete boot entries that aren't valid, so your computer may "forget" the GRUB/Ubuntu boot loader when you unplug the SSD. This difficulty may in turn be very difficult to overcome. Another problem is that the Ubuntu installer currently presents very poor control over where to install an EFI boot loader, so getting it set up this way may require post-installation tinkering or mucking with partition type codes to make the internal ESP look like it's not an ESP during installation, then switching it back after installing.
Install everything in the default way but then rely on the EFI's built-in boot manager to control which OS to boot. In most cases, this requires hitting Esc, Enter, or a function key to enter the boot manager. (Which key you use varies from one machine to another.) You can then opt to boot Windows or Ubuntu (or perhaps other things, like external media) as you see fit. On some computers, this approach can work pretty well; but others have such abysmal built-in boot managers that this approach will lead quickly to frustration or be completely unusable.

Personally, I'd use rEFInd on the internal disk in your situation -- but as I'm rEFInd's developer, I know it quite well and am biased. Any of the preceding options, or variants of them and perhaps other options I'm forgetting, will work. Each has its unique advantages and disadvantages, as just described, so you should pick the one that sounds best for your specific needs and skills.


Yes, already posted in the comments as a verified solution, but posting as an answer anyway.

If the version 1.6.1 from the Ubuntu repositories in 12.10 is not sufficient, you could try installing the 1.6.3 version from Raring (unreleased 13.04 development branch) here:

openmpi1.6-bin
libopenmpi1.6
openmpi1.6-common

Download the right .debs according to your architechture and install them like

sudo dpkg -i openmpi1.6-bin_1.6.3-3_amd64.deb libopenmpi1....

A quick look at the dependencies shows this should work in the 12.10 release as well. This is not a general valid solution, as it's quite a hackish way of backporting.


The information you showed was just the dmesg of the wireless configuring itself.

Try pressing Ctrl + Alt + F7

Apart from this, it seems your system is fine (from what you've described) besides booting to tty1 instead of tty7.


How do I export Shotwell photos ordered by date/time they were shot?

The easiest approach will be to break this into two parts.

First, export all the images from Shotwell to one folder.
Second, use pyrenamer to give the files the naming pattern you
want.

Here's an example of how to use pyrenamer:

Here's the code I used to try to match your example in your question:

{imageyear}{imagemonth}{imageday}_{imagehour}{imageminute}{imagesecond}_{num3+1}.jpg

It produces filenames that look like this:

Notice that you can add characters between the values in the curly brackets (like the underscore between {imageday} and {imagehour}), to make the output easier to read.

The last {num3+1} bit is optional but helps if you happen to have two photos shot at the same second, and makes the whole lot easier to read.

If you do this and find that one or more of the device clocks are off, you can use Shotwell to modify the time/date, and then re-do the pyrenamer step to have everything in perfect order. This is especially helpful for something like a wedding where people are coming to the event from different time zones, and photos out of order look totally wrong.

Last, don't forget to include the file extension on the end, or it will be removed and may cause other problems.


Apparmor enforce mode prevents Firefox from reading U2F security key

I got it working with a lot of modficaitions..

The key bit maybe to remove the deny from this line:

  deny /run/udev/data/** r,

Also required are:

  /sys/devices/pci*/** rw,
  /dev/hidraw2 rw,

I also made a lot of other modifications trying to figure this out including switching the profile from usr.bin.firefox to  usr.lib.firefox.firefox.  I haven't reverted them all yet, so if it turns out it's something else see -https://pastebin.ubuntu.com/p/Ypy2Q322cN/ . I plan to remove the pastebin from the answer when we have more of a confirmation.


Can a windows file or virus in any way affect bios or Ubuntu?

That screen you see is the kernel output and is completely normal. You can press ESC or one of the F keys to see this screen during boot so you can see errors if there are problems. However, I see no errors. Everything says "OK" so all is good.

All you have to do is press CTRL+ALT+F1 or CTRL+ALT+F2 to get back to your normal display screen.

If that fails, you should be able to log into a text only TTY screen with your username and password by pressing CTRL+ALT+F3 or any of the other CTRL+ALT+ F keys up to F8. From there, you can perform updates, check error logs, and run commands.

The last line does say something about livepatch, and this is just a guess, but if you recently updated your kernel and you manually or incorrectly installed your graphics driver, that may be the issue.

Run the following commands to correctly install (or possibly reinstall) any needed graphics drivers:

sudo apt update
sudo apt full-upgrade
sudo ubuntu-drivers autoinstall

Reboot to apply the changes.

Also, you can try restarting the display manager by running the following command:

sudo systemctl restart gdm

Additionally, you can also try using a different display manager as GDM is known to not boot sometimes. Run the following to install lightdm:

sudo apt update
sudo apt install lightdm

Use the arrow keys to select lightdm and then press TAB and then press ENTER.

Then, use the following commands to start lightdm:

sudo systemctl stop gdm
sudo systemctl start lightdm

If it doesn't automatically take you to the login screen, press  CTRL+ALT+F7 to switch to your normal display managed screen.

Also, if you want to set your display manager back to GDM, run the following command:

sudo dpkg-reconfigure lightdm

Use the arrow keys to select GDM3 and then press TAB and then press ENTER.

Now, viruses from Windows typically can't affect Ubuntu although it could be possible and data corruption might be an issue. However, I would be more thinking that your GPU might be the problem if you are having graphics issues. A quick check revealed that FL doesn't really use that much GPU and some people say that viruses can cause hardware damage but all the security experts say that hardware damage is nearly impossible and rarely, if ever, happens. So it may just be a coincidence if you recently updated your kernel and didn't update your graphics drivers or it could be something else.


LOo don't start : Gdk-WARNING **: gdk_window_set_icon_list: icons too large

In case it helps - I had the same issue (with the same warning) and solved it by deleting the folder .config/libreoffice. It got recreated when I launched libreoffice again. I'm sure I lost some settings but nothing important...


How do I install the LaTeX opensans package?

There are two ways of installing it:

in TEXMFLOCAL, which is usually /usr/local/share/texmf (you can check this with kpsewhich -var-value=TEXMFLOCAL)
or in TEXMFHOME (which is usually ~/texmf)

The instruction provided in http://ww.tug.org/texlive/devsrc/Master/texmf-dist/doc/fonts/opensans/opensans.pdf ONLY works if you choose to install the files in TEXMFLOCAL. So if you move your files to TEXMFLOCAL, you should be able to follow those instructions.

However if that doesn't work for you (eg because you don't have administrator rights), you can install the files in TEXMFHOME.

To do this create the directory 'texmf' in your home directory.
You can now download the zip from http://www.ctan.org/tex-archive/fonts/opensans, and unzip it in '~/texmf/', the directory you just created.
You should now have a directory ~/texmf/tex/latex/opensans, which contains the .sty files you need.

Now you need to tell Latex that you have installed new files, you can do this by opening a terminal and typing

texhash ~/texmf/

Now you need to tell updmap that there are new fonts installed, so we need to create a file $HOME/texmf/web2c/updmap.cfg which contains the line Map opensans.map.
Do this by executing the following commands:

mkdir ~/texmf/web2c
echo 'Map opensans.map' >> ~/texmf/web2c/updmap.cfg
updmap

At the bottom of the output you should now verify that it processed opensans.map, now we need to tell latex again that we have changed some files:

texhash ~/texmf

and that should do the trick!

EDIT: changed the answer based on feedback from OP


Support for Intel Core 2 Quad and 4GB of RAM

You don't really need to configure anything when choosing Ubuntu. If possible any hardware features that are supported are recognized and will be installed by default. I recommend am64 64-bit version for 4 GiB RAM.  Rarely there may be problems with some GPUs, printers or WLAN adapters. It is wise to test your system with a life CD before install.


Screen goes blank when starting media, ubuntu 20.04 xps 7390 2-in-1

I have a similar laptop (Dell XPS 13 9300) and I had the same issue. I found 2 solutions.

1st - Make sure your bios is up to date. (This fixed it for me)

2nd - Use a more recent kernel, I heard from someone else with the same issue said 5.5.19 kernel worked for him, but I had wifi issues, but with 5.6.14 I didn't have noticeable issues. So just experiment to see what works.


Why does a middle click in Mate Terminal create files in my home folder?

By default on MATE Desktop middle mouse button can be used for pasting text (like Ctrl+V in apps or Shift+Ctrl+V in terminal). In some apps like man it may cause strange behavior as you have just seen.
You can switch this feature off if you visit MATE Control Center → Mouse Preferences (or mate-mouse-properties) and then in General section uncheck Enable middlemouse paste.
Or programmatically:
gsettings set org.mate.interface gtk-enable-primary-paste false
gsettings set org.gnome.desktop.interface gtk-enable-primary-paste false

to revert use
gsettings set org.mate.interface gtk-enable-primary-paste true
gsettings set org.gnome.desktop.interface gtk-enable-primary-paste true


Ubuntu 16.04.1 Nvidia Working but Intel Shows Black Screen

I managed to get it working after many many ours. I initially wanted to install Elementary OS but I first wanted to get it working on a clean Ubuntu 16.04 install and then try the same steps on Elementary.

Heres how I did it.

Disable Secure Boot
Fresh install Ubuntu/eOS (requires nomodeset kernel parameter in boot options)
Download updates during installation
After the reboot you should be able to boot in without "nomodeset" added in the kernel params.

For Ubuntu

Install intel microcode from proprietary drivers and reboot
Install Nvidia drivers from proprietary drivers and reboot
Open up terminal and enter sudo prime-select query which should return nvidia which ofcourse is good as it means the nvidia
drivers are working but not ideal for battery life
Enter in terminal sudo prime-select intel and press enter
Instead of log out/in, reboot the entire machine and go into the bios and re-enable Secure Boot
Machine should boot normally and now sudo prime-select query shoukd return intel

For eOS (Elementary OS 0.4 Loki)

On a clean eOS install first install the Nvidia drivers (i am using 361.42) so open up a terminal and sudo apt-get install nvidia-361
Reboot the machine and verify the drivers for Nvidia loaded correctly with sudo prime-select query (nomodeset should no longer be required in your kernel options)
Go to Intel Linux Graphics Firmware and download Kabylake DMC and Skylake DMC and GUC drivers from their links on the page.
Install it by following the instructions on the page:

For GUC Firmware File

  $ tar xf _guc_ver_tar.bz2

  $ cd _guc_ver_

  $ sudo bash ./install.sh --install

For DMC Firmware File

  $ tar xf _dcm_ver_tar.bz2

  $ cd 'product code_dcm_ver'api version'_'min version'

  $ sudo sh install.sh

Once installed reboot once again and verify the system is loading without nomodeset param and current selection is on nvidia with sudo prime-select query
If all is well you can run sudo prime-select intel and reboot (last reboot I swear!
Finally during the restart hit F2 for the bios and re-enable Secure Boot

After this point you should be able to load up the OS without any added kernel parameter and sudo prime-select query should return intel.

For any additional troubleshooting if you are still getting a blackscreen after the splash screen add the following to `/etc/modprobe.d/blacklist.conf'

  blacklist amd76x_edac

  blacklist vga16fb

  blacklist nouveau

  blacklist rivafb

  blacklist nvidiafb

  blacklist rivatv

and then run sudo update-initramfs -u and reboot once again.


Is the current Date/Time format retrievable?

Yes, it is, with the command:

locale date_fmt

The output will look like:

%a %e %b %Y %k:%M:%S %Z

To see what it means:

date --help

See also here and here.

I wouldn't be surprised if there existed a library in Java retrieving the info with a built in wrapper though instead of a system call.


No one. You didn't created any Ubuntu partition. All that partitions are created by Windows, if you delete any of them you can loose data, render Windows unusable or destroy your computer ability to reinstall Windows.

You tried to install Ubuntu using WUBI, a special kind of installation that installs Ubuntu inside Windows. It's not compatible with Windows 8.

You should be able to uninstall Ubuntu using the Windows Control Panel.


Ubuntu fails to boot failure reading sector

If you can't access your HDD through LiveCD, LiveUSB, or diagnostics, it means that either it's faulty or its partition table is corrupted.

If you can see your drive through sudo fdisk -l after booting from Live media, you may want to try to do fsck on its filesystems.

Let's say you have 2 parititons on your drive.

sudo fsck /dev/sda1
sudo fsck /dev/sda2

Change the /dev/sda to the block name visible through sudo fdisk -l or list your parititons with sudo blkid.

If fsck can't fix your drive you may want to try use gdisk to verify its configuration. Please refer to this answer:

Fixing corrupt backup GPT table?

If you can see the list of partitions on your drive you can proceed with this guide and try to recover grub:

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

If you can't see the list of partitions please use SMART monitoring tools on live cd to check your drive for errors.

sudo apt install smartmontools
sudo smartctl --all /dev/sda

You'll find more on that in this answer:

How can I check the SMART status of a SSD or HDD on current versions of Ubuntu 14.04 through 18.10?

If SMART can't access your disk it's most likely faulty and you should sent it to warranty. Keep in mind that you'll lose your data.

If you don't have backup and you don't want to lose something important, you're last chance will be this guide:

https://help.ubuntu.com/community/DataRecovery


20.04 LTS, today it asked me to update to 5.8.0.34 from 5.4.0.59 and it broke LSI 2116

So, I believe I found the kernel bug. https://bugzilla.kernel.org/show_bug.cgi?id=209177 I applied the boot param, and, it does work. I did rebuild initramfs, no difference. Hopefully the bug will eventually be fixed, but for now, I put mpt3sas.max_queue_depth=10000 in /etc/default/grub.d/myfile.cfg so that it will run correctly.


Why isn't conky working right in Unity desktop?

When own_window_type override is used the distortion is caused. Now to clear the distortion one may use own_window_type desktop in the .conkyrc instead of own_window_type override . But this causes other problems like disappearance of conky when trying to work in the desktop(i.e right clicking, opening a menu from panel etc.). Therefore instead of own_window_type override one may use own_window_type dock . This won't let the conky to disappear when working on the desktop. Also to solve transparency issue one may remove the line own_window_transparent yes and then include the following lines in its place:

own_window_argb_visual yes
own_window_argb_value 0

Actually ARGB visual can be used for real transparency to avoid the default pseudo transparency. Therefore even if there are icons in the desktop, they will be visible. Note that ARGB visual can take values 0-255 and a higher value means a greater opacity. Thus distortions can be removed and transparency can be adjusted. Thus the problem is solved. Note that the boxes after the fonts issue(mentioned and seen in the above screen shot)can be removed by removing new lines but new lines may be required for other formatting. Therefore one has no other go but to live with the boxes. Also note that the problem with the boxes is only prevalent in unity. Other desktop environments like Cinnamon don't seem to have the issue.

Credits to these sources:-

Conky transparency not working
http://conky.sourceforge.net/config_settings.html
Help from chatroom .


You can't force a resume if a server doesn't allow a resume. uGet will automatically try to resume if it can but if it fails to do so it is likely because the server doesn't allow it to be done. Sadly, I'd be surprised if Microsoft allowed resumes.


Quickly launch any app in KDE with a shortcut

Unlock Widgets.
Right-click in launcher and click Edit Applications...
Find the app you want to assign a shortcut

For example:
Click on System, and click on Konsole. Click on Advanced Tab. At the bottom you can see
Current shortcut key, click on the button and enter the shortcut.


Recover ext4 file system after quick format

I was successfully able to recover all my files using a backup Superblock! After TestDisk was not able to help me, I tried an approach from a related question. For the sake of clarity, here the steps I took to recover my file structure:

Make sure your drive is unmounted.
Find out your backup Superblocks via

dumpe2fs /dev/<drive-id> | grep -i superblock

e.g. dumpe2fs /dev/sdb | grep -i superblock
Check the file system based on one of the Superblocks but do not apply any changes yet to see whether this particular Superblock is structurally intact.

fsck.ext4 -v -n -C 0 -b <Superblock> /dev/<drive-id>

e.g. fsck.ext4 -v -n -C 0 -b 2654208 /dev/sdb

-v makes the command verbose to show more details, -n makes sure no attempts to fix the file system are made by always answering 'no' to each prompt, -C 0 displays a progress bar and -b defines the starting position of a Superblock given by the previous step.
If a suitable Superblock has been found, let fsck.ext4 fix your file system by replacing the -n with -y to accept all fixes automatically.

fsck.ext4 -v -y -C 0 -b <Superblock> /dev/<drive-id>
Reboot and mount the drive.

In my case, the first level of directory names could not be recovered. Thus they could all be found based on their inode name in the lost+found directory, which is hidden.


Banshee gapless playback does not work when playing mp3s

Based on my on research, I think the problem is that I am using MP3, which is compressed. A small gap is added at the beginning and end of each MP3 track, so it is apparently impossible to get true gapless playback.
See the wikipedia page on gapless playback. I have the same problem while using Music on Console, which also supports "gapless playback".

Unfortunately, I don't have a solution, either.


How to dual boot with Windows XP and Partition?

Well, in 10.10 installation is very easy. First download Ubuntu 10.10. Burn it on a CD or in a USB Stick with Unetbootin. Then simply boot the CD or the USB and select Install Ubuntu.
In the installation there is an option for dual boot installation in a simple way.


Hard drive overheats when laptop running on AC power

Here's the solution:
laptop-mode-tools is controlling power management for your hard drive, and you need to configure it appropriately for your situation.
Open /etc/laptop-mode/laptop-mode.conf for editing with root privileges, and around line 276 (on Ubuntu 12.04), change this value to 600
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
This is the amount of time before your drive is told to "spin down" or idle on AC power. 10 minutes with no read/write activity is reasonable.
And around lines 290-291 (on Ubuntu 12.04), change both these values to 1:
LM_AC_HD_POWERMGMT=254
NOLM_AC_HD_POWERMGMT=254
These set the power management level granted to the drive, with 1 being "full" power management, and 254 being "almost zero" power management. The latter setting is the reason for your temperatures, because you can set the level, but how the drive manages power at a level is entirely up to it -- it completely depends on the implementation in the drive's firmware, and can vary by model, manufacturer, etc.
With the changes, we are now telling the drive to perform the same power management it does while on battery (which is satisfactory for you). This is different from simply allowing the drive to spindown while on AC (as in @EliahKagan's answer), because that would still leave the drive's power management set to near zero at level 254.
How to determine power management level
To find out the current level, while on battery, AC, or any other situation:
sudo hdparm -I /dev/sda | grep Advanced (replace sda appropriately)


How to add executable bash script on ubuntu startup

One more option is schedule a job at boot time

crontab -e

Choose an editor to open the cron job file.
Append the following with your script name

@reboot path/to/script.sh

In your case

crontab -e

@reboot /home/user/Documents/file.sh

Make sure the script has executable permission.


disk full with large partition and small root filesystem

The answer seems to be related to https://serverfault.com/questions/315181/df-says-disk-is-full-but-it-is-not.

I had a very large Xorg log file that I had to delete.  After the delete, the difference between df and du arose.

Reboot reaped the space and solved the problem.


To chmod on many files at a time just use the -R thingy to do it recursively(subfolders, files etc).

So if I am in folder /myfolder and I want to make all files/subfiles/folders/subfolders in there to belong to me and have all accesses I would do:

chmod -R 770 *
chown -R myname:myname *

So just replace myname with your name in Ubuntu. You don't need to change anything in the first one.


How do I resolve this authentication error with OpenStack dashboard?

Check your SELINUX status, put it in permissive mode. Your error shouldnt appear. You need to investigate the cause by checking /var/log/audit/audit.log

@ I just reproduced this error by setting SELINUX mode as enforcing.

you can check /var/log/messages and /var/log/secure and the logs under /var/log/http for any openstack-related errors.


Which installation type should I choose to install 14.04 on an USB flash drive where I previously had 16.04?

I am sorry if my previous answer was confusing.

If you select the first option, it will erase the ubuntu installed in the usb stick and install ubuntu 14.04 while keeping your media/document files.

The second option will erase the entire disk and you will loose everything stored in the usb.

If you select the 3rd option, you will be able to partition the drive and select where to install what. If you do that, make sure to select the USB drive to install the bootloader.


To get localized function names in LibreOffice Calc, follow the 4 steps below:

Open a terminal and type:

sudo apt-get install libreoffice-l10n-fr

It will install the French language package
Set both User Interface and Locale settings to French (France):

Ensure that the Use English function names checkbox is disabled:

Finally restart LibreOffice to enable French function names.


php.ini shows "magic_quotes_gpc = Off" but phpinfo shows it as 'On'

Here's the solution.

Had it not been to install Joomla 3, I wouldn't have taken the trouble to check this out :)

First, the file to modify is

  /etc/php5/apache2/php.ini

We are supposed to turn off magic quotes so that the line looks like this:

magic_quotes_gpc = Off

The above change was on line 756 for my version.

But this change had no effect since the block starting at line 99 had errors. Here's the block of text WITH the errors:

; display_errors
   Default Value: On
   Development Value: On
;   Production Value: Off

; display_startup_errors
   Default Value: On
   Development Value: On
;   Production Value: Off

; error_reporting
   Default Value: E_ALL & ~E_NOTICE
   Development Value: E_ALL | E_STRICT
;   Production Value: E_ALL & ~E_DEPRECATED

; html_errors
   Default Value: On
   Development Value: On
;   Production value: Off

; log_errors
   Default Value: On
   Development Value: On
;   Production Value: On

Note that some rows don't have a leading semicolon (;). How did this happen? I'm not sure. However, these rows (above) are not the actual settings. So they need to be commented by adding the semi-colon in front.

The fix was to comment them and leave line 756 as shown, for the magic quotes statement.

Then restart apache like this from the terminal:

sudo service apache2 restart

Now you're ready to install Joomla 3 :)


I figured it out! Like the output says, I was missing qemu-img. I went to the terminal and typed:

apt-get install qemu qemu-kvm libvirt-bin

Now it works!


What is a good checklist of items to perform to clean up and run openstack 40 bundle - ppc64le

Using manual environment for below sequence.
Note that the below sequence assumes that you utilize virsh snapshots.  It is highly recommended to
setup the nodes and then snapshot each of them so you can go back to clean point easily.  For the IBM
POC we had (using the openstack 40 bundle)

VM1 that ran the MAAS/juju. This was on separate compute node.
 This VM we considered either MAAS deployer or jujum deployer server.
 Snapshot of this was made where MAAS/juju installed where no environment built.
VM2,  VM2, VM3 and VM4 running ubuntu 14.04 on one node
  Snapshot of all these VMs built with network setup to talk to each other and NO jujud client on end points.

This checklist indicates how to rebuild quickly if the VM's were provisioned by MAAS and then you
need to just rebuild via juju.  The MAAS is used to provision.  The juju is used via the manual envionment
to provision all the software.  If it failes or something gets messed up then you can clean up VMs and
then rebuild using the juju manual environment.  This is really easy.

1 Clean up the endpoints

How to clean up busted end point?

How to resolve "ERROR machine is already provisioned" in manual provision set up?

rm -rf /var/lib/juju
rm -rf /etc/init/juju*
ps -ef | grep juju

kill the process machine using juju

How to I revert to a snapshot for a busted VM? if environment busts

http://kashyapc.com/2011/10/04/snapshotting-with-libvirt-for-qcow2-images/ see bottom of page

command example:

outside virsh

virsh snapshot-revert --domain ubuntovm --snapshotname 1441158838

in virsh

snapshot-revert --domain vm3  --snapshotname 1444163918

2. Check all endpoint  VM have access to internet

This can be done various ways.  We used below so we could have Firefox UI available if needed to the endpoints.

Start following on each VM:

x11vnc -create -forever -bg -env FD_TAG=my_xfce_1 -env FD_SESS=xfce -rfbport 5901

Note that at the time of this document you cannot use vnc for ppc64le.  Use
 x11vnc.  You have to install the x11vnc prior to this command, not discussed here.

BSO (IBM)  and firefox access:
Make sure you can access:
  https://streams.canonical.com/juju/tools/releases/juju-1.24.6-trusty-ppc64el.tgz

3. Clean up the juju server

How do I uninstall and reinstall juju on deploy server due to issues?

You can clean up the juju deploy server completely as listed below or you can
  short-cut and remove the /root/.juju/ files and start over again.   Depends
  on how clean you want to start.  Cleaning jup /root/.juju/ and start over
  is usually good enough.   Note if you create proper snapshot of VM don't have to do this.

To remove completely:

sudo apt-get remove juju-core
sudo apt-get remove --auto-remove juju
sudo apt-get remove juju-quickstart
sudo apt-get remove juju-deployer

/root/.juju/  remove directory and all files directory under it

Example:

rm -rf /root/.juju/jclient
rm -rf /root/.juju/environments
rm -rf /root/.juju/ssh
rm -rf /root/.juju/.deployer-store-cache

Then reinstall packages:

sudo add-apt-repository ppa:juju/stable
sudo apt-get update
sudo apt-get install juju-core
sudo apt-get install juju-quickstart
sudo apt-get install juju-deployer
juju-quickstart -i

Note if you are testing probably want to put the installable bundle in another directory so you don't lose it.  Suggestion is something like this:

/root/.juju2/bundles

4. Rebuild the environment  (juju deployment server environment)

Just build the environment, mark it default and save it.  Do not execute from juju-quickstart -i.

For the IBM POC we used MAAS as initial VM provisioning. Once that is done then you can create snapshots and after that onlly have to rebuild the VMs fron snapshots.  If you do it this way the juju environment you use is the manual definition since the target endpointswere already provisioned.

5. Bootstrap environment

  juju bootstrap --show-log --debug -e manual

If you are using juju first time or during testing then add --debug and --show-log because
    it gives you good feeling of progression.

6. Add in all the other servers

The manual environment puts the 1st VM into the environment.  You then use the juju add-machine command to add all the other VMs. For openstack 40 bundle you
need total of 4 machines so do the following  (set with your ipaddresses obviously)

juju add-machine ssh:root@9.x.xx.xxx -show-log --debug
juju add-machine ssh:root@9.x.xx.xxx -show-log --debug
juju add-machine ssh:root@9.x.xx.xxx --show-log --debug

7. Deploy environment

For IBM POC we had to copy openstack40.yaml from charm store because
   it had to be fixed to ppc64el architecture.  We also made some other
   changes to the yaml to make it work.

   juju-deployer -c /root/.juju/bundles/openstack40.yaml -s 90 -d -v openstack40.yaml

The above openstack40.yaml has 3 changes:
   1. Use of ppc64el
   2. for openstack dashboard add option
      debug: 'yes'
   3. Passwords for mysql
       root-password: PASSW0RD
       sst-password: PASSW0RD

NOTE: Step 8 has parts that overlap this step, read step 7/8 together.

8. During deploy process fix lxc container config files

For this POC the lxc did not start on 1st two VMs.  We did not debug
 far enough.  Not know if everyone else will hit this but we are listing
 it here just in case others hit.

Deployed juju bundle OpenStack 40 has linux containers not started?

When deploying OpenStack 40 bundle the environment does not have
juju-trusty-lxc-template  installed at environment build.  When you start deploying
the juju-trusty-lxc-template is eventually installed.  So this is suggested for the
first two machines in the juju status list.  Have to fix them.

Edit /etc/lxc/default.conf  and add

 lxc.seccomp =
 lxc.arch = ppc64le

During the deploy process watch directory  /var/lib/lxc/

for creation of juju-trusty-lxc-template/ directory.
I used winscp to watch the file creation during deploy.  No real good way
to do this so you have to watch the deployment proccess and check
for file every so often.  When there the lxc exists, is pending and does
not get started till late in process. So you have time to fix the file.

Once directory exists then

vi /var/lib/lxc/juju-trusty-lxc-template/config  and add:

lxc.seccomp =
lxc.arch = ppc64le

Make sure blank line at the end.  If not then additional parameters
 are added and they may be appended to the last line you added
 incorrectly.

We did not find a good way to do this so above troubleshooting question
explains what to do while deploy is running.

9. mysql charm fails and requires passwords to be setup

See other askubunto for this problem mysql fails due to
 "Unable to set password for Percona". See:
mysql/percona: Unable to set password for the Percona Server "root" user- ppc64el

Hints for debug and watching the deploy:

a) on juju deployer machine

Make sure you have this so you can check process.
  When rebuilding environment in separate window, in /root/.juju/  issue

 juju status > jujudeploylog10132015.txt

to periodically to save logs, change date in file

b) Suggestion is to have two windows open in SSH, one for the view of the
     juju-deployer command and another in 1st VM in manual environment
     doing tail in /var/log/juju/   tail -f ./all-machines.log
     This allows you to observe the building of the openstack environment.

c) If using the openstack 40 bundle then the  OpenStack horizon UI is on the
     last VM.   Checking juju status info tells you the lxc that horizon is on.
     Use this:   http:///horizon


I dont now if this will work for you but I have Ubuntu loaded alongside windows 7 on my Toshiba DX735 all in one desktop. I had to start up in windows to adjust the brightness, shut down and reboot into Ubuntu and the brightness setting held.


How to let gnome-screensaver turn off the monitor when locked in commandline?

I know it's an old question but I had same issue in 18.04. No matter what command I ran with gsettings I got  The key is not writable error message. Tried setting files to writable in /.config/dconf as suggested in other thread but it didn't help.
somehow my user file in /etc/dconf/profile got misplaced.
what I did was

mkdir -p /etc/dconf/profile

and edit /etc/dconf/profile/user, then add:

user-db:user

then

sudo dconf update

source: dconf Settings

hope this helps someone save some time figuring this out


How can I remove the second desktop on Lubuntu?

Open the Application menu, go to Preferences and -> Openbox Configuration Manager:

Click Desktops:

Click the - button, and you will have 1 desktop. You may then wish to remove the "Desktop Pager" in the bottom bar by right clicking on it.


When would yum be of use to an Ubuntu user?

Yum is for RPM packages.   RPM is not the preferred installation method in Ubuntu.   The equivalent to Yum would be APT and dpkg.  Yum is not a preferred way to update an Ubuntu system.

To install it, you can do so from USC, or from terminal:

sudo apt-get install yum

I don't think you would have a use for it, since there are equivalent Commands in Ubuntu.  See the Table of Equivalent Commands

I would think that it can be used as a backup, if for some reason normal command won't work.


Failed to change profile to headset_head_unit

I had the similar problem with Galaxy Earbuds+ and here is how I solved it:
My earbuds profiles were A2DP, AVRCP and HFP and no support for HSP. Pulseaudio only supports HSP out-of-the-box. That's why I couldn't switch to HSP/HFP. In order to make HSP/HFP work, you have to enable HFP on pulseaudio which needs ofono. Here is how I did it on Ubuntu 18.04:

Install ofono:

sudo apt install ofono

Config pulseaudio to use ofono:

Goto /etc/pulse/default.pa find the line load-module module-bluetooth-discover and change it in load-module module-bluetooth-discover headset=ofono.
Add the user pulse to group bluetooth to grant the permission: sudo usermod -aG bluetooth pulse (probably it's already correct)
VERY IMPORTANT: To grant the permission, add this to /etc/dbus-1/system.d/ofono.conf (before </busconfig>):

<policy user="pulse">
  <allow send_destination="org.ofono"/>
</policy>

Provide phonesim to ofono. In order to make ofono work, you have to provide a modem to it! You can install a modem emulator called phonesim (implemented by ofono) to make it work:

install ofono-phonesim (in some distros it is called phonesim). in Ubuntu 18.04 (for Ubuntu 20.04 follow this link):

sudo apt install ofono-phonesim

Configure phonesim by adding the following lines to /etc/ofono/phonesim.conf:

[phonesim]
Driver=phonesim
Address=127.0.0.1
Port=12345

Restart ofono:

sudo systemctl restart ofono.service

Start phonesim:

ofono-phonesim -p 12345 /usr/share/phonesim/default.xml

Note that the command can be phonesim. To make sure phonesim is started correctly you can clone the ofono repo and use their test scripts:
cd /tmp
git clone git://git.kernel.org/pub/scm/network/ofono/ofono.git
cd ofono/test
./list-modems

You should see the modem in the result. You might have to first enable the modem by executing enable-modem and online-modem scripts in the same directory.

Once the modem is enabled, you should be able to enable HFP profile.

4.autostart phonesim. Since you have executed phonesim manually, after every restart you should execute it again. Instead you can install ofono-phonesim-autostart which will start the phonesim as a service.
References:

https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Bluetooth/
https://stackoverflow.com/a/51697709/692422
https://docs.plasma-mobile.org/Ofono.html


I deleted ubuntu-desktop when removing abiword... Is it safe to auto remove?

Nothing in here should totally break your system. From what is listed, you will be removing:

Java (for browser plugin and Java programs)
LibreOffice (the office programs suite)
Brasero (for CD burning)

It's possible some of the libraries will impact functionality of other programs as well. It's better to only specifically remove what you know you don't need than do the autoremove.


Your in luck, you can find Calibre Ebook library management in Ubuntu software center. It works like a charm.

It also handles a bunch of ebook-reader devices. It reads all (I think) book formats and can convert them too, if your reader does not support a given format.


Can a ppa repository be added to /etc/apt/source.list?

Yes, PPA's can be added to /etc/apt/source.list, in similar way to debian (deb) repositories.

deb http://ppa.launchpad.net/<ppa-name>/ppa/ubuntu <release-code-name> main
deb-src http://ppa.launchpad.net/<ppa-name>/ppa/ubuntu <release-code-name> main

An example for WineHq:

Thought just matter of keeping things somehow easily managed, leaving /etc/apt/source.list only for official release repositories. All additional repositories goes to /etc/apt/source.list.d/. Easy to:

add (creating file then editing existing one, a partial solution to avoid duplicates too)
remove (with parsing a /etc/apt/source.list looking to related line)
backup/restore (using compressed archive of /etc/apt/source.list.d/ folder)
avoid breaking things with much edits targeting /etc/apt/source.list

PPA are always added to /etc/apt/source.list.d/ folder if wrote it in ppa:<user>/<ppa-name> form.

Reference: man add-apt-repository

REPOSITORY STRING
       REPOSITORY can  be  either  a  line  that  can  be  added  directly  to
       sources.list(5),  in the form ppa:<user>/<ppa-name> for adding Personal
       Package Archives, or a distribution component to enable.

       In  the   first   form,   REPOSITORY   will   just   be   appended   to
       /etc/apt/sources.list.

       In  the second form, ppa:<user>/<ppa-name> will be expanded to the full
       deb  line  of  the  PPA  and   added   into   a   new   file   in   the
       /etc/apt/sources.list.d/  directory.   The  GPG public key of the newly
       added PPA will also be downloaded and added to apt's keyring.

       In the third form, the given distribution component will be enabled for
       all sources.

Well, it seems only PPA's as shortcut goes to /etc/apt/sources.list.d/. add-apt-repository or apt-add-repository is a Ubuntu specific tool. All I can think of is just Ubuntu decision to keep personal PPA's out.

However you can modify it to use only /etc/apt/sources.list. It's a python3 script. Modify /usr/bin/add-apt-repository line:

shortcut = shortcut_handler(line)

replace it with this one below to resolve ppa shortcut form to a deb line form:

shortcut = shortcut_handler(shortcut_handler(line).expand(sp.distro.codename)[0])


Why does ls color two supposedly similar files differently?

Apparently, ls relies on environment variable $LS_COLORS. Doing echo "$LS_COLORS" | grep --color  sqlite revealed an entry with value *.sqlite=38;5;147, which apparently is the 256-color ANSI escape color code in form ESC[38;5;#m for foreground color.


The way I do it:

RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule (.*) $1.html [L]

RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.htm -f
RewriteRule (.*) $1.htm [L]

RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule (.*) $1.php [L]

Each of the stanzas has the following logic:

If the requested file does not have an extension, that is, it does not match \.[^./]+)$, and
The requested file is not a directory, and
The requested file does not exist, and
There exists a file with the requested name and the extension .html (or .htm, or .php), then
Serve that file.

The [L] means last or final: no more rewriting is to be done, so the server can safely skip the rest of the rewrite rules.


Why is cmake not finding an installed package?

When you build software that uses libraries such as bzip2, you need to have the -dev package installed, which includes the header files (*.h) needed by the compiler and the library files needed by the linker.

In your case, for bzip2, on Ubuntu, the name of the package with the files you need is libbz2-dev, so you can solve this problem by installing this package:

sudo apt-get install libbz2-dev


CMake Error at CMakeLists.txt:13 (find_package): By not providing "FindGeant4.cmake" in CMAKE_MODULE_PATH

You just have to source the geant4.sh

In the bash shell, give the command:

source /path_to_geant4_install/bin/geant4.sh

And then do cmake


I want to go all Ubuntu. How can I get my HP laptop with UEFI to boot Ubuntu directly?

My first suggestion would be to disable Secure Boot from BIOS Setup. Then, boot from a bootable Ubuntu USB. Use GParted to delete the Windows partition (and any other Windows Recovery partitions). Install and run boot-repair.


Installing 12.04's boot loader on the partition boot record

You can install Grub to a partition boot record even with the Desktop CD!
Just choose manual partitioning, and choose to install the bootloader to /dev/sdaN.
The XP bootloader (NTLDR) will not chainload Grub2 by default.
Note that NTLDR will NOT chainload Grub2 by default. You will need an intermediary such as Grub4DOS (recommended), or create a Grub2 stub for NTLDR.
A downside of installing Grub2 to a PBR
When installed to a PBR, Grub2 is very sensitive to moving/resizing the partition; you will need to reinstall it from a Live-CD/Live-USB if you do that.
The easiest alternative: a boot manager such as Plop
Personally, I recommend the Plop! Boot Manager as a tiny, pain-free way to get this working without having to mess with boot.ini, etc. It basically gives you a menu at bootup allowing you to choose a primary or logical partition to boot from.


Compose key doesn't work, even though set in /etc/default/keyboard

I don't know if this applies to Lubuntu, but here's the solution for regular Ubuntu:

/etc/default/keyboard doesn't seem to matter. It doesn't have XKBOPTIONS filled in on my system even though I have the compose key enabled. What does matter is the gconf setting 'org.gnome.desktop.input-sources xkb-options'. You can edit it via dconf or use terminal like so:

Check the current value:

gsettings get org.gnome.desktop.input-sources xkb-options

If the above just returned empty brackets, run this, and you're done:

gsettings set org.gnome.desktop.input-sources xkb-options "['compose:rctrl']"


You could force to have a hard restart of your Ubuntu VM on VMWare. Normally, it's Virtual Machine -> Restart.


Jupyter: An error occurred while creating a new notebook

Open the terminal and start Anaconda Navigator with the following command:

anaconda-navigator

In Ananconda Navigator select Environments (in left pane) -> Python35 -> Open Terminal.
Click Open Terminal and run the following command to start Jupyter Notebook:

jupyter-notebook

This command starts the Jupyter that is installed in Anaconda, so the Python 3 that is installed in Anaconda is able to recognize it.


Is there a port of python3-launchpadlib to 14.04?

A backport is now available in zyga's ppa:

sudo apt-add-repository ppa:zyga/launchpadlib-backports
sudo apt-get update
sudo apt-get install python3-launchpadlib

Source: Backporting python-launchpadlib3 to Ubuntu 14.04


Is there a distinct difference between the two(desktop launcher and shell script)

Simply change the Exec line in your .desktop file to run the script.

If this doesn't help add a line at the beginning of the script with cd folder-containing-the-script. Some scripts need this.


Make directory junction (symlink) equivalent to mklink /j

NTFS has symbolic links which work exactly as Unix symbolic links, but mklink /j creates a junction point, not a symbolic link.

An NTFS junction is much more similar to a Unix mountpoint, and it is actually represented as a mountpoint internally. Use mount --bind in Linux to emulate the behavior of an NTFS junction.


How/Where do I check my ubuntu laptops's CPU usage?

HTOP

is a lightweight text-mode process viewer packed with handy features such as killing processes without entering their PID, displaying full command lines, etc with a colour display

How to install

open your Terminal (Ctrl-Alt-T ) and Type

sudo apt-get install htop

To run: type htop This will show what you are asking. .


Skype+Gnome 3 Answer directly in systray?

I have installed the pidgin-skype plugin in the first step.

sudo apt-get install pidgin-skype

Now start skype, set up your Skype-Account in pidgin as you would setup any other accout.
By installing the gnome shell extension you get the nice behaviour of empathy for pidgin and also for your configured skypeaccount (through pidgin)!

Pidgin Conversation Integration

Pidgin Gnome Shell Extension


How to change Firefox debugger font size

In Firefox 27, Codemirror is now deployed as the default code editor:

  Codemirror

  Codemirror is a popular HTML5-based code editor component used on web sites. It is customizable and theme-able. The Firefox Devtools now use CodeMirror in various places: Style editor, Debugger, Inspector (Edit as HTML) and Scratchpad.

  From the Option panel, the user can select which theme to use (dark or light).

Source: Firefox Developer Tools: Episode 27 – Edit as HTML, Codemirror & more

This works for me in ~/.mozilla/firefox/profile-name/chrome/userChrome.css.

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("chrome://browser/content/devtools/.*"){
* { font-size: 20px !important }
}


How do I download the .deb package of Vivaldi browser using wget and wilcards?

Wildcards in wget is unrealistic as the tool will not know the name of every file in a given directory on the web server. If your goal is to have an easy way to keep the Vivaldi browser up to date, then you can use their repository. Here's how to set it up:

Import the public key (to allow for verification of the APT repository)
wget -qO- https://repo.vivaldi.com/archive/linux_signing_key.pub | sudo apt-key add -

Add the repository
sudo add-apt-repository 'deb https://repo.vivaldi.com/archive/deb/ stable main'

Install Vivaldi
sudo apt update && sudo apt install vivaldi-stable

Now every time your system does an apt update, Vivaldi will be included in the check.
Source: Manual setup of the Vivaldi Linux repositories | Vivaldi Browser Help


can i restore my Ubuntu Deja Dup to a Lubuntu install?

I'd say it "depends". Purely data files such as documents, spreadsheets, music and video should be fine.

Where you could run into complications is

with config files, often hidden, various programs store in your home
folder and
with the contents of ~/.local.

If they are tailored for Unity and they replace your current Lubuntu config files, things may not work as they should. But you mostly likely won't experience data loss.

Caveat: this just seems logical to me; I have not tried what you wish to do.

Here is a link related to the issue: What is TargetEnvironment=Unity?. At first glance it may seem unrelated but, sometimes, .desktop files are present in ~/.local/share/applications.


Mozilla Firefox Quantum: Some websites don't open

I have solved it in the following way:

Opened about:config.
Searched network.http.sendRefererHeader
Put the value to 2 (mine was 0).

Credit goes to my friend who was brave enough to allow me to read his about:config file... and that's it.

Thanks everyone.


How to merge a partition which is far away from the one I want to merge it with?

You can megre sda5 with sda6:

Boot a live CD/USB, prefere partedmagic, it has grsync package.
Move the contents of sda5 to a folder in sda6. Better sync the data of the partition with the folder using grsync, and pay ATTENTION at the pop-up help of the "?" at the Basic Options tab of grsync. Be sure not to delete the existing contents of sda6!
Delete Swap and sda5 partitions.
Create a new Swap partition at the end of the disk.
Extend sda6 to fill the empty space.

This way you keep the WinRecovery partition, in case you need it.

But if you want a 15GB partition for future test or permanent installs you could skip steps 3,4,5. At the time of the GPartEd-screenshot seems plenty of free space in sda6.


Check that your keyboard profile is set correctly for your country. Check to make sure that you haven't set up a keyboard shortcut that uses Ctrl+R. Check this setting...


Remove black line from (15.04 - Vivid) Files/Nautilus sidebar

To achieve this we will edit nautilus.css.

We will do this for the current user and not system-wide.

Copying your theme to your home folder

Open a terminal:

mkdir ~/.themes/
cp -R /usr/share/themes/Ambiance/ ~/.themes/

(if you are not using the Ambiance theme (default), you will need to adapt the last command)

Editing nautilus.css

In a terminal open nautilus.css:

gedit ~/.themes/Ambiance/gtk-3.0/apps/nautilus.css

Add the following lines to the end of the file:

NautilusWindow .sidebar .separator,
NautilusWindow .sidebar .view .separator {
   color: shade (@bg_color, 0.95);
}

Save the file.

Log out and in again (or enter nautilus -q command in Terminal to restart Nautilus) and you are done.

Result


Could not boot Ubuntu alongside Windows 8

Based on your Boot Repair output, I'd say you should be booting fine. The fact that it's not working suggests you've got a flaky firmware. Therefore, I recommend you check your manufacturer for a firmware (they'll call it a "BIOS") update. If one is available, install it and try again.

If that doesn't work, try opening an Administrator command prompt in Windows and type the following:

bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

This might get it working properly, but I can't make any promises about that.

If this fails, and if the computer is new enough, I recommend you return it to the store for a refund, since at this point the conclusion is that the firmware is so badly broken that the machine isn't fit for use, you shouldn't accept it, and the manufacturer has to be made forcefully aware of the problem.

If that's not an option, there are uglier workarounds, such as the backup-and-rename-files option on the Advanced tab of Boot Repair. I describe these in more detail with reference to rEFInd here. The details will vary if you're using GRUB, but the principles are the same.


Can I leave programs running in ubuntu while switching back to Chromebook?

The Chromebooks is a very lightweight PC. To do what you want would require virtualization, and although the N3060 Celeron CPU is technically capable of virtualization, you wouldn't like it when it gets pokey.


How to enable packages from older ubuntu releases?

Download all the debs you need and use dpkg to install the files one by one.

dpkg does not check for dependencies so you can hose your system so plan it carefully.

edit: Looks like libgstfarsight got replaced with package farstream

So you need to install libgstfarsight0.10-0 (>= 0.0.3), libperl5.12 (>= 5.12.4), and perlapi-5.12.4 with dpkg and you should then be able to install telepathy-haze (libpurple will install itself)

Another option:

Tarball with source can be found here with a newest version created 2012.04 (so it is very recent): http://telepathy.freedesktop.org/releases/telepathy-haze/

Looks like this one depends on telepathy-glib ≥ 0.13.9 and libpurple ≥ 2.7.0.


I have been using the following setup in several scripts (especially with version control):

sudo apt-get install unoconv odt2txt     # installs both tools
doc2odt test.doc                         # creates test.odt
odt2txt test.odt                         # displays the contents in the terminal

or for a docx file:

docx2txt test.docx                       # converts docx file
less test.txt                            # read the contents

Works like a charm and you can read your doc files in the terminal. This method is more complex than catdoc but it has the advantage that entries from a bibliographic management system are not displayed in their raw form.

For a LaTex file you can just your favorite terminal text editor to open and read it.


Idle - Unable to open raster file - : Success

This problem appears to be connected to this GTK bug:

https://bugs.launchpad.net/ubuntu/+source/gimp/+bug/998156

The bug was reported almost two years ago. It has not yet been fixed and it's unclear when, if ever, it will be fixed.

In the interim, one ingenious user from the Netherlands found a workaround: use Print Preview and then print from the Print Preview window.

Source: http://forum.ubuntu-nl.org/hardware-en-drivers/inactief-unable-to-open-raster-file-success/


Why "Failed to download repository information" when I try to install Flash?

Open terminal and run:

sudo apt-get install flashplugin-installer

Downloads and Installs the Adobe Flash Player plugin. The Adobe Flash Player
plugin supports playing of media and other dynamic content online.

The Adobe Flash Player plugin will work with a range of web-browsers including,
limited to:

Firefox, Chromium, SeaMonkey, Iceweasel, Iceape, Galeon, Epiphany, Konqueror.

WARNING: Installing this Ubuntu package causes the Adobe Flash Player plugin to
be downloaded from the Adobe web site. The distribution license of the
Adobe Flash Player plugin is available at www.adobe.com. Installing this
Ubuntu package implies that you have accepted the terms of that license.


Stop the network manager

    sudo service network-manager stop

Remove file on /var/lib/NetworkManager/NetworkManager.state path:

    sudo rm /var/lib/NetworkManager/NetworkManager.state

Start network manager back:

    sudo service network-manager restart


How to switch tabs via keyboard shortcut in Firefox in reverse?

You can reverse the order of traversing the tabs by using Shift+Ctrl+Tab.


This is unrelated to your GRUB issue, but it does solve your having to go into the settings to change the brightness problem.

I did a Google search related to your topic and found this page:

http://www.omgubuntu.co.uk/2013/04/brightness-control-ubuntu

After installing this and testing it myself, less the keyboard feature, I can say it does work, minus a few quirks. (Scroll wheeling the icon messed the program up for me)

If you do not know how to install PPAs, you do it by opening up Settings, hitting Software & Updates, clicking Other Software, and clicking Add.

To install packages, you can either use apt-get or my preferred method, Synaptic.


How to prevent from CronJob run process twice?

There are two main approaches:

make the script exit if it detects another instance of itself running. Just add these lines to the beginning of your script:

if [ $(pgrep -c "${0##*/}") -gt 1 ]; then
     echo "Another instance of the script is running. Aborting."
     exit
fi

$0 is the name of the script, and ${0##*/} is the name of the script with everything until the last / removed (so, /path/to/script.sh becomes script.sh). This means that if you have another, unrelated script with the same name running, it will still be detected. on the other hand, it also means that it will work even if you call the script from a symlink. Which one you prefer depends on your use case.
Use a lock file and exit the script if the file exists:

#!/bin/bash

if [ -e "/tmp/i.am.running" ]; then
    echo "Another instance of the script is running. Aborting."
    exit
fi
else
    touch  "/tmp/i.am.running"
fi

## The rest of the script goes here

rm "/tmp/i.am.running"


Can i Install Ubuntu on my SDCARD and improve performance?

By experience, I can tell you that running Ubuntu on a SD card is usually unbearably slow. You won't get anywhere near SSD-like performance. This is due to the read and write speed limitations of SD cards and card readers.

Installing on a USB flash drive would give you at least equal, and most likely significantly better, performance.

Please note that I am only speaking from personal experience.


How can I open pdfs in firefox using evince (not acrobat)?

Firefox 15 has a pdf reader integrated with it, it is disabled by default,  type about:config, search for "pdfjs.disabled" and set it to "false" double click it. Then go to edit preferences then go to applications search for pdf extension then select to open within firefox that should work for you.


Searching dconf from command line for policy with...

gsettings list-recursively | grep policy|more

results in 3 lines with 1 of them being...

org.gnome.settings-daemon.plugins.power use-time-for-policy true

and you can set it from command line with...

gsettings set org.gnome.settings-daemon.plugins.power use-time-for-policy false


I ran into the same problem and landed here. The solution can be found here: Installing 4.4 rc7 kernel yields i915 module not available

Just execute the following statements:

curl -O http://de.archive.ubuntu.com/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.157_all.deb
dpkg -i linux-firmware_1.157_all.deb
sudo update-initramfs -u -k all


Newbie: Ubuntu One: struggling with the Sync

The folder you created on the web site is not a special folder that is synchronized separately. If you open your home folder (profile directory on Windows), the folder you're looking for should be underneath the Ubuntu One folder, within that directory.

Also, you should stop synchronization of the .local/share/ubuntuone/shares folder. It is a special folder that contains all the folders which have been shared to you by other users, so synchronizing it will duplicate all those files into your own account's storage, and take up your available storage quota. It will also waste your bandwidth by downloading everything and then duplicating things once they've downloaded.


Executables search for libraries in a set of places, e.g. /lib, /usr/lib, /usr/local/lib,...  so if you do not put your .so file in one of these places (/usr/local/lib might be a good place), the executable won't run.

You can explicitly specify a set directories to search for by setting an environment variable LD_LIBRARY_PATH containing whatever directories you like, (including your development directory for instance).


Installation of Skype for Ubuntu 14.04 x64 with Terminal

From https://help.ubuntu.com/community/Skype...

  Installing Skype

  Users of 64-bit Ubuntu, should enable MultiArch if it
  isn't already enabled by running the command

  sudo dpkg --add-architecture i386

  Since Ubuntu 10.04 (Lucid Lynx),
  Skype is part of the Canonical partner repository. To install Skype
  add the Canonical Partner Repository. You can do this by running the
  command

  sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

  Then install Skype via the Software-Center
  or via the Terminal.

  sudo apt-get update && sudo apt-get install skype pulseaudio:i386


How use Xampp-control-panel for php program in linux

You cant run PHP scripts from the XAMPP control panel, it's purpose is to start/stop the XAMPP services.
In the control panel make sure Apache is started, if it`s not click on start.

Then open a browser and go the the URL: localhost/MIKpatel/MyFirstPhp.php.


This should work ok without any problems it is an LTS.

If you Contact Support they should be able to help.


networkmanager in kubuntu does not show DSL connection !

for a workaround, uninstall plasma-networkmanagement (I don't know if that is its exact name) and type in "autostart" in the KDE menu. once open, add a new startup item, with the command "nm-applet". Then log out and back in again. This will give you the GNOME NetworkManager. Rough, I know but it works. For some reason the KDE version seems to lag badly behind it's GNOME counterpart.

I assume you still have GNOME on there?


How to get the "Your battery is broken" message to go away?

Maybe these instructions will help you to get rid of that message.

Added instructions from the link, Alt+F2, then type in gconf-editor.

Navigate to /apps/gnome-power-manager/notify/low_capacity and untick the value.

Or a single command:

gconftool --set /apps/gnome-power-manager/notify/low_capacity --type boolean false


lsusb lists Galaxy Samsung Tab s2 & adb devices lists nothing

i found the solution , it is a device matter and not Host matter: Hence, i am right when i wrote this question in https://android.stackexchange.com/ and not in askubuntu exchange.

Go to Settings > Developer options> Developer options .

Then, check : USB Debugging


I ran into a similar problem where mount using cifs produced the -22 error. The share aught to be mountable as I was able to access it using smbclient.

Based on this bug report: https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/1772148, I tried installing the 'keyutils' package and that fixed it for me. It could be that your old computer has this package but the new one doesn't for whatever reason.


This is how it should work(tested myself):

Open Update Manager
Click "Settings"
Change "Notify me of a new Ubuntu version:" to "For any new version"
Enter Admin password when asked
Click "Close"
Click "Check"

That should force the check for Ubuntu 12.10. If that still doesn't work you can do the less pretty way and use terminal.

This method is usually used for Servers since they lack a GUI but it works for Desktop releases too.

Just open a Terminal and enter these commands:

sudo apt-get update
sudo apt-get install update-manager-core
sudo do-release-upgrade

That should do it. Although I always recommend making a Backup of any important data. I actually go the extra Mile and Image my entire HDD using dd so if anything goes wrong I can restore to perfection. I then use testdisk to extract individual partitions in order to mount and transfer data from.


How can I make Ubuntu 18.04 stop asking me to unlock the login keyring?

Change the directory from root to ~/.local/share/keyrings then delete the files in that directory keyrings. Then when you open chrome again it will ask for password  thats it its done. The mentioned fix for Ubuntu 18.04


How can I remove the second Ubuntu at start up

I can think of a few possibilities.

Your old Ubuntu installation still exists, it wasn't removed.
It's possible that when you re-installed, your new installation went to a different location - that is, a different partition, a different WUBI file, or a whole different drive.  All or part of the old installation may have remained.  How to fix this depends on your partition and drive layout and whether you installed using WUBI.

The second option you're seeing is simply the option that allows you to boot using an alternative kernel or some other options.  This is normal.
If you don't want the boot menu to come up at all make sure you have GRUB_TIMEOUT=0 and GRUB_HIDDEN_TIMEOUT=0 in your /etc/default/grub file and then make the changes effective using sudo update-grub.  Warning: this is not recommended if you are not a technical person and don't know how to, for example, rescue a system that can't boot.

There could have been a temporary problem updating Grub's configuration that simply needs a sudo update-grub to fix.


mysql show databases not showing databases that are in /opt/bitnami/mysql/data directory

Without knowing your setup its really hard to say but I see two possibilities:

Fist check permissions, and make sure that the files and folders under mysql/data belong to mysql:mysql
Next cat /etc/mysql/my.cnf | grep datadir That's where mysql is looking for your files. You can either copy the files there or change that line in /etc/mysql/my.cnf. Make sure to turn off mysql before you go messin' with the data files.


Sorry but your are too late with this. You can not go directly from 12.10 (not an LTS and already end of life) to 14.04 and need to go through 13.04 (is end of life so no longer an upgrade path available), 13.10 (is end of life so no longer an upgrade path available) and then 14.04.

You should have installed and used 12.04 (LTS) and not a none-LTS release as a server for an upgrade from 12.04(.2) directly to 14.04.

Your best option is to plan a re-install of 14.04. And yes, I know it is problematic when this is a production system. We had the same issue long ago and got us another computer to do this to keep downtime to a minimum. Set up the new system, check it, make it available to key users and when they are happy replace the old one with this one. The current one can then be used as a backup system.


Why am I asked for default's keyring at startup?

This is a bug, see the above link to the bug report. There is no fix availabe yet, just a work around (from the bug report)

  This bug only seems to occur when I type the keyring's password really fast at login.

  It looks like I've found a fix : waiting for a few seconds before entering it.


You use python3 and therefore you need python3-matplotlib but you have made one mistake:

The name of the package is python3-matplotlib and not python3-mathplotlib.

Therefore install

sudo apt-get install python3-matplotlib

Installing the development libraries via

sudo apt-get build-dep …

isn't necessary.