I have an Aspire One I can dig out and try on.
I do only frugal installs and use Grub to boot them.
Yes, Power Manager settings are correct, I mention Power Manager only so you know I checked it before posting.
I've been using Grub 2 for the last 2-3 years, though I never use update-grub....things get messy with it. When the bootloader is working, I don't play with it, learned my lessons in that.Blaze wrote: ↑31 Mar 2018, 11:51roadie, do you use grub or grub2?
Please, look at this post grub2 menu entry (Пост Blaze #59969)
Code: Select all
swapon -v /mnt/sda3/linuxswap
Code: Select all
root@porteus:/# type sx
sx is a function
sx ()
{
echo $(date +%d.%m.%Y\ %H:%M:%S) ____________________________________________________________;
{
read firstLine;
echo "$firstLine";
while read f t s u p; do
let "s2 = $s / 1024";
let "u2 = $u / 1024";
printf '%-40s%-16s%-8s%-8s%-8s\n' $f $t $s2 $u2 $p;
done
} < /proc/swaps
}
root@porteus:/mnt/live/memory/images# sx
02.04.2018 07:35:36 ____________________________________________________________
Filename Type Size Used Priority
/mnt/sda3/linuxswap file 2047 257 -2
/dev/sda2 partition 949 0 -3
Code: Select all
root@porteus:/# sx
02.04.2018 07:36:02 ____________________________________________________________
Filename Type Size Used Priority
/mnt/sda3/linuxswap file 2047 33 -2
/dev/sda2 partition 949 41 -2
Code: Select all
root@porteus:/# sx
02.04.2018 07:36:18 ____________________________________________________________
Filename Type Size Used Priority
/dev/sda2 partition 949 52 -2
Code: Select all
swapon -vp -10 /mnt/sda3/linuxswap
Code: Select all
root@porteus:/# swapon -vp -10 /mnt/sda3/linuxswap
swapon: /mnt/sda3/linuxswap: found signature [pagesize=4096, signature=swap]
swapon: /mnt/sda3/linuxswap: pagesize=4096, swapsize=2147483648, devsize=2147483648
swapon /mnt/sda3/linuxswap
root@porteus:/# sx
02.04.2018 07:38:19 ____________________________________________________________
Filename Type Size Used Priority
/mnt/sda3/linuxswap file 2047 0 -3
/dev/sda2 partition 949 73 -2
Code: Select all
swapon -vp -10 /mnt/sda3/linuxswap
So brokenman can maintain them on the server thus saving him time and load on the porteus.org servers.
It would put too much of a load on the porteus.org servers.But I'd suggest to change it, so that it calls "wget http://dl.porteus.org", instead of "google.com" to check if Internet is up.
How are they better than google.com?Or at least "apple.com" or "bing.com" or "microsoft.com" or "baidu.cn", if the porteus site does not fit your needs/requirements.
i guess they are not blocked by the (in)famous chinese "Great FireWall" (in mainland china)
On slow machines, and it is a slow one, you try to get everything as high-performance as you manage.
I related 3 points:
Code: Select all
--- librokenman.orig 2017-03-05 21:11:00.000000000 +0100
+++ librokenman 2018-04-08 11:05:34.956451679 +0200
@@ -262,17 +262,22 @@
else
answ=1
fi
+ export HAS_NO_INTERNET=$answ
fi
}
# Check if a website is online and working (silently)
# Returns url=0 if it is avaiable
has_internet(){
-if (wget -q --spider --force-html --inet4-only http://www.google.com >/dev/null 2>&1); then
+answ=$HAS_NO_INTERNET
+if [ "$HAS_NO_INTERNET" != "0" ]; then
+ if (wget -q --spider --force-html --inet4-only http://dl.porteus.org >/dev/null 2>&1); then
answ=0
- else
+ else
answ=1
+ fi
fi
+export HAS_NO_INTERNET=$answ
}
# Check that writable flag is set
Code: Select all
--- update-vbox.orig 2016-05-29 01:46:47.000000000 +0200
+++ update-vbox 2018-04-08 11:25:25.004451537 +0200
@@ -10,7 +10,7 @@
PIXMAPS=/usr/share/pixmaps/porteus
SERVER=`awk -F= '/SERVER=/{print$NF}' /etc/porteus.conf`
link=$SERVER/i586/testing/live/update-vbox-live
-trap cleanup SIGHUP SIGINT SIGTERM
+trap cleanup 0
cleanup(){
rm /tmp/.vbox-live 2>/dev/null
@@ -64,18 +64,21 @@
</window>
'
gtkdialog -p MAIN_DIALOG > /tmp/.vbox-live
+. /tmp/.vbox-live
-[ `egrep "Cancel|abort" /tmp/.vbox-live` ] && { cleanup; exit; }
-[[ `grep vbox-live /tmp/.vbox-live 2>/dev/null|cut -d'"' -f2` == "" ]] && { cleanup; exit; }
+if [ "$EXIT" = "abort" -o "$EXIT" = "Cancel" -o "$vbox-live" = "" ]; then
+ exit
+fi
-answer=`awk -F'"' '/vbox-live/{print$2}' /tmp/.vbox-live`
+answer=$vbox-live
## Internet check
if [ ! -e /tmp/update-vbox-live ]; then
if wget --spider -v "$link"; then
+ export HAS_NO_INTERNET=0
wget $link -P /tmp
else
+ export HAS_NO_INTERNET=1
gtk_message "An internet connection was not found or the porteus server was not reachable. Exiting now." 450 gtk-dialog-warning
- cleanup
fi
fi
@@ -85,12 +88,8 @@
case $answer in
VirtualBox )
/usr/local/bin/update-vbox-live vbox
-cleanup
;;
"VirtualBox Guest additions" )
/usr/local/bin/update-vbox-live vboxguest
-cleanup
;;
esac
-
-rm /tmp/.vbox-live 2>/dev/null
Code: Select all
# cd /usr/lib && patch < librokenman.patch
# cd /opt/porteus-scripts && patch < update-vbox.patch