#unix

1 messages · Page 51 of 1

nimble panther
#

pip freeze > requirements.txt

#

but uhhh

#

have you used a virtual environment for your project?

sick marsh
#

yes, I got that figured out this morning

#

doesn't seem to actually write to a file, is it necessary to create a blank requirements.txt file for it to write to? I assumed it would just create it

#

oh it actually did save to a file on the drive, just double checked, thanks!

#

just expected to see it in the file explorer in VS Code, used to that in Windows Pycharm

nimble panther
#

cool 👍

sick marsh
#

thanks Vivek 🙂

nimble panther
#

no problem 😄

main olive
#

why is managing packages on macos a pain?

mortal badger
#

Removing systemd-timesyncd (247.3-1~bpo10+1) ...
/usr/sbin/policy-rc.d returned 101, not running 'stop systemd-timesyncd.service'
Errors were encountered while processing:
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

facing to this error when i want to install resolvconf with apt
im using debian 10 buster
i upgraded my kernel to 5.10 recently

real swan
#

what does that mean? sorry for the late reply

lavish storm
#

why can't my spyder detect modules installed through conda?

#

(on 5.10.16, manjaro)

#

it works for some but not for others

#

for example i've installed discord.py through conda-forge and i can import it

#

but not triangle even though conda list shows that i ahve it installed

sudden mirage
real swan
sudden mirage
real swan
#

but i did not understand few things

#

@sudden mirage how do i run a program from command line?
in order to get aquainted with git each one of us pushed pow of 2, power of 3 ... 7. Now we want all these to a main program so that when the user is prompted for which power he wants, the result will be computed by corresponding function. So my question is how do we combine all these files into a single program and execute it (the main function is another push)

#

i spent almost a week searching these, yet failed to find a solution.
Also thank you for patiently answering my queries
any further help in this would be welcomed
thanks in advance @sudden mirage

#

anyone who can help me out with this are also welcome

median needle
real swan
#

sorry u got me wrong

#

im asking smthg related to git

#

i have given a description above

#

@median needle are u familiar with git?

warped nimbus
#

What does git have to do with running programs from a command line?

#

Git isn't design to run programs. It's designed to do version control of files.

real swan
#

if u have different functions uploaded in git (which are part of a main program) then how do u run them by clubbing alltogetherin a single program?

warped nimbus
#

You need to pull them from the remote repository with e.g. the git pull command.

#

Then those files will show up on your local machine.

#

And you'll be able to do whatever you want with those files, like execute them.

real swan
#

oh !!!

#

then i think ive complete;y gotten the ,idea of git wrong

#

clarif my understanding that i have got from ur explanation rn

#

@warped nimbus

#

is it like each day u work on a same project byimprovising ur code with neccessarycommit msgs indicating ur changes and then there will be one final program for us to run ultimately

#

right?

warped nimbus
#

Basically yes.

#

You can work and change existing files, add new files, delete files. Then you can commit and push those changes, typically to a remote repository that is on the internet like GitHub, GitLab, etc.

#

And at any point, anyone can pull the files from e.g. GitHub and run the code on their machine.

real swan
#

y do we add new files

warped nimbus
#

Because complicated programs are spread across more than a single file.

real swan
#

pls do bear with me @warped nimbus i liked the way u r explaining

warped nimbus
#

For organisational purposes among other things. It's difficult to work with really long files.

real swan
#

so how to we link one file into another then

warped nimbus
#

And you may have other files like images, data, etc. that your program needs.

warped nimbus
#

Well, you don't need to "link" them as far as git is concerned. They'll just all be part of a single repository. You cannot pull individual files with git - you always pull the full repository.

real swan
#

thenby only specyfying the name of the file they ll be directly accessed into a program>

#

when they are part of same repo.

#

my q is related to images thingy

warped nimbus
#

Git preserves the directory structure you have locally. So if you have a code.py inside the source directory, it will be the same on GitHub too, for example. When you pull the repository, git will create a source directory and put code.py inside of it.

#

So if you have another file, it can reliably do from source import code.

real swan
#

that happens implicitly?

#

from source import code thing

warped nimbus
#

No, that's code that you write if you want to use another python file. That's just a basic Python concept; it's not related specifically to git.

real swan
#

yes ive done that while working with python files on system but not with git so hence i had got that doubt

#

hope im not disturbing u

#

i have few more qs

#

cos i dont know if its day or night there

warped nimbus
#

Yeah it's night here and I will indeed be leaving soon. Just ask anyway. If I can't answer then someone else might. If you have questions about git, #tools-and-devops is a better channel since your questions so far haven't been specific to unix.

real swan
#

or shud i include from source import file1 file2 ....

#

in the main func program

warped nimbus
real swan
#

oh ok @warped nimbus thanks for ur time and u have really helped me a lot
thanks a ton

warped nimbus
#

You're welcome

real swan
red peak
#

how to run some python code if active window changes in linux?

#

i am looking for solution that do not need infinite loop for checking active window to determine whether active window is changed

main olive
#

listening for the file change

#

some system/gtk related file that would contain information about which window is active

#

but i couldnt find online

#

any information

#

on what that file is

#

i could only find how to retrieve the current active window via higher level tools like the one above

red peak
#
import psutil

