HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

简介:

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 

 

 

o 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 editpreferences, 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.

本文转自孤舟夜航之家博客51CTO博客,原文链接http://blog.51cto.com/cysky/560033如需转载请自行联系原作者


cysky

相关文章
|
2月前
|
编解码 文字识别 语音技术
MiniCPM-o 2.6:流式全模态,端到端,多模态端侧大模型来了!
MiniCPM-o 2.6 是 MiniCPM-o 系列的最新、性能最佳模型。该模型基于 SigLip-400M、Whisper-medium-300M、ChatTTS-200M 和 Qwen2.5-7B 构建,共 8B 参数,通过端到端方式训练和推理。相比 MiniCPM-V 2.6,该模型在性能上有了显著提升,并支持了实时语音对话和多模态流式交互的新功能。
627 70
|
Java Maven
【异常解决】为什么会产生jar包冲突,如何排查jar包冲突?
【异常解决】为什么会产生jar包冲突,如何排查jar包冲突?
325 0
|
Kubernetes 网络协议 Ubuntu
Kubeadm 快速搭建 k8s v1.19.1 集群(Ubuntu Server 20.04 LTS)
安装准备工作安装环境要求:角色 实验环境 生产环境 操作系统 master cpu/内存:2 Core/2G cpu/内存:2 Core/4G linux 内核 4.4+ node cpu/内存:1 Core/2G cpu/内存:4 Core/16G linux 内核 4.4+ 备注 Node:应根据需要运行的容器数量进行配置; Linux 操作系统基于 x86_64 架构的各种 Linux 发行版...
1325 2
Kubeadm 快速搭建 k8s v1.19.1 集群(Ubuntu Server 20.04 LTS)
|
4月前
|
人工智能 并行计算 监控
深入剖析 Qwen2.5 - 32B 模型在 VLLM 上的单机三卡部署与运行
本文深入探讨了Qwen2.5 - 32B模型在VLLM框架上的部署过程,从模型下载、启动命令、资源占用分析到GPU资源分配及CUDA图应用,详述了大模型运行的挑战与优化策略,强调了硬件资源规划与技术调优的重要性。
2495 2
|
5月前
|
机器学习/深度学习 JSON 数据可视化
YOLO11-pose关键点检测:训练实战篇 | 自己数据集从labelme标注到生成yolo格式的关键点数据以及训练教程
本文介绍了如何将个人数据集转换为YOLO11-pose所需的数据格式,并详细讲解了手部关键点检测的训练过程。内容涵盖数据集标注、格式转换、配置文件修改及训练参数设置,最终展示了训练结果和预测效果。适用于需要进行关键点检测的研究人员和开发者。
900 0
|
存储 监控 数据可视化
Golang链路追踪:实现高效可靠的分布式系统监控
Golang链路追踪:实现高效可靠的分布式系统监控
|
10月前
|
存储 NoSQL 安全
Redis持久化解析:全面了解Redis的数据持久化机制
Redis持久化解析:全面了解Redis的数据持久化机制
1343 1
|
10月前
|
存储 分布式计算 关系型数据库
云原生数据仓库产品使用合集之ADB如何确保数据库的可用性
阿里云AnalyticDB提供了全面的数据导入、查询分析、数据管理、运维监控等功能,并通过扩展功能支持与AI平台集成、跨地域复制与联邦查询等高级应用场景,为企业构建实时、高效、可扩展的数据仓库解决方案。以下是对AnalyticDB产品使用合集的概述,包括数据导入、查询分析、数据管理、运维监控、扩展功能等方面。
|
SQL 安全 中间件
Go开发:如何封装函数来统计执行时间
Go开发:如何封装函数来统计执行时间
513 0
|
Web App开发 存储 缓存
【SEED Labs】Public-Key Infrastructure (PKI) Lab
【SEED Labs】Public-Key Infrastructure (PKI) Lab
449 0