unsigned long long arg1, arg2;
arg1 = arg1/arg2;
and you get this error:
Unknown symbol __udivdi3
You ought to do this instead:
unsigned long long arg1, arg2;
unsigned long temp = arg1;
do_div(temp, arg2);
arg1 = temp;
unsigned long long arg1, arg2;
arg1 = arg1/arg2;
Unknown symbol __udivdi3
unsigned long long arg1, arg2;
unsigned long temp = arg1;
do_div(temp, arg2);
arg1 = temp;
$ sudo aptitude install rpm
rpm2cpio
. (RPM and initramfs use the CPIO archiver)$ rpm2cpio < some-package.rpm | cpio -i --make-directories --verbose
$ sudo aptitude install alien
.rpm
to .deb
$ sudo alien --to-deb --scripts --verbose some-package.rpm
rpm2cpio
, so make sure you have installed rpm
.--scripts
: If the .rpm
has scripts then you need to include those.deb
file. sudo dpkg -i some-package.deb
.deb
and installing using dpkg
is that you can manage the install\uninstall\reinstall and version using apt\aptitude.
dpkg-reconfigure xserver-xorg
and it would redo the X11 configuration.$ xrandr
$ xrandr --output VGA --auto --above LVDS
c-set-style {chose the mode}
C-x h
C-M \
.emacs
file:(server-start)
emacsclient -n filename
alias cemacs='emacsclient -n'
alias emacs='emacs &'
~$ sudo aptitude install build-essential ddd insight kdbg kdevelop eclipse eclipse-cdt eclipse-jdt kompare kate bless kile lyx cscope global octave kmplot vim emacs virtualbox-ose pdfedit scribus inkscape checkgmail kompozer manpages manpages-posix easytag gtkpod vlc libncurses5 libncurses5-dev dialog curl sun-java6-jre sun-java6-jdk wireshark qt4-dev-tools qt4-assistant qt4-designer qdevelop monodevelop umbrello git git-core gitk git-gui graphviz doxygen doxygen-gui
.deb
for~$ sudo apt-get update; sudo apt-get upgrade
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "Not running as root"
exit
fi
curl -u username:password -d status="the message" http://twitter.com/statuses/update.xml
.bashrc
file.# function to tweet
tweet() {
flag=0
if [[ -z "$1" && -z "$2" ]]; then
echo "Usage: tweet password \"message\""
echo "Make sure the message is within quotes"
flag=1;
fi
if [ ${flag} == "0" ]; then
echo "Sending message...."
curl -u username:$1 -d status="$2" http://twitter.com/statuses/update.xml
fi
}
$tweet password "The message goes here"
[Source]
~/.vimrc
file" Set tab width
set tabstop=4
set softtabstop=4
set shiftwidth=4
set smarttab
set smartindent
set expandtab
set cursorline
" Show line numbers and cursor position
set ruler
set number
" Disable default splash screen
set shortmess+=I
set guioptions-=T
" Show tabs and trailing white spaces
set list listchars=tab:-»,trail:·,extends:»
" Don't generate backup files
set nobackup
" Set default color scheme to something
colorscheme something
~/.vim/colors
and put the color scheme inside.