Pastebin

Paste #1968: terminal

< previous paste - next paste>

Pasted by hdn

Download View as text

(hdn@buddha) (11-03-02 10:16) (P:0 L:1) [0]
~ $ sudo apt-get install postgresql
[sudo] password for hdn: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  xmcc
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  postgresql-8.4 postgresql-client-8.4 postgresql-client-common
  postgresql-common
Suggested packages:
  oidentd ident-server postgresql-doc-8.4
The following NEW packages will be installed:
  postgresql postgresql-8.4 postgresql-client-8.4 postgresql-client-common
  postgresql-common
0 upgraded, 5 newly installed, 0 to remove and 82 not upgraded.
Need to get 4.853kB of archives.
After this operation, 19,8MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://dk.archive.ubuntu.com/ubuntu/ lucid-updates/main postgresql-client-common 106ubuntu1 [52,4kB]
Get:2 http://dk.archive.ubuntu.com/ubuntu/ lucid-updates/main postgresql-client-8.4 8.4.7-0ubuntu0.10.04 [786kB]
Get:3 http://dk.archive.ubuntu.com/ubuntu/ lucid-updates/main postgresql-common 106ubuntu1 [88,2kB]
Get:4 http://dk.archive.ubuntu.com/ubuntu/ lucid-updates/main postgresql-8.4 8.4.7-0ubuntu0.10.04 [3.906kB]
Get:5 http://dk.archive.ubuntu.com/ubuntu/ lucid-updates/main postgresql 8.4.7-0ubuntu0.10.04 [20,1kB]
Fetched 4.853kB in 1s (2.608kB/s)    
Preconfiguring packages ...
Selecting previously deselected package postgresql-client-common.
(Reading database ... 390340 files and directories currently installed.)
Unpacking postgresql-client-common (from .../postgresql-client-common_106ubuntu1_all.deb) ...
Selecting previously deselected package postgresql-client-8.4.
Unpacking postgresql-client-8.4 (from .../postgresql-client-8.4_8.4.7-0ubuntu0.10.04_i386.deb) ...
Selecting previously deselected package postgresql-common.
Unpacking postgresql-common (from .../postgresql-common_106ubuntu1_all.deb) ...
Selecting previously deselected package postgresql-8.4.
Unpacking postgresql-8.4 (from .../postgresql-8.4_8.4.7-0ubuntu0.10.04_i386.deb) ...
Selecting previously deselected package postgresql.
Unpacking postgresql (from .../postgresql_8.4.7-0ubuntu0.10.04_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up postgresql-client-common (106ubuntu1) ...
Setting up postgresql-client-8.4 (8.4.7-0ubuntu0.10.04) ...
update-alternatives: using /usr/share/postgresql/8.4/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode.

Setting up postgresql-common (106ubuntu1) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
  da_dk
  en_au
  en_ca
  en_gb
  en_us
  en_za

Setting up postgresql-8.4 (8.4.7-0ubuntu0.10.04) ...
Creating new cluster (configuration: /etc/postgresql/8.4/main, data: /var/lib/postgresql/8.4/main)...
Moving configuration file /var/lib/postgresql/8.4/main/postgresql.conf to /etc/postgresql/8.4/main...
Moving configuration file /var/lib/postgresql/8.4/main/pg_hba.conf to /etc/postgresql/8.4/main...
Moving configuration file /var/lib/postgresql/8.4/main/pg_ident.conf to /etc/postgresql/8.4/main...
Configuring postgresql.conf to use port 5432...
update-alternatives: using /usr/share/postgresql/8.4/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode.
 * Starting PostgreSQL 8.4 database server                               [ OK ] 

Setting up postgresql (8.4.7-0ubuntu0.10.04) ...
(hdn@buddha) (11-03-02 10:18) (P:0 L:1) [0]
~ $ sudo su - postgres
No directory, logging in with HOME=/
(postgres@buddha) (11-03-02 10:23) (P:0 L:1) [0]
/ $ pwd     [pts/0 - 1H 0J 0R - 2011-03-02 10:23:48 - 0+03:17 - 0.44 0.56 0.47]
/
(postgres@buddha) (11-03-02 10:24) (P:0 L:1) [0]
/ $ grep postgr /etc/passwd
postgres:x:500:500:PostgreSQL user:/data/postgresql:/bin/zsh
(postgres@buddha) (11-03-02 10:27) (P:0 L:1) [0]
/ $ sudo mkdir -p /data/postgresql; sudo chown -Rv postgres:postgres /data/postgresql
[sudo] password for postgres: 
[sudo] password for postgres: 
Sorry, try again.
[sudo] password for postgres: 
sudo: 1 incorrect password attempt
(postgres@buddha) (11-03-02 10:32) (P:0 L:1) [1]
/ $ exit    [pts/0 - 4H 0J 1R - 2011-03-02 10:32:05 - 0+03:26 - 0.34 0.47 0.45]
zsh: failed to write history file //.history: permission denied

(hdn@buddha) (11-03-02 10:32) (P:0 L:1) [1]
~ $ sudo su - postgres






















This is the Z Shell configuration function for new users,
zsh-newuser-install.
You are seeing this message because you have no zsh startup files
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
~).  This function can help you with a few settings that should
make your use of the shell easier.

You can:

(q)  Quit and do nothing.  The function will be run again next time.

(0)  Exit, creating the file ~/.zshrc containing just a comment.
     That will prevent this function being run again.

(1)  Continue to the main menu.

--- Type one of the keys in parentheses --- 0
(postgres@buddha) (11-03-02 10:33) (P:0 L:1) [0]
~ $         [pts/0 - 1H 0J 0R - 2011-03-02 10:33:24 - 0+03:27 - 0.64 0.52 0.47]


New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.