Linux.com

Linux.com Blog Entries

For the community by the community

Tags >> tips

Tip: How to fix gDesklets in Ubuntu 9.04!

Posted by: Paul C. Snider

Tagged in: tips

Paul C. Snider

Found this while browsing the web, thinking how I miss my gDesklets program.   I kept getting the same error stating that there was no directory available or something similar.  I forget the error because I was able to fix just by doing the following step:

sudo apt-get install python2.5


Split and Join tar.gz file on Linux

Posted by: Muhfi Asbin Sagala

Tagged in: ubuntu , tips

Muhfi Asbin Sagala

One time, when we want to uploading a file, we are having difficulties because the file size is too large and our internet speed is so slow. Therefore, we must split our file into some small parts so we can upload it per small parts. How to do this?

 First, we must compress the file with tarball archiver.


I discovered something whilst trying to crop and re-size a video with FFMPEG: the order of switches actually matters! I couldn't find any mention of this in the documentation, and nowhere could I find an explanation of why my video was being cropped after it was resized. The video I was re-encoding had some fuzziness at the top, and an ugly black border down the right-hand side. I wanted to remove these, but have a fixed output size.

Here's an example. Our input file, input.avi is a 640x480 video.


rsync --include-from=/tmp/include.txt --exclude-from=/tmp/exclude.txt -aRvm ./src /tmp/dest

include.txt
>>*.pdf

exclude.txt
>>*.*

 






Useful tool for passwords generation

Posted by: Taras

Tagged in: Tutorial , tips , console , command line

Taras
pwgen - generate pronounceable passwords

Example of usage:
pwgen -A1 13
A - use small case
1 - one pass per line
13 - count of symbols in pass

If we have one Ip Public, but our web server more then one. How to configuration with apache webserver ? Tukang Nggame have tips. Follow example network topology :

wbsvr-1,wbsvr-2,etc -----main-server(public)--------client-browser

wbsvr-1 is a local webserver 1, example http://192.168.1.1/tukang-nggame/
wbsvr-2 is a local webserver 2, example http://192.168.1.2/tukangnggame/
main-server(public) is main web server, exh http://www.example.com


In Main Server use Apache web server and Isntall mod proxy-html. This command at console :

#apt-get install libapache2-mod-proxy-html

Enable that module (make link module) with command at console :
 
 #ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/proxy_html.load
 #ln -s /etc/apache2/mods-available/proxy_http.conf /etc/apache2/mods-enabled/proxy_html.conf

Edit configuration /etc/apache2/apache2.conf (main server)


Order Deny,Allow
Allow from All
ProxyPass http://192.168.1.1/tukang-nggame/
ProxyPassReverse   http://192.168.1.1/tukang-nggame/
< /Location >
























Become a Linux Foundation Member

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Members / Staff / Board