Paul Sutton

irc

A few years ago, Linux Voice published a really simple IRC bot project in the magazine. I took this and managed to get it to connect to a minecraft Pi game and I could use IRC to send instructions to the game.

In the screenshot below the bot has received an instruction to execute uname -a and the output is directed to the game screen.

mc-irc-bot-thingy

To get all this to work you need:-

  • An IRC client
  • A raspberry pi which should be running Minecraft Pi and the python program, once the game has started the bot should connect.

You also need to connect to either:-

  • An existing IRC server or
  • Your own irc server, which can be another Raspberry Pi on the same network running an IRC server.

note You need to ask if it is Ok to connect bots to IRC servers.

In my code it is connecting to a Raspberry Pi (original model) running an IRC server.

It does work, but there is probably potential here for expansion and improvement.

Resources

#python, #development, #irc, #application, #minecraft, #network,#sockets #irc, #project,#abandonware,#github

Have fun.

You can find me on Friendica at [email protected]


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

FreeBSD 2

Following on from my previous post. I have been working on fixing the keyboard mapping issue.

Again, after asking for some help on this from IRC, I was given an example configuration file to work from.

/usr/local/etc/X11/xorg.conf.d/00-keyboard.conf

From this I have created a new X11 keyboard configuration file for the UK / GB keyboard layout. This now works, so at least pressing shift 2 gives “ and not @ which would happen on a US keyboard and was happening previously.

Now this is working, it is a little easier to play nethack as @ turns auto pickups off, which is very helpful when you don't want to pick up everything you come across.

#freebsd, #x11, #keyboard, #layout, #configuration, #irc, #nethack

You can find me on Friendica at [email protected]


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

FreeBSD 1

Further to my post on Vultures-eye earlier . I spent some time last night installing FreeBSD with the view to getting the game working. The page on freshports.

I also joined #freebsd on irc.freenode.net to ask for any help.

Once I had downloaded the ISO file and created an install DVD. I set about installing it. Text based installer is easy to use. Very similar to Slackware.

Once installed, I set about installing nethack with the package manager. (pkg install <packagename ) Once installed I realised that I probably need to run this through X.

I then set about installing X11 on the target netbook. This was painless, once installed started X11 with startx then ran the vulture-nethack game

Worth noting the config file can be found in /usr/home/user/.vulture as: vulture.conf

You may want to: Change the game window size Turn off music if you want to play the game and :-

  • watch a video
  • listen to other music.

The game worked fine, so I can get back to playing again.

The only issue I did seem to have was setting up a normal user account, this failed during the install process, not quite sure why, but I just added a new user with adduser from the root prompt. One thing to note about BSD is the user home director is in a different place. But that much different to under Linux.

I also installed prboom which is a free Doom game.

Given that I have never actually touched BSD at all. The ease of use is down to the great work of the developer team(s).

FreeBSD Handbook

#freebsd, #unix, #nethack, #technology, #computing, #irc, #freenode, #support, #install, #configure, #x11, #setup, #netbook

You can find me on Friendica at [email protected]


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)