Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs
User Name



dumping a file in hexadecimal

Posted 05-28-2011 at 05:03 AM by neonsignal

There are several ways to dump a binary as hex values. The following examples generate single byte hex values with no addresses (which can be useful when generating array initialization code).

There is the program od:
od -A n -t x1 file.bin
The '-A n' turns off the addresses, and the '-t x1' sets it to single byte hex formatting.

There is also the program hexdump, which is more flexible in the formatting of the results:
Senior Member
Posted in Uncategorized
Views 445 Comments 0 neonsignal is offline

running mathcad under wine

Posted 05-28-2011 at 04:52 AM by neonsignal
Updated 05-28-2011 at 08:21 PM by neonsignal

Mathcad is a commercial visual mathematics editor that can execute formulae. Because it is what-you-see-is-what-you-get, it makes for a useful documentation tool. I have searched for equivalents in the free software world; Octave is useful for running mathematical models, and TeX can handle the typesetting of complex formulae, but having a visual editor means that working models and their results can be printed out in a human readable form.

The versions of Mathcad run with varying...
Senior Member
Posted in Uncategorized
Views 3744 Comments 0 neonsignal is offline

Lenovo Thinkpad T420 Notebook PC

Posted 05-28-2011 at 03:27 AM by spazticclown
Updated 02-23-2015 at 07:49 PM by spazticclown

Today I received my new Lenovo Thinkpad T420, I will be installing Fedora 15 tomorrow and I will post everything that I find on how everything works and any recommendations. I may also be testing with other distributions (possibly Ubuntu and open SUSE). Any requests?


Laptop arrived and testing as much as I can.
First off it loads Fedora 15 x64 easily. Optimus Graphics do not auto switch and had trouble getting the drivers to take. Looks like nVidia...
Posted in Uncategorized
Views 1787 Comments 0 spazticclown is offline

revamp your bash

Posted 05-27-2011 at 08:33 PM by sumeet inani
Updated 05-27-2011 at 08:45 PM by sumeet inani

I did following changes
in ~/.bashrc
export  HISTTIMEFORMAT="%h/%d-%H:%M:%S "
export PS1="\[\e]2;\u\a\]\[\e[31;1m\]\t \w \$\[\e[0m\]" 
#if [ "$color_prompt" = yes ]; then
#    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
#    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
alias ls='ls -lA'
alias cp='cp -v'
Posted in Uncategorized
Views 482 Comments 0 sumeet inani is offline

updatedb for ntfsdrives mounted in /media

Posted 05-27-2011 at 08:09 PM by sumeet inani

Edit your /etc/updatedb.conf
# PRUNENAMES=".git .bzr .hg .svn"
#PRUNEPATHS="/tmp /var/spool [strikethrough]/media[/strikethrough]"
PRUNEPATHS="/tmp /var/spool"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf fuse.glusterfs fuse.sshfs"
Some say create symbolic...
Posted in Uncategorized
Views 765 Comments 0 sumeet inani is offline


All times are GMT -5. The time now is 06:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration