A Blog about technology, linux, peer2peer, cool new downloads and software development.

Wednesday, November 17, 2010

Fix Alt+Print Screen not working on Ubuntu 10.10)

sysctl -w kernel.sysrq=0

Wednesday, November 10, 2010

nmap how-to

nmap -sP --send-ip 192.160.0.0/24

Sunday, October 24, 2010

how to save rtmp stream flv

download rtmpdump :
http://rtmpdump.mplayerhq.hu/
sudo apt-get install rtmpdump 
sudo port install rtmpdump

rtmpdump -r "rtmp://stream.myonlinewebinar.com/cfx/st/lbxxx/newxxx.flv" -o 01.flv
if stuck :
rtmpdump -r "rtmp://stream.myonlinewebinar.com/cfx/st/lbxxx/newxxx.flv" -o 01.flv --stop 3600 
continue :
rtmpdump -r "rtmp://stream.myonlinewebinar.com/cfx/st/lbxxx/newxxx.flv" -o 02.flv
--start 3600 --stop 7200




reference :
http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm
http://stream-recorder.com/forum/do-you-use-rtmp-dump-rtmpdump-tutorials-t3926.html?s=0a7d48322bdecbb92e524308eb85f581&

Sunday, September 12, 2010

Friday, August 27, 2010

How to fix - Firefox 4.0 Beta : browser.tabs.tabMinWidth doesn't work

find the firefox profile :

find . -name userChrome*

./Library/Application Support/Firefox/Profiles/mahk6fwf.#02/chrome/userChrome-example.css

cd "./Library/Application Support/Firefox/Profiles/mahk6fwf.#02/chrome/"
cp userChrome-example.css userChrome.css
vim userChrome.css

(Append to the end of the file :)

.tabbrowser-tab[fadein]:not([pinned]) {
    min-width: 18px !important;
  }

:wq

restart firefox

reference :
http://www.lawlzoids.com/proxy/?__new_url=aHR0cHM6Ly9idWd6aWxsYS5tb3ppbGxhLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NTc3NDk3

http://support.mozilla.com/bn-BD/questions/745380

Friday, July 16, 2010

mount nfs on mac osx

mkdir /private/nfs
sudo mount_nfs -P 192.168.0.5:/media /private/mnt

reference :
http://oreilly.com/pub/h/341

Tuesday, June 15, 2010

how to see itunes purchase history

browsing to the following link will open itunes with the purchase history screen :
itms://phobos.apple.com/purchaseHistory

Sunday, June 13, 2010

show all the nfs exports on a nfs server

showmount -e 192.168.0.100
Export list for 192.168.0.100:

Sunday, May 16, 2010

how to compile php 5.2 on centos 4

- references :
http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
http://mypetprogrammer.wordpress.com/2007/10/06/upgrading-php-from-439-to-52-on-cent-os4/
http://www.jasonlitka.com/2006/11/30/upgrading-php-520-rhel-centos/
http://www.jasonlitka.com/media/SRPMS/


rpm -i http://www.jasonlitka.com/media/SRPMS/pcre-7.8-1.jason.1.src.rpm
wget http://www.jasonlitka.com/media/SRPMS/php-5.2.11-jason.1.src.rpm
wget http://www.jasonlitka.com/media/SRPMS/php-pear-1.7.2-2.jason.1.src.rpm
rpm -i php-pear-1.7.2-2.jason.1.src.rpm
rpm -i http://www.jasonlitka.com/media/SRPMS/pcre-7.8-1.jason.1.src.rpm

