On Fri, 22 Sep 2017 06:19:28 +1200,
nospam.IB.JOE@f200.n342.z1.binkp.net (IB JOE) wrote:
> I am new to Linux and as well my Pi...
>
> I strugle with most overy aspect, learning curve is massive to me.
[...]
> I think I answered my own question... I may unplug the monitor and keyboard I
> have pluggen into the pi and use the remote desktop only to access the pi and
> then I'll be able to access pi and as well the desktop I want to access.
>
> If you have any information that will help me better understand this would be
> nice.
Apologies for the delayed reply, I only just subscribed
to this group.
My solution would be to run the pi "headless" (at least most
of the time, and use ssh to login to it, then first start a
terminal multiplexer (screen or tmux), and in one of its
windows start the BBS software. You can then disconnect at
any time, the terminal multiplexer will maintain the
session, and you can reconnect to it at any time.
You can use PuTTY on Windows to access the Pi, or the ssh
command in any Linux system. SSH must of course be enabled
on the Pi.
To install screen you problably just have to
refresh the list of available pkgs, and install
from the raspbian repository.
sudo apt-get update
sudo apt-get install screen
An example script for bash / screen for showing
a few logfiles in real time:
#!/bin/bash
LAUNCH=0
screen -ls # show current status
# get current status
ACTIVE=$( screen -ls|awk '/\.shlog/{printf "%s",$1}' )
if [ -z "${ACTIVE}" ]
then # not active, create a start script
grep -v -E "^#" >~/.screenrc <<'EOF'
defutf8 on
defnonblock on
defmonitor on
defscrollback 512
compacthist on
hardstatus on
msgminwait 1
msgwait 2
hardstatus alwayslastline
hardstatus string '%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<'
vbell off
bell_msg '~Bell in window %n'
# First window (#0) is a bash shell
screen -t
EOF
# This part defines a few windows in screen to displat
for f in $(find /var/log/lighttpd -type f -name '*.log')
do
test -s "$f" || date +"%FT%T" >"$f"
t=${f##*/}
printf 'screen -t %s tail -f -n 256 %s\n' "${t%%.log}" "$f"
>>~/.screenrc
done
# less ~/.screenrc # for debugging: show screenrc
# read -p "press enter to continue " ans
screen -U -S shlog # start session with name shlog
else
# resume active session, with all windows as they were.
screen -D -r "${ACTIVE}"
fi
exit 0
Hope this helps,
--
Regards,
Kees Nuyt
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|