存档

作者存档

Nginx不支持https的正向代理

2013年11月2日 评论已被关闭

Nginx虽然很好,但也不是万能的,“只做自己最擅长的或许才是聪明的选择”.

最近用Nginx尝试搭建了proxy代理内部机器上网,Nginx基于http的代理确实非常不错,性能真没得说。不过访问https时问题来了,登陆不了,日志中会有很多这样的记录:

192.168.0.120 – – [01/Nov/2013:05:29:39 +0000] “CONNECT www.google.com:443 HTTP/1.0” 400 166 “-” “-”
192.168.0.120 – – [01/Nov/2013:05:29:39 +0000] “CONNECT www.google.com:443 HTTP/1.0” 400 166 “-” “-”
192.168.0.120 – – [01/Nov/2013:05:29:39 +0000] “CONNECT www.google.com:443 HTTP/1.0” 400 166 “-” “-”
192.168.0.120 – – [01/Nov/2013:05:29:39 +0000] “CONNECT www.google.com:443 HTTP/1.0” 400 166 “-” “-”

问了google大神半天,偶然看到了作者Igor Sysoev的解答:http://forum.nginx.org/read.php?2,15124,15256#msg-15256

Q:I suspect Nginx has not been designed to be used as a forward proxy. If nginx won’t foot the bill, can anyone recommend a free solution please?
A:Yes, nginx has not been disigned as a forward proxy. You should try squid
which was a forward proxy from the very start.
Q:Is there any schedule to support the feathure, forward proxy ?
A:Not in near future: there is alreay good forward proxy Squid.

看来还得继续使用Squid,proxy中的战斗机。

分类: nginx, OpenSource 标签: ,

Cisco releases free and libre H.264 code for browsers

2013年10月31日 评论已被关闭

Video codecs continue to be a problem for the Web standards community. The H.264 standard continues to be the dominant option for streaming video, both via Flash and using HTML5's <video> tag, but it has outstanding patent issues that make free and open source implementations problematic. H.264 codec implementers must license the patents that cover the specification, and that requires payment of royalties.

Though most browser developers—including Mozilla—have acknowledged that H.264 is non-negotiable for <video>, due to its abundant use and widespread hardware support, the codec question continues to be a live one. The WebRTC specification for plugin-free real-time audio and video chat from within the browser also needs video codecs. Once again, H.264 has widespread industry usage, but its patent problems remain.

Cisco, actively involved in the development of WebRTC, has stepped forward with a possible solution. The company is releasing an open source, BSD-licensed implementation of the H.264 specification. It’s also releasing a compiled, freely downloadable binary version of that same source code. Cisco will pay the license fees for that binary module, and won’t pass that fee on to end users.

Read 4 remaining paragraphs | Comments

       



分类: OpenSource 标签:

CentOS6.4下GraphicsMagick安装

2013年10月29日 评论已被关闭

wget http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.18/GraphicsMagick-1.3.18.tar.bz2/download

tar jxvf GraphicsMagick-1.3.18.tar.bz2
cd GraphicsMagick-1.3.18

#install required
yum install -y libpng-devel libpng libjpeg libjpeg-devel libpng libpng-devel libtiff-devel libtiff \
libwmf-devel libwmf libxml2-devel libxml2 zlib-devel zlib gd-devel gd bzip2 bzip2-devel libzip-devel libzip

./configure –prefix=/usr/local/GraphicsMagick-1.3.18 –disable-static –enable-openmp \
–enable-shared –enable-symbol-prefix

make
make install

Edit: /etc/profile
GM_HOME=/usr/local/GraphicsMagick
PATH=$GM_HOME/bin:$PATH
export PATH CLASSPATH GM_HOME

阅读全文…

分类: OpenSource 标签:

Seagate introduces a new drive interface: Ethernet

2013年10月28日 评论已被关闭

