Friday, November 11, 2011

Simple screencast shell script.

screencastr.sh /screencastr

You need ffmpeg installed.
 #!/bin/bash  
 if which ffmpeg >/dev/null; then  
   echo "ffmpeg exists"  
 else  
 echo does not exist  
 echo "sudo apt-get install ffmpeg"  
 exit  
 fi  
 echo "Name of video?"  
 read name  
 echo "Resolution?"  
 read ress  
 echo "FPS? Up to 25."  
 read fps  
 ffmpeg -f x11grab -r $fps -s $ress -i :0.0 /tmp/$name.avi  
 mv /tmp/$name.avi $HOME  
 echo "Your screencast was saved to: $HOME/$name.avi"   

You can either copy and paste the code, or you can download the script from here:
theshadowfog.com/screencaster

To install:
 sudo apt-get install ffmpeg  
 chmod +x screencaster  
 ./screencastr  

Monday, October 24, 2011

How to take screenshots in fluxbox.

First. Install gnome-screenshot (Or any other screenshot software)
sudo apt-get install gnome-screenshot
or
yum install gnome-screenshot

Or you might already have it installed.

Now...

1. cd .fluxbox
2. nano (Or whatever text editor you want.) keys
3. add to the bottom: None Print :ExecCommand gnome-screenshot

You can change print to whatever key you want. (Print = print scr on your keyboard.)

More info.

Monday, October 17, 2011

IRC server.

I bought a VPS today!

I am hosting a minecraft classic server and an irc server!

Connect to my PERSONAL IRC server at:
IP: 199.167.197.173
Port: 6667

How to search for process's with top & grep

Lets say we run a java program. And you couldn't find it by running the command 'top'...
run:
top | grep processnamehere


and then

pkill processnamehere


or

kill processpid


Or you could use a task-manager. :)
But if you are using ssh this is really useful.
Enjoy!
Manual Pages:

GREP
TOP

Thursday, October 13, 2011

R.I.P Dennis Ritchie

"When Steve Jobs passed away last week, people said that he had changed computing forever and called him one of the greatest inventors since Thomas Edison. I don't know whether or not this is true, but I can say with 100% certainty that this is a perfect description of Dennis Ritchie.
I can only hope that 100 years from now, when schoolchildren are taught about the great inventors of the digital age that somewhere in every gradeschool history textbook is a section about Ritchie and Thompson. They deserve no less." - (Reddit)

R.I.P Dennis Ritchie 


http://imgs.xkcd.com/comics/admin_mourning.png

Monday, October 10, 2011

How to setup tightvnc server on LINUX MINT.

It might work on other distros.



  1. sudo apt-get install tightvncserver
  2. cd ~/.vnc 
  3. ls
  4. nano (or your favorite text editor.) xstartup
  5. edit anything you need to.
  6. then run: tightvncserver
  7. go to your other computer. 
  8. run a vnc viewer. And enter in your IP.
THE END.