Search Amazon.com:
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 $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
«4 »
  • Post
  • Reply
Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Can anyone recommend an application that runs in cli mode without the need for X11 and can capture individual frames from a V4L source, in this case a Hauppauge HVR-950 USB tuner.

I've been tasked with making a small appliance for a lab experiment that basically takes frames from a video feed of an experiment and makes them available via HTTP. I'd rather keep this headless and eliminate the need for X.

Sorry if it's a dumb question. It's been about ten years since I last did anything with Linux in this capacity, and googling hasn't revealed much of interest.

Edit: Bonus points if someone can recommend a solution which would stream video as well, but that is going way beyond the scope of my original project. I've looked up VLS and VLC, but I think both require X

Martytoof fucked around with this message at Jun 19, 2008 around 21:33

Adbot
ADBOT LOVES YOU

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Thanks! A quick check through that site pointed me at fswebcam which seems to do exactly what I want. I'll try it out on Monday when I get back to the lab.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Can anyone recommend a stripped down Linux distribution which includes V4L drivers in its basic kernel? I'm looking for the smallest footprint I can get, and I don't want gcc or anything installed.

End result is that I want to be able to fit this stripped down distribution on a USB stick. I know there are several small USB-stick enabled distributions already, but they're all dolled up with fancy GUIs and apps that I don't need.

I'm ready to do the work in cleaning up a more featured distribution to fit, but I'm just looking for recommendations first. Again, the only requirement is that V4L modules are present in the base kernel without any compilation necessary.

Edit: I have to say, after using MacOS for the past half dozen plus years, coming back to Linux doesn't feel as awkward as I thought it would

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



It allows owner and group full read/write/execute access, and everyone else read/execute so they can traverse the directory.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



I'm going to feel pretty dumb if this is obvious, but I'm playing around with distributions and I wanted to give Ubuntu Server a try. Coming from OpenSuse, I found it nice to be able to configure common items through Yast via the commandline. Is there something similar in Ubuntu? I'm fine with editing config files by hand, but Yast was nice for things like firewall setup.

I'm working on headless systems mostly so I'm looking specifically for cmdline tools.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



That's pretty much where I was going with it, thanks. I'm plenty OK with text based config files but there are times where I feel it is nice to get a window with some checkboxes, but that could just be me having spent the last ten years as a Windows developer

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



There is nothing quite so heartbreaking as seeing a 5+ year uptime reduced to 5 minutes because a student pulled the wrong cable

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Zom Aur posted:

Or that someone wanted to rearrange a server because it "looks better over there" thus pulling the plug and rendering the owner a corrupt filesystem.

Yeah, this happened to a friend of mine.

Ouch.

Seven or so years ago, I rearranged an entire datacenter without turning a single machine off. Thank god for dual power supplies. There's something awesome about carrying a half-ton HP proliant server between racks while it's serving copious amounts of data.

In retrospect that probably wasn't the greatest idea, but I managed to avoid dropping anything (important)

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Bear with me, I'm kind of new to LVM and maybe I'm not understanding how it works or I'm explaining it wrong, but here's my scenario:

I'd like to convert my Vista HTPC to just a Linux file server. I have three 320 NTFS SATA drives with various media right now. While it's not critical data I don't really want to bother having to re-rip all my CDs and DVDs.

My understanding is that LVM will allow me to grow my logical drive by adding drives one at a time. I'm not concerned with redundancy but I'd like to concantenate all 320GB drives together into one large logical volume. I'm not interested in RAIDing at the moment.

I will be installing Ubuntu's root physically on a 40GB PATA

What I'd essentially like to do is use Vista to essentially free up one of my 320gb drives by consolidating data to the other two, then:

1. Install Ubuntu to the 40GB root
2. Create a LVM volume on the now-free 320GB drive.
3. Copy all the data from one of the NTFS 320GB drives to the new LVM
4. Erase the 320GB NTFS drive I just copied data from, add it to the LVM logical array.
5. Repeat 3/4 with the other 320GB NTFS drive.

