Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
JoeNotCharles
Mar 3, 2005

Yet beyond each tree there are only more trees.

thesuever posted:

So, I define the variable:

code:
LDFLAGS=-L/usr/local/lib/libmpcdec
The configure script still does not recognize the library. Are there any suggestions or is there something that I am overlooking?

Thanks in advance

Configure scripts usually look for the development headers, not the link library. To install it through the package manager, make sure you install both libmpcdec and libmpcdec-devel. (The exact names will vary by distribution.)

When you installed it yourself, did you set the whole prefix to /usr/local/lib/libmpcdec? (That would mean the .so is in /usr/local/lib/libmpcdec/lib and the headers are in/usr/local/lib/libmpcdec/include) Then you want LDFLAGS=-L/usr/local/lib/libmpcdec/lib and INCLUDES=-I/usr/local/lib/libmpcdec/include.

Adbot
ADBOT LOVES YOU

Modern Pragmatist
Aug 20, 2008

JoeNotCharles posted:

Then you want LDFLAGS=-L/usr/local/lib/libmpcdec/lib and INCLUDES=-I/usr/local/lib/libmpcdec/include.

This is exactly what I wanted to know. Thanks.

covener
Jan 10, 2004

You know, for kids!

JoeNotCharles posted:

Configure scripts usually look for the development headers, not the link library.

FWIW autoconf often needs to perform a runtime test by building a small conftest.c program and seeing if the library is usable, or what "flavor" of the library is found for some feature test.

Ashex
Jun 25, 2007

These pipes are cleeeean!!!
To the users of mpd:

How the hell do you enable crossfade? tried just doing mpd crossfade 2, but that didn't work.

How do you setup the mixer to have a seperate volume for mpd? Tried following the wiki and had no luck.

deong
Jun 13, 2001

I'll see you in heck!
For Ubuntu Users, I have just come across this article/how-to; I never knew that it was possible update via Bit Torrent. I download most my ISO's off torrent now a days, so may as well get my updates via BT as well.

http://torrentfreak.com/use-bittorrent-to-upgrade-to-ubuntu-intrepid-ibex-081029/
Ubuntu, the open source GNU/Linux based operating system, is about to release its next big update - Intrepid Ibex. In the past, the update servers would crash very quickly on a big release day, making it hard for people to get the latest update. With BitTorrent, however, this can be easily avoided.

unchainedaura
Sep 8, 2008
lord of the vegans apparently.
This is probably a really dumb question but has anyone on here tried using a T mobile HSDPA usb dongle on linux. If anybody has then please, which distro did you use and how successful was it. If you can help please do as at the minute i'd give loving anything to get this laptop off the piece of poo poo that is vista. Unfortunately said dongle is my only source of internet access and will probably remain so for at least a year. Also if it required terminal use then a set of instructions would be much appreciated, Thanks.

rugbert
Mar 26, 2003
yea, fuck you
wtf, I thought the new Ubunutu release came out today. Yesterday their front page said one day left and now its back to "coming soon". lame.

how close to the final release are the release candidates usually? I could just update that to the final right? instead of having to fully reinstall?

Prince John
Jun 20, 2006

Oh, poppycock! Female bandits?

rugbert posted:

wtf, I thought the new Ubunutu release came out today. Yesterday their front page said one day left and now its back to "coming soon". lame.

how close to the final release are the release candidates usually? I could just update that to the final right? instead of having to fully reinstall?

I installed the release candidate last night and had no problems at all, very slick.

If you're upgrading though, I would suggest waiting - last time I looked, Ubuntu's guidelines for upgrading involved using the update manager and that will only notify you of the new release once it is final. I've heard that people have had problems when updating using dist-upgrade instead of their update manager - I'm sure it'll probably work fine, just be aware it's probably not the recommended way to do things for Ubuntu.

But yes, if you're running the release candidate, you will get updated to the final version as you would expect once it's released, with the benefit of avoiding having to download too much when the servers are dying on launch day.



To the person asking about installing Ubuntu on the EEE, you probably want to check out http://www.eeebuntu.org/

At the time of the first generation EEE, people reported poorer battery life and performance with Ubuntu instead of Xandros, but those problems may well be sorted by now.

Prince John fucked around with this message at 14:41 on Oct 30, 2008

Corla Plankun
May 8, 2007

improve the lives of everyone
My computer is officially too old to play any cool games, so I'm thinking about installing linux. The only think I think I'll miss is farting around in programs like Reason, Abelton Live, and the like.

I am by no means a serious musician, but I have a couple of kicking rad midi-controllers that I would like to be able to play with. What are my options if I install linux? There aren't any distros specifically targeted at musicians, are there?

Aside from making beeps and boops, I don't think I need any other special functions.

deong
Jun 13, 2001

I'll see you in heck!

Corla Plankun posted:

My computer is officially too old to play any cool games, so I'm thinking about installing linux. The only think I think I'll miss is farting around in programs like Reason, Abelton Live, and the like.

I am by no means a serious musician, but I have a couple of kicking rad midi-controllers that I would like to be able to play with. What are my options if I install linux? There aren't any distros specifically targeted at musicians, are there?

Aside from making beeps and boops, I don't think I need any other special functions.

I think you would be looking at UbuntuStudio : http://ubuntustudio.org/
The newest version of Ubuntu has come out, 8.10 Intrepid Ibex, just yesterday. But unfortunately, it appears UbuntuStudio is still on 8.04. I was able to look through their download tree and find a link for the 8.10 ISO, http://cdimage.ubuntu.com/ubuntustudio/releases/intrepid/release/, but with their homepage linking the previous version. I'm not positive if everything is complete for the release, or if the web page is just slow to update. I'd say go with 8.10 and use 8.04 if something does not work from the live disk. With Ubuntu proper/derivatives you can run it from the cd w/o fear of changing your current system, so never hurts to play!

JoeNotCharles
Mar 3, 2005

Yet beyond each tree there are only more trees.
Google's not helping me on this because I don't know what to search for.

I've got an SD card that's not being detected. Other SD cards work fine, and this card works fine in other computers.

syslog says that it's getting detected by hal, but it never shows up as /dev/sdb (which is where other SD cards show up):

Nov 1 00:24:13 seppo kernel: [ 5231.392560] mmc0: new SD card at address b368
Nov 1 00:24:13 seppo kernel: [ 5231.393339] mmcblk0: mmc0:b368 SD064 61312KiB
Nov 1 00:24:13 seppo kernel: [ 5231.393398] mmcblk0: p1
Nov 1 00:24:13 seppo NetworkManager: <debug> [1225513453.435204] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/pci_1180_822_mmc_host_mmc_card_rca45928').

And that's the last thing I get.

All the tools I know about (mount, fdisk, whatever) take paths in /dev - there's gotta be something to tell it to map this hal id to that device, but what?

EDIT: after flailing around for half an hour, as soon as I posted I zeroed in right on the thing to do. That's always the way.

First off I restarted hald, and now when I put the card in I see more hal id's for the actual filesystems on it:

Nov 1 01:07:16 seppo NetworkManager: <debug> [1225516036.631445] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/pci_1180_822_mmc_host_mmc_card_rca45928').
Nov 1 01:07:16 seppo NetworkManager: <debug> [1225516036.705132] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/storage_serial_0x40407873').
Nov 1 01:07:16 seppo NetworkManager: <debug> [1225516036.768998] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/volume_uuid_FC30_3DA9').

Then I looked at each of them with lshal -u /org/freedesktop/...

pci_1180_etc didn't give me anything useful, but storage_serial_etc included the entry "block.device = '/dev/mmcblk0'" and volume_uuid_etc included "block.device = '/dev/mmcblk0p1'" which are analogous to /dev/sda and /dev/sda1. Not sure why this card's showing up on a different device from others, but at least I can use it now.

JoeNotCharles fucked around with this message at 06:15 on Nov 1, 2008

