RSS
 

Archive for July, 2009

Ubuntu: Mount a FTP account as a folder

13 Jul

To keep all my data synchronized between my machines and also have version of them in the same time without having an public svn repository. I use my ftp account as a repository for my local svn server. So my svn server is just an engine which store data on FTP mounted folder. I covered the method to install SVN server in other post and today I want to introduce the FTP mounting as a folder. The used tool is curlftpfs.

1. If you don’t already have curlftpfs installed, install it with
sudo apt-get install curlftpfs
2. Replacing the appropriate settings, mount the share with
sudo curlftpfs -o umask=0777,uid=1000,gid=1000,allow_other ftp://username:password@your.ftpserver.com /media/ftpfolder
Make sure that the location to mount to is already created and readable and writable by all users.
3. To make this permanent, add it to the end of /etc/init.d/rc.local to be able to access the share after reboot. Other option is to add it to ~/.bashrc. It is your choice

It is a bit slow but it works!

 
No Comments

Posted in Ubuntu

 

Type in roman letters and send in arabic

12 Jul

Even you don’t have an arabic keyboard, you can right in roman letter and send in arabic. This service is now available from Microsoft!. The name of the service is MAREN.
Check this link.

 
 

Ubuntu: Gnuplot output eps file

08 Jul

To let Gnuplot generate an eps file in order to include it in Latex:

set term post enh # enhanced PostScript, essentially PostScript with bounding boxes
set out ‘gplt.eps’
set xlabel ‘{/Symbol q_1}
set ylabel ‘sin^2({/Symbol q_1})’
plot sin(x)**2

 
No Comments

Posted in Ubuntu

 

Ubuntu: convert between EUC and UTF-8 encoding

06 Jul

To convert between EUC and UTG-8 encoding I used NKF.

sudo apt-get install nkf

The usage :

EUC–>UTF-8

nkf -d -w80 euc.text > utf.tex

UTF-8–>EUC

nkf -d -e utf.text > euc.tex

To convert all the content of a folder:

$ mkdir utf8

$ for i in `ls -I utf8`; do echo $i; nkf -d -w80 $i > utf8/$i ; done

 
No Comments

Posted in Ubuntu

 

Ubuntu: dvipdfmx error

06 Jul

When I installed the Japanese latex environment for the first time I got this error:
could NOT open config file "fontmapsx"

I search in the Internet for the solution and I found this:
sudo apt-get install okumura-clsfiles vfdata-morisawa5
sudo jisftconfig add
sudo update-texmf

and it helped.

 
4 Comments

Posted in Ubuntu