uBuntu Community Wiki - PostgreSQL
How To Install and Use PostgreSQL on Ubuntu 14.04 @ Digital Ocean
install via apt-get
$ sudo apt-get update
$ sudo apt-get install postgresql postgresql-contrib
login as linux user postgres (that was auto-created during installation)
$ sudo -i -u postgres
launch interactive postgresql console
$ psql
quit interactive console
$ \q
djfhjdhfjdhjfhdf
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Saturday, December 26, 2015
Saturday, April 25, 2015
Convert .MP4 to .AVI - Linux
$ sudo apt-get install mencoder
$ mencoder source_movie.mp4 -channels 6 -ovc xvid -xvidencopts fixed_quant=4 -vf harddup -oac pcm -o dest_movie.avi
$ mencoder source_movie.mp4 -channels 6 -ovc xvid -xvidencopts fixed_quant=4 -vf harddup -oac pcm -o dest_movie.avi
Saturday, August 13, 2011
Installing Django Under Ubuntu 11-04
From the $ prompt of the terminal:
$ sudo apt-get install python-django
$ sudo apt-get install python-django
Sunday, February 6, 2011
Sunday, January 9, 2011
Saturday, January 8, 2011
Sunday, October 24, 2010
geany
Finally, in search of a light-weight text editor for ubuntu - one that has code folding and a decent selection of editing facilities (i.e. a tier above gedit and scite), I come to GEANY.
idiotuser@computer:~$ sudo apt-get install geany
Configure with a dark colour scheme from http://download.geany.org/contrib/oblivion2.tar.gz, and you're good to go.
---
Quick Punt:
I've been using Geany for a couple of months now, and I can whole-heartedly recommend it. It could do with a couple more short-cut keys (but maybe they're actually in there somewhere and I've just missed them), but other than that, its a winnner. I've been using it on my Lenovo X100e netbook running Ubuntu 10-1- Meerkat, and it runs snappily, so I can do python dev complete with both basic predictive text and symbol explorers, v.nice. For those of you who are not quite VI/EMACS streetfighters, but want a fast but solid python IDE, rub this lamp.
idiotuser@computer:~$ sudo apt-get install geany
Configure with a dark colour scheme from http://download.geany.org/contrib/oblivion2.tar.gz, and you're good to go.
---
Quick Punt:
I've been using Geany for a couple of months now, and I can whole-heartedly recommend it. It could do with a couple more short-cut keys (but maybe they're actually in there somewhere and I've just missed them), but other than that, its a winnner. I've been using it on my Lenovo X100e netbook running Ubuntu 10-1- Meerkat, and it runs snappily, so I can do python dev complete with both basic predictive text and symbol explorers, v.nice. For those of you who are not quite VI/EMACS streetfighters, but want a fast but solid python IDE, rub this lamp.
EMACS
COLOUR SCHEME
stack overflow - http://stackoverflow.com/questions/1132919/how-do-i-set-up-emacs-colors-correctly
emacs fu - http://emacs-fu.blogspot.com/2009/03/color-theming.html
stack overflow - http://stackoverflow.com/questions/1132919/how-do-i-set-up-emacs-colors-correctly
emacs fu - http://emacs-fu.blogspot.com/2009/03/color-theming.html
Sunday, July 25, 2010
to mount a disk in linux
all devices are listed as files in /dev
e.g. $ ls -l /dev
for a list of all devices in /dev
to filter it down to devices containing the string 'sda'
$ ls -l /dev | grep -i sda
which for example returns
ptysd
sda
sda1
sda2
sda5
sdb
... and more
then
$ sudo fdisk -l /dev/sda
fdisk in this case yields partition information for the device
fdisk --help for usage
also
$ cat /var/log/messages
e.g. $ ls -l /dev
for a list of all devices in /dev
to filter it down to devices containing the string 'sda'
$ ls -l /dev | grep -i sda
which for example returns
ptysd
sda
sda1
sda2
sda5
sdb
... and more
then
$ sudo fdisk -l /dev/sda
fdisk in this case yields partition information for the device
fdisk --help for usage
also
$ cat /var/log/messages
mod_wsgi
mod_wsgi is now the effective supercedent of mod_python
http://code.google.com/p/modwsgi/
ubuntu package = libapache2-mod-wsgi
ERROR
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
FIX - courtesy of Mohamed Aslam
http://mohamedaslam.com/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu/
http://code.google.com/p/modwsgi/
ubuntu package = libapache2-mod-wsgi
ERROR
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
FIX - courtesy of Mohamed Aslam
http://mohamedaslam.com/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu/
What is mod_python ?
mod_python
1. o'Reilly article by Gregory Trubetskoy
2. WikiPedia
but, most importantly, it appears that
MOD_PYTHON IS DEAD !
LONG LIVE MOD_WSGI !
WSGI Project Page @ Google Code
modpython-project-is-now-officially-dead
modpython-project-soon-to-be-officially-dead
from django
Blog Piece
StackOverflow Thread
1. o'Reilly article by Gregory Trubetskoy
2. WikiPedia
but, most importantly, it appears that
MOD_PYTHON IS DEAD !
LONG LIVE MOD_WSGI !
WSGI Project Page @ Google Code
modpython-project-is-now-officially-dead
modpython-project-soon-to-be-officially-dead
from django
Blog Piece
StackOverflow Thread
to run a pythonscript from ubuntu command line
to run a pythonscript from ubuntu command line
to execute script 'hw.py'
from the command line
in the director of 'hw.py' [i.e. if you entered 'ls' you would see hw.py in the listing)
first, make script executable by granting rights
$ sudo chmod +x hw.py
add the following line to the beginning of the script
#!/usr/bin/python
this instructs the shell to hand the script over to the the python runtime binary,
which is located /usr/bin/python
to execute script 'hw.py'
from the command line
in the director of 'hw.py' [i.e. if you entered 'ls' you would see hw.py in the listing)
first, make script executable by granting rights
$ sudo chmod +x hw.py
add the following line to the beginning of the script
#!/usr/bin/python
this instructs the shell to hand the script over to the the python runtime binary,
which is located /usr/bin/python
Sunday, June 13, 2010
Linux Admin Blog [excellent]
Linux Admin Chris Siebenmann, @thatcks, maintains a rather excellent blog Wandering Thoughts @ http://utcc.utoronto.ca/~cks/space/blog/ .
Saturday, August 15, 2009
Linux Python BlueTooth Dev
The official Linux BlueTooth protocol stack.
BlueZ
ubuntu pkg = bluez
A cross-platform Python Bluetooth API.
Light Blue
ubuntu pkg = python-lightblue
Python wrappers for bluetooth system resources.
Google PyBluez
ubuntu pkg = python-bluez
Open source implementation of the Object Exchange (OBEX) Protocol
Open OBEX
ubuntu pkg = openobex-apps
---
bug with my broadcom bluetooth usb dongle
https://bugs.launchpad.net/ubuntu/+source/gnome-bluetooth/+bug/133690
BlueZ
ubuntu pkg = bluez
A cross-platform Python Bluetooth API.
Light Blue
ubuntu pkg = python-lightblue
Python wrappers for bluetooth system resources.
Google PyBluez
ubuntu pkg = python-bluez
Open source implementation of the Object Exchange (OBEX) Protocol
Open OBEX
ubuntu pkg = openobex-apps
---
bug with my broadcom bluetooth usb dongle
https://bugs.launchpad.net/ubuntu/+source/gnome-bluetooth/+bug/133690
Subscribe to:
Posts (Atom)