Skip to main content

Linux

Linux

Installing Eclipse PDT on Ubuntu Maverick 10.10

Posted in


I had some issues installing Eclipse PDT on Ubuntu Maverick 10.10. Finally, the solution could be found here: https://help.ubuntu.com/community/EclipsePDT




Installation

From Synaptic Package Manager and Update Site
NOTE: On Ubuntu 10.10 this method will install Eclipse 3.5 (Galileo) and PDT 2.1.

Install Eclipse

* Open Synaptic Package Manager (System->Administration->Synaptic Package Manager)
* Find the package "eclipse" and mark it for installation
* Click Apply

Install PHP Development Tools (PDT)

* Open Eclipse and specify your workspace (Applications->Programming->Eclipse)
* Help->Install New Software
* Select the Galileo Update site
* Select the PHP Development Tools (PDT) Feature
* Install...

BUT! ... you have to know that you need to run Eclipse as root for the second part of the installation. If you don't do it, you will not get an error. You will just not be able to access PDT features :-( ...

Following symlinks in a Samba share

Posted in

If you have a Samba share, and the Samba share has some symlinks to other folders, then you will not be able to access those "symlink folders" with a basic Samba setup.

If you do want to access the folder, you need to add this to the #### Networking #### section of your /etc/samba/smb.conf file:

wide links = yes
unix extensions = no

Restart your Samba daemon:

$ sudo service smbd restart

... and you're done! :-)

Building Debian (.deb package) APE-server from GIT on Ubuntu Maverick 10.10

Posted in

Init build structure

jochen@DESKTOP-JOCHEN /tmp $ sudo aptitude install libmysqlclient-dev debhelper
 
jochen@DESKTOP-JOCHEN /tmp $ mkdir git_ape
 
jochen@DESKTOP-JOCHEN /tmp $ cd git_ape/
 
jochen@DESKTOP-JOCHEN /tmp/git_ape $ mkdir orig
 
jochen@DESKTOP-JOCHEN /tmp/git_ape $ mkdir deb
 
jochen@DESKTOP-JOCHEN /tmp/git_ape $ cd deb/
 
jochen@DESKTOP-JOCHEN /tmp/git_ape/deb $ git clone git://github.com/sanchi/APE_Server.git 
Initialized empty Git repository in /tmp/git_ape/deb/APE_Server/.git/
remote: Counting objects: 10645, done.
remote: Compressing objects: 100% (4041/4041), done.
remote: Total 10645 (delta 6445), reused 10191 (delta 6269)
Receiving objects: 100% (10645/10645), 21.40 MiB | 3.14 MiB/s, done.
Resolving deltas: 100% (6445/6445), done.
 
jochen@DESKTOP-JOCHEN /tmp/git_ape/deb $ cd ../orig/
 
jochen@DESKTOP-JOCHEN /tmp/git_ape/orig $ git clone git://github.com/APE-Project/APE_Server.git
Initialized empty Git repository in /tmp/git_ape/orig/APE_Server/.git/
remote: Counting objects: 15624, done.
remote: Compressing objects: 100% (5222/5222), done.
remote: Total 15624 (delta 10010), reused 15472 (delta 9900)
Receiving objects: 100% (15624/15624), 24.38 MiB | 181 KiB/s, done.
Resolving deltas: 100% (10010/10010), done.
 
jochen@DESKTOP-JOCHEN /tmp/git_ape/orig $ cp -R ../deb/APE_Server/pkg/ APE_Server/
 
jochen@DESKTOP-JOCHEN /tmp/git_ape/orig $ cd APE_Server/
 
jochen@DESKTOP-JOCHEN /tmp/git_ape/orig/APE_Server $ ls -al
total 80
drwxr-xr-x 10 jochen jochen  4096 2011-02-08 12:13 .
drwxr-xr-x  3 jochen jochen  4096 2011-02-08 12:12 ..
-rwxr-xr-x  1 jochen jochen   166 2011-02-08 12:12 AUTHORS
drwxr-xr-x  2 jochen jochen  4096 2011-02-08 12:12 bin
-rwxr-xr-x  1 jochen jochen   817 2011-02-08 12:12 build.sh
-rwxr-xr-x  1 jochen jochen 18009 2011-02-08 12:12 COPYING
drwxr-xr-x  4 jochen jochen  4096 2011-02-08 12:12 deps
drwxr-xr-x  2 jochen jochen  4096 2011-02-08 12:12 doc
drwxr-xr-x  8 jochen jochen  4096 2011-02-08 12:12 .git
-rw-r--r--  1 jochen jochen   694 2011-02-08 12:12 .gitignore
-rw-r--r--  1 jochen jochen   802 2011-02-08 12:12 Makefile
drwxr-xr-x  5 jochen jochen  4096 2011-02-08 12:12 modules
drwxr-xr-x  3 jochen jochen  4096 2011-02-08 12:13 pkg
-rwxr-xr-x  1 jochen jochen    28 2011-02-08 12:12 README
drwxr-xr-x  6 jochen jochen  4096 2011-02-08 12:12 scripts
drwxr-xr-x  2 jochen jochen  4096 2011-02-08 12:12 src

