I'm trying to provide Nano and a couple of other apps for my users (I just upgraded to the latest ispconfig). I edited /root/ispconfig/scripts/shell/creat_chrooted_env.sh and added /bin/nano and /usr/bin/nano to APPS, and reran it, but whenever I try to run nano I get an "Error opening terminal: xterm." error. Any way I can include xterm in the chroot?
I spent a few hours hunting and I can't find exactly what you need to do to run xterm. I'm gonna try copying some more libs tomorrow...if anybody else is looking into this, please post, otherwise thanks for the recommendation till, I'll post if I find something.
There needs to be a couple of xterm files from the etc dir in the folder. Here's how to add nano:
EDIT /root/ispconfig/scripts/shell/create_chroot_env.sh
ADD /bin/nano to the end of the APPS= line (before the last ")
ADD at the bottom:
#Allow nano to work
mkdir ./etc/terminfo/x/
cp /etc/terminfo/x/* ./etc/terminfo/x/
And viola!
The Following User Says Thank You to bkrausz For This Useful Post:
Posts: 1,186
Thanks: 60
Thanked 13 Times in 11 Posts
ok, but how would I add more apps (i.e. nano ) after having done all that, shall I simply rerun the whole how-to with the changed settings including more libbs and apps?
Recent comments
20 hours 11 min ago
20 hours 17 min ago
1 day 1 hour ago
1 day 7 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 14 hours ago
1 day 20 hours ago
2 days 48 min ago
2 days 2 hours ago