Hughmoris
Apr 21, 2007
Let's go to the abyss!
This might be an extremely vague question, but... What are some achievable, beginner projects that someone could tackle if they wanted to improve their Linux/System abilities? I just started a job at a help desk for an ISP, and I plan on pursuing an IT degree starting in the fall but I would like to get a headstart on both my career and education. I've been looking for good projects for beginners to tackle, but the only thing I could really think of is setting up a media server for the house.

Any thoughts are appreciated.

Lucien
May 2, 2007

check it out i'm a samurai ^_^

Hughmoris posted:

This might be an extremely vague question, but... What are some achievable, beginner projects that someone could tackle if they wanted to improve their Linux/System abilities? I just started a job at a help desk for an ISP, and I plan on pursuing an IT degree starting in the fall but I would like to get a headstart on both my career and education. I've been looking for good projects for beginners to tackle, but the only thing I could really think of is setting up a media server for the house.

Any thoughts are appreciated.
Make it not only a media server but include dhcp, dns and proxy services.

Use cron, rsync and hard links to make automatic incremental backups: http://oreilly.com/pub/h/42

Don't use Ubuntu, use Arch.

Hughmoris
Apr 21, 2007
Let's go to the abyss!

Lucien posted:

Make it not only a media server but include dhcp, dns and proxy services.

Use cron, rsync and hard links to make automatic incremental backups: http://oreilly.com/pub/h/42

Don't use Ubuntu, use Arch.

Thanks for the reply. 3/4ths of what you mentioned went over my head, but I'll definitely check out Arch and start doing some research on those projects.

Speaking of that, does anyone have any recommended reading for individuals looking to learn and become proficient in a progressive manner? I seem to only find tutorials that either deal with "How to open up a terminal window" or "How to rewrite the Linux kernel", but nothing in between. Ideally something that covers the basics of linux then ramps reasonably into the more intricate details and processes of using the OS.

do it
Jan 3, 2006

don't tell me words don't matter!

Hughmoris posted:

Thanks for the reply. 3/4ths of what you mentioned went over my head, but I'll definitely check out Arch and start doing some research on those projects.

Speaking of that, does anyone have any recommended reading for individuals looking to learn and become proficient in a progressive manner? I seem to only find tutorials that either deal with "How to open up a terminal window" or "How to rewrite the Linux kernel", but nothing in between. Ideally something that covers the basics of linux then ramps reasonably into the more intricate details and processes of using the OS.
check out http://www.linux.org/lessons/beginner/toc.html - sort of old, but comprehensive.

Prince John
Jun 20, 2006

Oh, poppycock! Female bandits?

Hughmoris posted:

Ideally something that covers the basics of linux then ramps reasonably into the more intricate details and processes of using the OS.

Also these in addition to the above:

http://tldp.org/guides.html

Start with Introduction to Linux: Hands on Guide, or if that's too simple, the System Administrator's guide.

They're also old, but still should be relevant.

Slow is Fast
Dec 25, 2006

So I have a fresh install of Ibex 8.10. I have apache set up on it hosting jinzora and some other crap. I can hit my index page on it by going to http://servernamehere/. I can hit it from my laptop and on the machine itself. They can hit the page just fine when they type in http://serveripaddresshere/. I'm not sure what I can do to make it so I can use the server name instead of the IP address or if it's even possible.

Gumball Dad
Apr 9, 2007

Wanna meet that dad
I'm a UNIX sys admin in training and so far I have one major question that I'm to afraid to ask the people in my department: why the gently caress do people use Unix? From my experience so far, and from what they tell me, there is nothing simple in unix. Want to install something that on a Windows box would take under 3 minutes to do? Get ready to spend 4-8 hours goloshing through random forums trying to find obscure solutions to unsolvable problems! I JUST WANT TO INSTALL loving MYSQL IT SHOULD'NT TAKE ANY EFFORT IT SHOULD JUST INSTALL THEN WORK. Oh wait I'm on a unix box. Heres 40 dependencies. Whats that? You resolved those dependencies, one by one? Well gently caress you I don't think you did and I'm the shell so whatever I say goes! Suck on it, pathetic user.

