divendres, 9 d’abril del 2010

Windows 7 - Linkat 3 Server:

Windows 7 - Linkat 3 Server:

1- S'ha d'actualitzar el paquet de samba a la seva versió 3.4 o superior (que és l'estable). Aquesta versió es pot descarregar de:

http://download.opensuse.org/repositories/network:/samba:/STABLE/openSUSE_11.1

La versió que s'ha comprovat que funciona correctament és la 3.4. El repositori que conté aquesta versió (i que ha donat bons resultats) és:

http://download.opensuse.org/repositories/network:/samba:/MAINTAINED:/SLE_11/openSUSE_11.1

(a data: 9-04-10, la versió del repositori anterior SLE_11 és la 3.4.3 i funciona correctament)


2- A la banda del Windows 7, cal modificar el registre:



La solución consiste en modificar el registro de cada host con Windows 7 para agregar las siguientes claves, ubicadas en [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation\Parameters]:

"DomainCompatibilityMode"=dword:00000001
"DNSNameResolutionRequired"=dword:00000000

I posar les que hi ha a [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Netlogon\Parameters] al valor: 1
(IMPORTANT):

"RequireSignOrSeal"=dword:00000001
"RequireStrongKey"=dword:00000001


Font:

http://wiki.samba.org/index.php/Windows7

http://technet.microsoft.com/en-us/library/ee681622%28WS.10%29.aspx

Proposta de fitxer .reg que contempli aquestes modificacions:




Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters]
"DNSNameResolutionRequired"=dword:00000000
"DomainCompatibilityMode"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Netlogon\Parameters]
"RequireSignOrSeal"=dword:00000001
"RequireStrongKey"=dword:00000001



dimarts, 12 de gener del 2010

Actualització del NB200: Partició Linkat

Actualització del NB200: Partició Linkat




NOTA IMPORTANT: Abans de seguir aquesta recepta, és important copiar la imatge antiga sda3.img a un dispositiu extern.





1- Des de Linkat muntar rw la partició /dev/sda6

mount /dev/sda6 /media/XXXX -t ex2

on XXXX és un directori qualsevol dels que apareix a sota del directori /media



2- Editar el fitxer:

/media/XXXX/boot/menu.lst


i fer la modificació següent:

editar l'entrada: Recuperació del sistema i en concret:

kernel /boot/linux root=/dev/sda6 init2=/sbin/init ro quiet vquiet

i canviar-la per rw

kernel /boot/linux root=/dev/sda6 init2=/sbin/init rw quiet vquiet


3- Reiniciar el sistema i entrar, amb la tecla ESC dins del sistema de restauració: "Recuperació del sistema"

4- Quan aparegui el menú de restauració, entrar dins d'un terminal de text prement les tecles <CTRL><ALT><F1>

5- Cercar el procés:

menu_recover_partition.sh

dialog


i matar-los

ps aux |grep menu_recover_partition


Anotar el PID (primera columna numèrica) del procés i fer un:

kill -9 PID   (on PID correspon al procés menu_recover_partition.sh)


Nota: com que el teclat es troba en anglès, el guionet es troba a la tecla:  ?


5- La creació d'una nova imatge de Linkat es fa a través de la comanda:


/usr/bin/ph-backup.linux.sh  /dev/sda3  /images/sda3.img




IMPORTANT:
És convenient saber que si per algun motiu el sistema NO pot crear la
imatge de restauració, al directori /tmp es crea un fitxer anomenat:

ph-error

Aquest fitxer l'utilitza el sistema com a semàfor per saber si s'ha produït un error o no.


És important que s'elimini ja que per a restauracions posteriors el
sistema comprova la seva existència i fa que les restauracions
posteriors no es puguin fer.




Nota:

- La imatge generada pot ser aplicada a d'altres Netbooks Toshiba
NB200. Abans d'aplicar aquesta imatge a un altre Netbook, cal tenir en
compte les pautes que es detallen a la wiki del projecte Linkat pel que fa la preparació de les maquetes:


http://linkat.xtec.cat/portal_linkat/wikilinkat/index.php/Preparaci%C3%B3_de_maquetes_Linkat_2/3


- La barra inclinada / donat que el teclat es troba en anglès, es localitza a la tecla -

