HOWTO - su, sudo and gentoo.

linux 3 Comments »
italiano

By default, in Gentoo, su and sudo commands don’t works for normal user. Let’s see how to enable them

SU command

If you try to use this command, you can read this error:

shaka@gentoo /home/shaka $ su
Password:
su: Permission denied
Sorry.

login as root and digit the following command (substitute username with your user)

gentoo # gpasswd -a username wheel

SUDO command

gentoo # emerge -tav sudo

gentoo # nano /etc/sudoers

in this file you have to insert a line for each user which all commands that you would allow users hosts = (run-as) commands
where
users: username,
hosts: use ALL,
commands: all commands that you would allow to a user with the absolute path (es: /usr/bin/emerge, /usr/bin/ebuild)

Some usefull link about sudo config

http://www.gentoo.org/doc/en/sudo-guide.xml
http://gentoo-wiki.com/Sudo_config

, , ,


Convert audio file.

linux 1 Comment »
italiano

I had to convert some audio files. I use Ubuntu 7.10, but i think it could be the same in other distribution.

Install “nautilus-script-audio-convert” (a nautilus script to convert audio files in some different formats)
root~:# apt-get install nautilus-script-audio-convert nautilus-script-manager

Enable script manager
user:~$ nautilus-script-manager enable ConvertAudioFile

Restart Nautilus
user:~$ killall nautilus

Now, if you right-click on an audio file, in the menu you can see Script -> ConvertAudioFile. It could return an error if you don’t have the right codec.

These are some link where you can find codecs for the main audio format.

* lame: encode/decode file mp3 and wav - lame.sourceforge.net
* oggenc (vorbis-tools): encode file ogg - www.xiph.org/downloads
* oggdec (vorbis-tools): decode file ogg - www.xiph.org/downloads
* mppenc: encode file mpc - www.rarewares.org/mpc.html
* mppdec: decode file mpc - www.rarewares.org/mpc.html
* faac: encode file aac - www.audiocoding.com
* faad: decode file aac - www.audiocoding.com
* flac: encode/decode file flac - flac.sourceforge.net

To install these packages could be necessary install some dipendences. I didn’t have any problem to finde them on the Official Ubuntu Repository.

, , , ,


HOWTO - Install Gentoo.

linux 4 Comments »
italiano

After a break, i’m come back!
I’ve decided to install Gentoo on my HP Pavilion dv6000 series and I’ll try to share with you my progress. Gentoo has tons of good documentation but could always happen something strange that the guides dont talk about. I hope to write some usefull things.

gentoo-logo

I’m started from Gentoo 2008.0 beta Minimal taht you could find here. Burn the ISO and restart your machine (check that the boot from CD is activated).
Now you need to follow step by step the guide at Gentoo website.

When you have to configure and compile the Kernel, if you would do it easily, use the follow command

livecd etc # genkernel --menuconfig all

It is designed to take the pain out of the kernel compiling process, and supports most hardware by default.

Helpfull Link

Howto fdisk

, ,


WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login