Youry's Blog

Youry's Blog

Archive for June 2012

converters for PDF and back

leave a comment »

converters for PDF and back for Linux:

/usr/share/ted/Ted/ source-file dest-file


from JPG to PDF: converter – excellent!


Written by youryblog

June 17, 2012 at 8:57 PM

Posted in IT, UNIX/Linux tricks

CVS and SVN setup on MAC Server and user admin

leave a comment »

  • User admin
    • Identify an unused user ID by using the dscl tool:
      dscl /LDAPv3/ipaddress -list /Users UniqueID| awk ’{print $2}’ | sort -n

I use different sources and trying to recreate it for my server. I’ve tried to play with Web Server – doesn’t work through Server manager. I use my personal SVN repository within my user account, but now I need to have group access to the repository for an on-line collaboration. Maybe the guideline below will work for me.

OK. Let start (from

  1.  sudo mkdir -p /usr/local/svn/repos
  2. sudo chgrp _developer /usr/local/svn/repos
  3. sudo chmod g+w+s /usr/local/svn/reposSet the file mode creation mask to give the group write permissions to the repository we are about to create.
  4. umask 002
  5. svnadmin create /usr/local/svn/repos/<project_name>And set the user mask to the default value.
  6. umask 0227.
  7. cd ~
  8.   svn co file:///usr/local/svn/repos/<project_name>
  9.  cd <project_name>
  10.  svn mkdir branches tags trunk
  11.  svn ci -m “initial structures”Now, let’s enable remote access to the repository.
  12.  sudo vi /usr/local/svn/passwd-developers
    The structure of the file should be as follows:
    <user_1> = <password_1>
    <user_2> = <password_2>
    <user_3> = <password_3>Save the file and change its permissions, so it’s only readable by the owner (root).
  13. sudo chmod 600 /usr/local/svn/passwd-developers
  14.  vi /usr/local/svn/repos/<project_name>/conf/svnserve.conf
  15. Paste the following after [general] (line 8):
    anon-access = none
    password-db = /usr/local/svn/passwd-developers
    realm = developers
  16.  sudo svnserve -d –foreground -r /usr/local/svn/repo
  17.  svn checkout svn+ssh://<server_ip>/usr/local/svn/repos/<project_name> –username <user>

As I expected – doesn’t work. Spend several hours – doesn’t work. Works only for the administrator account.

After some investigation found very strange behaviour – works in a such way (with double password request):

svn checkout svn+ssh://username@<server_ip>/usr/local/svn/repos/<project_name>

Found another interesting paper:

For Fedora and SVN HTTP see

Written by youryblog

June 14, 2012 at 9:24 PM

Posted in IT, MacOS

More than 6 million LinkedIn passwords stolen (By David Goldman @CNNMoneyTech June 7, 2012)

leave a comment »

More than 6 million LinkedIn passwords stolen By David Goldman @CNNMoneyTech June 7, 2012: 9:34 AM ET

Surprise! I thought that LinkedIn has a good security. They have a lot of IT professional and they have probably not a bad budget for IT. Sorry for them. I already changed my password for new one, but need to update all passwords on other sites. I think this is a time when we should use only generated passwords and store them in an online system, which has very good protection and security. It’s difficult but possible. At least one company or one organization should have a good security and even not for free.I think everybody will be agree to pay couple dollars per year to protect all accounts and all passwords. We have hundred millions users in Internet. I think this is a good multi-hundred million business for one web-site.


Written by youryblog

June 13, 2012 at 2:15 PM

Good paper about rsync through ssh

leave a comment »

An Updated Rsync 3.1.0 for Mavericks


George January 4, 2014 Update 1/6/14

Well that sucks, it looks like rsync 3.1.0 is broken for OSX. You can use the same instructions here for 3.0.9, just change the commands below accordingly.

Because of the new GPLv3 licensing of rsync 3.0+, Mavericks still has the same old rsync 2.6.9 as prior iterations of OSX, which to say the least is extremely outdated and does not copy everything about an OSX file. Mike Bombich over at Bombich Software, author of the great Carbon Copy Cloner, wrote many of the rsync patches and had a page describing the compilation details for rsync 3.0.7. These are the instructions adapted for rsync 3.1.0.

I have an alias, nrsync (new rsync) which has a few more niceties. It’s defined as:

This forces rsync to use ssh with the arcfour cipher which is a fast, if not the fastest, encryption scheme for SSH. Because I use rsync with my 4 Macs (Mac Pro, Macbook Pro, iMac, Macbook), I also force it to use the one in /usr/local/bin on the remote side.


  1. another good paper about rsync backup

    rsync -r -t -v --progress -c -l -z /home/axel/ /mnt/data2/Backup/home/ -n

    -r copies also all subdirectories within main directory
    -t preserves modification times
    -v verbose mode, shows more information
    –progress shows progress during transfer
    –delete deletes files in destination which are not present in the source
    -c compares files contents by checksum
    -l copies symbolic links
    -z compresses files for faster transfer


something to memorize:

rsync –progress -avhe ssh –delete /home/user/dir/

ssh-keygen -t dsa, and press Enter when prompted for a passphrase.

ssh-copy-id -i .ssh/ to copy the public key to the remote host.

it’s necessary to add some restrictions as well. will write later about it.

Written by youryblog

June 8, 2012 at 3:47 PM

vmware workstation 8.x & 10.x instllation problems

leave a comment »

2014: updates: VMWare on Fedora 20

yum -y install gcc kernel-headers kernel-devel
ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
sh VMware-Workstation-Full-10.0.1-1379776.x86_64.bundle


Error VMWARE Workstation 10.x installation with Kernel 3.x from

“After trying several options, I managed to get the installation with the following command, perhaps the option to ignore errors: ./VMware-Workstation-Full-10.0.2-1744117.x86_64.bundle  –console –custom –eulas-agreed -I –regular ”


from interesting a post:

… to do virtualization on non-cloud hardware using Free Software:  Qemu and KVM, running atop GNU/Linux.
deploying a fleet of MS Windows VMs, and you want big enterprise-type bureaucracy, you probably want something like the Xen-based XenCenter instead of KVM …

new problem with new kernel 3.4 and 3.5
Re: Cannot compile VMware Blocking Filesystem kernel module.

    • sudo su –
    • cd /usr/lib/vmware/modules/source
    • tar xvf vmblock.tar
    • vi vmblock-only/linux/filesystem.c
      • :252 enter
        rootDentry = d_alloc_root(rootInode);
        rootDentry = d_make_root(rootInode);
    • tar cfv vmblock.tar vmblock-only/
    • vmware

    A clear explanation that makes perfect sense. The patch finds the return -EINVAL;  } around line 525, and then inserts:

    [ original code kept in place ]
    rootDentry = d_make_root(rootInode); [the key change inserted make for alloc]
    [ original code kept in place ]

    Thank you!

    PS. And it worked perfectly.

    works fine


