Tampilkan postingan dengan label Open Source. Tampilkan semua postingan
Tampilkan postingan dengan label Open Source. Tampilkan semua postingan

Edit DHCP to Static IP Address Ubuntu Server

If the Ubuntu Server installer has set your server to use DHCP, you will want to change it to a static IP address so that people can actually use it.
Changing this setting without a GUI will require some text editing, but that’s classic linux, right?
Let’s open up the /etc/network/interfaces file. I’m going to use vi, but you can choose a different editor
sudo vi /etc/network/interfaces
For the primary interface, which is usually eth0, you will see these lines:
auto eth0
iface eth0 inet dhcp
As you can see, it’s using DHCP right now. We are going to change dhcp to static, and then there are a number of options that should be added below it. Obviously you’d customize this to your network.
auto eth0
iface eth0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
Now we’ll need to add in the DNS settings by editing the resolv.conf file:
sudo vi /etc/resolv.conf
On the line ‘name server xxx.xxx.xxx.xxx’ replace the x with the IP of your name server. (You can do ifconfig /all to find out what they are)
You need to also remove the dhcp client for this to stick (thanks to Peter for noticing). You might need to remove dhcp-client3 instead.
sudo apt-get remove dhcp-client
Now we’ll just need to restart the networking components:
sudo /etc/init.d/networking restart
Ping www.google.com. If you get a response, name resolution is working(unless of course if google is in your hosts file).
Really pretty simple.


10 Free Chart Scripts

This week I’ve been working on a project that required data to be shown visually. I needed a Chart Script that was attractive yet gets the data across. The Charts scripts below are built using JavaScript, Flash, Silverlight, and Java.
  • Flot – Flot is a pure Javascript plotting library for jQuery. The focus is on easy usage , attractive plots and interactive features. With Flot you can interact with the data, look at specific data by zooming in, plot a time series, and other various options.

  • Open Flash Chart – Open Flash Chart is a Flash charting component. It is fairly easy to setup and has classes written in PHP, Perl, Python, Java, Ruby on Rails, and .Net to connect to the Chart. You can create some really nice looking Bar Charts, Pie Charts, Area Charts and etc…
  • AmCharts – AmCharts are animated interactive flash charts. The charts include Pie Charts, Line Charts, Scatter/Bubble Charts, Bar/Column Charts, and even a stock chart. AmCharts can extract data from simple CSV or XML files, or they can read dynamic data generated with PHP, .NET, Java, Ruby on Rails, Perl and ColdFusion. All the charts are free but they have a link to AmCharts on the upper left.
  • Emprise JavaScript Charts – Emprise JavaScript Charts is a 100% Pure JavaScript Charting Solution that requires no JavaScript frameworks. Emprise JavaScript Charts include Line, Area, Scatter, Pie, Bar charts with zooming, scaling and scrolling ability. Tested and works with all major browsers.
  • PlotKit – PlotKit is a Chart and Graph Plotting Library for Javascript. PlotKit works with MochiKit javascript library. It has support for HTML Canvas and also SVG via Adobe SVG Viewer and native browser support. PlotKit also has great documentation.
  • Flotr – Flotr is a javascript plotting library based on the Prototype Framework version 1.6.0.2. Flotr lets you create graphs in modern browsers with features like legend support, negative value support, mouse tracking, selection support, zoom support, event hooks, CSS styling support and much more.
  • PHP/SWF Charts – PHP/SWF Charts is simple yet powerful tool to create attractive web charts and graphs from dynamic data. You use PHP to gather the data and put it into flash. It supports many charts types, Line, Column, Stacked column, Floating column, 3D column, Stacked 3D column, Parallel 3D column, Pie, 3D Pie, Bar, Stacked bar, Floating bar, Area, Stacked area, Candlestick, Scatter, Polar, Mixed, Composite and Joined. These Charts have some great features like Animated transitions, Printable charts, and more.
  • Visifire – Visifire (Powered by Silverlight) is a set of open source data visualization components. With Visifire you can create animated Silverlight Charts with ASP, ASP.Net, PHP, JSP, ColdFusion, Ruby on Rails or just simple HTML.
  • FusionCharts – FusionCharts is a cross-browser and cross-platform flash charting component that can be used with ASP.NET, ASP, PHP, JSP, ColdFusion, Ruby on Rails, simple HTML pages or even PowerPoint Presentations. All you need to know is the language you’re programming in.
  • JFreeChart – JFreeChart is an open source Java chart library that makes it easy for developers to display quality charts in their applications. The JFreeChart project was founded seven years ago, in February 2000, by David Gilbert and is used by approximately 40,000 to 50,000 developers. JFreeChart supports many different output types that includes JPEG, GIF, PDF, EPS and SVG. This is a great resource for Java developers.
