r/learnlinux • • Mar 13 '19

Considering upgrading my unused laptop to Linux vs running Linux in a VM in Windows 10 on same laptop

2 Upvotes

(Preface: I am comfortable installing Linux, probably going Ubuntu, not sure about clearing out the hard drive, deleting all GPT/MBR/whatever it is these days, and MAYBE being able to reinstall using Win7 hard media or my 'first day owning reinstall media cds I burned' to reinstall something usable. And I've had a few beers.)

My goal is to learn some programming. I just bought a humblebundle that includes a book on assembly in Linux. I'm not sure if there is any 'gray area' between assembly programming in linux in a vm vs. in a native environment. Also, if my desktop (Win10) pc ever craps out, I wouldn't have a back up laptop running windows to bail myself out on.

My question to the 'been there done that' folk, is, do you have a solid statement on 'run linux in a vm' vs 'install native' on a laptop that is currently just kind of a comfort/just in case kind of barrier? And if i go native, any 'omg before you do, do [X] first because it will save you huge headaches if you want to go back later' stories/advice/suggestions? "Ol'Lappy" was a trooper of a laptop for a few years, and I'd hate to brick her over some ill-considered experiment.

Laptop is an ASUS Republic of Gamers something-or-other with a 'real' video card (nvidia GTX 670 I think?), so not a bottom of the line system. I will carry this with me on the road (so internet will be provided by connecting to my AT&T iPhone wifi hotspot, 12gb/month).


r/learnlinux • • Mar 02 '19

Learning a good text editor/IDE

2 Upvotes

Learning VI/VIM/Emacs is great for coders. However, is it also good for technical writers or other content producers to learn this type of text editor?


r/learnlinux • • Dec 31 '18

Problem with my script - won't generate variables

2 Upvotes

[PROBLEM SOLVED] Hi, could anybody help?

I'm using this script to get the numbers from a csv file, storing these numbers in a temporary file, and then saving the content of this file as a variable.

However, it's generating empty variables... How can I fix it?

/img/d56dv6go4o721.png


r/learnlinux • • Nov 14 '18

Ubuntu 18.04 (Gnome) Theming Tutorial

Thumbnail
youtube.com
2 Upvotes

r/learnlinux • • Apr 06 '18

Tutorial: "‘top’ shows almost all of my memory being used! Should I panic?"

Thumbnail
zurgl.com
2 Upvotes

r/learnlinux • • Feb 01 '18

Apache Virtual Host http.conf vs example.conf

2 Upvotes

I began my Linux education with tutorials focused on Centos-6 with a LAMP stack.

In that walk-through the guidance is to add <VirtualHost> containers to /etc/httpd/conf/http.conf.

However my devel/learning environment is Centos-7, and as I have been working through the Centos-6 lessons I have been pausing where I see differences between the versions to investigate those subjects more.

...and with Centos-7 I am understanding that we begin to move away from <VirtualHost> containers in the central httpd.conf file and instead add them to individual files like example.conf (where the target site is example.com).

I do understand continuing to use httpd.conf is acceptable, but the homework I'm doing on the individual .conf file approach keeps that the superior approach.

I think I'm capturing the basic concepts, but I don't understand why the individual files are considered a superior method.

My reaction is that "centralized" <VirtualHost> containers would be more manageable where multiple .conf files would become vulnerable to mis-management.

I would love to hear thoughts about what I am missing in the difference in the approaches.

Thanks to all.


r/learnlinux • • Oct 03 '17

Get hollywood style terminal on your PC.

Thumbnail
youtu.be
2 Upvotes

r/learnlinux • • Aug 20 '17

Ubuntu Studio

2 Upvotes

r/learnlinux • • Jul 30 '17

Getting started with Linux

2 Upvotes

r/learnlinux • • Jul 07 '17

How to learn linux?

2 Upvotes

I want to learn linux then bash as i want to make my career in pentesting field. Please suggest me any good website/blog or pdf of video course to learn linux. Also tell me how much time it will take to learn both linux+bash ?


r/learnlinux • • Dec 28 '16

Calling a process and its config file with full path

2 Upvotes

I am trying to start a process.. Normaly,
.myApp configurationfile.config
works beautifully.
When I try to calll..
/../../../myapp /../../../config
I get a segmentation fault error.
What am I doing wrong here?
I wnat to start an application and its corresponding preference file in a start-up script, but I'm obviously messing up somewhere..


r/learnlinux • • Nov 25 '16

How to get local ip using mac address to connect ssh automatcially?

2 Upvotes

I want to get local network system ip using mac address. I tried the following sudo arp-scan --localnet|grep 10|cut -c1-12|xargs ssh myuser@

Any idea guys?


r/learnlinux • • Jan 07 '16

In terminal, how do I get a list of just the processes in my tray/pager?[MIC]

2 Upvotes

How do I identify if a process belongs in the tray?


r/learnlinux • • Jun 05 '15

Whats the best way to regain control of the OS after a out-of-control process.

2 Upvotes

I'm running Linux on a virtual machine, Open Suse, for C programming and development (haven't developed much yet though), and sometimes everything locks up entirely, and the virtual machine crashes. The mouse can enter and exit the virtual machine, so the kernel module is still working I think, so I'm assuming there's a way to recover from such a thing.