Why do people use an OS that tries so hard to be unusable? I could have literally built 5 windows boxes in the time it has taken me to dig through forums for a solution to the smallest problem imaginable. Why. Why do people use this. I want to die.

Gumball Dad
Apr 9, 2007

Wanna meet that dad
OK. Seriously though, maybe someone here can help me with this particular issue. I want to install the newest version of mysql on a Redhat 5 box. I tried to RPM it. It told me I have a dependency that need to be resolved: perl(DBI). So I download and install that through CPAN. OK cool. Now I try to RPM mysql again. Same dependency comes up as unresolved.

The dudes on my team tell me to figure it out for myself by using google and going through forums for solutions. I've tried everything suggested by random internet people and still have the same issue. Any advice? Do you need more info?

spiritual bypass
Feb 19, 2008

Grimey Drawer
Installing the files from CPAN won't solve the dependency in RPM because it's checking to see if you have that RPM installed, not the actual files. Also, try using a newer distro. Things are much better now than they were in the past.

Gumball Dad
Apr 9, 2007

Wanna meet that dad
I'm using Redhat ES 5. That is the newest distro that exists. Therein may lie the problem, however. I can't find any perl DBI RPMs for that version. But why do I need to do that in the first place? I already installed the drat thing I thought.

Ashex
Jun 25, 2007

These pipes are cleeeean!!!

Slow is Fast posted:

So I have a fresh install of Ibex 8.10. I have apache set up on it hosting jinzora and some other crap. I can hit my index page on it by going to http://servernamehere/. I can hit it from my laptop and on the machine itself. They can hit the page just fine when they type in http://serveripaddresshere/. I'm not sure what I can do to make it so I can use the server name instead of the IP address or if it's even possible.

I'm not sure I understand you, you can access it from local machine at http://192.168.1.222 and http://webserver. But from laptop you can only get to it at http://192.168.1.222

Either add a static address entry in your router with the hostname, or enable netbios on the web server.

Santiago X
Feb 10, 2007
Eve Fanboi

Gumball Dad posted:

OK. Seriously though, maybe someone here can help me with this particular issue. I want to install the newest version of mysql on a Redhat 5 box. I tried to RPM it. It told me I have a dependency that need to be resolved: perl(DBI). So I download and install that through CPAN. OK cool. Now I try to RPM mysql again. Same dependency comes up as unresolved.

The dudes on my team tell me to figure it out for myself by using google and going through forums for solutions. I've tried everything suggested by random internet people and still have the same issue. Any advice? Do you need more info?

ftp://rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/perl-DBI-1.605-1.el5.rf.i386.rpm

Perl DBI for Red Hat Enterprise Linux 5, I have no clue on the different RH dists so maybe that's no the right one. Check rpm find in that case.

The Remote Viewer
Jul 9, 2001
You think dependency hell is bad now? Try 15 years ago when it all had to be done by hand and frequently STILL didn't work.

Slow is Fast
Dec 25, 2006

Ashex posted:

I'm not sure I understand you, you can access it from local machine at http://192.168.1.222 and http://webserver. But from laptop you can only get to it at http://192.168.1.222

Either add a static address entry in your router with the hostname, or enable netbios on the web server.

I should have explained it better. I can hit http://webserver on my laptop. No one else on the network can. My webserver is separate from my laptop. Everyone else can access it through http://192.168.x.x. I'm on a school network and just trying to mess around with apache on a webdev box.

Eyecannon
Mar 13, 2003

you are what you excrete

Gumball Dad posted:

I'm using Redhat ES 5. That is the newest distro that exists. Therein may lie the problem, however. I can't find any perl DBI RPMs for that version. But why do I need to do that in the first place? I already installed the drat thing I thought.

You should use 'yum' which is a front-end for rpm which is way better at dependancies.

yum install mysql

