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
Alowishus
Jan 8, 2002

My name is Mud

DEAD MAN'S SHOE posted:

Not only the password issue but having to specify it prior in a root-only config file defeats the idea of being able to mount random shares on the fly.
Ah sorry didn't realize the goal was arbitrary SMB mounts.

Ok, first of all the sudo solution that Grey Area suggested can be configured to work without a password.

Second, are you *sure* that you changed the right binary files with the right chmod command? Straight from the 'mount.cifs' manpage - "It is possible to set the mode for mount.cifs to setuid root to allow non-root users to mount shares to directories for which they have write permission." That sounds like exactly what you want.

The third approach would be to install FUSE and the SMB module, since that's all user-space stuff and no root is required.

Adbot
ADBOT LOVES YOU

JawnV6
Jul 4, 2004

So hot ...
I wrote a simple program with ncurses to call a command that generates a lot of output and refreshes it every few seconds. This avoids filling up a terminal with nothing but that output and having to manually push up and enter to refresh the output. It seems general and simple enough to have some simple unix command to do this, is there something like what I'm talking about?

On a completely different note, if I have a MCE in hardware I know that Windows bluescreens. What does Linux do?

ShoulderDaemon
Oct 9, 2003
support goon fund
Taco Defender
watch(1) runs a program every few seconds and refreshes the screen.

Linux kernel panics on unrecoverable errors.

JawnV6
Jul 4, 2004

So hot ...

ShoulderDaemon posted:

watch(1) runs a program every few seconds and refreshes the screen.

Linux kernel panics on unrecoverable errors.
Yep, that's it. Thanks.

Is a kernel panic going to display the MC registers? I'm going to want a screenshot showing specific information, if it's not there where would I look to start adding to that output?

JawnV6 fucked around with this message at 23:48 on Mar 5, 2008

DEAD MAN'S SHOE
Nov 23, 2003

We will become evil and the stars will come alive

Alowishus posted:

Second, are you *sure* that you changed the right binary files with the right chmod command? Straight from the 'mount.cifs' manpage - "It is possible to set the mode for mount.cifs to setuid root to allow non-root users to mount shares to directories for which they have write permission." That sounds like exactly what you want.

Yeah, I thought I had.

quote:

sudo chmod u+s `which mount` `which umount` `which mount.cifs` `which umount.cifs`

I'm not certain of my switches here but I'm sure this worked on the previous Ubuntu release

juggalol
Nov 28, 2004

Rock For Sustainable Capitalism
Edit: Beaten

juggalol fucked around with this message at 04:44 on Mar 6, 2008

Alowishus
Jan 8, 2002

My name is Mud

DEAD MAN'S SHOE posted:

Yeah, I thought I had.

I'm not certain of my switches here but I'm sure this worked on the previous Ubuntu release
Call /sbin/mount.cifs directly:
code:
$ mount -t cifs //server1/library /mnt/test
mount: only root can do that

$ /sbin/mount.cifs //server1/library /mnt/test
Password: <Samba Passwd>
$ mount
...
//server1/library on /mnt/test type cifs (rw,mand,nosuid,nodev,user=username)
Also the user has to own the mount point. Sorry this didn't occur to me earlier!

DEAD MAN'S SHOE
Nov 23, 2003

We will become evil and the stars will come alive
Wow, thanks!
That's quite odd behaviour...

Slow is Fast
Dec 25, 2006

I'm trying to setup mythtv on an ubuntu server 7.10 install. Whenever I try and run mythtv-setup, I get hammered with this loop:
code:
08-03-05 01:24:38.668 Using runtime prefix = /usr

2008-03-05 01:24:38.691 Gnome-Screensaver support enabled

2008-03-05 01:24:38.693 DPMS is active.

2008-03-05 01:24:38.746 New DB connection, total: 1

2008-03-05 01:24:41.753 Unable to connect to database!

2008-03-05 01:24:41.753 Driver error was [1/2003]:

QMYSQL3: Unable to connect

Database error was:

Can't connect to MySQL server on '192.168.1.110' (113)



QSqlQuery::exec: database not open

QSqlQuery::exec: database not open

2008-03-05 01:24:44.814 DB Error (KickDatabase):

Query was:

SELECT NULL;

No error type from QSqlError?  Strange...

2008-03-05 01:24:47.873 Unable to connect to database!

2008-03-05 01:24:47.873 Driver error was [1/2003]:

QMYSQL3: Unable to connect

Database error was:

Can't connect to MySQL server on '192.168.1.110' (113)



QSqlQuery::exec: database not open

QSqlQuery::exec: database not open

2008-03-05 01:24:50.933 DB Error (KickDatabase):

Query was:

SELECT NULL;

No error type from QSqlError?  Strange...

2008-03-05 01:24:50.983 Database not open while trying to load setting: GuiVidModeResolution

2008-03-05 01:24:53.993 Unable to connect to database!

2008-03-05 01:24:53.993 Driver error was [1/2003]:

QMYSQL3: Unable to connect

Database error was:

Can't connect to MySQL server on '192.168.1.110' (113)



QSqlQuery::exec: database not open

QSqlQuery::exec: database not open

2008-03-05 01:24:57.053 DB Error (KickDatabase):

Query was:

SELECT NULL;

ETC ETC ETC
Apparently mythtv-setup isn't getting into the sql database properly so terminal is just barfing errors at me.

I can post any configs necessary.

Thanks to anyone who has solutions.

Alowishus
Jan 8, 2002

My name is Mud

Slow is Fast posted:

Apparently mythtv-setup isn't getting into the sql database properly so terminal is just barfing errors at me.
First verify that MySQL is actually running.

Second, is the MySQL server at 192.168.1.110 on the same machine, or a different one?

If on the same machine, try connecting to 127.0.0.1. MySQL's access control will prevent connections via any other address unless you go in and explicitly allow it.

Lukano
Apr 28, 2003

I've got a rather embarassing question, that goes to show exactly how little I know about using Linux, after nearly a decade of casual use.

I've been following the XBMC Linux & OSX port progress (https://www.xbmc.org) for a while now, and am trying to throw together a community site related to XBMC. Specifically I want to play host to 'generic' compiles of the application that users can download and run (tarball) without having to compile for themselves.

I know this isn't an ideal method of people obtaining the applications, but I'm pretty confident I can make it work.

That being said, I honestly haven't the foggiest clue how to go about compiling something (say on an Ubuntu 7.10 32bit running on an A64, Intel Centrino, or C2D machine) intended to run on other linux flavors, with various hardware implementations.

Any suggestions on where to start? Or anyone interesting in throwing in their lot with me and assisting with my little 'project'?

https://www.xbmcbuilder.com is what I've thrown together so far (yeah I know, Joomla. It was quick and easy).

Chuu
Sep 11, 2004

Grimey Drawer
I am trying to get a directx app working in a VM. It uses a ton of features not supported by VMWare's DX compatibility so that's a no go.

I am wondering if the way wine works -- it is theoretically possible to run it under Wine and whatever DX compatibility methods Wine use will allow it to render. I know the FPS will probably be well under 1, but just getting it to render is the goal.

If so, can someone suggest the absolute smalled distro that would be suitable for this? Preferably something debain based (I love apt-get) with almost nothing besides X and a lightweight WM installed.

Ferg
May 6, 2007

Lipstick Apathy

Chuu posted:

I am trying to get a directx app working in a VM. It uses a ton of features not supported by VMWare's DX compatibility so that's a no go.

I am wondering if the way wine works -- it is theoretically possible to run it under Wine and whatever DX compatibility methods Wine use will allow it to render. I know the FPS will probably be well under 1, but just getting it to render is the goal.

If so, can someone suggest the absolute smalled distro that would be suitable for this? Preferably something debain based (I love apt-get) with almost nothing besides X and a lightweight WM installed.

You could just do a barebones Ubuntu server installation without any actual server software (it lets you choose during install) and install the WM setup you need.

Chuu
Sep 11, 2004

Grimey Drawer

Ferg posted:

You could just do a barebones Ubuntu server installation without any actual server software (it lets you choose during install) and install the WM setup you need.

Thanks for the advice, downloading ubuntu server now to test this out. Can you recommend the best lightweight WM? I actuality really liked twm from my Solaris days but I don't see it supported by Ubuntu.

ShoulderDaemon
Oct 9, 2003
support goon fund
Taco Defender

Chuu posted:

Thanks for the advice, downloading ubuntu server now to test this out. Can you recommend the best lightweight WM? I actuality really liked twm from my Solaris days but I don't see it supported by Ubuntu.

It's certainly in Debian. Is there any reason a simple Debian install isn't what you want?

Chuu
Sep 11, 2004

Grimey Drawer

ShoulderDaemon posted:

It's certainly in Debian. Is there any reason a simple Debian install isn't what you want?

If what I want to do ends up working I'm going to clone the VM several times and a full ~4 gig debain install is going to start to eat a bit too much space, not to mention I want every CPU cycle I can gather.

Ferg
May 6, 2007

Lipstick Apathy

Chuu posted:

Thanks for the advice, downloading ubuntu server now to test this out. Can you recommend the best lightweight WM? I actuality really liked twm from my Solaris days but I don't see it supported by Ubuntu.

