Page 76 of 129

Posted: Sat 16 Mar 2019, 10:47
by BarryK
blgs wrote:Frugal Installation of EasyOS 1.0.13 and EasyOS 1.0.14 on my netbook and usb is solved now. Also an upgrade from previous version (excl. 1.0.11) to 1.0.13 and 1.0.14 is solved now.

Quote
The Xorg GUIs are still there though, and can be turned on. They will be enabled by default for the non-English builds.
Unquote

How to enable it (XORG GUI's) for the English builds?
Go to /mnt/wkg/sfs/settings/initrd/ and you will see a file there that you can edit, change content from "no" to "yes".

Posted: Sat 16 Mar 2019, 11:15
by BarryK
cthisbear wrote:I posted here on Whirlpool.

https://whirlpool.net.au/

833,928 registered members

EasyOS 1.0 Distrowatch review

https://forums.whirlpool.net.au/thread/2788863

Had to shoot down one of the only smarties.

But you know what I'm like....
never been nice...never been kissed...Not even twice.

As it is an Aussie forum it would be great if Barry
just introduced himself.
Probably a first that a dev says hello on that forum.

Think about it BK, although I know you are Mr modest by nature.
Probably why you are so respected here.

Cheers...Chris.
I posted there!

Posted: Sat 16 Mar 2019, 17:43
by don570
don570 wrote:It didn't recognize my ethernet initially so it had to be set up with Simple Network Setup.
Code:
Ethernet controller : Intel Corporation 82579LM Gigabit Network Connection (rev 04)


I am surprised that your ethernet didn't work with UltraSNS.

Next time that you test, after bootup, wait a couple of minutes to be sure that it hasn't connected (watch the network icon in the tray).

If not, unplug the ethernet cable, wait several seconds, then replug it, see if that kicks usns into recognising it

I've been testing my easy 1.0.11 setup and found that I must include

/oe/pyro folder from a previous easy 1.0 install. Otherwise I get a kernel panic
on bootup. I wonder if I didn't drag in proper files when I made my
frugal setup.

By the way I bought a used computer recently (dell optiplex)
and maybe the kernel recognized a different chip set for ethernet and audio, because I
am not booting a totally new install i.e. there are old folders inside
easy/1.0 folder from previous easy 1.0 install when I was using an older computer?????

Ethernet and audio is now recognized at bootup but I am including /oe/pyro folder.
______________________________________

I will test easy 1.0.14 more carefully and not mix up installs.
__________________________________
________________________________________________________

Network 1.0.14

Posted: Sat 16 Mar 2019, 20:45
by Rodney Byne
To Barry Kauler,

I tested 1.0.14 Network Wireless connection and it works flawlessly on my laptop,
moved to another room further away from the broadband router.

First, for me keys fn f4 to enable the laptop wifi receiver.
Then, a right click on the task tray network icon to Setup networking,
seems to be a straightforward approach to the helpful new gui NMTUI

Thanks, regards.

Re: Network 1.0.14

Posted: Sun 17 Mar 2019, 11:42
by BarryK
Rodney Byne wrote:To Barry Kauler,

I tested 1.0.14 Network Wireless connection and it works flawlessly on my laptop,
moved to another room further away from the broadband router.

First, for me keys fn f4 to enable the laptop wifi receiver.
Then, a right click on the task tray network icon to Setup networking,
seems to be a straightforward approach to the helpful new gui NMTUI

Thanks, regards.
Good. ramchandran also reported success with NetworkManager for a static-ip lan -- he couldn't figure it out with usns.

Posted: Sun 17 Mar 2019, 20:21
by don570
Review
EasyOS 1.0.14 frugal install on Dell Optiplex 990 desktop

Easy to install using instuctions for frugal install using a previous Easy install.
https://easyos.org/install/easy-frugal- ... ation.html

Audio and ethernet was connected automatically.
Krita paint program continues to be unstable.
__________________________________________________

Operating system noted that I had wlan0

Code: Select all

# ifconfig
eth0      Link encap:Ethernet  HWaddr 18:03:73:C4:67:18  
          inet addr:192.168.1.107  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ea5e:6d8a:3c77:a46f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:400 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1242 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:30054 (29.3 KiB)  TX bytes:86232 (84.2 KiB)
          Interrupt:20 Memory:e4b00000-e4b20000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:480 (480.0 B)  TX bytes:480 (480.0 B)

wlan0     Link encap:Ethernet  HWaddr 1A:AC:F4:82:C8:75  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

USB network adaptor was easy to setup with SNS,
however when I rebooted the USB network adaptor didn't connect automatically,
Whereas the ethernet did connect automatically.

Are there any instructions to do this??

____________________________________________

Suggestion:
In the Start menu there should be

Start > Network > Network wizard

or

Start > Network > SNS


...because I had to use Radky's menu program instead.
I don't believe clicking on the tray icon launched SNS if I remember correctly.
__________________________________________________

Posted: Mon 18 Mar 2019, 01:30
by BarryK
don570 wrote:Review
EasyOS 1.0.14 frugal install on Dell Optiplex 990 desktop

Easy to install using instuctions for frugal install using a previous Easy install.
https://easyos.org/install/easy-frugal- ... ation.html

Audio and ethernet was connected automatically.
Krita paint program continues to be unstable.
__________________________________________________

Operating system noted that I had wlan0

Code: Select all

# ifconfig
eth0      Link encap:Ethernet  HWaddr 18:03:73:C4:67:18  
          inet addr:192.168.1.107  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ea5e:6d8a:3c77:a46f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:400 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1242 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:30054 (29.3 KiB)  TX bytes:86232 (84.2 KiB)
          Interrupt:20 Memory:e4b00000-e4b20000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:480 (480.0 B)  TX bytes:480 (480.0 B)

wlan0     Link encap:Ethernet  HWaddr 1A:AC:F4:82:C8:75  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

USB network adaptor was easy to setup with SNS,
however when I rebooted the USB network adaptor didn't connect automatically,
Whereas the ethernet did connect automatically.

Are there any instructions to do this??
With 1.0.14, the default is NetworkManager, not SNS. When you click on the "connect" icon, it will start the NetworkManager GUI.

Posted: Mon 18 Mar 2019, 13:29
by rufwoof
Quite like this layout. Main desktop's jwm tray reduced down ... and add in a short form of the easy containers jwm tray in that space.

In the attached image, everything after the xload tray icon is the easy containers jwm tray. I've reversed that to have the menu button at the far right. For the main desktop I've set the clock as the 'menu button', left mouse shows the menu, right mouse performs a show/hide desktop toggle.

The containers Xephyr is sized to leave the jwm tray showing. The image is showing the easy containers desktop.

Posted: Mon 18 Mar 2019, 14:49
by rockedge
I would like to experiment with EasyOS and running a LHMP ( Linux,Hiawatha,mariaDB, PHP7 ) supporting ZoneMInder, zmeventserver, and python and the modules needed for object,face,number recognition,and PERL..

I would like to start with Hiawatha 10.9 and PHP7.2.3 and mysql or better yet, mariaDB.......how can I best install PHP on EasyOS?

The potential of EasyOS to be a excellent platform for this is huge.

I need a bit of guidance to begin the installation of the PHP libs and components.

I am experimenting with the differences in using devx in containers which is so easily done with this OS.

I am using EasyOS on a 32 gig usb flash drive booting a Dell Optiplex 990, 4 core, cpu 8 gigs of RAM

Posted: Tue 19 Mar 2019, 00:29
by BarryK
rockedge wrote:I would like to experiment with EasyOS and running a LHMP ( Linux,Hiawatha,mariaDB, PHP7 ) supporting ZoneMInder, zmeventserver, and python and the modules needed for object,face,number recognition,and PERL..

I would like to start with Hiawatha 10.9 and PHP7.2.3 and mysql or better yet, mariaDB.......how can I best install PHP on EasyOS?

The potential of EasyOS to be a excellent platform for this is huge.

I need a bit of guidance to begin the installation of the PHP libs and components.

I am experimenting with the differences in using devx in containers which is so easily done with this OS.

I am using EasyOS on a 32 gig usb flash drive booting a Dell Optiplex 990, 4 core, cpu 8 gigs of RAM
You would have to compile php from source.

I haven't done much testing of running devx in a container. For compiling, you would need to retain a lot of capabilities/rights. One thing to consider is to chroot into a container with /usr/local/easy_containers/ec-chroot-admin, which will allow you to do just about anything in the container.

Posted: Tue 19 Mar 2019, 02:01
by cthisbear
Please keep releasing Isos BK.

http://www.murga-linux.com/puppy/viewto ... 98#1022398

Chris.

Posted: Tue 19 Mar 2019, 08:14
by rufwoof
EasyOS easy container tip :

If you're using the easy container to browse a online page that contains text that you want to paste into a main system file, then you can open geany for instance in the main system using a DISPLAY=:1 geany prefix (i.e with the container already open, Alt-F6 to the main session and open a terminal and type DISPLAY=:1 geany ... and press Enter). That geany text editor will then be visible inside the container (so you can cut and paste from the web browser running inside the container into the geany text editor), whilst being able to open/edit/save any main system file (/etc/profile for instance) with that geany text editor.

Be mindful however that does weaken security (acceptable risk for a single user desktop setup) whilst the main session geany program is open within the container i.e. should only be open for as long as necessary.

Easier than copying text from the web browser running inside the container to a text editor also running inside the container and then moving that file across to the main system via the shared folder - to then cut and paste the text into a main session file.

Posted: Tue 19 Mar 2019, 15:26
by rockedge
hello BarryK,

thank you for the info! I am attempting the first build of PHP7.2.3. And the tip to chroot into a container with /usr/local/easy_containers/ec-chroot-admin looks like the route I will experiment with.

Posted: Wed 20 Mar 2019, 00:12
by BarryK
rockedge wrote:hello BarryK,

thank you for the info! I am attempting the first build of PHP7.2.3. And the tip to chroot into a container with /usr/local/easy_containers/ec-chroot-admin looks like the route I will experiment with.
php can also be built in OpenEmbedded, including my fork, oe-qky-src, however, there is a huge learning curve to use OE.

Posted: Wed 20 Mar 2019, 17:15
by rufwoof
I'm still running 1.0, moderately modified and its working great.

Set the clock in the tray to also be the menu button (or showdesktop if right mouse clicked, show the calendar is middle/scrollwheel pressed). Reduced size main tray, with the container tray that fills the free space when the container is active.

Fundamentally I'm just using the main easy container setup, and have it set so that each reboot uses the last 'clean' snapshot sfs for the main system, and each time the container is loaded it also uses the last 'clean' snapshot. So to save-changes a new snapshot has to be created. Mostly however, as I store all data outside of EasyOS space, I infrequently create new snapshots, only for instance like the other day when portable firefox updated to a later version.

First image is my main desktop (with modified version control shown), also note that in the main tray I have another geany launch button, that launches a real root geany editor within the container X session. Second image is my container desktop (note the far right lighter coloured tray for that). Again the menu button for that (far right) has left, middle, right mouse click options for the menu/calendar/showdesktop options).

That simplification works for me. I also like the more extensive busybox contained within that. I did remaster first, to add in vlc and audacity, so that they're also both available within the container.

Posted: Thu 21 Mar 2019, 13:08
by rufwoof
Finding that running large LibreOffice spreadsheet or word documents across Xephyr is very laggy. i.e. DISPLAY=:1 swriter from the main session, so I can cut/paste from firefox running inside the (:1) container, has swriter as good as useless (very slow to scroll etc.).

Seems to be Xephyr alone causing that lag.

In view of that, had the idea to drop containers and just use the main session, but where the main session has cap_sys_chroot capability dropped. I renamed /root/.xinitrc to .xinitrc-capd and created a .xinitrc that calls .xinitrc-capd with the chroot capabilities dropped i.e. .xinitrc contains ...

#!/bin/sh
capsh --drop=cap_sys_chroot -- /root/.xinitrc-capd

Also inside initrd I modified init to chroot into the main session rather than switch-root. I also mount my sda3 (data partition) inside init so that partition is inaccessible within X. So the tail end of init inside initrd now looks like

Code: Select all

mount -t devtmpfs devtmpfs /easy_new/dev #need to do this before switch_root.
sync
#umount /sys
#umount /proc
#exec switch_root /easy_new /sbin/init

# mount our data partition outside of the main system, so inaccessible to X
# i.e. console login and exit-chroot to access data (mc)
mkdir /mnt/sda3
mount /dev/sda3 /mnt/sda3
exec chroot /easy_new /sbin/init
To access data I ctrl-alt-F3 and login and root, escape the chroot (I have posted exit-chroot.c code for that in previous posts) and I've also installed mc inside initrd so I can use that to move files in/out of my data partition as desired (to make data files/folders visible (or not) to X).