La barra vertical | es localitza també prement les tecles <SHIFT> ç 



6- Un cop creada la imatge, s'ha d'entrar dins del sistema de restauració i restaurar la nova imatge.


7- Recuperació de la imatge creada i aplicació a d'altres Netbooks Toshiba NB200

Per
aplicar la nova imatge a d'altres Netbooks Toshiba NB200, cal 
reiniciar el sistema en Linkat 3.0. Un cop arrencat el sistema, s'ha
d'obrir una consola (Menú: Aplicacions-> Sistema->Terminal->
Terminal del GNOME)

7.1- S'executa la comanda:

su

per realitzar l'operació com a root

i es munta la partició /dev/sda6 tal i com s'ha especificat anteriorment:

mount /dev/sda6 /media/XXXX -t ex2


7.2-
Un cop muntada la partició, es fa una còpia de la imatge a l'escriptori
de l'usuari (en aquest cas es suposa que s'ha entrat amb l'usuari
alumne, a títol d'exemple):


cp /media/XXX/images/sda3.img  .

Nota: El punt final indica que la imatge es copiarà al directori predeterminat des del qual s'ha obert la consola.


Aquest fitxer img es pot copiar a una unitat externa.

El procediment per restaurar-lo serà el següent:

-S'executa la comanda:



su



per realitzar l'operació com a root



i es munta la partició /dev/sda6 tal i com s'ha especificat anteriorment:



mount /dev/sda6 /media/XXXX -t ex2





7.2- Un cop muntada la partició, es fa una còpia de la imatge que es
troba al pendrive o unitat externa al directori images de la partició
sda6:





cp sda3.img  /media/XXX/images/sda3.img


I es procedeix posteriorment a la restauració de la partició Linkat a través del sistema de restauració.


Nota:

Cal tenir present que:

- Després de fer les operacions de muntatge de la partició sda6, cal desmuntar-les amb la comanda:

umount /media/XXXX

on XXXX és el directori triat per fer les operacions de muntatge










dilluns, 13 de juliol del 2009

Material disponible properament a la wiki de Linkat


Hola,

Us faig saber que el material disponible al bloc es posarà a la wiki del portal Linkat. Val a dir que ara que el curs ja s'ha acabat, disposo de més temps per anar escrivint les "receptes" amb més detall.

Gràcies per tot,



Joan de Gracia

divendres, 10 de juliol del 2009

Com substituir el servidor windows 2000 de primària

Per substituir el servidor windows 2000 per un servidor Linkat 2/3 cal que seguiu aquestes passes:

1- Copiar el contingut de la unitat S a la unitat de programari
2- Copiar el contingut de la unitat P a la unitat de professorat
3- Copiar el contingut de la unitat T a la unitat de treball

la còpia de fitxers es pot fer des de qualsevol màquina tot utilitzant l'entorn de xarxa de windows/samba.

Posteriorment cal modificar lleugerament la modificació del servei samba per la qual cosa editarem el fitxer: /etc/samba/smb.conf i hi afegirem les línies següents:

netbios aliases = argo1

[S]
comment = Programari
path = /srv/exports/S
read only = yes
browseable = no
guest ok = yes
printable = no
[T]
comment = Treball
path = /srv/exports/T
read only = no
force group = nogroup
force user = nobody
writeable = yes
browseable = no
guest ok = yes
printable = no
write ok = true
force create mode = 777
force directory mode = 777
[P]
comment = Professorat
path = /srv/exports/P
read only = no
writeable = yes
browseable = no
guest ok = no
printable = no
write ok = true
force create mode = 775


Un cop feta aquesta modificació, cal definir l'usuari argo dins del servidor de centre a través del YaST i dins de la pestanya "Connectors" s'habilita l'ítem: "Gestiona els paràmetres del compte de Samba"

Finalment, només cal eliminar la contrasenya a l'usuari argo de samba, això s'aconsegueix mitjançant aquesta comanda:

smbpasswd -a -n argo

Manuals sobre programació Bash

Manuals sobre bash:

http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/pdf/Bash-Prog-Intro-HOWTO.pdf

http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/pdf/Bash-Prompt-HOWTO.pdf

http://tldp.org/LDP/abs/abs-guide.pdf

