2011-04-21

Blender Python Study Notes

The environment has:
C: handle to Blender context
__builtins__: Built-ins of Python 3
bpy: Top level Blender Python API module

2011-04-15

Ubuntu Server 10.04 As Desktop Use

(A modified version of previous installation guide, focusing on 10.04 LTS)

Configure Medibuntu source: https://help.ubuntu.com/community/Medibuntu

To disable installing recommended packages, create /etc/apt/apt.conf and put APT::Install-Recommends "false"; in it.

Desktop - system

xserver-xorg
gnome-core
gdm
gnome-themes-selected
humanity-icon-theme
dmz-cursor-theme

Desktop - apps


alacarte (menu editor)
file-roller
evince
gnome-screensaver
gksu
gcalctool
flashplugin-installer
chromium-browser
firefox (Chrome not able to display XML files with a XSL stylesheet)
language-support-??
brasero (ISO burner)
gnome-utils (including baobab -- a disk usage analyser, gnome-dictionary, gnome-search-tool, gnome-system-log, and gnome-screenshot)
gnome-bluetooth
*jockey-gtk (the proprietary driver manager)
*network-manager
*network-manager-openconnect (for Cisco AnyConnect VPN)
*kchmviewer
*gconf-editor

Development:
g++
gdb
openjdk-6-jre
*freeglut3-dev
*dia
*mysql-server
*libmysql-java (the JDBC driver)
*mysql-admin
*python-mysqldb
*apache2
*php5
*php5-mysql
*php5-sqlite
*libqt4-dev
*libqt4-opengl-dev

*libqt4-sql-sqlite
*qt4-doc
*qt4-dev-tools
*qt4-designer

Remote access
vinagre (the client; you might want to disable the keyboard shortcuts in the preferences menu)
vino (the server)


Media
alsa-base
alsa-utils
gnome-codec-install
audacious
libdvdcss2
non-free-codecs
*vlc
*mozilla-plugin-vlc
*banshee
*banshee-extension-soundmenu (for ubuntu 11.04)
*totem

Gaming
playonlinux (front end of wine)

Printing
system-config-printer-gnome
cups
*smbclient (for Windows shared printing)
*hplip (HP printer drivers)


Configuration

  • Enable audio:
    1. alsamixer
    2. Press "M" to (un)mute channels
  • Clear screen when logout:
    1. ~/.bash_logout
    2. insert single command clear
  • Disable Ctrl-Alt-Del:
    1. /etc/init/control-alt-delete.conf
    2. comment out the actual command line
  • Let vim display line numbers:
    1. sudo echo set nu >> /usr/share/vim/vimrc (if there is no such line)
  • Secure login/out logs:
    1. sudo chmod 640 `sudo find /var -name ?tmp`
  • NetworkManager system tray icon:
    1. edit /etc/NetworkManager/nm-system-settings.conf
    2. make the line read managed=true
    3. sudo /etc/init.d/network-manager restart
  • Stop GDM from auto starting:
    1. /etc/init/gdm.conf
    2. comment out all "start on" stuff
  • Configure GRUB:
    1. /etc/default/grub
    2. update-grub
  • MySQL
    1. Add line default-storage-engine=INNODB to /etc/mysql/my.cnf
    2. to reset root password: sudo dpkg-reconfigure mysql-server-5.1
  • Remote login
    1. vino-preferences