Loading Search...

Tuesday, December 30, 2008

install latest cherokee webserver without compiling

one thing i hate when i need the latest version apps and it's not in official repo is compiling.
actually, it's ok doing compilation on your desktop pc. you can have all the build-essential installed and have all your cpu, ram and perhaps time to compile everything and all will run just fine.

but...
if you're on a budget vps with very limited ram and cpu, you need every single bit of them to serve what your vps was supposed to serve. though installing build-essential wont waste any ram/cpu when it's not compiling, but every security expert will tell you not to install these on production server.

off course...
we can install it, do the compilation and then remove it.

or...
compile on your desktop. (possibly packages them as .deb) then upload to your vps.

yet...
i'm lazy.

so...
here's how i do it on my debian lenny...

i get all the fastest free web server packages from debian sid. which is the latest released version of cherokee webserver. and that's including libpcre3 and all needed dependencies (libcherokee-*) that's not in lenny yet.

then, install each and every .deb dependencies packages that i download from pool.

and, finally...
to make thing easier, i do:
sudo gdebi cherokee_0.11.6-1_amd64.deb
so that all other dependencies can be easily satisfied from lenny.

that's it.
i got cherokee installed. no compiling required.


btw. did you know that cherokee got a pretty neat ajax gui for simple server management?

--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Wednesday, November 12, 2008

install ubuntu apps on debian

there are some apps available on ubuntu repo but not in debian repo.
but ubuntu is based on debian. so i think.... i can just download the packages from ubuntu and install it on debian.
here's how i do it...

first, install gdebi for easier .deb packages installation:
sudo aptitude install gdebi

then, search the packages you want. example, i want to install pyneighborhood, so i open this link:
make sure your debian have correct dependencies. example, pyneighborhood from intrepid depends on smbclient >= 3.0.22. let's check smbclient on debian:
so, it's 3.2.4 which is >= 3.0.22. that's mean we have all required dependencies.
now, let's download the packages from the nearest mirror:
or you can also swim in to the pool:
after it's download, just open a terminal to install it:
sudo gdebi pyneighborhood_0.4-0ubuntu5_all.deb
this will also download all its dependencies if it's not yet installed.

that's it. the ubuntu package is now installed in debian.

now, i like to know what ubuntu apps that you missed the most and not yet available on debian? post your voice!
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Thursday, October 23, 2008

linux automatic login, startx and shutdown

making linux easier for noob and kids by automatic login into linux, then startx and then shutdown the computer when they quit.

first, setup mingetty for automatic login on debian minimal desktop:
# sudo aptitude install mingetty
# sudo nano -w /etc/inittab 
# then comment this line and add the next line:
# 1:2345:respawn:/sbin/getty 38400 tty1
1:2345:respawn:/sbin/mingetty --autologin replacewithyourusername tty1

or, on ubuntu minimal desktop:
# sudo aptitude install mingetty
# sudo nano -w /etc/event.d/tty1
# look at the last line
# comment this line and add the next line:
# exec /sbin/getty 38400 tty1 
exec /sbin/mingetty --autologin replacewithyourusername tty1

then allow everyone to shutdown:
sudo chmod +s /sbin/halt

then, automatic startx and shutdown after exiting x:
# nano -w .bashrc
# put these lines at the most bottom
if [ $(tty) == "/dev/tty1" ]; then
  startx
  /sbin/halt
fi
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Wednesday, October 22, 2008

replacing kdm/gdm/slim with qingy


qingy is not getty. and surely it is not x display manager. but it's a getty replacement. just like getty, it ask you for login and let you access your linux according to your login. beyond login, qingy can give you X session in addition to text/console session. you can even start multiple X session at once.
so, it's (almost) a perfect replacement for any x display manager like kdm/gdm/slim/xdm/wdm. especially usefull for ubuntu / debian minimal desktop installation. save you a lot of system resources on legacy computers.

first, remove any display manager you have:
sudo aptitude purge kdm gdm slim xdm wdm

easily install it on debian/ubuntu:
sudo aptitude install qingy

now, to make qingy works on ubuntu minimal desktop, edit file as follow:
# sudo nano -w /etc/event.d/tty1
# look at the last line
# comment this line and add the next line:
#exec /sbin/getty 38400 tty1
exec /usr/sbin/qingy tty1
or, on debian minimal desktop:
# sudo nano -w /etc/inittab 
# then comment this line and add the next line:
# 1:2345:respawn:/sbin/getty 38400 tty1
1:2345:respawn:/usr/sbin/qingy tty1

