1 / 3
Caption Text
2 / 3
Caption Two
3 / 3
Caption Three margin testing

Friday, October 28, 2011

GoAccess - Visual apache/Nginx log analyzer

http://www.ubuntugeek.com/goaccess-visual-apachenginx-log-analyzer.html
 | Ubuntu Geek

GoAccess is an open source real-time Apache log analyzer and interactive viewer that runs in a terminal in *nix systems. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly.

Essentially, the way GoAccess works is that it will parse the well-known Apache access log file, from there, GoAccess will collect data from the parsed log and it will display it to the console or the X terminal. The collected information or generated reports will be displayed to the user/sysadmin in a visual/interactive window. Reports include:

General Statistics, bandwidth etc.
Top Visitors
Requested files
Requested static files, images, swf, js, etc.
Referrers URLs
404 or Not Found
Operating Systems
Browsers and Spiders
Hosts, Reverse DNS, IP Location
HTTP Status Codes
Referring Sites
Keyphrases
Different Color Schemes
Unlimited log file size

Log format…

GoAccess can parse both of Apaches' log formats, the Common Log Format (CLF) and the Combined Log Format (XLF/ELF), including virtual host. It is possible to parse Nginx as well. (if configured with the standard Apache log format)

Install GoAccess on ubuntu

sudo apt-get install goaccess

Using goaccess

You have to make sure apache or nginx is installed and configured for websites access.

Usage:

goaccess [ -b ][ -s ][ -e IP_ADDRESS][ - a ] <-f log_file >

The following options can also be supplied to the command:

-f - Path to input log file.
-b - Enable total bandwidth consumption.
For faster parsing, don't enable this flag.
-s - Enable HTTP status codes report.
For faster parsing, don't enable this flag.
-a - Enable a List of User-Agents by host.
For faster parsing, don't enable this flag.
-e - Exclude an IP from being counted under the
HOST module. Disabled by default.

Goaccess Examples

The simplest and fastest usage would be:

# goaccess -f access.log

That will generate an interactive text-only output.

To generate full statistics we can run GoAccess as:

# goaccess -f access.log -a -s -b

The -a flag indicates that we want to process an agent-list for every host parsed. The -s flag tells
GoAccess go get every HTTP status code. The -b flag will process the total bandwidth consumption for
files, hosts, and dates.

Now if we want to add more flexibility to GoAccess, we can do a series of pipes. For instance:

If we would like to process all access.log.*.gz we can do:

# zcat access.log.*.gz | goaccess

OR

# zcat -f access.log* | goaccess

Another useful pipe would be filtering dates out of the Apache's access log

The following will get all HTTP requests starting on 05/Dec/2010 until the end of the file.

# sed -n '/05\/Dec\/2010/,$ p' access.log | goaccess -s -b

If we want to parse only a certain time-frame from DATE a to DATE b, we can do:

sed -n '/5\/Nov\/2010/,/5\/Dec\/2010/ p' access.log | goaccess -s -b

Note that this could take longer time to parse depending on the speed of sed.

Also, it is worth pointing out that if we want to run GoAccess at lower priority, we can run it as:

# nice -n 19 goaccess -f access.log -s -a -b

and if you don't want to install it on your server, you can still run it from your local machine:

# ssh user@server 'cat /var/log/apache2/access.log' | goaccess -s -a -b

60 New Open Source Apps You've (Probably) Never Heard Of

http://www.datamation.com/open-source/60-new-open-source-apps-youve-probably-never-heard-of-1.html
 - Datamation

少为人知的60个新的开源应用程序

Thursday, October 27, 2011

Dell offers machines with ubuntu linux in 220 chinese stores

http://www.theinquirer.net/inquirer/news/2120655/dell-offers-machines-ubuntu-linux-220-chinese-stores
- The Inquirer

Linux for the masses
Thu Oct 27 2011, 16:52

TIN BOX FLOGGER Dell has rolled out machines preloaded with Ubuntu Linux to 220 retail stores in China.

Dell might have scaled back its Ubuntu Linux offerings in the west but in China - the market that really matters - the firm is rolling out a range of machines running Ubuntu in 220 stores. Unlike its solitary US web-store offering, Dell presents Chinese punters with a range of Ubuntu Linux systems and better still the firm said its staff will promote the benefits of Ubuntu Linux to consumers.

Canonical and Dell announced that they were working on a strategy for flogging Dell machines running Ubuntu Linux earlier this year. However given Dell's seemingly declining interest in Ubuntu Linux, some thought the announcement was hot air from a company that just wanted to keep a Linux-friendly image, but not so.

Dell's range of Ubuntu Linux machines will come with Ubuntu's music store and the Ubuntu One cloud storage built in. All in all, it is a good chance for desktop Linux usage to grow in an immensely important market.

