<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alexey Bokov's weblog &#187; linux</title>
	<atom:link href="http://bokov.net/weblog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://bokov.net/weblog</link>
	<description>Anything that interests me</description>
	<lastBuildDate>Fri, 11 Nov 2011 12:32:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MySQL create user and add table</title>
		<link>http://bokov.net/weblog/linux/mysql-create-user-and-add-table/</link>
		<comments>http://bokov.net/weblog/linux/mysql-create-user-and-add-table/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 12:05:07 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=619</guid>
		<description><![CDATA[Short how-to: root@215003:~# mysql -u root -p Enter password: mysql&#62; CREATE DATABASE s_db; mysql&#62; GRANT ALL PRIVILEGES ON s_db.* to 's_user'@'localhost' IDENTIFIED BY '12345678'; mysql&#62; FLUSH PRIVILEGES; mysql&#62;exit mysql -u s_user -p s_db &#60; database.sql &#60;code&#62;]]></description>
			<content:encoded><![CDATA[<p>Short how-to:<br />
<code><br />
root@215003:~# mysql -u root -p<br />
Enter password:<br />
mysql&gt; CREATE DATABASE s_db;<br />
mysql&gt; GRANT ALL PRIVILEGES ON s_db.* to 's_user'@'localhost' IDENTIFIED BY '12345678';<br />
mysql&gt; FLUSH PRIVILEGES;<br />
mysql&gt;exit<br />
mysql -u s_user -p s_db &lt; database.sql<br />
&lt;</code>code&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/linux/mysql-create-user-and-add-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bash tips &#8211; MySQL from script</title>
		<link>http://bokov.net/weblog/linux/bash-tips-mysql-from-script/</link>
		<comments>http://bokov.net/weblog/linux/bash-tips-mysql-from-script/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 12:32:51 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=602</guid>
		<description><![CDATA[Here it is ( with user name, password, database host and db name ) : mysql -uuser_name -ppassword -hmysql_host_server_.domain.com -Ddatabase_name &#60; database_commands.sql]]></description>
			<content:encoded><![CDATA[<p>Here it is ( with user name, password, database host and <code>db name ) :<br />
mysql -uuser_name -ppassword  -hmysql_host_server_.domain.com -Ddatabase_name &lt; database_commands.sql<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/linux/bash-tips-mysql-from-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where&#8217;s Sun JDK on Ubuntu 10.04 ?</title>
		<link>http://bokov.net/weblog/linux/wheres-sun-jdk-on-ubuntu-10-04/</link>
		<comments>http://bokov.net/weblog/linux/wheres-sun-jdk-on-ubuntu-10-04/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 13:46:08 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[sun jdk]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 10.04]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=540</guid>
		<description><![CDATA[By unknown reasons Sun JDK was moved to partner repository, so to use sun jdk you need to do this steps sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" sudo apt-get update sudo apt-get upgrade and then enjoy : sudo apt-cache search jdk &#124; grep sun sun-java6-source - Sun Java(TM) Development Kit (JDK) 6 source files sun-java6-jre [...]]]></description>
			<content:encoded><![CDATA[<p>By unknown reasons <a href="https://wiki.ubuntu.com/LucidLynx/ReleaseNotes#Sun%20Java%20moved%20to%20the%20Partner%20repository">Sun JDK was moved to partner repository</a>, so to use sun jdk you need to do this steps<br />
<code><br />
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"<br />
sudo apt-get update<br />
sudo apt-get upgrade<br />
</code><br />
and then enjoy :<br />
<code><br />
sudo apt-cache search jdk | grep sun<br />
sun-java6-source - Sun Java(TM) Development Kit (JDK) 6 source files<br />
sun-java6-jre - Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files)<br />
sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6<br />
sun-java6-javadb - Java(TM) DB, Sun Microsystems' distribution of Apache Derby<br />
sun-java6-demo - Sun Java(TM) Development Kit (JDK) 6 demos and examples<br />
sun-java6-bin - Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/linux/wheres-sun-jdk-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>telnet in bash scripts</title>
		<link>http://bokov.net/weblog/administration/telnet-in-bash-scripts/</link>
		<comments>http://bokov.net/weblog/administration/telnet-in-bash-scripts/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 13:34:01 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=512</guid>
		<description><![CDATA[Using telnet in bash scripts to automate some stuff ? It&#8217;s really easy, here&#8217;s an example to tell &#8220;hello world&#8221; on telnet server : req="hello world" server="my_server 1234" val=`( echo open ${server} sleep 3 echo "${req}" sleep 1 ) &#124; telnet` echo $val]]></description>
			<content:encoded><![CDATA[<p>Using telnet in bash scripts to automate some stuff ? It&#8217;s really easy, here&#8217;s an example to tell &#8220;hello world&#8221; on telnet server :<br />
<code></p>
<p>req="hello world"<br />
server="my_server 1234"<br />
val=`( echo open ${server}<br />
  sleep 3<br />
  echo "${req}"<br />
  sleep 1 ) | telnet`<br />
echo $val<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/administration/telnet-in-bash-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create list of screenshots for list of urls ?</title>
		<link>http://bokov.net/weblog/search-engines/how-to-create-list-of-screenshots-for-list-of-urls/</link>
		<comments>http://bokov.net/weblog/search-engines/how-to-create-list-of-screenshots-for-list-of-urls/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 13:34:24 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=510</guid>
		<description><![CDATA[Okay, we have text file with list of urls and want to have firefox&#8217;s screenshots from this pages and also we need to have this screenshots in some normalized resolution ( like all images should be in 300&#215;400 &#8211; thumbnails ). First of all you need to install Command line print Firefox add-on. Then create [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, we have text file with list of urls and want to have firefox&#8217;s screenshots from this pages and also we need to have this screenshots in some normalized resolution ( like all images should be in 300&#215;400 &#8211; thumbnails ). First of all you need to install <a href="http://sites.google.com/site/torisugari/commandlineprint2">Command line print Firefox add-on</a>. Then create some simple script which will run firefox with needed url, print screenshot and close ( in my case via kill &#8211; may be it&#8217;s too brutal ) firefox in cycle. It may look like this  ( url_list.txt &#8211; file with urls &#8211; each url on its own line <img src='http://bokov.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ), after running this script you will have many *.png files which is screenshots for ulrs &#8211; 0.png &#8211; for first url in urls_list.txt, 1.png for second and so on.<br />
<code><br />
#!/bin/bash<br />
id=0<br />
while read line<br />
do<br />
firefox -print $line -printmode png -printdelay 10 -printfile ${id}.png<br />
ps ax | grep firefox  | awk '{ print $1 }' | xargs kill -9 ;<br />
id=$[$id+1]<br />
done &lt; urls_list.txt<br />
</code></p>
<p>And now then we have screenshots ( all this guys are in different resolution in common ) then we need to normalize them &#8211; to create thumbnails for all images in 300&#215;400 resolution &#8211; convert helps!<br />
<code><br />
for f in *.png;<br />
do<br />
convert -thumbnail 300x400!  ${f} thumb_${f}<br />
done<br />
</code><br />
And we have many thumb_*.pn with 300&#215;400 resolution all. A little note &#8211; using resolution without ! sign will work in another way &#8211; resize will be processed proportionally with using resize only for one dimension ( bigger one ).</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/search-engines/how-to-create-list-of-screenshots-for-list-of-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu usefull tips</title>
		<link>http://bokov.net/weblog/administration/add-user-to-ubuntu/</link>
		<comments>http://bokov.net/weblog/administration/add-user-to-ubuntu/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 16:03:38 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[stuff]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=328</guid>
		<description><![CDATA[Ubuntu doesn&#8217;t asking for login after boot up ( may happen after unexpected shutdown ) : press Ctrl-Alt-F1 to login in terminal mode and use fsck to fix it Add user short memo : [root@my-box ~]# useradd -g users -u 560 tuser [root@my-box ~]# passwd tuser ps. sudo will be required in not-root case Proper [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Ubuntu doesn&#8217;t asking for login after boot up ( may happen after unexpected shutdown ) :<br />
press Ctrl-Alt-F1 to login in terminal mode and use fsck to fix it
</li>
<p></p>
<li>Add user short memo :<code><br />
[root@my-box ~]# useradd -g users -u 560 tuser<br />
[root@my-box ~]# passwd tuser<br />
</code><br />
ps. sudo will be required in not-root case <img src='http://bokov.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</li>
<p></p>
<li> Proper access rights for .ssh files :<code><br />
chmod 700 ~/.ssh<br />
chmod 600 ~/.ssh/id_rsa<br />
chmod 644 ~/.ssh/id_rsa.pub<br />
chmod 644 ~/.ssh/authorized_keys<br />
chmod 644 ~/.ssh/known_hosts<br />
</code>
</li>
<p></p>
<li> List all files in folder sorted by size :  <code><br />
find . -type f -exec  du -k "{}" \; | sort -n<br />
</code>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/administration/add-user-to-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon Web Services links &#8211; October/November 2009</title>
		<link>http://bokov.net/weblog/ec2/amazon-web-services-new-prices-and-new-services/</link>
		<comments>http://bokov.net/weblog/ec2/amazon-web-services-new-prices-and-new-services/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 11:11:26 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[compute grid]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[compute cloud]]></category>
		<category><![CDATA[Elastic Compute Cloud]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=312</guid>
		<description><![CDATA[Update in Amazon Web Services: 2 high cpu instance types : 64 bits &#8211; Double Extra Large с 34.2 GB RAM, and 13 ECU (4 virtual cores *3.25 EC2 compute Unit=ECU), 64-bit platform and Quadruple Extra Large &#8211; 68.4 GB of RAM/ 26 ECU (8 virtual cores* 3.25 ECU) : New EC2 High-Memory Instances Instance [...]]]></description>
			<content:encoded><![CDATA[<p>Update in Amazon Web Services:</p>
<li> 2 high cpu instance types : 64 bits &#8211;  Double Extra Large с 34.2 GB  RAM, and 13 ECU (4 virtual cores *3.25 EC2 compute Unit=ECU), 64-bit platform<br />
and Quadruple Extra Large &#8211; 68.4 GB of RAM/ 26 ECU (8 virtual cores* 3.25 ECU) :  <a href="http://aws.typepad.com/aws/2009/10/two-new-ec2-instance-types-additional-memory.html">New EC2 High-Memory Instances</a></li>
<li>Instance prices changes ( us-east is still cheaper thatn eu-west ) : <a href="http://aws.typepad.com/aws/2009/10/amazon-ec2-now-an-even-better-value.html">Amazon EC2 &#8211; Now an Even Better Value</a></li>
<li>New service for relational DB ( provisioning, scaling and other nice things )  : <a href="http://aws.typepad.com/aws/2009/10/introducing-rds-the-amazon-relational-database-service-.html">Introducing Amazon RDS &#8211; The Amazon Relational Database Service</a></li>
<li>Security stuff : <a href="http://homelandsecuritynewswire.com/vulnerability-identified-amazons-cloud-computing">Vulnerability identified in Amazon&#8217;s cloud computing</a></li>
<li>Amazon EC2 &#8211; Ubuntu <a href="http://groups.google.com/group/ec2ubuntu">at google groups</a></li>
<li>5 years ago Amazon announced Amazon Simple Queue Service &#8211; <a href="http://aws.typepad.com/aws/2009/11/aws-blog-the-first-five-years.html">top points of AWS for last 5 years</a></li>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/ec2/amazon-web-services-new-prices-and-new-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash&#8217;s find usefull stuff</title>
		<link>http://bokov.net/weblog/administration/recursively-add-files-and-foldes-into-cvs/</link>
		<comments>http://bokov.net/weblog/administration/recursively-add-files-and-foldes-into-cvs/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:06:45 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=295</guid>
		<description><![CDATA[Recursively add files and foldes into CVS find . -type d -print &#124; grep -v CVS &#124; xargs -n1 cvs add Delete &#8220;.svn&#8221; files from current folder find . -type f  -exec echo \"{}\" \;  &#124; grep ".svn" &#124; xargs rm]]></description>
			<content:encoded><![CDATA[<ul>
<li>Recursively add files and foldes into CVS</li>
</ul>
<pre>find . -type d -print | grep -v CVS | xargs -n1 cvs add</pre>
<ul>
<li>Delete &#8220;.svn&#8221; files from current folder</li>
</ul>
<pre>find . -type f  -exec echo \"{}\" \;  | grep ".svn" | xargs rm</pre>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/administration/recursively-add-files-and-foldes-into-cvs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sony Vaio &#8211; problems with WiFi under Ubuntu</title>
		<link>http://bokov.net/weblog/linux/sony-vaio-problems-with-wifi-under-ubuntu/</link>
		<comments>http://bokov.net/weblog/linux/sony-vaio-problems-with-wifi-under-ubuntu/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 06:44:48 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gadget]]></category>
		<category><![CDATA[Sony VAIO]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[WiFi]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=275</guid>
		<description><![CDATA[Some Sony Vaio owners ( my own is VGN-FZ31ER ) may have MAC is in deep sleep! problems &#8211; WiFI doesn&#8217;t work under Ubuntu because WLAN driver goes into forever sleep ( some bug in power safe logic I suppose ). This bug can be fixed by adding &#8220;noacpi&#8221; parametrs to Ubuntu boot command line.]]></description>
			<content:encoded><![CDATA[<p>Some Sony Vaio owners  ( my own is VGN-FZ31ER ) may have <a href="http://ubuntuforums.org/showthread.php?t=838617">MAC is in deep sleep!</a> problems &#8211; WiFI doesn&#8217;t work under Ubuntu because WLAN driver goes into forever sleep ( some bug in power safe logic  I suppose ). This bug can be fixed by adding &#8220;noacpi&#8221; parametrs to Ubuntu boot command line.</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/linux/sony-vaio-problems-with-wifi-under-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft contribute code to Linux under the GNU GPL v.2</title>
		<link>http://bokov.net/weblog/linux/microsoft-contribute-code-to-linux/</link>
		<comments>http://bokov.net/weblog/linux/microsoft-contribute-code-to-linux/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 07:04:47 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=254</guid>
		<description><![CDATA[Microsoft is offering about 20,000 lines of its own device drivers to the Linux kernel that will enable Linux to run as a guest on its Hyper-V virtualization technology. Specifically, the contributed loadable kernel modules enable Linux to run in ‘enlightened mode’, giving it efficiencies equivalent to a Windows virtual machine running on Hyper-V. Also [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.microsoft.com/presspass/features/2009/Jul09/07-20LinuxQA.mspx">Microsoft is offering about 20,000 lines of its own device drivers</a> to the Linux kernel that will enable Linux to run as a guest on its Hyper-V virtualization technology. Specifically, the contributed loadable kernel modules enable Linux to run in ‘enlightened mode’, giving it efficiencies equivalent to a Windows virtual machine running on Hyper-V. Also see <a href="http://www.pcworld.com/article/168715/redmond_releases_code_to_linux_kernel_community.html">Redmond Releases Code to Linux Kernel Community</a> at pcworld.com</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/linux/microsoft-contribute-code-to-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

