LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-14-2007, 03:30 PM   #1
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Rep: Reputation: 30
General: Xterm(shell) and Sound


Hi

Long time since last post here, but atm i am refreshing up my old Slackware skills and getting back into the big world of slack/Linux. Was using it full time for some years but i was over at the dark windows side for some years now lately.

So two things that are bugging me atm:
Xterm:
When i start a new xterm(whatever term) i get
Code:
bash-3.1#
instead of
Code:
user@mybox:
I know that if i do
Code:
source /etc/profile
i get the user@mybox: but where can i set this up as an default, right now i use the command every time i launch a shell and that is too much work just to get a shell opened:P

Another thing is that i dont get any sound, lspci says:
Code:
root@Iluvatar:/home/loath# lspci | grep audio
00:13.0 Multimedia audio controller: nVidia Corporation MCP04 AC'97 Audio Controller (rev a1)
So it gets discovered, but it dosnt work to play sounds with program, so what steps do i have to do?(any howto or a walktrough bye any of you guys would be super)

After this is said, i would like to say thank you! All you guys here at the LQ but especially at the Slackware community is doing a magnificent job! Keep it up!

Thanks
Killi
 
Old 05-14-2007, 03:34 PM   #2
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
Add:
Code:
export PS1='\u@\h:\w\$ '
to your .bashrc file.
Also read the bash manpage for more info.

For sound: look around in alsamixer

Last edited by pdw_hu; 05-14-2007 at 03:36 PM.
 
Old 05-14-2007, 03:38 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You want to treat each terminal as a login shell, which will run the profile settings each time. I am not sure how you would do this in plain xterm, but I know there are other terminals that either allow that as an option or do it by default, like Eterm or the XFCE terminal.

As for the sound issue, you should start by running "alsaconf" which will search for your sound card and setup the correct ALSA drivers to load. Well, hopefully that is what it will do.
 
Old 05-14-2007, 03:44 PM   #4
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
~/.Xresources
Quote:
!xterm
XTerm*jumpScroll: on
XTerm*multiScroll: on
XTerm*ScrollBar: false
Xterm*ForeGround: grey
Xterm*Background: black
Xterm*CursorColor: red
XTerm*saveLines: 500
XTerm*sunFunctionKeys: on
XTerm*cursorColor: red
XTerm*FaceName:
XTerm*loginShell: true
XTerm*pointerColor: red
you are welcome
 
Old 05-14-2007, 03:45 PM   #5
Nem
Member
 
Registered: Mar 2007
Location: United States
Distribution: Slackware 11.0
Posts: 88

Rep: Reputation: 15
Oh for the sound try running alsaconf
to try setup the card.If you can't setup the card
you might be missing the right module. read this
http://www.slackware.com/faq/do_faq.php?faq=distro
Then if you do manage to setup
the card with alsaconf make sure you run alsamixer
and unmute and add volume.Then run alsactl store
as root after ajusting the volume with alsamixer.
 
Old 05-14-2007, 03:45 PM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
alsaconf
alsamixer (unmute sound)
alsactl store
 
Old 05-14-2007, 03:45 PM   #7
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
Was really looking for what pdw said about bash, that solved that issue
But for the sound alsaconfig didnt find any suitable sound driver, is there any other tool like this?
Or do i maybe need to recompile to get the module to load?

Killi
 
Old 05-14-2007, 03:48 PM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Which kernel do you use?

I suggest to update alsa and recompile.
 
Old 05-14-2007, 03:51 PM   #9
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
Im using 2.6.18, couldnt get bootsplash to work on 21, so used 18.
Ill try to update alsa but i do think i have the newest version of it.

Killi
 
Old 05-14-2007, 04:22 PM   #10
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
Ive now tried to recompile and to install latest alsa drivers, but still this isnt working

Any other suggestions?

Killi
 
Old 05-14-2007, 04:37 PM   #11
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
try modprobe snd-intel8x0
 
Old 05-15-2007, 02:59 AM   #12
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
I couldnt locate that module for 2.6 but for 2.4 i found it, has it gotten a new name?
 
Old 05-15-2007, 03:11 AM   #13
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
It should be there.
Did you compile alsa as module?
 
Old 05-15-2007, 03:15 AM   #14
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
Oh do i have to compile as module?
that i havnt done....
 
Old 05-15-2007, 03:21 AM   #15
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Modprobe command loads module into the kernel. Alsaconf most probably searches for module too, so you also don't get sound driver found automatically. There is no must to have it as module, but I don't know how to make it work as built-in.
 
  


Reply



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
general questions re shell, prompts, X carlos88 Linux - Newbie 1 07-23-2006 01:39 PM
what is wrong with the shell/perl command xterm..- alix123 Programming 1 08-14-2005 08:06 PM
BASH question(or shell in general) jrmann1999 Linux - Software 4 05-11-2005 05:16 PM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
shell script general question exodist Linux - Software 10 11-18-2003 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:32 AM.

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