pid = subprocess.check_output(["xdotool", "getactivewindow", "getwindowpid"]).decode("utf-8").strip()
prevpid=pid
print(pid)
while(True):
    pid = subprocess.check_output(["xdotool", "getactivewindow", "getwindowpid"]).decode("utf-8").strip()
    if prevpid!=pid:
        process=psutil.Process(int(pid))
        processName=process.name()
        print("Current Active Process is "+processName)
        prevpid=pid```
#

i have tried this code, it works but i think it is super inefficient

#

how can i eliminate that while loop?

heady heath
#

Is that the value of a dictionary is integer

#

In python

real swan
#

guys how to create a new folder in desktop by using linux terminal

#

any idea or is it impossible?

barren temple
#

mkdir command makes a new folder.

real swan
#

i need to do that in desktop

#

which is not possible with above cmd'

real swan
#

??????????///

main olive
#

mkdir -p ~/Desktop/MyNewFolder/

covert belfry
#

should i come back to linux lads? i had archlinux, went fine for me but idk i think i liked linux more. the reason i moved is because i have got a 2nd monitor connected to my laptop (laptop has an intel gpu and nvidia gpu) and on archlinux it doesnt wanna work. would it auto work on gnome or an other de? i used i3-gaps before so im not sure

real swan
thick drift
covert belfry
real swan
#

how can we cd to desktop @main olive

covert belfry
real swan
#

i had been spending months to get this

covert belfry
#

😐

real swan
#

why doesnt the ususl cd work and what does this mean

covert belfry
real swan
covert belfry
#

and Desktop is located in the home dir

thick drift
covert belfry
#

cd ~/Desktop && mkdir "New Folder"

#

@real swan

real swan
#

where do u find home in desktop is it ur name thingy?

thick drift
#

Or gpu not ‘hour’

real swan
covert belfry
real swan
#

~ this means home dir?

#

@covert belfry

#

now im unabl to cd into folders present in desktop @covert belfry why is that so

real swan
#

?

#

trolling?

covert belfry
#

when ur in desktop

real swan
#

im newbie

covert belfry
#

do cd folder

real swan
#

yea i did that

#

didnt work

#

no such file or dir is the msg

thick drift
covert belfry
#

mkay

covert belfry
#

and see if u have that folder there

real swan
#

yea i did

#

nd found the files

real swan
#

i closed and opened n now it works

#

thank u

thick drift
#

Fedora

covert belfry
#

im thinking about manjaro

real swan
#

aftr creating the folder im not able to find it on my desktop

real swan
#

anyone to help me here?

sudden mirage
covert belfry
#

./name.sh

sudden mirage
#

And to make a folder do mkdir folder

real swan
covert belfry
#

what de

#

?

#

what desktop environment

real swan
#

i use windows

#

and debian terminal

covert belfry
#

u mean wsl2?

sudden mirage
real swan
#

yesss

sudden mirage
#

Then it won’t work

real swan
#

y

covert belfry
#

lol

sudden mirage
#

WSL is not integrated into windows

real swan
real swan
sudden mirage
#

If you want Linux commands to work as they are meant to

real swan
sudden mirage
#

Use real Linux

#

“Real”

real swan
#

🙁

sudden mirage
#

But yeah

#

Use real Linux for the best experience

covert belfry
#

u can cd to ur home dir

#

cd /mnt/c/Users/

#

and then into ur user

#

desktop

real swan
#

but wts the use of getting into desktop

covert belfry
sudden mirage
#

That too

covert belfry
#

ok gtg

#

bye

real swan
sudden mirage
#

But WSL is not the best Linux experience if you want the real thing

covert belfry
sudden mirage
#

Yeah ik

#

It’s supposed to be a good drop in experience

#

Which in all honesty it is

real swan
#

then wt are those folders which i can find present in desktop which is shown in terminal

sudden mirage
#

Ok

#

WSL is basically a little VM to put it simply

#

So the command line is pretty much the only way you can access it

#

I’m pretty sure you can do explorer.exe to pull up the file manager

real swan
sudden mirage
#

I just told you what you can do

#

Wdym you don’t know it

real swan
#

what is explorer.exe?

sudden mirage
#

Just type it in

real swan
#

im always scared that i wud end up messing up with my system

sudden mirage
#

It’s WSL

#

The worst thing that could happen is you break WSL

#

And if you’re so scared then at least check what the commands do

real swan
#

we actually are doing a small hobby project and there are nobody to help with technical issues

#

so im refraining from doing such things

#

i dont even know how to dual boot my system

sudden mirage
sudden mirage
#

I did it

#

Pretty easy tbh

real swan
#

i have heard this from many

#

but one day ill ping u for this if u mind

sudden mirage
#

To dual boot?

real swan
#

im litrally scared of backing up

real swan
#

🙁

sudden mirage
#

Fine...

real swan
#

will u accept my friend request cos im not able to pin u also. orelse u want me to type in here?

#

there are lot of servers right in here

sudden mirage
#

Just type it in here

real swan
#

okie

#

thank you so much

#

i never found people on discord who understood and responds to me this way

#

as soon as i say i dont know to dualboot they pass on ironic comments here

sudden mirage
#

That might be because you can easily learn it on YouTube

#

But fair enough

real swan
#

whatever it might be the way you communicate is really good ...

#

also @sudden mirage have you ever used git?

#

i have few qs on that too

sudden mirage
#

Yes I use git

real swan
#

so wn we do a project what are we supposed to push and how do we build em

#

i have some idea about it

#

but building a project is making me think something difficult

#

cos ive seen ppl uploading individual files but how do they run the entire project?

sudden mirage
#

Where are you pushing the project to

real swan
#

they dont even specify from ___ import * or something like that

real swan
sudden mirage
sudden mirage
real swan
#

im basically doing a python project so specified that way

#

gitlab

sudden mirage
#

What you do with python won’t change what git can and can’t do

real swan
#

jsu a moment ill post a qs which i posted on pther server

#

i had posted it here only

#

in order to get aquainted with git each one of us pushed pow of 2, power of 3 ... 7. Now we want all these to a main program so that when the user is prompted for which power he wants, the result will be computed by corresponding function. So my question is how do we combine all these files into a single program and execute it (the main function is another push)

#

and got an idea but i dont feel that was right

sudden mirage
#

That makes absolutely 0 sense

#

You can’t push individual function

#

You can only push files and directory

#

And all you have to do is combine functions in one file

#

And I don’t think this is the right place for this

#

Try one of the help channels

real swan
#

are u availab;e there too?

sudden mirage
#

Frankly, I’ve got things to do and places to be, so no, I don’t think I will be available there

real swan
#

😐 yes i understand sorry if i had troubled you

sudden mirage
#

It’s fine, don’t worry about it

real swan
#

bye

main olive
#

re-running the same process like xdotool is your only option like i said in my original answer

coarse shadow
#

Guys, can I get a quick reminder on syntax?, it's driving me nuts

summer trail
#

but also, that's a roundabout way of doing it in the first place

coarse shadow
#

Yyep. Knew something was amiss

#

Tried to do both instructions separately hut it just wouldn't

summer trail
#

you can just do sudo ./pyenv/pingenv/bin/python pingaso.py instead

coarse shadow
#

Duly noted. Thanks a lot 🤗

main olive
#

is someone familiar with "Pack Distribution Project by Peter Krisensen" I can't get any info out there about him or his project

warped bane
warped nimbus
real swan
#

my pygame game window isnt visible when running on debian

sudden mirage
warped nimbus
#

I resumed my VM today and discovered that sudo is rejecting my user password. I switched to root with su and used passwd to update my user's password, but sudo is still saying my password is incorrect. What's going on?

#

Maybe I just need to reboot, but I'm concerned that if I do that I may get locked out of my user.

#

Okay rebooting actually fixed it. Really strange.

#

I didn't even actually change my password I just set it to presumably what I had all along.

main olive
#

Thank u a lot rtobar and mark ❤️

coarse reef
#

How would I delete the latest or current line of output?

#

I know \r puts me at the beginning of the line but that's not what I'm going for

#

sys.stdout.write("\033[K\033[F") maybe?

olive bison
real swan
#

@sudden mirage is it possible to insert an image from git repo to our latex files

#

is it possible to insert an image from git repo to our latex files

sudden mirage
#

wsl has no integration to windows in regards to GUI apps

real swan
#

yes got to know 2 days back and hence installed vware @sudden mirage

summer trail
#

It can be made to work if you install an X server

harsh owl
#

back in the day you could use dpkg --set-selections, no idea in this brave new snap world. i switched to arch linux, personally.

winter trail
#

Let's

#

Create your own OS

#

In python

opaque ginkgo
#

apt-mark hold?

neat tendon
#

hi

thorny bluff
#

hi

olive bison
#

hi

stiff tangle
#
charlie@charlie-GF63-Thin-9SCXR:~$ sudo isw -w 16R3EMS1

Writing config to EC...
Traceback (most recent call last):
  File "/usr/bin/isw", line 499, in <module>
    main()
  ...
  File "/usr/bin/isw", line 336, in ec_write
    with open(EC_IO_FILE,'r+b') as file:
PermissionError: [Errno 1] Operation not permitted: '/sys/kernel/debug/ec/ec0/io'

Even though im using sudo, it doesn't give the script enough perms, how do i permit the script to run with its permission?

olive bison
stiff tangle
olive bison
stiff tangle
olive bison
#

did you get this program from pypi?

stiff tangle
#

I got it from a public github repo

olive bison
#

imo the fact that it's throwing unhandled exceptions while trying to manipulate files under /sys means it might be worth rethinking if this is the best software to do what you are trying to do

#

I can control the speed of my fans by just manually writing files under /sys if I feel the need, I'd feel much more comfortable using a small script i wrote myself instead of something from guthub that has already proven that it doesn't work right

#
old_val=$(cat /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:102/APP0001:00/fan1_output)
cat /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:102/APP0001:00/fan1_max > /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:102/APP0001:00/fan1_output
<fan goes to max RPMs>
echo $old_val > /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:102/APP0001:00/fan1_output
<fan returns to normal rpms>
queen lance
#

By default, if you don't have ufw active will you automatically deny access to general ports like 80 443 etc? (on Ubuntu)

#

Is it using iptables or how do I figure out what it is doing?

harsh owl
#

nine: ufw is a frontend for iptables, iptables -L will show your rules

main olive
#

I've successfully logged into my raspberry pi with PuTTY.
I can log in with pi@raspberrypi
I want to SSH into my pi using Ubuntu/WSL.
Every time I try, I have to log in with turtle@raspberrypi.
I want to log in with pi@raspberrypi
is there a way to do this?

somewhat new to linux, fyi.

unique thunder
#

You can create a new user named pi or change the username.

main olive
unique thunder
#

Do you have a user/group-specific ssh policy set up to only allow turtle to login remotely?

main olive
unique thunder
#

Oh, I've never used Windows 10 sorry.

main olive
#

Ubuntu.

#

it's just ubuntu

opaque ginkgo
main olive
#

Oh. I did that but i guess i typed it wrong. works now.

#

thanks

rose steppe
#

exit

warped willow
#

if you are creating how can help you in your project

wise goblet
#

What's the best way to create a supervisor service for an API

#

Currently we are runnning a cron job which does a health_check call for the API and if it doesn't respond restarts

#

This cron job is scheduled every 1minute

#

Is there any better way to create a supervisor service?

feral harness
#

what up, well i have a problem... I own and use a Macbook for python programming but all my friends don't. Now my question is HOW in the world do i make my mac python Programm work on Windows? And is there a way to make it work universal?

main olive
#

yep, but windows guys wont care

#

from my experience

#

nah, so ofc it's meant to work universilly, but there are ofc ways to break this

#

for example importing certain packages that rely on a specific OS

#

and if nothing helps

#

just dockerize it

main olive
#

you will have to elaborate on the "dockerize" part for him

opaque ginkgo
#

most python programs should work cross platform

#

as long as you don't rely on os-specific features like the filesystem hierarchy

lone haven
#

unless your program does mac related stuff it will work on linux & windows just fine without problems

molten wedge
#

I have a script like so

#!/usr/bin/bash
command_to_run="$@"
echo $command_to_run

When I do ./script Hello\nwith\nnewline, i expect the output to be Hello\nwith\nnewline, but I get the output to be Hello with newline. What am I doing wrong here?

rugged swift
#

Consider to try with -e, so echo -e $command_to_run

warped nimbus
#

I suggest you use printf instead. Its behaviour is easier to understand.

#

I tend to only use echo with string literals.

#

i.e. strings without any expansions etc.

shy yokeBOT
autumn forum
#

https://paste.pythondiscord.com/usuwugagic.py
Hi, I need some help with a class project. If you can run this script on a Linux system and send me the file it creates. Make sure to audit the code before you run it. Stay safe. Thank you

harsh owl
#

BASTON: it is so easy to run a vm, different OS etc, why would you need anyone else to do such a thing?

opaque ginkgo
#

if you have windows you can use wsl

#

but you should be able to run it cross platform if you remove the unnecessary subprocess call at the end

fluid glen
unique thunder
#

Hey everyone, I want to get back into developing python (and other stuff). My editor of choice is vim. Are there any "state of the art" type plugins for vim (or anything else for that matter) I should know about?

inland gulch
unique thunder
#

Oh ok. It was either there or here. :) Thanks!

inland gulch
#

@unique thunder your welcome

#

@unique thunder They mightnt have answers... and others might be round this way later with stellar suggestions, luck of the draw really. I barely know how to get my fingers in and out of vim unscathed

unique thunder
#

No worries, thanks.

main olive
#

so i have a problem with my server. I use crontab to update some data in a db every hour and it works fine, till I run another script with .python3 main.py and when this script is running, the data doesn't update. Seems like crontab can't execute the task. What am I doing wrong?

slate night
# main olive so i have a problem with my server. I use `crontab` to update some data in a db ...
DigitalOcean

I've written a python script for python 2.7 - its main purpose is to search the directory that it is in for any CSVs that begin with 'contact' and end in '.CSV' - it then parses those CSVs and makes some API calls to send the data elsewhere. It does t

#

this might help

main olive
#

I'm going to try that

feral harness
main olive
harsh owl
#

what is the cronjob you have? does it have the fully qualified path to python and the script you want to run? you can capture output and stderr into a file to see what is going on

#

you can even run the cronjob in a screen session you can resume later to see what executed

main olive
harsh owl
#

that looks reasonable. if i was you i would look at capturing stdout/stderr, add some logging statements etc.

main olive
#

yeah, I'll try that tomorrow, if not I'll try it with multiprocessing

main olive
#

how do i install requests to ```py
import requests

sharp hedge
#

hi

#

I'm having an issue with installing tkinter using pip in linux

#

I'm currently using 3.8.5

#

but

#

when I try to install tkinter it says that there's no matching distibution

winter trail
#

Not working?

vivid sequoia
#

Also the command is pip install tk not pip install tkinter

main olive
lavish hemlock
#

I need a new name now because someone made a website with my name in it and now thats all google shows

opaque ginkgo
#

@sharp hedge u don't need to install tkinter vis pip

#

tk is stdlib

#

if youre using a distro without it included in the main stdlib package

#

Then install it through your package manager

#

ex:apt install python3-tk on debian/ubuntu

#

@sharp hedge tk on pypi is some random other package

#

@vivid sequoia ^ btw

ripe musk
#

Anyone bothered by search being broken in pip?

#

The only package manager without search functionality...

opaque ginkgo
#

yeah pip is honestly kinda bad

#

compared to other package managers

opaque ginkgo
#

downsides to having no verification on packages

lavish hemlock
#

I miss old internet

kindred basin
#

The main thing I hate about pip is that there's no upgrade functionality.

#

Like, yeah, you can manually upgrade a package with pip install --upgrade, but who's going to go through every single package they have installed and try to upgrade it?

sharp hedge
#

that should work then

#

thanks

