linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

jokro, in openSUSE Tumbleweed – Review of the week 2023/45 – Dominique a.k.a. DimStar (Dim*)

Linux kernel 6.6 (Snapshot 1109+)

Yeah the next kernel comes soon, really curious about performance difference due to the new scheduler.

Deregon, (edited ) in Dumbest Thing you have done distro-hopping?
@Deregon@jlai.lu avatar

I tried dual-booting Manjaro from my Ubuntu install, since VMs were slow on my machine at the time and I wanted to give Manjaro a try.

Manjaro wouldn’t boot (X11 sessions crashes on boot), and then when I returned to Ubuntu, I got dropped straight to the GRUB rescue shell because I had shrunk the partition from the Manjaro installer, and it had fucked up the Ubuntu install :/ so instead of two OSes I had none

DidacticDumbass,

I feel like I have done that too, but long time ago. I always got confused with dual booting. I get weird trying to calculate how much to space to give each partition.

Making partitions by hand is a pain though.

mex, in Dumbest Thing you have done distro-hopping?

dd’ed an ISO onto the system drive instead of a USB stick. Luckily, the first partition was the Windows one, so not too important; and the rest I recovered from the GPT backup table.

DidacticDumbass,

Nice! I need to learn recovery methods. I am so used to scorch earthing an install when it goes wrong, which is not useful.

LeFantome, in Linux holds more than 8% market share in India, and it's on the upward trend

Think of the opportunity Linux creates in a place like India. If you have some smarts and a good work ethic, Linux and a machine from 2010 allows you to run the very latest software used by tech giants all over the world.

You can self-teach a huge number of skills on Linux and become deeply familiar with the REAL software that professionals are using—even in the West. One you know your stuff, you can leverage that into a job that pays fantastic money by local standards.

If you want to be a developer, you can build a GitHub portfolio or participate in Open Source projects.

If you are more entrepreneurial, you can post videos showing others how to use the skills you have acquired. These not only make a fantastic resume but they can generate advertising income. What may seem like a poor return on time in richer countries can provide important income in poorer ones.

If you have not tried it, you may be amazed that you can run up-to-the minute current versions of Docker, Kubernetes, databases, dev in any language ( even .NET ), and almost any other in-demand technology on really old Linux hardware.

Beyond hard technology skills, a Linux computer is just a fabulous productivity tool. You can get hardware and software to help manage your business that you perhaps could never afford otherwise. If you are a creative professional, you have access to amazing tools. If you are a photographer, you have pro level tools. If you are an architect or engineer, same thing. Again, we can say that some of these are not “professional” but I bet they do the job in markets where few can afford expensive software.

About the only things that push the hardware envelope these days are video editing, AI, and gaming. Even these work better than you may think though. It will take you longer but you can do pretty good video editing on 2010 HW for example.

ReversalHatchery, in Best lesser-known distribution/DE for low-end machines?

If you have any expectation of privacy, you shouldn’t use chromium based browsers. Their purpose is not privacy, and google actively makes sure it will never be.

mfat, in Fonts

Google’s Rubik and IBM Plex Sans are my favorites.

Kerb, in Your chosen desktop Linux defaults?
@Kerb@discuss.tchncs.de avatar

i always use:

  • KDE
  • yakuake
  • kate
  • vlc
  • fishshell
  • gparted
  • firefox

no matter what the default might be

siph, in Have I successfully blocked ssh logins to root?

What @StarkZarn said is correct. Just one more thing: Did you reload/restart the sshd service after changing the configuration? If so you should be good.

cyberwolfie,

Yes, this is something I did when setting up the server some time ago, and as a step in the process I rebooted the system after changing the config.

12510198, in Custom shell prompt tips and tricks?

A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like [ -w “$(pwd)” ] and set the color to red or print a symbol if it doesnt return true.

Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:


<span style="color:#323232;">__shellprompt ()
</span><span style="color:#323232;">{
</span><span style="color:#323232;">	if [ "$(id -u)" = 0 ]; then
</span><span style="color:#323232;">		local PROMPT_EMBLEM='#'
</span><span style="color:#323232;">	else
</span><span style="color:#323232;">		local PROMPT_EMBLEM='$'
</span><span style="color:#323232;">	fi
</span><span style="color:#323232;">	printf "%s" "$(whoami)@$(uname -n):$(pwd)"
</span><span style="color:#323232;">	printf "n%c " "$PROMPT_EMBLEM"
</span><span style="color:#323232;">}
</span><span style="color:#323232;">PS1='$(__shellprompt)'
</span>

Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this PS1=‘$(__shellprompt $?)’ and like print it out if its non-zero so you wont have to like echo $? to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.

In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed hostname to uname -n), if you cant find it feel free to send a message or just ask, and I will send you the code.

wolf,

Wow, thank you very much! :-)

This example is very enlightening. I was kind of aware that one could run shell functions and even use a GIT function in my prompt, but I never thought it through and your example brings the point home.

I’ll waste most probably a few hours to find my perfect prompt function!

(Mandatory xkcd link Nerd Sniping)

12510198,

Im glad I was able to help!

Something that should be noted when adding colors to your shell prompt function is adding the non printable characters that keep the terminal from buggin out, this caused me a massive headache until I figured it out. When putting it in the PS1 variable directly you will put [ to begin a color sequence and ] to end one, but printf will print a literal [ and ] so instead you will have to use `

wolf,

Thanks, of course the color escapes are the first thing I ran into yesterday, when I played around with prompt functions. ;-)

Porting your prompt command to another language is a very nice and practical little project, perhaps I will give it a go with Go. (Pun intended ;-))

Have a great week!

EponymousBosh, in Best lesser-known distribution/DE for low-end machines?
@EponymousBosh@beehaw.org avatar

I use SpiralLinux on my old Inspiron but it’s basically just Debian with some user-friendly tweaks. I guess you could try Tiny Core or Porteus or something really small like that.

aquasteel, in Best lesser-known distribution/DE for low-end machines?

I used to use slax, I don’t even know if it’s still around.

mfat,

It is, and i guess it’s now based on Denian.

atomkarinca, in Best lesser-known distribution/DE for low-end machines?

alpine and void linux are pretty lightweight.

MangoPenguin, in How to download ALL dependencies for an external .deb package (rescuezilla)?
@MangoPenguin@lemmy.blahaj.zone avatar

Would it be easier to use Clonezilla? It looks like it supports encryption.

iturnedintoanewt,
@iturnedintoanewt@lemm.ee avatar

The whole mechanism of working of Clonezilla is about the least intuitive I have ever found. So many chances for errors/mistakes, especially if you’re trying to do a network backup. Rescuezilla invokes clonezilla as a backup mechanism, but it saves you all the trouble with a way more intuitive UI. It’s been a revelation to me since I found about it, and refuse to use clonezilla alone.

MangoPenguin,
@MangoPenguin@lemmy.blahaj.zone avatar

Yeah that’s for sure, it’s pretty user hostile.

It’s not open source but I absolutely love Veeam Agent, it will backup an online system with encryption, very easy to use, and they provide a bootable recovery image to restore from.

Satelllliiiiiiiteeee, in Fonts
@Satelllliiiiiiiteeee@kbin.social avatar

I used to use Inter Semibold as my main UI font but recently moved over to SF Pro Text Semibold. I've been consistently using the Nerd Fonts version of Fira Code for terminal/IDE

hellojack, in Amazon Building its Own Linux-Based OS to Replace Android

Well i think it will help us to access more apps

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #