Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old February 9th, 2008   #1
SilverWave
A Carafe of Ubuntu
 
Join Date: Dec 2006
Beans: 142
Ubuntu 9.10 Karmic Koala
Arrow HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

_________________________________________________

PCMan works great as a drop in replacement for Nautilus.

PCMan works well with GNOME and has options to "Open Current Folder as root" and also "Open Terminal" .
Its fast, uncluttered and has tabs!


http://pcmanfm.sourceforge.net/
Features:

* Extremly fast and lightweight
* Can be started in one second on normal machine
* Tabbed browsing (Similiar to Firefox)

Original idea from: http://lifehacker.com/software/linux...ger-288616.php

OS: Ubuntu 7.10
Architecture: 64bit.
_________________________________________________

1.
Install pcmanfm from the package manager.
Quote:
Applications > System Tools > PCMan File Manager
2.
If you find that you like PCMan and want to have "Places" use it instead of nautilus do the following:
Start the PCMan File Manager and go to:
Quote:
/usr/share/applications
In PCMan "Open Current Folder as root"
Quote:
Tools > Open Current Folder as root.
3.
Make a backup copy of the files below (copy and paste and add "_bak" on the end of the file name.

Quote:
/usr/share/applications/nautilus-computer.desktop
/usr/share/applications/nautilus-folder-handler.desktop
4.
Change the line in each with starts with Exec=
e.g

Quote:
For nautilus-computer.desktop: Exec=pcmanfm /
For nautilus-folder-handler.desktop: Exec=pcmanfm %U
Done

_________________________________________________
Note: You can go quite a bit further in replacing nautilus if you wish (see gsiliceo's post below) but the steps I have detailed above give the most change for the least effort.
_________________________________________________

[UPDATE]
Old tip - See this post for latest NEWS

Last edited by SilverWave; April 12th, 2009 at 06:24 PM..
SilverWave is offline   Reply With Quote
Old March 2nd, 2008   #2
gsiliceo
Ubuntu Extra Shot
 
Join Date: Mar 2007
My beans are hidden!
Re: HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

To completly replace nautilus follow this steps, they all are reversable and not harmful at all, as long as you make the backups.

First we need to backup some files

Quote:
sudo cp /usr/share/applications/nautilus.desktop /usr/share/applications/nautilus.desktop.backup
sudo cp /usr/share/applications/nautilus-folder-handler.desktop /usr/share/applications/nautilus-folder-handler.desktop.backup
Then open these files
Quote:
sudo gedit /usr/share/applications/nautilus-folder-handler.desktop
sudo gedit /usr/share/applications/nautilus.desktop
and replace every nautilus word with pcmanfm (delete the arguments after the word pcmanfm since some are not supported)
And save

And these changes are for gnome session manager
(so ubuntu stops trying to load nautilus)
Backup this file
Quote:
sudo cp /usr/share/gnome/default.session /usr/share/gnome/default.session.backup
Then we need to delete a few lines an change some numbers
Quote:
sudo gedit /usr/share/gnome/default.session
Then open it and delete the lines that have at the beggining the same number as the nautilus line
something like this
:
Quote:
2,id=default2
2,Priority=40
2,RestartCommand=nautilus --no-default-window --sm-client-id default2
Then rename the other lines so the numbers dont jump from 1 to 3.
And from the line
Quote:
num_clients=X
Change the number to the new number of process you just changed.
And save


If you don't understand i added my file to this post as an attachment so you can compare.

And the most important step to kill nautilis you need to do this :
Quote:
sudo cp /usr/bin/nautilus /usr/bin/nautilus.backup
sudo rm /usr/bin/nautilus
sudo ln -s /usr/bin/pcmanfm /usr/bin/nautilus
Finally, you need to open a PCMan window and go to edit, preferences, desktop, to configure the desktop.
And dont forget to restart the session doing ctrl+alt+backspace

Doing this ubuntu wont ever load nautilus, saving the precious ram and reducing boot time.
I wish you could just uninstall it, but the package is tied to many other important packages.
Attached Files
File Type: txt Example.txt (1.2 KB, 313 views)

Last edited by gsiliceo; March 13th, 2008 at 08:24 PM..
gsiliceo is offline   Reply With Quote
Old March 4th, 2008   #3
SilverWave
A Carafe of Ubuntu
 
Join Date: Dec 2006
Beans: 142
Ubuntu 9.10 Karmic Koala
Thumbs up Re: HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

Quote:
Originally Posted by gsiliceo View Post
Your forgot a few files that you ...

I was about to make a how to my self, but i don't like duplicate posts, so i hope you can update yours =D
Updated the howto pointing to your post for the advanced stuff

If you get a chance add in a couple of screen shots to your original post.
SilverWave is offline   Reply With Quote
Old March 4th, 2008   #4
tad1073
Grande Half-n-Half Cinnamon Ubuntu
 
tad1073's Avatar
 
Join Date: Dec 2007
Location: Atlanta, Ga
Beans: 934
Ubuntu Development Release
Send a message via MSN to tad1073 Send a message via Yahoo to tad1073
Re: HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

I followed the steps in the first post but nautilus is still opening computer and home from the desktop icons
__________________

Last edited by tad1073; March 4th, 2008 at 07:09 PM..
tad1073 is offline   Reply With Quote
Old March 4th, 2008   #5
gsiliceo
Ubuntu Extra Shot
 
Join Date: Mar 2007
My beans are hidden!
Re: HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

you have to follow the second post instructions to get rid of nautilus.
gsiliceo is offline   Reply With Quote
Old March 4th, 2008   #6
tad1073
Grande Half-n-Half Cinnamon Ubuntu
 
tad1073's Avatar
 
Join Date: Dec 2007
Location: Atlanta, Ga
Beans: 934
Ubuntu Development Release
Send a message via MSN to tad1073 Send a message via Yahoo to tad1073
Re: HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

Quote:
Originally Posted by gsiliceo View Post
you have to follow the second post instructions to get rid of nautilus.
I don't want to remove nautilus until I get pcman opening everything that nautilus opens.
__________________
tad1073 is offline   Reply With Quote
Old March 4th, 2008   #7
gsiliceo
Ubuntu Extra Shot
 
Join Date: Mar 2007
My beans are hidden!
Re: HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

You dont actually delete nautilus you just delete the binary, and you keep a backup, and then you replace all calls to nautilus to pcman, there are just too many files that need to be edited so stuff gets opened with pcman and not nautilus, so this is an ugly but effective and secure solution.
gsiliceo is offline   Reply With Quote
Old March 4th, 2008   #8
tad1073
Grande Half-n-Half Cinnamon Ubuntu
 
tad1073's Avatar
 
Join Date: Dec 2007
Location: Atlanta, Ga
Beans: 934
Ubuntu Development Release
Send a message via MSN to tad1073 Send a message via Yahoo to tad1073
Re: HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

can i do the same with thunar, for some reason pcman was causing 100% processor usage while i was editing the files that were posted
__________________
tad1073 is offline   Reply With Quote
Old March 4th, 2008   #9
gsiliceo
Ubuntu Extra Shot
 
Join Date: Mar 2007
My beans are hidden!
Re: HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

I recommend upgrading to the latest version, first uninstall the one you currently have.
Quote:
sudo apt-get remove pcmanfm
And get the latest tarball from here:
http://www.gnomefiles.org/app.php/PCMan_File_Manager
This app has being getting better and better with every upgrade and since the one in the repositories is old you are missing a lot.
And once you have the new tarball:
Quote:
sudo apt-get build-dep pcmanfm
Extract the tarball and open the terminal in the extracted folder
Quote:
./configure
make
sudo make install
And there you go.

Last edited by gsiliceo; May 21st, 2008 at 02:01 PM..
gsiliceo is offline   Reply With Quote
Old March 4th, 2008   #10
tad1073
Grande Half-n-Half Cinnamon Ubuntu
 
tad1073's Avatar
 
Join Date: Dec 2007
Location: Atlanta, Ga
Beans: 934
Ubuntu Development Release
Send a message via MSN to tad1073 Send a message via Yahoo to tad1073
Re: HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

I followed the instructions and when I go to places>computer, i get an error saying file doesn't exist.---I got this problem fixed, but the error message pops up everytime I open computer.

What do i need to do to get desktop icons and have pcman open the location. such as, computer, sdc1, home, network etc...
__________________

Last edited by tad1073; March 4th, 2008 at 10:21 PM..
tad1073 is offline   Reply With Quote

Bookmarks

Tags
pcmanfm

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:44 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry