Friday, September 28, 2012

open-source web application that helps groups make better decisions

Loomio is an open-source web application that helps groups make better decisions together. For more info check out www.loomio.org.
http://loom.io/

Thursday, September 20, 2012

Facebook rechcharge again


Yippee..!! Wow it really works..!!
I got Rs. 500 free recharge instantly.. Try it out guys...
htxtp://freeprepaidrecharge.com/

Tuesday, September 11, 2012

ubuntu security


Ubuntu wiki ~ Security page

Ubuntu wiki ~ Installing Security Tools

UDSF Security Analysis Tools

The Big Ol' Ubuntu Security Resource

Locking Down Ubuntu

Ubuntu geek ~ Security category

Security references Topics include Basics, firewall, Intrusion detection, Chroot, Forensics/Recovery, and Securing networked services.

http://ubuntuforums.org/showthread.php?t=510812

postgressql 9.15 help commands


  ALTER TEXT SEARCH CONFIGURATION  DROP SEQUENCE
  ALTER TEXT SEARCH DICTIONARY     DROP SERVER
  ALTER TEXT SEARCH PARSER         DROP TABLE
  ALTER TEXT SEARCH TEMPLATE       DROP TABLESPACE
  ALTER TRIGGER                    DROP TEXT SEARCH CONFIGURATION
  ALTER TYPE                       DROP TEXT SEARCH DICTIONARY
  ALTER USER                       DROP TEXT SEARCH PARSER
  ALTER USER MAPPING               DROP TEXT SEARCH TEMPLATE
  ALTER VIEW                       DROP TRIGGER
  ANALYZE                          DROP TYPE
  BEGIN                            DROP USER
  CHECKPOINT                       DROP USER MAPPING
  CLOSE                            DROP VIEW
  CLUSTER                          END
  COMMENT                          EXECUTE
  COMMIT                           EXPLAIN
  COMMIT PREPARED                  FETCH
  COPY                             GRANT
  CREATE AGGREGATE                 INSERT
  CREATE CAST                      LISTEN
  CREATE COLLATION                 LOAD
  CREATE CONVERSION                LOCK
  CREATE DATABASE                  MOVE
  CREATE DOMAIN                    NOTIFY
  CREATE EXTENSION                 PREPARE
  CREATE FOREIGN DATA WRAPPER      PREPARE TRANSACTION
  CREATE FOREIGN TABLE             REASSIGN OWNED
  CREATE FUNCTION                  REINDEX
  CREATE GROUP                     RELEASE SAVEPOINT
  CREATE INDEX                     RESET
  CREATE LANGUAGE                  REVOKE
  CREATE OPERATOR                  ROLLBACK
  CREATE OPERATOR CLASS            ROLLBACK PREPARED
  CREATE OPERATOR FAMILY           ROLLBACK TO SAVEPOINT
  CREATE ROLE                      SAVEPOINT
  CREATE RULE                      SECURITY LABEL
  CREATE SCHEMA                    SELECT
  CREATE SEQUENCE                  SELECT INTO
  CREATE SERVER                    SET
  CREATE TABLE                     SET CONSTRAINTS




 \copyright             show PostgreSQL usage and distribution terms
  \g [FILE] or ;         execute query (and send results to file or |pipe)
  \h [NAME]              help on syntax of SQL commands, * for all commands
  \q                     quit psql

Query Buffer
  \e [FILE] [LINE]       edit the query buffer (or file) with external editor
  \ef [FUNCNAME [LINE]]  edit function definition with external editor
  \p                     show the contents of the query buffer
  \r                     reset (clear) the query buffer
  \s [FILE]              display history or save it to file
  \w FILE                write query buffer to file

Input/Output
  \copy ...              perform SQL COPY with data stream to the client host
  \echo [STRING]         write string to standard output
  \i FILE                execute commands from file
  \o [FILE]              send all query results to file or |pipe
  \qecho [STRING]        write string to query output stream (see \o)

Informational
  (options: S = show system objects, + = additional detail)
  \d[S+]                 list tables, views, and sequences
  \d[S+]  NAME           describe table, view, sequence, or index
  \da[S]  [PATTERN]      list aggregates
  \db[+]  [PATTERN]      list tablespaces
  \dc[S]  [PATTERN]      list conversions
  \dC     [PATTERN]      list casts
  \dd[S]  [PATTERN]      show comments on objects
  \ddp    [PATTERN]      list default privileges
  \dD[S]  [PATTERN]      list domains
  \det[+] [PATTERN]      list foreign tables
  \des[+] [PATTERN]      list foreign servers
  \deu[+] [PATTERN]      list user mappings
  \dew[+] [PATTERN]      list foreign-data wrappers
  \df[antw][S+] [PATRN]  list [only agg/normal/trigger/window] functions
  \dF[+]  [PATTERN]      list text search configurations
  \dFd[+] [PATTERN]      list text search dictionaries
  \dFp[+] [PATTERN]      list text search parsers
Formatting
  \a                     toggle between unaligned and aligned output mode
  \C [STRING]            set table title, or unset if none
  \f [STRING]            show or set field separator for unaligned query output
  \H                     toggle HTML output mode (currently off)
  \pset NAME [VALUE]     set table output option
                         (NAME := {format|border|expanded|fieldsep|footer|null|
                         numericlocale|recordsep|tuples_only|title|tableattr|pager})
  \t [on|off]            show only rows (currently off)
  \T [STRING]            set HTML tag attributes, or unset if none
  \x [on|off]            toggle expanded output (currently off)

Connection
  \c[onnect] [DBNAME|- USER|- HOST|- PORT|-]
                         connect to new database (currently "postgres")
  \encoding [ENCODING]   show or set client encoding
  \password [USERNAME]   securely change the password for a user
  \conninfo              display information about current connection

Operating System
  \cd [DIR]              change the current working directory
  \timing [on|off]       toggle timing of commands (currently off)
  \! [COMMAND]           execute command in shell or start interactive shell

Variables
  \prompt [TEXT] NAME    prompt user to set internal variable
  \set [NAME [VALUE]]    set internal variable, or list all if no parameters
  \unset NAME            unset (delete) internal variable

Large Objects
  \lo_export LOBOID FILE
  \lo_import FILE [COMMENT]
  \lo_list
  \lo_unlink LOBOID      large object operations



PostgreSQL configuration file


sudo gedit /etc/postgresql/9.1/main/postgresql.conf
http://linuxpoison.blogspot.in/2012/01/how-to-install-configure-postgresql.html

# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
#   name = value
#
# (The "=" is optional.)  Whitespace may be used.  Comments are introduced with
# "#" anywhere on a line.  The complete list of parameter names and allowed
# values can be found in the PostgreSQL documentation.
#
# The commented-out settings shown in this file represent the default values.
# Re-commenting a setting is NOT sufficient to revert it to the default value;
# you need to reload the server.
#
# This file is read on server startup and when the server receives a SIGHUP
# signal.  If you edit the file on a running system, you have to SIGHUP the
# server for the changes to take effect, or use "pg_ctl reload".  Some
# parameters, which are marked below, require a server shutdown and restart to
# take effect.
#
# Any parameter can also be given as a command-line option to the server, e.g.,
# "postgres -c log_connections=on".  Some parameters can be changed at run time
# with the "SET" SQL command.
#
# Memory units:  kB = kilobytes        Time units:  ms  = milliseconds
#                MB = megabytes                     s   = seconds
#                GB = gigabytes                     min = minutes
#                                                   h   = hours
#                                                   d   = days


#------------------------------------------------------------------------------
# FILE LOCATIONS
#------------------------------------------------------------------------------

# The default values of these variables are driven from the -D command-line
# option or PGDATA environment variable, represented here as ConfigDir.

data_directory = '/var/lib/postgresql/9.1/main' # use data in another directory
# (change requires restart)
hba_file = '/etc/postgresql/9.1/main/pg_hba.conf' # host-based authentication file
# (change requires restart)
ident_file = '/etc/postgresql/9.1/main/pg_ident.conf' # ident configuration file
# (change requires restart)

# If external_pid_file is not explicitly set, no extra PID file is written.
external_pid_file = '/var/run/postgresql/9.1-main.pid' # write an extra PID file
# (change requires restart)


#------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#------------------------------------------------------------------------------

# - Connection Settings -

#listen_addresses = 'localhost' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost', '*' = all
# (change requires restart)
port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)
# Note:  Increasing max_connections costs ~400 bytes of shared memory per
# connection slot, plus lock space (see max_locks_per_transaction).
#superuser_reserved_connections = 3 # (change requires restart)
unix_socket_directory = '/var/run/postgresql' # (change requires restart)
#unix_socket_group = '' # (change requires restart)
#unix_socket_permissions = 0777 # begin with 0 to use octal notation
# (change requires restart)
#bonjour = off # advertise server via Bonjour
# (change requires restart)
#bonjour_name = '' # defaults to the computer name
# (change requires restart)

# - Security and Authentication -

#authentication_timeout = 1min # 1s-600s
ssl = true # (change requires restart)
#ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
# (change requires restart)
#ssl_renegotiation_limit = 512MB # amount of data between renegotiations
#password_encryption = on
#db_user_namespace = off

# Kerberos and GSSAPI
#krb_server_keyfile = ''
#krb_srvname = 'postgres' # (Kerberos only)
#krb_caseins_users = off

# - TCP Keepalives -
# see "man 7 tcp" for details

#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
# 0 selects the system default
#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
# 0 selects the system default
#tcp_keepalives_count = 0 # TCP_KEEPCNT;
# 0 selects the system default