Will LVM let me do what I'm looking for? I'm more familiar with ZFS and that wouldn't be a problem, but I'd like some input before I go ahead and start wiping stuff. If anyone has any suggestions for configuration and setup as well, that would be great. Most of my media is between 200MB and 10GB, the only exception is my MP3 library. Not sure whether I should be optimizing the filesystem accordingly or what.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Does anyone know whether LVM volumes are strict about drives maintaining the same IDs?

Like if I move my LVM array to another computer and it detects the drives out of order, or if I accidentally plug disk 2 into SATA channel 3, am I hosed? LVM expected disk 2 to be sdb but now it's sdc so is it going to barf all over my precious data?

For reference it's 3 drives all concat'd into one large volume. No RAID applied.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Beauty, just what I wanted to hear, thanks!

Part of me always believed it couldn't be that prone to user error, but I've been wrong before

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Is there any kind of alternate-kernel system for Ubuntu? I'm running 8.10 and I'd like to revert back to the 8.04 kernel because something in the new one is killing Folding@Home speeds. Is there like an apt-get historic-kernel something I can do with one command or will I need to just recompile the kernel myself. I seriously haven't compiled a kernel in more than 10 years so I'm a little leery of having to do that and messing up some device drivers or something.


I'll probably just up and reinstall the base system with 8.04 if there isn't.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Coupon Wizard posted:

Both machines are connected wirelessly to a router. I've done a bit of googling and haven't found anything useful yet, so maybe one of you blokes can help.

Have you tried a similar transfer between two windows hosts? Don't forget that wireless is basically a giant single-duplex collision domain so the more talk there is the more collisions, the slower your transfer is going to get. It's basically why I ditched wifi in my home in favour of ethernet connections.

That may, of course, not be the problem, but I'd try running this between two Windows hosts if you can. If you get similar results, that's just WiFi being WiFi.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Coupon Wizard posted:

I'll give it a shot when I can (probably in the next few days), as the only other Windows machines here belong to other people.

Oh, I forgot to mention in my last post, speedwise I tried to copy a 2gb directory onto my laptop (the one with XP) and it said it was going to take over 2 hours. Surely this can't be normal? I guess I'll know when my brother gets back.

Yeah that doesn't sound right. Maybe try this in the meantime: Download pscp.exe (google search) and try to pscp the same file to/from your linux box using SSH. If you get noticeably higher speeds then you can safely disregard my WiFi suggestion and concentrate on Samba itself.

Sorry for the lack of concrete solutions, but this might at least point you in the right direction.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



I need some scripting advice.

I've got a terminal server that allows connections to my handful of Cisco devices. To connect to these you just "telnet termserver.local deviceport" where deviceport is 2001 for port 1, 2002 for port 2, etc.

I'm way too lazy to remember what each port is connected to so I thought there might be a good way to script out some kind of menu like:

[1] Console to 2950 Switch 1
[2] Console to 2950 Switch 2
[3] Console to 3640 Router 1
[4] Console to 3640 Frame Relay Switch

and behind the scenes it would just "telnet termserver.local switch1_port" if I hit 1, etc.

Is there a quick and easy way to do this via some scripting toolkit or am I looking at coding something in C?

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Martytoof posted:



After some googling I came up with this:

code:
#!/bin/sh

tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
trap "rm -f $tempfile" 0 1 2 5 15

dialog --menu "Connection:" 20 60 10 \
 2002 "C2900-24" \
 2003 "C2950-12 01" \
 2004 "C2950-12 02" \
 2005 "C2620XM 01" \
 2006 "C3640 128D/16F 01" \
 2007 "C3640 64D/16F 01" \
 2008 "C3640 64D/15F 02 FrameSwitch" 2> $tempfile

retval=$?
choice=`cat $tempfile`

case $retval in
        0)
                clear
                telnet 192.168.1.20 $choice;;
        1)
                clear;;
        255)
                clear;;
esac
.. in case it helps anyone else down the road.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Maybe something like Puppy Linux or DSL?

Your Ram is really the only limiting factor. The rest seems pretty able to handle a more up to date distribution like Ubuntu.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Is there a good way to pare down the "amazing poo poo" opensuse installs? I am building a computer for my mom at my dad's request after her Mac started failing, but I have this sinking feeling that if I let her loose on opensuse the way it is I'm literally going to be on the phone with her every five minutes trying to explain something.

Stipulation is that it'll be opensuse because that's what my dad "knows" and he won't hear anything against it. If I tell him to just build it since he knows about opensuse, he'll build it his way and they're basically going to murder each other because my mom is a technophobe and needs a five minute talk through of how to move a mouse to launch firefox, and my dad will just tell her to browse for Firefox among the other 200 apps installed on the system and will get upset when she can't find it, etc etc.

Things like the plasma desktop, the dozens of icons in the tray, the multiple desktops -- all have to go. Ideally I would like to make the experience as simple as possible, and remove any chance of her clicking something and being taken to some desktop, or opening some widget window -- hopefully you guys know where I'm going with this.

Like ideally I would love to recreate as much of the mac "experience" as I can, a dock-ish thing with four launchers for an email client, a web browser, and a photo manager.

I have literally not used Linux on a desktop since like 2003 or so, so when I installed openSuse I was pretty blown away by all the whiz-bang that they've added.

I hope this doesn't come across as combattive or anything. I really enjoy Linux on the server side of things, and I'm not looking to start any debate on the usability of Linux as a desktop, just some advice to help me pare down the features in Suse for my technophobe mom

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Can I just pull plasma and all that poo poo in Yast, or will that fundamentally break something? Cause if I can do that then I think you just pretty much answered my question, thanks!

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Cool, thanks very much. I'll try pulling that stuff in Yast first, then if that fails I'll try rolling my own.

Also, general question to everyone: Is it normal for the Suse updater to be completely broken after a fresh install? Like the last two times I installed a Suse system the updater wasn't able to do its thing because it thought something else was using the package system, and when you opened up Yast it would just complain more -- I don't know if I'm doing something wrong or whether it's just a mess.

I'm betting I'm just doing it wrong though.




Bob Morales posted:

Like 'winlite', but for Linux?

Not sure what winlite is, but if it's something that makes the UI nearly idiot-proof then yeah

Martytoof fucked around with this message at Feb 14, 2011 around 09:47

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Has anyone had a problem with OpemSuse 11.3 (or just X11 in general) where some text on certain parts of the screen seem to be faded with the alpha channel of other screen elements? Like I had a youtube video playing in one window, and in another titlebar the text seemed to flicker in a really weird pattern, as if part of the youtube video was playing entirely contained within the letters themselves. It was pretty trippy, and I'm not sure if I'm explaining it correctly so I just have to hope that someone can imagine what I mean.

I'm leaning towards some kind of weird compiz problem, but I disabled desktop effects entirely. I kind of want to just remove compiz entirely, but I'm worried that it will break the install -- any thoughts?

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Bob Morales posted:

What video card and driver?

I'll have to doublecheck next time I'm at the computer, but I believe it's an 8400GS, and the driver is whatever is current from NVidia's OpenSuse 11.3 repo. Will edit this post once I have some concrete info.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Set one of the two ethernet cards in my OpenSuSE system to have no IP address via YAST, and it deleted my default route

Did it again just to make sure it wasn't something I did, and it deleted the default route again

Hope this is just a bug in 11.2 and not how YAST is supposed to work.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



This may be a dumb question, but unless you're specifically looking to ditch the MBP can't you just install Ubuntu on it? I'm googling around a bit and depending on which model you have it looks like there's a fair to good amount of support for the hardware.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Since we're talking about wpa_supplicant, can someone post their wpa_supplicant.conf that's known to work with a WPA Personal AP?

I'm fighting with wpa_supplicant every step of the way to get wireless running on this headless ubuntu-server machine (laptop with broken screen that I figured I'd repurpose). "iwlist scan" shows that it finds my AP's SSID so I think (hope) that means my card is actually working.

Here's mine, that I'm having zero luck with:

ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Giewont"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=passgoeshere
}

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Martytoof posted:

Since we're talking about wpa_supplicant, can someone post their wpa_supplicant.conf that's known to work with a WPA Personal AP?

I'm fighting with wpa_supplicant every step of the way to get wireless running on this headless ubuntu-server machine (laptop with broken screen that I figured I'd repurpose). "iwlist scan" shows that it finds my AP's SSID so I think (hope) that means my card is actually working.

Here's mine, that I'm having zero luck with:

ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Giewont"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=passgoeshere
}

For what its worth, I got it working by just using:

ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Giewont"
scan_ssid=1
key_mgmt=WPA-PSK
psk="xyz"
}

in my wpa_supplicant conf file and adding:

post-up wpa_supplicant -ieth0 -c/etc/wpa_supplicant.conf -B

to my eth0 definition in /etc/network/interfaces because whatever wpa_supplicant flags it was supplying were completely breaking the process, and I didn't feel like tracking down the flags one by one in the .d files. Wish I'd thought to do this yesterday instead of fighting with it for like 3 hours.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



I'm building a desktop for myself in the lab here, and I decided to give Ubuntu a whirl after years of using MacOS as my primary desktop, just to get back into the Linux swing of things. I installed 11.04 64-bit.

The entire new menu system feels really weird and completely different from all the older Gnome menu systems I'm used to, to the point of being a little counterproductive. I'm sure I'll get used to it sooner or later, but my initial impressions went from "wow, this is really really nice and polished" to "ugh this is really poorly designed" pretty quickly.

Anyway, two questions:

- Where can I go to configure my hostname? I mean I know I can edit the relevant entries in /etc/hostname and /etc/hosts, but there has to be some way to do it graphically, no?

- If I drag a window to the top of the screen, it automatically wants to make it fullscreen. How do I disable this behaviour?

Thanks!

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



spankmeister posted:

Log out, choose "ubuntu classic" from the menu bar in the bottom at the login screen, log in again.

Enjoy a non-terrible desktop.

Haha, I forgot I could change my session type, going to do this now, thanks. The new launcher is a really neat idea and I'm not opposed to it -- I'm a big fan of the MacOS dock despite all its foibles, but the current implementation of the launcher is loving terrible. Can't rearrange my icons? Can't disable the terrible colourful backgrounds behind each icon? The list goes on.

The top menus are a neat idea too, again because I'm used to them from MacOS, but the implementation is so weird. The menus obscure the app name, they're not permanent so the user has to remember to mouse up to the top to get to their menus. It's just so bizarre

Bob Morales posted:

Puh-lease try lUbuntu.

https://help.ubuntu.com/community/Lubuntu/GetLubuntu

I'm pretty comfortable with Gnome as a desktop, but I'll give this one a try in the VM later on, thanks!







In the meantime, still no ideas on how to change hostname through the GUI? I guess most users wouldn't need to do this, but it still seems like a weird oversight to not let us do that somehow.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



spankmeister posted:

Honestly, no clue. Most of my machines are headless anyway and the ones that do have a gui, well I just change it in the files.

Yeah, that's what I ended up doing. Back to my commandline roots

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Bob Morales posted:

Can you just change it under network settings?

You'd think so, huh?

There's not even any Network Settings in this system that I can find. Everything looks to be under "Network Connections" and those are just the physical devices and VPNs

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



BlackMK4 posted:




edit: Whoops, new page!

bort posted:

Administration, Networking, General.

Sorry, haven't been in the lab for a few days, but this panel doesn't exist in 11.04 apparently.

The closest I have is "Administration -> Network Tools" and "Preferences -> Network" Connections.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



ClosedBSD posted:

It should be under Network Connections

