| View previous topic :: View next topic |
| Author |
Message |
abah Halfop
Joined: 01 Dec 2013 Posts: 61 Location: Indonesia
|
Posted: Wed Apr 01, 2020 10:16 am Post subject: covid-19.tcl by blackshadow |
|
|
i am try for openbsd not working and i get error
| Quote: |
Tcl error [corona:pub]: wrong # args: should be "tls::socket ?options? host port"
|
how fixed that problem ? |
|
| Back to top |
|
 |
BLaCkShaDoW Op

Joined: 11 Jan 2009 Posts: 115 Location: Romania
|
|
| Back to top |
|
 |
abah Halfop
Joined: 01 Dec 2013 Posts: 61 Location: Indonesia
|
Posted: Thu Apr 02, 2020 3:50 am Post subject: Re: covid |
|
|
you are site is down n i cannot access that site |
|
| Back to top |
|
 |
BLaCkShaDoW Op

Joined: 11 Jan 2009 Posts: 115 Location: Romania
|
Posted: Thu Apr 02, 2020 4:14 am Post subject: Covid |
|
|
| Code: | If you want to install the latest tls to work :
First remove the tls-tcl (if installed)
sudo apt remove tls-tcl
For Ubuntu/Debian X64
wget http://archive.ubuntu.com/ubuntu/pool/universe/t/tcltls/tcl-tls_1.7.18-2_amd64.deb
For Ubuntu/Debian X86
wget http://archive.ubuntu.com/ubuntu/pool/universe/t/tcltls/tcl-tls_1.7.18-2_i386.deb
Then:
sudo dpkg -i <deb package> |
_________________ BLaCkShaDoW Production @ WwW.TclScripts.Net |
|
| Back to top |
|
 |
abah Halfop
Joined: 01 Dec 2013 Posts: 61 Location: Indonesia
|
Posted: Thu Apr 02, 2020 4:21 am Post subject: |
|
|
| if in ubuntu, it will not work when autocovid is activated and I forgot that on Centos 7 64 bit it doesn't work like OpenBSD |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Thu Apr 02, 2020 4:26 am Post subject: |
|
|
The package you are looking for is 'tcl-tls' not 'tls-tcl' and you don't need to remove anything, just install it if you don't have it.
On Ubuntu last version is 1.6.7+dfsg-1.2build1.
Oh, and if you are on CentOS then use 'yum install tcl-tls' _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
abah Halfop
Joined: 01 Dec 2013 Posts: 61 Location: Indonesia
|
Posted: Thu Apr 02, 2020 5:01 am Post subject: |
|
|
| caesar wrote: | | Oh, and if you are on CentOS then use 'yum install tcl-tls' |
No package tcl-tls available can u give me link for download |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
abah Halfop
Joined: 01 Dec 2013 Posts: 61 Location: Indonesia
|
Posted: Thu Apr 02, 2020 5:52 am Post subject: |
|
|
if the package you mentioned I have installed and even upgraded |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Thu Apr 02, 2020 5:59 am Post subject: |
|
|
Connect to your shell and type 'tclsh' then 'package require tls' and post here what result you get. Oh, and to exit type 'exit' and press Enter.
You should get something like this:
| Code: |
% package require tls
1.6.7
%
|
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
abah Halfop
Joined: 01 Dec 2013 Posts: 61 Location: Indonesia
|
Posted: Thu Apr 02, 2020 6:06 am Post subject: |
|
|
| yes that tls packag version |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Thu Apr 02, 2020 7:30 am Post subject: |
|
|
Locate this line:
| Code: |
http::register https 443 [list ::tls::socket -autoservername true]
|
and replace it with:
| Code: |
::http::register https 443 tls:socket
|
and under the 'package require http' line add this code:
| Code: |
proc tls:socket args {
set opts [lrange $args 0 end-2]
set host [lindex $args end-1]
set port [lindex $args end]
::tls::socket -servername $host {*}$opts $host $port
}
|
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
abah Halfop
Joined: 01 Dec 2013 Posts: 61 Location: Indonesia
|
Posted: Thu Apr 02, 2020 8:36 am Post subject: |
|
|
| work for openbsd that u edit ? or centos |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Thu Apr 02, 2020 8:59 am Post subject: |
|
|
I got Ubuntu, can't tell but it should. _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
|