[00:06] Hi I'm using Ubuntu 12.04 with xfce 4.8 as a GUI. What do I change my keyboard layout to, so if I press shift+3, I get a hash instead of a pound (english currency) symbol? [00:10] basil60: google changing your locale [00:10] my locale is correct I believe [00:12] mostly en_AU.utf-8 [00:13] I've got the change keyboard command...just not which option gives mu us international [00:14] http://dry.sailingissues.com/us-international-keyboard-layout.html [00:14] that's US international [00:15] I'd been on that site. Which is more appropriate - generic 102 key intl or 105 key? [00:15] or 104? === Malediction_ is now known as Malediction [00:45] Hi fixed my keyboard layout...but when I punch in my password now, it's not recognised. I wasn't running as root - just a normal user. How can I change my passwd to something recognisable under the new keyboard layout? Please? === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha === markthomas_away is now known as markthomas === markthomas is now known as markthomas_away === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha [07:03] What specifically makes a DNS server authoritative for a domain? [07:03] I'm trying to get set up a slave to zone transfer from my master following the Official Ubuntu Serve guide. [07:04] I can't get the zone to transfer and I get this message in syslog. [07:04] Mar 15 23:40:28 ubuntu5 named[760]: client 192.168.1.102#6962: received notify for zone 'wkmanire.net': not authoritative [07:05] Although the master DNS is resolving all of the sub domains for my network with no problems. [07:21] nevermind [07:21] I made a mistake [08:54] Good morning. === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha [11:03] Hi there. I have a cupple of servers on my net with 1000 Mb network interfaces and a few with 100 Mb. The speed between them is awfully slow, like 5K. Is it possible this to be caused by the differentspeed setting of the interfaces? [11:04] PeterGriffin: use ethtool to check what they're actually linked at [11:06] what in the output shows this [11:06] Do you mean the actual speed being set [11:07] PeterGriffin: sometimes auto-negotiation fails.. or silly things happen like it chooses half duplex [11:07] You should check duplex settings and MTU sizes, too. [11:07] PeterGriffin: just 'sudo ethtool eth0' [11:07] on a single flat layer 2 I would be surprised if MTU was an issue [11:08] you have to try really hard to screw that up [11:08] Or just play with "oh, wow, those jumbo frames sound cool." :) [11:12] can test network speed with iperf [11:12] could be application-level issue [11:12] this is the ethtool output on both sides of the problem http://pastebin.com/NBmACLhq [11:13] And how do you "test" the connection speed? [11:14] I showld mention that there are some switches and an optic between them, but the speed is bad only when connecting with the servers, not other Kubuntu desktops. [11:15] Well not very precisely actually. I send a bog file with netcat and monitorthe progress. [11:15] So you have to check all physical links, maybe there is somethjing odd. [11:16] big* file [11:17] but when I send a file using exactly the same route, but from my laptop, the speed is ok [11:17] doesn't this exclude the phisical links [11:18] No. [11:18] PeterGriffin: tracepath otherbox [11:18] Unless you connect your laptop to the same switch port as the "other" computer you are trying it with. [11:19] PeterGriffin: give iperf a try [11:23] bekks: I didn't use exactly the same port. What I did is I changed the whole switch, so I suppose the port wouldn't matter. I did this on both sides just to be sure. Only I had one extra switch so I was able to have a new switch only on one side at a time. [11:24] So use iperf for further investigations. [11:24] SpamapS: tracepath reaches the other end [11:24] PeterGriffin: with pmtu == 1500 ? [11:24] I will [11:24] SpamapS: yes [11:24] 1: 192.168.68.1 0.097ms pmtu 1500 [11:24] 1: 192.168.68.10 1.008ms reached [11:25] PeterGriffin: ok, -> iperf [11:25] these are the endpoints. The route does not show [11:25] iperf it is ... :) [11:26] being in the same network, no route is need. [11:26] *needed [11:30] I have never used iperf so I started the server and the client without options. It connects, but it does not showanything useful. [11:31] do I need to send a file throu it or something? [11:35] http://www.reddit.com/r/linux/comments/1maws6/checking_lan_transfer_speed_under_linux/ === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha [12:29] Ok. I did some learning and testing with ierf. I make the desktop server for iperf and start a connection from the ubuntu-servers as clients (both of them). When test UDP connection it is just fine. But when I start a TCP connection it fails. tcpdump shows that the iperf server sends ack for each packet, but the client recieves only a small part of them. So may be somewhere on the network they are lost and that makes the [12:29] connection fail. [14:45] PeterGriffin: I'd postulate that there is a bad cable, bad switch, switching loop, etc. [14:50] ok. I'll check again everything. Thanks for your help. [17:30] which folder should be used for storing data to be used freely by all users(or preferably sudoers) of system ? [17:30] raj__: I'm a fan of /srv, personally [17:31] el_seano: /srv.. what kind of files does that contain ? [17:31] raj__: nothing, out of the box [17:32] okay [17:32] later revisions of the FHS recommend using it as a place for data stored by services [17:32] e.g., ftp, http, whatever [17:32] i mainly want to store some bash scripts that are used by all sudoers.. [17:32] raj__: http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM [17:33] ah, probably simpler would be one of the */bin's [17:33] like /usr/share/bin [17:33] otherwise, just make a /srv/bin and ensure that it's added to the path of your skeleton file, set guid, etc [17:34] okay.. [17:35] one org I worked with actually pointedly didn't add our sysadmin team's script directory to our PATHs, largely with the thinking of "If you're going to be using the gun, you need to unlock the safe" [17:38] el_seano: hmm.. thanks for the pointers.. [17:38] sure [17:38] if you're not familiar with skel or guid, look at the man pages for chmod and useradd [18:29] how does the '-f' in 'bash -f script.sh' make a difference ? what is it for ? [19:22] can someone help me with an NFS mount problem i'm having with my server? I've tried everything i can think of. [19:23] cwiggs: Just state the problem then, please :) [19:23] the nfs mount works on all computers except one, and i don't see anything in the logs on either the client or the server [19:23] when i run mount.nfs in verbose mode it doesn't list anything, just hangs forever [19:24] i restarted nfsd on the server already [19:24] and checked the exports file [19:24] everything looks good, in fact, this server did mount fine until recently [19:24] i've done all updates as well [19:24] "mount.nfs" is an incomplete command, and please dont use enter as a punctuation sign. [19:24] okay [19:26] when i run mount -t nfs -v it outputs [19:26] "mount.nfs: timeout set for Sun Mar 16 12:27:43 2014" [19:26] "mount.nfs: trying text-based options 'vers=4,addr=192.168.1.2,clientaddr=192.168.1.7'"" [19:26] and now it just hangs there [19:26] nothing in syslog for the server or client [19:27] Which is an incomplete command. [19:27] You need to specify the share and the mountpoint. [19:27] "sudo mount -t nfs -v 192.168.1.2:/mnt/sdb1 /mnt/sdb1/" [19:27] i did [19:27] i just didn't type it here to save time [19:27] the command above is what i typed [19:28] Which did not save time at all. And DONT use enter as a punctuation sign. Please. [19:28] without the ""s of course [19:28] So is the server actually sharing that share, using NFS v4? [19:28] yes [19:28] yes.* [19:29] Like i said above, i have a few other computers that are accessing that share using NFS. [19:30] "/mnt/sdb1 192.168.1.0/24(rw,async,no_root_squash,nohide)" is what /etc/exports contains. [19:30] Thats a NFS v3 export line. [19:31] Mount it using NFS v3, not v4. [19:31] You're right, my mistake. [19:32] I can't remember the option for using v3 off the top of my head. [19:32] vers=3 [19:34] Thank you, that fixed it. [19:36] Does anyone know how to make autofs use nfsv3? [19:42] bekks: btw, thank you for your help. [19:57] do bash scripts need to have any extension like .sh.. I used .sh extension with my "bash scripts".. & now realised it .. should I remove the .sh extension from those files ? === markthomas_away is now known as markthomas [20:02] raj__: no, extensions aren't necessary on unix systems [20:02] just chmod +x, and a file is runnable [20:02] RoyK: thanks!! [20:03] with scripts, usually the first line contains something like '#!/bin/bash' which tells the shell which interpretor to use [20:09] RoyK: Thanks a lot !! when I use any extension like .sh the editors on my desktop identify the file as a script but without extension they have no clue, for that purposes if I keep any extension, what should it be ? .sh worked but mine is a bash file [20:12] there is nothing wrong with having a .sh or .bash extension. [20:20] jrwren: didn't say that - just said it wasn't mandatory ;) [20:21] RoyK: I was not attempting to correct you. ;] Just trying to help our raj__ [20:21] raj__: if run from the shell, it doesn't matter. it's not like on windows where files are run in different instances on behalf of their extensions [20:23] RoyK: yes I understood that.. Thank you very much! :) [20:23] jrwren: yes, I got that.. thanks jrwren !! :) [20:24] if only ubuntu had proper zfs support... === markthomas is now known as markthomas_away [20:34] why zfs? isn't btrfs supposed to be the future? [20:41] jrwren: yes, it's possibly the future, but it's been the future for a long time [20:41] jrwren: and I'd rather want something that works in the present === lfaraone_ is now known as lfaraone [21:21] $ rm "-home.hist" says: rm: invalid option -- 'h' Try `rm --help' for more information. [21:21] deleting the above file fails.. how do I delete the above file successfully .. ? [21:21] raj__: \- [21:21] \-home.hist [21:21] sheptard: trying out [21:21] sheptard : didn't work but acutually the actual file name is a bit more complex.. tried: rm \-home-raj-.history [21:21] sheptard , the actual file name is "-home-raj-.history", how could I remove ? [21:21] sheptard: sorry it was due to my mistake.. fixed!! === alexmoldovan1 is now known as alexmoldovan [21:29] when i give a space before writing a command in terminal.. it does not appear in history.. is that a way to skip history ??? [21:36] raj__: rm -- -home.hist [21:36] -- terminates the parsing of options === markthomas_away is now known as markthomas [21:50] hi guys, total noobie on the security front here. I'm running a simple ubuntu server, what precautions should I take? will a firewall suffice? [21:50] well, a firewall works [21:50] as long as you never make connections into or out of the server [21:50] might as well unplug it and get the same security [21:51] you have to worry about everything, any program that makes connections from pulling in something bad [21:51] miceiken: you haven't said anything about what you're doing with the server, or anything about the environment it's in. You can get some general rules-of-thumb that way, but it will be of limited use. [21:51] and anything listening for connections, doing something bad (like webservers) [21:52] and this assumes no one has console/ssh access [21:52] sorry markthomas, I'm renting a VPS - for now I'm running a few services, nothing major but I have a mail server, web server, an irc bouncer and stuff like that [21:52] I'm most worried about someone gaining control over my server [21:53] so every insecure thing you could locate :) [21:53] miceiken: is this system behind a firewall? Does it have local users besides yourself? [21:54] I am the only user, but the system has multiple users "running" different services. And no, no firewall. [21:56] miceiken: First, start with something like this: https://help.ubuntu.com/10.04/serverguide/firewall.html [21:57] miceiken: then, if this is a VPS, one of the most vulnerable attack points will be one you haven't mentioned yet: how are you logging into the system to administer it? SSH? [21:58] markthomas, yep, ssh with plain username/password auth [21:59] miceiken: that is where you need to start your security efforts. If someone compromises your account, that's a serious problem. [22:00] miceiken: Start with authentication. If you can, use a keypair for authentication and disable password logins. Of course, make sure root ssh is disabled for good measure, even if you have the root password "locked" [22:01] miceiken: then, look into an application called fail2ban. [22:01] keypair is what? private ssh keys? [22:01] miceiken: yes. man ssh-keygen [22:02] miceiken: just run ssh-keygen and then ssh-copy-id yourserver: [22:03] user@yourserver, perhaps, if you haven't setup ssh aliases [22:03] miceiken: one you've done that, you need to review the docs for every service you've listed. If this is running services you care about (i.e. you're running a business on this instance) then you'll want to get some help. [22:04] ah right, well no, it's only private use, I just want to take the basic measures to prevent anything [22:06] miceiken: It'll be a fun learning project. [22:06] RoyK: thanks for jumping in. I have to drop off for awhile. miceiken, have fun. [22:08] thanks for your help markthomas [22:08] RoyK, can I use sudo passwd -l to disable log in to a user account? [22:08] by disabling I mean login [22:16] miceiken: better google it - http://www.cyberciti.biz/faq/linux-disable-user-account-command/ was ok [22:17] miceiken: locking a user by changing the password won't disable her/him to login with ssh keys [22:17] okay, thanks [22:18] if I have 2 computers I want to access ssh from - do I make 2 seperate keys? or do I use the same? (I'm asking because of the username@HOST part) [22:18] you can use the same keys [22:18] ssh keys are just like any other cryptographic keys [22:19] I usually use a set of keys per machine [22:19] if one is stolen or otherwise lost, I don't need to change the keys for everything [22:20] a set of keys meaning a public and private key, the set that's generated with ssh-keygen === markthomas is now known as markthomas_away [22:34] how can I tell if it works though RoyK? [22:35] I set PasswordAuthentication to no in ssh_config but it still prompts me when I connect [22:40] duh sshD === pHcF_ is now known as pHcF === ABC-XYZ_ is now known as ABC-XYZ [22:43] thanks RoyK - got it all set up now