that's it. now you can reboot and get into qingy instead of x display manager.
how do you like it?
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Wednesday, September 10, 2008

Google Chrome on Ubuntu Hardy

thanks for stumpleupon on this.
ref: http://appdb.winehq.org/objectManager.php?sClass=version&iId=13635

first, get latest wine:

# use wine repo by inserting this into /etc/apt/sources.list
deb http://wine.budgetdedicated.com/apt hardy main
# then do
# sudo aptitude update
# sudo aptitude install wine
# or, if you got wine already installed:
# sudo aptitude safe-upgrade

then, do some winetricks to prepare for chrome:

rm winetricks
wget http://www.kegel.com/wine/winetricks
sh winetricks msxml3 corefonts firefox flash winxp

now, install it:

wget http://gpdl.google.com/chrome/install/172.37/chrome_installer.exe
wine chrome_installer.exe

installed. now run it:

wine "$HOME/.wine/drive_c/windows/profiles/$USER/Local Settings/Application Data/Google/Chrome/Application/chrome.exe" --no-sandbox --new-http


see more ubuntu server/desktop installation guide

update:
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Thursday, August 28, 2008

boot & install debian / ubuntu from ntfs

so, when other distros fail me, i always return to debian. it's a little bit harder to setup, but it (almost) always works on any hardware i have.
  • first i download this debian installer mini.iso
  • i dont burn it. coz, i cant use the cd drive anymore.
  • extract 2 files from the iso into (say) c:\debinst: linux and initrd.gz
  • edit c:\menu.lst and add this:
title install debian
kernel /debinst/linux acpi=off
initrd /debinst/initrd.gz
  • reboot
  • on boot, choose grub. then choose install debian
  • that's it. i install debian (again!)
btw. you can use this way to install ubuntu using Ubuntu Minimal CD

update:

--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Saturday, August 23, 2008

apt-get freevo on Ubuntu Hardy with packages from Intrepid

this is how i install freevo on ubuntu hardy using apt-get to get packages from ubuntu intrepid.
First, from Freevo Apt Ubuntu Doc

# Add Medibuntu
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo aptitude install medibuntu-keyring && sudo apt-get update

# Mandatory dependencies
sudo aptitude install libglib2.0-dev libimlib2 libimlib2-dev libdvdread-dev python-xml python-pygame python-twisted python-dev python-beautifulsoup xmltv lsdvd aumix mplayer libdvdcss2

# Optional packages
sudo aptitude install w32codecs python-pylirc lirc tvtime xine-ui

now, install Python XML

# install dependencies
sudo apt-get install python2.5-dev

# download and unzip pyxml
wget http://superb-west.dl.sourceforge.net/sourceforge/pyxml/PyXML-0.8.4.tar.gz
tar -xzf ./PyXML-0.8.4.tar.gz
cd PyXML-0.8.4

# build and install pyxml
python setup.py build
sudo python setup.py install

# remove temporary files, be careful where you point that loaded rm -rf!
cd ..
rm -rf ./PyXML-0.8.4

then, some apt pinning

# sudo vi  /etc/apt/preferences
# then paste these into it:
Package: *
Pin: release a=hardy
Pin-Priority: 900

Package: *
Pin: release a=intrepid
Pin-Priority: 90
now, get the intrepid repo:
# sudo vi /etc/apt/sources.list.d/intrepid.list
# then paste these into it:
deb http://archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
finally, do the install:
sudo apt-get update
sudo apt-get -t intrepid install freevo

that's all it. i got freevo up and running on my hardy

btw. similar setup can be used to make it work on debian stable.

--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Wednesday, August 20, 2008

ways to configure Linux X display driver

continuing my popular howto easily configure x display, here are other ways to configure X display driver in Linux.

first, we should backup the original xorg.conf, just in case...
cp /etc/X11/xorg.conf xorg.conf.backup1
and when we need to restore:
sudo cp xorg.conf.backup1 /etc/X11/xorg.conf
you might also want to backup xorg.conf from each step result and then choose the one that satisfy you most.

so here's many ways how to configure your X display driver:
  • sudo rm /etc/X11/xorg.conf # just remove the xorg.conf. usualy, X will try to configure itself.
  • if you have gdm installed, kill it with Ctrl-Alt-Backspace until it gives safe mode. or intentionally breaks xorg.conf with wrong entries. 
  • sudo X -configure && sudo cp xorg.conf.new /etc/X11/xorg.conf
  • sudo dpkg-reconfigure -phigh xserver-xorg
  • sudo displayconfig-gtk
  • try paste xorg.conf from failsafe / default xorg.conf
  • Fix Video Resolution Howto on ubuntu
