|
Docjowles posted:I just tried this on CentOS 6, Ubuntu Trusty, and OS X. It worked all 3 times. Can you tell what version of awk you're running? ("awk -W version"). This is not Linux or BSD, it is Solaris 10(SunOS 5.10) And awk -W version does nothing >.< Glad to see that my syntax should be right, and it is just a version specific thing, tho. Once I googled this, based on your question about version, I discovered that Solaris has awk or oawk, which is 'old awk' and nawk which is 'new awk' the statement worked with nawk.
|
# ? Jun 15, 2015 22:39 |
|
|
# ? Apr 30, 2024 19:20 |
|
RFC2324 posted:This is not Linux or BSD, it is Solaris 10(SunOS 5.10) Cool, glad you figured it out! I had a hunch it would be a weird version thing. Since even on Linux, CentOS and Ubuntu were using two different variants of awk. Let alone Solaris.
|
# ? Jun 15, 2015 23:38 |
|
I'm dualbooting Ubuntu 14.04 LTS + Windows8, I have ZERO problems in Windows but on the other hand .. Linux is giving me so many loving problems it's not funny. Most of my problems stem from network issues. I'm connecting via WiFi as a Wired connection is not possible. My WiFi chipset is a PCI-E adapter that I've had for a while (RTL8192CE PCIe Wireless Network Adapter) Problems: 1. I can't saturate the bandwidth in Linux, no matter what. I can do so in Windows without any problems. 2. The overall internet speed in Linux is really bad. Like 25% of the speed that I get in Windows, for any service/application. 3. I'll go through periods of time (30min-1hour) where Linux will appear to be connected to the internet but it won't do anything. Examples: Browser stuck on loading pages, ping google.com returns "cannot find host" or something but takes a few minutes to return that, other services experience a sudden 'loading' or general slowdown where NOTHING is loaded at all. speedtest results for Linux & Windows, respectively: What can I do to fix this Linux-specific bullshit?
|
# ? Jun 18, 2015 03:46 |
|
Hollow Talk posted:Quality poster and linux savant nosl tried to mime to you that the only real solution is to use Arch Linux, for everything, forever. gently caress man I hosed up and tried to write snip in his post and post a suggestion. Nah, Arch is a hobbyist's distro, but it's okay for laptops I guess if you don't mind your poo poo breaking. If you want to use up-to-date software with super integration, you are going to have to use a rolling distro like Arch or Gentoo Linux ~ branch, but if you are happy with your current distro I'd just compile poo poo myself. But if you're doing that a lot... then why not switch to Gentoo? But Gentoo sucks for getting poo poo actually done, and like I said - arch is a hobbyists distro. Sorry for my mucked up post. Hope I cleared up any confusion. Just stick to Fedora and build stuff. Third party repos are scary but not as scary as some official Arch repos have been in the past, and let's not even TALK about the AUR. Heh.
|
# ? Jun 18, 2015 12:01 |
|
Odette posted:I'm dualbooting Ubuntu 14.04 LTS + Windows8, I have ZERO problems in Windows but on the other hand .. Linux is giving me so many loving problems it's not funny. RealTek kernal drivers for Linux are broken, I had almost exactly the same problems you described with an RTL8192CU using Ubuntu. I fixed it by following this guide - https://github.com/pvaret/rtl8192cu-fixes It says RTL8192CU but a quick Google makes me think it will work with your RTL8192CE too.
|
# ? Jun 18, 2015 12:30 |
|
Odette posted:I'm dualbooting Ubuntu 14.04 LTS + Windows8, I have ZERO problems in Windows but on the other hand .. Linux is giving me so many loving problems it's not funny. I had a similar issue with that same card on xubuntu 15.04. Problem seems to be that it's trying to drop into some weird sort of powersaving mode which linux doesn't like. Try running this in your terminal: code:
I've personally not had any power usage issues related to this but my connection is a lot more stable now.
|
# ? Jun 18, 2015 19:49 |
|
While that probably works, I just switched to a USB wifi adapter that seems to work. I'll be building another PC next year or so, should I just stick to Intel/Atheros for WiFi?
|
# ? Jun 18, 2015 22:58 |
|
Odette posted:While that probably works, I just switched to a USB wifi adapter that seems to work. That's a good choice no matter what OS you are running. Realtek networking chips are the modern equivalent of winmodems.
|
# ? Jun 19, 2015 03:17 |
|
The_Franz posted:That's a good choice no matter what OS you are running. Realtek networking chips are the modern equivalent of winmodems. Even their Ethernet offerings? I've been looking at motherboards & Realtek is the most common chip, it's a bit shocking.
|
# ? Jun 19, 2015 03:22 |
|
Odette posted:Even their Ethernet offerings? I've been looking at motherboards & Realtek is the most common chip, it's a bit shocking. I'm not afraid of Realtek Ethernet chips, I have never tried a Realtek wireless chip. They use a few more precious CPU cycles than an Intel LAN but they have worked fine for me. That said, I am afraid of anything D-Link.
|
# ? Jun 19, 2015 03:36 |
|
Odette posted:I've been looking at motherboards & Realtek is the most common chip, it's a bit shocking. Realtek WiFi chips were truly awful a decade ago. I made the mistake of buying a Realtek-based USB adapter and swore never again. Recently I've had the misfortune to use another USB adapter that was crashing multiple times day. Yep, it's a RTL892CU .... I haven't had the same problems with Realtek's wired Ethernet adapters, but they're not particularly great performers either. Ten years ago is also when Intel Gigabit Ethernet adapters became sufficiently cheap (in absolute terms) that I've used them in any non-toy project.
|
# ? Jun 19, 2015 14:54 |
|
On a throw-away test Linux vm I'd like to be able to force the system to require a manual fsck of the root filesystem on boot. I'm wondering if it could be something like setting a dirty flag, or maybe using dd to cause a minor corruption ? Any suggestions appreciated.
|
# ? Jun 23, 2015 15:18 |
|
Baconroll posted:On a throw-away test Linux vm I'd like to be able to force the system to require a manual fsck of the root filesystem on boot. I'm wondering if it could be something like setting a dirty flag, or maybe using dd to cause a minor corruption ?
|
# ? Jun 23, 2015 15:33 |
|
Baconroll posted:On a throw-away test Linux vm I'd like to be able to force the system to require a manual fsck of the root filesystem on boot. I'm wondering if it could be something like setting a dirty flag, or maybe using dd to cause a minor corruption ? It depends on the distro and/or filesystem. touch /forcefsck should work for older (SysVinit-based) systems. Adding fsck.mode=force to the boot parameters should work for systemd-based ones. For filesystem-specific options, you can use tune2fs -c 1 to set the "max mounts between fsck" to 1 for ext2/3/4 filesystems, or add zpool scrub to your startup scripts for ZFS. btrfs and XFS presumably have something similar, but I don't know what.
|
# ? Jun 23, 2015 15:55 |
|
I have an older laptop that currently has a pirated copy of win 7 pro that we are giving to my GFs 88 year old grandma. I am not gonna give her the pirated windows(its not actually cracked, so you have to reset the registry periodically to extend the trial for another year or 2). What would be a good, reliable, distro for someone 88 years old, who just needs to get on email and surf porn? Assume she will have no tech support(I'm not driving from Texas to Florida to work on her comp).
|
# ? Jun 23, 2015 20:36 |
|
RFC2324 posted:I have an older laptop that currently has a pirated copy of win 7 pro that we are giving to my GFs 88 year old grandma. I am not gonna give her the pirated windows(its not actually cracked, so you have to reset the registry periodically to extend the trial for another year or 2). I'd say openSUSE KDE. You can set it up with the apps she will need, make a user account for her with the proper rights, and then she will have a much harder time messing anything up. Users can run the updates without needing root permissions, and the update tool gives alerts when updates are needed. A lot of the stuff not in the official repositories, like proprietary video drivers, can be found here: http://opensuse-community.org/ I set up a machine for my nieces using this setup, and the only time I received a tech supportish question was when their mother called me to get the root password so she could remove the time limits my brother had asked me to impose on the girls' accounts. You might also be able to use Teamviewer or something similar to remote access the machine if needed. CaptainSarcastic fucked around with this message at 22:57 on Jun 23, 2015 |
# ? Jun 23, 2015 22:54 |
Is there any easy way to get the latest Broadcom bcm43xx chipset in Apple's AirPort Extreme cards working with aircrack-ng without spending money and hours installing the drivers? I'm teaching some network security stuff (along with lockpicking) to kids this summer and I'd rather not spend like 40 bucks of the organization's money on a compatible USB network card.
|
|
# ? Jun 25, 2015 04:57 |
|
Maybe. Google a lot. Then buy an atheros.
|
# ? Jun 25, 2015 07:24 |
evol262 posted:Maybe. Google a lot. Then buy an atheros. Yeah, the antenna card thing is In the mail.
|
|
# ? Jun 25, 2015 14:54 |
|
Dumb question, as I don't have all the details (and it's not my computer) - but is there a known issue with certain WiFi managers failing to connect if a username is too long or has special characters in it? I'm not sure of the distribution used - I think it's something called Trisquel Linux 7.0. It looks like it was the LXDE desktop environment with "NetworkManager" for WiFi. Connect using "username" and it works. Connect using "my.longer.username" and it does not. Where should I be looking to diagnose this? The WiFi AP doesn't even see an authentication attempt from the longer username. It's like the WiFi connection times out, then just prompts for the password again without ever trying to connect.
|
# ? Jun 26, 2015 22:19 |
|
Xenomorph posted:Dumb question, as I don't have all the details (and it's not my computer) - but is there a known issue with certain WiFi managers failing to connect if a username is too long or has special characters in it? Try "grep -iR networkmanager /var/log/*" I have no idea what logging structure Trisquel uses (/var/log/messages, /var/log/syslog, /var/log/daemon.log, something else entirely)
|
# ? Jun 26, 2015 22:30 |
|
Pretty sure brain rot has set in. Help. Running lubuntu 15.04. I want some variety of terminal accessible to my LAN only. Not sure which way would be the best to go. I don't want anything like RDP etc. Just text. Mostly for doing bits and pieces on my PC from my tablet like starting userspace daemons, perhaps some coding and compiling, general tweaking or whatever. How should I set this up? Networking isn't my strongest skillset.
|
# ? Jun 27, 2015 13:43 |
|
General_Failure posted:Pretty sure brain rot has set in. Help. Do you need anything that would require more than simply using SSH? I'm not sure if there exist any decent ssh apps for iOS, but ConnectBot works very well on Android. SSH is probably running anyway (check ps aux | grep sshd), and you can either use your firewall or iptables to restrict it to network internal addresses only (i.e. to the local subnet etc.), or you can simply let it run normally if your home network is firewalled from the outside world (which I assume it is).
|
# ? Jun 27, 2015 14:28 |
|
I've been asked to build a Ubuntu 14 DNS Server with GeoIP capabilities. Anyone have some recommendations on the DNS or GeoIP applications? I never setup either before and if you have some handy guides I wouldn't mind looking at them.
|
# ? Jun 28, 2015 11:33 |
|
For DNS use bind or possibly powerDNS Geoip use maxmind I guess but I don't have experience with that.
|
# ? Jun 28, 2015 11:36 |
|
ghostinmyshell posted:I've been asked to build a Ubuntu 14 DNS Server with GeoIP capabilities. Anyone have some recommendations on the DNS or GeoIP applications? I never setup either before and if you have some handy guides I wouldn't mind looking at them.
|
# ? Jun 28, 2015 19:11 |
|
Yeah if outsourcing DNS is acceptable just do that. There are roughly infinity providers, and depending on how complex your needs are whoever you registered your domain through might even do it for free. If it has to be in house, BIND is the gold standard. PowerDNS is nice in that you can back it with MySQL or something which is much more automation friendly than lovely BIND zone files.
|
# ? Jun 28, 2015 21:41 |
|
Do any Red Hat/GNOME 3 people know of a decent "baby's first nontrivial GTK 3 application" guide/book? I'm looking for one that includes a sample project/repository with best practices file structure for packaging. Python would be good, but I'm willing to deal with C or even learn Vala. I tried searching Amazon for O'Reilly style book, but didn't find anything that looked promising.
|
# ? Jun 29, 2015 03:44 |
|
Vulture Culture posted:Seriously, just use Route53 or something. It will literally cost you single-digit dollars per month. Don't waste your salary on solved problems. Thanks for the options, I'll check them out. Unfortunately mgmt is all about inhouse cheap as peanuts, but I'll see if I can present Amazon as well. ghostinmyshell fucked around with this message at 06:17 on Jun 29, 2015 |
# ? Jun 29, 2015 06:09 |
|
My proprietary nvidia driver crapped the bed a couple days ago in Fedora 22. I'm just posting my fix in case anyone else has the same issue:code:
Edit: OK, here's a question: I tried to disable updates to akmod-nvidia (and kmod-nvidia) so that this wouldn't be undone. To do this I added code:
Death Vomit Wizard fucked around with this message at 12:31 on Jul 1, 2015 |
# ? Jul 1, 2015 05:40 |
|
When I cat /proc/meminfo and it shows "hardware failures" or "hardware bad sectors" (can't remember the exact text) is that the actual bits which have failed and are being ignored, like it sounds? Will memtotal show a corresponding drop in total memory over time?
|
# ? Jul 3, 2015 04:42 |
|
I want to blow away the Windows partitions on this disk and add them to the LVM pool:code:
I imagine I will need to change the partition type of what is now /dev/sda3 to LVM and then I can safely delete what is now sda4 and sda5 and make a new LVM partition there?
|
# ? Jul 5, 2015 19:09 |
|
How am I suppose to read this?code:
I'm following the second half, the [-u|--utc|--universal] means I can pick either -u or --utc but not both but the [MMDDhhmm[[CC]YY][.ss]] is beyond me other than Month, Day, Hour, Minute, CC?, Year and seconds. Gucci Loafers fucked around with this message at 19:26 on Jul 5, 2015 |
# ? Jul 5, 2015 19:16 |
|
Tab8715 posted:How am I suppose to read this? The format string lets you customize the output format to your heart's content and comes after the other option flags. The various fields you can put in it are all listed in the man page. For example: code:
|
# ? Jul 5, 2015 19:27 |
|
To add to that, the second form is for setting the date.
|
# ? Jul 5, 2015 19:31 |
|
and generally, if --help is too terse to understand, try the man page!
|
# ? Jul 5, 2015 22:41 |
|
Kaluza-Klein posted:I want to blow away the Windows partitions on this disk and add them to the LVM pool: The naming of partitions 1-4 matches the order of the primary partition entries in the partition table. It is usually recognized as a good thing to have these match the physical partition order, but that is not strictly mandatory. Linux accepts primary partitions in any order; other operating systems and/or some old BIOSes might not. You don't actually _need_ to change the partition type: LVM can use the partitions even if the partition type is incorrect. It relies on the PV signature written to the beginning of the partition with pvcreate. If you don't feel like editing the partition table, you could just run these commands: code:
Extension: code:
code:
Note that the size of each PV does not in any way restrict the size of the LVs: a single LV can span any number of PVs. But if you want to change the type of /dev/sda3 (and optionally sda5), then maybe also delete the sda4/5 extended partition/logical disk combo and then recreate sda4 as a single primary partition with an appropriate type, you can certainly do that. Reasons why you might want to set the correct partition types: - the satisfaction of having a neatly-configured system - in case the system is ever booted with a non-Linux external media (i.e. Windows PE or similar), correct partition types ensure that the other OS won't detect them as badly corrupted NTFS/exFAT partitions and attempt to auto-recover (or maybe offer to format) them. Reasons why you might want to remove sda5 and make sda4 into a regular primary partition: - you might get some tiny amount of extra usable space, as you can reclaim the unused blocks between the start of sda4 and the start of sda5 Reasons why you might not want to fiddle with the partition table: - modifying the partition table of a working system always has some non-zero risk of mistakes However, in your case, the risk is as small as it can be for such an operation: changing the partition types is a trivial operation, and sda4 & sda5 are at the tail end of both the partition table and the actual disk. If this system is in "production" role or any other way important to you, stop reading here. For the following, I'm assuming that your version of Linux is not some ancient one that uses older than 2.6 series kernel and LVM version 1. Also, your fdisk tool must be a version that won't automatically zero the first 512 bytes of any partition it creates; check the man page. If you have good backups and this is a system you can afford some experimenting on, you might even delete sda5 and sda4, then edit sda2 to have its end point at sector 625139711. As long as sda2's start point stays at its current value, there *should* not be any damage to its contents. After a successful reboot to have the OS fully detect the new partition table, you could then use "pvresize /dev/sda2" to make LVM recognize sda2's new size. That will still leave you with sda3 as a separate entity, but with LVM that is not a problem.
|
# ? Jul 5, 2015 22:52 |
|
I'm trying to figure out how to prevent all incoming/outgoing network activity but allow another specific computer to use telnet/ssh to the linux box along with web access (don't seem to need ssl) with iptables but I rarely do this, anyone got any tips for me? I was thinking: sudo iptables -A INPUT -s website -j DROP but that wasn't enough to prevent outgoing activity so I have to be a bit more strict. Tried a few other examples I found online, but they didn't quite seem to work. Basically I need access from one computer to the linux os, via putty or cygwin, and web access to get to the running apache server on the box to communicate back and forth to me, but not to the internet. Any tips? also: is there a way to save existing iptable configs to revert back to them? GreenBuckanneer fucked around with this message at 19:24 on Jul 6, 2015 |
# ? Jul 6, 2015 18:56 |
|
GreenBuckanneer posted:I'm trying to figure out how to prevent all incoming/outgoing network activity but allow another specific computer to use telnet/ssh to the linux box along with web access (don't seem to need ssl) with iptables but I rarely do this, anyone got any tips for me? If the computer that needs to have access has a static IP, you can allow it via -A INPUT -s $IP -j ACCEPT, or, if you would like to restrict this, you can probably do it for ports 22 and 80 (you can either define separate rules using "-p tcp --dport x" or pack them into one via "--dports x,y". As far as outgoing connections are concerned, your posted rule cannot work, because it's trying to block outgoing connections in the chain that deals with incoming connections. The chain you will need for this is OUTPUT, and you would have to put a destination, not source there. Essentially: For INPUT, allow everything from SOURCE computer (or only port 22 and 80), drop everything else; for OUTPUT, allow everything to DESTINATION computer, drop everything else. However, I do not have a whole lot of experience with filtering outgoing traffic, so somebody else might be able to chime in.
|
# ? Jul 6, 2015 20:25 |
|
|
# ? Apr 30, 2024 19:20 |
|
GreenBuckanneer posted:I'm trying to figure out how to prevent all incoming/outgoing network activity but allow another specific computer to use telnet/ssh to the linux box along with web access (don't seem to need ssl) with iptables but I rarely do this, anyone got any tips for me? iptables relies on IPs. It doesn't do DNS or hostname lookups. Set the default policy to drop, then add whitelists code:
GreenBuckanneer posted:web access to get to the running apache server on the box to communicate back and forth to me, but not to the internet. Any tips? What distro is this? Rules may be saved in /etc/sysconfig/iptables or /etc/iptables/rules (if it's a debian system with iptables-persistent) or somewhere else if your scripts use iptables-save|restore. Or you may have to set that up yourself.
|
# ? Jul 6, 2015 21:26 |