LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   $PATH, vlc, and monitor woes in suse 10. HELP!!! (https://www.linuxquestions.org/questions/suse-opensuse-60/%24path-vlc-and-monitor-woes-in-suse-10-help-375243/)

xbennyboy 10-20-2005 07:26 PM

$PATH, vlc, and monitor woes in suse 10. HELP!!!
 
I recently upgraded to SuSE 10.0 OSS and so far I have to say I am relatively happy with it. It's speedy, has great features, and looks awesome. However, I have three problems with SuSE 10.

(#1)
I looked through my /etc/profile file to configure my $PATH variable so that my console would recognize java.
Code:

#
# Make path more comfortable
#
if test -z "$PROFILEREAD" ; then
    PATH=/usr/share/jdk1.5.0_03/bin:/usr/share/netbeans-4.1/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin
    if test "$HOME" != "/" ; then
        for dir in $HOME/bin/$CPU $HOME/bin ; do
            test -d $dir && PATH=$dir:$PATH
        done
    fi
    if test "$UID" = 0 ; then
        test -d /opt/gnome/sbin && PATH=/opt/gnome/sbin:$PATH
        test -d /opt/kde3/sbin  && PATH=/opt/kde3/sbin:$PATH
        PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
    fi
    for dir in  /var/lib/dosemu \
                /usr/games \
                /opt/bin \
                /opt/gnome/bin \
                /opt/kde3/bin \
                /opt/kde2/bin \
                /opt/kde/bin \
                /usr/openwin/bin \
                /opt/cross/bin
    do
        test -d $dir && PATH=$PATH:$dir
    done
    unset dir
    export PATH
fi

Problem is this only changes the $PATH for my regular user accounts, not root. How do I change the PATH for root? Any suggestion appreciated!

(#2)
I tried to install vlc (which i think is an awesome media player kudos to the guys at videolan) via the RPM. Problem is they don't have a SuSE 10.0 version. I downloaded the latest SuSE 9.3 version and tried to install it, but it required me to downgrade my FLAC to libFLAC.so.6 when I have libFLAC.so.7 and it also required me to install wxGTK which is not present in any of the repositories that I have. Any tips on which repositories to add? alternative installation method?

(#3)
Using SaX2, I configured my monitor, which is a 15 inch LCD with H: 30-60Khz and V: 56-75Hz. In the Change monitor dialog, I picked 1024@768 @ 60 but that mode didn't work when I switched my resolution to 640X480 or 800x600. Next I tried 1024x768 @ 75 but that was worse. Finally I switched back to the first option and I manually inputed the horizontal and the vertical ranges listed above. Problem is at 1024x768, the vertical refresh rate is only at 73Hz. I can't get it to 75Hz or better yet 60Hz (with my monitor it's better at lower refresh rates, I dunno why). You see I have a Windows partition and a Linux partition. My Windows partition is set at 60Hz, when i switch to Linux it goes to 73 Hz and the screen shifts to the left with a small portion completely off the LCD, forcing me to press the auto adjust button every time. My Windows can't set my monitor to 73 Hz, only 60, 70, and 75. Any tips on how I can adjust my monitor in Linux so that it is 75 or 60, so that I can make it match Windows?

PLEASE HELP! I am not quite a :newbie: so feel free to use most technical terms if you want!

nilleso 10-20-2005 10:13 PM

#1 - should be in /.profile ... me thinks (not /etc/profile)

cheers :)

jschiwal 10-22-2005 02:06 AM

You could try using the gtf program to produce a pair of modelines for 60hz and 75hz.
gtf 1024 768 60 -x
gtf 1024 768 75 -x

xbennyboy 10-25-2005 10:42 PM

Yeah, actually the $PATH config I have up there works. I just forgot to reboot. DOH! jschiwal, thank you so much, I used the gtf program to generate the modelines and then I put them into my xorg.conf file manually. It works GREAT! Everything works!!! 640x480, 800x600, you name it, it works!!! Hopefully SaX2 won't mess it up. After all it does say don't edit in the xorg.conf. Thanks all the help guys!!!

Now I just gotta wait for PackMan to create a vlc package for suse 10. Or compile it from source, but I hate doing that.

void_linux 11-08-2005 12:53 AM

Quote:

Originally posted by xbennyboy
Now I just gotta wait for PackMan to create a vlc package for suse 10. Or compile it from source, but I hate doing that.
Try:
http://www.linux-administrator.com/
Go to RPM Packages, and select the .i586 version for SuSE-10.0. It works for me.

xbennyboy 11-08-2005 05:54 PM

Sweet! Thanks for all the help guys!!!

jschiwal 11-10-2005 05:52 AM

FYI. On SuSE 9.3 at least, you should edit /etc/profile.local instead of /etc/profile to make global changes.


All times are GMT -5. The time now is 01:03 AM.