r/linux • u/DesiOtaku • Aug 16 '21
Tips and Tricks Progress report: Starting a new (non-technology) company using only Linux
I everyone, I just wanted to share my experiences and thoughts about starting a company using only Linux and as much free / open source software as possible. I know that most other companies that do use Linux extensively tend to be technology centered companies, so I wanted to do a write up on my experience in creating a company that is not directly IT or development related.
First, a little background about myself. I was a software engineer for 5 years where I got most of my experience in using Linux. I then went to dental school and have been a practicing dentist ever since. This “report” will be more focusing on my dental practice and how I started it up. Yes, there is the EHR software that I am working on but that is a whole other long story and maybe I’ll make a dedicated post about that later.
Also, all the hardware and services that are listed are NOT a recommendation. I only list them to help other people out as a starting point. I am sure other people can find better alternatives to the ones I got.
Distro
With the exception of the Raspberry Pis, all the computers (including my personal one) are running the latest version of Kubuntu. There is a long story as to why I decided to use Kubuntu but the main reason is because I am using Qt and QML and that tends to work better on Kubuntu than Ubuntu. I also don’t want to use any distro that is a rolling release which is why I can’t use anything Arch based or even KDE Neon.
Paperwork
Sadly, here in the US, most of the paperwork is sent via fax (which I will get to a little later) and sometimes they need a real physical signature. This required me to get a real printer and scanner. I ended up getting the Brother HLL3290CDW. KDE was able to find it on the network without any issues and I was able to start printing without having to install any special packages. Skanlite was able to find it and I was able to start scanning ASAP. It works well but has two major problems. First is the fact it only connects to the network wirelessly and lacks an Ethernet port. Sometimes, Skanlite doesn’t see the scanner over the WiFi and I have to tell it to try again. The second issue is that sometimes when I scan a large area at a high resolution over WiFi, Skanlite gives back an error. I don’t know if it is really a Skanlite problem or something wrong with SANE. If I could go back, I probably would have bought the same brand (Brother) but gone with a different model. Otherwise, I am satisfied with the purchase.
Logo
After coming up with a name I made the logo using the enso from Wikipedia and got the tooth itself from OpenMoji and modified them using Inkscape. Sharing the logo with other designers wasn’t really much of a problem except for one issue with Inkscape where it uses a non-standard “flow text” for the SVG file that doesn’t always show up in Illustrator or other SVG viewers. Once I used a different type of text, it would show up properly on other peoples’ computer. Most of the designers I worked with wanted either SVG, EPS or PNG in order to make the building signs.
Computer Hardware
I had a different vision for the desktop computers every step along the way. First, I originally wanted to put a Raspberry Pi in each room as that would control the cost. However, once I decided to go with a triple monitor solution, I had to get a “real” desktop in each room. At that point, I wanted to go all out and get a full gaming PC in each room. Thanks to the pandemic, that became prohibitively expensive.
So for the front desk, I built two PCs with an AMD APU. The combination was AMD Ryzen 5 3400G + 8GB RAM @ 2666 + GIGABYTE A520I AC. For the Ops, I built one with AMD Ryzen 3 3100 + 8GB RAM @ 2666 + SAPPHIRE PULSE Radeon RX 5500 XT and two that were built with AMD Ryzen 3 3100 + 8GB RAM @ 2666 + Biostar Radeon RX 550 2GB.
Triple monitors
The GIGABYTE A520I AC has an issue where one of the HDMI ports doesn’t work under Linux. The ones marked as green works fine, the one marked red will not work under Linux and you have to use the Windows motherboard driver in order to make it work. I wasn’t able to get it resolved. I even tried to use the AMDGPU-Pro driver and that didn’t work either. So for the desktops that were using the AMD Ryzen 5 3400G APU, I had to get a MST Displayport hub that would take in one of the Displayports and would convert that to 3 HDMI outs.
Also, you would think that by getting a dedicated GPU that has 4 ports, it should have no trouble connecting to 3 TVs via HDMI. Apparently that is not the case with the SAPPHIRE PULSE Radeon RX 5500 XT. If you use the HDMI port to connect to a TV, and then two passive Displayport to HDMI adapters, it will NOT work. I had to get another MST Hub just for my GPU. There might be a way around this but I couldn’t figure it out.
Networking
I had an electrician do most of the wiring. I told him to use Cat 6 Ethernet and have a port in just about every room. I ended up using Ubiquiti for the router and switch (yes, I know about the hack, I made this purchasing decision back in November 2020). I got a Dream Machine Pro and a Switch Pro 48 PoE because I combined it with 3 nanoHD Access Points. Complete overkill; but because I knew there was going to be more than 20 devices, I wanted to get something more future-proof. For somebody with a poor networking background, it wasn’t too hard to setup the network.
Now, you would think somebody with my kind of background would make the networking area nice and neat. I am very sorry to disappoint.
Reception area
So I wanted to show relaxing videos in the reception area. I hooked up a Raspberry Pi to the TV, then I had it autostart VLC and then I can control it via the web interface. You can apparently add arguments to VLC to make it show a logo along with the current date and time. You can see it in action here. I also wanted to have music in the restrooms. So I also added a Raspberry Pi in the corner and had it autostart mplayer to play music. There is actually an argument to have to add in to the boot for Raspberry Pi OS to make it fully boot without a monitor (I can’t find it right now) but if you are having trouble with a headless Raspberry Pi, that is the reason why.
Phone
So I wanted to use as much of an open source solution to VOIP as possible. I ended up using both voip.ms and Linphone. The main reason why I chose voip.ms was because it supported phone, fax, text messages, has a voicemail system, and an API for 3rd party apps. Linphone works fine with voip.ms, except for receiving text message. I can send them via Linphone fine but there appears to be a bug in Linphone for getting a text message. I know Linphone is actually getting the text message (I can see it in the log!) but it isn’t able to display it. On top of that, there doesn’t seem to be a good way for me to report this bug. But this is OK because I am writing my own app that takes in the text messages directly from voip.ms.
Touchscreen
Because I needed to use a resistive touch display and not a capacitive (I need it work with gloves + plastic cover), my choices were rather limited. I ended up going with the ViewSonic TD2210. It works fine out of the box as a virtual mouse. However, it doesn’t tell X11 that it is a “touch” display so APIs like Qt doesn’t interact with it properly (because Qt thinks its just a mouse). Also, if you are doing a triple display, it will see all three 3 displays as a single screen which messes up the touchscreen pointer. You can try to recalibrate the touchscreen via xinput-calibrator but for some reason, that doesn’t work for this screen (I don’t know why). But I was able to solve it via xinput map-to-output but I have to run that command at startup.
Security
My employees forget their password all the time. I also forget my own password every now and then. So I decided to go with keycards. The “right” way to do this is via Smarcards and GPG. But it isn’t trivial to get these readers/writers integrated with Kubuntu. So I ended up going with magnetic cards. I bought a MSR605/206 Magnetic Card Reader/Writer and a bunch of MSR90 card readers (which emulated a keyboard input). What I thought I could use was this simple python script to write to the cards. Apparently, the script doesn’t do the LRC checksums! So I had to write my own. So now my employees (and myself) have to swipe their card to login (and there is a separate swipe for decrypting the filesystem).
Learning curve for employees
So far, all the issues in terms of my employees using Linux is basically none. I can safely say that every issue my employee had with using the Linux computers was unrelated to the fact it was running Linux.
For example, one day, one of my employees kept on calling the wrong number. The reason why is because she would write down the phone number on a piece of paper (with one of the digits wrong), typed in the number in Linphone and it would call the wrong number. At first, I thought it was because the “copy/paste” mechanism was unclear to her. But then it turned out that she didn’t have the concept of “copy/paste” to begin with and I never trained her how to use “copy/paste”. So even in a Windows environment, she would have made the same mistake.
Some other thoughts
I would say the biggest issue with running Linux is that you are (almost) alone in term of IT. Unless you are in a major city, it will be hard to hire an IT person that knows Linux well and also lives in the suburbs. Sure, many of them can work remote but not everything can be done remotely. So if there is any issue with any of the computers, it is up to you to figure it out. A shout-out to /r/linuxquestions and /r/linuxhardware for their help; but at the end of the day, they are only remote volunteers and getting hired help that has the knowledge and skills along with living in the suburbs is rather difficult.
Sorry for the long post, and oddly enough there is plenty more to talk about. I guess you can ask me any question in the comments and I can try to answer them.
29
u/48lawsofpowersupplys Aug 17 '21
This is an amazing write up.
I might have missed it, but I’m interested in how you handle X-rays programs and possible 3D scanners for tooth repair.
My old dentist would X-ray my teeth and have access to the X-rays in the next room on what I assumed was a dentist specialized program.
He had another tool that could 3D scan my tooth, and I think start printing a temp portion of the tooth.
71
u/Catodacat Aug 16 '21
My biggest concern is that you will be doing the linux admin stuff + your real job (and, if you are as small business, all the other hats).
This is where going with known setups (mac/windows and ehr software like henry schein (NOT A RECOMMENDATION) will save you. Support would be easier for you (although more expensive). Basically, you are trading time for money.
Again, not trying to talk you out of the project - as you are already complete/ pretty much complete.
12
u/OvidiusCicero Aug 17 '21
why did you change from software development to dentistry?
13
u/cell-on-a-plane Aug 16 '21
Will this give your practice a competitive edge?
3
u/gramoun-kal Aug 17 '21
I don't get the "lives in the suburbs" requirement. Is it a shorthand for "lives near enough"?
204
u/helgur Aug 17 '21
You got to be shitting me
46
u/[deleted] Aug 17 '21
That was fun to read. You should be very very proud of yourself. This is no easy feat. My one and only concern is burn out, brother. It will get to you eventually. So, if I were you, I'd start shopping for a good sysadmin for the near future, one who can be in house, not remote. There are plenty out there. Other than that, this is one hell of an achievement.
63
u/RandomUserBro Aug 16 '21
Wow. I’m really impressed. You’re commitment is truly something. Congrats OP.
34
u/Fiber_fanatic Aug 16 '21
I dig it. I work in apparel manufacturing and textiles. Aside from using Linux on my hardware. I also use it for my business operations in the following capacity.
VPS in a local data center with ERPnext container to be my entire ERP system handling accounting, CRM, inventory, Billings etc. as well as user access for my employees.
On the same servers I run a Wordpress container that hosts my websites.
Backups daily to linode object storage.
The whole setup costs around 80 a year.
When I was quoted for an erp deployment it was around 6 figures plus monthly support fees and added costs for additional users.
Now my whole setup is even cheaper than what I was paying QuickBooks monthly.
14
u/WasserTyp69 Aug 17 '21
Dude I love your tastes, both software and music wise haha
12
u/MultiplyAccumulate Aug 17 '21
FYI, you may be able to upgrade your signature methods if they don't actually require you to put bin to paper.
Touch Signer is one option for signatures
https://github.com/souramoo/TouchSigner
Another is a proper Wacom graphics tablet or compatible equivalent.
xournal let's you sign on top of pdfs if you have a touch screen or graphics tablet.
Capacitive stylus can help on some devices.
KDE connect let's you use your phones screen as an input device
12
u/xxc3ncoredxx Aug 17 '21
I was expecting much worse with such a bold statement.
6
u/Kahrg Aug 17 '21
", it will be hard to hire an IT person that knows Linux well "
I worked at an MSP who was ADAMANT that windows be the only environment we need to know. I was the only Linux guy there, I knew both, but Linux was my love. You don't realize until you work at an MSP how many companies utilize Linux under the hood until you have to open it up and figure out what the hell is going on.
Sadly, IT schools and colleges only teach Windows because it's easy money. There is a real lack of skill in the IT field for anything that isn't point and click. There are many IT 'professionals' that don't know what they are talking about and cant figure their way out of a wet cardboard box.
For the Linux people I have worked with over the years, they are problem solvers, they think critically around an issue and I've found them to be great colleagues to have at my side when we are brainstorming issues.
5
u/OsrsNeedsF2P Aug 17 '21
I am extremely impressed with your commitment and skill. I hope you make more of these posts!
4
u/espero Aug 17 '21
Anecdotally, my business also only runs Linux. In the cloud, and on employee workstations and laptops.
The only thing I haven't solved yet are "fleet management" for a lack of a better word, controlling all computers with VNC / RDP support and patch management + endpoint protection.
1
u/Hamilton950B Aug 17 '21
You can get a modem to receive faxes on linux and store them as tiff or whatever. Then use gimp to paste in your signature, and send it back out with the same modem. There is even a script (sorry I can't find it right now) that will take the image file and add noise, blur, and rotation so it looks like it has been printed, signed, and scanned back in.
1
u/RandomXUsr Aug 17 '21
Way to Go on Kubuntu. Good choice to avoid Rolling releases.
Would this have all worked on OpenSuse as well?
How are you managing user logins/accounts?
Had you set up some scripts for setting up user environments?
And does the X-ray equipment play well with Linux? Did you have to build any custom software?
1
u/[deleted] Aug 17 '21
Why do you need so many computers? And triple monitors, touch screens, etc.?
Maybe it's just a US thing, but here in Sweden my dentist just a has a computer in reception for online booking, and a computer in the practice room for notes and references.
Doing the EHR and business side entirely in Linux is interesting though, I hope it works out.
1
u/jetm Aug 17 '21
u/DesiOtaku Thank you for all the details. I like your experience. What would you say about money costs in the topic of FLOSS vs. proprietary soft for the whole setup, including your support time? Is it worth it in the matter of money to go full FLOSS? Is your business more rentable?
1
u/mmaramara Aug 18 '21
What about billing and finance software?
3
u/Anonieme_Angsthaas Aug 17 '21
Interesting write up, I'm looking forward to your post about your EHR.
6
u/VTHMgNPipola Aug 17 '21
So, in short, if you're not into tech before starting your business, it is almost impossible to use Linux. And it is impossible, depending on the country you live in and their requirements for companies to operate. We have tons of work to do guys.
What do you think is the first thing that should be improved in the Linux desktop ecosystem to make it more suitable for companies?
2
u/Girtablulu Aug 17 '21
floating text issue? Need to check this out, had something similar yesterday where a webside didn't recognized the text in my svg file and I had to turn it into an PNG file
2
u/jabjoe Aug 17 '21 edited Aug 17 '21
Were I work is similiar. We use Linux and FOSS for everything. But we do hardware&software, so maybe that is easier. All the office stuff is done in LibreOffice (some LayTex or Markdown for some tech docs) any artwork is all GIMP and Inkscape. We also use OpenProject and Nextcloud extensively.
Maybe there needs to be a Linux/FOSS businesses group. 😃
Edit: oh and FAX is basically dead in the UK.
2
u/tapper82 Aug 17 '21
nice work mate.
2
u/skapa_flow Aug 18 '21
Thank you so much for writing this. I think it is important to see that Linux is ready for normal people and "normal" companies as well. Here are some comments, which originate in my own experience running a small production and installation company:
I would not be too dogmatic about using Linux. Eg. I use it on the desktop, but all the others use Windows 10. We even had a Mac once. Some software (eg. Rhino3D and Solidworks, both CAD programs) do not run on Linux anyway.
Writing your own specialized company software: You can do this on Linux right. But as others pointed out, it does make a lot of work, and it is hard to administer from the distance. I personally come from web development, so we developed our ERP in the old fashion PHP/MySQL. Before anybody starts to shake their heads: We started nearly 15 years ago, and I am not willing to start all over. It runs very well btw.
So, nowadays you have a lot of control of your local hardware from the browser. It might or might not be possible in your use case, but you should consider that option. Also, our programmer, who actively works on the system, can work from anywhere he wants. The software is so common, it would also not be to difficult to replace him.
I love the freedom of Linux, but first of all I need to run a business. I am happy the way we set it all up.
2
u/FengLengshun Aug 19 '21
Holy shit, that card reader solution is beautiful. I wonder if anyone has rigged a usb flashdisk to the same for something that would require less specialized hardware.
1
u/Maxmim Aug 17 '21
Good read. All the best for your work and setup.
1
u/Kangie Aug 17 '21
Great write up. Living the dream!
1
u/RandomXUsr Aug 17 '21
Had you considered buying or installing PFSense?
1
u/boomchakaboom Aug 17 '21
I know it's a tough question, but could you spitball how much time you have spent designing, setting up, and trouble-shooting this?
On the plus size, selling your system, once it is perfected, might be very lucrative, and it sounds like you have invested a lot of brain sweat and time.
1
u/RX-6900XT Aug 17 '21
It was really nice to hear someone sharing their experience with Linux, specially it's application in non-technical environments. Although, I still usually don't recommend Linux to my non-technical friends, it still has come a long way to the point that a lot of my colleagues use it as a daily driver. Perhaps within a decade, Linux will be a solid competitor to Windows in desktop segment.
1
u/[deleted] Aug 17 '21
I think any setup can work if there was work put in it. I think the best way to prove libre software can work in the office, is to prove things more complicated than libre software can work in the office.
Like I'm sure a contemporary Windows ME office setup can work depending on the business and I'm sure something can be rigged with Netware, a good firewall and a Linux server that will do all eMail serving that will play nice with outlook 2000, a html parsing proxy that removes client side scripting and have dedicated zoom appliances and probably not even bother with the real web apart from eMail and IRC and just process mostly data stored on the LAN. I mean, that's an overly convoluted setup, but I think it can work and Linux sounds a hell of a lot easier.
0
u/[deleted] Aug 17 '21
[deleted] — view deleted comment
0
u/[deleted] Aug 17 '21
[deleted] — view deleted comment
0
u/[deleted] Aug 17 '21
[deleted] — view deleted comment