You are not logged in.
Thanks for contributing.
Ive only played around in qemu a handful of times, im not one for virtualization, id rather use bare metal. Not trying to take away from qemu, it has its place and is a useful piece of software.
As for bash, well it does the job head on a stick. Lazy reply here but ive always found ksh lacking in regards to tab completion, i suppose there is some nifty tricks to be learned to get the functionality of bash-completion. How would one implement equivalents to bash-completion and inputrc for better user interaction or are these more of a limitation / security risk ?
Thought this might be a fun thread or is this forum just about devuan in general and no community off topic banter?
either way i found these few interesting, lets see yours.
bash-history-top()
{
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
}
cl()
{
echo "$(tput cols)x$(tput lines)"
}
man-to-pdf()
{
man -t "$1" | ps2pdf - "$1.pdf"
}
Last one (man-to-pdf) needs ghostscript installed.
Ive not used antix or mx, i dont see the need for uefi boot or secure boot as mentioned by the limitations Head on a sticker mentions.
It makes no sense that Microsoft would break what little security Secure Boot offers by allowing it to boot absolutely anything plugged into a usb port as long as it bothers to look live and EFI. Do you have any references for this unbelievable limitation?
Hmm i dont understand your line of questioning. This is microsoft remember, the operating system that is prone to viruses, malware , constant bsod's and an update schedule that will from time to time brick your machine.
dice wrote:Ive just disabled uefi altogether
No, you haven't. You've enabled CSM ("Legacy" mode), which emulates non-UEFI booting via your machine's UEFI firmware. This means the machine is still open to the many UEFI firmware vulnerabilities.
dice wrote:my drives are encrypted so good luck to anyone who can get info off them
If you have a rootkit then it can read the contents of the drive once the system is running. Secure Boot would help prevent rootkits from running. It's far from perfect but it is an extra layer of protection.
And before anybody starts bleating about not trusting Microsoft's keys note that it is possible to create your own keys, enrol them in the UEFI firmware and sign the kernel images with them. That's how I have enabled Secure Boot in my Alpine Linux system.
Okay but why does my bios menu have a checkmark saying disable uefi / enable legacy bios, i suppose they are one in the same thing as you mention in regards to CSM? Ive not really delved into bios management before, im pretty sure i would brick the computer.I remember flashing a bios about 20 years ago on a windows 2000 machine, is that how it is still done and you just need the correct coreboot image for the machine?
Do you have you any historical examples of said rootkits?
Ive not used antix or mx, i dont see the need for uefi boot or secure boot as mentioned by the limitations Head on a sticker mentions.
Ive just disabled uefi altogether, my drives are encrypted so good luck to anyone who can get info off them as i use serpent plus blowfish cipher keys. Ive also got a machine that is fully encrypted with openbsd using a separate bootloader on a usb. Much more secure than "secure boot" will ever be. Lock down the bios with a password and you have double the protection.
1st question, i think answer would be to only use uuid's in the /etc/fstab
2nd question, answer would maybe be to use those two extra drives for backups using clonezilla.
Devuan has a round-robin of package mirrors:
http://pkgmaster.devuan.org/mirror_list.txtiso mirrors and repository mirrors are two different things.
I thought that when i posted my reply, but was hinting at the actual repo mirror being
devuan.ipacct.com/devuan
Which is feckin fast for my neck of the woods, was getting 4 mb per second on that mirror.
Ive noticed this mirror recently when installing some software, was a few days ago, cant remember what it was exactly.
ftp://devuan.ipacct.com/devuan-cd/
Im not sure how the mirrors work in devuan when you choose local mirror setup but i think it safe to say it pulls in network mirrors that are closest to you geographically.
The mirror you may be thinking of could be in the below link.
I like seeing the individual core temps. Here's the line I'm using:
${execi 8 sensors | awk '/Core/ { printf substr($3,2,2)" " }'}
and the output looks like this:
CPU: 42 36 40 41
That is a good one, i like to see the individual cores as well and this solves my issue with hwmon moving around. Thanks
I found a really nice script for use with lm_sensors, way beyond my scripting abilities, all credit to the author whoever it is.
If you want this in °F you need to add an -f to sensors in the script and change out the celcius parts, i did it the other way around as this script was for °F originally.
needs bc package if you havent already installed it.
#!/bin/bash
# 1. get temperature
## a. split response
## Core 0: +48.0°C (high = +105.0°C, crit = +105.0°C)
IFS=')' read -ra core_temp_arr <<< $(sensors | grep '^Core\s[[:digit:]]\+:') #echo "${core_temp_arr[0]}"
## b. find cpu usage
total_cpu_temp=0
index=0
for i in "${core_temp_arr[@]}"; do :
temp=$(echo $i | sed -n 's/°C.*//; s/.*[+-]//; p; q')
let index++
total_cpu_temp=$(echo "$total_cpu_temp + $temp" | bc)
done
avg_cpu_temp=$(echo "scale=2; $total_cpu_temp / $index" | bc)
## c. build entry
temp_status="CPU: $avg_cpu_temp °C"
echo $temp_status
exit 0
source: https://stackoverflow.com/questions/506 … -from-bash
This may be due to some backend changes in the pkginfo function which is still somewhat of a WIP.
gotcha, used to be just a web page back a little while ago when i first looked into devuan.
same with pluma (encoding issues). nano shows some weird line 1 :
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@unstable,systemd-timesyncd
if you remove this line, it works as expected with any editor. note that "unstable,systemd-timesyncd" in line 1 is also present in last line.
file is saying application binary file ?
~/Downloads $ > file -i bannedpackages.txt
bannedpackages.txt: application/octet-stream; charset=binary
Hi,
im wanting to see the list of banned packages but it downloads as an empty .txt file ??? Maybe bad link?
https://www.devuan.org/os/explore
https://pkgmaster.devuan.org/bannedpackages.txt
EDIT: dont know why but geany didnt like the .txt file and wouldnt open it but nano was ok with it. Must be formatted differently?
If the solution in that thread was ${platform coretemp.0 temp 1} my conky dzen2 says no such file,
conky: can't open '/sys/bus/platform/devices/coretemp.0/temp1_input': No such file or directory please check your device or remove this var from conky
However it shows up as
cat /sys/bus/platform/devices/coretemp.0/hwmon/hwmon1/temp1_input
Maybe conky is looking in the wrong directory for that variable?
I dont understand why but hwmon seems to be a moving target, also not sure if im listing modules correctly in /etc/modules as per below too see if this would fix it doesnt, the only other like you say steve is i think making a script up. Ive found that cat /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input | cut -c-2 seems to be consistent enough for execi in conky.
NB: ive added all the modules below except for coretemp which sensors-detect do, i dont think order here really matters though?
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Generated by sensors-detect on Tue Nov 24 17:47:49 2020
# Chip drivers
iwlwifi
cfg80211
mac80211
coretemp
acpitz
Hi steve_v
thanks for your input. I think you may be right about what modules are getting loaded first, currently im not at that computer but will have a dig around and see if i can debug it asap.
The machine has an intel cpu with integrated graphics, it has sensors detect for acpi, cpu, graphics and the wifi card, so it is definitely possible it is a modules load issue.
Good post steve_v, you summarized in depth what i was struggling to put into my post.
Hi, anyone able to help with an issue i have with conky hwmon sensor readings?
I dont leave my computer on constantly so it gets turned off after im finished with it and upon booting it up i get a hwmon sensor temp reading sometimes and other times i dont.
What is happening is /sys/class/hwmon1 and 2 keep switching in sensors.
eg; These two values keep switching over reboots, so i would have to change conkyrc hwmon 1 temp 2 to hwmon 2 temp 2 and vice versa.
cat /sys/class/hwmon/hwmon1/
device/ name power/ subsystem/ temp1_input uevent
cat /sys/class/hwmon/hwmon2/
device/ subsystem/ temp1_input temp2_crit temp2_label temp3_crit_alarm temp3_max temp4_input temp5_crit temp5_label
name temp1_crit temp1_label temp2_crit_alarm temp2_max temp3_input temp4_crit temp4_label temp5_crit_alarm temp5_max
power/ temp1_crit_alarm temp1_max temp2_input temp3_crit temp3_label temp4_crit_alarm temp4_max temp5_input uevent
This is what cpu temp looks like in conkyrc via dzen2
dice wrote:steve_v wrote:Once, long ago, apple was a respectable company with some pretty nice hardware and a loyal hacker following.
That all changed with the ipod, when someone realised there was more money to be made selling pretty disposable toys and building vendor lock-in to keep people coming back.yeah i know, birth of the smart technology, all the cool hackable tech got rail roaded way back then in favor of the igotsuckedinto apple marketing. I bought an apple ipod 2nd gen when it came out after hearing so much about it mid 2000's, as soon as i realised what a shitfight it was to make the thing work with itunes and such, that was the last apple tech i bought. Its good to see how gnu and linux can hack into macintosh given the right parameters, jobs would be rolling in his grave at that!
That is odd, pity apple had to become so tainted...
Sounds like the original intent of walmart only in its case the motto was "made in the usa" but when the founder died, the person who took over and wrecked the store by outsourcing anything they could and made it into a horrible and tainted chain... pity when good ideals are corrupted eh...
Back then the music industry i think got on board with apple to safeguard music royalties in a way by getting people locked into a device where you had to pay for music you may or may not like and even then the way it was loaded onto the device via syncing or what not was and is a shitty way to own a sound file IMO. I dont know the whole story of hand but it all started back around when napster died. Still if you look youtube and youtube-dl, andoid and the like it still didnt stop piracy and never will. Ive still got an old mp3 player from back in 2006 and it works perfectly.
dice wrote:without apple we wouldnt have the hackintosh
Once, long ago, apple was a respectable company with some pretty nice hardware and a loyal hacker following.
That all changed with the ipod, when someone realised there was more money to be made selling pretty disposable toys and building vendor lock-in to keep people coming back.
yeah i know, birth of the smart technology, all the cool hackable tech got rail roaded way back then in favor of the igotsuckedinto apple marketing. I bought an apple ipod 2nd gen when it came out after hearing so much about it mid 2000's, as soon as i realised what a shitfight it was to make the thing work with itunes and such, that was the last apple tech i bought. Its good to see how gnu and linux can hack into macintosh given the right parameters, jobs would be rolling in his grave at that!
without apple we wouldnt have the hackintosh !
Steve jobs was a blow hard but i wouldnt be partying cause he died, bad karma dude.