[01:25] I'm looking for a firewall for ubuntu where i can easily setup a whitelist set of IPs/DNS that the machine can communicate with? Anything that is higher level than ufw that anyone recommends here? [01:32] hi [01:33] sometimes sometimes my window is behind my taskbar, sometimes not, how to fix this? [01:37] hello [01:53] I'm using Pop_OS!, my wifi and ethernet is connected but I'm unable to connect to anything outside of the lan [01:53] !popos | maxtim [01:53] maxtim: The Ubuntu channels can only provide support for Ubuntu and its official flavors, since other distributions and derivatives have repository and software changes. So please use their dedicated support venues, for example: Linux Mint (#linuxmint-help on irc.spotchat.org), Kali Linux (#kali-linux), and LXLE (#lxle) === Eickmeyer[w] is now known as Eickmeyer [02:29] aight, noone is around, okay [03:11] just confirming what I think I know, but Ubuntu and flavours don't update unless you tell it to, correct? [03:12] rdr: when a new release is out, your system can get offered an upgrade, according to your settings [03:13] right, i was just talking to someone who said that unattended upgrades were updating stuff in the background and they said it was a flaw of the system [03:13] i'm thinking they turned it on without realizing what it did? [03:13] unless it's there by default, but i always see available updates and install them manually [03:14] updating, but not installing,see the update settings [03:15] rdr: you can check in software&updates [03:15] snaps do update before start, daily [03:15] oh, so it downloads the packages but doesn't install them [03:15] ? [03:15] that is a choice, yes, and more [03:16] rdr: See too ' apt show unattended-upgrades ' . [03:16] ohhh so it does do security updates by default [05:32] So I just set up a new PC with Ubuntu and now I'm trying to connect my old hard drive to pull some data from it. seems like it's mountpoint or logical volume name conflicts with the new configuration? What's the best way to do this? [05:35] cat /etc/fstab; lsblk --fs => to pastebin [05:44] nvm figured it out. had to vgrename using the uuid, then lvrename, then cryptsetup luksClose. [05:44] then it reappeared as an encrypted drive i could click on and open. [05:49] oh here's a good tip for command line: Instead of using the 'cp source destinationfolder' syntax to copy files into a folder, switch to the 'cp -t destinationfolder source' syntax. It will warn you if the destination doesn't exist instead of copying your files into a newly-named file. [05:51] cp source destinationfolder/ (with an ending /) [05:51] yeah i always thought that would work too [05:51] but i found some case where it didn't [06:06] hackinghorn: lack of replies to your question can mean many things - that no one was around who knew the answer at the time you asked, that you don't seem to have provided the minimum amount of details needed for anyone to reply, that your question was not precise enough for anyone to answer it, and a couple other things. [06:12] is there a way to get the shell to expand '*' to include hidden folders, or do i just have to use find/exec/xargs? [06:14] hackinghorn: depending on the question you're asking, the most crucial info can be ubuntu release (lsb_release -ds) - this is almost always needed, architecture (arch), kernel version (cat /proc/version), graphical desktop (echo $XDG_SESSION_TYPE/$XDG_CURRENT_DESKTOP), and details on drivers / hardware if you're asking questions related to that. [06:14] nvm figured it out. 'shopt -s dotglob' [06:30] I'm on gnome ubuntu 21.10 and sometimes windows are behind my dock === miaooo0000 is now known as miaooo === Abrax- is now known as Abrax === javaJake_ is now known as javaJake [08:24] Can somebody please tell me how to set DNS settings from Terminal in Ubuntu 20.04 LTS? Canonical didn't bother to document it. [08:27] I just subscribed to an Indian VPS service for $1.50. The Ubuntu template that was created for use with the VPS has been smashed to bits by someone that doesn't know what they are doing. [08:28] Yes, its cheap [08:30] Kolusion: so nottrustworthy, swap to one that is.. [08:30] Is this that great open source community I keep hearing Linux users tell Windows users about when they tell them they're not interested? [08:33] no, it is general "sane" advice.. [08:38] Kolusion: for terminal config of the network, maybe look at 'nmtui' or 'nmcli' [08:39] jushur: Thanks for the information, right now I don't need maybes, just a straight answer. :) :) [08:39] I don't need to worry about nameservers anymore. It appears that this dump VPS doesn't have internet connectivity. I can't resolve apt updates or ping Google's nameserver. [08:40] Strangely I am connecting to it over the internet though. [08:40] UFW is not installed. [08:40] ping 1.1.1.1 [08:40] Ok, I will try... [08:40] Nothing [08:42] well you need to look at what is allowed/enabled in this VPS then. [08:42] not what you run inside the VPS [08:42] Yes I know. I have to hang up my washing and then I will be back to take a closer look. [08:43] ping is not a valid test [08:43] ping is icmp echo repsonse.....that does not mean you have no access [08:45] It is a valid test. Not receiving a pong can indicate network connectivity issues. You are looking into it too deeply. [08:45] 'can' [08:45] not does [08:46] eg: I have ping blocked, yet, I'm fully connected to the internet [08:46] Ok [08:46] ikonia: wrong, you have blocked things so you are connected with restrictions. [08:47] what ? [08:47] fully = no restrictions [08:47] ahhh you're being petty [08:47] ok [08:47] I am fully connected to the internet though - I just filter [08:53] ikonia: just dont say 'fully' when you mean filtered/partial/suffient.. [08:54] I am fully connected [08:54] this is not the point - the point was to help Kolusion understand that ping is not a valid test of connectivity so he looked in the right place [08:57] ikonia: could you explain what a valid test is then? [09:02] it would be multiple tests, depending on where the connectivity stops/is blocked [09:07] Morning [09:07] I got a user who sftp files to a folder [09:08] WHen he logs in via ssh and does a touch we get the correct permissions, but when he copies them over with sftp they get different permissions. Any reason why the umask doenst work for sftp? How can I fix this? [09:10] ignorand, it's likely his ftp client isn't defining the permissions properly on a put [09:11] fire up a copy of the app and look for the location where the permissions are defined on a new file creation, and make the change there. alternatively, you can adjust the sticky bit to the user or group and it will ensure the right permissions when the file/folder is created by the sftp process [09:13] summonner, I did the sticky group, so the user/group is fine, the rwx isnt [09:13] summonner, also I didnt know I could set permissions in sftp. [09:14] Transmit does it (just had a case like that a few weeks ago) [09:15] I had a look at some of my VPS settings from the client portal and PPP is disabled. Would this be the cause of me being unable to connect to things like Ubuntu updates or ping servers? [09:16] I thought PPP is to do with things like PPPoE when connecting to your ISP [09:16] hi, I have ubuntu bionic and one of the repos are complaining about `An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab [09:16] B.V. (package repository signing key) ` [09:16] I get this error when I run `apt update` [09:17] would this be the right procedure https://askubuntu.com/questions/131601/gpg-error-release-the-following-signatures-were-invalid-badsig? [09:27] So my new VPS can't connect to Ubuntu update servers and I can't ping servers. UFW is not installed and I can't see any firewall from the VPS client portal. PPP is disabled for the VPS in the client portal. Could this be causing the problem? [09:29] summonner, its a third party app which does the sftp in code :( [09:30] Kolusion, I had similar problems with that once. Might be that netplan is acting up, [09:30] usually VPS have a static ip-address [09:30] ramblebamble: How can I check? [09:30] ask support? [09:31] this is what I di [09:31] Yes, I just opened a critical ticket. I expect a response in 24 hours from my $1.50 USD per month VPS. lol [09:32] did, get in touch with their support, ask for the IP of your VPS, and then look at how to put that into netplan. you should have a config file for netplan in /etc somewhere [09:33] netplan is not installed. I believe netplan is used in Ubuntu Server and not Ubuntu. [09:33] summonner, going to try this: https://www.ibm.com/support/pages/changing-sftp-umask-single-or-group-users === dionysus70 is now known as dionysus69 [10:06] guess it doesnt work :( [10:16] Where would people look inside a VPS if they could connect to it over the internet via SSH but everything else inside the VPS couldn't connect to the internet? [10:17] The VPS is running Ubuntu BTW. [10:28] hey, I have PYTHONPATH= in crontab, followed by some python scripts which uses that pythonpath [10:29] how can i run the python scripts outside the crontab, as the scripts are unable to find PYTHONPATH [10:29] PYTHONPATH conatins directories where the modules will be found [10:30] @Kolusion about community [10:30] https://www.facebook.com/itsfoss/photos/a.182637675210341/1658282904312470 [10:31] RealKiller: https://opensource.com/article/20/7/systemd-timers better in every way and you can set env. variables [10:32] Yeah, too bad after 12 years of Linux I'm still frequently up till 6AM fixing things because of trash software. [10:32] it will take a bit of time to change in every VM [10:33] Linux isn't hard, its just the quality of the software tends to suck hard. [10:33] so, is there a solution using crontab [10:33] Hobby software [10:34] RealKiller: you can try "export PYTHONPATH=; yourcommand" [10:35] every cron entry should also check /etc/environment [10:35] I have stopped using the term Linux anyway, its not accurate. Linux is just a kernel. Now I say Ubuntu. [10:37] So nobody can think of places where to look into a hacked up Ubuntu VPS for the cause of the VPS unable to access the internet, except for SSH? [10:37] Hello! Something wrong with my ubuntu 20.04 box: /etc/resolv.conf is missing [10:37] And dns resolution doesn't work [10:37] arkanoid: Are you using Ubuntu in a VPS? [10:37] Kolusion: no, local server box [10:38] arkanoid: see if "sudo apt-get install --reinstall resolvconf" fixes that [10:38] arkanoid: Ah okay. Well I don't know why I am sorry. I would have assumed its there by default, so I can only think that somebody has deleted it. [10:39] Afaik resolv.conf is auto-generated at boot, so it must be there. Nobody deleted it, I'm the only admin [10:39] i cant find out for you who deleted files or not [10:39] Network is configured by netplan. Static ip, static dns. Networking works, it's just dns that fails [10:39] arkanoid: Then I would look for where it gets auto-generated and see if the thing that generates it is working. [10:39] but you are rigth that it should be a symlink [10:40] does /run/resolvconf/resolv.conf exist? [10:40] arkanoid: Are you using Ubuntu Server? [10:40] I'm here asking what should be I charge of generating it. I think should be netplan scripts, but as I said networking works in general [10:41] Yes, ubuntu server [10:42] I believe you can 'reload' netplan without needing to reboot. If you can do it, you may be able to see if there are any errors. The Ubuntu Server networking documentation has the instructions on how to do it. [10:42] Goto 'ubuntu.com' and scroll down to the very bottom of the webpage and follow server docs. [10:44] sudo netplan apply results in success error code, but nothing changes, resolv.conf not present and dns not working [10:44] Yes, that is the command I believe I was referring to. [10:44] Success error code? [10:45] you can also "netplan try" ... that will automatically revert to the former config after a timeout if you do not confirm it [10:45] Have you installed any other network manager by any chance? Perhaps another network manager could have been installed as a dependency? Can you check the status of all of your services as see? [10:45] (it's a bit safer than a straight "apply") [10:45] ogra you just gave me a flashback from changing my display resolution in Windows 95 :) [10:46] yep, functions similar πŸ™‚ [10:46] ogra: it's a local box, so no problem in losing it. But thanks, I didn't know about try [10:46] @Kolusion you are looking for hacked VPS forensics? [10:46] check auth log, crontab -e per user [10:46] Kolusion: let me check if NM is installed [10:46] Should be not [10:46] arkanoid: does /run/resolvconf/resolv.conf exist? [10:47] I have text on Linkedin about that... Sec [10:47] acosonic: I bought a $1.50 per month VPS and I am trying to figure out why I can't update with apt or ping servers but can SSH in fine. [10:47] If you get where I am coming from. [10:47] ravage: no /run/resolvconf* doesn't exists on my box [10:48] Kolusion, i'd always first check outside of the VM ... i.e. in your providers management console ... if you can ssh that indicates that networking kind of works fine [10:49] ogra: Yes, I am waiting for my ticket to be responded to. [10:49] smells more like some outside thing blocking ports [10:49] yeah, ogra is right... [10:49] ogra: Exactly, that's what I asked. [10:49] for hacked vps, some example: https://www.linkedin.com/pulse/bit-server-hacked-forensics-aleksandar-pavi%C4%87/ [10:49] Thanks, but its not hacked. :) [10:50] I mean't hacked as in, trashed up by someone that doesn't know what they are doing. :) [10:50] Its one of those shared kernel 'VZ' VPS's or what ever they are called. [10:51] systemd-resolve --status [10:52] Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found. [10:56] This system gets zero packages installed except unattended upgrades. This system DNS resolution has been taken down by unattended upgrades on an LTS distribution [11:02] Thanks everyone. Bye. [11:05] arkanoid: on a default server installation /etc/resolv.conf ist a link to /run/systemd/resolve/stub-resolv.conf [11:05] I've solved by manually rewiring netplan + systemd-resolve symlink dance. But I this has taken down dns for many ubuntu servers out there [11:05] you can try to create that again [11:07] havent heard anything about it in #ubuntu-server or here really. i dont think its a general problem [11:08] have you cheked with "resolvectl status" what your system uses at all ? [11:25] Hello everyone, is there a difference between `org.gnome.desktop.interface.color-scheme` and `org.freedesktop.appearance.color-scheme` . I hesitate between which one to use to have dark themes everywhere [12:05] Why Ubuntu 18.04 is allowed with RST but, 20.04+ not? I have used Arch, Endevous, Manjaro, Fedora, and PopOS non of the distro shows that error. Everything just works. Why was the RST restriction imposed in the first place? [12:10] Guest50: i dont think RST is "not allowed". i just fails to detect it correctly a lot of time. [12:11] and in my experience all those vendor solutions are painful to use in general [12:11] get a real raid controller or use a software raid. a general article is https://help.ubuntu.com/rst/ [12:15] my question is why ubuntu fails to detect it correctly? why do all other distributions works, but not ubuntu? even popos are based in Ubuntu, and it works for me. Ubuntu devs definitely doing something wrong in here. [12:15] *is based on [12:17] im writing this on my ubuntu 21.10 in my rst machine, I don't think there is a necessity for RST disabling in installation setup. Any way I can discuss this with Ubuntu devs who can actually do something about it? [12:23] Guest50: there is only support by the community here. if you found a bug you can report it like this one: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1874066 [12:24] true i have encoundred this problem only on ubuntu, i don't use ubuntu for this reason, fedora, arch just works! [12:25] enjoy your distribution of choice then :) [12:57] Hi all [12:59] hey === jesopo is now known as jess === Rhys is now known as Guest4124 [13:21] hi [13:22] hi === jclsn10074 is now known as jclsn [13:52] Hey all again! [13:54] I just bought a VPS service that comes with a modified version of Ubuntu 20.04 LTS installed. I can SSH in but everything else has trouble connecting to the outside world. I've sent off a ticket to the hosting company and don't except a response for my $1.50 USD a month service anytime soon, so I'm trying to see if there is anything that I can do [13:54] now. I see a service running called 'networking'. The default networking service is called 'network-manager', so I'm wondering if anyone knows what 'networking' is? [13:55] Oh, and 'network-manager' isn't there. [14:03] Kolusion: can you ping things from your VPS? [14:03] Kolusion, there is definitely no "networking" service in 20.04, there is a systemd "network.target" but nothing beyond this. if you have a systemd "networking.service" somewhere, that must have been put in place by your VPS provider [14:03] rdr: No I can't. [14:03] ogra, there is no network.target. [14:04] Kolusion, so "systemctl status network.target" returns that there is no such target, that it is inactive or what exactly do you get ? [14:04] Let me see..... [14:05] Active [14:05] right, so it is there [14:05] network.target - Network [14:06] that means your system thinks network is up and running [14:06] Yes, but it is not showing when executing the command 'service --status-all', if that's what you meant. [14:06] (and it seemingly is, else ssh would indeed not work) [14:06] I am looking in /etc/network/interfaces and noticed there is no nameserver set. [14:07] /etc/network/interfaces is deprecated since 2016 in ubuntu [14:07] network configuration is in /etc/netplan for servers [14:07] Yes, but this isn't a stock Ubuntu 20.04 LTS. [14:07] Netplan isn't installed, I checked. [14:08] well, we can only support stock here ... especially since nobody knows what your provider hacked into the image you are running [14:08] netplan is definitely a required default on 20.04 server [14:08] Yes, its BS. [14:08] Yes it is. I have used server. [14:09] Its good. [14:09] so find another VPS provider that doesnt provide hacked images [14:09] I have tried 20 others. They rejected me because they do not like my pre-paid Mastercard. This company in India didn't mind. [14:10] well, i fear you have to ask them for support then .. hacked images are unsupportable if we do not know what was changed ... removing netplan is quite a significant hack [14:10] Many have hacked images to work with their shared kernel VPS solutions. I would need a dedicated service to install a stock installation but I am having a lot of trouble finding a company that isn't mentally retarded. [14:11] This image is the desktop version. lol [14:11] there are plenty of providrs that offer ubuntu server unhacked, even with shared kernels [14:12] Yes I know, but they don't like pre-paid credit cards and that is all I can use at the moment for reasons I won't go into because it is an extreamily long story. [14:12] either way, your setup is not supportable here [14:12] So you keep saying. [14:13] yep πŸ™‚ [14:15] What is network.target? [14:15] I have seen it before when troubleshooting Poptop. [14:16] https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ [14:16] Oh yeah [14:16] Thanks [14:16] Is that to solve race conditions? [14:40] I think I may have found the problem. 'ufw' is not found as a command but I just found /etc/ufw/ and inside that directory was the SSH server. It looks like Apache where you include servers inside directories to enable them. [14:41] that is pointless ... if ufw is not installed the files in /etc/ufw are moot (they come from other packages) [14:41] I see. Thanks for letting me know. [14:42] though ufw is in the standard instalation task ... curious if they explicitly removed it [14:42] Where does iptables write to? [14:42] the kernel [14:42] Thought so [14:42] Thanks [14:42] And yes, UFW is removed. No such service exists. [14:42] How can I output iptables changes? [14:43] iptables -L as admin [14:43] btw. use dpkg -l to list packages don't check via services [14:43] Thanks. There is no output from that command. [14:44] Ok, I will check now. [14:44] Not installed. [14:45] well, again ... talk to your VPS provider about their image modifications ... [14:45] Yes man. I know. I'm waiting, and desperate. [14:47] what is your providers name? if I may ask. [14:47] Web Horizon [14:49] k [14:56] Would PPP being disable be causing my problem? [14:56] does your server use dialup connections ? [14:56] (no, very unlikely) [14:56] No [14:58] Kolusion: nmap might be helpful. [15:00] jhutchins yes I thought of that, but I can't get it onto the server. The first thing I did when I logged in for the first time was execute 'apt update' and that's when I realised I had a problem after it failed (and finding a trashed 'sources.list' file). [15:01] I guess I could send it over SSH as a snap package? [15:01] That way I wouldn't need to send dependencies? [15:01] Kolusion: That "trashed" file might have been the provider's customized sources. [15:02] Networking for snap services is often a problem, you could try it but negative results wouldn't be conclusive. [15:02] The only custom source was some Canonical partners repo, most of the rest were missing. I added them all back again. [15:02] Kolusion: Ok, and what happened when you ran update? [15:02] The repo's couldn't resolve. [15:02] Or like, 2 of them did [15:02] I will run it now and send you a screen shot? [15:03] Nah, description's enough. [15:03] You could set your DNS manually and try. [15:04] I tried but the network manager 'network-manager' service has been gutted and replaced with some other network manager service called 'networking'. [15:04] I don't know where to add the DNS nameservers. [15:04] I also tried pinging Google without success. [15:05] Kolusion: "networking" is part of ifupdown which seems like what they replaced netplan with. You'll need to wait to hear from your VPS provider for further support with your custom linux image. We cannot support it here. [15:05] I will see which repo's can resolve. This will give a clue. [15:05] jhutchins, this seems to be a modified ubuntu desktop install ("modified" beyond repair by hacks and added scripts) that this VPS provider offers as genuie ubuntu [15:05] (as ubuntu server) [15:06] i invested 1.50$ to see that mess myself. ipv6 only. this will be fun :) [15:06] ogra: You are right on it! [15:06] LOL WTF [15:06] are you for real?! [15:06] ravage [15:07] ravage you are awesomely funny. I wish I worked with people like you [15:07] https://p.haxxors.com/y6jkes93.txt [15:07] looks fine so far [15:07] 148 packages [15:07] not the freshest image. but thats ok [15:08] Yeah but where are the rest of the packages? Now try and get the list from 'main'. [15:08] what rest? [15:08] it installed all updates just fine [15:08] Where is the main repository? [15:09] i the first line ? [15:09] *in [15:09] looks like a fine VPS for 1.50$ really [15:09] Hang on a second. I may have a misunderstanding of apt. [15:10] systemd-network does the networking [15:10] I thought the command 'apt update' updates packages from the sources list. When I run the command on a stock Ubuntu install, it returns something like 50K packages available to install, not 140. [15:10] but they actually messed with the resolv file [15:10] and added the google v6 IPs manually [15:10] but they work [15:10] apt update updates the package catalog [15:10] not the packages [15:11] apt upgrade (or full-upgrade) do then update the packages [15:11] and they use openvz. just in case anyone is interested === kostkon__ is now known as kostkon_ [15:13] https://i.ibb.co/nky63H7/1.png [15:13] https://i.ibb.co/K5B8P5p/2.png [15:13] I fixed up the sources.list file [15:13] That's the result I get running 'apt update'. [15:14] without dns you can fix that file all you want [15:15] So which file do I need to fix? [15:15] do you have ipv4? [15:16] No [15:16] then you have the same product [15:17] did you just try to reinstall? [15:17] No [15:17] Apart from adding the missing stock repo's back into the sources.list file, I haven't touched anything. [15:17] try it anyway [15:18] Reinstall? [15:18] yes [15:18] Ok, I will try now... [15:20] Can you ping out? [15:20] yes [15:20] Did you get a IPv4? [15:20] no [15:21] Enable TUN/TAP in settings [15:21] That is one modification I made. [15:21] In the portal. [15:22] My Account > Control Panel > Settings > VPS Configuration [15:22] Also, where is your server located? [15:22] japan [15:22] Mine is EU [15:23] i have enough servers there :) [15:23] HA HA :) [15:23] I wonder if Ukraine is 'Central Europe'. [15:23] The server is probably in Indua. [15:23] India. [15:24] No it couldn't be, I have connected to it SSH [15:24] Wrong theory [15:25] Also, did you select Ubuntu 20? [15:25] yep. [15:25] Can you change IP to central Europe? [15:25] no [15:26] And yes I agree with you. The service looks decent for $1.50. [15:26] I was suprised. [15:26] Clean and simple. [15:26] enabled TUN. still works. [15:27] You need to be on the same IP as me I think. The location I mean. [15:27] i dont think so. the images are the same usually [15:27] Yes but this could be a networking problem outside of the VPS. [15:27] sure but then there is nothing we can help you with here [15:28] Yes [15:28] But it would have been good if you could have checked. [15:28] You have already been awesome [15:29] Server reinstalled. Same problem [15:29] I bet we have slightly different images. === ansivirus__ is now known as ansivirus [15:31] Thanks for doing all that === dionysus70 is now known as dionysus69 [15:32] np. its fun [15:35] When the guy decides to check my ticket and fixes the problem, I'll let the channel know what the problem was. [15:35] can you give me the output of "systemctl status pinggw" [15:35] they seem to have a special service to keep their broken network up [15:35] hey, ive installed glade via https://snapcraft.io/install/glade/ubuntu and it starts. then when i try to make a widget-gtk-applicationwindow it crashes. https://paste.ubuntu.com/p/wYf66qgbjP/ the mount error appears the moment i click to create the widget inside glade. [15:36] it is actually called "Ping to keep connection alive" [15:36] Responses are ~5ms [15:36] sad but funny [15:36] ive had problems with snaps before. so i think maybe if its installable via apt-get the error will be history. [15:37] Kolusion: that means that you can at least ping a gateway. can you ping 2001:4860:4860::8888 ? [15:37] I don't want to copy the output because the hostname is my personal name as this server is to be a pptpd server port forwarding to my domain firstnamelastname.com [15:38] wierd name [15:38] Is that IP your VPS? [15:39] that is the google dns server [15:39] Pinging... [15:40] what is in your /etc/resolv.conf ? [15:40] BTW pinging a Google DNS server was one of the first things I tried. I will try it again now [15:40] I get a pong from that server. [15:41] 4.2.2.1 4.2.2.2 [15:41] Checked in there earlier as well. [15:41] ok that cant work [15:41] you only have v6 [15:41] IPv4? [15:41] Yes [15:41] Is that what you were referring to earlier? [15:42] echo "nameserver 2001:4860:4860::8888" > /etc/resolv.conf [15:42] the problem was snap. once installed via apt-get it doesnt crash. ive shad nap errors before with other stuff. it seems like snap packages cant reach certain places on pc's and then the snap simply doesnt work correctly because of incorrect permissions. [15:42] and try to ping google.com again [15:42] I will add Google's DNS server there now. [15:42] or do your apt update [15:42] Ok [15:42] BRB [15:42] Yes!!!!! [15:42] Now you can see why this guy happily accepted my pre-paid Mastercard. lol [15:47] It hasn't worked. I am going to reboot the server and try again. [15:48] Should have I removed the IPv4 nameservers? [15:48] yes [15:48] my command would have done that [15:48] I will comment them out. [15:49] Ah. I am talking to you from outside the VM. :) [15:50] You legend mate. It worked! [15:50] EVERYONE ravage IS A LEGEND! [15:50] Snapd: installer is looking for /home/$USER but /home is mounted on /var/home which makes problem for installation. is there a way to tell Snap installer new location for /home ? [15:51] thelounge5546, https://help.ubuntu.com/community/AppArmor#How_do_I_make_AppArmor_work_with_a_non-standard_HOME_directory.3F perhaps [15:51] Kolusion: have fun with your server :) [15:51] Thanks man! [15:51] Where can I find you for when I get rich? [15:52] im usally here [15:52] ogra, thing is i am installing SNAP package on Fedora Silverblue Host, not Ubuntu Host ... [15:52] Oops, hotkeys logged me out when I tried to Google you. [15:53] thelounge5546: try #snappy for snap help on other distros [15:53] thanks leftyfb [15:53] thelounge5546, well, i assum fedora has some similar mechanism to ovverride the $HOME defaults ... [15:53] *assume [15:53] Mr jp01 [15:54] ogra, /home is overrided by deafult to /var/home, that is problem for installing snaps :) [15:54] thelounge5546, yes, i got that in yur initial message πŸ™‚ [15:55] ok thanks , sry :) [15:55] ask in #snappy ... or in forum.snapcraft.io [15:55] ravage [15:55] checking with snappy atm [15:57] I accidentally killed my python3.8 binary..... is there any easy way to restore it? [15:57] Well, thanks again ravage! [15:58] Does anyone know how I could go back to a process such as 'nano' that I was using during a SSH session after I reconnect to the session? [15:58] (After the SSH session drops out) [15:59] This happened earlier today and nano advised me the file was already being edited by another process (nano) but I didn't know how to get it back so ended up killing it. [16:00] Kolusion: "reptyr" may help [16:00] !info reptyr [16:00] llutz: Thanks. I'll read the man page soon. [16:00] or screen ... or tmux ... [16:00] Kolusion: https://www.maketecheasier.com/use-reptyr-move-processes/ [16:00] or simply nohup [16:01] Thanks ogra. I will check out that too. [16:02] ogra: screen to reattach an existing process, not a detached screen-session? [16:02] Kolusion: The usual solution is to run screen or temux _before_ the disconnect happens. [16:03] jhutchins: Thanks. So many solutions! [16:03] llutz, no, indeed for any future processes πŸ™‚ [16:03] Kolusion: It sounds like there is a recovery file, but I don't know how nano recovers files. [16:03] Kolusion: vi makes it easy to recover. [16:03] so i agree to jhutchins [16:03] jhutchins: Not a fan of vi :) [16:04] The nano process no longer exists to connect to, but there may be a backup of the file, possibly ~ or ~ === v9fk1yn3nu is now known as v9fk [16:04] Kolusion: We all learn at our own pace. [16:05] jhutchins its nano's interface I like more. [16:06] Kolusion, check byobu instead of screen/tmux [16:06] also get one of these: https://www.cafepress.com/mf/59954381/vi-reference_mugs?productId=577529672 [16:06] πŸ˜‰ [16:07] ogra, n1 [16:07] Ow man [16:08] 'apt upgrade'. Does this do an update to all packages installed on the system? [16:09] I will just man it [16:09] Kolusion: pretty much, you'll need apt update beforehand to make sure your system knows what's needed [16:09] Kolusion: if updates are available [16:10] Thank you. All done. This image of Ubuntu has been gutted. [16:12] Would apt tell me if the system needed to be restarted? [16:14] Now installing Poptop PPTP server for immediate military-grade secure communication channel. === dionysus70 is now known as dionysus69 [16:19] People still use pptp? [16:19] Yes, it has its uses. [16:20] Kolusion, enlighten me please, for what ? [16:20] thelounge5546: Being the only VPN server that works out of the box. [16:21] Kolusion, wireguard ? [16:22] thelounge5546: I have tried them all step by step. Poptop is the only one that has documentation that actually works. [16:23] Kolusion: well, if you don't care about security [16:23] Kolusion said: immediate military-grade secure communication channel. [16:23] llutz Poptop has a secure authentication protocol. [16:24] Kolusion, they all do ? [16:25] thelounge5546: military as in tin soldiers? [16:25] thelounge5546: Yes, but the others don't work out of the box when you follow the installation and setup documentation. [16:25] llutz, ye :D [16:25] I will be running my PPTP server without any encryption. [16:26] brave :D [16:26] The data going through it will already be encrypted. ;) [16:26] i never had problems with openvpn or wireguard setup/config [16:27] This VPS is soley for forwarding port 25 to my mail server at home. As my new mobile broadband ISP supplies CG-NAT IP's only. My mail server requires TLS. [16:27] Kolusion: current stable version: pptpd-1.3.4.tar.gz from 2007-04-16 , have fun [16:27] thelounge5546: If you play around you can deff get it working, but I didn't have the time to play around. OpenVPN's documentation is appalling. [16:28] once you get in touch with it, its piece of cake [16:28] Sure man [16:28] That's the Linux way ;) [16:29] well, you can always try TINC [16:29] Thanks man. My time with VPN servers is done. PPTP will securely serve my needs. :) [16:30] yes i understand [16:30] Dial-UP! FTW :) [16:30] The authentication is still secure, despite the encryption being broken, but as all my traffic through it will be encrypted anyway, I am just turning encryption off. [16:30] So that's why people still use PPTP :) [16:30] but 15 years old software ? [16:30] Still works [16:31] lel [16:31] Better than all of them [16:31] Just works [16:31] windows 3.1 still works, but not really in use :) [16:31] I drive a 1991 car. Still blows away 75% of other cars [16:31] AMEN! [16:31] :D [16:31] hey everyone, i have a issue where i copied ssh keys with ssh-copy-id, but it still requires password for this computer [16:31] other computers it works good [16:32] People I am out. Thanks everyone for the help and chat. Bye :) [16:32] permissions are -rw------- for id_rsa and authorized_keys, and -rw-r--r-- for id_rsa.pub and known_hosts [16:33] jwash: use ssh -vv user@host to get more verbose output, to find the issue [16:33] ty [16:35] https://www.toptal.com/developers/hastebin/fuqubanezu.yaml [16:38] Hi, my boot partition is full.Β  It only has 2 kernels on there.Β  I have tried some suggestions on the official Ubuntu site, and it's not really helped. [16:39] I also have a system.map and a config that don't match a kernel set, can they be deleted?Β  They appear orphaned [16:40] directory listing:Β  Β https://pastebin.com/hhFtb9PE [16:40] (boot) [16:46] jwash: Logs, -vvv verbose options for both client and server. [16:46] Guest3236: why not just increase the size of that partition, or even delete it and merge it with the rootfs, if it's supported? [16:47] k [16:57] 200Mb boot is what Ubuntu recommended originally, and now it's constantly tripping over itself and running out of space. [16:58] Guest3236: Unfortunately an incredibly archaic partitioning scheme is thoroughly embedded in most Linux installers. [16:58] can those 107 files be deleted?Β  They appear orphaned garbage for starters? [16:58] Guest3236: https://help.ubuntu.com/community/DiskSpace#Separate_.2Fboot_.28sometimes_required.29 20MB ~ 1GB [16:59] Guest3236: The best strategy is a single partition (+swap if desired). [16:59] Guest3236: do not just go deleting files [16:59] Guest3236: Meanwhile, use the Apt tools to purge any obsolete kernels before you delete files manually. [17:00] apt doesn't remove anything more than is there [17:00] Guest3236: sudo apt remove --purge --autoremove linux-image-5.4.0-104-generic [17:00] Guest3236: make sure you are booted to a kernel other than 5.4.0-104 [17:00] ciao [17:00] Β 5.4.0-105-generic #119- [17:01] The following packages will be REMOVED [17:01] Β  linux-image-5.4.0-104-generic* linux-modules-extra-5.4.0-104-generic* [17:01] The following NEW packages will be installed [17:01] Β  linux-image-unsigned-5.4.0-104-generic [17:01] linux-image-unsigned-5.4.0-104-gener [17:02] Guest3236: sudo apt remove --purge --autoremove linux-image-5.4.0-104-generic linux-image-unsigned-5.4.0-104-generic [17:02] So I can't remove that without adding back a different unsigned one? [17:02] Guest3236: also, what version of ubuntu are you running? [17:02] Guest3236: and please use pastebin going forward [17:03] Β Ubuntu 20.04.4 LTS [17:04] Guest3236: once you clean up /boot, you should install linux-image-generic-hwe-20.04 [17:04] hello people [17:04] one question [17:04] didac45 hi [17:04] is possible change format files .bin to img image? [17:05] didac45: no [17:05] didac45: maybe provide some context as to what you are trying to accomplish [17:06] i want create a usbdisk from file.bin to boot a pc old pc computer [17:06] didac45: what exactly is "file.bin"? [17:07] is of cloudready free (chromeOS) everware [17:07] *.bin and *.cue , should be able to go *.img, no ? [17:07] only have a bin, not cue [17:07] didac45: you'll need to seek support from cloudready about their files and how to use them [17:08] yeah but the [17:08] yeah but the google chrome linux not support recovey app chromebooks [17:09] thelounge5546, how i can discover cue file from bin file? [17:09] didac45: please contact cloudready on what you need to do with their .bin file. If it's just a raw image, then you should be able to use dd to write it. But you won't know that until you contact the vendor to validate. I'm willing to bet they have written documentation on exactly what you should be doing with that file [17:10] didac45: I can guarantee you it's not a bin/cue format [17:10] ok [17:10] Hi === andreas is now known as Guest7687 [17:10] didac45, check what leftyfb told you [17:11] i can from windows app recovery google chrome web [17:11] but on linux is not possible [17:11] thanks [17:14] Thanks. that has got rid of some junk, and boot is now 34% used space. [17:14] good for at least the next 2 kernel updates:-( Β  (about 3 weeks) [17:16] thanks goodbye [17:21] Can someone please help me with my attempt to reinstall the default 20.04 python3 binary? I blew away the binary in the /usr/bin directory and now I'm having problems reinstalling it [17:36] en7ropy: download the .deb for it and use dpkg to install it [17:37] en7ropy: if you have another linux machine, you can spin up an lxd container with 20.04 and just copy the file over from that [17:38] leftyfb: Ok, will get the .deb file for it. Unfortunately, this is the only machine I have at the house. === blackest_mamba_ is now known as blackest_mamba [17:43] leftyfb: These are the results I got: https://pastebin.com/d5uksi7w [17:44] en7ropy: why did you download python3-all? [17:44] en7ropy: /usr/bin/python3 is provided by python3-minimal [17:45] leftyfb: I would say mainly because I don't know what I am doing. It's the first link that came up on a google search [17:49] leftyfb: en7ropy /usr/bin/python3.8 is from python3.8-minimal, python3-minimal only provides the symlink python3 ->python3.8 [17:49] What's the output of: find /usr/local -type f | nc termbin.com 9999 [17:49] Maybe you have a custom python versions that breaks the deb postinsts... [17:49] alkisg: they deleted /usr/bin/python3 [17:50] leftyfb: Here are the results of attempting to install the python3-minimal .deb: https://pastebin.com/LMkaZNJL [17:51] I did attempt to "upgrade" my python to the latest, then I read somewhere that you shouldn't do that, that you should stick to the version that the distro keeps as default [17:51] en7ropy: apt download python3.8-minimal then dpkg-deb -R downloaded-packagename.deb /tmp, then copy the binary from extracted files [17:52] en7ropy: try python3.8-minimal [17:52] en7ropy: upgrades using apt and the official repo's are fine [17:54] $ apt download python3.8-minimal --> E: Can't find a source to download version '3.8.12-1+bionic3' of 'python3.8-minimal:amd64' [17:54] en7ropy: if you only remove /usr/bin/python3, then just re-create that symlink. ln -s /usr/bin/python3.8 /usr/bin/python3 [17:54] llutz: good point [17:54] llutz: I overwrote the python3.8 binary in /usr/local with a symlink.... D: [17:55] bionic uses python3.6, not 3.8? [17:55] I'm not on Bionic, I upgraded to 20.04 LTS [17:55] en7ropy: ( cat /etc/os-release ; uname -a ; ls -l /etc/apt/sources.list.d/ ; apt-cache policy python3.8-minimal ) | nc termbin.com 9999 [17:55] en7ropy: why /usr/local? why does apt try to get bionic-packages? [17:55] I have no idea what's going on with my system.. [17:56] en7ropy: sounds like a mess [17:56] en7ropy: please provide the requested info so we can track down what state your system is before we go making anymore changes [17:57] en7ropy: once you run that, please run: ( which python3 ; ls -l $(which python3) ; ls -l /usr/local/bin/python* ; ls -l /usr/bin/python ) | nc termbin.com 9999 [17:57] leftyfb: https://termbin.com/2330 [17:58] en7ropy: step #1 you need to remove the deadsnakes repo [17:58] and any bionic repos [17:58] https://termbin.com/a5gqf [17:59] you seem to have python isntalled from bionic from a .deb that isn't part of any repo [17:59] and you have python 3.10 in /usr/local/bin .... why such the python mess? [17:59] I asked for help in #linux, and after that failed I kept googling around and was following a tutorial for a google search resembling, "Help, I blew away my python3, how do i restore it" [18:00] gah [18:00] Yea, if it's not clear by now, I have no idea what I'm doing, just searching and looking for help, without really understanding what I'm doing [18:00] How do I remove the deadsnakes/bionic repos? [18:05] en7ropy: I could maybe help with removing the repo and maybe help reinstalling the proper python, but other than just deleting things in /usr/local/bin/, I'm not so sure it's enough. This is a big mess. I can you tell, it will be a LOT quicker, cleaner and easier to just reinstall [18:07] leftfb: Oh man..... that sounds terrible.... what does a reinstall look like? A completely new system where I need to reinstall all my programs and copy all my data back and forth? [18:07] leftyfb: Oh man..... that sounds terrible.... what does a reinstall look like? A completely new system where I need to reinstall all my programs and copy all my data back and forth? [18:09] en7ropy: that would be my suggestion, yes [18:09] en7ropy: think about that next time before you ruin your installation again :) [18:10] en7ropy: a reinstall is quick. As is reinstalling the packages you want. Then just restore the backup of your personal files [18:10] llutz: we all had to start somewhere. Destroying a system is the best way to learn [18:10] en7ropy: you can keep your /home while reinstalling, it's not hard [18:10] I.e. no copying your data back and forth involved, as long as you select the "custom" option in the partitioning step [18:11] As for solving the initial issue, I would start with moving /usr/local to /usr/local.bad, then take it from there [18:14] leftyfb, llutz, alkisg: Ok... trying to deal with this mentally.... probably will choose the reinstall so things are clean.... but here's my situation, I'm interviewing for a job and an engineer will probably be contacting me in an hour or two to set up a zoom discuss a coding challenge they sent me, if I could get a working default python on my system for that, then I could reinstall a little more comfortably after that.... what are the odds I can get [18:14] the default version of python on my system in the next hour? [18:15] en7ropy: I personally cannot commit to that goal at the moment. I have my own work going on [18:15] en7ropy: does this work? sudo apt install x11vnc [18:15] leftyfb: Ok, I understand. Thank you for the help you've already provided me [18:15] If yes, I could take a quick look over vnc, to solve things more quickly [18:15] alkisg: tmate [18:16] Sure, or just my own reverse epoptes-client, it's in the repos :) [18:16] alkisg: tmate will give you ssh that they can watch without poking holes in firewalls [18:16] Yes, x11vnc as well [18:16] And without a foreign server between us [18:17] x11vnc and epoptes-client use reverse connections; they bypass nats and firewalls [18:17] alkisg: I'm new to this, what is vnc and tmate? [18:17] en7ropy: try that command, it's a small program; if the installation doesn't work, no point in pursuing that path more: sudo apt install x11vnc [18:18] If your dpkg is so broken that it can't do that, then you'd need to reinstall [18:18] IF it works, then an x11vnc -connect command will share your screen with me [18:18] alkisg: Yup, got an error.... dpkg seems broken..... [18:19] Does it work if you run: sudo mv /usr/local /usr/local.bad [18:19] And then apt install... [18:19] Or, if you happen to have a live cd, the same tasks could be accomplished from the live cd [18:20] alkisg: I'm super concerned about moving the /usr/local ... that's kosher?? [18:20] Normally /usr/local is pretty much empty [18:20] That stuff you put there might be what breaks apt and the other things [18:20] You can still move it back if you see something ...non-kosher [18:20] alkisg: I don't have a livecd, no cd drive, I could try to install Ubuntu on a USB stick though [18:21] Ok, will try [18:21] Sure a live USB would also work fine [18:22] What did you want me to install after moving /usr/local to /usr/local.bad? [18:23] sudo apt install x11vnc [18:24] alkisg: Nah, still doesn't work.... =[[ [18:24] OK create a live USB then [18:24] If I'm around then, I'll help you reinstall while keeping /home [18:24] I can install 20.04 LTS from a live USB? [18:24] Awesome, thanks [18:24] Sure === st13g is now known as crisdel [20:02] is it possible for a gateway to forward a udp broadcast packet from one subnet to another ? [20:18] Anarchos: Yes, most firewall software supports UDP forwarding. [20:19] Anarchos: Otherwise you couldn't ping an external address. [20:19] jhutchins i use masquerade on ubuntu [20:20] Anarchos: http://tldp.org/HOWTO/IP-Masquerade-HOWTO/ [20:20] Anarchos: Most SOHO firewall/routers use masq. [20:33] jhutchins net.ip.forward=1 will be sufficent in sysctrl.conf ? [20:35] Anarchos: Yes, but you will also need rules that do the actual forwarding. Please read the docs above. They're more thorough than you need, and a bit focused on RHEL5, but you'll know what to do once you've read them. [20:35] Anarchos: I don't know if the GUI front-ends for networking will handle that, I wouldn't be surprised. [20:36] jhutchins yes i remember setting rules related to iptables [21:07] hello [21:08] hi [21:09] i need help to use testdisk [21:09] do you know that app? i want to recover some files from my external hdd [21:12] M-spirit[m]: what's up [21:12] i need help to use testdisk [21:12] i downloaded the zip file [21:12] * M-spirit[m] uploaded an image: (26KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/JNhMVaZiYmqMRNXjQpAjTECr/Istantanea_2022-04-04_22-57-34.png > [21:12] no need, it's in the repos, sudo apt-get install testdisk [21:15] i read that in repos there is an older version [21:17] ok.. i've done it [21:17] M-spirit[m]: sudo testdisk in the terminal [21:17] now? [21:17] yeah [21:20] then? [21:20] No log > choose your disk [21:21] ok [21:21] it ask me [21:21] intel [21:21] efi [21:21] M-spirit[m]: can you share the output of 'sudo parted -ls' of your disk? [21:21] or if you want just see the partition table type, is it msdos or gpt? [21:22] * M-spirit[m] uploaded an image: (26KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/znRpOIsFUWyiAxDpTnDVltNX/Istantanea_2022-04-04_23-21-47.png > [21:23] it doesn't say "recover data" [21:23] wich one should i choose? [21:23] analyse [21:24] ok [21:24] deeper search [21:24] is working [21:24] :-)) [21:24] thank you [21:24] πŸ˜ƒ [21:24] no problem [21:25] is it just files that were deleted? or the partition? [21:25] just files [21:26] they are very important for me [21:26] aha [21:26] maybe listen to instructions carefully then? [21:26] ?? [21:27] did you see if it's a gpt/msdos partition? [21:28] how can i see that? [21:28] EriC^^> M-spirit[m]: can you share the output of 'sudo parted -ls' of your disk? [21:30] gpt [21:31] ok, close testdisk and restart it and choose efi/gpt when it asks [21:31] my disk [21:31] :'( [21:31] ok [21:32] done it [21:32] ;) [21:32] is wroking again [21:33] i choosed "analyse" [21:33] is analysing [21:33] but when is finished [21:33] what happen? [21:35] it should show the partitions [21:35] right after the quick search, it should show them, and if you press 'p' you should be able to list the files, red ones are deleted files [21:36] press c or C to recover them [21:37] ok [21:37] is doing long deep search [21:37] i think it will request all night long [21:37] it doesnt need that [21:39] press stop then go back to quick search, they should show up there if they're not deleted [21:39] (the partitions) [21:39] ok [21:39] quick [21:40] is very slow [21:40] :') [21:40] it's the same [21:40] i choose quick [21:44] it will take all night [21:44] i want to die [21:44] :'/ [21:45] M-spirit[m]: just press 'stop' it should list whatever it found til now, probably your partition is there [21:45] scanning an entire hard drive to try to find fragments of files isn't a quick thing [21:46] it doesn't show me anything [21:47] M-spirit[m]: can you share 'sudo parted -ls' ? [21:47] xD [21:47] OK [21:49] Modello: VendorCo ProductCode (scsi)... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/6c203267a43f318447ab5c13fce3cf5c7c9c6367) [21:49] the HDD external where i want to recover my files is msdos [21:49] M-spirit[m]: Didn't you indicate in #ubuntustudio earlier that you've reformatted the disk from exFAT to ext4? Was that before or after you put the files on it? [21:50] before [21:50] first i formatted [21:50] then i putted the files [21:50] M-spirit[m]: There's no reason it should not take all night. It'c a difficult, complex process, and it takes time. Just let it run, come back tomorrow. [21:50] sigh... ok [21:50] he's really just looking for the partition at this point, not actual files [21:51] just he seems full of, ahem, discrepancies, so it's taking a while [21:51] ok [21:51] i will let it work [21:51] all night [21:51] no use M-spirit[m] [21:52] M-spirit[m]: exit testdisk, type 'sudo testdisk /dev/sda1' [21:53] choose none as the partition type, then choose 'file undelete' or so [21:54] there isn't file undelete [21:54] what is there? [21:54] look [21:55] * M-spirit[m] uploaded an image: (20KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/FocVYsbyAxeOahlDhmAaufZY/Istantanea_2022-04-04_23-54-52.png > [21:55] choose 'list' [21:55] * M-spirit[m] uploaded an image: (20KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/UcSVxRZtfPSaEOzrHrqVJSeS/Istantanea_2022-04-04_23-54-52.png > [21:56] sorry [21:56] * M-spirit[m] uploaded an image: (17KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/eABgWSpOgmRnToCCtSwZhyes/Istantanea_2022-04-04_23-55-47.png > [21:56] hmm, anything in "lost+found"? [21:56] ?? [21:57] what is asking me? [21:57] the dir, lost+found, anything in it? [21:57] use the right arrow key to open it [21:57] * M-spirit[m] uploaded an image: (7KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/EEOAJyotkuhGhVisEaTDOrAq/Istantanea_2022-04-04_23-57-46.png > [21:58] M-spirit[m]: you can try using photorec to recover the files [21:59] xD [21:59] is more easy [21:59] ok.. photorec [21:59] sudo apt-get install photorec [21:59] it comes with testdisk already, it searches for files in the disk based on their headers, if you tell it recover all jpeg it recovers them all, without names or dir structure though [21:59] right? [22:00] no, just sudo photorec /dev/sda [22:01] it say [22:01] E: File /dev/sda non supportato passato sulla riga di comando [22:01] "not supported on command line" [22:02] ok [22:02] is not [22:02] sda [22:02] is sda1 [22:02] M-spirit[m]: try just sudo photorec [22:02] ok [22:03] M-spirit[m]: you have to press 'file opt' and choose which type of files to recover [22:03] * M-spirit[m] uploaded an image: (11KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/jaiVwQqWTqQDsbUmshOWwcvg/Istantanea_2022-04-05_00-03-26.png > [22:03] M-spirit[m]: press 's' to disable all, then use arrow to select just the ones you want, 'b' to save [22:04] choose 'whole' [22:04] i want to recover all file now [22:04] files* [22:04] destination of files [22:04] can't be the same external HDD? [22:05] * M-spirit[m] uploaded an image: (22KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/piBpItqsqResEDVFzFcqNgZO/Istantanea_2022-04-05_00-05-11.png > [22:05] it can [22:05] where is the choice [22:06] M-spirit[m]: you'd have to mount /dev/sda1 somewhere and choose it as the destination in that dialogue [22:06] 'sudo mount /dev/sda1 /mnt' then go to /mnt [22:06] M-spirit[m]: ironically though, if there are a ton of files, with each one you recover you risk overwriting the others, i think [22:07] so probably best to use another hdd, if you value your stuff, also use 'file opt' it doesnt just recover everything, there are default headers selected right now, only some files, it depends on what you want to get back [22:08] i have just that one... [22:08] it has 2TB [22:09] it's up to you, if it recovers a file, i think it will copy it to /mnt, and it might be writing it over other files you want to recover [22:10] are your sure? [22:10] 2TB are a lot of Gigabytes [22:10] and space [22:10] :'( [22:10] uff [22:11] maybe... is better go to computer repair... and pay someone else to do this work [22:11] :((( [22:11] how much space are the files you're trying to recover? [22:12] maybe 200 Giga [22:12] because i've done a backup [22:12] of entire system [22:12] before reset my pc [22:12] aha [22:12] and my pc has a ssd of 512G [22:12] :'( [22:13] I'm alone doing these jobs, nobody helps me and so sometimes I make mistakes [22:14] yeah everybody been there [22:15] I have not worried about you .. only now I have thought about it [22:15] I just badly needed to clean up the pc because the memory was full to the max and so I bought a 2 terabyte external HDD [22:17] worried about me? not sure what you meant :D [22:17] i'm trying to recovr anything putting again on pc [22:17] I mean, I haven't thought about this chat [22:18] waa [22:18] 200gb is excessive i think, there's a chance you could overwrite stuff [22:18] is recovering a lot of files [22:19] i choosed a dir of my laptop to recover [22:19] argh... [22:19] i think if you care about the stuff, just get a usb, 200gb ones easily out there, or use the 512gb nvme [22:19] so... difficult [22:20] 512gb nvme is the primary ssd of my laptotp [22:20] i'musing it [22:20] ;) [22:20] what's the free space there? [22:20] thank you a lot eric, i'm sorry i i took you a lot of time [22:20] I would like to know how to reciprocate your generosity [22:21] 512gb nvme is free space [22:21] because i reset laptop this morning [22:21] ok, fwiw the computer shops might charge arm and leg for recovery.. if i were you i'd put the data over whatever i can find, in multiple passes, most important stuff [22:22] so use it for the 200gb recovery files? [22:22] after recovering, you can copy them back to /dev/sda1 and get the space back [22:23] yes, i don't know how much big are the recovered files.. i hope is just 200gb [22:23] :'') [22:24] the last time the memory of pc was full [22:24] i Just need to get a ssd for this laptop with 1000TB [22:24] so i will die happy [22:24] xDΓΉ [22:25] do multiple passes, get the most important stuff first to nvme, etc [22:26] I don't know how to be as practical as you with photorec ... I prefer to let him do it now as he is doing [22:26] if most important are movies, do pass for those file types, then reassess space contraints, do more passes [22:27] what's to know :D just choose the important file types, let it run overnight, anyways up to you :) [22:29] but [22:29] it's just tiring cause you have to do more passes, but it should work [22:29] if i stop it now [22:29] it's running now? xD [22:29] argh [22:29] i need another hdd! [22:29] yes is running [22:29] but i have fear to get ssd again full [22:30] yesterday i was unable to use pc because it was too much full [22:30] the possiblity of it overwriting is kind of big, 200gb, it has like 1800gb to write, that's roughly 10% of space it touches and files get overwritten [22:30] and i have no money to buiy it again [22:31] hmm, if the ssd is full just boot recovery mode from grub and delete few files, or a live usb [22:31] not a big deal [22:32] ok [22:32] for this moment [22:32] really you have to be selective of the file types in photorec [22:32] i want to recover just [22:32] 2 files [22:32] ok i stop it [22:32] ok great [22:32] what file types are they? [22:32] Krita [22:33] ok, so .kra files? [22:33] or ? [22:34] yes [22:34] krita [22:34] projects [22:34] M-spirit[m]: the electricity goes out here in a bit, i will skip to what you need to do, photorec doesnt have .kra files it seems, BUT it can recover any file you teach it to recover [22:35] how can i teach him to recover krita? [22:35] what you need to do is add to it .kra files, you'll need any other .kra file you can find [22:35] in case i disconnect, the guide is here https://www.cgsecurity.org/wiki/Add_your_own_extension_to_PhotoRec [22:35] umh [22:37] hey [22:37] photorec can find .kra [22:37] take a look here [22:38] https://www.cgsecurity.org/wiki/File_Formats_Recovered_By_PhotoRec [22:38] .kra is on the list [22:38] do you have it on the list, in file opt? [22:39] where can i fin file opt? [22:40] in photorec, first menu search options file opt [22:41] ok [22:41] i haven't it [22:41] ... [22:42] M-spirit[m]: type 'nano ~/.photorec.sig' [22:43] then? [22:44] copy and paste this into it https://termbin.com/ivwc [22:44] you're genious [22:44] done it [22:44] :)) [22:45] ok, save it [22:45] then type "wget -O /tmp/test.kra https://termbin.com/p00c" [22:45] and try "fidentify /tmp/test.kra" photorec should say "krt" as type, if it does then all good [22:46] wait [22:46] i don't know how to save it [22:46] ctrl+o [22:46] πŸ˜…πŸ˜…πŸ˜… [22:47] ok [22:48] it say [22:48] .zip [22:48] not .kra [22:48] o.O [22:48] * M-spirit[m] uploaded an image: (34KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/jQAFGOuqhxloqSBogThqUYIR/Istantanea_2022-04-05_00-48-48.png > [22:51] M-spirit[m]: hmm, type "cat ~/.photorec.sig | nc termbin.com 9999" [22:51] file or dir not exist [22:52] M-spirit[m]: type "wget -O ~/.photorec.sig https://termbin.com/ivwc" [22:52] M-spirit[m]: i read online some guy saying that it's supposed to be picked up kra by zip in photorec, but it wasnt for him, i tested here on a partition also didnt, but this signature he gave he said worked [22:53] so if anything you'll use both the custom signature and the zip, just in case [22:53] ok [22:53] it worked not [22:53] it answer me with this link [22:53] https://termbin.com/nv2i [22:54] try 'cat ~/.photorec.sig' again [22:54] yes [22:54] file found and contents are krt 0 0x504B0.... ? [22:54] it answer me [22:54] with this [22:54] ok [22:54] yes [22:54] try "fidentify /tmp/test.kra" again [22:55] zip [22:55] :'( [22:55] it might say zip, no worries [22:55] ok [22:55] M-spirit[m]: start photorec, sudo photorec /dev/sda1 [22:55] :'?) [22:55] yay the electricity came back here [22:55] hope you're right [22:55] ok [22:56] i'm here [22:56] go to file opt, [22:56] ok [22:56] then [22:57] press 's' to remove the default selection, then press right arrow key to select the first one "custom signature" [22:57] also head down to the absolute bottom and choose "zip" with right arrow key too [22:57] then press "b" to save the settings [22:57] and "q" to go back to menu [22:58] #wunclub [22:58] wait [22:58] when i press arrow key [22:58] it take me back [22:58] here [22:59] * M-spirit[m] uploaded an image: (17KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/pmGZMfVfWwnWxrhtecKQGLlw/Istantanea_2022-04-05_00-59-04.png > [22:59] hmm it shouldnt, give it another shot [23:00] aah [23:00] maybe you say to do that [23:00] it should appear a cross [23:00] yeah exactly [23:00] at left sqare? [23:00] ok [23:00] so [23:00] yup [23:00] the cross on custom and on zip? [23:00] yeah [23:00] then save all? [23:00] ok [23:00] right [23:01] press 'b' to save [23:01] done it! [23:01] great, press 'q' to go back to the menu, then hit 'search' [23:02] ok [23:02] i'mextrecting on documents [23:02] so difficult.. [23:02] sigh [23:03] do you like play some instruments? [23:04] dont play much anymore, used to play guitar long time ago [23:04] you? [23:04] i love guitar [23:04] 😍 [23:04] i play acoustic guitar [23:04] every day [23:04] at any time of the day [23:04] :') [23:04] and sing too [23:05] nice, i feel like my fingers would bleed if i played these days, no more dead skin on the fingers you know [23:05] i'vee become so nuumb i can feel you there it's been more i waste all i wanted to doo is be more like this la la lala [23:05] linkin park [23:05] xD [23:05] lol === osiris is now known as K3WHO [23:07] were you able to get it scanning? [23:08] yes [23:08] not file found [23:08] for this moment [23:08] * M-spirit[m] uploaded an image: (24KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/LMHlzeSyioTAIFurwfNlzZDg/Istantanea_2022-04-05_01-08-26.png > [23:09] aha, might take a while, hopefully it finds something! [23:09] i hope [23:09] πŸ˜₯πŸ˜₯ [23:10] anyway if it doesn't work i'll try others ways.. [23:10] is beautiful linux [23:10] yeah very useful, lots of tools [23:10] but sometimes is very difficult if you're not ready to solve problems [23:10] like me [23:11] for me the machine language.. is like ABC for children [23:11] got to read up a little, it gets easier the more you know stuff/have experience though [23:12] im off to bed, goodluck M-spirit[m] ! [23:13] thank you very much Eric, hope you will return you back your generosity i some ways [23:13] you're a good boy ;) [23:13] no problem M-spirit[m] , you're very welcome [23:13] haha, thanks, you as well ;) [23:14] have a good night!! MAgic dreams 🌈🌈🌝🌟 thank you [23:14] thanks, you too === K3WHO is now known as osiris === osiris is now known as _osiris === seifeslimene_ is now known as seifeslimene