as always, most stuffs should also works with debian and derivatives.
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Thursday, August 14, 2008

Atheros 5007 wifi (AR2425 chips) Linux Driver Installs

i got a laptop with built-in Atheros 5007 wireless LAN (AR2425 chips). and the driver came with ubuntu is not working at all. i also tried ndiswrapper that works but causing a lot of crash. so, after google a lot i found many (somewhat outdated) solutions to make this wireless works but not working anymore...

until i found a ticket at madwifi, then follow this guide. but it's so very long conversation to digest...

so, here i try to summarize it in case i need to repeat the whole steps:

wget http://snapshots.madwifi.org/madwifi-hal-0.10.5.6-current.tar.gz
tar zxvf madwifi-hal-0.10.5.6-current.tar.gz
cd madwifi-hal-0.10.5.6-current/scripts 
sudo ./madwifi-unload
sudo ./find-madwifi-modules.sh $(uname -r)
cd ..
make
sudo make install

that's all it. now i can use the wifi from ubuntu 8.04 hardy.
(it should also works on all other linux distros).

update: reports said it also works on ubuntu 8.10 intrepid.
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Saturday, June 28, 2008

remove old ubuntu kernel

after few times you do aptitude full-upgrade, you will end up with many kernel images. many people new to linux dont even know it's there. but it's there. and it can be many of them. wasting quite some spaces, especially if you're on old small 4gig harddrive, it matters a lot.

well... there're many ways you can remove old kernel on ubuntu. and here's my way..

first... find out which kernel installed:
aptitude search linux- | grep ^i

that will also show installed old linux-header (source). you might want to remove them too.
now let's remove them:
sudo aptitude purge linux linux-headers-2.6.24-16-server linux-image-2.6.24-16-server linux-ubuntu-modules-2.6.24-16
sudo aptitude purge linux linux-headers-2.6.24-17-server linux-image-2.6.24-17-server linux-ubuntu-modules-2.6.24-17
that's all it.
that should reclaim at least few hundreds megs space.

guess what... it also works on debian and all distros based on these two.

update. shorter, easier...

sudo apt-get purge '.*-2.6.24-16-*' 
sudo apt-get purge '.*-2.6.24-17-*' 


--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
Your Network & Internet Solutions

Saturday, June 14, 2008

let's roll the blogs

Blogger Buzz: Show off your favorite blogs with a Blog List

blogspot now have a new gadget that allow us to put our blog list to our sidebar. you might already have blogrolls using some other services. maybe the google reader's or others.
but all that mostly using javascript! you get what i mean? js means only browsers can see it and search engine bots cant see your blogroll.

and you can guess it already. this new blog roll is 100% SEO and it can even raise your other blogs pagerank.

let's see it in action...


update: wonder why ajaxsearch do not include bloglist in the search result?

--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Friday, June 13, 2008

rss feed alert to your messenger

get instant alert of my blog or any of your favorite news/blog feed to your instant messenger.
  • imfeed.com
  • feedcrier.com
  • zaptxt.com also support email & sms
  • Subscribe by iNezha anothr.com
imfeed need you to sign up and logged in first. works great for me.
feedcrier says we need to confirm the subscription. but the confirmation message never arrive.
cant make zaptxt works. it always say the feed is not validated.

try them out. tell me what you think. share your thought and post a comment.
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Thursday, June 12, 2008

ultimate htaccess blacklist

just found another great resources on htaccess blacklist by perishable press. it's called ultimate htaccess blacklist. similar to my previous close to perfect htaccess ban list from webmasterworld forum. but the htaccess have all the rewritecond in one single super long line.

also, it have very nice and almost complete htaccess stuffs.

then, it's also building so-called 3G - third generation - blacklist which include a bunch of redirectmatch stuffs. but be carefull with these. they could/might breaks your cms if you do not understand the logics there.

among all, i will certainly put this into my htaccess:
# PART III: USER AGENTS
SetEnvIfNoCase User-Agent "Jakarta Commons" keep_out
SetEnvIfNoCase User-Agent "Y!OASIS/TEST"    keep_out
SetEnvIfNoCase User-Agent "libwww-perl"     keep_out
SetEnvIfNoCase User-Agent "MOT-MPx220"      keep_out
SetEnvIfNoCase User-Agent "MJ12bot"         keep_out
SetEnvIfNoCase User-Agent "Nutch"           keep_out
SetEnvIfNoCase User-Agent "cr4nk"           keep_out

order allow,deny
allow from all
deny from env=keep_out

just go check it out for all those .htaccess stuffs and come back tell me what do you think and how you build your htaccess

--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Tuesday, June 10, 2008

really easy instant blogspot widget

i just create another widget that allow you - easily,instantly - turns anything into a great free blogspot widget and share it on your blogspot. sort of "widget builder" widget.

just enter your owm custom html/js into it and your widget is ready to share!
and with 2 clicks, anyone can have your widget on their blogspot.

click and try it out! build your viral widget and share it to the world.
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Friday, June 06, 2008

rapidshare & megaupload faster downloader, more tools

following my previous very popular faster download from rapidshare megaupload etc post (which more server oriented tools), and seeing a lot of demand, here i gather more desktop tools to help you get unlimited download faster from rapidshare, megaupload, sendspace, hyperupload, ultrashare, etc..

not all tools here is tested but i try to gather information and found them somewhat popular.
here's some of them:
warn: i have not (yet) test them all. secure your windows with good antivirus and antispyware before trying any of them!

oo... dont limit yourself with rapidshare. seek your file here for easier downloads.
also, search for rapidshare here:


put this rapidshare search engine on your blogspot:


--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Wednesday, June 04, 2008

easily arrange any blogspot widgets into tabviews


make any of your blogspot widget as tabview just like this one.

because i have problems pasting code in blogspot, you can copy and paste the code from my wiki:

blogspot hack: dhtml tabview

and easily turn any of your widgets into tabview. no need to know about ajax/json or other high tech scripting...

--

tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Monday, May 26, 2008

howto easily configure X display

i just installed ubuntu hardy on an old 400mhz computer with 192meg ram. i setup ubuntu minimal desktop on this old computer.
it took more than 1 hour downloading few hundreds megs packages with 1mbps internet link and another 1 hour unpacking and installing almost 600 packages. and after all that, i can not startx!

tried 'sudo X -configure' then 'sudo cp ~/xorg.conf.new /etc/X11/xorg.conf' and still X wont start.
it's and old sis vga with 4 meg ram.

here's a trick to configure X.
sudo aptitude install gdm
what!? what gdm have to do with configuring X!?

this is ubuntu. meaning they do all they can to make it easy for n00b:)

when ubuntu try start gdm and fail, it keep trying with different configuration. after too many fails, it give a low-res X. something like windows safe-mode. then you have option to configure your display or just continue using low-res mode.

off course, you should first try to configure X. just select your vga card from the list and do the test to see if it works.

it works for me. i just select my vga type and everything works out ok.

well. another day saved by ubuntu...

how do you configure your X when other things fail?
comment and share your experiences...


update:
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Wednesday, May 07, 2008

Wednesday, April 30, 2008

Paypal Storefront Facebook & Myspace Widget

it's quite some times already that Paypal launches Storefront Widget. however i just found out that recently. so i create a widgetbox and clearspring widget out of it so that i can easily put it anywhere i want to.
today, i convert Paypal Storefront Widget as Facebook Apps so now everyone can start selling on Facebook.

it's up to you, you like the simple paypal shopping cart or this more advanced storefront widget. both available as facebook apps.

















first, build the widget then click the 'get & share' button and start selling now!

update: paypal asked to make it clear, so i will:
  • it's mostly only like a wrapper to the paypal original widget. so, if the paypal original widget works, this should also works without problem.
  • the widget is hosted on widgetbox. so i dont collect any info about you. i can not tell what store_id you use, your paypal email, etc... i can only see a global stats like how many time it's used, etc...
  • this widget is made by me. so, if it works or not you can contact me. dont ask paypal for the support. tnx.
update: it's now myspace compatible!
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Monday, March 03, 2008

install linux from windows without cdrom

nowadays, linux is easy to install. most distro have livecd that you can just boot into linux without installing it first.

but, i have an old sub notebook with no floppy nor cdrom with it. and it's also cant boot from usb. windows on the internal harddrive is the only one it can boot. and i need linux in it.

sure there are more than dozens way installing debian. or you can also say goodbye-microsoft. but, somehow i find none of those suite me.