Source: VMWare community forums

The following link gives explanation how to fix vmware workstation 8.x installation into linux kernel 3.2.x+:

You need to download a patch from this link at the first and then do the following:
cd /usr/lib/vmware/modules/source
sudo tar xfv vmnet.tar
sudo patch -p0 < workstation-8.0.2_linux-3.2.patch
sudo tar cfv vmnet.tar vmnet-only/
sudo vmware-modconfig –console –install-all

PS Just updated workstation 8.0.3 to 8.0.4 – still the same problem. I’m amazed by the VMWare!!! They charge so much money for their products, but can’t even add already known patches.  They issued so many different licenses, like Microsoft, but can’t support their customers any more.

Written by youryblog

June 4, 2012 at 1:48 PM

Posted in IT, VMWare

Canadian climber Shriya Shah-Klorfine among three dead in Mount Everest ‘death zone’

leave a comment »

Sad Story: Canadian climber Shriya Shah-Klorfine among three dead in Mount Everest ‘death zone’

by   May 21, 2012 – 2:30 PM ET | Last Updated: May 23, 2012 12:33 PM ET

“Shriya Shah-Klorfine, of Toronto, was among three people who died while descending from the summit Saturday in what are being described as overcrowded conditions.”

Written by youryblog

June 1, 2012 at 1:26 PM

Posted in News