Search found 557 matches

by Caramel
Sat Mar 29, 2025 8:42 am
Forum: EasyOS
Topic: Experiment with JuNest
Replies: 10
Views: 2160

Quick test of Homebrew on Linux

See https://brew.sh/ and https://docs.brew.sh/Homebrew-on-Linux

We download the installation script (install.sh) page https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh and make it executable.

As the script refuses to be runned as root, we use run-as-spot
run-as-spot ./install.sh ...
by Caramel
Fri Mar 28, 2025 4:52 pm
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Re: Problems with sudo

BarryK wrote: Fri Mar 28, 2025 2:24 pm

...
There is a bug, /usr/bin/sudo-sh does not have suid bit set. Do this:

Code: Select all

# chmod 4711 /usr/bin/sudo-sh

...

It was no more necessary after the modifications you did :https://www.bkhome.org/news/202306/work ... nored.html

by Caramel
Fri Mar 28, 2025 4:47 pm
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Problems with sudo (summary)

-First problem
In a script, when a command starts with sudo , the next command starts almost immediately
Proposed solution: use another script to launch sudo (see https://forum.puppylinux.com/viewtopic.php?p=145565#p145565)

-Second problem
Errors with
sudo /bin/mkdir /test
and
sudo echo text ...
by Caramel
Fri Mar 28, 2025 4:13 pm
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Re: Problems with sudo

BarryK wrote: Fri Mar 28, 2025 2:24 pm

...
I am confused by your first post. Anyway, it looks like you are calling sudo twice, when launch the script, then inside the script.
...

The test is

Code: Select all

run-as-spot script

where script is

Code: Select all

#!/bin/bash

sudo mkdir /testsudo
touch /testsudo/test
by Caramel
Fri Mar 28, 2025 10:59 am
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Modified version of sudo

sudotest-0.1.pet

This pet contains 3 scripts and a binary executable
- the script sudo as described above (https://forum.puppylinux.com/viewtopic.php?p=145565#p145565)
- the script sudo-real that is the file sudo from EasyOS Scarthgap 6.6.3
- the script sudo.sh with the commands realpath and ...
by Caramel
Fri Mar 28, 2025 6:58 am
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

improvement proposal for sudo

It could be useful to add the possibilty of disabling the ask for the password during several minutes. (5 minutes in the screenshot and in the code above)
capture8717.png

In /usr/bin/sudo.sh, addition of these 3 pieces of code
if [ -f /root/.sudo-date ]; then
DATESUDO="$(cat /root/.sudo-date ...
by Caramel
Fri Mar 28, 2025 6:41 am
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Re: Problems with sudo(new method for the first bug)


In a script, when a command starts with sudo , the next command starts almost immediately
...



For the first bug , I tested

in /usr/bin/sudo
line 23
exec sudo-sh ${PPID} ${C}
replaced by
sudo-sh ${PPID} ${C}
TESTGTKDIALOG=0
while [[ $TESTGTKDIALOG -eq 0 ]]
do
sleep 1
ps | grep ...
by Caramel
Thu Mar 27, 2025 3:08 pm
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Re: Problems with sudo


...

EDIT: possible cause of the problem:
sudo-sh code in C : https://bkhome.org/news/202306/light-weight-replacement-for-sudo.html
The code was written for at most 7 parameters


...


The code has changed since this article
https://bkhome.org/news/202306/workaround-when-setuid-is-ignored.html ...
by Caramel
Thu Mar 27, 2025 6:11 am
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Bug of the which comand ?

In /usr/bin, echo and mkdir are both symbolik links to /usr/bin/busybox


# which mkdir
/usr/bin/mkdir

# which echo


Edit: It's a feature of which as echo is a buit-in command of the shell

EDIT:
New try with (in /usr/bin/sudo.sh)

#RP="$(realpath -e "$2" 2>/dev/null)"
#if [ ! -x "${RP ...
by Caramel
Tue Mar 25, 2025 2:21 pm
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Re: Problems with sudo

Another problem
.
The commands
run-as-spot sudo /usr/bin/install -d /testdir1

run-as-spot sudo /usr/bin/install -d -o spot /testdir2

run-as-spot sudo /usr/bin/install -d -g spot /testdir3
succeed

but not the command
run-as-spot sudo /usr/bin/install -d -o spot -g spot /testdir4
It seems ...
by Caramel
Tue Mar 25, 2025 12:28 pm
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Re: Problems with sudo


Back to the test

run-as-spot sudo /bin/mkdir /test


Actually it doesn't work as the executed command is in reality /usr/bin/busybox /test

The problem comes from the lines 19 to 25 in /usr/bin/sudo.sh

RP="$(realpath -e "$2" 2>/dev/null)"
if [ ! -x "${RP}" ];then
RP="$(which "$2")"
if ...
by Caramel
Mon Mar 24, 2025 6:08 pm
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Re: Problems with sudo

Back to the test

run-as-spot sudo /bin/mkdir /test


Actually it doesn't work as the executed command is in reality /usr/bin/busybox /test

The problem comes from the lines 19 to 25 in /usr/bin/sudo.sh

RP="$(realpath -e "$2" 2>/dev/null)"
if [ ! -x "${RP}" ];then
RP="$(which "$2")"
if ...
by Caramel
Mon Mar 24, 2025 4:04 pm
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Re: Problems with sudo

For the first bug , I tested

in /usr/bin/sudo
line 23
exec sudo-sh ${PPID} ${C}
replaced by
sudo-sh ${PPID} ${C}
TESTGTKDIALOG=0
while [[ $TESTGTKDIALOG -eq 0 ]]
do
sleep 1
ps | grep "gtkdialog --program=SUDOSH_DLG" | grep -v grep 2>&1 /dev/null
TESTGTKDIALOG=$?
done

The variable ...
by Caramel
Mon Mar 24, 2025 8:09 am
Forum: EasyOS
Topic: Problems with sudo
Replies: 15
Views: 430

Problems with sudo

In a script, when a command starts with sudo , the next command starts almost immediately

To visualize the problem, run-as-spot this script
#!/bin/bash

sudo mkdir /testsudo
touch /testsudo/test

The command touch fails (unless you enter the password very quickly)

Another bug, less important, is ...
by Caramel
Sun Mar 23, 2025 6:48 am
Forum: EasyOS
Topic: Experiment with JuNest
Replies: 10
Views: 2160

New tests (Oinstall and pkgsrc)

- Zero install (0install)
https://0install.net/
https://github.com/0install

Only the Windows version is updated and the linux version seems broken (mix of python2 and python3)

- Pkgsrc (A portable packaging system coming from NetBSD)
https://www.pkgsrc.org/
https://www.netbsd.org/docs/pkgsrc/ (The ...
by Caramel
Mon Mar 17, 2025 10:57 am
Forum: EasyOS
Topic: Bug in limine installer (UEFI mode)
Replies: 5
Views: 553

Re: Bug in limine installer (UEFI mode)

Another problem with limine in Easy Scarthgap 6.6.3

In limine.cfg the lines
PROTOCOL=chainload
must be replaced by
PROTOCOL=efi_chainload
or
PROTOCOL=bios_chainload
(The protocol chainload is "unsupported" by this version of limine)


So in /usr/local/limine-installer/generate-menu-entry ...
by Caramel
Sun Mar 09, 2025 5:24 am
Forum: EasyOS
Topic: EasyOS Daedalus-series version 6.6.5
Replies: 41
Views: 4589

Re: EasyOS Daedalus-series version 6.6.3


After upgrading to 6.6.3, cannot boot.

The boot processo stops até the
Waitng for kernel video drivers to load:

This is in a Dell laptop Latitude 5430.



What version was used before the upgrade?
If it was 6.5.5 or older, the problem could come from the modifications of /usr/bin/xwin between ...
by Caramel
Sat Mar 08, 2025 9:01 am
Forum: EasyOS
Topic: Bug in limine installer (UEFI mode)
Replies: 5
Views: 553

Bug in limine installer (UEFI mode)

(Easy Scartgap 6.6.3)

In /usr/local/limine-installer/limine-installer, there is a problem with the line 520

efibootmgr -c -d /dev/${DRVdest} -p ${ESPdest/*[a-z]/} -L limine -l "\EFI\limine\${EFIname}.EFI" 2>/tmp/limine-installer/efibootmgr-install-error.log

It creates an boot entry with the ...
by Caramel
Fri Feb 07, 2025 3:01 pm
Forum: EasyOS
Topic: Audio suddenly stops working on EasyOS 6.6.1
Replies: 7
Views: 646

Re: Audio suddenly stops working on EasyOS 6.6.1

If pulseaudio stopped, check if the following command relaunchs it (by trying the Pulseaudio volume control)

Code: Select all

/bin/ash /etc/rc.d/rc.services_ipc x pulseaudio:pupnetworkONESHOT
by Caramel
Thu Feb 06, 2025 6:51 pm
Forum: EasyOS
Topic: EasyOS Scarthgap-series version 6.6.3
Replies: 97
Views: 26161

Re: System not booting after update



Is it really possible to roll back from command line without loosing data? I have so many settings that, if I have to redo everything from scratch I prefer to switch to Daedalus . But, if this is the situation I honestly can't believe it. I'm going to try the stick on other hardware first, in ...
by Caramel
Thu Feb 06, 2025 3:18 pm
Forum: EasyOS
Topic: EasyOS Scarthgap-series version 6.6.3
Replies: 97
Views: 26161

Re: System not booting any more after update


Hello Barry!
I just updated from v 6.5.4 to v 6.6.1 on my private laptop (it's also an Asus Zenbook , but older, based on the Intel Tiger Lake architecture), using the update icon on the desktop as usual.
After the update the X -Server does not start any more. It looks like the Intel video driver ...
by Caramel
Tue Feb 04, 2025 9:37 am
Forum: EasyOS
Topic: EasyOS Scarthgap-series version 6.6.3
Replies: 97
Views: 26161

Re: EasyOS Scarthgap-series version 6.6.1

The error messages SG_IO: bad/missing sense data, sb[]: 70 00... come from the command hdparm added for the detection of the trim capacity (https://bkhome.org/news/202501/hopeful-fix-fstrim-on-usb-ssd.html)
The hdparm used at this time is the version in initrd (in /bin) (version v9.58)


Note to ...
by Caramel
Sun Feb 02, 2025 2:44 pm
Forum: EasyOS
Topic: wine-easy-5.11c_amd64.pet
Replies: 10
Views: 1838

Re: wine-easy-5.11c_amd64.pet


Could you please provide an alternative download link? I am unable to access Google Drive from my location.


Can you access to swisstransfer.com ?


Test : https://www.swisstransfer.com/d/1f5d753c-e267-4456-bed9-fa4b0084c63e

EDIT:
wine-easy-5.11c_amd64.pet
https://www.swisstransfer.com/d ...
by Caramel
Sun Feb 02, 2025 10:14 am
Forum: EasyOS
Topic: EasyOS Scarthgap-series version 6.6.3
Replies: 97
Views: 26161

Re: EasyOS Scarthgap-series version 6.6


...
I need help to resolve sound problem as well. I tried blacklisting snd_avs_soc module, but that does not work


Yet it seems that this is the solution
https://bbs.archlinux.org/viewtopic.php?pid=2164192#p2164192

Are you sure that it is blacklisted?
What are the error messages? Maybe while ...
by Caramel
Fri Jan 31, 2025 6:34 am
Forum: EasyOS
Topic: [Solved] Chromium in container can not connect to the internet
Replies: 3
Views: 406

Re: Chromium in container can not connect to the internet


I screw it up. I am sorry...
While trying to solve the problem, I deleted the www container with Chromium... :(

Now the question is: Is it possible to create a new container with Chromium using Easy Container Management application?


No

Method i have tested:

in /mnt/wkg/containers copy the ...
by Caramel
Thu Jan 30, 2025 8:08 am
Forum: EasyOS
Topic: Difficult procedure to uninstall packages
Replies: 3
Views: 327

Re: Difficult procedure to uninstall packages

In PKGget open the configuration window (with the configuration button). In this windows change the user interface to Ziggy . Validate.
PKGget closes and reopens with the Ziggy Interface.
There is a button to display the installed packages and eventually uninstall. The windows are resizeable.

by Caramel
Tue Jan 28, 2025 3:56 pm
Forum: EasyOS
Topic: /var not in the snapshots
Replies: 3
Views: 343

Re: /var not in the snapshots


I have implemented a fix:

https://bkhome.org/news/202501/fix-snapshots-not-saving-var.html

I'm sorry

In /usr/local/easy_version/easy-version-control I had missed the line 404
echo -e 'dev\nmnt\nproc\nrun\nsys\ntmp\nvar\n.fsckme.flg\nlost+found\nroot/.XLOADED\n.control' > /tmp/easy_version ...
by Caramel
Tue Jan 28, 2025 6:59 am
Forum: EasyOS
Topic: EasyOS 6.5.6 - Internal HDD seen as a SSD in init
Replies: 5
Views: 338

Re: EasyOS 6.5.6 - Internal HDD seen as a SSD in init

Other links :

https://wiki.gentoo.org/wiki/SSD#Discard_.28trim.29_support
https://wiki.gentoo.org/wiki/Discard_over_USB

On the last page :
Prerequsites

A USB3 link to the FLASH device. USB2 cannot support trim.
A USB3 to FLASH bridge that actually supports trim

Edit : the change in the ...
by Caramel
Mon Jan 27, 2025 8:06 am
Forum: EasyOS
Topic: EasyOS 6.5.6 - Internal HDD seen as a SSD in init
Replies: 5
Views: 338

EasyOS 6.5.6 - Internal HDD seen as a SSD in init

A file .easyos-bootcnt (with a number that increases by 1 every boot) is appeared in the directory /mnt/wkg.

This file is created or modified by init at boot when the variable TRIMflg is defined (lines 1547 to 1555)

The initialization or not depends of a test on the result of cat /sys/block/${WKG ...
by Caramel
Sun Jan 26, 2025 8:15 am
Forum: EasyOS
Topic: Freshly installed Easy not starting from live-usb
Replies: 37
Views: 1993

Re: Freshly installed Easy not starting from live-usb

It seems that the problem comes from limine not from EasyOS. (EasyOS only intervenes in the compilation of the executable that installs the bootloader. And it is unlikely that can be the source of the problem)

You could test with the version 7.13.3 (the last in series 7) but given the changelog ...

Go to advanced search