jueves, mayo 15, 2014
creando una Distro en GNU / linux
daños en la activación de windows xp
En ella escribiremos “explorer.exe” y automáticamente recuperaremos acceso a interfaz gráfica de usuario y a los archivos que necesitemos.
En este punto podemos “reiniciar” el periodo de prueba de 30 días del Windows XP. Para ello ejecutaremos el comando:
rundll32.exe syssetup,SetupOobeBnk
OJO!!!! Respetando las mayúsculas.
cambiar teclado en linux
loadkeys us para ingles
loadkeys es para español ...
Configurar ejecucion de servicios en linux centos 6.4
Para activar los servicios durante el arranque de Linux CentOS debo configurar los
niveles de ejecución los cuales son 7 iniciando en 0.
# Default runlevel. The runlevels used by RHS are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) #
Para este caso iniciar con 2 es similiar a iniciar con 3 por lo tanto prefiero
runlevel utilizar 3 y 4 esto permitira que apache inicie durante el arranque al igual
mysql.
chkconfig --level 34 httpd on
chkconfig --level 34 mysqld on
sábado, marzo 09, 2013
redmine-bitnami boot startup
http://bitnami.org/
The aim of BitNami is to simplify the deployment of web applications, such as wikis or blogs, in order to make them more accessible.
http://www.redmine.org/projects/redmine
Redmine is a flexible project management web application written using Ruby on Rails framework.
el caso es que cuando el servidor se reinicia no ejecuta bitnami-redmine de forma automatica
la soulucion
copiar el script de arranque a la ruta /etc/init.d/
algo como esto:
$cp ctlscript.sh /etc/init.d/redmine
luego para el caso de debian, ubutu ... debemos editar nuestro script antes de agregar nuestro nuevo servico a la lista de arranque.
editamos con nano o vi
$nano /etc/init.d/remine
agregamos al inicio del archivo justo depues de #! /bin/sh
### BEGIN INIT INFO
# Provides: redmine
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
guardamos y salimos
ahora agregamos permisos de ejecucion al script de carga
$chmod +x /etc/init.d/redmine
por ultimo agregamos para que se ejecute como un demonio del sistema
$update-rc.d redmine defaults
viernes, agosto 24, 2012
Montar LVM GNU/Linux y Reparar
- sudo su
- instalamos lvm2
- aptitude install lvm2 ó yum install lvm2
- fdisk -l (para verificar que existen lvm)
- pvscan (escaneo particiones lvm)
- vgscan (detectar grupos LVM)
- vgchange -a y (activa los LVM logicos para poder escanearlos)
- lvscan (para poder ver los volumenes logicos disponibles)
- crear una carpera en la cual montar el volumen logico.
- /mnt/volumen1 o /media/volumen1 según el sistema.
- Type root's password
- Edit the /etc/fstab file
- Comment out the line with /dev/sales/repor
- Reboot
- cat /proc/partition
- pvscan
- Fortunately, the meta data and file system on the disk that was /dev/sdc are intact.
- So the recovery is to just put the disk back.
- Reboot the server.
- The /etc/init.d/boot.lvm start script will scan and activate the volume group at boot time.
- Don't forget to uncomment the /dev/sales/reports device in the /etc/fstab file.
- Since the disk was never removed, leave it as is.
- There were no device UUID errors, so don't attempt to restore the UUIDs.
- This is a good candidate to just try restoring the LVM meta data.
- Run a file system check on /dev/sales/reports. whit e2fsck /dev/sales/reports
vgcfgrestore sales Couldn't find device with uuid '56ogEk-OzLS-cKBc-z9vJ-kP65-DUBI-hwZPSu'. Couldn't find all physical volumes for volume group sales. Restore failed.
- Comparing the output of cat /proc/partitions and pvscan shows the missing device is /dev/sdc, andpvscan shows which UUID it needs for that device. So, copy and paste the UUID that pvscan shows for /dev/sdc.
- Restore the LVM meta data
- Run a file system check on /dev/sales/reports.
ls-lvm:~ # pvcreate --uuid 56ogEk-OzLS-cKBc-z9vJ-kP65-DUBI-hwZPSu /dev/sdc Physical volume "/dev/sdc" successfully created
ls-lvm:~ # vgcfgrestore sales Restored volume group sales ls-lvm:~ # vgscan Reading all physical volumes. This may take a while... Found volume group "sales" using metadata type lvm2 ls-lvm:~ # vgchange -ay sales 1 logical volume(s) in volume group "sales" now active
ls-lvm:~ # e2fsck /dev/sales/reports
e2fsck 1.38 (30-Jun-2005)
/dev/sales/reports: clean, 961/131072 files, 257431/262144 blocks
ls-lvm:~ # mount /dev/sales/reports /sales/reports/
ls-lvm:~ # df -h /sales/reports
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/sales-reports
1008M 990M 0 100% /sales/reports
martes, febrero 14, 2012
REINICIAR IMPRESORAS
c:
cd C:\WINDOWS\system32\spool\PRINTERS
del *.spl
del *.shd
net start spooler
lunes, enero 23, 2012
XDMCP
[xdmcp]
Enable=1
Open /etc/gdm/custom.conf and set the DisallowTCP entry to false in the [security] section as following.
[security]
DisallowTCP=false
I'm assuming you are using gnome. Restart computer and see what you get, though I think you should be good to go.
system -> Administration -> Loginscreen
But here in Fedora 11 (Leonidas)
How to install the XDMCP service in this please help
http://www.yolinux.com/TUTORIALS/GDM_XDMCP.html
http://tldp.org/HOWTO/XDMCP-HOWTO/ssh.html
http://www.idevelopment.info/data/Unix/Linux/LINUX_ConfiguringXDMCPRedHatLinux.shtml
martes, diciembre 27, 2011
chrome desde root
- Instalar google-chrome normalmente
- Ejecutar google-chrome desde la cuenta de un usuario
- Luego crear un acceso directo en el escritorio
- Colocar en el acceso directo la ruta de un usuario
- google-chrome --user-data-dir="..../home/usuario/.cache/google-chrome/Default/"
lunes, diciembre 19, 2011
redimencional disco maquina virtual
1. Cree uno nuevo de 4Gb, con VirtualBox
2. vincular a la maquina virtual para que al arrancar la maquina virtual, tenga dos discos.
3. Arrancamos la maquina virtual con un Live de Linux "Ubuntu"(F12)
4. Desde la consola clonamos un disco sobre otro " dd if=/dev/sda of=/dev/sdb "
5. Redimensionar la partición hasta el tamaño maximo del disco duro. Gparted es ideal.
6. Configuramos de nuevo desde el VirtualBox que arranque desde este segundo disco como master
7. Eliminamos el primer disco duro.
jueves, diciembre 15, 2011
redimencionar SWAP LVM en linux
Se requiere espacio libre adicional disponible para expandir el sistema, también es posible particionar otro volumen o agregar otro disco fisico a tu grupo de volumenes.
1. # grep swap /etc/fstab
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
2. Run the lvdisplay to see the size of your logical volume.
# lvdisplay /dev/VolGroup00/LogVol01
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID AZ143-B8kp-z9KV-JYtG-N997-JOQ6-ETaJaJ
LV Write Access read/write
LV Status available
# open 1
LV Size 4096.00 MB
Current LE 24
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1
3. To resize an LVM you need to unmount it, or in this case turn swap off.
# swapoff /dev/VolGroup00/LogVol01
4. To resizing the volume to add 1 GB (assuming you have the space to extend into) use the lvresize command.
# lvresize /dev/VolGroup00/LogVol01 -L +1G
Extending logical volume LogVol01 to 5 GB
Logical volume LogVol01 successfully resized
5. Next turn swap back on.
# swapon /dev/VolGroup00/LogVol01
# free -m
total used free shared buffers cached
Mem: 16384 13343 3042 0 48 120
-/+ buffers/cache: 174 201
Swap: 5120 0 5120
6. If you encounter an issue trying to mount swap, repeat step 3.
# swapoff /dev/VolGroup00/LogVol01
After that, run
# mkswap /dev/VolGroup00/LogVol01
7. After mkswap completes, repeat step 5.
# swapon /dev/VolGroup00/LogVol01
8. Validate the swap space again by running free -m.
viernes, octubre 21, 2011
Error windows installer
1. Checa si otra instalación está en ejecución
Oprime Ctrl + Alt + Del
Selecciona la ficha "Procesos"
Verifica si alguno(s) de los procesos siguientes están ejecutandose
* setup.exe
* isetup.exe
* ikernel.exe
* msiexec.exe
* idriver.exe
* IsUninst.exe
* IsUn16.exe
* Uninst.exe
* Uninst16.exe
En caso afirmativo seleccionalo(s) y dale clic a "Terminar proceso"
2. Instala Windows Installer, si no la tienes, descarga la versión reciente e instala la aplicación.
3. Registrar manualmente el ejecutable Windows Installer:
Abre el explorador de Windows
Selecciona la carpeta C:\Windows\System32
Localiza y anota la ruta (path) del archivo msiexec.exe
Ahora clic en Inicio->Ejecutar y escribe
"
donde
Presiona Enter y listo