Today I spend my day partly playing with the GIMP. This days I have the enthusiasm,to start learning this nice linux design software.
I have to solve a task where I wanted to change the background of a picture with an existing color
in the header of a website.
Therefore I needed some kind of color picker which is able to pick up
colors directly from any running application on the screen. Luckily I found the solution quickly,
with the help by a guy in #debian in irc.freenode.net. I was suggested to look for color picker via
$ apt-cache search color picker
. The first thing that popped up was exactly what I was looking for. It’scalled GCOLOR2. Hope this post will help to somebody out there looking for a color picker for Linux, FreeBSD.
END—–
Archive for September, 2009
Howto add Bulgarian Phonetic keyboard set to Windows XP
Wednesday, September 23rd, 2009There is a nice site in Bulgarian explaining quite extensively how to add Bulgarian phonetic key set on Injinera’s Website. Another way to solve the problem is to use bgphon_xp program.
Porter Ascii Value Chain
Wednesday, September 23rd, 2009Long time ago when I was preparing for my Marketing I exam in International University College.
I’ve prepared a small ascii version of Porter’s Marketing Value Chain. Check out how fun it looks:
Ascii porter value chain 🙂 END—–
Learning to Control Yourself the Christian Way
Tuesday, September 22nd, 2009Since some time I’m thinking about the importance of a way to self control yourself in
order to achieve your goals.
That is something I’ve been always tought in the University.
Howevery the control approaches were always contradictiory to what I read in the holy bible.
Today while googling I came across a nice Christian document discussing “How to learn to
control yourself.†The documnet is written by a protestant pastor. Even though I believe
many of the things explained there does really fit to most believers. There is a part
in the document that rejects the ascetism and probably monks way as a mean to achieve Self Control
in the long term. From an Orthodox Christian point of view I have to emphasize that this is completelywrong.
Another thing that probably does not fit well with christianity is the suggestion by the pastorto write down on a piece of paper what you think your mission for life is.
This approach as ‘ve red before is suggested on many websites where people convinced in buddhism and other
religions does have the same spiritual value as christianity. This of course is a blatant lie!
There is only one salvation through the Lord Jesus Christ who lived gave himself for us (all the sinful people on earth)
and raised from the dead in the third day. As the dead couldn’t hold him as God in the flesh.
Enough talk, here is a link to the article Learning to Control Yourself by Pastor Steven J. Cole .END—–
Howto install and configure Local DHCP Server for small LAN local network on FreeBSD
Monday, September 21st, 2009Since some time ago, I’ve been planning to install a DHCP server to automatically assign the IP addressesof the hosts in my tiny local network.
Here is how I did it:
First I had to install:
the port isc-dhcpd31-server
Execute the commands:# cd /usr/ports/net/isc-dhcp31-server;# make install cleanFor some reason the dhcpd reason didn’t get created, so I have to issue.pw add user dhcpd;After which use vipw to change the default shell for the dhcpd user to /usr/sbin/nologin aswell as the default user home directory to /var/empty
Next I used the following dhcpd.conf file:
— SNAP —option domain-name “www.pc-freak.netâ€;option domain-name-servers 83.228.92.2, 83.228.92.2;default-lease-time 600;max-lease-time 7200;# Use this to enble / disable dynamic dns updates globally.ddns-update-style ad-hoc;# Use this to send dhcp log messages to a different log file (you also# have to hack syslog.conf to complete the redirection).log-facility local7;# No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology.subnet 10.152.187.0 netmask 255.255.255.0 {}subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.2 192.168.0.255; option domain-name-servers 192.168.0.1; option domain-name “www.pc-freak.netâ€; option routers 192.168.0.1; option broadcast-address 192.255.255.255; default-lease-time 3600; max-lease-time 7200;}# the lines below enables you to assign specific IP addresses depending on# machine’s MAC addresshost jericho { hardware ethernet 00:13:2a:33:7d:1e; fixed-address 192.168.0.2;}host noah { hardware ethernet 00:0b:e4:c9:7b:59; fixed-address 192.168.0.4;}— END —
You might need to change some of the IP addresses the conf above is configured for my local networkwhich is in the IP range 192.168.0.2 to 192.168.0.255.
The above conf file’s name servers are my ISP’s nameservers ns.bergon.net and ns1.bergon.netThe variable broadcast-address is the range in which the DHCPD servers will broadcast and eventuallyassign IP addresses.
routers variable sets your network default router in my case it’s my local gateway.
range variable is self explanatory.
subnet is the subnet in which your network is.
max-lease-time is the time interval in which a DHCP IP reassign occurs
default-lease-time the default time on which IP reassign occurs
The rest could be red in the commentaries above the variables:
To make dhcpd log in a separate file it’s also necessery to edit your /etc/syslog.confand change the line
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err; /var/log/messageswith*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err;local7.!*; /var/log/messages
as well as add:
local7.* /var/log/dhcpd to /etc/syslog.conf.
The above changes in syslog.conf should foce syslogd to log to /var/log/dhcpd instead of stuffing your /var/log/messages withdhcpd log output
It’s also necessary to create /var/log/dhcpd’s file:
Execute: touch /var/log/dhcpd as well as restart the syslogd
/etc/rc.d/syslogd restart .
Futhermore execute:
echo ‘dhcpd_enable=â€YESâ€â€˜ >> /etc/rc.confecho ‘dhcpd_iface=â€rl0″‘ >> /etc/rc.conf
The above as you probably know will schedule isc-dhcpd to start up every time your system boots.
Well you should be now having a shiny spreading dhcpd service in your local network.
Enjoy and Praise God 🙂 !
END—–