Loading Search...

Thursday, June 07, 2012

cygwin/x to x-win32

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

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

get it here, while still hot...

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

Samba Full Audit with Super Fast Logging

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.

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

Sharing Scanner over Network from Centos

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:

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

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

Wednesday, September 15, 2010

Super Easy Accepting Liberty Reserve Payment

 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

Friday, March 19, 2010

wicd + dnsmasq + opendns - opendns (ads) guides = faster browsing

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:
bogus-nxdomain= #telkom speedy indonesia ads
bogus-nxdomain= #opendns guides
#bogus-nxdomain= #opendns blocked pages
#bogus-nxdomain= #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 #query local dnsmasq
#dnsmasq will query these. also, in case dnsmasq fail, all apps will query these too:

if you need more redundancy, in case all your dns fail, add this to /etc/resolv.conf.tail

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