this is the way i make it work...

  • i download archlinux ftp installer cd.
  • extract vmlinuz and initrd.img into c:\archinst
  • download the latest grub4dos.
  • extract grldr.mbr to c:\ and optionally menu.lst too if you like to see some sample
  • edit menu.lst to something like this:
color black/cyan yellow/cyan
timeout 10
default /default

title puppy
kernel /puppy/vmlinuz root=/dev/ram0 initrd=/puppy/initrd.gz PMEDIA=usbflash

title install arch
kernel /archinst/vmlinuz initrd=/archinst/initrd.img

title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root /ntldr
chainloader /ntldr
savedefault --wait=2
  • edit c:\boot.ini and add this line:
C:\GRLDR="Start GRUB"
  • restart your computer and choose "Start GRUB" from your grub menu
  • then choose install archlinux from it.
  • then the archlinux installer 'cd' will boot and i start installing linux into my laptop.
that's how i do it. i can install archlinux without cdrom, even that archlinux said it cant.
not only archlinux, (possibly) you can boot any linux installer or any livecd using this method.

(too bad my other laptop cant even boot archlinux. got kernel panic on both acer travelmate 507DX and IBM Thinkpad 600X)

how do you install your favorite linux?

update: this way to install debian/ubuntu from windows ntfs without cdrom
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Thursday, February 14, 2008

Really Easy, Instant Google Custom Search Engine with Blogspot



following my previous Easy, Instant Google Custom Search Engine with Blogspot post (part 1), the search engine can only shown on your blogspot web.

now that i create the google cref widget, you are now free to put your search engine on any other web.
that's what i call Really Easy, Instant Google Custom Search Engine with Blogspot (TM).

it was created for my own use. but i do hope you like it as much i me.
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Friday, February 01, 2008

Easy, Instant Google Custom Search Engine with Blogspot


if you have try/made some CSE (custom search engine) you might find it a bit tedious maintaining the engine. even start making it will need quite some work.

now with blogger-in-draft new (quite old already) search box, we can instantly make any CSE we like very easily. just make some link lists and put in the search box and instantly you have yourself a CSE just the way you like it.

and, it's also very easy maintaining your CSE. just regularly check and keep your link list updated and your CSE should always perform well.

you can test my CSE at my new virtualization blog and the special linux search engine.
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Monday, January 28, 2008

will cheap laptop kill wintel world domination?

now that Asus Eee launched all over the world. OLPC ready for purchase. Intel out of OLPC. AMD put in few bucks into OLPC. and dozens other cheap laptop like cloudbook, nanobook, mininote, classmate, is either in planning or ready to launch.

would this be the end of wintel world domination?
what do you think?

--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

Sunday, January 20, 2008

what is your urge to buy a new computer?


cant remember when the last time i bought a new computer. it was the latest technology when i bought it. it's celeron 800mhz which i still use till now. since then, i never (want) to buy any new computer. either it be laptop or desktop or even servers, i use 'old' refurbished computers.

now, all my computers are either pentium II or pentium III or celeron the most 'powerful'. i have one celeron on my laptop, pentium 3 on another laptop. 2 desktops with p2 inside. 1 mail server with p3 and another firewall/router/proxy using p3 also. and all the computers fully satisfy all my needs.

ooh... i forgot i just bought another refurbished p4 hyperthreading computer which i used at this very moment. it's only 2.8ghz and 512meg ddr1 ram. and i put latest centos 5.1 in it plus openvz plus virtualbox. now, almost everything is in this box. and coz too many servers i put into this box, it seem a bit slower, especially with it's only 512meg ram.

this. is my urge to get a new computer. coz i want to put dozens of servers (virtual machines) into this one box. i want my firewall/router/proxy in it. then a zimbra collaboration server. then web hosting platform, (maybe lxadmin hostinabox?). and maybe another dozens of other servers i can put into it.

for future-proof, the computer should be 64bit processor with virtualization technology. either intel multicore 64bit or amd64 athlon x2. we dont need server class platform (like xeon or opteron). nowadays, the desktop class processor already too fast for desktop causing programmers developing huge bloated apps like vista, openoffice and firefox. but for my servers, each servers can run nicely on p2-p3 with 256meg ram. so a desktop class multicore 64bit virtualization processors should be enough to run at least a dozen servers in it. (my server only serving 50+ users. no high load servers here.)

like the celeron that i still use, this new computer should last at least ten years and should only retire after/when it's dead. :) that's how i use my stuffs. my cellulars, my tv, my computers, all used up till the very end of their life!

so. what's your urge to purchase a new computer?

--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain