fzlr 0 Newbie Poster

Yes, it is.
I may be forced to work with Microsoft products at work but in my free time I'm using Aurora.
bootc is a GAME CHANGER.

WilliamOG -8 Newbie Poster

Great project idea, and you're already ahead with your electronics background. For the OS, Raspberry Pi OS Lite is a solid starting point—lightweight, well-supported, and ideal for headless setups. If you want something even more stripped down, check out DietPi or Ubuntu Server for Pi, but the trade-off is slightly less community support.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

P.S. Here in the US, our Nests are directly connected to the HVAC system hardwired in the wall, so they aren’t movable at all.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

How can you bear to live in such an uncivilized country?!

trcooke 34 Newbie Poster

Apparently not available in the UK. Although Amazon UK are selling them and there are lots of angry reviews left.

trcooke 34 Newbie Poster

Oh I have not seen those before... interesting.

I was thinking of this
OIP-1295676706.jpeg

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Huh? I'm referring to these. They're just tiny wireless pucks that you put wherever you want.

trcooke 34 Newbie Poster

Indeed not. He's 7 now.

Yes you can get those free standing mounts, but I don't have any. My thermostats are wired into the wall. It'd be cool if you could just pop them off the wall and stick them on a stand anywhere you like, but alas you cannot.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

I assume your son is no longer a baby, but nowadays you can get Nest temperature sensors to put in different areas of your home. You can officially tell Nest to control the HVAC based on the temperature of the family room during the day and the temperature of the bedroom at night, for example.

trcooke 34 Newbie Poster

Oh yes IFTTT definitely a good shout. I've had some success with it in the past.

When our son was a baby we had real trouble keeping his room warm in the winter because the upstairs thermostat was out in the hall which was nice and toasty from all the heat of the house rising to meet it, while his bedroom with the door closed was cold.

I happened to have a thermostat connected to a micro-controller (I'm a technology hoarder) which I connected to my home network and had a little bash script running on a raspberry pi that polled for the temperature every now and then and fired a webhook event to IFTTT to turn on or off our heating via a Nest integration. It was rather a convoluted solution but it worked well and IFTTT was the key enabler since it already knew how to control our heating system.

It might be a good middle ground between nothing and running a fully blown automation system 24/7. Keen to hear what you go for, so please do report back.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

What about using something like IFTTT?

trcooke 34 Newbie Poster

Hello, I'd probably start with an open source off the shelf solution such as https://www.home-assistant.io/

There are tutorials on their site that cover installation onto a raspberry pi so you should be able to get to and running fairly quickly.

It sounds like a fun project so please do let us know how you get on.

Aria James 0 Newbie Poster

Hello everyone,

I'm in the early planning stages of a personal project to set up a smart home automation system using a Linux-based Raspberry Pi setup. My background is in electronics and embedded systems, but I'm relatively new to working with Linux for this kind of application. I’m hoping to get some advice from the community which lightweight Linux distribution would be best for running automation tasks smoothly on a Raspberry Pi, any recommended libraries or frameworks that make working with sensors and relays easier under Linux and common security or performance pitfalls I should keep in mind when exposing Linux-based devices on a home network?

trcooke 34 Newbie Poster

Maybe a wee bit older than you Dani, I was 26 or 27 doing a Masters degree when I met my Linux loving friend. I'm 46 now.

I have had Macs but it annoys me that they get obsoleted by software long before the hardware runs out. My wife has a MacBook Air and it's great because it's zero effort to maintain but the cost is replacing it even when it's still in perfect working order, apart from nothing works because Apple have decided it's too old.

Dani commented: I’ll be 43 in November +34
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

If I can assume you attended university right out of high school (or at least the US equivalent), then that would put you at pretty much my age. Nice :)

Please switch to macOS. It's sooo much more refined, and I would say much more than BSD "with a fancy window manager" these days. Although I haven't used Linux for my personal PC in just over 20 years.

trcooke 34 Newbie Poster

While I was at university 20 years ago one of my course friends regularly extolled the virtues of Linux. He was a big fan of Gentoo which I never really got into, he like fiddling with the configuration and I liked a working system, two characteristics that rarely overlapped for me except for rare moments.

But, I was sold on Linux in general and have been mostly an Ubuntu user since then. I've had a few diversions over the years into other distributions but they don't usually last long and it's back to Ubuntu. We use Ubuntu at work too, mainly because I am in the useful position of being able to decide what operating system we use in the development team. Since our production environment is Linux it's really useful that our development environment is also Linux. I will concede that you can achieve the same goal with Apple OSX since it's essentially Unix with a fancy Window Manager, but we didn't have the budget at the time. The company has matured a bit since then, i.e. we have some money now, and I floated the idea of getting Macs in the next hardware refresh but the team resisted it fairly strongly, so I guess they're all Linux users now too :)

Ulfson 0 Newbie Poster

Linux has come a long way, but it's still primarily a server OS, correct? How many of you linux fanboys and girls use it as your primary operating system for daily tasks?

I've been a Mac user for 30 years or so, as I like the hardware Apple makes. And macOS has a Unix command line, which I rely on heavily - getting the best of both worlds. I also use Windows, as I've had to in some companies, but not voluntarily :-) And yes, on servers it's Linux all the time.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Salem linked to it (thank you!), but it seems succinct enough that I'm going to include it here in case the link were to disappear in the future.

# qemu-img snapshot [ -l | -a snapshot | -c snapshot | -d snapshot ] filename

-l: lists all snapshots
-a: reverts the image to the snapshot
-c: creates a snapshot
-d: deletes the snapshot

Salem 5,265 Posting Sage
Gabriel9999 3 Newbie Poster

How can i list snashot information and delete snapshot from command line or bash in elegant way? Thanks.

asadalikhan 3 Newbie Poster

while true; do echo "Running..."; sleep 60; done
This runs forever, printing "Running..." every 60 seconds. No script file needed, just drop it in the terminal and you're good.

Vince_6 0 Newbie Poster

Be Careful what you wish for. When I was first using Unix one of our programmers wrote a Bash script something like:
While 1
Do Something

He eventually overloaded the system and it crashed.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Wow, I'm surprised how many people here are primarily Linux users compared to how infrequently our Linux forum gets posted in these days.

Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Yes , that is still an issue...

Many years back a neighbour was taking an evening course to become more computer literate. She was confused one day, telling me that her instructor had tried to explain to the class what "formatting a disk" meant. He talked about magnetic fields, tracks, sectors, etc. but she was still in the dark as to what formatting actually did. In under 60 seconds I explained what formatting was in terms of paving and marking lines in a parking lot. As a bonus, once I was done she also understood fragmentation and file pointers as well as the difference between a full and quick format.

In order to be an effective communicator you have to be aware of your audience.

rproffitt commented: I'll send JD Vance and the Orange King your way next. +17
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

When I ran into problems with linux I found the online help was less than helpful. The help, when offered, consisted of experts explaining things to other experts, even though I mentioned that I was anything but. All help assumed I had much more knowledge than I did. The explanations sounded like Trek techno-babble.

jkon commented: Yes , that is still an issue... +11
jkon 689 Posting Whiz in Training Featured Poster

I exclusively use Linux on my personal PCs, currently the Ubuntu distribution. I switched from Windows between 2010 and 2012. Before that, I used Linux on a different PC for several years, followed by a period of dual booting. Thanks to WINE, I have yet to encounter software I cannot run on my PC. I believe Ubuntu has become so user-friendly that even inexperienced users are unlikely to face significant problems. However, precisely because they might lack someone to ask for help – and often struggle with effective searching and understanding online resources – I wouldn't necessarily recommend it to someone completely unfamiliar with operating systems. My gaming experience is limited, so I can't comment on Ubuntu's performance in that area. Ultimately, I prefer an operating system that doesn't require me to constantly think about its usage, allowing for a seamless transition between work and personal tasks.

Benjamin_17 8 Newbie Poster

The last time I used Windows was Windows XP when I got a blue screen of death trying to install it. Since then, I have been daily driving with Linux (Ubuntu then Pop! then back to Ubuntu) since then. No real problems, yes I do not play the games I use to, but within Steam there is still quite a healthy choice to pick from. Honestly I would struggle going back now as I am used to the Linux environment. Occasionally I run into trouble with normal products from Microsoft (since I am in a Microsoft ecosystem with my job) where they might support some application with Linux on the first release, but then fail to keep the support going, but the basics are still covered.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

I started this thread thinking about James, DaniWeb's sysadmin, who I was surprised to hear uses Windows as his daily driver, despite his proficiency in Linux. I believe he quoted things like Linux not being ideal for gaming.

I'm macOS only these days.

Vince_6 0 Newbie Poster

I used Plex and a Mac for years to stream to my TV. When I switched to linux, PLex ran but couldn't find my media directories.
I finally found a product called Emby. It has a server that runs and aps for many different divices. It even has one for my FireTV. Works great.

Vince_6 0 Newbie Poster

I used Linux on and off for years. I was finally willing to commit to Windows 11 when it installed some updates and it went into a reboot loop afterwards. I said screw it and went back to Linux. Been using it for months as my primary OS and I am quite happy with the decision.

Salem 5,265 Posting Sage

I use it all day, every day.

TBH, M$ stopped being an OS company after Windows 7 and the so-called OS just became a marketing tool to ram ever more crap in front of your face.

Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I've tried loinux several times over the years on spare computers, virtual machines, and a Raspberry Pi. I gave up on all of them because it was too difficult to maintain. Now all I use it for is Live USB recovery tools.

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Linux has come a long way, but it's still primarily a server OS, correct? How many of you linux fanboys and girls use it as your primary operating system for daily tasks? How does it compare to Windows or macOS in terms of productivity and overall user experience?

rsleventhal commented: I've been using Linux as my primary desktop O/S since 2009 and have never been happier or more productive +0
AlVest commented: Linux Lubuntu, personal pc. Mac & Windows at work. +0
Olu_610 30 Newbie Poster

I use namecheap and I have no regrets using it. I strongly recommend it to anyone planning to start their website. The dedicated servers provided by this company is probably the best and they offer outstanding support services.

Kaven_1 0 Newbie Poster

yes you can use hostinger. i am using it for my blog website.

wootingdouble -16 Newbie Poster

Ubuntu is a solid choice for a chess tournament! It's stable, lightweight, and great for running chess engines smoothly. Curious to know how it's working for you!

Salem commented: chatgpt garbage -4
rproffitt commented: Chatbot much? -4
rproffitt 2,706 https://5calls.org Moderator

I'd forget BlueTooth (BT) for this and head for a classic WiFi Adhoc setup.

For my system which displayed a building door status in real time the demo system had a server which had an adhoc Wi-Fi setup so the clients could connect and send in status.

Wi-Fi has range and supported many connections so that part of the problem was solved.

Moving on to the system, the clients would connect to the MySQL server and update records when status changed in their area.
Then on the status display which didn't have to be the server an app there would update when the MySQL data changed.

That system was built in the 2003 so I'm not sure if any code would be found but the design lives on in products by other companies.

Quantum1982 33 Newbie Poster

Hi
Thanks for the info.

I will do a search to clarify what the distance limitation is for using Bluetooth. I assumed that the Wifi module in the Android tablet would be a better option to communicate with the pc ?

Salem 5,265 Posting Sage

It's probably going to depend on the number of connections your hardware supports.

https://man.archlinux.org/man/hcitool.1.en

lealsz Read size of LE Accept List

On my machine

$ sudo hcitool lealsz
Accept list size: 25

Bluetooth is generally low bandwidth, so if you're just sending moves as short ascii strings, the machine isn't likely to be troubled.

Quantum1982 33 Newbie Poster

Hi

I want to run a chess tournament that uses Android tablets as the input for each player. These tablets will be placed on a table, where at the end of the table there will be a pc running Ubuntu. The tablets will communicate with eachother using Bluetooth. The tablets will also send the moves wirelessly to the pc running Ubuntu.

I want to know what the limitations will be on the pc in terms of receiving incoming data ? Thanks

Salem commented: An actual question - thanks +16
rproffitt commented: I did something like this long ago. Answer below. +17
Digi_6 -4 Newbie Poster

If you're looking for a new server provider with reliable technical support, there are several reputable hosting companies that offer excellent customer service along with robust server options. Here are a few options to consider.
SiteGround
Bluehost
A2 Hosting
HostGator
InMotion Hosting

dot LI commented: Thanks Digi, but one of the companies on the list is the one I'm having problems with - but I'll check out the others. +0
cored0mp 54 Junior Poster in Training

Team,

What would you want to see in an awk tutorial? None of the existing tutorials are great.

A good tutorial is like the video from ten years ago where that kid outlines in about ten minutes how to breakdance, it's crazy.

