Skip navigation.

Beyond the Sky

The place where surface stop and share the experience of life

Posts tagged with "linux"

Fluxbox svn src compilation failed, solution.

, ,

I have to write down this, reminder for me to compile fluxbox from source next time in future.

ake[2]: Leaving directory `/home/hkong/Dev/fluxbox_1.0rc3/fluxbox-devel/nls'
Making all in src
make[2]: Entering directory `/home/hkong/Dev/fluxbox_1.0rc3/fluxbox-devel/src'
make[2]: Circular defaults.hh <- Makefile dependency dropped.
Making all in FbTk
make[3]: Entering directory `/home/hkong/Dev/fluxbox_1.0rc3/fluxbox-devel/src/FbTk'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/hkong/Dev/fluxbox_1.0rc3/fluxbox-devel/src/FbTk'
make[3]: Entering directory `/home/hkong/Dev/fluxbox_1.0rc3/fluxbox-devel/src'
make[3]: Circular defaults.hh <- Makefile dependency dropped.
g++ -DHAVE_CONFIG_H -I. -I. -I..  -I./FbTk   -g -O2  -DSHAPE  -I/usr/include/freetype2    -c main.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..  -I./FbTk   -g -O2  -DSHAPE  -I/usr/include/freetype2    -c Slit.cc
make[3]: *** No rule to make target `defaults.', needed by `fluxbox'.  Stop.
make[3]: Leaving directory `/home/hkong/Dev/fluxbox_1.0rc3/fluxbox-devel/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hkong/Dev/fluxbox_1.0rc3/fluxbox-devel/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hkong/Dev/fluxbox_1.0rc3/fluxbox-devel'
make: *** [all-recursive-am] Error 2


When getting error of defaults.hh, grep "defaults.hh" at src folder. It will leads you to the line at Makefile

# an extra dep for fluxbox
fluxbox.$(OBJEXT): defaults.hh


Some how OBJEXT is not define, thats the reason make fails.

Workaround:
export OBJEXT=o
make


Fluxbox 1.0rc3 svn 4840, tabs in title bar

, , ,

Tabs in Title bar

Click to enlarge and look at it precisely Fluxbox fans. Tabs in title bar, and the icons in tabs, clean, nice and efficient!

At the moment, I am using fluxbox 1.0rc3 svn 4840.

Fluxbox unsolves bug.

, , ,

I have play around a lots of fluxbox svn version over the weekend, and discover a bug on windows title, while display non-english characters while you login with en-UTF-8 locale.

fluxbox

Observed that the windows title, it could not recognize the font and display correctly, even I overlay it with chinese font in ~/.fluxbox/overlay. But in gtk part of space, observe the tab, it do works to display properly.

Any Chinese fluxbox user facing the same problem?
Probably not if you login as a zh locale, what if you login to en locale and need the windows title to display properly? In gnome, they do not have such problem, in fluxbox they have, who can fix it? which developer should I email to?

copybulatbulat.byexamples.com

, ,

After this post, I find a cnp blog again!!!
Damn! the blog copy LBE's content "bulat bulat"!

Toydi suggest I create a localized web blog to enclose CNP BLOG SITE, its call copybulatbulat.byexamples.com
If you wanna to copy, please copy professionally, don't copy "directly" without make any changes! Else your page will be list in copybulatbulat.byexamples.com with 200 lines of critics and complain!

Okay! copybulatbulat.byexamples.com doesn't exist yet!

Play 4 videos at the same time

, ,



I just boring! both play with mixing noise.... I did this while my internet down whole night at home.

matrix 0.2

, ,

What's New?
===========

- uses getopt to manipulate arguments, better way compare to 0.1a
- take off kbhit for unblocking keypress detects, instead uses timeout(0) and getch
- can change color during matrix is runing
- q and enter to terminate the matrix
- support default background color, if you have pseudo transparent on, you will experience it.


matrix 0.2
simple matrix animation using ncurses lib
Usage: matrix [option]...
matrix --version
matrix --help

-c [1-7] Color value from 1 to 7, default is 2
-t [string] Text heading for each flow string
-s [1-9] The flow speed, 1 fastest, 9 slowest
-l [1-50] Default have 25 flow strings, you can add more
-b Use black as background
-v Print Version
-h Print Usage

Internal Usage:
q | enter Quit the program
[1-7] Changing color




Binary:
matrix_0.2.tar.gz

Source Code:
matrix_0.2_source.tar.gz

matrix 0.1a

, , ,

matrix 0.1a
simple matrix animation using ncurses lib
Usage: matrix [option]...
matrix --version
matrix --help

-c [1-7] Color value from 1 to 7, default is 2
-t [string] Text heading for each flow string
-s [1-9] The flow speed, 1 fastest, 9 slowest
-l [1-50] Default have 25 flow strings, you can add more

--version Print out the version
--help Print this page



Source code:
matrix.cc
Binary:
matrix-0.1a.tar.gz

While running at different terminal, they uses different amount of processes. This program have difficulties running at multi-gnome-terminal. I have tested under Ubuntu Edgy, xterm, aterm, gnome-terminal. For so far, aterm gives the best performance.

ncurses matrix!

, , ,

I have done something stupid again! Play around with ncurses is fun, I have created something similar to matrix flow string ~

Ring ring ring ring banana phone.


It takes more resources to run at gnome-terminal compare to xterm.

Get the binary from here:
matrix

I will publish the source code later, if anyone interested.

Steps to run,
1. copy it to any directory
2. chmod +x matrix
3. ./matrix <num> // where the number is 1 to 7 (color)

Suggest you to run at xterm! Gives some comments.

Hacking the code to gain some tweak of fluxbox

, ,

This is the first request of mine that can't be fulfill by just edit the configuration file. I need to hack the source code, lucky my fluxbox is compiled myself, so that can be done easily.

What is my requirement?
I need to maximize the windows when I double click on the title bar of the windows. By default, it will be shaded instead of maximize.Asking around in the #fluxbox channel, people throw me this
http://fluxbox-wiki.org/index.php/Howto_Make_dblclick_titlebar_maximize

Simply How?
The source code is in src folder. Edit Windows.cc, search for
frame().setOnClickTitlebar(shade_cmd, 1,true); // doubleclick with button 1

and replace it to
frame().setOnClickTitlebar(maximize_cmd, 1,true); // doubleclick with button 1


Save the file, and you now can configure, make and make install.

Refers to http://my.opera.com/mysurface/blog/i-recompile-my-fluxbox-from-source for compilation.

Firefox 2.0.0.1 for Ubuntu

, , , ...


Ubuntu do not upgrade your firefox, at least until now still no update from my repository. Firfox released 2.0.0.1 which fix some security bugs, which I think is important. Luckly, you can download from firefox official website, and it works nice.

Pick your preferal language and download it from http://www.mozilla.com/en-US/firefox/all.html

For simple steps after download, you can do it with gnome terminal

sudo tar -zxvf firefox-2.0.0.1.tar.gz -C /opt/


Try out the new firefox first, check the version.
/opt/firefox/firefox


If it is working fine with all your data, now backup the old symlink and create a new symlink to your new firefox
sudo mv /usr/bin/firefox{,-old}
sudo ln -s /opt/firefox/firefox /usr/bin/firefox


If your firefox is not under /usr/bin, check it out where it come from
which firefox


Check whether is it symlink
ls -l `which firefox`


References:
Check out more command line examples at http://lne.blogdns.com/lbe
Symlink example - http://lne.blogdns.com/lbe/archives/19/how-to-create-symlink/
which example - http://lne.blogdns.com/lbe/archives/category/common/which/
November 2009
S M T W T F S
October 2009December 2009
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30