Community gatherings on Freenode at #tinycorelinux (webchat)
... Also, the explicit path to the tar.bz2 was required. (in my case it was my tce dir.) . ...
... That last step either has me confused and I did it wrong or some combination of the above. In either event it did not work. You said, "Finally enter './exittc'". I tried that in aterm. I tried it as sudo. I added it to the .profile file. Net result is no change, even after reboot.
Quote from: TomyTurbos on February 07, 2019, 05:40:58 PMWell, we're not quite there yet.First off, the tce-load -w 'etc.' command d/l'ed a LOT of stuff, some of which was already in my tce directory. I realize this is probably a deficiency in tce-load; only mentioning it to bring it to your attention.Next, would it not have been more efficient to use '-wi' as the switch rather than doing it separately? Not that big a deal but I'm a simple guy here...Also, the explicit path to the tar.bz2 was required. (in my case it was my tce dir.) That last step either has me confused and I did it wrong or some combination of the above. In either event it did not work. You said, "Finally enter './exittc'". I tried that in aterm. I tried it as sudo. I added it to the .profile file. Net result is no change, even after reboot.Hello Tommy,Next time try using the --help menu, most if not all programs have a --help (or -h) menu to help with syntax and usageexampleCode: [Select]tc@box:~$ tce-load --helpIllegal option --Version 10.0Usage: tce-load [ -i -w -wi -wo -wil -ic -wic -wicl]{s} extensions -i Loads local extension -w Download extension only -wi Download and install extension -wo Download and create an ondemand item Adding -c to any -i option will force a one time copy to file system Adding -l to any -i option indicates load only - do not update onboot or ondemand Adding -s to any option will suppress OK message used by apps GUIExample usage: Load local extension: tce-load -i /mnt/hda1/tce/optional/nano.tcz Download into tce/optional directory, updates OnBoot and installs: tce-load -w -i nano.tcz Download only into tce/optional directory: tce-load -w nano.tcztc@box:~$ Am fairly sure you'd of figured out what you were not doing right after reading this and tce-load downloads and install's, it doesn't delete stuff..
Well, we're not quite there yet.First off, the tce-load -w 'etc.' command d/l'ed a LOT of stuff, some of which was already in my tce directory. I realize this is probably a deficiency in tce-load; only mentioning it to bring it to your attention.Next, would it not have been more efficient to use '-wi' as the switch rather than doing it separately? Not that big a deal but I'm a simple guy here...Also, the explicit path to the tar.bz2 was required. (in my case it was my tce dir.) That last step either has me confused and I did it wrong or some combination of the above. In either event it did not work. You said, "Finally enter './exittc'". I tried that in aterm. I tried it as sudo. I added it to the .profile file. Net result is no change, even after reboot.
tc@box:~$ tce-load --helpIllegal option --Version 10.0Usage: tce-load [ -i -w -wi -wo -wil -ic -wic -wicl]{s} extensions -i Loads local extension -w Download extension only -wi Download and install extension -wo Download and create an ondemand item Adding -c to any -i option will force a one time copy to file system Adding -l to any -i option indicates load only - do not update onboot or ondemand Adding -s to any option will suppress OK message used by apps GUIExample usage: Load local extension: tce-load -i /mnt/hda1/tce/optional/nano.tcz Download into tce/optional directory, updates OnBoot and installs: tce-load -w -i nano.tcz Download only into tce/optional directory: tce-load -w nano.tcztc@box:~$
But really all that is of concern here is that it still doesn't work as per your instructions in Post #9 when we get to the last statement. I did that in aterm. I did it again with sudo. It still doesn't work for me.
tce-load -i compiletc fltk-1.3-dev sstrip
tc@box:~$ tar xjvf exittc.tar.bz2exittc/exittc/exittc.hexittc/CompileExittcexittc/exittc.patchexittc/exittc.cxx.oldexittc/exittc.cxxexittc/exittc.fltc@box:~$ cd exittctc@box:~/exittc$ ./CompileExittctc@box:~/exittc$ cp exittc ~/.local/bin/tc@box:~/exittc$ export EXITPROMPT="reboot"tc@box:~/exittc$ ./exittctc@box:~/exittc$
That worked, but not on reboot.
export EXITPROMPT="reboot"
Hi TomyTurbosQuote from: TomyTurbos on February 08, 2019, 12:05:40 AMThat worked, but not on reboot.You need to provide more information. When you click on the exit icon, it doesn't default to reboot? Did you remember toadd this line to your .profile file:Code: [Select]export EXITPROMPT="reboot"If you didn't, you need to add it and reboot for it to take effect.
ls -l ~/.local/bin/ > system.txtcat .profile >> system.txtenv >> system.txtshowbootcodes >> system.txtcat /opt/.filetool.lst >> system.txt
Hi TomyTurbosRun the following commands:Code: [Select]ls -l ~/.local/bin/ > system.txtcat .profile >> system.txtenv >> system.txtshowbootcodes >> system.txtcat /opt/.filetool.lst >> system.txtand attach the system.txt file to your next post.
chmod 774 systemstats.sh
./systemstats.sh
Hi TomyTurbosDownload the attached file. Copy it to the /home/tc/ directory of the machine in question. Make it executable like this:Code: [Select]chmod 774 systemstats.shNow run it like this:Code: [Select]./systemstats.shUse a thumb drive to transfer the system.txt file and attach it to your next post.
total 24-rwxr-xr-x 1 tc staff 20912 Feb 7 23:37 exittc # ~/.profile: Executed by Bourne-compatible login SHells.## Path to personal scripts and executables (~/.local/bin).[ -d "$HOME/.local/bin" ] || mkdir -p "$HOME/.local/bin"export PATH=$HOME/.local/bin:$PATHONDEMAND=/etc/sysconfig/tcedir/ondemand[ -d "$ONDEMAND" ] && export PATH=$PATH:"$ONDEMAND"# Environment variables and prompt for Ash SHell# or Bash. Default is a classic prompt.#PS1='\u@\h:\w\$ 'PAGER='less -EM'MANPAGER='less -isR'EDITOR=viexport PS1 PAGER FILEMGR EDITOR MANPAGERexport BACKUP=1[ "`id -un`" = "`cat /etc/sysconfig/tcuser`" ] && echo "$BACKUP" | sudo tee /etc/sysconfig/backup >/dev/null 2>&1export FLWM_TITLEBAR_COLOR="58:7D:AA"if [ -f "$HOME/.ashrc" ]; then export ENV="$HOME/.ashrc" . "$HOME/.ashrc"fiTERMTYPE=`/usr/bin/tty`[ ${TERMTYPE:5:3} == "tty" ] && ([ ! -f /etc/sysconfig/Xserver ] ||[ -f /etc/sysconfig/text ] ||[ -e /tmp/.X11-unix/X0 ] || startx)export EXITPROMPT="reboot"WM_PID=3929XPID=3923USER=tcSHLVL=6HOME=/home/tcOLDPWD=/home/tcPAGER=less -EMPS1=\u@\h:\w\$ ENV=/home/tc/.ashrcBACKUP=1COLORTERM=rxvtLOGNAME=tcWINDOWID=8388610COLORFGBG=15;0TERM=rxvtPATH=/home/tc/.local/bin:/usr/local/sbin:/usr/local/bin:/apps/bin:/usr/sbin:/usr/bin:/sbin:/bin:/etc/sysconfig/tcedir/ondemandG_FILENAME_ENCODING=iso8859-1DISPLAY=:0.0LANG=CMANPAGER=less -isRXAUTHORITY=/home/tc/.XauthoritySHELL=/bin/shICONS=wbarDESKTOP=flwm_topsideFLWM_TITLEBAR_COLOR=58:7D:AAPWD=/home/tcEDITOR=editorBOOT_IMAGE=/boot/vmlinuz quiet loglevel=0 waitusb=2:UUID=F885-DB9E showapps desktop=flwm_topside blacklist=bcma,ssb,b43 initrd=/boot/core.gz opthomeetc/lighttpd
Hi TomyTurbosIt looks like you added export EXITPROMPT="reboot" to the end of your .profile file but didn't add a carriage return to the endof the line.