Archive for September, 2011

Colorize your freebsd terminal

September 25, 2011 Leave a comment






Categories: bsd

X Forwarding Re-Visited

September 8, 2011 Leave a comment

First of all this is not a tutorial and/or a guide. This is just to remind you what you may have forgotten. Here is the situation i work upstairs, don’t have any network cables running here so i use wireless. Have another bsd box downstairs which is wired to network.

Most of the times i have to change configurations on the router but my router doesn’t allow wireless connections to it. I guess at this point you realize my problem; i cannot connect to it from upstairs and downstairs bsd box is terminal based plus i can not walk downstairs all the time.

Here is what i do to get around. Install x server to downstairs bsd ssh to it and forward firefox to my box. Pretty neat.


Install x server, if you’ll install from ports you can install minimal version. Install firefox. (to the box that has wired connection)

ssh to box from your laptop/computer with:

[root@tirtil ~]# ssh -Y -C -l user

-Y Enables trusted X11 forwarding.  Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.
-C Requests compression of all data (including stdin, stdout, stderr, and data for forwarded X11 and TCP connections)

and run firefox

[user@freebitch /usr/home/] $ firefox3

Now you have firefox with wired connection so connect to your router without any problems….

Intel 6150 wireless cards and freebsd

September 7, 2011 Leave a comment

Looks like currently no support for intel 6150 wireless cards under freebsd. Asus u46 which is a price/performance beast comes with intel 6150 wireless card. I’ll try NDIS solution but i dont think its going to work.

fedora 15 xfce spin

September 6, 2011 Leave a comment

Ok another story about fedora 15. Two days ago i installed fedora 15 xfce spin to my girl friends laptop, she just sold her mac book so she needed new laptop.

First of all if you search google for “download fedora” and goto as advertised there is no fucking way to download xfce spin. I know you click on the “view more fedora options” and select xfce spin. But that shit is not working………

What you have to do is search google for fedora spins and goto site only after that you can download xfce spin.

Fedora guys can not even keep together their fucking download mirrors…

Anyways i downloaded spin and installed on asus a52f laptop. After the install first thing i did was :

[root@crap ~]# yum update

It showed like 360mb of updates i clicked on yes and started to wait. After a while it just hanged so i clicked on ^C and try to re run yum update it said i have un finished transaction so i have to finish that first so i typed:

[root@crap ~]# yum-complete-transaction

It did something and said ok so i rerun yum updated finished updates and reboot the computer. And what i get was that old beautiful message “Kernel Panic” and it refuses to boot in anyway not in single mode not in rescue mode, so its just fucked up…..

Here is the thing its 2011 not 1996 anymore so i refuse to deal with this kind of shit in 2011 fucking system can not even handle updates.

And for the first time in my life i downloaded xubuntu and installation was smooth updates were around 190 mb and she loves it……

I guess till pcbsd v9.1 is out this is the only way to use laptops.

Sad but true after 10+ years im not able to use redhat or so called fedora anymore…..

Note: Im thinking to remove fedora 15 from my laptop and install ubuntu as well . And the reason i installed fedora 15 was,  i got a new asus u46 and it is not possible to install fedora 14 on it. Installer just doesnt boot. Freebsd 8.2 does not have support for intel 6150 wireless cards. Its like crappy horror movie…..

Netbeans 6.9 javascript on fedora 15

September 6, 2011 Leave a comment

Netbeans 6.9 fedora version does not have javascript support. Such as javascript higlighting and open as javascript file option. And there is no way to enable it. There wasnt any problem with fedora 14. These fedora guys really touching on my nerves these days.

Ive been using redhat since v6.0 but this fedora shit is becoming more and more pain every other day.

I should get rid of fedora ASAP. Hopefully never look back again…..

Solution: Removed all netbeans packages . Downloaded source from, installed and problem fixed

By the way never use anything which is a fedora bundle, just install the from original source


Freebsd Installing ports via distcc

September 5, 2011 Leave a comment

Our main machine is freebsd 8.2 on ibm t22 which sucks at compiling anything:

CPU: Intel Pentium III (696.97-MHz 686-class CPU)
Origin = "GenuineIntel"  Id = 0x68a  Family = 6  Model = 8  Stepping = 10
real memory  = 402653184 (384 MB)
avail memory = 379080704 (361 MB)

So what we’ll do is;

Use distcc and compile ports with couple of machines (kind of clustering) in our network and hope it will be much more faster…..

Distcc lets you to compile any source across the network with as many machines as you want. Distcc has 2 modes pump and plain.

Plain mode:

With plain distcc, the preprocessor must always run locally because it needs to access various header files on the local machine
which may not be present, or  may  not be  the  same, on the volunteer.

Pump Mode:

In pump mode, distcc runs the preprocessor remotely too.  To do so, the preprocessor must have access  to  all  the files  that it would have accessed if had been running locally.  In pump mode, therefore, distcc gathers all of the recursively included headers, except the ones that are default system headers, and sends them along with the source file to the compilation server

We will use plain mode. Main machine freebsd other machines various linux servers. Mix and match……

Under freebsd we will also use bsdadminscripts which makes life a lot of easier when dealing with distcc with ports compile

If you do not have port tree installed than:

[root@freeslut ~]# portsnap fetch
[root@freeslut ~]# portsnap extract

if you already have ports:

[root@freeslut ~]# portsnap fetch update

install distcc:

[root@freeslut ~]# cd /usr/ports/devel/distcc
[root@freeslut ~]# make install clean

install ccache:

[root@freeslut distcc]# cd ../ccache/
[root@freeslut distcc]# make install clean

install bsdadminscripts:

[root@freeslut ccache]# cd ../../sysutils/bsdadminscripts/
[root@freeslut ccache]# make install clean

create buildflags.conf file

[root@freeslut ccache]# cp /usr/local/etc/buildflags.conf.sample /usr/local/etc/buildflags.conf

Add fallowing to /etc/make.conf (this tells make to use bsdscripts directives)

[root@freeslut ccache]# cat /etc/make.conf
# /usr/local/etc/buildflags.conf
BUILDFLAGS= /usr/local/share/bsdadminscripts/
.if exists(${BUILDFLAGS})
.include "${BUILDFLAGS}"

distcc is looking 3 places before it connects to any servers these are in order of:

A “host list” tells distcc which machines to use for  compilation. In order,  distcc  looks  in  the  $DISTCC_HOSTS environment variable, the user’s $DISTCC_DIR/hosts file, and the system-wide host  file.   If  no host list can be found, distcc emits a warning and compiles locally.

freebsd 8.2 does not create distcc hosts file and folder so we will create it:

[root@freeslut ccache]# mkdir /usr/local/etc/distcc/
[root@freeslut ccache]# touch /usr/local/etc/distcc/hosts

Define hosts 1:

Lets add some hosts to connect:

[root@freeslut ccache]# echo > /usr/local/etc/distcc/hosts
[root@freeslut ccache]# echo >> /usr/local/etc/distcc/hosts

Add check hosts:

[root@freeslut ccache]# distcc --show-hosts

Define hosts 2:

Also if you have your hosts links in your /etc/hosts file

[root@freeslut ccache]#cat /etc/hosts
----------    kuku    tirtil    sales

You can define your hosts with fallowing command (within bash shell)

[root@freeslut ccache]# export DISTCC_HOSTS="tirtil sales kuku"

I prefer this way because somehow other one is not working for me (Define host 1 system)

[root@freeslut ccache]# distcc --show-hosts

ok under linux machines distcc is seperated to 2 files server and client (im using fedora)

so install them by:

[root@tirtil ~]# yum install distcc distcc-server ccache

Edit server conf file to allow clients to connect

[root@tirtil ~]# vim /etc/rc.d/init.d/distccd

i’ll allow full 192.168.1 network so i add  “–allow” under options:

distccd editing

save it and start the service:

[root@tirtil ~]# service distccd start
Starting distccd (via systemctl):                          [  OK  ]

Repeat this step on every machine you want to use for compiling ports.

We are done with setup so lets start to compile something, on freebsd machine :

[root@freeslut ccache]# cd ../../www/apache22/
[root@freeslut ccache]# make

And in another console run fallowing command to see distrubution list:

[root@freeslut ~]# distccmon-text 5

77701  Compile                   tirtil[0]
77745  Compile                localhost[0]
77759  Compile                   kuku[0]
77811  Compile                 kaypak[0]

so thats all folks……………

Firefox Config

September 4, 2011 Leave a comment

As you know on linux/bsd firefox back button does not work. Annoying download complete msgbox and etc..

So lets customize firefox, browse to “about:config ” and change settings for back button:


Double click on it and change value to 0 other values are:

0 Pressing [Backspace] will go back a page in the session history and [Shift]+[Backspace] will go forward.

1 Pressing [Backspace] will scroll up a page in the current document and [Shift]+[Backspace] will scroll down.
(Default in Linux builds before 2006-12-07)

2 Any other integer value will simply unmap the backspace key. In Linux builds after 2006-12-07, the default is 2.

Then disturbing download window:

Double click and set it to false.

Private browsing:


Set it to true

And the rest play through as long as you can …..or till you can mess it up…