Hughmoris
Apr 21, 2007
Let's go to the abyss!
Not to open a can of worms here, but is there a reason why an aspiring sysadmin, with no programming background, should pick python or perl over the other?

Harokey
Jun 12, 2003

Memory is RAM! Oh dear!

Hughmoris posted:

Not to open a can of worms here, but is there a reason why an aspiring sysadmin, with no programming background, should pick python or perl over the other?

It depends on what you're supporting, but I had to support Solaris 9 machines and while they had perl installed by default they did not have python installed.

Edit:

Also if you're picking up stuff that older sysadmins have wrote its likely to be in perl so it would be good for you to know for that reason.

Lucien
May 2, 2007

check it out i'm a samurai ^_^

Hughmoris posted:

Not to open a can of worms here, but is there a reason why an aspiring sysadmin, with no programming background, should pick python or perl over the other?
Harokey made some valid points, but let me add this:

Python loving rocks. It's easy, produces beautifully readable code and there are easily imported modules for everything.

My advice to you, if you just need to do some scripting, use Python. If you have time on your hands, learn Perl because you can always learn Python in like five minutes.

Slow is Fast posted:

I should have explained it better. I can hit http://webserver on my laptop. No one else on the network can. My webserver is separate from my laptop. Everyone else can access it through http://192.168.x.x. I'm on a school network and just trying to mess around with apache on a webdev box.
Putting this in simple terms, every time you enter something in the address bar that is not an IP, the first thing your computer does is it tries to "resolve" it to an IP. This is done by first checking if you have that information directly on your computer (for example in the /etc/hosts file for Linux, or c:\WINDOWS\system32\drivers\etc\hosts for WinXP). If you don't have that host name mapped locally, the computer will ask for help from the address that you have as "DNS" in your connection settings. This is most commonly your router.

So you can either define the host on every computer on your network, or you can tell the router to respond to the request with the right IP address (the latter is what Ashex suggested).

For extra credit, you can install something like dnsmasq on the server and make the server the DNS for your network.

Slow is Fast
Dec 25, 2006

Lucien posted:

Putting this in simple terms, every time you enter something in the address bar that is not an IP, the first thing your computer does is it tries to "resolve" it to an IP. This is done by first checking if you have that information directly on your computer (for example in the /etc/hosts file for Linux, or c:\WINDOWS\system32\drivers\etc\hosts for WinXP). If you don't have that host name mapped locally, the computer will ask for help from the address that you have as "DNS" in your connection settings. This is most commonly your router.

So you can either define the host on every computer on your network, or you can tell the router to respond to the request with the right IP address (the latter is what Ashex suggested).

For extra credit, you can install something like dnsmasq on the server and make the server the DNS for your network.

So since I'm on a school network where I don't control the DNS server / router / thing, I'm stuck with using IP's unless I define it on every computer?

Lucien
May 2, 2007

check it out i'm a samurai ^_^

Slow is Fast posted:

So since I'm on a school network where I don't control the DNS server / router / thing, I'm stuck with using IP's unless I define it on every computer?
Yes.

morts
Jan 10, 2006
Dude! Where's my caption?
Can someone help me figure something out?

My problem is this: I have Ubuntu 8.10 installed on my box. I also have VMWare Server 2.0 on it, running a Windows XP Pro guest OS. So far so good.

When I shut down/restart Ubuntu, it rather unceremoniously kills the VMWare Server process without bothering to shut down the VM, which more often than not breaks it and results in me having to spend a lot of time un-breaking it.

What I want to do is set up a shutdown script which will pause the shutdown until my VM has shut down gracefully (shut down guest OS). However, I have no clue how to go about doing this. I wrote a simple shell script to call the shutdown on the VM from console but after that, I'm afraid it's all a barren wasteland of confusion and death.

Here's the quick and dirty script:
code:
#!/bin/sh
sudo /usr/bin/vmrun -T server -h [url]https://myserver:8333/sdk[/url] -u vmadmin -p password stop "[standard] myvm/vm.vmx" trysoft
Do I need to add anything to this or is that enough? And how do I ensure that shutdown/reboot pauses while the script finishes executing?

