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

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

agosto 24, 2012

Yum - Comandos utiles


yum install
yum remove
yum update

yum search
yum info
yum list
yum list installed
yum provides

yum grouplist
yum groupinstall
yum groupupgrade
yum groupremove

yum repolist
yum repolist all
yum --enablerepo=fedora-source install

yum shell

Using Yum from the Command Line

The following table shows some examples of common tasks that you can perform using yum.

Command Description
yum repolist Lists all enabled repositories.
yum list Lists all packages that are available in all enabled repositories and all packages that are installed on your system.
yum list installed Lists all packages that are installed on your system.
yum list available Lists all packages that are available to be installed in all enabled repositories.
yum search string Searches the package descriptions for the specified string.
yum provides feature Finds the name of the package to which the specified file or feature belongs. For example:
yum provides /etc/sysconfig/atd
yum info package Displays detailed information about a package. For example:
yum info bind
yum install package Installs the specified package, including packages on which it depends. For example:
yum install ocfs2-tools
yum check-update Checks whether updates exist for packages that are already installed on your system.
yum update package Updates the specified package, including packages on which it depends. For example:
yum upgrade nfs-utils
yum update Updates all packages, including packages on which they depend.
yum remove package Removes the specified package. For example:
yum erase nfs-utils
yum erase package Removes the specified package. This command has the same effect as the yum remove command.
yum update Updates all packages, including packages on which they depend.
yum clean all Removes all cached package downloads and cached headers that contain information about remote packages. Running this command can help to clear problems that can result from unfinished transactions or out-of-date headers.
yum help Displays help about yum usage.
yum help command Displays help about the specified yum command. For example:
yum help upgrade
yum shell Runs the yum interactive shell.

See the yum(8) manual page for more information.

To list the files in a package, use the repoquery utility, which is included in the yum-utils package.

For example, the following command lists the files that the btrfs-progs package provides.

# repoquery -l btrfs-progs
/sbin/btrfs
/sbin/btrfs-convert
/sbin/btrfs-debug-tree


Note
yum makes no distinction between installing and upgrading a kernel package. yum always installs a new kernel regardless of whether you specify update or install.       

Ver más información en http://www.thegeekstuff.com/2011/08/yum-command-examples/

Más información en https://docs.oracle.com/cd/E37670_01/E37355/html/ol_creating_yum_repo.html



junio 10, 2011

Fedora - Primeros pasos

Tras la instalación de Fedora hay algunos pasos que hay que seguir como la instalación de repositorios y demás cosas que se necesitan, saber al menos.

Planeta Fedora WordPress
http://planetafedora.wordpress.com/
es un sitio muy bueno que ayuda a instalar esas rutinas que no tenemos siempre en mente y al repasar este sitio vemos que son muy útiles.

Configuración de Fedora 14
http://planetafedora.wordpress.com/guia-de-configuracion-de-fedora-14/

¿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...