alphaOS [closed]
I always feel lost in Puppy's submenus with its 200 applications, it is not important if Puppy follows standard or not, for example should Firefox be under Internet or Network, when it uses both categories, why is Gnumeric under Business and Abiword is not, is it permitted using Abiword it the business. I think reason for menu reorganize is precisely in too many applications,that come pre installed with Puppy, otherwise they couldn't not fit the screen, so decision is made to increase number of categories instead of making some GUI (control centre) that can be used to launch various setup applications (from screenshot bellow).
Note for the pekwm-menu from http://murga-linux.com/puppy/viewtopic. ... 148#706148:
You do not need pekwm installed to test this application, after you moved compiled binary to /usr/bin just type:
pekwm-menu /etc/xdg/menus/lxde-applications.menu
in the terminal, and see if it's fast enough. lxde-applications.menu probably can be replaced with what Puppy uses.
Note for the pekwm-menu from http://murga-linux.com/puppy/viewtopic. ... 148#706148:
You do not need pekwm installed to test this application, after you moved compiled binary to /usr/bin just type:
pekwm-menu /etc/xdg/menus/lxde-applications.menu
in the terminal, and see if it's fast enough. lxde-applications.menu probably can be replaced with what Puppy uses.
Kurttt, you can remove extra.sfs from the iso and have console only minimal system that is bellow 50MB and has pacman, but you would need to install Xorg, some window manager and set everything from the ground up. Maybe it's better idea to extract additional module extra.sfs, then add, remove or change things to your liking and compress it again.
Regards,
Regards,
Re: hwclock issue
http://www.murga-linux.com/puppy/viewto ... 663#699663
Standard Puppies, such as Puppy Slacko automatically initialise the system clock at boot time to the hardware clock in script rc.country, which is called by /etc/rc.d/rc.sysinit during boot. Something similar can be done in alphaOS as follows:
First, near the top of /etc/rc.d/rc.sysinit I have the following change to that which alphaOS provides by default:
(Please note the space between the dot and the /etc... above)
Second, I changed /etc/init.d/hwclock to the following:
And third, since I am currently living in New Zealand, I also changed the symbolic link /etc/localtime:
The computer hardware clock is no longer messed up with the above arrangement.
EDIT: I have commented out the hwclock --adjust line for the moment, because something still seems to be amiss and I suspect that... Will fix once I have time but currently busy eating ... :-)
EDIT2: Nope. Something remains faulty with the above. The rc.sysinit line for /etc/init.d/hwclock start doesn't seem to be doing the job (the line /etc/init.d/hwclock does indeed work if entered manually in a console later per ndrancs original post). Not sure what the problem is and run out of time this evening to look into this further sorry.
The manual page for hwclock (/sbin/hwclock) advises:ndrancs wrote:hi all,
i try to set the system time.
The following are some steps that I have done:
- Add a few lines of words in /etc/init.d/hwclock
As ndrancs has discovered the provided alphaOS defaults result in automatically altering the computer's Hardware Clock at shutdown since /etc/init.d/hwclock automatically executes /sbin/hwclock stop at that time. That is fine (and good) if the system clock has been correctly set up prior to shutdown, but I understand that that doesn't happen in alphaOS unless set up to do so via, as mentioned by simargl, an appropriate rdate command whilst connected to the Internet, which is problematic.The System Time is the time that matters. The Hardware Clock's basic purpose in a Linux system is to keep time when Linux is not running. You initialize the System Time to the time from the Hardware Clock when Linux starts up, and then never use the Hardware Clock again.
Standard Puppies, such as Puppy Slacko automatically initialise the system clock at boot time to the hardware clock in script rc.country, which is called by /etc/rc.d/rc.sysinit during boot. Something similar can be done in alphaOS as follows:
First, near the top of /etc/rc.d/rc.sysinit I have the following change to that which alphaOS provides by default:
Code: Select all
# Modified for alphaOS: http://sourceforge.net/projects/alphaos
. /etc/init.d/hwclock start # In alphaOS this line was originally . /etc/rc.conf
Second, I changed /etc/init.d/hwclock to the following:
Code: Select all
#!/bin/sh
#
# Written for alphaOS: http://sourceforge.net/projects/alphaos
# Author: archpup@gmail.com
#
# Distributed under the Creative Commons Attribution ShareAlike 3.0 Unported License.
# http://creativecommons.org/licenses/by-sa/3.0/
. /etc/rc.conf
case $HARDWARECLOCK in
UTC) HWCLOCK_PARAMS="--utc";;
localtime) HWCLOCK_PARAMS="--localtime";;
*) HWCLOCK_PARAMS="";;
esac
case "$1" in
start)
hwclock --hctosys $HWCLOCK_PARAMS # This initialises system clock
;;
stop)
# hwclock --adjust $HWCLOCK_PARAMS
hwclock --systohc $HWCLOCK_PARAMS
;;
esac
Code: Select all
ln -s /usr/share/zoneinfo/Pacific/Auckland /etc/localtime
EDIT: I have commented out the hwclock --adjust line for the moment, because something still seems to be amiss and I suspect that... Will fix once I have time but currently busy eating ... :-)
EDIT2: Nope. Something remains faulty with the above. The rc.sysinit line for /etc/init.d/hwclock start doesn't seem to be doing the job (the line /etc/init.d/hwclock does indeed work if entered manually in a console later per ndrancs original post). Not sure what the problem is and run out of time this evening to look into this further sorry.
Last edited by mcewanw on Mon 03 Jun 2013, 02:39, edited 3 times in total.
github mcewanw
Something like this for 200MB save file, or is it actually save partitionKurttt wrote:But with the minimal system...how can i save puppy 2fs??What should I install??
Code: Select all
dd if=/dev/zero of=/mnt/home/alphasave.2fs bs=1k count=200000
mke2fs -q -m 0 -F /mnt/home/alphasave.2fs
I'm not sure if it is too late to exec hwclock script after the daemons are loaded. Unfortunately, as I later discovered and commented, the alteration I suggested above doesn't seem to be working afterall... I'm a bit mystified at the moment, but will look at it again sometime.simargl wrote:mcewanw, thanks I will make that as default. But is it too late if this clock setup runs latter on boot with all other daemons from /etc/rc.conf (alsa, cups...) but first of them, that seems like... cleaner. sfs_load is currently only service file called directly from /etc/rc.d/rc.sysinit.
github mcewanw
My alphaOS and save file are on an ntfs partition and I am certainly having trouble with the save file not reliably saving on shutdown. I've been trying to modify rc.sysinit to get hwclock --hctosys working to my satisfaction but I'm finding that if I try modifying rc.sysinit more than a couple of times it doesn't save the newer changes - it does save at first, but not thereafter! Very strange since clearly writes are working very briefly to ntfs... I haven't looked into why and thought my machine had a hardware fault or something, since it did months ago, or alternatively I wondered if this old machine didn't like the newish kernel - all is working fine in my other installed Puppy Slacko.simargl wrote:I also noticed that ntfs partition is mounted read-only with command mount, and edited two scripts: one used for mounting by spacefm and second makepfile.sh for making save file to use command ntfs-3g if filesystem type is ntfs.
I have alphaOS files on /dev/sda6 that is ext4 partition, and if I click on ntfs partition in spacefm, now it is mounted read write. If alpha os is frugally installed on ntfs partition and on boot mounts it read- only then init script needs fixing, I didn't test that.
EDIT: As for the hwclock matter, I can't get it to work directly via rc.sysinit. Putting the line
Code: Select all
/etc/init.d/hwclock start
github mcewanw
hwclock issue continue
Hi mcewanw
I've checked the rc.sysinit script from the root-fs of fatdog64, and hwclock is on the line nearly the top. before busybox mount command.
please try it that way. do not forget to remove hwclock on DAEMON rc.conf. and try to save all the changes to alpha_70.sfs. You just have to unsquashfs and mksquashfs alpha_70.sfs. but do it in the linux partition, can be ext2-4 or other.
I've checked the rc.sysinit script from the root-fs of fatdog64, and hwclock is on the line nearly the top. before busybox mount command.
Code: Select all
############ minimum necessary setup #################
# set system clock
hwclock --hctosys --localtime
# mount devpts, /tmp and /dev/shm and swap (if any)
[ ! -L /etc/mtab ] && { rm -rf /etc/mtab; ln -s /proc/mounts /etc/mtab; }
busybox mount -a # as configured in /etc/fstab
busybox swapon -a # as configured in /etc/fstab
@ndrancs: The issue isn't getting hwclock --hctosys --localtime to work; that is straightforward enough. Rather, like yourself, I was trying to find the most convenient way to modify the scripts already provided by default in alphaOS. I do not have any hwclock daemon in my rc.conf (I think that is how you were trying to do things earlier). What I haven't found out yet is why the line I tried in rc.sysinit didn't work. Any good alternative will do though. Like I said, putting /etc/init.d/hwclock start at the beginning of the default /root/.start seems to do the job fine (assuming a case start - hwclock line is added to /init.d/hwclock script as in your original attempt).
As far as my pupsave on ntfs partition issue is concerned, I could of course avoid that and use an ext... partition or even loop mounted file with an ext... filesystem written to it. However, I want things to work correctly on ntfs with small changes like this in my pupsave, for the moment, until simargl releases a future version with his preferred official additions to alpha_xx.sfs. Really I was just offering suggestions in case simargl found them useful though I'm certainly interested in using alphaOS in practice since it has some great features (pacman in particular).
As far as my pupsave on ntfs partition issue is concerned, I could of course avoid that and use an ext... partition or even loop mounted file with an ext... filesystem written to it. However, I want things to work correctly on ntfs with small changes like this in my pupsave, for the moment, until simargl releases a future version with his preferred official additions to alpha_xx.sfs. Really I was just offering suggestions in case simargl found them useful though I'm certainly interested in using alphaOS in practice since it has some great features (pacman in particular).
github mcewanw
localization
Hi, I'm trying to localize the system but after uncomment proper lines in /etc/locale.gen, I get this error:
Thanks[root@alphaos ~]# locale-gen
Generating locales...
es_ES.UTF-8...locale alias file `/usr/share/locale/locale.alias' not found: No such file or directory
[root@alphaos ~]#
pinguino, download missing file from https://bitbucket.org/simargl/arch-base ... at=default
Folder /usr/share/locale from base module is removed with build script and also file locale.alias that was in it, but extra.sfs has all language support. Graphical programs should work with Spanish, but console based like pacman won't, although you can always add missing locales manually.
Folder /usr/share/locale from base module is removed with build script and also file locale.alias that was in it, but extra.sfs has all language support. Graphical programs should work with Spanish, but console based like pacman won't, although you can always add missing locales manually.
a few new backgrounds.
- Attachments
-
- alphami11.jpg
- http://www.mediafire.com/folder/7v1msw26s6chb/spuppy
- (6.56 KiB) Downloaded 772 times
-
- alphami11,5.jpg
- http://www.mediafire.com/folder/7v1msw26s6chb/spuppy
- (9.39 KiB) Downloaded 791 times
-
- alphami11,1f.jpg
- http://www.mediafire.com/folder/7v1msw26s6chb/spuppy
- (7.67 KiB) Downloaded 800 times
Thanks futwerk
It is because only latest file changes are saved, script that saves session on reboot uses command "cp -u" to reduce number of writes to usb drive, so it will not overwrite newer existing files. Idea was suggested by Marv. Off course this explanation can be true only if you use pupmode 13, save file on usb flash...mcewanw wrote:... but I'm finding that if I try modifying rc.sysinit more than a couple of times it doesn't save the newer changes - it does save at first, but not thereafter! Very strange since clearly writes are working very briefly to ntfs...
Boot using grub.
Hi,
I would like to boot alpha OS 7.0 as a frugal install using grub.
What would menu.lst look like and how much work would have to be done first?
Regards Tony.
I would like to boot alpha OS 7.0 as a frugal install using grub.
What would menu.lst look like and how much work would have to be done first?
Regards Tony.
usbsave cp -u PUPMODE 13 issue
Ah, that seems indeed to be what was causing the problem I was having with saving changes to my pupsave file. I therefore decided to modify my alpha_70.sfs (unsquashfs;mksquashfs), per ndrancs suggestion afterall, in order to at least temporarily remove that particular cp -u "feature"/side-effect.simargl wrote:It is because only latest file changes are saved, script that saves session on reboot uses command "cp -u" to reduce number of writes to usb drive, so it will not overwrite newer existing files. Idea was suggested by Marv. Off course this explanation can be true only if you use pupmode 13, save file on usb flash...mcewanw wrote:... but I'm finding that if I try modifying rc.sysinit more than a couple of times it doesn't save the newer changes - it does save at first, but not thereafter! Very strange since clearly writes are working very briefly to ntfs...
Also, as a simple work around to the problem of my underlying frugal installation partition being ntfs, I used /tmp directory for the resquashing operation.
Not really a howto - the following reminder is just for my own use/documentation or in case anyone else finds these steps (or similar) useful:
In console from dir where I have the original alpha_70.sfs I executed
Code: Select all
unsquashfs -d /tmp/alphaOS_core/ alpha_70.sfs
edited /usr/sbin/usbsave changing the single occurrence of cp -afu to simply cp -af in the relevant PUPMODE = 13 if statement block.
Then resquashed the filesystem using:
Code: Select all
cd /tmp && mksquashfs /tmp/alphaOS_core/ alpha_70.sfs -comp xz
github mcewanw
Re: hwclock issue - near to solution but not quite there...?
I've been looking into the above issue a bit further. In fact, with the addition of hwclock in the DAEMONS line above, hwclock does in fact successfully run at boot. You can see that if you insert the following test lines at the very end of /etc/rc.d/rc.sysinit. Just examine the file /root/testclock after a reboot and you will see that "/etc/init.d/hwclock start" has, at that stage, correctly adjusted the system clock to the desired hardware clock value adjusted to the /etc/localtime zone:ndrancs wrote:hi all,
i try to set the system time.
The following are some steps that I have done:
- Add a few lines of words in /etc/init.d/hwclock
...
- Added hwclock on daemons in rc.conf:so my question is why hwclock does not seem to run at boot?Code: Select all
DAEMONS="metalog network messagebus alsa cups Pwireless2 sfs_load hwclock"
...
but if the /etc/init.d/hwclock run manually the date was as expected.
Code: Select all
date > /root/testclock
So how is localised to hardware clock system time getting lost between rc.sysinit daemon running stage and root login to bash is the question requiring an answer? The answer to that will solve the problem I feel.
Last edited by mcewanw on Wed 12 Jun 2013, 07:56, edited 1 time in total.
github mcewanw
I tried substituting with carolinas xorg.conf but touchpad froze?Scooby wrote:
...
2.
Mouse works with touchpad although gestures like two-finger scroll doesnt
But could easily be fixed with carolinas xorg.conf or the package from aur that handles this.
...
I hadnt install xf86-input-synaptics yet, maybe I need this
I thought I saw but couldnt find again somebody that installed flsynclient?
Is this correct? What procedure
Anyone else got mousegestures working in alphaOS?