上一篇文章我教大家怎样搭建谷歌云VPS,但纯SSH命令行环境没有图形界面,对文件管理操作并不友好。所以本文推荐Filebrowser来接管VPS的文件管理。 FileBrowser基于Go语言编写,简洁无依赖,作为一款文件浏览器,把服务端部署在服务器上,只要保持连接设备与服务器间网络链接通畅,随时随地就可以通过浏览器访问位于服务器上的存储位置。 无需专门的应用就可以轻松执行复制、粘贴、移动、新建文件夹等文件管理的操作。此外,FileBrowser还具备文本编辑器、高级分享、文件传输、用户管理、命令行操作、自定义等多种功能,可谓远程文件管理中的瑞士军刀。 那么这期教程就来聊聊Filebrowser的部署及应用。

Previously I taught you how to build VPS on Google Cloud, but the pure SSH command line environment without graphical interface is not friendly to file management operations. So let’s recommends Filebrowser to take over file management on VPS. FileBrowser is written in Go language, simple and non-dependent. As a file browser, the server is deployed on the VPS. As long as the network link between the connected device and the server is kept open, the storage on the server can be accessed through the browser anytime and anywhere. You can easily perform file management operations such as copy, paste, move, creating new folder, etc. without an app. In addition, FileBrowser also has a text editor, advanced sharing function, file transfer, user management, customization and many more. So let’s get started with deployment and application of Filebrowser.

目录 / LIST


x

# 一键部署 | Deployment

  • VPS系统要求:Ubuntu 16+ / Debian 8+ / CentOS 7+
  • System requirement: Ubuntu 16+ / Debian 8+ / CentOS 7+
x
  • 获取root权限后,直接输入一键部署命令安装或卸载:
  • Firstly root access, then enter the one-click deployment command to install or uninstall:
bash <(curl -s -L https://233blog.com/filebrowser.sh)

你可能会感兴趣 | Maybe interested in

x


# 修改配置 | Configurations

  • 等待安装完成,会显示管理地址,默认用户名密码都为admin,登录修改语言及管理密码。
  • Wait for the installation to complete, the management address will be displayed, and the default username and password are both admin.
  • Login to modify language and password.
x

# 服务管理 | Service management

  • 在SSH命令行输入如下命令可以快速启动或停止Filebrowser服务。
  • Enter the following command on the SSH command line to quickly start or stop the Filebrowser service.
状态Status: systemctl status filebrowser
启动Start:  systemctl start filebrowser
停止Stop:   systemctl stop filebrowser
重启Restart:systemctl restart filebrowser

# 用户管理 | User management

  • 全局设置中可以自定义是否允许用户注册。
  • In the Global Settings you can set whether to allow user registration.
x
  • 以及用户默认的权限都有哪些。
  • And the default permissions.
x
  • 也可在用户管理中对每个用户的权限及可访问的目录进行管理。
  • Each user’s permissions and accessible directories can also be managed in `User Management’.
x

# 获取根目录权限 | Root permission

  • 默认情况下,文件管理被限制在/etc/filebrowser目录下,可以修改其中的配置文件filebrowser.json来实现全盘管理。
  • By default, file management is restricted to the /etc/filebrowser directory. You may modify the configuration file filebrowser.json to get root access.
x
  • 将其中的"root": "/etc/filebrowser/"改为"root": "/",然后点击右上角的保存按钮,在SSH中输入systemctl restart filebrowser重启服务即可。
  • Change "root": "/etc/filebrowser/" to "root": "/", then click the Save button in the upper right corner and type systemctl restart filebrowser in SSH to restart the service.
x

# 个性化定制 | Customization

  • 全局设置中可以进行个性化定制设置,其中可以填写的包括名称和路径。修改名称可以修改显示在登录界面上的名称,而路径则包含自定义图标和css文件。
  • Personalization settings can be made in Global Settings, where you can fill in the name and path. Modifying the name modifies the name that appears on the login screen, while the path contains custom icons and css files.
x
  • 进入刚才填写的自定义路径,新建一个img文件夹存放自定义图标文件,新建custom.css来修改外观。
  • Enter the custom path just filled in, create a new img folder to store the custom icon file, and create a new custom.css to modify the appearance.
x
  • 在此分享一下博主找到的深色主题,写入custom.css后,重启Filebrowser服务后生效。
  • Let me show you the dark theme I found. After writing into custom.css, it will take effect after restarting the Filebrowser service.
body, #login {
  background-color: #303030;
}

header {
  background-color: #1b1b1b;
}

.action,
#breadcrumbs,
#breadcrumbs span,
.dashboard #nav,
#listing.mosaic h2,
#login h1 {
  color: rgba(255, 255, 255, 0.7);
}

#listing.list .item.header {
  color: rgba(255, 255, 255, 0.7);
  background: #616161;
}

#listing.list .item,
#listing.mosaic .item {
  background-color: #424242;
  color: rgba(255, 255, 255, 0.7);
}

.dashboard {
  background: #424242;
  color: rgba(255, 255, 255, 1.0);
}

select,
textarea,
input,
.dashboard textarea,
.dashboard #locale,
.dashboard input[type=password],
.dashboard input[type=text] {
  background: #212121;
  color: rgba(255, 255, 255, 0.9);
  border-color: #303030;
}

select,
.dashboard input[type=password],
.dashboard input[type=text],
.dashboard select {
  padding: 8px;
}

#search #input {
  background-color: #424242;
  color: rgba(255, 255, 255, 0.7);
}

#search.active #input>.action i,
#search.active input,
#search.active #input,
#login input[type=password], #login input[type=text] {
  background-color: #303030;
  color: rgba(255, 255, 255, 0.7);
}

#search #result {
  background-color: #212121;
  color: rgba(255, 255, 255, 0.7);
}

#search #result .boxes,
.card {
  background-color: #424242;
  padding: 0 15px 15px 15px;
}

#search #result .boxes h3,
.card h2,
.card h3,
.card p,
.card-content {
  color: rgba(255, 255, 255, 0.7);
}

#nav li {
  padding-top: 1em !important;
}

nav.active, #dropdown.active {
    background-color: rgb(51, 51, 51);
}

#file-selection {
    background: #303030;
}

# 域名配置 | Domain configuration

  • 如果你有域名,可以通过Caddy等服务器程序代理Filebrowser的管理页面,直接访问域名即可访问Filebrowser。
  • If you have a domain name, you can access Filebrowser by directly accessing the domain name using proxy of Caddy, etc.

https://io.marsgrid.com

  • 这是本站Filebrowser网盘页面,也可从主页菜单中找到,博主将不定时上传资源,欢迎注册下载。
  • This is the Filebrowser page of Marsgrid.com, which can also be found from the homepage menu. Feel free to register and download files.

你可能会感兴趣 | Maybe interested in

x

 
• 本文作者 | Author info >> MAXH
• 来源链接 | Source link >> Filebrowser轻松管理VPS文件 | Deploy Filebrowser in one click
• 发表评论 | Make comments >>