Posts

Showing posts from 2016

Compile NodeJS from source on Debian (linux)

Steps wget http://nodejs.org/dist/v0.10.16/node-v0.10.16.tar.gz    /// Downloads the source tar -zxf node-v0.10.16.tar.gz  ///extract to local folder su   /// switch to root apt-get install build-essential   ///This command installs the c compiler and other essential build tools.  ./configure && make  /// builds the source

Reset OSX to factory setting without Disc

Use the following steps to reset. Reboot the device Press Command+S during startup until command window shows up Run the following Commands mount -uw /  rm /var/db/.AppleSetupDone shutdown -h now After the reboot, the system will be ready to setup new.

Install PostgreSQL in Fedora 20

Install Postgres #> sudo yum install postgresql-server postgresql-contrib #> sudo postgresql-setup initdb #> sudo systemctl enable postgresql #> sudo systemctl start postgresql Install PgAdmin3 #> sudo yum install pgadmin3 Change/Update Password #> su - postgres -bash-4.2$ psql postgres=# \password postgres Enter new password: **** Enter it again: **** Create user #> su - postgres -bash-4.2$ psql postgres=#CREATE USER myNewUser WITH PASSWORD 'password'; Create DB  #> su - postgres -bash-4.2$ psql postgres=# CREATE DATABASE mydbname OWNER postgres; Update the authentication method to md5 (required to connect through pgAdmin3 tool) #> vi /var/lib/pgsql/data/pg_hba.conf Change the following from peer to md5. #> # "local" is for Unix domain socket connections only      local       all                     all                     md5 RESTART the postgreSQL service Open pgAdmin3 and try to connect with a vali