<?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>HowToBSD &#187; problems &amp; solutions</title>
	<atom:link href="http://howtobsd.com/tag/problems-solutions/feed" rel="self" type="application/rss+xml" />
	<link>http://howtobsd.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 11 Feb 2014 11:21:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>subsystem request for sftp</title>
		<link>http://howtobsd.com/solutions/sftp_reques.html</link>
		<comments>http://howtobsd.com/solutions/sftp_reques.html#comments</comments>
		<pubDate>Wed, 28 Nov 2012 14:41:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=537</guid>
		<description><![CDATA[When I try to connect by FileZilla to server I get error: Nov 28 08:25:51 server01 sshd[19577]: Accepted password for root from 77.120.137.175 port 55070 ssh2 Nov 28 08:25:51 server01 sshd[19577]: subsystem request for sftp Nov 28 08:25:51 server01 sshd[19577]: error: subsystem: cannot stat /usr/libexec/sftp-server: No such file or directory Nov 28 08:25:51 server01 sshd[19577]: [...]]]></description>
				<content:encoded><![CDATA[<p>When I try to connect by FileZilla to server I get error:<br />
<code>Nov 28 08:25:51 server01 sshd[19577]: Accepted password for root from 77.120.137.175 port 55070 ssh2<br />
Nov 28 08:25:51 server01 sshd[19577]: subsystem request for sftp<br />
Nov 28 08:25:51 server01 sshd[19577]: error: subsystem: cannot stat /usr/libexec/sftp-server: No such file or directory<br />
Nov 28 08:25:51 server01 sshd[19577]: subsystem request for sftp failed, subsystem not found</code><br />
But it is fine to connect via usual ssh connection.</p>
<p>This is easy to fix by creating symbolic link to correct place.<br />
Please find this by locate command :<br />
<code><br />
root@server01 ~]# locate sftp-server<br />
/usr/libexec/openssh/sftp-server<br />
</code></p>
<p>and them make link:<br />
<code><br />
ln -s /usr/libexec/openssh/sftp-server /usr/libexec/sftp-server<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/sftp_reques.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1030 &#8211; Got error -1 from storage engine</title>
		<link>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html</link>
		<comments>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html#comments</comments>
		<pubDate>Sun, 13 Nov 2011 23:39:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=524</guid>
		<description><![CDATA[I am using on one project InnoDB type of tables. There is very important have actual data. So I am actively using foreign keys for tables linking. And once I came across problem when tried to delete from table (`group`) which linked by foreign key with another table (`subgroup`) which linked by foreign key with [...]]]></description>
				<content:encoded><![CDATA[<p>I am using on one project InnoDB type of tables. There is very important have actual data. So I am actively using foreign keys for tables linking. And once I came across problem when tried to delete from table (`group`) which linked by foreign key with another table (`subgroup`) which linked by foreign key with another table (`item`).<br />
This is error shown by phpmyadmin:<br />
<code>Error<br />
SQL query:<br />
DELETE FROM `fancypets`.`groups` WHERE `groups`.`group_id` =1<br />
MySQL said: Documentation<br />
#1030 - Got error -1 from storage engine </code></p>
<p>this error a got through mysql command line:</p>
<p><code>mysql> delete from groups where `group_id`=4;<br />
ERROR 1030 (HY000): Got error -1 from storage engine</code></p>
<p>It is mysql&#8217;s error log:</p>
<p><code>Cannot delete/update rows with cascading foreign key constraints that exceed max depth of 250</code><br />
If you use 5.1.51- Just update your mysql-server version.<br />
This is bug of mysql-server-5.1.51 &#8211; after:<br />
<code>#portupgrade mysql-server</code></p>
<p>problem disappeared.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation Redmine on FreeBSD</title>
		<link>http://howtobsd.com/software/redmine-on-freebsd.html</link>
		<comments>http://howtobsd.com/software/redmine-on-freebsd.html#comments</comments>
		<pubDate>Sat, 22 Oct 2011 15:32:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=500</guid>
		<description><![CDATA[Perhaps you know redmine ported in FreeBSD and first of all I tried to install it: #cd /usr/ports/www/redmine ===> redmine-1.2.1_1 is marked as broken: Does not work with RubyGems 1.8. *** Error code 1 Stop in /usr/ports/www/redmine. Sure. You wouldn&#8217;t read this post if process had been done successfully Maintainer of this port marked this [...]]]></description>
				<content:encoded><![CDATA[<p>Perhaps you know redmine ported in FreeBSD and first of all I tried to install it:</p>
<p><code>#cd /usr/ports/www/redmine<br />
===>  redmine-1.2.1_1 is marked as broken: Does not work with RubyGems 1.8.<br />
*** Error code 1</p>
<p>Stop in /usr/ports/www/redmine.</code></p>
<p>Sure. You wouldn&#8217;t read this post if process had been done successfully <img src='http://howtobsd.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Maintainer of this port marked this port as broken because of bug in Gem 1.8.</p>
<p>As result we have to install it manually. Hopefully we have official <a href="http://www.redmine.org/projects/redmine/wiki/RedmineInstall">installation guide</a>.</p>
<p>I came across with some problems during installation. So, this post will be a guide adapted for FreeBSD with some errors and solutions.<br />
Hope it will be useful. It seems as long process, but really easy. Let&#8217;s start.</p>
<p><strong>1) Get Redmine (I used svn for it):</strong></p>
<p><code>#svn co http://redmine.rubyforge.org/svn/branches/1.2-stable redmine-1.2</code></p>
<p><strong>2) Create database:</strong><br />
<code>mysql -uuser -ppasword<br />
mysql> create database redmine character set utf8;<br />
mysql> create user 'redmine'@'localhost' identified by 'passforuser';<br />
mysql> grant all privileges on redmine.* to 'redmine'@'localhost';<br />
mysql>exit;</code><br />
<strong><br />
3) Database configuration (copy from config/database.yml.example). config/database.yml:</strong><br />
<code>production:<br />
  adapter: mysql<br />
  database: redmine<br />
  host: localhost<br />
  username: redmine<br />
  password: passforuser</code></p>
<p><strong>4)Generate a session store secret.</strong><br />
<code>#rake generate_session_store<br />
Missing the i18n 0.4.2 gem. Please `gem install -v=0.4.2 i18n`</code></p>
<p>At this place started problems. Don&#8217;t worry. Just do thing redmine suggests. </p>
<p><code>#gem install -v=0.4.2 i18n<br />
Fetching: i18n-0.4.2.gem (100%)<br />
Successfully installed i18n-0.4.2<br />
1 gem installed<br />
Installing ri documentation for i18n-0.4.2...<br />
Installing RDoc documentation for i18n-0.4.2...</code></p>
<p>trying again:</p>
<p><code>#rake generate_session_store<br />
Missing the Rails 2.3.11 gem. Please `gem install -v=2.3.11 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.</code></p>
<p>I tried update  RAILS_GEM_VERSION (on 3.0.5) but Redmine doesn&#8217;t work with 3.0.5 yet, so:</p>
<p><code># gem install -v=2.3.11 rails</code></p>
<p>then again:<br />
<code># rake generate_session_store<br />
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)<br />
WARNING: 'task :t, arg, :needs => [deps]' is deprecated.  Please use 'task :t, [args] => [deps]' instead.<br />
    at /vol1/www/www.slim/httdocs/redmine/redmine-1.2/lib/tasks/email.rake:170</code></p>
<p>Googled the problem and found out it connected with rake version (need to downgrade):</p>
<p><code># gem install -v=0.8.7 rake<br />
Fetching: rake-0.8.7.gem (100%)<br />
Successfully installed rake-0.8.7<br />
1 gem installed<br />
Installing ri documentation for rake-0.8.7...<br />
Installing RDoc documentation for rake-0.8.7...</code></p>
<p><code># gem uninstall -v=0.9.2 rake<br />
Successfully uninstalled rake-0.9.2</code></p>
<p>finally it done:<br />
<code># rake generate_session_store<br />
(in /vol1/www/www.slim/httdocs/redmine/redmine-1.2)</code></p>
<p><strong>5) Database migration:</strong><br />
<code># rake db:migrate RAILS_ENV=production<br />
(in /vol1/www/www.slim/httdocs/redmine/redmine-1.2)<br />
rake aborted!<br />
syntax error on line 8, col 2: `  encoding: utf8'</p>
<p>(See full trace by running task with --trace)</code></p>
<p>Problem was &#8211; I missed space in config/database.yml before the password.</p>
<p><code># rake db:migrate RAILS_ENV=production<br />
(in /vol1/www/www.slim/httdocs/redmine/redmine-1.2)<br />
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.<br />
rake aborted!<br />
no such file to load -- mysql</code></p>
<p>installing gem mysql:<br />
<code>howtobsd# gem install mysql</code></p>
<p>and then:<br />
<code>howtobsd# rake db:migrate RAILS_ENV=production</code></p>
<p>db migration done!</p>
<p><strong>6) Load default data (recommended):</strong><br />
<code># rake redmine:load_default_data  RAILS_ENV=production<br />
(in /vol1/www/www.slim/httdocs/redmine/redmine-1.2)</p>
<p>Select language: bg, bs, ca, cs, da, de, el, en, en-GB, es, eu, fa, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en]</code></p>
<p>Choose language and moving ahead. </p>
<p><strong>7)According to manual set permissions (create required folders if it doesn&#8217;t exist):</strong></p>
<p><code>chown -R username:username files log tmp public/plugin_assets<br />
chmod -R 755 files log tmp public/plugin_assets</code></p>
<p><strong>8) Test installation:</strong><br />
<code>#ruby script/server webrick -e production<br />
=> Booting WEBrick<br />
=> Rails 2.3.11 application starting on http://0.0.0.0:3000</p>
<p>now you can enter in your browser http://localhost:3000</code></p>
<p>    *  login: admin<br />
    * password: admin</p>
