Skip to main content

CKSUM as a tool to compare integrity of file/files

There are times, when we copy/download CDs, iso files, tar files or any other files, the files seems to be ok but when we try to use it, it generate error or maybe resulting a fail installation. Well, there are many ways to eliminate on what went wrong, and this posting is only trying to help in a way to ensure that the CDs/files are passed the integrity check. What I'm about to share in here is only one way to tell if the files that we've downloaded are corrupted or not. of course there are other ways. in most common Unix-like OS there is a tool called 'cksum' that we can practically use it after OS installation, so no need to install a third party package to use the tool to check the integrity of a file. cksum is a command in Unix-like operating systems that generates a checksum value for a file or stream of data. The cksum command reads the file or files specified as arguments, or standard input if no arguments are provided, and calculates a checksum value, cyclic redundancy check (CRC) and the byte count. The checksum, number of bytes, and file name are written to standard output. The cksum command can be used to verify the equality of two files on different computers, such as a copy made over noisy transmission lines.[1]. (If the files are on the same computer, equality can be verified with the cmp command.) The comparison made by the cksum command is not cryptographically secure. However, it is unlikely that an accidentally damaged file will produce the same checksum as the original file. Syntax cksum [ File ... ] Usage example $ cksum test.txt 4038471504 75 test.txt $ 4038471504 => This represents the check sum value 75 => This represents the file size of test.txt But this only works on a Unix-like Operating System (including GNU/Linux, *BSD, Mac OS X, and Solaris), what about if we copy it through a windows machine, surely we need a cksum executables file for windows so the result can be compare. There's a tool called 'coreutils' this tool is developed under GPL licenses in this utility we can installed and uses tools such as 'cksum' and any other Unix-Like OS commands. the tools can be download from this link : reference:http://en.wikipedia.org/wiki/Cksum hopes this helps...

Comments

Popular posts from this blog

Installing g2ipmsg in intrepid

prerequisites package: - gettext - libpanel-applet2-dev - libgnomeui-dev - gnome-network-admin command #sudo apt-get install gettext libpanel-applet2-dev libgnomeui-dev gnome-network-admin donlod g2ipmsg from here i'm using the g2ipmsg-0.9.6 source package and ubuntu intrepid 8.10 after that untar the package with: #tar zxvf g2ipmsg-0.9.6.tar.gz #cd g2ipmsg-0.9.6 # ./configure --prefix=/usr --sysconfdir=/etc --enable-systray \ --with-ext-charcode=CP932 --disable-doxygen-doc Check if the configure command is working with no errors and after there are no errors go to the next step which is: #make Check if this has errors too hopefully the prerequisites are helping, and after a sucessfull 'make' the next step is: #make install after this u will be able to check if the installation successfull or not simply just try to find an icon on your desktop or list this file 'g2ipmsg' in /usr/bin folder. after u are able to find the file try to run in with: $sudo /usr/...

Windows Subsystem for Linux (WSL)

APA ITU WSL? Windows Subsystem for Linux adalah sebuah fitur windows 10 yang memungkinkan kita menjalankan native linux command-line tools langsung di windows. UNTUK SIAPA? WSL diperuntukkan untuk para developers -- terutama web developers dan mereka yang akan/sedang mengerjakan project open source. dengan ini mereka yang memerlukan BASH untuk menjalankan Linux command-line tools seperti awk, ls, ruby, python dll. dapat memanfaatkan tools ini agar bisa running bersamaan dengan windows. APA YANG BISA DILAKUKAN WSL? WSL menyediakan sebuah aplikasi bernama Bash.exe yang, ketika di run, akan membuka sebuah konsol Windows baru dimana dengan konsol ini kita dapat menjalankan shell Bash. Dengan menggunakan Bash, Kita bisa menjalankan tool dan aplikasi Linux command-line. Misalnya, ketik lsb_release -a dan tekan enter; Anda akan melihat detil distro Linux yang sedang berjalan. Kita juga dapat mengakses filesystem komputer lokal Anda dari dalam shell Bash Linux - Kita akan menemukan d...

Mengakses iLO dari ESX CLI

untuk melakukan perubahan pada konfigurasi iLO, kita bisa menggunakan web Interface yang tersedia, tapi, jika hal ini tidak memungkinkan ada alternatif mengubah konfigurasi ini melalui ESX CLI (command line interface). tools yang akan dipakai berupa script dengan file bernama hponcfg pertama tama kita harus mempunyai akses SSH terhadap ESX yang dimana iLO nya akan kita ubah. 1. lakukan koneksi SSH dan login dengan user root  kedalam ESX mesin. lalu masuk ke dalam direktori /opt/tools 2. untuk melihat help dari perintah hponcfg  kita dapat menjalankan perintah: #./hponcfg -h   3. untuk mengambil informasi server: #./hponcfg -g     4. untuk melakukan perubahan pada konfigurasi iLO kita harus mengexport konfigurasi ini kedalam suatu file, dan file ini akan kita edit lalu setelah pengeditan pada file konfigurasi selesai, file ini akan kita upload ke dalam iLO dan iLO akan kita reset (restart). untuk mengexport konfigurasi iLO: #./hponcfg -w /tmp/hp-ilo.txt  gu...