Κυριακή 8 Αυγούστου 2010

grsync samba directories

"rsync: failed to set times on"
This message appears when trying to rsync (through grsync) Samba directories from within the same PC from one disk to another keeping all (user,group,permissions etc) the same.
This is because simple user does not have some permissions in the samba directory.

Solution:
use a terminal and type
gksudo grsync
(will prompt for user's password and will open an grsync as root so everything will be copied correctly)

Τετάρτη 16 Ιουνίου 2010

NOT SOLVED

I do not know yet who is responsible for the removing of samba from "ubuntu 10.04 amd64 desktop" but I am sure that guys in launchpad will find him.
The problem is that this guy is not the one that took the money from RedHat or Novell or Microsoft to destroy the image of canonical or of open source projects.

This was not a human mistake nor an flub (miss) of the open source community. This was a surgically designed attack either to canonical or to open source community, by a very well hidden center.

Maybe in a few years, this center will be uncovered, but for now, to me, is enough to reduce-limit-marginalize people unwittingly help in such situations.

Δεν ξέρω ακόμα ποιος είναι υπεύθυνος για την απομάκρυνση της samba από το "ubuntu 10.04 amd64 desktop", αλλά είμαι βέβαιος ότι οι τύποι στο launchpad θα τον βρουν.
Το πρόβλημα είναι ότι αυτός ο τύπος δεν είναι αυτή/ος που πήρε τα χρήματα από τη RedHat ή τη Novell ή τη Microsoft για να καταστρέψει την εικόνα της canonical ή των έργων ανοικτού κώδικα.

Αυτό δεν ήταν ένα ανθρώπινο λάθος ούτε μία αστοχία της κοινότητας του ανοιχτού κώδικα. Αυτό ήταν μια χειρουργικά σχεδιασμένη επίθεση είτε προς την canonical είτε προς την κοινότητα του ανοικτού κώδικα, από ένα πολύ καλά κρυμμένο κέντρο.

Ίσως, σε μερικά χρόνια, να αποκαλυφθεί αυτό το κέντρο, αλλά προς το παρόν, για μένα, θα είναι αρκετό για να περιορίστουν τα άτομα που άθελά τους βοηθάνε σε τέτοιες καταστάσεις.

Τρίτη 8 Ιουνίου 2010

PostgreSQL

It is very unclear to me why noone has a clear method on how to create and manage a PostgreSQL database in an ubuntu (and other linux) system.

First open synaptic to install
postgresql

This does nothing but installs the service and the clients

in order to actually use the database you must be fluent with some things:
1. the client (psql) tries to connect to the default database with the default user name which means that:
if your user name in ubuntu is John then the default database is John and the default user name is John

Maybe (maybe, maybe....) you have been added to users of PostgreSQL.
if you try to use the client program by issuing:
psql
at the command prompt and you get a:
psql: FATAL: database "John" does not exist
This means there is no database so you cannot connect with the client to PostgreSQL
There is no such thing that "I connect to PostgreSQL with the client"
There is only
with the client: "I connect to a specific database in a specific server"
There are other programs that create databases inside the PostgreSQL (the most used is: createdb)

So from the begining:
1. Install from "synaptic" (or by other program that has a gui for installation programs like "Ubuntu Software Center") the postgresql (which will install service and the client programs as well the needed "sub"programs. This will install the latest version that your ubuntu supports.)
2. open a terminal
Since the only user who can connect to a fresh install is the postgres user, here is how to create yourself a database account (which is in this case also a database superuser) with the same name as your login name

2a. type:
whoami
(this will show your user name. You must see your user name because maybe from previous typings you changed the user)

2b. sudo -u postgres createuser --superuser $USER
this will create a user with your "user name" with superuser priviledges (the command line inperpreter will change the $USER with the your user name.
type:
createdb YOURUSERNAMEHERE
(this will create a database with your username as the name of the database and it will belong to you. In the above typing you must type your user name and NOT the "YOURUSERNAMEHERE" )
If no errors occur then proceed to next step
3. type:
psql
And ooops you are in a client enviroment that you can issue SQL comments!!!
To exit type control + D (the key Ctrl plus the key D simultaneously)

Τετάρτη 2 Ιουνίου 2010

HP LajerJet 5000dn printing problems

UBUNTU (and maybe other Linux) users
If you have problems with default printer driver (for me HP LajerJet 5000dn printed some characters mixed) goto

http://hplipopensource.com/hplip-web/index.html

Τρίτη 25 Μαΐου 2010

Tabs open at end in firefox

When I installed ubuntu 10.04 firefox started to open new tabs not at the end (where i can find them easily) but after the tab I was working.

"Reclaim" your new tab at end of the tabs by
....
If you don’t want new tabs to be affected, go to
about:config
(see http://kb.mozillazine.org/About:config for more info)
and make false (by double clicking it) the preference
browser.tabs.insertRelatedAfterCurrent
...
(maybe other versions of firefox have something like this so find it by yourself)

Τρίτη 11 Μαΐου 2010

VirtualBox can't operate in VMX root mode

Try disabling kvm module...
"modprobe -r kvm_intel" with root privileges. This worked for me...

from:
http://forums.virtualbox.org/viewtopic.php?t=7796

(worked also for me)

Τετάρτη 24 Μαρτίου 2010

Subject: MediaWiki Karmic Blank Pages

found at:
http://osdir.com/ml/ubuntu-doc/2010-01/msg00019.html
24/3/2010

Hi,

I just installed MediaWiki on a 64bit Karmic-Ubuntu by following these
instructions:

https://help.ubuntu.com/9.10/serverguide/C/mediawiki.html

After moving the LocalSettings.php and pointing my browser to the main
page there is only a very blank page. But some of the Special Pages
work... e.g. Special:Version

There is no way of getting any error report displayed (for example with
error_reporting(E_ALL)...).

After some investigation I resolved the issue:
The memory limit that is written to the LocalSettings.php is to low:
If you raise it from:
ini_set( 'memory_limit', '16M' );
to
ini_set( 'memory_limit', '64M' );

everything works just fine and as expected. I think this should be
mentioned in the ServerGuide above.

Cornelius

mysql reset password

http://ubuntu.flowconsult.at/en/mysql-set-change-reset-root-password/

Τετάρτη 10 Φεβρουαρίου 2010

SSPORT

The SSPORT service failed to start due to the following error: The system cannot find the file specified.

----SOLVED----
Since the file at the moment is no longer present in the moment and you do not notice other problems, it would be the simplest to the service to completely remove it:

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services]

The branch should be the subkey SSPORT Delete them. If someday something and accurate reports on the service required, you can still see what it was and how to get it reinstalled.

But Remember Tampering with the registry is never without risk. Do you have a backup or a system restore point. Then you can make the change.

DgiVecp

The DgiVecp service failed to start due to the following error: The system cannot find the file specified.

Each time the server (running Windows Small Business Server 2003) is
restarted, I see this error:

"One or more services failed to start."

In the System Event Log, I regularly see the following error:

"The DgiVecp service failed to start due to the following error: The
system cannot find the device specified."

This is Event ID 7000 and the source is Service Control Manager. On
doing a search for DgiVecp, I find it in the following three
locations:

C:\Windows\system32\drivers\dgivecp.sys
C:\Windows\Samsung\CLP-510\Data\dgivecp.sys
C:\Windows\Samsung\CLP-510\GDI\Data\dgivecp.sys

I have looked at Administrative Tools --> Services but the service in
question is not listed there at all which in itself is confusing. I
have looked in the registry in (HKEY_LOCAL_MACHINE\SYSTEM
\CURRENTCONTROLSET\SERVICES) and 'Start' is already set to 0x2 which I
believe is 'Automatic' start up.

So...it looks like it has to do with my Samsung printer (which is
elsewhere on the network and not directly connected) but what on earth
can I do to resolve this? I have no idea what's going on.

Any advice / suggestions much appreciated. I can provide more
information if you need it. If I'm posting in the wrong place, please
could someone point me in the right direction? Thanks.

doing a search for DgiVecp, I find it in the following three
locations:

C:\Windows\system32\drivers\dgivecp.sys
C:\Windows\Samsung\CLP-510\Data\dgivecp.sys
C:\Windows\Samsung\CLP-510\GDI\Data\dgivecp.sys

I have looked at Administrative Tools --> Services but the service in
question is not listed there at all which in itself is confusing. I
have looked in the registry in (HKEY_LOCAL_MACHINE\SYSTEM
\CURRENTCONTROLSET\SERVICES) and 'Start' is already set to 0x2 which I
believe is 'Automatic' start up.

So...it looks like it has to do with my Samsung printer (which is
elsewhere on the network and not directly connected) but what on earth
can I do to resolve this? I have no idea what's going on.

----Until now----
we know this is samsung problem
we know 2 means aytomatic start
so we can change it

(Shain Wray
Microsoft PSS Security Team
This posting is provided "AS IS" with no warranties and confers no rights.
Please reply to the newsgroup so that others may benefit. Thanks!)

posted the answer but did not explained what changing from 2 to 4 means
(micro-soft combinations)
----SOLVED----
1. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
2. Look for an entry listed as DgiVecp
3. If you find this, then change the Start data value to 4.
4. Reboot the system and see if the message is gone.