Oct 31

Export to file:

pdbedit -e smbpasswd:/mydir/myfile

Import from exported file:

pdbedit -i smbpasswd:/mydir/myfile

written by MG \\ tags: , , , ,

Sep 27

(Samba errror : unable to connect to CUPS server localhost – Connection refused)

To disable printing support, you should edit your samba configuration settings.

Edit or add the flowing line to your /etc/samba/smb.conf

load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes

written by MG \\ tags: , ,

Mar 29

First you need to specify character set for HTML output.. in your page header add:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

in PHP you can use (this line must be first in your code):

<?php header("Content-type: text/html; charset=utf-8");?>

then you need to write a .htaccess in your root dir of your website:

# Set httpd charset to utf-8
AddDefaultCharset On
AddDefaultCharset utf-8
# Set php charset to utf-8 and setup mbstring (you may need to install mbstring module)
php_value default_charset utf-8
php_value mbstring.internal_encoding utf-8
php_value mbstring.func_overload 7


more info for romanian users at:

written by MG \\ tags: , , ,

Nov 17

If you have a IBM ServeRAID 8k controller and you have changed a defunct drive with new one,

and rebuilding is not starting, you must add your new READY drive to your logical drive.

Usage: SETSTATE <Controller#> DEVICE <Channel# ID#> <State> [LOGICALDRIVE <LD#> [LD#] … ] [noprompt]

if you are in this particular situation :


disk is 0,5

and logical drive is 1

./arcconf setstate 1 device 0 5 hsp logicaldrive 1

written by MG \\ tags: , ,

Aug 31

If you do not wish to perform a GUI installation, you can start a text  mode installation using the following boot command:

boot: text

If you are having trouble booting into the graphical installation program,  you can try to boot using the no framebuffer (nofb) boot option.

At the boot command, enter the following:

boot: nofb

This option allows you to use the graphical installation program without using a framebuffer.

written by MG \\ tags: , ,

Jun 21


dumpe2fs -h /dev/sda1


tune2fs -l /dev/sda1

where /dev/sda1 is you partition, and search for Block size:

written by MG \\ tags: ,

Apr 16

1.  Type about:config in Firefox location bar and press Enter

2.  Double-click on Preference.Name and change the value.

written by MG \\ tags: , , ,