<p>Great! It is works!</p>
<p><strong>9) We only need to configure Apache for redmine.</strong><br />
It is described in my article <a href="software/installing-ruby-on-rails-on-freebsd.html"> &#8220;Installing Ruby on Rails on FreeBSD&#8221;</a> with differences in httpd.conf for new versions.<br />
Now for me it:<br />
<code>LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.5/ext/apache2/mod_passenger.so<br />
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.5<br />
PassengerRuby /usr/local/bin/ruby18</code></p>
<p><strong>10)My example of virtual host for redmine:</strong><br />
<code>&lt;VirtualHost *:80&gt;<br />
        ServerName my-projects.com<br />
        DocumentRoot /vol1/www/www.slim/httdocs/redmine/redmine-1.2/public/<br />
        RailsEnv production<br />
        ErrorLog /vol1/www/www.slim/httdocs/redmine/redmine-1.2/log/httpd.log<br />
&lt;/VirtualHost&gt;</code></p>
<p>That&#8217;s all!</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/redmine-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>E575: viminfo: Illegal starting char in line:  ^E14</title>
		<link>http://howtobsd.com/solutions/e575-viminfo-illegal-starting-char-in-line-e14.html</link>
		<comments>http://howtobsd.com/solutions/e575-viminfo-illegal-starting-char-in-line-e14.html#comments</comments>
		<pubDate>Sun, 02 Oct 2011 21:31:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=484</guid>
		<description><![CDATA[This error appearing when you start vim (or try to open\save file using vim editor): E575: viminfo: Illegal starting char in line: ^E14 Solution is: delete ifrom the home directory file ~/.viminfo: rm ~/.viminfo Do not worry &#8211; it is just file of history and can be deleted.]]></description>
				<content:encoded><![CDATA[<p>This error appearing when you start vim (or try to open\save file using vim editor):<br />
<code>E575: viminfo: Illegal starting char in line:  ^E14</code></p>
<p>Solution is:  delete ifrom the home directory file  ~/.viminfo:</p>
<p><code>rm ~/.viminfo</code></p>
<p>Do not worry &#8211; it is just file of history and can be deleted.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/e575-viminfo-illegal-starting-char-in-line-e14.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl: Premature end of script headers</title>
		<link>http://howtobsd.com/development/perl-premature-end-of-script-headers.html</link>
		<comments>http://howtobsd.com/development/perl-premature-end-of-script-headers.html#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:52:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=391</guid>
		<description><![CDATA[Internal Server Error 500 This error appeared when I tried run IPN script for paypal. httpd-error logs: Perl: Premature end of script headers A long time I have tried to fix it by sending headers like: print "Content-type: text/plain\n\n"; но безуспешно. The problem was just in DOS newline format. Just need change format from DOS/WIN [...]]]></description>
				<content:encoded><![CDATA[<p>Internal Server Error 500<br />
This error appeared when I tried run IPN script for paypal.<br />
httpd-error logs:</p>
<p><code>Perl: Premature end of script headers </code></p>
<p>A long time I have tried to fix it by sending headers like:</p>
<p><code>print "Content-type: text/plain\n\n";</code> но безуспешно.</p>
<p>The problem was just  in DOS newline format.  Just need change format from DOS/WIN (CR/LF) to Unix (LF). </p>
<p>I hope it will help somebody else.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/development/perl-premature-end-of-script-headers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update to php 5.3.6 problem (autoconf: required version 2.68 not found)</title>
		<link>http://howtobsd.com/solutions/update-to-php-5-3-6-problem-autoconf.html</link>
		<comments>http://howtobsd.com/solutions/update-to-php-5-3-6-problem-autoconf.html#comments</comments>
		<pubDate>Sun, 17 Apr 2011 15:12:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php extentions]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=373</guid>
		<description><![CDATA[Was updating php on FreeBSD to php 5.3.6 lang/php5 updated correctly but when I tried update php5-extensions &#8211; it cause problems. I also tried article portupgrade for certain module also didn&#8217;t work (php5-mcrypt, for example): howtobsd# portupgrade php5-mcrypt [Updating the pkgdb in /var/db/pkg ... - 951 packages found (-1 +0) (...) done] ---&#62; Upgrading 'php5-mcrypt-5.3.3_2' [...]]]></description>
				<content:encoded><![CDATA[<p>Was updating php on FreeBSD to php 5.3.6<br />
lang/php5 updated correctly but when I tried update php5-extensions  &#8211; it cause problems. I also tried <a title="Update php5-* without portupgrade “php5-*”" href="/?p=116"> article </a><br />
portupgrade for certain module also didn&#8217;t work (php5-mcrypt, for example):<br />
<code>howtobsd# portupgrade php5-mcrypt<br />
[Updating the pkgdb<br />
in /var/db/pkg ... - 951 packages found (-1 +0) (...) done]<br />
---&gt;  Upgrading 'php5-mcrypt-5.3.3_2' to 'php5-mcrypt-5.3.6' (security/php5-mcrypt)<br />
---&gt;  Building '/usr/ports/security/php5-mcrypt'<br />
===&gt;  Cleaning for php5-mcrypt-5.3.6<br />
===&gt;  Vulnerability check disabled, database not found<br />
===&gt;  License check disabled, port has not defined LICENSE<br />
===&gt;  Extracting for php5-mcrypt-5.3.6<br />
=&gt; SHA256 Checksum OK for php-5.3.6.tar.bz2.<br />
===&gt;  Patching for php5-mcrypt-5.3.6<br />
===&gt;   php5-mcrypt-5.3.6 depends on file: /usr/local/bin/phpize - found<br />
===&gt;   php5-mcrypt-5.3.6 depends on file: /usr/local/bin/autoconf-2.68 - found<br />
===&gt;   php5-mcrypt-5.3.6 depends on shared library: mcrypt.8 - found<br />
===&gt;   php5-mcrypt-5.3.6 depends on shared library: ltdl.7 - found<br />
===&gt;  PHPizing for php5-mcrypt-5.3.6<br />
Configuring for:<br />
PHP Api Version:         20090626<br />
Zend Module Api No:      20090626<br />
Zend Extension Api No:   220090626<br />
autoconf: required version 2.68 not found<br />
*** Error code 1<br />
Stop in /usr/ports/security/php5-mcrypt.<br />
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20110417-89058-19avmgv-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=php5-mcrypt-5.3.3_2 UPGRADE_PORT_VER=5.3.3_2 make<br />
** Fix the problem and try again.<br />
** Listing the failed packages (-:ignored / *:skipped / !:failed)<br />
! security/php5-mcrypt (php5-mcrypt-5.3.3_2)    (unknown build error)<br />
</code><br />
As you can see autoconf 2.68 required:<br />
<code><br />
howtobsd# portupgrade autoconf<br />
</code><br />
But also you need update autoconf-wrapper:<br />
<code><br />
howtobsd# portupgrade autoconf-wrapper<br />
</code></p>
<p>after that it updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/update-to-php-5-3-6-problem-autoconf.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NS_ERROR_FACTORY_NOT_REGISTERED (0&#215;80040154)</title>
		<link>http://howtobsd.com/solutions/virtualbox-proble.html</link>
		<comments>http://howtobsd.com/solutions/virtualbox-proble.html#comments</comments>
		<pubDate>Fri, 01 Apr 2011 12:27:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=354</guid>
		<description><![CDATA[Doesn&#8217;t start VirtualBox ERROR:NS_ERROR_FACTORY_NOT_REGISTERED (0&#215;80040154) Solution: Delete folder: /tmp/.vbox-username-ipc/]]></description>
				<content:encoded><![CDATA[<p>Doesn&#8217;t start VirtualBox</p>
<p>ERROR:NS_ERROR_FACTORY_NOT_REGISTERED (0&#215;80040154)</p>
<p>Solution: Delete folder: /tmp/.vbox-username-ipc/</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/virtualbox-proble.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Automount flash drive on FreeBSD</title>
		<link>http://howtobsd.com/solutions/automount-flash-drive-on-freebsd.html</link>
		<comments>http://howtobsd.com/solutions/automount-flash-drive-on-freebsd.html#comments</comments>
		<pubDate>Sun, 28 Nov 2010 14:08:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=287</guid>
		<description><![CDATA[The problem with automount flash drives on FreeBSD 8.1 and KDE4: An error occurred while accessing &#8216;My_flash&#8217;, the system responded: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.mount-removable no &#60;&#8211; (action, result) or Could not mount the following device: My_flash Solution: add to PolicyKit config file(/usr/local/etc/PolicyKit/PolicyKit.conf) your user: &#60;?xml version="1.0" encoding="UTF-8"?&#62; &#60;!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN" "http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd"&#62; &#60;!-- See [...]]]></description>
				<content:encoded><![CDATA[<p><strong>The problem with automount flash drives on FreeBSD 8.1 and KDE4</strong>:</p>
<p>An error occurred while accessing &#8216;My_flash&#8217;, the system responded: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.mount-removable no &lt;&#8211; (action, result)<br />
or</p>
<p>Could not mount the following device:<br />
My_flash</p>
<p>Solution:<br />
add to PolicyKit config file(/usr/local/etc/PolicyKit/PolicyKit.conf) your user:</p>
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration
1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd"&gt;

&lt;!-- See the manual page PolicyKit.conf(5) for file format --&gt;

&lt;config version="0.1"&gt;
&lt;match user="root"&gt;
&lt;return result="yes"/&gt;
&lt;/match&gt;
&lt;define_admin_auth group="wheel"/&gt;
&lt;!-- You should add the following strings --&gt;
<strong>&lt;match action="org.freedesktop.hal.storage.mount-removable"&gt;
&lt;match user="slim"&gt;
&lt;return result="yes"/&gt;
&lt;/match&gt;
&lt;/match&gt;
</strong>
&lt;/config&gt;</pre>
<p>where slim &#8211; your user.<br />
and finally restart hald:<br />
<code>howtobsd#/usr/local/etc/rc.d/hald restart</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/automount-flash-drive-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HDD head parking on FreeBSD (Load_Cycle_Count)</title>
		<link>http://howtobsd.com/solutions/hdd-head-parking-on-freebsd.html</link>
		<comments>http://howtobsd.com/solutions/hdd-head-parking-on-freebsd.html#comments</comments>
		<pubDate>Mon, 18 Oct 2010 20:18:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=233</guid>
		<description><![CDATA[Usually  hdd for notebooks (and some models for desktop, for example models of  WD Caviar Green series) includes function of head parking for powersave. This function parks heads after few seconds of inactivity.A lot of head parkings isn&#8217;t good for hdd. You can check your smart data using utility smartmontools: howtobsd# smartctl -a /dev/ad0 &#124; [...]]]></description>
				<content:encoded><![CDATA[<p>Usually  hdd for notebooks (and some models for desktop, for example models of  WD Caviar Green series) includes function of head parking for powersave. This function parks heads after few seconds of inactivity.A lot of head parkings isn&#8217;t good for hdd.</p>
<p>You can check your smart data using utility <a href="//howtobsd.com/?p=169">smartmontools</a>:</p>
<p><code>howtobsd# smartctl -a /dev/ad0 | grep Load_Cycle_Count<br />
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       <span style="color: #ff0000;"><strong>37104</strong></span></code></p>
<p><span style="color: #ff0000;"><strong>37104 &#8211; </strong></span>it is a number of parking (only imagine it! On my laptop before fixing this value had been increased on 50 numbers per\hour)</p>
<p>For prevent hdd from  head parking or change timeout you can use ataidle.</p>
<p><code>howtobsd# cd /usr/ports/sysutils/ataidle/<br />
howtobsd# make install clean<br />
howtobsd# ataidle -P 254 /dev/ad0</code></p>
<p>This commands set APM (Advanced Power Management) to highest power consumption.</p>
<p>and add into rc.conf:<br />
<code>ataidle_enable="YES"<br />
ataidle_devices="ad0"<br />
ataidle_ad0="-I 60 -S 120 -A 127 -P 254"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/hdd-head-parking-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Problem with docbook-xsl</title>
		<link>http://howtobsd.com/solutions/problem-with-docbook-xsl.html</link>
		<comments>http://howtobsd.com/solutions/problem-with-docbook-xsl.html#comments</comments>
		<pubDate>Wed, 13 Oct 2010 19:26:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=206</guid>
		<description><![CDATA[gmake[3]: Entering directory `/usr/ports/sysutils/policykit/work/PolicyKit-0.9/doc/man' /usr/local/bin/xsltproc -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl polkit-auth.xml warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl The solve is: install (or reinstall) /usr/ports/textproc/docbook-xsl with MANPAGES option!]]></description>
				<content:encoded><![CDATA[<p><code>gmake[3]: Entering directory `/usr/ports/sysutils/policykit/work/PolicyKit-0.9/doc/man'<br />
/usr/local/bin/xsltproc -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl polkit-auth.xml<br />
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"<br />
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl</code></p>
<p>The solve is: install (or reinstall) /usr/ports/textproc/docbook-xsl with MANPAGES option!</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/problem-with-docbook-xsl.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
