There are plenty of NZB Indexers out there such as NZB Matrix and NZBs(dot)ORG , but they only index SOME of Usenet. Here’s how to build your own indexer so you can index what you want.

那里有很多NZB索引器,例如NZB Matrix和NZBs(dot)ORG,但它们仅对Usenet的某些内容进行索引。 这是构建自己的索引器的方法,以便您可以索引所需的内容。

您需要的东西: (Things You Will Need:)

  • A computer running Ubuntu.运行Ubuntu的计算机。
  • A Usenet account.Usenet帐户。
  • A basic understanding of the Linux terminal.对Linux终端有基本了解。
  • A decent internet connection.体面的互联网连接。

If you have all of the above you are good to go, let’s get started.

如果您具备以上所有条件,那么一切都很好,让我们开始吧。

安装NewzNab (Installing NewzNab)

We are going to be doing pretty much the whole install from a terminal, so fire up terminal and execute the following:

我们将从终端执行几乎整个安装,因此启动终端并执行以下操作:

sudo gnome-terminal

须藤gnome-terminal

This is going to give us a terminal running under the root security context, this way we don’t have to keep typing sudo.

这将使我们的终端在根安全性上下文下运行,这样我们就不必继续键入sudo。

The first thing you are going to want to do is update your repositories:

您要做的第一件事是更新存储库:

apt-get update

apt-get更新

Most website-related stuff on Ubuntu lives in /var/www,so lets make a directory for our install and set writable permissions on the folder:

Ubuntu上大多数与网站相关的内容都位于/ var / www,因此请为我们的安装创建目录并在该文件夹上设置可写权限:

mkdir –p /var/www/newznab

mkdir –p / var / www / newznab

chmod 777 /var/www/newznab

chmod 777 / var / www / newznab

Next we need to install PHP:

接下来,我们需要安装PHP:

apt-get install –y php5 php5-dev php-pear

apt-get install –y php5 php5-dev php-pear

We need to install a few extra PHP extensions as well:

我们还需要安装一些额外PHP扩展:

apt-get install –y php5-gd php5-mysql php5-curl

apt-get install –y php5-gd php5-mysql php5-curl

The next thing we need to do is edit the PHP configuration, we’ll be using nano for this:

我们需要做的下一件事是编辑PHP配置,为此我们将使用nano:

nano /etc/php5/cli/php.ini

纳米/etc/php5/cli/php.ini

There are two settings that need to be changed,  firstly you will need to change:

有两个设置需要更改,首先,您需要更改:

max_execution_time = 120

max_execution_time = 120

You will also need to change the date.timezone setting, you can get a full list of possible values over here.

您还需要更改date.timezone设置,您可以在此处获得完整的可能值列表。

Next we need to install some kind of database, I opted to go for MySQL:

接下来,我们需要安装某种数据库,我选择了MySQL:

apt-get install mysql-server-5.5

apt-get安装mysql-server-5.5

apt-get install mysql-client-5.5

apt-get安装mysql-client-5.5

apt-get install libmysqlclient-dev

apt-get安装libmysqlclient-dev

You will be prompted for a password during configuration, make sure to choose a strong password, especially if you plan on making it a publicly available indexer.

在配置过程中,系统将提示您输入密码,请确保选择一个强密码,尤其是打算将其设置为公开索引器时。

The last thing we need to install is Apache:

我们需要安装的最后一件事是Apache:

apt-get install –y apache2

apt-get install –y apache2

We will need to make the same changes that we made to the base PHP configuration, to the Apache configuration, there is also an additional setting that needs to be changed, again we will use nano:

我们将需要对基本PHP配置,Apache配置进行相同的更改,还需要更改其他设置,同样,我们将使用nano:

nano /etc/php5/apache2/php.ini

纳米/etc/php5/apache2/php.ini

These are the settings you will need to change:

这些是您需要更改的设置:

  • memory_limit =  -1memory_limit = -1
  • max_execution_time = 120max_execution_time = 120
  • date.timezone =  Europe/Londondate.timezone =欧洲/伦敦

We now need to create the appropriate Apache configuration for our website, so run:

现在,我们需要为我们的网站创建适当的Apache配置,因此运行:

nano /etc/apache2/sites-available/newznab

纳米/ etc / apache2 / sites-available / newznab

When nano opens paste the following into the file:

当nano打开时,将以下内容粘贴到文件中:

<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName localhost

<VirtualHost *:80> ServerAdmin webmaster @ localhost ServerName本地主机

DocumentRoot /var/www/newznab/www ErrorLog /var/log/apache2/error.log LogLevel warn </VirtualHost>

DocumentRoot / var / www / newznab / www ErrorLog /var/log/apache2/error.log LogLevel警告</ VirtualHost>

The go ahead and commit the changes to the file.

继续并将更改提交到文件。

Now that all the pre-requisites are installed we can install NewzNab, so head over to the download page and grab a copy of NewzNab Classic.

现在已经安装了所有必备软件,我们可以安装NewzNab,因此请转到下载页面并获取NewzNab Classic的副本。

Once it has downloaded extract it.

下载完成后,将其解压缩。

Now copy all the extracted files.

现在复制所有提取的文件。

Paste them in:

将它们粘贴到:

/var/www/newznab

/ var / www / newznab

Now open a new terminal and run the following commands to register NewzNab as the default website, as well as enable mod-rewrite.

现在打开一个新终端并运行以下命令,将NewzNab注册为默认网站,并启用mod-rewrite。

sudo a2dissite default sudo a2ensite newznab sudo a2enmod rewrite sudo service apache2 restart

sudo a2dissite默认sudo a2ensite newznab sudo a2enmod重写sudo服务apache2重新启动

You may notice an error when you execute the restart command, this is because we used localhost in our config file, just ignore it and continue.

当您执行重新启动命令时,您可能会注意到一个错误,这是因为我们在配置文件中使用了本地主机,只是忽略它并继续。

Finally to sort out some permission issues run the following:

最后,要解决一些权限问题,请运行以下命令:

sudo chmod 777 /var/www/newznab/www/lib/smarty/templates_c sudo chmod 777 /var/www/newznab/www/covers/movies sudo chmod 777 /var/www/newznab/www/covers/music sudo chmod 777 /var/www/newznab/www sudo chmod 777 /var/www/newznab/www/install sudo chmod 777 /var/www/newznab/nzbfiles/

sudo chmod 777 / var / www / newznab / www / lib / smarty / templates_c sudo chmod 777 / var / www / newznab / www / covers / movies sudo chmod 777 / var / www / newznab / www / covers / music sudo chmod 777 / var / www / newznab / www sudo chmod 777 / var / www / newznab / www / install sudo chmod 777 / var / www / newznab / nzbfiles /

组态 (Configuration)

Now that we have NewzNab installed we need to configure it, after all there wouldn’t be any point in running your own indexer if you didn’t customize it. So open up your browser of choice and head over to http://localhost/install. Once the page has loaded click on the button to check the status of your pre-requisites.

现在我们已经安装了NewzNab,我们需要对其进行配置,毕竟,如果不自定义它,运行您自己的索引器将毫无意义。 因此,打开您选择的浏览器,然后转到http:// localhost / install。 页面加载完成后,单击按钮以检查先决条件的状态。

Note: You will get two settings that have a warning status, those are the date.timezone and the memory_limit settings. Just ignore these and continue.

注意:您将获得两个具有警告状态的设置,分别是date.timezone和memory_limit设置。 只需忽略这些并继续。

Once you move on you will need to put in the credentials to access your MySQL database.

继续进行之后,您需要输入凭据才能访问MySQL数据库。

You will also need the details to your Usenet account.

您还将需要Usenet帐户的详细信息。

Then go ahead and choose a username and password for yourself, these are the credentials you will use to log into your website with.

然后继续为您自己选择用户名和密码,这些是您用来登录网站的凭据。

You might get an error when it asks you where you want to store the nzb files, just run the provided chmod command from a terminal as a quick fix.

当它询问您要将nzb文件存储在哪里时,您可能会出错,只需从终端运行提供的chmod命令即可。

Congratulations you have made it to the admin hangout.

恭喜,您已加入管理员视频群聊。

One thing you will need to do before I send you on your way is change the  way the nzb categories work, to do this click on your name in the top right hand corner.

在您发送邮件给您之前,您需要做的一件事就是更改nzb类别的工作方式,为此,请单击右上角的名称。

Then click on the Edit link.

然后单击“编辑”链接。

Now uncheck the boxes for Movies, Music and Console.

现在,取消选中电影,音乐和控制台的框。

Once you have that done, head back over to http://localhost/admin and go through the steps to finish configuring your indexer.

完成此操作后,请返回至http:// localhost / admin并执行以下步骤以完成对索引器的配置。

That’s all there is to it. Be sure to follow me on Twitter: @taybgibb

这里的所有都是它的。 一定要在Twitter上关注我: @taybgibb

翻译自: https://www.howtogeek.com/120285/how-to-build-your-own-usenet-indexer/