TWM is nice and hardcore if you're going for super lightweight. If you're a bit more lenient and can deal with more than two colors on your desktop try: Window Maker, IceWM, Fluxbox, or Openbox. Really though, if you're looking for the bare minimum twm is in Ubuntu and that'll suit you just fine.

admiraldennis
Jul 22, 2003

I am the stone that builder refused
I am the visual
The inspiration
That made lady sing the blues
Fluxbox is a wonderful window manager. I started with it on my fileserver since I didn't need a full desktop environment, but recently I've ditched gnome in favor of it on my school's cs network and I'm not looking back.

ShoulderDaemon
Oct 9, 2003
support goon fund
Taco Defender

Chuu posted:

If what I want to do ends up working I'm going to clone the VM several times and a full ~4 gig debain install is going to start to eat a bit too much space, not to mention I want every CPU cycle I can gather.

4 gigs?!?! Where'd you get that number from?

My media server root+usr+var is under 2 gigs, my desktop machine with hundreds of dev libraries and desktop apps is under 4 gigs, most of the virtual machines I run are way under 1 gig, base+required installs in under 180 megs and after apt-get clean is under 140, if you drop stuff from base you can kill about a quarter of that pretty easily, and if you're in a virtual machine and don't need filesystem tools or networking tools you can usually get to around 70 megs or so. If that's not small enough, emDebian can frequently get a working base in under 50 megs, and sometimes smaller.

bitprophet
Jul 22, 2004
Taco Defender

ShoulderDaemon posted:

4 gigs?!?! Where'd you get that number from?

Yea, that's ridiculous. I generate new Debian and Ubuntu Xen VMs almost daily and after installing a full set of LAMP-type server software it's rarely over a gig, gig and a half tops. A base Debian install shouldn't be more than maybe 500-700MB, IIRC.

EDIT: Speaking of small Debian installs, and lightweight WMs, fvwm2 is what I cut my X11 teeth on when learning Linux back in the day on an old machine; it looks a bit nicer than twm and has more colorizing options, but is still super stripped down compared to even the *boxes.

bitprophet fucked around with this message at 05:13 on Mar 7, 2008

x1o
Aug 5, 2005

My focus is UNPARALLELED!
Quick scripting question. How do I capture the output of a command using bash?

covener
Jan 10, 2004

You know, for kids!

TheHeadSage posted:

Quick scripting question. How do I capture the output of a command using bash?

FOO=$(bar) or FOO=`bar`

Slow is Fast
Dec 25, 2006

Alowishus posted:

First verify that MySQL is actually running.

Second, is the MySQL server at 192.168.1.110 on the same machine, or a different one?

If on the same machine, try connecting to 127.0.0.1. MySQL's access control will prevent connections via any other address unless you go in and explicitly allow it.

The mysql server is on the same machine I'm trying to run setup on. It's all on 192.168.1.110. I also tried 127.0.0.1 and local host in the setup, yet I get the same error loop from myth.

lord funk
Feb 16, 2004

New Linux user! I installed Debian to work as a basic AV server, and successfully set up Darwin Streaming Server. Streaming over LAN works perfectly, but I'm getting an error when I try and stream through Port 80. From what I've learned, something else on the machine might be using Port 80.

My question: how can I tell what is using Port 80? I'm not really sure where to view what processes are running, or in fact who might be the culprit. Any guidance would be appreciated.

covener
Jan 10, 2004

You know, for kids!

lord funk posted:

New Linux user! I installed Debian to work as a basic AV server, and successfully set up Darwin Streaming Server. Streaming over LAN works perfectly, but I'm getting an error when I try and stream through Port 80. From what I've learned, something else on the machine might be using Port 80.

My question: how can I tell what is using Port 80? I'm not really sure where to view what processes are running, or in fact who might be the culprit. Any guidance would be appreciated.

sudo lsof -i :80 or
sudo netstat -plnt|grep :80

Mysterious Aftertaste
May 20, 2004

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

Here's a dumb question.

How can I start a process within SSH and not have it close the process when I terminate the SSH connection?

covener
Jan 10, 2004

You know, for kids!

Mysterious Aftertaste posted:

Here's a dumb question.

How can I start a process within SSH and not have it close the process when I terminate the SSH connection?

Most flexible method is to run it inside of 'screen'.

see also: nohup

waffle iron
Jan 16, 2004

covener posted:

Most flexible method is to run it inside of 'screen'.

see also: nohup
Bash also has disown, which removes a background process from the jobs table.

Combat Pretzel
Jun 23, 2004

No, seriously... what kurds?!
Is there actually such a thing as a terminal emulator supporting 24bit color?

lord funk
Feb 16, 2004

covener posted:

sudo lsof -i :80 or
sudo netstat -plnt|grep :80

