/srv/irclogs.ubuntu.com/2021/07/06/#ubuntu.txt

oerheks= rescan?00:57
goddardi have a gpdwin 3 and i installed ubuntu on it.01:23
goddardbut screen orientation won't change even though i could change it just fine when "Trying Ubuntu"01:24
=== gioyik_ is now known as gioyik
=== eroc19909 is now known as eroc1990
=== Abrax- is now known as Abrax
SamianWhich term do you prefer? "Terminal", "Command line interface",04:31
matsamanSamian: to refer to what04:31
matsamanto who?04:32
matsamanI think 'terminal' and 'command prompt' are more general and useful to most people04:32
Guest59I want to disable copy past shortcut (using command) ? without installing any additional application.05:35
=== rifl` is now known as rifl
=== Guest59 is now known as atal181
=== mijora1 is now known as mijora
=== rifl is now known as Guest1228
=== rifl` is now known as rifl
=== rifl is now known as rifl`
kietoHi! Has anyone encountered this libpython error when upgrading an ubuntu 20.04.2 LTS? https://imgur.com/a/MyHEsIc07:44
kietonvm, fixed it with `apt install -f`07:48
=== Guest80 is now known as branant
=== prxq_ is now known as prxq
robI've lost the handle of the people who helped fix my DNS problems yesterday, but thought you might like to know that I reported this to Proton, who have acknowledged a bug in their client and are working on a fix.09:00
Guest22hellp09:05
Guest22when i connect ethernet wifi will disconnect09:05
Guest22any idea ?09:05
fribMy wifi gets disabled randomly in Ubuntu 20.04. I have tried all manner of power management settings configuration and nothing seems to work.09:19
fribWhat can I do to monitor for events that are causing wifi disabling?09:20
robfrib: I had a similar problem recently with a Dell XPS with Killer wifi, which is notoriously unreliable. In the end it turned out an unfixable hardware problem and I had to get a new machine on warranty.09:25
robIn my case the problem was that the wifi card would just entirely vanish from the system for a while, even after reboots, then just as mysteriously it would return again.09:25
fribrob, mine doesn't appear to be a hardware problem as it visibly gets disabled in Network Manager and I can simply manually turn it back on again09:32
theMajorgoodafternoon10:27
lotuspsychjewelcome theMajor10:28
madhanHi10:30
madhani want to config gui and vnc on ubuntu server10:31
madhanserver is Oracle cloud instance10:31
p3rLhello10:33
lotuspsychjewelcome p3rL10:34
p3rLhow do i fix or avoid this error10:34
p3rL-bash: warning: setlocale: LC_ALL: cannot change locale (cs_CZ.UTF-8)10:34
lotuspsychjemadhan: please no crosspost on several ubuntu channels10:34
p3rLwhen ever i login my server it get this error10:34
p3rLi am getting this on my ubuntu server10:34
madhanlotuspsychje yes i tried10:36
toddcp3rL: https://askubuntu.com/questions/89976/how-do-i-change-the-default-locale-in-ubuntu-server10:36
theMajorok the big question and don't get angry for asking but ubuntu vs popos, why should one choose ubuntu over popos10:38
p3rLtoddc thanks10:38
p3rLletme read this10:38
cbreaktheMajor: support by third parties for example10:39
cbreaknative zfs for example10:40
lotuspsychjestart the topic in #ubuntu-discuss if you like theMajor10:40
cbreakvarious client / server variants, and so on.10:41
iomari891is there a sleep alternative that will break with any key stroke and not just ctrl-c?10:42
=== Guest96 is now known as Ritnara
=== Ritnara is now known as Maxii
sixwheeledbeastI assume you mean in bash? a loop looking for a keystroke would be an alternative.11:02
sixwheeledbeastyou can use $SECONDS in the loop for the sleep time element.11:05
sixwheeledbeastyou could also use `date` if a specific time is important not elapsed time.11:07
goddardi got an nvme drive that is dying12:25
goddardwhat is the safest way to try and copy the disk to a file?12:26
goddardi drive gnome disks but it just craps out on me12:26
lotuspsychjegoddard: try a photorec recover on it12:27
lotuspsychjesave as much data as you can12:28
goddardill give it a shot12:36
goddardnot super critical as its just a game save i want off it12:36
goddardbut it would be nice to not have to play that far12:36
stevenm__hey at some point I told a ubuntu 18.04 box to stop loading the graphical UI on startup ... and now I can't figure out which service needs re-enabling and starting12:39
stevenm__I'd have thought lightdm - but it doesn't seem to be there12:39
goddardgdm ?12:39
oerhekssomething with graphical target ...12:39
stevenm__root@prometheus:/lib/systemd/system# grep -RIi graphical .12:40
ioriasudo systemctl set-default graphical.target12:40
stevenm__yeah I looked at that :P12:40
stevenm__aha!12:40
oerheksioria, +112:40
* stevenm__ tries rebooting12:40
=== llorllale1 is now known as llorllale
stevenm__nah that doesn't seem to have done it12:42
stevenm__graphical.target                                                                             loaded active active    Graphical Interface12:42
stevenm__active  - but not running12:42
ioriastevenm__, so you did something else; can you restart gdm with  sudo systemctl restart gdm ?12:43
stevenm__ioria, according to 'dpkg -l' this system is lightdm, not gdm12:43
ioriaubuntu 18.04 has gdm12:43
stevenm__and 'systemctl enable lightdm' just gives me a warning12:44
oerhekssystemctl enable gdm12:44
stevenm__ah sorry - good point, this is actually ubuntu mate 18.0412:44
oerheksoh12:44
ioriastevenm__, sudo dpkg-reconfigure lightdm12:44
stevenm__k - it did... something? returned me to the prompt anyway12:44
oerheksno message = ok12:45
stevenm__I know :)12:45
stevenm__doesn't mean ok means it did anything useful :P12:45
ioriastevenm__, how did you 'tell' ubuntu to not load the graphical UI  ?12:46
stevenm__no idea - was probably over a year ago - or more12:46
stevenm__aha! graphics on boot!12:46
ioriastevenm__,  cat /proc/cmdline12:46
theMajorstevenm__: did you manually adjusted the runlevel of the system12:46
stevenm__that did it :)12:46
theMajorstevenm__: what was the solution?12:47
stevenm__possibly that dpkg-reconfigure of ioria's ?12:47
stevenm__it's booted straight into the desktop though - no login screen12:47
stevenm__which is ... odd12:47
oerheksoh, auto,ogin12:48
theMajorstevenm__: that makes total sense. Hmm maybe check if autologin is enabled12:48
iorianot if you use autologin12:48
stevenm__yup it's on in /etc/lightdm/lightdm.conf12:48
ioriaor edited /etc/lightdm/lightdm.conf12:48
stevenm__:)12:49
ioriawell, iirc, that file is not default (in that location) you need to create it12:49
theMajorstevenm__: glad it is solved for you12:49
stevenm__this "desktop" is actually just a shallow-depth 1U rackmount in a datacentre12:50
ioriai see12:50
stevenm__originally I wanted to remote into it using NoMachine... but then found it wasn't very quick12:50
stevenm__so then disabled the graphics.. swapped to X2Go12:50
stevenm__but now I'm sick of X2Go and I'm swapping back :)12:50
theMajorstevenm__: my experience with nomachine was actually pretty good never used X2GO so can't compare12:52
stevenm__theMajor, I think since NoMachine 4 it very much depends on how good the GPU is at helping with the encoding12:53
stevenm__which this machine isn't great at12:53
theMajorstevenm__: the only thing with nomachine is that it doesn't like wayland12:53
stevenm__but there are so many quirks and issues with X2Go (even the latest firefox has issues) and I've found with one false move it'll kill your sessions :(12:53
stevenm__theMajor, actually I've got a Fedora 34 box running gnome 40 & wayland... and I can NoMachine into it just great12:54
stevenm__and it works far better than the built in VNC & RDP of gnome-remote-desktop which is now in gnome 4012:54
oerheksgnome40 should be a lot better with remote access, but ubuntu is not that far yet.12:56
stevenm__yeah I'm hoping to use Ubuntu (rather than Ubuntu MATE) on my work lappy when it hits 22.04 - with hopefully both RDP and AD out of the box12:56
theMajorstevenm__: have to be honest that i have not tried it in gnome40 yet. i was running on xorg than for the time being. but hey maybe i switch and give it a try again as i have noticed that wayland performs better than xorg. I don't know if it is much better but they developed it for a reason12:57
oerheksNope, it will not be introduced with an LTS.12:57
stevenm__40 won't be?12:57
goddardany way i can rotate my screen from an ssh session?12:57
goddardi wanna see what is going wrong and why the screen just goes black12:57
stevenm__goddard, maybe an xrandr command?12:58
stevenm__with DISPLAY=:0.0 at the start12:58
oerheksrotating screen, does that help?12:58
goddardi tried xorg and wayland12:59
goddardits the gpd win312:59
oerheksoh wait, impish 21.10 will have gnome41 https://discourse.ubuntu.com/t/impish-indri-release-schedule/1854012:59
goddardits screen is a sideways screen12:59
goddardmakes no sense whatsoever but that is just the way it is12:59
stevenm__goddard, maybe?  DISPLAY=:0.0 xrandr -o right12:59
goddardthanks ill try12:59
stevenm__(or 'left', or 'normal' or 'inverted')13:00
goddardplasma was able to rotate no problem13:00
goddardonly gnome has some kind of issue13:00
stevenm__oerheks, are you trying to say there will definitely be no GNOME 40 in 22.04?  and if you are, how can you know for sure?13:00
stevenm__i mean in 9 months GNOME 40 might be considered stable enough to support for 5 years13:01
oerheksi found 21.10 will have 41, see last post13:01
stevenm__yeah I saw that too13:01
stevenm__which is why it made no sense you saying 22.04 wouldn't have 40 :P13:01
stevenm__oh yeah - i missed your link13:02
oerheksstevenm__, if it was introduced, not with an LTS13:02
goddardyeah the command works13:03
goddardbut still black screen13:03
goddarddoing DISPLAY=:0.0 xrandr -o normal doesn't bring it out of the blackness of the void13:03
stevenm__hurrah - never done that before, yay for 2 seconds of googling (although it helps to know what to google :P)13:03
goddardi guess ill just use plasma13:11
theMajori never tried rdp in gnome 40 is that possible out of the box?13:12
goddardvnc is13:12
locsmifHi all. I install lsyncd and it works when I run it with options on the foreground but won't start as a service. I've tried to look at logs, but don't find any relevant errors (yet). It seems to be old-fashioned in that it start via a script in /etc/init.d/lsyncd ..anybody seen this before?13:12
goddardthey call it screen sharing in ubuntu13:13
_moep_hi there! Is it possible to restrict the rights so that a user is not allowed to install new snaps (via snapd) without sudo?13:17
theMajorgoddard: so basicly it is vnc and not actual rdp13:18
goddardit has a rdp client13:18
goddardbut not rdp server13:18
theMajorgoddard: and that last one would really be helpfull13:19
goddardeveryone has their own use case i suppose13:19
goddardpersonally never needed it13:19
theMajorgoddard: if that option was there we would not have to fiddle with things like nomachine. no i am a more terminal kind of guy so i can always ssh in and stuff but sometimes you just need your desktop for whatever reason13:20
theMajorgoddard: even now i am ssh-ed into my machine from work13:20
theMajorgoddard: meaning this is my irc from home :)13:21
oerheksmoep any new user has no sudo rights13:21
oerheksonly the 1st created during install *13:21
=== cmagina_ is now known as cmagina
goddardtheMajor so why not vnc?13:24
goddardpersonally i dont want to use any microsoft technologies13:24
goddardno samba, rdp, edge, vscode, etc..etc..13:24
goddardeven if its just a translation technology created by some one else like samba13:25
goddardbut i understand some sysadmins may need to work in an environment with other OS13:25
goddardi dont13:25
goddardusually you get a better experience doing it the purely Linux way13:25
goddardproton is the only thing i tolerate at the moment13:26
rbasak_moep_: isn't that how it is already?13:26
bigpodwell i use edge all the time and vscode and samba and am primarily c# programmer honestly i dont care if microsoft created it to me at the end of the day that isnt a reason to use good piece of software13:27
gordonjcpgoddard: interesting idea13:27
gordonjcpgoddard: what's the linux equivalent of vscode?13:27
bigpodi dont am just a hobby programmer ;)13:27
stevenm__goddard, i'm not particularly happy that the wayland-effort (in it's many many ways) doesn't collectively seem to have considered an alternative for VNC or X11 forwarding13:27
goddardneovim is better than vscode13:28
stevenm__instead we're seeing GNOME building in freerdp's RDP server implementation into their desktop / wayland13:28
=== RedNifre_ is now known as RedNifre
goddardand much lighter13:28
gordonjcpgoddard: "better" in what way?13:28
stevenm__which is - err... nicer than VNC I guess?  but really? just imitating MS?13:28
goddardbut still as a programmer myself a full IDE will always be better13:28
goddardand quicker to get going13:28
goddardif you dont need quick then learning NeoVim will be tremendously useful13:28
bigpodgordonjcp: u havent yet found an equivalent for vscode13:29
goddardstevenm__its a different protocol13:29
stevenm__what is?13:29
gordonjcpbigpod: not really, although I've only relatively recently started using vscode and it's quite a game-changer13:29
goddardvscode is a web browser that consumes massive amounts of ram to show a text file13:29
goddardit is pretty silly to use it13:29
lotuspsychje!discuss13:29
ubottuWant to talk about Ubuntu, but don't have a support question? /join #ubuntu-discuss for non-support Ubuntu discussion, or try #ubuntu-offtopic for general chat. Thanks!13:29
goddardsorry13:29
lotuspsychjeplease stay ontopic guys, we got a nice #ubuntu-discuss channel13:30
goddardill be in offtopic13:30
bigpodstevenm__: honestly anything is better then VNC13:30
_moep_rbasak: Im not really sure, when I install the daemon for non-root users, its possible13:33
_moep_but tbo: Im new to snap13:33
punkgeekI have encrypted my total hard drive in ubuntu VM. clearly, the sysadmin can have access like physical access in the virtual environment. But there is a problem, every time my VM has been restarted, It requires entering the password to boot up. Is there any way to solve it? to boot up without entering the password?13:42
gordonjcppunkgeek: yes, don't use encryption13:42
rbasakpunkgeek: how do you expect the system to get the decryption key?13:44
rbasakThere are other options. You can provide a script that obtains the key however you want.13:45
dob1hi, where can I find information about motherboard compatibility ?13:45
dob1google the motherboard model + linux  gives me not much infos13:45
ducassedob1: ubuntu has a compatibility list, but it's mostly for assembled systems13:48
ducassethere's no database for stuff like that i know of13:49
bigpodmost if not all montherbards should work with ubuntu13:50
bigpodmotherboard generaly doesnt have anything to do with linux compatibility13:50
punkgeekActually, I want to protect my data in the webserver directory. But it should be mounted after boot up automatically. Do you have any suggestions?13:55
lotuspsychje!hardware | dob113:55
ubottudob1: For lists of supported hardware on Ubuntu see https://wiki.ubuntu.com/HardwareSupport - To help debugging and improving hardware detection, see https://wiki.ubuntu.com/DebuggingHardwareDetection13:55
gordonjcppunkgeek: yes, don't use disk encryption13:55
punkgeekFor example, can I use a dynamic password and receive it from an API server to mount it?13:56
gordonjcppunkgeek: maybe, but why?13:57
gordonjcpdisk encryption doesn't actually solve anything13:57
punkgeekSo how can I protect the files from physical access?without encryption13:59
gordonjcppunkgeek: you can't14:00
gordonjcppunkgeek: unless you enter the key yourself on boot-up14:00
=== genii-core is now known as genii
gordonjcpif you automatically decrypt the drive, how do you stop someone else doing that?14:00
gordonjcppunkgeek: think about your threat model14:00
gordonjcppunkgeek: what are you actually trying to protect against?14:00
ogra`punkgeek, you could get a USB key with physical number pad that handles the encryption on HW level internally ...14:02
leftyfbogra`: that would still require manual intervention14:04
ogra`yes14:04
leftyfbpunkgeek: if anything automatically decrypts the drive, then there's no point in encrypting the drive14:04
ogra`well ...14:04
ogra`if you want to protect yourself from drive theft this is actually a proper protection ...14:05
punkgeekI've thought about USB key and it is good but I can't give it to sysadmin14:05
ogra`but thats about the only use-case i guess14:05
leftyfbpunkgeek: in your use case, there is no point in encrypting the drive if you're just going to automate decrypting it14:06
gordonjcpexactly14:06
gordonjcppunkgeek: where physically is the data?14:06
leftyfbpunkgeek: either encrypt it and someone decrypts it at every boot or you don't encrypt it14:06
gordonjcppunkgeek: how likely is it that someone will physically attempt to steal the disk that the data is on?14:06
bittinhey14:07
gordonjcphello14:07
punkgeekit can happen from our communist government. and I can't move the data outside the country.14:08
leftyfbpunkgeek: then come up with a policy of manually decrypting the drive14:08
gordonjcpyup14:08
gordonjcpyou will need to enter some sort of key that only you know14:09
gordonjcpautomatically decrypting the drive won't help you here14:09
leftyfbpunkgeek: either way, this is beyond the scope of this channel. Feel free to ask for more input in #ubuntu-security14:09
gordonjcppunkgeek: also, consider that this is the least likely way that anyone will exfiltrate your data14:09
gordonjcppunkgeek: you basically have two distinct infosec threats14:10
gordonjcppunkgeek: your two threats are Mossad, and Not-Mossad14:10
gordonjcppunkgeek: if Mossad are after your data, you can't do anything about it.  They'll abduct you, beat the password out of you, shoot you on national television, and then say they didn't have anything to do with your mysterious self-inflicted decapitation by rocket launcher14:11
leftyfb!ot | gordonjcp14:11
ubottugordonjcp: #ubuntu is the Ubuntu support channel, for all Ubuntu-related support questions. Please register with NickServ (see /msg ubottu !register) and use #ubuntu-offtopic for other topics (though our !guidelines apply there too). Thanks!14:11
gordonjcppunkgeek: if Not-Mossad is after your data, then generally speaking ensuring your code has no obvious remote exploits and you don't reuse passwords on hornypornygirls.ru is going to be sufficient14:11
leftyfbgordonjcp: please stop14:12
gordonjcppunkgeek: but in general, disk encryption is going to be a tiny piece of your puzzle14:12
leftyfbgordonjcp: very innapropriate14:12
punkgeekWhat about this theory. I can write a script to find the hard disk hash. then I send it to an API server. If the has is be correct, the API server will send the password to the VM to decrypt the partition. So in this case, If someone goes through the rescue mode, the total disk hash wouldn't be correct.14:19
gordonjcppunkgeek: I don't know if that would work14:21
bittinHello, Any SRU/MRU meeting today ?14:21
gordonjcppunkgeek: the hash would change all the time surely?  Like, as you write logs/edit pages/log in and out storing stuff in wtmp?14:21
leftyfbpunkgeek: it's still automated. No point. Please bring further ideas to #ubuntu-security.14:23
leftyfbbittin: #ubuntu-devel maybe?14:23
punkgeekOkay, Thank you sir14:23
bittinleftyfb: #ubuntu-meeting but thx anyways14:23
BluesKajHi all14:33
=== Pony is now known as Guest7465
FreeBDSMHi. Even after reading the docs https://www.freedesktop.org/software/systemd/man/systemd.mount.html#x-initrd.mount - I don't really understand what the mount option 'x-initrd.mount' in /etc/fstab does. Could someone, please, explain?14:35
rbasakhttps://www.recompile.se/mandos is interesting14:36
rbasakBut separately, punkgeek could you just have a separate partition and filesystem for the one directory you want encrypted?14:37
rbasakThen boot without that, and unlock and mount it manually afterwards14:37
leftyfbrbasak: encrypted home gives the same functionality and has already been suggested in #ubuntu-security14:44
=== sharperguy_ is now known as sharperguy
MaxiiHi, I have limited space on an SSD and would like to have an encrypted boot and root partition on the ssd, and then have an encrypted /home partition on a separate hard drive. Is this possible?15:05
MaxiiI'm assuming I could just follow this https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019 and create another luks that has /home in, just like for / and /boot ?15:05
* cbreak has an encrypted root pool via zfs native encryption15:09
cbreakand zfs encryption is by dataset, so my homedir could have its own key15:10
=== Guest53 is now known as Guest50
=== Guest50 is now known as Guest53
asd_hey, my j1800(asrock d1800m) can't play any media unless pulseaudio is killed in a loop; it doesn't detect the analog output from realtek sound card and the hdmi out audio is broken/no audio plays15:20
asd_can someone help me out; even if I don't kill pulseaudio in a loop15:20
asd_no audio plays15:20
asd_if I just reboot rn and launch it up it won't really work at all15:21
asd_other than letting me superficially set loudness15:21
asd_pulseaudio daemon doesn't write any errors to stderr15:23
asd_mpv/application doesn't respond with any failures15:24
asd_but it also doesn't play the audio it decodes15:24
asd_but at the same time can partially(at times with dropped frames) decode 1080p@60 vp9 video15:24
shimblesi upgraded focal->groovy->hirsute, and now vncserver with startplasma-x11 & in ~/.vnc/xstartup doesn't work, complaining about not being able to find the DISPLAY; DISPLAY=:1 and VNCDESKTOP is also set correctly15:57
Mekaneckshimbles: haven't you been through all that yesterday with the same question?15:58
shimblesi'm not sure i understand the question; is there additional information i can provide that will help you suggest a way to figure out how to fix it?16:00
Mekanecki don't have that knowledge. Just saying that you been here yesterday too with the same issue and was helped by others?16:01
shimblesi think you need to stop talking to me, now.16:01
leftyfbshimbles: echo $XDG_SESSION_TYPE16:01
Mekaneckif nothing works either reinstall 21.04 and see if it works then if not, stick with LTS16:02
leftyfbshimbles: please be respectful to those that are offering assistance16:02
Mekaneckthanks leftyfb16:02
shimbleshe's not offering assistance, he's telling me to stop talking16:02
peetaurHowdy...I have/had a headless Ubuntu 18.04 machine where I did "apt install ubuntu-desktop" and have 2 problems... (1) is when I `systemctl start gdm` the thing that pops up has "Welcome!" instead of login, and says my user already exists so can't create one. How do I get the login? (2) `systemctl enable gdm` complains "The unit files have no installation config..." so can't enable.16:02
Mekanecki do not shimbles16:02
shimblesif he continues to stalk me around different channels, I will file harassment charges and subpoena his identity16:02
Mekanecksigh16:02
Mekaneckjust do as you please, IF you actually know what harrasment is16:03
shimbles XDG_SESSION_TYPE was set to tty16:03
leftyfbshimbles: ok, No sense in helping someone who is hostile and threatening legal proceedings. good luck.16:03
shimbles[10:01:15 AM] <Mekaneck> i don't have that knowledge. Just saying that you been here yesterday too with the same issue and was helped by others?16:04
shimbles[10:01:25 AM] <shimbles> i think you need to stop talking to me, now.16:04
shimbleshe literally showed up here and in #kde to chastise me for asking the same question yesterday, and not managing to fix it16:04
jailbreakshimbles, just ignore him. he's the "grumpy" dude of the channel. don't worry about it! :-)16:04
Mekanecktroll elswhere shimbles16:05
Mekaneckignore it is16:05
shimblesyou are the one trolling. you are not providing assistance. you are pointing out to others that i asked the same question yesterday, and that they should not help me.16:05
Aisonhello, pulseaudio is not started here after reboot16:05
AisonI always have to start it manually (and then it works...)16:05
AisonI tried: systemctl --user reenable pulseaudio16:06
shimblesleftyfb hopped on to add to your toxicity without reading what you actually said; and what you actually said "look, he was in here yesterday!!! dont help him!!!" made no sense.16:06
Aisonbut then I get the error: Failed to connect to bus: No such file or directory16:06
Aisonany idea what's wrong? I guess it's related to dbus16:06
Mekaneckshimbles: it tried to help but if you see it that way, have a nice day16:06
shimblesyou did not try to help. where did you provide technical assistance?16:06
Mekanecksigh16:07
oerheksMekaneck, now stop please, thanks.16:07
leftyfbshimbles: in reading your posts from yesterday, it looks like the only purpose you have for a GUI and VNC is to access a web URL listening on localhost. You know you can still access this by way of your remote machine and ssh right?16:07
Mekaneckoerheks: i'm doing nothing wrong... but ok, if you guys see it that way...16:07
shimblesleftyfb i am specifically trying to get Apache Guacamole to continue to work on Ubuntu Hirsute. Guacamole itself is working, but something broke from groovy to hirsute such that I can't get the vnc server to serve up startplasma-x1116:08
oerheksshimbles, are you in Wayland or Xorg session?16:08
oerhekswayland is standard now ..16:09
leftyfboerheks: I asked the same, but was told "tty" which means they are running the command over ssh and not locally16:09
shimblesoerheks I am on AWS, the instance was upgraded from focal->groovy->hirsute; i have not figured out how i might disable any wayland config changes as of yet; i read that for KDE Plasma on Hirsute, wayland is not the default yet.16:09
peetaurI guess I solved #1 ...   just let it create a useless user, then `killall -u uselessuser ; userdel -r uselessuser`16:11
shimbleson focal and groovy, i had not yet managed to get vncserver to run at startup and was running it manually, and it was working; so my ~/.vnc/xstartup file, which contains xrdb $HOME/.Xresources; startplasma-x11 &     at least used to work16:11
oerheksshimbles, get a fresh image from aws? .. i would not do such upgrade path.16:11
oerheksand make sure you run xorg ..16:11
shimblesoerheks since I am going to patch QtWebEngine, i want to be fully upgraded; and i need QtWebEngine running in Guacamole to test my patch16:12
shimblesi have focal / groovy images which work, but the software is somewhat out of date; i could compile the full stack (chromium, qt, pyside) although that's rather large;16:13
shimbleson that topic, "make sure you run xorg" how would you recommend I do that? via startx? I was not doing that previously16:13
shimblesfurthermore, since DISPLAY and VNCDESKTOP are set correctly when ~/.vnc/xstartup runs, isn't X being started correctly?16:14
shimblessince i can't fix it, i really have no choice but to compile everything on groovy; still, it would be sweet to get Plasma working on Guacamole on Hirsute on AWS; i feel like there must be some minor thing i can fix :/16:16
shimblesi wonder about disabling wayland? what do you think oerheks, perhaps something with systemd?16:17
oerheksecho $XDG_SESSION_TYPE , then use https://ubuntu.com/tutorials/ubuntu-desktop-aws#1-overview16:17
=== Droid is now known as Mekaneck
=== Rey is now known as rey
BinarySaviorhello, how can i create a "dummy connection" for debugging purposes to any ip (ex 127.0.0.1) on a specific port (ex, port 4000)16:31
BinarySaviortcp connection16:31
rbasakBinarySavior: to listen, or to connect?16:33
rbasaknetcat (nc) can do both16:33
rbasakOr you might be interested in socat16:33
BinarySaviori have a python script that monitors for any connection on a specific port, i just want to create a connection to activate parts of my python app16:34
BinarySaviorit doesn't listen, just verifies that a connection exists16:35
BinarySaviorrbasak, nc worked perfectly, i just set up a listener on localhost then connected to it16:46
BinarySaviorty16:46
punkgeekBefore I've decrypt a directory in the ubuntu that people can have physical access, what cases should I checked before decrypting the data? because it needs to be in mounted position until restart. For example, I should check  the root password not to be changed, there is not another account has been added, there is no running bad script or a script won't be run after a while to change the password.17:15
shimblesoerheks i found switching to gnome on hirsute (which allowed me to disable wayland) didn't work either :/17:17
shimbleslooks like i've got some make -j in my future17:17
punkgeekLet me explain in another way. I have a debian VM, I'am suspect the sysadmin to stoling my encrypted data. So when ever I login to my system and want to decryp my encrypted partition, What cases should I check before mounting? For example, the sysadmin may go to in the rescue mode and add another user with sudo access, So when I mount my encrypted partition, he can access to my data.17:27
punkgeekor ubuntu VM, doesn't matter*17:27
leftyfbpunkgeek: your situation is no to be trusted, period. You have no way of knowing what is done to your VM by any means. It cannot be trusted no matter what you do. That said, your question is beyond the scope of this channel. Please stop cross-posting. Wait for an answer in #ubuntu-security or try #ubuntu-offtopic. You are going to get the same answer no matter where you ask though.17:29
=== Marco_Polo is now known as Guest9457
=== Guest9457 is now known as Marco_Polo
dreamongood evening. having issue, to suspend my laptop. "sudo pm-suspend" works. but it dont locks screen, after awaking. systemctl suspent dont work .. it only locks screen17:37
dreamonhttps://pastebin.ubuntu.com/p/sWjwdCDgwy/17:38
=== jailbreak_ is now known as jailbreak
=== not_phunyguy is now known as phunyguy
goddardis it possible to black a screen but not shut it off?18:16
sarnoldgoddard: xset dpms has several different tools for that kind of thing, though what they do to your device is dependant upon your device18:17
sarnoldgoddard: you can also just put up a big black window, some screen lockers do that kind of thing18:17
goddardyeah that is what i was thinking18:18
goddardI have an OLED so i want to save the screen from any chance of burn in, but then this OLED has some bug with Nvidia which prevents it from the signal going back to the screen once its shut off18:18
goddardreally strange18:18
goddardif i wait long enough i can get it to come back18:19
sarnoldewww18:22
goddardnvidia is such a pain sometimes18:22
cart_manHey everyone. If I added this Repo like -> sudo add-apt-repository ppa:beineri/opt-qt-5.12.2-bionic    ...and did the update. How can I remove it just for safety18:22
sarnoldcart_man: depending upon what you want to do, you can either comment the lines out of your sources, in case you want to put it back again at some point.. or you can use ppa-purge from the ppa-purge purge package to remove the ppa and everything that was installed from it18:23
goddardIn gnome settings "Performance" option is missing.  See - for example of what it should look like https://askubuntu.com/a/1343879/3757718:24
goddardWhat i see https://ibb.co/fn5vKj918:25
goddardnvidia wont support HDMI-CEC18:30
goddardhttps://forums.developer.nvidia.com/t/hdmi-cec-support/3144518:30
goddardif they did it would probably make this bug go away18:30
cart_mansarnold: I always get shit with adding these repos... "Held broken packages" is basically a guaranteed for me so I just want to clean them afters18:33
cart_manafterwards18:33
cart_mansarnold: Where is that file located that I can comment it out in??18:34
goddardcart_man look at ppa purge18:35
goddardits a gui to manage your ppas18:35
goddardsuper simple and usually works without incident18:36
cart_mando I install it first?18:36
cart_manHow do I run it?18:36
cart_manppa purge seems ...well18:36
cart_manI can not run it like that18:36
goddardy-ppa-manager18:37
goddardif you want a gui18:37
sarnoldcart_man: it'll be in /etc/apt/sources.list or a file in /etc/apt/sources.list.d/18:38
Slartiba1tGuys? I used to have 2 external monitors connected to my laptop, one displayport and one HDMI. Now I've added another displayport monitor, so I have one HDMI cable and a displayport hub connected to the laptop. It works in the dualboot Windows 10, but when I try to boot Ubuntu 20.10 it freezes during boot. If I restore the old setup with 2 monitors Ubuntu boots as well. Anyone had similar problems?18:48
Slartiba1tShould I file a bug report somewhere? (Where? Never had this kind of problem before..)18:48
cart_mangoddard: Thanks thats a nice too18:52
cart_mantool18:52
cart_manALSO.... I am trying to build a program but my QT libs inside /usr/local/lib/  overshadow the libs that I am trying to use for the build and HENCH my build fails. How can I temporarily remove the libs from being used by my build? I still need /usr/local/lib in the path since other things need the libs in that path18:53
cart_manruntime library [libQt5Network.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rt/Qt/5.12.11/gcc_64/lib18:54
punkgeek I'm going to use remote ssh for enter LUKS password. Is the interface name same as the network configuration file? I've tried this but it doesn't worked: I use this configuration but it doesn't works: GRUB_CMDLINE_LINUX="IP=51.68.177.130::51.68.177.254:255.255.255.0:linux:ens160:none"18:55
TJ-Slartiba1t: I'd do some isolation/combination tests first. Will it work with only the displayport hub and 1 DP monitor? the hub and 2 DP monitors? the hub, 1 DP monitor, 1 HDMI?18:55
TJ-punkgeek: no - at boot time it's the kernel name - you'd be better using the interface MAC address18:56
Slartiba1tTJ-: Fair enough. I'll try to cover all the cases.18:57
punkgeekTJ-: How can I find the interface name from the kernel?18:58
TJ-punkgeek: Ethernet interfaces start at eth0 and the number increments for each discovered interface18:59
TJ-punkgeek: I'm not sure if NFS's ip= can do MAC addresses now I'm reading up on it. I'm pretty sure I've used it that way many years ago but kernel admin guide doesn't mention it. However, the ip= command-line option is intercepted and interpreted by the initramfs-tools /init shell script and there are hooks to handle ip= in those19:01
TJ-punkgeek: aha, yes! see "/usr/share/initramfs-tools/scripts/functions" and the function configure_networking() where it translates a BOOTIF=01-aa-bb-cc-dd-ee-ff that is set by PXE boots to a corrected MAC address e.g. aa:bb:cc:dd:ee:ff then looks up which device name has that MAC address and sets the IP= DEVICE accordingly19:06
TJ-punkgeek: so you can 'pretend' it booted using PXE and add a BOOTIF=01-yo-ur-ma-ca-dd-re ss on the kernel comand line and moit a DEVICE from the IP= line and it should fill it correctly for you19:07
TJ-s/moit/ommit/19:07
=== terrorjack4 is now known as terrorjack
diskinHi all, I was in a meet video call, when the sound started repeating and the system become unresponsive to mouse or keyboard. REISUB did not do anything. Powercycled and found nothing in logs for the moment of the crash. How to debug such problems?19:13
sarnolddiskin: maybe you could make progress using a crash kernel to collect information when it hangs, but that's not the easiest thing to set up, and then you'd have to figure out how to do the kernel debugging. it wouldn't be fun, unless that's your idea of fun..19:15
oerheksthis 'meet'? https://meet.google.com/19:16
sarnolddiskin: it's perhaps more approachable to remove devices from your system one at a time and try to recreate it19:16
sarnolddiskin: or perhaps if you've got 'funny' kernel modules loaded like vbox, remove those, and try to recreate it19:16
=== gr33n7001 is now known as gr33n7007h
sarnoldit's also not fun, but far more approachable if you're not good at debugging kernels19:16
sarnoldanother possibility is that your power supply just isn't up to the task; I've seen power supplies that were pushed too far, or failing, do things like that19:18
diskinoerheks, yes, this meet.19:28
diskinsarnold, re: power supply, it's a laptop with a working battery, plugged in to AC power source, does it matter?19:29
sarnolddiskin: ah that's probably enough unless you've got crazy usb accessories attached19:29
oerheksif that runs in your chrome browser, look there for logs? .. or wait,  logs aren't generated automatically. You need to turn on logging first. https://support.google.com/chrome/a/answer/6271282?hl=en#zippy=%2Clinux19:29
diskinand I do have virtualbox installed, some modules loaded... but it happened 1st time in a year or so. normally the system is very stable, upwtime several weeks19:30
diskinoerheks, are you saying that Chrome could have logged the system crash in it's own logs?19:31
oerheksonly when enabled, yes.19:31
sarnoldwhen the sound card starts playing the same clip over and over again it means the kernel wasn't able to put new audio data in its buffer in time, so it's just playing what it's got.. probably the machine is hosed enough at that point that google meet logging won't be able to help19:31
diskinyes, the sound card was repeating some part of a word which was just said by a call participant, initially I thought it was something with his machine, but very quickly understood it was mine :)19:33
oerhekswhen using meet with 5+ users, you will need 4 gb ram...19:35
diskinoerheks, I have 16Gb.19:36
oerheksohhh, you could do HD, that needs 8 gb19:36
oerheksno, without those logs no way telling what went wrong.19:36
diskinBut I also have a lot of browser tabs open (bad habit!) and memory consumption is high. But I try to avoid swapping (also have 2Gb swap partition)19:36
Guest27Hi y'all. I'm freaking out. Today I turn on my laptop and it wouldn't boot so I end up turning off and back on again and I started getting something along the lines: Error dev sda blk_update_request, RUN fsck MANUALLY etc19:39
Guest27So I googled a bit about it and I landed on a website that suggested running an Ubuntu live cd and running 'fdisk -l', getting what the device was and running fsck etc19:40
Guest27I did that and got something along the lines 'magic number yada yada superblock'19:41
Guest27so more googling took me to 'you need to run e2fsck etc' which I did but when trying to restart from one of the superblocks, I'd either get an dos partition table error or I/O error19:41
Guest27I turned it off and on again since I needed to go afk and decided to come back later (now) to get help from IRC19:42
Guest27I just turned it on and it says "Error reading block XXXX (Input/output error) /dev/sad1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY19:43
Guest27fsck exited with status code 419:43
Guest27The root filesystem on /dev/sda1 requires a manual fsck19:43
leftyfbGuest27: it's more than likely a bad drive. I would get a new one ASAP, leave your machine off till you can restore it and then once your new one is installed and Ubuntu re-installed, reinstall your applications and restore from backup19:43
=== panda_man is now known as koala_man
Guest27leftyfb is there a way to remount the current drive once I have a clean install on a new hdd?19:44
Guest27there were some things i hadn't backed up yet19:44
Guest27i know this is on me. i just haden't gotten around to backing up some files in the last week19:45
lounge-userHelp! My DisplayPort is not detected ever since updating my Lenovo ThinkPad T510 to 20.04 from 18.0419:45
leftyfbGuest27: worry about that once you're back online with a new drive. The more you power that on and mess with it, the less likely you are to retrieve anything from it19:45
=== lounge-user is now known as jdaviescoates
jdaviescoatesHelp! My DisplayPort is not detected ever since updating my Lenovo ThinkPad T510 to 20.04 from 18.0419:45
Guest27ugh... i did mess with it19:45
leftyfb!repeat | jdaviescoates19:45
ubottujdaviescoates: Don't feel ignored and repeat your question quickly; if nobody knows your answer, nobody will answer you. While you wait, try searching https://help.ubuntu.com or https://ubuntuforums.org or https://askubuntu.com/19:45
Guest27hopefully i'll be able to restore something19:45
jdaviescoatesleftyfb thanks, I just figured if someone replied to lounge-user I'd miss it after changing nick19:46
Guest27how should i go about it btw? leftyfb19:46
Guest27i have this laptop with ubuntu as well19:46
Guest27how could i restore the old drive?19:47
leftyfbGuest27: Using an external, usb drive reader via USB, mounted as read-only. Or ideally, using something like ddrescue to dd an entire image to a new drive and location for forensics on the created image19:48
jdaviescoates /msg NickServ VERIFY REGISTER jdaviescoates 85lbGDcTwy9cvwFy19:49
leftyfbjdaviescoates: you might want to pick a different password now19:49
jdaviescoateshaha19:50
jdaviescoates /NickServ VERIFY REGISTER jdaviescoates 85lbGDcTwy9cvwFy19:50
leftyfbjdaviescoates: please go to #libera for help on how to use IRC properly19:50
JonathanDIt's just a verify key, so it's not leaking the pw :)19:51
jdaviescoatesit's been too long, totally forgotten how to use this! (but not the first time I've done that - although that's just... yeah what JonathanD said19:51
jdaviescoatesI have previously leaked pw in a similar fashion before too though! :P19:51
Guest27leftyfb thank you. i actually have a usb drive reader, so i guess i should plug that and then mount it as read only and then i should be able to access whaterver it's in it? since i'm not booting from it19:51
leftyfbGuest27: I would go with the ddrescue option first, if you've got the space19:52
=== jdaviescoates is now known as qopi
Guest27leftyfb what do you mean?19:52
=== qopi is now known as jdaviescoates
leftyfbGuest27: https://help.ubuntu.com/community/DataRecovery#Imaging_a_damaged_device.2C_filesystem_or_drive19:53
Rotofeiulhi! Will work my nvidia GeForce 1660 GTX on Ubuntu 21.04?20:07
oerheksRotofeiul, no reason why not; sudo ubuntu-drivers autoinstall # it will install recommended ones20:09
sarnoldnvidia has a big table somewhere saying which cards they still support and with which drivers20:09
sarnoldit might be faster to just try it out as oerheks says ..20:10
Rotofeiulthanks!20:13
bw2hello20:23
nomike_Hi20:33
nomike_Is it possible to install the ubuntu installer in a running/installed ubuntu? I want to install ubuntu on a portable USB thumb drive, so I have my personal full installation which I can boot on my work laptop which is running Windows 10 without influencing any of the data on internal hard drive.20:35
TJ-nomike_: there are a couple of ways you can do that. Probably the easiest is to create a virtual machine and set the USB thunb drive, attach the Ubuntu installation ISO file as a virtual CDROM and boot it and go through the install as normal.20:36
nomike_I've booted from live USB drive A and am installing to USB drive B and it works well, though it is painfully slow, the setup process is running for a couple of hours already) and I was jyst curious if I would be able to just install the installer on my other laptop which has a running installtio of ubuntu.20:36
=== nomike_ is now known as nomike
TJ-nomike: it's a 30 second task to create a virtual machine and attach a USB device directly to it as its storage device, and attach the installer ISO file as CDROM and boot the VM from that. Your slowness is likely due to reading/writing USB2 devices20:44
oerheksnomike, yes, it will be horribly slow, installing, and running.20:44
oerheksTJ-, +120:45
nomikeW20:45
nomikeoops20:45
nomikeWell, both USB drives are USB 3.0 and are connected to USB 3.0 ports. But whatever, it works and it's almost done. I was just curious. After all it's an odd thing to want to start an installer in an already installed system.20:46
nomikeAnd it's running somewhere in the background. I don't sit next to it and twist my thumbs waiting for it to finally finish.20:47
TJ-nomike: I do it using debootstrap :)20:47
ubbuntitiWhat code does ubuntu is developed?20:49
ubbuntitiI meant language20:49
ubbuntitiC?20:49
nomikeubbuntiti, which part of ubuntu? Ubuntu is not one software.20:50
oerheksC++, python3, and more20:51
TJ-ubbuntiti: Ubuntu is approximately 50,000 different packages... pick one!20:51
ubbuntitiall right20:51
ubbuntitithat answer20:51
nomikeThe linux kernel is written in C. A lot of tools are written in C (e.g. bash, grub, etc.). Some tools might be written in python or perl. There are shell scripts. Maybe some go.20:51
ubbuntitiDoes perl make front end programms?20:52
nomikeSOme tools are even written in mono (a variant of the .net family)20:52
nomike(some people are going to slap me for that variant thingy, but I think that's a quite accurate description).20:53
=== jpe__ is now known as sharperguy
gordonjcpTJ-: I wonder how much straight assembler there is in a modern Linux distro20:54
TJ-gordonjcp: that'd be an interesting challenge to figure out!20:55
gordonjcpTJ-: probably some in the kernel, deep down in the driver layers20:55
oerheksnow there is rust support .. https://github.com/Rust-for-Linux20:56
TJ- " apt-file search -x '(\.S|\.asm)$' | wc -l " => 23020:56
TJ-oops, 34020:56
julioHELLO WORLD!20:57
nomikeAccording to github on the kernel source code: C 98.4%, Assembly 0.9%, Shell 0.3%, Makefile 0.2%, Perl 0.1%, Python 0.1%21:00
nomike.2 % Makefiles? That's a lot.21:00
TJ-nomike: every directory in kernel has a Makefile, or more than 121:05
linsuxhow do i remove application icon on desktop21:05
nomikeTJ-, ah yes. I already thought so.21:05
punkgeekHow can I install md5sum on busybox from ubuntu?21:06
TJ-punkgeek: busybox has the md5sum applet built in21:10
punkgeekThank you21:14
punkgeekIs it possible to remoev the grub password on the full encrypted hard drive?21:15
TJ-punkgeek: grub password?21:16
punkgeekyes, Grub Boot Loader Password21:17
punkgeekthe actual grub password, the one protecting the grub menu itself21:17
TJ-punkgeek: the usual way I presume, by resetting it21:18
leftyfbpunkgeek: please stop cross-posting21:19
noarb-in the default Settings > Date & Time > Automatic Date & Time, is there a way to set to a local ntp server?21:22
jhutchinsDoes Ubuntu track which repository a given package came from?21:39
ice9how can i run xorg app in wayland session?21:42
sarnoldjhutchins: sortof, I think; try apt-cache policy on a package from a ppa and on a package from the archive, and compare the output21:46
sarnoldjhutchins: this is the mechanism used by ppa-purge21:46
Guest63i'm trying to follow this guide (https://help.ubuntu.com/community/DataRecovery#Imaging_a_damaged_device.2C_filesystem_or_drive) suggested by leftyfb21:55
Guest63however, I'm utterly confused with how to read fdisk -l21:56
Guest63i think it is: Disk /dev/sdb: 465.8 GiB, XXX bytes, XXX sectors. What is a Device? I see /dev/sdb1 * Start End Sectors, yada yada yada21:57
Guest63How do I know if my disk / device is mounted?21:58
Guest63got it. the device part is the partition tables. i reckon that means i have only one partition on this disk21:59
sarnoldthe /proc/mounts file will probably show you if the device is mounted, and where21:59
Guest63sarnold /proc/mounts | grep sdb shows nothing22:01
Guest63i reckon it ain't mounted, right?22:01
sarnoldyeah :)22:01
goddardany way to make ubuntu dock show the windows on hover?22:03
goddardif you have two windows of the same app you gotta right click and then click all windows and then click the app you want22:04
Guest63i guess i have two questions: when running "sudo mount /dev/xxx /mnt/media" should xxx be sdb or sdb1? should /mnt/media be an existent directory?22:07
sarnoldGuest63: probably /dev/sdb1, unless you created the filesystem directly on the drive without making partitions first .. that's insanely rare, but possible22:09
sarnoldGuest63: yes, the directory must exist first22:09
Guest63i guess i do have a partition since fdisk shows sdb122:09
lordleydo command df and you see the name of the drive22:11
Guest63ugh. this is bad news i think22:11
Guest63sudo mount -r /dev/sdb1 /mnt/media returns22:11
Guest63mount: /mnt/media: cannot mount; probably corrupted filesystem on /dev/sdb122:11
Guest63i thought i needed to mount to follow this https://help.ubuntu.com/community/DataRecovery#Imaging_a_damaged_device.2C_filesystem_or_drive22:12
Guest63i see "ddrescue --no-split /dev/hda1 imagefile logfile" can imagefile be any directory?22:13
sarnoldGuest63: ddrescue doesn't mount to a directory, it saves to a file, and probably the file shouldn't already exist22:14
Guest63thanks. i went with sudo ddrescue -n /dev/sdb1 /mnt/media/image /mnt/media/logfile22:18
Guest63i re read the guide and it didn't mention mounting the partition at any point22:18
Guest63i guess i just got confused22:18
Guest63so i'm just running ddrescue now to save as much as i can... hopefully i can get my files back :'(22:18
Guest63wtf. remaining time 4h lol22:20
Guest63didnt know it was going to take this long22:20
sarnoldreading every sector of the hard drive can take a while22:22
TJ-Guest63: if the source is in any way damaged, it can take days. ddrescue marks blocks it cannot read initially and goes back and forth around them trying to extract the sectors either side. Every read error fault can takes a few seconds to recover from22:22
sarnolda healthy hard drive can do roughly 100MB/s when doing 'large' reads, and ddrescue may not be doing large reads if it expects some / many of the blocks to be broken22:23
Guest63well from the ubuntu wiki22:23
Guest63i'm following the forensics recommendation22:23
Guest63running --no-split first and then with retry=322:23
TJ-Guest63: ddrescue can use a larger --cluster-size= (default is 128) to speed up reads... the more sectors read in each operationg the faster the transfer will be22:25
Guest63oh, i guess i should've done that22:25
Guest63wait. i'm just freaking out22:25
TJ-it's like using 'dd bs=150M' instead of its default of 512 bytes22:26
Guest63my corrupted disk is 500gib but i had only used about 30-40 gib22:26
Guest63will ddrescue go only over those 30-40gib or the entire thing?22:26
Guest63if so, i don't even have that much room for 500 gib backup or whatever22:26
Guest63did i mess up?22:26
TJ-it's doing the entire block device22:27
Guest63oh, shoot, that's not good22:27
Guest63i don't have that much free space on this computer22:27
TJ-if you need to limit the range of sectors it should read, you'll first need to use file-system tools to identify what blocks the file-system is using22:28
Guest63can i do that when the partition is corrupted though?22:28
TJ-1. identify file-system type 2. identify tools that can tell you about used/free blocks in that file-system 3. figure out the range, or multiple ranges, of sectors needing recovery 4. use that info to craft a ddrescue command-line22:29
TJ-Guest63: partitions don't get corrupted, file systems do22:29
sarnoldwell, a partition table can also get corrupted, but that's also pretty rare..22:30
Guest63thanks for the correction22:30
sarnold(it's almost always a user-error :)22:30
TJ-A partition is nothing more than a starting sector number, a quantity, and some optional type info22:30
Guest63any recommended tools to tackle 1 and 2? i'm pretty sure it was ext4 but i'm not entirely sure22:30
TJ-if it's ext4 then dumpe2fs can give you info22:30
Guest63i'm still a linux newbie and i was even more so when i install this one22:31
TJ-start of with e.g. "dumpe2fs -h /dev/sdb1"22:31
TJ-that'll display a concise summary from any superblock it can find22:31
Guest63lol i got ddrescue: Error writing mapfil 'mnt/media/logfile': No space left on device22:32
Guest63how did i even run out of space this quick?22:32
Guest63i'm supposed to have ~445gib on this laptop22:32
TJ-Guest63: are you sure you are trying to recover from a physical disk hardware corruption, or is this /just/ file-system corruption22:32
Guest63TJ- yes, so here's what happened after my computer failed to boot and people here, namely, leftyfb pointed me to that ubuntu guide22:33
Guest63i took apart my laptop and got the hdd out22:33
Guest63so now i'm trying to recover it from another laptop22:33
Guest63does that answer your question? i can expand more if not22:33
TJ-Guest63: so there are errors reported in the SMART data, using smartctl, or I/O errors are/were seen in the kernel logs?22:34
TJ-Guest63: because if this is simply some structures in the file-system being over-written or corrupted, but the underlying physical storage is OK, ddrescue isn't the solution22:35
Guest63TJ- you're speaking greek to me. my computer wouldn't boot and i came here earlier with this: https://pastebin.com/raw/zqELrNk422:36
Guest63TJ- that's a good insight. however, i'm not sure whether it is either or22:36
Guest63what i shared above (pastebin) is what i was getting22:36
Guest63is there a way to test that now that the disk isn't on the laptop anymore?22:37
TJ-Guest63: OK, physical fault ""Error reading block XXXX (Input/output error)"22:37
Guest63i decided to go this route as to not keep trying the fsck thing and that would override everything making my things def not recoverable22:37
TJ-Guest63: what you could do is re-test by doing a fast sequential read of the entire device and monitoring the kernel log for any more I/O errors.22:38
Guest63wouldn't that lower my chances of getting my data back?22:38
Guest63sorry, meant to say would*22:38
Guest63i'm def in no position of saying wouldnt. my knowledge isn't too advance yet lol22:39
Guest63TJ- is there a guide on how to go about that?22:39
TJ-Guest63: I'd do it with ddrescue but with different options :)22:40
TJ-Guest63: what was the ddrescue command-line you used before it ran out of space?22:41
Guest63sudo ddrescue -n /dev/sdb1 /mnt/media/image /mnt/media/logfile22:41
TJ-Guest63: how large is /mnt/media/logfile ? use "df -h" to check22:42
Guest63df -h /mnt/media/logfile returns /dev/sda1 28GB 28GB 0 100$ /22:43
Guest63Filesystem Size Used Avail Use% Mounted on22:43
Guest63however, ls -lah /mnt/media shows image is 24G and logfile 022:43
Guest63it might've been because when prompted with the ddrescue error i just canceled the thing22:44
TJ-so it's out of space due to the previous run22:44
Guest63i truly don't get the answer given by df -h22:44
Guest63seems like it is talking about /dev/sda1 rather than logfile itself22:45
TJ-the block device is 28GB, and 28GB is used22:45
Guest63oh okay22:46
TJ-and I think you said that you think the amount of space used on the damaged device was 30-40GB? if so, there's not enough space to recover even the used sectors22:46
TJ-'df' reports block device space, not files. it reports /dev/sda1 since that is the block device containing the file-system that has /mnt/media/logfile in it22:47
Guest63correct. though, could i use /home/Guest63?22:47
TJ-Guest63: use simply "df -h" and see which of your mounted file-systems will have sufficient space22:48
Guest63df -h /home/Guest63 shows /dev/sda6 441G 127M 418G 1% /home22:48
TJ-OK, so that's where the saved data needs to go22:48
TJ-and you should use some additional command line options to make this much more efficient, in terms of speed and of actual space used22:49
Guest63okay. that sounds smart. i'm all ears22:49
TJ-So, we'll put the data under /home/$USER, OK22:50
Guest63okay22:51
TJ-We'll write a sparse file (any empty sectors aren't actually copied but the image is marked as having an empty sector. Means you could copy a 500GB block device and it'll only need space for the non-empty sectors )22:52
TJ-and we'll read many more sectors in each read operation22:52
Guest63understood22:52
TJ-I'd suggest: "sudo ddrescue --sparse --cluster-size=4096 --no-scrape /dev/sdb1 /home/$USER/sdb1.img /home/$USER/sdb1.mapfile"22:53
Guest63TJ- running22:57
Guest63it went for 11s and then paused for about 1m and now seems like it's reading again22:57
Guest63remaining time: 1h 2m22:57
Guest63yeah, for some reason it "hangs / freezes" from time to time22:58
TJ-That's it dealing with I/O errors23:00
TJ-If you open another terminal and do "journalctl -k -f" that'll '(f)ollow the kernel log as it is written and you'll likely see more of those I/O errors reading ....23:01
TJ-after a few tries, if a sector cannot be read, it'll makr it as bad in the mapfile and move on some way and try again. Later it'll return to the bad areas and try to read smaller numbers of sectors around the damaged area(s)23:03
Guest63TJ- oh yeah. i see them now. 'print_req_error: critical target error, dev sdb, sector xxx' and 'buffer i/o error on dev sdb1, logical block xxx, async page read'23:03
TJ-Guest63: if there are lots you can expect the recovery run to take days!23:03
TJ-each error can cause a pause whilst the device recovers of several seconds23:04
Guest63there are two so far23:04
TJ-that is promising23:04
Guest63~remaining time is 4h according to ddrescue23:04
TJ-I have to go now, gone midnight here23:04
Guest63oh. should i ping you tomorrow on what the next steps will be?23:05
TJ-I may or may not be around but there should be others around who can advise. Basically, if ddrescue manages to get most of the data then you can try using the fsck tool (initially in the do-not-change-anything mode!) on the sdb1.img file (which is a file-system image). If that suggests there aren't too many faults and it can fix them, then its worth allowing it too.23:07
TJ-If there are too many faults then you might need to use testdisk and/or photorec - likely only photorec is going to be of use in that case and it isn't certain how good a job it can do to recover the data in an understandable form23:08
Bashing-omGuest63: ^ I might suggst that you work on a copy of the sdb1.img file for safety reasons/23:09
Guest63TJ- thank you23:10
Guest63Bashing-om thank you. will def do23:10
TJ-Guest63: as Bashing-om  says, if you've got space, make a copy of sdb1.img and work on the copy :)23:10
Guest63i do and i will23:11
TJ-and ensure you use the 'cp --sparse=always ...' option so the file size doesn't balloon23:11
Guest63will read what that means. i wasn't aware of that flag23:12
Guest63btw, 16m in and 2 errors so far23:12
TJ-it'll ensure those unused sectors that don't take up space in the sdb1.img remain that way in the copy23:12
Guest63oh, okay23:12
TJ-got to go, eyes are dying23:13
Guest63tyvm. g'night23:13
dreamonhello. how can I remove a service from systemctl?23:16
dreamonsystemctl list-dependencies systemd-suspend.service → shows nvidia-resume.service .. I want to remove this service23:17
dreamonOr reset this service to its standard defaults23:18
sarnolddreamon: there's a systemctl preset  command, check the manpage to see if it does what you want it to do23:18
SysGhostyou can use "disable" with systemctl to disable it directly. But if something still needs it it will still be used.23:18
dreamonthanks. systemctl disable nvidia-suspend.service Unit /etc/systemd/system/nvidia-suspend.service is masked, ignoring.23:20
Bashing-omdreamon: I.E, ^^ a "disable" stops the service but it can be restarted by you or another process. A "mask" makes the service un-startable until you "unmask" it.23:20
dreamonBashing-om, I had a nvidia gpu instide and removed it. now nvidia-suspend stops suspend from working normally, I beleave.23:21
dreamonHow kann I unmask?23:21
SysGhostmasking dependencies might result in other services to fail that needs it.23:21
sarnoldthere's a systemctl unmask command23:21
Bashing-omdreamon: ^ According to the man pages "systemctl unmask NAME" will undo the effect of "systemctl mask NAME".23:22
dreamonmaybe I uninstalled nvidia in wrong way. so some parts are still alive.23:22
dreamonIs there a uninstall routine for nvidia that fixes all that stuff?23:23
dreamonI can suspend by calling "pm-suspend" but "systemctl suspend" dont work23:25
Bashing-omdreamon: Most depends on how you initially installed the driver,. what shows now ' dpkg -l | grep -i nvidia ' ?23:25
dreamonthere is nothin more install only (rc) no (ii)23:26
Bashing-omdreamon: rc == (R)emoved but (C)onfig files remain. One can run ' dpkg -l | awk '/^rc/{print $2}' | xargs sudo dpkg -P ' to also remove these. But in this case do observe what the system will remove.23:29
dreamonIt works.. after unmasking and "systemctl disable nvidia-resume.service" and "systemctl disable nvidia-suspend.service" I can suspend!!23:30
Bashing-om!yay | dreamon23:31
ubottudreamon: Glad you made it! :-)23:31
sarnoldwootr23:31
dreamonBashing-om, yes this command remove lot of config stuff..23:31
dreamonthat cost me lot of days.. thank you so much guys. I have it back.. so lucky23:32
Bashing-omretep: Uh Huh - if you have an older install there will be lots of cruft around, Just note what will be removed and "do it".23:33
dreamonBashing-om, (C) config remain files I didnt knew. Thanks!23:33
Bashing-omdreamon: Thing here is that the package manager will not remove config files without that you tell it too, in the event that you want a package re-install to have those old config files to use.23:35
dreamonI cannot test. but think it would be interessting to know, if removing this config would bring back suspend again.23:38
Bashing-omdreamon: I would not think so at all - config files after all control application action.23:39
dreamonBashing-om, Is it possible to list, all those config files that a pakage is using?23:41
Bashing-omdreamon: ' dpkg -L <packagename> '  is good to see the full list of files a package installs.23:43
sarnoldI think the maintainer scripts for a package can also maintain files outside of that list23:44
sarnoldbecause dpkg's handling of config files can be pretty brutal23:45
dreamonCool. this makes it much easier to unterstand for me.23:46
dreamonbut it dont seperates between config and programm stuff.23:47
Bashing-omdreamon: /var/lib/dpkg/info/<package_name>.conffiles :list of configuration files. (user modifiable).23:51
dreamonBashing-om, I think I have to come here more often. I learned a lot today!!23:54
Bashing-omdreamon: The collective knowledge here is indeed amazing :D23:55

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