<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: SocialText]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=SocialText</link>
<description></description>
<pubDate>Mon, 21 Feb 2011 13:28:54 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[SocialText git upgrade]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?socialtext_git_upgrade</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: OpenVZ, SocialText</div><hr/><div class="wiki">
<p>
This page will describe by efforts to upgrade SocialText from version v2.19.0.2 to <a target="_blank" title="(external link)" href="http://github.com/socialtext/socialtext/tree/master">git version<!-- wiki-renamed-hyperlink "git version"<http://github.com/socialtext/socialtext/tree/master> --></a></p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#rsync_current_installation">Dobrica Pavlinušić's random unstructured stuff (rsync current installation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] rsync current installation} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#upgrade_debian_distribution">Dobrica Pavlinušić's random unstructured stuff (Upgrade Debian distribution)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Upgrade Debian distribution} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#install_git">Dobrica Pavlinušić's random unstructured stuff (Install git)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Install git} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#checkout_source">Dobrica Pavlinušić's random unstructured stuff (Checkout source)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Checkout source} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#install_dependencies">Dobrica Pavlinušić's random unstructured stuff (Install dependencies)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Install dependencies} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="rsync_current_installation">rsync current installation</h1>
<pre>
mjesec:~# lvcreate -s -L 1G -n vz-snap /dev/vg/vz
  Logical volume &quot;vz-snap&quot; created
mjesec:~# mount /dev/vg/vz-snap /mnt/vz-snap/

stage:/mnt/btrfs# btrfs subvolume create /mnt/btrfs/saturn
Create subvolume '/mnt/btrfs/saturn'

stage:~# /srv/sysadmin-cookbook/recepies/rsync/rsync-clone.sh 10.60.0.9::vz-snap/private/212024/ /mnt/btrfs/saturn/

stage:~# btrfs subvolume snapshot /mnt/btrfs/saturn /mnt/btrfs/saturn.0.etch
Create a snapshot of '/mnt/btrfs/saturn' in '/mnt/btrfs/saturn.0.etch'

