EzDevInfo.com

10.04 interview questions

Top 10.04 frequently asked interview questions

How to upgrade VirtualBox to the latest version?

I am currently using VirtualBox 3.2. I would like to upgrade it to latest version without losing any operating systems in it. How can I achieve this?


Source: (StackOverflow)

How to play a webm video file?

I have tried vlc, Banshee and Totem but none of them recognize the webm format. Even the system does not recognize its mime-type. How do I play it ?


Source: (StackOverflow)

Advertisements

chkrootkit says /sbin/init is infected, what does that mean?

I recently ran chkrootkit and got the following line:

Searching for Suckit rootkit...                   Warning: /sbin/init INFECTED

What does this mean exactly? I heard this was a false positive, what is exactly happening.

Please and thank you.


Source: (StackOverflow)

Install mod_proxy to get ProxyPass to work

I've been trying to follow these instructions, so that I could get the Citadel mail server to work alongside Apache, but I get an error when I try to restart Apache:

Invalid command 'ProxyPass', ...

I was told in the Apache docs that this is from the mod_proxy module, but apt-get install mod_proxy gives E: Couldn't find package mod_proxy, and I was unable to find it on the big list on the Apache site. What do I need to do to get the ProxyPass working in Ubuntu 10.04 TLS?


Source: (StackOverflow)

How do I re-install Network Manager without an internet connection?

I have only wireless connection, one computer with a connection and 4gb usb .

My second computer has no network connection, because I have deleted it from the software center. However, now I want to re-install it. How can I do that?


Source: (StackOverflow)

How do you add "open in terminal" to the right-click mouse menu for folders/directories?

I would like to add it to the default menu (mouse right-click)

Like I want to right click on a folder and open it in the terminal. I don't want to have to find the directory in the terminal.


Source: (StackOverflow)

How to get GPU info?

I'm looking for a command that would give me the same info as

cat /proc/cpuinfo 

Except for the GPU (type of the chip and memory, frequency)


Source: (StackOverflow)

How to update gcc to the latest version(in this case 4.7) in Ubuntu 10.04?

I have Ubuntu 10.04 32-bit with gcc 4.4.3 currently installed on it. I want to upgrade it to gcc/g++ 4.7 (I am looking for C++ 0x support)

How to update using Ubuntu Package Manager:

apt-get upgrade/install ??

As a second option I downloaded the latest gcc snapshot file from:

http://gcc.cybermirror.org/snapshots/LATEST-4.7/gcc-4.7-20110709.tar.bz2

Would doing

./configure
make  
make install 

on this package build and install it from source?


Source: (StackOverflow)

Why does scp get stalled? How do I resolve it?

When I attempted to copy a file (of size, ) over the network using scp I get a error <file> stalled Why does this happen? How do I resolve it?


Source: (StackOverflow)

How do you get a list of all starting services?

I know about the update-rc.d SERVICE OPTIONS command to add and remove services from startup, but how do I use it to get a list of all the services that are currently configured to start at startup?

Is there some other way to get this list?


Source: (StackOverflow)

How can I show or hide boot messages when Ubuntu starts?

Is there a way to easily turn on/off showing the boot messages (loading the services) when Ubuntu starts? Is it something in Grub2?

I am running Lucid.


Source: (StackOverflow)

How to find zombie process?

System information as of Fri Mar  9 19:40:01 KST 2012

  System load:    0.59               Processes:           167
  Usage of /home: 23.0% of 11.00GB   Users logged in:     1
  Swap usage:     0%                 IP address for eth1: 192.168.0.1

  => There is 1 zombie process.

  Graph this data and manage this system at https://landscape.canonical.com/

10 packages can be updated.
4 updates are security updates.

Last login: Fri Mar  9 10:23:48 2012
a@SERVER:~$ ps auxwww | grep 'Z'
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
usera     13572  0.0  0.0   7628   992 pts/2    S+   19:40   0:00 grep --color=auto Z
a@SERVER:~$ 

How to find that zombie process?


Source: (StackOverflow)

How do you see what packages are available for update

FreeBSD user joining your ranks. I've been asked to look after an Ubuntu Server running 10.04 LTS.

I see from /usr/lib/update-notifier/update-motd-updates-available that there are a number of updates on the server however I do not see a way to tell which will be updated.

Would anyone be able to point me in the right direction so as I can see which packages will get updated when I run apt-get upgrade?

UPDATE:

Can't answer my own question at the moment so throwing this in here for the time being:

Along with the apt-get upgrade --dry-run suggested below, /usr/lib/update-notifier/apt-check -p will list all packages that have updates available.


Source: (StackOverflow)

Which hard disk drive is which?

I want to know which hard disk drive corresponds to which device path. It's trivial to match the hard disk stats (brand, size) with the dev path, but I want more. I want to know which drive is which inside my case. What's a good way to go about getting this info?

Constraints

  • I am lazy. I don't want to tear apart my server to remove all the drives, then add back one by one.
  • Reboots are acceptable.
  • The drives are inconveniently scrunched together in the case. The label information is hidden.
  • The case can be opened. Most disks are SATA, so theoretically hot swappable. Unplugging cables is fair game.

Bonus

I'll award answer to the best/easiest gui or cli answer, and give a bounty to the next-best answer of the other kind. I prefer a cli answer, but understand that a lot of other folks will appreciate a good point-and-click method.


Source: (StackOverflow)

Upstart script doesn't start

Ubuntu 10.04

I have created this upstart script (/etc/init/pure-ftpd.conf):

# pure-ftpd - FTP server

description "Pure-FTPd server"

start on filesystem
stop on runlevel S

respawn
respawn limit 10 5
pid file /var/run/pure-ftpd.pid
console output

pre-start script
    test -x /usr/local/sbin/pure-ftpd || { stop; exit 0; }
end script

exec /usr/local/sbin/pure-ftpd --maxclientsnumber 2 --maxclientsperip 10 --prohibitdotfileswrite --prohibitdotfilesread --noanonymous --chrooteveryone --dontresolve --nochmod --pidfile /var/run/pure-ftpd.pid

But...

# start pure-ftpd
start: Unknown job: pure-ftpd

and

# service pure-ftpd start
start: Unknown job: pure-ftpd


What's the problem?
Is it necessary to do something more?
Is it necessary to create one script in /etc/init.d too?


Source: (StackOverflow)