14.04 interview questions
Top 14.04 frequently asked interview questions
It has been weeks that I am trying to use Code::Blocks IDE on Ubuntu 14.04 LTS to program Atmega16, however I am hindered by the following error while compiling/building the program in C::B
/usr/include/features.h|374|fatal error: sys/cdefs.h: No such file or directory|
I have read this thread
and based on that I have tried to purge libc6-dev
and ran into trouble by removing the dependencies. From previous experience I knew that there is a huge probability to get into broken pipe error. I tackled it by installing the lost dependencies.
Now still I have the same error.
Source: (StackOverflow)
My goal is trying to run .swf files through Firefox and NOT a standalone player.
When trying to run local .swf files on Firefox 29.0 (currently on 14.04), the browser opens the Open With/Save File prompt window even if the browser has the Flash plugin installed. Right-clicking on the file and clicking Open With... > Firefox just makes the browser open a new tab and then the prompt to Open With/Save File again. Selecting Firefox through that prompt window will still just make Firefox open the prompt again on a new tab.
When accessing .swf files online, though, they run normally and Firefox even shows the Lego-looking plugin indicator in the address bar saying that "Adobe Flash" is enabled for the address I'm accessing the .swf from.
In Firefox's preferences' Applications tab, SWF Files are currently set to "Use Shockwave Flash (in Firefox)", so I don't get why it won't do what it says for the case of local files.
UPDATE:
Apparently, Firefox has separate "Shockwave Flash File" entries in the Applications tab of its Preferences for different mime-types. Found a workaround which I entered below.
Source: (StackOverflow)
I'm having issues with npm
in a Vagrant box I'm setting up. I noticed that the npm
version is somewhat old, so I wanted to check the problem with the latest release.
It is my understanding that you should be able to update npm
using npm install -g npm
, but the command has no effect on the npm
being used:
vagrant@box:~$ npm -v
1.3.10
vagrant@box:~$ sudo npm install -g npm
npm http GET https://registry.npmjs.org/npm
npm http 200 https://registry.npmjs.org/npm
npm http GET https://registry.npmjs.org/npm/-/npm-2.1.12.tgz
npm http 200 https://registry.npmjs.org/npm/-/npm-2.1.12.tgz
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npm@2.1.12 /usr/local/lib/node_modules/npm
vagrant@box:~$ npm -v
1.3.10
I also tried using n
(as suggested in How can I update my nodeJS to the latest version?) to update, but it affects neither npm
nor node
:
vagrant@box:~$ node -v
v0.10.25
vagrant@box:~$
vagrant@box:~$ sudo npm install -g n
/usr/bin/n -> /usr/lib/node_modules/n/bin/n
n@1.2.9 /usr/lib/node_modules/n
vagrant@box:~$ sudo n stable
install : v0.10.33
mkdir : /usr/local/n/versions/0.10.33
fetch : http://nodejs.org/dist/v0.10.33/node-v0.10.33-linux-x64.tar.gz
installed : v0.10.33
vagrant@box:~$ node -v
v0.10.25
vagrant@box:~$ npm -v
1.3.10
What do I have to do to update npm to the latest version?
Source: (StackOverflow)
I just installed Ubuntu 14.04 64-bit and enabled the nvidia drivers. Now I am trying to install WINE but I get the message:
nvidia-libopencl1-331 has to be removed before installing WINE
(translated from Dutch). Is this a bug? Or should I proceed removing this package?
Source: (StackOverflow)
Short summary: 14.04 is much slower than 12.04 even with more RAM assigned.
I'm using latest VirtualBox 4.3.10 on Mavericks 10.9.2. How can I make it faster?
Source: (StackOverflow)
Default cmake version of 14.04 is 2.8. How can I install cmake 3.2 and replace the default one? Or how can I upgrade 2.8 to 3.2?
Source: (StackOverflow)
I have tried VLC and totem players but they are not working.
I then searched and re-installed the VLC with latest version available, this time I am getting a green layer on the video.
Any help?
Source: (StackOverflow)
Is it possible to make Flux work in ubuntu 14.04? If so, maybe you can share your knowledge or point me to a guide?
(Flux is software which adjusts temperature of your display according to time of the day)
Source: (StackOverflow)
I am using Ubuntu 14.04 LTS. When I open a site which requires flash plugin (e.g. Youtube), Firefox says This plugin is vulnerable and should be updated.
However if I click Check for updates... there is no update at all. This is what the update site listed:
- Shockwave Flash 11.2 r202 (status up to date 11.2.202.424)
- Java(TM) Plug-in 11.25.2 (status up to date 11.25.2)
So what should I do?
Source: (StackOverflow)
This question already has an answer here:
I am using Ubuntu 14.04, I tried to search for Google Drive on Ubuntu Software Center, but couldnot find it. Searched for answers in Askubuntu but all I found was ways to install Google Drive on Ubuntu 12.04 which didn't worked for me.
Can anyone please give me some ideas?
Thanks in advance!
Update: Don't know why they marked it as duplicate entry, as the link mentioned in question gives answer for Ubuntu 12.04, which as I see is two different think.
Source: (StackOverflow)
I'm using Ubuntu 14.04 an my machine and since the last upgrade from 13.10 to 14.04 the date&time is missing in the top panel of Unity. This machine was originally installed with Ubuntu 12.10. I upgraded it from 12.10→13.04, from 13.04→13.10 and last week from 13.10→14.04.
I tried every solution found in this question: Missing date & time from top panel of Unity Desktop. But nothing of all this works :-(
I tried the following things:
- reinstalling
indicator-datetime
sudo apt-get remove --purge indicator-datetime
and install it again
sudo dpkg-reconfigure --frontend noninteractive tzdata
sudo killall unity-panel-service
and of course log out/log in again and so on...
Where can I find log files for the indicator or where could help me otherwise with this problem?
Trying to debug:
$ locate indicator-datetime-service
/usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
$ /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
Indicator-Datetime-Message: indicator-datetime exiting; failed/lost bus ownership
Source: (StackOverflow)
This question already has an answer here:
After upgrading from 12.04 to 14.04 I could log in to my X session (albeit with really low graphics). While trying to fix the graphics, I managed to break the X session.
Now, after typing my password in the unity-greeter, the items disappear and I can only see the desktop background and the pointer. This happens for every user. I can still log in in tty's. How can I solve this?
Also, I cannot seem to be able to install nvidia-current as it tries to install nvidia-304 and it depends on old video-abi libraries. Is there a way to tell the package manager that nvidia-current should use a newer version?
Source: (StackOverflow)
I am running Ubuntu 14.04 LTS 32 bit. I have installed HandBrake rev5474 (i686), which I believe is the latest, and the Ubuntu Restricted Extras. I am able to play DVDs via VLC but when it comes to ripping them, so that I can back them up to my Twonky media server, I have issues.
I launch HandBrake and find that the only format available for me to select is MKV.
When I used to run Handbrake on this machine while I was running Ubuntu 13.10 and lower I had no issues and **lots of formats (including MP4 which is what I'm really after) but since reformating and installing 14.04 I've had this issue.
Any help would be much appreciated.
Source: (StackOverflow)
This question already has an answer here:
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or
there is a permission problem with /dev/vboxdrv. Please reinstall the
kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install
the DKMS package first. This package keeps track of Linux kernel
changes and recompiles the vboxdrv kernel module if necessary.
This is a familiar message to everyone that uses Virtual Box. This "bug" has been popping up every few months at least since 11.10. I got it today for the first time on 14.04 and unfortunately the classical solution of re-installing virtualbox-dkms
is not having any effect:
sudo apt-get install linux-headers-generic build-essential dkms
sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms
What could be the reason for this old fix to fail?
Update: In the comments user bain makes reference to an old thread that apparently reports to the same problem. While the error message is similar, on Ubuntu 14.04 this issue seems to have a different nature, unrelated to the virtualbox-dkms
package. For instance, on Ubuntu 14.04 the virtualbox
package is up to date:
$ sudo apt-cache policy virtualbox
virtualbox:
Installed: 4.3.10-dfsg-1
Candidate: 4.3.10-dfsg-1
Version table:
*** 4.3.10-dfsg-1 0
500 http://de.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages
100 /var/lib/dpkg/status
Source: (StackOverflow)
Environment: Lenovo T530 running Windows 7. Have installed Ubuntu 14.04 on a virtual machine using VM Virtual Box. Have installed all the updates from both Virtual Box and Ubuntu.
Problem: While in Ubuntu's desktop and other Ubuntu initiated programs, the window is reduced to about 3x4 inches showing in the middle of the rest of my regular Virtual Box window. I am seeing only the upper right hand of the screen output of what I would normally see. Please help.
I've seen How do I install Guest Additions in a VirtualBox VM?
But, none of these answers works in 14.04.
Source: (StackOverflow)