#------------------------------------------------------------------------------
# RESOURCE USAGE (except WAL)
#------------------------------------------------------------------------------

# - Memory -

shared_buffers = 24MB # min 128kB
# (change requires restart)
#temp_buffers = 8MB # min 800kB
#max_prepared_transactions = 0 # zero disables the feature
# (change requires restart)
# Note:  Increasing max_prepared_transactions costs ~600 bytes of shared memory
# per transaction slot, plus lock space (see max_locks_per_transaction).
# It is not advisable to set max_prepared_transactions nonzero unless you
# actively intend to use prepared transactions.
#work_mem = 1MB # min 64kB
#maintenance_work_mem = 16MB # min 1MB
#max_stack_depth = 2MB # min 100kB

# - Kernel Resource Usage -

#max_files_per_process = 1000 # min 25
# (change requires restart)
#shared_preload_libraries = '' # (change requires restart)

# - Cost-Based Vacuum Delay -

#vacuum_cost_delay = 0ms # 0-100 milliseconds
#vacuum_cost_page_hit = 1 # 0-10000 credits
#vacuum_cost_page_miss = 10 # 0-10000 credits
#vacuum_cost_page_dirty = 20 # 0-10000 credits
#vacuum_cost_limit = 200 # 1-10000 credits

# - Background Writer -

#bgwriter_delay = 200ms # 10-10000ms between rounds
#bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
#bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round

# - Asynchronous Behavior -

#effective_io_concurrency = 1 # 1-1000. 0 disables prefetching


#------------------------------------------------------------------------------
# WRITE AHEAD LOG
#------------------------------------------------------------------------------

# - Settings -

#wal_level = minimal # minimal, archive, or hot_standby
# (change requires restart)
#fsync = on # turns forced synchronization on or off
#synchronous_commit = on # synchronization level; on, off, or local
#wal_sync_method = fsync # the default is the first option
# supported by the operating system:
#   open_datasync
#   fdatasync (default on Linux)
#   fsync
#   fsync_writethrough
#   open_sync
#full_page_writes = on # recover from partial page writes
#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
# (change requires restart)
#wal_writer_delay = 200ms # 1-10000 milliseconds

#commit_delay = 0 # range 0-100000, in microseconds
#commit_siblings = 5 # range 1-1000

# - Checkpoints -

#checkpoint_segments = 3 # in logfile segments, min 1, 16MB each
#checkpoint_timeout = 5min # range 30s-1h
#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
#checkpoint_warning = 30s # 0 disables

# - Archiving -

#archive_mode = off # allows archiving to be done
# (change requires restart)
#archive_command = '' # command to use to archive a logfile segment
#archive_timeout = 0 # force a logfile segment switch after this
# number of seconds; 0 disables


#------------------------------------------------------------------------------
# REPLICATION
#------------------------------------------------------------------------------

# - Master Server -

# These settings are ignored on a standby server

#max_wal_senders = 0 # max number of walsender processes
# (change requires restart)
#wal_sender_delay = 1s # walsender cycle time, 1-10000 milliseconds
#wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables
#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
#replication_timeout = 60s # in milliseconds; 0 disables
#synchronous_standby_names = '' # standby servers that provide sync rep
# comma-separated list of application_name
# from standby(s); '*' = all

# - Standby Servers -

# These settings are ignored on a master server

#hot_standby = off # "on" allows queries during recovery
# (change requires restart)
#max_standby_archive_delay = 30s # max delay before canceling queries
# when reading WAL from archive;
# -1 allows indefinite delay
#max_standby_streaming_delay = 30s # max delay before canceling queries
# when reading streaming WAL;
# -1 allows indefinite delay
#wal_receiver_status_interval = 10s # send replies at least this often
# 0 disables
#hot_standby_feedback = off # send info from standby to prevent
# query conflicts


#------------------------------------------------------------------------------
# QUERY TUNING
#------------------------------------------------------------------------------

# - Planner Method Configuration -

#enable_bitmapscan = on
#enable_hashagg = on
#enable_hashjoin = on
#enable_indexscan = on
#enable_material = on
#enable_mergejoin = on
#enable_nestloop = on
#enable_seqscan = on
#enable_sort = on
#enable_tidscan = on

# - Planner Cost Constants -

#seq_page_cost = 1.0 # measured on an arbitrary scale
#random_page_cost = 4.0 # same scale as above
#cpu_tuple_cost = 0.01 # same scale as above
#cpu_index_tuple_cost = 0.005 # same scale as above
#cpu_operator_cost = 0.0025 # same scale as above
#effective_cache_size = 128MB

# - Genetic Query Optimizer -

#geqo = on
#geqo_threshold = 12
#geqo_effort = 5 # range 1-10
#geqo_pool_size = 0 # selects default based on effort
#geqo_generations = 0 # selects default based on effort
#geqo_selection_bias = 2.0 # range 1.5-2.0
#geqo_seed = 0.0 # range 0.0-1.0