warm thistle
#

I deployed a text-based game utilizing websockets to a server running Linux. This text-based game uses the sleep function for pausing before sending a JSON object containing text to the client. My development environment is Windows.

In Windows, the sleep function works properly and the server pauses accurately before sending the data to the client at the specified time.

However when in Linux, either in the development environment or during production, the client receives the websockets event data all at once as if the server didn't even pause, but the server IS pausing for the appropriate amount of time.

I dont know why the event signal is getting received all at once like that. Any help?

lavish hemlock
#

@kindred basin You can make an alias

#
alias pip="pip install --upgrade"

pip install module

#

there is also:

pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install -U
#

or

#
pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install -U```
summer trail
tender plinth
#

Excuse me if not supposed to ask this here , but , I have a remote test service which is dumping an executable in the form of hex literals (something like - ELF\x10\x00\x30 , and I want to recieve this data and convert it to its ascii form so that I get the proper executable, does anyone know how this could be done using python?

summer trail
tender plinth
summer trail
#

That's unfortunate.

tender plinth
#

so is there a way to convert all that hex literal data into executable format?

summer trail
#

Wait... Does it return "ELF\\x10\\x00\\x30", or does it return b"ELF\x10\x00\30"?

#

If the latter, it's already binary data, and you just need to write it to a file:

with open("filename.ext", "wb") as f:
    f.write(data)
opaque ginkgo
lavish hemlock
#

Works for me @opaque ginkgo

opaque ginkgo
#

wb pip show

#

or like literally every other pip command

#

now thats broken

warm thistle
warm thistle
#

@summer trail where usually are the events being buffered? Is this in the WSGI/ASGI software (im using uvicorn/gunicorn) or somewhere after this?

summer trail
#

I'm not familiar with with websockets to be able to offer any specifics, I'm afraid

warm thistle
#

Thank you for this hint tho!

autumn forum
#

Yo, Does anyone know how I can make it so that when I'm in python on my bash terminal I can use the up arrow key just like in bash to do the previous command. PS, I'm using python as a calculator It's sooooooo usefull.

dapper musk
#

what it works by default

harsh owl
#

i think it depends on readline.. it works for me by default in linux as well

dapper musk
#

oh you must make

#

.python_history(betwen interpreter invocation it works by default in 1 session)

#

in your's home dir

slate knot
#

hey everyone, I want to use a raspberry pi with a camera connected to it as a 'remote' webcam for another machine. Does anyone know whether it is possible to register a video stream so it can be used by software like skype and discord?

autumn forum
#

@harsh owl @dapper musk Thank you but I'm an idiot that copied code from the internet into my .pythonrc that broke that feature.

dapper musk
#

xd clear it

light gorge
#

Struggling to get ubuntu server online. Is this right channel to ask for help? :)

void sleet
light gorge
#

@void sleet thanks!

unique thunder
sharp hedge
#

Do most of you all use linux as your main OS?

#

I got tired of virtual machines

warped nimbus
#

Nope, but I want to. Keep finding excuses to put it off or I don't have time to migrate.

#

I'm putting up with a VM

harsh owl
#

ThunderboltSH: for the last 25 years.. ;)

dapper musk
#

for 2 years because programming on windows from my experience was nightmare.(lack of Package manager and this awful paths importing in this awful UI from windows 95)

sharp hedge
#

yes

#

I set up dual boot

#

and I hardly boot into windows

sharp hedge
harsh owl
#

my beefiest box is actually generally a windows machine.. purely for gaming.. i try to keep the windows hassle to minimum but it manages to annoy me fairly often

dapper musk
#

yes sadly gaming on linux is awful especiali if your's hardware is lower end.
it is acctualy 1 reason that i have dualboot

harsh owl
#

yea i dip back into linux gaming on occasion, way better than it has ever been but still just not really comparable for any higher end game

dapper musk
#

yes but some developers are making native versions for example linux factorio version works beter than windows one + for some reason company of heroes 1 works beter in wine that on real windows lol

warped nimbus
#

There's technology being actively developed to allow sharing the GPU with a VM. It's still not mature enough unfortunately. Currently what people do for VMs is have a separate GPU for the host and the VM.

dapper musk
#

well if you have intel igpu i think you can use it for linux and linux desktops generaly(not GNOME) are light

warped nimbus
#

Hopefully the technology will be there for a single GPU in the next decade 🙃

dapper musk
#

🙃

#

lol it is windows only

#

ah there is debian version

warped nimbus
#

As a guest, yes.

dapper musk
#

on their webiste i see only windows host binaries(maybe debian repo has one)

warped nimbus
#

Because the typical model of distribution for linux is via source and building locally

#

That's what package managers do

dapper musk
#

i know i pointed out to debian

#

sadly my PM do not see it

#
  • .deb is for some reason not compatiblie with non debian based
sharp hedge
dapper musk
#

oh i dont think it can beat gentoo wine performance

#

xd

slate knot
#

does anyone know how to create a video device like /dev/video0? I want to stream a video across a network and into that device, so it can be used as a webcam

steep wagon
#

i am struggling to use sed to add suffix to each line of a document i am using sed 's/$/.mp4/g' filename

summer trail
#

It appears to handle many of those confusables, at a quick glance.

sharp hedge
sharp hedge
#

which is better? Arch or Debian?

limber ocean
#

Debian is my opinion

dapper musk
#

arch imo debian repositories are preaty old i know abount debian unstable but still compiling anything is awful beacouse almost always source requires more modern packages than debian have.

amber garnet
sharp hedge
#

alright

#

yes

#

Debian does not deem to be good

dapper musk
#

but it have 1 + it is super stable it eaven ran 1 year non stop on my rpi

amber garnet
#

Guys in my department have many Debian production servers and all are working fine

dapper musk
#

oh debian is great for servers

#

imo not so much for personal use

sharp hedge
sharp hedge
dapper musk
#

oh i ment debian based for example distors as ubuntu and deepin are mailny GUI changes

#

cli is ~ exacly the same

sharp hedge
#

yes some minor changes like we are not added to sudo users for example in debain

#

which is kind of annoying

unique thunder
autumn wolf
#

I have a question. For me, uname -r returns 4.1.2-finnix how do I change that to generic?

dapper musk
#

it says your kernel relese

#

so in order to change it you must install new one

#

and you realy should 4.1.2 is preaty old

#

if you are concerned why you are geting 4.1.2-finix not 4.1.2-generic then it is distro specific

#

and mainly it is the same thing

past sluice
#

can someone help me regarding ansible

#

playbook

dapper musk
#

yes they are

#

software in debian repos is way older than in idk arch ones

dapper musk
#

eaven debian default kernel

#

is awfuly old

main olive
#

Hi

amber garnet
main olive
#

Sup

opaque ginkgo
dapper musk
#

it is sill old😛

dapper musk
#

i said that lol

#

imo arch is beter for personal use

#

and debian for servers

#

and this is just my opinon

dapper musk
#

was't cent os killed by redhat?

dapper musk
#

"we" are you in dev team?

main olive
#

I'm not 100% sure where this should go, but this is the closest channel to the topic I think, so recently I've learnt mmaps and how they are quite efficient. but is there's a time where you don't want to use it? like, can I just use mmaps all the time as opposed to normal .opens?

dapper musk
#

yes

#

but minor one

#

for example you on 32 bit systems you can directly addres up to 4GB of fille

#

and for example you cannot load fille from some potrafle device and then unplug

#

and mmu are faster but only on hardware that suports it

#

if hardware do not does so mmap ill be handled as normal open but it ill acess only small amount of data so well it will be inefficient

#
  • it can have somme additonal error for example if 1 program is writing to file and 1 reading it but it should be handled by OS
#

oh then gl working on it

main olive
#

Hi

#

HElp me

dapper musk
#

in what?

main olive
dapper musk
#

why are you doing it in root directory?

#

if you realy need to

#

then type sudo before

#

but you realy shouldnt clone to root

main olive
#

So where to do?

harsh owl
#

type cd ~

#

and rerun command

#

also learn about homedir and permissions :P

dapper musk
#

and linux file structure

main olive
#

Ok I ran these

#

But having problem with this

harsh owl
#

what do you think the issue is based on the error message?

main olive
#

can't find that command somehow

dapper musk
#

did you instaled this?

main olive
#

createdb hive was

#

hive sync means yncronization I tinhs

#

think*

dapper musk
#

can you link this github page?

main olive
#

ok

dapper musk
#

can you show output of python3 setup.py install --user

#

?

main olive
dapper musk
#

full

#

use >> or > to do so

#

at the end of the command to route output to file

main olive
dapper musk
#

yes i told her/him to change that

#

o nice command

#

XD

#

m1?

#

oh i wanted to buy m1 air

#

ah F

#

well apple pricing

#

witch model did you bought?

#

pro 16 inches

#

?

#

so you maxed it out

#

does it have problems with thermal throttling?

dapper musk
#

good to hear. maybe i ill consider geting x86-64 macbook above ARM one if termal throttling is not an issue

dapper musk
#

oh thats bad

#

what abount batery life?

gritty olive
#

.topic

junior fjordBOT
#
**What's your most used Bash command?**

Suggest more topics here!

main olive
#

hi

main olive
#

hive sync not works

hot raptor
#

can these two commands
grep -w -- $dm $newFile >> "$existingFile"
grep -w -- $dm $newFile | head -1 >> "$shortFile"
be written as
grep -w -- $dm $newFile >> "$existingFile | head -1 >> "$shortFile"

dapper musk
#

use tee

#

to do so

amber garnet
lavish hemlock
#

Hello i am wanting to kickstart a discord server focused around linux, does anybody want to help me with this and be partners with me?

main olive
#

How to access ~/.local/bin

dapper musk
#

what

#

what do you mean by acces?

#

if you want to change directory then cd PathToDirectory and if it is the issue then you should read unix cli basic guide

tender plinth
#

Hello , I've been facing a little trouble with vim recently , when p is pressed after space immediately , it shows <Plug>PeepOpen , so I have to wait for a second before typing p for it to work normally , is there a fix to this?

main olive
#

Not change I mean to reach

#

why each time getting need permissions?

#

I am at home fodler

formal schooner
#

@main olive can you show what command you are trying to run, and the error you are seeing?

#

@tender plinth it looks like you installed a plugin that assigns <plug>PeepOpen to p . does this only happen in normal mode? try :verbose map p to see which plugin did it. i really dislike plugins that automatically override standard mappings...

tender plinth
#

this is the output of :verbose map p

main olive
#

how I can check if database is created?

formal schooner
# tender plinth

it looks like vim-yankstack did it then. remove vim-yankstack or consult its documentation to see if there is a way to disable the mapping

main olive
#

Hi, I'm currently trying to install python3.9 on a debian server. I have read that I should add the repository ppa:deadsnakes/ppa. However, apt tells me that

N: Updating from such a repository can't be done securely, and is therefore disabled by default.```

Should I set allow-insecure=yes or is there a better option?

harsh owl
#

Gudrun: cant you just edit the sources file and s/http/https, then apt update? or thats what i would try anyway

main olive
#

meh I don't think I'll keep trying since the only reason I needed python3.9 was brand new builtins like str.removeprefix() but I just wrote that myself now

#

But I'm not quite sure what you mean - how would manually entering the repository make it more secure? Like, for what reason would apt stop complaining?

harsh owl
#

godlygeek: in /etc (something like /etc/apt/sources.list.d) there are files that contain the links to repos apt uses

#

sorry godlygeek mean @Gudrun :)

#

anyhow - http is plaintext, https is secure

main olive
#

yeah I get that

#

oh so you mean I should just enter https?

harsh owl
#

right exactly

main olive
#

well, I would just like to remark that when I enter that in my browser, it appears to not have a valid certificate

#

so that'd probably not work either

harsh owl
#

interesting - anyway, like i said, thats just what i would try. not that its guaranteed to work. its been a while since i used ubuntu, switched to arch linux a while back

main olive
#

well as I said I've already implemented the python3.9 function I needed myself

#

thanks for the help though

harsh owl
#

cool. yea that ppa seems like a bit of a mess tbh looking at it

#

one of the reasons i like arch; many things are packaged well. yet to not find anything i wanted in aur. they are on python3.9 already by default which is nice

past sluice
#

hi

#

how to allow remote connection to sql server 2019

#

so that i can access it through windows

loud ginkgo
#

the remote instance of sql server doesn't allow external connection by default?

#

in practice usually if you want to dev locally you would connect to the db via tunnel node for extra layer of security

amber garnet
amber garnet
loud ginkgo
#

oh he mentioned remote so I assume it's outside his local network

#

but if you can, use postgres. sql server doesn't scale that well

amber garnet
amber garnet
loud ginkgo
#

