art's abode

art.csoft.net

Archive for the ‘software’ Category

Installing Debian 40r6 for Sparc

with one comment

If your Sparc is not set to automatically boot from CDROM, you might find the following handy.

Requirements:

  • Sparc (tested on UltraSparc 10)
  • Debian image
  • ISO burning software
  • Monitor and keyboard for Sparc (alternatively, run from serial terminal—serial cable required for this).

Instructions:

  1. Download the debian sparc netinst iso image.
  2. Burn the image to CD.
  3. Put the CD into your Sparc.
  4. Power off the Sparc.
  5. Plug in keyboard, mouse, and monitor.
  6. Power on the Sparc, you should see the POST and the machine initializing memory check.
  7. Hit STOP-A. You will be brought to the “ok” prompt.
  8. type “boot cdrom”.
  9. Run through regular Debian setup process.

That’s it.

You may want to read this previous post for installation caveats regarding MBR, SILO, and serial terminal install.

Written by art

February 1st, 2009 at 7:57 pm

Posted in sparc,unix

Tagged with , , , , ,

dadadodo for lulz and profit

without comments

Ok, so I reckon my first attempt at dissociation wasn’t so great. Recently, I compiled all my IRC logs from 2004 to current, and ran it through for some better results (having pored through the other 99.9% utter mumbo-jumbo it generates).

Three hundred odd megabytes of IRC banter…

-rw-r–r– 1 art art 332202514 2008-02-20 23:50 irc.log.2004.2008

… which is a mere 6.74 million lines …

6747292 lines

… process wildly for about an hour at gas mark 6 …

real    62m19.124s
user    10m46.532s
sys     0m9.589s

And out come a few tasty treats:

Buy a gay Gangsta / The ass down; dead sexy G / arfer gotta reboot computer / Well you don’t have a beard! / Lisa is not too, unstoned / im jackie chan takeover never even if u want / Aftermath, prevention.  Full paychecks Fraggle. / Cnn, was real sickening robcool. / hehe stupid cockos stupid calculus? / Elm: what he came to finish your asscrack / A Leetle HAHHHHHHSSSHHH! / digit null: has attained level in stupid / more in theory of my fire slowing the connection / I can shoot it fack / Its fuckin gets your fuckin nick now / Next level Next year Robcool.  Badapbapbapbap / …

Kinda bit depressed; unwanted

… / And all go once and bait, etc, clarkee. / stripey fuq all of idlerpg. / Unf Unf unf unf centry tastes arf clean it appears / Though.  Fighting kobi: pescado namssa. Crazy, weepy tooof; / die, jimmy. / ubuntu linux is now online stuff / Fncypntz: hotboxing the face (off signoff Vision and: a bowl accidental / the Worst thing is Seafood its a: depressed Robcool. / Bobsaget, the Council isn’t gay. / Might be about a south america asia jerk striphy / arf; damns i m fakeidler. / long Faggot taking picz unstoned unstoned imvfpisssed unstoned just communicate with you do my vibrator hookup. / Baub you’re tainted authority / i would be satisfied!  Fncypntz. / Yeah good luck to verruca / Rofl plus extras / I have to the bottom of the lunch time you can carry around with your cock in day making snickers / Look like having arf call you biatches has ill give; / I don’t support arfyarf: bbiaf / got in Iraq, Us the Connection reset by peer, Voltron got it rst / Those hot like a Differential equation / Deuce. / Three words you fixed zombie / Heheh pescado es bueno hay mucho Infamous / This world is first. / Tuck Tuck was like fuck / Ok enough of lies. / Well lookie IMPOTEEEENNNNCEEEE arfyarf. / penis join join to somewhere But I dont I suppose the americans smegma Rampage / Superfriends is you / But it’s crack house once i have corn flakes / there is arfer: ban him / Fag?  Werent lyin tumble.  Jimmy he could find anyone Want me / Bsd is now known as bloated / Lol meiso its tea joint lush and you enjoyed use Maxells flame flame, again did! / Gonna go for this brand of english men / It’s offical reunification was for valentines?  Whooo wouldnt smoke man! / tomorrow most of that be something Robcool; grapenuts; gooses. / Apmannen (reaches next level next level aznsensation)! / hahaha arf it’s arf so it sucked, apparently / Gay arf: arf. / Get laid tonight.  Oh my account. / So many many girls mad glad to the answer (these dried saliva produced stripey). / Aye man, this that was kicked from vagina?  Haha / girlies are into to stripey. / The level procrastinator, is supposed to tear down arf / …

I’m beginning to learn a few things more about my Sparc based on these scientific findings. I do believe he’s a raging homosexual, and a drug addict. Fascinating.

Written by art

March 1st, 2008 at 12:26 am

Recursively cat’ing all files in a directory

with one comment

$ cat `find /directoryname -type f`

Written by art

February 21st, 2008 at 12:07 am

Posted in shell

Vista SP1 RTM

without comments

Got my paws on the RTM of Vista SP1 yesterday night, and upgraded earlier today off a mostly-clean 6000 build, without a hitch. Apart from rebooting a handful of times and taking about 2 hours on a new notebook, I haven’t run across any problems yet.

SUA SP1 also works (and is more or less just as slow and shitty).

Anyhow, it’s somewhat exciting to have a moreso Server 2008-like kernel.

Written by art

February 17th, 2008 at 2:54 am

Calibrating Finger Input

without comments

In Vista, if you have a capable screen, you can input not only with Wacom (“Penabled”) pens, but also with your finger. If you find that the calibration settings are completely off (which they seem to be by default), run in console as administrator:

tabcal novalidate

Written by art

February 2nd, 2008 at 2:11 am

boo network code: simple telnet/web server

without comments

Shamelessly modified from the boo example sources, but it’s enough to get you started:

import System.IO
import System.Net
import System.Net.Sockets

server = Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
server.Bind(IPEndPoint(IPAddress.Any, 8200))
server.Listen(1)

while true:
        socket = server.Accept()
        using stream=NetworkStream(socket, true):
                print(StreamReader(stream).ReadLine())

                writer=StreamWriter(stream)
                writer.WriteLine(“Ahoy, this server is running: ${shell(‘booc’, ”)}”)
                writer.WriteLine(“${shell(‘cat’, ‘/proc/cpuinfo’)}”)
                writer.Flush()

MSDN’s System.Net Namespace docs might could also be of use. I’ve tested this on sparc and x86 linux variants with mono.

Hope you find this useful, network programming seems to be a relatively familiar experience if you’ve done it before in another modern language, just took a little bit of scrounging to dig up.

Written by art

January 31st, 2008 at 11:16 pm

boo versus ruby

without comments

Here’s a document I ran across today which details some of the specific differences in the two languages. Just one of the many glorious tidbits:

Boo uses CLR threads, which generally map one-to-one to kernel threads and therefore exploit multiple processors and are fully preemptive.

In contrast, Ruby uses lightweight threads – threads implemented within the interpreter. Because of their extremely low switching latency, they can be used in situations where kernel threads impose too much overhead…[b]ut Ruby’s threads are limited to one CPU, and block on OS calls.

Microthreads can be implemented in user libraries, but only cooperative threads (as far as I know). I don’t know how important preemptive (within the hosted language) microthreads are. But the CLI (and therefore, Boo) seem to have no standard library implementation of lightweight threads.

All this is specific to the main Ruby implementation. JRuby, like Boo, relies on the underlying VM’s threading model – the JVM’s, in this case – and so its threads are generally fully preemptive and exploit multiple CPUs.

At the end of the day, I suppose comparing boo with ruby is a bit like comparing dicks to pussies, as ruby is an interpreted language through-and-through, whilst boo can be run, for instance using booi in interpreter mode, or using booc compile CLI bytecode binaries (which are absolutely tiny compared with, for instance, ruby2exe’ing a ruby project) to be run with mono/.NET or other CLR.

Also gotta love the mention of the JRuby: now we’re talking optimized best-of-breed solution. Lulz.

Written by art

January 31st, 2008 at 9:24 pm

Posted in boo,development,ruby

Installing Linux on an UltraSparc 10 via serial console

with 2 comments

Aye, the Ultra 10 (Model 440) finally came in yesterday.

Headless mode install definitely works–here’s how:

  1. Get your Linux media burnt. Ensure your bootloader settings support serial console I/O (I tried using a nightly ubuntu-server/sparc .iso).
  2. Get your serial console working with your Ultra 10. You will need a DB9 (com) port, which is commonly called ttyb. If your sparc didn’t come with one, you can order them online.
  3. You will need a null modem cable, and a terminal on the other end of the cable to capture I/O.
  4. Boot via serial console, OpenBoot will load, at the “ok” prompt, type “printenv”. Take careful note.
  5. Set any variables you need to, using “setenv” (i.e., to ensure your terminal settings are correct). Some useful ones: auto-boot?, boot, input-device, output-device, reset.
  6. You can also do this in blind-mode: headless using a keyboard plugged in locally to the sparc, hitting STOP-A once the keyboard LEDs stop blinking, and setting output-device and input-device, for example, to terminal, or screen/keyboard.
  7. Now that it’s all working, put in the Linux media, boot, and at the “ok” prompt type “boot cdrom”.
  8. Install your distro. All the stock hardware should be supported. Make note that SILO (LILO for Sparc) has specific requirements in terms of the disk (it must be installed within the first gigabyte).
  9. It failed during the ubuntu-server setup process. Continue it regardless and complete the installation process.
  10. Reboot the cdrom, and enter rescue mode. Mount the drive(s) that you just installed, and install the silo package (i.e., using apt-get for debian/ubuntu). It installed without incident for me here.

This information was tested on an Sun Ultra 10, 440-MHz UltraSPARC IIi, 2MB external cache, 1GB memory, 3D card, 2 x 9GB disk drives.

Written by art

January 25th, 2008 at 1:46 am

Posted in hardware,terminal,unix

MAngband-Vista out for testing

without comments

Today I ran the Windows binary package of MAngband 0.7.2a. Apart from missing walls and other things, it would consistently crash when I typed ‘:’ to chat. Pretty annoying.

As a result, I’ve compiled a Vista-compatible version of MAngband. You will need at least the Cygwin base set installed, as MAngband requires terminfo definitions. You can check out the project page with all the relevant downloads and information at MAngband-Vista. I hope to release updated versions of MAngband-Vista as new versions of MAngband are made available, and until these issues with Vista are resolved in the official distribution.

Written by art

December 14th, 2007 at 1:48 am

Getting BSD, Home, End, Putty, and screen to play nice

without comments

… you can try putting shit into your /etc/inputrc (or ~/.inputrc):

"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word

You will have to re-login to your terminal session for these changes to take effect. But that may not fix anything in screen, until you change the $TERM in your screen session:

bash-3.2$ cat ~/.screenrc
term linux

… which means you have to restart your screen session for the changes to take effect. "term vt220" is also a good choice, but if you tend to use syntax highlighting with vim, for instance, or any other high-tech features of your system, it may look ugly-underliney.

Written by art

December 7th, 2007 at 12:26 am