[mythtv-users] Mythtv Compilation

Alain Black hippy at kenshodo.net
Sat Nov 25 18:27:20 UTC 2006


> Open a shell, and switch to superuser mode.
>
>  NOTE: ^D means press CTRL and d at the same time.
>
> $ su
> # cd /etc/profile.d
> cat > mythtv.sh
> export QTDIR=/usr/lib/qt3
> export PATH=$PATH:/usr/lib/qt3/bin
> ^D


If you copy and paste the text as it exists into a command shell then it
will save you from having to use a text editor like vi.

So you will use "su" to become the root user.  It will prompt you for your
root password.  Then "cd /etc/profile.d" will change your current directory
to /etc/profile.d.

"cat > mythtv.sh" will create a new file, or overwrite an existing one,
called mythtv.sh in your current directory (now /etc/profile.d).  The two
export lines if typed in at the command prompt will then be placed inside of
this new file.

The ^D (CTRL-D) will close the file.

The simplest way is to copy and paste the"
cat > mythtv.sh
export QTDIR=/usr/lib/qt3
export PATH=$PATH:/usr/lib/qt3/bin
^D
" part into your command prompt.



>
> # chmod a+x mythtv.sh
> # exit
> $ exit "

The chmod command is making the newly created mythtv.sh file executable by
all users.  Then you're exiting from root and then from the shell entirely.

> I don't understand exactly what I must do. I think I must
> apply modification at qtdir3.sh. So I would like to know if I
> must make a new file "mythtv.sh"??

I hope that's what you were looking for.

-Alain.






More information about the mythtv-users mailing list