|
River posted:Also one other thing - I am getting literally hundreds, sometimes thousands of failed password for root messages (bruteforcing?) from some Chinese website (http://113.106.24.21/) that I probably should never have went to without noscript and a sandboxed browser, and I wanna ask what the best way to deal with this is. Tell iptables to drop all packets from that IP? If so, are there any special flags or anything past the basic "-j DROP"? Or should I report them to my host/datacenter? Add the IP to /etc/hosts.deny and/or use denyhosts to do that automatically. Edit: And make sure you have root logins via ssh disabled. waffle iron fucked around with this message at 21:18 on Feb 2, 2013 |
# ? Feb 2, 2013 21:16 |
|
|
# ? Jun 13, 2024 00:53 |
|
If you want to automate it, install fail2ban.
|
# ? Feb 2, 2013 21:52 |
|
You can also use csf, which is an effective wrapper around iptables.
|
# ? Feb 2, 2013 22:04 |
|
You can also move SSH to a non standard port as well as disabling password based logins.
|
# ? Feb 2, 2013 22:08 |
|
Thanks guys. I've added it to hosts.deny, and I'll be moving SSH to a non standard port as well as disabling password logins and logging in with a key from now on. Also, I managed to solve my last problem. I still don't know what was causing it, but now I'm just moving the file I wanted to attach to a web directory and putting a link in the email body.
|
# ? Feb 2, 2013 22:12 |
|
I've tried moving SSH to a different port. You'll just get port scanned anyways, and attacked on that port. You really should automate the ban as well.
|
# ? Feb 2, 2013 22:18 |
|
Kire posted:(crosspost from a much slower moving thread, hope that's ok) try putting the url in single quotes?
|
# ? Feb 2, 2013 22:24 |
|
Hefty posted:Do you have a ~/.config/monitors.xml file? I think that's a Gnome thing. If it's there, you can just change the <primary> values (yes/no) for whichever monitors. That'll persist your changes through a reboot. I looked around for that file, couldn't fine one. Xik posted:This might be a bit too hackish for you, but my solution was to run a couple of xrandr commands when my window manager starts up. I probably should have mentioned that I have a DVI and a VGA monitor (and that I'd like the DVI one to be the x screen) so it looks like something like this might be a solution, but I have no idea how to set something like that up.
|
# ? Feb 2, 2013 23:13 |
|
waffle iron posted:Add the IP to /etc/hosts.deny and/or use denyhosts to do that automatically. Isn't hosts.deny deprecated? Anyway, -J DROP is all that's needed.
|
# ? Feb 2, 2013 23:31 |
|
Suspicious Dish posted:Cinelerra is rock stable, even it doesn't look pretty. Thanks again for this. Just started composing a decent length video and it hasn't skipped a beat. Glad you gave me the push to learn how to use this thing, I no longer feel like crying in a corner over video editing any more.
|
# ? Feb 3, 2013 02:29 |
|
peepsalot posted:try putting the url in single quotes? I did it with no quotes at first, then I tried quotes, and no luck. I'm pretty sure wget doesn't need quotes. And I can't ping anything so the problem is with the net connection. There's very little documentation or community for the Beaglebone unfortunately so I don't know how to use putty or whatever to get this working.
|
# ? Feb 3, 2013 04:11 |
|
Tighclops posted:I probably should have mentioned that I have a DVI and a VGA monitor (and that I'd like the DVI one to be the x screen) so it looks like something like this might be a solution, but I have no idea how to set something like that up. xrandr may look daunting and complicated but it really isn't. The i3 user guide has a small section on xrandr which pretty clearly explains it's basic functionality, you should be able to figure it out for your particular use from there.
|
# ? Feb 3, 2013 04:20 |
|
Kire posted:I did it with no quotes at first, then I tried quotes, and no luck. I'm pretty sure wget doesn't need quotes. Sorry, reading comprehension fail again quote:How can I get it to access the net, presumably through the ethernet connection to my WinXP machine? It should be able to DHCP once connected to a router. Have you looked over this? http://learn.adafruit.com/beaglebone/ethernet
|
# ? Feb 3, 2013 05:10 |
|
Kire posted:I did it with no quotes at first, then I tried quotes, and no luck. I'm pretty sure wget doesn't need quotes. The command you want to run to examine your network connectivity is 'ip'. In this case 'ip route' or 'ip addr' will let you know what network, if any, it's a part of. If 'ip' isn't available try 'ifconfig'. Putty is a telnet/ssh client so that's not going to help you get online. Other options for remotely talking to your beaglebone include a serial connection which you can use hyperterm for.
|
# ? Feb 3, 2013 05:20 |
|
peepsalot posted:
Thank you, this worked!
|
# ? Feb 3, 2013 20:01 |
|
Uh.. so my computer can't update anymore because my root partition is too full. Is there any way to increase the partition (or clean it out) without loving things up? EDIT: More information. It's a 10GB partition (I was under the impression that that was way more than enough space) and only has about 800MB left. Using Xubuntu 12.04. Mak0rz fucked around with this message at 20:40 on Feb 3, 2013 |
# ? Feb 3, 2013 20:33 |
|
Use du to figure out where most of the space is going. Usually /var is full or something. I usually do du --max-depth=1 | sort -n
|
# ? Feb 3, 2013 21:09 |
|
GParted livecd. I've never had it break anything, even with NTFS, and even when I did stupid poo poo like stopping a resize halfway through. filelight is better than du for seeing what's taking up space because PRETTY GRAPHS.
|
# ? Feb 3, 2013 21:57 |
|
Xik posted:xrandr may look daunting and complicated but it really isn't. The i3 user guide has a small section on xrandr which pretty clearly explains it's basic functionality, you should be able to figure it out for your particular use from there. Thanks, I'll read through this tonight.
|
# ? Feb 3, 2013 22:01 |
|
spankmeister posted:Use du to figure out where most of the space is going. Usually /var is full or something. Baobab and kdirstat are both way better than du for this sort of thing, if you're not rolling text-only. You will probably need to run them as root to get sensible results for /, with something like xdg-su -c kdirstat or gksudo baobab. You can also resize partitions just fine with gparted (do this from a liveCD/liveUSB, not on a running system). Note that this may take a painfully long time if it has to move partitions as well as resizing them.
|
# ? Feb 3, 2013 22:22 |
|
I roll text-only.
|
# ? Feb 3, 2013 23:23 |
|
I'm using Angstrom, and I can't get my .profile and .bashrc files to be recognized on startup. I'm trying to follow the guide here: customizing the command line (halfway down). .profile: code:
code:
|
# ? Feb 4, 2013 00:31 |
|
Kire posted:I created a .profile and .bashrc file in the appropriate directory, /home, and checked that root is booting up using /bin/bash according to the /etc/passwd file. Am I doing this right? Those files need to go in your user's 'home' directory, which would be something like /home/kire - not in the directory /home If you type cd ~ that is a shortcut to go to your home directory. Then if you type pwd you'll see the full path of your home directory. The root user's home directory is usually /root
|
# ? Feb 4, 2013 01:15 |
|
Bob Morales posted:Those files need to go in your user's 'home' directory, which would be something like /home/kire - not in the directory /home I run as root, and I think the root user's home directory is /home. I tried putting these in /usr/etc/home but that didn't work either. Would /home/root work?
|
# ? Feb 4, 2013 01:35 |
|
First of all why are you running as root? Secondly root's home folder is usually /root and not under the /home tree. Thirdly, why are you running as root?
|
# ? Feb 4, 2013 02:16 |
|
spankmeister posted:I usually do du --max-depth=1 | sort -n Here's what that does: code:
|
# ? Feb 4, 2013 05:19 |
|
Kire posted:I run as root Don't.
|
# ? Feb 4, 2013 06:05 |
|
Because you used it. Its the same reason why your user profile grows in windows. The base OS probably hasn't grown any. If I'm reading the df output right you've got like a gig in email and a gig in cache for Firefox.
|
# ? Feb 4, 2013 06:07 |
|
So I posted this on the Ubuntu forums last week, but I had no response. Does anybody have any suggestions? I'm trying to prepare an OEM manufacturer install of Ubuntu 12.04, and I have a few problems:
|
# ? Feb 4, 2013 12:01 |
|
Goon Matchmaker posted:Because you used it. Its the same reason why your user profile grows in windows. The base OS probably hasn't grown any. If I'm reading the df output right you've got like a gig in email and a gig in cache for Firefox. An "apt-get clean" might be able to remove a bunch of old cruft in /var/cache/apt. If you are building modules via dkms (nvidia drivers, virtualbox drivers, etc.) then the kernel headers might not being removed automatically. Open synaptic and search for "linux-headers-3*" and then mark them all as "Automatically installed" (available under the Package drop-down menu) and it will resolve which can be removed. Either remove them via synaptic or run "apt-get autoremove" after closing synaptic. You can also remove old kernel versions if you feel like but you should try to keep at least two at any time, the most recent and the one before that.
|
# ? Feb 4, 2013 12:12 |
|
Mak0rz posted:Here's what that does: Just so you know, rm -rf ~/.cache is 100% safe, but I don't know what's in there that would take up that much space. Mind if I see ls -lh ~/.cache before you wipe it?
|
# ? Feb 4, 2013 12:48 |
|
fatherdog posted:Don't. My personal example of "why not to run in root" was having a coworker bitch at me that we were telling them not to do it, then another coworker comes up and wants help because she managed to delete everything in /var/db while logged in as root and it busted our software.
|
# ? Feb 4, 2013 14:08 |
|
Goon Matchmaker posted:a gig in cache for Firefox. I don't even use Firefox . Is the .mozilla folder shared by Firefox and Thunderbird, or is it used just by Firefox? If the latter then I'll have no problems nuking it. Suspicious Dish posted:Just so you know, rm -rf ~/.cache is 100% safe, but I don't know what's in there that would take up that much space. Mind if I see ls -lh ~/.cache before you wipe it? code:
|
# ? Feb 4, 2013 14:37 |
|
One other thing that often bloats in linux is the download directory of your package manager. It can easily grow to tens of GB for some setups. Do you know where those are saved on your distro? Also, do run that du command (du --max-depth=1 | sort -n) in the following directories: /,/var,/tmp,~/.cache,~/.thunderbird
|
# ? Feb 4, 2013 14:52 |
|
tonberrytoby posted:One other thing that often bloats in linux is the download directory of your package manager. It can easily grow to tens of GB for some setups. Do you know where those are saved on your distro? That's probably what it is, considering trying to install anything gives me a "no room left on device" or some such error. I have tons of space in my home partition and allocated it that way. I was under the impression only core files went to root and that was pretty much it. tonberrytoby posted:Also, do run that du command (du --max-depth=1 | sort -n) in the following directories: /,/var,/tmp,~/.cache,~/.thunderbird Sorry for the long-rear end output post. I blocked out the code tags by directory to make it more readable: code:
code:
code:
code:
code:
Mak0rz fucked around with this message at 15:18 on Feb 4, 2013 |
# ? Feb 4, 2013 15:16 |
|
Just as an FYI, you may want to check out ncdu. It's a bit easier to understand, or things like baobab or filelight if you need a gui to find out where your space is being used.
|
# ? Feb 4, 2013 15:33 |
|
Mak0rz posted:That's probably what it is, considering trying to install anything gives me a "no room left on device" or some such error. I have tons of space in my home partition and allocated it that way. I was under the impression only core files went to root and that was pretty much it. You can see that usr and home are each larger than everything else on the disk taken together on your system. But with most package managers these days there is some critical stuff also placed in usr, so you normally can't split that off. 5GB for usr means that you probably have installed almost all the software. Do you really need all that? For a system with X 10GB is a bit undersized. From the documentation it also looks like your package files should be in /var/cache , so that seems not to be the problem. The most solid way to fix your problem would be to move home to a different partition. But that is pretty annoying work.
|
# ? Feb 4, 2013 16:38 |
|
I got in an argument a while back with a co-worker about 'nobody partitions disks anymore, just put everything in /' 15 minutes before the Superbowl started, we had a server go down because it had filled /var/log. Not just a 10GB /var partition, but the entire hard drive. Easy fix but it could have been prevented. Two things that didn't help: It's a web server and debugging info was cranked to the max a couple weeks ago to diagnose a problem with a customer. It was never turned back off. Also, logrotate wasn't configured! The logs hadn't been rotated since last March. Bob Morales fucked around with this message at 17:13 on Feb 4, 2013 |
# ? Feb 4, 2013 17:11 |
|
Mak0rz posted:That's probably what it is, considering trying to install anything gives me a "no room left on device" or some such error. I have tons of space in my home partition and allocated it that way. I was under the impression only core files went to root and that was pretty much it. Depends on what you mean by "core files". If you just have two partitions, /home and /, then user-specific files go on the /home partition and everything else, including all software that you've installed, all log files, the package manager cache, documentation, everything - goes on the / partition. For desktop/laptop use that's not automatically a terrible idea, and /home will probably still end up quite a bit larger with work or school documents, music, movies, email/browser caches, and the like. 10GB is a bit cramped for a modern distro with lots of software installed, though. My recently set up laptop is already at 8GB used on /. (I gave it a 40GB /, which is probably excessive.) More rigorous partitioning setups generally have separate partitions for at least /home (user data), /usr (installed software not critical for basic system functions - this is almost always the biggest thing after /home), and sometimes /var (generated files like logs, caches, and print/mail spools) and /boot (files necessary for initial system boot) as well. quote:As for Thunderbird: All of my accounts are IMAP. I just checked my email settings and everything was set to download (including, presumably, Gmail's "All Mail" folder which I un-subscribed from IMAP only recently). That probably takes up quite a bit of space That would do it but it's also not at all relevant to the problem if /home is on a separate partition.
|
# ? Feb 4, 2013 17:44 |
|
|
# ? Jun 13, 2024 00:53 |
|
code:
|
# ? Feb 4, 2013 18:17 |