My browser has been connecting to the Internet via an http proxy without any issues: 192.168.1.24:8590
When I ping 192.168.1.24 in my terminal emulator, it returns no packet loss.
I want to configure my terminal emulator to connect to the Internet via the proxy. The original /etc/profile is below:
I didn't know how to populate this file to set proxy for my terminal emulator. I tried the following:
But it didn't work.
I was wondering whether anyone could help me correctly configure the /etc/profile
Thanks for your attention and time
When I ping 192.168.1.24 in my terminal emulator, it returns no packet loss.
--- 192.168.1.24 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 44.234/80.624/125.500/30.166 ms
I want to configure my terminal emulator to connect to the Internet via the proxy. The original /etc/profile is below:
Code:
# System-wide .profile file for sh(1).
#
# For the setting of languages and character sets please see
# login.conf(5) and in particular the charset and lang options.
# For full locales list check /usr/share/locale/*
# You should also read the setlocale(3) man page for information
# on how to achieve more precise control of locale settings.
#
# Check system messages
# msgs -q
# Allow terminal messages
# mesg y
# Load each .sh file in /etc/profile.d/, then /usr/local/etc/profile,
# then each .sh file in /usr/local/etc/profile.d/.
_loaded=${_loaded:-/etc/profile}
export _loaded
for _dir in /etc /usr/local/etc ; do
for _file in "${_dir}"/profile "${_dir}"/profile.d/*.sh ; do
if [ -f "${_file}" ] ; then
case :${_loaded}: in
*:"${_file}":*)
;;
file "/etc/profile.orgi", 33 lines
I didn't know how to populate this file to set proxy for my terminal emulator. I tried the following:
Code:
# System-wide .profile file for sh(1).
#
# For the setting of languages and character sets please see
# login.conf(5) and in particular the charset and lang options.
# For full locales list check /usr/share/locale/*
# You should also read the setlocale(3) man page for information
# on how to achieve more precise control of locale settings.
#
# Check system messages
# msgs -q
# Allow terminal messages
# mesg y
# Load each .sh file in /etc/profile.d/, then /usr/local/etc/profile,
# then each .sh file in /usr/local/etc/profile
export http_proxy=http://192.168.1.24:8590/
export https_proxy=http://192.168.24:8590/
export ftp_proxy=http://192.168.1.24:8590/
export telnet_proxy=http://192.168.1.24:8590/
But it didn't work.
ping www.torproject.org
PING www.torproject.org (104.244.46.165): 56 data bytes
^C
--- www.torproject.org ping statistics ---
13 packets transmitted, 0 packets received, 100.0% packet loss
yt-dlp https://www.youtube.com/watch?v=OjtjnpqflKE&list=PLYhLBLAiNX2WCVy1usUA1xoXvAqv5-S4Z&index=28
jean@abc:~ $ [youtube] Extracting URL: https://www.youtube.com/watch?v=OjtjnpqflKE
[youtube] OjtjnpqflKE: Downloading webpage
WARNING: [youtube] Unable to download webpage: <urllib3.connection.HTTPSConnection object at 0x379d4515b2d0>: Failed to establish a new connection: [Errno 65] No route to host
[youtube] OjtjnpqflKE: Downloading ios player API JSON
I was wondering whether anyone could help me correctly configure the /etc/profile
Thanks for your attention and time