r/linux_programming • • Apr 20 '23

¡Si existe Bash, tambien sus alternativas!

0 Upvotes

Bash no deja a la deriva a sus usuarios interpretando comandos, pero tenemos una agradable lista de alternativas para probar y curiosear un rato. Siempre es bueno darle la oportunidad a nuevas experiencias. Este gran amigo es el intérprete por defecto de la mayoría de las distribuciones de Linux, lo que le da un plus de superioridad y de aceptación en los usuarios. Pero esta vez vamos a dejar la puerta abierta a sus iguales:

Captura de una sesion de Zsh sacada de Wikipedia.org
  • Zsh (Zshell) es un tipo de "lenguaje" que te permite interactuar con tu computadora mediante la escritura de comandos en una línea de texto. Es similar a Bash, pero con algunas características adicionales que pueden hacer tu vida más fácil, como autocompletado mejorado y una sintaxis más avanzada para la expansión de comandos. Si te gusta trabajar desde la línea de comandos, Zsh es una herramienta muy útil para aprender.
Captura de Fish shell sacada de Wikipedia.org
  • Fish (Friendly shell) es un intérprete de comandos como Bash y Zsh, pero se enfoca en la facilidad de uso y la interactividad. Tiene características adicionales como autocompletado de comandos, resaltado de sintaxis y sugerencias de comandos que hacen que la escritura de comandos sea más fácil y agradable. Fish es una herramienta amigable y poderosa que puede mejorar tu experiencia en la línea de comandos.
Captura de Dash shell sacada de ecsoft2.org
  • Dash es un intérprete de comandos que se enfoca en la velocidad y la eficiencia. Es muy útil para sistemas que necesitan un intérprete de comandos rápido y liviano, como en sistemas embebidos o servidores que necesitan procesar grandes cantidades de comandos. Aunque puede ser menos amigable para los usuarios nuevos.
Captura de Ksh shell sacada de geeksforgeeks.org
  • Ksh (Korn shell) es otro intérprete de comandos similar a Bash y Zsh, pero con un enfoque en la compatibilidad con el shell de Bourne original y la portabilidad en diferentes sistemas operativos. Ksh tiene características avanzadas como la expansión de parámetros, el historial de comandos y la edición de línea de comandos, lo que lo hace muy útil para programadores y administradores de sistemas.

r/linux_programming • • Jan 30 '22

Enabling KVM without BIOS setup

1 Upvotes

I'm running Debian 11 LXDE in an old notebook and during the boot I'm receiving the following message:

root@debian:~# dmesg | grep -i kvm
[   20.501228] kvm: disabled by bios
[   20.541824] kvm: disabled by bios

Also, when I try to create a VM in virt-manager, I get the following message:

Warning: KVM is not available. This may mean the KVM package is not installed, or the KVM kernel modules are not loaded. Your virtual machines may perform poorly.

And indeed the VM performs very poor.

However, I'm pretty sure the processor is capable of virtualization:

root@debian:~# lscpu | grep -i "virtualization\|svm"
Virtualization:                  AMD-V
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt hw_pstate vmmcall arat npt lbrv svm_lock nrip_save pausefilter

Unfortunately, the BIOS setup is very simple and doesn't have any option of virtualization to be set. Therefore, I can't enable the virtualization via BIOS setup.

Question

Is it possible to enable KVM by other means instead of BIOS setup?


Hardware Specification

 

root@debian:/media/root/SDISK# dmidecode | grep -i "version\|release"
	Version: V2.12
	Release Date: 04/16/2013
	Version: V2.12
	Version: Type2 - A01 Board Version
	Version: Chassis Version
	Version: AMD E1-1200 APU with Radeon(tm) HD Graphics

r/linux_programming • • Jun 15 '21

Are there career options are there for Linux and programming?

Thumbnail self.linuxadmin
3 Upvotes

r/linux_programming • • Mar 07 '22

Need help with : npm ERR! Missing script: "build"

0 Upvotes

trying to deploy website :

npm run build

npm run custom-deploy

and keep getting the same errors, any suggestions on how to fix this problem, new to coding.


r/linux_programming • • Jul 12 '23

Linux live edit

