Linux.com

Community Blogs



Ubuntu 9.04 X.org Bug with ATI Radeon - Solution

The newly released Ubuntu 9.04 is fantastic in its functionality. But there are some bugs with the new X.org on ATI Radeon graphic cards. Because of this bug, any application refreshes very slowly. If you scroll in firefox, you'll experience very slow and laggy scrolling. To rectify this bug, you have to add the following line in the devices section in the xorg.conf file.

  Option "MigrationHeuristic" "greedy"

This will rectify all the problems and now Juanty will start working at its best.

PS: I thank the author of this page for providing the solution to the Xorg problem

 

 

$:Greetings programs-

Greetings programs,

 I have to say that I am really enjoying the new site.  This was a great idea putting all of this together in one place.  Hopefully something useful can come out of the exchange of ideas and view points.  As always I hope that this new found "Library of Alexandria" for all things Linux will be used for positives.  My suggestion to the community as a whole is leave the baggage at the door.  We are all open source users here, not one distro or another.  Leave the holy wars somewhere else and make this hive of openiness work.  This is a great site and I hope that it really turns into something special.

 

Windows 7? Thanks I'll keep my ubuntu

After installation it took only 2 hours for me to delete it.  Yes, talking about windows 7 rc. Even my 3 year old son asked why the computer was so loud.
 

Some Useful VI Tips

vi tips that I find useful.

 :make will run the make file in the current directory, and load the file where the first error occurs at the location that the first error occurs

 

% will match brackets.

=% will indent brackets and braces (very useful)

:e. will select a file to edit from the working directory

 Some more general VI tips

To move your cursor without having to move your hands, use hjkl where h is left, j is up, k is down and l is left. This is also used when switching between windows after doing ctrl-w.

 go to a line

:10000

will go to line 10000

 

search

/find text

 

(note that no colon is needed)

 

search and replace

:%s/find text/replace text/g

 

the g at the end means global. 

 

 ctrl-w ctrl-s  

ctrl-w is window command mode, ctrl-s is split horizantlaly

 after that you can

edit a new file

:e file

or go to the next buffer if you are already editing more then one file

:bn 

To search for a file edit the directory

:e .

 this will allow you to select a file from within the directory. (use hjkl to move around)

 

To repeat a command use a period. For example if you inserted some text, then moved to another part in the file, pushing . will insert the text again.

 Macro Record

q letter edit sequence q

Macro playback

@ letter

 

Common letter commands

i is insert

I is insert from the beginning of the line

a is append after the current letter

A is append at the end of the line.

 

 

 

 

Hi!

Nice layout :)
 

Hi

Hi
 

Hello World

So here I am, on Linux.com... I don't expect to use this blog much, since I don't have the energy to manage multiple blogs. Would sure be nice if I could just pipe the "Ubuntu" or "Linux" categories from my real blog into here, but such is life. Nevertheless, I hope this site does well. It looks promising.
 

–ü–µ—Ä–≤—ã–π –ø—Å—Ç–æ

–ó–∞–±–∞–≤–Ω—ã–π –¥–∏–∑–∞–π–Ω)) —â–∞—Å –∫—Å—Ç–∞—Ç–∏ –¥—É–º–∞—é —Å—Ç–∞–≤–∏—Ç—å –ª–∏ –Ω–æ–≤—ã–π —É–±—É–Ω—Ç—É –Ω–∞ —Å–≤–æ—é –º–∞—à–∏–Ω—É? —Å–µ–π—á–∞—Å —É –º–µ–Ω—è —É—Å—Ç–∞–Ω–æ–≤–ª–µ–Ω crunchbang.. –Ω–æ –æ–Ω –º–Ω–µ —É–∂–µ–Ω –Ω–∞–¥–æ–µ–ª)) —Ö–æ—á—É —É–±—É–Ω—Ç—É.. –∏ –Ω–æ–≤—ã–π –º–æ–Ω–∏—Ç–æ—Ä.. –∏ –Ω–æ–≤—ã–π –∫–æ–º–ø))) –¥—É–º–∞—é –∑–∞–∫–∞–∂—É –∫–∞–∫-–Ω–∏–±—É–¥—å —Å–µ—Ä–≤–µ—Ä–Ω—É—é —á–∞—Å—Ç—å –∫–æ–≥–¥–∞ –Ω–µ –≤–ª–æ–º –±—É–¥–µ—Ç —Ä—ç–≥–Ω—É—Ç—å—Å—è –Ω–∞ —Å–∞–π—Ç–µ –∑–∞–∫–∞–∑–∞.
 

Enemies of Change

I understand people using Linux and not liking it.  what i don't get are people who will refuse to even think about testing it just because it is free and there is no way it can be as good as proprietary OS's. no matter how hard you try, how many cool screenshots or videos you show them, or how much you spend time explaining to them, they just can't seem to understand how a free software or OS can be as good or even better than the ONLY system they used their whole life.

 Have you had that type of people in your life? did anything you did or said make a difference at the end?

 

please share your thoughts .

 

How to Merge Subtitles to a Movie

My refusal to use Windows is what makes me learn to do everything using only Linux, even though it usually requires long times in front of the computer researching and tweaking the hints google.com/linux gives me. But, at least I can say that at the end the results are satisfying, I end up learning more about Linux and how powerful a command line application can be compared to a most GUI application. I must admit that I do prefer GUI in the majority of the cases, is just that from time to time I am amazed by the power of the CLI. My latest adventure was learning how to merge a .srt (movie subtitle file) with a .avi (movie file). How I did it? Well, first we need to have mplayer installed, which on Arch Linux can be done as follows:

# pacman -Sy mplayer codecs

After that you might need to create the mplayer folder (if it isn't there already) so we can add the fonts we would like to use for the displaying of the subtitles in the movie, with that purpose we issue the following command:

$ mkdir .mplayer && cp /usr/share/fonts/TTF/LiberationSans-Regular.ttf .mplayer/subfont.ttf

Change the LiberationSans-Regular.ttf with the font you want to use. If you want to use the Liberation font, install the ttf-liberation package which is available in the community repository.

# pacman -Sy ttf-liberation

OK, we have gone a bit off the curse here with the fonts thing, but by now we should have the mencoder application installed, hopefully this makes us still on track for the merging that is about to happen. The mencoder application is part of the mplayer application we just installed, mencoder is the tool we are going to use to merge the subtitles with the movie. Now, to the better part of this tutorial, how we merge the subtitles with the movie files, the following script should do the trick:

$ mencoder -o fileiwantatend.avi -sub subtitlesfile.srt -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell theactualmovie.avi

The first .avi we refer to in the above script is the file we want to create at the end of the merge (the resulting file), which could be named movie_subtitle.avi, now, the .srt file referred to in the script is the subtitles file which do not necessarily need to be on .srt format, it could be for example in .sub format, and the latests .avi file referred to in the command is the original movie file which you want to merge with the subtitles.

This command is very simple and has few options so it preserves the original movie file quality without much alterations, if any.
Legend:
# = as root
$ = as user

 

Useful tool for passwords generation

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
 
Page 126 of 131

Upcoming Linux Foundation Courses

  1. LFD331 Developing Linux Device Drivers
    25 Aug » 29 Aug - Virtual
    Details
  2. LFS422 High Availability Linux Architecture
    08 Sep » 11 Sep - Raleigh, NC
    Details
  3. LFS426 Linux Performance Tuning
    08 Sep » 11 Sep - New York
    Details

View All Upcoming Courses


Who we are ?

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

More About the foundation...

Frequent Questions

Join / Linux Training / Board