Ubuntu Notes
From DreamsteepWiki
|
List Only Hidden Files
ls -al | egrep -e "^-.*[[:space:]]\."
ls -ap | grep -v /
FWTools
download and install
% tar xzvf FWTools-linux-0.9.5.tar.gz % cd FWTools-linux-0.9.5 % ./install.sh
set path (or cd to bin folder)
If you use Bash as your shell add the following to your startup script (ie. ~/.bash_profile): PATH=$PATH:$HOME/FWTools/bin_safe
or if you use csh or tcsh as your shell add the following to your .cshrc: setenv PATH $PATH:$HOME/FWTools/bin_safe
http://fwtools.maptools.org/linux-main.html
FIREWALL CONFIG
easy configuration of firewall
ufw allow 80
ufw status
ufw enable ufw disable
SAMBA SHARES
INSTALL MAYA
#FIRST CONGIURE TO USE RPM sudo apt-get install rpm csh #
GIS NOTES
Install postgress into php
sudo apt-get install php5-pgsql
Setup users in databse
sudo -u postgres createuser -D -A -P mynewuser sudo -u postgres createdb -O mynewuser mydatabase
restart apache
sudo /etc/init.d/apache2 restart
restart postgres
sudo /etc/init.d/postgresql-8.4 restart
Enable postgis
psql -d keithrox -f /usr/share/postgresql/8.4/contrib/postgis.sql psql -d keithrox -f /usr/share/postgresql/8.4/contrib/patial_ref_sys.sql psql -d keithrox -f /usr/share/postgresql/8.4/contrib/postgis_comments.sql
TO GET FGS TALKING TO OTHER POSTGIS INSTALLS
EDIT THE PORT NUMBER IN FILE [FGS]/etc/fgs/pkgs/postgresql-server/pgsql.conf
ALL I DID WAS CHANGE PGPORT to port num of other server
PGHOME=/home/keith/fgs/apps/pgsql PGUSER= PGPORT=5432 PGDATA=/home/keith/fgs/apps/pgsql/data PGLOG=/home/keith/fgs/apps/pgsql/pgsql.log PGLIB=/home/keith/fgs/lib
install mapserver
sudo apt-get install cgi-mapserver mapserver-bin mapserver-doc php5-mapscript python-mapscript
OTHER UBUNTU NOTES
log in as root
sudo passwd root
Change resolution
xrandr --mode 1680x1050
SET A STATIC IP
#edit # /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
Restart network
sudo /etc/init.d/networking restart
https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/ sudo gedit /etc/apache2/sites-available/default sudo /etc/init.d/apache2 restart #AllowOverride All
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
links
http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/
http://www.paolocorti.net/2008/01/10/installing-mapserver-in-ubuntu/
http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html
http://research.dmsolutions.ca/?p=68
http://weait.com/content/build-your-own-openstreetmap-server

