|
Bob Morales posted:When they say 'unstable' they don't mean that in terms of crashing or anything like that. Theres the occasional chance of package conflicts and whatever since it has newer versions of software. I wouldn't rule it out, but its not like they are pushing development builds into the packages or anything. Debian is just anal about what goes into stable. I ran it as a desktop for a long time.
|
# ? Jun 9, 2011 20:43 |
|
|
# ? Jun 7, 2024 14:57 |
|
waffle iron posted:Add _netdev as an option in your fstab file. That makes it not be mounted until your network connection is up. _netdev didn't seem make any difference. What the user ended up doing is something like this: code:
I saw on some other forum where a user was putting in the "sleep" command in the system's NFS mount script. I checked /etc/rc.d/rc5.d/S60nfs, but didn't see anything that matched up with the example I found. Just as something to try, we renamed S60nfs to S94nfs to see if it would try to load it later in the startup. It still tried to load NFS before the network was up. We may look into the automount thing next.
|
# ? Jun 9, 2011 21:44 |
|
Bob Morales posted:When they say 'unstable' they don't mean that in terms of crashing or anything like that. This isn't really the case with rolling-release distributions like Debian Unstable or Arch -- as new things come out, they're added to the repository. You may go to perform a package update across your OS and discover afterwards that hey, XFree86 is gone, and now X.org is installed and it's putting config files in a different place and your GUI won't start. There's breakage when you update, but if you aren't in the middle of upgrading your packages, what you have on your system should be pretty solid. In general, commonly-used things are vetted pretty well (in experimental) before they're put into unstable. You mostly have to be concerned with config breakages, which are rarely a problem if you know what you're doing.
|
# ? Jun 10, 2011 00:47 |
|
I feel stupid asking this, but I use linux rarely enough that I always forget the most basic things... Say I've got a directory: code:
Apache runs as www-data. What's the best way to make it so that Apache can serve the files/directories in awesome_dir while making sure I don't gently caress up permissions for other things Apache is serving and for other things accessing awesome_dir?
|
# ? Jun 10, 2011 04:58 |
|
For some reason the last few weeks a directory I have shared stops sharing and a white lock appears. If I go in and redo the permissions it works just fine again. This has been randomly happening, sometimes it works great for a few days but today I've had to reset it 3 times. I'm pretty much a noob. Running 10.04 Thanks!
|
# ? Jun 10, 2011 05:09 |
|
Thermopyle posted:I feel stupid asking this, but I use linux rarely enough that I always forget the most basic things... Remove world-writability from that dir and any files (chmod -R o-w awesome_dir/). Add world-execute (search) to that dir and any below it (find awesome_dir/ -type d | xargs chmod o+rx)
|
# ? Jun 10, 2011 12:54 |
|
I've got 15 USB external hard drives NTFS formatted, and I want all their contents to be identical. I found this that shows how to do it with dd. That's fine, and good, but these drives are 500 GB and I'm only going to have 60-70 GB on the drive. I'm wondering if anyone knows a way I could do this with something like partimage or ntfsclone or ntfs resize or something, so that I'm only writing the data to the disk, and not 400 GB of zeros, but also have the full capacity of the drive on the filesystem.
|
# ? Jun 10, 2011 15:55 |
|
evol262 posted:Just to say, you're ordering a VPS. Learn to manage it yourself. You could install Gentoo in a chroot and swap over to it from there. Makes no difference to them, really. Templates are for their convenience, but you can do whatever. You're quite right ClosedBSD posted:Debian unstable is actually pretty stable - probably more so than Ubuntu Well, I went for Debian stable, and tried upgrading by modifying sources.list and running apt-get dist-upgrade et al, but it shat itself and told me that some of the packages it was trying to upgrade needed a newer kernel version (it's running 2.6.18). I fired off a support ticket and they say it's a restriction in OpenVZ and that I need to look at Xen instead if I want a newer Kernel. Does this screw me over with regards to upgrading to unstable, or is there a way round it?
|
# ? Jun 10, 2011 15:56 |
|
FISHMANPET posted:I've got 15 USB external hard drives NTFS formatted, and I want all their contents to be identical. I found this that shows how to do it with dd. That's fine, and good, but these drives are 500 GB and I'm only going to have 60-70 GB on the drive. I'm wondering if anyone knows a way I could do this with something like partimage or ntfsclone or ntfs resize or something, so that I'm only writing the data to the disk, and not 400 GB of zeros, but also have the full capacity of the drive on the filesystem. Pretty sure Clonezilla can do that, but I don't remember which tool it uses under the hood to do so. (ntfsclone does sound about right)
|
# ? Jun 10, 2011 16:01 |
|
Inquisitus posted:You're quite right I know it's possible to manually upgrade to unstable without a moving to a new kernel, but once again I'm going to have to recommend using smxi to do it - it just makes things so easy. Edit: nvm maybe I left it on Debian stable, lemme see if I can figure it out text editor fucked around with this message at 16:10 on Jun 10, 2011 |
# ? Jun 10, 2011 16:03 |
|
Will an every-minute cron job always execute every minute? By that, I mean, will load level ever conceivably delay it from executing in a particular minute? (of course, if load level's that bad, we have worse problems)
|
# ? Jun 10, 2011 17:27 |
|
Golbez posted:Will an every-minute cron job always execute every minute? By that, I mean, will load level ever conceivably delay it from executing in a particular minute? (of course, if load level's that bad, we have worse problems) I was interested in the answer to this so I dug around in the cron source a bit: vixie cron source posted:/* the task here is to figure out how long it's going to be until :00 of the
|
# ? Jun 10, 2011 17:40 |
|
If you're trying to get something to run every minute it would probably be better to get a daemon of some kind to run it directly instead of with cron.
|
# ? Jun 10, 2011 17:59 |
|
Can anyone help setting up unixODBC to work with MS Access databases (.mdb)? I have a python script, using pyodbc, that works under Windows. I would really like it to run under linux, though. Is there anything besides the easysoft driver? ed: should be unixODBC, not openODBC taqueso fucked around with this message at 18:50 on Jun 10, 2011 |
# ? Jun 10, 2011 18:07 |
|
taqueso posted:Can anyone help setting up openODBC to work with MS Access databases (.mdb)? I have a python script, using pyodbc, that works under Windows. I would really like it to run under linux, though. Is there anything besides the easysoft driver? Me too, currently I'm using a locally-modified version of "mdbtools" which is a bit flaky and quite ancient. I'm just exporting the .mdb into MySQL format and working with the result, but it's a read-only process.
|
# ? Jun 10, 2011 18:15 |
|
FeloniousDrunk posted:Me too, currently I'm using a locally-modified version of "mdbtools" which is a bit flaky and quite ancient. I'm just exporting the .mdb into MySQL format and working with the result, but it's a read-only process. I have some stuff I hacked together using mdbtools awhile ago. It had trouble with floats (IIRC, could be some other data type) being corrupted or otherwise read wrong. Any chance this is what you fixed in your locally modified version? I gave up on mdbtools because the whole thing seemed like such a mess, but if it is the only way...
|
# ? Jun 10, 2011 18:39 |
|
Does anyone know anything about bind? I'm setting it up on my server and it seems to be having problems. /var/log/syslog shows: code:
code:
|
# ? Jun 10, 2011 18:48 |
|
I'm trying to set up HA clustering for Apache on two CentOS nodes using heartbeat. I'm following this tutorial: http://www.howtoforge.com/high_availability_heartbeat_centos I've got the files configured as they say there (though with different IPs and node names, properly substituted) and the issue I am having is that when I try and start apache it says: (99)Cannot assign requested address: make_sock: could not bind to address <virtual IP>:80 no listening sockets available, shutting down Where I think the problem is happening is this point of the tutorial: 14. We don't need to create a virtual network interface and assign an IP address (172.16.4.82) to it. Heartbeat will do this for you, and start the service (httpd) itself. So don't worry about this. Does anyone know why httpd is giving this error or how I can fix it? At present, the virtual IP is assigned to no interface on either node.
|
# ? Jun 10, 2011 19:36 |
|
taqueso posted:I was interested in the answer to this so I dug around in the cron source a bit:
|
# ? Jun 10, 2011 19:41 |
|
angrytech posted:Does anyone know anything about bind? I'm setting it up on my server and it seems to be having problems. That's not how you configure BIND. I don't see reverse DNS either, but eh. code:
|
# ? Jun 10, 2011 19:48 |
|
Anjow posted:
This is probably really obvious but theres nothing listening on port 80 when you do netstat -nplat right
|
# ? Jun 10, 2011 19:49 |
|
Pram posted:This is probably really obvious but theres nothing listening on port 80 when you do netstat -nplat right That's correct. Forgive me if there are any stupid mistakes, I'm only doing this as a learning process - it's not for a production environment.
|
# ? Jun 10, 2011 19:51 |
|
taqueso posted:I have some stuff I hacked together using mdbtools awhile ago. It had trouble with floats (IIRC, could be some other data type) being corrupted or otherwise read wrong. Any chance this is what you fixed in your locally modified version? Nope, no floats in what I have to work with, but whoever made the Access db thought it would be fun to have columns titled "Student?" and other stuff that MySQL doesn't like so I just munged the column names and added in backtick quoting for the export because elsewhere they were using some MySQL keyword as a column name. Also something about boolean fields being 'Y' or 'N' I think, but it was a while ago.
|
# ? Jun 10, 2011 19:52 |
|
Anjow posted:Does anyone know why httpd is giving this error or how I can fix it? At present, the virtual IP is assigned to no interface on either node.
|
# ? Jun 10, 2011 19:54 |
|
FeloniousDrunk posted:Nope, no floats in what I have to work with, but whoever made the Access db thought it would be fun to have columns titled "Student?" and other stuff that MySQL doesn't like so I just munged the column names and added in backtick quoting for the export because elsewhere they were using some MySQL keyword as a column name. IIRC, FALSE is 0, and TRUE is -1 due to idiotic VB bitwise booleans (and Jet being written in VB).
|
# ? Jun 10, 2011 19:55 |
|
evol262 posted:That's not how you configure BIND. I don't see reverse DNS either, but eh. In this line: code:
to which ip should $ip_address be pointing at?
|
# ? Jun 10, 2011 20:03 |
|
evol262 posted:Can you dump the heartbeat init script on pastebin or something? I suspect the author is mistaken. http://pastebin.com/B02URkr2 It does seem strange to me that one wouldn't have to have that IP assigned to anything. Some other tutorials make reference to using ipvs to deal with the IPs.
|
# ? Jun 10, 2011 20:03 |
|
angrytech posted:Does anyone know anything about bind? I'm setting it up on my server and it seems to be having problems. evol262 posted:That's not how you configure BIND. I don't see reverse DNS either, but eh. Here's a few other (sometimes) related BIND administration tips that I've learned the hard way:
|
# ? Jun 10, 2011 20:22 |
|
Misogynist posted:I think that just means that if you stop cron at 11:59:59 and start it at 12:00:00, it won't run jobs for 12:00. It should still try to run jobs if for some reason the process scheduler doesn't run it during the minute it's supposed to. Ya, you are right. I got excited when that I saw almost exactly what I was looking for in that comment. From what I can tell, it will continuously process more jobs in a loop until the time to sleep is greater than 0 seconds.
|
# ? Jun 10, 2011 20:28 |
|
Boom! Got it working. Thanks evol262, you put me on the right track; and stathol for showing me named-checkzone, which is way easier than restarting the damned server just to look for error messages. My /etc/bind/zones/mydomain.net.db now has this: code:
|
# ? Jun 10, 2011 20:38 |
|
ClosedBSD posted:I know it's possible to manually upgrade to unstable without a moving to a new kernel, but once again I'm going to have to recommend using smxi to do it - it just makes things so easy. I've just tried smxi (having updated sources.list appropriately) but it just seems to choke on the same thing. The steps I'm taking are:
Inquisitus fucked around with this message at 20:45 on Jun 10, 2011 |
# ? Jun 10, 2011 20:40 |
|
Inquisitus posted:I've just tried smxi (having updated sources.list appropriately) but it just seems to choke on the same thing. Why not use xen if the provider supports that?
|
# ? Jun 10, 2011 20:43 |
|
taqueso posted:Why not use xen if the provider supports that? Because it's marginally more expensive If I can't get it working under OpenVZ then I'll just switch to Xen I guess. That said, might there be similar problems with Xen PV, since it requires the kernel to be built for it?
|
# ? Jun 10, 2011 20:48 |
|
Inquisitus posted:Because it's marginally more expensive I suppose it could be a problem, but maybe you need a different VPS host if it is. Linode provides 2.6.39 for example.
|
# ? Jun 10, 2011 20:55 |
|
covener posted:Remove world-writability from that dir and any files (chmod -R o-w awesome_dir/). Add world-execute (search) to that dir and any below it (find awesome_dir/ -type d | xargs chmod o+rx) Could you explain why this is necessary?
|
# ? Jun 10, 2011 22:59 |
|
Thermopyle posted:Could you explain why this is necessary? Because having a world-writeable apache directory is just asking for someone to login to your box and drop whatever they want to be served up by apache. If you want to do the permissions right, in addition to doing the previously stated, create a group for all the users that need write access to the directory and change the directory's group appropriately. crazyfish fucked around with this message at 23:24 on Jun 10, 2011 |
# ? Jun 10, 2011 23:22 |
|
crazyfish posted:Because having a world-writeable apache directory is just asking for someone to login to your box and drop whatever they want to be served up by apache. If you want to do the permissions right, in addition to doing the previously stated, create a group for all the users that need write access to the directory and include www-data (or whatever your apache user is) in that group (though I don't think apache even needs write access to it, and covener's procedure should be sufficient to allow apache to work). Well, yeah. I was planning on fixing that up anyway. I assumed he was answering the question I asked. You pointed out the correct answer, though. I forgot that I could just add www-data to a new group...thanks!
|
# ? Jun 10, 2011 23:25 |
|
I am curious about file modification times for downloaded files. I was on Facebook today and I downloaded an image a friend posted. When I looked for the image in a terminal by typing "ls -ltr" expecting it to be at the bottom of the list it was at the top, with a last-modified date of 2007-12-31 19:00! so I checked my clock and calendar and they were accurate, I touched a file and it's timestamp changed correctly, and I created a file in VIM in that same directory and it's last modified date was correct. So why is the date-time stamp so horribly wrong for this newly created file? I downloaded it with wget using Opensuse 11.2 and the picture was just taken the other day. I just downloaded the Something Awful "hot" tag with wget at http://forumimages.somethingawful.com/forums/posticons/icon-31-hotthread.gif ...and it has a timestamp of 2004-03-19 13:23. Is that the same date one would see if doing an "ls -l" on the server? I could understand that for the hot tag, but why would a picture taken yesterday seem to be so old? Does it matter if I download onto my desktop with a linux OS from a server with a non-linux OS?
|
# ? Jun 11, 2011 00:16 |
|
This is a isc-dhcpd question, which I suppose isn't specific to Linux, but it seems the most applicable: I'm running two dhcpd servers in failover mode, both serving a single subnet (x.x.5.0) with a single pool of addresses. Everything is happy. The problem is now that I'm setting it up to respond to DHCP relays (actual relay agent is a Cisco router). I added a second subnet declaration (x.x.6.0) and a second address pool on both servers, and again, all seemed happy. code:
code:
|
# ? Jun 11, 2011 00:44 |
|
|
# ? Jun 7, 2024 14:57 |
|
This is probably just a mistake in your post, but: code:
|
# ? Jun 11, 2011 01:09 |