Loading Search...

there're some x-win32 apps out there...
some are freeware and some donationware

introducing...
the free and opensource cygwin/x stripped down to under 20meg.
no install. just unzip and run.

get it here, while still hot...
http://wiki.dennyhalim.com/xwin


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

usually, if/when you enable samba audit module, you will feel significant drop in performance, especially when your share folder simultaneously accessed by many users.

to have full audit logging without performance degradation, you will need a very fast write to log folder/partition. and what is faster than RAM?

so, we mount RAM to be used as our samba logging, put this line into /etc/fstab

tmpfs  /sambalog  tmpfs  defaults,noexec,nosuid,nodev  1 0

now, we tell samba and syslog to write their log to /sambalog:
# this line into /etc/syslog.conf
user.*;user.!warn /sambalog/fullaudit.log

#and this line into /etc/samba/smb.conf
log file = /sambalog/smbd.log

then, restart samba & syslog:
service smb restart
service syslog restart

now, watch /sambalog grows and feel the performance boost.

wait...
what the heck we do logging for if everything's gone on next boot!

ok, let's get back those logs from RAM:
# cat /etc/cron.d/logbak
*/5 * * * *  root zip -ru "/var/log/bak-$(date +%d).zip" /sambalog

all logs will be zipped back to hdd for safe keep.


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

first, install xsane and all dependencies to use scanner

yum install xsane

check to see if your scanner detected
scanimage -L


for epson, you might need to install latest driver from here:
http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX


test scan
scanimage --format tiff > gambar.tiff

if everything works, install xinetd and set it to start saned
# yum install xinetd

# cat /etc/xinetd.d/saned
service sane-port
{
   port = 6566
   socket_type = stream
   server = /usr/sbin/saned
   user = root
   group = root
   wait = no
}

# cat /etc/sane.d/saned.conf
localhost
192.168.0.0/24

change saned.conf to match you network subnet.
for security, you might want to change which user and group saned run as.

start it up:
chkconfig xinetd on
service xinetd restart

scan from windows, over network:
first download: http://sanetwain.ozuzo.net/#download
extract to new folder and run ScanImage.exe
enter you linux ip address into the hostname and click OK.

now you can use your scanner over network.

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

 Liberty Reserve have made few tools and API so that merchants can sell their product or accept payments easily.

i take one of those tools and make it even easier!

with my Liberty Reserve Merchant widget, you can start selling or accepting payments in few seconds.



you can add the widgets to any website/blog that allow javascript or widgetbox widgets. including blogger/blogspot, yola / synthasite, spruz, jimdo, webstarts, etc.

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

there are many many ways to speed up your browsing experiences.


one of many ways is optimizing your DNS server list.
each and every file on the internet is located on a certain (sub)domain.
so, each and every request of any file from your browser will need to query DNS servers first, before it can be fetch to your browser.

as you can see, DNS play significan roles in your browsing experience. if you're using firefox and see a lot of 'looking up someslowdomainname.com' then your DNS is slow.

here's how i speed up DNS lookup a little bit. first, install dnsmasq to do dns queries and cache all the results. thus repetitive lookup will perform much faster because the result is already in cache.

then, tell dnsmasq to do the queries to opendns to let it filtered out phising and malware sites. but, opt-out the opendns guides and block my local ISP ads.
edit /etc/dnsmasq.conf and add this lines:

#http://winware.org/bogus-domains.txt
bogus-nxdomain=92.242.132.11 #telkom speedy indonesia ads
bogus-nxdomain=67.215.65.132 #opendns guides
#bogus-nxdomain=208.67.219.135 #opendns blocked pages
#bogus-nxdomain=64.94.110.11 #verisign


last, must not pass this one, tell the clients (i use wicd to manage my linux networks), including browsers, messengers, etc.. to query local dnsmasq instead of the far away opendns servers.
edit /etc/resolv.conf.head and add these lines:
nameserver 127.0.0.1 #query local dnsmasq
#dnsmasq will query these. also, in case dnsmasq fail, all apps will query these too:
nameserver 208.67.222.222 
nameserver 208.67.220.220

if you need more redundancy, in case all your dns fail, add this to /etc/resolv.conf.tail
#google's 
nameserver 8.8.8.8 
nameserver 8.8.4.4

wicd will automatically merge dns from your router/isp between resolv.conf.head and resolv.conf.tail


now... our dns is much faster... what else can we do to speed up browsing? what do you do?

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