Jump to content
XPEnology Community

Search the Community

Showing results for tags 'proxy'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Information
    • Readers News & Rumours
    • Information and Feedback
    • The Noob Lounge
  • XPEnology Project
    • F.A.Q - START HERE
    • Loader Releases & Extras
    • DSM Updates Reporting
    • Developer Discussion Room
    • Tutorials and Guides
    • DSM Installation
    • DSM Post-Installation
    • Packages & DSM Features
    • General Questions
    • Hardware Modding
    • Software Modding
    • Miscellaneous
  • International
    • РУССКИЙ
    • FRANÇAIS
    • GERMAN
    • SPANISH
    • ITALIAN
    • KOREAN

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 1 result

  1. This is for the user who must use proxy to access internet/github/google setPROXY.sh 1. Create the setPROXY.sh script touch setPROXY.sh 2.Prepare script content You need to change the value of myproxy with your proxy setting. It accect 2 way: http and socks5. like this This is a template of setPROXY.sh #!/bin/bash myproxy="http://192.168.1.1:8080" echo -e "curl and git's proxy will set to \033[1m$myproxy\033[0m" #set proxy for current user's curl echo "proxy=\"$myproxy\"" > $HOME/.curlrc #set proxy for root's curl echo "proxy=\"$myproxy\"" > /root/.curlrc set proxy for git git config --global http.proxy \"$myproxy\" git config --global https.proxy \"$myproxy\" this template script expected output will be: "curl and git's proxy will set to http://192.168.1.1:8080" 4.Using vi to change setPROXY.sh vi setPROXY.sh This is another correct sample of setPROXY.sh #!/bin/bash myproxy="socks5://192.168.1.1:8080" echo "proxy=\"$myproxy\"" > $HOME/.curlrc echo "proxy=\"$myproxy\"" > /root/.curlrc git config --global http.proxy \"$myproxy\" this script expected output will be nothing After finishing editing, press "ESC" key, then enter ":wq" to save the file and exit 5. Run setPROXY.sh bash setPROXY.sh If there is no output from the shell, the proxy settings are in effect Sorry about my English level, I hope it can help someone ------------------------------------------------------------ setPROXY.sh
×
×
  • Create New...