It’s not time to say goodbye to the old storage network quite yet, but a new combination of cloud, networking, and storage technology might mark the beginning of the end for SANs—Seagate has introduced a new storage architecture that puts Ethernet directly on the disk drive.

Called the Kinetic Open Storage Platform, the new approach turns disks themselves into servers, delivering data over the network to applications using an open application interface. The Kinetic platform is a combination of an open programming interface and intelligence and a network interface installed in the storage device itself. It’s targeted mostly at companies looking to adopt the same sort of architecture in their data centers that they use to connect to cloud storage providers such as Amazon.

While the architectural approach Seagate is taking is an evolution of work already done by cloud giants such as Google and Facebook, it turns cloud-style storage into a commodity. And that could change how companies small and large think of networked storage—especially as they move toward using newer software development approaches to build their applications or move applications built on Amazon or other cloud services back within their firewalls.

Read 6 remaining paragraphs | Comments

       



分类: OpenSource 标签:

Google’s iron grip on Android: Controlling open source by any means necessary

2013年10月21日 评论已被关闭

Six years ago, in November 2007, the Android Open Source Project (AOSP) was announced. The original iPhone came out just a few months earlier, capturing people’s imaginations and ushering in the modern smartphone era. While Google was an app partner for the original iPhone, it could see what a future of unchecked iPhone competition would be like. Vic Gundotra, recalling Andy Rubin’s initial pitch for Android, stated:

He argued that if Google did not act, we faced a Draconian future, a future where one man, one company, one device, one carrier would be our only choice.

Google was terrified that Apple would end up ruling the mobile space. So, to help in the fight against the iPhone at a time when Google had no mobile foothold whatsoever, Android was launched as an open source project.

In that era, Google had nothing, so any adoption—any shred of market share—was welcome. Google decided to give Android away for free and use it as a trojan horse for Google services. The thinking went that if Google Search was one day locked out of the iPhone, people would stop using Google Search on the desktop. Android was the “moat” around the Google Search “castle”—it would exist to protect Google’s online properties in the mobile world.

Read 53 remaining paragraphs | Comments

       



分类: OpenSource 标签:

The Navy’s newest warship is powered by Linux

2013年10月18日 评论已被关闭
The USS Zumwalt getting a coat of paint at Bath Iron Works. The ship is exotic in many ways, but it runs on off-the-shelf computing technology.
General Dynamics Bath Iron Works

When the USS Zumwalt (DDG 1000) puts to sea later this year, it will be different from any other ship in the Navy’s fleet in many ways. The $3.5 billon ship is designed for stealth, survivability, and firepower, and it’s packed with advanced technology. And at the heart of its operations is a virtual data center powered by off-the-shelf server hardware, various flavors of Linux, and over 6 million lines of software code.

On October 10, I flew up to Rhode Island to visit Raytheon’s Seapower Capability Center in Portsmouth, where engineers assembled and pre-tested the systems at the heart of the Zumwalt and are preparing to do the same for the next ship in line, the USS Michael Monsoor—already well into construction. There, Raytheon’s DDG-1000 team gave me a tour of the centerpiece of the ship’s systems—a mockup of the Zumwalt’s operations center, where the ship’s commanding officer and crew will control the ship’s sensors, missile launchers, guns, and other systems.

Over 20 years ago, I learned how to be a ship watch stander a few miles from the Raytheon facility at the Navy’s Surface Warfare Officer School. But the operations center of the Zumwalt will have more in common with the fictional starship USS Enterprise’s bridge than it does with the combat information centers of the ships I went to sea on. Every console on the Zumwalt will be equipped with touch screens and software capable of taking on the needs of any operator on duty, and big screens on the forward bulkhead will display tactical plots of sea, air, and land.

Read 17 remaining paragraphs | Comments

       



分类: OpenSource 标签:

Ubuntu 13.10 review: The Linux OS of the future remains a year away

2013年10月17日 评论已被关闭