http://tldp.org/LDP/Bash-Beginners-Guide/Bash-Beginners-Guide.pdf


Repositori de scripts fets amb bash: http://www.shell-fu.org/

Comandes GNU/Linux: http://www.taringa.net/posts/linux/2828043/Comandos-Linux.html

Guia de línia de comandes: http://www.pixelbeat.org/cmdline_es_AR.html

dijous, 9 de juliol del 2009

LTSP 5 en Linkat 3


La URL original del projecte es troba a:

http://en.opensuse.org/Ltsp


La instal·lació de la versió 5 de LTSP es realitza, des de Linkat 3, instal·lant el paquet:

kiwi-ltsp-prebuilt

No és necessari afegir cap repositori ja que Linkat 3 porta tots els paquets necessaris per fer la instal·lació de la nova versió.

Per configurar la versió 5 de LTSP podeu seguir l'enllaç següent:

http://en.opensuse.org/LTSP/Configuration


Accessing a remote Linux desktop through X

Nota: Per a Windows, podeu descarregar-vos el programa xmins (http://www.iteisa.com/xmins/) que permetrà la connexió entre la màquina windows i Linkat.


Article original:

This document (7002963) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Desktop or Server (SLED or SLES)
openSUSE

Situation

The X server can be used to display a complete desktop session from a remote system that is also running X. It is not a secure connection so should only be used on an internal, secure network. In some corporate environments Windows has been used to connect to the Linux or Unix systems in this way by installing an additional product that provides the X server software.

Resolution

These instructions are for the products mentioned above. If you have a host system running a different Linux distribution or Unix operating system that has been configured to allow the xdmcp connection then you should still be able to connect with the "X -query" command shown below.

Instructions For Configuring SUSE Linux Enterprise Desktop or Server 10 as the Host

For the GNOME Desktop on SLED 10, SLES 10, or openSUSE 10.x

Open a terminal window and enter the "su" command to become the root user (if you are not already root) and run the command:

/opt/gnome/sbin/gdmsetup

Under the “Security” tab enable XDMCP. The setting is immediate so once selected just click on close to exit the utility.

For the GNOME Desktop on SLED 11, SLES 11, or openSUSE 11.1

As the root user, edit the file "/etc/gdm/gdm.schema" and location the following lines:


xdmcp/Enable
b
false


Change the "false" to "true" and save the file.

As the root user again, edit the file "/etc/gdm/custom.conf" and look for the following lines:

[xdmcp]
# SuSEconfig: displaymanager:DISPLAYMANAGER_REMOTE_ACCESS
Enable=true

Verify that "Enable=true". If it is false, make the change and save the file.

For the KDE Desktop

As the root user edit the file "/etc/opt/kde3/share/config/kdm/kdmrc" and search for the following lines:

[Xdmcp]
# Whether KDM should listen to incoming XDMCP requests.
# Default is true
Enable=true

The line "Enable=true" must be set to true for the connection to work.

For both GNOME and KDE Desktops

Open YaST and select Firewall from the Users and Security group. Verify that the firewall is disabled or click on Allow Services on the left and then click on Advanced near the bottom right. In the Advanced settings enter 177 for both the TCP Ports and UDP Ports.


***Note - After completing the configuration of the host, if any changes were made to the gdm or kde configuration files or any changes made in gdmsetup you must restart the X server or reboot your system to have the changes take effect.


On the Client System
(SLED, SLES, or openSUSE)

As the normal use logged into the graphic desktop you can create a launcher (icon) or open a terminal window and run the following command:

X -query :1
(Be sure to place a space between the host-ip and the :1)

This will start another instance of X on a different Virtual Terminal (VT). It will be the next VT after the one that the first instance of the X server is on which is VT7 (or TTY7). So the session you just started with the remote server will be on 8. To access both desktops you can use the key combination Ctrl-Alt-F7 for the original desktop running on this system and Ctrl-Alt-F8 for the new one coming from the remote system.

Additional connections could be created to other systems by changing the display indicated at the end of the command line. Instead of ":1" use ":2" which would startup the session on VT9 or Ctrl-Alt-F9. The same could be done for ":3" which would be VT10 or Ctrl-Alt-F10.