Can you tell the difference?
So, it happened again: After weeks of faithfully serving my ears, XMMS decided to annoy me by playing a song from the playlist, but not moving to the next song after that. Last time that happened, I simply deleted the config-files and started XMMS again. This time, I want to find out if I can do something more subtle to cure the condition if it ever arises again.
Personal configuration files are usually hidden
and hidden files in Linux are those that start with a single dot. So, my XMMS-preferences are stored in ~/.xmms. Instead of simply deleting them and have them recreated the next time I start the application, I move them to a place where they will not be found.
stw@laptop:~> mv .xmms xmms-kaputt
will ‘unhide’ them from me, while it ‘hides’ them well enough for XMMS.
Recreate and examine
Next, I start xmms and terminate it again. So I have some brand new default preferences in ‘.xmms’
Since I do not intend to go through each line in each file, I first make an educated guess in which file the options are stored.
stw@laptop:~> ls .xmms/
config menurc Plugins Skins xmms.m3u
So I need to compare the file named ‘config’. But even that I do not intend to do myself. Let that computer do the working!
stw@laptop:~> diff .xmms/config xmms-kaputt/config
15c15
< no_playlist_advance=FALSE
---
> no_playlist_advance=TRUE
19,20c19,20
< player_x=840
< player_y=39
---
> player_x=850
> player_y=33
37,38c37,38
< playlist_x=840
< playlist_y=25
---
> playlist_x=850
> playlist_y=19
[...]
While all those numbers simply indicate that I have moved the window differently, the first lines hold the intresting information: There is an option called ‘no_playlist_advance’. I probably hit a key while XMMS was active that is a shortcut to this option. So the next time I have the problem, I can search the dialogs to unset it, or I go to the config-file and change it myself. No more need to erase all preferences I have set…
More goodies
This recepie works with all applications that store their configuration in plain text. Under Linux, most apps do so. So if any program behaves strangely, safe the configuration before starting over.
Of course, you can do many neat thing with ‘diff’. See the manpage for details.
Copyright (c) by the authors.
Prior to editing, authors agreed to license their contributions by the terms of the GPL.
See our licensing page for details.
Linux® is a registered trademark of Linus Torvalds.
tutorials/advanced/realworld/can_you_tell_the_difference.txt · Last modified: 2008/07/20 19:08
Welcome to LinuxBasics.org - The online community that helps people to get Linux installed and running.
During this tour, we will guide you through our website, which has many facets which wait to be explored
The biggest project we are running is our Linux course, based on the LBook.
The book is stored in wiki-format, which enables us to update and correct it as we go.
Discussion for the course is on our Forum
Our Forum is used for discussion of Linux and for questions and answers.
Search the mailing-list that was used prior to the Forum.
The questions and answers from the list are stored in the list's archives in order to help others with the same problems.
Every weekend, we meet to chat in IRC. These meetings are NOT mandatory, but are a nice chance to get to know each other better.
IRC is also a great tool to solve many problems, since it is very quick and easy to ask for more details if you need them.
The tutorials are one of the oldest sections on the LBo-website.
Here you find explanations on how to do specific tasks in Linux. Many of the tutorials were created after a certain problem
has been discussed (and usually solved :) on the mailing-list.
The tutorials are categorized in
In the links section, you find outbound links to other valuable resources.
One of our later additions to the site. We maintain a mirror of the Linux Documentation Project. This is our contribution to the "home of the HOWTOs"
Another later addition is the LBlog which focuses on how to do stuff on the Linux Desktop. It begins with the basics on installing Ubuntu.
Using the integrated site-search, you can search the tutorials, the LBook and all other wiki-pages
Simply type the search term into the box in the upper-right corner of our webpages
As a community, we depend on your feedback and collaboration. So, if you have something to share with others, please contact us. If you have a suggestion for a topic you would like to see covered here, please add it on the Wishlist.
There are many ways to contribute: You can answer questions on the Forum, you can write a complete tutorial or just a step-by-step documentation on how you completed a specific task using linux. Ask questions if the information on this site is not clear, tell us if we got something wrong, spell-check our writings, whatever.
We are looking forward to meeting you at LinuxBasics.org
Anita, Jisao, Sam and Stefan