CentOS 5 :: Command To Check Md5 Checksum For A File?
Nov 12, 2009Can anybody tell what command can be used to check the checksum for a file or to match the checksum with the one provided by the download provider.
View 1 RepliesCan anybody tell what command can be used to check the checksum for a file or to match the checksum with the one provided by the download provider.
View 1 RepliesI have several CentOS 5.5 machines running on my network; yum works just fine for them. I used the 5.5 cds to install them. I decided to grab the DVD of 5.6 and build a new machine. Can't run yum.
http://mirrors.finalasp.com/CentOS/5.6/updates/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
[code]....
I have Ubuntu 10.04 and I used my ssh to connect to a webserver. This is the version that I have installed.
Quote:
OpenSSH_5.3p1 Debian-3ubuntu4, OpenSSL 0.9.8k 25 Mar 2009
Apparently the server was hacked using my user and the server admin suggested the my ssh can be tainted.
do a checksum of the ssh, but I cannot find this file on my system.
Code:
md5sum /usr/sbin/sshd
And I will need a md5 hash from a good untainted version and I cannot find that as well on the openssh website.
After adding rpmforge on a fresh installation of CentOS 5.4 64bit, I received the error "Metadata file does not match checksum" so decided to try the fix yum -y remove yum-fastestmirror, As discussed at [URL]... Unfortunately, this also deinstalled yum. If I try to reinstall from my CentOS 5.4 DVD, I get:
# rpm -i --aid yum-3.2.22-20.el5.centos.noarch.rpm
error: Failed dependencies:
yum-fastestmirror is needed by yum-3.2.22-20.el5.centos.noarch
But if I try to install the yum-fastestmirror I get
# rpm -i --aid yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
error: Failed dependencies:
yum >= 3.0 is needed by yum-fastestmirror-1.1.16-13.el5.centos.noarch
Which is a bit circular.
I want to be able to check the contents of a text file for a specific string and remove it from the file from the command prompt. I would basically be searching through a number of files and if a specific string is found I would like it removed automatically. pretty much a find and replace, were the replace is nothing. any one got any ideas on how you would do this. I already have the search part sorted just need to be able to remove the string I don't want from the multiple files.
View 4 Replies View RelatedSo I want to run command through ssh but also run a if check in bash to see ifa file exist. I know that to run ssh commands you do ssh user@server YOURCOMMANDbut if i need to run an if statements, how would this work??
View 4 Replies View RelatedSuppose that it is not convenient to go behind a machine to have a look.So I want to use a command to show whether the cable is plugged into network card. (Media connected or not)Can ifconfig do this? Or another one?
View 2 Replies View RelatedI have Ubuntu 9.10 installed on my HP desktop, but I'm running an older version (8.10) on a live CD so I can at least get online to ask for some When I tried to log on earlier it went to a command prompt and said the 'file system check failed' and to run fsck manually. I entered 'sudo fsck' at the prompt and I selected "y" to fix all the bad inodes, when it was complete it told me to restart, I then entered 'sudo restart' at the prompt and it said 'sudo uuid unknown'. I have not installed anything recently and I'm not sure what to do.
View 3 Replies View RelatedOn my laptop I have a dual boot system, CentOS 5.4 on one partition and Windows Vista on the other. In Windows, I have a program installed that allows me to access my linux partition so I have access to the files. Every time I boot into linux after accessing the linux partition through windows, I get a forced file system check. I was wondering if there is a way to disable or perhaps bypass this check?
View 1 Replies View RelatedI use wireshark (ethereal) to moniter the traffic passing through the NIC. I find that system always sends "bad checksum" TCP/UDP packets. In CentOS 5.2 this is seldom. Does your system (5.3) send "bad checksum" TCP/UDP packet ?
View 2 Replies View RelatedI get the following error on 'yum update'. I have tried 'yum clean all' and also:
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
# yum update
Loaded plugins: fastestmirror, protectbase
Determining fastest mirrors
* base: mirror.sov.uk.goscomb.net
* updates: mirror.sov.uk.goscomb.net
[Code]....
I've got a few video files that came with md5's. I want to check them but I don't know how.
View 6 Replies View Relatedsend me the code to find the md5 checksum of a file in c++.
View 7 Replies View RelatedThe server comes up after rebooting and after setting the hostname it starts setting up logical volume management. It says that 2 logical volume(s) in volume group "VolGroupOO" now active But then it starts to check the file system and errors with fsck.ext3: Device or resource busy while trying to open /dev/sdb1 [failed]
***An error occured during the file system check
***Droppping you to a shell, the system will reboot when you leave the shell
Give root password for maintenace
After I log in with the root I get the message mesg: error tty device is not owned by group 'tty' Can the forum tell me how to troubleshoot this issue so I can boot back up again? I have 2 harddrives in this server and only 1 drive was detected when I first installed CentOS. The error first appeared when I mounted the 2nd drive at the mount point /UserGeneratedData. drive was formatted with ext3 before mounting and did not have any data on it I don't want any software RAID if thats what seems to be going on with "VolGroup00"
I downloaded the DVD ISO version of OpenSuSe version 11.2 64bit from openSUSE. I checked the iso file checksum after downloading and it was correct. However after burning to DVD i booted from the disc and started the install. After getting passed the initial settings and it starts to extract all of the packages each file fails the checksum and will not install. I tried downloading again on a different computer and burning again using UltraISO using the Disc-At-Once method, again checking the ISO file's checksum before burning.
It still gives the same errors. So i loaded windows and started the windows based install and my anti-virus (Kaspersky) says the disc is infected with a trojan. How can the disc be infected when the ISO file's checksum is correct?. The computer that i am using to burn the disc is virus free according to Kaspersky and Norton Technician Toolkit.
I am trying to install True Combat: Elite on my Fedora 14 machine, but when I try to install it, it tells me there is an error in the md5 checksum of the binary installer. Output:
[alex@sofy01 Desktop]$ sudo linux32 ./true.combat.elite_0.49-english.run
Verifying archive integrity...Error in MD5 checksums: 3723510cf281bc315a9009cd1ca4f0e4 is different from 7cd28449f1231ff747e08fb76d4615c3
This file was copied from a flash drive onto my hard drive. Is there any way to skip md5 checks because I really do not want to download this 200+ MB file again.
I am trying to figure out the actual size of files and directories on a CentOS Linux 5 server and when I do a ls -l I see for example at the Directory of /Data 4096 but once in side the directory and I do a ls -l I see larger file sizes. How do I get the actual file size of a Directory to show up?
View 3 Replies View RelatedI am trying to add a command to my backup script to delete the oldest file in the destination folder before adding a new .tar.gz file.I found this information at .html which I thought would work fine and added the following line to my backup script:ls -t -r -l /backups/Scalix_Backup* | head --lines 1 | xargs rmHowever when I tried this I get an error:rm: invalid option -- wTry `rm --help' for more information
View 7 Replies View RelatedI have a file with tens of thousands of lines. I need to remove specific letters eg eggs, from every line that has the letters in it. Is there a command which can help me do that easily?
View 4 Replies View RelatedI am using Fedora12 for about three months. I generally do a yum update once a week, and all went well till yesterday when I got a long list of messages like this:
"rpmfusion-free-updates/primary_db | 473 kB 00:00
http://mirrors.tummy.com/mirrors/rpm...ry.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror."
The above message was repeated for all the mirrors until at last it said "no more mirrors to try" and stopped. Tried again after "yum clean all", but the same problem repeats. Today I tried afresh, and got the same message.
Is this due to some recent update I did, or is there a real problem with the mirrors? Please tell me how to solve this.
This should be simple but I can't seem to find what I am looking for.I want to search a text file for the existence of certain strings and execute a command if they exist, something along the lines of:
if <string> exists
command
or
if <any member of this list exists>
command
I know how to manually search a file with grep, cat, etc., but the "if this exists" part eludes me.
I have got an Notebook whose CPU is 64bit.The Notebook has an CentOS installation. Now I want to find out if this CentOS is 32bit or 64bit.How can I check this?
uname -a
gives something with ....i686 i686 i386...."
What does that mean?Does that refer to the hardware or the CentOS OS? An 32bit CentOS can be installed on a 64bit hardware!I am interested in the OS capability not of the hardware!
How can I check and set who can view or open a given folder or file?
View 1 Replies View RelatedI've just installed java (jre-6u21-linux-i586.bin) on Red Hat 4.4 AS and issued this command to check the java version: java -versionand got :bash :java: command not found
View 4 Replies View Relatedmy partitioning layout was as follows
Vista Recovery
Windows 7
GRUB
Extended
-->Fedora 12 (ext4)
so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.
I need to know what command to use to check whats using all of my ram on my server i use the top command but it doesn't show much information
View 8 Replies View RelatedI am trying to write a script to copy all of my photos to my backup drive, to finish it i want to scan the backup and check that all of the folders and photos are there. is there a command in linux to do this (theres one (or two) for everything else!!!)
View 1 Replies View RelatedI'm building a script for my place of employment. The next step in it is checking what the user input was. Determining if they added a part in there or not. The script prompts for a hostname. Hostnames are localhost.localdomain. Now, I want the script to check to see if they put localdomain and if they did, not to add the domain to the /etc/sysconfig/network, but just what they entered. So say the user inputs:
[Code]....
What is the command to check all open TCP connections?
View 7 Replies View RelatedI add user in Samba by
#smbpasswd -a noktualek
New SMB password:
Retype new SMB password:
How to check, How many user i really added