by prettyscripts on 2011-11-24 10:25:00 • Leave a comment »
unix • windows
ever since upgrading my pc to win7, i'm always asked to enter my login to a network drive connected to a linux server via samba even everytime i restarted my pc, though the option Remember my credentials is checked.
why does window provides an option t…
more »Tags: credential, linux, login, network, samba, win7, windows
by prettyscripts on 2011-11-08 16:48:00 • Leave a comment »
unix
recently a server was upgraded to fc14 with php v538 and when runnning php based website, i get the following warning:
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting…
more »Tags: apache, php, timezone, unix
by prettyscripts on 2011-04-27 10:44:00 • Leave a comment »
unix
by default when fedora / redhat linux is installed, a 'fedora test page' is displayed when apache server is started.
or when websites are configured on server, denying ip address via .htaccess, the same default page is displayed.
to disable this page,…
more »Tags: apache, default, deny, fedora, htaccess, linux, red hat
by prettyscripts on 2009-10-15 10:23:11 • Leave a comment »
unix
there are 2 commands to add user: userad and adduser. (the commands could be the same for other linux.)
adduser is easier to use. it prompts for relevant information.
to allow new user to run sudo, run:
$ usermod -G admin <username>
more »Tags: linux, ubuntu, user
by prettyscripts on 2009-08-10 11:41:23 • Leave a comment »
unix
to run shell command while in vi:
:!command
to insert output from shell command after the cursor:
:r!command
more »Tags: insert, shell, unix, vi