coLinux
Advertisement

<msonsuz> This page is for now been used to tell you how to use Fedora 5 with colinux. The older colinux kernels had problems with udev and I put here an udev fix. But the newer ones are working perfect. So if you have a problem with pty etc just install a newer kernell. This page is not made as a tutorial for the installation of Fedora 5. Its more like a storage for me for some things I found out while installing. If you want to know how to install Fedora Core 5 please use Fedora Core 6 installation page which shows step by step how to install Fedora Core 6. It is almost the same as the Fedora Core 5 installation. So only change the install dvd and you can use that page.


udev[]

yum remove bluez*
yum remove irda-utils
yum remove isdn4k-utils
yum remove pcmciautils
yum remove mdadm
yum remove dmraid
mkdir /udev
cd /udev
wget http://mirrors.kernel.org/fedora/core/4/i386/os/Fedora/RPMS/initscripts-8.11.1-1.i386.rpm
wget http://mirrors.kernel.org/fedora/core/4/i386/os/Fedora/RPMS/hotplug-2004_09_23-7.i386.rpm
wget http://mirrors.kernel.org/fedora/core/updates/4/i386/udev-071-0.FC4.3.i386.rpm
wget http://dl.atrpms.net/all/smart-update-0.42-37.fc5.at.i386.rpm
wget http://dl.atrpms.net/all/smart-gui-0.42-37.fc5.at.i386.rpm
wget http://dl.atrpms.net/all/smart-0.42-37.fc5.at.i386.rpm
wget http://dl.atrpms.net/all/ksmarttray-0.42-37.fc5.at.i386.rpm
wget ftp://ftp.pbone.net/mirror/atrpms.net/fc5-i386/atrpms/stable/atrpms-package-config-110-1.fc5.at.i386.rpm
chkconfig --del kudzu
rpm -e --nodeps initscripts
rpm -Uhv --nodeps initscripts-8.11.1-1.i386.rpm hotplug-2004_09_23-7.i386.rpm
rpm -e --nodeps udev
rpm -Uhv udev-071-0.FC4.3.i386.rpm
rpm -Uvh smart-0.42-37.fc5.at.i386.rpm atrpms-package-config-110-1.fc5.at.i386.rpm
reboot


use --nosignature in case there is no signature for some packages when installing with rpm

After those steps you can use smart to add new packages. The first time you execute smart, it will add channels automatically. Try installing kdepim/kdebase and firefox/openoffice for a minimal desktop system.

smart is the best package manager to date, install smart-gui, smart-update and ksmarttray from the rpms or from smart it self to enjoy all the goodness. You use smart to install yum again to use both.

NOTES

- you will need kernel 2.6.15 running on colinux for this to work correctly. I have used initrd, modules, symbols and vmlinux version 2.6.15 from http://www.henrynestler.com/colinux/testing/devel-2.6.15-hn/20060906/bin/

and it works perfectly with colinux 0.6.4 !! no need to install 0.7.1 (in fact 0.7.1 with that kernel hangs every 1 or 2 hours of hard work). Note too that that kernel is quite feature lacking as SMBFS/CIFS

- fc5 image on sourceforge has a problem when you try to install ssh server. Do this to fix:

rpm -e cracklib-dicts --nodeps
yum install cracklib-dicts 

or

rpm -e cracklib-dicts --nodeps
smart install cracklib-dicts

Remove for minimal system[]

You can remove packages by using

yum remove (packagename)

For example

yum remove aspell

The list I have so far is

alsa-lib
aspell
aspell-en
bluez-libs
bluez-pin
bluez-utils
dmraid
dosfstools
eject
gjdoc
gnu-crypto
gpm
irda-utils
isdn4k-utils
java-1.4.2-gcj-compat
jessie
jpackage-utils
libgcj
lftp
longrun
lrzsz
mdadm
minicom
mkbootdisk
nano
nss_db
nss_ldap
openssh-clients
pcmciautils
ppp
rp-pppoe
wvdial
ypbind
yp-tools

XDMCP (external Xwindows) login[]

For the client part I use XMING and I use KDE(but you can use your own like winx-32 x-deep32 gnome). This costed me two days to figure out because of 1 line in the Xserver file. If you enable XDMCP in a normal linux environment when you start your xdm server it automatically starts the gui. But in colinux it is not possible to do that. My colinux crashed a lot before I could use it. Another usefull link

Install X-server

startup eth1

ifup eth1

get xwindows

yum install xorg-x11-server-Xorg
  • get minimal kde
yum install kdebase
  • or get full kde
yum groupinstall "KDE (K Desktop Environment)"
  • or get full GNOME (with setup xdmcp you are for now on your own/Maybe somebody could add to this)
yum groupinstall "GNOME Desktop Environment"
  • In Fedora core 5 the fonts are not installed automatically using dependencies
yum install xorg-x11-fonts-Type1
Setup X-server

edit in /etc/X11/xdm/kdmrc

[xdmcp]
#Enable=false
Enable=true
#Port=177 #comment out 
Port=177
#AllowRootLogin=false #comment to allow login with root
AllowRootLogin=true

comment out in /etc/X11/xdm/xdm-config

! put an ! in front of DisplayManager.requestPort: 0
! DisplayManager.requestPort: 0

edit in /etc/X11/xdm/Xaccess

  • for external login (every ip can connect)
#*		
*		# any host can get a login window
  • for internal login (10.0.0.10 can connect)
#*		# any host can get a login window
10.0.0.10	# 10.0.0.10 can get a login window

comment out in /etc/X11/xdm/Xservers (to make it not start xwindows for local machine)

#:0 local /usr/bin/X

change your bootparameters to runlevel 5

root=/dev/hda1 fastboot 5

start firewall configure tool

system-config-securitylevel-tui

in Customize->Other ports

xdmcp:udp
XMING

create file xming.xlaunch on windows host

<?xml version="1.0"?>
<XLaunch 
	xmlns="http://www.straightrunning.com/XmingNotes" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
	xsi:schemaLocation="http://www.straightrunning.com/XmingNotes xlaunch.xsd" 
	WindowMode="Windowed" 
	ClientMode="XDMCP"
	XDMCPHost="10.0.0.100"
	XDMCPBroadcast="false"
	XDMCPIndirect="false"
	Display="0" 
	Clipboard="true" />
  • doublepress xming.xlaunch to start xming and voila you have your xwindows
X-DEEP32

APACHE with PHP/MySQL[]

Installing a webserver is really really easy

start internet

ifup eth1
APACHE

install apache

yum install httpd

make apache start at boot

chkconfig httpd on
PHP

install php

yum install php
MYSQL

install mysql-server

yum install mysql-server

install to be able to use mysql from apache

yum install php-mysql

make mysql start at boot

chkconfig mysqld on

set password for mysql (change the pass123 into something else)

mysqladmin -u root password 'pass123'


clean up

yum clean all

restart colinux

shutdown -h now

CVS[]

I wanted to use cvs for my php developed webpages. What I do is that install cvs on the same colinux server as where I have Apache. I create a repository where I can connect remotely and can change my code everywhere. I set it up so that when a commit is done it changes it automatically on the webserver.

In this example I have my webserver on /var/www/html and my cvs repository on /var/www/html/cvsroot. I have created a project which is visible on the webserver http://localhost/project and has location /var/www/html/project

Install CVS

first install xinetd

yum install xinetd

install cvs

yum install cvs

clean yum cache

yum clean all
Setup CVS

edit /etc/xinet.d.d/cvs

service cvspserver
{
	#disable		= yes
	port			= 2401
	socket_type		= stream
	protocol		= tcp
	wait			= no
	user			= root
	passenv			= PATH
	server			= /usr/bin/cvs
	env			= HOME=/var/cvs
	#server_args		= -f --allow-root=/var/cvs pserver
	#added /cvs as a repository dir
	server_args		= -f --allow-root=/var/cvs --allow-root=/cvs pserver
	#bind			= 127.0.0.1
}

create user cvs which has no home dir and has no login shell

useradd -M -s /sbin/nologin cvs

edit /etc/group and add user cvs to group cvs

cvs:x:500:cvs

link your repository to /cvs (you don't have to do this more for my webserver)

ln -s /var/www/html/cvsroot /cvs

create a repository

cvs -d /cvs init

create passwd file which will makes it possible to create cvs users without really creating users in Linux

touch /cvs/CVSROOT/passwd

create for example user cvs_user1 with password password1

htpasswd -b /cvs/CVSROOT/passwd cvs_user1 password1

edit /cvs/CVSROOT/passwd to link cvs_user1 to linux user cvs

# change cvs_user1:pp6hCEnDY5yz6 to
cvs_user1:pp6hCEnDY5yz6:cvs

edit ~/.bash_profile

#add to end
export CVSROOT=/cvs

To enable port for remote access start

system-config-securitylevel-tui

go to customize go to Other ports and add

cvspserver:tcp
Setup automatic update

compress image file smallest possible[]

(found at the mail list) When you want to compress an imagefile: for example you compress your fresh installed image file so you can decompress it and have a fresh installation. It can become big because the empty space is not really zero so your compressor makes the file big.

  • start with another image file and set the image you want to compress in the xml conf file in this example hda2
  • mount the image into /mnt
mount /mnt /dev/hda2
  • remove colinux modules
rm -rf /mnt/lib/modules/*-co-*
  • remove wtmp
rm -f /mnt/var/log/wtmp
  • remove all from tmp
rm -rf /mnt/tmp/*
  • clean apt get
/mnt/src/var/state/apt/lists/ayo.freshrpms.*
/mnt/src/var/cache/apt/*.bin
  • or clean yum
chroot /mnt
yum clean all
exit
  • get the number of available space in mb
df -m
#Filesystem	1M-blocks	Used	Available	Use%	Mounted on
#/dev/hda2	1984		750	1132		40%	/mnt
  • make a file filled with zero which is almost as big as the empty space in hda2. For count do the available size of hda2 minus 2
dd if=/dev/zero of=/mnt/foobar bs=1M count=1130
  • remove the zero file
rm /mnt/foobar
  • clean /mnt/root/.bash_history
  • Unmount the image from /mnt
umount /mnt
  • change mountcount etc
tune2fs -c 0 /dev/hda2
tune2fs -T 20070101 /dev/hda2

If you compress it now, it will become much smaller.

DUMP[]

yum install xorg-x11-fonts-truetype
yum install xorg-x11-fonts-75dpi
yum install xorg-x11-fonts-100dpi
yum install xorg-x11-fonts-Type1
Advertisement