If you know of any other Charting Scripts please post below.


8 Best Open Source Shopping Carts

Hey Everyone, On Sunday I was contacted by a client and they said the needed a shopping cart up by Monday. Since they needed this cart up so fast I went to the easiest solution I knew, Open Source Shopping Carts. I browsed through tons of shopping carts compatible with the best ecommerce hosting and put together a list of only the best carts.  The list is below.
  • is robust, professional grade e-Commerce shopping cart that you can download, install, and use for free. In the back end, you will use a full featured back end to manage your inventory, orders, shipping, and customers in real time. Your customer’s payments are sent directly to your commercial bank account using the latest security technology. You can even add your own modules to the shopping cart.

  • is an open source PHP based online shopping cart system. OpenCart is easy to use and is SEO optimized with a very nice interface. A great feature of OpenCart is that customers can write their own reviews of the products.

  • is a professional open-source e-Commerce solution offering unprecedented flexibility and control. Magento is awesome, I would never believe it is an open-source project. It features clean urls and SEO from the start. Everything is designed in a clean and simple way. Magento also features: Unlimited flexibility, Completely Scalable Architecture, Professional and Community Support, and Smooth Integration with 3rd party apps.

  • is very popular shopping cart. CubeCart V3 is free, with the exception that you leave their copyright notice in your footer. CubeCart has a large amount of payment gateways and shipping gateways. Their support forums are lively and many people contribute plugins to the cart. To use CubeCart V4 you must pay but it has many features that V3 doesn’t have.

  • is another very popular online shopping cart, written in Perl/MySQL. It features a css manager so you can edit the look of your cart online. AgoraCart also features unlimited product options, up to 4 different tax zones at the same time, tons of shipping and payment gateways/options. The setup options range from a simple template based store to the integration of a complex visual design and support for program modification.

  • is a free, user friendly, open source shopping cart. Zen Cart focuses on the merchants and shoppers instead of the developers. Zen Cart also supports multiple payment and shipping options, quantity discounts and coupons. Also Zen Cart is very easy to install.

  • is an online shopping cart that offers a wide range of features that allows online stores to be setup fairly quickly. osCommerce is backed by a great and active community. It also supports multiple currencies, allows customers to print invoices from the order screen, and has an easy database backup system.

  • is a powerful, free PHP/MySQL shopping cart system that is easy to install and customize.  The Cart is free but it does have copyright notices that you can pay to get rid of.  StoreSprite has many features including automatic tax calculation, automatic delivery cost calculations, customer ratings and reviews and featured products.


8 Popular Open Source Forums

This week I am working on a project for a client and they requested a forum on their website. Being that I didn’t want my client to have to pay for a forum software. I found quite a few popular Open Source Forum software alternatives. The list below is a collection of 8 popular Open Source Forum software  that can run on any good web hosting.

  • – phpBB is one of the most popular forum softwares. With phpBB you can customize with mods and you can stylize your forum. For a fully Modded phpBB forum with about 500 different mods that all have been fully tested click here.

  • – Vanilla is a lightweight open source forum that was developed by Mark O’Sullivan using PHP and MySQL. Vanilla comes loaded with extensions, and you can customize the forum with your own add-ons.

  • – YetAnotherForum.NET is a Open Source forum or bulletin board for web sites running ASP.NET. YetAnotherForum.NET is fully coded in C# ASP.Net and uses Microsoft SQL Server. It comes with all the standard forum features and even WYSIWYG editors.

  • – YaBB is an Open Source forum system (bulletin board, message board) written in Perl. This system is the first and most popular open-source perl forum software and it runs very fast.

  • – IceBB is an open-source forum solution powered by PHP and MySQL. IceBB is written with the prototype and scriptaculous frameworks and the code output is very clean. IceBB has mostly all the same features as some of the paid forums but it even has an RSS feed.

  • – WP-Forum is a simple discussion forum plugin for WordPress. It has three themes that you can choose from and is a simple solution if you have a WordPress powered site.

  • – miniBB is an open source message board script written in PHP. miniBB is a lightweight and compact alternative to phpBB. With miniBB you can customize the software with add-ons and it is Search Engine Optimized.

  • – SMF is a free professional grade forum software that actually isn’t open source. SMF has loads of features with a great community and tons of free modifications.
