VectorLinux

Vectorbie Station => Vectorbie Questions => Topic started by: AtariFan on July 28, 2008, 07:56:55 am

Title: Vector Linux experience improved but not yet perfect;-)
Post by: AtariFan on July 28, 2008, 07:56:55 am
Hi,

thanks to bigpaws and hata_ph I can now access my cd drive and have already installed the MS Win Fonts from a backup CD. Sound is played too, but not with Xine:-/ I've tried gXine from the slackware repo - didn't start. I would like to install a newer XineLib (V1.1x is out), but didn't find such with gslapt. This tool seems a bit too primitive - there is no command for continue search?! Perhaps I should install XineLib, gXine and more apps with vpackager and gcc? I don't understand why binary packages downloaded from elsewhere often don't run - this is Linux? But I will build the packages because I will stick to this Linux. I like it more than my old MS Win 2000.
Another minor bug seeming to me is that the Vector-Docs on the default desktop are only loaded with Seamonkey browser, although Firefox is selected in the "Preffered applycation" applet. Dragging the Vector docs into a Firefox Window displays only:

Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=Vector-Docs
Comment=web browser
Categories=Application;
Exec=browser_vl
Icon=globe-bubble
Terminal=false
StartupNotify=false

I appreciate the usually friendly responses here very much, but when I f. e. say "no K3B" after noticing that it's far below the Ashampoo burning suite for MS Win in usability and functionality - believe me, please. I've not yet tested CD burning with the other Linux programs.
I will continue these little VL experience comments later.

Regards, Ludwig
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: hata_ph on July 28, 2008, 08:11:09 am
Xine and MPlayer usually play well for any normal music, video and CD. Did you encounter any error using it?

VL is still a small comunity if compare to other big linux distro. All the packages in VL repo may not be 100% all up to date. For any new packages that not available in the repo you can either package it yourself or request it from the VL repo.

Happy Vectoring.... :P
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: exeterdad on July 28, 2008, 11:21:37 am
To my knowledge, selecting preferred browser through the applet is merely creating a launcher for you using your favorite browser. Not sure there is a easier way to do this, but it's how I always do it:

In a terminal as regular user launch this command:
Quote
mousepad .bashrc

Then scroll down to about line 33.  Can't tell you exactly since I don't remember if my .bashrc is modified.
You will see this, or something very close:
Quote
## Set this for your first choice
export BROWSER=seamonkey
#export BROWSER=firefox
#export BROWSER=opera
Change it to this:
Quote
## Set this for your first choice
#export BROWSER=seamonkey
export BROWSER=firefox
#export BROWSER=opera

In case you can't see the difference, I added a comment (#) to the seamonkey line, and removed the comment in front of the firefox line. In case you aren't familiar with coding, the comment makes a line "invisible" to the shell that is processing it.
Save the file and log out, then log in again, or reboot, whatever is easier for you.
Firefox will now be available for all applications or shortcuts that call for the default browser ($BROWSER).

Let me know if you have troubles :)
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: wcs on July 28, 2008, 11:42:32 am
Quote
I don't understand why binary packages downloaded from elsewhere often don't run - this is Linux?

Probably because of missing dependencies.
Is this Linux? Yes. You have lots of software in the repository that other people tried to make sure runs fine, and no need to go to any website and download stuff...
That's cool, no? If the stuff you want is not there, ask for it in the package requests subforum. Someone will likely jump along and help out.

Slackware packages will almost always work, but you need to make sure you have the necessary dependencies. That's why the repository is better, and sorts the dependencies out for you.

Quote
I would like to install a newer XineLib (V1.1x is out), but didn't find such with gslapt

You'll find 1.1.14 in the testing repository. In gslapt, go to edit > preferences > sources and enable the testing repo.
A lot of the software in the VL repo is in the testing directory.... usually, it runs fine; I never have any problems. But yes, it's being tested, so it's less risk-free than the extra directory. You can always downgrade it if you find some problem with a "testing" package. And report the problem, of course.  ;)

Quote
"no K3B" after noticing that it's far below the Ashampoo burning suite for MS Win in usability and functionality - believe me, please

I don't think you're lying.  ;) But it would take a lot more than a burning suite to make me go back to windows. Especially when k3b rips audio cd's, burns audio, images and data, and burns cd's and dvd's. I'm happy with it, and don't have to spend $49.99 in Ashampoo.

Certainly, not all software in Linux is the best you can get. Sometimes software that's only available for other platforms is better... I have lots of friends who would never abandon Photoshop, for example. That's up to the software developers... Say, if you want games, Windows is definitely the best OS for that.

Quote
But I will build the packages because I will stick to this Linux

That's a great way to learn stuff.... you'll be mastering configure options in no time.  :)
But, honestly, sometimes building software can be a pain.
Try the repos first (including testing), a package request, vpackager, slackware packages.... after you try these, you;ll probably have your needs catered for.



Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: wcs on July 28, 2008, 11:45:55 am
Oh, just something else about burning software... you're not stuck to open-source software in Linux.
You can check out Nero for Linux, for example. http://www.nero.com/eng/linux3.html (http://www.nero.com/eng/linux3.html)
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: AtariFan on July 28, 2008, 11:58:35 am
Xine and MPlayer usually play well for any normal music, video and CD. Did you encounter any error using it?
I could play a music CD with XMMS, but when I tried the same CD again some hours later, the sound got chopped after the first second. xine only causes a repeated mechanical noise from the CD drive with the same CD.
Thus the only reliable way for sound so far is the command "play *.wav" in xterm which indicates that the soundchip from ESS was configured  properly
Any help is very appreciated.

Regards, Ludwig
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: lagagnon on July 28, 2008, 12:09:45 pm
Put a music CD in the drive, or play an mp3 file with xmms, open a terminal, type alsamixer and unmute any channels you need with the "m" key. Use arrow keys to incr/decr levels. Read "man alsamixer" for more info....
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: AtariFan on July 28, 2008, 12:12:30 pm

Quote
I would like to install a newer XineLib (V1.1x is out), but didn't find such with gslapt

You'll find 1.1.14 in the testing repository. In gslapt, go to edit > preferences > sources and enable the testing repo.
A lot of the software in the VL repo is in the testing directory.... usually, it runs fine; I never have any problems. But yes, it's being tested, so it's less risk-free than the extra directory. You can always downgrade it if you find some problem with a "testing" package. And report the problem, of course.  ;)
Sounds promising. I'll try the testing repo
Quote
Quote
"no K3B" after noticing that it's far below the Ashampoo burning suite for MS Win in usability and functionality - believe me, please

I don't think you're lying.  ;) But it would take a lot more than a burning suite to make me go back to windows. Especially when k3b rips audio cd's, burns audio, images and data, and burns cd's and dvd's. I'm happy with it, and don't have to spend $49.99 in Ashampoo.
The 49.99 price is only for offering the burning suite with a great discount. Usually the burning suite costs only 10 EUR (V8 now) and I got V6 that suited my needs for free from Ashampoo. The service is great too.
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: wcs on July 28, 2008, 01:02:10 pm
Quote
The 49.99 price is only for offering the burning suite with a great discount. Usually the burning suite costs only 10 EUR (V8 now) and I got V6 that suited my needs for free from Ashampoo. The service is great too.

Maybe you can run it with wine... But if it's not on their compatibility list, the chances are slim.
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: AtariFan on July 28, 2008, 03:17:52 pm
To my knowledge, selecting preferred browser through the applet is merely creating a launcher for you using your favorite browser. Not sure there is a easier way to do this, but it's how I always do it:

In a terminal as regular user launch this command:
Quote
mousepad .bashrc

Then scroll down to about line 33.  Can't tell you exactly since I don't remember if my .bashrc is modified.
You will see this, or something very close:

Quote
## Set this for your first choice
#export BROWSER=seamonkey
export BROWSER=firefox
#export BROWSER=opera

In case you can't see the difference, I added a comment (#) to the seamonkey line, and removed the comment in front of the firefox line. In case you aren't familiar with coding, the comment makes a line "invisible" to the shell that is processing it.
Save the file and log out, then log in again, or reboot, whatever is easier for you.
Firefox will now be available for all applications or shortcuts that call for the default browser ($BROWSER).
Let me know if you have troubles :)

I followed your tip, edited the .bashrc, logged out and logged in - no change. The Vector-Doc launcher on the desktop always starts seamonkey. Mysterious, but I won't dig into the launcher code. To me, the launcher file seems really complicated. It at last passes the index.html of the docs to Seamonkey - wouldn't it be easier to drop a vector-doc.sh "browser vectordocpath/index.html" on the desktop? Not possible?
The second bug is, what is the XFCE-applet for selecting the preferred browser good for, if I then still have to edit the .bashrc? The applet should do this.

Regards, Ludwig

Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: wcs on July 28, 2008, 03:44:11 pm
Quote
The second bug is, what is the XFCE-applet for selecting the preferred browser good for

I think that's just to start whatever browser you want when you click the "planet laucher" or the "Web Browser" icon in the menu.
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: AtariFan on July 28, 2008, 05:18:43 pm
[To me, the launcher file seems really complicated. It at last passes the index.html of the docs to Seamonkey - wouldn't it be easier to drop a vector-doc.sh "browser vectordocpath/index.html" on the desktop? Not possible?

The story about the vectordoc launcher continues. I've changed the command field in XFCE's "Edit Launcher" dialog to
   browser /usr/doc/VLHelpCenter/index.html
but again Seamonkey is launched. The same command in the XTerm starts Firefox. Not logic. Annoying.
Any help is very appreciated.

Regards, Ludwig
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: overthere on July 28, 2008, 05:56:04 pm
Quote
browser /usr/doc/VLHelpCenter/index.html
um..should that read firefox /usr/doc/VLHelpCenter/index.html?
cheers
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: exeterdad on July 28, 2008, 05:59:28 pm
No actually.  It was correct the first time.  Not everyone loves firefox :)

