=== lotus|i5 is now known as lotuspsychje
=== [1]MrMobius is now known as MrMobius
Phruiswhat is the windows 10 default font00:37
doug16kSegoe UI I think00:40
doug16kI don't think ubuntu has that font though00:42
PhruisI just downloaded tahcoma00:46
Phruistahoma i mean00:46
wawoweHi, what service is reverting my manually set ipv4 addresses back to nothing after I set them?00:49
OerHeksthere are some restricted fonts, https://help.ubuntu.com/community/RestrictedFormats/Microsoft_Fonts00:50
OerHekswawowe, i guess you. how do you set ipv4 manually?00:50
OerHeksdirecly into interfaces file?00:50
wawoweOerHeks, ifconfig interface ip00:51
wawoweOerHeks, after a minute or so it changes back to being unset00:52
OerHeksand what linux is this?00:53
wawowei have done 'service networking stop' but it still happens00:54
wawoweconnection is reset while trying to ftp over the interface00:54
sarnolddon't try to stop the networking service; you're just supposed to ifup and ifdown specific interfaces. trying to stop or restart networking will quite often just wedge the system solid, since upstart and systemd communicate via the networking..00:55
OerHekswhy not just set a profile in networkmanager?00:57
=== zenguy is now known as oii
=== oii is now known as zenguy
OerHeksif networkmanager is running, sure it reverses back to dhcp ( if not set custom networking)00:58
sarnoldwawowe: does ip addr show confirm that the ip is *removed*? connection reset is usually a different error00:58
eelstreboris there something going wrong with the internet? i'm using dns and it's real slow01:00
Phruiseelstrebor, yeah man my cat messed up the internet01:00
Phruiseelstrebor, spilled my cup of water all over the cable01:01
sarnoldmy ec2 instance can ping with about 6ms latency01:01
eelstreborthanks for the serious response01:01
eelstrebor1.0.0.1 is intermittent also01:02
sarnoldof course is going to be anycasted so if my packets went to a different instance than your packets, that doesn't prove much01:02
OerHekslolz cloudflare01:02
wawoweOerHeks, networkmanager is disabled01:02
eelstreborQuery time: 15 msec or no response at all01:03
wawoweI ran ifconfig with 'up' at the end. So far I still have connection01:03
giacowhaat would you use to deploy a private chat service on VPS for mobiles?01:03
OerHekssome issues, but no real problemshttps://www.cloudflarestatus.com/01:03
sarnoldgiaco: irc is the only service I remotely know, so that'd be what I would deploy..01:04
=== zbenjamin is now known as Guest91928
=== zbenjamin_ is now known as zbenjamin
giacosarnold: not really smartphone ready .... or not?01:08
* eelstrebor wonders if his isp is doing something to slow things down01:09
kenperkinsanyone had success with spotify in 19.04? I keep getting crashes at startup (deb not snap)01:09
sarnoldgiaco: I've heard good things about https://quasseldroid.info/ and https://weechat.org/about/interfaces/01:12
OerHekswe have no spotify deb package, so seek support by the owner/maintainer?01:17
OerHeksit is good we are limited to our own issues01:17
kenperkins@OerHeks hm. this page begs to differ: https://www.spotify.com/us/download/linux/01:17
kenperkinsregardless, the snap worked even though the deb didn't01:17
OerHeksso, thanks for bringing up a non issue.01:18
kenperkinsI was asking about a legit issue, the deb didn't work and I was looking for some guidance. i also tried the other option and it did work, that doesn't invalidate my question01:20
OerHeksi think you find No support for that deb package here01:21
kenperkinsah, you know what, I think i totally misunderstood you, and as a result, I misspoke01:21
kenperkinsfor some reason, they way you said "we" made me think you meant we, spotify, I'm so sorry.  you're right, that's a spotify issue, and my apologies01:22
OerHeksyou could check the version that deb installs, against the snap
OerHeks189,9 MB .. wowie..01:23
huggybear404 what command to spin up / down drives ?02:01
The_Letter_MIf I wanted to add the ppa https://launchpad.net/ubuntu/bionic/+package/mongodb how would I do it?02:04
OerHeksthat is a package, not an PPA02:05
The_Letter_MI kinda knew that. I'm trying to get the 32bit mongodb installed on my Raspi2 running hte Ubuntu Server image. I've been looking all over and this is the first repo I've been able to find with the right architecture02:10
The_Letter_MHow would I add the ppa using the correct info fromt he url? I mean even if it's the whole PPA?02:10
sarnoldhuggybear404: hdparm ought to be able to do it for many drives..02:14
sarnoldThe_Letter_M: apt install mongodb should do it02:15
OerHeksi find no official ppa02:15
OerHeksi hope there are arm builds?02:16
sarnoldohhhh I didn't notice that The_Letter_M wanted 32bit builds02:17
OerHekshuggybear404, all i remember is: eject && eject -t02:19
Joik2wwhello lads02:21
huggybear404eject drives ? nice idea, maybe with some dynamite to help it along ?02:21
lotuspsychjehuggybear404: volunteers are trying to help you here02:22
huggybear404pity I cant find any info on this, would be nice to have a bit raid with spare drives and be able to boot up the spares from another country02:22
huggybear404so I could restore it even when not home02:22
huggybear404guess that is a very obscure command02:23
huggybear404maybe reserved for special sysadmins that know the secret handshake ?02:23
Joik2wwI'm in crappy situation with kali linux :<02:24
lotuspsychjeyou can stop trolling now huggybear40402:24
Joik2wwI've done everything but still can't get GUI running02:24
OerHeksraid hotswap or something like that?02:24
huggybear404I also struggle getting reliable drives , the smart seems pretty bad , every drive use diff smart format and the program runs generic02:24
sarnoldhuggybear404: for the enclosures where hdparm doesn't work, this should do the job http://sg.danny.cz/sg/smp_utils.html  (in the smp-utils package)02:24
The_Letter_MYeah I was trying to find the armhf arch of MongoDB02:25
OerHeksJoik2ww, no support for kali, seek their channels?02:25
OerHeksThe_Letter_M, maybe on their builds? https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/02:25
Joik2wwOerHeks well those don't differ so much so why can't ask...02:26
huggybear404now I regret getting cheap drives, I fear they will soon die and I cant monitor bad smart data, since in their wisdom they use some bits to record errors and other bits in SAME field records sectors written, so the smart tells me my drive is dying with millions bad sectors while happily ignoring the bits that record the bad sectors so I guess I need to rewrite my own smart or make it somehow02:26
huggybear404anyone tryed to make smart read actual data decoding the drives in use ?02:27
The_Letter_MOerHeks: No. When I add their repo it doesn't have the packages. Mongo says they ONLY provide 64 versions and when I ooked through their repos manually the no longer have 32 arm packages anywhere02:28
sarnoldThe_Letter_M: if you have a big machine you can use to *crosscompile* the package, you could use apt source to download the sources, and modify these Architecture: lines: https://sources.debian.org/src/mongodb/1:3.4.18-2/debian/control/#L3902:28
sarnoldThe_Letter_M: .. I don't know how to cross-build debian packages but there's got to be a guide somewhere :)02:28
The_Letter_MYou don't need a heavy duty machine to cross compile02:29
sarnoldbut you probably need a machine that can do more than two gigabytes of address space to link this thing02:29
OerHeksi am sure your pi is 64 bit server capable02:29
sarnoldoh definitely check that first! I don't know pis well so assumed you knew it was 32bit02:30
The_Letter_MIt's a pi2. It's using a 32bit ARM processor02:31
The_Letter_Mthe pi3 and 4 that are 64bit02:31
OerHeksoh right, raspi 2 is the original risc arm02:32
OerHeksno, then you are stuck.02:34
huggybear404hm tryed google, cant find any spin command on either hdparm or smp, what is smp supposed to do ?  Do I need to build a relay thing to cut power to each drive and remote this ? Was hoping these days drives are smart enuff to have the spin up and down supported. I also wish all drives would use same format so I dont need to make my own smart translater and reprogram every time I order a new02:39
huggybear404drive model02:39
huggybear404would be sweet to have smart send email alert when a drive start redirecting sectors so I know when it starts fail before it damage any data02:40
huggybear404dreaming of a box that tells me what drives are good and if one start wear out, it emails "replace drive xx" and I could just send a command to have a spare drive take over then when im home again yank the bad drive and put a new in and it automatically takes over. Maybe this kinda thing is just for google datacenters using special os ?02:42
OerHeksi think it is controller dependent, maybe the #ubuntu-server guys or #debian have a clue02:44
huggybear404pity its soo hard to build a server that protects its data and tells me what drive or data gets corrupted , seems i end up with tons of desperate backups and I have no way of knowing which version of a file is corrupted. I dream of a server that checks each file and if one goes bad it should tell me what drive is going bad and restore good file automatic02:45
huggybear404I need to to all this in the controller ? seems areca is one of the most used ?02:46
huggybear404have some but I never figured out how to use their special software and drivers02:46
huggybear404I try ask in server02:46
=== akem__ is now known as akem
JimBuntuhuggybear404, we all dream of this, but outside of a system that runs full auditing to know when a user has interacted with a file, the best it could do is alert you to changes... unless the checksum/hash changes regularly without any changes to the modified on timestamp, then it can alert you to possible corruption.03:07
huggybear404yes im thinking sha1 or something checksums for all files and maybe a monthly scan to see if any file changed that should not have, but seems lot of work to make it work and automate03:32
huggybear404and where to put all the checksums ? maybe a a separate folder tree that mirror the real data is best  ?03:33
huggybear404anyone made any headway doing this any easyer ?03:33
huggybear404takes a while to play terabytes of mp3 f.ex to see if any got bad03:33
ryuohuggybear404: there's already technology for that. it's called ZFS, though it won't help much against intentional modifications.03:36
ryuoi guess snapshots could help there.03:37
huggybear404yes I read about jounaling filesystems but seems hard to make them alert me if a drive or file goes bad03:37
huggybear404most of the data is media that should never change so I was thinking make most of the volumes read only to the network03:38
ryuohuggybear404: ... ZFS isn't your regular filesystem...03:39
ryuoit has features most filesystems don't.03:39
ryuoeverything has checksums and can have redundant copies made for a chance to fix data corruption.03:39
ryuoall automatically.03:39
ryuoit comes with a form of RAID as part of the package.03:40
ryuoand i suppose also LVM too.03:40
ryuoincidently mdadm has no such guarantees.03:41
ryuohuggybear404: but what you're describing is already standard parts of ZFS.03:41
ryuozfs scrub? checks all data blocks for integrity.03:42
ryuocan be run as frequently as desired.03:42
ryuonow, the drawback is ZFS requires a fair amount of RAM for reasonable results.03:43
ryuoI run my ZFS server with 16G of ECC RAM.03:44
JimBuntuZFS is really cool and fills a lot of gaps, but I didn't think it was for the faint of hear or commoner yet. I guess I'm outdated03:44
ryuofunny, i thought you were describing BTRFS.03:44
JimBuntulolz, def not for everyone03:45
ryuoi hear far more often about BTRFS data loss than ZFS data loss.03:45
JimBuntuI would imagine so03:45
ryuoi'd just use BTRFS if i felt i could use it without a lot of headaches.03:45
JimBunturyuo, is ZFS in the normal repos? I only saw zfs-FUSE03:46
ryuowhere have you been? it's been part of the standard ubuntu kernel since 16.0403:46
huggybear404but will zfs scrub tell me if any file is bad ?03:46
JimBuntuAh, I'm on 16.04, thanks ryuo03:47
ryuohuggybear404: yes, at least as far as on disk silent corruption goes.03:47
ryuohuggybear404: it can't help with intentional data writes.03:47
ryuoincidently i almost never get inconsistencies in my scrubs.03:48
ryuoseems to be rare, but it can still happen.03:48
huggybear404hm I remember years ago I ran zfs and was impressed by it, seemed to stay intact even when fuses blew out the power03:48
huggybear404so sfs and raid is the way to go ? Im a bit scared of raid, if I mess up order of drives or more than 2 drives die then its all dead03:49
ryuoorder of drives isn't that important, honestly. it's mostly how they're grouped.03:49
JimBuntuwith a single drive, if 1 dies it's all gone03:50
SwedeMikehuggybear404: all modern raid have superblocks with unique identifiers per drive, so it'll figure out the correct order itself.03:50
huggybear404but a redundant server maybe with no raid should help, but need to automate backups when files get added etc03:50
ryuohuggybear404: well, ZFS helps a lot. it can do stuff that your conventional LVM + MDADM + filesystem layers cannot do.03:50
huggybear404so If I mess up the order of the plugs it finds out itself ?03:50
SwedeMikehuggybear404: correct.03:51
ryuoyes. i run a mirror ZFS at home. it works fine.03:51
huggybear404nice, but what is modern ? mdadm does this ?03:51
SwedeMikehuggybear404: both md-raid and zfs has superblocks and will figure out what drive needs to go where.03:51
huggybear404i have an old tired server I want replace now, need a new with faster bigger drives and I want even better data protection03:51
ryuoMDADM is software RAID but is not very sophisticated. It can't do much advanced stuff because it's not integrated with the filesystem layer.03:52
ryuoZFS is probably your best solution then if you got the hardware for it.03:52
huggybear404is there any goot program to scan for similar files ?03:52
ryuouh, that could be handled by ZFS deduplication at the block level.03:52
ryuobut that's VERY ram hungry.03:52
huggybear404would save tons time when comparing old backups to see what files are missing on the new drive and what files have changed03:53
ryuo... actually03:53
ryuoi think you might want to read about ZFS send/receive commands.03:53
ryuothat's one of the uses for iirc03:53
huggybear404zfs need special hardware ?03:53
ryuocan be used for incremental backups.03:53
ryuoNo, not really. It works with any 64 bit platform with enough RAM.03:54
ryuoECC is recommended but not required.03:54
huggybear404so it only stores whats changed ? thats nice, dont want overwrite what already is there correctly03:54
ryuoit can sync an external ZFS pool or w/e.03:55
ryuosending only what's changed.03:55
ryuoi figured that's what you meant?03:55
ryuootherwise i guess you could try mounting snapshots at different points and comparing the files there.03:55
ryuobut if this is something you want, you'll likely need to use snapshots.03:55
ryuothis lets you keep old copies of data around even if deleted, up to the snapshot point anyway.03:56
huggybear404hm that sounds promising, ill try read about these more03:56
huggybear404yes I want make sure even if a virus try wipe it all then it doesnt kill the backup03:57
huggybear404so if a file changes it should not overwite but store a new version with date03:57
ryuoand it also replaces the main use cases of LVM by providing its own filesystem setup.. it allocates from the overall pool.03:58
huggybear404whats lwn ?03:58
ryuoLogical Volume Management.03:58
huggybear404what should I start with to get this going ? seems theres years of research just to learn about this ?03:58
ryuonot really? there's guides for installing to ZFS on root.03:59
ryuoalmost everything is in man zfs or man zpool03:59
ryuothere's also #zfsonlinux for more serious questions.03:59
swift110hwy all04:00
huggybear404yes install zfs seems easy back then I just selected use it but to make it report bad files etc need a lot scipting and learning commands04:00
ryuohuggybear404: not that much? setup a cron or systemd timer job to run it periodically and put the report somewhere, email or something.04:00
huggybear404would be realy cool to have a nice hotswap rack as well, when  a drive goes bad just yank it and plug in a new one and its done04:00
huggybear404but seems hard, last I tryed replace a drive I was unable to make it accept the new drive coz the serial number didnt match i guess04:01
huggybear404should be muche easyer to tell the system that drive died, now use the new one instead04:02
huggybear404maybe this only exist in the billion $ datacenter systems ?04:02
ryuohotswap isn't always a priority.. depends how much you can afford some downtime to make the exchange.04:03
ryuoplus having to identify which drive is the problem from the exterior may be a challenge.04:03
OerHeksnot all sata controllers are hot swapable, with a "devices/pci0000:00/0000:00/ataX/hostY/scsi_host/hostY/scan something"04:04
huggybear404yes thats the main thing04:04
huggybear404not yank the wrong drive and kill the while rack forever04:04
ryuowell, if it worries you so much, you can use a whole lot of disks with a more fault tolerant RAID mode.04:04
huggybear404wish I had some nice leds to show status, like green for ok idle, yeallow working , and red for dead-replace04:05
huggybear404better than raid 6 ?04:05
huggybear404it takes 2 spare right ?04:05
ryuoThere's always RAID1 if you're ultra paranoid.04:05
ryuoIt can survive the most drive failures.04:05
huggybear404well I plan a full redundant backup server anyway so more like raid 6  + raid 104:06
ryuootherwise ZFS offers ZRAID1-3 or RAID10 emulation.04:06
huggybear404pity good areca controllers are soo pricy04:06
ryuowho needs hardware raid when you have zfs ;)04:07
huggybear404so mortgage the house to get a new one ? or try make it work with an old sata2 board ? hm04:07
ryuoI run ZFS in a cheap ass proliant.04:07
ryuothe older gen8 proliant ml10 v204:07
huggybear404speed isnt really that critical so the old will prob. still do the job04:07
ryuoI upgraded mine from the original RAM and put in a quad core CPU.04:08
huggybear404is there an easy way to get the red leds for bad drives ?04:08
huggybear404maybe try build my own but it will need programs to run it as well I guess04:09
ryuoMaybe, but i've only heard of that for rack mount servers.04:09
huggybear404maybe an arduino board and wired to the mdadm program ?04:09
ryuoone option? note the serial #s of your drives with your own labels.04:09
ryuothat would help a lot.04:09
huggybear404if drive failes turn on red light, blaring siren horn and email sysadmin ;=)04:10
ryuodon't overthink this if you don't actually need so much sophistication. drive failure isn't usually an everyday event unless you have a lot of servers.04:10
huggybear404why need 16 gb for zfs ? how I know how much I need ?04:10
ryuoWell. I'd ask in #zfsonlinux.04:11
huggybear404I tested with new server and 4 gb and it did run out of ram once so guess I might need more04:11
ryuo8G is what I originally used.04:11
huggybear404big drive ?04:11
OerHeksone needs 4gb+1gb, for all functions like blocktransfer04:11
ryuobut i put in another 8G so i could do more.04:11
ryuoi sometimes build software.04:11
ryuothat can get pretty RAM hungry too.04:11
huggybear404is it to keep the fat ?04:11
=== jmcgnh_ is now known as jmcgnh
TheSovis there any way to install ubuntu server without partitions?04:43
ryuoWhat? It's not possible to boot a system without a partition table. How could you install without partitions?04:44
elias_aTheSov: Do you mean installing on _one_ partition?04:50
TheSovelias_a, no i mean on no partitions at all05:57
TheSovI tried a differnt way i put a partition table on a small disk, and put /boot on that disk and im trying to put / on a partitionless disk but the ubuntu installer wont proceed05:59
ryuoTheSov: ... why?06:00
naribiahello, I'm formatting an external harddrive using Disks, it shows a spinning activity icon next to the drive, so im guessing it's busy, but i have no other information, how do I know if its busy or something else is wrong?06:01
ryuopartitionless disks are possible but, why?06:01
ryuothe amount of overhead of a partition table is neglible in this day and age.06:01
TheSovbecause partitions are prevent ease of expansion when using a GPT disk06:01
ryuouh... expansion? you mean changing their size later?06:02
TheSovI am fully automating the deployment of VM's06:02
TheSovthe size of the disk is unknown at this time06:02
ryuoOk... then use LVM.06:02
ryuothat's what it was created for.06:02
TheSovlvm has a max block size limit06:02
ryuoso does ext4.06:03
TheSovcorrection max size block transfer06:03
TheSovof 512k06:03
TheSovdirect ext4 does not06:03
ryuoand why does that matter?06:03
TheSovit interferes with the "iops" limiter of openstack06:04
ryuowell, what's stopping you from just making a single partition using the entire space?06:05
TheSovso my preference would be to have a disk with no partition on it at all so that on boot the ext4 can be resized online06:05
TheSovbecause when you expand a gpt disk, there is no utility on ubuntu right now that can be scripted to do it without manual intervention06:05
ryuouh... why would it need to be expanded? it's already at maximum capacity.06:05
TheSovfdisk cant do it at all, and parted freaks out and asks you to repair the disk06:06
TheSovno it isnt06:06
TheSovthe disk is size is not known06:06
OerHekswhy did livepatch not install this kernel vuln?06:06
OerHekswhat is actually the use of livepatch?06:06
ryuoTheSov: uh... sure? but if the disk has a partition table allocated for its size, that size never gets any bigger.06:06
ryuoTheSov: so, why would you need to expand it?06:06
TheSovthis is for a deployment image06:07
TheSovsince the image size is finite it doesnt have the true size of the disk06:07
ryuoso you'd what? dd the image to the drive?06:07
TheSovthe image is like 8 gigs but the deployed systems could have TB's of disk space06:07
ryuohow do you separate them then?06:07
TheSovtheir is a boot script that regens keys and such06:08
TheSovonly once06:08
TheSovit created a "i finished this already file" and never does it again06:08
ryuohow do you know where each begins and ends?06:08
ryuounless they just exist as files in the host filesystem?06:08
TheSovthe images are deployed to a ceph RBD06:08
TheSovwhich is individual to each system06:08
ryuoso what is each VM fed then? a block device? a disk image file?06:10
TheSovim other words the RBD is allocated, the image is DD'd on that RBD and then KVM kicks off the VM using the RBD as its primary disk, that disk could literally be any size06:10
ryuoit sounded untenable from what i understand.06:10
TheSovso i need to vm once run to expand its disk to the size of the rbd at first boot06:11
ryuowhat is RBD even...06:11
TheSovits like an iscsi target06:11
ryuoand this is your alternative to LVM?06:11
ryuoeh. anyway.06:12
TheSovhmmm how to describe.... imagine i could tell a manger system i want a /dev/sdX device of this size and it carves it out of a san and maps it to the local system06:12
ryuoso where is the host's root filesystem then?06:13
TheSovon its own disk06:13
TheSovthe RBD is basically a SAN its not local to the server it just behaves that way06:13
ryuoso what's the issue? it sounds like it should install normally.06:13
ryuoi assumed the host would get a regular setup with this fancy stuff reserved for guests.06:14
TheSovthe issue is that the VM has a "disk" in it, and when its deployed on the RBD its disk size is whatever the image inside says it is06:14
ryuoso how is this related to installing ubuntu...? as a guest?06:14
TheSovso i can create the image06:14
TheSovoh i see the confusion06:15
TheSovyes im installing ubuntu as a guest as a template for the image im building06:15
ryuo... yes, i assumed you were talking of installing to the host.06:15
TheSovi would to install it without a partition06:15
ryuosounds doable, but i don't think it fits inside the guided installer.06:15
=== pabed1 is now known as pabed
ryuoyou may have to use anothr method.06:16
TheSovahh i see06:16
ryuosame way you setup zfs on root i presume...06:16
ryuosee debootstrap.06:16
ryuowith a bit of effort you can do a manual install.06:16
ryuoit should support almost any scenario that the system will tolerate.06:17
ryuonot to mention debootstrap is more amenable to automation...06:17
TheSovthank you I will look into it!06:19
tomreynTheSov: https://unix.stackexchange.com/a/516806:19
TheSovworry not tomreyn i know that KVM will boot a disk without a partition, but the ubuntu installer wont cooperate06:21
tomreynbut current grub is really too large to fit, which means you need a separate biosgrub storage already then, and embedding it is and always has been 'a hack'06:21
tomreynTheSov: kvm booting in bios mode then, i guess, which i assume will be replaced by kvm + omvf sooner or later, which then probably reintroduces the issue06:22
TheSovby then I will come up with something else i doubt KVM will remove that functionality anytime soon06:23
tomreynprobably not, it's just that expectatrions against a public cloud may be "uefi" in the future. but maybe this is not public at all.06:24
TheSovit is not06:24
tomreynlucky you ;)06:25
TheSovinternal openstack environment06:26
TheSovwell we also use ubuntu server bare metal for our ceph storage06:28
tomreyn/join #ubuntu-server06:29
=== jje_ is now known as jje
Industrial I have a dell laptop. I have loaded and am using the i915 driver.07:16
IndustrialCan I use the nvidia driver instead?07:16
IndustrialI want to use Vulkan technology to play a game using Lutris07:16
IndustrialI have no clue if the i915 driver supports this :)07:17
IndustrialIntel Corporation UHD Graphics 620 (rev 07)07:18
Industrial`sudo ubuntu-drivers list` rturns nothing07:20
pantatohow does one apply a patch properly from apt-src? i'm only seeing instruction on patching for the git version07:21
Industrialoh Vulkan is supported on 620 ,nice :-)07:23
mgedminpantato: mkdir ~/src/apt-sources && cd $_ && apt source somepackage && cd somepackage-* && patch -p1 < your.patch && dpkg-source --commit07:23
mgedminpantato: dpkg-source will ask a bunch of questions interactively and create a debian/patches/<name-of-patch>, add it to debian/patches/series, and open an editor for you to write some metadata07:24
mgedminpantato: then you can build the patched package with debuild07:25
pantatothank you07:26
mgedminpantato: btw instead of apt source you can use pull-lp-source somepackage distrocodename, then you don't need actual deb-src lines in your /etc/apt/sources.list07:28
mgedmin(the downside is you can't use apt build-dep without deb-src lines, which is _very annoying_)07:28
pantatomgedmin: not sure what this means: dpkg-source: info: 'dpkg-source --commit' is not supported by the source format '1.0'07:41
tomreynIndustrial: not sure that's obvious, but: the i915 driver / kernel module is for intel graphics (those embedded into the CPU) whereas the nvidia driver / module is for (separate) nvidia chipsets.07:44
mgedminso, my earlier instructions were missing a step: before a debuild do a dch -i to create a new entry in debian/changelog where you can describe your changes and update the version number to something like <upstream-ver>-<ubuntu-ver>-<your-suffix>07:44
pantatoi also wanna clarify that i'm not trying to commit the patch anywhere, i just want to compile it for my local system07:45
mgedminas for source format 1.0, well, this means this particular package doesn't support debian/patches/ etc. and so just skip the dpkg-source --commit step and do a build07:45
pantatohttps://passthroughpo.st/patch-kernel-debian/ i think this guide is the one that i needed, i just needed to change a few more of the trust checks to =n07:46
tomreynIndustrial: "ubuntu-drivers list" only enables you to install proprietary drivers (where needed / supported), such as nvidia's. open source drivers, which can also work well, will just work out of the box.07:46
mgedminpantato: the debian new maintainers guide is a good source on debian source package formats, if you're curious and have time: https://www.debian.org/doc/manuals/maint-guide07:47
ws2k3im trying to upgrade mysql 5.6 to mysql 5.7 on ubuntu 14.04. since the mysql repo packages are broken im trying to upgrade it using .deb files. but im not entirely sure what im doing wrong. https://pastebin.com/YyFDSw7s08:02
lotuspsychjews2k3: how many times do we have to tell you 14.04 is eol?08:06
ws2k3lotuspsychje:  howmany times i already told you this doesnt change anything. does the eol cause apt to not work propperly anymore?08:07
OerHeksws2k3, indeed, no packages, no updates, no support08:07
ws2k3not true. i can run apt-get update;apt-get upgrade just fine works perfectly08:08
ws2k3OerHeks: but this is upgrading using .deb files not apt-get update;apt-get upgrade08:08
OerHeksws2k3, join ##linux for that, no support here, you seem to have issues we do not fix\08:09
ws2k3i dont need you to fix it. but advise never hurts08:09
ws2k3ubuntu 14.04 is ubuntu right?08:10
OerHeksno, 'was' a supported ubuntu08:10
ws2k3OerHeks: wrong. its still ubuntu. it will allways be ubuntu. that its not a supported ubuntu ur right on that. but thats not relevant08:11
OerHekspast tense08:11
ws2k3supported or not doesnt change anything about how 14.04 works.08:12
tomreynws2k3: the ubuntu versions supported on this irc channel are listedon the channel topic. please don't ask for support for unsupported past releases here.08:12
ws2k3tomreyn: k. anyone else got ideas?08:14
tomreynws2k3: you're still asking on the same channel08:15
talinhello. i want to put set a network interface into promiscuous mode, permanently. e.g. "ifconfig eth0 promiscuous". what config file can i set this in?08:17
tomreyntalin: hi, which ubuntu version is this?08:17
talintomreyn: 18.0408:19
tomreyntalin: and is this a desktop or server?08:21
mgedmin(the reason for these quesions is because we're trying to determine if your network is managed by ifupdown, systemd-networkd, or NetworkManager)08:22
doug16kseems ubuntu isn't auto-mounting an ext4 formatted usb flash drive automatically in /media/$USER/something. is that expected?08:23
talintomreyn: this is a server08:23
tomreyntalin: by default, 18.04 LTS would use persistent network interface names (you have apparently reverted to the previous naming scheme), and system-networkd managed through netplan on a server. the dedicated server support channel is #ubuntu-server08:24
doug16kI had to explicitly `mount` it08:24
talintomreyn: oops, sorry. the real name is enp59s0f108:25
mgedmindoug16k: hmm, automounting should be possible08:27
mgedmindoug16k: do you see the usb flash drive in nautilus?  does it mount if you click on it?08:28
doug16kya I figured it would, because external USB hard drive enclosures do it08:28
tomreyntalin: https://askubuntu.com/a/1037955 discusses an approach which may work, using a hook script, but this post is from more than a year ago and i don't know whether that is the 'right' way to do it in systemd-networkd land08:29
doug16kit's not appearing in nautilus08:29
tomreyntalin: i suggest you re-ask in #ubuntu-server, maybe repeated your question there another day if you can't get help today.08:31
mgedminsurely creating scripts in /usr/lib/networkd-dispatcher is wrong, sysadmin-created stuff should go in /etc/ ...08:31
mgedmintalin: https://wiki.archlinux.org/index.php/Network_configuration#Promiscuous_mode might be helpful!08:32
mgedminignore that it's from the ArchLinux wiki, systemd-networkd is the same on Ubuntu08:32
tomreynhmm nice suggestion there mgedmin08:33
mgedminhuh, this one doesn't even rely on networkd08:33
GerasHi all. Which browser is good for ubuntu that i can configure i2p on? except clearnet firefox and tor browser08:34
doug16kmgedmin, ah, nevermind. I think this flash drive is dying. suddenly it does pop up and I get "an operation is already pending" alert dialog08:34
doug16ks/pop up/appear in nautilus/08:35
Gerasanyone know? :)08:36
mgedmindoug16k: any errors in dmesg?08:36
tomreynGeras: any web browser which can use http and https proxies should techically work08:36
* mgedmin has no idea what i2p is08:36
Gerasany recommended one except clearnet firefox adn tor browser?08:37
lyrHi all08:38
OerHekschromium browser perhaps?08:39
Geraswhat about this Palemoon?08:39
OerHeksthere is opera, not in our repos.. maybe edge-for-linux08:39
OerHeks what about this Palemoon?\08:39
lyrI've a weird and madening issue : hiting "Ctrl" keep zooming in in Firefox and Tilix (a quake like terminal). I had to lock Firefox zoom (min zoom / max zoom = 100% in about:configs, and switch to gnome terminal which doesn't seems to have this issue. Any troubleshooting way or fix idea is welcome08:39
OerHeksyou tell us?08:39
Gerasim asking you08:40
OerHeks what about this Palemoon? is not a complete question i can understand08:40
doug16kmgedmin, repeated variations of "JBD2: Failed to read block at offset 2245" and "JBD2: IO error -5 recovering block 2245 in log"08:40
Geraslol. im talking about the browser for i2p configuration08:40
Gerasif palemoon is good for that08:41
mgedminlyr: ctrl+mouse wheel is for zooming, and I had unexpected zooms due to mouse whell inertia ("kinetic scrolling") when I pressed Ctrl too soon after I stopped scrolling08:41
mgedmindoug16k: yeah ouch08:41
OerHeks!find palemoon08:42
ubottuFound: W:, W:, W:, W:, W:, W:, W:, W:, W:, W: (and 381 others) http://packages.ubuntu.com/search?keywords=palemoon&searchon=names&suite=bionic&section=all08:42
OerHeksseems like palemoon is not in our repos08:42
Gerasso i guess chromium then08:43
lyrmgdemin: I ruled out this one (removed mouse)08:43
lyras well as behing very careful typing like my grandma to avoid hitting anything unrequired08:44
doug16ksandisk.boycott=1, kingston.fanboy=108:46
mgedminlyr: do you see any weird events in xev?08:46
lyrTons of ButtonRelease event08:47
lyrGooglin' to find which key seems involved08:48
lyrWeird, I've no keycode08:50
lyrmgedmin: do you understand this output ? https://gist.github.com/rgarrigue/1b68320428f7d69916482816554dd0d208:51
ghost2911hello. somebody knows how to set env variables on ubuntu 12 in that way ? systemctl set-environment MYSQLD_OPTS="--skip-grant-tables08:53
ws2k3turn out the package from ubuntu 14.04 WHICH IS EOL is not the same package as the package from mysql repo . so all i needed to do is remove mysql entirely. and then dpkg -i *.deb so its all working now. thanks for the great help. oh wait.08:54
mgedminlyr button 6 is used for mouse wheel scrolling08:55
mgedminlyr: there are pairs of ButtonPress/ButtonRelease events08:55
mgedminlyr: find the bluetooth mouse you have fallen down behind the desk with the wheel wedged into the scroll-left position ;)08:56
mgedminbuttons 4/5 are wheel scroll up/down, 6/7 are wheel scroll left/right08:56
mgedminsadly xev doesn't tell which mouse device sent the event08:56
lyrfor my culture, how / where do you get this info ?08:56
mgedminxinput can list all mouse devices known to the system08:56
mgedminI've been a linux user since 1998?  I've read a lot of blog posts/howtos/etc.?  I remember when mouse wheels were a new invention08:58
mgedminbutton 6, wow, I didn't know firefox supported ctrl-zooming with the horizontal wheel too08:58
mgedminbut it explains why you don't see pages scrolling incessantly -- they're already at the left edge and there's nowhere to scroll more08:58
lyroooh'kay, I've been using linux since 2009 and never had to fight that much with desktop & x11 (cowardly ran is the right word tbh)09:00
lyrhell, now it stopped ?...09:00
lyrand my mouse don't have an horizontal scrolling09:00
lyrguess I'll further debug it when it start running amok again09:01
lyrthanks a lot mgedmin :-)09:04
zambahow can i limit the number of logins over ssh for a specific user?10:26
ducassezamba: https://superuser.com/questions/188529/restrict-number-of-ssh-connections-by-user-name-or-ip10:39
tomreyncombine this with a Match section10:43
silv3r_m00nhi, i am using ffmpeg to remove logo from a video, i remember there was an option that would play the video in a popup video as it is processed, what was that option ?11:07
zmagiisup guys11:09
tomreynsilv3r_m00n: i *think* there's an ffmpeg channel around here, maybe ask there instead. i'm not used to ffmpeg doing play back, though.11:10
zambaducasse: no, maxsessions is not the same11:11
zambaducasse: maxsessions just states how many sessions a single tcp stream can have11:11
tomreynsilv3r_m00n: oh there's ffplay for playback, so i take this part back11:12
zambaducasse: meaning, how many different sessions (sftp +) you can have on top of a single ssh session11:12
zambaducasse: i've seen stuff about limits.conf, but that doesn't stick11:12
zamba# ps uaxw | grep <username> | grep sshd | grep -v root | wc -l ; returns 11 hits11:13
zambaeven though i've set maxsessions to 4 for that user11:13
zambaand also i have added <username> - maxlogins 4 to /etc/security/limits.conf11:13
zamba/etc/ssh/sshd_config is also set to usepam11:13
zmagiisilv3r_m00n: i don't see such an option in the manpage for ffmpeg11:14
silv3r_m00nzmagii: the delogo thing has a show option which shows the video and the rectangle11:14
silv3r_m00nzmagii: https://ffmpeg.org/ffmpeg-filters.html11:15
silv3r_m00nbut i cant get it to work11:15
zmagiiso why don't you just crop the output?11:17
=== BrianG61UK_ is now known as BrianG61UK
lisa_Hey there! I want to underclock my device using cpufrequtils.12:07
lisa_When I try to set "cpufreq-set -u 2.20 GHz -r" as root it gives me an error.12:08
lisa_any help?12:08
mceierI'm guessing - try 2.20GHz without space12:10
lisa_mceier: wow that worked, thanks!12:15
lisa_the obvious thing is sometimes the hardest to see12:16
lisa_weird because the output from cpufreq-info DID have the space... what's the default in unix between floats and unix?12:17
MudchainsHello, I am migrating ubuntu servers from hyper v to vmware. At one server I am not able to fix boot disk. I deleted the /boot partition in gparted (live cd ubuntu). When I try to do grub-install /dev/sda I am getting a error "failed to get canonical path of /cow"12:18
mgedminlisa_: I suspect cpufreq-set -u "2.20 GHz" -r would also work12:19
lotuspsychjecome join to #ubuntu-server Mudchains12:19
mgedmincommand-line arguments are split on spaces, so when you need a space in the middle of an argument, you need to quote it12:19
Mudchainsthansk lotuspsychje12:19
lisa_makes sense, mgedmin! thanks12:19
mgedminI don't think there's any difference in fixing grub on a server vs fixing grub on a desktop?12:20
mgedminMudchains: have you booted into a live session?12:20
Mudchainsmgedmin yes12:20
mgedminMudchains: I would usually chroot into the actual system before running grub-install12:21
mgedmin(you'll also need to mount /proc and /sys, and bind-mount /dev from the live session)12:21
mgedminah, the chroot is optional if you use grub-install --boot-directory=/mnt/boot: https://help.ubuntu.com/community/Grub2/Installing#via_the_LiveCD_terminal12:23
Mudchainsmgedmin I tried that (mounting /proc etc, chroot) but then in the chroot session I get the same cow error again12:24
MudchainsI will try grub-install --boot-directory=/mnt/boot now12:24
mgedmindon't forget to mount the actual (non-live) system on /mnt and its boot partition on /mnt/boot first12:25
Mudchainsthe grub-install --boot-directory=/mnt/boot gave no error :)  I am restarting the server now to check it out12:28
Mudchainsmgedmin no pxe load screen but a blinking lower dash now :)12:30
mgedminoh hey if you wiped your boot partition then you don't have a valid grub.cfg12:31
mgedminyou'll need to boot into a livecd, mount the system and its boot, then chroot and run update-grub to generate one12:31
BluesKajHey folks12:31
mgedminwith proper root filesystem UUID and matching kernel versions12:31
Mudchainsyes I already fixed the UUID in /etc/fstab12:32
mgedminalso, if /boot/ was wiped then you don't have a kernel image, so you'll have to apt-get install --reinstall linux-image-X.Y.Z for whatever version you had12:32
mgedmin(which will run update-grub as a side effect)12:32
Mudchainsthe original server is still alive, how can I see the active kernel version?12:32
mgedminuname -r12:33
Mudchainsthanks :)12:34
mgedminuh, how are you booted into a livecd and how are you mounting its partitions if the server is still aliv?12:34
mgedminthat's a recipe for massive data corruption12:34
Mudchainsthe new VM is on new hardware (but network doesnt work) and old vm is still active on old hardware :)12:35
mgedminah, a copy of the image, of course, VMs12:35
mgedminalso you can see the names of installed kernel packages with dpkg -l linux-image*12:35
Mudchainsmgedmin must I chroot into the boot mount of system mount?12:35
mgedminthe ones that have 'ii' in the first two columns are the installed ones12:35
mgedminyou need to chroot into the system image so you can apt install stuff in there; the system image needs at least / and /boot and /var and /lib and /usr (but I expect /var and /lib and /usr to be in the same partition as /)12:36
MudchainsThanks mgedmin I will try it out!12:39
Mudchainsmgedmin I am pulling over a new image of the VM (so /boot is not deleted) ;)  and try to fix it with grub-install --boot-directory=/mnt/boot  :)  keep you posted.12:46
ace_meI want a process run faster so nice --15 should be used isn't it ?12:50
theantzI just noticed that one of my 16.04 servers more recent installed kernels are linux-image-unsigned instead of linux-image. Is this a bugfix for something? Google found nothing.13:00
Mudchainsmgedmin still blinking dash unfortunally13:01
theantzExcept there was a bug sometime last year which required the unsigned package to fix. Should I just switch back?13:02
flog    15513:03
mgedminMudchains: can you at least get into the grub boot menu?13:04
Mudchainsmgedmin how can I do that?13:04
MudchainsI am now in live cd session to checkout the menu.lst13:05
mgedminuh, menu.lst is grub 1?  grub 2 uses grub.cfg13:05
Mudchainsah didnt know that13:06
Mudchainsmgedmin how I enter the menu?13:06
mgedminhold down shift during boot?  or press esc at the right moment?13:08
Mudchainsmgedmin I see only appaering "grub" with a blinking dash when I hold shift :)13:09
TJ-Mudchains: that means that only GRUB's bootstrap code is loaded but it cannot find the core image13:11
flogTJ-: i was stupid and the sudoers file was working all along.13:13
flogFor some reason i thought i could execute the command as root without sudo.13:13
TJ-flog: ;s13:14
MudchainsTJ- must I install a kernel by chroot then?13:16
mgedminno, apparently grub doesn't get that far13:16
mgedmingrub-install failed to install grub correctly somehow13:16
TJ-Mudchains: I've not been following along  but missing core image means grub-install wasn't run/targeted at the correct boot device, or failed (lack of free sectors/BIOS boot partition ?)13:17
Mudchainsmgedmin stange, the cmd said everything went succesfull @ grub-install13:17
TJ-Mudchains: what command was used? "grub-install /dev/sdX" ?13:18
MudchainsTJ- grub-install --boot-directory=/mnt/boot /dev/sda13:18
TJ-Mudchains: was that from within a chroot or outside?13:19
TJ-Mudchains: is sda using MBR or GPT ?13:19
MudchainsTJ- boot-repair program is complaining about GPT, so I think gpt :)13:20
TJ-Mudchains: complaining? in what way? If it is GPT then there needs to be a BIOS Boot partition.13:21
MudchainsTJ- boot-repair is complaining there isnt a partion on /dev/sda with a bios boot flag, but gparted says it is..13:22
Mudchainsits formatted as ext413:22
MudchainsTJ- disk layout: /dev/sda = boot disk, /dev/sdb = / , /dev/sdc = swap13:23
TJ-Mudchains: sounds like there may be a hybrid MBR which isn't synced with the same values from the GPT13:23
mgedminalso, this is a VM, right?13:23
Mudchainsmgedmin yes13:24
TJ-Mudchains: also... 'sda' means the first (SCSI) storage device discovered on boot, which *may not* be the same on each boot and may be different between host+chroot and pure host boots13:24
Mudchainsmgedmin generation 1 Hyper originaly, converted to vmware :)13:24
TJ-Mudchains: what does "sgdisk -p -O /dev/sda" report ?13:27
MudchainsTJ- MBR info ( i am in a console session @ vmware, so I cant copy stuff)13:28
MudchainsTJ- 1 primairy partition, mbr, code 0XEE :)13:28
TJ-Mudchains: you need to compare the GPT info with the MBR info shown by that command13:28
TJ-Mudchains: if it covers the entire 'disk' that is a protective MBR, not hybrid13:29
mgedminwait, there are two disks here: the real physical one that vmware deals with, and the virtual disk used by the VM, which is probably mapped to a partition or a file by vmware13:29
mgedminwhat does 'vmware console session' mean?13:30
TJ-I thought this was all being done inside the VM's view of the hardware13:30
mgedminemulated /dev/tty1 of the VM?  or some CLI to the vmware host side?13:30
mgedminjust making sure13:30
MudchainsI am not in a ssh session or something. I am on a console session.13:30
Mudchainslike you are really behind the server ;)  in a physical world13:31
Mudchainsmgedmin the real disks you can ignore, as its stored on a ISCI volume. I have 3 disks in the VM :)  disk layout: /dev/sda = boot disk, /dev/sdb = / , /dev/sdc = swap13:33
mgedmindo these disks have partition tables?13:34
mgedmin(or are you ext4-formatting the entire block device?)13:34
mgedmin(if there's no partition table there might not be space for grub itself)13:36
Mudchainsmgedmin yes the disks have each one, 1 partition. (mostly ext4 exept the swap disk)13:36
Mudchainsthe /dev/sda (boot) disk has 1 partition, that is flagged bios_grub and is using all the space13:37
MudchainsTJ- when I use gdisk -l its says Found valid GPT with protective MBR; using GPT13:43
TJ-Mudchains: there's your problem. One partition flagged as bios_grub means the BIOS boot partition, which grub-install should write its core image into (this is NOT a file-system and is NOT /boot/ or /boot/grub/)13:53
TJ-Mudchains: if you've not working in a chroot then it's likely grub-install's defaults for other options may be chosen incorrectly13:54
MudchainsTJ- the sda1 is the one with the bios_grub flag :)13:54
TJ-Mudchains: OK, so what is mounted at /mnt/boot/ ?13:55
TJ-Mudchains: or is it the root-fs mounted at /mnt/ ?13:55
MudchainsTJ- /dev/sda113:55
=== gry_ is now known as gry
Mudchainsand /dev/sdb1 ( / in production vm) is mounted as /mnt13:56
TJ-Mudchains: OK, that IS the problem then, as I said, bios_grub partition is NOT a file system and is NEVER mounted, it is a raw bitmap of core image13:56
TJ-Mudchains: so what've you have happening is GRUB's bootstrap code in sector 0 (440 bytes) loading the bytes from sda1 into memory and handing execution to them, expecting it to be the binary core image ... but it isn't13:57
mgedminis it required?  usually grub stores the core image in the empty space between the MBR and the first partition?13:57
TJ-mgedmin: its GPT13:57
* mgedmin is not sure what happens with GPT and non-EFI boots13:57
TJ-mgedmin: there is no spare space13:57
TJ-mgedmin: GPT primary starts at sector 1 .. this is why the BIOS Boot partition was needed for GPT in BIOS boot mode13:58
MudchainsTJ- do I need to resize the /boot partition?13:58
TJ-no longer are there spare/unused sectors at start of disk that can be relied on13:58
mgedmincan vmware do EFI boots?13:58
MudchainsHyperV vm thats I converted today (generation 2) are booting using EFI13:59
TJ-Mudchains: lets go back to basics since I'm confused. Is there a separate root-fs AND a separate /boot/ file-system in different file systems?13:59
TJ-Mudchains: note sda1 bios_grub is NOT for a /boot/ file-system13:59
mgedminEFI boot need an ext4 /boot _and_ a vfat /boot/efi, so you're going to have to repartition /dev/sda in any case14:00
mgedmin(a) MBR + /boot partition, (b) GPT + bios_grub + /boot partitions, (c) GPT + /boot + /boot/efi partitions14:00
mgedminare the options14:00
Mudchainsmgedmin I am not getting EFI options at boot, so VMware knows this VM didnt support EFI. At other VM's i get EFI options14:01
TJ-rewrite (a) as "MBR + spare sectors from 1 to 2047 + /boot/ partition14:01
mgedmin.. hey in theory can't the ext4 superblock be shifted forward enough to make space for the grub core image?14:01
TJ-Mudchains: is there any reason that /boot/ is not in the root-fs ?14:02
mgedminno, I was misremembering something I read about in https://amos.me/blog/2019/reading-files-the-hard-way-3/14:02
MudchainsTJ- I have a disk for the boot partition (/dev/sda) a disk for the OS ( /dev/sdb) and a disk for the swap file (/dev/sdc)14:02
mgedminthe first 1024 bytes are reserved for boot sectors etc, not eough for grub14:02
Mudchainsthis is for performance purposes14:02
TJ-Mudchains: how large is sda ?14:02
Mudchains1 GB14:02
TJ-Mudchains: OK, so simply repartition sda, 2 partitions, 1 bios_grub (2MB) and the rest for for /boot/ ext4 filesystem ... sorted14:03
TJ-Yes, that is 2 Megabyte!14:03
rapidwaveIs there a GUI tool for creating/configuring a theme for Ubuntu?14:03
rapidwaveAlso, how do I check which DE I'm using?14:04
MudchainsTJ- I must use the same command as before?14:04
Mudchainsfrom outside chroot? or withing chroot?14:04
mgedminrapidwave: echo $XDG_CURRENT_DESKTOP, or show us a screenshot and we'll make a guess14:04
TJ-Mudchains: if we assume the /boot/ becomes sda2, then you'd "mount /devsda2 /mnt/boot" then "grub-install /dev/sda --boot-directory=/mnt/boot/" and it should work.14:05
MudchainsTJ- must I mount /dev/sdb1 also as /mnt? Like before14:06
TJ-Mudchains: what I think was happening is: grub-install was over-writing sda1 because it was flagged as bios_boot but was also mounted at /mnt/boot -- although I cannot see how it would not have failed since grub-install first copies the files into /boot/grub/ then writes the core image to bios_boot14:06
rapidwaveOkay. So, I'm using LXQt, that must be a version of Xfce14:07
TJ-Mudchains: yes, root-fs needs mounting to /mnt/ then the /boot/ file-system to /mnt/boot/14:07
Mudchainsok :)  This is the disk layout now: https://i.imgur.com/ljmNmLI.png14:07
TJ-Mudchains: I think you might have more success this time14:08
MudchainsTJ- commands are finished, rebooting now14:09
MudchainsTJ- I am getting a grub interface, waiting for input -.-'14:10
MudchainsTJ- ah shit, i didnt fixed my /etc/fstab ... :)14:10
Mudchainsthe /boot has a new UUID now14:11
TJ-Mudchains: always something :)14:17
MudchainsTJ- the fstab has the correct UUID now, but still grub rescue screen. Will try boot-repair now14:17
mgedmindoes one need to update-initramfs after updating the /boot mountpoint in /etc/fstab?14:18
=== Etua_ is now known as Etua
Mudchainsboot-repair is complaining about the boot_grub & gpt again.. :)  hehe14:19
mgedminwhen you say "grub rescue screen", what do you mean?14:20
Mudchainsmgedmin it says GRUB GNU... and there is a console screen of grub14:21
Mudchainswhere I can type cmds in :)14:21
mgedminbut no boot menu?14:21
mgedminare there any errors?14:21
mgedminit's as if it doesn't know where to look for the grub.cfg14:21
Mudchainsmgedmin this is the disk layout now @ live session: https://i.imgur.com/BTl6YGB.png14:22
mgedmincan you ls (hd0,1) and see the contents of your /boot?14:22
mgedminor was it (hd0,2)?  I don't remember if partition numbers are 0-based or 1-based in grub14:22
Mudchainsmgedmin can I do that @ that grub cli ?14:22
mgedminyes, the grub cli is very versatile14:23
TJ-Mudchains: grub rescue> is the core image loaded but is not finding the /boot/ so use "set" and check what "root" and "prefix" are set to14:23
mgedminyou can also use ls to look inside subdirectories, and then load your actual grub.cfg with the configfile command14:24
TJ-Mudchains: use "ls" to list devices and partitions and e.g. "ls (hd0,2)/" to hopefully see the content of sda2 (if sda == hd0)14:24
mgedminwhich should give you the grub menu from your ubuntu install14:24
mgedminwhere you should be able to boot and repair your grub from the actual system (rather than a live session)14:24
mgedminwhich might work better maybe hopefully?14:24
TJ-Easiest is to just use "set prefix=(hd0,2)/grub" if hd0,2 is /boot/, and then do "insmod normal" then "normal"14:25
multifractalDoes anybody know how you can get a dock on a second display in 18.04? There is only a dock on the primary display for me.14:25
TJ-Mudchains: check what "ls (hd0,gpt2)/" reports14:25
Mudchainslost+found and grub14:25
mgedminalso listen to TJ-, don't listen to me, I forget people don't use MBR14:25
TJ-Mudchains: Good... then do "ls (hd0,gpt2/grub/" - do you see directories and grub.cfg ?14:26
TJ-oops, typo14:26
TJ-Mudchains: Good... then do "ls (hd0,gpt2)/grub/" - do you see directories and grub.cfg ?14:26
TJ-My bet is there's no grub.cfg14:26
Mudchainsthere is no grub.cfg14:26
TJ-aha, so let's do it manually (or try)14:27
Mudchainsi386-pc, local , fonts, grubev folders/files14:27
TJ-Mudchains: "ls (hd0,gpt2)/" and show us the listing in a screenshot14:27
* TJ- wonders if the kernel images/initrd are missing14:27
MudchainsTJ- https://i.imgur.com/169SEtk.png14:28
TJ-Mudchains: there's your problem, no kernels installeed14:29
TJ-Mudchains: my bet is they're in the root-fs instead14:29
mgedminthere was earlier talk about deleting the /boot partition?  but then Mudchains said he was going to copy it from some backup so it wouldn't be empty again?14:29
mgedminyeah, maybe ls (hd1,gpt1)/boot and see if it's not empty?14:30
TJ-Mudchains: try "ls (hd1,gpt1)/boot/"  -- do you see vmlinuz* and initrd.img* files?14:30
TJ-Mudchains: if not try "ls (hd2,gpt1)/boot/" for the same14:30
mendihi does the nouveau driver work with wine (which requires dxvk)?14:30
TJ-Mudchains: if you see some files please screenshot it for me14:30
MudchainsTJ- https://i.imgur.com/rYNfwfn.png14:32
TJ-Mudchains: OK so we can try a manual boot from hd1,gpt114:32
TJ-Mudchains: "insmod linux"14:33
MudchainsTJ- that gives a new cli line14:33
TJ-Mudchains: then "linux (hd1,gpt1)/boot/vmlinuz root=/dev/sdb1 ro"  then, once it has loaded into memory, do "initrd (hd1,gpt1)/boot/initrd.img"  then finally, once that is in memory, "boot"14:34
TJ-I think I have that syntax correct but not needed to do it in a while14:35
TJ-Mudchains: it may be it starts Linux but then gets stuck in the initialramfs shell, from where we can further 'help' it along, hopefully14:35
Mudchainsfile /boot/vmlinuz not found14:35
TJ-Mudchains: hmmm, I assumed the entries in the "ls (hd1,gpt1)/" listing were symlinks to files in /boot/ ... maybe they're real files ?14:36
MudchainsTJ- ls (hd1,gpt1)/boot/ gives no files/directories back14:37
TJ-Mudchains: try "linux (hd1,gpt1)/vmlinuz root=/dev/sdb1 ro"14:37
TJ-Mudchains: this'll fail if vmlinuz is only a dangling symlink... in which case you didn't install kernel images or run update-initramfs14:38
MudchainsTJ- : https://i.imgur.com/Pf0lNML.png14:38
TJ-Mudchains: hmm, so no kernel installed! also, wouldn't have made a difference but should be root= not root/14:39
TJ-Mudchains: you'll have to fix it from a chroot on the host, can't get any further without a kernel and initrd.img14:40
Mudchainsok :)  I will boot into live cd again14:40
MudchainsTJ- I have to follow https://help.ubuntu.com/community/Grub2/Installing#via_ChRoot ?14:43
GusjHello everyone, I have installed ubuntustudio 19.04, lubuntu 18.04lts and tried ubuntu 16.04, and in all is the same problem, laptop trackpad and keyboard do not work, I think I have tracked it down with the logs to the following:14:43
Gusj 1.482768] i8042: PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:MOUE] at 0x60,0x64 irq 1,1214:44
Gusj[    1.485667] serio: i8042 KBD port at 0x60,0x64 irq 114:44
Gusj[    1.485677] serio: i8042 AUX port at 0x60,0x64 irq 1214:44
Gusj[    1.540486] input input1: hash matches14:44
TJ-Mudchains: those instructions are not optimal14:44
Gusj[    1.831655] hidraw: raw HID events driver (C) Jiri Kosina14:44
Gusj[    2.817045] i8042: Can't write CTR while closing AUX port14:44
TJ-Mudchains: first check the file-systems are on the same devices as earlier with "sudo blkid"14:44
TJ-Mudchains: assuming sda2 is /boot/ and sdb1 is root-fs, then do:14:45
GusjIts at the kernel level, a beginner here, but I have been learning a lot through this bug.. have tried many many commands in the grub file, and many online solutions but have not been successful, the laptop keyboard and trackpad work perfectly in the machine bios, is there any way that i can FORCE the i8042 AUX PORT?14:46
TJ-Mudchains: "sudo -i"  then "mkdir /target; mount /dev/sdb1 /target; chroot /target mount -a" then do "mount | grep target" and confirm that there is sda2 on /target/boot/14:46
TJ-Mudchains: if so, then continue with "for n in proc sys dev etc/resolv.conf; do mount --rbind /$n /target/$n; done"  then "chroot /target apt install linux-image-generic"14:47
MudchainsTJ- https://i.imgur.com/qJfGzUD.png14:47
TJ-Mudchains: this should install the kernel and cause the initrd.img to be built, after which do "chroot /target update-grub" and that should generate the /target/boot/grub/grub.cfg file14:47
TJ-Mudchains: ahhh... so there's no correct entry in /target/etc/fstab for the /boot/ device. Can you do "cat /target/etc/fstab; blkid" and screenshot it ?14:48
MudchainsTJ- in chroot or outside?14:49
TJ-Mudchains: outside, just as I typed the commands. The fact I include /target/ infers the command is from outside the chroot14:49
TJ-Mudchains: since the broken install is mounted under /target/14:50
TJ-Mudchains: actually, did you for the "for n in ..." command ?14:50
MudchainsTJ- not yet14:51
TJ-Mudchains: I'd have expected the 'grep' to report /target/proc /target/sys /target/dev and so on14:51
TJ-Mudchains: aha! that's the cause!14:51
TJ-Mudchains: I was premature in saying to do "....  mount -a" !14:51
TJ-Mudchains: so, do the "for n in ..." THEN do "chroot /target mount -a" and then "mount | grep target"14:52
TJ-Mudchains: "mount -a" causes all entries in fstab to be auto-mounted14:52
beterrabahello all. i'm trying to install something without `sudo apt-get blablabla`. this is the library that i need: https://github.com/Z3Prover/z3/releases14:52
beterrabai find there's a `ubuntu` release. i tried to look in the website, but i simply don't know how to proceed14:53
GusjWhere I think the problem lies is in the following lines, sorry for the paste before: i8042: Can't write CTR while closing AUX port, i8042: Can't reactivate AUX port14:54
MudchainsTJ-  now doing the for loop? https://i.imgur.com/0oxjZ6y.png14:54
MudchainsI dont know if I am in chroot or outside now -.-14:55
TJ-Mudchains: yes, do the "for..." command now ... type commands exactly as I gave them, from the host. I'm not causing you to enter the chroot permanently, only execute commands in it one at a time from outside14:56
TJ-Mudchains: when you do "chroot /target <some command>" it only runs <some command> inside the chroot but 'you' stay outside14:57
TJ-Mudchains: whereas "chroot /target" would but 'you' inside it until you typed 'exit'14:57
lordcirthThough you can of course use 'bash' as the command to get a shell inside it as well.14:57
MudchainsTJ- i am getting: https://i.imgur.com/Alc6JX9.png14:58
TJ-beterraba: see https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html and the various i8042.* options14:58
beterrabathank you !14:59
beterrabaket me take a look14:59
TJ-Mudchains: "for n in proc sys dev etc/resolv.conf; do sudo mount --rbind /$n /target/$n; done"14:59
GusjIs there a way to force the kernel to activate the i8042 AUX port?14:59
TJ-beterraba: Ouch, sorry, I gave you a link meant for Gusj!!14:59
TJ-Gusj: see https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html and the various i8042.* options14:59
beterrabaah ok15:00
Gusj@TJ- ahh thank you :) let me check that out now..15:00
MudchainsTJ- next step? https://i.imgur.com/BDTgHo2.png15:01
TJ-Gusj: I don't think there's a 'direct' way but I seem to recall that i8042.noloop" and/or .nopnp might have the same effect15:01
ghost2911hi. how to list installed packages so that it lists not in column but line but horizontally like paragraph each package separated by space15:02
Gusj@TJ- thank you will try some of them right now..15:02
TJ-Mudchains: OK, target to knowhere means the DNS resolver on the live host is different to whats in the broken system.. it may cause problems with the chroot not being able to resolve hostnames and therefore not be able to download packages. We'll soon find out15:02
TJ-Mudchains: so "chroot /target mount -a" and then check for /target/boot/ with "mount | grep target"15:03
MudchainsTJ- yep, the live host has different ipadres etc, because else apt-get isnt working the live-cd session15:03
Gusj@TJ- It is very strange they both work perfectly in the bios, and the keyboard works in the grub menu as well, but when you get to the login screen, both are gone..15:04
TJ-Gusj: hang on... is it a PS/2 keyboard or USB?15:04
MudchainsTJ- the mount | grep target gives a lot of folders15:05
TJ-Mudchains: good :)15:05
TJ-Mudchains: do you see /target/boot mentioned?15:05
mgedminMudchains: does it list /target/etc/resolv.conf ?15:05
TJ-/target/etc/resolv.conf will be there but is a dangling sym-link so we may have to remove it to unmask what it mounted over15:05
mgedminyou need /target, /target/boot, /target/dev, /target/proc, /target/sys and /target/etc/resolv.conf15:06
Gusj@TJ- it is the laptops internal keyboard and trackpad, I think yes PS/2 this is how the kernel sees them before giving the AUX port error,  1.482768] i8042: PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:MOUE] at 0x60,0x64 irq 1,1215:06
Mudchainssda2 is mounted as /target/boot15:06
TJ-Gusj: Yes, I concur, PS/215:06
TJ-Mudchains: Yay!15:06
Mudchainsthere is no resolv.conf15:06
TJ-Mudchains: right, lets undo the resolv.conf issue with "umount /target/etc/resolv.conf"15:07
TJ-Mudchains: if that says it doesn't exist that is fine15:07
Gusj@TJ- I have been messing around trying to resolve this with external USB kybrd and mouse, USB works perfectly.15:07
MudchainsTJ- no mount point speci...15:07
TJ-Gusj: are you able to pastebin the entire kernel log, e.g. "pastebinit <( journalctl -k )" using the USb keyboard, or SSH session?15:08
TJ-Mudchains: that's fine, ignore for now, lets test if the chroot has DNS capability15:08
TJ-Mudchains: "chroot /target ping -c 5"15:08
TJ-Mudchains: if that works try "chroot /target ping iam.tj"15:09
TJ-Mudchains: hopefully the name lookup will work. if not, we need to fix that15:09
Mudchainsip works, dns not15:09
Gusj@TJ- yes already have it up since last night, here it is the Xorg.0.log: https://paste.ubuntu.com/p/fQZYZyDyR4/  thank you for taking the time to help me15:09
TJ-Mudchains: thought so. What does "grep nameserver /etc/resolv.conf" report ?15:10
Mudchainsisnt it a netplan setting?15:10
TJ-Mudchains: that points to the local systemd-resolved so now check what is in the chroot, with "cat /target/etc/resolv.conf" (which may not exist!)15:11
TJ-Gusj: that's the Xorg log; it'd be more useful to see the kernel log as I indicated above15:12
MudchainsTJ- no such file15:12
TJ-Mudchains: OK, let's try to manually bodge this but you'll need to fix it up later once the system boots15:12
Gusj@TJ- Ahh I am sorry for the confusion, where is the log that you specify located?15:12
mgedminaugh https://unix.stackexchange.com/questions/429724/how-do-i-mount-a-file-on-top-of-a-broken-symbolic-link as no answer15:12
TJ-Gusj: just issue the command "pastebinit <( journalctl -k )" and give us the URL15:12
TJ-Mudchains: "echo 'nameserver' > /target/etc/resolv.conf" then retry "chroot /target ping iam.tj"15:13
dbtidi'm running hostapd and dnsmasq to provide a loal AP at home.  i have a dozen or so small machines that use this AP.  how do I get dnsmasq to bind the hostnames of the WiFi client machines so i don't have to have large /etc/hosts files on all the machines?  dnsmasq knows the hostnames (they're in /var/lib/misc/dnsmasq.leases).15:13
Gusj@TJ-  here it is: http://paste.ubuntu.com/p/5y2bBgCyqX/15:14
MudchainsTJ- https://i.imgur.com/RNCCz3p.png15:15
mgedminTJ-: /target/etc/resolv.conf is most likely a symlink to ../run/systemd/resolve/stub-resolv.conf; /target/run/ is empty so the echo will likely fail with ENOFILE15:15
mgedminit's _annoying_ that bind mounts don't work when the target is a broken symlink15:16
TJ-mgedmin: yes, that's what I would expect15:16
mgedminmkdir /target/run/systemd/resolve seems like overkill, just to touch a stub-resolv.conf and bind mount it there?15:16
mgedminmount --bind /run /target/run seems dangerous maybe?15:16
TJ-Mudchains: that suggests /etc/ doesn't exist! does "ls /target/etc/" list files?15:16
mgedminmv /taget/etc/resolv.cfg && cat /etc/resolv.cfg > /target/etc/resolv.cfg seems unclean and dangerous if not undone before the reboot15:17
TJ-mgedmin: I tend to avoid it since it mounts info about HOST services into the chroot so if chroot starts its own services (due to package upgrades/installs) it causes issues for the host15:17
TJ-mgedmin: also prevents /target/run/ from being unmounted15:17
TJ-The echo redirect should work since > creates a file, unless /target/etc/ directory is missing15:18
mgedminTJ-: why do you say /etc/ doesn't exist?  /target/etc/resolv.conf is a broken symlink, echo > will try to follow the symlink into a non-existent directory and try to create a file there, which fails because the parent directory is missing15:18
mgedminthe parent directory being /target/run/systemd/resolve/15:18
Mudchainsthe console session crashed.. I cant do anything atm15:18
TJ-mgedmin: oh I see what you're getting out. My thought process was: the mount --rbind reported a dangling symlink due to it creating the rbind... but I see what you mean now, it tried to follow an existing /target/etc/resolv.conf to possibly /run/ which isn't there15:19
TJ-Mudchains: what does "readlink -e /target/etc/resolv.conf" report ?15:20
mgedminyeah, google tells me you can't bind-mount anything over a symlink, the bind mount always resolves the link and mounts on top of its target (which fails if the target doesn't exist)15:20
TJ-mgedmin: sorry; trying to juggle too many things here15:20
mgedminnp, just trying to help!15:20
mgedminyou know more than I do15:20
TJ-yeah, but I can be blind at times; need keeping on track!15:21
TJ-the more the merrier as Robin Hood used to say :)15:21
mgedminI could probably fix this myself, but I'm struggling to explain how in a clear and unambiguous way15:21
TJ-Mudchains: let us know when you've regained controlled15:21
TJ-mgedmin: it's a pain when all we want to do is "chroot /target apt install linux-image-generic &&  chroot /target update-grub"  !15:22
TJ-although I think update-grub isn't needed, should be triggered by the kernel package install15:22
MudchainsTJ- control is back15:23
TJ-problem is if those packages are installed but their files are missing, we'd need to force a --reinstall then15:23
TJ-Mudchains: OK ... "readlink -r /target/etc/resolv.conf"15:23
TJ-grrr, "-e" not "-r" !!15:23
mgedminyup!  hey maybe /var/cache/apt/archives still has a cached kernel deb so dns wouldn't be needed?15:23
TJ-mgedmin: hope so!15:23
MudchainsTJ- its blanc15:23
mgedmin"all components must exist" says the man page about readlink -e, so blank output is not surprising15:24
* mgedmin would go with 'mv /target/etc/resolv.conf /target/etc/resolv.conf.orig; echo nameserver > /target/etc/resolv.conf' and then undo later right before/after rebooting into the actual system15:25
TJ-Mudchains: OK, ^^^^15:26
TJ-mgedmin: is saving me typing :)15:26
TJ-Mudchains: once you've done the echo, try once more "chroot /target ping iam.tj" and lets hope it works!15:27
Mudchainsyep thats working!15:27
mgedminnow to figure the version of the kernel package to install15:28
mgedminchroot /target dpkg -l 'linux-image-*'15:28
mgedminchroot /target dpkg -l 'linux-image-*' | grep ^i15:28
Mudchains4.15.0-64-generic (uname -r)15:28
mgedminuname -r will tell you the kernel in your live system15:29
mgedminnot the one that was installed in /target before the /boot went away15:29
Mudchainsthis is from production system15:29
mgedminah right you have a copy still working, I keep forgetting15:29
mgedminchroot /target apt install --reinstall liux-image-4.15.0-64-generic15:30
mgedminonly spell linux-image correctly ;)15:30
Mudchainsmgedmin https://i.imgur.com/CNwmaJ8.png15:31
mgedminokay, this means you had grub 1 installed in the system, but now with the live session you've set up grub 215:32
Gusj@TJ- the lines that start repeating after line 806, I also see in the ttys when I switch to them with ctrl+alt+fX, when i try to write or no in any terminal, that output from kernel gets printed continually, 1 ACPI Bios error, and 4 ACPI errors15:33
mgedminMudchains: I would do a chroot /target apt install grub-pc, unless TJ- has a better idea15:33
Mudchainshmm ok :)15:34
TJ-sorry, was away investigating a leak. Yes, I concur15:36
TJ-that grub-legacy-ec2 stuff is so misleading15:36
Mudchainsso a chroot /target apt install grub-pc it is :)  ?15:37
Guest_8hello, I need some help with recovering encrypted home dir15:37
TJ-Guest_8: "ecryptfs-recover-private /home/.ecryptfs/$USER/.Private" you mean?15:37
Guest_8yes I think so i am on the same machine logged in to a livecd15:38
MudchainsTJ- https://i.imgur.com/4HxPKbL.png15:38
Guest_8ecryptfs-utils doesnt seem to be installed on the live cd15:38
mgedminGuest_8: you can sudo apt install stuff in the live session (as long as they fit in RAM -- there's a writeable ramdisk)15:39
Guest_8yeah i tried that but doesnt find the file to install15:39
Guest_8ecryptfs-utils has no release candidate15:40
mgedminah, you have to sudo apt update first, forgot about it15:40
TJ-Mudchains: "chroot /target apt remove grub-legacy-ec2"15:40
Guest_8still doesnt install after update i tried that already15:41
mgedmin(the livecd doesn't have /var/lib/apt/lists, and if it did, they would become outdated soon anyway)15:41
Guest_8how do i update that?15:41
TJ-Guest_8: you may also need to do, prior to ecryptfs-recover-private, "sudo keyctl link @u @s"15:41
mgedminhuh, is ecryptfs-utils not in main?  the live session probably doesn't have universe in /etc/apt/sources.list15:41
TJ-Guest_8: which release are you using?15:41
TJ-!info ecryptfs-utils15:41
ubottuecryptfs-utils (source: ecryptfs-utils): ecryptfs cryptographic filesystem (utilities). In component universe, is optional. Version 111-0ubuntu5 (bionic), package size 103 kB, installed size 548 kB15:41
MudchainsTJ- https://i.imgur.com/WZICitO.png15:42
TJ-Mudchains: looking good! now do "chroot /target apt -f install" to clean up any package issues15:42
mgedminMudchains: looks like everything's fine now!  to double check ls /target/boot -- you should see a kernel; and ls /target/boot/grub -- you should see a grub.cfg15:42
TJ-Mudchains: then finally do "chroot /target update-grub"15:43
mgedminapt -f install can't hurt15:43
TJ-I think the -f will trigger update-grub and generate grub.cfg but best to be sure15:43
dbtidi'm running hostapd and dnsmasq to provide a loal AP at home.  i have a dozen or so small machines that use this AP.  how do I get dnsmasq to bind the hostnames of the WiFi client machines so i don't have to have large /etc/hosts files on all the machines?  dnsmasq knows the hostnames (they're in /var/lib/misc/dnsmasq.leases).15:43
MudchainsTJ- mgedmin https://i.imgur.com/7qe5TSl.png15:43
mgedminI'd have expected the apt remove grub-legacy-ec2 to have done the dpkg --configure --pending at the end - it was processing kernel triggers after all15:44
TJ-Mudchains: "chroot /target update-grub"15:44
mgedminso, kernel - yes, grub.cfg -- no; try the update-grub that TJ- suggested15:44
Mudchainsmgedmin TJ- succesfully done :)15:45
TJ-good to know update-grub won't create a menuentry for a vmlinuz that doesn't have a matching initrd.img15:45
Mudchainsfound the image that we installed by apt install15:45
TJ-Mudchains: good... now undo the /target/etc/resolv.conf change from earlier15:45
TJ-Mudchains: "mv /target/etc/resolv.conf{.orig,}"15:45
TJ-I hope I recall the backup file's name correctly there15:46
mgedminyes .orig15:46
Guest_8how can i add universe to the repos on a livecd?15:47
TJ-Guest_8: "sudo add-apt-repository universe"15:47
mgedminoh nice!15:47
Guest_8thanks tj15:47
TJ-Mudchains: in theory you've good to reboot now15:47
MudchainsTJ- delete the resolv.conf and mv the .orig file?15:48
TJ-Mudchains: "mv /target/etc/resolv.conf{.orig,}"15:48
mgedminno need to delete, mv will overwrite it15:48
TJ-Mudchains: that ^^^ does it for you15:48
TJ-Mudchains: the {.orig,} expands the command to read "mv /target/etc/resolv.conf.orig /target/etc/resolv.conf"15:49
mgedminI would do a sync; sync; sync; for i in dev proc sys boot; do umount /target/$i; done, but I'm paranoid15:49
TJ-mgedmin: systemd/kernel will handle all that on shutdown :)15:49
MudchainsTJ- didnt know that!  thanks15:49
Mudchainsok the mv cmd has done15:49
Mudchainsnow reboot?15:49
mgedmin(once I booted an ancient RH rescue floppy, recover some files on my hard disk, and did a 'reboot', only to discover that wasn't unmounting filesystems cleanly in that ancient rescue system)15:49
TJ-Mudchains: yes  "systemctl reboot"15:49
TJ-Mudchains: and of course remove the live ISO15:50
TJ-mgedmin: ahhh, the gold ole days :)15:50
TJ-gold? good?!15:50
mgedminit was a valuable lesson15:50
TJ-yes, like dd's conv=fdatasync,fsync before pulling a USB :)15:51
mgedminremember when IDE hard disks were called /dev/hda and USB flash disks were called /dev/sda?  and then it changed one day?  and I did dd if=/dev/zero of=/dev/sda without checking?15:51
Mudchainsits booting!15:51
Mudchains:D  :D15:51
sarnoldmgedmin: fun fun15:51
Mudchainsthank you so much TJ- and mgedmin \o/15:52
Mudchainsif I had gold, I would gave it to you :D15:52
mgedminluckily I had an identical server next to it so I could mkfs and restore the destroyed root partition (it was sda1 not sda now that I rememebr) with tar and ssh15:52
MudchainsHave a nice evening TJ- mgedmin15:59
TJ-mgedmin: ahh yes, the switch inside libata hd>sd when it adopted the SCSI layey16:00
Gusj@TJ- Hola.. TJ, where you able to take a look at the log file?16:43
TJ-Gusj: the root cause is "atkbd serio1: keyboard reset failed on isa0060/serio1" as you surmised; it isn't clear why it is failing16:46
TJ-Gusj: presumably it fails like this without any atkbd. or i8042. options on cmdline ?16:47
Gusj@TJ- Thank you, I will delete all the commands in the grub and test it only with 'quiet splash' right?16:48
TJ-Gusj: I'd lose the quiet splash too so you can see what is going on :) I hate having a GUI getting between me and the real system!16:48
Gusj@TJ- Got it thank you will do that right now, and report back16:49
Gusj@TJ- Just tried it with no commands and when I try to search for serio1 or atkbd I find nothing in the new log: http://paste.ubuntu.com/p/xhbnMKWVtK/16:53
Gusj@TJ- The only thing that I have noticed that does something different, is when i used the atkbd reset comm in Grub, the keyboard did not work but the numlock light would be off, anyother way, including now, the numlock light stays permanently on16:55
Gusj@TJ- If the laptop keyboard and trackpad work in the bios, and in the Grub Menu, the problem can't be hardware right? or can it still be hardware related?16:56
TJ-Gusj: line 539 shows it "i8042: PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:MOUE] at 0x60,0x64 irq 1,12" so detection is working... config not so much!16:57
ioriaGusj, already tried 'i8042.direct i8042.dumbkbd' parameters ?16:58
TJ-Gusj: enable debug logging with "i8042.debug=1" so you get detail of the i8042 operations17:01
TJ-Gusj: looks like this bug report covers it and there's a patch further down that appears to solve it, not sure where that had got to in mainline though  https://bugzilla.kernel.org/show_bug.cgi?id=19547117:04
ubottubugzilla.kernel.org bug 195471 in Input Devices "Keyboard not working after resume with kernel 4.10.5" [Normal,New]17:04
TJ-Gusj: you're getting this on a cold boot though so it seems to affect that C5 more seriously17:08
TJ-Gusj: since that report mentions suspend/resume that infers ACPI, so let's take a punt on an ACPI OSI workaround. Check out  https://iam.tj/prototype/enhancements/Windows-acpi_osi.html17:10
=== Etua_ is now known as Etua
=== jcara_ is now known as jcara
B|ack0phi. i am getting this error everytime i install something or check apt update: libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...18:01
B|ack0phow can i fix it?18:01
lordcirthB|ack0p, 'apt install -f' ?18:02
B|ack0plordcirth: let me check18:03
B|ack0plordcirth: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.18:03
B|ack0pnothing happened18:03
lordcirthB|ack0p, ok. So it's only when attempting to change something that you have a problem. What Ubuntu version? Was it upgraded from a previous version? Any 3rd part repos?18:04
B|ack0pno it is fresh install18:04
lordcirthB|ack0p, can you pastebin the full output of 'apt update'?18:05
B|ack0plordcirth: https://paste.ubuntu.com/p/3X9xF4tw67/18:06
B|ack0pit didnt give the error now18:06
B|ack0pit happened while i was installing something18:06
lordcirthB|ack0p, ok, what were you trying to install?18:07
B|ack0plordcirth: well i installed many things18:07
B|ack0pgnome shell extensions18:07
B|ack0ptweak tool18:07
lordcirthB|ack0p, ok, and did they all fail?18:07
B|ack0plordcirth: now i tried to install "htop" and it gave error18:07
B|ack0plet me pastebin18:07
B|ack0plordcirth: https://paste.ubuntu.com/p/BFg2YqCWnj/18:08
B|ack0pthis is full log18:08
lordcirthB|ack0p, first result of a search: https://askubuntu.com/questions/1094062/libdvd-pkg-apt-get-check-failed-you-may-have-broken-packages-aborting18:09
B|ack0plordcirth: i think it happened while i was installing this: https://websiteforstudents.com/how-to-install-video-audio-codecs-on-ubuntu-18-10-18-04-16-04-lts/18:09
B|ack0pthx i am trying again18:10
B|ack0plordcirth: installed without error..18:12
B|ack0pcould you please tell me a package necessary to install to test? :p18:13
B|ack0pi wanna check again if i will get any error while apt get install ...18:13
lordcirthB|ack0p, Seems fixed to me. That answer worked for other people. But you could install 'tmux'.18:15
B|ack0pwhat does it do?18:16
Gusj@TJ- Hi there, Sorry that I left for a bit.. thank you for the links you sent, looking at them right now to see if I understand what to do next..18:16
B|ack0plordcirth: done without error; https://paste.ubuntu.com/p/cxcfJsqb4S/18:17
B|ack0pthx a lot!18:17
Gusj@ioria Hi there, thank you have not tried only with those two (2) parameters you just sent, will do..18:19
kinghatyou guys know of an SSD tester for speeds on linux? like crystal disk on windows.18:22
sarnoldfio and bonnie++ are packaged for ubuntu; I have trouble understanding their output usually (one is incomprehensible, the other difficult :) so I usually just use dd and either conv=fdatasync or or oflags=sync18:25
=== im0nde_ is now known as im0nde1
kinghati guess im not after the smart info im looking for performance measuring like: https://crystalmark.info/en/software/crystaldiskmark/18:26
sarnoldfio and bonnie++ don't do smart; if you want smart data then you need to use the smartmontools package18:28
kinghatsmartmontools is a gooey?18:29
sarnoldI don't see any gui libraries in its dependencies18:29
lordcirthIt doesn't have it's own GUI, no. But many of the GUI disk utilities will read smart data.18:30
kinghatya im play with GSmartControl atm but also wondering if there is a gooey for benchmarking the drive like CrystalDiskMark for win.18:33
kinghatwonder if GNOME Disks will bench ssds18:46
Gusj@TJ- @ioria Just noticed that with 'i8042.direct i8042.dumbkbd' I can change the brightness of screen and activate/deactivate wifi with the special function keys FN+f2 f3 FN+f9 but that is it, no other function keys work, specially nos the one to activate deactivate trackpad, and no other key works in general, I think thaat I now understand why the video was assigned as a keyboard18:48
kinghatpretty huge difference between samsung 830 and 840: https://irc.kinghat.info/uploads/d761afd525c20ea4/image.png https://irc.kinghat.info/uploads/4584a4b22cca3351/image.png19:18
=== BrianG61UK_ is now known as BrianG61UK
kinghatso yes, GNOME Disks does benchmarking 😛19:18
sarnoldkinghat: I don't know what your workload is like, but 100MB is a *very* small sample size for these things19:26
sarnoldkinghat: quite often they'll have two gigs or four gigs of fast cache-ish space and then re-shuffle writes to slower storage later19:26
kinghati transferred 75GB file from the 840 to the 830 and it was transferring around 100ishMB/s19:27
kinghatand that 830 write test pretty much confirms that.19:27
kinghatwas just trying to figure out what the transfer was so slow between two SSDs19:28
kinghatlooks like the culprit was the 830.19:28
Gusj@TJ- @ioria Just noticed that with 'i8042.direct i8042.dumbkbd' I can change the brightness of screen and activate/deactivate wifi with the special function keys FN+f2 f3 FN+f9 but that is it, no other function keys work, specially nos the one to activate deactivate trackpad, and no other key works in general, I think thaat I now understand why the video was assigned as a keyboard19:29
TJ-Gusj: are you sure the keyboard is disabled in consoles (TTYs) as well as in GUI? this could be an Xorg/libinput issue19:31
Gusj@TJ- Yes it is disabled just checked now, it does not work there, in any tty I get the login and I can write with my usb keyboard, but the TTY's just keep outputting those lines that you can see in the log, 1 ACPI BIOS (bug) error, and 4 ACPI errors19:35
Gusjtrying the Acpi windows 20XX solutions working my way from 2013 to double check before trying to patch the kernel,19:35
Gusj@TJ- I have not done this before, applying a patch to the kernel, can you recommend a how to that I can follow along to apply the patch in the link that you shared with me?19:36
TJ-Gusj: good, because it is surprising how much that can fix, but, as that C55 looks to be quite old (2014?) I would think we'd know about any generic problems with that model19:36
TJ-Gusj: first thing I'd do is test an older kernel as shown, so any earlier than 4.19 (4.15 from 18.04 for example) --- if that works we've got proif it is a regression. Then we can get the kernel team to do a git bisect and create kernels for you to test until we find the problem19:37
TJ-Gusj: we also have mainline builds so you could test any mainline versions easily19:38
TJ-!mainline | Gusj19:38
ubottuGusj: The kernel team supply continuous mainline kernel builds which can be useful for tracking down issues or testing recent changes in the Linux kernel. More information is available at https://wiki.ubuntu.com/Kernel/MainlineBuilds19:38
Gusj@TJ- @ubottu I am sorry, but I am not understanding you on exactly I need to proceed, I know you say 4.15.. but I am in the dark..19:43
TJ-Gusj: the kernel bugzilla comments say that kernels older than 4.19 work... so the inference is that some regression was introduced at some point in or just after that release. So if you installed a mainline build of, say, 4.19, and it works, and then you install, say, 5.0, and it fails, we know some change there causes the regression19:45
ioriaGusj, what's your release ?   cat /etc/issue19:45
skyliner369How might I drop a marker in the journalctl -b logs?19:45
Gusj@TJ- YEs that I understand, what I do not know is how to install the kernel you suggest..19:45
TJ-Gusj: at which point we can get the Ubuntu kernel team to build kernels between those 2 points (GOOD...BAD) to find the commit that causes it19:45
Gusj@TJ- Thank you, here is my release Ubuntu 18.04.3 LTS \n \l19:46
TJ-Gusj: oh... does the link not say? we have to manually download the kernel image .deb files and use dpkg -i X.deb to install them, then reboot and select19:46
ioriaGusj, so you can install linux-generic that will bring 4.1519:46
ioriaGusj, sudo apt install linux-generic and from grub -> advanced oprion , choose 41519:47
=== ben_r_ is now known as ben_r
skyliner369I'm trying to track an issue that pops up after the desktop loads.19:48
Gusj@TJ- @ioria jus tot make sure.. I am here: https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/ from here I will choose one from "Build for amd64 succeeded :" and take the 2nd one that says GENERIC "linux-headers-4.15.0-041500-generic_4.15.0-041500.201802011154_amd64.deb" I will donwload that, so far so good?19:52
ioriaGusj, please, run  apt cache policy linux-generic   ; what you see ?19:53
ioriaGusj, apt-cache policy linux-generic19:54
TJ-Gusj: ^^^19:54
Gusj@ioria E: Invalid operation cache19:54
ioriaGusj, apt-cache policy linux-generic19:54
Gusj  Installed: (none)19:54
Gusj  Candidate:
Gusj  Version table:19:54
Gusj 50019:54
Gusj        500 http://do.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages19:54
Gusj 50019:54
skyliner369for anyone who knows what they're looking at (shows up a ton in journalctl -b logs of sessions that show the desktop but lose USB and PS/2) Should I just nuke this install?  https://usercontent.irccloud-cdn.com/file/86WPLttn/irccloudcapture3491313573036892024.jpg19:54
ioriaGusj, right, so you can install 4.15 from the offcial repo with apt (as i stated above)19:55
ioriaGusj, but you need to select it from the Grub screen19:56
Gusj@ioria Thank you so I will do the following command? "sudo apt install linux-generic" in terminal, and then when it is finished reboot, then in Grub I need to choose advanced options and you said option 415?19:57
ioriaGusj, 4.1519:57
Gusj@ioria Got it, and then the machine will boot up using that kernel, and my files will stay unaltered as this is only related to the kernel right?19:58
ioriaGusj, yes19:58
Gusj@ioria Thank you will do that19:59
ioriaGusj, hope it works, gl19:59
skyliner369How do I work the termbin pipe again?20:02
cocofwhats the best command to create new user with a home dir?20:03
cocofand to switch to it? su username?20:07
cocofyes now it works :)20:07
cocofstrange useradd did not do much.20:07
skyliner369So with a log like this here https://termbin.com/5zfx should I just nuke this install?20:07
RonaldsMazitisI have problem that my ubuntu does not show newly installed kernel20:14
RonaldsMazitisgrub menu has only old versions20:14
EriC^^RonaldsMazitis: type "ls -l /boot | nc termbin.com 9999"20:14
LusticHi just installed 18.04,  hangs at splash screen cant find the reason, anyone know ?20:14
EriC^^RonaldsMazitis: also "cat /boot/grub/grub.cfg | nc termbin.com 9999"20:14
EriC^^Lustic: try pressing esc to see the background stuff20:15
RonaldsMazitishttps://termbin.com/1h0ed EriC^^20:15
EriC^^RonaldsMazitis: type "uname -r"20:15
EriC^^RonaldsMazitis: is this a vps?20:16
RonaldsMazitisthis is my laptop20:16
EriC^^RonaldsMazitis: type "cat /etc/default/grub | nc termbin.com 9999"20:16
EriC^^RonaldsMazitis: how many hdd do you have installed?20:17
RonaldsMazitisbut two partitions for two separate linux installations20:17
EriC^^RonaldsMazitis: aha, then the other installation's grub is being used, boot into it and update grub there20:17
RonaldsMazitisah ok20:18
RonaldsMazitisEriC^^ I updated grub in other os20:24
RonaldsMazitisstill no other kernel in grub menu20:24
RonaldsMazitisI just don't want to upgrade from 14.04 on the OS because I like kde 420:26
RonaldsMazitisI have 18.04 on one partition which is /dev/sda120:27
RonaldsMazitisand 14.04 on other /dev/sda620:27
RonaldsMazitisbut I can't change kernel in 14.0420:27
RonaldsMazitisit still shows that it is ubuntu 12.04 (version I installed linux on) un additional options only show kernel 3.220:29
RonaldsMazitisand no other20:29
RonaldsMazitisI have installed kernel 4.4 but it does not show in my grub menu20:38
RonaldsMazitisEriC^^ what's wrong20:39
OerHeksbecause 14.04 is EOL?20:40
RonaldsMazitisyeah I know it's old, but I don't like KDE 520:41
TJ-RonaldsMazitis: "update-grub" should be seen adding the kernel version20:41
RonaldsMazitiseverything worked until I upgraded to 16.0420:41
RonaldsMazitisdoes not work TJ-20:41
RonaldsMazitisI did update-grub from both OS,20:42
OerHeksthen you updated the wrong grub?20:42
RonaldsMazitisI did update grub from ubuntu 18.04 as well20:43
TJ-RonaldsMazitis: "does not work" is no help. when does it not work? what is its error report?  with multiple OS installs grub relies on os-prober to discover other OSes so you could try "sudo os-prober"20:43
OerHeksso what ubuntu version controls grub?20:44
RonaldsMazitisUbuntu 18.04.3 LTS (18.04)20:44
RonaldsMazitiswhen I sudo os-prober20:45
RonaldsMazitisI logged in 18.04 updated grub20:45
RonaldsMazitisstill my other ubuntu 14.04 shows only kernel 3.220:45
RonaldsMazitisI did not get any errors20:46
RonaldsMazitiswhat should I do20:54
tomreynRonaldsMazitis: so "sudo os-prober", running on your ubuntu 18.04 installation, returns what?20:54
RonaldsMazitisI did not try that20:54
RonaldsMazitisI have to restart pc again?20:54
RonaldsMazitisdoes not help20:54
ubottuPlease try and keep as much of your info as possible on ONE line - easier to follow for everyone.20:55
tomreynsince we can only support the ubuntu versions listed in /topic, which 14.04 does not belong to, all we can do is see if we can help you make os.prober running on 18.04 detect the kernels off the unsuppoorted ubuntu release you have installed.20:56
RonaldsMazitislogically if os-prober returns 18.04 on my 14.04 then it's 18.04, even if it would be 14.04 I tried doing grub-update in both os20:56
RonaldsMazitisyeah start nagging me, but I am having 14.04 because I don't like KDE 5 and I have only 27 gb partition for it20:56
tomreyni'm not nagging you, just telling you what you can hope for here and what not.20:58
tomreyni.e. working with os-prober on 14.04 is not something we can support here.20:59
Guest_8Hi can someone help me recover encrypted home dir20:59
tomreynGuest_8: encrypted how?20:59
tomreynwhich ubuntu version are you running there?20:59
TJ-Guest_8: did you miss my info earlier?21:00
Guest_8im in a livecd and have installed the utils now21:00
TJ-Guest_8: you may also need to do, prior to ecryptfs-recover-private, "sudo keyctl link @u @s"21:00
Guest_8i was in a live cd and i ran out of power21:00
TJ-Guest_8: "ecryptfs-recover-private /home/.ecryptfs/$USER/.Private" you mean?21:00
Guest_8what does that command mean21:00
Guest_8I think thats what I need21:01
TJ-^^^ from earlier21:01
Guest_8what does the key ctl commnd do?21:01
TJ-Guest_8: fixes a bug in ecryptfs's use of the kernel keyring21:01
Guest_8ok ive run that21:01
tomreynGuest_8: you should also migrate off of ecryptfs21:01
TJ-Guest_8: you may not need it, but if you get an error with ecryptfs-recover-private about missing key, use it21:01
Guest_8i am now searching for encrypted directories but it just said permission denied last time21:02
Gusj@TJ- Tj, I have installed the new generic kernel with 'sudo apt install linux-generic', have not booted from it yet, received one error "fnfxd.service: Control process exited, code=exited status=1 / fnfxd.service: Failed with result 'exit-code'/21:02
TJ-Gusj: you know where the target system's /home/ directory is?21:02
GusjThat was in red,21:02
TJ-Gusj: sorry, that was for Guest_821:02
TJ-Gusj: not sure what fnfxd is21:03
RonaldsMazitis77ok I run os-prober in 18.04 and it shows /dev/sda6:Ubuntu 14.04.6 LTS (14.04):Ubuntu:linux21:03
RonaldsMazitis77I can't get 14.04 to show other kernels21:03
Guest_8im not sure.21:03
TJ-Guest_8: have you mounted the target file-system that contains the /home/$USER/ you're trying to decrypt21:04
TJ-Guest_8: what path have you mounted it on?21:04
Guest_8that is the internal drive in the laptop it is mounts21:04
TJ-Guest_8: that's the user's home directory for a user named "badger" ?21:06
TJ-Guest_8: so, "sudo ecryptfs-recover-private /media/ubuntu/ebb2d00c-a12e-4207-93a9-f893414b3a4f/home/badger/.Private" should do it21:06
GusjFnFX enables owners of Toshiba laptops to change the LCD brightness, control the internal fan and use the special keys on their keyboard (Fn-x combinations, hotkeys).21:07
Guest_8it returns two lines21:07
Guest_8find: ‘/run/user/999/doc’: Permission denied21:07
Guest_8find: ‘/run/user/999/gvfs’: Permission denied21:07
Gusj@TJ- I found that it is a Toshiba ACPI Daemon for Linux21:07
TJ-Gusj: if it's an additional DKMS-managed kernel module, maybe it failed for the 4.15 kernel21:08
TJ-Gusj: I don't think that'll prevent you rebooting to test the 4.15 kernel though21:08
TJ-Gusj: BUT now you're told us about this module, I'm wondering if it is the cause of the lost keyboard/mouse input21:09
TheFatherMindQuestion: I have connected my Amazon Echo Dot as a bluetooth speaker for the computer. But when I use the internal speaker at the same time I get latency on the bluetooth. Is there any way to compensate for this?21:09
Gusj@TJ- Ok thank you, I thought now that maybe that has something to do it since with a special FN key one can activate/disable trackpad and probably keyboard it self to lock it?21:10
tomreynRonaldsMazitis77: what does, running on ubuntu 18.04, this return?    sudo linuxbootprober /dev/sda6 2>&1 | nc termbin.com 999921:10
TJ-Gusj: its all about the same keyboard/input devices, so it is the first thing I'd disable in case it is the cause21:10
Gusj@TJ- Is ther a way to force activate that module? or should I just reboot and test it to see what is happening? or do I try to disable it now?21:11
TJ-Guest_8: so only those 2 errors but no report about "... mounted at /tmp/..." ?21:11
Guest_8no have i not mounted it properly?21:11
tomreynRonaldsMazitis77: what does, running on ubuntu 18.04, this return?    sudo linux-boot-prober /dev/sda6 2>&1 | nc termbin.com 999921:12
tomreynRonaldsMazitis77: sorry, i had typos in there21:12
TJ-Gusj: fnfxd isn't a package in Ubuntu; I only find it in Debian21:13
TJ-Gusj: correction, found it, I typoed!21:14
Gusj@TJ- ah I understand, how could I disable it?21:14
tomreynRonaldsMazitis77: so    sudo linux-boot-prober /dev/sda6     returns nothing either?21:14
RonaldsMazitis77tomreyn https://paste.ubuntu.com/p/Yx8Nv7RmV3/21:15
TJ-Gusj: try "sudo systemctl mask fnfxd.service"21:15
TJ-Gusj: then try rebooting into the currently broken kernel and see if keyboard then works21:16
RonaldsMazitis77I installed grub-customiser and it shows all kinds of kernels21:16
Gusj@TJ- 'Created symlink /etc/systemd/system/fnfxd.service → /dev/null.'21:16
TJ-Gusj: if it doesn't then reboot again and try the 4.15 kernel21:16
RonaldsMazitis77for the 14.0421:16
TJ-Gusj: if the keyboard works with the curent kernel it points to fnfxd causing the issue21:16
Gusj@TJ- Got it thank you TJ, doing it right now..21:17
tomreynRonaldsMazitis77: so what you posted now is the output of     sudo linux-boot-prober /dev/sda6    right? i'm surprised this didn't get posted to termbin.com, maybe you have this site firewalled.21:17
RonaldsMazitis77I am restarting again , so maybe they show up21:18
Guest_8I have recovered something but it is not my home directory21:28
tomreynso, is it your long lost treasure then?21:29
tomreynis it anything that you recognize?21:30
tomreynmaybe share the directory structure on a pastebin, if it's not giving away private infomation21:31
ubottuFor posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.21:32
Guest_8ok it is now recovered I think21:36
Guest_8now, how do I make it so that i can do this on reboot21:37
colimittomreyn: I managed to narrow down my problem to the intel_lpss_pci module. If I blacklist that I can boot without pci=nobar and most of the errors that I had before disappear. Didn't solve wireless issues though21:38
lisa_Hello there! I wanted to underclock my system which I did using the cpufrequtils.21:41
lisa_I entered "cpufreq-set ..." in my terminal and my system is running at my desires clock speed.21:42
lisa_However, these change do not persists through reboots. How can I make them permanent?21:42
sarnoldlisa_: I'd suggest making a systemd unit file to execute your cpufreq commands21:44
Guest_8now that I have accessed my home directory in a live cd... How do I mae this load normally when I reboot?21:44
lisa_sarnold: these commands need to be executed with root privileges which I do by sudo and entering my password. Is that a problem when creating the file?21:45
sarnoldlisa_: systemd unit files will be executed with root privileges unless you tell it to execute the commands as a specific user21:45
colimittomreyn: Anywaym thanks again for you help. I think the issue is exactly https://bugzilla.kernel.org/show_bug.cgi?id=203485 so I'll go from there21:46
ubottubugzilla.kernel.org bug 203485 in PCI "PCI can't map correct memory resource if the BAR is 64-bit and then leads to system hang during booting up" [Normal,Resolved: invalid]21:46
glitchdEriC^^, you busy bud?21:46
Gusj@tjsimmons Hi are you TJ- ?21:47
lisa_sarnold: perfect! where can I read some documentation on how to create such a file?21:48
sarnoldlisa_: I'm trying to find something now :) systemd's insanely complicated and far too flexible, so most documenting I'm finding is vastly too detailed or vastly too basic... sigh21:49
sarnoldlisa_: here's one of the reference guides .. handy to have around but it's probably not useful immediately https://www.freedesktop.org/software/systemd/man/systemd.unit.html21:50
sarnoldlisa_: much of this looks decent https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-unit_files21:51
lisa_sarnold: the formatting of these files look very complicated; also I can't seem to find any that would be similar to the one I'd want to make and contain bash commands?21:55
sarnoldlisa_: yeah; sadly it's a lot harder these days to write something simple. the plus side is systemd's reporting and scriptability is much better, but simple things are more difficult now than they used to be21:58
sarnoldlisa_: I think you'd be setting up a oneshot service21:59
lisa_sooo it would need to contain the line >>ExecStart="cpufreq-set ......"<<? and I also need to set "Before" and "After" myself?21:59
sarnoldlisa_: the only oneshot services I wrote on my systems run every four hours, which is slightl different than your problem21:59
=== e is now known as deadk
sarnoldlisa_: ExecStart, yes; I think Before and AFter can be ignored, but you'll need the WantedBy=multi-user.target22:01
lisa_sarnold: what about using /etc/init.d/rc.local?22:02
sarnoldlisa_: oh man. if systemd still runs that, YES, that'll be way easier22:02
sarnoldlisa_: heh, searching for that gives this nice example systemd unit file :) https://unix.stackexchange.com/a/479766/706422:04
lisa_sarnold: perfect! this is pretty much what I was looking for. Sorry for the stupid questions... I really only know some commands...22:07
tomreyncolimit: i'm afraid i lost context. but i'm glad you're making good progress.22:07
sarnoldlisa_: no worries, that's why people are here :) to help those who ask :)22:09
lisa_sarnold: does it matter where I put my script? on my system there is no /etc/local/libexec/ directory like in the example given22:15
lisa_I meant /usr/local/libexec/**22:15
sarnoldlisa_: it doesn't really matter; if you really want to execute just that one command cpufreq-something .. then you could put that command in the ExecStart line -- but if you wanted something a bit longer, then putting it in a script does make sense22:16
lisa_well it is 2 commands... one for each core because I couldnt figure out how to give the cpufreq-set command mutiple targets22:17
sarnoldlisa_: somewhere in /usr/local/ is popular for scripts and programs you put on the system outside of the packaging system -- /usr/local/bin probably exists and would work fine22:17
lisa_would "cpufreq-set 0 --max 2.20GHz && cpufreq-set 1 --max 2.20GHz" work? 0 and 1 being the cores?22:18
sarnoldlisa_: hmm.. I *think* that you can give two ExecStart= lines in a config and both will be executed. try two lines, ExecStart=cpufreq-set 0 --max 2.20GHz   and ExecStart=cpufreq-set 1 --max 2.20GHz22:20
lisa_sarnold: like this? https://paste.ubuntu.com/p/pVc4w9YBr9/22:23
sarnoldlisa_: I think no "" marks, none of the ones i see on my system have quotes22:24
lisa_sarnold: alright! saved to the path! I'll reboot and let you know if it works! :)22:26
sarnoldlisa_: btw you can put the "Untertaktung des prozessors.." bit in a Description= line, so it'll show up in the systemctl status my-service    output22:26
sarnoldlisa_: woot :) goo dluck22:26
lisa_didn't work... double checking my file22:32
sarnoldlisa_: what does systemctl status my-service  report?22:33
lisa_sarnold:  Executable path is not absolute: cpufreq-set -c 0 --max 2.2GHz22:36
lisa_so it DOES need a path?22:36
sarnoldlisa_: ah! so it does! sorry, I never noticed that before. :L(22:37
lisa_no problem sarnold! youre incredibly helpful22:38
lisa_but the textfile I create on the path I specify basically just has to contain the two commands in two lines, right?22:39
sarnoldlisa_: if you go with the script, you should also start it with #!/bin/sh  and set the file executable, too22:39
sarnoldlisa_: chmod 755 /usr/local/bin/whatever  would do the trick22:40
lisa_it's three lines now, right?22:44
lisa_Ill go for reboot brb22:45
lisa_still no luck... https://paste.ubuntu.com/p/8pFMfbqHPv/... cpus are at default clock speed22:49
rfmlisa_, my guess from the "assignment outside of service" is you put the ExecStart= statement as the very top of the .service file; it needs to be after the [Service] section mark22:54
lisa_rfm: I will try a different solution more along these lines https://forums.linuxmint.com/viewtopic.php?t=20322322:56
lisa_one sec22:56
lisa_good news! that solution worked like a charm for me. :)23:03
sarnoldlisa_: was that the /etc/rc.local thing?23:04
lisa_sarnold: nooo, just putting a configuration file for cpufrequtils into /etc/default/23:05
sarnoldlisa_: aha!23:05
lisa_thanks so much for your great help though!23:06
lisa_I will have to learn about startup services another day...23:06
lisa_it seems really convoluted to be honest :)23:06
sarnoldheh, using the things that are already there is probably better in the long run :)23:06
sarnoldupstart wasn't perfect but it was sure simpler23:06
lisa_yes, i remember there was a lot of commotion in the linux community when they made the switch which was only like 5 (?) years ago?23:07
lisa_but really I don't understand operating systems to that level so I can't give any competent statement23:08
lisa_Have a good night everyone!23:08

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