#unix
1 messages ยท Page 61 of 1
lmk when u have ur final output
this is it
I'm thinking
alr mb
ur unpacking is broken
that means that when u use apt to install stuff it won't be able to install
It's not but I have an idea
hm?
ur wget should still work
so if u fix dpkg with wget
things should look up from there
so what command?
sudo apt wget
?
cuz im not good with this stuff as im just a beginner
let me look at this error for a bit
kk
oh nice
if it takes a long time it's working
it is lol
thats good
give me a bit to process this
alr
hmmm
that doesnt seem good
try running it now.
I doubt it will work but it might give a different error
sudo apt-get clean
nothing happened
kk
apt-get remove python3.10
apt-get remove python3.10-minimal
those 2 commands
then do sudo apt-get clean again
then sudo apt-get update
no u good
if the first one doesent work the 2nd won't either
try sudo apt --fix-broken install
;-;
yeah
it's fine if you dont wanna do it anymore
its understandable
I want to help out a fellow linux user
heh thanks
sudo apt --fix-missing update
oh my god no error this time
sudo dpkg -l | grep ^..r
hm nothing happened
that could mean 2 things
hm?
- ur packages are all updgraded
- dpkg is 101% fucked
lmao
hopefully ๐
sudo dpkg --remove --force-remove-reinstreq python3.10
oh nice
yeah
oh ok
sudo dpkg --remove --force-remove-reinstreq python3.10-minimal
there is no way that is all the output
sudo apt-get install -f
this one I am the least sure about
im surprised no errors are showing up yet
lol i can tell
oh alr
then try sudo apt autoremove
a bit more than a few
but that should still be ok
I think ur done. So try doing this command to see if everything works
alr
sudo apt-get update && sudo apt-get upgrade
if that works with no errors
u saved ur system
no errors?
nope
YOU saved it not me
i thought it was good
I think it's lying to us
why is that
oh
if that works then I can say with certainty that ur system is good to go
any errors?
nope
do mpv --help
ur system is good
OMD NO WAY
yep
is the error still there
so wil terminal open now
no no
aight
if it isnt working when u boot up lmk cuz then we have even more problems
uhh
its not working
;-;
alr
yo
remember all those commands
uh do u mind waiting like 10 min
yeh np
sorry
?
I missed the notifcation
oh
what happens when u try to open ur main terminal
my mouse turns into a loading thing for a few seconds then everything goes back to normal
so it doesent even give you an error?
nope
hmmm
this may seem a bit weird what I am going to suggest
I need to think of what to do tho
hm?
gimme a few minutes
what DE are you running?
DE?
yeah
whats that
nvm
sorry
it's zorian right
yeah
it's fine
is ur terminal called "konsole"?
hold on
no its gnome terminal
thats perfect
๐
I am probably going to give a lot of wrong commands
oh ok
but try to run gnome-terminal
no problem
just type that
on xfce?
yes
I'm serious
cd /usr/bin
should i type that?
yeh
in the terminal
damn
ls means list
alr
so it's gunna list everything
ah ok
ok so do cd ~
uh nothing happened
ik
I would explain what that means but it doesent matter
apart from a squigly dash
yeah i dont need to know either, i'll learn sometime in the future
since im picking cs for gcse
alr
but we will re install it
is there blue?
there is nothing
OH WAIYT
its asking for my password
mb
cuz it's sudo
it just took a bit of time to show
yeah mb
alr
so now do sudo apt install python3
this will get ur python back
*without the 99999 errors
lmaoo
lol yeah
too many damned snakes on ur computer
my dumbass kept installing them and then moving it to the trash because it didnt open like the yt vid said it would
oh lmao
seems like im not the only one
makes me feel atleast not like a complete dumbass
oh wow
i started using it like 2 months ago
cuz a friend recommended it
saying its better than windows
which ofc it is
it's only good once you understand the commands
welp, youre always learning
yeah
which we have been abusing
type python3
it's upgraded
python 3.1 is what made ur raw input not work
alr
3.8 should fix it
yeah done
now do gnome-terminal
i had to do it in front of the three arrows right?
yes
i dont think this is good
hmm
its the same as before
ur .bashrc is fucked again
๐คฆโโ๏ธ
this computer has so many errors from that command that somebody told u to run
it's driving me crazy
do vim .bashrc
idm
naw I need to help out my fellow linux brothers
sudo apt install vim
i cant tell u how much i respect u for that
No need
this situation was actually getting me rly stressed too
yep
u might have needed to re-install
re install linux?
yeah. But now we are in a good spot
I'm gunna need a quiz favor
alr so i see some big coding stuff
yeah?
it's gunna be a pain for u to screenshot all of the code
oh
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
naw its nothing compared to what ur doing for me
press esc then ๏ผ then do q then press enter
on my terminal?
yeah
I realize I made a mistake
?
esc then colon then q?
yes
alr
yeah
Bro u will learn all this soon
oh yeah well i had vs but i deleted it cuz of someone who told me to reinstall everything
๐
this is gunna be difficult
how come
yeah thats vs code
yeah can you open it?
no, its deleted
i can ask my friend to quickly help me install it
yes
on the app files
on the main screen
alr
then look for .bashrc
it should be a file you have
then double click it
then do ctrl + a
alr
done
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
so ctrl a is selecting all?
u see that link
yeah
yeah
click it
and paste it into the website
ya learn sum new everyday
it should be different
perfect
i hope its not u tryna hack me or som
no
It would be impossable to hack somebody by seeing the bashrc
this might take a while cuz im trinna read the spagetti code
So I think ur .bashrc is fine
yes but no
hm?
It's good that that doesent have any errors
but that means that I don't know why we have these errors
but its bad we dont know why this is happening
wait
I think I know
o
sudo apt purge python3.1
that should work
idk why I didn't think of that
shit I typed it wrong
oh
sudo apt purge python3.10
ok
ah
the problem is that ur gnome ternimal is down bad for python 3.10 and is looking for it
๐
it doesent wanna let use him unless he finds his fucking waifu snake
simps are bad ๐
which is pissing me off
ah i see
hm
cuz ur terminal is basically saying "Wahhh u killed my waifu I hate u"
yk at first i thought that was diedra in ur pfp ngl
lmaoo
so, u got any solutions?
alr
fuckkkk
;-;
this is soo annoying
hold on
since u understand this situation better than me
can u phrase whats happpened and why
yeah
so i can post it in another server
see if someone else can help too
better to have more people working
So your terminal isnt starting because it has a conflict where it's looking for python 3.10 which has been changed to python 3.8
alr
alr thanks
sudo apt-get update && sudo apt-get upgrade
why
that should fix the solution
the solution is one single command
problem*
and it's the most basic
lmao right
sorry lol, it was getting on my nerves
nice
but this might cause more issues
if it does I can fix them but it will still be annoying
sudo apt install python3.10
wait
aalr
sudo apt purge python3.8
thats good cuz if u werent aple to fix it then that would be bad
this command made a whole paragraph of code show up at once
its still working on this
les go
then we are bringing back ur terimals waifu
its happening quit slowly
only at 15 percent rn
so itll take a while
so the ur terminal should be happy
๐
whilst removing stuff
there were like 5 lines with warning in em
OMD
my terminal vanished
and my firefox is gone too
@pastel kestrel
the gnome terminal
oh
fuck
thats good
if it was ur xfce u would have been super fucked
ah ok
ok now we need to bring back gnomes waifu snake
hold on
this
its at 85 percent rn
oh ok
90
no need to rush
it do be like that sometimes
yeah fr
it's just how it is
btw
I just didn't want u to need to re install linux cuz thats what I had to do a couple of days ago
ah ok
i just saw files withj warning
and it said
"not empty so not removed"
its done now btw
but for some reason i cant see the discord app icon
FUCK
screenshot
I think I made a massive mistake
cuz some of these apps were made with python
so ur whole computer simps for the fucking snake
and since we are murdering it with a fucking nuke
Discord vanished
ur computer is pissed
ctrl c
Fuck I'm worried now
On the terminal?
yes
yes
K
before it hits 100
I'm it alrdy finished
well shit
well
What should we do
see we have a bit of an issue
๐ญ๐ญ
yes
if that command does not work we are so fucked that I can't explain
once the command finished u need to reboot
at least ur boot isnt down bad
this only affects linux
naw
So no matter what happens I can delete Linux and install it again
If something goes really wrong
the very worst case is that u fucked ur linux to a point of no return
if ur boot used python u would be fucked
but it doesent
But I can delete it and install it again
yeah
So I'm not worried now
boot is written in c not python
But it would be very preferable to have this Linux saved
Ah thank God
Pov terminal
is causing us pain
Oh fuck
but ur gnome terinal is down bad
fuck
ok
Should I press esc or enter or sum
no
Alr then what
FUCK
Welp
SO I CANT USE WINDOWS?
ur gunna need a usb
I can fix it
btw im sorry this is all my fault
It's fine, I have a friend who can as well
I thought u had more pythons
It's fine if :/
Wait
I think windows is still working
Oh yeah it's working
but ur linux is 100% compleatly fucked
Eh it's fine ig
ig even tux was downbad
๐คฆ
did u have important files on ur linux?
No
ok
Allhamdulilah
that makes things easier
Alr
but u need to follow very very very specific instuctions
cuz things could go hella south
like what happened to me a couple days ago
I accendently erased my whole computer
So I have to reinstall Linux?
It's fine
tbh it had so many errors anyway
I guess
For what
how to re install linux
u need a usb drive
the one that u used to install linux
The same way I downloaded Linux basically
yeh
I just need to do everything over again
kinda
It's not that much of a serious situation then I'm guessing
Wdym
Why is that
but if u listen closly I won't let that happen
plug in the usb and reboot
oh
Put*
actually ur dad should install linux again
Can u dm me the instructions
does he know how?
No
oh
ok
So dm me the instructions
alr
Yeah
cuz if I could see ur screen in real time I could do it
he is prob better than me
So just dm me everything
dm u what
Idk, he didn't know what to do
didn't he install it before
The instructions to follow, and why everything could be fucked up if we go wrong
alr
Yeah but u said kinda so yk
Just in case
No
๐
installing linux is easy, depending on what distribution it is you are installing
ofc if you don't know the first thing about computers then it is not easy
but it is not as hard as you think
it is very rare to f*** something up
again depends on the distribution
if you are reinstalling your operating system then you will wipe everything on your computer anyways
idk if there is a way to not have that happen but still reinstall successfully
i'd suggest backing up all your data on a different storage device
now that may sound fancy to noobs but it is literally just copying and pasting everything you don't want to lose to a separate storage device
which linux distribution is the best
any professional advice
and also i want to ask is it mandatory to learn .BASH for getting into the linux
hello, i've been trying to set up debug for an aarch64 linux 5.17 kernel, the issue is that, the boot image is an MS-DOS executable PE32+ executable, is there a way we can extract the vmlinux kernel elf from this?
Kubuntu for the win
Debian family of linuxes is in general the most stable to be used for dev purposes
Ubuntu is the target platform for Docker products
Ubuntu is Debian variation basically
and Kubuntu is Ubuntu with KDE Plasma graphical interface
which is quite friendly and pleasant to use
default Console multiplexor
familiar task bar at the bottom and everything is cool in general as well
20.04 is stable LTS one currently. In 5 days is going to be the big release
of the Kubuntu 22.04. The next stable long time supported one
It's not mandatory, but I'd say it's highly recommended. Most modern Linuxes have graphical interfaces to all the settings, for example, but being able to drop to a terminal and do a few simple command line queries is invaluable - it's much easier to ask someone to do something as a command than explaining what to do in any of the myriad GUI tools, so knowing bash will help to know what is being asked when reading internet help, for example.
But then bash isn't the only shell - as with anything Linux, there are a myriad variations. bash seems to be the most popular atm, though. sh and zsh are strong contenders. csh less so nowadays.
As far as distros go, each has its own fortรฉ. Ubuntu and Manjaro and Mint are pretty well-rounded, general purpose distros. There are also several that try to mimic to some degree or other the look and feel of Windows or Mac. And then there are those that try to give you as much control over what you want the distribution to be as possible (Arch is probably my favourite in this category, and Manjaro is based on Arch).
||</keyboard diarrhoea>|| ;)
that question is really a good one if you want to start a flame war, and you'll get a different answer depending on who you ask
it's a bit like asking "what food is the best?" (it will also depend on who you ask) and even leaving "best" up for interpretation by the othere party (best for what or in what way?)
you probably need to tell us what your goal is, just learn to expand you knowledge or for a specific line of work in the enterprise world, and in the later case, what would that be?
With the above being said, I think it's good to make it clear that you can achieve the same look and feel, and have the same programs on pretty much any of the popular distributions. The thing that varies is the package manager and what comes out of the box. It's not like Windows where you are tied down to use a certain desktop environment or window manager, everything can be configured.
We nix users tend to take that for granted, but when coming from Windows it's quite a huge difference
i couldn't agree more with what @plush sparrow said, especially about that the package mangers being one of the major differences, just wanted to add that there will also be some major differences in how some of the distributions configuration files look, like network configuration in debian based distros and redhat based distros just to take one example
Haha .! Nice one
Appreciated.!
i also agree with @fallow tusk, it's good to learn at least the basics of using the major unix shells (if you know one you will be able to get around in the other most common ones) such as bash and zsh (now the default on mac)
tbf, bash and zsh aren't that far different.
true, but they are the most common and i don't think tcsh and csh isn't that far off either
Garuda uses fish, and that annoys me by being similar enough to lull me into a false sense of security, but different enough to do things in different ways that trip me up.
Most are just variants of (or "improvements" on) sh :D
@main olive two more things to learn when learning to use the shell and a unix based system is:
- to be able to login to other such systems over the network using the
sshcommand - know at least the very basics of how to use the editors that are more or less universally available on most unix systems, like:
vi or one of it's more modern variants such as vim, you will find it installed on almost all unix systems by default but they can be very intimidating to use at first, it's the unix granddaddy of text editors and was meant to be a "visual" (think basic text user interface) version of ed (which is another editor that doesn't have much of an interface to speak of, it resembles a command line or shell more than anything else, you can more or less just ignore that one for now)
nano (which is a modern version of the original software named pico) can be much easier to get started with, and some would argue even for day to day use, but might not be available by default on all unix systems without adding that package to the system
this list wouldn't be much of a list without mentioning emacs which is a very advanced text editor that might have a bit more familiar ergonomics compared to vi, it is maybe a bit less commonly installed by default on unix systems then the vi variants, but still used to be the second most common editor found on unix systems, nano may however have taken the number two spot today
both viand emacsdates back to 1976 but both has seen continues development since then, and very loyal followers of each of those two editors has for decades waged flame wars against each other online about which is the best editor, way worse then those over different distros ๐
Thanks man.!
(neo)vim ๐
test
test
Emacs with Viper mode enabled }:D
oh no, look what i've started by just mentioning editors in the unix world! lets keep those flame wars, err... conversations over at #editors-ides ๐คช
I couldn't contain myself ๐
nano my beloved <3
Vim is better
instead of doing
...
else
if ...
...
Use elif
Your first mistake was writing an actual program in bash
on a serious note,
its better if you paste your code as text, eg:
```bash
code goes here
```
so we can reproduce
@tired magnet
oh I see
choice =4 should be choice=4
I can't install git lfs
I installed the exe, ran it and have it in my c: folder
then when I run git lfs install it says git lfs exists, and it might be broken
Im a linux noob and i tried installing debian now im stuck here
yeah but i cant install a gui
command not found
it gives me a list of commands and some info
that works
unable to locate package
If you want a gui without too much hassle, you might consider a distribution that comes with KDE or GNOME as standard. Not sure which debian distro might match that specification, though.
Although not a distro link, this might help with getting KDE up and running: https://wiki.debian.org/KDE#KDE.27s_software_in_Debian
Ah
yes
It's a long time since I installed debian. So long, I was surprised when you said apt ;)
ill try the search now
That link I showed gives the packages you'd need. kde-full and kde-plasma might be the ones you want.
still unable to locate
Ah, right...
Flavors: The live images come in several "flavors" providing a choice of desktop environments (GNOME, KDE, LXDE, Xfce, Cinnamon and MATE).
I may have to revisit debian at some point :)
Ah - did you run apt update?
yeah
all packages are up to date
some index files failed to download
and failed to fetch security.debian
That last is probably OK. The missing index file are probably repo urls that no longer exist... That might be an issue.
Looks like the default installation has GNOME preselected...
what does that mean?
When I ran the installation it had GNOME selected already as a default package to install.
I was going to see if I could run up a system with it set up, and see if I got the same problems
Oh. It started me into a desktop environment anyway.
shrug
Can you cat /etc/apt/sources.list | grep -v '^#'?
And can you ping deb.debian.org successfully?
Check the output of ip a. Don't post it here unless you know it doesn't have your external ip address
This is what I get (I'm in a VM, so have an internal local address - the inet 10.0.2.15 bit under 2: enp0s3)
yeah
how
ctrl-c
k
No. C ;P
I'm going to guess you don't have an IP associated with your network interface...
i got the same message as you
With the inet line with an address there?
yea
(And not the loopback address, 127.0.0.1)
its inet and my ip
hmm. ip route?
default via (my ip) dev enp4s0 onlink linkdown
But nothing under there?
its got (my ip) dev enp4s0 proto kernel scope link src(ip) linkdown
linkdown suggests that maybe something's not right to me.
Yeah, I think that may be the issue
already configured
on the laptop i installed linux is wireless
for my pc i use ethernet
Ah. Isn't enp* an ethernet interface? I'd expect wlan0 for a wireless
if i plug in the cable woould that do something?
Try it!
okey done
What does ping www.google.com give, now?
Worth a shot, although I'd expect it to "just work" if it's just an unplugged cable.
Before you do...
yeah
let me check
Do they still say linkdown?
Did you have it on usb? A live disk?
usb yes
So stick that in and use the BIOS menu to boot it (Usually need something like F2 as the laptop starts)
(Yeah - done this cycle many many times myself!)
Especially when you forget which particular key your BIOS needs, or you mistime pressing it....
I'm re-running the installer too
Ah, that'll be why you don't have wifi!
okay so can i install those later?
I assume so!
Might need to dig on the net to find how to get them, though.
any reason why they are missing?
They're non-standard. Not unusual for a laptop.
Also says they're non-free (i.e. proprietary)
What should i enter as domain name?
You probably don't need one
yep
I assume you are going to use the entire hard disk on the laptop - you're not dual booting?
nope
And you're not likely to add more hard drives?
In which case first option is easiest
okay
LVM - logical volume manager. Allows you to use multiple hard drives so they look like a single device
Recommended here?
Go with option 1 for now.
Personally I prefer having /home on a separate partition.
/home is where all your user files will be stored - i.e. the stuff that isn't going to get reinstalled if you want to start over
Things like configuration files will live there, too.
Yeah, doesn't particularly matter, but generally choose somewhere close to you.
can i just do my country?
Yeah
and then deb.debian.org?
Yep
I just went with the defaults. They're good enough for starters
There's a utility that will allow you to measure the speed of package repos and select the best based on that....but I'm not sure there's huge benefits
;)
Okau now i get to choose a DE
Woo!
Your choice, but I prefer KDE over GNOME.
I also like LXQt/LXDE for a lightweight install.
I'd suggest adding the SSH server - that will let you communicate with the laptop from your PC, too.
Again, all of this you can add (or remove) later.
When you press go, it may then be time for a cup of coffee. (It used to take hours. Mine's been going for a while now, but I selected several DEs to play with)
okay and for the display manager gdm3 or sddm
Ah, you chose both GNOME and KDE? GDM is gnome's, SDDM is KDE's. You can use either, it'll just be the look-and-feel at startup
It'll be the thing you see as your login screen and allows you to select your user and which DE to use.
And to preempt a question: the answer to the GRUB prompt is "YES" ;) and /dev/sda (your one and only(?) disk)
I'm off to grab a coffee. bbiab
This is SDDM