EzDevInfo.com

11.04 interview questions

Top 11.04 frequently asked interview questions

How can I revert back from an upgrade to the Proposed repository?

I mistakenly enabled the Pre-release updates (natty-proposed) repository and then upgraded all packages.

How can I undo this?

Here are the test results from @enzotib's instructions and the test results from my instructions.


Source: (StackOverflow)

What's the difference between GDM and LightDM?

What is the difference between GDM and LightDM? How can one switch between them. I mean if I have selected LightDM during installation process, will I be able switch to GDM?


Source: (StackOverflow)

Advertisements

Where is /var/log/messages?

Just installed natty, and cannot find /var/log/messages. Also, /var/log/daemon.log is missing. What happened? Why are they no longer present? And where I can find the same log information?


Source: (StackOverflow)

How can I restart Compiz from a TTY? (& Related, how can I set up a fallback WM?)

I'm testing Natty, and Compiz keeps crashing on me. However, it doesn't always give me the option to restart Compiz, and for some reason doesn't have a fallback window manager(WM) configured.

Without a WM, all my programs are still running, but they're not accepting input from the keyboard, and I can't switch between them.

I can, however, press Ctrl+Alt+F1 and get a terminal, and I can killall Xorg to reset everything; but, I'd rather just reset Compiz, if possible.

If I try typing compiz --replace in the TTY, it complains "fatal--couldn't open display." Is there a way to have TTY1 restart Compiz? Like compiz --replace --display=something?

Additionally, is there a way to configure a fallback window manager so that there's an easier way to recover from Compiz crashing?


Source: (StackOverflow)

after upgrade gdb won't attach to process

I just recently upgraded from 10.04 to 11.04 and gdb won't allow me to attach to processes anymore I get the error

Attaching to process 10144 Could not attach to process. If your uid matches the uid of the target process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf ptrace: Operation not permitted.

How do I fix this so that I can debug again without sudo?


Source: (StackOverflow)

how to stop apache2, mysql from starting automatically as computer starts?

My os is 11.04.

I have apache2 & mysql installed.

How to stop apache2, mysql from starting automatically as computer starts?


Source: (StackOverflow)

How to fix black tooltips in Eclipse?

I am having a weird problem with Eclipse documentation tooltips. When I startup Eclipse the tooltip works as expected:

enter image description here

But after I press the down button the tooltip turns black:

enter image description here

and stays like that for the rest of the session.

I am using Eclipse Galileo and Ubuntu 11.04 with the classic desktop.

EDIT: I am only experiencing this problem in PHP Development Tools. The tooltips work in Java and Python projects.


Source: (StackOverflow)

Is there a way to blacklist an individual application from using overlay-scrollbars?

I am having problems with some programs when using overlay-scrollbars, mainly Code::Blocks and Eclipse.

I've found several ways of disabling the overlay scrollbars completely, for all applications, but I like them and I don't want to do this.

Is there a way to blacklist only this applications from using the new scrollbars?


Source: (StackOverflow)

Why isn't my upstart service starting on system boot?

Following on from this question, I have written a simple upstart service (/etc/init/pms.conf) for my headless Ubuntu Server 11.04 box as follows:

start on filesystem and net-device-up IFACE=eth0
stop on runlevel [016]
respawn

exec /home/administrator/pms-current/PMS.sh

I can start (or stop) this service at will from the command line:

service pms start

And I can see that it is indeed running.

However, when I first boot my machine the service does not start. If I SSH into the box and check the service status I get:

$ service pms status
pms stop/waiting

My question is why is this happening? Why isn't my service starting on boot?

UPDATE 1: unsure whether my service was being started and subsequently dying or just wasn't being start at all, I added the following to PMS.sh:

echo "STARTED" > $STARTLOG

This obviously just gives me something to look for. I tested this by starting the service myself and then checking start.log. I then deleted the start.log and rebooted. It wasn't there after the restart, so it seems as though upstart definitely isn't starting my service. I suppose it could be dying at an earlier point in the process, but that seems rather unlikely given the simplicity of it all.

UPDATE 2: I've just upgraded to 11.10 which includes an upstart upgrade, but this problem still occurs.

UPDATE 3: As requested, I've booted with --debug. The output of cat /var/log/syslog | grep init is too long to place in the question, but you view it here.

UPDATE 4: More logs, this time the upstart conf is included at the top. Run 1 and run 2.


Source: (StackOverflow)

NVIDIA drivers not working after upgrade. Why can I only see terminal?

Tonight I upgraded to 11.04. Problems. Once I had finished the upgrade, I restarted my computer as it told me too. When I got past the ubuntu 11.04 (purple background orange dots), it simply went to the terminal and asked me to log in. I tried to restart the X server with "sudo service gdm restart" but no display popped up. I happened to have a few NVIDIA drivers in my downloads file also so I gave these a try, but the "install script" failed.

After all this I booted Ubuntu in graphic failsafe mode. I then decided to see what would happen if I removed the proprietary driver. Upon doing this and rebooting my Ubuntu booted into graphical mode "yay!". So without the Nvidia drivers I can finally see something other than terminal, but, I need those NVIDIA drivers for my work. So what can I do? I have tried installing the new NVIDIA linux drivers from the NVIDIA website, and have tried Installing the recommended driver via "additional drivers", but both have resulted in my being stuck in terminal.

If you can help or give me some advice PLEASE DO! I am really in a very bad situation...


Source: (StackOverflow)

How do I switch to the Classic GNOME Desktop? [duplicate]

Possible Duplicate:
How to revert to GNOME Classic?

How can I setup the Natty Classic Desktop to be "really" classic? I want to have the menus in the application window and I want to have the normal Gnome Menu with Applications, Places and System.

Any way to get that?


Source: (StackOverflow)

How do I use the GNOME Panel in Unity?

I really need to use the GNOME Applets, is there a way to do it?


Source: (StackOverflow)

Why was Banshee chosen to be the default for 11.04?

What are the reasons for Banshee replacing Rhythmbox in Ubuntu 11.04?

I don't want your opinion on which is best nor why. I want to know what the reasoning was behind the decision.


Source: (StackOverflow)

How do I disable the blinking cursor in gnome-terminal?

I could have sworn that there was once a setting for this in the gnome-terminal "Profile".

And then in some version of Ubuntu, that setting disappeared, and I had to use System ➜ Preferences ➜ Keyboard to uncheck "Cursor blinks in text fields".

Well, neither of those seems to be working now. So how do I make the cursor stop blinking?


Source: (StackOverflow)

How to clear recently used files without using a terminal?

How can I clear the recently used and viewed files in ubuntu 11.04 without using terminal?


Source: (StackOverflow)