If you know of any more Open Source Forums then please comment below. Thanks!!!


Reset Windows 7 Password With Ubuntu

Sometimes you forget your Windows password, or maybe your workmate leave and you replace him and you cannot access his ex-computer because it have a password. And you cannot guess his/her password to login. And you cannot reinstall the Windows because it have lot if important data and software that need to be installed and tweak. Then reinstall the Windows is not the answer.

If you had this problem then don’t worry, you still can reset Windows 7 password using Ubuntu. Whether boot it from USB or using Ubuntu live CD. To reset Windows 7 using Ubuntu you can use chntpw.

So to install chnptw on Ubuntu, follow the steps below:
1. Open your terminal and add universe repository, by editing sources.list:


vim /etc/apt/sources.list and add or enable this line:

deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse

2. Update your repository list:

apt-get update

3. Install chnptw:

apt-get chnptw

4. chnptw installed.

Note this chnptw only work in OS 32 bit version. for 64 bit version you need to download from debian source here and pick 64 bit version.

chnptw usage:
1. Get your hard drive label by using:


fdisk -l 2. Find where you install your Windows 7, then go to that hard drive and windows installation folder

cd /media//WINDOWS/system32/config/  

3. Use chnptw to reset password:

chntpw SAM  

4. It will show you User details and command to reset password:

Choose “1″ to clear the default user password and press “y” to confirm.

5. You are done. Back to boot to your Windows and there is no password anymore.

You can set the password from the Windows again if you want.


Note:

to reset password for user other than administrator or default user use this command:
 


Technology Stack Drupal 7

Drupal’s design goals include both being able to run well on inexpensive web hosting accounts and being able to scale up to massive distributed sites. The former goal means using the most popular technology, and the latter means careful, tight coding. Drupal’s technology stack is illustrated in Figure 1-1.

Figure 1-1. Drupal’s technology stack
The operating system is at such a low level in the stack that Drupal does not care much about it.
Drupal runs successfully on any operating system that supports PHP.

The web server most widely used with Drupal is Apache, though other web servers (including Microsoft IIS) may be used. Because of Drupal’s long history with Apache, Drupal ships with .htaccess files that secure the Drupal installation. Clean URLs—that is, those devoid of question marks,ampersands, or other strange characters—are achieved using Apache’s mod_rewrite component. 

