Main Page

From NjahbiWiki

Contents

Howto use wiki

there is an editing help editing help

and we can have our own convention


goal is to have a good documentation, which can grow and still can give good overwiew.

so if w have the similar problem as we had 3 months before, we must not think, try and loose time and nerv, we just go to the documentation and do what we have done before. so it must

- correct: especially the command must be tested

- good structure

- all command are in a box, so they can be easy copy and paste in a terminal, to do it, just begin the line with a space

- never write passwords

- make good structures so we will find better find what we are looking for

- when we find mistake, correct it with comment

- do not make page to long, if it is to big, do new pages howto do it, see editing help editing help

technical stuff

howtos

howtos


e/commerce

e-commerce sotware

openstreetmap

http://www.openstreetmap.org/ http://wiki.openstreetmap.org/wiki/Main_Page

internet

internet

wikipedia off line

with kiwix

http://www.kiwix.org/index.php/Main_Page

http://sourceforge.net/projects/kiwix/files/kiwix_0.9-alpha5_i386.deb/download

and the .zim files



Wikipedia ZIM Downloads
	he 	ar 	fr 	it 	zh 	ml
Size 	2.1G ↓ 	731M ↓ 	11GB ↓ 	8.3GB ↓ 	3.2G ↓ 	248M ↓
Number of articles 	all 	all 	all 	all 	all 	all
Date Created 	04-Apr-2010 	05-Mar-2010 	05-Aug-2010 	01-Apr-2010 	08-Jun-2010 	24-Jun-2010
Others

    * Wikipedia for schools (en)
    * WP1.0 selection v0.7: 30.000 Wikipedia best articles (en) 


or there

http://tmp.kiwix.org/zim/0.9/

wait to see if the project continue...


direct



from the page http://www.soschildrensvillages.org.uk/charity-news/archive/2008/10/2008-wikipedia-for-schools

Download and install a BitTorrent client if you don't already have one. If you are on Windows you can download µTorrent from our web site. Alternatively search Google for "BitTorrent client". To download µTorrent right click on the following link and "Save Target as…" or "Save Link as…": Download µTorrent. Save the file in a suitable place (e.g. C:/Program Files ) then run the file, no installation is required.

link http://www.soschildrensvillages.org.uk/static/utorrent.exe

download the link

it opens the programm transmission

i want to take a scrennshot but scrennshot no here

