Install redmine on linux
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_using_Debian_package
Tuesday, August 30, 2011
HowTo GRASS GIS Install
./configure --with-tcltk-includes=/usr/include/tcl8.5 --with-proj-share=/usr/share/proj --with-python --with-gdal=/usr/local/bin/gdal-config --with-ffmpeg=yes --with-ffmpeg-includes="/usr/include/libavcodec/ /usr/include/libavformat/ /usr/include/libswscale" --with-sqlite --with-postgres --with-postgres-includes=/usr/include/postgresql/ --with-wxwidgets=/usr/bin/wx-config --with-mysql-includes=/usr/include/mysql --with-opengl-libs=/usr/lib/ make && sudo make install
How To setup svn server on ubuntu
Create new SVN repo
svnadmin create wgrass
Import files to SVN repo
svn import /home/rashad/code/wgrass/ file:///home/rashad/svn/wgrass
Create User - newuser for svn repo
Add user to svn Repo
nano wgrass/conf/passwd
nano wgrass/conf/svnserve.conf
Setting up dav access
Allow Anonymous checkout
Happy Hacking :)
svnadmin create wgrass
Import files to SVN repo
svn import /home/rashad/code/wgrass/ file:///home/rashad/svn/wgrass
Create User - newuser for svn repo
sudo htpasswd -cm /etc/apache2/pass.passwd newuser Enter Password: Re-Enter Password:
Add user to svn Repo
nano wgrass/conf/passwd
### This file is an example password file for svnserve. ### Its format is similar to that of svnserve.conf. As shown in the ### example below it contains one section labelled [users]. ### The name and password for each user follow, one account per line. [users] newuser = pass
nano wgrass/conf/svnserve.conf
[general] ### These options control access to the repository for unauthenticated ### and authenticated users. Valid values are "write", "read", ### and "none". The sample settings below are the defaults. anon-access = none auth-access = write ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, ### the file's location is relative to the directory containing ### this configuration file. ### If SASL is enabled (see below), this file will NOT be used. ### Uncomment the line below to use the default password file. password-db = passwd
Setting up dav access
Allow Anonymous checkout
Disable Anonymous checkoutDAV svn SVNPath /home/rashad/svn/wgrass AuthType Basic AuthName "wgrass" AuthUserFile /etc/apache2/pass.passwd Order deny,allow Require valid-user
now you can access svn on yourhos.com/svn/wgrassDAV svn SVNPath /home/rashad/svn/wgrass AuthType Basic AuthName "wgrass" AuthUserFile /etc/apache2/dav_svn.passwd Require valid-user
Happy Hacking :)
Convert .ogv files to avi using mencoder
Convert .ogv to avi with sound
Convert .ogv to .avi without audio
Merge .mp4 files
mencoder wgrass.ogv -ovc xvid -oac mp3lame -xvidencopts pass=1 -o wgrass.avi
Convert .ogv to .avi without audio
mencoder wgrass.ogv -ovc xvid -oac nosound -xvidencopts pass=1 -o wgrass.avi
Merge .mp4 files
mencoder -forceidx -ovc copy -oac pcm -o out.avi 1.mp4 2.mp4 3.mp4 4.mp4 5.mp4 6.mp4 7.mp4 8.mp4 9.mp4 10.mp4 11.mp4 12.mp4 13.mp4
Saturday, August 13, 2011
ubuntu apt-get 504 gateway timed out error
If you are get a response like 504 gateway timed out error on Ubuntu 10.04+ when using apt-get update or apt-get install
0%[waiting for headers] [waiting for headers]Stop firewall and try apt-get again To stop iptables do the following:$sudo iptables-save > /root/firewall.rules $sudo iptables -X $sudo iptables -t nat -F $sudo iptables -t nat -X $sudo iptables -t mangle -F $sudo iptables -t mangle -X $sudo iptables -P INPUT ACCEPT $sudo iptables -P FORWARD ACCEPT $sudo iptables -P OUTPUT ACCEPTTo restore or turn on firewall type the following command:$sudo iptables-restore < /root/firewall.rules
If you are behind a proxy
change proxy settings in /etc/apt/apt.conf
Subscribe to:
Posts (Atom)