This is particularly important because when migrating from another content management system or from static files, the URLs of the content need not change, and unchanging URIs are cool, according to Tim Berners-Lee (http://www.w3.org/Provider/Style/URI). Clean URLs are available on other web servers by using the web server’s URL rewriting capabilities.

Drupal interfaces with the next layer of the stack (the database) through a lightweight database abstraction layer, which was totally rewritten in Drupal 7. The database interface provides an API based on PHP data object (or PDO) and allows Drupal to support any database that supports PHP.  The most popular databases include MySQL and PostgreSQL. In Drupal 7, SQLite is now also supported. 

Drupal is written in PHP. All core Drupal code adheres to strict coding standards (http://drupal.org/nodes/318) and undergoes thorough review through the open source process. For Drupal, the easy learning curve of PHP means that there is a low barrier to entry for contributors who are just starting out, and the review process ensures this ease of access comes without sacrificing quality in the end product. And the feedback beginners receive from the community helps to improve their skills. For Drupal 7, the required version of PHP is 5.2.


Ubuntu 11.10 codenamed Oneiric Ocelot

Ubuntu founder Mark Shuttleworth has announced that version 11.10 of the popular Linux distribution will be codenamed Oneiric Ocelot. As per Ubuntu's usual six-month schedule, the release is due to arrive in October of this year.

The word "oneiric" describes a dreamlike state. Shuttleworth says that the name Oneiric Ocelot is intended to represent the innovation process, which he characterizes as a confluence of daydream and discipline.

The Ubuntu developers are currently focused on delivering version 11.04, codenamed Natty Narwhal, which will launch in April. The highly-ambitious 11.04 release will introduce a whole new desktop experience based on the Unity shell. It represents the most significant user interface overhaul in Ubuntu's history.

Unity is shaping up nicely in the latest 11.04 prerelease builds, but there is still lots of room for refinement during subsequent cycles. It's likely that implementing deferred Unity features will be a high priority for Oneiric. There are also sure to be edge case bugs and other issues to address that will be apparent in the user feedback that will come when Natty brings Unity to a much larger audience.


One of the deliverables for Oneiric that Shuttleworth highlights is the Qt-based Unity 2D environment, an alternate implementation of Unity that doesn't require hardware-accelerated graphics. Unity 2D will be a fallback solution for users who don't have suitable video hardware or driver support to run the conventional OpenGL-enabled Unity environment. He also points out that the inclusion of Qt will open up opportunities for third-party developers.

"We'll need to keep up the pace of innovation on all fronts post-Natty. Our desktop has come together beautifully, and in the next release we’ll complete the cycle of making it available to all users, with a 2D experience to complement the OpenGL based Unity for those with the hardware to handle it," he wrote. "The introduction of Qt means we'll be giving developers even more options for how they can produce interfaces that are both functional and aesthetically delightful."

Canonical is holding its bi-annual Ubuntu Developer Summit event in Budapest this May to start the planning process for Oneiric. Although I've participated as a developer in the last several Ubuntu Developer Summits, I won't be able to attend this one because Google's developer-centric Google I/O conference is the same week. The scheduling conflict poses a tough choice for third-party application developers who are interested in both Ubuntu and Android.

The average ocelot is no match for a hungry lion, but Ubuntu's little roar is still pretty hard to ignore. Shuttleworth says that Ubuntu is "now shipping on millions of systems from multiple providers every year."


Chrome 10 brings Flash sandboxing and new settings UI

Google has issued a new stable release of the Chrome Web browser and is rolling it out to users. The new version introduces some noteworthy JavaScript performance enhancements, new plug-in security features, improved support for synchronization, and a new user interface for managing the browser's settings.

Plug-ins have historically been a major attack vector for Internet malware—particularly Adobe's Flash and Acrobat plug-ins, which are notoriously insecure. Rather than seriously addressing the issue, Adobe has capitalized on the poor security of its own software by bundling unwanted McAfee crapware in Flash and Acrobat updates.

Chrome 10 introduces support for Flash sandboxing, which is now enabled by default on Windows Vista and Windows 7. The feature, which attempts to limit Flash's access to sensitive system functionality, is one of several key plug-in security features that Google has delivered since it started collaborating with Adobe almost a year ago. Chrome 10 has also gained support for selective plug-in blocking and automatically blocking out-of-date plug-ins.

A new settings panel introduced in Chrome 10 offers a big usability boost. Instead of displaying its settings in a native-looking dialog window, the browser now shows its settings in a regular tab with a more web-like presentation. It's a cleaner and more intuitive layout that is also consistent across operating systems.

Google has continued to advance Chrome's sophisticated JavaScript engine. The latest optimizations in Chrome 10—which incorporate Google's "crankshaft" technology—reportedly produce a 66 percent improvement in the browser's score on Google's own benchmark. This performance increase is largely confined to complex JavaScript use cases where there is a lot of repetitious activity under the hood.

Users can download Chrome 10 directly from Google's website. The new version is already being rolled out to existing users through Chrome's update system.