/srv/irclogs.ubuntu.com/2018/05/08/#ubuntu-server.txt

=== Guest74821 is now known as lauren
sancronHello fellows, i've struggled in a small problem with 18.04 Server. I want to setup a vServer and won't get netplan configured, because my Broadcast Adress is the same as my Gateway but this two are different from my assigned IP. Can someone point me how to setup manually broadcast adress on netplan?01:26
pankajI have set ssh server on my guest OS (ubuntu-server) but when I do 'ssh-copy-id hostname@IP address' I get 'permission denied (public key)'05:36
lordievaderGood morning06:09
lordievaderpankaj: Do you have access to the server?06:10
pankajlordievader: Sorry, for late response. Absolutely, I have access to server. I can ping to it.06:14
lordievaderI meant ssh access 😉06:14
lordievaderSee the man page, `ssh-copy-id` uses ssh to copy the key: https://linux.die.net/man/1/ssh-copy-id06:16
pankajlordievader: Yes, I can access it via my local account pssword.06:17
lordievaderAnd you  use that username for the copy command?06:17
lordievaderYou could also go the manual route (log in, add ~/.ssh/id_rsa.pub to ~/.ssh/authorized_keys)06:18
pankajlordievader: You are right but I was looking for a standard procedure that work in every case.06:21
pankajlordievader: I have googled it (although not got fully satisfied with their answers) what is the cause of such types of errors?06:21
fricklercoreycb: ya, saw the notification for that. will try to reproduce upstream, possibly my fix is still incomplete06:21
lordievaderpankaj: That depends, take a look at `/var/log/auth`.06:22
trekkie1701cOkay so I'm about at my wits end trying to get Ubuntu to reinstall on this server.  It doesn't have an internet connection.  Why does a several gigabyte ISO require me to choose a mirror to proceed through the install, and is there a way to bypass this?06:26
trekkie1701cGoogle says to unplug the network cable.  I've done that.  And disabled the NIC in the BIOS, and the installer complains that it can't find one, but still insists that I choose a mirror of the Ubuntu archive.06:29
pankajlordievader: I checked it. IN case of 'openssh-server' package it does not show any sign of error or failure.06:38
lordievaderAnd you have/had?06:39
pankajlordievader: Their is no error I see.06:42
pankajWhat is the most common reason for this type of error to occour?06:42
lordievaderThe systemlog (journalctl) may also contain hints as to why the permission is denied.06:58
trekkie1701cAlright, apparently my problem is that creating the thumbdrive with YUMI causes it to assume you want to do a netboot, regardless of the ISO.  Rufus and DD mode works.07:18
lordievaderThat sounds like a pretty dumb assumption -.-07:19
trekkie1701cYeah I was pretty upset about that.07:19
trekkie1701cAlso either Ubuntu 18 doesn't like my server's RAID setup, or one of these drives I got (or all of them!) isn't good.  It detected that a RAID existed, but didn't show a volume to install to.07:20
trekkie1701c16.04 does, but it's taking forever to get through paritioning.07:20
trekkie1701cThough no errors so it could also just be that I'm doing this on mechanical hard drives with software RAID, on a dual-core processor.07:21
lordievaderTime for some SMART checking?07:22
trekkie1701cIf this doesn't work, yeah.07:23
trekkie1701cIt's figured out there's 9TB though available and it's sitting at 80% on computing partitions so...07:25
trekkie1701cIf it does get to the point where the system is bootable I figure hammering it with restoring 3TB of backups will probably give the drives a good test too.07:25
rbasakahasenack: should nvml now be removed from ppa:canonical-server/nvdimm?08:16
=== Aztec03 is now known as Panoptes
Neo4what is means hostname and hostname -f?11:06
Neo4I do hostname kselax11:06
Neo4and in file /etc/hosts put this row11:06
Neo4ip kddkdk.kelax.ru kselax11:07
Neo4then when I type hostname -f I see kddkd.kselax.ru11:07
blackflowNeo4: if only there was a manpage for `hostname`11:08
Neo4I though in host was aliases11:08
Neo4blackflow: hostname -f - FQDN11:08
Neo4hostname simple hostname11:08
Neo4blackflow: there is man11:09
Neo4I don't know difference,11:09
Neo4hostname kselax.ru11:09
Neo4or better hostname kselax?11:09
Neo4and what does this row means in /etc/hosts11:09
Neo491.227.18.36 eeemail.kselax.ru kselax11:09
blackflow"hosts - static table lookup for hostnames"    it's a file that maps IP addresses to names. like DNS, but local to the machine, and consulted first by glibc, before a DNS request is made through resolvers.11:13
blackflowwhich means you can specify multiple names for one IP. it's intended to have the FQDN + aliases for it. in which case you should have something like this:11:13
blackflow91.227.18.36   eeemail.kselax.ru eeemail11:14
blackflowwhich specifies both the short hostname and FQDN for the IP11:14
blackflowyou can of course add just "kselax" too, but the standard practice is to have both FQDN and hostname always listed11:15
Neo4ok, that is alliases11:18
blackflowit's also the way "hostname" resolves its (FQ)DN via the IP11:18
blackflowby seeing the FQDN and short hostnname associated to it in hosts11:18
blackflow(thought I think it's glibc doing that)11:19
Neo4yes, syntax: IP hostname [aliases]11:19
Neo4I thought this all hostname11:19
Neo4one IP + [hostnames]11:19
Neo4where we specify hostname -f for our computer?11:20
Neo4hostname could be any, it doesn't matter11:20
Neo4using host?11:20
Neo4if I do hostname -f when /etc/hosts without aleases I got this11:21
Neo4pxe1.host-food.ru11:21
Neo4where is it placed?11:22
blackflowprobably rDNS which gets resolved because you don't have an entry in /etc/hosts, for your IP11:22
lordievaderYour nameservers also point to the host-food.ru domain.11:23
Neo4ok, do I must use /etc/hosts for change?11:25
Neo4and there exists a few IP 1.0.1.127 and 1.0.0.12711:26
Neo4127.0.0.1 and 127.0.1.111:26
Neo4127.0.1.1 means my network,11:37
Neo4if I put there my real IP address will my home webserver available over Internet?11:37
Neo4https://askubuntu.com/questions/754213/what-is-difference-between-localhost-address-127-0-0-1-and-127-0-1-111:37
blackflowthe entire 127.0.0.0/8 range is local to the host. putting a real ip address in /etc/hosts does not magically make the host available over internet.11:38
Neo4blackflow: why?11:39
Neo4I need customize router?11:39
Neo4blackflow: I did it using windows11:39
Neo4WAMP server, I forgot what I did, my server works, when user put there my ip he can see one page11:40
blackflowto make your (home) server available to the (public) internet, its IP address needs to be accessible from the (public) internet. If its IP is in a RFC private range, then you need to set up port forwarding on the WAN/LAN router.11:40
Neo4if there was DNS might they could have seen my server using domain11:41
Neo4blackflow: my IP dynamic, I can't do home server11:41
Neo4blackflow: it change always11:42
blackflowso if your server is 192.168.1.10, and your WAN address (router's public address) is, say, 1.2.3.4, then you need to map ports from 1.2.3.4 (Accessible from public internet), and thus do forwarding of packets, to your 192.168.1.10 (not accessible from public internet). this mapping is done on the (public, WAN facing) router.11:42
=== Chrywo is now known as Chryzo
blackflowit's also called NAT - Network Address Translation, in this case it's dNAT - destination NAT, as the packets need their dest address changed from public to private, as they cross the WAN -> LAN barrier.11:43
blackflowNeo4: there are services which can provide dynamic DNS for your dynamic IP.11:44
Neo4for free?11:45
blackflowthere used to be, I think DynDNS was one of them. I don't know whta's available today, I haven't done dynamic DNS in many years.11:45
Neo4I have 10Mb Internet speed11:46
blackflowNeo4: check your router. It's quite possible that your router already integrates iwth some dynamic DNS providers, and you only have to set that up with a username & password. Check the router's admin panel.11:46
lordievaderThe free 'domains' they offer are usually sub-domains. You need to pay if you want a regular domain.11:46
blackflowthat too.11:47
Neo4can't find router IP where admin page11:49
Neo4will check later11:49
blackflowNeo4: the gateway IP most likely11:50
Neo4I don't have gateway11:51
Neo4dlink modem11:51
Neo4it has ip where we can see admin page11:52
Neo4now find instruction11:52
blackflowyou don't have gateway? I bet you do, unless each of the computers in your network has a public IP directly11:52
blackflowNeo4: `ip route show`11:53
Neo4blackflow: this ip http://192.168.1.1/12:04
Neo4but I forgot password, have got ban for 180 seconds12:04
blackflowit's likely that, yes. but ip route show will tell you the default  (Gateway)  ip12:05
blackflow*default route via12:05
Neo4yes show default the same12:07
Neo4won't now customize, i need refresh modem for access to admin12:08
blackflowNeo4: chances are the username and password are written on a label on the bottom side of it, unless you changed that default.12:10
ahasenackrbasak: hm, yes (remove nvml from ppa), I thought I had done that already12:10
Neo4blackflow: there default admin admin, I changed and forgot12:11
coreycbfrickler: thanks12:13
Neo4not bad? :)12:26
Neo4https://mxtoolbox.com/domain/mail.kselax.ru/12:26
Neo4one black list, I have written to both12:26
Neo4spamhouse banned all network, might not removed my ip12:27
Neo4perfect web server )12:27
=== fginther` is now known as fginther
=== Chrywo is now known as Chryzo
=== freyes__ is now known as freyes
samba35since yesterday  (today ?)ram usage is quite hight on 18.0415:58
Neo4how I can edit files when write shell script?15:59
samba35it was around 2 gb by default boot now it about 5 gb15:59
Neo4I'm doing shell script that will install apache2 + php5.6 and this script should edit config files and put there variables15:59
samba35in ubuntu 18.04 or in 16.04.x (???) how we can make rc.local ?  /etc/rc.local is not working on 18.0416:00
Neo4this script should determine my server ip adress and add to /etc/apache2/apache2.conf in bottom row ServerName ip16:00
Neo4how to make this simple shell script?16:00
naccsamba35: how are you measuring? you want all your memory to be used16:01
Neo4open in vim and do it manually?16:01
Neo4I'm going to write shell scrip that will automatically install mail server and lamp without my interfering16:01
samba35nacc, free -h ksysguard show alomost same16:01
samba35Mem:           7.7G        4.9G        1.9G        162M        918M        2.4G16:02
samba35even i have not open a browser16:02
Neo4will start from simple sudo apt-get install apache2 and add phrase in bottom to file apache2.conf16:02
naccsamba35: how experienced of a sysadmin are you? asking because `free` is not a reasonable way to measure much of anything :)16:02
samba35i thought it was browser but i change firefox and chorme and idle it show same16:03
naccsamba35: you can look in top or htop and sort by memory usage (RES is most relevant, but you can sort by VIRT)16:03
samba35but i can check real time with ksysguard16:03
samba35cat /proc/meminfo16:04
samba35MemTotal:        8124804 kB16:04
samba35MemFree:         2012688 kB16:04
samba35MemAvailable:    2522028 kB16:04
naccsamba35: you didn't answer my original question. I've never used ksysguard.16:05
naccsamba35: have you read: https://www.linuxatemyram.com/16:05
naccsamba35: in an ideal world, your system is using all of your memory, if it can16:05
naccsamba35: idle memory is wasted memory16:05
samba35sorry i am trying to understand top16:06
samba35please wait16:07
samba35what is res and virt ?16:07
sdezielfree doesn't "measure" much but provides a good quick overview IMHO. I also find it easier to read than top's stats16:07
sdezielbut I fully agree that RES is the thing that needs to be looked at in top :)16:08
naccsamba35: Resident Set Size and Virtual Memory16:08
samba35thanks16:09
samba35how do i sort  memory usage or M or m ?16:10
nacc< > to switch sorting columns, default is CPU%16:10
naccso < < <  will sort by RES16:11
naccone more will sort by VIRT16:11
RoyKsamba35: can you pastebin the whole output of "free"?16:15
Neo4I have this, we can put in shell16:16
Neo4vim /etc/apache216:16
=== bspar_ is now known as bspar
Neo4and make16:16
Neo4read -p "you need put to this fiel this row Servername your_ip" answer;16:16
Neo4then in vim we can read all instruction that printed in console by ctrl+z16:17
samba35 4907 xxx  20   0 1738.9m 173.8m  94.3m S   0.0  2.2   0:04.63 Web Content16:17
Neo4and return back fg16:17
samba35web content has many entryeies and it hogging lot of ram16:17
Neo4after edit press exit from vim and shell will go on work16:17
Neo4nice alhorithm?16:17
Neo4I'm not going to copy past from instruction and input all commands, will use shell16:18
samba35ok16:18
samba35top plain or with some switch ?16:18
samba35top16:18
Neo4well, had better ask in #programming16:18
gabbomanHi, does the conjure-up thing works in ubuntu 18 04?16:27
samba35in ubuntu 18.04 or in 16.04.x (???) how we can make rc.local ?  /etc/rc.local is not working on 18.0416:28
gabboman@samba35 I think that's a systemd thing. As a quick and dirty fix why dont you create a script and execute it with crontab at @reboot ?16:29
samba35sorry i did not i understand crontab @reboot ? can you please explain16:32
trekkie1701cYou can set @reboot as a time in crontab and execute something on reboot.16:32
gabbomanyes. but I feel it's a little bit dirty to be honest16:33
gabboman(ok, really dirty, santa would put you on a list)16:33
trekkie1701cYeah you can usually set up things as services to execute at boot16:34
samba35honetly i am missing @reboot part can you please please explain16:34
trekkie1701cI think my only @reboot entry is a script that connects to my local IRC server to post a message saying the server was rebooted, etc, etc, sorry for the inconvenience16:34
gabbomanin crontab instead of writing the numbers of a date/time you put @reboot16:35
samba35is @reboot is command or script or a file ? or service ?16:36
trekkie1701chttps://en.wikipedia.org/wiki/Cron16:36
samba35ok thanks16:39
gabbomanyou can edit cron with the command crontab -e16:39
gabbomanits aper user thing, depending on what you wanna do you should use root or a regular user account16:40
gabbomana per user thing*16:40
trekkie1701cNever not run everything as root.16:40
samba35ok16:40
trekkie1701c(That was a joke, btw; best practice is to try and keep specific applications/services on their own user)16:41
samba35if i want to add ip tuntap add mode tap vport116:46
samba35 at startup how i should at at crontab16:46
gabbomanwell, that seems like a root thing16:47
gabbomanwhat are the commands you want to do?16:47
samba35i am "trying " to configure openvswitch and use some kind of interface for quest  (but i am not sure how it will work and crateing tuntap unterface it is not showing in virt-manger)16:49
samba35https://pastebin.com/Zb3x61Vx16:51
samba35but after reboot i have to manull enter16:52
samba35ip tuntap add mode tap vport216:52
gabbomanok then make this command: crontab -e16:55
gabbomanselect nano16:55
gabbomanand in the last line write16:55
gabboman@reboot ip tuntap add mode tap vport216:55
samba35ok  thank you !16:56
samba35gabboman, do you have any idea on kvm ,openvswitvh ?16:58
gabbomanbasic ideas with kvm to be honest16:59
gabbomanI use virt manager but thats it16:59
samba35same here i also use virt-manger ,i create openvswitch with tap interface and i want to add that tap interface in quest but virt-manger does not show tap interface17:00
samba35any idea how it can be done !17:00
gabbomannot at all sorry17:04
samba35no issue .sorry common man17:06
samba35sorry i should say17:06
samba35for asking too many thing :)17:07
samba35brb reboot and give try17:07
=== Panoptes is now known as Aztec03
Pinkamena_DHi All, Ive come upon a system where systemd seems to be having some issue. journalctl is not running and I get "no such interface" messages when trying to check the status of any service. Is there any package I can reinstall to try to fix this?20:56
Pinkamena_D(16.04)20:57
naccPinkamena_D: you mean journalctl doesnt run (it's a process not a service)21:03
naccPinkamena_D: can you pastebin the exact message and cmmand you tried?21:03
Pinkamena_Dwhat looks like happened is that someone installed upstart which messed up systemd21:04
naccPinkamena_D: that'd do it ...21:04
Pinkamena_DI have removed it but how can I get systemd back to the foreground?21:04
naccPinkamena_D: you removed or purged upstart?21:07
naccPinkamena_D: i *think* if you purged upstart, a reboot should allow systemd to start as init again21:07
ahasenacknacc: hey, what was the workaround for this error again:21:36
ahasenack  File "/snap/git-ubuntu/427/lib/python3.6/site-packages/gitubuntu/source_information.py", line 66, in derive_source_from_series21:36
ahasenack    raise ValueError("Unable to determine distribution from %s" % series)21:36
ahasenackValueError: Unable to determine distribution from cosmic21:36
ahasenackI thought there was a command-line option, but I can't find it, so maybe I was mistaken21:36
naccahasenack: rebuilding the snap with a newer distro_info :)21:43
ahasenackaha :)21:43
naccahasenack: it's currently at 0.17 and needs bumping to 0.1821:44
naccrbasak: --^21:44
naccwe should remember to do this more often :/21:44
ahasenackI don't think distro-info-data was updated yet21:45
ahasenackin bionic, that is21:45
ahasenackI'll check with rbasak tomorrow21:45
ahasenackthx21:46
* ahasenack -> eod21:46
naccit was21:47
naccboth bionic and cosmic are at 0.18 per rmadison21:47
naccbut we build from source (well dump from source)21:48
naccerr, no we do build it, sorry21:48
naccahasenack: i could do it, but i don't have access to store the tarball any longer21:48
=== giraffe is now known as Guest34373

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