Linux help, s'...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Linux help, s'il vous plait

32 Posts
16 Users
0 Reactions
92 Views
Posts: 77347
Free Member
Topic starter
 

I've got an old Dell laptop here which I've randomly decided to turn into an emulator for retro gaming goodness.

I've installed Ubuntu 14.04 server for a minimalist install, got Samba going to copy stuff to it easily, and that's all good. Added startx (which frankly confuses the carp out of me) as it seemed to be a prerequisite for Fuse SDL. After much wailing and gnashing of teeth I've got that working too and the emulator runs nicely.

Problem is, there's no sound. As a Wintel bod I don't know how to even begin troubleshooting this, and all the guides I can find online relate to things like frobbing the mixer to route sound over HDMI on a Pi or some such.

Help me STW, you're my only hope.

[img] [/img]


 
Posted : 02/04/2015 9:37 am
Posts: 11605
Free Member
 

Could be that since you have server the repositories are different? I'd imagine that altering your repositories to the standard ones might give results, I'd try a live USB first to confirm though.


 
Posted : 02/04/2015 9:54 am
Posts: 8177
Free Member
 

Have you seen this?

http://www.unixmen.com/2012003-howto-resolve-nosound-problem-on-ubuntu/

Answer largely seems to be - "turn it up" 🙂


 
Posted : 02/04/2015 9:58 am
Posts: 0
Free Member
 

I would assume Ubuntu server doesn't have any sound preconfigured - it's not really necessary for a server. Manually configuring it is likely to be a nightmare. I'd probably go for a lightweight desktop install of Ubuntu e.g. perhaps with [url= http://xubuntu.org/ ]XFCE[/url], which I imagine will have sound working without any configuration required.


 
Posted : 02/04/2015 10:28 am
Posts: 2086
Free Member
 

Agreed - it's unlikely the server edition would have the required drivers for sound as it's not really needed. Most people would just interface with it over the CLI.


 
Posted : 02/04/2015 10:32 am
Posts: 356
Full Member
 

Before you do anything as drastic as reinstalling; try installing the pulseaudio package..

sudo apt-get install pulseaudio


 
Posted : 02/04/2015 10:33 am
Posts: 356
Full Member
 

Oh; and the repositories for server and desktop are exactly the same. It's just which bits are installed by default that differ.


 
Posted : 02/04/2015 10:34 am
Posts: 2086
Free Member
 

Looks like you might need to add yourself to the audio group?
[url= http://askubuntu.com/questions/8362/setting-up-audio-on-a-server-install ]http://askubuntu.com/questions/8362/setting-up-audio-on-a-server-install[/url]


 
Posted : 02/04/2015 10:37 am
Posts: 11605
Free Member
 

Lubuntu is good but can be a bit of a pain when it comes to troubleshooting. Nothing major but things are just ever so slightly different which makes quick fixes a PITA.

Wait, XFCE would be Xubuntu wouldn't it?


 
Posted : 02/04/2015 10:38 am
Posts: 6194
Full Member
 

wouldn't have picked server for a minimal install, but usually there's a minimal iso and work from that.

tbh, just installing the ubuntu desktop metapackage (for ubuntu's own desktop), or xubuntu-desktop, or kubuntu-desktop, or... depending on which GUI desktop environment you want, should pull in *everything* you need, and give the equivalent of a fresh ubuntu (plus some bonus server stuff).

edit: and add the switch --noinstallrecommends (something like that) so it only installs stuff that's needed, and not all the other stuff it thinks you really ought to have as well


 
Posted : 02/04/2015 10:45 am
Posts: 0
Free Member
 

Reinstall the desktop version would be my advice. Or spend the next few weeks apt-get'ing all the libraries your emulators are going to need anyway.


 
Posted : 02/04/2015 10:52 am
Posts: 12072
Full Member
 

Another vote for the "do the default Ubuntu install" thing - it doesn't actually install that much unnecessary crap, and if you're a linux newb it would be a lot easier...


 
Posted : 02/04/2015 11:01 am
Posts: 77347
Free Member
Topic starter
 

Could be that since you have server the repositories are different?

Different from what?

Far as I'm aware, the only difference between Server and Desktop is in the amount of guff that gets installed on a default install.

Have you seen this?

Answer largely seems to be - "turn it up"

That's all a bit GUI and I don't have one, but the theory might be, erm, sound.

I would assume Ubuntu server doesn't have any sound preconfigured - it's not really necessary for a server.

Trousers. You may have a point there. I was just trying to get away with having the bare minimum for a short boot time. I'll have a rummage.

try installing the pulseaudio package.
Looks like you might need to add yourself to the audio group?

I'll try those too. Ta.

do the default Ubuntu install

Yeah, I hear you. But part of the reasoning for doing this though (other than an irrational desire to play Jet Set Willy) was to use it as an opportunity to play with Linux. I'm not completely green, but I need more experience and familiarity than I currently have. I'm trying to remove my reliance on a GUI as much as possible; I'm not necessarily aiming for 'easy' so much as getting a better understanding of what's going on.

Food for thought, thanks all.


 
Posted : 02/04/2015 11:13 am
Posts: 0
Free Member
 

[quote=stevehine ]Before you do anything as drastic as reinstalling; try installing the pulseaudio package..
sudo apt-get install pulseaudio

Is the correct answer. I think 100% of the time I've had no sound it's been because pulseaudio wasn't installed (it tends to bring in all the other required stuff as dependencies).

Though to be honest I'd also agree with everybody else that for your requirements it makes far more sense to have a workstation desktop install - I use server installs all the time, but only for when I don't want to do any graphical or sound stuff. I can't see any obvious disadvantages - something like Lubuntu (which would be my choice if using Ubuntu, though personally I prefer the RHEL family, ie Fedora LXDE) doesn't need much more disk space or overhead than a server install, and you're probably adding all that back in anyway by the time you've got stuff working. You can - and I do - use a workstation install to act as a server.


 
Posted : 02/04/2015 11:16 am
Posts: 0
Free Member
 

[quote=Cougar ]I'm trying to remove my reliance on a GUI as much as possible;

So install desktop and open a terminal window to do stuff. Which is what I do all the time - very rarely use the GUI for anything, but it's there if I need it, and it means you have all the multimedia stuff installed.


 
Posted : 02/04/2015 11:20 am
Posts: 77347
Free Member
Topic starter
 

Yeah, but then it's too easy just to go 'click'. It's like knowing you've got cake.


 
Posted : 02/04/2015 11:23 am
Posts: 401
Free Member
 

Bin everything and go down this route instead

[url= http://www.lakka.tv/ ]Lakka[/url]


 
Posted : 02/04/2015 11:25 am
Posts: 77347
Free Member
Topic starter
 

Hah. I might have a play with that later, ta.


 
Posted : 02/04/2015 11:28 am
Posts: 77347
Free Member
Topic starter
 

So, looking at prezet's link, it's talking about "alsa". Googled to find out what that is.

ALSA is part of the Linux kernel, while PulseAudio is middleware, a part of the lower levels of the desktop stack. [b]So is SDL.[/b]

...
In a typical installation scenario under Linux, the user configures ALSA to use a virtual device provided by PulseAudio. Thus, applications using ALSA will output sound to PulseAudio, which then uses ALSA itself to access the real sound card.

So that makes sense, assuming that ALSA has found the card in the first place. How do I verify that? Ah, Google, right.

"So is SDL" - is this pertinent? The emulator is an SDL variant; does that mean it should talk directly to ALSA? SDL is basically Linux's answer to DirectX, right? Ie, the app will be using SDL [i]instead [/i]of PulseAudio?


 
Posted : 02/04/2015 11:35 am
Posts: 91000
Free Member
 

I was just trying to get away with having the bare minimum for a short boot time

I'd suggest Lubuntu. It's so much lighter weight than Windows that boot time will be quick whatever. You've given yourself a world of pain for little gain 🙂


 
Posted : 02/04/2015 11:35 am
Posts: 7887
Free Member
 

It's like knowing you've got cake.

You think you have cake. You may well be wrong.


 
Posted : 02/04/2015 11:37 am
Posts: 77347
Free Member
Topic starter
 

(-:

Following the suggestions at https://askubuntu.com/questions/8362/setting-up-audio-on-a-server-install

The various commands return what look to be valid responses, it's finding the hardware etc.

Adding myself to the user group "audio" solved my problem. I determined this was the problem when

sudo aplay -l
returned results about the audio card, but

aplay -l
returned nothing.

Command to run:

sudo useradd -aG audio your_username
You have to log out to get the change working.

This is what I'm seeing too, though the suggested command syntax isn't correct. Digging.


 
Posted : 02/04/2015 11:45 am
Posts: 77347
Free Member
Topic starter
 

Ah. Usermod is what I need it seems.


 
Posted : 02/04/2015 11:47 am
Posts: 1070
Full Member
 

[img] [/img]


 
Posted : 02/04/2015 11:47 am
Posts: 6194
Full Member
 

was gonna say usermod -a -G ...
(but don't have a linux box handy to try)

PS if the GUI was there it's just some ticky boxes 😉 (and that image above is then nonsense)


 
Posted : 02/04/2015 11:50 am
Posts: 77347
Free Member
Topic starter
 

(and that image above is then nonsense)

Yeah, the chauffeur is missing from the first image.


 
Posted : 02/04/2015 11:52 am
Posts: 7887
Free Member
 

It's the future 😉

[img] ?w=600[/img]


 
Posted : 02/04/2015 12:10 pm
Posts: 77347
Free Member
Topic starter
 

Well, the ALSA mixer control was set to zero, which I've now changed. It's still mute though. What an embuggerance.


 
Posted : 02/04/2015 12:33 pm
Posts: 0
Full Member
 

What model Dell? Just in case you are banging your head against a wall (thoguh it sounds like you're detecting the hardware now?)


 
Posted : 02/04/2015 12:38 pm
Posts: 356
Full Member
 

could be the pulseaudio volume control ? Assuming you've installed pulseaudio; try install puvacontrol which will give you a pulseaudio mixer gui


 
Posted : 02/04/2015 12:46 pm
Posts: 77347
Free Member
Topic starter
 

Swearwords. Sussed it.

Changing the volume in alsamixer is all well and good, but it transpires that [MM] at the bottom means 'muted' irrespective of any little coloured bars above it. Pressing M changes it it [OO] and, hey, audio!

I think what I'm going to do next is flatten it and rebuild so that I can work out which steps were unnecessary.

Growl.


 
Posted : 02/04/2015 12:48 pm
 dobo
Posts: 3
Free Member
 

cougar if you want to get away from the gui but still wants some graphical interaction at times check out webmin so you can access the server from a remote browser
mostly i use putty from windows to ssh to the server though
for old laptops i prefer xubuntu for the gui


 
Posted : 02/04/2015 11:08 pm
Posts: 0
Free Member
 

[quote=dobo ]mostly i use putty from windows to ssh to the server though

Is what I mostly do - though I'm mostly working with several server VMs, and it's not so relevant for what Cougar's doing where he kind of needs to be on the machine it's running on.


 
Posted : 02/04/2015 11:14 pm

6 DAYS LEFT
We are currently at 95% of our target!