AtariFan, something has gone wrong with your edit. Please show me the output of:
cat .bashrc | grep BROWSER
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: overthere on July 28, 2008, 06:25:59 pm
sorry.. it works for me, I just right click the icon, open with mousepad, edit and save...firefox opens the doc via the xfce desktop icon rather than seamonkey...must be a special set up..ok..i'm going... :)
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=Vector-Docs
Comment=web browser
Categories=Application;
Exec=firefox /usr/doc/VLHelpCenter/index.html
Icon=globe-bubble
Terminal=false
StartupNotify=false
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: wcs on July 29, 2008, 07:10:33 am
What exeterdad is saying is that your $BROWSER variable might not be set to firefox, and that something might have gone wrong with your editing of .bashrc
I think the browser_vl command in the launcher of the docs calls browser, which in turn depends on the $BROWSER variable. Don't ask me why.

You can see what the $BROWSER variable is currently set to by doing:
Code: [Select]
echo $BROWSER
If it still says seamonkey, open up a console and do:
Code: [Select]
export BROWSER=firefoxIt should then be set for firefox, BUT it won't be applied to another console or survive reboots... that's why it needs to go in the .bashrc (or /etc/profile if you want to apply it to all users).
If the line that does the export BROWSER command to firefox in uncommented, and the other export $BROWSER lines are commented, then it should work and if it doesn't, I'll be puzzled.

Of course, you can always edit the launcher like overthere said and put the firefox command there directly, instead of browser. But a more robust solution is fixing the $BROWSER variable. Or even get rid of the icon and bookmark the file in firefox.

Now that I think about it, It might be an idea to develop a vector utility to change the $BROWSER variable in .bashrc or /etc/profile.

Hope this helps.
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: AtariFan on July 29, 2008, 02:13:00 pm
AtariFan, something has gone wrong with your edit. Please show me the output of:
cat .bashrc | grep BROWSER

#export BROWSER=seamonkey
export BROWSER=firefox
#export BROWSER=opera

Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: AtariFan on July 29, 2008, 02:32:42 pm
You can see what the $BROWSER variable is currently set to by doing:
Code: [Select]
echo $BROWSER
firefox

Quote
Now that I think about it, It might be an idea to develop a vector utility to change the $BROWSER variable in .bashrc or /etc/profile.
Less than 30 lines Pascal, but I suppose awk would be the best tool here.

Regards, Ludwig
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: wcs on July 29, 2008, 02:40:41 pm
Like I said, I'm puzzled. Strange that with $BROWSER set to firefox, the vl-docs laucher still goes for seamonkey.
I cannot test it, as I deleted that launcher.... Perhaps I should look more carefully at the browser script.

I guess what you said is that typing browser in xterm starts firefox, but double-clicking on the launcher starts seamonkey.... very strange.
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: exeterdad on July 29, 2008, 03:37:00 pm
AtariFan I owe you a apology. Although I did test if firefox was the default browser on my system. And got the results I expected, I did not attempt it with the docs shortcut on the desktop as you were talking about. I didn't have it any more.  I recreated it using the .desktop text you posted earlier and sure enough Seamonkey popped up.

Turns out $BROWSER is NOT seen by the /usr/bin/browser script.  I added my own debugging code to the script to print out $BROWSER and the entire inviorment from the script when it was launched by VLdocs.desktop/vl_browser.

$BROWSER was not there.  Very odd! I can't figure out what is causing this, but it seems you've found a bug in VL.
You can set firefox globally (for all users) with this command as root:
Quote
echo "export BROWSER=firefox" >> /etc/profile
Log out.... and this time (confirmed) it will work.
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: AtariFan on July 29, 2008, 06:11:19 pm
Quote
Now that I think about it, It might be an idea to develop a vector utility to change the $BROWSER variable in .bashrc or /etc/profile.
I suppose awk would be the best tool here.

After saying so, I made first steps in AWK with help of a little reference from O'Reilly.
   awk '/^[ ]*export BROWSER=/' .bashrc
prints the line that starts with "export BROWSER=" ignoring spaces at first
But how to substitute the whole line with the desired export-command?
Title: Re: Vector Linux experience improved but not yet perfect;-)
Post by: AtariFan on July 29, 2008, 07:12:08 pm
You can set firefox globally (for all users) with this command as root:
echo "export BROWSER=firefox" >> /etc/profile
Log out.... and this time (confirmed) it will work.
Even if I'm single (as many Linux users;-) I won't set firefox for all users if it is only wanted by me.
After removing seamonkey the vector-doc launcher starts firefox.

Regards, Ludwig