[01:10] 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? === Picco is now known as diegosnat === diegosnat is now known as diegonat [02:54] 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] Or specifically, is it OK to just write: '127.0.0.1 localhost.net localhost'? I will have a DNS in my network. === IdleOne is now known as io === broder_ is now known as broder === DWSR2 is now known as Guest27694 [04:26] Hello [04:27] isn't it unreasonably early in south africa? :) [04:30] haha sarnold, yeah it's 6.30am . I am busy trying to configure my VPS [04:31] Joe_knock: hehe, 6:30am on a saturday morning, my goal is to flip the pillow over to the cool side.. :) [04:31] 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] haha, too true. oregon is nice and moderate :) [04:33] 10 hour time difference [04:35] sarnold, are you familiar with setting up a dedicated server/VPS? [04:36] Joe_knock: depends on the pieces involved :) [04:36] I'm at the beginning piece, so let me ask my question [04:37] 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] Joe_knock: does your domain registrar also handle your domain's DNS? [04:38] (many registrars only need the addresses of your DNS servers) [04:39] Yes, although my hosting company says they provide DNS services, I'd prefer to just keep it with my registrar for now. [04:42] 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] 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] 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] 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] okay, so I need to add a CNAME [04:47] yeah [04:49] sarnold, why do I need the PTR? [04:50] 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] 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] 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] The purpose of this VPS is to run Phabricator for a team of about 10-12 people [04:55] I'll try configuring email on it though, should be useful to send updates to people. [04:55] "oh whats that?" -> firefox -> "oh, the link is purple, apparently I have heard about it", hehe :) [04:57] sarnold are you primarily a webdeveloper? [04:58] "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] Joe_knock: no, I do security things [04:59] white hat? [04:59] yeah [04:59] lucky for me, I'm horrible at exploit authoring :) [05:01] This whole hacking thing is weird, because I think I found a legal way to do something that shouldn't be possible. [05:14] sarnold I thought every white hat should be able to do black hat type of stuff? [05:15] 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] so it's a 2-step process. Exploiting a flaw requires a certain level of other skills? [05:18] 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] knowing how to write an exploit is one thing, wanting to spend a week writing the exploit is another [05:20] Wouldn't writing exploits be classified as a certain type of programming? [05:21] I was initially thinking of it as a ' [05:21] 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] I was initially thinking of it as a 'reverse-process' type of programming. [05:22] 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] just seeing the 0x41414141 is plenty good for me :) [05:24] 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] *? [05:25] Joe_knock: that seems a fitting description if they rely upon tools written by others. [05:27] 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] 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] 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] 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] well, that's the thing... [05:31] if you try one or two others, that's fair enough. let em know, and move on... [05:32] When you say billing information, are you referring to basically invoices and that type of stuff? or like the credit card details? [05:32] .. but when you collect a few hundred thousand of them, that's changed the color of your hat significantly. [05:32] Joe_knock: I presumed it was name, address, phone numbers, but probably not credit card numbers [05:33] but that's harmless data. Everything accessible via a phonebook [05:34] what's a phone book? :) [05:34] he must've scraped it from his home ip address, otherwise it can be very hard to track someone down these days. [05:39] alright time to pop off for the night :) have fun Joe_knock [05:39] take care sarnold. [05:39] thanks again. [06:05] When setting up your ubuntu server, is it advisable to create a user instead of using root? [10:42] hello everyone [11:51] hi guy anybody can help me [11:51] i am using ubuntu server 12.0.4 [11:51] my problem is i want to install ubuntu server on ibm system x3100 m4 with raid 1 [11:52] but when i finish partitioning [11:52] the installer does not want to write the disk [11:52] anybody can help me [11:53] hello anybody [11:53] hengky: state your issue in one sentence please. [11:53] !details | henkjan_ [11:53] henkjan_: Please give us full details. For example: "I have a problem with ..., I'm running Ubuntu version .... When I try to do ..., I get the following output: ..., but I expected it to do ..." [11:53] gna [11:53] !details | hengky [11:53] hengky: Please give us full details. For example: "I have a problem with ..., I'm running Ubuntu version .... When I try to do ..., I get the following output: ..., but I expected it to do ..." [11:55] 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] hengky: Tell us the details like the exact error you get. [11:57] there is no error message [11:57] it just display a purple background and i cannot do anything [11:58] it is stuck in that purple display [12:04] any solution guys [12:04] my server is ibm system x3100 m4 [12:05] i want to use hardware raid 1 [12:11] 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] this might find you some angry-looking error messages that'd provide a much better clue [12:13] i don't understand what u mean [12:14] or do you have any tutorial how to install ubuntu server with hardware raid 1 [12:19] hengky shauno is telling you to press ALT + left/right [14:28] anyone used to shorewall here ? I run ubuntu server, I am trying to check what shorewall are blocking [14:28] [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] xxx.xxx.xxx.xxx are ip given from ISP [14:56] why shorewall? [14:57] that is a normal iptables log entry, nothing to do with shorewall === robher_ is now known as robher === broder_ is now known as broder === ValicekB_ is now known as ValicekB === |Jurgen| is now known as |Jurgen|-afk === TheRealBacon is now known as GreatBacon === |Jurgen|-afk is now known as |Jurgen| [19:42] rennat41: Hey, don't give up yet. [19:44] rennat41: Depending on what went wrong, your data files are almost certainly still accessible. [19:44] jhutchins: Sorry, I'm new to IRC is this a direct message? [19:45] 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] rennat41: WHat's wrong with your system? Does it boot? [19:46] rennat41: This isn't really a server vs. desktop issue, but there's less noise here. [19:46] rennat41: I'll be glad to try to help you if you're willing to provide some information and feedback. [19:46] It does not boot, I get this error: "Not Init Found. Try passing boot= bootarg" [19:47] jhutchins: sorry, I'm just a bit slow [19:47] So my first step was to boot from disk and run fsck /dev/sda1 [19:48] but I got an error that fsck could not be fount [19:48] *found [19:48] by "disk" I assume you meant boot to the OS itself, not a liveusb or livecd or smth. [19:48] 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] I burned 12.04 to a disk and booted from that disk [19:49] rennat41: Sounds like grub isn't pointing to the right disk/partition. [19:49] fsck is on the livecd, if its not your disk is broken [19:49] jhutchins, or the /dev/sda1 is corrupted beyond measure, i've run into this issue before with dying hardware [19:49] TheLordOfTime: I believe this was afailed upgrade. [19:49] jhutchins, as i said, corrupted beyond measure [19:49] (many ways to corrupt a partition :P) [19:50] Interesting. Any way I could find out if the hardware is bad [19:50] rennat41, boot to the Live environment, and in the terminal do `sudo fdisk -l` [19:50] erm... [19:50] I have windows 7 running fine if that helps [19:50] no it doesn't... [19:50] :P [19:50] win7 != ubuntu, won't help us here [19:50] Okay [19:50] i think it's a lowercase "l", i have to check... [19:50] rennat41: Linux is much more useful for fixing Windows than Windows is for fixing Linux. [19:50] rennat41: Yes, fdisk -l [19:51] Ha, alright [19:51] hehe, yeah been a while since i had to deal with fdisk :P [19:51] rennat41: THis should list the disks and partitions. [19:51] rennat41, pastebin the output from `sudo fdisk -l` (without the ` characters) [19:51] !pastebin [19:51] For posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic. [19:51] what information do you need from fdisk? [19:52] ... [19:52] [2013/12/14 14:51:26] <TheLordOfTime> rennat41, pastebin the output from `sudo fdisk -l` (without the ` characters) [19:52] "the output" [19:52] i.e. everything it says [19:52] Well, my network card isn't working on ubuntu so I'm on a mac right now [19:53] well... [19:53] 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] I'll do that [19:54] ... crap, not again, brb, one of my servers is being stupid... again... [19:57] No problem, here is the paste url: http://paste.ubuntu.com/6574268/ [20:01] hi [20:01] i try to set vhost but unfortunately can't [20:03] rennat41, I'm... confused by this... [20:03] rennat41, when you said you were running a server on the system, there would be an ext2 / ext3 / ext4 partition there... [20:03] rennat41, is this a Wubi install? [20:03] (if it is, #ubuntu is where you need to be) [20:03] Oh, They told me on that channel that I should be here [20:04] But it's just a local server [20:04] rennat41, you didn't answer my question [20:04] I'm sorry, I'm not sure [20:04] did you install Ubuntu Server to the disk, or did you install Ubuntu (for desktops) inside of Windows with Wubi [20:04] because if it's the second of those two things, your actual question is "How do I recover my Wubi installation" [20:05] if its the first, then something else you did broke it, because there's no Ubuntu-usable partitions there. [20:05] I had windows and then installed ubuntu as a virtual os [20:05] (and I say "Ubuntu-usable" because Linux and NTFS don't play nice with the permissions) [20:05] If that answers your question... [20:05] rennat41, ahhhhhhhhhhhh [20:05] rennat41, so this is a virtual machine [20:05] Indeed === |Jurgen| is now known as |Fabian| [20:06] rennat41, that changes things [20:06] because running a server in a VM that works everywhere, and recovering data from that VM, tends to be a PITA sometimes [20:06] I seeā€¦ [20:06] what virtualization software were you using? [20:06] virtualbox? or something else [20:07] ... STUPID EVIL PIECE OF... *grumbles* [20:07] sorry, python's causing my servers to break... :/ [20:07] 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] rennat41, then you installed Ubuntu from within Windows 7 [20:07] that's called "wubi" [20:07] and your question is "How do I recover stuff from my Wubi installation" [20:08] and we can't really help with that here, you'll need #ubuntu for that [20:08] I think I just have a duel instal [20:08] you don't, rennat41 [20:08] Oh [20:08] if you did then we'd see something else in your fdisk -l [20:09] Okay, well I'll go to #ubuntu and see if they can help. Thanks! [20:09] lemme grab an example fdisk -l for one moment [20:09] Okay [20:09] bleh stupid server... [20:09] 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] we only see 2 and they're both NTFS [20:10] which indicates that you've got Ubuntu installed, but not a dual-boot install, a Wubi install [20:10] 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] which means you don't actually have to mess with the partition table [20:11] the problem with this, is that it's a lot harder to fix Wubi [20:11] so you'll have to get help in recovering Wubi, which is your actual question. [20:11] Ah okay. That makes sense. Well thanks for the info. [20:12] you're welcome. [20:12] rennat41, ultimately, #ubuntu, or ubuntuforums.org or askubuntu.com, would be your best bet for getting help [20:12] although on Ask Ubuntu, we tend to say "ALL WUBI MUST BURN!" [20:12] because the veterans there (myself included) hate Wubi with a passion [20:14] rennat41, also, let me make you aware... [20:14] Ubuntu Server doesn't have a graphical interface. [20:14] non-server Ubuntu has the GUI. [20:14] so if you're using Ubuntu and it boots to a GUI it's nto Ubuntu Server. [20:14] Yeah I thought so. Now I know! [20:14] but like all other Ubuntus, that's irrelevant... [20:14] because server *packages* like LAMP or Apache, or nginx, or bind9, etc... [20:15] can all be installed on a standard Ubuntu desktop installation [20:15] What is the better alternative to a Wubi install? [20:15] dual boot installation direct to the hard drive, but you run the risk of your Windows exploding in the process [20:15] since Windows doesn't like its partitions changed. [20:15] (because you have to resize Windows to make space for Ubuntu) [20:15] I did change the partitions when I installed ubuntu [20:15] Wubi is okayish for people who don't want to mess with their partition tables [20:16] rennat41, not according to fdisk [20:16] That's why I'm confused [20:16] rennat41, how did you install Ubuntu in the first place [20:16] 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] I booted to the live disk [20:17] I didn't even know about Wubi to be honest [20:17] hmm [20:17] rennat41, and the system seriously has a 2TB disk? [20:17] Yes [20:17] did you upgrade Windows or something? [20:17] Not recently [20:17] because I don't see an ext partition which is necessary in your fdisk... [20:17] so this suggests that either your partition table is completely broken [20:18] and the ext partitions are just so damaged they're not retrievable or readable by fdisk... [20:18] or you never actually did a dual boot install and did Wubi [20:18] (which is possible) [20:18] 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] Both windows and Ubuntu had the same username so I got confused [20:19] 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] and if it's Wubi that's equally hard. [20:19] So my guess is, all hope is lost [20:19] rennat41, I personally always tell everyone this: [20:19] RULE #1: Always back up your data. ALWAYS. [20:19] Rule #2: See rule #1 [20:19] Rule #3: See rule #2 [20:19] Rule #4: see rule #3 [20:20] cardinal rule of all computers and servers: Always keep backups [20:20] I know, I've been beating myself up all day for that [20:20] I keep backups of windows and my mac, and never set it up for Ubuntu [20:20] 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] but i have several servers and/or VPSes for that purpose, I'm atypical :p [20:21] You're smart! [20:21] * TheLordOfTime looks out the window. [20:21] ehhhhhhhhhhhhhhhhhhhhhh.... [20:21] it looks icy and slippery and crap out there... [20:21] crap, i have to go salt and shovel, back later... [20:21] Alright, thanks again for the help! [20:29] hello anyone ? [20:29] i just installed apache2 [20:30] it works with sigle host but not virtual host [20:30] what to do ? [20:33] zertyui did you check with #httpd about that yet? [20:33] no [20:33] let me check that === Ursinha_ is now known as Ursinha [21:33] 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] wifi on ubuntu server? [21:40] Ben64: yes, not for internet, for playing with a sandisk wfd. [21:41] http://www.sandisk.com/wfd/ it has webdav support... [23:39] 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] it's a new install / setup, not a production machine [23:44] Bueller...... [23:47] Ruetobas, how is your comfort level with bind9?