tag:blogger.com,1999:blog-20103638897495081292024-03-06T06:22:26.027+07:00YOYOK Blogubuntu health linux dewalinux openssh bcompiler installation clamav server networking management security ngenness lucid php mysqlUnknownnoreply@blogger.comBlogger45125tag:blogger.com,1999:blog-2010363889749508129.post-6835223906782838222016-10-03T10:57:00.003+07:002016-10-03T11:05:16.973+07:00Bootable Windows with Ubuntu<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTme6y8raleeS4M-AqpwHz-_z7HP_JYEmAQMSNDU7aFnBbUirvXB1rMUfzFwBP7yKNN_Fj08z3cFnb5xbE-7N0y9knrQot2GQ7HvezaSTBFzAA1kRHTWyL1SWLDJGIuDW1BSP9QgL2zA4/s1600/winusb_step5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTme6y8raleeS4M-AqpwHz-_z7HP_JYEmAQMSNDU7aFnBbUirvXB1rMUfzFwBP7yKNN_Fj08z3cFnb5xbE-7N0y9knrQot2GQ7HvezaSTBFzAA1kRHTWyL1SWLDJGIuDW1BSP9QgL2zA4/s320/winusb_step5.png" width="252" height="320" /></a></div>Create bootable windows with <a href="www.ubuntu.com" target="_blank">ubuntu</a> is an alternative if you do not have an cd-rom to install laptop. I apply this experience when getting a new <a href="http://ngenness.blogspot.co.id/2013/01/asus-x201e-ubuntu-1204-function-keys.html" target="_blank">asus laptop</a> and want to install Windows using a usb flash because it does not have an cd-rom. It is just like using unetbootin in linux distro. The following sequence of creating a bootable flash <a href="https://www.microsoft.com/en-us/windows" target="_blank">windows</a> using ubuntu:
<span class="fullpost">
1. Open a terminal and type the command :
a. <b>sudo add-apt-repository ppa:colingille/freshlight</b>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV13nHaTbvvBqsSErXrdrOrp8FlXQiQRcvZanT8lE8MD7wHZY7qOUM-MuPOBrZKtzoTGAA3bQ1MQWw3K2Cmj_DVL4YeMwZmZbeg8Jitr8jP6JosyzyJdMzeVPu0xUiC41kSOo1Xg0N6K0/s1600/winusb_step1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV13nHaTbvvBqsSErXrdrOrp8FlXQiQRcvZanT8lE8MD7wHZY7qOUM-MuPOBrZKtzoTGAA3bQ1MQWw3K2Cmj_DVL4YeMwZmZbeg8Jitr8jP6JosyzyJdMzeVPu0xUiC41kSOo1Xg0N6K0/s320/winusb_step1.png" width="320" height="212" /></a></div>
b. <b>sudo apt-get update</b>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf-1gvI4UVvceHvewuA0YruVsisDXgNfgZpBah9goPDoefTKf8PpRQjuLGvLdSkXI5wIY7mBhaRPFMWaic_YDPYH8TiUfd-QFw27edjnIrd2jo0otd5VyGe63nC4cz0yGUehHRc1L5gME/s1600/winusb_step2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf-1gvI4UVvceHvewuA0YruVsisDXgNfgZpBah9goPDoefTKf8PpRQjuLGvLdSkXI5wIY7mBhaRPFMWaic_YDPYH8TiUfd-QFw27edjnIrd2jo0otd5VyGe63nC4cz0yGUehHRc1L5gME/s320/winusb_step2.png" width="320" height="229" /></a></div>
c. <b>sudo apt-get install winusb</b>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsA4psi6cCybzykhzswupCv688vSGscul1K46_MIBRnJftbh2ATQ7uA8duAGcNMTgia8-xO20kdq0LXGEXqyxqzZ20j5lq5PhAVwsdyrVZVbLJmBUeSPxWDGFVXg7pCZ5NDoCFH_mF7UU/s1600/winusb_step3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsA4psi6cCybzykhzswupCv688vSGscul1K46_MIBRnJftbh2ATQ7uA8duAGcNMTgia8-xO20kdq0LXGEXqyxqzZ20j5lq5PhAVwsdyrVZVbLJmBUeSPxWDGFVXg7pCZ5NDoCFH_mF7UU/s320/winusb_step3.png" width="320" height="232" /></a></div>
2. open winusb
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6MfB4fqxwzkpE9cHs60_gHvdwSlnJXObmCZcWS4i6-SERrTAlEgIdCjGkOs5C9DEwzsfv2hj7I6I7rulI4oTHfGwdIfeJegYJue09x-S1nglo3OjW4wAwQi42LDRYjb9jgo3vZh7moi4/s1600/winusb_step4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6MfB4fqxwzkpE9cHs60_gHvdwSlnJXObmCZcWS4i6-SERrTAlEgIdCjGkOs5C9DEwzsfv2hj7I6I7rulI4oTHfGwdIfeJegYJue09x-S1nglo3OjW4wAwQi42LDRYjb9jgo3vZh7moi4/s320/winusb_step4.png" width="320" height="256" /></a></div>
3. Prepare iso <a href="https://www.microsoft.com/en-us/windows" target="_blank">windows</a> and flash that will be used for bootable. after opening WinUSB, click from a disk image (.iso) and navigate to the storage directory iso windows. Make sure the flash has been detected on your computer.
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8mEBLvtsI9xb8_3eImu8X16pWpkcXM2lBxmfELSrXFsXVkb86e3e7_OcjsQXEEUB_HE2-pBbxTSNqMWY7D_axi_JjZw2NlX2vqPVAxHeW8E-4vNFCdnnJfiqLedcOKlBR5CcTSz8vpw/s1600/winusb_step5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8mEBLvtsI9xb8_3eImu8X16pWpkcXM2lBxmfELSrXFsXVkb86e3e7_OcjsQXEEUB_HE2-pBbxTSNqMWY7D_axi_JjZw2NlX2vqPVAxHeW8E-4vNFCdnnJfiqLedcOKlBR5CcTSz8vpw/s320/winusb_step5.png" width="252" height="320" /></a></div>
4. WinUSB process will use some time
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBVhHGWNae8BOwMs8bVEF2WpapN6N4tISPVS8j6SovbN6XC407iBLPucGZEAT1Oa3zCpr9waOaQ1yvzQPcJfLJVzYRgidHvl7diH8U_rHQIz6BSryyPScgFh_To0xX5_nHTKdwQNPgvKQ/s1600/winusb_step6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBVhHGWNae8BOwMs8bVEF2WpapN6N4tISPVS8j6SovbN6XC407iBLPucGZEAT1Oa3zCpr9waOaQ1yvzQPcJfLJVzYRgidHvl7diH8U_rHQIz6BSryyPScgFh_To0xX5_nHTKdwQNPgvKQ/s320/winusb_step6.png" width="237" height="320" /></a></div>
5. If completed then we will have a bootable flash drive that is ready for install windows in laptops that do not have a cd-rom.
</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-21731582807397895972016-09-14T10:27:00.001+07:002016-09-14T10:27:09.033+07:00Virtual Statistics Laboratory<div style="text-align: justify;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiePLy144yMYToYefVs-i0TCwWAHH28bV7Olo6G3C0W-9IL64CRWN2KmCRo-vUyz-aJsPBEIoqnFi8rygqE57SoUuF3WNXMUxxcWuJKU5DApkVbrpbSFDqlFPeo5rmxKSk2yVBtLsdDBGk/s1600/link_vsl_math.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="119" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiePLy144yMYToYefVs-i0TCwWAHH28bV7Olo6G3C0W-9IL64CRWN2KmCRo-vUyz-aJsPBEIoqnFi8rygqE57SoUuF3WNXMUxxcWuJKU5DApkVbrpbSFDqlFPeo5rmxKSk2yVBtLsdDBGk/s320/link_vsl_math.png" width="320" /></a>Starting from a less popular software-based non-commercial one R among practitioners of statistics, <a href="http://statslab-rshiny.fmipa.unej.ac.id/" target="_blank">Statistics Virtual Laboratory</a> designed with toolkits based <a href="http://shiny.rstudio.com/" target="_blank">R-shiny</a>, to create a web-GUI interfaces. With the aim of using visualization R without having to master the language <a href="http://www.r-project.org/" target="_blank">R</a>, because communication with the user can be done through a web friendly.
Professor of Statistics Prof. I Made Tirta create web content form of a tutorial / handouts / lecture notes electronically simulated illustrations presented directly by R. document that is therein, also includes mathematical notation correctly through the ability <a href="http://www.latex-project.org/" target="_blank">LaTeX</a> on <a href="http://www.mathjax.org/" target="_blank">MathJax</a>. By using server-based <a href="http://www.ubuntu.com/server" target="_blank">Ubuntu Server</a> and apply the r-shiny therein made interactive web makes it not only learn but also to give it a try.
<span class="fullpost">
As I wrote earlier about <a href="http://ngenness.blogspot.co.id/2013/09/shiny-r-with-ubuntu.html" target="_blank">building R-Shiny local </a>computer, <a href="http://statslab-rshiny.fmipa.unej.ac.id/" target="_blank">Virtual Laboratory Statistics</a> is a continuation and development of the HTML for ease of application. Added also the application of Latex and MathJax through the Java language. Visitors can learn about a wide range of simulation are: Probability Freq, Mean Distributions and Normal Distribution. Demo also many show started Basic Statistics, Simple Regression, Cluster Analysis to RGraphics.
</span><br />
<div class="separator" style="clear: both; text-align: center;">
<span class="fullpost"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS9UrtwytpV_b2SgnQ7gI_nQT40X0ciZ4XmaVliIFJe6Atcf_kLVw0F6HE3KdAxeLKdZVGYnZYzfnLmCTOipk0Qh5TwKapyvjccvE64du2wKNlDeYn2K8NTijz5tsO3D_Dg8THA9sd2PI/s1600/virtual_laboratory.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS9UrtwytpV_b2SgnQ7gI_nQT40X0ciZ4XmaVliIFJe6Atcf_kLVw0F6HE3KdAxeLKdZVGYnZYzfnLmCTOipk0Qh5TwKapyvjccvE64du2wKNlDeYn2K8NTijz5tsO3D_Dg8THA9sd2PI/s320/virtual_laboratory.png" width="312" /></a></span></div>
<span class="fullpost">Statistics Virtual Laboratory glance similar to R-cloud that has been there, but the advantage is visitors no longer need to learn to use the language R. All the facilities have been provided and have been programmed in it are also still using the R language is always complete with the package - a package terupdatenya , As we used to know and use R-Commander, this is more interactive and web-based major has. Where and whenever can be used easily and learning becomes simple.
</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-92002653022399074712014-12-30T09:24:00.003+07:002014-12-30T09:34:09.525+07:00Joomla jos_session problem<div style="text-align: justify;">
The use of CMS in the web world are now widely used. Ease of managing the content of the web and many features provided, greatly helps web designer to create beautiful view of the web. Likewise with me were very keen to use the CMS. In case this is <a href="http://joomla.org/" target="_blank">Joomla</a> is arguably the most popular of several existing CMS. Some time ago there was a bit of a problem arising from the web that I <a href="http://matematika.fmipa.unej.ac.id/" target="_blank">manage</a>. Error message is like this:
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2K9jLFozFB45rq6DNaZFJ3acoVhLNidRPYVfw9DEdoE9TMOY2qRRzyBC4o_N3u76UGQf1MejVm4jk6ErUlz2MmmOVXQ8M8gRcSnbYpzwvlOaydkfYEAjpq7axUP59VAmJVn7TC6_PVI4/s1600/jos_session00.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2K9jLFozFB45rq6DNaZFJ3acoVhLNidRPYVfw9DEdoE9TMOY2qRRzyBC4o_N3u76UGQf1MejVm4jk6ErUlz2MmmOVXQ8M8gRcSnbYpzwvlOaydkfYEAjpq7axUP59VAmJVn7TC6_PVI4/s320/jos_session00.jpg" /></a></div>
<div style="text-align: justify;">
This is because jos_session is used to <a href="http://ngenness.blogspot.com/">manage</a> user sessions, so it is written to frequently. The most common cause of a corrupted table is a failed write. When the server runs out of resources, it is usually in the middle of a write, This the corrupt jos_session table.
</div>
<span class="fullpost">
<div style="text-align: justify;">
After <a href="http://www.google.com/" target="_blank">looking<span style="color: black;"> </span></a>at several forums references and do some experiments there is a solution that might help to resolve the problem of the session.
The first solution is to delete and re-create jos_session table using <a href="http://www.mysql.com/" target="_blank">SQL</a> commands:
</span></div>
<blockquote class="tr_bq">
<span class="fullpost">DROP TABLE IF EXISTS `jos_session`;
<br />CREATE TABLE IF NOT EXISTS `jos_session` (
`username` varchar (150) default '',
`time` varchar (14) default '',
`session_id` varchar (200) NOT NULL default '0',
`guest` tinyint (4) default '1',
userid` `int (11) default '0',
`usertype` varchar (50) default '',
`gid` tinyint (3) unsigned NOT NULL default '0',
`client_id` tinyint (3) unsigned NOT NULL default '0',
`data` LONGTEXT,
PRIMARY KEY (`session_id` (64)),
KEY `whosonline` (guest``, `usertype`),
KEY `userid` (` userid`),
KEY `time` (` time`)
) ENGINE = MyISAM DEFAULT charset = utf8;</span></blockquote>
<div style="text-align: justify;">
<span class="fullpost">The second solution to fix jos_session table using <a href="http://www.mysql.com/" target="_blank">phpmyadmin</a>:
Find Joomla database in phpmyadmin then find table jos_session, repair that table
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span class="fullpost"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNrVcuj89OhcY-Q12t0gU1S4muV_NKy9o-mPqsIgHu5qkB62GmJVvhFT_Yyy66wSfu3lCP5noOS3GAHFsfqI5N8_6cEXb0BugpN7KSBqgswuzaLUWRYRwGC2g3-RajHglVUQXrfrZchNw/s1600/a_repair_phpmyadmin.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNrVcuj89OhcY-Q12t0gU1S4muV_NKy9o-mPqsIgHu5qkB62GmJVvhFT_Yyy66wSfu3lCP5noOS3GAHFsfqI5N8_6cEXb0BugpN7KSBqgswuzaLUWRYRwGC2g3-RajHglVUQXrfrZchNw/s320/a_repair_phpmyadmin.jpeg" /></a></span></div>
<div style="text-align: justify;">
<span class="fullpost">
The third solution by modifying existing files in the directory joomla itself. For this section there are some files that are modified to overcome the problem session:
</span></div>
<span class="fullpost">1. Edit the file libraries / joomla / database / table / session.php
</span><br />
<blockquote class="tr_bq">
<i><span class="fullpost">function insert ($ sessionId, $ ClientID) <br />{
$ url = 'http: //'.$_SERVER [' SERVER_NAME ']. $ _ SERVER [' REQUEST_URI '];
<br />$ this-> session_id = $ sessionId;
$ this-> client_id = $ ClientID;
$ this-> time = time ();
<br />
if ($ this-> guest! = 1 || stristr ($ url, '/ administrator'))
$ ret = $ this -> _ db-> insertObject ($ this -> _ tbl, $ this, 'session_id');
<br />
if (! $ ret && $ this-> guest! = 1) {
$ this-> setError (strtolower (get_class ($ this)). "::". JText :: _ ('store failed'). "<br />". $ this -> _ db-> stderr ());
return false;
}
else {
return true;
}
}</span></i></blockquote>
<span class="fullpost"> 2. Edit the file /index.php
</span><br />
<blockquote class="tr_bq">
<i><span class="fullpost">/ **
* CREATE THE APPLICATION
*
* NOTE:
* /
$ mainframe = & JFactory :: getApplication ('site');</span></i></blockquote>
<span class="fullpost"> Change to: </span><br />
<blockquote class="tr_bq">
<i><span class="fullpost">$ mainframe = & JFactory :: getApplication ('site', array ('session' => false));</span></i></blockquote>
<div style="text-align: justify;">
<span class="fullpost">
The next solution is to change the configuration in Joomla. Joomla by default tracks jos_session session data in the table, as <a href="http://ngenness.blogspot.com/">I see</a> you've figured out. However, you can disable this by going Easily to your admin panel - <i>Global Configuration - System - Session Settings</i> and change the session handler from "<i>database</i>" to "<i>None</i>".
</span></div>
<span class="fullpost"><br />And the last is the patience and prayer to overcome the problem.
</span>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-2010363889749508129.post-37270473496331655162014-09-04T09:21:00.006+07:002014-12-30T09:35:03.335+07:00MySQL: Too Many Connection Error<div style="text-align: justify;">
It has been very much used <a href="http://mysql.com/" target="_blank">MySQL</a> since introduced around the year 2005, and this leads to a real DBMS Engine which allows the direction of the Enterprise. More economical than the use of another engine such as <a href="http://www.microsoft.com/en-us/server-cloud/products/sql-server/" target="_blank">MS SQL</a> or <a href="http://oracle.com/" target="_blank">Oracle</a>. But there are to watch out for with the economic value, is the issue of too many connection, many servers that have a very high visitor is having trouble. <span class="" id="result_box" lang="en" tabindex="-1"><span class="hps">And</span> <span class="hps">I</span> <span class="hps">feel it when</span> <span class="hps">going on</span> <span class="hps">a website</span> <span class="hps">that I have ever</span> <span class="hps">manage</span> <span class="hps">at <a href="http://www.fmipa.unej.ac.id/" target="_blank">FMIPA</a> <a href="http://www.unej.ac.id/" target="_blank">Universitas Jember</a></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ4v79_NEgg6OsmhU-18qMfVeGrtZb4_W1JT_e-3G4E4Pd0AhA6NpEeQs2LrEZ8cuYdrvS19jVE1dVPsXMlKTsPCxmHiMq3s85LjyNAnmZ5-aYxy8Md8TN5NfLSdxf84u747h15dEScMM/s1600/mysql5.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ4v79_NEgg6OsmhU-18qMfVeGrtZb4_W1JT_e-3G4E4Pd0AhA6NpEeQs2LrEZ8cuYdrvS19jVE1dVPsXMlKTsPCxmHiMq3s85LjyNAnmZ5-aYxy8Md8TN5NfLSdxf84u747h15dEScMM/s320/mysql5.jpeg" /></a></div>
Too Many Connection occurs because of some problems like this:
too many connections that occur simultaneously, often experienced by these sites that weve crowded.
packet flooding defect occurs to the port that <a href="http://mysql.com/" target="_blank">MySQL</a> is used, this can be tested by doing a telnet to 3306
too many connections are already obsolete, but not in the release or in-free<br />
<span class="fullpost">For the first cause, which occurs because the force is due to conditions that occur simultaneous connections. To solve this problem is to tweak the mysql configuration file (my.ini or my.cnf) and increase the value of the max_connections variable. Default variable values 100 For websites that crowded, maybe less default settings. Or it could be another way to dispose of or give a # at the max_connections variable. </span><br />
<br />
<span class="fullpost">For the second cause, there are many defects in the pool <a href="http://mysql.com/" target="_blank">MySQL</a> package, how to fix this is to do mysqladmin flush using the tools. make a batch-script that contents mysqladmin flush-hosts then attach a handler in the web server or on a desktop program (adjust with the environment) if you find an error in MySQL engines with error code SQLSTATE = 08S01 (for server-related error bad packet) or 46000 (to a server error relating to that connection) </span><br />
<br />
<span class="fullpost">For the third cause, too many connections that are already obsolete, but not in the release or in the free, this is a coding issue. Code that is not good, it will leave a lot of junk in the cache server. For the coder, may know how to connect to the DBMS, whether by way of persistent-connection or non-persistent.
What is gained if you have too many connection, he replied restart the server. But if we understand the 3 terms above may be a bit inevitable. I HOPE
</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-81258570078355437242014-06-13T11:16:00.001+07:002014-06-13T11:25:11.489+07:00Internal Error Ubuntu 12.04<div class="separator" style="clear: both; text-align: center;">
</div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi18Is1FD2iEaIep7KXoO3plkiyQJQvvCR_32jaZh0YD3sz6ZPYwoHMwr_oSOjwipFRAgpYAObF3y3DpAzw5EDYlbiC4Cr8RYJ_GIpv0nwkFTkksFaO5Kuw5ae7HTl-8zcFWBcUc_m8yAA/s320/internal-error.png" height="162" style="margin-left: auto; margin-right: auto;" width="400" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;">internal error message</td></tr>
</tbody></table>
<div style="margin-left: 1em; margin-right: 1em;">
</div>
<br />
In ubuntu discussion this time is about error messages that often appear in the ubuntu desktop. <a href="http://ubuntu.com/" target="_blank">Ubuntu</a> users must have got the message as shown above
<br />
<br />
<br />
<div style="text-align: justify;">
Users do not get a choice but to press the Continue button. This error message is inadvertently displayed in <a href="http://ngenness.blogspot.com/2012/06/ubuntu-lts-12.html" target="_blank">Ubuntu 12.04 LTS</a> with the goal of the developers can find out the bug / problem that can be fixed later
for desktop users as we might a little disturbing because this message will appear any time if there is a bug / problem in ubuntu that we use. <br />
<br />
There is a suggestion that this feature remains enabled, but not one as well to know a simple way to disable this feature.
<span class="fullpost">
<br />1. Open a terminal or console (ctrl + alt + t)
<br />2. Use any editor (gedit, vim, pico, nano) in this case I use vim
sudo vim /etc/default/apport
<br />3. At the line enabled = 0 to disable the content parameters, while 1 to re-activate.
</span><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW7npz4ZjiZ1w2qlpmhX9hbj87wfpDNqyWIeRLUhz66aIG5Glai-GGToRfMcH1okSbTnK7FsscPHYxaTWRDXeflGb_nGeP5KUmYS63nMJAXjrJjwbQ0NhYT_4y4kiLLn9ZuINkRFO-H7g/s1600/apport.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW7npz4ZjiZ1w2qlpmhX9hbj87wfpDNqyWIeRLUhz66aIG5Glai-GGToRfMcH1okSbTnK7FsscPHYxaTWRDXeflGb_nGeP5KUmYS63nMJAXjrJjwbQ0NhYT_4y4kiLLn9ZuINkRFO-H7g/s200/apport.png" height="204" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">vim editor to open apport</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<span class="fullpost"></span></div>
<span class="fullpost">
<br />May be useful for us all
</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-73432008678972491742014-06-04T09:49:00.000+07:002014-06-04T10:16:00.038+07:00Ubuntu 14.04 Upgrade HowTo <div style="text-align: justify;">
14.04 LTS Ubuntu has been released last April 2014. For users of earlier versions of <a href="http://ubuntu.com/" target="_blank">Ubuntu</a> such as 13.10, 13.04 or 12.04 LTS there would be a question of how to upgrade to the latest edition of ubuntu 14.04 LTS?
You can upgrade from a minor or major release of Ubuntu Easily and recommended for all users
There are several steps that must be done to upgrade to Ubuntu 14.04 LTS: <br />
<br /></div>
<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVJL9jFAoEFdZ0KHWaak5xv2gSe36oM4mTcKRpykeYECrwl46ZNqtngAgAV7n8un4R9d38NN1qw8-S4fAkrpz-YY71gVsCb_lNG41x_eyoatYz6KG7LhlR0ytussuPWfK0FqLTO25xDXg/s1600/ubuntu1404.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVJL9jFAoEFdZ0KHWaak5xv2gSe36oM4mTcKRpykeYECrwl46ZNqtngAgAV7n8un4R9d38NN1qw8-S4fAkrpz-YY71gVsCb_lNG41x_eyoatYz6KG7LhlR0ytussuPWfK0FqLTO25xDXg/s1600/ubuntu1404.jpeg" height="200" width="200" /></a></div>
<br />
1. Perform backups of your important data. Can save to another partition on the computer or storage media which you have.
<br />
2. Ensure release of Ubuntu you type the following command in the shell (to simplify the example I give a command shell and as root)
</div>
<span class="fullpost">
<blockquote>
<i>root@yoyok:~# uname -mrs
<br />root@yoyok:~# lsb_release -a</i>
</blockquote>
the result are
<br />
<blockquote>
<i>Linux 3.2.0-51-generic x86_64
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise</i></blockquote>
<br />
<div style="text-align: justify;">
3. How do I upgrade to a newer version of Ubuntu 14.04, from an older Ubuntu?
Type the following command to update package list and install the update-manager-core package if it is not already installed:
</div>
<i></i><br />
<blockquote>
<i>yyp@yoyok:~# sudo apt-get update
</i><br />
<i>yyp@yoyok:~# sudo apt-get install update-manager-core
</i></blockquote>
<i></i>
<br />
<div style="text-align: justify;">
Next, type the following command to upgrade the Ubuntu to the latest release such as LTS 14.04 from the command-line.
</div>
<i></i><br />
<blockquote>
<i>yyp@yoyok:~# sudo do-release-upgrade
</i></blockquote>
<i></i>
<br />
<div style="text-align: justify;">
The do-release-upgrade will launch the upgrade tool. You need to follow the on-screen instructions. </span></div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<span class="fullpost"><br />4. Fixing and forcing upgrade
You may end up getting the following message on screen when you run sudo do-release-upgrade
</div>
<br />
<blockquote>
<i>Checking for a new Ubuntu release
No new release found
</i></blockquote>
To force upgrade pass the -d option to sudo do-release-upgrade command:
<br />
<blockquote>
<i>yyp@yoyok:~# sudo do-release-upgrade -d
</i></blockquote>
5. Reboot the desktop or server
Reboot the system
<br />
<blockquote>
<i>yyp@yoyok:~# sudo reboot</i></blockquote>
Verify, your new settings:
<br />
<blockquote>
<i>root@yoyok:~# lsb_release -a
<br />root@yoyok:~# uname -mrs</i>
</blockquote>
</span>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-88603019244243848382014-05-30T14:35:00.002+07:002014-05-30T14:49:36.438+07:00Ubuntu 14.04 Trusty Tahr, What's new in this LTS<div style="text-align: justify;">
Ubuntu 14.04 LTS Final now there and ready for download. You can download it from the server Indonesia, one of which is in <a href="http://mirror.unej.ac.id/">mirror.unej.ac.id</a> </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
14.04 LTS, LTS means Long Term Support, meaning that the Ubuntu LTS given support or updates for five years. This means that Ubuntu will be updated until 14.04 the next five years. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
To understand more deeply, it is better to download and try to install on your computer. Here are a few of the many advantages compared to previous versions of Ubuntu 14.04.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQFcWB8TXCUbc2zTIv1wZwkmHY7nNH-XK5lOMOo6_-M58EhTPh9Y6BBXEbeoF73lSa9_td7LWNQ5TSsqYs66kugmZEWAbSUvO_CUjBsWr_o3l_vbbWkx10XzRaMzJRmG39vWCMciAVE5Q/s1600/ubuntu1404.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQFcWB8TXCUbc2zTIv1wZwkmHY7nNH-XK5lOMOo6_-M58EhTPh9Y6BBXEbeoF73lSa9_td7LWNQ5TSsqYs66kugmZEWAbSUvO_CUjBsWr_o3l_vbbWkx10XzRaMzJRmG39vWCMciAVE5Q/s1600/ubuntu1404.png" height="179" width="320" /></a></div>
<div style="text-align: justify;">
<br />
It's no secret since the Ubuntu Unity interface wear, they got a lot of criticism and problems. Unity itself becomes an interface defaut Ubuntu since 2011, the previous default Ubuntu is a Gnome interface.
Ubuntu Unity, now much more refined and has better performance and faster. Perhaps there are still some less than perfect, but not too flashy.
<span class="fullpost">
At 14.04 LTS Ubuntu Unity, Compiz plugins already replaced the same decor GTK3 CSS themed window decoration. GTK3 resize has better speed and anti-alias feature in every corner of the corner of the window. Top panel also already be in the right click option that will give you the option for minimize, unmaximize, set the window always on top.
As a whole may not be too different from the previous edition. For systems in which there is a slightly different way of setting APT sources.list, in this edition source.lst been grouped by mirrors to be addressed. As for the disadvantages, there are some applications that are not available in this edition. But as a whole the same flavor and a little different.
</span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-12830753488548946702013-09-17T09:27:00.000+07:002016-09-15T09:30:14.092+07:00Shiny R with Ubuntu <div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB4-OHxBif-JnYe3j0rAsGvwjFm760t7CYL6AccGwocp-9g5IJ9gcRUIXJiFtDCHdT_FQan6Hruxv94bHHM567SmwG12x8V1_azBnSdoLwLrriDKvduhBONYEiBxSmoCjObiEDaxGlOg4/s1600/hello-shiny.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB4-OHxBif-JnYe3j0rAsGvwjFm760t7CYL6AccGwocp-9g5IJ9gcRUIXJiFtDCHdT_FQan6Hruxv94bHHM567SmwG12x8V1_azBnSdoLwLrriDKvduhBONYEiBxSmoCjObiEDaxGlOg4/s320/hello-shiny.png" width="320" /></a></div>
<br />
The first hearing of an application is not shiny like it as a song lyric I have ever heard. Shiny introduced by a professor, he was a friend of mine who is an expert in the field of statistics in particular <a href="http://www.r-project.org/" target="_blank">R</a>.
<br />
<br />
Shiny makes it super simple for R users like you to turn analyses into interactive web applications that anyone can use. Let your users choose input parameters using friendly controls like sliders, drop-downs, and text fields. <br />
<br />
Easily incorporate any number of outputs like plots, tables, and summaries.
No HTML or JavaScript knowledge is necessary. If you have some experience with R, you’re just minutes away from combining the <a href="http://ngenness.blogspot.co.id/2016/09/virtual-statistics-laboratory.html" target="_blank">statistical</a> power of <a href="http://www.r-project.org/" target="_blank">R</a> with the simplicity of a web page. Next is complete list of instructions for installing Shiny Server and its prerequisites on <a href="http://ubuntu.com/" target="_blank">Ubuntu</a>
<span class="fullpost">
</span><br />
<blockquote>
<span class="fullpost"># Install Node.js
<br /><span style="font-size: x-small;"><i>sudo apt-get update
<br />sudo apt-get install software-properties-common python-software-properties python g++ make
<br />sudo add-apt-repository ppa:chris-lea/node.js
<br />sudo apt-get update
<br />sudo apt-get install nodejs</i></span></span></blockquote>
<span class="fullpost">
</span><br />
<blockquote>
<span class="fullpost"># Install R
</span><br />
<span class="fullpost"><span style="font-size: x-small;"><i>sudo add-apt-repository 'deb http://cran.rstudio.com/bin/linux/ubuntu raring/'
<br />sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
<br />sudo apt-get update
<br />sudo apt-get install r-base r-base-dev
</i></span></span><br />
<span class="fullpost"><br /></span>
<span class="fullpost">The same as above, except when installing R this line:
</span><br />
<span class="fullpost"><span style="font-size: x-small;"><i>sudo add-apt-repository 'deb http://cran.rstudio.com/bin/linux/ubuntu raring/'
</i></span></span><br />
<span class="fullpost">must be replaced with this line for Ubuntu 12.10:
</span><br />
<span class="fullpost"><i><span style="font-size: x-small;">sudo add-apt-repository 'deb http://cran.rstudio.com/bin/linux/ubuntu quantal/'
</span></i></span><br />
<span class="fullpost">or with this line for Ubuntu 12.04:
</span><br />
<span class="fullpost"><span style="font-size: x-small;"><i>sudo add-apt-repository 'deb http://cran.rstudio.com/bin/linux/ubuntu precise/'
</i></span></span></blockquote>
<span class="fullpost">
</span>
<br />
<blockquote>
<span class="fullpost"># Install Shiny in system-wide library
</span><br />
<span class="fullpost"><span style="font-size: x-small;"><i>sudo su - -c "R -e \"install.packages('shiny', repos='http://cran.rstudio.com/')\""
<br />sudo npm install -g shiny-server
</i></span></span></blockquote>
<span class="fullpost">
</span><span class="fullpost">
</span><br />
<blockquote>
<span class="fullpost"># Install Upstart script
</span><br />
<span class="fullpost"><i><span style="font-size: x-small;">sudo wget\
https://raw.github.com/rstudio/shiny-server/master/config/upstart/shiny-server.conf\
-O /etc/init/shiny-server.conf
</span></i></span></blockquote>
<span class="fullpost">
<blockquote>
# Create a system account to run Shiny apps
<br />
<i><span style="font-size: x-small;">sudo useradd -r shiny
</span></i><br />
<br />
# Create a root directory for your website
<br />
<i><span style="font-size: x-small;">sudo mkdir -p /var/shiny-server/www</span></i>
<br />
<br />
# Create a directory for application logs
<br />
<i><span style="font-size: x-small;">sudo mkdir -p /var/shiny-server/log</span></i>
</blockquote>
<blockquote>
# Start Shiny
<br />
<span style="font-size: x-small;"><i>sudo start shiny-server
</i></span><br />
<br />
# Optional: Install examples to test
<br />
<i><span style="font-size: x-small;">sudo cp -R /usr/local/lib/R/site-library/shiny/examples /var/shiny-server/www/
</span></i></blockquote>
Now open a browser to http://<hostname>localhost:3838/examples/ and see if they work.
</hostname></span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-10562135428006555572013-09-02T15:42:00.000+07:002013-09-02T15:50:48.979+07:00QMMP like WinAmp for Ubuntu 12.04 / 12.10 / 13.04<div style="text-align: justify;">
We all must have been a familiar winamp-based <a href="http://microsoft.com/" target="_blank">windows</a>, applications mp3 player, mp4 and some videos but most of us use to play mp3. how in <a href="http://ngenness.blogspot.com/2012/06/ubuntu-lts-12.html" target="_blank">linux</a> especially <a href="http://ubuntu.com/" target="_blank">ubuntu</a>, after several times trying different mp3 player application choice fell on QMMP. Similar to winamp and of course we have been accustomed to using.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh83K-RYqFz3siu24bZAXt56NhC_nsw5unSi1RN_QBD6eYAYWP-uzV4FekD4PiBceOgJmKTOok5NR4MciF3JKBZV927AlD5VMNCVBHL24VO_WHTh5Vxb9r_d94d2EhyqAYMAOIIaFw7Wtw/s1600/%D0%9E+Qmmp_093.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh83K-RYqFz3siu24bZAXt56NhC_nsw5unSi1RN_QBD6eYAYWP-uzV4FekD4PiBceOgJmKTOok5NR4MciF3JKBZV927AlD5VMNCVBHL24VO_WHTh5Vxb9r_d94d2EhyqAYMAOIIaFw7Wtw/s320/%D0%9E+Qmmp_093.jpg" /></a></div>
<div style="text-align: justify;">
<br />
Display the currently playing music, equalizer and playlist songs are easy and simple are the hallmarks of QMMP.</div>
<span class="fullpost">
</span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span class="fullpost"><span class="fullpost"></span></span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDIqPwYj0G431GaeKTcGPge3DPz4-6OwwQ2W5Sw0bF_q3xmtVYKOTlgZb-2J5hsctSRp_Qn-8Yv3KQ2kcn-i9eucoIiCnII4YKtHIgFDbvNLdR7rnqbg10A8hhO_iJwTKt8G7GMy5iWfk/s1600/badan_097.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDIqPwYj0G431GaeKTcGPge3DPz4-6OwwQ2W5Sw0bF_q3xmtVYKOTlgZb-2J5hsctSRp_Qn-8Yv3KQ2kcn-i9eucoIiCnII4YKtHIgFDbvNLdR7rnqbg10A8hhO_iJwTKt8G7GMy5iWfk/s200/badan_097.jpg" /></a></div>
<span class="fullpost">
<span class="fullpost"> </span></span><br />
<span class="fullpost"><span class="fullpost">Very easy way to install it: </span><br />
<br />
<b><span class="fullpost">sudo add-apt-repository ppa:forkotov02/ppa </span><br /><br /><span class="fullpost">sudo apt-get update
sudo apt-get install qmmp </span></b>
<b><br /><br /><span class="fullpost">sudo apt-get install qmmp-plugin-pack </span></b>
<br />
<br />
<span class="short_text" id="result_box" lang="en" tabindex="-1"><span class="hps">For</span> <span class="hps">skins</span> <span class="hps">can be</span> <span class="hps">downloaded</span> <span class="hps">at</span> <span class="hps">this</span> <a href="http://customize.org/winamp2/skins?page=1" target="_blank"><span class="hps">link</span></a>. </span><br />
<span class="short_text" id="result_box" lang="en" tabindex="-1"><span class="hps">Then</span> <span class="hps">place it</span> <span class="hps">in</span> <span class="hps">the</span> <span class="hps">folder : </span></span>/home/username/.qmmp/skins<br />
<br />
</span><br />
<div class="separator" style="clear: both; text-align: center;">
<span class="fullpost"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigHgrQPyXL4z4xD6bnwOs2krZbGKvFfhqqOfNC0yVbM7Nv-hv05j6JHHjBvLBsMKz8lVOxy0ms78R47ofmR-dWM04IIglqsPDlfAPrbvrb8tq6Cqp6CynAXZXXDouo5lohdUT4fzztfmI/s1600/skin_qmmp.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigHgrQPyXL4z4xD6bnwOs2krZbGKvFfhqqOfNC0yVbM7Nv-hv05j6JHHjBvLBsMKz8lVOxy0ms78R47ofmR-dWM04IIglqsPDlfAPrbvrb8tq6Cqp6CynAXZXXDouo5lohdUT4fzztfmI/s1600/skin_qmmp.jpg" /></a></span></div>
<span class="fullpost">
<span class="short_text" id="result_box" lang="en" tabindex="-1"> </span>
</span>
Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-2010363889749508129.post-55622443194807921722013-05-23T13:48:00.002+07:002013-05-23T13:48:39.574+07:00Shift Key Problem<div class="separator" style="clear: both; text-align: center;">
<a href="http://t1.gstatic.com/images?q=tbn:ANd9GcRxs9xNgeX3Pa42qH5aVBae0XQjFLk7Jr9xtGCa8Dh4JmPoTo_BCQ" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://t1.gstatic.com/images?q=tbn:ANd9GcRxs9xNgeX3Pa42qH5aVBae0XQjFLk7Jr9xtGCa8Dh4JmPoTo_BCQ" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Some time ago I had trouble in my notebook. Some keys do not work properly. Incidentally when I menngunakan <a href="http://windows.com/" target="_blank">windows 7</a> operating system, I thought this was definitely a virus. That could happen because for this notebook does not have any anti virus installed.</div>
<div style="text-align: justify;">
<br /></div>
<span class="fullpost">
<div style="text-align: justify;">
I have some anti virus download, especially free. Then started the experiment, anti virus installed complete with latest updates. After that do a scan with a very saturate. The result is very disappointing, fixed knob is not working as usual.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
There's crazy ideas, one of which troubled push button button simultaneously while annotate. And the result: <b>Press right shift key and the left shift key simultaneously for a few seconds</b>, then work</div>
<div style="text-align: justify;">
Hopefully this can help you to share your experiences problems.</div>
</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-19144663844928811242013-01-17T14:39:00.007+07:002016-09-15T09:28:41.229+07:00Asus X201E Ubuntu 12.04 ( Function Keys )<div style="text-align: justify;">
<a href="http://www.asus.com/websites/global/products/IVotBp2Edz4XzX1Q/x201_1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="190" src="https://www.asus.com/websites/global/products/IVotBp2Edz4XzX1Q/x201_1.jpg" width="200" /></a>I recently bought <a href="http://asus.com/" target="_blank">asus</a> notebook X201e some time ago. Since <a href="http://ngenness.blogspot.com/">I am</a> a fans of <a href="http://ubuntu.com/" target="_blank">Ubuntu</a>, I just installed <a href="http://ubuntu.com/" target="_blank">Ubuntu LTS 12.04</a>, I chose it because the support of the old and very easy to use. Once installed, there are several issues that arise are the function keys are not used. By doing the test a few pointers on <a href="http://google.com/" target="_blank">google</a>, finally I got the solution and it can <a href="http://www.unej.ac.id/" target="_blank">work</a> well.
</div>
<div style="text-align: justify;">
The first step is to upgrade the kernel <a href="http://ubuntu.com/" target="_blank">ubuntu 12.04</a> by default is 3.2 to 3.5 following is how:
Add repositories of Ubuntu 12.10 by editing “<i>/etc/apt/sources.list</i>”
</div>
<blockquote>
<div style="text-align: justify;">
<i>sudo vim /etc/apt/sources.list</i></div>
</blockquote>
<div style="text-align: justify;">
and add following lines:
</div>
<blockquote>
<blockquote class="tr_bq">
<i>deb http://security.ubuntu.com/ubuntu quantal-security main universe restricted multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security main universe restricted multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu/ quantal-updates main universe restricted multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
</i></blockquote>
</blockquote>
<span class="fullpost">
Then update and install the kernel:
<br />
</span><br />
<blockquote>
<blockquote class="tr_bq">
<span class="fullpost"><i>sudo apt-get update
sudo apt-get install linux
</i></span></blockquote>
</blockquote>
<span class="fullpost">
For PAE kernel (for <a href="http://intel.com/" target="_blank">intel</a> i386 with more than 4GB RAM) :
<br />
</span><br />
<blockquote>
<blockquote class="tr_bq">
<span class="fullpost"><i>sudo apt-get install linux-generic-pae</i></span></blockquote>
</blockquote>
<span class="fullpost">
After that reboot: <i>sudo reboot. </i><a href="http://ngenness.blogspot.com/"><b>Yessss !!!!</b></a> ..., successfully. The volume setting can walk normally again, as well as wireless and others. But the Fn key for brightness is still not running. After dabbling again,
This could be fixed by editing the <i>/etc/default/grub</i> file and changing the line "<i>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to "GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="</i>. After running "<i>sudo update-grub</i>" in the terminal and rebooting, the keys were working again. And some functions in ASUS X201E <a href="http://www.unej.ac.id/" target="_blank">worked</a>.
Good Luck
</span>Unknownnoreply@blogger.com16tag:blogger.com,1999:blog-2010363889749508129.post-47582635595764525932012-10-17T13:57:00.003+07:002013-01-17T14:55:31.131+07:00FreeTDS MYSQL MSSQL PHP<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.mysql.com/common/logos/logo-mysql-110x57.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="103" src="http://www.mysql.com/common/logos/logo-mysql-110x57.png" width="200" /></a></div>
You certainly know a wide range of database engine in the world. one of which is <a href="http://www.mysql.com/">MYSQL</a>.<br />
My post this time about the experience of using the connector from MYSQL <a href="http://www.ubuntu.com/">ubuntu server</a> to <a href="http://www.microsoft.com/sql">MSSQL</a> the course of <a href="http://www.microsoft.com/">microsoft</a>. The goal is to read data from MSSQL database using <a href="http://www.php.net/">PHP</a> commands in a project I was working on.
The first one is the installation of freetds package <a href="http://www.ubuntu.com/">ubuntu</a> package, by typing the command: <br />
<b><i>sudo apt-get install freetds-common freetds-bin unixodbc php5-sybase</i></b> </div>
<div style="text-align: justify;">
Once the process is complete, do the changes in the file <b>freetds.conf</b>
use the command: <br />
<i><b>sudo vim /etc/freetds/freetds.conf</b></i>
then add some few lines at the bottom of the file: </div>
<div style="text-align: justify;">
[yourserver]
host = your.server.name </div>
<div style="text-align: justify;">
port = 1433 </div>
<div style="text-align: justify;">
tds version = 8.0 </div>
<div style="text-align: justify;">
Furthermore restart the apache server on the machine by typing the command:
<br />
<b><i>sudo /etc/init.d/apache2 restart</i></b> </div>
<div style="text-align: justify;">
<span class="fullpost">
The final step, create additional <a href="http://www.php.net/">php</a> file that is created as follows:<br />
<? php<br />
$ link = mssql_connect ('yourserver', 'yourusername', 'yourpassword');
<br />
if (!$link) { die ('Unable to connect!');
}
<br />
if (!mssql_select_db ('yourdatabasename', $ link))<br />
{ die ('Unable to select database');
}
<br />
$result = mssql_query ('SELECT * FROM yourtable');
<br />
while ($row=mssql_fetch_array ($ result)) { var_dump ($ row);
}
<br />
mssql_free_result ($ result);<br />
?><br />
<a href="http://www.mysql.com/">Mysql</a> database result has been able to read the data on <a href="http://microsoft.com/sql">MSSQL</a> database. Furthermore, good luck, good luck</span></div>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-2010363889749508129.post-35751334431784042252012-06-27T15:21:00.001+07:002013-05-23T13:51:18.808+07:00<b><span style="color: blue;">UBUNTU LTS 12.04 (Precise Pangolin)
</span></b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://t1.gstatic.com/images?q=tbn:ANd9GcSH-9RhjRJBSNWP4aYlXORK8wi1Lwhw20LCaa6x_3ltqgmZoXDYpA" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://t1.gstatic.com/images?q=tbn:ANd9GcSH-9RhjRJBSNWP4aYlXORK8wi1Lwhw20LCaa6x_3ltqgmZoXDYpA" /></a></div>
Based on the <a href="http://ubuntu.com/" target="_blank">Ubuntu</a> Developer Summit in early September 2011 Canonical has announced the release of some new things related to Ubuntu LTS 12.04 </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1. 64 Bit version for the default download.
At 12. 04 Ubuntu main packages that can be downloaded is a 64 bit version. Nevertheless, the 32 bit version is still available as well. As the heart, it will use the Ubuntu 12.04 kernel version 3.2. (tested with my <a href="http://asus.com/" target="_blank">asus</a> x201e)</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
2. Require DVD or USB drive to install.
12.04 Ubuntu seem to download this file image / ISO it will size around 750 MB. This means that with that much size will not fit if it is bundled on CD. Users will need a DVD or USB Drive to install it. Of course this is a shock to the user, especially with the addition of only 50 MB file only. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
3. Drop Banshee, Back to Rhythmbox
Some reports suggested that the Banshee music player - which has just added to Ubuntu as the default music player - will be replaced again with Rhythmbox. The main problem in Banshee is the lack of software maintenance process / update the application and potentially not be compatible with ARM processors. It is still discussed in the mailing list Ubuntu-Desktop. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span class="fullpost">4. No More Mono Framework
Closely related to point (3) on the abolition of Banshee, Mono Framework is also possible to be eliminated from Ubuntu. Banshee is one of the few applications that still depend on Mono (another example is the Tomboy Notes and gBrainy), Mono is an implementation of <a href="http://microsoft.com/" target="_blank">Microsoft</a>'s. NET framework that is open source. According to the Ubuntu Community Manager Jono Bacon (written in his blog) that the Banshee and Mono problems have been fixed / finished. </span></div>
<div style="text-align: justify;">
<span class="fullpost"><br /></span></div>
<div style="text-align: justify;">
<span class="fullpost">5. A much faster start up time for the Ubuntu Software Center
The developers are hoping to improve the startup speed of the Ubuntu Software Center from 11 seconds to less than 2 seconds, and also continue to always make improvements Unity desktop. Ubuntu Software Center will be updated with support for multiple screenshots. </span></div>
<div style="text-align: justify;">
<span class="fullpost"><br /></span></div>
<div style="text-align: justify;">
<span class="fullpost">6. Head-Up Display (HUD) Feature
On January 2012, Mark Shuttleworth announced that Ubuntu will incorporate new features 12.04 of Head-Up Display (HUD), which will allow the search for an application menu item only via keyboard hotkey without the need for a mouse. Shuttlework added that HUD later on in the future will replace the Unity Applications menu. </span></div>
<div style="text-align: justify;">
<span class="fullpost"><br /></span></div>
<div style="text-align: justify;">
<span class="fullpost">7. A Wayland Preview.
12.04 Ubuntu while still dependent on the primary server X.Org as a graphical display system, an experiment using Wayland Graphics System to run the X11 server and it allows the (successful). In the future maybe Ubuntu will adopt Waylang Graphics System as well.
8. Gnome 3.2 Gnome 3.4 plus some packages
Most of the Gnome packages on Ubuntu LTS 12:04 it will use Gnome version 3.2 of the package, but some packages of Gnome version 3.4 will reportedly be included as well, for example GTK + 3.4, Gnome Games, gedit, gcalctool, Evince and Yelp.
</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-57603674781603002132011-10-20T14:45:00.000+07:002013-01-22T14:15:11.552+07:00Ubuntu 11.10 (Oneiric Ocelot)Has been released yesterday, this edition includes the Ubuntu desktop, server, cloud, Kubuntu, Xubuntu, Lubuntu, Edubuntu, Mythbuntu, and Ubuntu Studio. Not too much difference with the previous edition 11.04 / Natty, just adding a few additional applications one of them: Deja DUP for backing up data.<br />
<span class="fullpost"><br />Merger unity and compiz is a different side view of its predecessor, the login screen is also another. But as a whole can be spelled similar to the previous edition.<br /><br />Because similar to the reply already installed, I just try and then delete it because of who got the laptop says "what is <a href="http://microsoft.com/" target="_blank">windows 8</a>?"<br />Even more fun is waiting for <a href="http://ubuntu.com/" target="_blank">12.04 Ubuntu LTS</a> (Precise pangolin) which is planned to release on April 26 next year (I think it's what Precise, was an anteater). 10.04 Maybe it could replace the LTS as well, because according to its developers this is a tough, durable and a little bug.<br /><br />Good luck to those interested:<br /><br /><a href="http://releases.ubuntu.com/11.10/">http://releases.ubuntu.com/11.10/</a> (Ubuntu, Ubuntu Server)<br /><br /><a href="http://cloud-images.ubuntu.com/releases/11.10/">http://cloud-images.ubuntu.com/releases/11.10/</a> (Ubuntu Cloud Images)<br /><br /><a href="http://cdimage.ubuntu.com/releases/11.10/">http://cdimage.ubuntu.com/releases/11.10/</a> (Ubuntu DVD, preinstalled ARM images, source)<br /><br /><a href="http://cdimage.ubuntu.com/netboot/11.10/">http://cdimage.ubuntu.com/netboot/11.10/</a> (Ubuntu Netboot)<br /><br /><a href="http://releases.ubuntu.com/kubuntu/11.10/">http://releases.ubuntu.com/kubuntu/11.10/</a> (Kubuntu)<br /><br /><a href="http://cdimage.ubuntu.com/kubuntu/releases/11.10/">http://cdimage.ubuntu.com/kubuntu/releases/11.10/</a> (Kubuntu DVD)<br /><br /><a href="http://cdimage.ubuntu.com/xubuntu/releases/11.10/">http://cdimage.ubuntu.com/xubuntu/releases/11.10/</a> (Xubuntu)<br /><br /><a href="http://cdimage.ubuntu.com/edubuntu/releases/11.10/">http://cdimage.ubuntu.com/edubuntu/releases/11.10/</a> (Edubuntu)<br /><br /><a href="http://cdimage.ubuntu.com/ubuntustudio/releases/11.10/">http://cdimage.ubuntu.com/ubuntustudio/releases/11.10/</a> (Ubuntu Studio)<br /><br /><a href="http://cdimage.ubuntu.com/mythbuntu/releases/11.10/">http://cdimage.ubuntu.com/mythbuntu/releases/11.10/</a> (Mythbuntu)<br /><br /><a href="http://cdimage.ubuntu.com/lubuntu/releases/11.10/">http://cdimage.ubuntu.com/lubuntu/releases/11.10/</a> (Lubuntu)</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-48613760901461215752011-05-09T13:05:00.000+07:002011-05-09T13:20:04.016+07:00Ubuntu 11.04 Natty Narwhal Review<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHR3IuwHlAYGTx2X6LNZqQOiS3gcJDzX5RH9ssViMWyhxm8W4HnPaSmI8BJmXYr02uy_AWWLAt_jPz0mu1BMro7cnMIVJBoTbdEasYyzuearxM6_bERGId6pRbUtYh8l4ryQMM1MDdFSk/s1600/desk1.jpeg"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHR3IuwHlAYGTx2X6LNZqQOiS3gcJDzX5RH9ssViMWyhxm8W4HnPaSmI8BJmXYr02uy_AWWLAt_jPz0mu1BMro7cnMIVJBoTbdEasYyzuearxM6_bERGId6pRbUtYh8l4ryQMM1MDdFSk/s320/desk1.jpeg" border="0" alt=""id="BLOGGER_PHOTO_ID_5604594921093227154" /></a><br />After waiting many months, the latest ubuntu release has been published a few weeks ago. What and how the performance of the Natty this.<br /><br />Here's the latest test release ubuntu 11:04 uses several different hardware. Incidentally kompeter could borrow from friends and laptop to have someone (only intel, amd who do not have the love and loans)<br /><br />1. Booting requires only 50-10 seconds (I3 processors or more)<br />booting requires 10-30 (under the dual cores, or netbook)<br /><br />2. Desktop look a little different than previous releases, since it uses unity ubuntu 11:04. <br /><br /><span class="fullpost"><br />glance for Apple users if somewhat similar, because the application is on the left desktop.<br /><br />3. In the latest Ubuntu, there are some applications that change, which is very striking is that Open Office is no longer a default install of ubuntu. His replacement is the Libre Office, but its user exactly like other office applications like openoffice and microsoft office. Separate also is gimp, applications for the designer is also already there when the installation is not automatic, but we can still download through the application sypnatic or via terminal (apt-get install)<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQMCwgACmjvZqxTvNhlw_Odko8Nj-Eu3l_-F35W4RL1OpW37nzpUCX4SRIzh9opwtl7DuDlumkAWakVyTF9Odx__PQTBy4XoJk_Ljj0zHMPFERZDJwSQXX_txPLWxlw8evN0LmhoUpBX8/s1600/libre.jpeg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQMCwgACmjvZqxTvNhlw_Odko8Nj-Eu3l_-F35W4RL1OpW37nzpUCX4SRIzh9opwtl7DuDlumkAWakVyTF9Odx__PQTBy4XoJk_Ljj0zHMPFERZDJwSQXX_txPLWxlw8evN0LmhoUpBX8/s320/libre.jpeg" border="0" alt=""id="BLOGGER_PHOTO_ID_5604596473521944994" /></a><br /><br />4. Browser Mozilla Firefox on ubuntu still, what a coincidence when released yesterday, also firefox has just launched its latest version. To support the performance of Ubuntu users. The latest version of Firefox has become the default browser on this Natty.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFCS9OxeTvm_kplTESUjglzpANr0qadWn7edpsII8qRUfr_0mvbw11OfmWvPuuTcBqAWHoP5wiKoR8-Y8SKiQtPR5qfs35YpEVT9vPuFdC9bUsvnSnOkWlM-qQOlJ78IhITNBlYS88v00/s1600/fire_natty.jpeg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFCS9OxeTvm_kplTESUjglzpANr0qadWn7edpsII8qRUfr_0mvbw11OfmWvPuuTcBqAWHoP5wiKoR8-Y8SKiQtPR5qfs35YpEVT9vPuFdC9bUsvnSnOkWlM-qQOlJ78IhITNBlYS88v00/s320/fire_natty.jpeg" border="0" alt=""id="BLOGGER_PHOTO_ID_5604596055115263490" /></a><br /><br />5. Natty is the latest breakthrough in cloud computing. If you want to store data in the cloud of ubuntu, ubuntu just use one application. This application is suitable for users who are super mobile.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh29AnICOHpY0PJbQ0VKpz4m-ve7E0VZ6rzLP64ajK6Z6CbUL19XN66dOGAmrLjSdiiLPXK_4Fn8bpsf9eUs_FjHF83hbCVsMeq2qNsGF2_jzqWIk6e4kTYR1GUjdlsvmHi-V59AtCDAdE/s1600/ubuntu_one.jpeg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh29AnICOHpY0PJbQ0VKpz4m-ve7E0VZ6rzLP64ajK6Z6CbUL19XN66dOGAmrLjSdiiLPXK_4Fn8bpsf9eUs_FjHF83hbCVsMeq2qNsGF2_jzqWIk6e4kTYR1GUjdlsvmHi-V59AtCDAdE/s320/ubuntu_one.jpeg" border="0" alt=""id="BLOGGER_PHOTO_ID_5604596766145658162" /></a><br /><br />So Ubuntu Natty review, we wait for the latest terobasan in the next Ubuntu release Oneiric Ocelot 11:10<br /><br /></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-34946549806552828482011-05-06T13:16:00.000+07:002016-09-15T09:25:57.465+07:00Downgrade PHP 5.3 to PHP 5.2 Ubuntu Lucid ServerThis process is required at the <a href="http://ubuntu.com/" target="_blank">server</a> system does not match the needs of <a href="http://ngenness.blogspot.com/2010/07/install-bcompiler-for-php5-on-ubuntu.html">bcompiler</a> to perform the randomization code in <a href="http://ngenness.blogspot.com/2010/09/php-validate-form.html">PHP</a>. Discussion will I show is using <a href="http://ngenness.blogspot.com/2010/09/email-services-linux-ubuntu-server-1004.html">Ubuntu Lucid Server</a>. <br />
The following <a href="http://ngenness.blogspot.com/">process</a> steps downgrade:<br />
1. Check what PHP packages are installed on the server, then list to be removed from the system. To do this use the command: <span style="font-style: italic;">dpkg-l | grep php</span><br />
<blockquote>
<span style="font-style: italic;">yoyok@yoyok-desktop:~$ dpkg -l | grep php</span></blockquote>
<br />
<span class="fullpost"><br />will appear like this:<br /><span style="font-style: italic;">ii libapache2-mod-php5 5.3.2-0ubuntu1 server-side, HTML-embedded scripting languag<br />ii php-pear 5.3.2-0ubuntu1 PEAR - PHP Extension and Application Reposit<br />ii php5-cgi 5.3.2-0ubuntu1 server-side, HTML-embedded scripting languag<br />ii php5-cli 5.3.2-0ubuntu1 command-line interpreter for the php5 script<br />ii php5-common 5.3.2-0ubuntu1 Common files for packages built from the php<br />ii php5-dev 5.3.2-0ubuntu1 Files for PHP5 module development<br />ii php5-gd 5.3.2-0ubuntu1 GD module for php5<br />rc php5-mcrypt 5.3.2-0ubuntu1 MCrypt module for php5<br />ii php5-mysql 5.3.2-0ubuntu1 MySQL module for php5<br />ii php5-sqlite 5.3.2-0ubuntu1 SQLite module for php5</span><br /><br />2. Prepare a PHP packages that will diremove</span><br />
<blockquote>
<span class="fullpost"><span style="font-style: italic;">yoyok@yoyok-desktop:~$ dpkg -l | grep php | awk '{print $2}'</span></span></blockquote>
<span class="fullpost"><br />results:<br /><span style="font-style: italic;">libapache2-mod-php5<br />php-pear<br />php5-cgi<br />php5-cli<br />php5-common<br />php5-dev<br />php5-gd<br />php5-mcrypt<br />php5-mysql<br />php5-sqlite</span><br /><br />3. Remove the <a href="http://ngenness.blogspot.com/2011/04/php-and-javascript-autocomplete-search.html">php</a> package with the command:</span><br />
<blockquote>
<span class="fullpost"><span style="font-style: italic;">yoyok@yoyok-desktop:~$ sudo apt-get remove libapache2-mod-php5<br />php-pear php5-cgi php5-cli php5-common php5-dev php5-gd php5-mcrypt php5-mysql php5-sqlite</span></span></blockquote>
<span class="fullpost">
<br /><br />4. After the successful, add the karmic repository in /etc/apt/sources.list, for ease of use this command:</span><br />
<blockquote>
<span class="fullpost"><span style="font-style: italic;">yoyok@yoyok-desktop:~$ sed s/lucid/karmic/g /etc/apt/sources.list | tee /etc/apt/sources.list.d/karmic.list</span></span></blockquote>
<span class="fullpost">
<br /><br />5. Then, create a pin whose function is to hold for package PHP will not be upgraded to Lucid again, Create a file called php which is stored in the folder /etc/apt/preferences.d/, whose contents are as follows:<br /><span style="font-style: italic;">Package: libapache2-mod-php5<br />Pin: release a=karmic<br />Pin-Priority: 991<br /><br />Package: php-pear<br />Pin: release a=karmic<br />Pin-Priority: 991<br /><br />Package: php5-cgi<br />Pin: release a=karmic<br />Pin-Priority: 991<br /><br />Package: php5-cli<br />Pin: release a=karmic<br />Pin-Priority: 991<br /><br />Package: php5-common<br />Pin: release a=karmic<br />Pin-Priority: 991<br /><br />Package: php5-dev<br />Pin: release a=karmic<br />Pin-Priority: 991<br /><br />Package: php5-gd<br />Pin: release a=karmic<br />Pin-Priority: 991<br /><br />Package: php5-mcrypt<br />Pin: release a=karmic<br />Pin-Priority: 991<br /><br />Package: php5-mysql<br />Pin: release a=karmic<br />Pin-Priority: 991<br /><br />Package: php5-sqlite<br />Pin: release a=karmic<br />Pin-Priority: 991</span><br /><br />6. Do the updates and install the package <a href="http://ngenness.blogspot.com/2011/04/php-and-javascript-autocomplete-search.html">php</a><br /><blockquote>
<span style="font-style: italic;">yoyok@yoyok-desktop:~$ sudo apt-get update <br />yoyok@yoyok-desktop:~$ sudo apt-get install libapache2-mod-php5<br />php-pear php5-cgi php5-cli php5-common php5-dev php5-gd php5-mcrypt php5-mysql php5-sqlite</span></blockquote>
<br /><br />7. When finished do check the package php (php 5.2) with the command dpkg-l | grep php. result like this:<br /><span style="font-style: italic;">ii libapache2-mod-php5 5.2.10.dfsg.1-2ubuntu6.4 server-side, HTML-embedded scripting languag<br />ii php-pear 5.2.10.dfsg.1-2ubuntu6.4 PEAR - PHP Extension and Application Reposit<br />ii php5-cgi 5.2.10.dfsg.1-2ubuntu6.4 server-side, HTML-embedded scripting languag<br />ii php5-cli 5.2.10.dfsg.1-2ubuntu6.4 command-line interpreter for the php5 script<br />ii php5-common 5.2.10.dfsg.1-2ubuntu6.4 Common files for packages built from the php<br />ii php5-dev 5.2.10.dfsg.1-2ubuntu6.4 Files for PHP5 module development<br />ii php5-gd 5.2.10.dfsg.1-2ubuntu6.4 GD module for php5<br />rc php5-mcrypt 5.2.6-0ubuntu2 MCrypt module for php5<br />ii php5-mysql 5.2.10.dfsg.1-2ubuntu6.4 MySQL module for php5<br />ii php5-sqlite 5.2.10.dfsg.1-2ubuntu6.4 SQLite module for php5</span><br /><br />So now the downgrade of package php 5.3 to 5.2 successfully</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-78032127358788358622011-04-14T10:39:00.000+07:002011-04-14T11:45:11.061+07:00PHP and Javascript Autocomplete SearchStarting from the case when the search data using a key word table in a <a href="http://www.mysql.com/">MySQL</a> database. Search results can be done in several ways, but the accuracy and convenience take precedence. What is desired is to enter one character per word, it will display the results of database queries associated with that character.
<br />
<br />Suppose we look for the word or the name of someone in a database, simply by memasukkam word Y, then Y is related to the word will be displayed in a list table: <a href="http://ngenness.blogspot.com">Yoyo</a>, Sandy, Bayu and others. Next we discussed the script. In this case the language of php and javascript. Search techniques using <a href="http://www.javascript.com/">javascript</a> function showHint.
<br /><span class="fullpost">
<br />
<br /><head>
<br /><script type="text/javascript">
<br />function showHint(str)
<br />{
<br />if (str.length==0)
<br /> {
<br /> document.getElementById("txtHint").innerHTML="";
<br /> return;
<br /> }
<br />if (window.XMLHttpRequest)
<br /> {// code for IE7+, Firefox, Chrome, Opera, Safari
<br /> xmlhttp=new XMLHttpRequest();
<br /> }
<br />else
<br /> {// code for IE6, IE5
<br /> xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
<br /> }
<br />xmlhttp.onreadystatechange=function()
<br /> {
<br /> if (xmlhttp.readyState==4 && xmlhttp.status==200)
<br /> {
<br /> document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
<br /> }
<br /> }
<br />xmlhttp.open("GET","search1.php?q="+str,true);
<br />xmlhttp.send();
<br />}
<br /></script>
<br /></head>
<br /><form>
<br />Input Name : <input type="text" onkeyup="showHint(this.value)" size="20" />
<br /></form>
<br /><p><span id="txtHint"></span></p>
<br />
<br />Save the script above with the name of search.php. Next create another php file with the name search1.php to invoke a MySQL database (database query) based on input from the file search.php
<br />
<br /><?
<br />if (isset($_GET[q])) {
<br />//load database from php
<br />include ('../config/db_connect.php');
<br />$q=$_GET[&quot;q&quot;];
<br />$query = mysql_query(&quot;SELECT * FROM staff where name like '%$q%'&quot;);
<br />?&gt;
<br />&lt;table bgcolor=&quot;#000000&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot;&gt;
<br /> &lt;tr bgcolor=&quot;#DDDDDD&quot;&gt;
<br /> &lt;th&gt;ID&lt;/th&gt;
<br /> &lt;th&gt;Name&lt;/th&gt;
<br /> &lt;/tr&gt;
<br /> &lt;? while($row = mysql_fetch_object($query)): ?&gt;
<br /> &lt;tr bgcolor=&quot;#FFFFFF&quot;&gt;
<br /> &lt;td&gt;&lt;?=$row-&gt;ID?&gt;&lt;/a&gt;&lt;/td&gt;
<br /> &lt;td&gt;&lt;?=$row-&gt;name?&gt;&lt;/td&gt;
<br /> &lt;/tr&gt;
<br /> &lt;? endwhile; ?&gt;
<br />&lt;/table&gt;
<br />&lt;? }
<br />
<br />So hopefully can help
<br /></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-73261603606474740862011-01-25T10:12:00.000+07:002011-01-25T10:32:44.409+07:00How to quickly and easily download youtube videoThis trick will only be felt if you use the Linux operating system. It is very easy, simply use the existing browser, eg Mozilla Firefox or another browser.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjesizZRCR1xdlRdyY11QzVkwssuxyhaEfW5ApVYpa-CAeHDEoukzVrJLNijZWDLH0qtI4RVwsSwx-p7JD70aZph9ArexThfaNRb57BO1syDYkFG0eY4_cDfP-V4QoE5XOpD7XDG6xr8Wg/s1600/gayus.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 248px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjesizZRCR1xdlRdyY11QzVkwssuxyhaEfW5ApVYpa-CAeHDEoukzVrJLNijZWDLH0qtI4RVwsSwx-p7JD70aZph9ArexThfaNRb57BO1syDYkFG0eY4_cDfP-V4QoE5XOpD7XDG6xr8Wg/s320/gayus.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5565959848133802802" /></a><br /><br /><span class="fullpost"><br />The following process sequence:<br />1. Open your favorite browser<br />2. Type the address <a href="http://youtube.com">youtube.com</a><br />3. Allow it to finish spinning video<br />4. Open the / tmp directory on your computer, there will appear a file. flv is the result of streaming from <a href="http://youtube.com">youtube.com</a><br />5. Do not forget to quickly copy a file to another place, because after the computer restarts also missing file in the directory / tmp<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdQszQVZCVMEf8rAFIjjrTo0Zzkx8V3lvxHdzje66IZovZTxifG6ib1QYOghuOYPRvf7M13XnetwJYkQXHxjCYGsa6e8LeVzXhTw5aPDJiG9qArMRJKKXuPiA60qNbQhX5pLuww_6gn5E/s1600/gb_tmp.png"><img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 241px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdQszQVZCVMEf8rAFIjjrTo0Zzkx8V3lvxHdzje66IZovZTxifG6ib1QYOghuOYPRvf7M13XnetwJYkQXHxjCYGsa6e8LeVzXhTw5aPDJiG9qArMRJKKXuPiA60qNbQhX5pLuww_6gn5E/s320/gb_tmp.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5565960117071047922" /></a><br /><br />Easy to do, so no need to use additional software to take a video on youtube. Good luck.<br /></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-34240371676803450602010-10-21T14:07:00.000+07:002010-10-21T14:35:58.583+07:00SSH via web with JAVA<p align=”justify”><br />If at any time, you have problems with SSH in your workplace. Maybe the admin on your premises to close specific ports eg 443 or 22. This method can be effective, but there are a few tricks to put into the public html server. Maybe the hackers in cyberspace can help. <br /><br />Okay, ready to empty file can use vi, vim, pico (editor unix) or notepad (windows). type the following script: <br /><br /><span class="fullpost"><br /><html><br /><br /><body><br /><br /><APPLET CODE="com.mindbright.application.MindTerm.class" ARCHIVE="mindterm.jar" WIDTH=0 HEIGHT=0><br /><br /><PARAM NAME="sepframe" value="true"><br /><PARAM NAME="x11fwd" value="true"><br /><PARAM NAME="port" value="7575"><br /><br /></APPLET><br /><br /></body><br /><br /></html><br /><br />give file name eg javassh.html<br /><br />as supporting files, you can support the jar file (mindterm.jar). You can search via google.<br /><br />good luck.<br /><br /></p><br /></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-14485527108693622232010-09-08T14:35:00.000+07:002010-09-08T14:47:16.326+07:00PHP Validate FormMaking the form on the php impressed casual. But one time we faced a problem with the validation of that form, eg filling of data can not be empty. Here are some scripts that can be used to check the validation of a form, especially checking space which can become the things we missed.<br /><br />To make it easier, can be made a separate file with the parent file. suppose check.inc and later called in the php file using the command required<br /><br /><span class="fullpost"><br /><?<br />function check_not_empty($s, $include_whitespace = false)<br />{<br /> if ($include_whitespace) {<br /> // make it so strings containing white space are treated as empty too<br /> $s = trim($s);<br /> }<br /> return (isset($s) && strlen($s)); // var is set and not an empty string ''<br />}<br />?><br /><br /></span>Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-2010363889749508129.post-84989768537806978002010-09-07T10:52:00.000+07:002010-09-07T11:24:35.831+07:00Email Services : Linux Ubuntu Server 10.04 Chapter 5<p align=”justify”>The process of getting an email from one person to another over a network or the Internet involves many systems working together. Each of these systems must be correctly configured for the process to work. The sender uses a Mail User Agent (MUA), or email client, to send the message through one or more Mail Transfer Agents (MTA), the last of which will hand it off to a Mail Delivery Agent (MDA)<br />for delivery to the recipient's mailbox, from which it will be retrieved by the recipient's email client, usually via a POP3 or IMAP server.<br /><a href="http://photo.lareosing.org/share.php?id=B1B5_4C85B8C7"><img src="http://photo.lareosing.org/thumb.php?id=B1B5_4C85B8C7" border="0"></a><br /><br />1. POSTFIX<br />Postfix is the default Mail Transfer Agent (MTA) in Ubuntu. It attempts to be fast and easy to administer and secure. It is compatible with the MTA sendmail. This section explains how to install and configure postfix. It also explains how to set it up as an SMTP server using a secure connection(for sending emails securely).<br />To install postfix run the following command:<br /><span style="font-style:italic;">yoyok@yoyok-server:~$ sudo apt-get install postfix</span><br /><span class="fullpost"><br />To configure postfix, run the following command:<br /><span style="font-style:italic;">yoyok@yoyok-server:~$ sudo dpkg-reconfigure postfix</span><br />The user interface will be displayed. On each screen, select the following values:<br />• Internet Site<br />• mail.example.com<br />• steve<br />• mail.example.com, localhost.localdomain, localhost<br />• No<br />• 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24<br />• 0<br />• +<br />• all<br /><br />By default Postfix will use mbox for the mailbox format. Rather than editing the configuration file directly, you can use the postconf command to configure all postfix parameters. The configuration parameters will be stored in /etc/postfix/main.cf file. Later if you wish to re-configure a particular parameter, you can either run the command or change it manually in the file.<br />To configure the mailbox format for Maildir:<br /><span style="font-style:italic;">sudo postconf -e 'home_mailbox = Maildir/'</span><br /><br /><span style="font-weight:bold;">SMTP Authentication</span><br />SMTP-AUTH allows a client to identify itself through an authentication mechanism (SASL).<br />Transport Layer Security (TLS) should be used to encrypt the authentication process. Once authenticated the SMTP server will allow the client to relay mail.<br />1. Configure Postfix for SMTP-AUTH using SASL (Dovecot SASL):<br /><span style="font-style:italic;">yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_sasl_type = dovecot'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_sasl_path = private/auth-client'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_sasl_local_domain ='<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_sasl_security_options = noanonymous'<br />yoyok@yoyok-server:~$ sudo postconf -e 'broken_sasl_auth_clients = yes'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_sasl_auth_enable = yes'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_sudo postconf -e 'inet_interfaces = all'</span><br /><br /><span style="font-style:italic;">yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_tls_auth_only = no'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtp_use_tls = yes'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_use_tls = yes'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtp_tls_note_starttls_offer = yes'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_tls_key_file = /etc/ssl/private/server.key'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_tls_cert_file = /etc/ssl/certs/server.crt'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_tls_loglevel = 1'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_tls_received_header = yes'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_tls_session_cache_timeout = 3600s'<br />yoyok@yoyok-server:~$ sudo postconf -e 'tls_random_source = dev:/dev/urandom'<br />yoyok@yoyok-server:~$ sudo postconf -e 'myhostname = mail.example.com'<br />yoyok@yoyok-server:~$ sudo postconf -e 'smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem'</span><br /><br />The postfix initial configuration is complete. Run the following command to restart the postfix daemon:<br /><span style="font-style:italic;">yoyok@yoyok-server:~$ sudo /etc/init.d/postfix restart</span><br />To see if SMTP-AUTH and TLS work properly, run the following command:<br />telnet mail.example.com 25<br />After you have established the connection to the postfix mail server, type:<br />ehlo mail.example.com<br />If you see the following lines among others, then everything is working perfectly. Type quit to exit.<br /><span style="font-style:italic;">250-STARTTLS<br />250-AUTH LOGIN PLAIN<br />250-AUTH=LOGIN PLAIN<br />250 8BITMIME</span><br /></p></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2010363889749508129.post-90895032133575315002010-08-23T12:56:00.000+07:002010-08-23T13:23:37.534+07:00Apache : Linux Ubuntu Server 10.04 Chapter 4<a href="http://linkbee.com/F8XV2">Apache</a> is the most commonly used Web Server on Linux systems. Web Servers are used to serve Web Pages requested by client computers. Clients typically request and view Web Pages using Web Browser applications such as Firefox, Opera, or Mozilla<br /><a href="http://photo.lareosing.org/share.php?id=2982_4C721390"><img src="http://photo.lareosing.org/thumb.php?id=2982_4C721390" border="0"></a><br />Apache Web Servers are often used in combination with the MySQL database engine, the HyperText Preprocessor (PHP) scripting language, and other popular scripting languages such as Python and Perl. This configuration is termed LAMP (Linux, Apache, MySQL and Perl/Python/PHP) and forms a powerful and robust platform for the development and deployment of Web-based applications.<br /><br />The Apache2 web server is available in Ubuntu Linux. To install Apache2:<br />yoyok@yoyok-desktop:~$ sudo apt-get install apache2<br /><span class="fullpost"><br /><span style="font-style:italic;">Apache Configuration</span><br />Apache2 is configured by placing directives in plain text configuration files. These directives are<br />separated between the following files and directories:<br />• apache2.conf: the main Apache2 configuration file. Contains settings that are global to Apache2.<br />• conf.d: contains configuration files which apply globally to Apache2. Other packages that use<br />Apache2 to serve content may add files, or symlinks, to this directory.<br />• envvars: file where Apache2 environment variables are set.<br />• httpd.conf: historically the main Apache2 configuration file, named after the httpd daemon. The file can be used for user specific configuration options that globally effect Apache2.<br />• mods-available: this directory contains configuration files to both load modules and configure them. Not all modules will have specific configuration files, however<br />• mods-enabled: holds symlinks to the files in /etc/apache2/mods-available. When a module configuration file is symlinked it will be enabled the next time apache2 is restarted.<br />• ports.conf: houses the directives that determine which TCP ports Apache2 is listening on.<br />• sites-available: this directory has configuration files for Apache2 Virtual Hosts. Virtual Hosts allow Apache2 to be configured for multiple sites that have separate configurations.<br />• sites-enabled: like mods-enabled, sites-enabled contains symlinks to the /etc/apache2/sitesavailable directory. Similarly when a configuration file in sites-available is symlinked, the site configured by it will be active once Apache2 is restarted.<br /><br />Apache2 ships with a virtual-host-friendly default configuration. That is, it is configured with a single default virtual host (using the VirtualHost directive) which can modified or used as-is if you have a single site, or used as a template for additional virtual hosts if you have multiple sites. If left alone, the default virtual host will serve as your default site, or the site users will see if the URL<br />they enter does not match the ServerName directive of any of your custom sites. To modify the default virtual host, edit the file /etc/apache2/sites-available/default<br /><br />this example of /etc/apache2/sites-available/default :<br /><span style="font-style:italic;">NameVirtualHost 192.168.45.126<br /><VirtualHost 192.168.45.126><br /> ServerAdmin webmaster@localhost <br /> DocumentRoot /var/www/yoyok<br /> ServerName www.yoyok.com<br /> <Directory /><br /> Options FollowSymLinks<br /> AllowOverride None<br /> </Directory><br /> <Directory /var/www/yoyok><br /> Options Indexes FollowSymLinks MultiViews<br /> AllowOverride None<br /> Order allow,deny<br /> allow from all<br /> # Uncomment this directive is you want to see apache2's<br /> # default start page (in /apache2-default) when you go to /<br /> #RedirectMatch ^/$ /apache2-default/<br /> </Directory><br /><br /> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<br /> <Directory "/usr/lib/cgi-bin"><br /> AllowOverride None<br /> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch<br /> Order allow,deny<br /> Allow from all<br /> </Directory><br /><br /> ErrorLog /var/log/apache2/errorYOYOK.log<br /><br /> # Possible values include: debug, info, notice, warn, error, crit,<br /> # alert, emerg.<br /> LogLevel warn<br /><br /> CustomLog /var/log/apache2/accessYOYOK.log combined<br /> ServerSignature On<br /><br /> Alias /doc/ "/usr/share/doc/"<br /> <Directory "/usr/share/doc/"><br /> Options Indexes MultiViews FollowSymLinks<br /> AllowOverride None<br /> Order deny,allow<br /> Deny from all<br /> Allow from 127.0.0.0/255.0.0.0 ::1/128<br /> </Directory><br /><br /></VirtualHost></span><br /><br />after configure the <a href="http://linkbee.com/F8XV2">apache</a>, don't forget to restart :<br /><span style="font-style:italic;">yoyok@yoyok-server:~$ sudo /etc/init.d/apache2 restart</span><br /></span>Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-2010363889749508129.post-40680265253377712082010-08-06T10:33:00.000+07:002010-08-11T09:32:01.872+07:00Linux Ubuntu Server 10.04 Chapter 3 Networking<span style="font-weight:bold;">Networking</span> <br /><br /><p align=”justify”>Ubuntu ships with a number of graphical utilities to configure your <a href="http://ngenness.blogspot.com/2010/08/linux-ubuntu-server-1004-chapter-3.html">network</a> devices. This document is geared toward server administrators and will focus on managing your network on the command line.<br /><br />Ethernet interfaces are identified by the system using the naming convention of ethX, where X<br />represents a numeric value. The first Ethernet interface is typically identified as eth0, the second as eth1, and all others should move up in numerical order.<br /><br />To quickly identify all available Ethernet interfaces, you can use the ifconfig command as shown<br />below.<br />yoyok@yoyok-server:~$ ifconfig -a | grep eth0<br />eth0 Link encap:Ethernet HWaddr 00:13:d4:0e:32:59<br /><br /><span class="fullpost"><br />Another application that can help identify all network interfaces available to your system is the lshw command. In the example below, lshw shows a single Ethernet interface with the logical name of eth0 along with bus information, driver details and all supported capabilities.<br /><br />yoyok@yoyok-server:~$ sudo lshw -class network<br />[sudo] password for yoyok: <br /> *-network:0 <br /> description: Ethernet interface<br /> product: RTL-8139/8139C/8139C+<br /> vendor: Realtek Semiconductor Co., Ltd.<br /> physical id: 2<br /> bus info: pci@0000:02:02.0<br /> logical name: eth0<br /> version: 10<br /> serial: 00:13:d4:0e:32:59<br /> size: 10MB/s<br /> capacity: 100MB/s<br /> width: 32 bits<br /> clock: 33MHz<br /> capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation<br />QPPK7DA834B3 <br />configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half latency=64 link=no maxlatency=64 mingnt=32 module=8139too multicast=yes port=MII speed=10MB/s<br /><br />To configure your system to use a static IP address assignment, add the static method to the inet address family statement for the appropriate interface in the file <span style="font-style:italic;">/etc/network/interfaces</span>. The example below assumes you are configuring your first Ethernet interface identified as eth0. Change the address, netmask, and gateway values to meet the requirements of your network.<br /><br />auto eth0<br />iface eth0 inet static<br />address 192.168.45.11<br />netmask 255.255.255.0<br />gateway 192.168.45.10<br /><br />By adding an interface configuration as shown above, you can manually enable the interface through<br />the ifup command.<br /><span style="font-style:italic;">sudo ifup eth0</span><br /><br />To manually disable the interface, you can use the ifdown command.<br /><span style="font-style:italic;">sudo ifdown eth0</span><br /><br /><span style="font-style:italic;">Loopback Interface</span><br />The loopback interface is identified by the system as lo and has a default IP address of 127.0.0.1. It can be viewed using the ifconfig command.<br /><br />yoyok@yoyok-server:~$ ifconfig lo<br />lo Link encap:Local Loopback<br />inet addr:127.0.0.1 Mask:255.0.0.0<br />inet6 addr: ::1/128 Scope:Host<br />UP LOOPBACK RUNNING MTU:16436 Metric:1<br />RX packets:2718 errors:0 dropped:0 overruns:0 frame:0<br />TX packets:2718 errors:0 dropped:0 overruns:0 carrier:0<br />collisions:0 txqueuelen:0<br />RX bytes:183308 (183.3 KB) TX bytes:183308 (183.3 KB)<br /><br />By default, there should be two lines in /etc/network/interfaces responsible for automatically<br />configuring your loopback interface. It is recommended that you keep the default settings unless you have a specific purpose for changing them. An example of the two default lines are shown below.<br /><br />auto lo<br />iface lo inet loopback<br /><br /><span style="font-style:italic;">DHCP</span><br />The Dynamic Host Configuration Protocol (DHCP) is a network service that enables host computers<br />to be automatically assigned settings from a server as opposed to manually configuring each network host. Computers configured to be DHCP clients have no control over the settings they receive from the DHCP server, and the configuration is transparent to the computer's user.<br />The most common settings provided by a DHCP server to DHCP clients include:<br />• IP-Address and Netmask<br />• DNS<br />• WINS<br /><br />However, a DHCP server can also supply configuration properties such as:<br />• Host Name<br />• Domain Name<br />• Default Gateway<br />• Time Server<br />• Print Server<br /><br />The advantage of using DHCP is that changes to the network, for example a change in the address of<br />the DNS server, need only be changed at the DHCP server, and all network hosts will be reconfigured the next time their DHCP clients poll the DHCP server. As an added advantage, it is also easier to integrate new computers into the network, as there is no need to check for the availability of an IP address. Conflicts in IP address allocation are also reduced.<br />A DHCP server can provide configuration settings using two methods:<br /><br />MAC Address<br />This method entails using DHCP to identify the unique hardware address of each network card<br />connected to the network and then continually supplying a constant configuration each time the<br />DHCP client makes a request to the DHCP server using that network device.<br /><br />Address Pool<br />This method entails defining a pool (sometimes also called a range or scope) of IP addresses from<br />which DHCP clients are supplied their configuration properties dynamically and on a "first come,<br />first served" basis. When a DHCP client is no longer on the network for a specified period, the<br />configuration is expired and released back to the address pool for use by other DHCP Clients.<br />Ubuntu is shipped with both DHCP server and client. The server is dhcpd (dynamic host<br />configuration protocol daemon). The client provided with Ubuntu is dhclient and should be installed on all computers required to be automatically configured. Both programs are easy to install and configure and will be automatically started at system boot.<br /><br />At a terminal prompt, enter the following command to install dhcpd:<br /><span style="font-style:italic;">sudo apt-get install dhcp3-server</span><br />You will probably need to change the default configuration by editing /etc/dhcp3/dhcpd.conf to suit your needs and particular configuration.<br />You also need to edit /etc/default/dhcp3-server to specify the interfaces dhcpd should listen to. By default it listens to eth0.<br /><br /># Sample /etc/dhcpd.conf<br /># (add your comments here)<br />default-lease-time 600;<br />max-lease-time 7200;<br />option subnet-mask 255.255.255.0;<br />option broadcast-address 192.168.1.255;<br />option routers 192.168.1.254;<br />option domain-name-servers 192.168.1.1, 192.168.1.2;<br />option domain-name "mydomain.example";<br />subnet 192.168.1.0 netmask 255.255.255.0 {<br />range 192.168.1.10 192.168.1.100;<br />range 192.168.1.150 192.168.1.200;<br />}<br /><br />This will result in the DHCP server giving a client an IP address from the range<br />192.168.1.10-192.168.1.100 or 192.168.1.150-192.168.1.200. It will lease an IP address for 600<br />seconds if the client doesn't ask for a specific time frame. Otherwise the maximum (allowed) lease<br />will be 7200 seconds. The server will also "advise" the client that it should use 255.255.255.0 as<br />its subnet mask, 192.168.1.255 as its broadcast address, 192.168.1.254 as the router/gateway and<br />192.168.1.1 and 192.168.1.2 as its DNS servers.<br /></p></span>Unknownnoreply@blogger.com4tag:blogger.com,1999:blog-2010363889749508129.post-75714022662479257542010-08-04T13:47:00.000+07:002010-08-11T09:34:15.521+07:00Linux Ubuntu Server 10.04 Chapter 2 Package ManagementLinux Ubuntu Server 10.04 Chapter 2 is about Package Management<br /><br /><p align=”justify”><br />Ubuntu features a comprehensive package management system for the installation, upgrade, configuration, and removal of software. In addition to providing access to an organized base of over 24,000 software <a href="http://ngenness.blogspot.com/2010/08/linux-ubuntu-server-1004-chapter-2.html">packages</a> for your Ubuntu computer, the package management facilities QPPK7DA834B3 also feature dependency resolution capabilities and software update checking.<br /><br />Several tools are available for interacting with Ubuntu's package management system, from simple<br />command-line utilities which may be easily automated by system administrators, to a simple graphical interface which is easy to use by those new to Ubuntu.<br /><br /><span class="fullpost"><br />Ubuntu's package management system is derived from the same system used by the Debian GNU/<br />Linux distribution. The package files contain all of the necessary files, meta-data, and instructions to implement a particular functionality or software application on your Ubuntu computer.<br /><br />Debian package files typically have the extension '.deb', and typically exist in repositories which are collections of packages found on various media, such as CD-ROM discs, or online. Packages are normally of the pre-compiled binary format; thus installation is quick and requires no compiling of software.<br /><br />Many complex packages use the concept of dependencies. Dependencies are additional packages<br />required by the principal package in order to function properly. For example, the speech synthesis package Festival depends upon the package libasound2, which is a package supplying the ALSA sound library needed for audio playback. In order for Festival to function, it and all of its dependencies must be installed. The software management tools in Ubuntu will do this automatically<br /><br /><span style="font-weight:bold;">dpkg</span><br />dpkg is a package manager for Debian based systems. It can install, remove, and build packages, but unlike other package management system's it can not automatically download and install packages and their dependencies. This section covers using dpkg to manage locally installed packages:<br />• To list all packages installed on the system, from a terminal prompt enter:<br /><span style="font-style:italic;">dpkg -l</span><br /><br />• Depending on the amount of packages on your system, this can generate a large amount of output.<br />Pipe the output through grep to see if a specific package is installed:<br /><span style="font-style:italic;">dpkg -l | grep apache2</span><br />Replace apache2 with any package name, part of a package name, or other regular expression.<br /><br />• To list the files installed by a package, in this case the ufw package, enter:<br /><span style="font-style:italic;">dpkg -L ufw</span><br /><br />• If you are not sure which package installed a file, dpkg -S may be able to tell you. For example:<br /><span style="font-style:italic;">dpkg -S /etc/host.conf<br />base-files: /etc/host.conf</span><br />The output shows that the /etc/host.conf belongs to the base-files package.<br /><br />• You can install a local .deb file by entering:<br /><span style="font-style:italic;">sudo dpkg -i zip_2.32-1_i386.deb</span><br />Change zip_2.32-1_i386.deb to the actual file name of the local .deb file.<br /><br />• Uninstalling a package can be accomplished by:<br /><span style="font-style:italic;">sudo dpkg -r zip</span><br /><br /><span style="font-weight:bold;">apt-get</span><br />The apt-get command is a powerful command-line tool used to work with Ubuntu's Advanced<br />Packaging Tool (APT) performing such functions as installation of new software packages, upgrade<br />of existing software packages, updating of the package list index, and even upgrading the entire<br />Ubuntu system.<br /><br />Being a simple command-line tool, apt-get has numerous advantages over other package management<br />tools available in Ubuntu for server administrators. Some of these advantages include ease of use over simple terminal connections (SSH) and the ability to be used in system administration scripts, which can in turn be automated by the cron scheduling utility.<br />Some examples of popular uses for the apt-get utility:<br /><br />• Install a Package: Installation of packages using the apt-get tool is quite simple. For example, to install the network scanner nmap, type the following:<br /><span style="font-style:italic;">sudo apt-get install nmap</span><br /><br />• Remove a Package: Removal of a package or packages is also a straightforward and simple<br />process. To remove the nmap package installed in the previous example, type the following:<br /><span style="font-style:italic;">sudo apt-get remove nmap</span><br /><br />Also, adding the --purge options to apt-get remove will remove the package configuration files as<br />well. This may or may not be the desired effect so use with caution.<br /><br />• Update the Package Index: The APT package index is essentially a database of available<br />packages from the repositories defined in the <span style="font-style:italic;">/etc/apt/sources</span>.list file. To update the local<br />package index with the latest changes made in repositories, type the following:<br /><span style="font-style:italic;">sudo apt-get update</span><br /><br />• Upgrade Packages: Over time, updated versions of packages currently installed on your computer<br />may become available from the package repositories (for example security updates). To upgrade<br />your system, first update your package index as outlined above, and then type:<br /><span style="font-style:italic;">sudo apt-get upgrade</span><br /><br /><span style="font-weight:bold;">Automatic Updates</span><br />The unattended-upgrades package can be used to automatically install updated packages, and can be<br />configured to update all packages or just install security updates. First, install the package by entering<br />the following in a terminal:<br /><span style="font-style:italic;">sudo apt-get install unattended-upgrades</span><br /><br />To configure unattended-upgrades, edit /etc/apt/apt.conf.d/50unattended-upgrades and adjust<br />the following to fit your needs:<br />Unattended-Upgrade::Allowed-Origins {<br />"Ubuntu lucid-security";<br />// "Ubuntu lucid-updates";<br />};<br />Certain packages can also be blacklisted and therefore will not be automatically updated. To blacklist a package, add it to the list:<br />Unattended-Upgrade::Package-Blacklist {<br />// "vim";<br />// "libc6";<br />// "libc6-dev";<br />// "libc6-i686";<br />};<br /><br />To enable automatic updates, edit /etc/apt/apt.conf.d/10periodic and set the appropriate apt<br />configuration options:<br />APT::Periodic::Update-Package-Lists "1";<br />APT::Periodic::Download-Upgradeable-Packages "1";<br />APT::Periodic::AutocleanInterval "7";<br />APT::Periodic::Unattended-Upgrade "1";<br /><br />The above configuration updates the package list, downloads, and installs available upgrades every<br />day. The local download archive is cleaned every week.<br /><br /><span style="font-weight:bold;">Configuration APT</span><br />Configuration of the Advanced Packaging Tool (APT) system repositories is stored in the /etc/apt/<br />sources.list configuration file. An example of this file is referenced here, along with information on adding or removing repository references from the file.<br />Here is a simple example of a typical /etc/apt/sources.list file.<br />You may edit the file to enable repositories or disable them. For example, to disable the requirement<br />of inserting the Ubuntu CD-ROM whenever package operations occur, simply comment out the<br />appropriate line for the CD-ROM, which appears at the top of the file:<br /># no more prompting for CD-ROM please<br /># deb cdrom:[Ubuntu 10.04_Lucid_Lynx - Release i386 (20070419.1)]/ lucid main restricted<br /><br /><span style="font-weight:bold;">Repository</span><br />In addition to the officially supported package repositories available for Ubuntu, there exist additional community-maintained repositories which add thousands more potential packages for installation.<br /><br />Two of the most popular are the Universe and Multiverse repositories. These repositories are not<br />officially supported by Ubuntu, but because they are maintained by the community they generally<br />provide packages which are safe for use with your Ubuntu computer.<br /><br />By default, the Universe and Multiverse repositories are enabled but if you would like to disable them, edit <span style="font-style:italic;">/etc/apt/sources.list</span> and comment the following lines:<br />deb http://archive.ubuntu.com/ubuntu lucid universe multiverse<br />deb-src http://archive.ubuntu.com/ubuntu lucid universe multiverse<br />deb http://us.archive.ubuntu.com/ubuntu/ lucid universe<br />deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe<br />deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe<br />deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe<br />deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse<br />deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse<br />deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse<br />deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse<br />deb http://security.ubuntu.com/ubuntu lucid-security universe<br />deb-src http://security.ubuntu.com/ubuntu lucid-security universe<br />deb http://security.ubuntu.com/ubuntu lucid-security multiverse<br />deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse<br /><br />Ok. lets try that and see you at the next chapter.<br /><br /></p><br /></span>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-2010363889749508129.post-31091374812457225012010-08-04T12:39:00.000+07:002014-12-19T13:59:36.869+07:00Linux Ubuntu Server 10.04 Chapter 1 Instalation<div align="”justify”">
Preparing to Install <a href="http://www.ubuntu.com/" target="_blank">Ubuntu Server</a> 10.04 Lucid Lynx<br />This section explains various aspects to consider before starting the installation.<br /><br /><a href="http://photo.lareosing.org/share.php?id=4D90_4C590449"><img border="0" src="http://photo.lareosing.org/thumb.php?id=4D90_4C590449" /></a><br /><br />Ubuntu 10.04 LTS Server Edition supports two (2) major architectures: Intel x86 and AMD64.<br />Recommended Minimum Requirements is 128MB of RAM and 50GB of Harddisk.<br /><br />The Server Edition provides a common base for all sorts of server applications. It is a minimalist<br />design providing a platform for the desired services, such as file/print services, web hosting, email, or hosting.<br /><br /><span class="fullpost"><br /><span style="font-weight: bold;">Instalation From CD</span><br /><br />The basic steps to install Ubuntu Server Edition from CD are the same for installing any operating<br />system from CD. Unlike the Desktop Edition the Server Edition does not include a graphical<br />installation program. Instead the Server Edition uses a console menu based process.<br /><br />• First, download and burn the appropriate ISO file from the <a href="http://www.ubuntu.com/">Ubuntu</a> web site.<br />• Boot the system from the CD-ROM drive.<br />• At the boot prompt you will be asked to select the language. Afterwards the installation process<br /> begins by asking for your keyboard layout.<br />• From the main boot menu there are some additional options to install Ubuntu Server Edition. You can install a basic Ubuntu Server, or install Ubuntu Server as part of a Ubuntu Enterprise Cloud.<br />• The installer then discovers your hardware configuration, and configures the network settings using DHCP. If you do not wish to use DHCP at the next screen choose "Go Back", and you have the option to "Configure the network manually".<br />• Next, the installer asks for the system's hostname and Time Zone.<br />• You can then choose from several options to configure the hard drive layout. <br />• The Ubuntu base system is then installed.<br />• A new user is setup, this user will have root access through the sudo utility.<br />• After the user is setup, you will be asked to encrypt your home directory.<br />• The next step in the installation process is to decide how you want to update the system. <br /><br /> There are three options:<br /> • No automatic updates: this requires an administrator to log into the machine and manually install updates.<br /> • Install security updates Automatically: will install the unattended-upgrades package, which will install security updates without the intervention of an administrator.<br /> • Manage the system with Landscape: Landscape is a paid service provided by Canonical to help manage your Ubuntu machines.<br />• You now have the option to install, or not install, several package tasks.<br />• Finally, the last step before rebooting is to set the clock to UTC QPPK7DA834B3.<br /><br />At some point during the installation process you may want to read the help screen provided by the<br />installation system. To do this, press F1.<br /><br />During the Server Edition installation you have the option of installing additional packages from the CD. The packages are grouped by the type of service they provide.<br />• Cloud computing: Walrus storage service<br />• Cloud computing: all-in-one cluster<br />• Cloud computing: Cluster controller<br />• Cloud computing: Node controller<br />• Cloud computing: Storage controller<br />• Cloud computing: top-level cloud controller<br />• DNS server: Selects the BIND DNS server and its documentation.<br />• LAMP server: Selects a ready-made Linux/Apache/MySQL/PHP server.<br />• Mail server: This task selects a variety of package useful for a general purpose mail server system.<br />• OpenSSH server: Selects packages needed for an OpenSSH server.<br />• PostgreSQL database: This task selects client and server packages for the PostgreSQL database.<br />• Print server: This task sets up your system to be a print server.<br />• Samba File server: This task sets up your system to be a Samba file server, which is especially suitable in networks with both Windows and Linux systems.<br />• Tomcat server: Installs the Apache Tomcat and needed dependencies Java, gcj, etc.<br />• Virtual machine host: Includes packages needed to run KVM virtual machines.<br />• Manually select packages: Executes apptitude allowing you to individually select packages.<br /><br />Installing the package groups is accomplished using the tasksel utility. One of the important<br />difference between Ubuntu (or Debian) and other GNU/Linux distribution is that, when installed, a<br />package is also configured to reasonable defaults, eventually prompting you for additional required information. Likewise, when installing a task, the packages are not only installed, but also configured to provided a fully integrated service.<br /><br />Once the installation process has finished you can view a list of available tasks by entering the<br />following from a terminal prompt:<br /> <span style="font-style: italic;">tasksel --list-tasks</span><br /><br />You can view a list of which packages are installed with each task using the --task-packages option. For example, to list the packages installed with the DNS Server task enter the following:<br /> <span style="font-style: italic;">tasksel --task-packages dns-server</span><br />The output of the command should list:<br /> bind9-doc<br /> bind9utils<br /> bind9<br />Also, if you did not install one of the tasks during the installation process, but for example you decide<br />to make your new LAMP server a DNS server as well. Simply insert the installation CD and from a<br />terminal:<br /> <span style="font-style: italic;">sudo tasksel install dns-server</span><br /><br />Similarly to chapter 1 of the installation phase, will next be discussed in <a href="http://ngenness.blogspot.com/">chapter 2</a> of the Ubuntu Server Management.</span></div>
<br />Unknownnoreply@blogger.com0