Thin Client M340C successful install Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
User avatar
WarHawk
Posts: 714
Joined: Thu Jul 20, 2017 8:55 am

Thin Client M340C successful install

Post by WarHawk »

Woohoo...got a Thin Client M340C for $20 from an online seller (just a spurious buy) I do have 8GIb of RAM and installed zram-utils and now have 768MB of swap (no writing to the SSD!!! Woohoo)

Image

It sat for a few weeks on my computer desk...tonight decided to give it a go...

Low power server, even though the main OS drive is only 2 Gigs

Hooked it to my sons DVI monitor, keyboard, mouse, and wired ethernet. Used an Ubuntu Mate live CD, formatted the 2GIb SSD card that was built in with Gparted, then downloaded and installed balena etcher, and the x86-64 image directly...then used it to burn it straight to the SSD, no media or burning to a USB drive.

Upon reboot came right up like it had been there all along!

I guess I could always find a larger SATA DOM plugin for the main OS...but so far so good with 2GIb...

I did put a 16Gib USB2.0 USB to move user data...but will be getting a larger 64GIb USB3.0, or maybe even use a USB3.0 to SATA adapter...who knows

All I know is I didn't know what I wanted to do with this little guy, and now I know I have a pretty beefy little rig that is rather powerful!
User avatar
Joulinar
Posts: 4126
Joined: Sat Nov 16, 2019 12:49 am

Re: Thin Client M340C successful install

Post by Joulinar »

I will move this to general discussions as I don't think it's an issue ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
WarHawk
Posts: 714
Joined: Thu Jul 20, 2017 8:55 am

Re: Thin Client M340C successful install

Post by WarHawk »

ok...first question...where is the 'cpu' script at and how can I tweak the temp readings/output?

Code: Select all

root@M-340C:/home/warhawk# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     x86_64
 Temperature  |     63'C : 145'F (Running hot, not recommended)
 Governor     |     performance

                 Current Freq    Min Freq   Max Freq
 CPU0         |      1198 MHz      1200 MHz    1200 MHz
 CPU1         |      1197 MHz      1200 MHz    1200 MHz
 CPU2         |      1214 MHz      1200 MHz    1200 MHz
 CPU3         |      1197 MHz      1200 MHz    1200 MHz
I want to change the Temperature readings... this processor can run up to 90'C...I want to change the Running hot to a higher rating so it won't throw this warning up
User avatar
Joulinar
Posts: 4126
Joined: Sat Nov 16, 2019 12:49 am

Re: Thin Client M340C successful install

Post by Joulinar »

it's inside /boot/dietpi/func/dietpi-globals

Code: Select all

		# Format output
		# - Check for valid value: We must always return a value, due to VM lacking this feature + benchmark online
		if ! disable_error=1 G_CHECK_VALIDINT "$temp"; then

			temp='N/A'

		else

			# 2/5 digit output?
			(( $temp >= 200 )) && temp=$(( $temp / 1000 ))

			if [[ $print_full_info == 1 ]]; then

				local temp_f=$(( $temp * 9/5 + 32 ))
				if (( $temp >= 70 )); then

					temp="\e[1;31mWARNING: $temp'C : $temp_f'F (Reducing the life of your device)\e[0m"

				elif (( $temp >= 60 )); then

					temp="\e[38;5;202m$temp'C : $temp_f'F \e[90m(Running hot, not recommended)\e[0m"

				elif (( $temp >= 50 )); then

					temp="\e[1;33m$temp'C : $temp_f'F \e[90m(Running warm, but safe)\e[0m"

				elif (( $temp >= 40 )); then

					temp="\e[1;32m$temp'C : $temp_f'F \e[90m(Optimal temperature)\e[0m"

				elif (( $temp >= 30 )); then

					temp="\e[1;36m$temp'C : $temp_f'F \e[90m(Cool runnings)\e[0m"

				else

					temp="\e[1;36m$temp'C : $temp_f'F \e[90m(Who put me in the freezer!)\e[0m"

				fi

			fi

		fi
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
WarHawk
Posts: 714
Joined: Thu Jul 20, 2017 8:55 am

Re: Thin Client M340C successful install

Post by WarHawk »

Joulinar wrote: Wed Dec 23, 2020 2:47 pm it's inside /boot/dietpi/func/dietpi-globals

Code: Select all

		# Format output
		# - Check for valid value: We must always return a value, due to VM lacking this feature + benchmark online
		if ! disable_error=1 G_CHECK_VALIDINT "$temp"; then

			temp='N/A'

		else

			# 2/5 digit output?
			(( $temp >= 200 )) && temp=$(( $temp / 1000 ))

			if [[ $print_full_info == 1 ]]; then

				local temp_f=$(( $temp * 9/5 + 32 ))
				if (( $temp >= 70 )); then

					temp="\e[1;31mWARNING: $temp'C : $temp_f'F (Reducing the life of your device)\e[0m"

				elif (( $temp >= 60 )); then

					temp="\e[38;5;202m$temp'C : $temp_f'F \e[90m(Running hot, not recommended)\e[0m"

				elif (( $temp >= 50 )); then

					temp="\e[1;33m$temp'C : $temp_f'F \e[90m(Running warm, but safe)\e[0m"

				elif (( $temp >= 40 )); then

					temp="\e[1;32m$temp'C : $temp_f'F \e[90m(Optimal temperature)\e[0m"

				elif (( $temp >= 30 )); then

					temp="\e[1;36m$temp'C : $temp_f'F \e[90m(Cool runnings)\e[0m"

				else

					temp="\e[1;36m$temp'C : $temp_f'F \e[90m(Who put me in the freezer!)\e[0m"

				fi

			fi

		fi
Domo Arigato! Mr. Robotto!
Post Reply