|
hackedaccount posted:If you don't mind, why are you doing this? Quick and dirty backup solution for nodes that hold no data? I would imagine so that if you screw up a config file you can do a 'git revert /etc/whatever/whatever.conf', and then do '/sbin/service whatever restart'. Of course this is assuming you checked your changes in after your last re-configuration and nobody changed anything prior to your edit.
|
# ? Nov 8, 2011 00:53 |
|
|
# ? May 27, 2024 08:00 |
|
I'm running Ubuntu 11.10 and i want to compile a C++ file that uses the pthreads library. I try to compile using: g++ program.cpp -o program -lpthreads But get a error message: /usr/bin/ld: cannot find -lpthreads Where can i find the pthreads library? I know very little Linux so please explain in detail.
|
# ? Nov 8, 2011 15:06 |
|
I think you need to use -lpthread instead of -lpthreads.
|
# ? Nov 8, 2011 15:10 |
|
Yep, I'm a moron. That worked! Thank you anwyay!
|
# ? Nov 8, 2011 15:12 |
|
Fedora 16 is out. http://fedoraproject.org/en/get-fedora Grub2, faster booting, and Kernel version 3.1
|
# ? Nov 8, 2011 21:48 |
|
Bob Morales posted:Fedora 16 is out. And Gnome 3.
|
# ? Nov 8, 2011 22:24 |
|
spankmeister posted:And Gnome 3. So was 15. Use an LXDE spin.
|
# ? Nov 8, 2011 22:29 |
|
Bob Morales posted:So was 15. Use an LXDE spin. fair enough
|
# ? Nov 8, 2011 22:31 |
|
For the Arch users who install stuff from AUR, which tool do you use? I've been using yaourt, but if there's something better / easier to use I'd love to hear about it.
|
# ? Nov 9, 2011 20:30 |
|
Maybe I'm specific about the distro I want but I really like gnome 2. I'm thinking of installing centos 6 only because it has gnome 2. I checked out fedora 16 and it would have been perfect but... Am I crazy for installing centos 6 for a desktop environment? Anyone have any suggestions?
|
# ? Nov 14, 2011 02:36 |
|
Social Animal posted:Maybe I'm specific about the distro I want but I really like gnome 2. I'm thinking of installing centos 6 only because it has gnome 2. I checked out fedora 16 and it would have been perfect but... I've been running it on my laptop since we decided to standardize on CentOS at work so I can get some more firsthand experience with it. It works well as a desktop system, but you have to be willing to put up with the fact that their policy of retaining stable versions of packages also applies to the desktop. There is some really old (for 2011) stuff in there that could be a dealbreaker if you like having the latest releases of everything. If you don't mind using a bunch of extra yum repositories you should be able to manage. Alternatively, maybe there's GNOME 2 packages for Fedora?
|
# ? Nov 14, 2011 09:19 |
|
I discovered the hard way over the weekend that operating my new heater in the living room while playing games on the pc will flip the circuit breaker, this caused my file server to lose power twice within a few hours. It came up fine both times and the array resynced, but yesterday afternoon my htpc hung while trying to play a video (it's all hosted on the file server via nfs). I hopped onto the htpc and rebooted it, and decided to look at the file server to see if anything was weird with the naming convention that would cause xbmc to hang. That's when I started noticing some weird behavior. When I would try to cd into the directory it would hang, ls did the same thing. The command just wouldn't finish executing. This all occurs when I'm trying to enter /media with is an 8TB mdadm+lvm raid 5 array that was been functioning quite well for the last 4 months (previously a 4TB raid 0). I tried rebooting it but it just wouldn't, I tried halt, poweroff, reboot, and while it sent the broadcast message nothing would happen. I ended up changing the runlevel to 0 and manually powering it off hoping it would shutdown the array but it didn't, it booted back up and is resyncing again, at the time it looked to be moving pretty quickly and I was able to navigate /media just fine. However this morning I hopped on to check up on it and the resync has slowed to a crawl at 26K/sec (hopefully just means it hit a rough patch) and I can't navigate /media freely anymore. Does anyone have a clue as to what is happening? dmesg doesn't show any weird errors and I haven't modified anything on the system recently. I updated all the packages on my system yesterday (currently compiling the new lqx 3.1.1 kernel to see if there's a bug) before the reboot but that didn't do anything. I'm running Arch Linux x86. Ashex fucked around with this message at 19:15 on Nov 14, 2011 |
# ? Nov 14, 2011 18:51 |
|
Looking at the sources, my guess is either the BFQ I/O scheduler or unreliable hardware. I'm guessing the former, since I've encountered similar issues with the BFQ scheduler. You can switch back to CFQ easily by just booting with elevator=cfq on your kernel line in grub/lilo/whatever. Try it and see if the problem persists.
|
# ? Nov 14, 2011 20:56 |
|
I'll give that a shot when I get home. I did a force unmount of /media hoping that would speed up the resync but it didn't, I'll try an upgraded kernel first then switch the scheduler.
|
# ? Nov 14, 2011 21:05 |
|
I've also seen weirdness with the BFQ scheduler. I've since stopped using it and switched back to CFQ. The problems went away. These random acts of weirdness are probably why BFQ hasn't been merged into mainline...
|
# ? Nov 14, 2011 21:38 |
|
i barely GNU her! posted:I've been running it on my laptop since we decided to standardize on CentOS at work so I can get some more firsthand experience with it. It works well as a desktop system, but you have to be willing to put up with the fact that their policy of retaining stable versions of packages also applies to the desktop. There is some really old (for 2011) stuff in there that could be a dealbreaker if you like having the latest releases of everything. I guess I'll give it a shot and see how it goes. If anything, I just checked out Linux Mint and that might be a good option for me as well if I get sick of CentOS.
|
# ? Nov 15, 2011 00:07 |
|
I tried adding elevator=cfq to grub and rebooted it but it didn't switch. I did some reading and figured out I've got these three schedulers (found by checking contents of /sys/block/sda/queue/scheduler): noop deadline [bfq] I went ahead and changed the scheduler this way to deadline for each disk, the resync is moving much faster now, it's been 2 hours and it's reached 24%, much better then when it was crawling earlier and only hit 2% after 14 hours. Ashex fucked around with this message at 02:27 on Nov 15, 2011 |
# ? Nov 15, 2011 02:18 |
|
Social Animal posted:I guess I'll give it a shot and see how it goes. If anything, I just checked out Linux Mint and that might be a good option for me as well if I get sick of CentOS. Debian stable still runs Gnome 2, but it also has a lot of outdated packages like CentOS. I generally prefer Debian over CentOS for desktop use, but I suppose thats just personal preference.
|
# ? Nov 15, 2011 06:20 |
|
Ashex posted:I tried adding elevator=cfq to grub and rebooted it but it didn't switch. I did some reading and figured out I've got these three schedulers (found by checking contents of /sys/block/sda/queue/scheduler):
|
# ? Nov 15, 2011 08:41 |
|
Note: Complete linux newbie My friend gave me a Lenevo S10 netbook which I installed the newest Ubuntu on. I am having a problem when it suspends itself due to inactivity. I cannot revive it. I can hit the fn+f1 buttons (has a moon in blue on it) to suspend it and then revive it, but if it suspends on its own I cannot bring it back. I tried fn+f1, shutting and opening it, and also pressing the power button (as well as mashing every button on the drat thing!) Any ideas? thanks in advance!
|
# ? Nov 15, 2011 14:59 |
|
Ribsauce posted:My friend gave me a Lenevo S10 netbook which I installed the newest Ubuntu on. I am having a problem when it suspends itself due to inactivity. I cannot revive it. I can hit the fn+f1 buttons (has a moon in blue on it) to suspend it and then revive it, but if it suspends on its own I cannot bring it back. I tried fn+f1, shutting and opening it, and also pressing the power button (as well as mashing every button on the drat thing!) Any ideas? Have you checked https://www.ubuntuforums.org I've had good luck using the S10's in the past but not sure if I ever used suspend/resume.
|
# ? Nov 15, 2011 15:01 |
|
Zom Aur posted:Oh yeah, sorry, I didn't notice it at first, seems like CFQ is compiled as a module. I think you can just add it to your initrd to be able to use it together with the elevator parameter. I may do that, but after some reading up on the deadline scheduler it may be the best one for me to use and apparently I'll get the best disk performance out of it (all it does is host files). Anyways, thank you so much for the help as I'm certain I wouldn't have figured it out on my own, I knew it was something low-level but couldn't figure it out.
|
# ? Nov 15, 2011 18:47 |
|
I'm installing a (well known) backup client from CD on a non-production box, so I can document steps and make it happen across the environment: ./install /bin/sh^M: bad interpreter: No such file or directory So one fix would be to copy the whole 3GB tree from /mnt/cdrom to the filesystem and dos2unix the scripts, which I'd rather not do. Anyone have a better suggestion? Would `ln -s /bin/sh /bin/sh^M` work or will I break everything?
|
# ? Nov 15, 2011 19:43 |
|
Ashex posted:I may do that, but after some reading up on the deadline scheduler it may be the best one for me to use and apparently I'll get the best disk performance out of it (all it does is host files). And yeah, there's nothing wrong with using noop or deadline really, cfq is just what works well for most systems.
|
# ? Nov 15, 2011 20:02 |
|
BnT posted:So one fix would be to copy the whole 3GB tree from /mnt/cdrom to the filesystem and dos2unix the scripts, which I'd rather not do. Anyone have a better suggestion? Would `ln -s /bin/sh /bin/sh^M` work or will I break everything? All of the lines will end with \r which will confuse sh terribly even if you set up a symlink for sh itself. Does dos2unix <install | sh work? Or are there multiple other scripts it calls?
|
# ? Nov 15, 2011 20:40 |
|
Zom Aur posted:Looking at the sources, my guess is either the BFQ I/O scheduler or unreliable hardware. I'm guessing the former, since I've encountered similar issues with the BFQ scheduler. The concept of different I/O schedulers was completely new to me, so I looked around a bit and found in Aaron Carroll's I/O scheduling on RAID (scroll down a bit) a really good paper on this topic. I'm really learning a lot from this thread, thank you guys.
|
# ? Nov 15, 2011 21:08 |
|
ToxicFrog posted:Does dos2unix <install | sh work? Or are there multiple other scripts it calls? Nope, it calls other scripts. I'm going to have to spend some time fixing this mess any way I look at it, I guess. In for a penny, in for a pound, guess I'm rolling an RPM.
|
# ? Nov 15, 2011 21:10 |
|
OpenSUSE 12.1 is out - http://news.opensuse.org/2011/11/16/opensuse-12-1-all-green/?pk_campaign=counter This distro gets no respect I tell ya.
|
# ? Nov 16, 2011 16:23 |
|
Bob Morales posted:OpenSUSE 12.1 is out - http://news.opensuse.org/2011/11/16/opensuse-12-1-all-green/?pk_campaign=counter If there were no Slackware, I'd probably go for SuSE. Been a long time since I used it - 6.1 I think - but it was solid and well organised, even if they did that strange stuff with init.d and had that terrible YaST thing. Never understood the attraction of 'easy' distros; 99% of Linux confusion I read about seems to be related to Ubuntu & Co's obfuscation of system functionality and configuration. With older distros, you locate the right few files, edit them, and you're on your way.
|
# ? Nov 16, 2011 17:14 |
|
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.
|
# ? Nov 16, 2011 18:31 |
|
Jonny 290 posted:I have a WEIRD problem that I need a hand with. It might be VM related or networking related. See if anybody can pick something out. Figured it out. protip: install ethtool on your domU's and run 'ethtool -K eth0 tx off' to turn off checksumming. Instant fix and all my stuff is available on the LAN and WAN now.
|
# ? Nov 16, 2011 18:38 |
|
Martytoof posted: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? I have never done it, but I would imagine VLC could. http://www.videolan.org/doc/streaming-howto/en/ch10.html Looks like there is a snapshot flag to try once you get the right command to stream the video from the device.
|
# ? Nov 16, 2011 18:42 |
|
Thanks. VLC seems like the sort of thing that would require X11 to be running though, doesn't it?
|
# ? Nov 16, 2011 18:48 |
|
Martytoof posted: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? I think mplayer can do it. I've run mplayer without X, using the ascii art output mode just for fun, so no X should be ok. I think I compiled it myself that time, I'm not sure if you can just go to town with, say, Ubuntu's version. This has an example command line: http://ask.metafilter.com/30530/Screenshots-Video-Linux-Commandline
|
# ? Nov 16, 2011 18:49 |
|
Martytoof posted: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? ffmpeg does pretty much everything (and from the command line), and I'd imagine that being able to simply take a frame/screenshot of video is supported. edit: quick googling says yeah, it will do it: http://code.coneybeare.net/how-to-generate-png-screenshots-using-ffmpeg http://www.kayweb.com.au/blogs/Web-Development/Generating-screenshots-using-FFmpeg text editor fucked around with this message at 19:08 on Nov 16, 2011 |
# ? Nov 16, 2011 19:06 |
|
taqueso posted:I think mplayer can do it. I've run mplayer without X, using the ascii art output mode just for fun, so no X should be ok. I think I compiled it myself that time, I'm not sure if you can just go to town with, say, Ubuntu's version.
|
# ? Nov 16, 2011 19:10 |
|
syzygy86 posted:Debian stable still runs Gnome 2, but it also has a lot of outdated packages like CentOS. I generally prefer Debian over CentOS for desktop use, but I suppose thats just personal preference. I was debating that as well but I finally settled on CentOS since I do work with that quite a bit at my job. As an update, I've finally gotten CentOS to do what I want it to do and honestly it's not bad for a desktop at all. Yeah you can load up Ubuntu or Mint and have it all and more but.. Gnome 2.
|
# ? Nov 16, 2011 19:56 |
|
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
|
# ? Nov 16, 2011 22:09 |
|
I can't remember the right terminology here... I have a linux (Ubuntu) machine running X11. I also have a Windows 7 machine. Both are on the same network. Isn't there some X11 thingamajig that forwards GUI applications on the Linux box to my Windows computer? I'm not talking about VNC, but I swear I've read articles before about doing...something...to forward just the interface of individual apps. It's too much of a pain to set up the dev environment I need on my Windows machine, so it would be sweet if I could run PyCharm on the Linux machine with the appropriate virtualenv and all the python packages I need and then just use the interface of PyCharm running on the linux machine on my Windows box.
|
# ? Nov 16, 2011 23:09 |
|
|
# ? May 27, 2024 08:00 |
|
Are you thinking of NX? http://www.nomachine.com/ http://freenx.berlios.de/ You can also run an X server on your windows machine (typ. through a cygwin install) and forward X connections to it. Putty can forward X connections.
|
# ? Nov 16, 2011 23:13 |