Ashex
Jun 25, 2007

These pipes are cleeeean!!!

Lucien posted:

Yes.

Out of curiousity, shouldn't it be possible to use netbios to possibly workaround that? Assuming that the other computers are running windows, they'd have it enabled by default. I'm thinking that if he assigns a netbios name to the webserver, the other computers may be able to use that instead of the ip.


Edit: Question of my own. My girlfriend recently had to use my computer to watch movies due to an issue with my mediacenter. She noticed that in VLC all videos stopped five minutes before the end, anyone know why this would happen?

Ashex fucked around with this message at 16:58 on Nov 5, 2008

Gumball Dad
Apr 9, 2007

Wanna meet that dad
Is the only way to solve dependencies without YUM to just manually resolve each one be installing each individual rpm? I'm setting up this box, but I'm not allowed to use YUM as part of the "learning experience". Every RPM I try to install has at least 2 dependencies and all those dependencies have dependencies.

GringoGrande
Jul 27, 2001
Nah...

Gumball Dad posted:

Is the only way to solve dependencies without YUM to just manually resolve each one be installing each individual rpm? I'm setting up this box, but I'm not allowed to use YUM as part of the "learning experience". Every RPM I try to install has at least 2 dependencies and all those dependencies have dependencies.
Yes. Congratulations, you've learned why linux isn't really worth the effort unless you have a good package manager.

Mr. Eric Praline
Aug 13, 2004
I didn't like the others, they were all too flat.

GringoGrande posted:

Yes. Congratulations, you've learned why linux isn't really worth the effort unless you have a good package manager.
It's good experience though. Gives you a better understanding of how packages inter-relate, and you might learn how to fix things when you've got a broken package manager or older system.

Also, you think RPM dependencies are bad, try moving to Solaris. Even Solaris 10, one of the most modern, progressive *nix OS'es available, has a terrible, terrible dependency tree. And worse packaging and patching tools than probably anything I've worked with in a long time.

Gumball Dad
Apr 9, 2007

Wanna meet that dad
Oh boy! I got MySQL installed successfully. Turns out I didn't have to resolve every dependency, I resolved one and everything magically worked. I'm not one to question providence. Now I get to troubleshoot MySQL. I've got the daemon running, but when I try to ./mysqltest nothing happens. Am I even going about this right? How do I actually use MySQL? Like run the program?

EDIT: ok, i figured out how to start and stop mysql. but how do i actually use it? like make/view/edit tables and crap?

Gumball Dad fucked around with this message at 20:36 on Nov 5, 2008

Ashex
Jun 25, 2007

These pipes are cleeeean!!!

Gumball Dad posted:

Oh boy! I got MySQL installed successfully. Turns out I didn't have to resolve every dependency, I resolved one and everything magically worked. I'm not one to question providence. Now I get to troubleshoot MySQL. I've got the daemon running, but when I try to ./mysqltest nothing happens. Am I even going about this right? How do I actually use MySQL? Like run the program?

EDIT: ok, i figured out how to start and stop mysql. but how do i actually use it? like make/view/edit tables and crap?

mysql -u user -ppassword database

Then you are in the mysql terminal where you can modify/create/dowhatever to the database.

lol internet.
Sep 4, 2007
the internet makes you stupid
Quick question, can grub see vista? Installing a fairly new version of Ubuntu on a XP/Vista drive.

Adbot
ADBOT LOVES YOU

x1o
Aug 5, 2005

My focus is UNPARALLELED!

morts posted:

When I shut down/restart Ubuntu, it rather unceremoniously kills the VMWare Server process without bothering to shut down the VM, which more often than not breaks it and results in me having to spend a lot of time un-breaking it.

It used to be with VMware server 1 that it would wait for the VMs to shutdown before exiting itself. Looks like I wont be moving the VMware Server 2 in a hell of a hurry.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply