Haskell Platform

2022-01-27 Thread Aaron Gray
Is it possible to get the Haskell-Platform updated to a more recent version ?

Debian has got the 2014 version on all releases.

Can someone point me in the right direction as to how to do something
about this please ?

Regards,

Aaron
-- 
Aaron Gray

Independent Open Source Software Engineer, Computer Language
Researcher, Information Theorist, and amateur computer scientist.



Debian machine and Debian on WSL unable to access debian.org !

2020-01-26 Thread Aaron Gray
I have a Debian machine and Debian on WSL unable to access debian.org !

-- 
Aaron Gray

Independent Open Source Software Engineer, Computer Language
Researcher, Information Theorist, and amateur computer scientist.



Hibernate not working !

2018-06-07 Thread Aaron Gray
I am currently running Debian Stretch and MATE desktop.

I have noticed a while back the hibernate option disappearing from desktop
options and have found this does not work.

Is there any reason for this not working on Debian Stretch or Debian Jessie
or even other Linii I have tried ?

Regards,

Aaron

-- 
Aaron Gray

Independent Open Source Software Engineer, Computer Language Researcher,
Information Theorist, and amateur computer scientist.


Re: [nodejs] Re: cannot get node dns program to work externally

2017-08-20 Thread Aaron Gray
Mikkel,

Cheers ! Knew it had to be sometyhing simple. Stange that port 80 works
with localhost 127.0.0.1 though ?

Aaron

On 10 August 2017 at 19:37, Mikkel Wilson  wrote:

> I haven't run this locally to test, but you appear to be binding only to
> the localhost address: https://github.com/tjfontaine/node-dns/blob/
> master/examples/forwarder.js#L10
>
> This should exhibit the symptoms you mention and allow it to work on
> localhost and not on remote addresses. Change this from '127.0.0.1' to
> '0.0.0.0' to bind on all addresses and it should be available externally as
> well.
>
> Mikkel
>
>
> On Monday, August 7, 2017 at 2:56:11 PM UTC-7, AaronNGray wrote:
>>
>> Hi,
>>
>> I have a node.js based dns program on port 53 and have it working as
>> localhost on debian 8.5 but I cannot seem to get it to work externally
>> despite getting the firewall rules right having tested them with Bind9.
>>
>> -A INPUT -p udp --dport 53 --sport 1024:65535 -j ACCEPT
>> -A OUTPUT -p udp --sport 53 --dport 1024:65535 -j ACCEPT
>> -A OUTPUT -p udp --sport 53 --dport 1024:65535 -j ACCEPT
>> -A INPUT -p udp --dport 53 --sport 1024:65535 -j ACCEPT
>>
>> -A OUTPUT -p udp --sport 53 --dport 53 -j ACCEPT
>> -A INPUT -p udp --dport 53 --sport 53 -j ACCEPT
>>
>>
>> Also I have done :-
>>
>> setcap cap_net_bind_service=+ep /usr/bin/nodejs
>>
>> to allow node to work with ports less than 1024.
>>
>> I have my node dns program working on port 53 UDP with dig from localhost
>> but Basically not externally on the local network and cannot work out why ?
>>
>> I have mainly been using :-
>>
>> https://github.com/tjfontaine/node-dns/blob/master/examples/
>> forwarder.js
>>
>> for testing.
>>
>> Its probably something obvious hope someone can help !
>>
>> --
>> Aaron Gray
>>
>> Independent Open Source Software Engineer, Computer Language Researcher,
>> Information Theorist, and amateur computer scientist.
>>
> --
> Job board: http://jobs.nodejs.org/
> New group rules: https://gist.github.com/othiym23/9886289#file-
> moderation-policy-md
> Old group rules: https://github.com/joyent/node/wiki/Mailing-List-
> Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+unsubscr...@googlegroups.com.
> To post to this group, send email to nod...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/nodejs/ec063c84-9f7f-4c53-a18d-921e25ebf9ba%40googlegroups.com
> <https://groups.google.com/d/msgid/nodejs/ec063c84-9f7f-4c53-a18d-921e25ebf9ba%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Aaron Gray

Independent Open Source Software Engineer, Computer Language Researcher,
Information Theorist, and amateur computer scientist.


cannot get node dns program to work externally

2017-08-05 Thread Aaron Gray
Hi,

I have a node.js based dns program on port 53 and have it working as
localhost on debian 8.5 but I cannot seem to get it to work externally
despite getting the firewall rules right having tested them with Bind9.

-A INPUT -p udp --dport 53 --sport 1024:65535 -j ACCEPT
-A OUTPUT -p udp --sport 53 --dport 1024:65535 -j ACCEPT
-A OUTPUT -p udp --sport 53 --dport 1024:65535 -j ACCEPT
-A INPUT -p udp --dport 53 --sport 1024:65535 -j ACCEPT

-A OUTPUT -p udp --sport 53 --dport 53 -j ACCEPT
-A INPUT -p udp --dport 53 --sport 53 -j ACCEPT


Also I have done :-

setcap cap_net_bind_service=+ep /usr/bin/nodejs

to allow node to work with ports less than 1024.