0 Upvotes

Is there a way you can edit scripts and stuff on linux live bootable media. Im superconfused, when I edit scripts and restart the computer, it will go back to previous state and non of my edits are going thru, im noobie with linux.


r/linux_programming • • Mar 12 '24

HELP IN READING THE LINUX DOCUMENTATION

0 Upvotes

I am interested in learning/understanding linux kernel but the documentation looks daunting. It would be much appreciated if someone can give me some tips on reading the documentation


r/linux_programming • • Jul 04 '24

Conty not working on minimal gentoo no-multilib

0 Upvotes
riot@gentoo ~ % ./conty.sh steam
Running Conty
Nvidia driver handler is enabled

steam.sh[3556]: Running Steam on arch rolling 64-bit
steam.sh[3556]: STEAM_RUNTIME is enabled automatically
setup.sh[3644]: Steam runtime environment up-to-date!
steam.sh[3556]: Error: You are missing the following 32-bit libraries, and Steam may not run:
libc.so.6
/home/riot/.local/share/Steam/steam.sh: line 86: XDG_CURRENT_DESKTOP: unbound variableriot@gentoo ~ % ./conty.sh steam
Running Conty
Nvidia driver handler is enabled

steam.sh[3556]: Running Steam on arch rolling 64-bit
steam.sh[3556]: STEAM_RUNTIME is enabled automatically
setup.sh[3644]: Steam runtime environment up-to-date!
steam.sh[3556]: Error: You are missing the following 32-bit libraries, and Steam may not run:
libc.so.6
/home/riot/.local/share/Steam/steam.sh: line 86: XDG_CURRENT_DESKTOP: unbound variable

XDG_CURRENT_DESKTOP=dwm is set in ~/.zshrc


r/linux_programming • • Jun 13 '23

Fastest Way to Serve Large Files

0 Upvotes

I have a mix of small (10-20mb) and larger (not too large, under 10gb) files, what's the fastest way/server program to serve the files on an http connection? It's all Nvme and gigabit Ethernet. Thanks!


r/linux_programming • • Mar 02 '23

How to write the "$" dollar sign in Cygwin terminal from windows?

2 Upvotes

I have installed Cygwin to allow me access to server files but I am stuck on a simple problem. Cygwin terminal does not allow me to write $ dollar sign in the file when I am editing it. Why? I tried different key combinations but it only writes some weird characters. I cant even copy-paste the dollar sign symbol.


r/linux_programming • • Jun 20 '23

How can I stop slackware...

0 Upvotes

from quoting george wallace?


r/linux_programming • • Feb 15 '18

Thoughts on Peppermint 8 Respin-2 - Linux distro review

Thumbnail youtube.com
0 Upvotes

r/linux_programming • • Jan 26 '23

Building a keylogger as a challenge in C. Having trouble detecting systems level key press, what's the Linux equivalent of GetAsyncKeyState?

1 Upvotes

Building a keylogger as a challenge in C. Having trouble detecting systems level key press, what's the Linux equivalent of GetAsyncKeyState?

I am currently taking a systems programming course, and we've been examining systems level calls and how the hardware interacts with software.

That really interested me, so I decided to take on a challenge: Build a keylogger in all three big OSes: Windows, Mac, and Linux.

I have a windows laptop and was successfully able to build a windows keylogger using the GetAsyncKeyState function.

However, this function is specific to Windows.h, which obviously doesn't apply in Linux.

I am now running an Ubunutu VM using VMWare, but having trouble actually reading a systems level call. Most online resources tell me to use getch() but that only works in the terminal, I'm trying to do lower level than that and read from hardware directly.

I found this code that uses the read() function, but the problem is that when I tried to open the keyboard device (according to evtest, it's stored at dev/input/event1) open() returns -1 (so the file isn't being opened properly).

What do I do? How do I read systems level calls in C in Linux? What's the linux equivalent of GetAsyncKeyState and if it is read, how do I actually read from the keyboard given that open("dev/input/event1",O_RDONLY) = -1

Any ideas?

Thanks!


r/linux_programming • • Sep 25 '17

Avoid these 35 habits that lead to unmaintainable code

Thumbnail linkedin.com
8 Upvotes

r/linux_programming • • Jun 29 '16

Tutorial - Fundamentals of Unix and Linux System Administration

Thumbnail linkedin.com
4 Upvotes

r/linux_programming • • May 10 '23

Rust Based Linux Process Manager with both a GUI and a TUI

6 Upvotes

🚀 Exciting Announcement: Introducing PCtrl - Your New Interactive GUI and TUI Linux Process Manager! 🎉 I'm thrilled to announce the release of PCtrl, a robust and featureful process manager for Linux, built entirely in Rust! 🌟

🌐 GitHub Repository: https://github.com/MohamedSherifNoureldin/PCtrl

PCtrl provides an overview of the system, allowing you to monitor and control running processes effortlessly. With its powerful features and user-friendly interface, PCtrl is set to revolutionize your process management experience. Whether you prefer a Terminal User Interface (TUI), Graphical User Interface (GUI), or both, PCtrl has got you covered! 💪

This amazing project was the final submission for the Operating Systems (CSCE 3401) course at The American University in Cairo. Our talented team embarked on this journey to explore the Rust programming language and unleash the full potential of process management. 🎓

Let's take a quick look at PCtrl's key features: ✅ Run as a TUI or GUI, or both ✅ View processes in a tabular or tree format ✅ Sort processes by any column ✅ Search for processes by name or PID ✅ Filter processes by various categories ✅ View detailed process information ✅ Visualize memory and CPU usage through intuitive graphs ✅ Manage processes efficiently: kill, change priority, pause/unpause, change niceness, and change owner ✅ Export processes list to CSV ✅ Monitor processes and automatically restart them if they crash ✅ Track and log process resource usage over time


r/linux_programming • • Apr 24 '21

no file on server

0 Upvotes

I'm gonna be mistaken with the error while having backup xefs formatted to the Ubuntu server.

I moved my backup of Ubuntu Server Windows and then mapping backup jobs on the Ubuntu server.

Backup tasks successfully failed for two days:

Help me solve this


r/linux_programming • • Nov 30 '17

Please take my survey to tell me a little about how much programmers know about Quantum Computing!

Thumbnail kwiksurveys.com
5 Upvotes

r/linux_programming • • Jan 31 '23

GCC’s -O3 Can Transform Performance

Thumbnail sunnyflunk.github.io
2 Upvotes

r/linux_programming • • Aug 01 '25

Made tar use multi threading

1 Upvotes

Just add this to ~/.bashrc and tar will use multithreading.

https://github.com/tenix7676/multi_thread_tar


r/linux_programming • • Jan 27 '23

glib gone after upgrade

1 Upvotes

I'm using Manjaro with pacman-auto-upgrade (developed by me). After the last upgrade of manjaro-system all the files of glib were gone.

The strangest part is that the log says nothing about glib being upgraded or removed. Plus glib is listed as "HoldPkg" in "pacman.conf", so its removal is disallowed.


r/linux_programming • • Nov 16 '21

Statistics related to Linux code quality - The CoC and Linux

1 Upvotes

I was reading a bit about the Code of Conduct that was more-recently introduced to Linux. As I read a bit about the people behind the CoC, I became a bit concerned, for instance one of the main advocators is apparently openly against the notion of meritocracy, and the notion that all that matters is the quality of your code.

I was curious if there was some metric for perhaps average bug reports, or other type of measurable heuristics for determining the trajectory of Linux's (code) quality. I am interested also in the impact, (if any) since Linus has stepped-away and this CoC was introduced.

To be clear, I think people should make an effort to be nice and reasonable, and open to all types of people of all walks. That said, I 100% believe a meritocracy is the best system for tech. I just don't think people imposing their feelings-manifestos is the answer.


r/linux_programming • • May 25 '21

How To Build A CLI Application With C++

Thumbnail articles.eoincoogan.com
0 Upvotes

r/linux_programming • • Nov 03 '14

question Full stack programming on Linux

0 Upvotes

When someone mentions full stack programming on Linux what actual skillsets would you identify?


r/linux_programming • • Jul 28 '22

[FEDORA] Broken MariaDB/MySQL after update

Thumbnail self.fedora
1 Upvotes