On wired click add and then click the IPv4 tab, fill out everything there.

I really wish they would re-label things in there since I frequently click on network tools, which if i recall correctly is like a pretty gui for ping and nslookup or something.

Yeah, I just checked this today. There was definitely no hostname in the ipv4 tab. Oh well. I'm going to flatten this tomorrow and install MacOS anyway, this was just a bit of a test to see how usable I found Ubuntu on a daily basis for a few days.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



I'm looking to put together a small backup solution for a few Linux lab computers due to stupid students overwriting or deleting some report data.

My criteria is that it be able to do incremental backups, and that it have a good UI for restoring individual files, whether that be a Web UI or a client on the end machine. Ideally I'll be making backups to a RAID array of maybe 2TB drives so no tape backup necessary. Also I'd love to be able to restore revisions of files, similar to how I can with Time Machine on my Mac, where I can restore the version of xraydata.csv from a week ago versus from the backup job last night.

I'm looking at Bacula, is there anything else I should be seriously giving attention to?

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Does anyone here have any experience sharing CUPS printers via Avahi to MacOS X clients from a Linux (opensuse) server?

I ticked the sharing checkboxes in CUPS admin, created a printer.service service configuration for Avahi and everything seems to work properly, MacOS detects it as an AirPlay printer but when I go to print anything it prints with ridiculously large borders, that is to say my text is in a six inch box centred on my page.

Not sure whether this is a MacOS issue or a Linux issue. The same printer plugged directly into the Mac prints fine, but the local printer definition on the Linux server also prints just fine. CUPS makes me want to tear my hair out, as does printing on Linux in general. Any suggestions would be welcome.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



That's the direction I'm going to go, but it would be nice to not have to manually set up this printer on the hundreds of Macs in this building :[

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



nitrogen posted:

This reminds me of a newbie helpdesk tech that tried to use "killall" on an old version of solaris, and got very different results than he expected...

Goddamn, I did this like three times, once on a production system. Killall was the worst lazy habit I ever picked up.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Is there any app that will capture a single frame from a V4L source and output it as a jpeg/png/etc WITHOUT X11 running?

Right now xawtv does this just fine, but it requires X11 to be present on the system and running, and for one reason or another I would prefer that the system I replace this with be built out to be console-only.

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Thanks. VLC seems like the sort of thing that would require X11 to be running though, doesn't it?

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Sounds like I'll be giving ffmpeg and mplayer a shot then.

I wasn't sure if it would take v4l input but it looks like it will. Thanks very much

Adbot
ADBOT LOVES YOU

Martytoof
Feb 25, 2003



Awesome.

Awesome to
the MAX.



Is it possible to configure dhcpd to only send offers to specific MAC addresses?

I am on a campus subnet that not only doesn't offer DHCP but actively probes and blocks machines which send out unauthorized offers. I need to play around with a PXE boot environment, though, so I want to set up a limited DHCP server to PXE boot no more than seven servers.

So I guess can I do just a

host esx1 {
hardware ethernet x:y:z;
filename "pxeblah";
fixed-address 1.2.3.4;
}

without offering leases to the entire subnet?

Due to cabling of the machines, I can't easily reconfigure them to a private subnet, so I'm forced to try this out on the public network.

This seems like the sort of thing that should be determined with three seconds of googling, but for some reason I can't find a good answer. I'd love to see an example dhcpd.conf if anyone has one.


e: Any thoughts on something like this:

code:
option domain-name __MYDOMAIN__;
option domain-name-servers 130.113.128.1;

default-lease-time 600;
max-lease-time 7200;
ddns-update-style none; 
ddns-updates off;

subnet __MYSUBNET__ netmask 255.255.255.0 {
	option routers __MYGATEWAY__;
	option subnet-mask 255.255.255.0;
}

group {
	host esx1 {
		hardware ethernet xx:yy:etc;
		fixed-address __ESX1_IP__;
	}
}

Martytoof fucked around with this message at Jan 16, 2012 around 17:04

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