I have my node dns program working on port 53 UDP with dig from localhost
but Basically not externally on the local network and cannot work out why ?

I have mainly been using :-

https://github.com/tjfontaine/node-dns/blob/master/examples/forwarder.js

for testing.

Its probably something obvious hope someone can help !

-- 
Aaron Gray

Independent Open Source Software Engineer, Computer Language Researcher,
Information Theorist, and amateur computer scientist.


Re: [dpkg] broken local package system

2016-07-16 Thread Aaron Gray
fixed. I removed exim4-base and it took me back  to the terminal stage
of the postfix install.

On 16 July 2016 at 16:39, Aaron Gray  wrote:
> Debian 8 nearly a fresh install too
> see my other post as to how it got like it
>
>
> On 16 July 2016 at 16:18, Francesco Ariis  wrote:
>> On Sat, Jul 16, 2016 at 04:12:54PM +0100, Aaron Gray wrote:
>>> Hi,
>>>
>>> dpkg seems to be totally broken :-
>>
>> Hello Aaron,
>> is this Debian of Frankendebian?
>>



Re: locked out of postfix install

2016-07-16 Thread Aaron Gray
solved see other thread

On 16 July 2016 at 15:17, Aaron Gray  wrote:
> dpkg seems to be totally broken :-
>
> 
> $ sudo apt-get install node
> [sudo] password for aaronngray:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> You might want to run 'apt-get -f install' to correct these:
> The following packages have unmet dependencies:
>  exim4-base : Depends: exim4-config (>= 4.82) but it is not going to
> be installed or
>exim4-config-2
>   Recommends: mailx
>  node : Depends: ax25-node but it is not going to be installed
> Conflicts: nodejs-legacy
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
> specify a solution).
> aaronngray@aarongray:/etc/apt$ apt-get -f install
> E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
> E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
> aaronngray@aarongray:/etc/apt$ sudo apt-get -f install
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Correcting dependencies... Done
> The following packages were automatically installed and are no longer 
> required:
>   gyp libc-ares-dev libc-ares2 libjs-node-uuid libjs-underscore liblockfile1
>   libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table
>   node-archy node-async node-block-stream node-combined-stream node-cookie-jar
>   node-delayed-stream node-forever-agent node-form-data node-fstream
>   node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
>   node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile
>   node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
>   node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
>   node-osenv node-qs node-read node-read-package-json node-request node-retry
>   node-rimraf node-semver node-sha node-sigmund node-slide node-tar
>   node-tunnel-agent node-underscore node-which
> Use 'apt-get autoremove' to remove them.
> The following extra packages will be installed:
>   exim4-config
> The following packages will be REMOVED:
>   postfix
> The following NEW packages will be installed:
>   exim4-config
> 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> Need to get 0 B/501 kB of archives.
> After this operation, 1,129 kB of additional disk space will be used.
> Do you want to continue? [Y/n] Y
> Preconfiguring packages ...
> dpkg: error processing package postfix (--remove):
>  package is in a very bad inconsistent state; you should
>  reinstall it before attempting a removal
> Errors were encountered while processing:
>  postfix
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> aaronngray@aarongray:/etc/apt$ sudo apt-get -f install postfix
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> You might want to run 'apt-get -f install' to correct these:
> The following packages have unmet dependencies:
>  exim4-base : Depends: exim4-config (>= 4.82) but it is not going to
> be installed or
>exim4-config-2
>   Recommends: mailx
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
> specify a solution).
> aaronngray@aarongray:/etc/apt$ sudo apt-get -f install exim4-config
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> You might want to run 'apt-get -f install' to correct these:
> The following packages have unmet dependencies:
>  exim4-config : Conflicts: postfix but 2.11.3-1 is to be installed
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
> specify a solution).
> aaronngray@aarongray:/etc/apt$ sudo apt-get -f install
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Correcting dependencies... Done
> The following packages were automatically installed and are no longer 
> required:
>   gyp libc-ares-dev libc-ares2 libjs-node-uuid libjs-underscore liblockfile1
>   libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table
>   node-archy node-async node-block-stream node-combined-stream node-cookie-jar
>   node-delayed-stream node-forever-agent node-form-data node-fstream
>   node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
>   node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile
>   node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
>   node-node-uuid node-nopt node-normalize-package-da

Re: [dpkg] broken local package system

2016-07-16 Thread Aaron Gray
Debian 8 nearly a fresh install too
see my other post as to how it got like it


On 16 July 2016 at 16:18, Francesco Ariis  wrote:
> On Sat, Jul 16, 2016 at 04:12:54PM +0100, Aaron Gray wrote:
>> Hi,
>>
>> dpkg seems to be totally broken :-
>
> Hello Aaron,
> is this Debian of Frankendebian?
>



[dpkg] broken local package system

2016-07-16 Thread Aaron Gray
Hi,

dpkg seems to be totally broken :-


$ sudo apt-get install node
[sudo] password for aaronngray:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 exim4-base : Depends: exim4-config (>= 4.82) but it is not going to
be installed or
   exim4-config-2
  Recommends: mailx
 node : Depends: ax25-node but it is not going to be installed
