• Breaking News

    [Android][timeline][#f39c12]

    Friday, January 1, 2021

    Linux How should I start with Linux?

    Linux How should I start with Linux?


    How should I start with Linux?

    Posted: 01 Jan 2021 03:43 AM PST

    I'm a engineering student, and my professors require projects with Autodesk's softwares, so I can't install Linux on my laptop. I want to know what is the best option to start learning about Linux, should I buy a new (used) laptop or maybe a Raspberry Pi? I can't afford anything really pricey, given that I live in a third world country and buying a Rpi is a worth whole month salary.

    submitted by /u/linxi-e
    [link] [comments]

    bash script that restarts PID - process "command" is always "bash"

    Posted: 01 Jan 2021 10:42 AM PST

    I'm trying to use cron, to start a bash script, that checks if a python script is active... and if not, restarts it.

    my bash code:

    now=$(date +"%T") pid=$(cat /home/pi/cron/starterScript.pid) if [ "$(ps -o comm= -p "$pid")" = "bash" ]; then echo "$now...script is running..." else echo "$now...Script is dead! Starting new process..." (cd /home/pi/Desktop/SCRIPTS && sudo python3.7 testScript.py & echo "$!" > /home/pi/cron/starterScript.pid) fi 

    the problem is, that when I <ps -o ppid= -p $pid> the output Command is "bash". I know that for 99.999% of the cases, the script should function as intended. But I was hoping to somehow get the PID name to have more detailed info and to avoid confusing it with some other bash command.

    anyway to override the default command data?

    I saw online that there are some hacky ways. but I'm looking for a 2nd opinion if this can be done straight forward, or if there's a better concept of doing this

    I guess one way of doing it might be to make an exe python script, but that would make things unecessarely complicated in developement environment.

    submitted by /u/Lilith5th
    [link] [comments]

    INTERESTING! : Log Parsing Cheat Sheet

    Posted: 01 Jan 2021 06:25 AM PST

    New Year, New goals. What are yours?

    Posted: 01 Jan 2021 07:34 AM PST

    New year, new goals. I love using linux for self hosting and bragging rights, but I'm not nearly good enough to back up my claims. I want to go full wizard mode and try the following:

    • Get better at scripting. I REALLY need to get at bash scripting for personal and professional use. There's little stupid things that I have to manually do on a consistent basis that would just be easier if I knew how to script. Setting up MySQL users, backing up important configs and checking validity, emailing reports of cron jobs, etc. I am comfortable using ansible but it's not very good if I'm only running ad hoc commands and prr-written playbooks.

    • Start using arch or linux from scratch. I think this would help me get better at understanding how linux works from the ground up, whereas I am mostly comfortable using it but sometimes the under the hood stuff is a mystery

    • Learn IP tables/nf tables and set up my own router using linux. I use digital ocean to host stuff and wanted to set up my own VPC but they don't offer gateway services, so you have to spin up a droplet and manually make it a gateway device. I didn't even realize this is something you could do and opened up a whole new world of linux potential.

    How about you guys?

    submitted by /u/NGL_ItsGood
    [link] [comments]

    Can i change the source code of the Linux operating system if I am offline?

    Posted: 01 Jan 2021 06:58 AM PST

    I am thinking about making the switch from Windows to Linux. The idea that if I could just learn how to write code I could change the user interface of my operating system, sounds very appealing to me. But I have no idea how to actually change the source code. The only thing i know about open-source is that i can see the source code on GitHub.

    So my question is: is it possible to change the source code of the Linux operating system without an internet connection? Or at least without having to use GitHub?

    submitted by /u/blob29
    [link] [comments]

    looking for a vscode extention that does syntax highlighting for linux system files

    Posted: 01 Jan 2021 04:11 AM PST

    the same way that vim does it

    submitted by /u/dominic_l
    [link] [comments]

    Installed KDE neon on an external HDD and now grub doesn't work

    Posted: 01 Jan 2021 08:34 AM PST

    hello everybody! how are you doing? I'm having a problem. I have my laptop that's dual booting windows and ubuntu mate, and I wanted to try KDE neon so I can replace ubuntu mate.

    I installed it on my external HDD (this has worked before, I had installed Arch) and grub used to have the option to boot my HDD only if it was plugged in.

    well, I tried installing KDE neon and I used some free space I had when I deleted Arch. the installer said that it would use the efi from dev/sda1 (which is in my computer).

    Now, when I restarted my laptop (with the external drive plugged in), a new grub appeared, more good looking than my old grub, showing me options to boot KDE neon, ubuntu mate and windows. That's great!

    But here's the thing. If I turn my laptop off, remove my external HDD and try to boot my laptop, grub is stuck in command line (which I'm not familiar with, I'm somewhat new to Linux).

    I don't know what to do. I don't want to carry my external drive everywhere I go just so I can boot my laptop. What did I do wrong? How can I fix it?

    my laptop's specs: 4gb ram, intel i3, 500gb HDD

    thanks in advance! excuse my bad english, greetings from Argentina :)

    submitted by /u/zoesobol
    [link] [comments]

    How to load kernal from Netinst USB in GRUB?

    Posted: 01 Jan 2021 07:28 AM PST

    Question about trying live with usb

    Posted: 01 Jan 2021 07:19 AM PST

    I want to ask, if i have a linux distro installed on my computer and the game i want to play wont work correctly, i then try another distro using live usb and still the game doesnt work properly, could that change if i choose to install the distro instead of try live? Or what i try live is exactly what i get if i choose to install it instead?

    submitted by /u/kisaiya
    [link] [comments]

    I was trying to switch back from Linux mint to windows, I made the bootable flash drive, but when i changed to boot from the USB, my screen is just empty. Can somebody please help?

    Posted: 01 Jan 2021 01:00 PM PST

    How can I run a .sh file with a double click?

    Posted: 01 Jan 2021 12:58 PM PST

    Is there any way I can run a .sh file with a double click instead of using the terminal?

    Edit:specificly a python file Edit2:I found a way!

    1. As u/Linuxllc said

    make it executable.

    You need to make it an executable file, either use

    chmod +x <filename>

    or go into the file properties and set it there.

    and from this post

    File Manager > Edit > Preferences > Behaviour forExecutable Text Files. In Ubuntu it is set to View Executable Files when they are opened

    i prefer set it to "Ask each time" like the previous version of ubuntu

    2.

    You have to add a shebang. A shebang is the first line of the file. Its what the system is looking for in order to execute a file.

    It should look like that :

    #!/usr/bin/env python

    or the real path

    #!/usr/bin/python

    You should also check the file have the right to be execute. chmod +x file.py

    As Fabian said, take a look to Wikipedia : Wikipedia - Shebang (en)

    from this post

    submitted by /u/Foro38
    [link] [comments]

    What kernel version will stop amd processors from freezing on vkDestroyInstance?

    Posted: 01 Jan 2021 12:11 PM PST

    Context: https://gitlab.freedesktop.org/drm/amd/-/issues/1095

    Every time a Vulkan window is destroyed, my pc freezes.
    As far as I know, this is only on AMD processors.

    Neofetch:

    ██████████████████ ████████ not-a-weeb@cybertank ██████████████████ ████████ -------------------- ██████████████████ ████████ OS: Manjaro Linux x86_64 ██████████████████ ████████ Kernel: 5.4.85-1-MANJARO ████████ ████████ Uptime: 32 mins ████████ ████████ ████████ Packages: 1377 (pacman), 4 (flatpak) ████████ ████████ ████████ Shell: zsh 5.8 ████████ ████████ ████████ Resolution: 1366x768 ████████ ████████ ████████ DE: Xfce 4.14 ████████ ████████ ████████ WM: Xfwm4 ████████ ████████ ████████ WM Theme: Matcha-sea ████████ ████████ ████████ Theme: vimix-dark-laptop-ruby [GTK2], Adwaita [G ████████ ████████ ████████ Icons: Papirus-Maia [GTK2], Adwaita [GTK3] ████████ ████████ ████████ Terminal: xfce4-terminal Terminal Font: Monospace 12 CPU: AMD Athlon X4 870K Quad (4) @ 3.900GHz GPU: NVIDIA GeForce GTX 1050 Ti Memory: 2991MiB / 7907MiB 
    submitted by /u/3top1a
    [link] [comments]

    How to install Vulkan on Manjaro?

    Posted: 01 Jan 2021 12:07 PM PST

    I followed Lutris wiki guides but lutris still kicks me out with: "Missing Vulkan libraries". I use old laptop with AMD A8-6410 APU with AMD Radeon R5 Graphics

    submitted by /u/shadowmaker_88
    [link] [comments]

    Shit performance in CSGO

    Posted: 01 Jan 2021 08:07 AM PST

    I use Manjaro KDE(compositor off) and i have around 120fps in CSGO, when on windows i had 300-350fps.

    I have an i5-6600k, gtx 1070ti, 16gb ddr4. Any help? Or should i switch to Pop os KDE version of it(Gnome looks ugly to me)

    submitted by /u/NarUlix
    [link] [comments]

    don't know how to install minecraft

    Posted: 01 Jan 2021 11:33 AM PST

    I have an old computer I use as a minecraft server running Debian with xfce as a graphical environment because i need it to manage the server better and i use Debian because the computer is old and it helps with performance. I wanted to play on the combat test snapshot and practice with my friends and the only way to do that would be to port forward a LAN server which i could use an alt account to have a server running the combat snapshot. This, however, requires installing minecraft. idk how to do that on linux. I have been looking at tutorials and everything for this, and minecraft just refuses to install.

    Help plz?

    submitted by /u/Danyogolem
    [link] [comments]

    Grub isn't showing on Manjaro boot

    Posted: 01 Jan 2021 11:16 AM PST

    Manjaro is no longer showing grub menu on boot with the option to select kernels and usual stuff. It "just" boot straight to the system. How can I get it back?

    submitted by /u/shadowmaker_88
    [link] [comments]

    Automatically turn off Wi-Fi once a certain amount of data has been used.

    Posted: 01 Jan 2021 10:58 AM PST

    So I have an unusual issue. I've been using lgogdownloader to download my entire library of GOG games. The problem is that the download often goes over my data cap before I can even react to it. Is there any software I could use to automatically turn of Wi-Fi once a certain amount of data has been used? Any help would be greatly appreciated.

    submitted by /u/SapientCheeseSteak
    [link] [comments]

    Which partitions to delete to remove Windows 10?

    Posted: 01 Jan 2021 10:55 AM PST

    Hey folks,

    Sorry if it's redundant, but I didn't find an exact equivalent anywhere on Reddit or Internet, and I don't want to screw everything up... I'm using Mint in dual-boot and I want to remove Windows 10 FOREVER. Should I delete sda2, sda3, and sda4? And should I delete sda1 (EFI System)? It doesn't seem like sda1 has an equivalent with Linux in my partitions so I'm not sure about this one.

    Device Start End Sectors Size Type

    /dev/sda1 2048 206847 204800 100M EFI System

    /dev/sda2 206848 239615 32768 16M Microsoft reserved

    /dev/sda3 239616 666413404 666173789 317.7G Microsoft basic data

    /dev/sda4 975710208 976771071 1060864 518M Windows recovery environment

    /dev/sda5 666415104 975710207 309295104 147.5G Linux filesystem

    Thanks!

    submitted by /u/king_syze
    [link] [comments]

    How to remove base from terminal after installing anaconda by default without deactivating conda

    Posted: 01 Jan 2021 10:36 AM PST

    Guys, pls check this answer if you face this problem or any edit

    https://stackoverflow.com/a/65532460/14308430

    ubuntu 20.04 anaconda installation

    submitted by /u/son_of_earth_007
    [link] [comments]

    Would like to switch to Linux, need recommendation

    Posted: 01 Jan 2021 06:28 AM PST

    Hi guys,

    I have a very old Laptop from 2011, that I want to run on Linux, because with Windows 10 it becomes very hot and shuts down after 1-2h. I tried Ubuntu first, since it should be user friendly for beginners, but had the same problem like with windows 10 before. My laptop still becomes incredibly hot, barely untouchable after a while, and shuts down after 1h. So now, I am searching for an altenative, that suits both- the specifications of my old laptop and me since I am a newbie.

    I have an:

    Acer Aspire 3830GT

    Intel Core i52410M 2.3 GHz

    Nvidia GeForce GT 540M

    13,3 "

    4GB DDR3 Memory

    750GB HDD

    I have very less experience with Linux and found Ubuntu challenging but doable. Therefore, I would like to minmax between light understanable UI but not to challenging for the laptop to process.

    After a bit of research I was thinking of swithing to Linux lite or Puppy Linux, but not sure if it is comparable to Ubuntu. Maybe there is an even better option. Could you recommend me a nice linux version?

    Thank you very much.

    Greetings.

    ___________

    P.S.: Only free Linux pls. Not sure, wether Linux is always free.

    PPS.: I would download Linux on a stick, so I need to know, which additional software I need to boot Linux.

    submitted by /u/Schisara
    [link] [comments]

    Gnome 3 not opening some stuff in fullscreen

    Posted: 01 Jan 2021 10:10 AM PST

    is there a firewall for linux that is like windows's simple firewall? where i get a notification if anything wants to connect to the inet, and i can either permamently allow or disallow it?

    Posted: 01 Jan 2021 09:28 AM PST

    Buying a second HDD for Linux?

    Posted: 01 Jan 2021 08:58 AM PST

    I have a desktop running Win10, but I have played with Linux (severals distros including Ubuntu, Mint and Kali) on a spare laptop and now I want to install Mint on a separate HDD that I will buy and install on my desktop. Is this simple to do and will it install the GRUB bootloader and allow me to choose which hard drive to boot from each time or is it a different process when installing on a totally separate drive?

    submitted by /u/MaroonCrow
    [link] [comments]

    How to Linux

    Posted: 01 Jan 2021 12:44 AM PST

    Hi everyone

    1st happy new year.

    I have quick question and I hope you can help me here.

    What is the best way to learn Linux(if you have some kind of video courses, books, etc) I know I can google it but to be honest I tried and get lost very fast.

    The reason why I like to learn Linux is I want to change my career to cybersecurity (cloud security).

    I have some basic understanding of Linux. Also if you can recommend what certificate go for (i know it not needed but it is easier for me to learn if I have some "end" goal)

    Thank you.

    submitted by /u/Organikus
    [link] [comments]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel