/srv/irclogs.ubuntu.com/2013/02/10/#ubuntu-server.txt

kermithas anyone ever connverted an existing badly mismanaged non dpkg based system to ubuntu by installing apt?00:57
qman__what?01:07
kermiti inherited 1000 gentoo systems01:08
qman__there's no such thing as 'converting' another system to ubuntu01:17
qman__apt only works because it manages everything01:17
SpamapSkermit: perhaps whoever left them to you should have taken them to the grave instead... :)01:17
qman__you can't just tack it on and expect anything to improve01:17
SpamapSkermit: you are going to be better off replacing the systems one by one with clean installs01:17
qman__portage isn't awful, but that assumes the previous maintainer stuck to portage01:18
qman__lots of people don't01:18
qman__so yes, the only solution is to replace it system by system01:18
SpamapSwith 1000 systems.. frankly even using apt is dicey without some kind of unifying configuration management01:19
qman__yeah01:19
qman__you need to put together your roles and standardize at the very least01:19
qman__even if you don't use a large scale software management solution, you need standard builds01:19
SpamapSIts just a nightmare if you have a problem and the answer isn't to just do a clean install and throw your usual tools at it.01:20
qman__right01:20
qman__you have to make those decisions up front in how you're going to do things01:21
qman__even if they're not ideal for each situation01:21
qman__I actually just put together the first version of a debian build we're going to use for our LaCie NASes at work01:22
qman__and we only have a couple hundred of them01:22
qman__took a couple weeks01:22
SpamapSqman__: "build" meaning something you can repeat with one command?01:24
qman__not quite but close, it's an image, we copy it to a flash drive01:24
qman__set up boot order, run a setup script01:24
SpamapS^5 yeah thats the way to scale out01:24
uvirtbotSpamapS: Error: "5" is not a valid command.01:24
qman__it auto configures raid based on the number of drives01:25
qman__auto installs our labtech agent for management01:25
qman__sets up hostname and mail and all01:25
qman__we have a bunch of lacies but it could really be used on any x86 device with evenly sized hard drives01:26
=== ErtanERBEK is now known as Guest93320
=== e-diablo_ is now known as ErtanERBEK
=== petersaints_ is now known as petersaints
verticalvoidanyone know why when i telnet into my database i'm using for my mail server that when i run the command "SELECT INBOX" Unable to open this mailbox, but I am able to SELECT INBOX.Sent ?02:35
patdk-lapthat doesn't make any sense02:43
patdk-lapyou can't telnet into a database02:43
patdk-lapsounds more like your telnetting into imap02:43
verticalvoidok, that's what i'm doing.  sure why not.03:32
verticalvoid*shrugs* i dunno.  first time attempting installing a homeserver and wanted to try to set up mail on it.  excuse me for improper use of terminology. :S03:33
verticalvoidbut, yes, i am using telnet localhost imap to get in there03:33
=== hatake is now known as blackjack
Kohelethanyone got a small transparent ubuntu server logo?11:52
=== fenris is now known as Guest52920
=== fenris is now known as Guest11938
=== hatake is now known as blackjack
=== yofel_ is now known as yofel
alimjQuestion: I need a file system that supports "Transparent Compression" to store lot's of text files. Inasmuch as EXT* won't do that, what is your recommendaton? Btrfs (Oracle) is still in beta phase, Reiser4 implementation appears to be complicated?!14:12
alimjOr possibly I have to forget compression at all?14:13
patdk-lapI only know of ywo things14:17
patdk-lapuse a fuse compression layer ontop of any fs14:18
patdk-lapor use zfs14:18
alimjpatdk-lap: Thanks. Will look into that14:18
=== fenris is now known as Guest64189
=== railsraider_ is now known as railsraider
alimjpatdk-lap: Checked both zfs and fuse. I am going with fuse. It appears that zfs has compliance issues with GPL. I wish that Kernel supported a native filesystem with transparent compression though. Thanks again16:06
JanCalimj: btrfs has transparent compression and is close to be considered stable16:29
JanCsome distros will use it by default soon...16:29
JanCdepends on how critical your use of it is, of course16:30
RoyKJanC: achem - "closte to be considered stable" is subjective16:45
RoyKalimj: there's a native port http://zfsonlinux.org/16:45
RoyKdunno how stable it is, though16:45
alimjJanC: Thanks. I was considering btrfs (mentioned in 1st message). However, since it is still in development (by Oracle), we have to wait16:46
RoyKzfs under fuse works ok, but write speeds tend to suck rather badly16:46
JanCRoyK: it's as subjective as considering ext4 stable  ;)16:46
RoyKJanC: no, it's not16:46
RoyKJanC: ext4 is used by thousands upon thousands of machines out there, whereas btrfs still changes the ondisk formats16:46
JanCext4 has been seeing lots of bugs16:47
RoyKJanC: btrfs is still on the bleeding edge16:47
RoyKwell, of course, there are bugs16:47
RoyKbut not comparible16:47
RoyKif you want to run btrfs, make sure you recompile kernel and btrfsprogs once a week or so16:47
JanCit's difficult to compare if you don't test servers with either of them16:48
RoyKif you ask for help on an issue, running ubuntu 12.10 or perhaps 12.04, they will ask you to install the latest bleeding-edge kernel/userspace from git16:48
RoyKJanC: well, I have 100+ servers on ext4 and a few test machines with btrfs. there are far more issues with those 3(?) btrfs machines than with the rest of the server park16:49
RoyKso I guess I can compare16:49
alimjOK, we currently have more than necessary good and reliable choices. I will use fuse until BtrFS is finalized ... :)16:49
RoyKalimj: I gues that'll happen somewhere around 201716:50
alimj!!!!!!!!!!!!16:50
JanCRoyK: well, that might be some good comparison point16:50
JanCRoyK: depending on how you use both  ☺16:50
RoyKraid-[56] support was announced some 3.5 years back and the first git tree with the code was announced a month back16:50
RoyKin btrfs16:50
RoyKand it doesnæt work too well16:51
JanCI wouldn't use RAID 5/6 with btrfs right now16:51
RoyKbtrfs development doesn't happen too quickly16:51
RoyKJanC: well, I've just tested it in a vm, was a bit curious16:51
JanCRoyK: I mean, I wouldn't use it in production16:52
RoyKJanC: I used to run some 100TiB zfs machines in my last job16:52
RoyKon openindiana16:52
RoyKif you need zfs, better use something like illumos or freebsd16:52
JanCwhat I mean is: some parts of btrfs might be stable enough for certain purposes16:52
RoyKJanC: sure, but how can you know which parts?16:53
RoyKit's a lottery16:53
JanCtesting  ☺16:53
RoyKbetter not use btrfs for something in production...16:53
RoyKuse ext4 or xfs16:54
JanCand obviously, things that have been tested by others might be a good indication16:54
JanCe.g. have a look at what SuSE will support16:55
patdk-lappersonally, I'm doing ext4 ontop of zfs volume16:55
patdk-lapso I get compression, without any ugly linux mess16:55
blackjackhy all18:12
blackjackI'm still confused with this topology, in my ubuntu server using 2 nic, one onboard headed to swith, the second nic toward mikrotik, mikrotik ip 192.168.1.2, http://postimage.org/image/91p7e8eyj/18:14
blackjacki want to make proxy squid mode bridge, can help my :(18:14
alimjblackjack: Do you mean that you require a transparent proxy?18:16
blackjackalimj, yeah right , can help my sir plz18:17
RoyKblackjack: squid won't bridge, it will proxy18:18
RoyKblackjack: to make your linux box a router, setup nat18:18
RoyKrouting+nat18:18
RoyKpretty easy18:18
blackjackRoyK, how to ?18:18
blackjackRoyK, im using mikrotik+ubuntuserver for proxy18:19
alimjblackjack: Let's clarify. What do you really want 1) Share internet 2) Share and cache content18:20
RoyKblackjack: tried googling that?18:20
blackjackalimj, number two share and cache content, i use squid/lusca18:21
blackjackRoyK, already sir18:21
RoyKhttp://bit.ly/UU4uJi18:21
blackjackalimj, and RoyK so far I only use 1 nic and now I'm going to try the method bridges, by using the 2 nic, but im confuse18:22
RoyKwhat are you trying to do?18:22
RoyKsingle nic to router and then another to your home lan?18:22
alimjblackjack: Then you require routing+nat+transparrent squid+ip tables. It is a long story. Not easy to say on IRC18:22
alimjRoyK: I think he wants to NAT but meanwhile, cache HTTP content.18:23
RoyKrouting is easy, nat is pretty easy (with iptables), transparent squid proxy is very easy (with iptables) after a quick google search18:24
blackjackalimj, yeah i now, before im using 1 nic, this http://images01.olx.co.id/ui/15/75/41/1319911088_270737441_2-JASA-SETTING-ROUTER-MIKROTIK-SQUID-EXTERNAL-PROXY-SERVER-Bisa-di-Set-Dari-jarak-Jauh-Pekan-Baru.jpg18:24
blackjacknow il try this http://postimage.org/image/91p7e8eyj/18:24
blackjackso ?18:25
RoyKoh, mikrotik - I guess you want to configure that router to use the squid proxy?18:25
RoyKor not18:25
RoyKjust saw that last image18:26
RoyKwell, first of all, configure the two NICs on different subnets18:26
RoyKsetup NAT18:26
RoyKsetup transparent proxying18:26
RoyKif you bridge, you wan't be able to control traffic that easily18:27
qman__you can do it as a bridge18:27
qman__http://freecode.com/articles/configuring-a-transparent-proxywebcache-in-a-bridge-using-squid-and-ebtables18:27
qman__it's not easy but it's doable18:27
RoyKas I said "not that easily"18:27
blackjackno, I use a mikrotik to share the bandwidth, and I'm using ubuntu server as a proxy18:28
RoyKand imho there's no point of bridging if you can use nat18:28
qman__reduced complexity, drop-in replacement18:28
blackjackqman__, RoyK alimj what the best, 1 nic or 2 nic18:28
RoyKblackjack: just setup a different ip subnet for the second nic18:29
RoyKenable nat18:29
alimjI would say NAT with 2 nics18:29
RoyKwhen that works, go further with transparent proxying18:29
blackjackhmm meaby i know18:29
alimjWith 1 nic, users can setup IPs manually and connect to your mikrotik directly (bypassing Squid entirly)18:30
RoyKif you have 10.10.10.0/24 on the wan side of that server, setup 10.10.11.0/24 on the other (or something)18:30
blackjackpic just example, this my config18:30
RoyKpastebin it18:31
blackjackhttp://dpaste.com/918731/18:33
RoyKblackjack: just drop the bridging18:35
alimjblackjack: It is already too late here. I have to go. Hope the others would help. Good luck18:35
RoyKblackjack: setup eth0 on 192.168.1.250 and eth1 on 192.168.2.250 (or something) and configure nat18:35
alimjRoyK: I think that he could mix these two solutions: http://www.cyberciti.biz/tips/linux-setup-transparent-proxy-squid-howto.html    &    http://codeghar.wordpress.com/2012/05/02/ubuntu-12-04-ipv4-nat-gateway-and-dhcp-server/18:38
blackjackRoyK, alimj i use this config http://dpaste.com/918734/18:38
blackjackon rc.local18:38
blackjackwhether this is true ?18:39
RoyKblackjack: and I would recommend against using a bridge - as alimj posted18:39
RoyKblackjack: anyway, using rc.local for configuring network isn't really a good idea18:39
RoyKbetter do it properly in /etc/network/interfaces18:40
alimjRoyK: It is too complex. Too much for IRC. Blackjack: Follow those two posts. 1st setup Nat mode and then setup transparent cache proxy for HTTP (Port 80)18:40
RoyKblackjack: really, get rid of that config in rc.local, and setup the two nics with addresses on different networks18:41
RoyKenable routing18:41
RoyKenable nat18:41
blackjackalimj, my My proxy is running, I just want to use the bridge method18:41
RoyKwhen that works, enable transparent proxy18:41
blackjackRoyK, ok18:41
alimjOK. Then I have to say goodbye and wish you all good luck :) See you18:42
RoyKnite, alimj18:42
blackjackthank you RoyK alimj :D18:42
mikerYeah, I need big help.18:46
mikerIt has to do with ubuntu server networking setup, I have a thread on Ubuntu Forums with more information.18:48
mikerhttp://ubuntuforums.org/showthread.php?p=1249749018:49
mikerIf someone could just look at that, and possibly help me or direct me to help. That'd be amazing.18:49
RoyKmiker: packet loss? does ifconfig report it?18:52
RoyKbtw, you should add a netmask to ifconfig18:52
RoyKor to /etc/network/interfaces18:53
mikerHow do I know if ifconfig reports it?18:53
RoyKpastebin ifconfig -a18:53
mikerOnce sec.18:54
RoyK!pastebinit18:55
ubottupastebinit is the command-line equivalent of !pastebin - Command output, or other text can be redirected to pastebinit, which then reports an URL containing the output - To use pastebinit, install the « pastebinit » package from a package manager - Simple usage: command | pastebinit -b http://paste.ubuntu.com18:55
mikerI'll add "netmask 255.255.255.0" then try it.18:55
RoyKit won't help your problem18:55
qman__honestly, it's probably a defect in the switch18:55
RoyKqman__: the ifconfig output from that post shows no bad packages18:56
mikerBut when I have it hooked up to my windows computer it works flawlessly no packet loss at all.18:56
qman__if you watch a tcpdump/wireshark capture and see a bunch of random garbage, that'll confirm it18:56
RoyKs/packages/packets/18:56
qman__oh, no errors/dropped?18:56
RoyKmonitoring the switch may help as well18:57
RoyKbut, miker, pastebin ifconfig -a first18:57
Sendoushibeen starting to use ubuntu and having some fun with it. Now i want to do a virtual machine for a home server. i'm a developer which wants to try out the development on my own network. Talking about LAMP and Node.js. Should I go with ubuntu or server or... even devian?19:00
RoyKdoesn't matter much19:00
RoyKdepends what you like19:00
Sendoushiwhat would be the main difference in your point of view?19:01
RoyKstarting out with a 12.04 server (or perhaps 12.10 if it's only for development) should do19:01
RoyKSendoushi: about the same difference as between blondes and brunettes19:01
qman__the difference is the default set of packages and the release schedule19:01
Sendoushieheh19:01
qman__you can do pretty much whatever you want with both19:01
Sendoushii don't know much about the linux terminal and such but... i guess i'll try a ubuntu server19:02
Sendoushiit doesnt hurt to try!19:02
RoyKnope19:02
Sendoushii already have a ubuntu desktop installed also19:02
qman__one thing you will quickly learn is that server applications are administered by the command line19:03
RoyKubuntu desktop is merely ubuntu server with a ton of X stuff19:03
qman__it's not that difficult though, don't let it scare you off19:04
Sendoushii kind of like the command line ehehe19:04
RoyKgood19:04
Sendoushijust get to get used to it19:04
RoyKit's got a rather steep learning curve, but once you know it, well, it makes things rather much easier19:05
qman__use the tab key19:05
qman__it is your friend19:05
Sendoushitab key?19:05
Sendoushiaaah ok ehehe19:05
Sendoushito get stuff already there :)19:05
Sendoushii use it on sublime text ehehe19:05
Sendoushior even c++19:05
qman__ubuntu has lots of tab completion built in by default19:06
qman__for more than just filse19:06
SpamapSsometimes its actually overzealous19:06
* RoyK uses RHEL at work and doesn't like it too muc, except it's very stable19:06
SpamapSLike I don't care that the file is called .foo I know its a tar..19:07
SpamapSRoyK: "stable" how?19:07
RoyKas in rock stable19:07
SpamapSif you mean it never changes and has tons of outdated software.. agreed.. very stable. :)19:08
RoyKof course19:08
RoyKbut if you only need samba or apache or some mysql or postgresql server, it's stable19:08
qman__I actually ran into a customer who was still using a redhat 7 server a few months back19:08
qman__they wanted me to restore some files from tape backup19:08
SpamapSRoyK: MySQL 5.1 is *way* less reliable than 5.5....19:08
RoyKagreed19:09
SpamapSRoyK: its slower, it breaks on more replication scenarios, and has a dangerous optimizer that chooses horrible query plans.19:09
RoyKbut then, I don't like mysql in the first place19:09
SpamapSRoyK: so yes, its predictably crap. :)19:09
mikerBut it did report the packet loss.19:09
RoyKwhat nic?19:10
mikerhttp://s9.postimage.org/4ljuzsw5b/IMG_20130210_130345.jpg19:10
mikereth019:10
RoyKwhat sort of nic, is what I meant19:10
miker"dropped: 43"19:10
mikerYou mean like speed or brand?19:10
RoyKmiker: pastebin is a bit better ;)19:10
RoyKbrand19:10
mikerYea I tried to pastebin it but it wouldn't uplead because of the packet loss.19:11
RoyKheh19:12
RoyKmiker: what distro version?19:12
miker12.1019:12
RoyKand what nic?19:13
qman__lspci | grep net19:13
mikerAnd I'm looking up the brand, it's just a built in one on a IBM xServe 33519:13
Sendoushihow many space (hard drive) do you think that the system needs?19:13
RoyKmiker: lshw19:13
RoyKpastebin that19:13
qman__Sendoushi, a stock install of ubuntu server takes approximately 1GB, though 2-4GB is going to be a lot more comfortable19:14
qman__if you intend to have files and stuff saved, bigger is always better19:14
Sendoushiok so... 4gb plus like... 2gb for files19:14
Sendoushisince it is only supposed to be server19:14
miker735Okay.19:20
miker735It's a Broadcom NetXtreme BCM5703X Gigabit card19:20
miker735And http://pastebin.ubuntu.com/1634045/ that's pastebin lshw19:21
Sendoushiinstaller is asking for partition disks19:26
Sendoushiwhat is this LVM thing?19:26
Sendoushiwhat should i use?19:26
mikerhttp://pastebin.ubuntu.com/1634069/ that's for ifconfig -a19:26
mikerWhat should I do?19:28
qman__have you tried different switch ports? also, if you can, watch the traffic from the switch's point of view19:30
mikerLet me try another port.19:31
mikerI don't think I can monitor it from my switch19:32
qman__Sendoushi, for a VM you probably don't need lvm, I'd just go manual and make one partition the full size of the virtual disk19:32
qman__miker, can you ping from the switch?19:32
Sendoushiwell gone for lvm19:32
Sendoushinow http proxy19:32
Sendoushishould i ignore this for now?19:32
qman__if you don't know, leave it blank19:32
Sendoushii think i need this http thing19:32
Sendoushiok then19:32
RoyKmiker: those broadcom NICs are rather infamous for their drivers19:34
RoyKbroadcom doesn't document their hardware openly, so unless you sign a badass NDA, you won't get access to them19:34
Sendoushidamn just installed lamp19:35
RoyKif you do, you can't write open source software19:35
mikerNew port doesn's help19:39
Sendoushiwhen they said "no gui" it was reallly no gui19:39
Sendoushiso... how does the ubuntu desktop just weights the same than ubuntu server?19:39
qman__what?19:40
miker 19:41
qman__miker, in that case, it's probably the NIC or the switch config19:41
qman__the problem with old cisco gear is that it's old, and they often have bad ports and stuff, but usually it's only a couple, otherwise nothing would work19:42
mikerWhat could I change? Because when I bring the switch up to my room it runs perfect, 0% packet loss.19:42
Sendoushihow can i get the pt keyboard layout??19:42
mikerAnd I use the same port in my room as I do for my server.19:42
mikerdpkg reconfigure keyboard19:43
qman__in that case I suspect the NIC or NIC driver in the server19:43
mikerBut when I connect my server straight to my router I get no packet loss.19:43
qman__yes19:44
mikerHow could it be the drivers then?19:44
qman__what I'm saying is, there's an incompatibility between your NIC or driver and that cisco switch19:44
unamiHi there. I'm configuring a Ubuntu server on an existing  network, and I was wondering if there was a good guide for configuring Postfix. I'm unsure about whether I need to be configured as an internet site, or a satellite. There is an existing smtp server that I would need to use for sending any mail.19:44
qman__if the switch has any VoIP features or STP on, I'd try turning those off19:45
qman__and any extra functionality beyond dumb switch, and see if it solves the issue19:45
qman__unami, if you are using an existing SMTP server, then you need either satellite system or internet site with smarthost19:46
qman__which depends on how you want to use postfix19:46
qman__if you only want local mail to get to the internet, smarthost19:46
qman__if you want to provide mailboxes for other systems and users, internet site19:46
qman__err19:46
qman__if you only want local mail to get to the internet, satellite19:46
qman__if you want to provide mailboxes for other systems and users, internet site with smarthost19:46
Sendoushidamn how will i know what layout of keyboard i have and how to get the right one?19:47
unamiqman__: This is helpful - thank you.19:48
mikerI'm not even sure if this switch has any special features like that.19:54
Sendoushinot getting the right keyboard setup :s19:57
=== Guest5473 is now known as scotty
Sendoushinot even getting the /20:01
Sendoushii'm accessing console-setup for the keyboard but not really changing a thing20:06
Sendoushibesides vim is there any easier text editor?20:25
maswanSendoushi: nano is often recommended for something easier to learn20:27
Sendoushihow can i nano?20:27
Sendoushidamn i dont get it keyboard layout was just fine and now restarted the machine and once again... on the wrong one20:27
Sendoushihow can i change display resolution?20:31
Sendoushiguys how can i access the cd?20:44
Sendoushiisn't there something like a dir from dos?20:44
Sendoushii need to get to the folder media inside the cd (i think it is there)20:45
_Andrei_what do you mean by cd ? Sendoushi , the comand line ?21:39
Sendoushialready solved21:40
Sendoushithanks21:40
Sendoushi:)21:40
_Andrei_oh yes change dir21:40
Sendoushialready installed apache also and now checking how to do stuff on this21:40
Sendoushilike... how can i connect to the ftp and such21:40
Sendoushior even dock it on my mac21:40
_Andrei_ok ;)21:40
Sendoushiideas on how to do this?21:40
Sendoushii'm using a vm21:40
Sendoushiips are different, tried to bridge already but... not really working21:41
Sendoushibut accessing the ip of the ubuntu machine... works so...21:41
_Andrei_you're on an apple vm on ubuntu ?21:41
Sendoushiapple vm21:42
_Andrei_i'm on Ubuntu actually but MacOS i don't really know how it works21:43
Sendoushii also would like to change the display resolution of the machine21:43
Sendoushinoe it is something around 1024x768 or something21:43
Sendoushibut i would like to have like 500x76821:43
_Andrei_have you asked some questions on #ubuntu channel ?21:44
Sendoushisomething like that. like a column so i can work on the other side you know?21:44
Sendoushii did21:44
Sendoushii tried21:44
_Andrei_hope you'll find out, got to go, sorry21:45
Sendoushino problemo cya21:46
Sendoushihow can i set a nfs folder on ubuntu server?21:56
Sendoushiubuntu server is inside a vm on mac and i want to access a folder inside ubuntu21:56
awatermahey all23:31
awatermaI wonder if anyone's seen issues with installing vmbuilder on 12.10? I can't seem to install that nor python-vmbuilder due to missing (and uninstallable) dependencies?23:32
SpamapSawaterma: uninstallable packages are a pretty serious (and usually easily fixed) bug. Perhaps report it?23:35
awatermaI've only seen it on this local machine, I run 12.10 on a server and don't have this problem.23:35
Patrickdkmake sure you run apt-get update first23:35
awatermaYeah, I've updated and upgraded all sources. No complaints.23:36
awatermaHowever, when I try and install python-vmbuilder I get:23:37
awatermaThe following packages have unmet dependencies: python-vm-builder : Depends: debootstrap (>= 1.0.9) but it is not installable23:38
awatermalaunchpad says it's available: https://launchpad.net/ubuntu/quantal/+source/vm-builder/0.12.4+bzr481-0ubuntu123:39
g16I thought that 0.12.4 < 1.0.9.23:40
g16oh, it's another package, my bad, please ignore my comment.23:40
awatermagot it.23:43
awatermaWorks if I update the mirror: http://packages.ubuntu.com/quantal/all/ubuntu-vm-builder/download23:43
awatermaNo fun running quantal on this old mac mini server. Nearly all working now, though.23:44
awatermaOne would think that "tasksel" would install a way to make vms for a server that handles virtual machines ....23:44

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