[01:10] <Picco> hi... stupid question! In python is there a way to have something similar if (!test) which means that if is executed if the test does not succeed?
[02:54] <krababbel> Hi, I am looking for a guide on /etc/hosts, particularily the localhost part. I read many different ways to write the first two lines in hosts. For example why do some assign 127.0.1.1 to the hostname, while others do 127.0.0.1 hostname localhost? Is localhost.mynet valid, etc.?
[02:57] <krababbel> Or specifically, is it OK to just write: '127.0.0.1 localhost.net localhost'? I will have a DNS in my network.
[04:26] <Joe_knock> Hello
[04:27] <sarnold> isn't it unreasonably early in south africa? :)
[04:30] <Joe_knock> haha sarnold, yeah it's 6.30am . I am busy trying to configure my VPS
[04:31] <sarnold> Joe_knock: hehe, 6:30am on a saturday morning, my goal is to flip the pillow over to the cool side.. :)
[04:31] <Joe_knock> Your IP says comcast, so you'd only flip it over to the cool side cause you live in a warm area of the USA
[04:32] <sarnold> haha, too true. oregon is nice and moderate :)
[04:33] <Joe_knock> 10 hour time difference
[04:35] <Joe_knock> sarnold, are you familiar with setting up a dedicated server/VPS?
[04:36] <sarnold> Joe_knock: depends on the pieces involved :)
[04:36] <Joe_knock> I'm at the beginning piece, so let me ask my question
[04:37] <Joe_knock> Say I created a hostname as server.example.com for my VPS. They gave me an IP address, should I now use my domain registrar to create that specific subdomain and make the IP address point to it?
[04:38] <sarnold> Joe_knock: does your domain registrar also handle your domain's DNS?
[04:38] <sarnold> (many registrars only need the addresses of your DNS servers)
[04:39] <Joe_knock> Yes, although my hosting company says they provide DNS services, I'd prefer to just keep it with my registrar for now.
[04:42] <sarnold> Joe_knock: cool; one thing to keep in mind is that you can have as many names pointing to that IP as you want (A records, CNAMEs to other names), but the reverse lookup from that IP can only go to one name (a PTR record)
[04:44] <Joe_knock> So should my hostname be the same as the domain name I want to use? For example, I want to host a webapp saved at: app.example.com , should my hostname then also be app.example.com or is there a way to keep the hostname as server.example.com and still run the webapp at app.example.com ?
[04:45] <sarnold> Joe_knock: most webapps are happy to run on a name-based virtual host; be aware that name-based virtual hosting and TLS don't exactly play well together, so if you want it on https, look into http://en.wikipedia.org/wiki/Server_Name_Indication
[04:47] <sarnold> Joe_knock: setting the hostname to server.example.com, adding an A record for server.example.com -> your ip, a PTR from your ip -> server.example.com, and a CNAME from app.example.com -> server.example.com, ought to work
[04:47] <Joe_knock> okay, so I need to add a CNAME
[04:47] <sarnold> yeah
[04:49] <Joe_knock> sarnold, why do I need the PTR?
[04:50] <sarnold> Joe_knock: it's convenient for ping and traceroute output, if you log in to other hosts from it using ssh, it'll be more easily visible in those other hosts's logs where you came from, and having a matching forward->reverse->forward chain of DNS will help improve the chances that emails sent from that machine won't be flagged as spam
[04:52] <Joe_knock> Thanks sarnold. That makes a lot of sense. I doubt my VPS would be able to handle email though, it's a 1GB memory, 30GB SSD that I paid $7 for.
[04:53] <sarnold> Joe_knock: you wouldn't want to send millions a month on that :) but it ought to have plenty of horsepower for low-duty mail..
[04:54] <Joe_knock> The purpose of this VPS is to run Phabricator for a team of about 10-12 people
[04:55] <Joe_knock> I'll try configuring email on it though, should be useful to send updates to people.
[04:55] <sarnold> "oh whats that?" -> firefox -> "oh, the link is purple, apparently I have heard about it", hehe :)
[04:57] <Joe_knock> sarnold are you primarily a webdeveloper?
[04:58] <sarnold> "The arcanist command line tool gives you CLI access to most of Phabricator's functionality. Many cryptic commands.". Man, I think I like these guys :) hehe
[04:58] <sarnold> Joe_knock: no, I do security things
[04:59] <Joe_knock> white hat?
[04:59] <sarnold> yeah
[04:59] <sarnold> lucky for me, I'm horrible at exploit authoring :)
[05:01] <Joe_knock> This whole hacking thing is weird, because I think I found a legal way to do something that shouldn't be possible.
[05:14] <Joe_knock> sarnold I thought every white hat should be able to do black hat type of stuff?
[05:15] <sarnold> Joe_knock: I'm content being able to find and fix flaws; actually weaponizing what I find is just much less interesting to me..
[05:16] <Joe_knock> so it's a 2-step process. Exploiting a flaw requires a certain level of other skills?
[05:18] <sarnold> Joe_knock: I don't know if it is a skill or a disposition.... it certainly takes persistence to iterate and refine an exploit, and I'd personally rather spend the time going to find more problems :) some people prefer the challenge of getting their exploit to function.
[05:19] <mdeslaur> knowing how to write an exploit is one thing, wanting to spend a week writing the exploit is another
[05:20] <Joe_knock> Wouldn't writing exploits be classified as a certain type of programming?
[05:21] <Joe_knock> I was initially thinking of it as a '
[05:21] <sarnold> mdeslaur: .. and that directly leads to not being very good at it. I have fond memories of nights up doing CTF preliminary contests and jj trying to help me get a simple buffer overflow exploit to work...
[05:21] <Joe_knock> I was initially thinking of it as a 'reverse-process' type of programming.
[05:22] <sarnold> sure, it sounds simple enough, throw _something_ at the overflow, try to find the offset, and change the length of nop slide to try to get closer, iterate your way there, but I sure found it harder to do in practice :)
[05:23] <sarnold> just seeing the 0x41414141 is plenty good for me :)
[05:24] <Joe_knock> sarnold how do you classify somebody that uses tools written by someone else? Like say a DDoS tool that makes a million headless requests to a website. I've heard them being called 'script-kiddies'. Is that the right term/
[05:24] <Joe_knock> *?
[05:25] <sarnold> Joe_knock: that seems a fitting description if they rely upon tools written by others.
[05:27] <Joe_knock> something occurred to me whilst researching webscraping. The principle of scraping is a "gray area", yet if you consider what you were able to learn by scraping, you can apply that same knowledge to do harm too. Does a lot of bad hacking come from being able to do good/not-so-bad things?
[05:28] <sarnold> Joe_knock: very much so, a recent court case involved a fellow who discovered that (AT&T, I think) exposed an interface for his billing information that included something like &customer_id=12345678 -- well, he added one to it, and found someone else's billing information
[05:29] <sarnold> Joe_knock: seems like simple enough stuff so far; well, he went to the efforts of scraping together a few hundred thousand or million of them, and AT&T decided to sue.
[05:30] <Joe_knock> I would blame AT&T for that. Nobody taught them how to use cookie-sessions to protect other customer data from being exposed.
[05:31] <sarnold> well, that's the thing...
[05:31] <sarnold> if you try one or two others, that's fair enough. let em know, and move on...
[05:32] <Joe_knock> When you say billing information, are you referring to basically invoices and that type of stuff? or like the credit card details?
[05:32] <sarnold> .. but when you collect a few hundred thousand of them, that's changed the color of your hat significantly.
[05:32] <sarnold> Joe_knock: I presumed it was name, address, phone numbers, but probably not credit card numbers
[05:33] <Joe_knock> but that's harmless data. Everything accessible via a phonebook
[05:34] <sarnold> what's a phone book? :)
[05:34] <Joe_knock> he must've scraped it from his home ip address, otherwise it can be very hard to track someone down these days.
[05:39] <sarnold> alright time to pop off for the night :) have fun Joe_knock
[05:39] <Joe_knock> take care sarnold.
[05:39] <Joe_knock> thanks again.
[06:05] <Joe_knock> When setting up your ubuntu server, is it advisable to create a user instead of using root?
[10:42] <Joe_knock> hello everyone
[11:51] <hengky> hi guy anybody can help me
[11:51] <hengky> i am using ubuntu server 12.0.4
[11:51] <hengky> my problem is i want to install ubuntu server on ibm system x3100 m4 with raid 1
[11:52] <hengky> but when i finish partitioning
[11:52] <hengky> the installer does not want to write the disk
[11:52] <hengky> anybody can help me
[11:53] <hengky> hello anybody
[11:53] <bekks> hengky: state your issue in one sentence please.
[11:53] <bekks> !details | henkjan_
[11:53] <bekks> gna
[11:53] <bekks> !details | hengky
[11:55] <hengky> i have a problem with installing ubuntu server, i am running ubuntu version 12.0.4 when i try to write the disk hardware raid 1, the installer does not want to write the disk, the installer stay in the purple background and i cannot do anything after that
[11:56] <bekks> hengky: Tell us the details like the exact error you get.
[11:57] <hengky> there is no error message
[11:57] <hengky> it just display a purple background and i cannot do anything
[11:58] <hengky> it is stuck in that purple display
[12:04] <hengky> any solution guys
[12:04] <hengky> my server is ibm system x3100 m4
[12:05] <hengky> i want to use hardware raid 1
[12:11] <shauno> hengky: at the 'purple screen', you should be able to use alt+left/right (cursors) to view other VTs, one should have a lot more detail logged on it
[12:11] <shauno> this might find you some angry-looking error messages that'd provide a much better clue
[12:13] <hengky> i don't understand what u mean
[12:14] <hengky> or do you have any tutorial how to install ubuntu server with hardware raid 1
[12:19] <Joe_knock> hengky shauno is telling you to press ALT + left/right
[14:28] <auronthas> anyone used to shorewall here ?  I run ubuntu server, I am trying to check what shorewall are blocking
[14:28] <auronthas> [215972.861637] Shorewall:net2fw:DROP:IN=eth0 OUT= MAC=00:25:90:d4:c1:c6:00:26:0b:f0:00:ff:08:00 SRC=24.162.252.47 DST=xxx.xxx.xxx.xxx LEN=64 TOS=0x00 PREC=0x00 TTL=52 ID=14590 DF PROTO=TCP SPT=49546 DPT=23877 WINDOW=65535 RES=0x00 SYN URGP=0
[14:30] <auronthas> xxx.xxx.xxx.xxx are ip given from ISP
[14:56] <Patrickdk> why shorewall?
[14:57] <Patrickdk> that is a normal iptables log entry, nothing to do with shorewall
[19:42] <jhutchins> rennat41: Hey, don't give up yet.
[19:44] <jhutchins> rennat41: Depending on what went wrong, your data files are almost certainly still accessible.
[19:44] <rennat41> jhutchins: Sorry, I'm new to IRC is this a direct message?
[19:45] <jhutchins> rennat41: No, this is the #ubuntu-server channel.  We encourage people to discuss their problem publicly so anybody can help, and other people can learn.
[19:45] <jhutchins> rennat41: WHat's wrong with your system?  Does it boot?
[19:46] <jhutchins> rennat41: This isn't really a server vs. desktop issue, but there's less noise here.
[19:46] <jhutchins> rennat41: I'll be glad to try to help you if you're willing to provide some information and feedback.
[19:46] <rennat41> It does not boot, I get this error: "Not Init Found. Try passing boot= bootarg"
[19:47] <rennat41> jhutchins: sorry, I'm just a bit slow
[19:47] <rennat41> So my first step was to boot from disk and run fsck /dev/sda1
[19:48] <rennat41> but I got an error that fsck could not be fount
[19:48] <rennat41> *found
[19:48] <TheLordOfTime> by "disk" I assume you meant boot to the OS itself, not a liveusb or livecd or smth.
[19:48] <TheLordOfTime> because if you can't boot to your system you can't fsck it, you should be doing that from a Live environment at the least
[19:48] <rennat41> I burned 12.04 to a disk and booted from that disk
[19:49] <jhutchins> rennat41: Sounds like grub isn't pointing to the right disk/partition.
[19:49] <TheLordOfTime> fsck is on the livecd, if its not your disk is broken
[19:49] <TheLordOfTime> jhutchins, or the /dev/sda1 is corrupted beyond measure, i've run into this issue before with dying hardware
[19:49] <jhutchins> TheLordOfTime: I believe this was  afailed upgrade.
[19:49] <TheLordOfTime> jhutchins, as i said, corrupted beyond measure
[19:49] <TheLordOfTime> (many ways to corrupt a partition :P)
[19:50] <rennat41> Interesting. Any way I could find out if the hardware is bad
[19:50] <TheLordOfTime> rennat41, boot to the Live environment, and in the terminal do `sudo fdisk -l`
[19:50] <TheLordOfTime> erm...
[19:50] <rennat41> I have windows 7 running fine if that helps
[19:50] <TheLordOfTime> no it doesn't...
[19:50] <TheLordOfTime> :P
[19:50] <TheLordOfTime> win7 != ubuntu, won't help us here
[19:50] <rennat41> Okay
[19:50] <TheLordOfTime> i think it's a lowercase "l", i have to check...
[19:50] <jhutchins> rennat41: Linux is much more useful for fixing Windows than Windows is for fixing Linux.
[19:50] <jhutchins> rennat41: Yes, fdisk -l
[19:51] <rennat41> Ha, alright
[19:51] <TheLordOfTime> hehe, yeah been a while since i had to deal with fdisk :P
[19:51] <jhutchins> rennat41: THis should list the disks and partitions.
[19:51] <TheLordOfTime> rennat41, pastebin the output from `sudo fdisk -l` (without the ` characters)
[19:51] <TheLordOfTime> !pastebin
[19:51] <rennat41> what information do you need from fdisk?
[19:52] <TheLordOfTime> ...
[19:52] <TheLordOfTime> [2013/12/14 14:51:26] <TheLordOfTime> rennat41, pastebin the output from `sudo fdisk -l` (without the ` characters)
[19:52] <TheLordOfTime> "the output"
[19:52] <TheLordOfTime> i.e. everything it says
[19:52] <rennat41> Well, my network card isn't working on ubuntu so I'm on a mac right now
[19:53] <TheLordOfTime> well...
[19:53] <TheLordOfTime> kinda stuck on helping you then, you could always, I don't know, use an ethernet cable... or stick the output into a text file on a USB stick and paste it from your Mac...
[19:54] <rennat41> I'll do that
[19:54] <TheLordOfTime> ... crap, not again, brb, one of my servers is being stupid... again...
[19:57] <rennat41> No problem, here is the paste url: http://paste.ubuntu.com/6574268/
[20:01] <zertyui> hi
[20:01] <zertyui> i try to set vhost but unfortunately can't
[20:03] <TheLordOfTime> rennat41, I'm... confused by this...
[20:03] <TheLordOfTime> rennat41, when you said you were running a server on the system, there would be an ext2 / ext3 / ext4 partition there...
[20:03] <TheLordOfTime> rennat41, is this a Wubi install?
[20:03] <TheLordOfTime> (if it is, #ubuntu is where you need to be)
[20:03] <rennat41> Oh, They told me on that channel that I should be here
[20:04] <rennat41> But it's just a local server
[20:04] <TheLordOfTime> rennat41, you didn't answer my question
[20:04] <rennat41> I'm sorry, I'm not sure
[20:04] <TheLordOfTime> did you install Ubuntu Server to the disk, or did you install Ubuntu (for desktops) inside of Windows with Wubi
[20:04] <TheLordOfTime> because if it's the second of those two things, your actual question is "How do I recover my Wubi installation"
[20:05] <TheLordOfTime> if its the first, then something else you did broke it, because there's no Ubuntu-usable partitions there.
[20:05] <rennat41> I had windows and then installed ubuntu as a virtual os
[20:05] <TheLordOfTime> (and I say "Ubuntu-usable" because Linux and NTFS don't play nice with the permissions)
[20:05] <rennat41> If that answers your question...
[20:05] <TheLordOfTime> rennat41, ahhhhhhhhhhhh
[20:05] <TheLordOfTime> rennat41, so this is a virtual machine
[20:05] <rennat41> Indeed
[20:06] <TheLordOfTime> rennat41, that changes things
[20:06] <TheLordOfTime> because running a server in a VM that works everywhere, and recovering data from that VM, tends to be a PITA sometimes
[20:06] <rennat41> I see…
[20:06] <TheLordOfTime> what virtualization software were you using?
[20:06] <TheLordOfTime> virtualbox?  or something else
[20:07] <TheLordOfTime> ... STUPID EVIL PIECE OF... *grumbles*
[20:07] <TheLordOfTime> sorry, python's causing my servers to break... :/
[20:07] <rennat41> Sorry, maybe I'm not describing this right. When I boot, I can chose between ubuntu or win7
[20:07]  * TheLordOfTime kills python on his server
[20:07] <TheLordOfTime> rennat41, then you installed Ubuntu from within Windows 7
[20:07] <TheLordOfTime> that's called "wubi"
[20:07] <TheLordOfTime> and your question is "How do I recover stuff from my Wubi installation"
[20:08] <TheLordOfTime> and we can't really help with that here, you'll need #ubuntu for that
[20:08] <rennat41> I think I just have a duel instal
[20:08] <TheLordOfTime> you don't, rennat41
[20:08] <rennat41> Oh
[20:08] <TheLordOfTime> if you did then we'd see something else in your fdisk -l
[20:09] <rennat41> Okay, well I'll go to #ubuntu and see if they can help. Thanks!
[20:09] <TheLordOfTime> lemme grab an example fdisk -l for one moment
[20:09] <rennat41> Okay
[20:09] <TheLordOfTime> bleh stupid server...
[20:09] <TheLordOfTime> rennat41, anyways, under the 'System' column we'd see "Linux" and probably "Linux Swap", and there'd be 3 or 4 partitions on your system on /dev/sda*
[20:10] <TheLordOfTime> we only see 2 and they're both NTFS
[20:10] <TheLordOfTime> which indicates that you've got Ubuntu installed, but not a dual-boot install, a Wubi install
[20:10] <TheLordOfTime> in which Ubuntu installs to a file on your computer, and does some arcane magic to make Linux boot from outside of Windows, while everything still exists inside your Windows partitions
[20:11] <TheLordOfTime> which means you don't actually have to mess with the partition table
[20:11] <TheLordOfTime> the problem with this, is that it's a lot harder to fix Wubi
[20:11] <TheLordOfTime> so you'll have to get help in recovering Wubi, which is your actual question.
[20:11] <rennat41> Ah okay. That makes sense. Well thanks for the info.
[20:12] <TheLordOfTime> you're welcome.
[20:12] <TheLordOfTime> rennat41, ultimately, #ubuntu, or ubuntuforums.org or askubuntu.com, would be your best bet for getting help
[20:12] <TheLordOfTime> although on Ask Ubuntu, we tend to say "ALL WUBI MUST BURN!"
[20:12] <TheLordOfTime> because the veterans there (myself included) hate Wubi with a passion
[20:14] <TheLordOfTime> rennat41, also, let me make you aware...
[20:14] <TheLordOfTime> Ubuntu Server doesn't have a graphical interface.
[20:14] <TheLordOfTime> non-server Ubuntu has the GUI.
[20:14] <TheLordOfTime> so if you're using Ubuntu and it boots to a GUI it's nto Ubuntu Server.
[20:14] <rennat41> Yeah I thought so. Now I know!
[20:14] <TheLordOfTime> but like all other Ubuntus, that's irrelevant...
[20:14] <TheLordOfTime> because server *packages* like LAMP or Apache, or nginx, or bind9, etc...
[20:15] <TheLordOfTime> can all be installed on a standard Ubuntu desktop installation
[20:15] <rennat41> What is the better alternative to a Wubi install?
[20:15] <TheLordOfTime> dual boot installation direct to the hard drive, but you run the risk of your Windows exploding in the process
[20:15] <TheLordOfTime> since Windows doesn't like its partitions changed.
[20:15] <TheLordOfTime> (because you have to resize Windows to make space for Ubuntu)
[20:15] <rennat41> I did change the partitions when I installed ubuntu
[20:15] <TheLordOfTime> Wubi is okayish for people who don't want to mess with their partition tables
[20:16] <TheLordOfTime> rennat41, not according to fdisk
[20:16] <rennat41> That's why I'm confused
[20:16] <TheLordOfTime> rennat41, how did you install Ubuntu in the first place
[20:16] <TheLordOfTime> when you first installed it, did you boot to the Live disk, or did you open the wubi.exe file from within Windows?
[20:16] <rennat41> I booted to the live disk
[20:17] <rennat41> I didn't even know about Wubi to be honest
[20:17] <TheLordOfTime> hmm
[20:17] <TheLordOfTime> rennat41, and the system seriously has a 2TB disk?
[20:17] <rennat41> Yes
[20:17] <TheLordOfTime> did you upgrade Windows or something?
[20:17] <rennat41> Not recently
[20:17] <TheLordOfTime> because I don't see an ext partition which is necessary in your fdisk...
[20:17] <TheLordOfTime> so this suggests that either your partition table is completely broken
[20:18] <TheLordOfTime> and the ext partitions are just so damaged they're not retrievable or readable by fdisk...
[20:18] <TheLordOfTime> or you never actually did a dual boot install and did Wubi
[20:18] <TheLordOfTime> (which is possible)
[20:18] <rennat41> I think it is. because when I said that I could see my documents from Ubuntu, I actually can't. All I can see is my windows files
[20:18] <rennat41> Both windows and Ubuntu had the same username so I got confused
[20:19] <TheLordOfTime> it's one of those two situations, and if its the first one you're kinda in for hell because it's *really* hard to recover data from so badly corrupted partitions that fdisk can't even see them...
[20:19] <TheLordOfTime> and if it's Wubi that's equally hard.
[20:19] <rennat41> So my guess is, all hope is lost
[20:19] <TheLordOfTime> rennat41, I personally always tell everyone this:
[20:19] <TheLordOfTime> RULE #1: Always back up your data. ALWAYS.
[20:19] <TheLordOfTime> Rule #2: See rule #1
[20:19] <TheLordOfTime> Rule #3: See rule #2
[20:19] <TheLordOfTime> Rule #4: see rule #3
[20:20] <TheLordOfTime> cardinal rule of all computers and servers: Always keep backups
[20:20] <rennat41> I know, I've been beating myself up all day for that
[20:20] <rennat41> I keep backups of windows and my mac, and never set it up for Ubuntu
[20:20] <TheLordOfTime> rennat41, i actually run a few sites from only one server... my other servers all have mirrored data, so the data is the same, so if one goes dead, i can always recover.
[20:20] <TheLordOfTime> but i have several servers and/or VPSes for that purpose, I'm atypical :p
[20:21] <rennat41> You're smart!
[20:21]  * TheLordOfTime looks out the window.
[20:21] <TheLordOfTime> ehhhhhhhhhhhhhhhhhhhhhh....
[20:21] <TheLordOfTime> it looks icy and slippery and crap out there...
[20:21] <TheLordOfTime> crap, i have to go salt and shovel, back later...
[20:21] <rennat41> Alright, thanks again for the help!
[20:29] <zertyui> hello anyone ?
[20:29] <zertyui> i just installed apache2
[20:30] <zertyui> it works with sigle host but not virtual host
[20:30] <zertyui> what to do ?
[20:33] <GreatBacon> zertyui did you check with #httpd about that yet?
[20:33] <zertyui> no
[20:33] <zertyui> let me check that
[21:33] <adamjames> i am trying to get an atheros usb wifi adapter working on 12.04. it has chipset AR5523, i have searched the web and followed the guides that seem to have worked for other folks. lsusb shows the device but no firmware. i have copied the firmware to /lib/firmware and done modprobe ar5523 and still no luck. can anyone help me get this going?
[21:38] <Ben64> wifi on ubuntu server?
[21:40] <adamjames> Ben64: yes, not for internet, for playing with a sandisk wfd.
[21:41] <adamjames> http://www.sandisk.com/wfd/ it has webdav support...
[23:39] <GreatBacon> anyone want to help troubleshoot my bind9 configuration?  I'm sure I missed something small and obvious but it's been evading me due to being zoned out on pain killers for a knee injury @__@
[23:40] <GreatBacon> it's a new install / setup, not a production machine
[23:44] <GreatBacon> Bueller......
[23:47] <GreatBacon> Ruetobas, how is your comfort level with bind9?