Ubuntu Linux might not be the first choice for many Linux users but Canonical has done a lot to push its desktop-oriented Linux distribution to OEMs such as Acer and Dell. While in established markets the popularity of Microsoft's Windows remains hard to break down, in a relatively new and growing market there is every chance that Linux, whether it's Ubuntu or some other Linux distribution, can succeed. µ

China Proposes New Curbs on Entertainment and Bloggers

http://www.nytimes.com/2011/10/27/world/asia/china-imposes-new-limits-on-entertainment-and-bloggers.html?_r=1&nl=todaysheadlines&emc=tha22
 - NYTimes.com

BEIJING — Political censorship in this authoritarian state has long been heavy-handed. But for years, the Communist Party has tolerated a creeping liberalization in popular culture, tacitly allowing everything from popular knockoffs of "American Idol"-style talent shows to freewheeling microblogs that let media groups prosper and let people blow off steam.


Wednesday, October 26, 2011

[技巧]夜间智能定时关机

http://www.appinn.com/tip-schedule-task-for-auto-shutdown/
 - 小众软件


和大多数人不一样,侍其二狗有癖好,关机癖。计算机不用的时候一定要关上。这种强迫症带给二狗很好的节能习惯和更多的麻烦,他经常半夜惊醒去看看电脑有没有关机。其实,善用 Windows 自带计划任务就能实现电脑夜间只能自动关机。如果到了关机时,电脑还在使用中,也不会强制关闭,而是等到电脑完全空闲了再关机。@appinn
开始菜单 -> 所有程序 -> 附件 -> 系统工具 -> 任务计划程序。点击窗口,右上角的创建任务。

任务名称:夜间关机。关机操作需要权限,所以务必选中"使用最高权限运行"。
切换到"触发器"选项卡,点击"新建…"。
设定一个你觉得合适的每天关机时刻,例图是每天零点十分三十秒。设置为"每天",然后确定。
切换到"操作"选项卡,点"新建…"。程序或脚本 输入关机命令 shutdown,参数后面输入 /S。如果你想停止当时运行的一切程序,在 /S 后面加上/F。
切换到条件选项卡,如图设置只有在电脑空闲时才执行任务。这样避免你正在操作电脑时,电脑强制关机。
切换到设置选项卡,如图设置。如果到关机时间仍在使用电脑,计划任务会在 30 分钟后再次试图关机,如果电脑到时候仍然不空闲,计划任务再等30分钟,如此类推。
好了,现在二狗可以放心的睡觉,不用半夜爬起来看看电脑关没关了。

Alan Young - Google+ Account Susspended

https://plus.google.com/u/0/107033384194871286632/posts

Oct. 31 I changed name to Hykloud Li on my Google+ profile page:



Contacted Google with the contact us link in "Submit this name for review?" page:






Oct. 26 I got this message on my Google+ profile page:



Your profile is suspended and being reviewed

Your profile was flagged for violating the Google+ Community Standards or Names Policy and is currently under review. Reviews are usually completed within a few days.

During this time, you won't be able to make full use of Google services that require an active profile, such as Google+, Buzz, Reader, and Picasa. This will not prevent you from using other Google services, like Gmail.

We're sorry for the inconvenience.

We understand that Google+ may not be for everyone at this time. We'd be sad to see you go, but if you do choose to leave, make a copy of your Google+ data first. Then, click here to disable Google+.

Oct. 21, I got an email from Google+ Team:
I immediately changed name from Notebook L. to Alan Young

Hello,

After reviewing your profile, it appears that the name you entered does not comply with the Google+ Names Policy. Please log in to Google+ and visit your profile to learn more and take action.

The Names Policy requires that you use the name you are commonly referred to in real life in your profile. Nicknames, previous names, and so on should be entered in the Other Names section of the profile. Profiles are currently limited to individuals; we will be launching profiles for businesses and other entities later this year.

If you do not edit your name to comply with our Names policy or appeal with additional information within four days of receiving this message, your profile will be suspended. While suspended, you will not be able to make full use of Google services that require an active profile, such as Google+, Buzz, Reader and Picasa. This will not prevent you from using other Google services, like Gmail.

The Google+ team.

Wednesday, October 19, 2011

Google+ To Support Google Apps in Next Few Days

http://mashable.com/2011/10/19/google-plus-google-apps/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Mashable+%28Mashable%29&utm_content=Google+Feedfetcher


Google has announced that Google+ will support Google Apps accounts within the next few days.
Google SVP of social Vic Gundotra said Google Apps support was coming "imminently" during a Q&A at the Web 2.0 Summit in San Francisco. Gundotra made it clear that "imminently" meant within the next few days.
The reason Google didn't launch Google Apps support during the original release of Google+ was because the company thought "it would have more time." Google+ beat their expectations, though, and has forced them to scramble on what is Google+'s most-requested features.
Google also announced that Google+ will soon support pseudonyms, though nobody should expect that to roll out in the next few days.

Featured Post

Windows和Ubuntu双系统完全独立的安装方法

http://www.ubuntuhome.com/windows-and-ubuntu-install.html  | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...