2019年5月

转自: https://sspai.com/post/42193

之前试用 Firefox Quantum 时,我最喜欢的特性之一就是其自带的截图功能。它不仅可以自动检测网页元素边界,还能轻松保存整个网页,十分方便。

后来由于扩展及习惯等原因,我又换回了 Chrome,但还是对该功能念念不忘。尽管商店里也有许多截图增强扩展,但在截取一些比较复杂的网页时,往往会出现元素错位、重复的现象。经过一番探索,我发现 Chrome 开发者工具中其实自带了截图命令,效果也令人满意,在这里分享给大家。

- 阅读剩余部分 -

转自: http://www.myxzy.com/post-337.html

ZXA10 F460中兴光猫(E8-C),在第一次安装的时候,超级管理员帐号:telecomadmin 密码:nE7jA%5m 这个是默认的,由安装人员设置好相关设置后,会自动下载配置,这个时候这个超级管理员密码会被修改,修改为telecomadminXXXXXXXX(8个X是8位数字,每个用户是不同的)这种格式。因为很多设置需要在超级管理员下才能设置,所以破解这个超级管理员密码是非常必要的。

- 阅读剩余部分 -

转自: https://community.netgear.com/t5/Nighthawk-WiFi-Routers/Wake-On-Lan-with-R7000/td-p/379989

Hi Riker.

Now that I've confirmed that the removal of my solution was a moderation, I'll try repeating it from memory (I was actually using this thread, bookmarked, to remember how to do it).

Download TelnetEnable from here: https://github.com/LuKePicci/NetgearTelnetEnable/blob/master/binaries/windows/telnetenable.exe?raw=t... Open a DoS/Command Prompt on a PC directly connected to the same LAN and type 'telnetenable.exe admin ' Telnet to the router Type 'arp -i br0 -s x.x.x.x mm:mm:mm:mm:mm:mm' where x.x.x.x is the WoL destination IP address (not .255) and mm... is the WoL destination's MAC address You should then have a static ARP entry in your router. Set up forwarding of port 9/UDP to your device you want to wake and it should work.

  • Dave

转自: https://www.jianshu.com/p/85d00246d1f0

在Ubunt的基本环境(Ubuntu上的软件基础--for NAS)搭建好以后,家庭多媒体中心的任务就摆在了面前。 参考了很多资料,Emby Server看起来是最好的选择,安装的过程很简单,网上有很多的教程,重点是我自己安装后不会用,下面就重点介绍一下安装以后的几种在小米盒子上看电影的方法。

- 阅读剩余部分 -

转自: https://emby.media/community/index.php?/topic/11176-gentoo-release/

ATTENTION: If you still have the old mediabrowser-server package installed be sure to switch to emby-server as 3.0.5572.0 will be the last update to this package! Also the library path for the emby-server package moved to /var/lib/emby-server!

Good news everyone! The linux package list for the server is growing! After the first debian/ubuntu package surfaced, now the gentoo package is on its way.

To use it fire up our all time favourite layman and add the overlay megacoffee:

layman -a megacoffee

Next up you should customize some options like file type support for imagemagick and ffmpeg to suit your needs by configuring use flags. Here's an example of suggested settings, you can put it as a file in /etc/portage/package.use/emby :

# this disables libgdiplus support in mono as we don't use it
dev-lang/mono minimal

# picture format support: jpeg, png and webp are needed, everything else is optional and may depend on your photos file formats
media-gfx/imagemagick jpeg jpeg2k png webp tiff

# the q8 setting is optional and speeds up image processing, if you have other tools using imagemagick you might want to disable this
media-gfx/imagemagick q8

# these are some basic ffmpeg runtime options that should always be enabled for performance reasons
media-video/ffmpeg vdpau vpx threads

# here you should define spport for all codecs you have in your video collection!
media-video/ffmpeg aac mp3 pic theora vorbis x264 xvid webp

After that you can install the package through

emerge -avND media-tv/emby-server

As the package depends on an version of mono that gentoo still consideres to be 'unstable' and the releases are fairly fresh, the packages are still architecture masked.

Architectures that should work are x86, amd64 and arm. I haven't been able to actually test the ebuild on ARM systems, so if you happen to have an ARM based gentoo box please drop me a line if it works all right. If you feel lucky you can also try this on any number of other architectures and let me know you have any problems.

Some things to know about the package:

If you are an inexperienced linux user and try to decide what kind of linux distro you want to use: do not use gentoo just because there is a emby package! Gentoo needs a good amount of time to correctly setup and grasp, so you propably will run into problems that you cannot fix on the first run, so be prepared! It will be installed to /opt/emby-server. The data directory defaults to /var/lib/emby-server but can be changed through the configuration in /etc/conf.d/emby-server.conf The newest mono release in the official tree is 3.2.8 and architecture masked. It is mostly stable though, so don't be shy to unmask it. If you want or need a more recent version use the overlay dotnet from the official layman list. The current recommendation is to use 3.10.0, as old versions have problems with SSL connections and 3.12.0 is a bit wonky on the stability side. If you already use an systemd enabled gentoo you won't have an init script ready for use (currently only the default OpenRC is supported here). Until I have been able to setup a test environment have a look at answer #9 in this thread. For more information about the overlay and contact options apart from this forum head over to http://gentoo-overlay.megacoffee.net/ Have fun and let me know if there are problems!

All ebuilds (including the dev ebuilds) have been updated and completed up to the current release.

I plan to provide updated ebuilds within a small amount of time from official releases so you should be covered.

For the dev (9999) ebuild: there will from time to time be problems with building it. As it builds the current in development snapshot this is to be expected.

If you plan to actually use mediabrowser and not just play around with it please refrain from using that ebuild!

yes the q8 problem is a bug in the current ebuild, it will be refreshed soon. Adding the q8 useflag is encouraged (speeds up image conversion), but not a necessity.

The codecs for ffmpeg depend on what media you are trying to use with emby. I deliberately didn't force any specific formats as long as emby itself doesn't need them, to avoid cluttering systems with codecs and other libraries that are not necessary. I will update the instructions to reflect those kind of pre-install changes though.

Q8 problem fixed, and updated first post with suggested use flag definitions. Have fun everyone! :)

As a heads up: in a future revision the default programData folder will move to /var/lib/!

Edit: revision 2 of the current release is up containing the folder move!

转自: http://gentoo-overlay.megacoffee.net/

At this unofficial place, we publish some ebuilds that may (or may not) be interesting to other Gentoo users. What we serve here are

ebuilds written by ourselves ebuilds that were already in official portage but needed some small change to build newer version ebuilds that we fetched from Gentoo Bugzilla at some point ebuilds with added patches of which some may have been written by us some may have been fetched from other sources such as bug trackers ebuilds that may have been removed previously from official portage - note that these may have been removed for a reason but this is for the special cases in which you simply just need them... All these ebuilds should be considered experimental. As we collect them from other sources (in accordance to the licenses), you are of course free to copy ours as well.

How to connect your Gentoo installation

The easiest way is to use layman to connect with us.

First, get mercurial and layman if you haven't done so already:

echo app-portage/layman mercurial >>/etc/portage/package.use
emerge layman # and follow instructions for /etc/make.conf

We are now on the official layman repository list, so all you need to do is:

  1. Run layman -f once to update the repository list.
  2. Add our overlay megacoffee to your local installation by running layman -a megacoffee - you should see an output similar to this:
    # layman -a megacoffee
    * Running... # /usr/bin/hg clone http://rhodecode.megacoffee.net/gentoo-overlay/main/ /var/lib/layman/megacoffee
    requesting all changes
    adding changesets
    adding manifests
    adding file changes
    added 12 changesets with 30 changes to 22 files
    updating to branch default
    20 files updated, 0 files merged, 0 files removed, 0 files unresolved
    * Successfully added overlay "megacoffee".
  3. From now on, run layman -S whenever you want to check for updates. If you're a long-time user of our repository, you may still have added http://gentoo-overlay.megacoffee.net/repositories.xml to your /etc/layman/layman.cfg. You can safely remove that entry now that we're on the default list.

最近想用 emby-server + kodi 打造家庭播放平台, 在 gentoo 上面先尝试安装配置 emby-server.

首先, 使用 megacoffee 这个 overlay, 这个上面支持 systemd 前的最后版本是 media-tv/emby-server/emby-server-3.2.70.0-r1.ebuild. 但是这个 overlay 使用 mercurial, 所以使用以下命令: vim /etc/portage/package.use/layman

app-portage/layman mercurial

然后, 安装 layman

emerge layman

然后 添加 overlay

layman -f
layman -a megacoffee
layman -S

其中 Run layman -f once to update the repository list, run layman -S whenever you want to check for updates.

然后按照下面的内容, 对应添加到 package.use 中去:

# this disables libgdiplus support in mono as we don't use it
dev-lang/mono minimal

# picture format support: jpeg, png and webp are needed, everything else is optional and may depend on your photos file formats
media-gfx/imagemagick jpeg jpeg2k png webp tiff

# the q8 setting is optional and speeds up image processing, if you have other tools using imagemagick you might want to disable this
media-gfx/imagemagick q8

# these are some basic ffmpeg runtime options that should always be enabled for performance reasons
media-video/ffmpeg vdpau vpx threads

# here you should define spport for all codecs you have in your video collection!
media-video/ffmpeg aac mp3 pic theora vorbis x264 xvid webp

然后, 安装 emby-server

emerge -avND media-tv/emby-server

可以使用下面语句启动 emby-server

rc-service emby-server start

使用下面语句开机自启动 emby-server

rc-update add emby-server default

启动 emby-server 之后, 使用浏览器进行配置, 输入 http://localhost:8096/web/wizardstart.html 进入配置界面. 安装顺序配置完成之后, 使用 http://localhost:8096/web/home.html 进入主界面.

emby-server 配置好以后, 在客户端的 kodi 中也需要配置. kodi 中需要安装 emby 的插件. 安装Emby Server插件的办法: Add-ons -> Add-on browser -> Install from repository -> All repositories -> Video add-ons -> 往下翻到E开头,就会找到Emby, 然后等待安装完成即可.