After the customary six months of incubation, Ubuntu 13.10—codenamed Saucy Salamander—has hatched. The new version of the popular Linux distribution brings updated applications and several new features, including augmented search capabilities in the Unity desktop shell.

Although Saucy Salamander offers some useful improvements, it’s a relatively thin update. XMir, the most noteworthy item on the 13.10 roadmap, was ultimately deferred for inclusion in a future release. Canonical’s efforts during the Saucy development cycle were largely focused on the company’s new display server and upcoming Unity overhaul, but neither is yet ready for the desktop.

Due to the unusual nature of this Ubuntu update, this review is going to diverge a bit from the usual formula. The first half will include a hands-on look at the new Unity features. The second half will take a close look at the Ubuntu roadmap and some of the major changes that we can expect to see over the course of the next several releases.

Read 46 remaining paragraphs | Comments

       



分类: OpenSource 标签:

Upgrade your PCs, servers, and phones: Ubuntu 13.10 lands tomorrow

2013年10月16日 评论已被关闭
Ubuntu is ready to be installed on phones.
Andrew Cunningham

The newest version of Ubuntu is a big one, but not for the usual reasons. With Ubuntu 13.10 (aka Saucy Salamander) coming out tomorrow, the desktop and server editions will get some upgrades as always. But the biggest change is that Canonical is delivering the first stable version of Ubuntu for phones.

Beta versions of the mobile Ubuntu have been available to test for months, and now version 1.0 will be ready for supported devices, namely the Galaxy Nexus and Nexus 4 phones. Preview versions have also been running on the Nexus 7 and Nexus 10 tablets, but Canonical isn’t quite ready to declare Ubuntu stable for those larger touchscreens.

Ubuntu 14.04, slated for arrival in April 2014, is Canonical’s target for delivering an operating system that runs on everything, including phones, tablets, desktops, and servers. Phones preinstalled with Ubuntu should also ship sometime in Q1 or Q2 next year, assuming Canonical can get the right deals in place with carriers and hardware makers.

Read 17 remaining paragraphs | Comments

       



分类: OpenSource 标签:

Arduino creator explains why open source matters in hardware, too

2013年10月14日 评论已被关闭
The Arduino Tre.
Arduino

Most of the technology world is familiar with open source software and the reasons why, in some eyes, it’s more appealing than proprietary software. When software’s source code is available for anyone to inspect, it can be examined for security flaws, altered to suit user wishes, or used as the basis for a new product.

Less well-known is the concept behind open source hardware, such as Arduino. Massimo Banzi, co-creator of Arduino, spoke with Ars this month about the importance of open hardware and a variety of other topics related to Arduino. As an “open source electronic prototyping platform,” Arduino releases all of its hardware design files under a Creative Commons license, and the software needed to run Arduino systems is released under an open source software license. That includes an Arduino development environment that helps users create robots or any other sort of electronics project they can dream up.

Massimo Banzi.

So just like with open source software, people can and do make derivatives of Arduino boards or entirely new products powered by Arduino technology.

Read 25 remaining paragraphs | Comments

       



分类: OpenSource 标签:

Node.js-based Ghost blogging platform opens to the public

2013年10月14日 评论已被关闭

Last month we covered the soft launch of Ghost, a Node.js-based minimalist blogging platform. The application blew through a Kickstarter goal and has been under heavy development; last month, Kickstarter backers were granted early access to the application to get started with it (my own Ghost-based blog, for example, is here).

Today, the Ghost team is opening the platform up to everyone. You can download the Ghost application and get it going on your own server immediately, and users interested in assisting with the development can hit up the project’s GitHub repo and start poking around.

There are two major features still lacking from the platform: the fancy graphical management console and the hosted service. The graphical console with all of its fancy charts and graphs has been set aside temporarily while the core team focuses on making Ghost stable and functional enough for launch, but it should be making an appearance in an upcoming release.

Read 3 remaining paragraphs | Comments

       



分类: OpenSource 标签: