Saturday, June 30, 2007
Fedora 7 now support NTFS - read/write
uname -a
Linux 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 14:56:37 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
ntfsprogs-1.13.1-4.fc7
Sunday, June 24, 2007
Skype for Fedora 7
- skype-1.4.0.74-fc5
- qt4-x11-4.3.0-2.fc7
- nas-1.9-2.fc7
- qt4-4.3.0-2.fc7
- libsigc++20-2.0.17-2
Saturday, June 23, 2007
Build Linux kernel module quick
So I based on the scripts provided in http://www.linux-ntfs.org
kernel-module-ieee1394.spec
mybuild
Usage: ./mybuild specfile source-rpm {source-rpms} {archs}
e.g. ./mybuild kernel-module-ieee1394.spec kernel-devel-2.6.21-1.3228.fc7.i686.rpm i686
Synology 101g+ crosstool - HOWTO
Get the following from http://www.powerdeveloper.org/forums/viewtopic.php?p=7153
Configured with: /home/jjw/v/crosstool-0.43/build/powerpc-603e-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/configure --target=powerpc-603e-linux-gnu --host=x86_64-host_unknown-linux-gnu --prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc-603e-linux-gnu --with-cpu=603e --enable-cxx-flags=-mcpu=603e --with-headers=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc-603e-linux-gnu/powerpc-603e-linux-gnu/include --with-local-prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc-603e-linux-gnu/powerpc-603e-linux-gnu --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.1.0
Get the following workable with my Synology 101g+
powerpc-603e-linux-gnu.crosstoolconfig.txt
GCC_HOST=
GCC_LANGUAGES=c,c++
GDB_DIR=
GLIBC_ADDON_OPTIONS==linuxthreads,
GLIBC_DIR=glibc-2.3.3
GLIBC_EXTRA_CC_ARGS=
GLIBC_EXTRA_CONFIG=
GLIBC_EXTRA_ENV=
JUST_DOWNLOAD=
KERNELCONFIG=
LINUX_DIR=linux-2.4.22
LINUX_SANITIZED_HEADER_DIR=
NO_DOWNLOAD=
PREFIX=/opt/crosstool/gcc-3.3.4-glibc-2.3.3/powerpc-603e-linux-gnu
PTXDIST_DIR=
SHARED_MODE=--enable-shared
SRC_DIR=/home/lama/Documents/crosstool/crosstool-0.43/build/powerpc-603e-linux-gnu/gcc-3.3.4-glibc-2.3.3
TARBALLS_DIR=/home/lama/Download
TARGET=powerpc-603e-linux-gnu
TARGET_CFLAGS=-O -mcpu=603e
TOP_DIR=/home/lama/Documents/crosstool/crosstool-0.43
USE_SYSROOT=
Sybase ASE on Linux FAQ - Fedora
Extract from the link below:
• Running ASE 12.5.1 on Fedora
Fedora is the new name of Red Hat's "consumer" releases (as opposed to their "Enterprise" releases).ASE 12.5.1 requires a Java JVM to install. I downloaded mine from http://java.sun.com/j2se/1.4.2/download.html. There are some instructions on performing the JVM install at http://fedora.artoo.net/faq/#Java.
Next, the dataserver binary is linked with some older libstdc++.so libraries. To get these libraries you need to install compat-libstdc++-7.3-2.96.118.i386.rpm. This is available in the Fedora distribution.
Now you are ready to go ahead and install.
Note that the 12.5.1 installer doesn't create a "sybase" user for you, doesn't install any rc files, and doesn't edit /etc/ld.so.conf, so you'll have to do that yourself. Also remember to set the kernel.shmmax entry in /etc/sysctl.conf and run /sbin/sysctl -p before building a new server.
Sybase ASE on Linux FAQ
Thursday, June 21, 2007
Sqlite: How To Build a Loadable Extension Shared Library on Linux
How To Build a Loadable Extension Shared Library on Linux
0. untar latest sqlite3 source code in a new directory
1. cd to the newly untarred sqlite directory
2. Comment out the line in Makefile.in to enable loadable extensions:
# TCC += -DSQLITE_OMIT_LOAD_EXTENSION=1
3. ./configure LIBS=-ldl && make sqlite3
4. export LD_LIBRARY_PATH="`pwd`:$LD_LIBRARY_PATH"
5. gcc -I`pwd` -shared src/test_loadext.c -o half.so
6. ./sqlite3
SQLite version 3.3.17
Enter ".help" for instructions
sqlite> .load half.so testloadext_init
sqlite> select half(7);
3.5
Sunday, June 17, 2007
Fedora 7 imap imaps pop3 pop3s using dovecot
install dovecot-1.0.0-11.fc7
modify /etc/pki/dovecot/dovecot-openssl.cnf
rm /etc/pki/dovecot/certs/dovecot.pem
rm /etc/pki/dovecot/private/dovecot.pem
/usr/libexec/dovecot/mkcert.sh
service dovecot restart
Apache self signed certificate for Fedora7
mod_ssl-2.2.4-4
distcache-1.4.5-14.1
httpd-2.2.4-4
openssl-0.9.8b-12.fc7
cd /etc/pki/tls/certs
review make-dummy-cert and make copy say my_make_cert and modify the content of the copy
i.e. highlighted in red below:
#!/bin/sh
umask 077
answers() {
echo --
echo SomeState
echo SomeCity
echo SomeOrganization
echo SomeOrganizationalUnit
echo localhost.localdomain
echo root@localhost.localdomain
}
issue the below
./my_make_cert test
split the file test in between the lines into two parts:
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
The upper part save as file /etc/pki/tls/private/localhost.key
The bottom part save as file /etc/pki/tls/certs/localhost.crt
This matches with the default /etc/httpd/conf.d/ssl.conf that come with the mod_ssl rpm package
Saturday, June 16, 2007
Tuesday, June 12, 2007
How to compile Boost in Sun Solaris
#!/bin/bash
BOOST=/home/lama/tmp/boost_1_33_1
GCCPATH=/home/lama/gnu/gccCC=/home/lama/gnu/gcc/bin/gccexport CCPATH=/home/lama/gnu/gcc/bin:/home/lama/gnu/binutils/bin:/usr/binexport PATH
cd $BOOST/tools/build/jam_src
./build.sh gcc
cd $BOOST
$BOOST/tools/build/jam_src/bin.solaris/bjam \
-sBOOST_ROOT=. \
-sTOOLS=gcc \
-sGCC_ROOT_DIRECTORY=$GCCPATH \
--prefix=/home/lama/gnu/boost_1_33_1 \
--without-python \
--builddir=/home/lama/tmp/boost \
--stagedir=/home/lama/tmp/stage \
"-sBUILD=release