# - Other Planner Options -

#default_statistics_target = 100 # range 1-10000
#constraint_exclusion = partition # on, off, or partition
#cursor_tuple_fraction = 0.1 # range 0.0-1.0
#from_collapse_limit = 8
#join_collapse_limit = 8 # 1 disables collapsing of explicit
# JOIN clauses


#------------------------------------------------------------------------------
# ERROR REPORTING AND LOGGING
#------------------------------------------------------------------------------

# - Where to Log -

#log_destination = 'stderr' # Valid values are combinations of
# stderr, csvlog, syslog, and eventlog,
# depending on platform.  csvlog
# requires logging_collector to be on.

# This is used when logging to stderr:
#logging_collector = off # Enable capturing of stderr and csvlog
# into log files. Required to be on for
# csvlogs.
# (change requires restart)

# These are only used if logging_collector is on:
#log_directory = 'pg_log' # directory where log files are written,
# can be absolute or relative to PGDATA
#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
# can include strftime() escapes
#log_file_mode = 0600 # creation mode for log files,
# begin with 0 to use octal notation
#log_truncate_on_rotation = off # If on, an existing log file with the
# same name as the new log file will be
# truncated rather than appended to.
# But such truncation only occurs on
# time-driven rotation, not on restarts
# or size-driven rotation.  Default is
# off, meaning append to existing files
# in all cases.
#log_rotation_age = 1d # Automatic rotation of logfiles will
# happen after that time.  0 disables.
#log_rotation_size = 10MB # Automatic rotation of logfiles will
# happen after that much log output.
# 0 disables.

# These are relevant when logging to syslog:
#syslog_facility = 'LOCAL0'
#syslog_ident = 'postgres'

#silent_mode = off # Run server silently.
# DO NOT USE without syslog or
# logging_collector
# (change requires restart)


# - When to Log -

#client_min_messages = notice # values in order of decreasing detail:
#   debug5
#   debug4
#   debug3
#   debug2
#   debug1
#   log
#   notice
#   warning
#   error

#log_min_messages = warning # values in order of decreasing detail:
#   debug5
#   debug4
#   debug3
#   debug2
#   debug1
#   info
#   notice
#   warning
#   error
#   log
#   fatal
#   panic

#log_min_error_statement = error # values in order of decreasing detail:
#   debug5
#   debug4
#   debug3
#   debug2
#   debug1
#   info
#   notice
#   warning
#   error
#   log
#   fatal
#   panic (effectively off)

#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
# and their durations, > 0 logs only
# statements running at least this number
# of milliseconds


# - What to Log -

#debug_print_parse = off
#debug_print_rewritten = off
#debug_print_plan = off
#debug_pretty_print = on
#log_checkpoints = off
#log_connections = off
#log_disconnections = off
#log_duration = off
#log_error_verbosity = default # terse, default, or verbose messages
#log_hostname = off
log_line_prefix = '%t ' # special values:
#   %a = application name
#   %u = user name
#   %d = database name
#   %r = remote host and port
#   %h = remote host
#   %p = process ID
#   %t = timestamp without milliseconds
#   %m = timestamp with milliseconds
#   %i = command tag
#   %e = SQL state
#   %c = session ID
#   %l = session line number
#   %s = session start timestamp
#   %v = virtual transaction ID
#   %x = transaction ID (0 if none)
#   %q = stop here in non-session
#        processes
#   %% = '%'
# e.g. '<%u%%%d> '
#log_lock_waits = off # log lock waits >= deadlock_timeout
#log_statement = 'none' # none, ddl, mod, all
#log_temp_files = -1 # log temporary files equal or larger
# than the specified size in kilobytes;
# -1 disables, 0 logs all temp files
#log_timezone = '(defaults to server environment setting)'


#------------------------------------------------------------------------------
# RUNTIME STATISTICS
#------------------------------------------------------------------------------

# - Query/Index Statistics Collector -

#track_activities = on
#track_counts = on
#track_functions = none # none, pl, all
#track_activity_query_size = 1024 # (change requires restart)
#update_process_title = on
#stats_temp_directory = 'pg_stat_tmp'


# - Statistics Monitoring -

#log_parser_stats = off
#log_planner_stats = off
#log_executor_stats = off
#log_statement_stats = off


#------------------------------------------------------------------------------
# AUTOVACUUM PARAMETERS
#------------------------------------------------------------------------------

#autovacuum = on # Enable autovacuum subprocess?  'on'
# requires track_counts to also be on.
#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
# their durations, > 0 logs only
# actions running at least this number
# of milliseconds.
#autovacuum_max_workers = 3 # max number of autovacuum subprocesses
# (change requires restart)
#autovacuum_naptime = 1min # time between autovacuum runs
#autovacuum_vacuum_threshold = 50 # min number of row updates before
# vacuum
#autovacuum_analyze_threshold = 50 # min number of row updates before
# analyze
#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
# (change requires restart)
#autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
# autovacuum, in milliseconds;
# -1 means use vacuum_cost_delay
#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
# autovacuum, -1 means use
# vacuum_cost_limit


