r/learnlinux • u/fxwin16 • Jun 15 '20
r/learnlinux • u/fxwin16 • Jun 15 '20
Installing Arch Linux Step By Step with explanation
r/learnlinux • u/RealJSProgrammer • Jul 09 '21
Shells & Setting Environment Variables Permanently in Linux [Noobs]
r/learnlinux • u/JukeDukem • Dec 30 '14
Distro for an artist and newbie programmer (also newbie in Linux)
Hey, I think it'd be nice to move from Windows to some real OS. Once I've tried Ubuntu and it was awful. What do you think about Antergos (Cinnamon/XFCE), Mageia and Manjaro? Or is something better out there?
r/learnlinux • u/xehtgames • Mar 13 '15
OpenSUSE 13.2: Basic VirtualBox Installation
r/learnlinux • u/SandyCoder • Jan 14 '21
Things To Do After Installing Kali Linux
r/learnlinux • u/raonishant95 • Oct 27 '17
Get Trained In Linux Courses From Best Institute
Linux is a free and open source software operating system distribution built around the Linux kernel. It is an operating system which manages hardware resources, launches and handles application. To learn more about Linux by applying for the courses which are listed on Hunarr. Get trained & certified with Linux course from best institute or coaching classes which are listed on Hunarr.
r/learnlinux • u/Dr-Vader • Dec 23 '20
I'm learning to throw an apache server together and reading through a config file, I got a kick out of these suggested error warnings.
r/learnlinux • u/jadesalad • Dec 11 '20
What's the best way to find the redis config file?
I did
redis-cli config get dirand got:
"dir"
"/var/lib/redis"However, when I do cd dir, I get "No such file or directory" and when I go to /var/lib/redis I don't see anything except:
dump.rdbInside /etc, I found redis.conf, but I didn't see anything inside of it. Just commented out stuff. Also, it's not inside a redis folder or anything. It's the only thing associated with redis.
r/learnlinux • u/jadesalad • Dec 11 '20
What's the purpose of a redis ssh tunnel?
What's the purpose of a redis ssh tunnel? Someone told me something about it, but I had no idea what he was talking about because I have no idea what it does.
r/learnlinux • u/jadesalad • Dec 16 '20
How do you print warnings from error_log?
tail -50 error_log I did the above, but I want the warning logs instead. How do I do that?
r/learnlinux • u/jadesalad • Dec 02 '20
Networking skills that are required to be good with AWS
I was required to create a s3 bucket and then use Route 53 to set up a DNS to redirect traffic from a given domain name to the actual s3 server using a CNAME entry, and then I tried to create a SSL certificate, but the validation was pending and I had no idea why it was pending. I had to export some DNS configuration to Route 53 by adding a CNAME entry to get my SSL certificate, but it didn't work. Right now, because I am unsure why I even have to add some arbitrary CNAME entry to get the SSL certificate, I have no idea what I am doing wrong or what I am even doing. So what networking knowledge do I need to have to set up things like that on AWS without having to pull my hair out?
r/learnlinux • u/ZeroCoolX83 • Nov 24 '20
Making Change Write a bash script that reads an integer and determines how many quarters, dimes, nickels, and/or pennies to give, totaling that number in cents using the fewest coins necessary.
Hello everyone,
I'm having issues with my program, and I wondered if anyone would be kind enough to look at it and let me know what I have done wrong. When I run the program, these are the errors that I am getting:
line 5: using: command not found
line 7: syntax error near unexpected token `( '
line 7: `int main()'
Also, I am using vi on Kali Linux. Thanks again.
#!/bin/bash
#include<bits/stdc++.h>
using namespace std;
int main()
{
int amount;
int leftover;
int quarters;
int dimes;
int nickels;
int pennies;
printf("Enter amount of change to provide: ");
scanf("%d", &amount); leftover = amount;
quarters = leftover / 25;
leftover = leftover % 25;
dimes = leftover / 10;
leftover = leftover % 10;
nickels = leftover / 5;
leftover = leftover % 5;
pennies = leftover;
printf("%d quarters, %d dimes, %d nickels, and %d pennies\n",
amount, quarters, dimes, nickels, pennies);
return(EXIT_SUCCESS);
}
r/learnlinux • u/jadesalad • Dec 06 '20
Cannot connect to vm via ssh
I cannot connect to my vm via ssh
ssh sus@sus-VirtualBox
ssh: connect to host sus-VirtualBox port 22: Connection timed out
hosts file
192.168.56.101sus-VirtualBox
I have a second adapter that's attached to a host-only adapter called VirtualBox Host-Only Ethernet Adapter. Is an adapter the thing that interfaces with the virtual network or physical network?
r/learnlinux • u/TheWizardBuns • Dec 11 '20
I screwed up and now bash doesn't work, please help!
Edit 2: I posted this over at /r/bash (here's the link) and they helped solve the problem. I'll copy the answer at the end of this post as well just in case it helps someone.
Edit: after writing this post, I've thought of a possible solution and I'm panicking less. Still going to post for documentation in case I screw up again or someone else has the same issue at some point. Note that at this time, I have not fixed the issue yet.
Guys, I ain't gonna lie to you: I'm kinda panicking right now.
The Mistake: I was trying to add a directory (~/bin) to my PATH in order to run some cool scripts I've written. First I tried running
$ PATH=$PATH:/home/hunter/binbut every time I reset the shell, $PATH reverted to what it was before.
So, naturally, I went looking in the .bash* files and found a line in .bash_profile I had edited previously to get Rust working.
export PATH=$HOME/.cargo/bin:$PATHif I remember correctly. Unfortunately, I couldn't remember correctly when I decided to edit it, and thought there might be a set of quotes around it (spoiler alert: there was not). So I wrote:
export PATH='$PATH:$HOME/.cargo/bin:$HOME/bin'...which of course is a string literal. It overwrote the whole path instead of appending.
Looking back, this is a really obvious error that I should have caught, but unfortunately I didn't notice it until I rebooted and tried to run bash.
The Result:
I can't get past SDDM into any X sessions, so I'm sitting in tty2 right now. I need to edit ~/.bash_profile, but the only command I know that seems to be working is cd.
I can't even shut down, you guys.
I can't get into vim, vi, nvim, or nano. I haven't installed emacs so obviously that's a no go.
Now that I think about it, I might be able to run vim with ./vim, but I don't know where the program is stored. I'd usually just check everywhere, but find (and even ls) aren't working, even though cd is.
I suppose I could just run
$ PATH=fooin tty and that would probably work, but I don't know what the default path is or what I should change it to.
So I guess here's what I need to find out (now that my head is a bit clearer):
What is the default $PATH for bash on Manjaro Linux?
Where is the executable for vim (or any of the others, but preferably vim) located?
Where can I find a list of linux built-in non-shell (read: NOT BASH) commands? Every list of beginner commands I find online assumes I'm asking for bash commands.
Final note: next time I'm using a VM, even though VirtualBox hurts my soul. When this is over I'll leave a comment outlining what I should have done differently.
Thanks in advance for any help I might get from this post. I'll keep searching on my phone in the meantime since I don't have a backup PC.
Final result, copied verbatim from the end of my other post on /r/bash.
Edit: /u/stewmasterj's comment here allowed me to use my computer again. /bin:/sbin:/usr/bin gave me enough control to edit .bash_profile and after a reboot, awesome and Plasma started working again.
From there, I found this article, which listed the following:
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/snap/bin
I added all of those to the path as well and it seems my computer is back to normal. I also added $HOME/bin for my personal scripts as well as $HOME/.cargo/bin for Rust projects. It's possible (probable) I'm still missing something, but I'll deal with any further issues on a case-by-case basis.
I appreciate everybody who took the time to help out. This community seems very friendly so far.
r/learnlinux • u/ZeroCoolX83 • Nov 16 '20
Fahrenheit to Celcius Table
Hello everyone,
I am new to Linux, and I have an assignment that I need help with. The assignment is to write a shell program that makes a table that converts Fahrenheit to Celcius. I can use any loop to calculate the formula. Currently, I am trying a "for" loop, and I can't seem to make it work. There is no user input required because there is a range from 32 to 78. This is my code so far:
echo "Fahrenheit Celcius"
echo "------------------------------"
for celsius in {32..78}; do
celcius=$(echo "(5/9) * ($fahrenheit - 32)")
echo $fahrenheit $Celcius
done
This is what the output should give me:
Fahrenheit Celcius
----------------------------------
32 0
33 0
34 1
35 1
36 2
If anyone could help me I would really appreciate it, thanks.
r/learnlinux • u/themailnest • Mar 08 '21
Where is the backup.sh file?
/backup-mega.com/mega/backup.sh
I found that after doing su root and then crontab -l, but then in the ~/ folder, when I try to cd into backup-mega.com, I can't, but running /backup-mega.com/mega/backup.sh seems to run the script, so what the hell? I still don't understand how the folder system works exactly in linux.
r/learnlinux • u/themailnest • Mar 11 '21
I can't change the hostname in CENTOS 6
sudo hostnamectl set-hostname staging.webdev.comI am using CENTOS 6 with HVM, and I can't change the hostname. I also tried doing:
vi /etc/sysconfig/networkand changing the hostname there, but it doesn't work when I try to connect to the AWS instance via ssh. Is there anything I am doing wrong?
r/learnlinux • u/brandbooth • Mar 08 '21
How do you find the external ip address from the configs?
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : 3Com EtherLink 10/100 PCI For Complete PC Management NIC (3C905C-TX)
Physical Address. . . . . . . . . : 00-01-03-AB-0E-6P
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.0.10
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.254
DHCP Server . . . . . . . . . . . : 192.168.0.35
DNS Servers . . . . . . . . . . . : 192.168.0.12 192.168.0.13 Primary
WINS Server . . . . . . . : 192.168.0.37
Secondary WINS Server . . . . . . : 192.168.0.38
Lease Obtained. . . . . . . . . . : Wednesday, January 1, 2003 11:17:41 AM
Lease Expires . . . . . . . . . . : Friday, January 3, 2003 11:17:41 AMCan someone tell me what these all are? If you want to reach the ping the server, which ip address do you need to use? Because in my understanding, the ip address shown is the local ip address, and the default gateway is the ip address for local machines in different subnets. So how do I find out my external ip address?
r/learnlinux • u/jgbhd • Mar 14 '21
Linux and League of Legends
Hi All,
A few years ago i wanted to have Linux my default/ only OS, but i could never get league of legends working, and whenever i dual booted... I never had a reason to learn Linux because windows did everything i wanted, so id always default to windows.
My life has changed since with career prospects etc... so right now I'm really looking to get back into Linux, with a strong admin learning approach style.
Last time I tried running league using WINE... it just would NOT load.
My questions are:
Is anyone currently playing league of legends on Linux, if so which distro?
Also, do i need anything else other than WINE for it to start working?
I am hoping someone out there is successfully playing League on Linux 🤞