Tuesday, January 13, 2009
Basic setup for dedicated service of a Ubuntu box
1) Setup automatic log in: system>administration>login window>enable automatic login
...... see http://www.inspectmygadget.com/2007/08/27/img-quickie-login-automatically-to-ubuntu/
2) fix issue with secure wireless. Disable nm-applet in sessions manager: preference>sessions>start-up programs>disable network manager. Creat the following script:
#!/bin/bash
#launch useful stuff for gnome...
#first unlock the default keyring...
echo /usr/libexec/pam-keyring-tool -u -s
#then run nm-applet in the background...
nm-applet &
Add this script to the start-up programs.
Automatically log into Ubuntu
see http://www.inspectmygadget.com/2007/08/27/img-quickie-login-automatically-to-ubuntu/
Basic steps:
1) system>administration>login window
2) security tab
3) enable automatic login
Monday, January 12, 2009
Accessing the Linux Machine Remotely from a PC
- Install putty portable. See www.portableapps.com
- Start putty portable.
- Specify linux machine and hit connect.
Ubuntu tightVNC
To setup and use a Ubuntu machine...
- Get tightVNC server and client using the Synaptics package manager
- From a terminal start the server using "$tightvncserver -nolisten tcp :1" See https://help.ubuntu.com/community/VNC
- To connect, a) For a PC, download http://www.tightvnc.com/ and install. Start and connect. Don't foget to specify the full name including the terminal number, e.g. "computer:1" b) For another linux box, from a terminal start the client using $tightvncclient
My favorite server configuration:
$tightvncserver -display 1280x800 -depth 32
Saturday, January 3, 2009
Getting Webware + Apache to work on Ubuntu
Useful Links:
- http://ubuntuforums.org/showthread.php?t=272022
- http://www.webwareforpython.org/WebKit/Docs/InstallGuide.html#wkcgi
Steps: see http://www.webwareforpython.org/WebKit/Docs/InstallGuide.html#id8
- Install Apache 2. The built in package installer will install the cgi-bin directory under usr/lib.
- Download and install Webware 1.0
- In ../Webware/WebKit/Adapters/wkcgi run make (I use /home/Webware/Webkit/...)
- copy wkcgi to usr/lib/cgi-bin/wkcgi.cgi
- copy WebKit.cfg to usr/lib/cgi-bin directory
- Install webit from webkit directory $python install.py
- start apache
- start WebKit app server by invoking WebKit/AppServer
- test by opening http://127.0.0.1/
- test by opening http://127.0.0.1/cgi-bin/wkcgi.cgi
You can stop the server by typing ^Z at the terminal.
Exploring Python Centric Web servers
Useful Links:
Useful Texts:
General Comments on Python Centric/Compatible Frameworks
- Webware
- Xitami
- Apache
- Zope
- Grok
Subscribe to:
Posts (Atom)