#------------------------------------------------------------------------------
# CLIENT CONNECTION DEFAULTS
#------------------------------------------------------------------------------

# - Statement Behavior -

#search_path = '"$user",public' # schema names
#default_tablespace = '' # a tablespace name, '' uses the default
#temp_tablespaces = '' # a list of tablespace names, '' uses
# only default tablespace
#check_function_bodies = on
#default_transaction_isolation = 'read committed'
#default_transaction_read_only = off
#default_transaction_deferrable = off
#session_replication_role = 'origin'
#statement_timeout = 0 # in milliseconds, 0 is disabled
#vacuum_freeze_min_age = 50000000
#vacuum_freeze_table_age = 150000000
#bytea_output = 'hex' # hex, escape
#xmlbinary = 'base64'
#xmloption = 'content'

# - Locale and Formatting -

datestyle = 'iso, mdy'
#intervalstyle = 'postgres'
#timezone = '(defaults to server environment setting)'
#timezone_abbreviations = 'Default'     # Select the set of available time zone
# abbreviations.  Currently, there are
#   Default
#   Australia
#   India
# You can create your own file in
# share/timezonesets/.
#extra_float_digits = 0 # min -15, max 3
#client_encoding = sql_ascii # actually, defaults to database
# encoding

# These settings are initialized by initdb, but they can be changed.
lc_messages = 'en_US.UTF-8' # locale for system error message
# strings
lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
lc_numeric = 'en_US.UTF-8' # locale for number formatting
lc_time = 'en_US.UTF-8' # locale for time formatting

# default configuration for text search
default_text_search_config = 'pg_catalog.english'

# - Other Defaults -

#dynamic_library_path = '$libdir'
#local_preload_libraries = ''


#------------------------------------------------------------------------------
# LOCK MANAGEMENT
#------------------------------------------------------------------------------

#deadlock_timeout = 1s
#max_locks_per_transaction = 64 # min 10
# (change requires restart)
# Note:  Each lock table slot uses ~270 bytes of shared memory, and there are
# max_locks_per_transaction * (max_connections + max_prepared_transactions)
# lock table slots.
#max_pred_locks_per_transaction = 64 # min 10
# (change requires restart)

#------------------------------------------------------------------------------
# VERSION/PLATFORM COMPATIBILITY
#------------------------------------------------------------------------------

# - Previous PostgreSQL Versions -

#array_nulls = on
#backslash_quote = safe_encoding # on, off, or safe_encoding
#default_with_oids = off
#escape_string_warning = on
#lo_compat_privileges = off
#quote_all_identifiers = off
#sql_inheritance = on
#standard_conforming_strings = on
#synchronize_seqscans = on

# - Other Platforms and Clients -

#transform_null_equals = off


#------------------------------------------------------------------------------
# ERROR HANDLING
#------------------------------------------------------------------------------

#exit_on_error = off # terminate session on any error?
#restart_after_crash = on # reinitialize after backend crash?


#------------------------------------------------------------------------------
# CUSTOMIZED OPTIONS
#------------------------------------------------------------------------------

#custom_variable_classes = '' # list of custom variable class names

liquid feedback readme from tar file


The tar file has instructions for debian and i am going to use it on ubuntu





Setup the database:
$ createdb liquid_feedback
$ psql -v ON_ERROR_STOP=1 -f core.sql liquid_feedback


@ubuntu:~$ createdb liquid_feedback
createdb: could not connect to database postgres: FATAL:  role "ie" does not exist


http://www.bartbusschots.ie/blog/?p=627 osx related help file
http://osdir.com/ml/qgis-user-gis/2012-06/msg00123.html


e@ubuntu:~$ su - postgres
Password:


works!! (because i had set up a password in earlier posts )



postgres@ubuntu:~$ createdb liquid_feedback
createdb: database creation failed: ERROR:  database "liquid_feedback" already exists


postgres@ubuntu:~$ createlang plpgsql liquid_feedback
createlang: language "plpgsql" is already installed in database "liquid_feedback"


postgres@ubuntu:~$ psql -v ON_ERROR_STOP=1 -f core.sql liquid_feedback
core.sql: No such file or directory



ie@ubuntu:~/Downloads/liquid_feedback_core-v2.0.11$ cp core.sql lf_update /opt/liquid_feedback_core/

cp: cannot create regular file `/opt/liquid_feedback_core/core.sql': Permission denied

cp: cannot stat `lf_update': No such file or directory