oh yeah you can only allow certain IP to connect. but in production usually someone will set up vpn or tunneling for you to overcome local dynamic ip issue

amber garnet
main olive
#

Hi

#

Help me

loud ginkgo
#

don't ask to ask. ask away

graceful holly
#

how can i install garuda without grub ?

dapper musk
#

yes you can(in theory) but 1 st you can f up your linux and 2 it is hard

#

if you want simply to do not see grub at boot

#

edit /boot/grub/grub.cfg (back up your piervos .cfg please)

#

set GRUB_DEFAULT to gradua

#

GRUB_TIMEOUT to 0

#

GRUB_DISABLE_OS_PROBER to true if gradua eaven have it instaled (it is not nesecary)

#

GRUB_CMDLINE_LINUX_DEFAULT to "quiet splash"

#

GRUB_CMDLINE_LINUX to ""

#

and run grub-update

lavish storm
#

hmm what's the consequence of replacing python-dbus with extra/dbus-python?

dapper musk
#

name change lol

lavish storm
dapper musk
#

same nearly 5Gb

lavish storm
#

i love that it shows the net upgrade size

#

sometimes it's negative xD

dapper musk
#

yes xd

#

but it happens ralerly

dapper musk
lavish storm
dapper musk
#

xd i have 1650 acctualy but propably most of them did not get update

lavish storm
#

obligatory neofetch time?

dapper musk
#

nah hardware section ill be awful

tulip badger
#

is dis the place for linux?

rugged swift
#

This is for unix-likes. So, Linux is included.

tulip badger
#

OHHHH

#

so i'm trying to install solus linux, it will install but after i restart and unplug the boot device (or however you say it) it won't boot without the boot thing. if someone could help i would appreciate it.

tender plinth
#

when I try to include , linux/uaccess.h or asm/uaccess.h , both give me file not found error , does it need some dependency to be installed?

main olive
#

Hi help me

barren temple
#

@main olive you have to ask to have answers 🙂 Also @tulip badger your question makes no sense at least to me. You installed solus, but it won't boot? Did you set the drive you installed solus on as first boot device from bios?

main olive
#

My question is how make hive sync I mean to retrieve data from hive blockchain and store it in postgresql database?

#

This is api

barren temple
barren temple
#

thats fine

main olive
#

Hi pls help me to reset ubuntu password

dapper musk
#

passwd username

#

if you forgot your root password then you can make bootpen boot into it and edit /etc/shadow

main olive
#

I already did passwd username, and changed password but still can't login with new password

dapper musk
#

and you cant with old ethier?

main olive
#

bootpen boot how?

dapper musk
#

download some boot pen linux ISO

#

and burn it

#

idk gparted should be enough

main olive
#

Hi I can login in tty linux but not via GUI ubuntu what's wrong?

#

where

#

really?

#

So can I now login via GUI?

#

not still not works

main olive
#

how do I enter a running tmux session?

#

nvm figured it out

main olive
midnight phoenix
#

Hey there, what are the advantages of using WSL?

main olive
#

Still login via GUI not works

main olive
#

Hi

main olive
#

how2 RW /proc/X/mem? Operation not permitted even under root

#

Please where to run hive sync?

dapper musk
amber garnet
stiff tangle
#

How do i detach from a tmux session? Ctrl B + D isnt working for me

loud ginkgo
#

ctrl b + d should exit to a normal shell. wdym

tender plinth
#

Hello , I've started using tmux just a while back , and noticed that when u enable the mouse mode , u cant select text normally like we do in bash , so is there some work around that I could add into my configuration to select text even with the mouse mode on?

tender plinth
trail lodge
tender plinth
#

like multi line selection with mouse can be done with double click on normal bash , but in tmux , its not really good

trail lodge
#

If you press and hold shift you can still do that

tender plinth
#

well , that doenst happen with me , im not really sure why

urban minnow
#

On ubuntu I did a force unmount of ext4 partition of my main drive now I cant do anything wont shutdown terminal wont open chrome wont open only like calendar opens

dapper musk
#

so unexpected how anyone could guess that when you basically did equivalent of disk unplug system would break?

#

never use --force if you do not know what you are doing

harsh owl
#

BarneyLovesYou: you will need to reboot, i suggest having a recovery method such as a usb boot drive or dvd so you can fsck the drive. ext4/xfs are fairly hardy, you might lose a little data though, depends on what you had going on. the longer you leave it running likely the worse things will be, especially if you open anything important and try to write it

urban minnow
#

I installed ubuntu today, nothing important was on the drive is the good part, I was trying to make a windows bootable usb. the tutorial said to unmount ext4

dapper musk
#

good for you. next time read errors and do not use --force 1st

harsh owl
#

yea --force is almost always the wrong option. though i recently quit a job and my last command was sudo rm -rf /

dapper musk
#

and if you are doing anything with disks make sure that you are working on disks that you are sposed to do(fdisk comes handy here)

dapper musk
harsh owl
#

it was on my remote workstation hehe.. everything business related was off the box, checked in etc

#

i did a really long transition / training handoff for all the important stuff

dapper musk
#

well still quite nice farewell "gift"

dapper musk
#

from which font are those chars?

dapper musk
#

oh it wasn't font problem

rancid barn
#

Guys, I am trying to turn a normal TV with a USB and HDMI ports into a smart TV. What Linux distribution would be suitable? Also what could make the screen of the TV interface with code on the flash drive?

#

What I found from research:

  1. There doesn't seem to be anything similar.
  2. The other alternatives were a dongle (Chromecast, Apple TV) or just plugging in an HDMI cable from a PC which is not very exciting.
    Edit: Also the TV manufacturer also does not provide an API and I couldn't find how the multimedia player on the TV was made.
granite aspen
#

I tried installing virtualbox but it said I needed to reboot. I didn't have time to do that so I tried to cancel the install. Now I don't have the option to turn the computer off through the UI

#

I have these processes running

root        2830  0.0  0.0  14148  5284 ?        S    08:29   0:00 sudo apt install virtualbox
root        2831  0.0  0.1  18944 10344 ?        S    08:29   0:00 /usr/bin/python3 /usr/local/bin/apt install virtualbox
root        2834  0.1  0.8  80360 67112 ?        S    08:29   0:06 /usr/bin/apt install virtualbox
steele      9656  0.0  0.0   9032   736 pts/2    S+   09:57   0:00 grep --color=auto -i apt
#

can I safely kill them?

granite aspen
#

I killed them and I think it's fine.

amber garnet
granite aspen
#

we'll see what happens next time I reboot, I guess

wise valve
#

hi

#

i have a linux

#

and i want to code in python

#

i can do the basic stuff from terminal

#

but cant do turtle and tkinter

#

when i download python from the browser

#

it shows a lot of files

#

i dont really know what to do next

#

can anyone please help me

#

pls ping me if u reaply

amber garnet
wise valve
#

ubuntu

amber garnet
# wise valve ubuntu

You can try to install python3-tk by executing

$ sudo apt-get install python3-tk
wise valve
#

zdr

amber garnet
wise valve
#

sorry that was typed by mistake

amber garnet
#

Oh, okay

wise valve
#

it says command not found

amber garnet
wise valve
#

$ sudo apt-get install python3-tk

amber garnet
wise valve
#

ok

long pilot
#

why apt-get if you can just apt

amber garnet
#

I wanted to show that you should execute this command in the terminal

wise valve
#

its downloading something now

amber garnet
wise valve
#

its finished now what

long pilot
#

try launching python from the terminal i guess or something

wise valve
#

i did

#

but i still can use the turtle module

amber garnet
#

Paste your code

#

What are you trying to execute

#

And error message if appears

wise valve
#

just trying to import the turtle

wise valve
amber garnet
wise valve
#

the command is
import turtle

#

ohk then

amber garnet
wise valve
#

but in the book im using says that a canvas will appear when i import turtle

amber garnet
wise valve
#

TYSMM IT DID

amber garnet
long pilot
#

pog

granite aspen
#

I was able to safely kill them and reboot

amber garnet
#

What if you have program which is not responding?

urban minnow
#

are directories just a file array, if you were to look at them under the hood?

molten wedge
#

They have their own metadata, so I'd think not.

dapper musk
#

here is diagram how it works

#

(btrfs)

#

meanwhile in UFS(unix file system) directories are just files

#

containing pointers to files inside it

#

so more like linked list

proud dagger
#

i want to put a python script in /usr/local/bin so everyone can use it. it has a dependency.

  1. Is making a virtualenv with that package installed and pointing the shebang line to it the correct way to make it go?
  2. If so, where is the linux-iest place to put that virtualenv? Something under /usr seems right, but I'm not sure.
rugged swift
#

For /usr/local/bin, I personally tend to put it at /usr/local/share/{my-app-name}. But I don't know; I'm not an expert at this.

warped nimbus
#

Is making it a package that's installable with pip not the direction you want to go in?

proud dagger
#

also i don't want it to stop working if someone has a different virtualenv active. i want it to work as easily as any other system executable

warped nimbus
#

You can do a --user install. If you want it available for all users then I suppose the "proper" way is to create a package that is compatible with your distro's package manager. At least that's what I do on Arch. I don't know if that's too annoying on other distros.

proud dagger
#

cool, i appreciate the replies!

ionic goblet
#

Pretty stupid question but how can I install the default windows 10 font, I think its segoe ui? to my ubuntu machine? i am missing alot of emojies and other stuff

urban minnow
#

are directories a file?

#

i like that you have us see a man using a urinal as a profile picture very very nice :kappa:

robust cave
granite aspen
#

I can't tell if the progress bars mean anything or what I'm supposed to do. Clicking "Ok" does nothing and there's nowhere to enter commands.

#

I'm just trying to install virtualbox.

#

oh something is happening

dapper musk
#

virtual box can have major isues with secure boot

#

if you do not need it then well disable it

karmic grove
#

how do install CGICC on linux

foggy quiver
#

I'm installing pop! Os right now, and I need to know what the /boot partition is. Can anyone help me with that

blazing wolf
#

do you guys use any noise cancellation software in linux? if so, which one?

inland gulch
blazing wolf
#

the latter

#

like krisp

#

which discord uses

#

but is not available on linux

inland gulch
#

UbuntuStudio has a serious collection of apps for the later, most are available on any debian based build with ease of installation

#

@blazing wolf you could try a parametric eq from https://calf-studio-gear.org/ allows you tune out some annoying frequencies. Probably require a lot more processing to reproduce what krisp apparently does.

blazing wolf
#

alright, I will check em out, thx 👍

main olive
#

yo

quiet ice
main olive
#

i did

#

thats what it showed me mate

#

look at the screenshot

#

the circled thingy is my machine IP addy right?

quiet ice
# main olive

yeah thats the vpn ip pretty sure
if you werent connected on a vpn you would see something different

main olive
#

damn bruh

quiet ice
#

so, in this case, that would be your ip

main olive
#

i aint even connect to no vpn

quiet ice
main olive
#

hold on

#

uh wtf

#

it says im from washington

#

even doe im not

#

ya its a vpn

#

but i aint conencted to one

#

aight homie i was connected to an extention vpn on mi browser

quiet ice
# main olive it says im from washington

ok im pretty sure thats ur local ip, not ur public ip used to connect to the Internet
so in your home, you have connections between others in the same home

that ip is used to identity you in that space

main olive
#

thats fosho my public ip

#

but thats the error i get

#

when i run the script

quiet ice
#

delete that

main olive
#

yeah i dont care

#

tbh

#

i just need help bruh

quiet ice
main olive
#

must be tuple not str

main olive
#

ok

#

hold on wait

quiet ice
#

wait

#

it should be

sock.bind((<ip str here>, <port>))

you had a type error thats all

main olive
#

str for what wait?

#

can u gimme a better example

#

with an ip and port

#

socket.bind(('1.1.1.1, 8080')) like that

main olive
#

kk wiat

quiet ice
main olive
#

oh my god im dumb asf homie

quiet ice
main olive
#

i thought i made a mistake

#

that was my original one

#

then i was like oh wait the single quotes suposed to have the port within them too

#

so i extended it lol

#

damn bruh

#

ty

quiet ice
quiet ice
main olive
#

yessir

#

it works now

quiet ice
main olive
#

.close

#

!close

#

or not

#

xd

wise forge
#

I discovered new way to kill linux

If you try deleting old python3 version from ubuntu desktop....half of your systems get erased in addition.

Almost same as deleting /

main olive
#

Hi

#

Help me pls

wise forge
#

except that I can see some unit tests failing

main olive
#

Yeah but what reason they failed?

wise forge
#

possible reason, wrong command to launch tests

main olive
#

I did these steps

wise forge
#

uh, i used only just unittest and pytest

#

I didn't use tox yet

main olive
#

Unit test also failed. Cover was 8 percent

amber garnet
main olive
#

!!!!!!! Interrupted: 1460 errors during collection !!!!!!!
====== 1 warning, 1460 errors in 230.33s (0:03:50) =======
ERROR: InvocationError for command /home/zymantas/Desktop/hivemind/.tox/tavern/bin/pytest --workers auto --tests-per-worker auto --durations=0 (exited with code 2)
________________________ summary _________________________
ERROR: tavern: commands failed

finite crater
#

So I found this code reading file metadata that Windows keeps. https://stackoverflow.com/questions/12521525/reading-metadata-with-python

But I want to do that with metadata kept by Dolphin on Linux. Any idea where I can find this metadata?

If you search this, all you find is people who want permanence to their tags and ratings in dolphin, or people who cant get metadata to show.

