Daniel 'MaTachi' Jonsson

Tag Archives: Root

Can’t Specify Root Folder on Your Shared Web Host?

If you are using the PHP framework Zend, you have to set /public as the root folder. And if you are using Symfony, it’s instead /web. But if you can’t set which folder that will act as the site’s root folder, add these files to the site’s root folder:

.htaccess

RewriteEngine On
RewriteRule .* index.php

index.php

Symfony:

<?php require_once 'web/app.php';

Zend:

<?php require_once 'public/index.php';

Now you will be able to use yoursite.com instead of yoursite.com/web/app.php or yoursite.com/public.

Fix Symfony asset paths

If images, CSS and JS aren’t displayed with Symfony2, add this to your /app/config/config.yml file:

framework:
    #..
    templating:
        engines: ['twig']
        assets_base_urls: /web/

Got A Blank Root Password In Arch Linux? Here’s How You Set One

When I installed Arch Linux on my computer I forgot to set a root password, so it was left blank. This became a problem for me in Gnome 3 when it said that authentication was required to modify the user accounts, and apparently it won’t accept a blank password. So I was forced to set one. If you are having the same problem, do the following steps to set a root password:

  1. Press Ctrl + Alt + F1. (Press Ctrl + Alt + F7 to come back to the graphical interface.)
  2. Log in as root.
  3. Type:
    passwd
  4. Now set your new root password.
  5. Return to the graphical interface by pressing Ctrl + Alt + F7.
  6. Mission complete!

EDIT 2011-08-07: I had typed 1 and 7, when it should have been F1 and F7. The post has been updated.

Root Your Samsung Galaxy Spica With LK2.08

Leshak 2.08Yesterday night I rooted my Samsung Galaxy Spica i5700 with the LK2.08 kernel from Leshak at the Samdroid forum. You can find the kernel on his forum. This kernel gives you root access to your Spica, changes the Recovery function and other stuff, you can see the full list of what the kernel includes in the opening post in the forum thread.

The only problem was that the guide in the thread, that described the steps to flash your phone, wasn’t very great. Only two steps that didn’t say much. But lucky me I found a much better guide about flashing LK2.08 to Spica on this website:

The procedure went fine for me and now I’m sitting here with a rooted Spica. :) I rooted my phone because I wanted to be able to get the extra functionality out of my phone. And I have always liked to hack and take stuff apart, even if this only was a simple flash procedure. I also had to root the phone to be able to change the default theme to a black one. I’m such a perfectionist with my black notification bar. :P

Here are two other guides that show you how to flash your Galaxy Spica (but to 2.1). I don’t really know if they are any good, but at least they give some tips and images:

EDIT:
I found another nice guide that shows you how to root your Spica with LK2.02: