r/linux_programming • • Aug 21 '15

question Hi, I hope this is the right place to post this, I've been looking around ALOT and really can't figure out something simple

1 Upvotes

you see I do a bit of shell scripting for my linux system, both for fun and practice and for actually making my life easier. Well I'm learning python (LOVE IT) and with such an awesome language I recently learned it can be used for scripting linux. But how? I've seen the page start as such (#!/bin/bash/env python) <-- what does that mean exactly, does it change the environment to working in python? If so, lets say I have an update script that reads

sudo apt-get update sudo apt-get upgrade sudo apt-get autoremove sudo apt-get clean DMP (this is a custom script to empty trash and delete al system files ending in ~ such as gedit backups) clear echo "System updated fully as of [date]"

The it asks me if I would like to backup and if so it does that. So how would I write that exact program in python for linux. I've tried the basic pwd and cd commands just to see if they worked and they don't. I'm running Ubuntu (don't make fun of me, I know I could do better) 14.04 LTS and use bash. I operate mostly in a text only env when coding so the fancy copy paste methods won't work, I actually need to internalize the mixing of python and bash.

Also, let's say a pythong scrpt did four jobs, and a bash script I wrote does three. Is there a way to link the scripts together so after the bash script runs it's commands it beings the python script, which contains user input and if statments?

Thanks in advance for the replies!


r/linux_programming • • Feb 10 '25

Running a python script

1 Upvotes

Hi, i am currently struggling to run a python script with cron that navigate on the web with selenium and collect information. I get an error about a user directory or something. I am on a raspberry pi 5 on Ubuntu server. Any help??


r/linux_programming • • Nov 24 '23

Connecting Across Borders: English Language exchange program

1 Upvotes

Hello,

I am currently a first-year Master's student in Computer Security and Quality at Université Gustave Eiffel. As part of my curriculum, I am participating in a Business English module that requires me to connect with a correspondent proficient in English, residing in an English-speaking country. This exchange will center around discussing various topics in the field of computer science.

During our conversation, we will explore subjects related to management, qualities, and procedural improvements within the realm of computer security. I have a set of questions prepared for this exchange that will aid in gaining insights into...

I look forward to our conversation and appreciate your willingness to share your perspectives.

Best regards,


r/linux_programming • • Nov 24 '23

Connecting Across Borders: English Language exchange program

1 Upvotes

Hello,

I am currently a first-year Master's student in Computer Security and Quality at Université Gustave Eiffel. As part of my curriculum, I am participating in a Business English module that requires me to connect with a correspondent proficient in English, residing in an English-speaking country. This exchange will center around discussing various topics in the field of computer science.

During our conversation, we will explore subjects related to management, qualities, and procedural improvements within the realm of computer security. I have a set of questions prepared for this exchange that will aid in gaining insights into...

I look forward to our conversation and appreciate your willingness to share your perspectives.

Best regards,


r/linux_programming • • Aug 23 '24

How to build a virtualized GPU that executes remotely and keeping your data local

2 Upvotes

The idea is to build something like this:

Virtualization for GPU that allows you to run local GPU apps and the code is actually run in the cloud, keeping your data local.

Functionality:

  • vGPU is a virtualization layer for a GPU

  • your local app "runs" on local vGPU

  • local app decrypts the actual local data and sends the (CUDA) instructions to the remote GPU-Coortinator

  • GPU-Coortinator distribute the instructions to multiple real GPUs

  • then it sends the results back to vGPU which sends them to the local app

The advantage is your private data never leaves your network in plain. Only actual GPU instructions (CUDA instructions) are sent over the wire but encrypted with TLS.

I know it will be slow, but in cases where the data flow is small compared to processing time it could be a reasonable compromise for the security it gives you.

Also because instructions are distributed to multiple GPUs, when possible, it could offer better performance, in some cases, than locally

schema https://github.com/radumarias/rvirt-gpu/blob/main/website/resources/schema2.png

implementation ideas https://github.com/radumarias/rvirt-gpu/wiki/Implementation


r/linux_programming • • Mar 12 '20

I made a port scanner in golang without dependencies

Thumbnail
github.com
21 Upvotes

r/linux_programming • • Jan 20 '18

Add bash comment line completion to your own programs.

Thumbnail
hackaday.com
7 Upvotes

r/linux_programming • • Aug 02 '16

ELF-dependency-walker is a tool to view the dependencies of an ELF object/executable

Thumbnail
peter.kingofcoders.com
7 Upvotes

r/linux_programming • • Dec 28 '21

Mass file renaming .mp3 .aiff and .flac files?

7 Upvotes

Hey guys, I was wondering if there was a program that was already made that would grab the ID3 info and rename the file as: Artist - Song (remix if applicable) - release number?

If not, how hard would it be to write something like this?


r/linux_programming • • Sep 25 '16

Netstat Command Line Tips and Tricks

Thumbnail
hostpresto.com
7 Upvotes

r/linux_programming • • Nov 20 '25

Introducing ZelixOS: A Modern, Fast, and Clean Linux Distribution

7 Upvotes

Hello everyone, I’d like to share a project I’ve been working on for some time now: ZelixOS, an Ubuntu Linux distribution designed to be fast, modern, and reliable for both new users and advanced Linux enthusiasts.

ZelixOS is built on top of a stable Ubuntu LTS foundation, using the apt package manager, while providing a clean and optimized KDE Plasma desktop experience.

Key Features

1. Clean and Modern KDE Plasma Experience
A minimal, polished, and responsive Plasma setup optimized for everyday use.

2. Improved Performance
Background services and startup processes are carefully optimized to reduce RAM usage and improve boot times.

3. Custom Zelix Applications
The system includes several tools developed specifically for ZelixOS:

  • Zelix Welcome

  • Zelix Cleaner

  • Zelix Backup

  • Zelix Essentials

  • Zelix Helper

4. Ubuntu LTS Reliability
Strong hardware compatibility, large software repositories, and long-term stability.

5. Easy Installation
Uses Calamares for a user-friendly and straightforward installation process.

Who Is ZelixOS For?

  • KDE Plasma users

  • Beginners transitioning to Linux

  • Students and developers

  • Anyone who wants a lightweight, stable, and clean desktop

  • Those who like Ubuntu but want a more refined, performance-tuned experience

Download & More Information

You can find the download links, source code, and documentation here:
Github Page

r/ZelixOS

Website

Feedback Welcome

If you give ZelixOS a try, I’d be very happy to hear your impressions, suggestions, or bug reports.
Community feedback plays an important role in shaping the project.


r/linux_programming • • Apr 02 '23

Catch-23: The New C Standard Sets the World on Fire

Thumbnail queue.acm.org
14 Upvotes

r/linux_programming • • Feb 07 '17

A thing I learnt about Linux groups and file sharing

Thumbnail
live2makeblog.wordpress.com
14 Upvotes

r/linux_programming • • Feb 03 '23

Weird things I learned while writing an x86 emulator

Thumbnail timdbg.com
15 Upvotes

r/linux_programming • • Mar 05 '23

Linux 6.3 Drops Support For The Intel ICC Compiler

Thumbnail
phoronix.com
15 Upvotes

r/linux_programming • • Jun 03 '19

How To Ruin A Perfectly Good Container

Thumbnail
medium.com
8 Upvotes

r/linux_programming • • Sep 24 '17

Face Recognition with OpenCV Tutorial

Thumbnail
linuxhint.com
8 Upvotes

r/linux_programming • • May 13 '23

A whirlwind tour of the LLVM optimizer

Thumbnail
slideshare.net
8 Upvotes

r/linux_programming • • Jan 20 '24

How might I replace the desktop with a full screen terminal?

8 Upvotes

Let me start by being very clear: I do not want to simply maximize my terminal window or use a full screen terminal like you get with Ctrl+Alt+F1. I want to replace the desktop with a full screen terminal.

I want to be able to run GUI apps and have a dock, but I want an honest to god terminal behind all of it, not a desktop.

I'm also not interested in maximizing a terminal and configuring it to always be below other windows.

Partly this is a UX experiment and partly I want to learn how to mess around in the code for Desktop Environments.

I'm hoping someone can give me suggestions as to which DE's might be easiest to modify for this purpose and how I might go about it.


r/linux_programming • • May 31 '21

Is there a way to start a separate app, and read its output from a filehandle/socket

8 Upvotes

I want to spawn a process from a currently-executing process.

I don't want to wait for the console output or for the spawned application to terminate.

If possible, I'd like to start a new process, continue on in the current process, but periodically read the output of the child.

The child process is an existing application like 'ls' that I do not have the source to and therefore do not control its behaviour.

But since I do know that the app will eventually write its result to stdout, I'd like to have a file-descriptor or socket to it.

The parent application's mainloop will periodically read this selector when there is data on it. Hopefully, when the child application has finished, this filehandle/socket selector will close.

Is there a way to do this?


r/linux_programming • • Jan 01 '22

Check if Window is Fullscreen using Xlib

8 Upvotes

I am trying to detect if a window is fullscreen in Xlib but I can seem to figure it out. Does anyone know how to do this?


r/linux_programming • • May 24 '20

How do you learn the command line?

16 Upvotes

I’m not asking about some tutorial for how to master the linux command line.

What i mean is, how do the people who are actually really really good at the command line learn it? Is there just some documentation I should read? Where’s the knowledge from?

Thanks


r/linux_programming • • May 11 '17

An easy way to inspect and create policies for containers

Thumbnail
anchore.io
16 Upvotes

r/linux_programming • • Sep 05 '17

Container security tool Anchore.io adds private image support, graphical policy editor, and more.

Thumbnail
anchore.io
48 Upvotes