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
Economic Sinkhole
Mar 14, 2002
Pillbug

TheHeadSage posted:

What's the best resource for Howto's and articles on how to use Debian? I've been pretty much a Gentoo user since Day 1, and now I'm looking to move over to using Debian.

I've worked out the basics of apt-get and all that, but I'm looking for articles on how Debian's init scripts work and how things are organised The Debian Way.

The Debian website is nice, but it's got me scratching my head in some parts.

I refer to http://www.debian-administration.org/ a lot. I also usually just google "debian _____" and find lots of info that way.

Adbot
ADBOT LOVES YOU

rugbert
Mar 26, 2003
yea, fuck you
Do I need additional plugins to make Amarok stream music from my server?

I can stream just fine into VLC but Amarok gives me some nonsense about
code:
No suitable input plugin. This often means that the url protocol is not supported. Network failures are other possible causes.

Mysterious Aftertaste
May 20, 2004

So Marigold, my love, you've had too much to drink...

I think you have to make a local mount and then add the files to the amarok library.

rugbert
Mar 26, 2003
yea, fuck you

Mysterious Aftertaste posted:

I think you have to make a local mount and then add the files to the amarok library.

mega gay.

thats weird that such a useful feature wouldnt be present in such a great app

Zuph
Jul 24, 2003
Zupht0r 6000 Turbo Type-R

Mysterious Aftertaste posted:

I think you have to make a local mount and then add the files to the amarok library.

I've never done that. I just hit up the samba share, and drag in files. Unfortunately, it seems that I'm unable to drag in folders, I have to drag in individual files (selected in bulk, obviously), or individual M3Us.

rugbert
Mar 26, 2003
yea, fuck you

Zuph posted:

I've never done that. I just hit up the samba share, and drag in files. Unfortunately, it seems that I'm unable to drag in folders, I have to drag in individual files (selected in bulk, obviously), or individual M3Us.

Thats what Im saying, VLC plays movies and MP3s just fine. I just do:
places>network>samba>files

Twlight
Feb 18, 2005

I brag about getting free drinks from my boss to make myself feel superior
Fun Shoe
This is a question i've had mulling over my head for some time and wanted to know what everyone else thought:

I would like to start keeping track of where/what/how our server config files are managed. I was looking into subversion, and was liking what I was seeing. However are there any things that I should know before using subversion for configuration file control, instead of it's "normal" use as for developing applications?

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

Twlight posted:

This is a question i've had mulling over my head for some time and wanted to know what everyone else thought:

I would like to start keeping track of where/what/how our server config files are managed. I was looking into subversion, and was liking what I was seeing. However are there any things that I should know before using subversion for configuration file control, instead of it's "normal" use as for developing applications?
Subversion checkouts will drop .svn directories all over the place. In apps that scan for or use wildcards to grab files (ex: httpd.conf: include conf.d/*) it can cause problems.

Subversion also won't remember file permissions, can't handle special files, will treat symlinks as real files, and cause other headaches. So you don't want to just svn your /etc/ directory.

A better tool is something like Tripwire, or one of it's open source/free alternatives.

GringoGrande
Jul 27, 2001
Nah...

Twlight posted:

This is a question i've had mulling over my head for some time and wanted to know what everyone else thought:

I would like to start keeping track of where/what/how our server config files are managed. I was looking into subversion, and was liking what I was seeing. However are there any things that I should know before using subversion for configuration file control, instead of it's "normal" use as for developing applications?

There are newer and better SCM's than subversion. Here's a blog entry on how to use git and a apt hook to keep track of /etc.

Kenfoldsfive
Jan 1, 2003

The un-bitey-ness of a chicken's head and the "I don't want to cook that"-ness of a dog's body
I'm sorry I'm sure this has been asked before but search is down and I'm :bang:ing to the point of cerebral hemorrhaging so here goes:

I'm trying to build a kernel (for a class, I'm not a masochist) and while I was doing the make menuconfig business I thought "oh what the hey I'll append my name to the version number so it's obvious that I did it" by adding my name to the "Local Release" field, except I capitalized my name which is apparently a big no-no and now the kernel won't compile.

I tried deleting my newly created .config file and creating a new one with a lower case name, copying over the existing .config file, doing a make oldconfig which I thought would give me a working .config file and still my drat capitalized name won't leave me. It haunts me.

So clearly this has been deposited somewhere other than .config, and rather than trudge through my entire /usr/src/ directory Indiana Jones-style I thought I'd ask you guys for help. My sanity will thank you.

Grigori Rasputin
Aug 21, 2000
WE DON'T NEED ROME TELLING US WHAT TO DO
Somehow, while configuring rsync I created some directory/file structures that I have no access to whatsoever on my remote host (that I don't have root to). It's simply listed as denied, I even tried removing them from via the host's cpanel-like interface with no luck.

Any idea how I can blow these files away?

They came in with bad permissions while using rsync's -p flag to persist permissions.

Alowishus
Jan 8, 2002

My name is Mud

Kenfoldsfive posted:

So clearly this has been deposited somewhere other than .config, and rather than trudge through my entire /usr/src/ directory Indiana Jones-style I thought I'd ask you guys for help. My sanity will thank you.
Yeah the local version string gets put in some Makefiles and other spots in addition to .config. Running 'make mrproper' should clean it up... that command will revert your source tree to basically the original state, so back up your .config.

Alowishus
Jan 8, 2002

My name is Mud

Grigori Rasputin posted:

Any idea how I can blow these files away?

They came in with bad permissions while using rsync's -p flag to persist permissions.
Well if you don't have root, then at least we know your user owns the files... it's probably just that they're marked something like 000 due to rsync's attempts at preserving permissions. Do you have command line access? If so, you can run through recursively with chmod and fix them all back to something more sane like 755 and then remove them.

Grigori Rasputin
Aug 21, 2000
WE DON'T NEED ROME TELLING US WHAT TO DO

Alowishus posted:

Well if you don't have root, then at least we know your user owns the files... it's probably just that they're marked something like 000 due to rsync's attempts at preserving permissions. Do you have command line access? If so, you can run through recursively with chmod and fix them all back to something more sane like 755 and then remove them.

Thanks, this worked out just peachy.

Twlight
Feb 18, 2005

I brag about getting free drinks from my boss to make myself feel superior
Fun Shoe

GringoGrande posted:

There are newer and better SCM's than subversion. Here's a blog entry on how to use git and a apt hook to keep track of /etc.

Man, just what I was looking for, thanks!

schzim
May 24, 2006
tl;dr
So I have a Ubuntu Linux Machine that I am trying to install the Java EE SDK so that I can get Tomcat to work.

Downloaded the SDK .bin file okay. Just having trouble running it. I am basically following this guide:http://www.sitepoint.com/article/jsp-quick-start-guide-linux/3

Its been chmod'ed +x executable.

When it try ./sdk.bin
I get the error
Error: Unable to execute 'filename': No such file or directory
(Which doesn't make sense because the file is definitely there and i have the right path to it)

Just trying in the file name in the local directory for it doesn't work
Typing in the full path to the sdk also doesn't work.

Both of those give: Error: Command not found

covener
Jan 10, 2004

You know, for kids!

schzim posted:


When it try ./sdk.bin
I get the error
Error: Unable to execute 'filename': No such file or directory
(Which doesn't make sense because the file is definitely there and i have the right path to it)

That message probably means the #! (shebang) is bad or dos-formatted.

tried sh ./sdk.bin? What's 'file' output say? How about head -1 sdk.bin | od -t x1 ?

schzim
May 24, 2006
tl;dr

covener posted:

That message probably means the #! (shebang) is bad or dos-formatted.

tried sh ./sdk.bin? What's 'file' output say? How about head -1 sdk.bin | od -t x1 ?

doing sh ./sdk.bin gives:
syntax error "(" unexpected

I don't know what you mean with 'file' output.

Trying head thing now.

JoeNotCharles
Mar 3, 2005

Yet beyond each tree there are only more trees.

schzim posted:

I don't know what you mean with 'file' output.

"file sdk.bin" tells you what kind of file Linux thinks sdk.bin is

schzim
May 24, 2006
tl;dr

JoeNotCharles posted:

"file sdk.bin" tells you what kind of file Linux thinks sdk.bin is
herman@hptestserver:/usr/local$ file j2eesdk-1_4_03-linux.bin
j2eesdk-1_4_03-linux.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped

herman@hptestserver:/usr/local$ head -1 j2eesdk-1_4_03-linux.bin | od -t x1
0000000 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
0000020 02 00 03 00 01 00 00 00 70 c0 04 08 34 00 00 00
0000040 18 1e 05 00 00 00 00 00 34 00 20 00 06 00 28 00
0000060 1e 00 1b 00 06 00 00 00 34 00 00 00 34 80 04 08
0000100 34 80 04 08 c0 00 00 00 c0 00 00 00 05 00 00 00
0000120 04 00 00 00 03 00 00 00 f4 00 00 00 f4 80 04 08
0000140 f4 80 04 08 13 00 00 00 13 00 00 00 04 00 00 00
0000160 01 00 00 00 01 00 00 00 00 00 00 00 00 80 04 08
0000200 00 80 04 08 20 66 01 00 20 66 01 00 05 00 00 00
0000220 00 10 00 00 01 00 00 00 20 66 01 00 20 f6 05 08
0000240 20 f6 05 08 d4 1c 00 00 1c 1e 00 00 06 00 00 00
0000260 00 10 00 00 02 00 00 00 f4 81 01 00 f4 11 06 08
0000300 f4 11 06 08 00 01 00 00 00 01 00 00 06 00 00 00
0000320 04 00 00 00 04 00 00 00 08 01 00 00 08 81 04 08
0000340 08 81 04 08 20 00 00 00 20 00 00 00 04 00 00 00
0000360 04 00 00 00 2f 6c 69 62 2f 6c 64 2d 6c 69 6e 75
0000400 78 2e 73 6f 2e 32 00 00 04 00 00 00 10 00 00 00
0000420 01 00 00 00 47 4e 55 00 00 00 00 00 02 00 00 00
0000440 02 00 00 00 05 00 00 00 07 01 00 00 38 01 00 00
0000460 00 00 00 00 b8 00 00 00 39 00 00 00 d7 00 00 00
0000500 f5 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00
0000520 0a
0000521

covener
Jan 10, 2004

You know, for kids!

schzim posted:

herman@hptestserver:/usr/local$ file j2eesdk-1_4_03-linux.bin

I asumed it wasn't really a binary; stumped here -- maybe strace -f ./j2eesdk-1_4_03-linux.bin 2>&1 |egrep "stat|exec" | grep -v "= 0" and see what he's poking around for?

xdice
Feb 15, 2006

schzim posted:

herman@hptestserver:/usr/local$ file j2eesdk-1_4_03-linux.bin
j2eesdk-1_4_03-linux.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped


Which version of the linux kernel is running on that server? I'm guessing it's not 2.2.5?

I followed the link to the page you're working from, and noticed that it's a 5 year old writeup (the first page of the article is dated February 17, 2003), and the link they give to the jdk takes you to a Sun end-of-life page.

If I had to guess, I would say that the .bin file you're trying to run cannot find the libraries it was linked with (because your system has newer libraries), and will fail in the manner you've shown in a prior message.

If you need the 1.4.2 SDK, here's a link to Sun's download page: http://java.sun.com/j2se/1.4.2/download.html (click through their menus and such, you should get to a screen that has j2sdk-1_4_2_17-linux-i586.bin as an option, which is the one you want.).


Edit2: Tomcat is available on my ubuntu laptop (8.04 installed, and checked for Tomcat via Synaptic), so I'd bet you can simply 'sudo apt-get tomcat5.5 tomcat5.5-admin'

xdice fucked around with this message at 22:56 on Jun 6, 2008

schzim
May 24, 2006
tl;dr
Ok trying with latest version of java EE sdk.

herman@hptestserver:/usr/local$ ls
bin etc games include j2eesdk-1_4_03-linux.bin java_ee_sdk-5_05-linux-nojdk.bin lib man sbin share src
herman@hptestserver:/usr/local$ sudo chmod +x java_ee_sdk-5_05-linux-nojdk.bin
herman@hptestserver:/usr/local$ ./java_ee_sdk-5_05-linux-nojdk.bin
-bash: ./java_ee_sdk-5_05-linux-nojdk.bin: No such file or directory
herman@hptestserver:/usr/local$ sh ./java_ee_sdk-5_05-linux-nojdk.bin
./java_ee_sdk-5_05-linux-nojdk.bin: 1: Syntax error: "(" unexpected
herman@hptestserver:/usr/local$ /usr/local/java_ee_sdk-5_05-linux-nojdk.bin
-bash: /usr/local/java_ee_sdk-5_05-linux-nojdk.bin: No such file or directory


herman@hptestserver:/usr/local$ file java_ee_sdk-5_05-linux-nojdk.bin
java_ee_sdk-5_05-linux-nojdk.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped

Oh and for what someone wanted earlier:
herman@hptestserver:/usr/local$ -f ./java_ee_sdk-5_05-linux-nojdk.bin 2>&1 | egrep "stat|exec" | grep -v "=0"
herman@hptestserver:/usr/local$

(Also nothing with older .bin)

And system info:
Linux hptestserver 2.6.22-14-server #1 SMP Tue Dec 18 05:52:24 UTC 2007 x86_64 GNU/Linux

equation groupie
Feb 7, 2004

debased and dread pilled

GringoGrande posted:

There are newer and better SCM's than subversion. Here's a blog entry on how to use git and a apt hook to keep track of /etc.

As noted in the bottom of that post, etckeeper is designed to do the same thing, and I use it + a cron job to keep /etc versioned across a few machines. It's a really handy feature.

schzim
May 24, 2006
tl;dr

xdice posted:


Edit2: Tomcat is available on my ubuntu laptop (8.04 installed, and checked for Tomcat via Synaptic), so I'd bet you can simply 'sudo apt-get tomcat5.5 tomcat5.5-admin'

I'm not an experienced user of package managers will that get all the dependancies right? Install Java for me set a $JAVA_HOME etc?

If so :cool:

rugbert
Mar 26, 2003
yea, fuck you
is there a command to reverse the last made updates? I got some updates from fedora this morning and when i turned my computer back on after work, my resolution was hosed and all my network drivers were gone.

thankfully I made an image of my system after installation. In case this happens again tho, what can I do?

xdice
Feb 15, 2006

schzim posted:

I'm not an experienced user of package managers will that get all the dependancies right? Install Java for me set a $JAVA_HOME etc?

If so :cool:

I've not installed it myself, so I can't say for certain. However, if I'm installing it from a package manager, I hope it would do all that ancillary junk as well as install the application.

Try it and see. Worst case, you have to uninstall it, which is also easy because you can use the package manager to do that too.

Edit: Yep, I fired up the laptop again and looked at the info in Synaptic. It does look like it installs the required dependencies as well.

xdice fucked around with this message at 03:40 on Jun 7, 2008

schzim
May 24, 2006
tl;dr
Tried apt-get ing tomcat got:

Setting up tomcat5.5-admin (5.5.25-1ubuntu1) ...
* Stopping Tomcat servlet engine tomcat5.5 invoke-rc.d: initscript tomcat5.5, action "force-reload" failed.
dpkg: error processing tomcat5.5-admin (--configure):
subprocess post-installation script returned error exit status 255
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
tomcat5.5-admin
E: Sub-process /usr/bin/dpkg returned an error code (1)

anyone have any ideas?

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
I keep getting random lockups in Ubuntu, and I can't seem to figure out what it is. The machine just locks hard and I cannot do anything except power the machine down. I've went as far as disabling the video drivers, the only other thing I can think of is the wireless drivers.

Anyone know where I should start to investigate this?

JoeNotCharles
Mar 3, 2005

Yet beyond each tree there are only more trees.
Run MemTest on it overnight.

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
Memtest went all the way through without a problem. I'm going to try to take the wireless card out and see what happens.

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
Well the machine has no problems without the network card. That must be it. I'll just pick up a wireless router and use that to connect to my wireless connection from now on.

Slow is Fast
Dec 25, 2006

Right now I'm running ubuntu server with mdadm raid5 setup for all my media storage.

I have firefly and Jinzora setup for streaming music. Firefly covers daap, and lets xbmc and itunes connect. Jinzora is just a great overall web interface with a flash player.

I'm looking for what I can install on my server to help move my movies and tv shows across the network. I want to be able to have users connect with whatever application they want, whether it be xbmc or another app. I also want a companion website so they can have the metadata and links to watch the files on their computer with their default media player. I want the metadata, like IMDB poo poo stored on the server, not generated for every client. Is this possible? What should I be looking for that is multi platform so my family can watch my content?

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
I'm not sure how well developed it is yet, but XBMC is getting ported over to Linux, Windows and Mac. It does all of this for you (fetches IMDB data, caches it), as well as offers all sorts of metadata for sorting/searching.

tehk
Mar 10, 2006

[-4] Flaw: Heart Broken - Tehk is extremely lonely. The Gay Empire's ultimate weapon finds it hard to have time for love.

Slow is Fast posted:

What should I be looking for that is multi platform so my family can watch my content?

I know there are more then a few mythtv front ends and players for windows. If the front end/player does not provide the metadata you need use mythweb(download/stream links). Which should give you more then enough control. It has been a while since I used a newer version of mythtv so I may be out of the loop but I have a box that has been running a mythtv server built on dapper 24-7.

edit: The difference between a player and a front end is that the front ends usually takes more to setup and gives you tons of control. So a player is probably enough for your family. Also I think totem(Movie Player on GNOME) has mythtv player capabilities now so that is a good option for your own use. You can use the XBMC with mythtv as well.

tehk fucked around with this message at 18:30 on Jun 15, 2008

Mysterious Aftertaste
May 20, 2004

So Marigold, my love, you've had too much to drink...

Okay, my sound card has two separate DACs. And this has been a difficult question to google.

I couldn't care less about the lovely onboard quality one, but there's a 192KHz Wolfson DAC on there too. Now when I run anything under wine or firefox it uses the lovely DAC. At least the important things like music runs through the good one, but switching the plug between ports to use ventrilo is kind of annoying.

My .asoundrc if it helps...
code:
#

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,1"
format S32_LE
period_time 0
period_size 1024
buffer_size 8196

}
bindings {
0 0
1 1
}
}

ctl.dmixer {
type hw
card 0
device 1
}


#
I don't really know how to edit the .asoundrc (I picked it up from some site). Would it be related to "hw;0:1" ? Do I need a separate entry for "hw;0:0" (assuming 0:0 is the first)?

Doctor Nick
Dec 27, 2003

Mysterious Aftertaste posted:

Okay, my sound card has two separate DACs. And this has been a difficult question to google.

I couldn't care less about the lovely onboard quality one, but there's a 192KHz Wolfson DAC on there too. Now when I run anything under wine or firefox it uses the lovely DAC. At least the important things like music runs through the good one, but switching the plug between ports to use ventrilo is kind of annoying.
I've had problems with this too in the past. Some applications just ignore the default settings for ALSA and use hw:0:0. Switching it to hw;0:0 might work. I'm not sure how to do that, but you might check out the alsa wiki and its article on asoundrc here.

Also, if you're interested in a Ventrilo/TeamSpeak alternative, you should check out Mumble. It's free/open source, and by all accounts much better than vent/TS.

Ferg
May 6, 2007

Lipstick Apathy
So given my lovely knowledge of the detailed inner workings on file containers I figure I'll explain my predicament and maybe some of you guys can shine some light on this for me.

I used Handbrake to rip nearly my entire DVD collection down to H.264 encoded mp4's so that I could stream them easily to my Xbox and use that as a media center. All is well and then I decide running Zune network share on my PC is way too much work, so I push those movie files off onto my Ubuntu server. I got TwonkyVision installed and running last night and the only H.264 vid it ran was the one I accidentally ripped to an mkv container. So I poked around a little, and found that simply changing the extension of the mp4's to mkv will fix the problem. This worked for about 50% of the files. The others don't seem to be in a format that the Xbox can read (they all streamed fine as mp4's).

So my first question is: would finding an app to convert mp4 to mkv do the trick here? And also: is there a Linux based app that would do that? (a batch operation would be tits)

TheGreenBandit
Dec 22, 2006

President of the United States of Boogers
I've run into a perplexing performance issue with MDADM on Ubuntu 8.04. I used to have a 3 drive RAID-0 array in my media server (doing multiple audio and video streams over gigabit) which got performance around 60-80 MB/s, or a couple of 40-50 MB/s simultaneously. I finally got enough money to add a fourth drive, and make a RAID-5 array out of it, and now I'm getting at best 20 MB/s or simultaneous 10 MB/s transfers, and a bunch of lag if I don't set buffers in VLC high.

I realize that RAID-5 is naturally slower than RAID-0, but I didn't think I would have that much of a hit. Is there anything I can do to make this faster? Also, I've thought about using ZFS, but heard the LVM implementation was slow and a bit buggy still. Is this true?

EDIT: Looks like the array decided to rebuild shortly after I created it, so now I'm getting decent speeds again. :confused:

TheGreenBandit fucked around with this message at 21:37 on Jun 16, 2008

Adbot
ADBOT LOVES YOU

Zuph
Jul 24, 2003
Zupht0r 6000 Turbo Type-R

TheGreenBandit posted:

I realize that RAID-5 is naturally slower than RAID-0, but I didn't think I would have that much of a hit. Is there anything I can do to make this faster?

Buy a hardware RAID card. In my experience, software RAIDs take a tremendous performance hit relative to hardware RAIDs in RAID-5.

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