and wait... (here more and less 2 hours

howto download

instead of just click on download, it is better to copy the url of the download

open a terminal go to the directory you want and type

wget -c (url)

if the download break down, you just put the same command again it will continue where the download break example



michel@ubu910en:~/Downloads/ubuntu/v10.04$ wget -c http://releases.ubuntu.com/releases/10.04/ubuntu-10.04-beta1-  netbook-armel+dove.img


howto install ltsp network

the installation should be done with at least 2 persons one person follow the this howto another person make a protocol of the installation for example in wiki on the server make a new chapter

protcol installation


better you do it slowly and try to understand what happens, then just try quickly without understand ing what happens

you have ltsp server and client allready configured, now you should install the network

you must begin: install server

if you have 2 servers begin with one and test it with client, when every thing is ok test the second one

all the material is on 220-240 volts as usual in cameroon.please do not change it, because ti will destroy the machine


server

the servers you have reciefed has 2 ethernet cards (one on board), so it is easy to see which one is a server, which one is client

the server are allready configured, it should work without any modification.

do not make test on these machines, it is important, taht you have a productive stable network, which really work well. to make test you must take another machine. (this later)

you must just start the computer and wait until the login window is coming

user michel pw as usual

you can control the ip, but pleas don't change it, because youhave really no reason, especailly if you are not on internet and the client cannot login anymore (we will make test on test server later)

eth0 should have a fix ip (static) and it is the interface on which the dhcp server is running eth1 is dhcp client and if you don't have internet it has no ip

you can work on this machine with this user. so you can make the protocol in the wiki on this machine: open the firefox and put the followind adress http://localhost/mediawiki

it is open, every body can edit open a new chapter protocol installation


you should NOT login in x window as root, use root carfully and only if you must do it


client

when the server is running, you can begin with first one client

before you swith on the client


plug in the switch to the current, the power led should lighted

trouble: if not switch or hub: no power light

normally i write which is the ethernet card for ltsp intranet dhcp and which is for internet


plug the ethernet cable to dhcp (not internet) and the other end to the hub or switch. you must control this connection: it comes a light where the cable is connected

trouble: if not ligth look [ http://www.njahbisoli.org/wiki/index.php?title=Main_Page#switch_or_hub:_no_connection_light no connection light ]

plug the keyboard, mouse and monitor

switch on the client

look what happens


on the server you can open one terminal as root and type

tail -f /var/log/syslog

on the client, you will see the normal boot up

after a few seconds it will appears that you recieve a ip adresse form the server

the server will show it on the terminal

trouble: if it appears [http://www.njahbisoli.org/wiki/index.php?title=Main_Page#no_ipadress no ip adress ]



the client will start to load files from the server

trouble: no files is loaded

we just wait until the login window is coming

login

each machine sould have is own login ans passord the are allready configured on he server type

ls /home

it will appear the name of the users, normally i made client1 client2 ... look at it and type on the client the name of the first user the password is the same as the username

write the user name on each client, don't login witn the same name on 2 diferents clients



when the first client is running just make the same with the other clients


troubleshooting

check manually

what to do when the fsck died

press control + D to restart the computer

give root password ie (as usual) type:

e2fsck -p/ dev/hda1

it is not working, you must do it manually type:

e2fsck /dev/hda1

press the

Enter key 

many times when you see (y)

when it is finish type:

reboot
switch or hub: no power light

has it really on power? if it is, change an try another hub or switch

it must be running, if not all the network will not work


switch or hub: no connection light


take another cable and test it, if is coming light, the fist cable is not more ok, make a remark on it repair it

if it is still no light

take another switch and test it


fi no switch is working, you can stop the installation, ecasue it will never work mail me and we will try to find another switch or hub

no ipadress


it means that the client does not recieve an ip form the dhcp server

you have check the cable before so ti should be ok

on the server look on the terminal with the syslog

open a new root terminal and type

ps aux | grep dhcp

if must appear a line with the dhcp server if it appears it means the dhcp server is running

trouble-trouble: if this line does not appear, you can start the dhcp server

/etc/init.d/dhcp3-server start

example:

root@xubu710ibm1:~# /etc/init.d/dhcp3-server start

afterwards you must control, if the dhcp server is running

ps aux | grep dhcp

if is dhcp is running, start the client again switch on the client


trouble-trouble: if not please look the syslog terminal

the dhcp must be running, ti is worthless to try to go further until dhcp is running


no files loaded


nfs test

look if the nfs is running

ps aux | grep nfs

it will comes many lines with nfs

trouble-trouble: if not the nfs is not running

you can start with

 /etc/init.d/nfs-kernel-server start

example root@xubu710ibm1:~# /etc/init.d/nfs-kernel-server start

test nfs again

if it is running switch on the client

if not tftp test

tftp test

test if the inted is running

ps aux | grep inetd

if a line appears wtih inetd so it is working

if not, start it with

/etc/init.d/inetd start

test it is now working if yes switch on the client


if not mail me

install plugins in firefox no internet


you must have the plugin file you want to install and for this the easiest way is to get it with wget

for yulup you can do it like this



 wget -c http://www.yulup.org/download/yulup-0.3.0-r26657.xpi


this file will on your machine in the directory you start wget

you can copy this file on a usb stick and so install it on others computers

in firefox

go to

 Tools
   Add-ons (click)
 open a file manager (for example Thunar)
 drag the plug-ins file in the Add-ons firefox windows 
 it will ask a qustion about security
 click install now

so the yulup plugins is installed

to work with it

the machine of the ltsp have allready apache on it, so you can simaulate the internet (it is exactly the same programm)

you open firefox and put localhost it will open a page. if apache is not running, ti will give a mistake.

on the ltsp machine, it is allready a symbolic link to a user (i think michel ) so you can put the source of you html there (most of the time it is a directory phpmi or soemthing like this we put your homepage there and you can see it withe fire fox. if the yulup plugin is installed a blue icon apperas on the right of the browser. if you click on it so you can modify the page.




howto install skype

download skype

http://www.skype.net/go/getskype-linux-ubuntu

sudo dpkg -i skype-debian_1.4.0.118-1_i386.deb

in case it does not work, you


sudo apt-get update
 431  sudo apt-cache search libqt4
 432  apt-get -s install libqt4-core libq4-gui
 433  sudo apt-get -s install libqt4-core libq4-gui
 434  sudo apt-get -s install libqt4-core libqt4-gui
 435  sudo apt-get install libqt4-core libqt4-gui


xen

virtualization


this is working well http://www.pastacode.de/howto-virtualisierung-mit-xen-unter-debian-lenny-linux-kernel-2626/de/

only as info http://docs.vmd.citrix.com/XenServer/5.5.0/1.0/en_gb/guest.html http://wiki.xensource.com/xenwiki/July_24,_2009

dom0

2 ethernet cards

http://wiki.xensource.com/xenwiki/XenNetworking

solution

http://www.debian-administration.org/articles/470


this work

deb5lxde:/etc/xen# history
   1  ifconfig 
   2  cp /etc/network/interfaces /etc/network/interfaces-miorig
   3  vim /etc/network/interfaces
   4  /etc/init.d/networking restart
   5  ifconfig 
   6  apt-get -s install xen-linux-system-2.6.26-1-xen-686 xen-hypervisor-3.2-1-i386 xen-tools xen-utils-3.2-1 xenstore-utils xen-shell xenwatch
   7  apt-get  install xen-linux-system-2.6.26-1-xen-686 xen-hypervisor-3.2-1-i386 xen-tools xen-utils-3.2-1 xenstore-utils xen-shell xenwatch
   8  cp /etc/network/interfaces /etc/network/interfaces-miorig
   9  cp /etc/apt/sources.list /etc/apt/sources.list-miorig 
  10  vim /etc/apt/sources.list 
  11  apt-get update
  12  apt-get  install xen-linux-system-2.6.26-1-xen-686 xen-hypervisor-3.2-1-i386 xen-tools xen-utils-3.2-1 xenstore-utils xen-shell xenwatch
  13  cd /etc/xen
  14  ls
  15  cp xend-config.sxp xend-config.sxp-miorig
  16  vim scripts/my-network-script
  17  vim xend-config.sxp
  18  chmod +x scripts/my-network-script 
  19  ls /home/
  20  mkdir /home/xen
  21  cp /etc/xen-tools/xen-tools.conf /etc/xen-tools/xen-tools.conf-miorig
  22  vim /etc/xen-tools/xen-tools.conf 
  23  uname /r
  24  uname -r
  25  ifconfig 
  26  less /etc/network/interfaces
  27  ping www.google.com
  28  ifconfig  -a
  29  ifconfig eth0
  30  /etc/init.d/networking restart
  31  cd /etc/xen
  32  vim scripts/my-network-script 
  33  /etc/init.d/xend restart
  34  ifconfig 
  35  ifconfig eth0
  36  /etc/init.d/networking restart
  37  ifconfig eth1
  38  vim scripts/my-network-script 
  39  /etc/init.d/xend restart
  40  ifconfig 
  41  ifconfig ETH0
  42  ifconfig eth0
  43  /etc/init.d/networking restart
  44  vim xend-config.sxp
  45  mv scripts/my-network-script scripts/my-network-script-save
  46  /etc/init.d/xend restart
  47  ifconfig eth0
  48  /etc/init.d/networking restart
  49  ifconfig 
  50  cd /etc/xen
  51  mv scripts/my-network-script-save scripts/my-network-script
  52  vim xend-config.sxp
  53  /etc/init.d/xend restart
  54  ifconfig 
  55  ifconfig eth1
  56  historz
  57  history
deb5lxde:/etc/xen# 

first install only with one card in xend-config.sxp only

configuration files


deb5lxde:/etc/xen# less xend-config.sxp
--
 ...
 # mi ############
 #(network-script network-bridge)
 (network-script my-network-script)
 # mi end ##########
 ...
--
deb5lxde:/etc/xen#


deb5lxde:/etc/xen# less scripts/my-network-script 
--
 #!/bin/sh
 dir=$(dirname "$0")
 "$dir/network-bridge" "$@" netdev=eth0 
 "$dir/network-bridge" "$@" netdev=eth1
--
deb5lxde:/etc/xen# 



if we insstaled with 2 cards it does not find any interfaces

# mi ############
(network-script network-bridge)
#(network-script my-network-script)
# mi end ##########


restart xend

change

# mi ############
#(network-script network-bridge)
(network-script my-network-script)
# mi end ##########
and put my-network-script in scripts/

restart xend

now we have both cards

we dont have top change the .cfg file of the virtual machine


reboot to test if it works after reboot

--

it works

tests

old please see chapter before

from http://www.debian-administration.org/articles/470




/etc/xen/xend-config.sxp:

      ...
      #(network-script network-bridge)
      (network-script my-network-script)
      ...

Change the networking to have more than a single bridge. Here we set up a new script that will start a bridge for each NIC installed:
/etc/xen/scripts/my-network-script:

    #!/bin/sh
    dir=$(dirname "$0")
    "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
    "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1
    "$dir/network-bridge" "$@" vifnum=2 netdev=eth2 bridge=xenbr2

    Do not forget to chmod u+x this script!



from xensources




With Xen 3.2.1 (tested on Debian Etch 4.0r3), here is a script example that creates two virtual interfaces corresponding to the 2 physical network interfaces

# xemacs /etc/xen/scripts/network-bridge-wrapper
#!/bin/sh
/etc/xen/scripts/network-bridge "$@" netdev=eth0
/etc/xen/scripts/network-bridge "$@" netdev=eth1



after to activate the second card

in .cfg file


vif = [ 'mac=00:16:3E:D3:19:10' ]

change and add vif = [ 'mac=00:16:3E:D3:19:10', 'mac=00:16:3E:D3:19:10, bridge=eth1' ]

please control


don-t forget restart xend

/etc/init.d/xend restart

domU

configuration /etc/xen-tools/xen-tools.conf



deb5lxde:/etc/xen# diff ../xen-tools/xen-tools.conf ../xen-tools/xen-tools.conf-miorig
46d45
< dir = /home/xen
129,132c128,129
< #size   = 4Gb      # Disk image size.
< size   = 10Gb      # Disk image size.
< #memory = 128Mb    # Memory size
< memory = 512Mb    # Memory size
---
> size   = 4Gb      # Disk image size.
> memory = 128Mb    # Memory size
136,137c133
< #dist   = etch     # Default distribution to install.
< dist   = lenny     # Default distribution to install.
---
> dist   = etch     # Default distribution to install.
174d169
< dhcp = 1
193d187
< passwd = 1
264d257
< serial_device = hvc0 #default
268d260
< disk_device = xvda #default
deb5lxde:/etc/xen# 


create domU

xen-create-image --hostname test1 --role=udev

for 2 ethernet cards



deb5lxde:/etc/xen# diff graphic.cfg graphic.cfg-miorig 
32c32
< vif         = [ 'mac=00:16:3E:B7:9B:60','mac=00:16:3E:B7:9C:60,bridge=eth1' ]
---
> vif         = [ 'mac=00:16:3E:B7:9B:60' ]
deb5lxde:/etc/xen# 


graphic on client

http://www.debian-administration.org/articles/322

apt-get update apt-get install xserver-xfree86 vncserver xfonts-100dpi xfonts-75dpi xfonts-base rxvt


windowmanager example


apt-get install icewm-experimental


and gdm or other


cat <<EOF >> /etc/gdm/gdm.conf [server-VNC] name=VNC server command=/usr/bin/Xvnc -geometry 800x600 -depth 24 flexible=true EOF





GDM Setup

    GDM setup is also pretty painless once it has been installed. We just need to make a change to the configuration file /etc/X11/gdm/gdm.conf, and add a new section.

    Install gdm as follows:

    apt-get install gdm

    Now we add a new section to end of the configuration file:

    cat <<EOF >> /etc/X11/gdm/gdm.conf
    [server-VNC]
    name=VNC server
    command=/usr/bin/Xvnc -geometry 800x600 -depth 24
    flexible=true
    EOF

    Finally we make that section the active server:

    perl -pi.bak -e 's/^0=Standard/0=VNC/g' /etc/X11/gdm/gdm.conf

    Once this has been done we can restart the server as follows:

    /etc/init.d/gdm stop
    /etc/init.d/gdm start

Once you've setup the login manager you should be able to connect from the host to the virtual server just by running:

xvncviewer xx.xxx.xx.xx

Where xx.xx.xx.xx is the IP address of your virtual server. Login and you should have complete control over the desktop - just as if it were a real machine in front of you.

(If you don't have it installed upon the host already you can fetch it with "apt-get install xvncviewer".)


= test


kein verbindung b@deb5lxde:/etc/xen$ xtightvncviewer 192.168.1.11:0 No protocol specified Error: Can't open display: :0 b@deb5lxde:/etc/xen$ gksu xtightvncviewer 192.168.1.11:0 No protocol specified

(gksu:4111): Gtk-WARNING **: cannot open display: :0 b@deb5lxde:/etc/xen$


deb5lxde:/etc/xen# xtightvncviewer 192.168.1.11:0 xtightvncviewer: ConnectToTcpAddr: connect: Connection refused Unable to connect to VNC server deb5lxde:/etc/xen#

test

here you can test how to use wiki

please for all who are not skill, try first here to write you contribution click edit on test, so you can only change this chapter and you must be scared to destroy the rest