What I want to know is where that metadata that is has can be found

#

Google dolphin file metadata location -tags -ratings didnt help

#

If I could read that data rather than process the files it would save me time.

dapper musk
#

by metadata you mean this?

#

if so you can use os.path

#

for time, size, name

finite crater
#

More like stuff like this

os.stat information is pretty easy to get, but this kind of information requires me to open the file, process it in some way, and sometimes that is time consuming.

If this data already exists, it must have a location somewhere.,

#

This program is Dolphin.

dapper musk
#

pathlib pure path do not require this and idk that dolphin have

#

any python integration

#

or any integration with any pl

finite crater
#

But, dolphin is a linux program, its made up of files, and they must exist somewhere.

dapper musk
#

what png image etc is in ram

#

it is not saved

#

yes evrything is file but idk if you want to mount your ram and search for dolphin

finite crater
#

How does it know the height and width of every file without opening every file and determing this?

#

no i dont lol

#

or perhaps, does it open every file to display this info

finite crater
#

fair enough. No one has ever asked this before, anyone who has anything to say about KDE and metadata is only there to say, "I dont have metadata"

#

I might try that.

#

but I dont follow C++ very well.

dapper musk
#

i found this

finite crater
#

Im looking through the code now looking for the Detailed View stuff

dapper musk
#

it loads as fiev bytes as possile

dapper musk
finite crater
#

Its possible that getting the file dimensions and type this way is not even as taxing as other stuff that I cant get any metadata on... like opening videos to determine the frame data, like fps and frame count, which takes significant time to do for each file.. Right now im using cv2 to do it.

And to be honest, dolphin isnt even showing data like aspect ratio and fps for many files, so I might not be able to get it that way as easily as I would have liked.

-- as for the Dolphin code, no... I think its probably here tho https://github.com/KDE/dolphin/tree/master/src/views

dapper musk
#

dolphin acctualy loads them

finite crater
#

but yes

#

this magic module is a good idea to look at

#

ty

dapper musk
#

np

wise forge
#

how to share clipboard, in gnome boxes virtualized oses?

#

found this almost useful guide

#

but I don't get it, am I supposed to install those tools inside the box in order to run?

#

tried it already many times, but it is not looking to work (I have Ubuntu 20.04 desktop and tried to virtualize Ubuntu 20.04 Server)

wise forge
#

already

main olive
#

tox -e tavern -- --workers auto --tests-per-worker auto --durations=0

wise forge
#

trying exactly virt-manager at the moment

main olive
wise forge
#

thanks for advice anyway)

#

it makes me reassured

#

that I am walking right way

#

can it be run on server, where I have only console?

#

first tool I need, will be only for desktop

#

erm.
well, the main objective for myself in Ubuntu Desktop
Secondary objective... to have the same in Debian Server

#

yeah

#

already installed and trying

#

is it only redirecting traffic? or I could directly install on server with thing above?

#

after installation, would be virtualized instance of image still running on server after I killed ssh connection from my desktop?

#

great

#

and if I am using Image ISO from my local pc

#

is it transfering it to server?

#

well, no problem

#

thank you very much

#

I learned so much

#

and this is tool to learn even more

#

crazy run of learning!

#

virtual sandboxes are quite cool things to play with)

warped nimbus
#

That is the most horrific thing I've read in a while

#

I'm interested, why do you use bash for somethingthis complicated? Do you actually like the language?

#

In most cases I would much rather use a language like Python or hell, even PowerShell.

#

I find it difficult to write safe bash code - properly handling errors, checking exit codes, etc. It's really clumsy in that regard.

#

And the fact that values can't really be returned from functions - have to serialise them to a string (which is especially annoying for data structures like arrays and dicts) or use global variables.

#

Syntax is a bit complicated and language has many gotchas, but shellcheck helps immensely with that.

#

I understand it can work cause I've done it myself, but it was quite the journey. It's only something I'd use if I feel masochistic.

main olive
#

if theres anyone familiar with kde plasma or kde neon, what is a notification catcher and how do i use it, also a friend suggested me to use a notifcation catched as whenever I use discord app it freezes

wild fiber
tender plinth
#

Hello , I've been trying to understand how linux memory management works and came across this kmem_cache_alloc_trace function , tried looking at it's source code but couldn't make sense of it's basic function , can someone give an insight into this?

main olive
#

@main olive @wise forge Hello, please only send messages relevant to channel topics. We have a #bot-commands channel to test out commands. Sorry about the double ping lemon_sweat

untold abyss
#

quick question

#

if 7z is showing 4 processes (htop) does it mean it's using multiple cores, or it's just something else?

#

I am extracting a 90GB zip and it's taking atleast 2 hours

warped nimbus
#

htop does show threads by default

#

You can press H to hide them

harsh owl
#

Awesome_Ruler_007: not sure on htop, but with top if you have a multicore machine you can just press 1 to display all the proc info. or start with top 1

naive path
#

What's the difference between the command python3 and sudo python3?

harsh owl
#

sudo is how you run commands with superuser privileges. so it causes python3 to run as superuser. generally not what you want

naive path
#

Oh, thanks lemon_pleased

#

what are the commands that will need super user privileges?

harsh owl
#

generally stuff like installing packages system-wide, rebooting, configuring network/storage etc

#

stuff that would impact other users of the system tend to require admin privs, since these systems were designed to support multiple users

torn forge
#

i am hosting a postgres database on a VPS and i was wondering what the best way to access it would be through my local machine. an SSH?

harsh owl
#

hale: yes, just ssh in, you dont want to punch a hole through firewall and expose the db to internet. unless perhaps you have a static IP, but even so not advisable

amber garnet
chrome forge
#

enter the sudo mode by running sudo su, then use ur commands

amber garnet
wise forge
#

depends on your database size/security things and e.t.c.

#

ssh is not bad solution too ;b just more steps to do in some cases

chrome forge
amber garnet
chrome forge
#

oh

torn forge
#

@harsh owl If I am correct I need to setup my postgresql database for SSH as it is not able to be accessed by default?

harsh owl
#

hale: postgresql isnt what provides ssh. what kind of vps? does it have an actual OS? that is what you would ssh into. you can also do stuff like port forwarding over ssh into vps to access the db directly on your local machine. like a proxy

torn forge
#

@harsh owl It's a Vultr VPS running Ubuntu 20.04, I want to SSH to my local machine

#

I'm fairly new to the devops stuff. I know how to navigate Ubuntu but the networking side of things I haven't quite figured out yet

harsh owl
#

how are you trying to use the db? if you just need cli access, you can ssh into vultr vps and connect to db there. if you want to access db from your laptop or whatever, i would suggest ssh port forwarding rather than opening postgresql port to internet

torn forge
#

I would like to connect to it via pgAdmin

#

So you for that I believe i would need to SSH port forward?