Friday, May 17, 2013

Ubuntu shares via nautilus are read-only

The problem :

The folders shared with nautilus are read-only, no matter what options you choose in the folder sharing dialog. The setting are ok.
Here is a dump of net usershare info --long
[share]
path=/home/user/share
comment=
usershare_acl=Everyone:R,USER\(null):F,
guest_ok=n
Even with guest acces and the folder permissions set to drwxrwxrwx it still doesn't work.

The Solution :

Adding force user = user in the [global] section of /etc/samba/smb.conf solves this issue. Puting security = share also solves the win2000 access denied.

Tuesday, April 9, 2013

Your Firefox profile cannot be loaded.

I'm using Profile-sync-daemon in order to place my browser's cache in ramdisk at boot, to use the ramdisk during navigation and to replace the cache on the disk during shutdown.
I'm also using ubuntu 13.04 wich is not quiet well de-bugged and sometimes crashes leaving my firefox profile in dead memory. So when I restart the computer and run firefox it says : "Your Firefox profile cannot be loaded. It may be missing or inaccessible."
Just go to /home/uname/.mozilla/firefox and rename your backed-up profile folder abcdefg1.default.backup (you will find its path in the profiles.ini file) to abcdefg1.default
Firefox will start again with an old profile but it works !

Wednesday, January 9, 2013

Create consistent business documents

Creating beautiful customized invoices or other documents that have a consistent look across your business can be a complex task. This post will show you how you can create such documents by using simple open-source tools.

Overview

  1. Create a page background template
  2. Create your invoice or document
  3. Merge the files

The template

Use inkscape or scribus to create a pdf file as the page background template. You need to create this file only once. It will be used by all your business documents.

beautiful background

The document 

Use whatever tool you fell comfortable with to create the document. It can be LibreOffice writer, calc, ...

letterinvoice

The final document

Use PDF Background to merge your documents and the background template. Pdfbg puts the document on top of the background just like if your were printing on it.

beautiful letterbeautiful invoice


The result is beautiful. Your documents have exactly the same look. This technique can be applied to any pdf document, the background will be the same for all of them.