Hi there,

I have been searching for a while for a complete solution on how to make the ditaa plugin work.  Can’t seem to find a complete and working solution to the problem.

The only way I could make it work was by running Zim (0.67 at the time of this writing) in Debug mode.

  1. First you need to get the code of the latest ditaaeditor.py on github and save it to a ditaaeditor.py file with your favorite editor (notepad++ is my personal choice). https://github.com/gdw2/zim/blob/master/zim/plugins/ditaaeditor.py
  2. Go to folder C:\Users\%username%\Appdata\Roaming\zim\data\ create the folders so that you get C:\Users\%username%\Appdata\Roaming\zim\data\zim\plugins\ That’s right two zim folders…. don’t know why but it works.
  3. Copy your ditaaeditor.py to the newly created plugins folder
  4. Download ditaa from sourceforge. https://sourceforge.net/projects/ditaa/
  5. Extract it to Ex: C:\tools\ditaa\
  6. Edit the dotcmd line in the ditaaeditor.py file so that it matches your ditaa_09.jar file location.  dotcmd = (‘java -jar C:\\tools\\ditaa\\ditaa0_9.jar’)
  7. Install the latest java environment. (Java 7 worked for me) https://java.com/download
  8. Run zim in debug mode, and go to the preference menu and clic the check box next to the ditaa plugin.
  9. It will only work in debug mode and you need to activate it everytime, but atleast you can create fancy diagrams… 🙂

Have a good day.

Memscan

Ref:

https://lists.launchpad.net/zim-wiki/msg03533.html

https://lists.launchpad.net/zim-wiki/msg03080.html

Hi There.

I was currently installing mysql on my workstation when this lovely error pop out.  Searching on the net I found this solution:

Usually this error happens when /etc/passwd and /etc/master.passwd are out of sync.

Note: Be careful when tampering with /etc/passwd

To fix my problem I’ve run vipw and deleted the last user that was causing problem, in that case mysql and saved the file. Voila!

Small crash course on how to use vipw  (for thoses who don’t know it uses the vi interface)

To delete a line, go to the line you want to delete and press twice on the letter d.

If you want to save the file enter exactly :w! enter.

To quit press :q! enter.

Or one command that does it all :wq! enter.

Have a great day!

Dear readers

When you install squid proxy server from the binairy packages it is already configured to use the dns server mentionned in the /etc/resolv.conf file.  But what if you wanted to disable it and use an external dns server for whatever the reasons.

You need to install the squid server from the freeBSD ports.  I will do a post on ports later this week.

Update your port tree:

# portsnap fetch update

Now that it is updated go to the squid folder

# cd /usr/ports/www/squid/

Edit Makefile file to have the special configure argument “–disable-internal-dns” at the line CONFIGURE_ARGS=    # Dont forget to add \ after the last parameter to indicate a newline and  remove the double quotes.

# nano Makefile

Now build the squid port

# make install clean

Edit rc.conf so that squid runs at every startup and the line squid_enable=”YES”

You need to add a dns server to the the squid config file since the internal dns is disabled.

# echo “dns_nameservers 8.8.6.6” >> /usr/local/etc/squid/squid.conf

You can go ahead and start the service

# service squid start

By default the squid port is 3128 so you can try and connect to your server with google-chrome if you want.

# google-chrome –proxy-server=192.168.0.20:3128

Enjoy your server.

Pascal

Dear readers

*unix systems have different ways to configure there network interfaces.

On freeBSD, alot of configurations are done in the /etc/rc.conf file.

So if you have already install your freeBSD system and want to go from DHCP to static check this out.

For dhcp use edit the /etc/rc.conf with the following line

ifconfig_em0=”DHCP”

For static ip edit the /etc/rc.conf with the following line

ifconfig_em0=”inet 192.168.0.26 netmask 255.255.255.0″

add the following line for the /etc/rc.conf, so that your system knows where is your internet gateway.

defaultrouter=”192.168.0.1″

Hope this helped you.

Memscan

Nano text editor keyboard shortcuts

Posted: December 16, 2014 in bash

Simple list of nano’s keyboard shortcuts

Alt-6      Copy

Ctrl-U    Paste

Ctrl-K    Cut

Alt-#      Show line numbers

Ctrl-_    Go to line number

Ctrl-O    Save file

Ctrl-X     Save file and exit

Memscan

Dear Readers

Depending on your login manager (xdm, gdm, slim etc) you need to edit a configuration file to

deactivate the listening port 6000 if it is not needed or just for security reasons.

It is quite simple.

In freeBSD the slim.conf is located in /usr/local/etc/slim.conf

Change the line below

xserver_arguments    vt09

to

xserver_arguments   -nolisten tcp vt09

Then either reboot your system or type:

# sudo service slim restart

For linux (debian, ubuntu) the configuration file is located in the /etc/slim.conf

Enjoy

Memscan

Dear Readers

The new package manager pkg is really a beauty, it runs well and well rounded with a nice syntax.

But it will happen to you that even toe you’ve updated the repository list it will still give you the following error :

“size mismatch, fetching from remote”  and “size mismatch, cannot continue” when trying to fetch one of your

favorite programs.

First reflex as a old linux user is to update the repository “pkg update” which doesn’t yield any results, your still getting

the error “size mismatch, fetching from remote” and “size mismatch, cannot continue".

To solve this :

Use the -f option to force the re-downloading of the repositories.

sudo pkg update -f

Voila!

Memscan