Advanced Programming in the #UNIX Environment
This was posted to the Fediverse by Jan Schaumann, @[email protected]
- Course website with all sample code and exercises here:
- Course videos
Tags
Advanced Programming in the #UNIX Environment
This was posted to the Fediverse by Jan Schaumann, @[email protected]
Tags
Nethack vultures-eye 1
Nethack is a very popular game amongst some techy groups. Normal Nethack is a text based game. However vultures-eye, adds some basic 3d isometric graphics to the game, making it more accessible to people.
As you explore, you come across, monsters and other residents in the dungeon, some are friendly others not so, you need to discover all this as you explore the many rooms, corridors in the game.
Depending on your character type you get a companion with you. Here the player is a knight accompanied by a horse.
I have the game working on FreeBSD, so these notes / screenshots are copied over from my FreeBSD install.
Gold (zorkomids) are the main currency, you need this to buy new goods, and receive this if you sell something.
Shops are a place to buy or sell goods.
You can see your full inventory, detailing what you are carrying, wearing or how much currency you have.
While the game maps help you keep track of where you are.
When you die, you can view all the stats on how you performed during the game.
One of the many stairways down to the next level of the dungeon, you can go up and down these as you wish. The upper most level (1) has a stairway to the outside world, choose this, your game ends. Onwards and downwards, it has to be.
CONFIGURATION
Under FreeBSD the main configuration file can be found at ./vulture/vulture.conf
However other options can be found in /usr/local/lib/vulture-nethackdir/config
vulture.conf.
So taking a look at the local configuration file, you can set up screensize, sound, sound effects etc. This is pretty much self explanatory.
screen_xsize=800
screen_ysize=600
fullscreen=0
play_music=1
play_effects=1
wall_style=full
wall_opacity=0.8
recenter_after_movement=1
show_helpbar=1
show_actionbar=1
show_minimap=1
use_standard_inventory=0
use_standard_objmenus=0
messagelines=5
no_key_translation=0
highlight_cursor_square=1
debug=0
macro1=n100.
macro2=n20s
Resources
usenet – rec.games.roguelike.nethack
#games, #rogue, #roguelike, #nethack, #vultureseye, #unix,#freebsd, #dungeon, #crawler, #VultureNethack
MidnightBSD
I decided to have a go at installing MidnightBSD so I can start playing Nethack Vulture, the game isn't available, however it does, help you install as part of the install process which is really nice.
REFERENCES
TAGS
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License
APG password generator
Debian comes with a useful command line utility called apg for generating passwords, based on criteria set when it is run.
You may need to install with apt install apg
Running just apg produces
ag"OnAub3 (ag-QUOTATION_MARK-On-Aub-THREE)
yissheav-Flas6 (yis-sheav-HYPHEN-Flas-SIX)
rek_OfDot6ly (rek-UNDERSCORE-Of-Dot-SIX-ly)
yorthIs0Ot; (yorth-Is-ZERO-Ot-SEMICOLON)
NapOl{aj6 (Nap-Ol-LEFT_BRACE-aj-SIX)
9Knyhik. (NINE-Kny-hik-PERIOD)
Where as using -m 16 produces a min length of 16 characters
apg -m 16
cryhejIryoatEpBi
DuVospewjopOtsye
veldIc@Ogguckeys
IalNexBeckOdjav1
drureroarAkucEdd
WinquivadLitsUk4
As a good password should be made up of Letters (upper and lower case) Numbers (0-9) Other characters ( !“£$()%^&* )
Then you need to run something like
apg -M sncl -m 16 -n 5
apg -M sncl -m 16 -n 5
EgUrr1slaibzydAr
IrgiOcyibgauvKan
jemUndafMinvieHo
Fliadweuldyeebup
enyaighKuedoobr3
The program man page also gives more info and an example shell script to help with the process.
man apg
shell script
[begin]----> pwgen.sh
#!/bin/sh
/usr/local/bin/apg -m 8 -x 12 -s
[ end ]----> pwgen.sh
#linux,#debian,#shell,#password,#generation,#security,#help,#scripts,#secure,#unix,#gpl,#fsf,#freesoftware,#manpage, #manual,#web,#internet,#links,#letters,#numbers, #alphanumeric,#specialcharacters
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License
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 :-
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, #unix, #nethack, #technology, #computing, #irc, #freenode, #support, #install, #configure, #x11, #setup, #netbook
You can find me on Friendica at [email protected]