ubuntu setup
some packages need extra attention
- 1 2006-10-31 dvd play for totem
- 2 2006-11-01 flash plugin for firefox
- 3 2008-01-22 cpu frequency control
- 4 2008-01-23 java virtual machine on ubuntu
- 5 X server (Xgl/Compiz/Xorg)
- 6 2009-4-29 install Mayavi
- 7 eclipse
- 7.1 2008-02-12 install subclipse for eclipse
- 7.2 2008-03-15 install Perl Eclipse feature.
- 7.3 2008-03-15 install astyle eclipse plugin.
- 7.4 2008-03-16 install R eclipse plugin.
- 7.5 2008-03-18 c/c++ plugin outline
- 7.6 2008-03-21 Mylyn
- 7.7 2008-03-25 Eclipse SQL Explorer
- 7.8 2008-04-24 Oribe XML
- 7.9 2008-04-28 other XML editors
- 7.10 2008-04-24 Web Tools Platform
- 7.11 2008-05-28 open a project related to a file system directory
- 7.12 2008-05-30 eclipse vi/vim plugin
- 7.13 2009-4-19 install python plugin for eclipse
- 7.14 2009-4-19 install eclipse 3.4 on ubuntu hardy
- 7.15 2009-4-18 set eclipse initial settings upon new workspace
- 7.16 Trouble-shooting
- 8 VoIP
- 9 2008-03-06 getlibs
help is from Ubuntu Documentation
1 2006-10-31 dvd play for totem
2008-12-26 sudo apt-get install totem-xine libxine1-ffmpeg libdvdread3
Install the libdvdread3 package:
sudo /usr/share/doc/libdvdread3/install-css.sh
2 2006-11-01 flash plugin for firefox
- Install the flashplugin-nonfree package from the Multiverse repository
- sudo update-flashplugin
3 2008-01-22 cpu frequency control
Three packages, cpudyn, cpufreqd and powernowd. powernowd is simple.
- How to control cpu frequency:
- 1 way is by utilizing sysfs and change files in /sys/devices/system/cpu/cpu0/cpufreq/ (not tried though).
- scaling_cur_freq, scaling_governor
2 way is by a program, cpufreq-selector, from package gnome-applets. sudo cpufreq-selector -g ondemand (change governor) or sudo cpufreq-selector -f 531672 (change cpu frequency, kHz). more frequencies are available at /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
4 2008-01-23 java virtual machine on ubuntu
in directory /usr/lib/jvm, two versions. 32bit and 64bit.
5 X server (Xgl/Compiz/Xorg)
5.1 2007-05-06 how i activate xgl on my ubuntu laptop
doc source: https://help.ubuntu.com/community/CompositeManager/Xgl
install package xserver-xgl, compiz (other dependent packages)
add following to '/etc/gdm/gdm.conf-custom':
[servers] 0=Xgl #Override display 0 to use Xgl [server-Xgl] name=Xgl server command=/usr/bin/Xgl -fullscreen -br -accel xv:pbuffer -accel glx:pbuffer flexible=true
according to information from source, the [servers] section should be '1=Xgl', but it doesn't work.
2007-05-06 install gnome-compiz-manager and click System -> Preferences -> GL Desktop
5.2 2008-01-10 Xgl frequently crashes
Xgl worked fine for a while after feisty was upgraded to gutsy. After a major update in gutsy, it started to crash quite frequently. googled online a bit. Found it's probably nvidia driver's fault. On the other hand, two packages for nvidia Xorg driver: nvidia-glx and nvidia-glx-new. Now it's using nvidia-glx-new. But nvidia-glx was installed before (now removed). So i installed nvidia-glx and removed nvidia-glx-new. (so far so good).
5.3 2008-01-11 enable remote display for Xgl server
- in gutsy, Xgl is behind gdm (display 1). gdm is using Xorg server (display 0). Modifying /etc/gdm/gdm.conf won't help.
- edit /etc/X11/Xsession.d/98xserver-xgl_start-server to remove "-nolisten tcp".
- Log out and login to reboot Xgl. then xhost/export DISPLAY="hostname:1" would work.
5.4 2008-01-24 Xgl slow down
Shift+F10 controls the speed of all animations. In System -> Preferences -> Advanced Desktop Effect Settings -> General Options -> Actions -> General -> Slow Animations.
2008-07-09 now this function is disabled by default.
5.5 2008-03-24 disable Xgl
edit /etc/X11/Xsession.d/98xserver-xgl_start-server, comment out XGL_START.
5.6 2008-03-24 enable remote display for gdm-backed X server
edit /etc/gdm/gdm.conf and change DisallowTCP=true to DisallowTCP=false.
6 2009-4-29 install Mayavi
Mayavi (actually mayavi2) http://code.enthought.com/projects/mayavi is a package for 3D Scientific Data Visualization and Plotting. Its version coming with Hardy, 2.2, is too old. Follow https://launchpad.net/~gael-varoquaux/+archive/ppa to install 3.1.
7 eclipse
7.1 2008-02-12 install subclipse for eclipse
eclipse has support for cvs built-in, but not svn. subclipse is a feature for eclipse to have svn support.
In eclipse, click 'help' -> 'Software Updates' -> 'Find and Install ...'.
Get the subclipse update URL from http://subclipse.tigris.org/ and add http://subclipse.tigris.org/update_1.2.x as a remote site to eclipse. Follow through and that's it.
7.1.1 2009-01-07 upgrade
have to upgrade after the old-version subclipse refuses to work.
add http://subclipse.tigris.org/update_1.4.x as a remote site to eclipse. ...
version 1.2.x would be automatically disabled.
7.1.3 2009-4-22 try to keep subclipse version same as your subversion client
otherwise, the advanced version would leave some records behind that the behind version can't recognize without upgrade.
7.2 2008-03-15 install Perl Eclipse feature.
update URL: http://e-p-i-c.sourceforge.net/updates/testing
7.3 2008-03-15 install astyle eclipse plugin.
add --indent=tab=4 in Other options of Preferences. update URL: http://astyleclipse.sourceforge.net/update
7.4 2008-03-16 install R eclipse plugin.
update URL: http://www.walware.de/eclipseupdates/. uncheck "Show the latest version of a feature only" as 0.4.x requires eclipse 3.3.
2009-4-19 new update site: http://download.walware.de/eclipse-3.4
7.5 2008-03-18 c/c++ plugin outline
The c/c++ plugin's Outline is a bit tricky to work out. Have to convert the whole project to c/c++ project to make use of it. It's tricky to find out how to convert. Right-click a project(or its folder), choose 'New', choose 'Other...', expand the 'C++' and you'll see 'Convert to a C/C++ Make Project'.
7.6 2008-03-21 Mylyn
update URL: http://download.eclipse.org/tools/mylyn/update-archive/2.0.0/e3.2 sudo eclipse to install it system-wide, not in your home directory.
7.7 2008-03-25 Eclipse SQL Explorer
The update site for Eclipse SQL Explorer is http://eclipsesql.sourceforge.net/
7.8 2008-04-24 Oribe XML
http://www.cumminsonline.com.ar/eclipse/xml/
download http://www.cumminsonline.com.ar/eclipse/xml/oribexml.zip, unzip, put the plugin in the eclipse plugins directory:
mv /tmp/plugins/ar.cba.oribe.xmled.OribeXmlPlugin_0.5.4/ /usr/lib/eclipse/plugins/
This XML editor has minimal setup and can't really edit files without 'xml' suffix.
7.9 2008-04-28 other XML editors
oxygen XML Editor and XSLT Editor/Debugger http://www.oxygenxml.com/
7.10 2008-04-24 Web Tools Platform
http://www.eclipse.org/webtools/index.php
download WTP link
unzip
put contents in features/ and plugins/ into eclipse directory:
cp -r /tmp/eclipse/features/org.eclipse.wst* /usr/lib/eclipse/features/ cp -r /tmp/eclipse/plugins/* /usr/lib/eclipse/plugins/
This package is supposed to have xml, html editors. But never figured out how to use it (didn't pop up).
7.12 2008-05-30 eclipse vi/vim plugin
3 candiates (or more check http://vimplugin.org/history):
- vimplugin http://vimplugin.org/
- viPlugin http://satokar.com/viplugin/index.php
- Eclim http://eclim.sourceforge.net/
viPlugin retains eclipse editor and have a toggle button to enter vi mode. but commands such as :g/abc/p don't work. auto-completion uses eclipse's shortcut 'alt+/'.
vimplugin has an old sourceforge website which google turned it up 1st and the tarball from its download link is buggy. it embeds gvim into eclipse.
vimplugin setup:
- http://vimplugin.sf.net/update from http://vimplugin.org/ as the eclipse update site.
- click Window -> Preferences -> Vimplugin:
- setup the path to gvim.
- click 'Embed Vim' (maybe not, this disables 'ctrl+n' auto-completion in vi).
- change Port if you have >1 eclipse's running
vimplugin problems:
- Auto-completion screws up because 'Ctrl+n' opens the New wizard in eclipse while eclipse's 'Alt+/' has a different binding in gvim. Even after 'ctrl+n' is disabled in eclipse, 'ctrl+n' closes the embedded gvim. The un-embedded 'gvim' can solve this issue somehow.
- word_complete plugin completes with palindrome letters.
7.14 2009-4-19 install eclipse 3.4 on ubuntu hardy
based on http://ubuntuforums.org/showthread.php?t=941461. installation directory is /opt/eclipse.
remove all eclipse-related debs
download the "Eclipse Classic 3.4.2"
move the unzipped directory to /opt/
download the eclipse log (used in gnome menu) into /opt/eclipse
create shell shortcut, /usr/local/bin/eclipse, to make eclipse visible in PATH:
#!/bin/sh export ECLIPSE_HOME="/opt/eclipse" $ECLIPSE_HOME/eclipse $*
create gnome menu item, /usr/share/applications/eclipse.desktop:
[Desktop Entry] Encoding=UTF-8 Name=Eclipse Comment=Eclipse Ganymede IDE Exec=eclipse Icon=/opt/eclipse/ganymede.png Terminal=false Type=Application Categories=GNOME;Application;Development StartupNotify=True
Initialise eclipse by running the following command in Terminal: /opt/eclipse/eclipse --clean.
7.15 2009-4-18 set eclipse initial settings upon new workspace
7.15.1 turning off startup builds helps
Weird crashes happen during the startup of eclipse.
They are very likely due to errors encountered during source (java, c/c++) build . So turn it off to avoid crash.
click Window, click Preferences, click General, click Startup and Shutdown, in Plugins activated on startup, uncheck C/C++ Standard make Build UI, Java 5 Compatibility Checker
7.15.2 Java
- add 32bit JRE (only for GWT or other java packages require 32bit compilers). click Window, click Preferences, click Java, click Installed JREs, click Add, choose the directory with 32bit java inside.
- set compiler compliance level to 5.0. Default in eclipse 3.2 is 1.4 which causes lots of syntaxes marked as Error. click Window, click Preferences, click Java, click Compiler, choose 5.0 in Compiler compliance level:.
7.15.3 Python
- add python interpreter. Default is no interpreter whatsoever. click Window, click Preferences, click Pydev, click Interpreter -- Python, click New..., put the path of the binary in there.
- Turn python builders off. 2009-4-18 today python builder has become a problem. So turn it off. click Window, click Preferences, click Pydev, click Builders, uncheck both choices.
- choose tab as indentation choice. click Window, click Preferences, click Pydev, click Editor, uncheck Replace tabs with spaces when typing?.
7.16 Trouble-shooting
7.16.1 2008-01-07 complaining viPlugin feature.xml missing
Whenever trying to Find and Install ... or Manage Configuration, eclipse complains about /usr/lib/eclipse/features/com.mbartl.viplugin.../feature.xml missing.
It happened probably because i accidentally deleted the files (in /usr/lib/eclipse/features/ and /usr/lib/eclipse/plugins/) related to this package.
The way to solve it is to go to http://satokar.com/viplugin/index.php and download the same-version zip file and put the files back in.
7.16.2 2008-01-07 install package error due to Read Only access
Several packages were initially installed under root. Eclipse chose /usr/lib/eclipse as the installation directory. Now general-user doesn't have privilege to write in that directory.
So su or sudo -i into root and start eclipse to install them.
7.16.3 2009-03-07 mysterious crash
Eclipse booted and then crashed after the main IDE window appeared in a split second.
Easy way is to switch to a new Workspace.
7.16.3.1 2009-4-2 turning off startup builds helps
The crash is very likely due to errors encountered during source (java, c/c++) build . So turn it off to avoid crash.
click Window, click Preferences, click General, click Startup and Shutdown, in Plugins activated on startup, uncheck C/C++ Standard make Build UI, Java 5 Compatibility Checker.
7.16.4 2009-3-22 crash due to java.lang.OutOfMemoryError: PermGen space
Run eclipse like this to increase memory quota:
eclipse -vmargs -Duser.language=en -Xms128M -Xmx1024M -XX:PermSize=128M -XX:MaxPermSize=512M
7.16.5 2009-3-30 c/c++ file opened without Outline
Occasionally, you have a c/c++ file in an ocean of python files. when you open that file, the Outline panel doesn't display anything, neither the classes nor the functions. The problem is usually because eclipse requires the project to be a C/C++ Make Project in order for the c/c++ Outline to be functional. You can right click on a project, choose New, choose Convert to a C/C++ Make Project. The original project type is still retained.
8 VoIP
8.1 2008-03-03 skype
Force to install the i386 skype debian package (amd64 machine) but /usr/lib32 doesn't have libXss.so.1 and other 4 Qt libraries.
So get the static version (linux 2.0 beta). But the libXss.so.1 is still needed (static-skype is not fully static). Copying libXss.so.1 from a 32bit debian/etch to /usr/lib32 solves the problem.
Video /dev/raw1394 is not recognized in this version. http://ubuntuforums.org/showthread.php?t=606790 has a possible solution. 2008-03-04 that forum thread refers to http://dv4l.berlios.de/ but it doesn't work.
two other similar projects: http://gizmoproject.com/ and http://www.globe7.com/
About supernode, 2008-03-05. In windows, manoeuvring the firewall will solve it http://snapvoip.blogspot.com/2006/10/how-to-be-or-not-to-be-skype-supernode.html.
8.2 2008-03-03 gizmo
download the deb from http://download.gizmoproject.com/GizmoDownload/gizmo-project_3.1.0.79_libstdc++6_i386.deb
force install by dpkg -i --force-architecture gizmo...deb due to amd64 on my machine.
The only problem is libsipphoneapi.so.1.7.07.73, which is installed into /usr/lib/. So sudo ln -s /usr/lib/libsipphoneapi.so.1.7.07.73 /usr/lib32/libsipphoneapi.so.1.7.07.73. Thanks to http://www.uluga.ubuntuforums.org/showthread.php?p=3253679
8.3 2008-03-03 globe7
force-architecture install the package from http://www.globe7.com/linuxsys.php
The main script /usr/bin/globe7 has certain issues, wrong paths, etc. Need to get lots of 32bit gnome libraries.
9 2008-03-06 getlibs
According to http://ubuntuforums.org/showthread.php?t=474790, getlibs automatically solves dependencies for 32-bit programs on 64-bit.
- On 64-bit systems it downloads and installs libraries needed for 32-bit programs and 64-bit programs.
- On 32-bit systems it downloads and installs libraries needed for 32-bit programs.
http://www.boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb