Blue Shrapnel

Thursday, November 23, 2006

installing SugarCRM

php version - 5.1.4
php modules - IMAP, curl

edit php.ini and uncomment

session.save_path = /tmp

root@server30013 [/usr/local/lib]# php -i | grep -i session
session
Session Support => enabled
session.auto_start => Off => Off
session.bug_compat_42 => On => On
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /tmp => /tmp
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off

I ran

root@server30013 [/home/cpapachebuild/buildapache/php-5.1.4]# ./configure
--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml
--enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd
--with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6
--with-gettext --with-imap=/usr/local/imap-2004g --enable-mbstring
--enable-mbstr-enc-trans --enable-mbregex --enable-magic-quotes --with-mysqli
--with-mysql=/usr --enable-discard-path --with-pear --enable-sockets
--enable-track-vars --with-zlib

followed by make, checked for errors, then make install, then restarted apache
httpd using WHM

PHP Version => 5.1.4

System => Linux server30013.uk2net.com 2.6.17-1.2174_FC5 #1 Tue Aug 8 15:30:55 EDT 2006 i686
Build Date => Nov 24 2006 01:10:44
Configure Command => './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml' '--enable-bcma
th' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xp
m-dir=/usr/X11R6' '--with-gettext' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enabl
e-mbregex' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' '--enable-sockets
' '--enable-track-vars' '--with-zlib'

Saturday, November 18, 2006

Java Runtime Environment on Edgy

How to install JRE v5.0 Update 9
http://ubuntuguide.org/wiki/Ubuntu_Edgy#How_to_install_JRE_v5.0_Update_9

Note: Program included in Automatix2. If you have already used Automatix2, this program may have been installed
  • Read #General Notes
  • Read #How to add extra repositories
  • Navigate to http://java.sun.com/javase/downloads/index.jsp
  • Choose "Java Runtime Environment (JRE) 5.0 Update 9" and click on "Download"
  • Accept License Agreement
  • Download the "Linux self-extracting file"



* Install the required tool : sudo apt-get install java-package
* Create the Ubuntu package : fakeroot make-jpkg jre-1_5_0_09-linux-i586.bin
* Install the resulting package : sudo dpkg -i sun-j2re1.5_1.5.0+update09_i386.deb
* Restart Mozilla Firefox
* If you get an error, try changing the 09's in the filenames to the appropriate version number.

Friday, November 17, 2006

Polling Remote Mail -> IMAP

Polling Remote POP3 Servers for Mail and pushing into Linux IMAP Server

sudo apt-get install dovecot-imapd

http://wiki.dovecot.org/QuickConfiguration

Friday, November 10, 2006

mounting ntfs on Ubuntu filesystem

http://ubuntuguide.org/wiki/Ubuntu:Edgy#How_to_mount.2Funmount_Windows_partitions_.28NTFS.29_manually.2C_and_allow_all_users_to_read_only
http://www.ubuntuforums.org/showthread.php?t=21700

Firstly, with Edgy, disks-admin was unmaintained, so it was dropped from GNOME, according to http://ubuntuforums.org/showthread.php?p=1721261
  1. You can install pysdm (Storage Device Manager) and gparted (Gnome Partition Manager) through Synaptic Package Manager (from the menu in Gnome - System, Administration). You will need to enter your user password to gain root access.
    sudo aptitude install pysdm gparted
  2. Run the Storage Device Manager, configure the drives and then mount them. The you can access them using GParted. They are typically mounted in the filesystem: /media/hda1 and /media/hdd1 etc.
  3. Install ntfs-3g: http://www.ubuntuforums.org/showthread.php?t=217009

  4. /dev/hda1    /media/windows    ntfs-3g    defaults,locale=en_GB.utf8    0    0

Monday, November 06, 2006

ubuntu - installing bluetooth to use headset with skype

  1. https://help.ubuntu.com/community/BluetoothSetup
    sudo apt-get install bluez-utils
    karen@tom-1300:~$ sudo /etc/init.d/bluetooth restart
    * Restarting Bluetooth services... [ ok ]
    karen@tom-1300:~$ lsusb
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 002: ID 1310:0001 Roper Class 1 Bluetooth Dongle
    Bus 001 Device 001: ID 0000:0000
  2. Install bluez-btsco
    http://packages.ubuntulinux.org/edgy/sound/bluez-btsco
    karen@tom-1300:~$ sudo apt-get install bluez-btsco
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed
    bluez-btsco
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 17.0kB of archives.
    After unpacking 77.8kB of additional disk space will be used.
    Get: 1 http://gb.archive.ubuntu.com edgy/universe bluez-btsco 1:0.42-0ubuntu1 [17.0kB]
    Fetched 17.0kB in 0s (60.5kB/s)
    Selecting previously deselected package bluez-btsco.
    (Reading database ... 83451 files and directories currently installed.)
    Unpacking bluez-btsco (from .../bluez-btsco_1%3a0.42-0ubuntu1_i386.deb) ...
    Setting up bluez-btsco (0.42-0ubuntu1) ...
  3. Load Kernel Module for btsco
    sudo modprobe snd-bt-sco
    https://help.ubuntu.com/community/BluetoothSkype
    to load it permanently add it to /etc/modules, just write approriate module name at the end of the File.
    sudo vi /etc/modules
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.

    lp
    psmouse
    snd-bt-sco
  4. install gnome-bluetooth, obex-server
    http://ubuntuforums.org/showthread.php?t=34740
    karen@tom-1300:~$ sudo apt-get install gnome-bluetooth
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed
    gnome-bluetooth
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 194kB of archives.
    After unpacking 954kB of additional disk space will be used.
    Get: 1 http://gb.archive.ubuntu.com edgy/universe gnome-bluetooth 0.8.0-0ubuntu1 [194kB]
    Fetched 194kB in 1s (111kB/s)
    Selecting previously deselected package gnome-bluetooth.
    (Reading database ... 83459 files and directories currently installed.)
    Unpacking gnome-bluetooth (from .../gnome-bluetooth_0.8.0-0ubuntu1_i386.deb) ...
    Setting up gnome-bluetooth (0.8.0-0ubuntu1) ...
  5. check for l2cap and rfcomm via dmesg
    [17179615.032000] Bluetooth: L2CAP ver 2.8
    [17179615.032000] Bluetooth: L2CAP socket layer initialized
    [17179615.156000] Bluetooth: HIDP (Human Interface Emulation) ver 1.1-mh1
    [17179615.184000] Bluetooth: RFCOMM socket layer initialized
    [17179615.184000] Bluetooth: RFCOMM TTY layer initialized
    [17179615.184000] Bluetooth: RFCOMM ver 1.7
  6. bring the Bluetooth network interface up
    karen@tom-1300:~$ sudo hciconfig hci0 up
    karen@tom-1300:~$ hciconfig
    hci0: Type: USB
    BD Address: 00:0B:0D:33:79:35 ACL MTU: 120:20 SCO MTU: 64:8
    UP RUNNING PSCAN ISCAN
    RX bytes:822 acl:0 sco:0 events:61 errors:0
    TX bytes:522 acl:0 sco:0 commands:39 errors:0
    karen@tom-1300:~$ hcitool scan
    Scanning ...
    00:12:62:CB:25:A6 K nokia
    00:03:89:44:07:5F M3000 by Plantronics
  7. Edit your /etc/bluetooth/rfcomm.conf
    sudo vi /etc/bluetooth/rfcomm.conf

    #rfcomm0 {
    # # Automatically bind the device at startup
    # bind no;
    #
    # # Bluetooth address of the device
    # device 11:22:33:44:55:66;
    #
    # # RFCOMM channel for the connection
    # channel 1;
    #
    # # Description of the connection
    # comment "Example Bluetooth device";
    #

    rfcomm0 {
    device 00:12:62:CB:25:A6;
    channel 10;
    comment "Karen's Phone";
    }
    karen@tom-1300:/$ sudo sdptool add --channel=10 OPUSH
    OBEX Object Push service registered
    karen@tom-1300:/$ sudo rfcomm bind /dev/rfcomm0 00:12:62:cb:25:a6 10
    karen@tom-1300:/$
  8. get gnome passkey applet
    http://ubuntuforums.org/showthread.php?t=225703&page=2
    karen@tom-1300:/etc/bluetooth$ sudo apt-get install bluez-passkey-gnome
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed
    bluez-passkey-gnome
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 14.6kB of archives.
    After unpacking 106kB of additional disk space will be used.
    Get: 1 http://gb.archive.ubuntu.com edgy/main bluez-passkey-gnome 0.5-2ubuntu2 [14.6kB]
    Fetched 14.6kB in 0s (59.4kB/s)
    Selecting previously deselected package bluez-passkey-gnome.
    (Reading database ... 88545 files and directories currently installed.)
    Unpacking bluez-passkey-gnome (from .../bluez-passkey-gnome_0.5-2ubuntu2_i386.deb) ...
    Setting up bluez-passkey-gnome (0.5-2ubuntu2) ...
  9. pair with headset
    put headset in discovery mode (hold down volume up and call button till red/green light flashes)
    sudo hcitool cc 00:03:89:44:07:5F
    karen@tom-1300:~$ sudo btsco -v 00:03:89:44:07:5F
    btsco v0.42
    Device is 1:0
    Voice setting: 0x0060
    RFCOMM channel 1 connected
    Using interface hci0

Skype for Ubuntu

Installed skype. Fantastic, took a few minutes and worked first time!

http://ubuntuguide.org/wiki/Ubuntu_Edgy#How_to_install_Messenger_.28Skype.29
  • With Edgy the Skype is not included in the Ubuntu repositories anymore.
sudo apt-get install libqt3-mt
wget http://www.skype.com/go/getskype-linux-deb
sudo dpkg -i skype_debian-*.deb
  • To run "Applications > Internet > Skype".

Thursday, November 02, 2006

VNC

Using VNC on Windows

Setup

Setting up the programs to connect to a VNC server is not too difficult. You will, however, need to download two programs: a SSH client and a VNC client. The SSH client will make a secure connection between your computer and the VNC server and the VNC client will use this connection to draw a display on your screen.

Download and install a SSH client

In order to use VNC with your SSH client, your SSH client must provide port forwarding. Both Putty and Teraterm Pro will work. (Note: Putty only added this functionality recently, so if you have an old version you will want to upgrade.)

We have installation instructions for a SSH client available at http://www.cs.vassar.edu/SysNews/ssh/windows.html.

Download and install a VNC client

We recommend using TightVNC as your VNC client because it comes with several features over the official VNC client. TightVNC uses a "tight" encoding by default which efficiently compresses the information which updates your display.

  1. Download the TightVNC Viewer binary for Windows from the TightVNC download page: http://www.tightvnc.com/download.html.
  2. Open the downloaded TightVNC Viewer archive. It will create a new folder with the vncviewer program inside.

Connecting

Every time you want to make a VNC connection, you must forward a port with your SSH client and then open a session with your VNC client.

Port Forwarding - Putty

  1. Run PuTTY.
  2. In "Basic options for your Putty Session", enter the host name, vnc.cs.vassar.edu, and choose the "SSH" protocol. Do not "Open" this connection just yet.
  3. On the left, find and select the category "Connection - SSH - Tunnels".
  4. In the section "Add new forwarded port:", set the "Source Port" to 5901 and set the "Destination" to vnc.cs.vassar.edu:5995. Choose "Local" for this connection if it is not already the default, and click "Add".
  5. Open the connection and log in. Leaving PuTTY open, start a VNC session.

Port Forwarding - Teraterm

  1. Open Teraterm Pro by running ttssh. Teraterm will ask you to make a new connection. Hit "Cancel".
  2. Select "SSH Forwarding..." from the "Setup" menu.
  3. Click "Add" and fill in "Forward local port '5901' to remote machine 'vnc.cs.vassar.edu' port '5995'".
  4. Choose 'Ok' to get back to the main, blank, Teraterm window.
  5. Choose "New Connection" from the "File" menu. Connect to host 'vnc.cs.vassar.edu' using the 'SSH' service.
  6. Leave Teraterm open and start a VNC session according to the next session. (It's fine to minimize Teraterm, of course.)

VNC Session

  1. Run the VNC client, vncviewer.
  2. Enter localhost:1 for the vnc server to connect with.
  3. A graphical login screen should appear. Log in and start work.
  4. When you are finished, just log out of your Unix session as you normally would, close the VNC client program, and exit from your SSH session.

Wednesday, October 25, 2006

Ubuntu Edgy

Installed Ubuntu Edgy on home desktop. This is great! So far I am enjoying it and seriously considering the whole shabang as an alternative to XP. Need to keep microsoft alive for the sake of software though.