Rebooting to 'clean' each/every time (no saves) and that's moderately secure. Data is isolated, a cracked firefox (root cli) cannot chroot into initrd; Could see other X windows and/or keystrokes, but no different to how it might also see other windows inside a container.

Posted: Thu 21 Mar 2019, 20:18
by rufwoof
Dropping capabilities in /root/.xinitrc is weak, easily uncoded by a cracker and X restarted.

So ...

Compiled exit-chroot.c of

Code: Select all

#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>

int main(int argc, char** argv) {
    int dir_fd, x;
    setuid(0);
    mkdir(".42", 0755);
    dir_fd = open(".", O_RDONLY);
    chroot(".42");
    fchdir(dir_fd);
    close(dir_fd); 
    for(x = 0; x < 1000; x++) chdir("..");
    chroot("."); 
    return execl("/bin/busybox", "sh",argv[1], NULL);
}
and adding

Code: Select all

exit-chroot /tmp/CHR
to the end of /etc/profile, along with modified the end of init (inside initrd) code to look like

Code: Select all

mount -t devtmpfs devtmpfs /easy_new/dev #need to do this before switch_root.
sync
#umount /sys
#umount /proc
#exec switch_root /easy_new /sbin/init

echo "#!/bin/sh" >/tmp/CHR
echo "capsh --drop=cap_sys_admin,cap_sys_chroot --chroot=/easy_new --keep=1 -- /usr/bin/xwin" >>/tmp/CHR
chmod +x /tmp/CHR

# mount our data partition outside of the main system, so inaccessible to X
# i.e. console login and exit-chroot to access data partition (sda3) 
mkdir /mnt/sda3
mount /dev/sda3 /mnt/sda3
exec chroot /easy_new /sbin/init
... has the system boot as normal, but chroot the main session instead of switch-root, and the end sof /etc/profile results in a exit-chroot action (as the first time through chroot capabilities are enabled), and that exit-chroot results in /tmp/CHR being run in the initrd space, which restarts the main session, but with cap_sys_admin and cap_sys_chroot capabilities dropped. So that next time around the exit-chroot at the end of /etc/profile simply fails, as chroot capabilities are no longer enabled.

That also mounts sda3 (my data partition) from within initrd, i.e. outside of the main systems space, so inaccessible. To get to data (sda3) ctrl-alt-F3 and login as root and run exit-chroot to gain access to the initrd space ... and hence sda3 (data). I've installed mc inside of the initrd to make moving files around easier.

In effect the real root main X desktop is restricted. It can't mount sda3 as its already mounted outside of X space, can't change it with gparted ...etc. And X can't exit-chroot as chroot capabilities are dropped.

Posted: Fri 22 Mar 2019, 20:57
by rufwoof
Plenty of links/files for Puppy in Gopherspace, but nowt for EasyOS :(

Posted: Sat 23 Mar 2019, 10:42
by rufwoof
I do like the EasyOS 1.0 (more extensive) busybox. My 'mini' boot of just the vmlinuz and initrd - with additionals, works very well. Basically I just installed the sky2 ethernet (for my hardware) module into that and have it so it boots to net connected (using static IP) and it loads/starts with tmux loaded and tmux windows of calcurse (diary), weather (via wttr.in), mc (file manager/text editor), lynx (browser), sc-im (spreadsheet), top and ssh (dropbear) auto connected to sdf.org (from where I can browse the web/gopher/message boards etc. through that ssh link).

Runs totally in ram, all changes lost, but I've included capabilities support (along with framebuffer pdf viewing etc.), so being frugally booted I can mount sda1 and open up initrd/record changes/close initrd ... so that changes persist, whilst being able to drop the capabilities of the ssh/lynx processes.

I had previously attempted to xz extreme compress that initrd, but it wouldn't boot. Then I remembered you have to include the --check=crc32 xz compression parameter when forming a initrd.xz with extreme compression and that boots fine. 12MB xz compressed initrd.xz filesize (alongside a 5MB vmlinuz).

Posted: Sun 24 Mar 2019, 22:28
by rufwoof
I've set my (1.0) main desktop so that both seamonkey and firefox portable are available running under spot. Where spot's default shell is set in /etc/passwd to be /bin/limited-shell ... which is a simple script that just permits very few commands/programs to be run. I also added that /bin/limited-shell to the /etc/shells list. Similar code as per http://murga-linux.com/puppy/viewtopic. ... 44#1023044

Found that doing real work inside the container with largish docs/spreadsheets (libreoffice) wasn't really workable for me. Having a main desktop spot browser and using the main sessions LibreOffice works better, at least for me. Not that the container is redundant, as for other activities it shines.

I'm sticking with having the main desktop tray as most of the width, but with a smaller area left free for the container's tray when that is activated. I personally find that works better for me than the alt-F6 type switching.

Image
(clickable thumbnail animated gif)

Desktop 1 for browser and general work; Desktop 2 for music (typically for me its headphones on as soon as I sit down at the PC); Desktop 3 for cli (tmux, mc, calcurse, ssh ...etc.).