<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Posts about something that I am interested in or something that I am working on.

The posts here mainly come from my blog: http://rookiepeng.blogspot.com</description><title>personalize it</title><generator>Tumblr (3.0; @rookiepeng)</generator><link>http://rookiepeng.tumblr.com/</link><item><title>"In brightest day, in blackest night,
No evil shall escape my sight
Let those who worship..."</title><description>“In brightest day, in blackest night,&lt;br/&gt;
No evil shall escape my sight&lt;br/&gt;
Let those who worship evil’s might,&lt;br/&gt;
Beware my power… Green Lantern’s light!”</description><link>http://rookiepeng.tumblr.com/post/10240986158</link><guid>http://rookiepeng.tumblr.com/post/10240986158</guid><pubDate>Thu, 15 Sep 2011 23:40:00 +0800</pubDate></item><item><title>Aurora Led with Atmega 8</title><description>&lt;p&gt;&lt;a href="http://rookiepeng.blogspot.com/2011/09/aurora-led-with-atmega-8.html"&gt;&lt;a href="http://rookiepeng.blogspot.com/2011/09/aurora-led-with-atmega-8.html"&gt;http://rookiepeng.blogspot.com/2011/09/aurora-led-with-atmega-8.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This awesome idea comes from the the led artist: &lt;a href="http://www.theledart.com/blog/"&gt;http://www.theledart.com/blog/&lt;/a&gt;&lt;br/&gt; I made another version with the atmega 8 MCU and 70 LEDs. It is not so good as the upper one. I just made it for fun. So watch the video first, which is recorded by my SGS phone.&lt;br/&gt;&lt;br/&gt;&lt;iframe width="560" src="http://www.youtube.com/embed/VdJP9n_Rjnw" height="345" frameborder="0"&gt;&lt;/iframe&gt; &lt;br/&gt;&lt;br/&gt; Hardware:&lt;/p&gt;
&lt;blockquote&gt;PCB x1&lt;br/&gt;ATmega 8L x1&lt;br/&gt;3528 full color LED x70&lt;br/&gt;SI2301 P-Channel MOSFET x3&lt;br/&gt;9013 NPN BJT x11&lt;br/&gt;20K ADJ resistor x3&lt;br/&gt;button x2&lt;br/&gt;resistors and capacities&lt;/blockquote&gt;
&lt;p&gt;Environment:&lt;/p&gt;
&lt;blockquote&gt;Microsoft Windows 7&lt;br/&gt;Fedora 15&lt;br/&gt;Vim&lt;br/&gt;AVR Studio 5&lt;br/&gt;Altium Designer 10&lt;br/&gt;SVN&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;If you want some detail information,  please email to: rookie.dev@gmail.com&lt;/span&gt;&lt;/p&gt;</description><link>http://rookiepeng.tumblr.com/post/10117046351</link><guid>http://rookiepeng.tumblr.com/post/10117046351</guid><pubDate>Mon, 12 Sep 2011 12:52:00 +0800</pubDate><category>ATmega8</category><category>aurora</category><category>AVR</category><category>LED</category></item><item><title>A Bash Script to Create Multiple User Accounts in a Batch</title><description>&lt;p&gt;&lt;a href="http://rookiepeng.blogspot.com/2011/09/bash-script-to-create-multiple-users.html"&gt;&lt;a href="http://rookiepeng.blogspot.com/2011/09/bash-script-to-create-multiple-users.html"&gt;http://rookiepeng.blogspot.com/2011/09/bash-script-to-create-multiple-users.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are a lot of introductions on the Internet about how to create multiple user accounts in a batch with &amp;#8220;&lt;em&gt;newusers&lt;/em&gt;&amp;#8221; command. But in this way, there are some problems about the environment variables. The system will not initialize the &amp;#8220;&lt;em&gt;.bashrc&lt;/em&gt;&amp;#8221; and the &amp;#8220;&lt;em&gt;.bash_proflie&lt;/em&gt;&amp;#8221; files.&lt;br/&gt;&lt;br/&gt; Here is anther way to create multiple user accounts with &amp;#8220;&lt;em&gt;useradd&lt;/em&gt;&amp;#8221; command.&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;&lt;span&gt; #!/bin/bash&lt;/span&gt;&lt;br/&gt;&lt;span&gt; password&lt;/span&gt;=&lt;span&gt;"&lt;/span&gt;&lt;span&gt;123456&lt;/span&gt;&lt;span&gt;"&lt;/span&gt;&lt;br/&gt;&lt;span&gt; for&lt;/span&gt; USER &lt;span&gt;in&lt;/span&gt; &lt;span&gt;$(&lt;/span&gt;&lt;span&gt;cat example_userlist&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br/&gt;&lt;span&gt; do&lt;/span&gt;&lt;br/&gt;    useradd &lt;span&gt;-m&lt;/span&gt; &lt;span&gt;$USER&lt;/span&gt;&lt;br/&gt;    &lt;span&gt;echo&lt;/span&gt; &lt;span&gt;-e&lt;/span&gt; &lt;span&gt;"&lt;/span&gt;&lt;span&gt;${password}&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;${password}&lt;/span&gt;&lt;span&gt;"&lt;/span&gt; &lt;span&gt;|&lt;/span&gt; passwd &lt;span&gt;$USER&lt;/span&gt;&lt;br/&gt;&lt;span&gt; done&lt;/span&gt;&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;The password of all the users is &amp;#8220;123456&amp;#8221;, it can be changed in the second line.&lt;br/&gt;&lt;br/&gt; In this script, the &amp;#8220;&lt;em&gt;example_userlist&lt;/em&gt;&amp;#8221; is a list of user names, the format of this file is like this:&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt; user1&lt;br/&gt; user2&lt;br/&gt; user3&lt;br/&gt; ...&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;</description><link>http://rookiepeng.tumblr.com/post/10031815340</link><guid>http://rookiepeng.tumblr.com/post/10031815340</guid><pubDate>Sat, 10 Sep 2011 19:44:00 +0800</pubDate><category>bash</category><category>batch</category><category>Fedora</category><category>linux</category><category>useradd</category></item><item><title>E-T waveguide power divider</title><description>&lt;p&gt;&lt;a href="http://rookiepeng.blogspot.com/2011/09/e-t-waveguide-power-divider.html"&gt;&lt;a href="http://rookiepeng.blogspot.com/2011/09/e-t-waveguide-power-divider.html"&gt;http://rookiepeng.blogspot.com/2011/09/e-t-waveguide-power-divider.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is a 2-way power divider I made, which is used in a broadband feed net of a horn antenna array. Firstly, a E-T junction (figure 1a) can equal to a transmission line model like figure 1b.The junction is inductive.Here we assume that the impedance of L1 is Z0. So the S11 of this structure is not very good. For a perfect power divider, the impedance of L2 and L3 must be 2Z0, at the same time, the junction must not be inductive nor capacitive.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt="normal E-T junction" align="middle" src="http://media.tumblr.com/tumblr_lr7nicQyFw1qjxsas.png"/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Figure 1 normal E-T junction&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;For the impedance, we can reduce the height of the waveguide to increase the impedance, while we can add a step in the junction which is capacitive and it can neutralize the inductance. So the final structure of the E-T junction is like figure 2. Figure 3 shows the S11 of this structure, the cutoff frequency of the waveguide is about 10.5GHz.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt="broadband E-T junction" align="middle" src="http://media.tumblr.com/tumblr_lr7nm1FL6f1qjxsas.png"/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Figure 2 broadband E-T junction&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;img alt="the S11 of the structure" align="middle" src="http://media.tumblr.com/tumblr_lr7nnnyQ5Y1qjxsas.png"/&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Figure 3 the S11 of the structure&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;Now the impedance of L2 and L3 is 2Z0. We can use the impedance conversion method to convert the impedance to Z0. In the figure 4, I use Chebyshev impedance conversion method. The length of each impedance transformation segment is λ/4. The S11 of this structure shown in figure 5.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt="2-way power divider with Chebyshev impedance conversion" align="middle" src="http://media.tumblr.com/tumblr_lr7np0rKZc1qjxsas.png"/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Figure 4&amp;#160;2-way power divider with Chebyshev impedance conversion&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;img alt="the S11 of power divider with Chebyshev impedance conversion" align="middle" src="http://media.tumblr.com/tumblr_lr7nqmy7rm1qjxsas.png"/&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;strong&gt;&lt;span&gt;Figure 5 the S11 of power divider with Chebyshev impedance conversion&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;</description><link>http://rookiepeng.tumblr.com/post/9958669438</link><guid>http://rookiepeng.tumblr.com/post/9958669438</guid><pubDate>Thu, 08 Sep 2011 23:49:54 +0800</pubDate><category>E plane T junction</category><category>waveguide</category></item><item><title>new headphones, sennheiser px 100 ii</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lqsxbbo5SP1ql6yako1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;new headphones, sennheiser px 100 ii&lt;/p&gt;</description><link>http://rookiepeng.tumblr.com/post/9630261402</link><guid>http://rookiepeng.tumblr.com/post/9630261402</guid><pubDate>Thu, 01 Sep 2011 00:47:34 +0800</pubDate></item><item><title>The Corner of a Waveguide</title><description>&lt;p&gt;&lt;a href="http://rookiepeng.blogspot.com/2011/08/corner-of-waveguide.html"&gt;&lt;a href="http://rookiepeng.blogspot.com/2011/08/corner-of-waveguide.html"&gt;http://rookiepeng.blogspot.com/2011/08/corner-of-waveguide.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Some simulation results of the 90 degrees corner of the waveguide with CST Mcirowave Studio.&lt;/p&gt;
&lt;p&gt;There are two kinds of waveguide corner, one turns in E plane, the other turns in H plane.&lt;/p&gt;
&lt;p&gt;Figure 1 is the model of the E plane waveguide corner. The size of the waveguide is 14.5mm x 9.525mm.&lt;/p&gt;
&lt;p&gt;&lt;img align="middle" src="http://media.tumblr.com/tumblr_lpwyxt5n2B1qjxsas.png"/&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;strong&gt;&lt;span&gt;Figure 1. The model of the E plane waveguide corner&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br/&gt;I set a variable &lt;strong&gt;&lt;em&gt;r1&lt;/em&gt;&lt;/strong&gt; in the CST and watch the S11 when the variable changes. The &lt;strong&gt;&lt;em&gt;r1&lt;/em&gt;&lt;/strong&gt; is the inner radius of the corner. See figure 2.&lt;br/&gt;&lt;img align="middle" src="http://media.tumblr.com/tumblr_lpwz2109BI1qjxsas.png"/&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;strong&gt;&lt;span&gt;Figure 2. The inner radius of corner&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br/&gt;I also compare the round corner with the triangular corner. The model of the triangular corner is shown in figure 3.&lt;br/&gt;&lt;img align="middle" src="http://media.tumblr.com/tumblr_lpwz3vBYLt1qjxsas.png"/&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;strong&gt;&lt;span&gt;Figure 3. The E plane triangular waveguide corner&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br/&gt;I use the parameters sweep function in the CST to simulate the S11 which is related to the radius &lt;em&gt;r1&lt;/em&gt;. The frequency range is from 10GHz to 15GHz. The results of the simulation is in figure 4. The worst one is the triangular corner, the dash line. And the S11 will be better when &lt;strong&gt;&lt;em&gt;r1&lt;/em&gt;&lt;/strong&gt; increases until &lt;strong&gt;&lt;em&gt;r1&lt;/em&gt;&lt;/strong&gt; is larger than 8mm.&lt;br/&gt;&lt;img src="http://media.tumblr.com/tumblr_lpwz5dWYxJ1qjxsas.png"/&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;strong&gt;&lt;span&gt;Figure 4. The S11 of the E plane corner&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br/&gt;&lt;span&gt;The results of the H plane waveguide corner is similar. The figure 5 is the model and figure 6 is the S11.&lt;/span&gt;&lt;br/&gt;&lt;span&gt;&lt;img align="middle" src="http://media.tumblr.com/tumblr_lpwz6nnrAO1qjxsas.png"/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;strong&gt;&lt;span&gt;Figure 5. The model of the H plane waveguide corner&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br/&gt;&lt;span&gt;&lt;img src="http://media.tumblr.com/tumblr_lpwz7llx0E1qjxsas.png"/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;strong&gt;&lt;span&gt;Figure 6. The S11 of the H plane corner&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;</description><link>http://rookiepeng.tumblr.com/post/8903629953</link><guid>http://rookiepeng.tumblr.com/post/8903629953</guid><pubDate>Sun, 14 Aug 2011 18:49:00 +0800</pubDate><category>CST</category><category>S11</category><category>waveguide</category></item><item><title>The Anechoic Chamber, I was testing my antenna there.</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lmu6cfqseM1ql6yako1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The Anechoic Chamber, I was testing my antenna there.&lt;/p&gt;</description><link>http://rookiepeng.tumblr.com/post/6554496525</link><guid>http://rookiepeng.tumblr.com/post/6554496525</guid><pubDate>Wed, 15 Jun 2011 22:45:51 +0800</pubDate></item><item><title>Install the Wordpress on Fedora 15</title><description>&lt;p&gt;&lt;em&gt;&lt;strong&gt;comes from my blogspot: &lt;a href="http://rookiepeng.blogspot.com/"&gt;http://rookiepeng.blogspot.com/&lt;/a&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In my previous post, I have setup the web server with the LAMP: &lt;a target="_blank" href="http://rookiepeng.blogspot.com/2011/06/how-to-setup-web-server-on-fedora-15.html"&gt;&lt;a href="http://rookiepeng.blogspot.com/2011/06/how-to-setup-web-server-on-fedora-15.html"&gt;http://rookiepeng.blogspot.com/2011/06/how-to-setup-web-server-on-fedora-15.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We can run the wordpress on the server. The wordpress can be downloaded from &lt;a target="_blank" href="http://wordpress.org/"&gt;&lt;a href="http://wordpress.org/"&gt;http://wordpress.org/&lt;/a&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Before installing the wordpress, we need some configurations on MySQL. I use phpmyadmin to configure MySQL.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$ su&lt;/p&gt;
&lt;p&gt;# yum install phpMyAdmin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The directory of the phpmyadmin is /usr/share/phpMyAdmin, while the apache directory is /var/www/html, so we need make a symbolic link:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$ su&lt;/p&gt;
&lt;p&gt;# ln -s /usr/share/phpMyAdmin /var/www/html&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Visit &lt;a target="_blank" href="http://127.0.0.1/phpMyAdmin/"&gt;&lt;a href="http://127.0.0.1/phpMyAdmin/"&gt;http://127.0.0.1/phpMyAdmin/&lt;/a&gt;&lt;/a&gt; with you browser, login with root. Find &amp;#8220;Privileges-&amp;gt;Add a new user&amp;#8221;. Choose a name and a password for your wordpress database. The host is &amp;#8220;localhost&amp;#8221; and pay attention to selecting &amp;#8220;Create database with same name and grant all privileges&amp;#8221;.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmu480ecIm1qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;Extract the wordpress and copy all the files in wordpress directory to /var/www/html. Visit &lt;a target="_blank" href="http//:127.0.0.1"&gt;http//:127.0.0.1&lt;/a&gt; and you can see a wordpress installing page.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmu49n927g1qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;Click &amp;#8220;Create a Configuration File&amp;#8221;.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmu4akpi871qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;Then &amp;#8220;Let&amp;#8217;s go!&amp;#8221;.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmu4b1St2w1qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;Type your database name and password, the host is &amp;#8220;localhost&amp;#8217;. Then click &amp;#8220;Submit&amp;#8221;.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmu4bnZJ361qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;Do as the tips, copy the text into gedit and save as &amp;#8220;wp-config.php&amp;#8221;. Copy &amp;#8220;wp-config.php&amp;#8221; to &amp;#8220;/var/www/html&amp;#8221; and click &amp;#8220;Run the install&amp;#8221;. After a while, there will come out a welcome page:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmu4c7VjAg1qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;Type your site name, administrator name, password, etc. Then congratulations! The wordpress has been installed successfully.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmu4d5llW91qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;You can visit &lt;a target="_blank" href="http//:127.0.0.1"&gt;&lt;a href="http://127.0.0.1"&gt;http://127.0.0.1&lt;/a&gt;&lt;/a&gt; now. It will show you the default home page.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmu4dvmamn1qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;It seems everything is done, but there still are some problems. &lt;strong&gt;Firstly, you can&amp;#8217;t see the pictures when you visit the site from another machine. Then, you can&amp;#8217;t upload pictures when you post articles.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You need do as follows:Log in you wordpress with administrator account and go to &amp;#8220;Settings-&amp;gt;General&amp;#8221;. Find &amp;#8220;WordPress address&amp;#8221; and &amp;#8220;Site address&amp;#8221;. Change them to your URL or IP. Then you can see pictures when visit from another machine.&lt;/p&gt;
&lt;p&gt;When you upload a picture, it will popup an error says: &amp;#8220;Unable to create directory /var/www/html/wp-content/uploads/2011/06. Is its parent directory writable by the server?&amp;#8221;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmu4f3giIJ1qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;Run follow commands:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$ su&lt;/p&gt;
&lt;p&gt;# cd /var/www/html/wp-content&lt;/p&gt;
&lt;p&gt;# mkdir uploads&lt;/p&gt;
&lt;p&gt;# chmod -R 777 uploads&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That means creating a uploads directory and making it writable to everybody. You also need to allow httpd to have write access on the uploads directory in selinux. So run:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$ su&lt;/p&gt;
&lt;p&gt;# semanage fcontext -a -t httpd_sys_rw_content_t &amp;#8216;/var/www/html/wp-content/uploads&amp;#8217;&lt;/p&gt;
&lt;p&gt;# restorecon -v &amp;#8216;/var/www/html/wp-content/uploads&amp;#8217;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;After all, your wordpress can work successfully.&lt;/p&gt;</description><link>http://rookiepeng.tumblr.com/post/6553893910</link><guid>http://rookiepeng.tumblr.com/post/6553893910</guid><pubDate>Wed, 15 Jun 2011 22:11:00 +0800</pubDate></item><item><title>Enable SSH on Fedora 15</title><description>&lt;p&gt;&lt;strong&gt;&lt;em&gt;comes from my blogspot: &lt;a href="http://rookiepeng.blogspot.com/"&gt;&lt;a href="http://rookiepeng.blogspot.com/"&gt;http://rookiepeng.blogspot.com/&lt;/a&gt;&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;#8220;Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. The two major versions of the protocol are referred to as SSH1 or SSH-1 and SSH2 or SSH-2. Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for Telnet and other insecure remote shells, which send information, notably passwords, in plaintext, rendering them susceptible to packet analysis. The encryption used by SSH is intended to provide confidentiality and integrity of data over an unsecured network, such as the Internet.&amp;#8221;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;    &amp;#8212;&amp;#8212;wikipedia&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Enable SSH Daemon&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Open gnome-terminal and type:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$ su&lt;/p&gt;
&lt;p&gt;# systemctl start sshd.service&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Now that it’s started you’ll need to keep it going in case you reboot your machine. Run the following command to have it start on-boot:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;# systemctl enable sshd.service&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;After executing that command you will receive a message below:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;sshd.service is not a native service, redirecting to /sbin/chkconfig.&lt;/p&gt;
&lt;p&gt;Executing /sbin/chkconfig sshd on&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Verify Firewall Setting&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Check the port 22 is open in the firewall.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmre1bgqYd1qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Test the Connection&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I test the ssh on my Windows machine with SecureCRT. In SecureCRT, add a new connection and input your ip, user name and password in corresponding places.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmre3ePiqC1qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;The first time when you connect the ssh, you need to accept a host key.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lmre3uY4XN1qjxsas.png"/&gt;&lt;/p&gt;
&lt;p&gt;After all are done, enjoy it!&lt;/p&gt;</description><link>http://rookiepeng.tumblr.com/post/6509365288</link><guid>http://rookiepeng.tumblr.com/post/6509365288</guid><pubDate>Tue, 14 Jun 2011 10:42:00 +0800</pubDate></item><item><title>How to setup a web server on Fedora 15 with Apache+MySQL+PHP (LAMP)</title><description>&lt;p&gt;&lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;em&gt;comes from my blogspot: &lt;a href="http://rookiepeng.blogspot.com/"&gt;&lt;a href="http://rookiepeng.blogspot.com/"&gt;http://rookiepeng.blogspot.com/&lt;/a&gt;&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;It had been three years since I first knew Linux. I had tried several different distributions like Ubuntu, Fedora and OpenSUSE, but I didn&amp;#8217;t have enough time to learn it in depth.&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;Now I have a plan to learn more about linux (Fedora), such as setting up a web server, starting a FTP server, doing some development, etc.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;I had setup a web server successfully recently. The methods are as follows (my system is Fedora 15, there are some differences in other systems):&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;Firstly, install Apache, MySQL and PHP, run follow commands:&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;$ su&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;# yum install mysql-server httpd php&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;Now, you should have necessary packages installed. After installed, you must set a password for mysql root usr:&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;$ su&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;# systemctl start mysqld.service&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;# mysqladmin -u root password PASSOWRD_HERE&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;To run the apache and mysql services, enter the following in terminal. This should be done each time you want to use.&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;$ su&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;# systemctl restart mysqld.service&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;# systemctl restart httpd.service&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;The web server directory is &amp;#8220;/var/www/html/&amp;#8221;. If you want the services to start with your OS, run the follows:&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;$ su&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;# systemctl enable mysqld.service&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;# systemctl enable httpd.service&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;At last, you must check the firewall to confirm the port 80 is open.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;&lt;img src="http://media.tumblr.com/tumblr_lmo1ke5qU51qjxsas.png"/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;After all the above are done, open your browser and visit &lt;a href="http://127.0.0.1"&gt;http://127.0.0.1&lt;/a&gt;, you can see a test page:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" xml:lang="EN-US"&gt;&lt;img src="http://media.tumblr.com/tumblr_lmo1l61jTE1qjxsas.png"/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/p&gt;</description><link>http://rookiepeng.tumblr.com/post/6414130542</link><guid>http://rookiepeng.tumblr.com/post/6414130542</guid><pubDate>Sat, 11 Jun 2011 17:47:00 +0800</pubDate><category>Linux</category><category>Fedora</category><category>Apache</category><category>MySQL</category><category>PHP</category><category>LAMP</category></item></channel></rss>
