wizzard bug - proxy configuration
wizzard bug - proxy configuration
Hello,
During configuration in wizzard, wizzard strips \ character in configuration. Is there any reason to strip \ character in proxy configuration?
Thanks
During configuration in wizzard, wizzard strips \ character in configuration. Is there any reason to strip \ character in proxy configuration?
Thanks
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
wizzard bug - proxy configuration
I cant recreate this bug.
Please provide the string which you are trying to enter and exac field in the wizard window.
Thank you.
Please provide the string which you are trying to enter and exac field in the wizard window.
Thank you.
Please add [Solved] to your thread title if the solution was found.
wizzard bug - proxy configuration
If set in wizzard:
proxy=username\here:password@myproxy.com:8080
it sets variable in system:
http_proxy=usernamehere:password@myproxy.com:8080
https_proxy=usernamehere:password@myproxy.com:8080
it strips \ character. double checked.
proxy=username\here:password@myproxy.com:8080
it sets variable in system:
http_proxy=usernamehere:password@myproxy.com:8080
https_proxy=usernamehere:password@myproxy.com:8080
it strips \ character. double checked.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
wizzard bug - proxy configuration
Unfortunately this character is interpreted by the shell and i cant find any workaround that escaping it (shame).
Please use this:
You may add a comment to the config that double backslash was added to workaround this bug (so you'll remember that real password is 'username\here'.
Thanks
Please use this:
Code: Select all
proxy=username\\\here:password@myproxy.com:8080
Thanks
Please add [Solved] to your thread title if the solution was found.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
wizzard bug - proxy configuration
Works here.
This parameter:
gives:
This parameter:
Code: Select all
proxy=fantho\\\m:test@192.168.0.15:3128
Code: Select all
root@automatic:~# cat /etc/profile.d/proxy.sh
#!/bin/sh
# System proxy:
proxy=fantho\m:test@192.168.0.15:3128
[ "$proxy" = DIRECT ] || export http_proxy="http://$proxy" https_proxy="http://$proxy" ftp_proxy="http://$proxy"
# Proxy exceptions:
#noproxy=
[ "$noproxy" ] && export no_proxy="localhost,127.0.0.1,$noproxy" || export no_proxy="localhost,127.0.0.1"
Please add [Solved] to your thread title if the solution was found.
wizzard bug - proxy configuration
which not leads to proper string concatenation
Small exercise:
Code: Select all
root@kiosk:~# test=a\b\c\d
root@kiosk:~# export test
root@kiosk:~# env |grep test
test=abcd
root@kiosk:~#
Code: Select all
root@kiosk:~# test='a\b\c\d'
root@kiosk:~# export test
root@kiosk:~# inne=http://$test
root@kiosk:~# export inne
root@kiosk:~# env | grep -E '(test|inne)'
inne=http://a\b\c\d
test=a\b\c\d
root@kiosk:~#
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
wizzard bug - proxy configuration
Its enough that you add one more '\':
Code: Select all
proxy=fantho\\\\m:test@192.168.0.15:3128
Please add [Solved] to your thread title if the solution was found.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
wizzard bug - proxy configuration
Instead on one backslash in your password you need to use 4 backslashes.
This works for remote management, have not tested the wizard as it requires unlocking the shell during installation which is troublesome.
This parameter:
gives:
and it gives:
Thanks
This works for remote management, have not tested the wizard as it requires unlocking the shell during installation which is troublesome.
This parameter:
Code: Select all
proxy=fantho\\\\m:test@192.168.0.15:3128
Code: Select all
root@automatic:~# cat /etc/profile.d/proxy.sh
#!/bin/sh
# System proxy:
proxy=fantho\\m:test@192.168.0.15:3128
[ "$proxy" = DIRECT ] || export http_proxy="http://$proxy" https_proxy="http://$proxy" ftp_proxy="http://$proxy"
# Proxy exceptions:
#noproxy=
[ "$noproxy" ] && export no_proxy="localhost,127.0.0.1,$noproxy" || export no_proxy="localhost,127.0.0.1"
Code: Select all
root@automatic:~# env | grep -i proxy
no_proxy=localhost,127.0.0.1
https_proxy=http://fantho\m:test@192.168.0.15:3128
http_proxy=http://fantho\m:test@192.168.0.15:3128
ftp_proxy=http://fantho\m:test@192.168.0.15:3128
Please add [Solved] to your thread title if the solution was found.