Thanks! Turns out Apache was running, so I killed that.

With a little more research, it looks like Darwin Streaming Server will not allow the port set below 1024 unless you are running as root. How can I do that? I've read that you can't login as root in the graphical interface.

JoeNotCharles
Mar 3, 2005

Yet beyond each tree there are only more trees.

lord funk posted:

Thanks! Turns out Apache was running, so I killed that.

With a little more research, it looks like Darwin Streaming Server will not allow the port set below 1024 unless you are running as root. How can I do that? I've read that you can't login as root in the graphical interface.

Nothing allows ports below 1024 unless you're running as root. 1024 is supposed to be for system services, and 1025+ for user stuff.

(I'm not a Mac guy, so I don't have an answer for you, but that's just some background.)

lord funk
Feb 16, 2004

JoeNotCharles posted:

Nothing allows ports below 1024 unless you're running as root. 1024 is supposed to be for system services, and 1025+ for user stuff.

So just to clarify, I have to run DSS as a root process, or somehow give it root privileges? I thought I already did that, since I needed to run the launch command as root. What do I do differently?

Edit: DSS version 5 changed to run as a non-root user for security reasons. That's great and all, but how then are you supposed to allow it to use port 80?

lord funk fucked around with this message at 21:22 on Mar 8, 2008

Slow is Fast
Dec 25, 2006

I'm still working on getting mythtv setup on my linux box. For some reason mythtv cannot get into the mysql database. I am completely loving baffled as to how to get this going. It's looping errors in terminal when I try to run setup. I've reinstalled all of mysql and mythtv 4 times and nuked the config each time I reinstalled. I even tried it on a clean ubuntu install, and still get the cant connect to mysql database loop. I installed MySQL admin and I cannot get into the database due to incorrect username/pass. Webmin can't get into mysql either. I'm lost and discouraged as hell.

I've followed this guide:
https://help.ubuntu.com/community/MythTV_Edgy_Backend_Frontend_Desktop

I even made sure to add myself to the mythgroup to avoid the database loop, and yet it still shits on itself.

Please help me goons.

Edit: ubuntu 7.10

Edit2: I finally fixed it, used Webmin to nuke the passwords and redid the mysql accounts. Boy I feel silly now.

Slow is Fast fucked around with this message at 06:22 on Mar 9, 2008

Combat Pretzel
Jun 23, 2004

No, seriously... what kurds?!
Quick postfix question. If I want external clients or spammers to prevent using my SMTP server as relay, while being able to send from localhost to any host I want under any source address, I just need to set mynetworks_style=host, right?

Doing so appears to bring the desired behaviour, I still want to ask for confirmation before I get an entry at Spamhaus or anywhere.

Zuph
Jul 24, 2003
Zupht0r 6000 Turbo Type-R
Okay, this is driving me insane. Using a command line FTP client, how can I move the contents of a directory (including multiple files and subdirectories) to its parent?

Alowishus
Jan 8, 2002

My name is Mud

Toiletbrush posted:

If I want external clients or spammers to prevent using my SMTP server as relay, while being able to send from localhost to any host I want under any source address, I just need to set mynetworks_style=host, right?
That's right, as long as 'mynetworks' isn't set at all.

x1o
Aug 5, 2005

My focus is UNPARALLELED!
With my first real foray into shell scripting, I'm writing a script which checks once a week to see if I have any updates, and also checks to see if there are any important or critical ones.

However, this script only partialy works. The checks for the important updates work, yet the critical ones don't.

Can someone take a look at this and see where it's all gone wrong? Also, are there any tips to make this more efficient?

The script can be found here: http://www.tempusconsto.com/update.sh.txt

Once I get it working I intend to use the one script to check for updates on 4 servers..

Ferg
May 6, 2007

Lipstick Apathy
Edit: Nevermind that.

Chuu
Sep 11, 2004

Grimey Drawer

ShoulderDaemon posted:

4 gigs?!?! Where'd you get that number from?

After using apt-get clean && apt-get autoclean, and letting VMWare compress the image, the Ubuntu VM I use for some programming work comes out to a bit over 4 gigs. The only real things over the base package I installed was eclipse, the jdb, jdk, and emacs. I don't know how much space the install actually uses (and honestly I'm not really sure how to check) but that's as tight as VMWare lets me get it.

Adbot
ADBOT LOVES YOU

Cucumbers
Apr 9, 2006
<img alt="" border="0" src="https://fi.somethingawful.com/customtitles/title-cucumbers.jpg" /><br />Happy Train Speedmobile! (<b><i>Stallman Approved</i></b>)

Is there any way to download an .iso (preferably the new openSuSE) and install it through Windows?
Instlinux isn't an option, because I can't use my Wireless USB through the installer.

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