e@ubuntu:~/Downloads/liquid_feedback_core-v2.0.11$ sudo cp core.sql lf_update /opt/liquid_feedback_core/
[sudo] password for ie: 
cp: cannot stat `lf_update': No such file or directory

The problem here is there is NO file called 

lf_update in the tarball there is a file called 


lf_update.c !!


http://bathroom.baclayon.com/postgres/connect.php good article on postgres commands



postgres@ubuntu:~$ createuser
Enter name of role to add: www-data
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n
createuser: creation of new role failed: ERROR:  role "www-data" already exists

postgres@ubuntu:~$ deleteuser
deleteuser: command not found
postgres@ubuntu:~$ drop user www-data
No command 'drop' found, did you mean:
 Command 'dtop' from package 'diod' (universe)
drop: command not found

postgres@ubuntu:~$ DROP USER www-data
DROP: command not found





createdb: command not found
then PostgreSQL was not installed properly. Either it was not installed at all or your shell's search path was not set to include it. Try calling the command with an absolute path instead:
http://www.postgresql.org/docs/devel/static/tutorial-createdb.html



postgres@ubuntu:~$ dropuser
Enter name of role to drop: www-data



postgres@ubuntu:~$ createuser
Enter name of role to add: www-data
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n



postgres@ubuntu:~$ su www-data
Password:
su: Authentication failure
postgres@ubuntu:~$

so i want to add a password 

ALTER USER Postgres WITH PASSWORD '';
http://archives.postgresql.org/pgsql-novice/2007-02/msg00062.php
http://www.postgresql.org/docs/8.0/static/sql-alteruser.html
http://www.postgresql.org/docs/devel/static/app-createuser.html


postgres@ubuntu:~$ alter user www-data with password rrrr
No command 'alter' found, did you mean:
 Command 'qalter' from package 'torque-client' (universe)
 Command 'qalter' from package 'gridengine-client' (universe)
 Command 'qalter' from package 'torque-client-x11' (universe)
alter: command not found
postgres@ubuntu:~$ alteruser www-data with password rrrrr
alteruser: command not found
postgres@ubuntu:~$ ALTER USER www-data WITH PASSWORD rrrrr
ALTER: command not found




postgres@ubuntu:~$ ALTER ROLE www-data WITH PASSWORD NULL;
ALTER: command not found





postgres@ubuntu:~$ createdb mydb
postgres@ubuntu:~$ dropdb mydb
postgres@ubuntu:~$ psql liquid_feedback
psql (9.1.5)
Type "help" for help.

liquid_feedback=# select * from system_setting;
ERROR:  relation "system_setting" does not exist
LINE 1: select * from system_setting;
                      ^
@ubuntu:/opt/liquid_feedback_core$ su www-data
Password: 
su: Authentication failure








psql (9.1.5)
Type "help" for help.

mydb=>
The last line could also be:

mydb=#
That would mean you are a database superuser,


To get out of psql, type:

mydb=> \q

mydb=> SELECT version();



http://www.postgresql.org/docs/9.1/static/tutorial-accessdb.html


@ubuntu:/$ sudo -u postgres psql
psql (9.1.5)
Type "help" for help.

postgres=# alter user www-data with encrypted password 'password';
ERROR:  syntax error at or near "-"
LINE 1: alter user www-data with encrypted password 'password';
                      ^
postgres=# alter user www-data password 'password';
ERROR:  syntax error at or near "-"
LINE 1: alter user www-data password 'password';



postgres=# help
You are using psql, the command-line interface to PostgreSQL.
Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

  \? for help with psql commands
 \password [USERNAME]   securely change the password for a user


postgres=# \password www-data
Enter new password:
Enter it again:










command to get postgresql version

psql -c "select version();" template1




 PostgreSQL 9.1.5 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, 64-bit




Optionally insert demo data:
$ psql -v ON_ERROR_STOP=1 -f demo.sql liquid_feedback

Compile lf_update binary:
$ make

Ensure that "lf_update dbname=liquid_feedback" is called regularly!

It is required that lf_update is executed regulary (i.e. every
5 minutes via cron) to update cached supporter counts, to change
the state of issues when neccessary, and to calculate the result
of votings. If you wish, copy the created lf_update file to
/usr/local/bin or a similar directory.

On successful run, lf_update will not produce any output
and exit with code 0.

NOTE: When writing to the database, some INSERTs must be executed
      within the same transaction, e.g. issues can't exist without
      an initiative and vice versa.

To create an export file, which is containing all but private data,
you may use the lf_export shell-script:
$ lf_export liquid_feedback export.sql.gz

To uninstall the software, delete the lf_update binary
and drop the database by entering the following command:
$ dropdb liquid_feedback

Updating is done using the update scripts in the update/ directory.
After updating it is recommended to recreate the schema as follows
(assuming the database superuser is named "postgres"):
$ pg_dump --disable-triggers --data-only DATABASE_NAME > tmp.sql
$ dropdb DATABASE_NAME
$ createdb DATABASE_NAME
$ psql -v ON_ERROR_STOP=1 -f core.sql DATABASE_NAME
$ su postgres  # (execute following command as database superuser)
$ psql -v ON_ERROR_STOP=1 -f tmp.sql DATABASE_NAME
$ exit         # leave "su" command
$ rm tmp.sql

Microsoft Security Bulletin Summary for September 2012

MS12-061XSS VulnerabilityCVE-2012-18921 - Exploit code likelyNot affectedNot applicable(None)MS12-062Reflected XSS VulnerabilityCVE-2012-2536Not affected1 - Exploit code likelyNot applicable(None)

xPUD is an unique Linux distribution

xPUD is an unique Linux distribution, consisting mainly of a web browser and a media player, with a simple user interface on top. It can turn your computer into a kiosk-like station by leveraging web technologies, making surfing and watching movies as easy as pie.

http://www.xpud.org/

Super Grub2 Disk


Super Grub2 Disk 2.00 beta 1 released


Super Grub2 Disk
  • Boots into many systems and GRUB2 ones!
  • Loads Grub legacy confs (menu.lst)
  • Optional LVM / RAID support
  • ~ 7.00 MB Size

FAIL UNetbootin allows for the installation of various Linux/BSD distribution

So here i am feeling like a loser after failing to install liquidfeedback on ubuntu and installing debian on a win 7 computer.

So taking a time out of one day and trying another google search MAY help

So i come across
http://unetbootin.sourceforge.net/

UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions without burning a CD.

WISH ME LUCK

so it failed and get an  .mbr error . so now i have a failed debian install and a failed ubootin install when i start  my comp

I had tried using the iso i had already downloaded.

This time i am going to use the netinstall . So in unetbootin i choose the distro debian and stable and clicked ok
it started to dowload initird.gz toc:\unetbtin\ubninit\ from  ftp.debian.org/debian/installer
maybe i had chosen the wrong distro and unetbootin is downloading the right ones

so the error message is


File: \ubnldr.mbr
Status: 0xc000000f
Info: The selected entry could not be loaded because the application is missing or corrupt.

https://bugs.launchpad.net/unetbootin/+bug/283743
http://linuxwizard.wordpress.com/tag/boot-ini/

http://ubuntuforums.org/showthread.php?t=427540&page=31

http://www.techrepublic.com/blog/networking/modifying-the-windows-7-boot-loader-with-the-boot-configuration-data-editor-tool/1709 vista 2009 related file



Windows 7/Vista has a hidden boot partition, containing the BCD - boot configuration data. Similar to boot.ini but you can't easily edit it like you can with notepad and XP. You can also use the bcdedit tool.
http://superuser.com/questions/351017/where-can-i-find-the-boot-ini-file-on-windows-7
http://technet.microsoft.com/en-us/library/cc709667%28WS.10%29.aspx
Download EasyBCD and install it. EasyBCD is free for non-commercial use and offers a nice GUI to edit the Windows 7 boot loader menu.
http://neosmart.net/download.php?id=1
P.S. There is no “boot.ini” in Windows 7. You could modify “boot.ini” in Windows XP to achieve the same result, but this does not apply for Windows 7.
http://blog.famzah.net/2011/11/12/boot-linux-using-windows-7-boot-loader/


http://www.iceflatline.com/2009/09/how-to-dual-boot-windows-7-and-linux-using-bcdedit/


C:\Users\ie>bcdedit
The boot configuration data store could not be opened.
Access is denied.


solution on windows 7
Open the command prompt with elevated privileges. To do this click the Start Orb then All Programs, click on Accessories, then right-click on Command Prompt and then select Run as administrator.


Real-mode Boot Sector
---------------------
identifier              {2a91d002-b502-11e0-83de-f0def176d226}
device                  boot
path                    \ubnldr.mbr
description             UNetbootin



I fixed on mine by logging in, running cmd as Administrator, and running

bcdedit /set device "partition=C:"



my try
bcdedit /set < 2a91d002-b502-11e0-83de-f0def176d226 > device "partition=C:"

error

C:\windows\system32>bcdedit /set < 2a91d002-b502-11e0-83de-f0def176d226 > device
 "partition=C:"
The system cannot find the file specified.


bcdedit /set {2a91d002-b502-11e0-83de-f0def176d226} device "partition=C:"


C:\windows\system32>bcdedit /set {2a91d002-b502-11e0-83de-f0def176d226} device "
partition=C:"
The operation completed successfully.




Real-mode Boot Sector
---------------------
identifier              {2a91d002-b502-11e0-83de-f0def176d226}
device                  partition=C:
path                    \ubnldr.mbr
description             UNetbootin


Note that the id will be in the form of a GUID, in curly braces. To see what it is, just run bcdedit without any arguments.

https://bugs.launchpad.net/unetbootin/+bug/283743/comments/1


After all these edits it finally booted but it halted with the error operating system error 


http://sourceforge.net/apps/trac/unetbootin/wiki/howitworks



http://www.mytechguide.org/106/how-to-log-on-as-administrator-in-windows-7/












Monday, September 10, 2012

Users sending spam or malware links via facebook messages

I am seeing a lot of messages coming from


hxxp://redpiso.es/658rv80JKXYZ99

I do not know what these links do . but DO NOT CLICK on such links in your message. Your friend who sent it to you probably does not even know these links are going to people on their friends list .

FAIL How to install debian on a windows 7 computer without a cd or dvd

You need to have an internet connection

also you need a torrent client like http://www.utorrent.com/
so download and install utorrent before going to the debian site
then

Goto
http://www.debian.org/CD/torrent-cd/

choose the right distro


amd64armelkfreebsd-i386kfreebsd-amd64i386ia64mipsmipselpowerpcsparcs390sourcemulti-arch


wait till the whole iso has been downloaded 

then download and install http://www.winiso.com/download.html

right click on the debian iso and click extract 

goto the folder where the iso has been extracted then double click on setup.


FAIL

it gives you an error
cannot find win32-loader.ini



win32-loader is not supposed to be used directly.  You want to either use
it in the official Debian CD builds, or the network version as provided by
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464233

debian is so buggy? ubuntu is way better !!!

Solution you goto
http://goodbye-microsoft.com/
and click on Click on the image to install Debian GNU 
http://ftp.nl.debian.org/debian/tools/win32-loader/stable/win32-loader.exe 449kb

When you double click on it 

Boom! next error



Installer loader setup error 
win32-loader 0.6.21+squeeze0

unable to find "system partition",assuming it is the same
 "boot partition" c"



http://d-i.alioth.debian.org/manual/en.amd64/index.html
http://d-i.alioth.debian.org/manual/


With NO help from debian or any other site .

I try winiso the free version again which wants me to install http://www.magiciso.com/tutorials/miso-magicdisc-overview.htm?=shext to mount the iso virtaully

same FAIL message

unable to find "system partition",assuming it is the same
 "boot partition" c"

http://lists.debian.org/debian-boot/2012/01/msg00082.html

Funny after the error the install still continues ??

Created uninstaller: C:\win32-loader\Uninstall.exe
Copy to C:\win32-loader\linux
Copy to C:\win32-loader\initrd.gz
Generating C:\win32-loader\grub.cfg
Extract: C:\win32-loader\cpio.exe
Extract: C:\win32-loader\gzip.exe
Appending preseeding information to C:\win32-loader\initrd.gz
Copy to C:\g2ldr
Copy to C:\g2ldr.mbr
Registering in BootMgr
Disabling NTFS compression in bootstrap files
Completed

it then asks you to reboot

you have two options on reboot

windows 7
continue to install process

when you choose the 2nd option it just goes back and reboots again!! 

a free course on building a very simple operating system for the Raspberry Pi in assembly language.

Welcome to Baking Pi: Operating Systems Development! Course by Alex Chadwick.
http://www.raspberrypi.org/
http://www.cl.cam.ac.uk/freshers/raspberrypi/tutorials/os/
Table 2.1 - Lessons
NameDescription
0IntroductionThis introductory lesson does not contain a pratical element, but exists to explain the basic concepts of what is an operating system, what is assembly code, and other important basics. If you just want to get straight into practicals, it should be safe to skip this lesson.
OK LED Series (Beginner)
1OK01The OK01 lesson contains an explanation about how to get started, and teaches how to enable the 'OK' LED on the Raspberry Pi board near the RCA and USB ports.
2OK02The OK02 lesson builds on OK01, by causing the 'OK' LED to turn on and off repeatedly.
3OK03The OK03 lesson builds on OK02 by teaching how to use functions in assembly to make more resusable and rereadable code.
4OK04The OK04 lesson builds on OK03 by teaching how to use the timer to flash the 'OK' LED at precise intervals.
5OK05The OK05 lesson builds on OK04 using it to flash the SOS morse code pattern (...---...).
Screen Series (Advanced)
6Screen01The Screen01 lesson teaches some basic theory about graphics, and then applies it to display a gradient pattern to the screen or tv.
7Screen02The Screen02 lesson builds on Screen01, by teaching how to draw lines, and also a small feature on generating pseudo random numbers.
8Screen03The Screen03 lesson builds on Screen02 by teaching how to draw text to the screen, and introduces the concept of the kernel command line.
9Screen04The Screen04 lesson builds on Screen03 by teaching how to manipulate text to display computed values on the screen.
Input Series (Advanced)
10Input01The Input01 lesson teaches some theory about drivers, and linking programs, as well as keyboards. It is then applied to print out input characters to the screen.
10Input02The Input02 lesson builds on Input01 by teaching how to make a commnad line interface for an Operating System.