Conflicts: nodejs-legacy
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
specify a solution).
aaronngray@aarongray:/etc/apt$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
aaronngray@aarongray:/etc/apt$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  gyp libc-ares-dev libc-ares2 libjs-node-uuid libjs-underscore liblockfile1
  libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table
  node-archy node-async node-block-stream node-combined-stream node-cookie-jar
  node-delayed-stream node-forever-agent node-form-data node-fstream
  node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
  node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile
  node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
  node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
  node-osenv node-qs node-read node-read-package-json node-request node-retry
  node-rimraf node-semver node-sha node-sigmund node-slide node-tar
  node-tunnel-agent node-underscore node-which
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  exim4-config
The following packages will be REMOVED:
  postfix
The following NEW packages will be installed:
  exim4-config
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/501 kB of archives.
After this operation, 1,129 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
dpkg: error processing package postfix (--remove):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
aaronngray@aarongray:/etc/apt$ sudo apt-get -f install postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 exim4-base : Depends: exim4-config (>= 4.82) but it is not going to
be installed or
   exim4-config-2
  Recommends: mailx
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
specify a solution).
aaronngray@aarongray:/etc/apt$ sudo apt-get -f install exim4-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 exim4-config : Conflicts: postfix but 2.11.3-1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
specify a solution).
aaronngray@aarongray:/etc/apt$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  gyp libc-ares-dev libc-ares2 libjs-node-uuid libjs-underscore liblockfile1
  libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table
  node-archy node-async node-block-stream node-combined-stream node-cookie-jar
  node-delayed-stream node-forever-agent node-form-data node-fstream
  node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
  node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile
  node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
  node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
  node-osenv node-qs node-read node-read-package-json node-request node-retry
  node-rimraf node-semver node-sha node-sigmund node-slide node-tar
  node-tunnel-agent node-underscore node-which
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  exim4-config
The following packages will be REMOVED:
  postfix
The following NEW packages will be installed:
  exim4-config
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/501 kB of archives.
After this operation, 1,129 kB of additional dis

Re: locked out of postfix install

2016-07-16 Thread Aaron Gray
Need to get 0 B/501 kB of archives.
After this operation, 1,129 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
dpkg: error processing package postfix (--remove):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
aaronngray@aarongray:/etc/apt$ sudo apt-get -f reinstall postfix
E: Command line option 'f' [from -f] is not known.
aaronngray@aarongray:/etc/apt$ sudo apt-get reinstall postfix
E: Invalid operation reinstall


Is there anyway to fix this ? or am I better doing a reinstall ?

Aaron


On 16 July 2016 at 11:46, Aaron Gray  wrote:
> Hi,
>
> I have a relatively fresh install of Debian 8
>
> I did a
>
> sudo apt-get install postfix
>
> The treminal then came up with a page with instructions and an 
> button, I then left this while I was waiting for my DNS change to
> resolve which took several hours. When I went back to the terminal it
> was frozen. I tried ctrl-D,C, and Z. I then had to kill the terminal
> with the close button.
>
> Then I found dpkg still running and had to kill that as apt-get would
> no longer run.
>
> Hears my sources.list file, not sure thats relevant or will help ?
>
> ~~~ /etc/apt/sources.list ~~~
> # deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD
> Binary-1 20160123-19:03]/ jessie contrib main
>
> #deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD
> Binary-1 20160123-19:03]/ jessie contrib main
>
> deb http://ftp.uk.debian.org/debian/ jessie main
> deb-src http://ftp.uk.debian.org/debian/ jessie main
>
> deb http://security.debian.org/ jessie/updates main contrib
> deb-src http://security.debian.org/ jessie/updates main contrib
>
> # jessie-updates, previously known as 'volatile'
> deb http://ftp.uk.debian.org/debian/ jessie-updates main contrib
> deb-src http://ftp.uk.debian.org/debian/ jessie-updates main contrib
> ~~~
>
> Hope you can help ! I would rather not do a fresh install if it can be 
> avoided.
>
> Many thanks in advance,
>
> Aaron



locked out of postfix install

2016-07-16 Thread Aaron Gray
Hi,

I have a relatively fresh install of Debian 8

I did a

sudo apt-get install postfix

The treminal then came up with a page with instructions and an 
button, I then left this while I was waiting for my DNS change to
resolve which took several hours. When I went back to the terminal it
was frozen. I tried ctrl-D,C, and Z. I then had to kill the terminal
with the close button.

Then I found dpkg still running and had to kill that as apt-get would
no longer run.

Hears my sources.list file, not sure thats relevant or will help ?

~~~ /etc/apt/sources.list ~~~
# deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD
Binary-1 20160123-19:03]/ jessie contrib main

#deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD
Binary-1 20160123-19:03]/ jessie contrib main

deb http://ftp.uk.debian.org/debian/ jessie main
deb-src http://ftp.uk.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

# jessie-updates, previously known as 'volatile'
deb http://ftp.uk.debian.org/debian/ jessie-updates main contrib
deb-src http://ftp.uk.debian.org/debian/ jessie-updates main contrib
~~~

Hope you can help ! I would rather not do a fresh install if it can be avoided.

Many thanks in advance,

Aaron