<?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>a Flo + a Blog = a Flog &#187; xNix</title>
	<atom:link href="http://florian.puthod.net/blog/category/it/xnix/feed/" rel="self" type="application/rss+xml" />
	<link>http://florian.puthod.net/blog</link>
	<description>my ブログ</description>
	<lastBuildDate>Mon, 12 Dec 2011 21:09:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel="next" href="http://florian.puthod.net/blog/category/it/xnix/feed/?page=2" />

		<item>
		<title>Big Brother client installation on UNIX/Linux</title>
		<link>http://florian.puthod.net/blog/2011/big-brother-client-installation-on-unixlinux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=big-brother-client-installation-on-unixlinux</link>
		<comments>http://florian.puthod.net/blog/2011/big-brother-client-installation-on-unixlinux/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 20:19:27 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[En]]></category>
		<category><![CDATA[xNix]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[bigbrother]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/?p=378</guid>
		<description><![CDATA[Following procedure explains the steps for installing Big Brother client on UNIX/Linux servers and information about all the supported files. I could not really find this anywhere easily broke down, I hope this helps a few...
Installation Steps
Create user bb on the server to be monitored.Assign 1984 uid to the Big Brother user.
useradd -u 1984 -c [...]]]></description>
			<content:encoded><![CDATA[<p>Following procedure explains the steps for installing Big Brother client on UNIX/Linux servers and information about all the supported files. I could not really find this anywhere easily broke down, I hope this helps a few...</p>
<p>Installation Steps<br />
Create user bb on the server to be monitored.Assign 1984 uid to the Big Brother user.</p>
<blockquote><p>useradd -u 1984 -c "Big Brother monitoring" bb</p></blockquote>
<p>Copy the latest BB client tar file from your repository to bb home directory of the monitored server.</p>
<blockquote><p>su - bb<br />
scp root@yourrepo:/home/bb/software/BBCLT-aix6.1-bbc4.30-bbpe.tar .</p></blockquote>
<p>Decompress the tar file in the bb home directory</p>
<blockquote><p>In the bb home directory<br />
tar -xvf BBCLT-aix6.1-bbc4.30-bbpe.tar</p></blockquote>
<p>Exit from bb home directory as the BB client should be installed using root account.<br />
From root user go to /home/bb/bbc4.30-bbpe/install and execute bbconfig file.After executing bbconfig file, it will ask to accept the License agreement.<br />
After accepting the License agreement, the installation process will ask to enter a few details.</p>
<p>OS [aix] is the default so you can hit enter directly<br />
It will ask for the userid for Big Brother which will be "bb".</p>
<p>The installation process will add a service in /etc/init.d which will start at boot.</p>
<p>At this point the BB client is not started as bb-hosts file is missing or empty.</p>
<p>Information about bb-hosts file<br />
The bb-hosts file in present in /home/bb/bbc4.30-bbpe/etc.This file holds the information about the host and the BBDisplay,BBPAGER and BBNET.<br />
BBDISPLAY is the server which will display all the monitored servers.<br />
BBPAGER is the server which sends email alerts.<br />
BBNET is the server which performa all Network tests.</p>
<p>Sample bb-hosts file.If the first line or name of the monitored host does not match the entry in the bb-hosts file then the bb client will not start.</p>
<blockquote><p>0.0.0.0         monitoredsrv #must name uname -n<br />
0.0.0.0         displaysrv # BBNET BBDISPLAY BBPAGER</p></blockquote>
<p>Once all the changes are done then we are good to start the BB client.<br />
The entry of the monitored server in bb-hosts file should also match with the entry in BB server's bb-hosts file.</p>
<p>I forgot to mention that to start and stop BB you can use the following:</p>
<blockquote><p>su - bb -c "cd /home/bb/bbc4.30-bbpe;./runbb.sh start"</p>
<p>su - bb -c "cd /home/bb/bbc4.30-bbpe;./runbb.sh stop"</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2011/big-brother-client-installation-on-unixlinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My WebLogic 10.3 does not start</title>
		<link>http://florian.puthod.net/blog/2011/my-weblogic-10-3-does-not-start/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-weblogic-10-3-does-not-start</link>
		<comments>http://florian.puthod.net/blog/2011/my-weblogic-10-3-does-not-start/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 16:19:11 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[xNix]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[diagnostic]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/?p=376</guid>
		<description><![CDATA[I was coming back from a pretty good weekend doing renovation when I am called as one of the application resting on a WebLogic Server (WLS) was inaccessible to users.
A quick round up at the WLS console showed that one of the server doesn't want to start nor restart.
Having a look at the logs for [...]]]></description>
			<content:encoded><![CDATA[<p>I was coming back from a pretty good weekend doing renovation when I am called as one of the application resting on a WebLogic Server (WLS) was inaccessible to users.</p>
<p>A quick round up at the WLS console showed that one of the server doesn't want to start nor restart.</p>
<p>Having a look at the logs for that specific server - you know under logs directory of that server - showed that amount other errors caused by this there was a problem with the diagnostic file.</p>
<blockquote><p>.../domain/servers/WebLogicAdmin (or managed server)/data/store/default/XXXXX.dat (WLS_DIAGNOSTICS000000.DAT).</p></blockquote>
<p>the diagnostic file? I never remembered setting any diag mode up and apparently the diag option is off. Anyhow quickly reading of the <a href="http://forums.oracle.com" target="_blank">OTN</a>, some people mentioned deleting the file as it could be corrupted.</p>
<p>That trick never worked for my case. I indeed deleted the WLS_DIAG*.WLS and any .lok under ../Oracle/Middleware/user_projects/domains/canp8/servers files around but nothing.</p>
<p>I eventually had to delete the following directories under each server for which that error occurred. I stopped WLS and for each server I deleted the /data, /tmp and /logs. then starting WLS, it seemed to like not finding them and created a new clean structure. However that was not the end of the troubleshooting as it would complain about the port for one of the server to be already taken by something else.</p>
<p>Indeed, the port seems to be taken by some WLS ghost process of the same name with a different UID. I did not want to look further and decided to shutdown the whole WLS box clean and restart it.</p>
<p>It did the trick for me... perhaps it will do it for you. I still wonder what those files are for and why they would get corrupted and prevent a server from starting up.</p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2011/my-weblogic-10-3-does-not-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Robocopy and EMC Celerra</title>
		<link>http://florian.puthod.net/blog/2011/robocopy-and-emc-celerra/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=robocopy-and-emc-celerra</link>
		<comments>http://florian.puthod.net/blog/2011/robocopy-and-emc-celerra/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 00:11:50 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[En]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[xNix]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/?p=350</guid>
		<description><![CDATA[I came across a problem when using Robocopy command scripts when copying files from NTFS to EMC Celerra file system.  The problem was that every time Robocopy was told to copy files to the EMC Celerra over the WAN, the files were always detected as “newer” on from the originating source.  This caused [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a problem when using Robocopy command scripts when copying files from NTFS to EMC Celerra file system.  The problem was that every time Robocopy was told to copy files to the EMC Celerra over the WAN, the files were always detected as “newer” on from the originating source.  This caused Robocopy to copy every single file from our network to the remote network each and every time.</p>
<p>I came across a command line switch for Robocopy: /FFT : Assume FAT File Times (2-second date/time granularity).  The NTFS date and time stamp is a 64-bit variable, which DART doesn’t deal with.  So what this does is force Robocopy to use FAT style time stamps which are 2-second granularity.  It allows enough flexibility to account for the way the time is recorded when doing a file copy from NTFS to another file system. This is needed when going between and NTFS and Linux/Unix/FAT or emulated file system.</p>
<p>update 20110601: I now use <a title="Home of FastCopy (English)" href="http://ipmsg.org/tools/fastcopy.html.en" target="_blank">fastcopy</a> instead of robocopy. It is a great fast(er) and friendly tool! And it doesn't have any of the security or date issues I have seem with the msft tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2011/robocopy-and-emc-celerra/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ESX4 HA error</title>
		<link>http://florian.puthod.net/blog/2009/esx4-ha-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=esx4-ha-error</link>
		<comments>http://florian.puthod.net/blog/2009/esx4-ha-error/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 15:50:05 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[En]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[xNix]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esx4]]></category>
		<category><![CDATA[esx4i]]></category>
		<category><![CDATA[HA]]></category>
		<category><![CDATA[vcenter]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/?p=301</guid>
		<description><![CDATA[I only played with ESX4 regular flavor so far and I wanted to try mixing them with ESX4i. However trying to put that host in my cluster would give me HA error.
Enabling HA gave the error:
"Cannot complete the configuration of HA agent on the host. See the task for details for addional information. "
Without much [...]]]></description>
			<content:encoded><![CDATA[<p>I only played with ESX4 regular flavor so far and I wanted to try mixing them with ESX4i. However trying to put that host in my cluster would give me HA error.</p>
<p>Enabling HA gave the error:<br />
"Cannot complete the configuration of HA agent on the host. See the task for details for addional information. "</p>
<p>Without much details I was almost ready to blame it on ESX4i. However after checking everything I found out that my DNS servers settings were wrong.</p>
<p>Changing my DNS to the right IPs and HA configuration worked like a charm.</p>
<p>Obviously my sticky keys did not help but of course stressed out the reminder that HA relies on DNS heavily.</p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2009/esx4-ha-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install your atheros wifi card on fedora 7</title>
		<link>http://florian.puthod.net/blog/2007/install-your-atheros-wifi-card-on-fedora-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-your-atheros-wifi-card-on-fedora-7</link>
		<comments>http://florian.puthod.net/blog/2007/install-your-atheros-wifi-card-on-fedora-7/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 16:51:32 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[xNix]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/2007/07/18/install-your-atheros-wifi-card-on-fedora-7/</guid>
		<description><![CDATA[Yes, atheros cards are great but sometime not supported by default by some OS.
To install the madwifi drivers for your atheros on Fedora 7 do the following:
gedit /etc/yum.repos.d/atrpms.repo
and type
[atrpms]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
and click on SAVE , also root import the gpg key from the terminal:
rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms
then just use YUM to install [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, atheros cards are great but sometime not supported by default by some OS.</p>
<p>To install the madwifi drivers for your atheros on Fedora 7 do the following:</p>
<blockquote><p>gedit /etc/yum.repos.d/atrpms.repo</p></blockquote>
<p>and type</p>
<blockquote><p>[atrpms]<br />
name=Fedora Core $releasever - $basearch - ATrpms<br />
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable<br />
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms<br />
gpgcheck=1</p></blockquote>
<p>and click on SAVE , also root import the gpg key from the terminal:</p>
<blockquote><p>rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms</p></blockquote>
<p>then just use YUM to install everything you need!</p>
<blockquote><p>yum install madwifi</p></blockquote>
<p>You will get something like this:</p>
<blockquote><p>[root@localhost ~]# yum install madwifi<br />
Loading "installonlyn" plugin<br />
Setting up Install Process<br />
Parsing package install arguments<br />
atrpms                    100% |=========================|  951 B    00:00<br />
primary.xml.gz            100% |=========================| 224 kB    00:00<br />
atrpms    : ################################################## 1240/1240<br />
Resolving Dependencies<br />
--&gt; Running transaction check<br />
---&gt; Package madwifi.i386 1:0.9.4-38_r2512.fc7 set to be updated<br />
--&gt; Processing Dependency: madwifi-kmdl-1:0.9.4-38_r2512.fc7 for package: madwifi<br />
--&gt; Restarting Dependency Resolution with new changes.<br />
--&gt; Running transaction check<br />
---&gt; Package madwifi.i386 1:0.9.4-38_r2512.fc7 set to be updated...</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2007/install-your-atheros-wifi-card-on-fedora-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wifi-less no more</title>
		<link>http://florian.puthod.net/blog/2007/wifi-less-no-more/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wifi-less-no-more</link>
		<comments>http://florian.puthod.net/blog/2007/wifi-less-no-more/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 14:50:59 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[xNix]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/2007/07/13/wifi-less-no-more/</guid>
		<description><![CDATA[For the first time in my life, I happened to find myself without any wireless connectivity I could easily hook up to.  I needed network-internet connectivity but around me only secured wifi Access Points.
I needed to find the key I lost.
How could I connect without knowing any of those WEP or WAP keys?
I suddently [...]]]></description>
			<content:encoded><![CDATA[<p><strike>For the first time in my life, I happened to find myself without any wireless connectivity I could easily hook up to.  I needed network-internet connectivity but around me only secured wifi Access Points.</strike></p>
<p>I needed to find the key I lost.</p>
<p>How could I connect without knowing any of those WEP or WAP keys?</p>
<p>I suddently remember that I  always have in my laptop CD pockets a very handy CD: backtrack 2. It is very convenient live CD that helps you solve a lot of nice things. It also have tools to scan wifi!</p>
<p>My ubuntu distro install did not have any of those tools installed so here I go, I reboot and run this live CD.</p>
<p>First you need to enable the monitor mode on your interface:</p>
<blockquote><p>#airmon-ng start ath0</p></blockquote>
<p>then just try to run a airodump to scan around</p>
<blockquote><p>#airodump-ng ath0 out 0</p></blockquote>
<p>If you get the wifi around you it means you are ready to play.</p>
<p>Once you see an AP with a decent power (closer to you), use aireplay to inject packets</p>
<blockquote><p>#aireplay-ng -1 0 -e Target_ID -a MACoftheAP -h Your_MAC ath0</p></blockquote>
<p>It will sending authentication requests and you should eventually get this:</p>
<blockquote><p>Association successful <img src='http://florian.puthod.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p></blockquote>
<p>This means you are associated with the AP and ready to replay IVS.</p>
<p>you may want to run this association every X sec so you do not lose the AP connection.</p>
<p>This command will reassociate you every 20 secondes:</p>
<blockquote><p>#aireplay-ng -1 20 -e Target_ID -a MACoftheAP -h Your_MAC ath0</p></blockquote>
<p>So once associated, send packets as following. If you are not associated you see no send packet:</p>
<blockquote><p>#aireplay-ng -3 -b MacoftheAP -h Your_MAC -x 600 ath0</p></blockquote>
<p>You must also start airodump to capture replies, capture only the IVS to save space on the target channel:</p>
<blockquote><p>#airodump-ng -w out --ivs --channel X ath0</p>
<p>aireplay will read:</p></blockquote>
<blockquote><p>Read 12345 packets (got 123 APR requests), sent 12345 packets...</p></blockquote>
<p>You have to key sending until you get a lot of IVS (check airodump). If it stops sending, try reassociating with the AP.</p>
<p>Once you have a lot of IVS, you can start running aircrack. Just run it from another console as it can read the output file as it updates.</p>
<blockquote><p>#aircrack-ng -x -0 out.ivs</p></blockquote>
<p>When you see a "key found" message you are ready to get some network-internet connection.</p>
<p>Just enter:</p>
<blockquote><p>#iwconfig ath0 mode Managed key XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX<br />
#dhcpcd ath0</p></blockquote>
<p>then a little ifconfig will confirm you are connect and able to get an ip from the AP.  Voila! I was able to check what I needed and then go away.</p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2007/wifi-less-no-more/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A quick and dirty Windows password recovery</title>
		<link>http://florian.puthod.net/blog/2007/a-quick-and-dirty-windows-password-recovery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-quick-and-dirty-windows-password-recovery</link>
		<comments>http://florian.puthod.net/blog/2007/a-quick-and-dirty-windows-password-recovery/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 20:00:04 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[xNix]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/2007/07/06/a-quick-and-dirty-windows-password-recovery/</guid>
		<description><![CDATA[Boot the Backtrack CD.
Change dir to your Windows mount point:
# cd /mnt/hda2/WINDOWS/system32/config
Copy the SAM and the system Registry hive to the temp dir:
# cp SAM /tmp
# cp system /tmp
Prepare our wordlist:
# cd /pentest/password/dictionaries/
# gunzip -c wordlist.txt.Z &#62; /tmp/words.txt
# cd /tmp
As the Windows hashes (in the SAM file) are encrypted, we need this key (called bootkey) [...]]]></description>
			<content:encoded><![CDATA[<p>Boot the <a href="http://www.remote-exploit.org/index.php/BackTrack">Backtrack</a> CD.</p>
<p>Change dir to your Windows mount point:<br />
# cd /mnt/hda2/WINDOWS/system32/config<br />
Copy the SAM and the system Registry hive to the temp dir:<br />
# cp SAM /tmp<br />
# cp system /tmp<br />
Prepare our wordlist:<br />
# cd /pentest/password/dictionaries/<br />
# gunzip -c wordlist.txt.Z &gt; /tmp/words.txt<br />
# cd /tmp</p>
<p>As the Windows hashes (in the SAM file) are encrypted, we need this key (called bootkey) to decrypt the SAM hashes:<br />
# bkhive system key<br />
Now we can dump the password hashes out of the SAM file:<br />
# samdump2 SAM key &gt; /tmp/hashes.txt</p>
<p>Lets crack those hashes... the easiest way would be, if the password is in the wordlist, we use john for this case:<br />
# john -w=words.txt -f=NT hashes.txt<br />
No luck? Lets use the brute force method:<br />
# john --incremental:all -f=NT hashes.txt</p>
<p>If this takes too long you could use <a href="http://ophcrack.sourceforge.net/">ophcrack.</a> This tool uses <a href="http://en.wikipedia.org/wiki/Rainbow_table">rainbow tables</a> and should crack your hashes in a few seconds, but you need to download those rainbow tables (350mb or 700mb or you can generate them yourself) which are not included on the Backtrack cd (for a obvious reason...). Or you can use the <a href="http://lasecwww.epfl.ch/%7Eoechslin/projects/ophcrack/index.php">oph online cracker</a>, which should be quite fast.</p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2007/a-quick-and-dirty-windows-password-recovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amarok feisty fix</title>
		<link>http://florian.puthod.net/blog/2007/amarok-feisty-fix/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amarok-feisty-fix</link>
		<comments>http://florian.puthod.net/blog/2007/amarok-feisty-fix/#comments</comments>
		<pubDate>Sun, 24 Jun 2007 15:42:40 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[xNix]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/2007/06/24/amarok-feisty-fix/</guid>
		<description><![CDATA[Amarok is a nice media player for your ubuntu. it leaves your files alone (yeah!) and maintain its own database watching the directory you tell it to watch.
However, in Ubuntu Amarok has no mp3 support. This seems not to be installed automatically and needs to be done manually.
No worries, this is easy when you know [...]]]></description>
			<content:encoded><![CDATA[<p>Amarok is a nice media player for your ubuntu. it leaves your files alone (yeah!) and maintain its own database watching the directory you tell it to watch.</p>
<p>However, in Ubuntu Amarok has no mp3 support. This seems not to be installed automatically and needs to be done manually.</p>
<p>No worries, this is easy when you know where to look.</p>
<p>Amarok will freeze when you try to play any mp3 if you do not do this.</p>
<p>First, close any Amarok instance.</p>
<p>Go to /usr/lib/amarok, where you will find an install-mp3 file</p>
<p>Just run it. and voila! restart Amarok and there you are.</p>
<p>Oh I was talking about Amarok 1.4 .6 on Feisty.</p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2007/amarok-feisty-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>switched to ubuntu</title>
		<link>http://florian.puthod.net/blog/2007/switched-to-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=switched-to-ubuntu</link>
		<comments>http://florian.puthod.net/blog/2007/switched-to-ubuntu/#comments</comments>
		<pubDate>Sat, 23 Jun 2007 14:56:25 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[xNix]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/2007/06/23/switched-to-ubuntu/</guid>
		<description><![CDATA[yes, I did the jump. Last night I turned my XP SP2 valliant box into a Ubuntu feisty box. I never really tries the live cd but read a few things about this distro.
So far I really like it. I have not tried all the things I used to do with my XP SP2.  [...]]]></description>
			<content:encoded><![CDATA[<p>yes, I did the jump. Last night I turned my XP SP2 valliant box into a Ubuntu feisty box. I never really tries the live cd but read a few things about this distro.</p>
<p>So far I really like it. I have not tried all the things I used to do with my XP SP2.  So far I just can miss my Densha de go simulation game but still think it might work with Wine.</p>
<p>I wanted to play for Xvid videos I had and BAAAM the player says, there is no codec installed for this, would you like to go search and install, clicked YES and the videos plays. It is really pleasant. really.</p>
<p>Today I want to try Beryl. <a href="http://video.google.ca/url?docid=-4310386770055344940&amp;esrc=sr1&amp;ev=v&amp;q=ubuntu+beryl&amp;vidurl=/videoplay%3Fdocid%3D-4310386770055344940%26q%3Dubuntu%2Bberyl%26total%3D1607%26start%3D0%26num%3D10%26so%3D0%26type%3Dsearch%26plindex%3D0&amp;usg=AL29H23Q7IeeEjdidNEJmEwtAOS41TXm5w" target="_blank">This video really made me think about it. </a></p>
<p>Please make sure your card is supported for accelerated graphics. In a terminal type:</p>
<blockquote><p>glxinfo | grep direct</p></blockquote>
<p>If you get this output back, your card should work:</p>
<p>Direct rendering: Yes</p>
<p>If you get a "no" from this test, please install the correct driver.</p>
<p>To install the driver, use the Feisty's RestrictedDriversManager to install the Graphics card drivers. I like Feisty for that, every thing is easy.</p>
<p>Installing Beryl is as easy. Make sure you have multiverse [Repositories] enabled (Its on by default) and install using:</p>
<blockquote><p>sudo apt-get install beryl beryl-manager emerald-themes</p></blockquote>
<p>To run beryl, launch using the excecute windows (Alt+F2 then Enter)</p>
<blockquote><p>beryl-manager</p></blockquote>
<p>You may want to add Beryl to your start up if you really like it.</p>
<p>Add beryl-manager to the list of startup programs, by going to System -&gt; Preferences -&gt; Sessions, and under the tab Startup Programs and clicking New. Enter for both Name and Command arguments beryl-manager.</p>
<p>Misc: If you're still having issues visit the <a href="http://wiki.beryl-project.org/wiki/1" target="_blank">Ubuntu Wiki</a></p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2007/switched-to-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing RSYNC on Windows 2003/2000/NT.</title>
		<link>http://florian.puthod.net/blog/2006/installing-rsync-on-windows-20032000nt/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-rsync-on-windows-20032000nt</link>
		<comments>http://florian.puthod.net/blog/2006/installing-rsync-on-windows-20032000nt/#comments</comments>
		<pubDate>Thu, 28 Dec 2006 04:51:43 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[En]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[xNix]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/?p=96</guid>
		<description><![CDATA[
This document assumes that you want to install rsync as a daemon on a Windows NT/2000/2003 server or XP, without installing the entire cygwin suite.
You will need the following files:
From Cygwin:

cygpopt-0.dll
cygwin1.dll
rsync.exe
These are available from  http://www.cygwin.com 
A zip file containing the three Files you need is available.


From the Windows NT or 2000 Resource Kit. You [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image103" src="http://florian.puthod.net/blog/wp-content/uploads/2006/12/rsync-header.jpg" alt="rsync header" /></p>
<p>This document assumes that you want to install rsync as a daemon on a Windows NT/2000/2003 server or XP, without installing the entire cygwin suite.</p>
<p>You will need the following files:</p>
<p>From Cygwin:</p>
<ul>
<li>cygpopt-0.dll</li>
<li>cygwin1.dll</li>
<li>rsync.exe</li>
<p>These are available from <a href="http://www.cygwin.com/"> http://www.cygwin.com </a><br />
A zip file containing the three <a id="p97" title="Files you need" rel="attachment" href="http://florian.puthod.net/blog/?attachment_id=97">Files you need</a> is available.<br />
<em><br />
</em></ul>
<p>From the Windows NT or 2000 Resource Kit. You also may want to read <a href="http://support.microsoft.com/kb/137890" target="_blank">this kb</a> as well.</p>
<ul>
<li>instsrv.exe</li>
<li>srvany.exe<br />
<em>For simplicity I have zipped them up in the previously mentioned package.<br />
</em></li>
</ul>
<p>If you follow the following instructions you will an rsync service on your windows machine.<br />
Please be careful where you place the server as any one who can see it can read from this service.</p>
<ol>
<li>Place rsync where you want to run it from.<br />
(I usually use C:\program files\rsync)</li>
<li>Put the two dll's anywhere in the path, usually C:\winnt\system32 or c:\windows\system32 but for sure %windir%\system32.</li>
<li>From a shell running in the directory containing instsrv and srvany type:<br />
(Replace C:\DirectoryContaining\ as appropriate)</p>
<pre>instsrv Rsync "C:DirectoryContainingsrvany.exesrvany.exe"</pre>
</li>
<li>You should now have a new service called Rsync and you can verify by looking in Start-&gt;Control Panel-&gt;Services (you can also open services.msc from a run command on 2000 or newer)<br />
DON'T START IT YET!</li>
<li>If you want to run rsync in daemon mode you will need a configuration file. Here is the one I use, call it rsyncd.conf and place it in the same directory as rsync<br />
(C:\Program files\rsync\rsyncd.conf)</p>
<pre>use chroot = false
strict modes = false
hosts allow = *
log file = c:/rsyncd.log

[Repl]
path = C:/rsync/
read only = no</pre>
<p>(The command line to connect would look somthing like "rsync -avz server::BackupArea", where server is the name of the server running the rsync daemon.)<br />
The first two lines are important for rsync to work on Windows.</li>
<li>You are going to need to hack some keys in the registry to make it work. Don't do this unless you are comfortable with the changes! Run regedit32 and add the following keys and values (quotation marks ARE IMPORTANT):
<pre>HKEY_LOCAL_MACHINE-&gt;SYSTEM-&gt;CurrentControlSet-&gt;Services-&gt;Rsync
Edit-&gt;Add Key-&gt;  Key Name: Parameters
Edit-&gt;Add Value-&gt;  Value Name: AppDirectory  Value: "C:Program Filesrsync"
Edit-&gt;Add Value-&gt;  Value Name: Application  Value: "C:Program Filesrsyncrsync.exe"
Edit-&gt;Add Value-&gt;  Value Name: AppParameters  Value: --config="C:Program Filesrsyncrsyncd.conf" --daemon --no-detach</pre>
<p>If you would like to add these keys automatically, there is a .reg file in the rsync.zip file hosted at the top. Just double click on rsync-param.reg</p>
<p>Rsync server uses port 873 by default. You can update registry to specify a new port :</p>
<pre>[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesRsyncServerParameters]
"AppArgs"="--config rsyncd.conf --daemon --no-detach --port=new-port-number"</pre>
<p>Remember, unless you trust me implicitly, read the reg file and make sure you understand what it's doing before you run it, I will not be held responsible for idiots.</li>
<li>You will probably have to open up the services control panel and double click on the Rsync service. Open the Log On tab and either change it to logon using the Local System account or edit the account information to a valid login account.</li>
<li>That's it, you should be able to start and stop the rsync service at will using the Services Control Panel. When running with the above configuration you should be able to test by attempting to telnet to port 873 from a remote machine. telnet rsync.server.com 873 (replacing rsync.server.com with your own server's address and the port) You should get a connection to the rsync daemon running on your server.</li>
</ol>
<p>Then you may want to use rsync on another machine to rsync something.</p>
<p>your rsync command will be in the following format (but not exactly this):</p>
<pre>rsync -avz --delete --exclude '.Bad files' '/cygdrive/f/Public/toBakup' rsync://remoteserv:87/Repl</pre>
<p>Let's break this command down. Here you're calling rsync using the -a, v, z options (archive, verbose and use compression, respectively). It should delete any files that exist on the destination that don't exist on the source(--delete), and it should exclude all files called '.Bad files' (--exclude, because we don't need to backup the annoying little system files). The file source is on the drive f: /cygdrive/f/Public/toBakup on the source and the destination as defined on the server remotesrv named Repl (see conf file) on port 87.</p>
<p>Once you do and hit Enter, rsync will spring into action, and start transferring the files on the source and mirroring them in the destination directory on your server. The -v switch (verbose) means you'll see all the action as it's happening. check the <a href="http://optics.ph.unimelb.edu.au/help/rsync/rsync.html" target="_blank">rsync man</a> for more switches.</p>
<p>Like all good command line interaction, the secret sauce which bends rsync to your will lies in the usage switches you provide it in the rsync call (ie, rsync -avz). To see all the available options, type rsync -h at the command line. A few of the more interesting ones are:</p>
<pre>-r, --recursive             recurse into directories
-u, --update                skip files that are newer on the receiver
-n, --dry-run               show what would have been transferred
--existing              only update files that already exist on receiver
--delete                delete files that don't exist on the sending side
-z, --compress              compress file data during the transfer
--exclude=PATTERN       exclude files matching PATTERN</pre>
<p>If you're just getting started with rsync, the -n ("dry run") switch with -v (verbose) is a great way to see what files would get copied without actually performing the copy. Use that switch to test out your rsync recipe before you run it.</p>
<p>It runs well but a few questions remain:</p>
<p>Can it copy files in use?<br />
How to preserve NTFS attributes?</p>
<p>I have found a few answers for the first one. The answer is quite simple: use VSS (volume shadow copy). go to the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0B4F56E4-0CCC-4626-826A-ED2C4C95C871&amp;displaylang=en" target="_blank">VSS MS ressource site</a> and download the kit. Then you should be able to create Volume shadow in no time and copy files in use.</p>
<p>You would also like to read from the guy who wrote VSS:<br />
Link to blog: <a href="http://blogs.msdn.com/adioltean" target="_blank">http://blogs.msdn.com/adioltean</a><br />
Link to first script: <a href="http://blogs.msdn.com/adioltean/archive/2005/01/20/357836.aspx" target="_blank">http://blogs.msdn.com/adioltean/archive/2005/01/20/357836.aspx</a><br />
Link to second script: <a href="http://blogs.msdn.com/adioltean/archive/2005/01/05/346793.aspx" target="_blank">http://blogs.msdn.com/adioltean/archive/2005/01/05/346793.aspx</a><br />
I am granting with an example I found:</p>
<pre>SHADOWRSYNC.CMD

setlocal

@REM test if we are called by shadowrsync.cmd
if NOT "%CALLBACK_SCRIPT%"=="" goto :IS_CALLBACK

@REM
@REM Set these variables to what you need.
@REM SHADOW_DRIVE_LETTER is an existing drive you want to shadow
@REM
@REM MAP_SHADOW_TO needs to be either a drive letter that isn't
@REM currently in use, or an empty directory
@REM eg.  x:   or  c:tempshadowcopy
@REM

set SHADOW_DRIVE_LETTER=D:
set MAP_SHADOW_TO=X:

@REM
@REM Create the shadow copy - and generate env variables into a
temporary script.
@REM Then resursively come back into this script.

set CALLBACK_SCRIPT=%~dpnx0
set TEMP_GENERATED_SCRIPT=GeneratedTempScript.cmd

@echo ...Create the shadow copy...

vshadow.exe -nw -p -script=%TEMP_GENERATED_SCRIPT%
-exec=%CALLBACK_SCRIPT% %SHADOW_DRIVE_LETTER%

del /f %TEMP_GENERATED_SCRIPT%

@goto :EOF

:IS_CALLBACK
setlocal

@REM Get the vshadow temp variables.

call %TEMP_GENERATED_SCRIPT%

@REM Map the drive to the shadow copy
vshadow -el=%SHADOW_ID_1%,%MAP_SHADOW_TO%

@REM Now do your rsync thing
rsync   blah blah blah blah........

@REM Delete the shadow
vshadow -ds=%SHADOW_ID_1%</pre>
<p>I still have to try this but I am sure it would work as it works for my backup software I usually use. In some way it looks like we are getting closer to DPM (Microsoft Data Protection Manager), a new MS software that almost continuously sync some contents for a user managed restore or for backup. maybe I should work on a GNU DPM eh!</p>
<p>I still have no answer about how to preserve NTFS attribute, since rsync is from the unix world and the NTFS mechanism is quite complex I am not they are very compatible. If only it were, this would be very useful for restore - just restore the data or switch to another server.</p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2006/installing-rsync-on-windows-20032000nt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

