Followers

Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Saturday, August 28, 2010

How to run programs on startup when login into GNOME - Ubuntu Tips n Tricks

How to run programs on startup when login into GNOME

  • System -> Preferences -> Sessions
  • Sessions
Startup Programs Tab -> Add/Edit/Delete

How to turn on Num Lock on GNOME startup - Ubuntu Tips n Tricks

How to turn on Num Lock on GNOME startup

sudo aptitude install numlockx
sudo cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup
gksudo gedit /etc/X11/gdm/Init/Default
  • Find this line
...
exit 0
  • Add the following lines above it
if [ -x /usr/bin/numlockx ]; then
 /usr/bin/numlockx on
fi
  • Save the edited file

How to restart GNOME without rebooting computer - Ubuntu Tips n Tricks

How to restart GNOME without rebooting computer

  • Save and close all opened applications
Press 'Ctrl + Alt + Backspace'


or
sudo /etc/init.d/gdm restart

or
If these tips did not help read #System requests (What to do if your system is unresponsive)

How to enable smooth fonts - Ubuntu Tips n Tricks

How to enable smooth fonts

gedit ~/.fonts.conf
  • Paste in this text:
<?xml version=”1.0” ?>
<!DOCTYPE fontconfig SYSTEM “fonts.dtd”>
<fontconfig>
<match target=”font”>
<edit name=”autohint” mode=”assign”>
<bool>true</bool>
</edit>
</match>
</fontconfig>
  • You’ll have to log out and back in to see the difference.

How to enable lame for FFMPEG - Ubuntu Tips n Tricks

KINO FLVs silent? You need to recompile FFMPEG with LAME enabled. FFMPEG can be installed via apt-get as a package, but is not able encode MP3, which is the audio stream in FLV video (like Google & YouTube).
sudo apt-get build-dep ffmpeg
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 \
liba52-0.7.4-dev libx264-dev checkinstall build-essential gcc
  • Download and extract FFMPEG source to current working directory
sudo apt-get source ffmpeg
  • Compile FFMPEG from source
cd ffmpeg-*
sudo ./configure --enable-gpl --enable-pp --enable-vorbis --enable-libogg \
--enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug \
--enable-mp3lame --enable-faad --enable-faac --enable-xvid --enable-pthreads \
--enable-x264

maybe try instead = 
sudo ./configure --enable-gpl --enable-pp --enable-libvorbis --enable-libogg \
--enable-liba52 --enable-libdts --enable-dc1394 --enable-libgsm --disable-debug \ 
--enable-libmp3lame --enable-libfaad --enable-libfaac --enable-xvid --enable-pthreads \
--enable-x264


sudo make
sudo checkinstall [accept defaults, set version to 3:0.cvs20060823-3.1ubuntu2]
If an application you are using employs FFMPEG to encode FLV, it should now work properly. You can also call FFMPEG directly from the command line. The extension/suffix of the outfile tells FFMPEG which audio or video format to encode to.
ffmpeg [-i infile] [outfile]