Modify some settings

/bin/ape.conf

10c10
< 	daemon = no
---
> 	daemon = yes
31,32c31,32
< 	modules = ../modules/lib/
< 	modules_conf = ../modules/conf/
---
>       modules = ../../usr/lib/ape/
> 	modules_conf = ../../etc/ape/modules/

/modules/conf/javascript.conf

1c1
< scripts_path = ../scripts/
---
> scripts_path = /usr/lib/ape/scripts/

Build mysac

jochen@DESKTOP-JOCHEN /tmp/git_ape/orig/APE_Server $ cd modules/deps/mysac/
 
jochen@DESKTOP-JOCHEN /tmp/git_ape/orig/APE_Server/modules/deps/mysac $ make
make lib
make[1]: Entering directory `/tmp/git_ape/orig/APE_Server/modules/deps/mysac'
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC   -c -o mysac.o mysac.c
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC   -c -o mysac_net.o mysac_net.c
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC   -c -o mysac_decode_field.o mysac_decode_field.c
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC   -c -o mysac_decode_row.o mysac_decode_row.c
mysac_decode_row.c: In function ‘mysac_decode_string_row’:
mysac_decode_row.c:277: warning: unused variable ‘error’
mysac_decode_row.c:276: warning: unused variable ‘mem’
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC   -c -o mysac_encode_values.o mysac_encode_values.c
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC   -c -o mysac_errors.o mysac_errors.c
ar -rcv libmysac.a mysac.o mysac_net.o mysac_decode_field.o mysac_decode_row.o mysac_encode_values.o mysac_errors.o
a - mysac.o
a - mysac_net.o
a - mysac_decode_field.o
a - mysac_decode_row.o
a - mysac_encode_values.o
a - mysac_errors.o
make[1]: Leaving directory `/tmp/git_ape/orig/APE_Server/modules/deps/mysac'

Build APE server

jochen@DESKTOP-JOCHEN /tmp/git_ape/orig/APE_Server $ ./build.sh 

Build Debian package

jochen@DESKTOP-JOCHEN /tmp/git_ape/orig/APE_Server $ ln -s pkg/debian .
 
jochen@DESKTOP-JOCHEN /tmp/git_ape/orig/APE_Server $ dpkg-buildpackage -rfakeroot -us -uc 
 
jochen@DESKTOP-JOCHEN /tmp/git_ape/orig/APE_Server $ ls -al ../
total 33076
drwxr-xr-x  3 jochen jochen     4096 2011-02-08 12:33 .
drwxr-xr-x  4 jochen jochen     4096 2011-02-08 12:09 ..
-rw-r--r--  1 jochen jochen      488 2011-02-08 12:31 aped_1.0-54-g2a021e2.dsc
-rw-r--r--  1 jochen jochen     1222 2011-02-08 12:33 aped_1.0-54-g2a021e2_i386.changes
-rw-r--r--  1 jochen jochen  3097124 2011-02-08 12:33 aped_1.0-54-g2a021e2_i386.deb
-rw-r--r--  1 jochen jochen 30704934 2011-02-08 12:31 aped_1.0-54-g2a021e2.tar.gz
drwxr-xr-x 10 jochen jochen     4096 2011-02-08 12:32 APE_Server

mod_deflate brakes streaming of audio/video in Firefox (with combination of Quicktime plugin)

Posted in

I recently had a problem with Firefox 3.6.12 and the Quicktime plugin. When I wanted to play an audio file, the audio file gets cut after 3 seconds, even if the audio file was longer than 3 seconds.
The problem was related to the mod_deflate compression of Apache HTTPD on our files. You need to disable this option for audio/video files.

We changed this detail in our .htaccess file:

<IfModule mod_deflate.c>
	# Insert filter
	SetOutputFilter DEFLATE
 
	# Netscape 4.x has some problems...
	BrowserMatch ^Mozilla/4 gzip-only-text/html
 
	# Netscape 4.06-4.08 have some more problems
	BrowserMatch ^Mozilla/4\.0[678] no-gzip
 
	# MSIE masquerades as Netscape, but it is fine
	BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
 
        # Don't compress images/audio/video
        SetEnvIfNoCase Request_URI \\.(?:gif|jpe?g|png|mp3|mp4|wav|avi|mpe?g)$ no-gzip dont-vary
 
	# Make sure proxies don't deliver the wrong content
	<IfModule mod_headers.c>
		Header append Vary User-Agent env=!dont-vary
	</IfModule>
</IfModule>

Installing adobe flashplugin for Firefox in Ubuntu Lucid 10.04 (64 bit)

Posted in

I had some troubles installing the Adobe Flash plugin in Firefox. "The normal way" (working through the Firefox browser) failed in an error: adobe-flashplugin is virtual. The solution is:

  • $ sudo add-apt-repository ppa:sevenmachines/flash
    $ sudo aptitude update
    $ sudo aptitude install flashplugin64-installer
  • Restart Firefox and enjoy your new Adobe Flash Player! :-)
Syndicate content