Mostrando entradas con la etiqueta Fedora 13. Mostrar todas las entradas
Mostrando entradas con la etiqueta Fedora 13. Mostrar todas las entradas

agosto 01, 2019

No puedes actualizar porque WordPress 5.2.2 necesita una versión de PHP 5.6.20 o superior.

No puedes actualizar porque WordPress 5.2.2 necesita una versión de PHP 5.6.20 o superior.


Problema

No puedes actualizar porque WordPress 5.2.2 necesita una versión de PHP 5.6.20 o superior.

Diagnóstico

Un ejemplo para profundizar el problema es el siguiente.

Con el comando de php podrás ver que versión de php estás ejecutando
#php --version
*** PHP 5.3.6 ***

Estás ejecutando la versión 5.3.6.

Para resolver esto es necesario profundizar en el problema.

Ejecutando el comando uname
# uname -a

Te regresa el sistema operativo en Linux Fedora que estás ejecutando.
# ****** fc13.x86_64 *******

Con esto puedes ver que opciones nativas tiene el sistema operativo fc13.x86_64 para php

En la dirección remirepo.net podrás ver los paquetes de php disponibles para tu distribución en éste caso de fedora 13
https://rpms.remirepo.net/rpmphp/zoom.php?rpm=php

Para éste caso, según remirepo.net puede actualizarse php a .3.6-1.fc13 y la instalación base es base 5.3.1-3.fc13

Solución

Entonces si ves que requieres la versión de php 5.6.20 verás que para fedora la tienes disponible hasta fedora 22 mediante updates 5.6.23-1.fc22 ya que la instalación base es 5.6.8-1.fc22

Retroalimentación

Espero que ésto sea útil, comenta si tienes alguna observación sobre esto, para profundizar sobre el tema.

Off topic

Si te sobra el tiempo visita
www.richardsite.com
www.allabord.com

Estas páginas tienen la intención de ser un catálogo de sitios de Internet clasificados por sección.

Si tienes algún sitio que te agrade lo puedo incluir. O tú mismo puedes agregar información como tu dirección en Internet de tu Home Page, Twitter, Facebook, Instagram, etc.

junio 11, 2019

Para descargar re2c en fedora 13 y fedora 14 para resolver el error File does not exist wp-json Publishing failed

Error: File does not exist wp-json Publishing failed

Para descargar re2c en fedora 13 y fedora 14 para resolver el error File does not exist wp-json Publishing failed

Error: File does not exist wp-json Publishing failed

re2c is a free and open-source lexer generator for C and C++. Its main goal is generating fast lexers: at least as fast as their reasonably optimized hand-coded counterparts. Instead of using traditional table-driven approach, re2c encodes the generated finite state automata directly in the form of conditional jumps and comparisons. The resulting programs are faster and often smaller than their table-driven analogues, and they are much easier to debug and understand. re2c applies quite a few optimizations in order to speed up and compress the generated code. Another distinctive feature is its flexible interface: instead of assuming a fixed program template, re2c lets the programmer write most of the interface code and adapt the generated lexer to any particular environment.

Para descargar

https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/14/Everything/x86_64/os/Packages/re2c-0.13.5-1.fc14.x86_64.rpm


https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/13/Everything/x86_64/os/Packages/re2c-0.13.5-1.fc13.x86_64.rpm


Fuente: http://re2c.org/

marzo 01, 2019

YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora

YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora

en fedora.repo poner:

[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
 
[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/debug/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
 
[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/source/SRPMS/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch



en fedora.repo.updates poner

[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/$releasever/$basearch/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
 
[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/$releasever/$basearch/debug/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
 
[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/$releasever/SRPMS/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch




Archivos repo y updates están en:
https://www.dropbox.com/sh/cjdelkap2q1gtyw/AACV-Uifm6yiusE2bTgyxEh5a?dl=0



agosto 23, 2018

¿Cómo quitar disco duro de forma segura en Linux?

En una terminal.

Invoca un "df -h" para ver cuáles son los puntos de montaje de tu sistema. Te saldrá algo así:


/dev/sdb1 917G 662G 209G 77% /Respaldo
/dev/sda5 379G 92G 268G 26% /home
/dev/sda1 477M 66M 386M 15% /boot
/dev/sda6 379G 15G 345G 4% /var


Fíjate en la primera columna, tu disco duro tendría que aparecer como "/dev/sdb1" o algo así (fíjate en la capacidad de la segunda columna).

$sudo umount /dev/sdb1

donde /dev/sdb1 es tu dispositivo USB y arreglado.

o

$su -c "umount /dev/sdb1"

Fuente: https://www.genbeta.com/respuestas/como-quitar-disco-duro-de-forma-segura-en-linux

agosto 14, 2018

Listar tablas y bases de datos en Postgresql


Este artículo explica brevemente cómo listar bases de datos (lo que equivale a ejecutar show databases en MySQL) y tablas (show tables en MySQL) en Postgres, ejecutando consultas desde línea de comandos con la herramienta psql. La primera limitación que se encuentra un usuario de MySQL al interactuar por primera vez con un gestor de bases de datos Postgres.



A pesar de que existen herramientas gráficas, como pgAdmin, es necesario conocer cómo se realizan las tareas desde línea de comandos para estar preparado para cuando las papas queman.
La herramienta psql provee una terminal interactiva contra servidores de bases de datos PostgreSQL. Es posible utilizarla de forma local (ejecutar psql directamente en la consola del servidor de bases de datos), o contra un servidor remoto especificando el host y puerto mediante los parámetros -h y -p:
root@dbserver42:~# psql -U postgres
psql (9.3.3)
Type "help" for help.

postgres=#
Para listar las bases de datos de un servidor Postgres (luego de conectarse al mismo) ejecutar el comando \l:
postgres=# \l
                                     List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |      Access privileges
-----------+----------+----------+-------------+-------------+-----------------------------
 prueba    | postgres | UTF8     | es_AR.UTF-8 | es_AR.UTF-8 | postgres=CTc/postgres      +
           |          |          |             |             | rol_prueba=Tc/postgres     +
           |          |          |             |             | rol_readonly=Tc/postgres
 postgres  | postgres | UTF8     | es_AR.UTF-8 | es_AR.UTF-8 |
 template0 | postgres | UTF8     | es_AR.UTF-8 | es_AR.UTF-8 | =c/postgres                +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | es_AR.UTF-8 | es_AR.UTF-8 | postgres=CTc/postgres      +
           |          |          |             |             | =c/postgres
(4 rows)

postgres=#
Luego, para cerrar la terminal psql, ejecutar el comando \q:
postgres=# \q
root@dbserver42:~#
También es posible listar las bases de datos ejecutando directamente el comando psql -l en la terminal bash:
root@dbserver42:~# psql -U postgres -l
                                     List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |      Access privileges
-----------+----------+----------+-------------+-------------+-----------------------------
 prueba    | postgres | UTF8     | es_AR.UTF-8 | es_AR.UTF-8 | postgres=CTc/postgres      +
           |          |          |             |             | rol_prueba=Tc/postgres     +
           |          |          |             |             | rol_readonly=Tc/postgres
 postgres  | postgres | UTF8     | es_AR.UTF-8 | es_AR.UTF-8 |
 template0 | postgres | UTF8     | es_AR.UTF-8 | es_AR.UTF-8 | =c/postgres                +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | es_AR.UTF-8 | es_AR.UTF-8 | postgres=CTc/postgres      +
           |          |          |             |             | =c/postgres
(4 rows)

En el listado se observan 4 bases de datos, de las cuales 3 son bases de datos de sistema (no se deben eliminar). Cada vez que se crea una base de datos con el comando CREATE DATABASE, en realidad se está copiando una base de datos existente (por defecto el modelo estándar de bases de datos "template1"). Entonces, la base de datos "template1" es una plantilla desde la cual se construyen nuevas bases de datos. Si se agregan objetos a esta base de datos, serán copiados en bases de datos subsecuentes cada vez que se utilice el comando CREATE DATABASE. El segundo modelo estándar de bases de datos "template0" contiene los mismos datos que posee inicialmente "template1", es decir los objetos estándar predefinidos por la versión de PostgreSQL. Nunca deben realizarse modificaciones sobre "template0". La tercera base de datos de sistema, "postgres", funciona como base de datos por defecto para gestionar conexiones al servidor de bases de datos por parte de usuarios y aplicaciones. Se crea cuando se inicia un cluster de bases de datos y es una simple copia de "template1". Puede eliminarse (drop) y recrearse si es necesario. Para mayor información ver la documentación oficial de PostgreSQL: 21.3. Template Databases.



Para listar tablas de una base de datos Postgres existe el comando \dt. Conectarse a la base de datos especificando su nombre con el parámetro -d, y luego ejecutar el comando \dt. Por ejemplo el listado de tablas de una base de datos de un sistema Moodle:
root@dbserver42:~# psql -U postgres -d moodle
psql (9.3.3)                                                           
Type "help" for help.                                                  

moodle=# \dt
                      List of relations
 Schema |               Name               | Type  |  Owner
--------+----------------------------------+-------+----------
 public | mdl_assign                       | table | postgres
 public | mdl_assign_grades                | table | postgres
 public | mdl_assign_plugin_config         | table | postgres
 public | mdl_assign_submission            | table | postgres
 public | mdl_assign_user_flags            | table | postgres
 public | mdl_assign_user_mapping          | table | postgres
 public | mdl_assignfeedback_comments      | table | postgres
 public | mdl_assignfeedback_file          | table | postgres
 public | mdl_assignment                   | table | postgres
 public | mdl_assignment_submissions       | table | postgres
 public | mdl_assignsubmission_file        | table | postgres
 public | mdl_assignsubmission_onlinetext  | table | postgres
 public | mdl_backup_controllers           | table | postgres
 public | mdl_backup_courses               | table | postgres
 public | mdl_backup_files_template        | table | postgres
 public | mdl_backup_ids_template          | table | postgres
 public | mdl_backup_logs                  | table | postgres
 public | mdl_badge                        | table | postgres
 public | mdl_badge_backpack               | table | postgres
 public | mdl_badge_criteria               | table | postgres
 public | mdl_badge_criteria_met           | table | postgres
--Más--
Manual de PostgreSQL 9.3: PostgreSQL 9.3.4 Documentation

Fuente: https://www.linuxito.com/programacion/337-como-listar-tablas-y-bases-de-datos-en-postgres

Montar partición formateada en sistema de archivos ext4 en Linux

Mounting an ext4 File System

An ext4 file system can be mounted with no extra options, same as any other file system:
~]# mount block_device /mount/point
The default mount options are optimal for most users. Options, such as acl, noacl, data, quota, noquota, user_xattr, nouser_xattr, and many others that were already used with the ext2 and ext3 file systems, are backward compatible and have the same usage and functionality. Also, with the ext4 file system, several new ext4-specific mount options have been added, for example:
barrier / nobarrier
By default, ext4 uses write barriers to ensure file system integrity even when power is lost to a device with write caches enabled. For devices without write caches, or with battery-backed write caches, you disable barriers using the nobarrier option:
~]# mount -o nobarrier block_device /mount/point
stripe=value
This option allows you to specify the number of file system blocks allocated for a single file operation. For RAID5 this number should be equal the RAID chunk size multiplied by the number of disks.
journal_ioprio=value
This option allows you to set priority of I/O operations submitted during a commit operation. The option can have a value from 7 to 0 (0 is the highest priority), and is set to 3 by default, which is slightly higher priority than the default I/O priority.
Default mount options can be also set in the file system superblock using the tune4fs utility. For example, the following command sets the file system on the /dev/mapper/VolGroup00-LogVol02 device to be mounted by default with debugging disabled and user-specified extended attributes and Posix access control lists enabled:
~]# tune4fs -o ^debug,user_xattr,acl /dev/mapper/VolGroup00-LogVol02
For more information on this topic, refer to the tune4fs(8) manual page.
An ext3 file system can also be mounted as ext4 without changing the format, allowing it to be mounted as ext3 again in the future. To do so, run the following command on a block device that contains an ext3 file system:
~]# mount -t ext4 block_device /mount/point
Doing so will only allow the ext3 file system to use ext4-specific features that do not require a file format conversion. These features include delayed allocation and multi-block allocation, and exclude features such as extent mapping.
Warning
Using the ext4 driver to mount an ext3 file system has not been fully tested on Red Hat Enterprise Linux 5. Therefore, this action is not supported because Red Hat cannot guarantee consistent performance and predictable behavior for ext3 file systems in this way.
For more information on mount options for the ext4 file system, see Section 2.2.2, “Specifying the Mount Options” and the mount(8) manual page.
Note
If you want to enable persistent mounting of the file system, remember to update the /etc/fstab file accordingly. For example:
/dev/mapper/VolGroup00-LogVol02    /test    ext4    defaults    0 0

Fuente: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/deployment_guide/s1-filesystem-ext4-mount

Ubicación de los repositorios rpm de Linux Fedora fc13

Ubicación de los repositorios rpm de Linux Fedora fc13

/etc/yum.repos.d/

octubre 06, 2016

Cambiar la hora time date en fedora según la timezone

Instalar y configurar NTP en Linux CentOS para sincronizar el reloj del sistema



How do I install and configure NTP under CentOS Linux version 5.x or 6.x server to synchronize the system clock?

You can easily install NTP (Network Time Protocol, a means of transmitting time signals over a computer network) using the yum command under Red Hat or CentOS/Fedora Linux server or workstation based systems. You need to install the following packages:

  1. ntp : ntpd server which continuously adjusts system time and utilities used to query and configure the ntpd daemon.
  2. ntpdate : Utility to set the date and time via NTP.
  3. ntp-doc : NTP documentation

Procedure: Setup NTPD on CentOS Linux

Open the terminal or login over the ssh session. You must login as as the root user. Type the following yum command to install ntp
# yum install ntp ntpdate ntp-doc

Turn on service, enter:
# chkconfig ntpd on

Synchronize the system clock with 0.pool.ntp.org server (use this command only once or as required):
# ntpdate pool.ntp.org

Start the NTP server. The following will continuously adjusts system time from upstream NTP server. No need to run ntpdate:
# /etc/init.d/ntpd start

o

# service ntpd start

Configure ntpd (optional)

Edit /etc/ntp.conf, enter:
# vi /etc/ntp.conf

Set public servers from the pool.ntp.org project:
server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org

See this tutorial on how to configure NTPD for LAN based client on RHEL / CentOS Linux for more information.

Fuente: http://www.cyberciti.biz/faq/howto-install-ntp-to-synchronize-server-clock/

agosto 24, 2016

Configurar SPF con SpamAssassin en Fedora 13

Configurar SPF con SpamAssassin en Fedora 13.

En el directiorio: /etc/mail/spamassassin

En el archivo init.pre ingresar:
loadplugin Mail::SpamAssassin::Plugin::SPF

Instalar lo siguiente:
yum install perl-Mail-SPF perl-Mail-SPF-Query

Si no se instala buscar la repo donde se encuentra el rpm una dirección es:
# rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.fc13.noarch.rpm

¿Cómo poner el conteo de las filas en una consulta en MySql?

 ¿Cómo poner el conteo de las filas en una consulta en MySql? SELECT  @rownum := @rownum + 1 AS contador,  /*Contador*/ t.*  /* nombre d...