How do I grep for a string in a file and include the previous x lines and next x lines around the match?
|
|
# ? Apr 26, 2010 19:24 |
|
|
# ? Apr 28, 2024 06:49 |
|
fletcher posted:How do I grep for a string in a file and include the previous x lines and next x lines around the match? with -C
|
# ? Apr 26, 2010 19:29 |
|
fletcher posted:How do I grep for a string in a file and include the previous x lines and next x lines around the match? Get a newer version of grep. I have GNU grep 2.5.1 and it has the following options: code:
|
# ? Apr 26, 2010 19:30 |
|
Goon in the Mist posted:Can someone recommend some Rainmeter (system monitor) alternatives for Linux?
|
# ? Apr 26, 2010 19:42 |
|
.
maskenfreiheit fucked around with this message at 21:02 on Apr 28, 2019 |
# ? Apr 26, 2010 19:44 |
|
Nice. It also occurred to me I could just do this in three separate lines:code:
|
# ? Apr 26, 2010 19:45 |
|
I used linux as my primary OS for like... 8 years, now I've moved on to an iMac and I have a small headless linux box for running my torrents/apache test server/irc under screen. What else should I have this thing run? I feel like it should be doing as much as possible. It's a 2ghz P4 with 2gb ram.
|
# ? Apr 27, 2010 08:03 |
|
BlackMK4 posted:I used linux as my primary OS for like... 8 years, now I've moved on to an iMac and I have a small headless linux box for running my torrents/apache test server/irc under screen. What else should I have this thing run? I feel like it should be doing as much as possible.
|
# ? Apr 27, 2010 10:59 |
|
inignot posted:No love for SED Try running your sed with "" quotes instead of ''. I know if you're using variables in sed, if you use '' it won't work ($myvar would be read as "$myvar" instead of whatever $myvar equals).
|
# ? Apr 27, 2010 12:50 |
|
I just installed the Ubuntu Lucid RC on my new laptop via a rather convoluted process, as the install CD just gave me a black screen. I started by installing Intrepid, then upgrading to Jaunty/Karmic/Lucid via the update manager. First of all, is this going to screw me over somehow? I know I'm missing GRUB2 and stuck with ext3 as a filesystem, but is that actually worth worrying about? Second, due to these repeated release upgrades, I have 4 different kernels in my /boot directory. Since the Lucid kernel (2.6.32-21-generic) seems to work, is it safe to simply delete the older ones and run update-grub to clean up my boot menu, or is there some preferred way to do this via automated tools?
|
# ? Apr 27, 2010 22:37 |
|
Thoom posted:I just installed the Ubuntu Lucid RC on my new laptop via a rather convoluted process, as the install CD just gave me a black screen. I started by installing Intrepid, then upgrading to Jaunty/Karmic/Lucid via the update manager. You should be able to use an alternate install CD to install without the GUI. That sounds like an X issue in the Live CD that obviously isn't present in the full on system, so bypassing X in the install should get you up to speed with all the spiffy new stuff. All the way back to 8.10? Really? 9.10 didn't even work?
|
# ? Apr 27, 2010 22:51 |
|
FISHMANPET posted:You should be able to use an alternate install CD to install without the GUI. That sounds like an X issue in the Live CD that obviously isn't present in the full on system, so bypassing X in the install should get you up to speed with all the spiffy new stuff. 8.10 was the other CD I had handy, and it worked so I didn't feel like wasting time downloading/burning CDs for 9.04/9.10 to test. Actually, when I upgraded to 9.10, I had the same black screen issue, but I was able to solve it by rebooting in recovery mode and adding a few lines to my xorg.conf (which you wouldn't be able to do on a Live CD). I'll give the alternate-install a shot, since my gradual upgrade path seems to have hosed my synaptics driver pretty badly.
|
# ? Apr 27, 2010 22:59 |
|
.
maskenfreiheit fucked around with this message at 21:02 on Apr 28, 2019 |
# ? Apr 28, 2010 04:02 |
|
GregNorc posted:So I am trying to get some form of linux, ANY form, onto my Thinkpad X201. i would try using arch linux (http://www.archlinux.org/) since arch just updated to the 2.6.33 kernel in it's stable repositories. I've never had issues with it for just about anything. Just remember that arch has a little different mindset than most linux distributions where it tries to centralize loading daemons and whatnot. Also AUR is your friend when you need packages installed.
|
# ? Apr 28, 2010 14:33 |
|
GregNorc posted:Someone suggested I try the newer version of Ubuntu, so I downloaded the Ubuntu 10.04 RC alt install CD... it installed fine, but when it starts up, it now just goes to a black screen. I can't even go into text only mode like the 9.04 beta was letting me If it's just black it sounds like the framebuffer isn't being initialized. I don't remember the exact syntax but I would suggest changing the kernel options to not use a framebuffer and also blacklist the framebuffer module. Does the server distribution initialize a framebuffer by default? If not you could install that and then install the desktop packages.
|
# ? Apr 28, 2010 15:14 |
|
.
maskenfreiheit fucked around with this message at 21:03 on Apr 28, 2019 |
# ? Apr 28, 2010 16:44 |
|
GregNorc posted:Downloading an arch image now. Slowwwwly... i would definitely try downloading a torrent, on their site they recommend it since they don't have a heck of a lot of bandwidth for iso's.
|
# ? Apr 28, 2010 16:50 |
|
GregNorc posted:Downloading an arch image now. Slowwwwly... I think you can try disabling it by adding i915.modeset=0 to the kernel line in grub.
|
# ? Apr 28, 2010 17:04 |
|
Arch is great and being up to date adds support for all kinds of new hardware, but make sure to follow the Beginner's Guide if it's your first time around, because you'll basically be setting the system up from scratch, so can be a little intimidating.
|
# ? Apr 28, 2010 18:14 |
|
Keito posted:Arch is great and being up to date adds support for all kinds of new hardware, but make sure to follow the Beginner's Guide if it's your first time around, because you'll basically be setting the system up from scratch, so can be a little intimidating.
|
# ? Apr 28, 2010 19:47 |
|
Zom Aur posted:If you find it too intimidating, you could give Chakra a spin. It's basically just arch with KDE installed and a GUI installer. There's also ArchBang which is pretty much is the same thing with OpenBox instead, but the project was started this year and thus is not as mature and polished as Chakra yet. Chakra's KDE4 theme looks pretty drat nice, by the way. Haven't been able to stand KDE ever since checking it out on some of the first Knoppix versions, but it seems to have improved a lot (well, duh).
|
# ? Apr 28, 2010 21:02 |
|
Zom Aur posted:If you find it too intimidating, you could give Chakra a spin. It's basically just arch with KDE installed and a GUI installer. http://chakra-project.org/news/index.php?/archives/54-Sad-news-we-lost-one-of-our-own.html
|
# ? Apr 28, 2010 21:36 |
|
Misogynist posted:Don't get too attached to it. One of the main guys behind it died last weekend. Having been the project leader it will for sure slow down development, but it looks like the developers all want to keep working on his legacy.
|
# ? Apr 28, 2010 22:42 |
|
Can somebody tell me how to get a synergy client to start automatically at boot on Ubuntu 10.04? I've got the server running on Windows Server 2008 which required me clicking a button to get it to autostart, but I can't get things starting automatically on the Ubuntu system.
|
# ? Apr 29, 2010 16:42 |
|
golgo13sf posted:Can somebody tell me how to get a synergy client to start automatically at boot on Ubuntu 10.04? I use KDM, so I have it in my Xsetup file.
|
# ? Apr 29, 2010 18:43 |
|
Misogynist posted:http://synergy2.sourceforge.net/autostart.html Thanks, I'm new to Linux so I'm not too familiar with config files.
|
# ? Apr 29, 2010 19:31 |
|
So, someone just moved into where I'm living. Curious of his name, I checked it. I took a picture since I figured you guys might get a kick out of it. Say hello to apartment 44, Mr. WINE.
|
# ? Apr 30, 2010 10:35 |
|
.
maskenfreiheit fucked around with this message at 21:03 on Apr 28, 2019 |
# ? May 1, 2010 05:27 |
|
Boot a live CD, mount your Ubuntu partition and edit grub?
|
# ? May 1, 2010 07:50 |
|
When it boots, hit whatever key to get to the boot menu, then add i915.modeset=0 to the kernel line in grub. This will disable KMS for this session, then do whatever that ubuntu guide said to make it default for newer sessions.
|
# ? May 1, 2010 09:18 |
|
.
maskenfreiheit fucked around with this message at 21:03 on Apr 28, 2019 |
# ? May 1, 2010 20:02 |
|
GregNorc posted:Yeah, this worked, I can boot and start to install the 10.04 RC cd I made, however the final release CD I have boots to a black screen, no way to edit boot options. If you run 'sudo apt-get dist-upgrade' you'll be off the RC and onto the final. And in fact 'sudo apt-get upgrade' will do. I just checked on my RC machine, only 60 packages, about 100 MB, to update.
|
# ? May 1, 2010 20:41 |
|
.
maskenfreiheit fucked around with this message at 21:03 on Apr 28, 2019 |
# ? May 1, 2010 22:08 |
|
I just upgraded my media server with some bigger harddrives and want to make a better backup system. Before I was CRONing a job that would TAR up every file in my media directories into respective TAR files. That sucks tho, because it just keeps backing up the same poo poo over and over again. What can I do to like, only add new files to the backups? I dont mind strait up copying the files from one directory to a directory on a backup HDD if I can have the backup script only copy over new files.
|
# ? May 2, 2010 01:06 |
|
rugbert posted:I just upgraded my media server with some bigger harddrives and want to make a better backup system. Before I was CRONing a job that would TAR up every file in my media directories into respective TAR files. You're looking for an 'incremental' backup. Use the -u option to update the tarball with newer files
|
# ? May 2, 2010 01:53 |
|
Bob Morales posted:You're looking for an 'incremental' backup. Use the -u option to update the tarball with newer files ahhhh yes, that term was rolling around in my head as I wrote it but I wasnt sure about it. Thanks!
|
# ? May 2, 2010 01:58 |
|
rugbert posted:ahhhh yes, that term was rolling around in my head as I wrote it but I wasnt sure about it. Thanks! Watch out, as --update doesn't remove old versions. Technically, you'd want that with backups, but it also means your tarball will grow and grow. For more robust incremental backups you should use something like rsnapshot. Even if you use it for something as simple as only keeping two previous versions it can still be a lifesaver.
|
# ? May 2, 2010 02:21 |
|
.
maskenfreiheit fucked around with this message at 21:03 on Apr 28, 2019 |
# ? May 2, 2010 05:05 |
|
GregNorc posted:wlan0 802.11bg ESSID:"fleshlight" Nickname:"rtl8191SEVA2" Heh. Have you run the 'Hardware Drivers' tool yet? It's in either Administration or Prefrences. If there's a package needed to run that wifi card, that tool will find it.
|
# ? May 2, 2010 05:54 |
|
|
# ? Apr 28, 2024 06:49 |
|
.
maskenfreiheit fucked around with this message at 21:03 on Apr 28, 2019 |
# ? May 2, 2010 16:17 |