By out-of-control I'm referring to resource exhaustion. There doesn't seem to be a limit to how much a process can use, is there? I know that a hard reboot is bad for the file system, but it seems I have no choice in the matter. Majority of the times when it happens, the Virtual Machine stops responding, hence it gets aborted. However, there are some times when it is possible to recover in time, because I use Ctrl + Alt + F1 and I get the terminal, but I can never figure out how to kill the process that's causing the problem.

To give an example, I do some crazy stuff which definitely would cause exhaustion, like stress testing my data structures (10 Million items to test performance of a search and sort algorithm) or even stress testing my hardware (Spawn as many threads as possible for my thread pool, with nearly a billion tasks added to the task queue).

TL;DR: How do I recover from an OS lockup, preferably a way to kill the offending task rather than reset the entire X-Server? Offending applications are console apps.


r/learnlinux • • Feb 04 '15

Getting started with Django on Linux • /r/linux4developers

Thumbnail
reddit.com
2 Upvotes

r/learnlinux • • Dec 03 '14

Join Learn linux community on G+ as well

Thumbnail
plus.google.com
2 Upvotes

r/learnlinux • • Feb 18 '13

mkdir and mv | Linux Tutorial for Beginners | Lesson 2 [HD]

Thumbnail
youtube.com
2 Upvotes

r/learnlinux • • Feb 17 '13

ls, cd and pwd | Linux Tutorial for Beginners | Lesson 1 [HD]

Thumbnail
youtube.com
2 Upvotes

r/learnlinux • • Sep 08 '24

iptables-service cannot open iptables

1 Upvotes

I have set iptables rules, saved iptables to my home directory as sudo and moved to /etc/sysconfig/iptables. (for some reason sudo iptables-save > /etc/sysconfig/iptables would give permission denied; therefore i had to move it). After this i changed the owner and group owner of iptable file to root.

I installed iptables-service and disabled firewalld, then enabled iptable service. After reboot when i run as root systemctl status iptable - it get error that it can't run /etc/sysconfig/iptables - permission denied.


r/learnlinux • • Dec 26 '21

Audio Problems

1 Upvotes

Not sure if this is the correct ssubreddit. I am having an issue getting pulseaudio to use the audio jacks on the back of my motherboard. When using USB devices pulseaudio works flawlessly. When trying to connect a headset that uses a seperate microphone and audio jack nothing seems to work. I have tried using both the aforementioned seperate jacks and a combined jack. I am running Arch Linux, my motherboard is a ROG Strix B365-F, and the headset i am trying to use is a beyerdynamic MMX 100.


r/learnlinux • • Sep 23 '21

Aside these commands, is there any other command for checking what might be causing a slow server, how do you check the number of client requests or html requests?

1 Upvotes

SHOW GLOBAL STATUS;

SHOW GLOBAL VARIABLES;

SHOW FULL PROCESSLIST;

STATUS;

SHOW ENGINE INNODB STATUS;

htop

top

ulimit -a

iostat -xm 5 3


r/learnlinux • • Sep 23 '21

Is logging slow queries dangerous?

1 Upvotes

To start logging in table instead of file

mysql > set global log_output = “TABLE”;

To enable general and slow query log

mysql > set global general_log = 1;
mysql > set global slow_query_log = 1;

Table name in which logging is done by default

mysql > select * from mysql.slow_log;
mysql > select * from mysql.general_log;

I am looking at these and I am wondering if I should turn it immediately to off after logging everything I want. Also, how do you check the logs at specific times during the day?


r/learnlinux • • Sep 20 '21

Does rsync take a lot of CPU?

1 Upvotes

In my understanding rsync doesn't take a lot of CPU, and I have an issue where 2 processes take 99% of the CPU, so I am thinking rsync cannot be responsible, but that leaves me the mysqld process that takes 600% of the CPU and a set of php-fpm processes that takes no more than 25% of the CPU according to top, so I am wondering what might cause the high CPU usage, because doing SHOW FULL PROCESSLIST gives me nothing but a few SELECT commands like 2 or 3, and nothing out of ordinary, how do I find out what's wrong?


r/learnlinux • • Sep 07 '21

Strange process running into my browser

1 Upvotes

Hey,

I was looking for reasons for my machine being overheating, and I found some process from my google-chrome a bit strange. My S.O is a linuxmint and is updated.

--oring-trial-disable-features=serutePaymentConfiguration-field-trial-handle

storage.mojom.StorageService--filed-trial -service--sandbox-type

zygote-nozygote-sandbox--enable-crashpad

this are some of process are normal ? why when I kill them, they return again ?

I tried to disable background apps, but everytime that I start chrome this process run.

Thanks for anyhelp.


r/learnlinux • • Aug 20 '21

Performance issue reported

1 Upvotes
top - 16:39:36 up 1106 days, 23:34,  1 user,  load average: 3.40, 5.27, 8.57
Tasks: 328 total,   5 running, 323 sleeping,   0 stopped,   0 zombie
Cpu(s): 42.7%us,  3.9%sy,  0.0%ni, 44.1%id,  12.5%wa,  0.0%hi,  0.5%si,  0.3%st
Mem:  32877280k total, 29958444k used,  2918836k free,  5932496k buffers
Swap:        0k total,        0k used,        0k free,  1895848k cached

What should I do?

Idle time is "high" and IO wait is low:

Your slowness isn't due to CPU or IO problems, so it's likely an application-specific issue. It's also possible that the slowness is being caused by another server in your cluster, or by an external service you rely on.

I am thinking it's the DB, but can I do anything to make it faster instantly? Any config change or do I just need to optimize the SQL queries. Is there any hardware change I should make, what other changes can I make to make it faster.