Wednesday, September 16, 2009

Boot ubuntu in text mode and have sound after running startx

I've disabled gdm by:
user@machine:~$ sudo update-rc.d -f gdm remove

probably not the nicest solution.

It is just the matter to add the user to the audio group, that's the way I did it, and it works. So I don't grant permissions to all users for audio devices.

user@machine:~$ find /dev -group audio -type c -exec ls -l '{}' ';'
crw-rw----+ 1 root audio 14, 0 2009-09-16 19:16 /dev/mixer
crw-rw----+ 1 root audio 14, 4 2009-09-16 19:16 /dev/audio
crw-rw----+ 1 root audio 14, 3 2009-09-16 19:16 /dev/dsp
crw-rw----+ 1 root audio 14, 12 2009-09-16 19:16 /dev/adsp
crw-rw----+ 1 root audio 14, 1 2009-09-16 19:16 /dev/sequencer
crw-rw----+ 1 root audio 14, 8 2009-09-16 19:16 /dev/sequencer2
crw-rw----+ 1 root audio 116, 7 2009-09-16 19:16 /dev/snd/controlC0
crw-rw----+ 1 root audio 116, 5 2009-09-16 19:18 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116, 6 2009-09-16 19:18 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116, 4 2009-09-16 19:16 /dev/snd/pcmC0D1p
crw-rw----+ 1 root audio 116, 3 2009-09-16 19:16 /dev/snd/seq
crw-rw----+ 1 root audio 116, 2 2009-09-16 19:16 /dev/snd/timer

We can see by default that our user doesn't belong to audio group

user@machine:~$ id -Gn user
user adm dialout cdrom plugdev lpadmin admin sambashare

So let's add user to group audio:

user@machine:~$ sudo usermod -a -G audio user

Now group audio has rw permissions over audio devices and after running startx we will hear sound.

Tuesday, September 15, 2009

don't run gnome on startup of ubuntu

sudo update-rc.d -f gdm remove

then you can startx manually if you want

if you want to revert

sudo update-rc.d gdm defaults

Give color to ubuntu bash login

http://siddharta.kubuntu-es.org/5852/resaltar-color-prompt-terminal-usuario-root

remember type:

source ~/.bashrc

after changing .bashrc files

Ubuntu text boot up and colorful

http://ubuntuforums.org/showthread.php?t=192675

Enable syntax color while editing with nano

Edit /etc/nanorc

and comment out all the last lines regarding different programming languages.

Add syntax color while editing with vi

sudo apt-get install vim-full

and then just add :syntax enable inside your vi /home/user/.vimrc

Friday, September 11, 2009

Ahí te dejo Madrid...

 

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.