background preloader

Linux

Facebook Twitter

RPM. Translations: English - Русский The RPM was developed at RedHat for keeping track of the files each program or package installed as well as noting what other packages it depended on or depended on it, some information about the source of the package and a brief synopsis. One should avoid using .rpm package on a Debian system. There are some good (and more not so good) write-ups comparing the two package management systems. A search for rpm vs deb or rpm vs dpkg will turn them up. todo add some url's for some good ones Why would anyone want to use the RPM within Debian? Binary package If the package only comes in binary .rpm format, you can use alien to convert it.

Source Package In order to extract sources from an rpm archive, it may be necessary to use the rpm tool. Rpm to dpkg/apt command reference This guide may help people switching to a dpkg based distribution like Debian from an RPM based one like RedHat. A quick comparison of rpm and apt/dpkg command-line arguments rpm -qa dpkg --list. RPM commands. RPM package is a powerful utility to manage the software in all major Linux distributions. RPMs can be used to, Install packagesRemove packagesUpgrade packagesVerify packages Here are some useful command to manage RPM packages, 1.

Getting detailed information about the package httpd rpm -qi httpd 2. Rpm -qf /etc/httpd/conf.d/httpd-portal.conf 3. Rpm -ql httpd 4. Rpm -qd httpd 5. Rpm -qpl /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm 6. Rpm -qa | grep httpd 7. Rpm -V httpd 8. Rpm -K /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm 9. Rpm -ivh /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm 10. Rpm -Uvh /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm 11. Rpm -Fvh /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm 12.

Rpm -e wget 13. Rpm -qc httpd 14. Rpm -qa –last 15. Rpm -qR httpd 16. Rpm -qpR /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm 17. Rpm -qcf /usr/sbin/httpd. Permisos de archivos, sus dueños y grupos. Para entender mejor el concepto de permisos se tendrá que tener en cuenta que cada usuario puede pertenecer a uno o más grupos. Cada usuario pertenece por lo menos a un grupo, que es establecido en el momento en que el usuario se crea.

El administrador del sistema puede agregar al usuario a otros grupos. Estos grupos son necesarios para poder establecer una política de acceso más organizada dado que en cualquier momento se podría dar a un archivo el acceso a personas de un grupo determinado. Lo único que se tendría que hacer es agregar a los usuarios que se quieran dar permisos a ese grupo. Para cada objeto (archivo) que se encuentre en el sistema, GNU/Linux guarda información administrativa en la tabla de inodos, tema que abarcaremos en mayor detalle más adelante. El dueño de archivoEl grupo del archivoLos bits de modo o también llamados permisos de archivo En este tramo nos centraremos en primer medida en entender los permisos y en establecer la forma en que pueden trabajar con ellos.

Linux - How to give file permission to a specific user in a Group. Linux/Unix: List All Users In A Group Command. To see user's groups or group's users use any one of the following command: grep '^groupNameHere' /etc/group lid -g groupNameHere members groupNameHere awk -F':' '/^groupNameHere/{print $4}' /etc/group getent group | grep -i 'groupNameHere' In this example find all users in a group called cartoon. grep command example grep '^cartoon' /etc/group Sample outputs: cartoon:x:1009:tom,jerry,spike,tyke,butch,nibbles,quacker lid command example lid -g cartoon Sample outputs: tom(uid=1007) jerry(uid=1008) spike(uid=1009) tyke(uid=1010) butch(uid=1011) nibbles(uid=1012) quacker(uid=1013) members command example members cartoon Sample outputs: tom jerry spike tyke butch nibbles quacker awk command example awk -F':' '/^cartoon/{print $4}' /etc/group Sample outputs: tom,jerry,spike,tyke,butch,nibbles,quacker getent command example This example with NIS and other database too: getent group | grep -i '^cartoon' Sample outputs: See also.

FreeBSD is here! Running FreeBSD on Raspberry Pi. There are several different Linux based distributions available for the Raspberry Pi, including Raspbian, Arch Linux and Fedora. However Linux isn’t the only operating system that can run on the board. Among others, including RISC OS, is the popular Unix-like operating system FreeBSD. FreeBSD has a deep heritage and is in fact derived from the Berkeley Software Distribution (BSD, sometimes called Berkeley Unix) a version of Unix produced by the University of California, Berkeley. For copyright reasons, FreeBSD isn’t allowed to call itself Unix, however; it is actually more Unix-like than Linux. For those who are interested in running FreeBSD on Raspberry Pi, here are the installation instructions.

FreeBSD has supported Raspberry Pi since November 2012, and the current production version (FreeBSD 10) is available as a pre-built image which can be copied onto a memory card. Download the latest image file from the official FreeBSD ARM page. Unzip the Win32 Disk Imager .zip file. Arm/Raspberry Pi - FreeBSD Wiki. FreeBSD/ARM on Raspberry Pi FreeBSD-CURRENT has supported Raspberry Pi since November, 2012 and Raspberry Pi 2 since March, 2015.

If you have questions, ask on the freebsd-arm mailing list. What is Raspberry Pi? The Raspberry Pi launched in early 2012 as an inexpensive ($35) PC based on a Broadcom BCM2835 SoC. There are several versions of the Raspberry Pi: The "Model B" includes Ethernet, 2 USB ports and originally included 256MB RAM. What works How to Boot the Raspberry Pi As of January 2013, FreeBSD-CURRENT fully supports either a video console (you'll need a USB keyboard and display connected) or it can be configured to use a serial console (you'll need a USB to TTL Serial Cable such as the one sold by Adafruit.com). After connecting video, keyboard, and inserting the SDHC card, you connect power to actually boot. Anatomy of a Raspberry Pi Boot Image A FreeBSD bootable image for Raspberry Pi has both FAT and UFS partitions containing the following files: How to Build an Image Binary snapshots.

Linux / FreeBSD: PDFCrack A Command Line Password Recovery Tool For PDF Files. I already written about howto remove a password from all PDF files under Ubuntu or any other Linux distribution in a batch mode. However, many user want a simple command to recover password from pdf files. This is useful if you forgotten your password for pdf file. It is also useful for data-archaeologists, computer forensics professionals, people who want to test their password-strength (pdf files generated by webpass) and many more. Is pdfcrack illegal to use? It depends on where you live, but probably not as long as you only use it for documents that you have owners permission to use it on. Install pdfcrack You need to use pdfcrack which is tool for PDF files password cracker under Linux operating systems. Reading package lists... FreeBSD: Install pdfcrack To install pdfcrack use the port as follows: # cd /usr/ports/security/pdfcrack/ # make install clean Or use the package manager as follows: # pkg_add -r pdfcrack How do I use pdfcrack to remove password?

Its basic syntax is: Conclusion.