</pre>
<br /><h1 id="upgrade_debian_distribution">Upgrade Debian distribution</h1>
<ul>
<li>first from etch -&gt; lenny</li>
<li>then from lenny -&gt; squeeze</li>
</ul>
<h1 id="install_git">Install git</h1>
<p>
Use following <tt>/etc/apt/sources.list</tt> <span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/sources.list?action=attachments_download;page_name=socialtext_git_upgrade;id=20090118142727-0-19670">sources.list</a><!-- wiki: {file: sources.list} --></span></p>
<pre>
root@stwiki3:~# apt-get install git-core
</pre>
<br /><h1 id="checkout_source">Checkout source</h1>
<pre>
dpavlin@st-dev:~$ git clone git://github.com/socialtext/socialtext.git
Cloning into socialtext...
remote: Counting objects: 159215, done.
remote: Compressing objects: 100% (34584/34584), done.
remote: Total 159215 (delta 118894), reused 157590 (delta 117564)
Receiving objects: 100% (159215/159215), 1.82 GiB | 6.74 MiB/s, done.
Resolving deltas: 100% (118894/118894), done.
</pre>
<br /><h1 id="install_dependencies">Install dependencies</h1>
<pre>
dpavlin@st-dev:~/socialtext$ cat nlw/build/pkg-lists/dapper | xargs -i sudo apt-get install {}
</pre>
<br /><pre>
dpavlin@st-dev:~/socialtext/nlw$ ./configure --socialtext-open 1 --force-ssl-login 1 --hostname st-dev.vbz.ffzg.hr --server-admin dpavlin@rot13.org --support-address dpavlin@rot13.org
</pre>
</div>
<hr/><div>Attachments: dapper, sources.list</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>OpenVZ, SocialText</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?socialtext_git_upgrade</guid>
<pubDate>Mon, 21 Feb 2011 13:28:54 -0000</pubDate>
</item>
<item>
<title><![CDATA[SocialText OpenVZ Dapper container]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?socialtext_openvz_dapper_container</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: OpenVZ, SocialText</div><hr/><div class="wiki">
<p>
Page renamed to <a href="https://saturn.ffzg.hr/rot13/index.cgi?openvz_dapper_container" title="(210 months)  toc debootstrap Ubuntu Dapper Drake .pre root@mljac cd vz private root@mljac vz private mkdir 20701...">OpenVZ Dapper container</a></p>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>OpenVZ, SocialText</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?socialtext_openvz_dapper_container</guid>
<pubDate>Sun, 18 Jan 2009 14:22:48 -0000</pubDate>
</item>
<item>
<title><![CDATA[SocialText Open Wiki Install]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?socialtext_open_wiki_install</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: howto, SocialText</div><hr/><div class="wiki">
<p>
Here are some quick notes about installation on clean Debian etch machine</p>
<p>
This page is aimed towards system administrators, if you want information how to customize design of page take a look at <a href="https://saturn.ffzg.hr/rot13/index.cgi?socialtext_css_design" title="(225 months) This page collect various parts which used to be in [Socialtext Open Wiki Install], but since they a...">SocialText CSS design</a> (which is included on bottom of this page).</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#helper_packages">Dobrica Pavlinušić's random unstructured stuff (Helper packages)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Helper packages} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#install_source">Dobrica Pavlinušić's random unstructured stuff (Install source)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Install source} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#update_existing_checkout">Dobrica Pavlinušić's random unstructured stuff (Update existing checkout)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Update existing checkout} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#add_new_admin_user">Dobrica Pavlinušić's random unstructured stuff (Add new admin user)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Add new admin user} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#configuring_mailer">Dobrica Pavlinušić's random unstructured stuff (Configuring mailer)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Configuring mailer} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#postfix">Dobrica Pavlinušić's random unstructured stuff (postfix)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] postfix} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#crontab">Dobrica Pavlinušić's random unstructured stuff (crontab)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] crontab} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#handling_e_mail_errors">Dobrica Pavlinušić's random unstructured stuff (Handling e-mail errors)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Handling e-=mail errors} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#customize_template">Dobrica Pavlinušić's random unstructured stuff (Customize template)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Customize template} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#fix_rss_feed_errors">Dobrica Pavlinušić's random unstructured stuff (Fix RSS feed errors)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Fix RSS feed errors} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#change_e_mail_address_of_workspace">Dobrica Pavlinušić's random unstructured stuff (Change e-mail address of workspace)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Change e-=mail address of workspace} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#access_simple_version_of_page">Dobrica Pavlinušić's random unstructured stuff (Access simple version of page)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Access simple version of page} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#configure_sane_resource_usage">Dobrica Pavlinušić's random unstructured stuff (Configure sane resource usage)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Configure sane resource usage} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#convert_rss_feed_urls_to_absolute">Dobrica Pavlinušić's random unstructured stuff (Convert RSS feed URLs to absolute)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Convert RSS feed URLs to absolute} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#problems_with_8_bit_utf_8_encoded_characters_in_urls">Dobrica Pavlinušić's random unstructured stuff (Problems with 8-bit UTF-8 encoded characters in URLs)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Problems with 8-=bit UTF-=8 encoded characters in URLs} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#enable_html_wafl_in_workspace">Dobrica Pavlinušić's random unstructured stuff (Enable html wafl in workspace)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Enable html wafl in workspace} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#upgrade_to_2_2">Dobrica Pavlinušić's random unstructured stuff (Upgrade to 2.2)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Upgrade to 2.2} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#socialtext_resting">Dobrica Pavlinušić's random unstructured stuff (Socialtext::Resting)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Socialtext::Resting} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#missing_directory">Dobrica Pavlinušić's random unstructured stuff (Missing directory)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Missing directory} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#missing_skins">Dobrica Pavlinušić's random unstructured stuff (Missing skins)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Missing skins} --></span></li>
</ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="helper_packages">Helper packages</h1>
<pre>
sudo apt-get install wv xpdf-utils unrtf unzip links
sudo cpan MP3::Tag
</pre>
<br /><h1 id="install_source">Install source</h1>
<pre>
svn co https://repo.socialtext.net:8999/svn/socialtext/trunk socialtext
cd socialtext/nlw

# checkout lastest Socialtext::Resting client
svn export --force https://repo.socialtext.net:8999/svn/socialtext-clients/trunk/rest/perl/Socialtext-Resting/lib/Socialtext/ lib/Socialtext/

./configure --socialtext-open 1 --apache-proxy 0 --force-ssl-login 1
make
sudo bash
make install
update-rc.d -f apache-perl remove
update-rc.d st-apache defaults
update-rc.d ceqlotron defaults
/etc/init.d/st-apache start
/etc/init.d/ceqlotron start
</pre>
<br /><h1 id="update_existing_checkout">Update existing checkout</h1>
<pre>
cd socaialtext
svn update
cd nlw
./configure --socialtext-open 1 --apache-proxy 0 --force-ssl-login 1
make
make test
sudo make install
sudo /etc/init.d/st-apache stop
sudo /etc/init.d/ceqlotron restart
sudo /etc/init.d/st-apache start
</pre>
<br /><h1 id="add_new_admin_user">Add new admin user</h1>
<pre>
sudo -u www-data st-admin create-user --email dpavlin@rot13.org --password wikidream \
  --first-name Dobrica --last-name Pavlinusic
sudo -u www-data st-admin add-workspace-admin --email dpavlin@rot13.org
</pre>
<br /><h1 id="configuring_mailer">Configuring mailer</h1>
<h2 id="postfix">postfix</h2>
<p>
Install and configure postfix for mail delivery</p>
<pre>
apt-get install postfix
vi /etc/postfix/main
</pre>
<br /><p>
Important lines are following:</p>
<pre>
alias_maps = hash:/etc/aliases, hash:/etc/aliases.deliver
alias_database = hash:/etc/aliases, hash:/etc/aliases.deliver
</pre>
<br /><p>
They add <tt>/etc/aliases.deliver</tt> (which SocialText generates with names of wiki workspaces) to configuration.</p>
<p>
Next, we need to create <tt>/etc/aliases.deliver.db</tt> which is binary version of database needed for postfix. It's extremly important that <tt>aliases.deliver</tt> file is owned by <tt>www-data</tt> because postfix picks user which will do e-mail delivery based on owner of aliases file. If your owner of <tt>/var/www/socialtext</tt> is some other user than <tt>www-data</tt> you will have to modify following command appropriately:</p>
<pre>
# make www-data owner of file
chown www-data:root /etc/aliases.deliver
# allow root group to write in /etc/
chmod g+w /etc/
# create /etc/aliases.deliver.db
sudo postalias /etc/aliases.deliver
</pre>
<br /><p>
Now restart postfix as <tt>root</tt> user</p>
<pre>
/etc/init.d/postfix restart
</pre>
<br /><h2 id="crontab">crontab</h2>
<p>
Add following to <tt>/etc/crontab</tt> to refresh aliases database for postfix regularly:</p>
<pre>
*/10 *  * * *   root    postalias /etc/aliases.deliver
</pre>
<br /><h1 id="handling_e_mail_errors">Handling e-mail errors</h1>
<pre>
sudo tail /var/log/mail.log | grep st-admin
</pre>
<br /><blockquote>
dsn=5.3.0, status=bounced (Command died with status 13: &quot;/usr/local/bin/st-admin deliver-email --workspace bio&quot;. Command output: open nlw-stats.log: Permission denied at /usr/local/share/perl/5.8.8/Socialtext/Statistics.pm line 103. END failed--call queue aborted. )</blockquote>
<br /><p>
This problem is reported on socialtext-devel list, but no response so far.</p>
<pre>
# sudo vi +24 /usr/local/share/perl/5.8.8/Socialtext/Statistics.pm
Readonly my $LOG_NAME =&gt; 'nlw-stats.log';
Readonly my $LOG_PATH =&gt; $ENV{APACHE_LOG_DIR}
    ? &quot;$ENV{APACHE_LOG_DIR}/$LOG_NAME&quot;       
    : &quot;/tmp/$LOG_NAME&quot;;
</pre>
<br /><h1 id="customize_template">Customize template</h1>
<p>
Remove &quot;Did you know?&quot; box from dashboard</p>
<pre>
sudo vi /usr/share/nlw/template/view/homepage
</pre>
<br /><p>
Or from your <tt>socialtext/nlw</tt> checkout (so that <tt>make install</tt> will install correct one):</p>
<pre>
vi share/template/view/homepage
</pre>
<br /><h1 id="fix_rss_feed_errors">Fix RSS feed errors</h1>
<p>
If you are using <tt>{fetchrss http://blog.rot13.org/index.xml}</tt> and having problems with RSS feeds, try to re-installing two perl modules:</p>
<pre>
sudo cpan XML::RSS XML::Atom
</pre>
<br /><h1 id="change_e_mail_address_of_workspace">Change e-mail address of workspace</h1>
<p>
This configuration change will feed responses to e-mails generated by wiki back into wiki. You might not want to do that! :-)</p>
<pre>
st-admin set-workspace-config --workspace rot13 \
  email_notification_from_address '&quot;random unstructured stuff&quot; &lt;rot13@wiki.rot13.org&gt;'
</pre>
<br /><h1 id="access_simple_version_of_page">Access simple version of page</h1>
<p>
Every SocialText wiki has a lite version available at <a target="_blank" title="(external link)" href="http://wiki.example.com/lite/page/:workspace/">http://wiki.example.com/lite/page/:workspace/</a></p>
<p>
For this wiki it's <a target="_blank" title="(external link)" href="http://saturn.ffzg.hr/lite/page/rot13">http://saturn.ffzg.hr/lite/page/rot13</a></p>
<h1 id="configure_sane_resource_usage">Configure sane resource usage</h1>
<p>
Since SocialText wiki is designed to run on dedicated box, it's resource requiements are not for faint-hearted users. However, if you are installing it on machine with constraint hardware (or virtual machine) you might want to decrease number of <tt>apache-perl</tt> server which are created on startup and kept running. Each apache child takes about 80Mb of RAM, so lowering number of children will have beneficial effect on your memory usage.</p>
<p>
If you open <tt>/etc/apache-perl/st-httpd.conf</tt> you will see comment that describes command used for generating this configuration. So, let's edit command limits, re-create config and restart apache:</p>
<pre>
vi +485 dev-bin/gen-config
dev-bin/gen-config --sitewide --apache-proxy=0 --hostname=saturn.ffzg.hr
/etc/init.d/st-apache reload
</pre>
<br /><h1 id="convert_rss_feed_urls_to_absolute">Convert RSS feed URLs to absolute</h1>
<p>
If you need to fetch RSS feeds from remote URLs and those providers create only relative URLs in feeds (like svnweb does) that this patch might help you: <span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/FetchRSSPlugin.pm.diff?action=attachments_download;page_name=socialtext_open_wiki_install;id=20070930135911-0-21709">FetchRSSPlugin.pm.diff</a><!-- wiki: {file: FetchRSSPlugin.pm.diff} --></span></p>
<p>
It does dirty magic to prepend hostname before URL in feeds making them work from Socialtext wiki which is on different host.</p>
<h1 id="problems_with_8_bit_utf_8_encoded_characters_in_urls">Problems with 8-bit UTF-8 encoded characters in URLs</h1>
<p>
It seems that trunk of socialtext</p>
<pre>
Repository Root: https://repo.socialtext.net:8999/svn/socialtext
Repository UUID: 593ce9bc-2028-0410-bb98-c566b643a948
Revision: 6127
Node Kind: directory
Schedule: normal
Last Changed Author: jjp
Last Changed Rev: 6028
Last Changed Date: 2007-12-10 19:38:21 +0100 (Mon, 10 Dec 2007)
</pre>
<br /><p>
has problems with <tt>CGI.pm</tt> 3.31. As a temporary work-around use <span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/backpan.sh?action=attachments_download;page_name=socialtext_open_wiki_install;id=20071215215102-0-8116">backpan.sh</a><!-- wiki: {file: backpan.sh} --></span> to download <tt>CGI.pm</tt> 3.29 which is known to work.</p>
<h1 id="enable_html_wafl_in_workspace">Enable html wafl in workspace</h1>
<p>
This enables <tt>.html</tt> markup which enables embedded html into wiki page</p>
<pre>
st-admin set-workspace-config --workspace razmjenavjestina allows_html_wafl 1
</pre>
<br /><h1 id="upgrade_to_2_2">Upgrade to 2.2</h1>
<p>
There are various problems with this upgrade.</p>
<h2 id="socialtext_resting">Socialtext::Resting</h2>
<p>
For a start, you will have to install Socialtext::Resting clinet <strong>in the middle</strong> of <tt>make install</tt> because import of help workspace will fail.</p>
<p>
You can get it from <a target="_blank" title="(external link)" href="https://repo.socialtext.net:8999/svn/socialtext-clients/trunk/rest/perl/Socialtext-Resting">https://repo.socialtext.net:8999/svn/socialtext-clients/trunk/rest/perl/Socialtext-Resting</a></p>
<h2 id="missing_directory">Missing directory</h2>
<pre>
mkdir /etc/apache-perl/socialtext-conf.d
</pre>
<br /><h2 id="missing_skins">Missing skins</h2>
<p>
<a target="_blank" title="(external link)" href="http://code.google.com/p/socialtext-skins/wiki/SkinningIssues">http://code.google.com/p/socialtext-skins/wiki/SkinningIssues</a></p>
<pre>

</pre>
<br /><p>
Problem not yet solved.</p>
<hr />
<span class="nlw_phrase"><div class="wiki-include-page">
<div class="wiki-include-title"><a href='https://saturn.ffzg.hr/rot13/index.cgi?socialtext_css_design' >SocialText CSS design</a> </div>
<div class="wiki-include-content">
<p>
This page collect various parts which used to be in <a href="https://saturn.ffzg.hr/rot13/index.cgi?socialtext_open_wiki_install" title="(218 months) Here are some quick notes about installation on clean Debian etch machine This page is aimed towards...">Socialtext Open Wiki Install</a>, but since they are more oriented towards wiki admins and designers, it's here as separate page.</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#new_skin_css_design_creation">Dobrica Pavlinušić's random unstructured stuff (New skin (CSS design) creation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] New skin (CSS design) creation} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#keep_local_changes_in_svn">Dobrica Pavlinušić's random unstructured stuff (Keep local changes in SVN)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Keep local changes in SVN} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="new_skin_css_design_creation">New skin (CSS design) creation</h1>
<pre>
cd /usr/share/nlw/css/
cp -r st rot13
st-admin set-workspace-config --workspace rot13 skin_name rot13
vi rot13/screen.css
</pre>
<br /><p>
See also <a target="_blank" title="(external link)" href="http://www.eu.socialtext.net/open/index.cgi?css_kit">CSS kit<!-- wiki-renamed-hyperlink "CSS kit"<http://www.eu.socialtext.net/open/index.cgi?css_kit> --></a> at SocialText Open Wiki</p>
<h1 id="keep_local_changes_in_svn">Keep local changes in SVN</h1>
<p>
It's important to save local modifications, because next <tt>make install</tt> <strong>will overwrite</strong> your changes in <tt>/usr/share/nlw</tt>. One possibility is to do overlay svn checout over <tt>/usr/share/nlw</tt> and than <tt>svn add</tt> and <tt>svn commit</tt> every change:</p>
<pre>
cd /usr/share
svn co file:///data/st-custom/share nlw.svn
cd nlw.svn
find . | cpio -pdu ../nlw/
cd - &amp;&amp; rm -Rf nlw.svn
cd nlw
svn info
</pre>
</div></div><!-- wiki: {include: [SocialText CSS design]} --></span><br /></div>
<hr/><div>Attachments: backpan.sh, FetchRSSPlugin.pm.diff</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>howto, SocialText</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?socialtext_open_wiki_install</guid>
<pubDate>Thu, 22 May 2008 16:00:39 -0000</pubDate>
</item>
<item>
<title><![CDATA[Migracija TamTam wikija razmjene vještina na SocialText]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?migracija_tamtam_wikija_razmjene_vje%C5%A1tina_na_socialtext</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: razmjenavjestina, socialtext, wiki</div><hr/><div class="wiki">
<p>
&nbsp;Our local <a target="_blank" title="(external link)" href="http://www.razmjenavjestina.org">Skill sharing<!-- wiki-renamed-hyperlink "Skill sharing"<http://www.razmjenavjestina.org> --></a> group just moved old TamTam wiki to SocialText. Since TamTam is mostly used in Croatian's NGO organisations, rest of this post is in Croatian.</p>
<p>
However, source code for migration tools might come useful.</p>
<p>
Nakon prošlog vikenda u Moravicama na poznatom događaju <em>Ništa se neće dogoditi</em> nešto se ipak dogodilo: migrirali smo wiki na SocialText. Iako je to samo jedan dio <a target="_blank" title="(external link)" href="http://wiki.razmjenavjestina.org/razmjenavjestina/index.cgi?novi_site_www_razmjenavjestina_org">velikog i grandioznog plana za novi site<!-- wiki-renamed-hyperlink "velikog i grandioznog plana za novi site"<http://wiki.razmjenavjestina.org/razmjenavjestina/index.cgi?novi_site_www_razmjenavjestina_org> --></a> već ovako (sa ružnim izgledom) dobili smo mogućnost pretraživanja i generiranja ili korištenja RSS feedova na najzanimljivije načine.</p>
<p>
Za one sa programerskom dušom, <a target="_blank" title="(external link)" href="http://svn.rot13.org/index.cgi/socialtext-import/view/tamtam/tamtam2socialtext.pl">perl skripta<!-- wiki-renamed-hyperlink "perl skripta"<http://svn.rot13.org/index.cgi/socialtext=-import/view/tamtam/tamtam2socialtext.pl> --></a> koja radi migraciju je dostupna (prije nego što je pokrenete, morate promjeniti server/login/password -- ovaj u skripti ne funkcionira!).</p>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>razmjenavjestina, socialtext, wiki</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?migracija_tamtam_wikija_razmjene_vje%C5%A1tina_na_socialtext</guid>
<pubDate>Sun, 16 Dec 2007 14:40:16 -0000</pubDate>
</item>
<item>
<title><![CDATA[SocialText CSS design]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?socialtext_css_design</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: css, SocialText, svn</div><hr/><div class="wiki">
<p>
This page collect various parts which used to be in <a href="https://saturn.ffzg.hr/rot13/index.cgi?socialtext_open_wiki_install" title="(218 months) Here are some quick notes about installation on clean Debian etch machine This page is aimed towards...">Socialtext Open Wiki Install</a>, but since they are more oriented towards wiki admins and designers, it's here as separate page.</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#new_skin_css_design_creation">Dobrica Pavlinušić's random unstructured stuff (New skin (CSS design) creation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] New skin (CSS design) creation} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#keep_local_changes_in_svn">Dobrica Pavlinušić's random unstructured stuff (Keep local changes in SVN)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Keep local changes in SVN} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="new_skin_css_design_creation">New skin (CSS design) creation</h1>
<pre>
cd /usr/share/nlw/css/
cp -r st rot13
st-admin set-workspace-config --workspace rot13 skin_name rot13
vi rot13/screen.css
</pre>
<br /><p>
See also <a target="_blank" title="(external link)" href="http://www.eu.socialtext.net/open/index.cgi?css_kit">CSS kit<!-- wiki-renamed-hyperlink "CSS kit"<http://www.eu.socialtext.net/open/index.cgi?css_kit> --></a> at SocialText Open Wiki</p>
<h1 id="keep_local_changes_in_svn">Keep local changes in SVN</h1>
<p>
It's important to save local modifications, because next <tt>make install</tt> <strong>will overwrite</strong> your changes in <tt>/usr/share/nlw</tt>. One possibility is to do overlay svn checout over <tt>/usr/share/nlw</tt> and than <tt>svn add</tt> and <tt>svn commit</tt> every change:</p>
<pre>
cd /usr/share
svn co file:///data/st-custom/share nlw.svn
cd nlw.svn
find . | cpio -pdu ../nlw/
cd - &amp;&amp; rm -Rf nlw.svn
cd nlw
svn info
</pre>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>css, SocialText, svn</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?socialtext_css_design</guid>
<pubDate>Thu, 08 Nov 2007 09:39:03 -0000</pubDate>
</item>
</channel>
</rss>