Difference between revisions of "Accessing server infra"
From stgo
m (→other stuff =) |
|||
Line 43: | Line 43: | ||
*sudo -u postgres createuser -P -s -e mentaer | *sudo -u postgres createuser -P -s -e mentaer | ||
*psql santiagotest | *psql santiagotest | ||
+ | |||
+ | == using VirtualBox == | ||
+ | " use ''ssh -X sstein..@xxx'' to enable a visual client | ||
+ | * vboxgtk (start visual client) | ||
+ | |||
+ | create and start a VM from comandline: | ||
+ | * VBoxManage createvm --name ubuntu --register | ||
+ | * VBoxManage modifyvm ubuntu --ostype ubuntu_64 --cpus 4 | ||
+ | * VBoxManage modifyvm ubuntu --memory 8000 | ||
+ | * VBoxManage startvm ubuntu | ||
+ | |||
+ | other: | ||
+ | * options of ip-addressing/web access: NAT (Network Address Translation) or Bridge (see also this [http://catlingmindswipe.blogspot.com/2012/06/how-to-virtualbox-networking-part-two.html blog entry]) | ||
+ | * downloading .iso archives/vm from OSGeo (use commands ''curl'' or ''wget -c''), e.g.: | ||
+ | <pre> | ||
+ | wget -c "http://downloads.sourceforge.net/project/osgeo-live/7.0/osgeo-live-7.0.iso?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fosgeo-live%2Ffiles%2F%2F7.0%2Fosgeo-live-7.0.iso%2Fdownload&ts=1384444616&use_mirror=ufpr" | ||
+ | </pre> | ||
+ | |||
+ | a VM contains 3 files: .img + .vbox (an editable xml) + .vbox-prev | ||
== other stuff == | == other stuff == |
Revision as of 12:37, 15 November 2013
>> return to Cedeus IDE
git stuff
- git diff
- git pull
- git status
- git reset --hard HEAD
- git reset HEAD~1
- git reset HEAD opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java
- git log -p
- git add opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java
- git commit -m 'added debug code to be able to figure why some edges are traversed to fast (aside fromom u-shaped roads)'
- gitk
- git push origin master
- git show-ref
- git stash list
- git log origin/master..master
- git fetch upstream
- git remote add upstream https://github.com/openplans/OpenTripPlanner.git
- git remote show origin
- git remote set-url origin git://github.com/mentaer/OpenTripPlanner.git
- git remote set-url origin git@github.com:mentaer/OpenTripPlanner.git
- git diff > /Volumes/WINDOOF/walkingslopeeffects.patch
- patch -p1 -R < IsoChrone2.patch
- git apply --check /Volumes/WINDOOF/IsoChrone.patch
maven stuff
- mvn package -DskipTests
postgres stuff
- echo 'export PATH=/Library/PostgreSQL/9.2/bin:$PATH' >> ~/.bash_profile
- psql
- sudo mkdir /Library/PostgreSQL/9.2/data/
- sudo chown postgres /Library/PostgreSQL/9.2/data/
- sudo -u postgres initdb -D /Library/PostgreSQL/9.2/data/
- service postgresql start
- sudo -u postgres pg_ctl -D /Library/PostgreSQL/9.2/data -l logfile start
- sudo -u postgres postgres -D /Library/PostgreSQL/9.2/data &
- sudo -u postgres createdb santiagotest
- sudo -u postgres createuser -P -s -e mentaer
- psql santiagotest
using VirtualBox
" use ssh -X sstein..@xxx to enable a visual client
- vboxgtk (start visual client)
create and start a VM from comandline:
- VBoxManage createvm --name ubuntu --register
- VBoxManage modifyvm ubuntu --ostype ubuntu_64 --cpus 4
- VBoxManage modifyvm ubuntu --memory 8000
- VBoxManage startvm ubuntu
other:
- options of ip-addressing/web access: NAT (Network Address Translation) or Bridge (see also this blog entry)
- downloading .iso archives/vm from OSGeo (use commands curl or wget -c), e.g.:
wget -c "http://downloads.sourceforge.net/project/osgeo-live/7.0/osgeo-live-7.0.iso?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fosgeo-live%2Ffiles%2F%2F7.0%2Fosgeo-live-7.0.iso%2Fdownload&ts=1384444616&use_mirror=ufpr"
a VM contains 3 files: .img + .vbox (an editable xml) + .vbox-prev
other stuff
- gdalinfo cgydem_fromgrid.tif
connect to server:
- ssh stefan@136.159.xxx.xxx
- ssh sstein@146.155.xxx.xxx.
- pid
- kill pid, e.g. kill 320
- top or: htop
- process
commands to display/figure out processes: http://www.howtogeek.com/107217/ configuration info: http://www.cyberciti.biz/faq/linux-command-to-find-the-system-configuration-and-hardware-information/