Follow me as I struggle with rogue technology, insane programmers, and impossible math questions in a battle to the death.

Monday, February 11, 2008

Linux Kernel 2.6 local root exploit

I tried out this exploit in a few places. Most other networks I'm on are using something like Red Hat, as opposed to something like Ubuntu or Debian.

I was definitely able to break into a few Ubuntu boxes using it. Fortunately you can only get in through a user account on the system, so you really only need to fear the users already on your system, unless someone happens to compromise one of those user accounts. Still, I consider this an egregious exploit, and I'm surprised it went as long as it did without someone fixing vmsplice.

Labels: ,

Friday, February 08, 2008

Ubuntu accessing folders and files

I click on mp3 files and the orange music note icon turns into a white page with a fold on it. The file won't open.

If I click on a folder it says:

The folder contents could not be displayed. Sorry, couldn't display all the contents of "foldername".


It should be noted that this happened soon after I had problems with Totem Movie Player, which doesn't like it when I try to change the position in a music file.

It's hard to say which piece of software is at fault.

Update: I later decided to search around and found out this is actually a problem with nautilus

Labels: , , ,

Friday, February 01, 2008

Ubuntu x11 problems

Ubuntu had gone into screen saver mode. I moved my mouse, but instead of ending the screen saver, the screen saver froze. However, I could see my mouse pointer, and move it around. There was no response to any keyboard or mouse input, so I did a hard restart.

When the login screen came up, I tried my username and password. I accidentally put in the wrong password and the screen froze, so I tried CTRL + ALT + BACKSPACE. Now I have a screen that says:

The greeter application appears to be crashing. Attempting to use a different one.


I pushed ok a few times and finally it got out.

Labels: ,

Wednesday, January 09, 2008

Ruby on Rails + Ubuntu = Hostility

I was considering trying Ruby on Rails for a project I'm working on and decided to try and install it on Ubuntu.

jfenwick@mars:~$ sudo gem install rails --include-dependencies
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find rails (> 0) in any repository


I did some searching on the internet and found that the gem server randomly can't find gems, but if you try again later it works. Eventually I did get the rails gem and its dependencies installed, but now the second major problem. I attempted to create an application skeleton and got:

jfenwick@mars:~/projects$ rails foo
The program 'rails' is currently not installed. You can install it by typing:
sudo apt-get install rails
bash: rails: command not found


Did some more searching, found that if you install gems using apt-get there are permissions problems. So I removed gems, go back to the rails site, download gems, try to install it and get:

jfenwick@mars:~/Desktop/rubygems-1.0.1$ ruby setup.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rbconfig
/usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /usr/local/lib/site_ruby/1.8/rbconfig (Errno::EACCES)
from /usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
from /usr/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'
from /usr/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'
from /usr/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'
from /usr/lib/ruby/1.8/fileutils.rb:201:in `each'
from /usr/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'
from /usr/lib/ruby/1.8/fileutils.rb:1527:in `mkdir_p'
from setup.rb:88
from setup.rb:85:in `each'
from setup.rb:85
from setup.rb:82:in `chdir'
from setup.rb:82


Weak.

I found this site, it helped a lot: urbanpuddle

When I tried to install Mongrel I got this error:


jfenwick@mars:~/projects/foo$ sudo gem install mongrel
Building native extensions. This could take a while...
ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install mongrel
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out


This was my fault as I hadn't installed the ruby1.8-dev package. However, I still think the process of finding which packages you need to install through apt-get, and which ones you have to install through gems is maddening.

During my searching I came across a person who had my problem with Mongrel, and someone asked if they were "on Debian or something equally hostile to Ruby". I feel that's a fair judgment, getting Rails to work on Ubuntu has been pretty laborious.

Labels: , , , , ,