Lihui Zhang 0 Newbie Poster

Thank you, Salem. The script has been modified and the efficiency has been increased by more than 50%.

#!/bin/sh

#
# search text pattern in current directory.
# usage:  f pattern [file]
#

params="-E -n --color=auto"

if [ "${2}" == "" ]; then
    find -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" -or -iname "*.mak" -or -iname "Makefile" -or -iname "*.s" | xargs -d'\n' grep $params "$1"
    exit $?
fi

case "${2}" in
c)
    find -iname "*.c" -or -iname "*.cpp" | xargs -d'\n' grep $params "$1"
    ;;
make)
    find -iname  "*.mak" -or -iname "Makefile" | xargs -d'\n' grep $params "$1"
    ;;
h)
    find  -iname "*.h" | xargs -d'\n' grep $params "$1"
    ;;
v)
    find  -iname "*.v" | xargs -d'\n' grep $params "$1"
    ;;
vhd)
    find  -iname "*.vhd" | xargs -d'\n' grep $params "$1"
    ;;
all)
    grep -R $params "$1" .
    ;;
*)
    find -iname "*${2}*" | xargs -d'\n' grep $params "$1"
    ;;

esac
Salem 5,265 Posting Sage

You can do this with xargs

find . -name "*.c" | xargs -d'\n' grep -w "main"

Or if you know you want to search the same set of files many times.

find . -name "*.c" > tmp.txt
xargs --arg-file=tmp.txt grep -w "main"
xargs --arg-file=tmp.txt grep -w "void"
Lihui Zhang commented: Thank you for your improvement plan. Using xargs avoids repeatedly loading grep and running it, thus improving efficiency. +0
Lihui Zhang 0 Newbie Poster

For programmers who do not like to use IDEs, it may not be convenient to find specific strings in files of a specified type. Using standard grep is an option, but specifying file types can be quite cumbersome. We can solve this with a small script. First, use find to list the filenames we need to search for, each on a new line, and save them in a text file:

find -iname *.v > /tmp/1.txt
find -iname *.vhd >> /tmp/1.txt

And here's the script:

#!/usr/bin/lua

file = io.open(arg[1], "r")
good=0
files=""

for line in file:lines() do
    cmd=string.format("grep %s '%s' ", arg[2], line)
    reti=os.execute(cmd)
    if(reti)then
        print(string.format("Good %s", line))
        good=good+1
        files=files .. line .. "\n"
    else
        print(string.format("Bad %s, found=%d", line, good))
    end
end

print(string.format("Found %d files: ", good))
print(files)
file:close()

The advantage is that if there are many files, you can see the search results dynamically without having to wait for a long time.

~/f.lua /tmp/1.txt i_tcp_en

Found 7 files: 
./header_gen/source/header_100ge_gen.v
./header_gen/source/header_100ge_gen_debug.v
./header_gen/source/header_100ge_gen_tcp_flooding_1.v
./header_gen/source/header_100ge_gen_tcp_flooding_10.v
./header_gen/source/header_100ge_gen_tcp_flooding_32.v
./payload_gen/source/payload_100ge_gen_v1.v
./tx_top/source/tx_100ge_top.v

2024-11-11_11-11-1731295974.png

Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Also, I’ve modified the tags you’ve chosen to use for your post. In the future, please note our tagging guidelines.

dot LI commented: Thanks Again! +0
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

I think your question is better asked at WebHostingTalk.com

We used what is now IBM Cloud for the past 20 years. We now do colocation.

dot LI commented: Thanks Dani +0
rproffitt 2,706 https://5calls.org Moderator

Please expand on the support you expected. I encounter folk with site issues which has little to no support because it's not a server issue.

dot LI 17 Newbie Poster Team Colleague

Hi All,

I have a dedicated server with a company with poor technical support.

Can anyone suggest a server company?

Thanks,

Jim

huzaifa_4 commented: yes i would refer you a dubai based company name primedigisol.com there are good in handling these types of server problem +0
cpvr commented: I’d recommend Liquidweb or Ushost247. they’re both great hosting providers. Mddhosting and Knownhost are also good hosting providers. +0
Network_1 0 Newbie Poster

how to get job as linux adminstrator can i also work as network admin or analyser i am biggner in cybersecurity can any one help me for that..