Linux Tips

Voy a poner en el blog unos cuantos trucos/consejos/apaños/lo-que-sea para mejorar la “experiencia de usuario” que he ido recopilando en mis interminables viajes por Inet. Si alguien no entiende algo y necesita una traducción, sólo tiene que preguntar (para algo están los comentarios ;-)). Los tips de hoy los he recopilado de la página de Elijah Lofgren.


Enable USB devices to be mounted by users without adding entry in /etc/fstab

Install pmount.

Make GTK apps look better in Debian

  1. Run:
    apt-get install gtk2-engines-clearlooks gtk-theme-switch
  2. Run:
    gtk-theme-switch2
  3. Choose “Clearlooks” and click Apply.

Easily Run X Sessions over network without need for VNC!

Today, I worked for hours and hours trying unsuccessfully to get TightVNC or RealVNC working correctly. I finally came across a post on the Gentoo Forums that suggested running:
X -query $HOSTNAMEOFCOMPUTER
Sure enough, IT WORKED!. I found out more info about it by running X –help:
-query host-name contact named host for XDMCP
So now I’ve put X -query tux in the .bash_profile of the users on two of my low powered boxes. I then just login through the text console and the KDM login screen from my high powered box shows up. Also, the performance seems MUCH better than VNC ever was!

Enable XDMCP in KDM

XDMCP needs to be enabled in order for KDM to accept incoming remote X sessions.

Open /etc/kde3/kdm/kdmrc and find:

[Xdmcp]# Whether KDM should listen to incoming XDMCP requests.# Default is true

Enable=false

change it to:

[Xdmcp]# Whether KDM should listen to incoming XDMCP requests.# Default is true

Enable=true

Open /etc/kde3/kdm/Xaccess and change:

#*           #any host can get a login window

to:

*           #any host can get a login window

Easily take a screenshot by pressing the Print Screen key in KDE

Would you like to be able to easily take a screenshot just by pressing the “Print Screen” key? It’s not just possible, it’s very easy!

Here’s how:

  1. Open up the KDE “Control Center” (kcontrol).
  2. Under “Regional & Accessibility” go to “Keyboard Shortcuts”.
  3. Go to the “Command Shortcuts” tab.
  4. Select “Graphics->More Applications->KSnapshot”.
  5. Under “Shortcut for Selected Command” select “Custom”.
  6. Press your “Print Screen” key.
  7. Click the “Apply” button.

Speed up Konqueror

From: Speed up Konqueror

Add the following line to /etc/environment:

KDE_NO_IPV6=TRUEThen restart Konqueror and it should be much faster.🙂

Get Gmail working in Konqueror

Set Konqueror to identify as Firefox.

Convert AVI or ASF to MPEG

Modified: 2007-06-04 12:48:38

From Convert any video file to DVD with open source tools

Run this command to convert an ASF file to MPEG:

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=18:aspect=4/3:

acodec=ac3:abitrate=192 -ofps 30000/1001 -o your_video.mpg your_wmv_file.asf

See HOWTO mencoder divx to dvd: Using MEncoder for an explanation of what all those parameters mean.

Now you can use something like KMediafactory to create a DVD out of it.🙂

Get playback of embedded MIDI files working in Firefox (Debian)

Install timidity and newest mozplugger from http://mozplugger.mozdev.org/. Find the newest Debian (.deb) package from http://dagobah.ucc.asn.au/mozplugger/ and use that.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: