/srv/irclogs.ubuntu.com/2013/12/14/#ubuntu-server.txt

Piccohi... 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?01:10
=== Picco is now known as diegosnat
=== diegosnat is now known as diegonat
krababbelHi, 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:54
krababbelOr specifically, is it OK to just write: '127.0.0.1 localhost.net localhost'? I will have a DNS in my network.02:57
=== IdleOne is now known as io
=== broder_ is now known as broder
=== DWSR2 is now known as Guest27694
Joe_knockHello04:26
sarnoldisn't it unreasonably early in south africa? :)04:27
Joe_knockhaha sarnold, yeah it's 6.30am . I am busy trying to configure my VPS04:30
sarnoldJoe_knock: hehe, 6:30am on a saturday morning, my goal is to flip the pillow over to the cool side.. :)04:31
Joe_knockYour IP says comcast, so you'd only flip it over to the cool side cause you live in a warm area of the USA04:31
sarnoldhaha, too true. oregon is nice and moderate :)04:32
Joe_knock10 hour time difference04:33
Joe_knocksarnold, are you familiar with setting up a dedicated server/VPS?04:35
sarnoldJoe_knock: depends on the pieces involved :)04:36
Joe_knockI'm at the beginning piece, so let me ask my question04:36
Joe_knockSay 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:37
sarnoldJoe_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:38
Joe_knockYes, although my hosting company says they provide DNS services, I'd prefer to just keep it with my registrar for now.04:39
sarnoldJoe_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:42
Joe_knockSo 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:44
sarnoldJoe_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_Indication04:45
sarnoldJoe_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 work04:47
Joe_knockokay, so I need to add a CNAME04:47
sarnoldyeah04:47
Joe_knocksarnold, why do I need the PTR?04:49
sarnoldJoe_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 spam04:50
Joe_knockThanks 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:52
sarnoldJoe_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:53
Joe_knockThe purpose of this VPS is to run Phabricator for a team of about 10-12 people04:54
Joe_knockI'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:55
Joe_knocksarnold are you primarily a webdeveloper?04:57
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 :) hehe04:58
sarnoldJoe_knock: no, I do security things04:58
Joe_knockwhite hat?04:59
sarnoldyeah04:59
sarnoldlucky for me, I'm horrible at exploit authoring :)04:59
Joe_knockThis whole hacking thing is weird, because I think I found a legal way to do something that shouldn't be possible.05:01
Joe_knocksarnold I thought every white hat should be able to do black hat type of stuff?05:14
sarnoldJoe_knock: I'm content being able to find and fix flaws; actually weaponizing what I find is just much less interesting to me..05:15
Joe_knockso it's a 2-step process. Exploiting a flaw requires a certain level of other skills?05:16
sarnoldJoe_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:18
mdeslaurknowing how to write an exploit is one thing, wanting to spend a week writing the exploit is another05:19
Joe_knockWouldn't writing exploits be classified as a certain type of programming?05:20
Joe_knockI was initially thinking of it as a '05:21
sarnoldmdeslaur: .. 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_knockI was initially thinking of it as a 'reverse-process' type of programming.05:21
sarnoldsure, 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:22
sarnoldjust seeing the 0x41414141 is plenty good for me :)05:23
Joe_knocksarnold 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:24
sarnoldJoe_knock: that seems a fitting description if they rely upon tools written by others.05:25
Joe_knocksomething 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:27
sarnoldJoe_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 information05:28
sarnoldJoe_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:29
Joe_knockI would blame AT&T for that. Nobody taught them how to use cookie-sessions to protect other customer data from being exposed.05:30
sarnoldwell, that's the thing...05:31
sarnoldif you try one or two others, that's fair enough. let em know, and move on...05:31
Joe_knockWhen 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
sarnoldJoe_knock: I presumed it was name, address, phone numbers, but probably not credit card numbers05:32
Joe_knockbut that's harmless data. Everything accessible via a phonebook05:33
sarnoldwhat's a phone book? :)05:34
Joe_knockhe must've scraped it from his home ip address, otherwise it can be very hard to track someone down these days.05:34
sarnoldalright time to pop off for the night :) have fun Joe_knock05:39
Joe_knocktake care sarnold.05:39
Joe_knockthanks again.05:39
Joe_knockWhen setting up your ubuntu server, is it advisable to create a user instead of using root?06:05
Joe_knockhello everyone10:42
hengkyhi guy anybody can help me11:51
hengkyi am using ubuntu server 12.0.411:51
hengkymy problem is i want to install ubuntu server on ibm system x3100 m4 with raid 111:51
hengkybut when i finish partitioning11:52
hengkythe installer does not want to write the disk11:52
hengkyanybody can help me11:52
hengkyhello anybody11:53
bekkshengky: state your issue in one sentence please.11:53
bekks!details | henkjan_11:53
ubottuhenkjan_: 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
bekksgna11:53
bekks!details | hengky11:53
ubottuhengky: 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
hengkyi 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 that11:55
bekkshengky: Tell us the details like the exact error you get.11:56
hengkythere is no error message11:57
hengkyit just display a purple background and i cannot do anything11:57
hengkyit is stuck in that purple display11:58
hengkyany solution guys12:04
hengkymy server is ibm system x3100 m412:04
hengkyi want to use hardware raid 112:05
shaunohengky: 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 it12:11
shaunothis might find you some angry-looking error messages that'd provide a much better clue12:11
hengkyi don't understand what u mean12:13
hengkyor do you have any tutorial how to install ubuntu server with hardware raid 112:14
Joe_knockhengky shauno is telling you to press ALT + left/right12:19
auronthasanyone used to shorewall here ?  I run ubuntu server, I am trying to check what shorewall are blocking14: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=014:28
auronthasxxx.xxx.xxx.xxx are ip given from ISP14:30
Patrickdkwhy shorewall?14:56
Patrickdkthat is a normal iptables log entry, nothing to do with shorewall14:57
=== 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|
jhutchinsrennat41: Hey, don't give up yet.19:42
jhutchinsrennat41: Depending on what went wrong, your data files are almost certainly still accessible.19:44
rennat41jhutchins: Sorry, I'm new to IRC is this a direct message?19:44
jhutchinsrennat41: 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
jhutchinsrennat41: WHat's wrong with your system?  Does it boot?19:45
jhutchinsrennat41: This isn't really a server vs. desktop issue, but there's less noise here.19:46
jhutchinsrennat41: I'll be glad to try to help you if you're willing to provide some information and feedback.19:46
rennat41It does not boot, I get this error: "Not Init Found. Try passing boot= bootarg"19:46
rennat41jhutchins: sorry, I'm just a bit slow19:47
rennat41So my first step was to boot from disk and run fsck /dev/sda119:47
rennat41but I got an error that fsck could not be fount19:48
rennat41*found19:48
TheLordOfTimeby "disk" I assume you meant boot to the OS itself, not a liveusb or livecd or smth.19:48
TheLordOfTimebecause if you can't boot to your system you can't fsck it, you should be doing that from a Live environment at the least19:48
rennat41I burned 12.04 to a disk and booted from that disk19:48
jhutchinsrennat41: Sounds like grub isn't pointing to the right disk/partition.19:49
TheLordOfTimefsck is on the livecd, if its not your disk is broken19:49
TheLordOfTimejhutchins, or the /dev/sda1 is corrupted beyond measure, i've run into this issue before with dying hardware19:49
jhutchinsTheLordOfTime: I believe this was  afailed upgrade.19:49
TheLordOfTimejhutchins, as i said, corrupted beyond measure19:49
TheLordOfTime(many ways to corrupt a partition :P)19:49
rennat41Interesting. Any way I could find out if the hardware is bad19:50
TheLordOfTimerennat41, boot to the Live environment, and in the terminal do `sudo fdisk -l`19:50
TheLordOfTimeerm...19:50
rennat41I have windows 7 running fine if that helps19:50
TheLordOfTimeno it doesn't...19:50
TheLordOfTime:P19:50
TheLordOfTimewin7 != ubuntu, won't help us here19:50
rennat41Okay19:50
TheLordOfTimei think it's a lowercase "l", i have to check...19:50
jhutchinsrennat41: Linux is much more useful for fixing Windows than Windows is for fixing Linux.19:50
jhutchinsrennat41: Yes, fdisk -l19:50
rennat41Ha, alright19:51
TheLordOfTimehehe, yeah been a while since i had to deal with fdisk :P19:51
jhutchinsrennat41: THis should list the disks and partitions.19:51
TheLordOfTimerennat41, pastebin the output from `sudo fdisk -l` (without the ` characters)19:51
TheLordOfTime!pastebin19:51
ubottuFor 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
rennat41what information do you need from fdisk?19:51
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
TheLordOfTimei.e. everything it says19:52
rennat41Well, my network card isn't working on ubuntu so I'm on a mac right now19:52
TheLordOfTimewell...19:53
TheLordOfTimekinda 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:53
rennat41I'll do that19:54
TheLordOfTime... crap, not again, brb, one of my servers is being stupid... again...19:54
rennat41No problem, here is the paste url: http://paste.ubuntu.com/6574268/19:57
zertyuihi20:01
zertyuii try to set vhost but unfortunately can't20:01
TheLordOfTimerennat41, I'm... confused by this...20:03
TheLordOfTimerennat41, when you said you were running a server on the system, there would be an ext2 / ext3 / ext4 partition there...20:03
TheLordOfTimerennat41, is this a Wubi install?20:03
TheLordOfTime(if it is, #ubuntu is where you need to be)20:03
rennat41Oh, They told me on that channel that I should be here20:03
rennat41But it's just a local server20:04
TheLordOfTimerennat41, you didn't answer my question20:04
rennat41I'm sorry, I'm not sure20:04
TheLordOfTimedid you install Ubuntu Server to the disk, or did you install Ubuntu (for desktops) inside of Windows with Wubi20:04
TheLordOfTimebecause if it's the second of those two things, your actual question is "How do I recover my Wubi installation"20:04
TheLordOfTimeif its the first, then something else you did broke it, because there's no Ubuntu-usable partitions there.20:05
rennat41I had windows and then installed ubuntu as a virtual os20:05
TheLordOfTime(and I say "Ubuntu-usable" because Linux and NTFS don't play nice with the permissions)20:05
rennat41If that answers your question...20:05
TheLordOfTimerennat41, ahhhhhhhhhhhh20:05
TheLordOfTimerennat41, so this is a virtual machine20:05
rennat41Indeed20:05
=== |Jurgen| is now known as |Fabian|
TheLordOfTimerennat41, that changes things20:06
TheLordOfTimebecause running a server in a VM that works everywhere, and recovering data from that VM, tends to be a PITA sometimes20:06
rennat41I see…20:06
TheLordOfTimewhat virtualization software were you using?20:06
TheLordOfTimevirtualbox?  or something else20:06
TheLordOfTime... STUPID EVIL PIECE OF... *grumbles*20:07
TheLordOfTimesorry, python's causing my servers to break... :/20:07
rennat41Sorry, maybe I'm not describing this right. When I boot, I can chose between ubuntu or win720:07
* TheLordOfTime kills python on his server20:07
TheLordOfTimerennat41, then you installed Ubuntu from within Windows 720:07
TheLordOfTimethat's called "wubi"20:07
TheLordOfTimeand your question is "How do I recover stuff from my Wubi installation"20:07
TheLordOfTimeand we can't really help with that here, you'll need #ubuntu for that20:08
rennat41I think I just have a duel instal20:08
TheLordOfTimeyou don't, rennat4120:08
rennat41Oh20:08
TheLordOfTimeif you did then we'd see something else in your fdisk -l20:08
rennat41Okay, well I'll go to #ubuntu and see if they can help. Thanks!20:09
TheLordOfTimelemme grab an example fdisk -l for one moment20:09
rennat41Okay20:09
TheLordOfTimebleh stupid server...20:09
TheLordOfTimerennat41, 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:09
TheLordOfTimewe only see 2 and they're both NTFS20:10
TheLordOfTimewhich indicates that you've got Ubuntu installed, but not a dual-boot install, a Wubi install20:10
TheLordOfTimein 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 partitions20:10
TheLordOfTimewhich means you don't actually have to mess with the partition table20:11
TheLordOfTimethe problem with this, is that it's a lot harder to fix Wubi20:11
TheLordOfTimeso you'll have to get help in recovering Wubi, which is your actual question.20:11
rennat41Ah okay. That makes sense. Well thanks for the info.20:11
TheLordOfTimeyou're welcome.20:12
TheLordOfTimerennat41, ultimately, #ubuntu, or ubuntuforums.org or askubuntu.com, would be your best bet for getting help20:12
TheLordOfTimealthough on Ask Ubuntu, we tend to say "ALL WUBI MUST BURN!"20:12
TheLordOfTimebecause the veterans there (myself included) hate Wubi with a passion20:12
TheLordOfTimerennat41, also, let me make you aware...20:14
TheLordOfTimeUbuntu Server doesn't have a graphical interface.20:14
TheLordOfTimenon-server Ubuntu has the GUI.20:14
TheLordOfTimeso if you're using Ubuntu and it boots to a GUI it's nto Ubuntu Server.20:14
rennat41Yeah I thought so. Now I know!20:14
TheLordOfTimebut like all other Ubuntus, that's irrelevant...20:14
TheLordOfTimebecause server *packages* like LAMP or Apache, or nginx, or bind9, etc...20:14
TheLordOfTimecan all be installed on a standard Ubuntu desktop installation20:15
rennat41What is the better alternative to a Wubi install?20:15
TheLordOfTimedual boot installation direct to the hard drive, but you run the risk of your Windows exploding in the process20:15
TheLordOfTimesince Windows doesn't like its partitions changed.20:15
TheLordOfTime(because you have to resize Windows to make space for Ubuntu)20:15
rennat41I did change the partitions when I installed ubuntu20:15
TheLordOfTimeWubi is okayish for people who don't want to mess with their partition tables20:15
TheLordOfTimerennat41, not according to fdisk20:16
rennat41That's why I'm confused20:16
TheLordOfTimerennat41, how did you install Ubuntu in the first place20:16
TheLordOfTimewhen you first installed it, did you boot to the Live disk, or did you open the wubi.exe file from within Windows?20:16
rennat41I booted to the live disk20:16
rennat41I didn't even know about Wubi to be honest20:17
TheLordOfTimehmm20:17
TheLordOfTimerennat41, and the system seriously has a 2TB disk?20:17
rennat41Yes20:17
TheLordOfTimedid you upgrade Windows or something?20:17
rennat41Not recently20:17
TheLordOfTimebecause I don't see an ext partition which is necessary in your fdisk...20:17
TheLordOfTimeso this suggests that either your partition table is completely broken20:17
TheLordOfTimeand the ext partitions are just so damaged they're not retrievable or readable by fdisk...20:18
TheLordOfTimeor you never actually did a dual boot install and did Wubi20:18
TheLordOfTime(which is possible)20:18
rennat41I 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 files20:18
rennat41Both windows and Ubuntu had the same username so I got confused20:18
TheLordOfTimeit'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
TheLordOfTimeand if it's Wubi that's equally hard.20:19
rennat41So my guess is, all hope is lost20:19
TheLordOfTimerennat41, I personally always tell everyone this:20:19
TheLordOfTimeRULE #1: Always back up your data. ALWAYS.20:19
TheLordOfTimeRule #2: See rule #120:19
TheLordOfTimeRule #3: See rule #220:19
TheLordOfTimeRule #4: see rule #320:19
TheLordOfTimecardinal rule of all computers and servers: Always keep backups20:20
rennat41I know, I've been beating myself up all day for that20:20
rennat41I keep backups of windows and my mac, and never set it up for Ubuntu20:20
TheLordOfTimerennat41, 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
TheLordOfTimebut i have several servers and/or VPSes for that purpose, I'm atypical :p20:20
rennat41You're smart!20:21
* TheLordOfTime looks out the window.20:21
TheLordOfTimeehhhhhhhhhhhhhhhhhhhhhh....20:21
TheLordOfTimeit looks icy and slippery and crap out there...20:21
TheLordOfTimecrap, i have to go salt and shovel, back later...20:21
rennat41Alright, thanks again for the help!20:21
zertyuihello anyone ?20:29
zertyuii just installed apache220:29
zertyuiit works with sigle host but not virtual host20:30
zertyuiwhat to do ?20:30
GreatBaconzertyui did you check with #httpd about that yet?20:33
zertyuino20:33
zertyuilet me check that20:33
=== Ursinha_ is now known as Ursinha
adamjamesi 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:33
Ben64wifi on ubuntu server?21:38
adamjamesBen64: yes, not for internet, for playing with a sandisk wfd.21:40
adamjameshttp://www.sandisk.com/wfd/ it has webdav support...21:41
GreatBaconanyone 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:39
GreatBaconit's a new install / setup, not a production machine23:40
GreatBaconBueller......23:44
GreatBaconRuetobas, how is your comfort level with bind9?23:47

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!