cd /usr/src/redhat/SPECS/
rpmbuild -bb pcre.spec
rpm -Uvh ../RPMS/i386/pcre-7.8-1.jason.1.i386.rpm
mv -v ../RPMS/i386/* /tmp

rpmbuild -bb php.spec
rpm -Uvh --nodeps ../RPMS/i386/*.rpm
mv -v ../RPMS/i386/* /tmp

rpmbuild -bb php-pear.spec
rpm -Uvh --nodeps ../RPMS/noarch/*.rpm
mv -v ../RPMS/noarch/* /tmp

ldconfig -v
php -v
/etc/init.d/httpd restart

how to permanently configure the system LD_LIBRARY_PATH

example :
vim /etc/ld.so.conf
[add the line to the end of the file]
/usr/local/lib
:w

ldconfig -v
check
ldconfig -p

Thursday, May 6, 2010

how to disable bell on linux

http://www.commandlinefu.com/commands/view/5486/system-beep-off

setterm -blength 0
or
setterm -bfreq 0
or
sudo rmmod pcspkr

Tuesday, May 4, 2010

Monday, May 3, 2010

how to solve slow compiz on ubuntu linux

compiz --replace --indirect-rendering

Friday, April 30, 2010

how to optimize ssh speed on ubuntu linux

check which cypher works fastest on your machine :
openssl speed aes rc4 blowfish

then use it :
ssh -c arcfour user@xxx.xxx.xxx.xxx

how to scan document with ubuntu linux (scanner tyutorial)

sudo add-apt-repository ppa:robert-ancell/simple-scan
sudo apt-get update
sudo apt-get install simple-scan
simple-scan

reference :
http://lifehacker.com/5483366/simple-scan-makes-linux-scanning-beginner+friendly
https://launchpad.net/simple-scan

Thursday, April 29, 2010

how to add a ppa: repository to ubuntu linux

sudo add-apt-repository [ppa:packege_name]
sudo apt-get update
sudo apt-get install [packege]

how to fix buttons not responding to clicks in eclipse / zend studio on ubuntu linux

export GDK_NATIVE_WINDOWS=true
before running eclipse / zend

Friday, April 9, 2010

how to change the response of the lenovo/ibm track point pointer deveice in ubuntu linux

cat pointer_reset.sh 
sudo sh -c "echo -n 200 > /sys/devices/platform/i8042/serio1/serio2/sensitivity"

Tuesday, April 6, 2010

how to install poptop pptp server (beta)


apt-get install ppp
apt-get install pptpd

vim /etc/pptpd.conf
################################################################################
#
# Sample PoPToP configuration file
#
# for PoPToP version 1.0.0
#
################################################################################

# TAG: speed
#
# Specifies the speed for the PPP daemon to talk at.
# Some PPP daemons will ignore this value.
#
speed 1152000000

# TAG: option
#
# Specifies the location of the PPP options file.
# By default PPP looks in '/etc/ppp/options'
#
#option /this/is/the/options/file
option /etc/ppp/options.ppp0

# TAG: debug
#
# Turns on (more) debugging to syslog.
#
debug

# TAG: localip
# TAG: remoteip
#
# Specifies the local and remote IP address ranges.
#
# You can specify single IP addresses seperated by commas or you can
# specify ranges, or both. For example:
#
#  192.168.0.234,192.168.0.245-249,192.168.0.254
#
# IMPORTANT RESTRICTIONS:
#
# 1. No spaces are permitted between commas or within addresses.
#
# 2. If you give more IP addresses than MAX_CONNECTIONS, it will
#    start at the beginning of the list and go until it gets 
#    MAX_CONNECTIONS IPs. Others will be ignored.
#
# 3. No shortcuts in ranges! ie. 234-8 does not mean 234 to 238,
#    you must type 234-238 if you mean this.
#
# 4. If you give a single localIP, that's ok - all local IPs will
#    be set to the given one. You MUST still give at least one remote
#    IP for each simultaneous client.
#
#localip 192.168.0.234-238,192.168.0.245
#remoteip 192.168.1.234-238,192.168.1.245

localip 192.168.0.1  # eth0 public ip address
#remoteip 192.168.1.100-199
remoteip 192.168.0.100  # eth1 public ip address will be given to remote

# TAG: ipxnets
#
# This gives the range of IPX networks to allocate to clients.  By
# default IPX network number allocation is not handled internally.
# By putting a low and high network number here a pool of IPX networks
# can be defined.  If this is done then there must be one IPX network
# per client.
#
# The format is a pair of hex numbers without any 0x prefix separated
# by a hyphen.
#
#ipxnets 00001000-00001FFF

# TAG: listen
#
# Defines the IP address of the local interface on which pptpd
# should listen for connections.  The default is to listen on all
# local interfaces (even ones brought up by pptp connections, thus
# permitting pptp tunnels inside the pptp tunnels).
#
#listen 192.168.0.1

# TAG: pidfile
#
# This defines the file name in which pptpd should store its process
# ID (or pid).  The default is /var/run/pptpd.pid.
#
pidfile /var/run/pptpd.pid
- - - - - - - - -  8<  - - - - - - - - -  8<  - - - - - - - - -

vim /etc/ppp/options.ppp0
#
# Lock the port
#
lock

#
# We don't need the tunnel server to authenticate itself
#
noauth

#
# Turn off transmission protocols we know won't be used
#
nobsdcomp
nodeflate

#
# We want MPPE
#
#require-mppe

#
# We want a sane mtu/mru
#
mtu 1000
mru 1000

#
# Time this thing out of it goes poof
#
lcp-echo-failure 10
lcp-echo-interval 10

proxyarp
- - - - - - - - -  8<  - - - - - - - - -  8<  - - - - - - - - -

/etc/init.d/pptpd restart
OR
pptpd

configure the windows dialer as following :


Monday, April 5, 2010

how to convert chm to pdf on ubuntu linux

sudo apt-get install chm2pdf

try the following in order to see which work, from best quality to lower

[ better visualy - images ]
chm2pdf --verbose --book book.chm

[ better indexing on the left ]
chm2pdf --verbose --webpage book.chm

Sunday, April 4, 2010

php - how to log errors to a log file in the current directory

$ vim debug.php


$ touch error_log.log
$ chmod a+rw error_log.log

[browse to the debug.php page and then cat the log file]

Saturday, April 3, 2010

how to move the window title bar buttons to the right on ubuntu 10

install ubuntu-tweak from : 
http://ubuntu-tweak.com/
run it and go to :
window manager settings -> window titlebar button layout
de-select the custom and choose right

Monday, March 29, 2010

how to convert / fix mp3 on ubuntu linux with lame

sudo apt-get install madplay
sudo apt-get install lame
madplay -q -o wave:- -m -R 22050 [in.mp3/wav/...] | lame -b 128 - out.mp3

ubuntu linux screen casting / screen recording

sudo apt-get install xvidcap
> screencast recorders
sudo apt-get install istanbul
sudo apt-get install gtk-recordmydesktop
  http://ubuntuforums.org/showthread.php?t=294605
> encoders
sudo apt-get install ffmpeg
sudo apt-get install mencoder
> editors
sudo apt-get install audacity
sudo apt-get install avidemux
sudo apt-get install blender
> converters
sudo apt-get install h264enc
sudo apt-get install xvidenc
sudo apt-get install divxenc

best remote desktop applet for ubuntu linux

on ubuntu 9.x
sudo apt-get install grdc-gnome
on ubuntu 10.x
sudo apt-get install remmina-gnome

the applet is called "remote desktop client applet"

Friday, March 26, 2010

Maximizing the desktop realastate in ubuntu linux

install from synaptic : 
maximus
window-picker-applet

add the window-picker-applet to the top bar


refrence : http://www.freesoftwaremagazine.com/columns/ubuntu_netbook_remix_detailed_explanation

Saturday, March 20, 2010

lsyncd ubuntu tutorial

refrence : lsyncd

// prep
sudo apt-get install libxml2-dev
wget http://lsyncd.googlecode.com/files/lsyncd-1.26.tar.gz
tar -zxvf ...
make install

// usage
ssh-copy-id user@server
lsyncd --no-daemon /full/path/ user@server:/full/path/

Wednesday, March 17, 2010

how to tunnel remote ubuntu linux system full destop with Xephyr


> install xfce4 onthe remote system :
ssh user@host
sudo apt-get install xfce4
logout

> isntall Xephyr :
sudo apt-get install xserver-xephyr

> start Xephyr :
export DISPLAY=:0.0 # make sure that the display is set to the host
Xephyr -ac -screen 1280x950 -br -reset -terminate 2> /dev/null :1 -keybd ephyr,,,xkbmodel=evdev &
export DISPLAY=:1.0 # set the display to the Xephyr
ssh -YfC -c blowfish user@host xfce4-session 2> /dev/null

how to install hdaps on ubuntu 9.10


HOW-TO install the driver :
http://www.thinkwiki.org/wiki/Installing_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T61#Install_HDAPS_-_IBM_Active_Protection_System_Linux_Driver

How to install monitoring utilities :
http://www.thinkwiki.org/wiki/HDAPS

Saturday, February 27, 2010

how to install ssh server on ubuntu linux


sudo apt-get install openssh-server openssh-client

Saturday, February 20, 2010

how to fix tsclient crushing on ubuntu linux

install tsclient from :
http://packages.debian.org/sid/i386/tsclient/download

or from :
https://launchpad.net/~jcollins/+archive/jaminppa/+packages

How to configure the sensitivity of the Lenovo trackpoint joystick in ubuntu linux


To test :
$ sudo -s
# echo -n 200 > /sys/devices/platform/i8042/serio1/serio2/sensitivity

to change permanently :
$ sudo vim /etc/rc.local
and add the line :
echo -n 200 > /sys/devices/platform/i8042/serio1/serio2/sensitivity

Wednesday, January 13, 2010

how to extract the files in an rpm on linux


rpm2cpio kernel-bla-bla-bla.src.rpm | cpio -idvm