如何建立自己的Usenet索引器相关推荐

  1. C#拾遗系列(4):索引器

    1. 概述 索引器允许类或结构的实例就像数组一样进行索引.索引器类似于属性,不同之处在于它们的访问器采用参数.索引器在语法上方便您创建客户端应用程序可将其作为数组访问的类.结构或接口.索引器经常是在主 ...

  2. c#初学-索引器get和set的使用(泛型类)

    索引器允许类或结构的实例就像数组一样进行索引.索引器类似于属性,不同之处在于它们的访问器采用参数. 在下面的示例中,定义了一个泛型类,并为其提供了简单的 get 和 set 访问器方法(作为分配和检索 ...

  3. 快速了解c#中的索引器

    快速了解c#中的索引器 C#中的索引器是新增加的,和属性有些不同.在c#中,属性可以是这样的: class Person { private string firstname; public stri ...

  4. java分词器和索引器_solr-hbase二级索引及查询解决方案(一)

    solr-hbase二级索引及查询解决方案(一) 发布时间:2018-02-28 21:41, 浏览次数:636 , 标签: solr hbase 最近要搞一个查询功能,是把hbase中的数据方便的查 ...

  5. 索引器的详细讲解(C#)

    索引器与属性很类似.索引器的创建与属性创建所使用的编程语言特性是一样的.索引器使属性被索引:使用一个或多个参数引用的属性,这些参数为某些值集合提供索引. 索引器语法 可以通过变量名和方括号访问索引器. ...

  6. 读CLR via C#总结(9) 索引器(有参属性)

    索引器,即访问器接受参数的属性.在C#中是以数组风格的语法来公开索引器的.所以这使得对象可按照与数组相似的方式进行索引. 一,定义索引器 internal class IndexerTest<T ...

  7. 《.Net框架程序设计》读书笔记 之 结构和索引器

    一:结构和索引器(又称含参属性) class classStruct {     struct MyStruct     {         public string[] strTest;      ...

  8. python indexerror_python – “IndexError:位置索引器超出范围”,当它们明显没有时

    这是我正在使用的一些代码的MWE.我通过切片和一些条件慢慢缩小初始数据帧,直到我只有我需要的行.每行五行实际上代表一个不同的对象,因此,当我减少一些事情时,如果每个五个块中的任何一行符合条件,我想保留 ...

  9. .Net学习难点讨论系列16 - 索引器

    索引器是一个我们经常打交道的特性,在编程过程中,多多少少都会用到索引器.而关于索引器一些高级话题,如给自定义的类添加索引器等也是本文着重介绍的.索引器本质上是一组get和set访问器, []中提供的是 ...

最新文章

  1. 【python初识】数据和对象
  2. mysql讀取sql_SQL 2008连接读取mysql数据的方法
  3. Win服务器2008和2012哪个更好?
  4. 兰州计算机速成班都学什么,兰州当众讲话速成班
  5. 2008wsus创建和管理计算机组,Windows Server 2012 R2 WSUS-6:配置计算机组和客户端目标...
  6. 单线程的Redis为什么却能支撑高并发?
  7. 大名鼎鼎的电影胶片滤镜--DxO FilmPack 5 mac
  8. Mybatis(17)注解方式增删改查单表
  9. html中位div添加水平线,html中div使用CSS实现水平/垂直居中的多种方式
  10. Unity 烘焙材质到单一贴图的脚本
  11. ulipad 常用快捷键
  12. 易语言网页html代码大全,易语言网页操作取网页源码
  13. 文章原创度检测神器:copyscape及duplichecker
  14. 2021-07-18 三种视图的dicom文件的生成
  15. CISCO2600路由器入门3
  16. PHP反序列化字符串逃逸
  17. poj1015陪审团——DP+路径记录
  18. 移动端开发vue使用Barcode实现二维码、条形码扫码
  19. fadeOut和fadeIn的使用方法
  20. java代码混淆 项目加密解决方案 class文件加密 支持JDK16

热门文章

  1. X友NC远程命令执行
  2. 详解python中的用法_详解python中@的用法
  3. 26.XAPP1052源码实战1-DMA读写在线测试
  4. 【Open3d】使用open3d可视化
  5. android图形编辑6,图片编辑P图制作app
  6. 15大不同领域问答对比,ChatGPT模型大战:国产版百度文心一言、昆仑万维天工能否击败GPT-4(含百度文心一言、昆仑万维天工个人内测体验测试邀请码获取方法,亲测有效)
  7. shp数据导入postgis
  8. vc++操作excel2010
  9. 【《深度学习入门》—— 学习笔记(二)】
  10. pyinstall报错和,打包大小过大解决方案链接