Archive

Archive for the ‘Uncategorized’ Category

Kill multiple process with name

January 3, 2014 Leave a comment
kill -9 `ps -ef | grep processname | grep -v grep | awk '{print $2}'`
Categories: Uncategorized

Convert avi files to flv

October 19, 2013 Leave a comment

Convert avi to flv with memcoder:

mencoder -forceidx -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=720:480 -o testvideo.flv testvideo.avi

Convert ogv to avi with memcoder:

mencoder testvideo.ogv -o testvideo.avi -oac mp3lame -ovc lavc

 

Categories: Uncategorized Tags: ,

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.

Steps:

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 192.168.1.5

-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 http://get.fedoraproject.org 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 http://spins.fedoraproject.org/xfce/ 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 netbeans.org, installed and problem fixed

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

 

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:

browser.backspace_action

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:

browser.download.manager.showAlertOnComplete

Double click and set it to false.

Private browsing:

browser.privatebrowsing.autostart

Set it to true

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