LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-01-2005, 05:50 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
A question on Alsamixer


Hi folks,

As "user" "alsamixer" only starts a black/grey scale window.

$ echo $TERM
xterm

Each time I have to run
$ export $TERM=xterm-color
first before I can start a color alsamixer window.

Which file I have to edit to correct this problem.

As "root" it started a color windonw.

TIA

BR
satimis
 
Old 10-01-2005, 04:30 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Look for the tinker-term.sh script in http://www.linuxfromscratch.org/blfs...s/profile.html
 
Old 10-02-2005, 08:43 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi kjordan,

Tks for your advice and link

Quote:
Look for the tinker-term.sh script in http://www.linuxfromscratch.org/blfs...s/profile.html
tinker-term.sh created. Still a black/grey scale window on starting "alsamixer" as "user'

$ cat /etc/profile.d/tinker-term.sh
Code:
# This will tinker with the value of TERM in order to convince certain
# apps that we can, indeed, display color in their window.

if [ -n "$COLORTERM" ]; then
  export TERM=xterm-color
fi

if [ "$TERM" = "xterm" ]; then
  export TERM=xterm-color
fi
$ ls -l /etc/profile.d/tinker-term.sh
Code:
-rwxrwxr-x  1 root root 250 Oct  2 20:01 /etc/profile.d/tinker-term.sh
$ cat /etc/bashrc
Code:
# Begin /etc/bashrc
# Written for Beyond Linux From Scratch
# by James Robertson <jameswrobertson@earthlink.net>
# updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>

# Make sure that the terminal is set up properly for each shel

if [ -f /etc/profile.d/tinker-term.sh ]; then
  source /etc/profile.d/tinker-term.sh
fi

# System wide aliases and functions.

# System wide environment variables and startup programs should go into
# /etc/profile.  Personal environment variables and startup programs
# should go into ~/.bash_profile.  Personal aliases and functions should
# go into ~/.bashrc

# Provides a colored /bin/ls command.  Used in conjunction with code in
# /etc/profile.

alias ls='ls --color=auto'

# Provides prompt for non-login shells, specifically shells started
# in the X environment. [Review the LFS archive thread titled
# PS1 Environment Variable for a great case study behind this script
# addendum.]

#export PS1="[\u@\h \w]\\$ "
export PS1='\u@\h:\w\$ '

# End /etc/bashrc
$ ls -l /etc/bashrc
-rw-r--r-- 1 root root 998 Aug 19 21:06 /etc/bashrc

Maybe there is some trick I did not discover. Any advice? TIA

BR
satimis

Last edited by satimis; 10-02-2005 at 08:45 AM.
 
Old 10-02-2005, 11:59 AM   #4
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
According to the manpage of bash it doesn't look in /etc/bashrc when it starts but in /etc/bash.bashrc. Try mv /etc/bashrc /etc/bash.bashrc
Afterwards start your Xterm again. Hopefully that works.
 
Old 10-02-2005, 12:17 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi hoes,

Quote:
Try mv /etc/bashrc /etc/bash.bashrc
# mv /etc/bashrc /etc/bash.bashrc

Started another xterm

$ alsamixer

Still a black/grey scale window.

satimis
 
Old 10-02-2005, 12:23 PM   #6
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
Looked in the Manpage of Bash, gave some other info:

Try this:
make a ~/.bashrc-file with this in it:
if [ -f /etc/bashrc ] ; then
. /etc/bashrc
fi


That's the last thing I can think about. Make sure you moved your bashrc back to /etc/bashrc
Once agian good luCK,
 
Old 10-03-2005, 12:00 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi hoes,

Quote:
Try this:
make a ~/.bashrc-file with this in it:
if [ -f /etc/bashrc ] ; then
. /etc/bashrc
fi

moved your bashrc back to /etc/bashrc
As "user' edited ~/.bashrc.

$ cat ~/.bashrc
Code:
....
....

if [ -f /etc/bashrc ] ; then
. /etc/bashrc
fi

# [ -r ~/.bash_profile ] && . ~/.bash_profile
# End ~/.bashrc
As root
# mv /etc/bash.bashrc /etc/bashrc

Started another xterm. As "user" run "alsamixer". Now this time a color window displayed.

Tks.

So the only remaining problem is "channel muted". After that I'll move on to creating LiveCD from the BLFS 6.1 built.

Tks again

BR
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no alsamixer chstani Linux - Laptop and Netbook 9 09-08-2005 06:08 PM
alsamixer evensen Linux - Software 6 11-22-2004 09:34 PM
alsamixer tgkspike Linux - Software 2 05-23-2004 07:04 PM
Alsamixer... Camasii Linux - General 1 12-03-2003 11:09 PM
alsamixer bobr Linux - General 2 07-30-2003 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration