[00:05] Hi guys, any chance of advice on getting vnc server working (x11vnc actually) working on Ubuntu 12.04 running on XenServer 6.2? I want access to a graphical mode, rather than be stuck in CLI === RoyK^ is now known as RoyK === Guest64913 is now known as wylde === Laogeodritt| is now known as Laogeodritt [03:53] can anybody tell me why I cant edit SSH port anymore I did have it on port 26 but it dont work anymore so when I switched it back to port 22 it works [03:57] TimR: did you restart the daemon after changing? [03:57] yes many times [03:58] TimR: check the listening ports with netstat or lsof [03:58] I stopped the service and started it back up again and still will not work or change [03:59] I dont see ssh even started [04:00] TimR: there should be an error in the logs. or try to start it on the command line manually [04:04] see when I try to edit sshd_config the what ports,ips protocols we listen for is commented out but when I try to add the ports and save it would just go back to commented out [04:05] TimR: you're having editor problems. what editor are you using? [04:05] well I was using webmin file to edit it out [04:05] TimR: that's your problem [04:06] reason #523 on why you should not use webmin on ubuntu [04:08] well I did the vi [04:08] edit [04:09] then when I try to restart ssh it gives me since the script you are attempting to invoke has been converted to an upstart job [04:11] should have still worked but it is nagging you to use upstart directly next time [04:11] well its not [04:11] 'sudo restart ssh' should do it i think, it's been a while since i needed to restart sshd [04:12] when I do that I get restart unknown instance: [04:13] I am starting to think my server got hacked or something [04:14] 'sudo start ssh' then [04:30] i tried to uninstall and reinstall noting happens [04:30] that is openssh-server [04:35] could iptables cause this issue? === RoyK is now known as carlsen === carlsen is now known as RoyK [12:06] hey guys, my server got hacked about an hour ago [12:06] they bruteforced the ssh [12:06] and did an rm f [12:06] so I lost everything [12:06] what should I do to prevent this from happening next time? [12:07] The ssh password was long, not in the dictionary or anything [12:07] must of been alot of bruteforce power [12:07] msi: Dont use password, but use password protected ssh keys. [12:07] Thats what you should have learned from that. [12:07] bekks what is thath? [12:08] msi: https://help.ubuntu.com/community/SSH/OpenSSH/Keys [12:08] msi: And hopefully you did use a strong password for the user for sudo purposes, and hopefully you did not enable the root account for ssh on your server. [12:09] I bet you use the same password somewhere else. [12:09] Nop it's a random generated [12:10] The attack came from germany [12:10] then I find it very unlikely and perhaps you are running old www apps and haven't kept the kernel updated? [12:11] I run a script that does sudo apt-get update, upgrade, dist upgrade every day so [12:11] do you reboot into the new kernel? [12:12] yeah the server reboots automatic every day [12:12] if they removed everything, how did you come to this conclusion? [12:13] saw it inside my snort logs [12:13] from pfsense [12:15] you saw a shitload of bruteforce attempts, and then an eventual success logging in as root@ ? [12:15] or your user could sudo su? [12:15] they used the couchpotato user and then resetted the root password and used root acces to wipe all [12:16] how did they reset the root password? [12:17] I have no clue [12:24] I also see there were files transfered over ftp [12:24] weird :s [12:25] msi: You did not reinstall that box? [12:25] the box is currently doing a dban 35 pass wipe [12:26] and the os ssd is already secure erased [12:26] 35pass wipe - you have too much time to spend, do you? :) [12:27] Well the backup server is up and running so no problems, only 3 days left on the wipe [12:28] just going to reinstall the os and add the disk back in later [12:28] I dont see why that takes longer than an hour, actually. [12:29] 1 tb drives :p [12:29] and verifying every pass [12:30] Why not just "mkfs" and start over? [12:31] They transferd files to my server and I want them gone for ever [12:31] who knows what it was [12:31] could of been anything [12:31] just paranoia I guess [12:31] Thats just paranoid, yes. I guess, there are meds against that :P [12:32] I'd just used mkfs, reinstalled, and secure the server. [12:32] ^^ [12:32] Securing the server you mean using ssh keys instead of password? [12:32] That just one small step. [12:34] Can you enlighten me about what other steps i should do? [12:34] msi: https://help.ubuntu.com/12.04/serverguide/security.html and http://www.thefanclub.co.za/how-to/how-secure-ubuntu-1204-lts-server-part-1-basics [12:35] thanks il read it in a secondĀµ [12:37] I see, What would be the difference between recject and block in the firewall? [12:48] Hmm seems like the root login came from inside the network [12:48] I can see a local ip [12:48] You enabled root login?! [12:49] yup [12:53] msi: That was the first mistake. [12:58] how so [13:03] msi: It is disabled by default - for securit reason. You ignored that and payed your bill. [13:03] lol [13:03] you always need root to do stuff don't i? [13:03] or do you mean always use sudo [13:03] !sudo [13:03] sudo is a command to run command-line programs with superuser privileges ("root") (also see !cli). Look at https://help.ubuntu.com/community/RootSudo for more information. For graphical applications see !gksu (GNOME, Xfce), or !kdesudo (KDE). If you're unable to execute commands with sudo see: http://www.psychocats.net/ubuntu/fixsudo [13:03] instead of root account [13:03] sudo is not a replacement for root. [13:04] root has no password by default, so you cannot login as root directly. [13:04] Thats done for security reasons. [13:04] i see [13:04] so for every service I run i should make another account? [13:04] you should read the linked documents before setting up your server again. [13:05] an not all of them on the root acc [13:05] Why do you want to create an account for every service? [13:05] You are mixing things up. [13:05] restricted acces to folders etc [13:05] like my deluge only has acces to 3 folders [13:05] you should not set a root password. You should use sudo when needing root privs. Thats all. [13:05] oh k [13:06] ty dude === freeflying_away is now known as freeflying [16:08] hi. I'm running 12.04. On desktop version I can add a PPA with add-apt-repository, but not on server. How to get it? [16:09] makara: `sudo apt-get install python-software-properties` [16:11] yeah [16:29] what is the command to install build deps? [16:29] dpkg-checkbuilddeps complains, i swear there was a command to install build deps [17:10] is it possible to mirror main/installer-amd64 with apt-mirror? [18:48] can anyone tell me what this stuff means? box keeps locking up and going offline http://tinypic.com/r/2qtuvwo/5 [18:49] Beatstreet: looks like xfs is crashing [18:50] how do I fix that - this is a fresh OS install [18:50] don't use xfs, or perhaps try the 12.04 release iso instead of the 12.04.3 one [18:51] ther 12.04.3 has the 3.8.0 kernel backported from raring, perhaps the 3.2.0 one that was in 12.04 originally doesn't contain that particular issue [18:52] I have 12.04.3 running on a few servers but this is the only one crashing [18:52] that's about all I can suggest, perhaps someone else has another idea [18:53] you can also try installing the linux-lts-saucy kernel, it's more recent and is available for precise now [18:58] xfs is pretty stable these days, you more than likely have a hardware problem [18:59] how can I ID the hardware issue? [18:59] run memtest and check your disks, those are the most likely culprits [19:00] when it locks up, if you have physical access, check to see if one of the disks is hanging and has a light stuck on [19:00] hdd are good but i will test mem ory- thanks [19:00] I dont have physical access [19:00] how much RAM do you have? [19:00] I've bene checking drives with smartmontools [19:01] *been [19:01] 4GB [19:01] ok, that should be enough [19:01] drives don't always throw SMART errors, and especially if you're using desktop-class drives, they can just lock up and hang without producing an error [19:01] and that's normal and accepted behavior according to the manufacturer [19:03] if you had a controller problem you'd normally see an ATA DRDY error, and I don't see any of those, so that's probably not it [19:05] it's pretty consistantly locks up so not sure where to look [19:07] well, you could eliminate xfs as the culprit by using a different filesystem and seeing if problems remain [19:07] but it sounds like hardware to me [19:10] thanks qman__, mdeslaur [21:42] Hi any chance of some help in troubleshooting my attempt to connect to my Ubuntu 12.04 server (sitting on XenServer 6.2) via VNC (and GUI). I've installed X11VNC but get an error when I try to connect with my Viewer (on WinXP) [23:11] ganglia-monitor's init doesn't have a 'status' and the pid file is wrong. [23:11] :( [23:12] at least in 12.04, I'll try out 13.10 in a bit [23:21] is there another tool for testing HDD for failure other then smartmontools? Something for someone with no physical access to the box [23:22] is there another tool for testing HDD for failure other then smartmontools? Something for someone with no physical access to the box === chaos_ is now known as soahccc === freeflying is now known as freeflying_away