The Java based tool that generates the bitmap image from the ASCII graph is called DITAA (DIagrams Through Ascii Art) (http://ditaa.sourceforge.net/).
I personally use the ditaa plugin for Dokuwiki this to embed flowchart diagrams into my Dokuwiki hosted documentation. Dokuwiki is a decently powerful wiki software similar to Mediawiki, etc. One major difference is that it uses flat files instead of an RDBMS. You can use either the flat file standard setup or the Git Backed plugin to have it as part of the SCM. Makes for much easier management and automatic documentation generation!
You can install them via the UI via the Manage Jenkins -> Manage Plugins option, or copy the downloaded hpi files into the Jenkins plugins directory and restart the service.
Manage Jenkins -> Configure Global Security -> Access Control -> Security Realm -> Active Directory -> Domain Name
Configure the base domain name. For example – directlyops.com. Hitting Test should result in a Success message. If it doesn’t, you may have to configure more settings under Advanced.
Manage Jenkins -> Configure Global Security -> Access Control -> Authorization -> Project-based Matrix Authorization Strategy
Under user/group to add, enter the name of the AD user or group you want to control access for. The domain prefix is not required.
From here, you can also assign permissions to specific items such as the ability to Run, and View a job. Anyone with the Administer permission will have the ability to see all jobs and do anything in the environment. It’s recommended you have a user in here with this permission that is tested before you remove the anonymous access rights.
That’s it! You should be able to log into Jenkins with the domain username and password (no prefix or SPN form required).
Within a Jenkins job, you can now enable Project-based security and then add the AD group or usernames to limit visibility/control to specific groups or users.
If you’re in an environment where you need or want to have a reliable audit trail for compliance reasons, then you’re likely using Redhat or Centos (selinux!). The audit trail plugin can provide a similar audit trail output to a file or syslog server.
Manage Jenkins -> Configure System -> Audit Trail
Here is where to add logger. If you want to test it, add a Syslog server logger and write to localhost port 514. The audit trail will likely show up in /var/log/messages. If you’re using rsyslog server, adding in a config to /etc/rsyslog.d/jenkins_audit.conf will provide advanced capabilities to separate out the log from the main log.
I prefer using the syslog server output, and then chaining syslog out to Logstash for ElasticSearch logging.
Job Config History
This plugin adds exact tracking of what the config changes are. It will maintain version control for system config and job configs. The audit trail is good to tell you what was modified and who modified it, this will keep track of what the changes were.
System configuration tracking is not enabled by default, and you can only restore previous Job configuration, not system (however you can see system changes).
I had an issue where I wiped this user out accidentally in a galera cluster on Ubuntu 14.04. This is how to add ‘debian-sys-maint’@’localhost’ user back into your MySQL server and then enjoy all the ‘benefits’ once more..
You can then verify the user with SELECT * from mysql.user\G
Make sure that the password in /etc/mysql/debian.conf matches the password below as THE_PASSWORD.
I have an old beat up but super nice back-in-the-day Sony Vaio VGN-TZ170N that has been sitting in a drawer for a few years. This thing was pretty much a flagship machine back when it was launched in 2007, it carried an MSRP of $2,399.99.
I figure that since I never get rid of anything and living in San Francisco means that space (for normal people) is a luxury that we don’t have (let’s say family pressure is the driver), it’s time to sell this (at least try to) to someone who will appreciate it more than me.
Built in webcam, and SD (plus Sony memory stick) card reader, fingerprint sensor.
Weight: 2.7 lbs
Dimensions: 10.9″ x 7.8″ x 0.8-1.17″ (this thing is SMALL – unbelievable how much is packed into it, even today never mind 2007).
Windows Vista Business COA on the underside.
Looks like you can even pick up a replacement (or additional 6 cell battery for $22 now.
While the RAM slot is accessible from the underside, it doesn’t look possible to upgrade it beyond the 2GB limit (maybe there is a 4G DDR2 SODIMM that would work? I don’t have one to try).
First, I grabbed a copy of Vista Business and installed it via the internal optical drive (nice!). This took *forever*, and was over 4 CDs. Once I got into Windows after waiting about 2 days to install Windows updates, I then went on a quest to kill all the background processes that jam the CPU at 100%.
End result? Machine back in the drawer for another 2 years.
I knew that there were various distributions of Linux that are aimed at low spec, or low performance systems. Since I’ve always been an Ubuntu guy, I decided to start there. The aim of this post isn’t to review the top options of lightweight Linux – I simply don’t have enough time. I can say that at some point I must have installed Kubuntu 14.04, I powered it up, there it was – works great. Uses a bit too much RAM for my liking (about half gone at boot), I started looking into other options to prep this for eBay.
The machine’s hard drive is pretty slow, and I’m also burning these to CD, so I can’t really be assed spending a long time trying them all out. Here’s a non-scientific conclusion of what I considered over the course of an hour or two:
I did look at Lubuntu as a more lightweight replacement for Kubuntu, and that’s what started this whole thing..
Super lightweight and looks ideal for purpose. However, the choice of applications preinstalled are typically considered lighter versions. For example, no LibreOffice.
Generally, the consensus seems to be that it feels a bit too lightweight or barebones. This doesn’t freak me out, as I’d install what I want to, but for eBay purposes, I moved on.
First, I had to figure out a way to burn the ISO to disc. Let’s use the Sony and the Kubuntu installation.
Since I pre-downloaded it on my Macbook Air, I uploaded it to the NAS and grabbed it from there. I have to say it was much slower downloading it from the NAS than it was uploading it (and my Air doesn’t have ac wireless).
Approximately a third of the way done, the system looks OK. Interestingly, CPU software interrupts seems pretty high.
Looking further into this, it looks like it’s the timer (IRQ 0), there’s not much I can do about that. I guess this is just related to using an old machine, and not really worth tuning.
I do note that the system fan has kicked in, Firefox is taxing the machine. No real slowdowns noticed, though.
Eventually, a cup of tea later, it’s time to write the ISO to disc. I’ve not really had much of a requirement for optical discs or drives for quite a few years now, so I’ve still had the same pack of DVD-Rs for easily over 5 years. Interestingly, they all seem to have some weirdness to them now. I’m not sure if you can see this, but here’s a photo:
I’m not holding out much hope for a 9 year old machine being able to burn a 5+ year old disc, but it’s worth a shot.
Looks like it worked fine. Verified OK, and disc verification in LXLE menu was OK too. Man, I don’t even want to sell this. 🙂
Took about 5 minutes to load past the loading screen. Be free, Be open! .. Wifi connected fine.
20 minutes to get to “Installation is complete” message.
We’re in business!
Overall it’s pretty snappy. LibreOffice worked ok, I was able to do some basic things in terminal and used Seamonkey to perform a speedtest.net run (so Flash works OK too).
Hardware (out of the box)
Bluetooth: Looks OK in dmesg, didn’t test further
Optical drive: OK
GSM modem: Looks OK in dmesg, didn’t test further
LAN: looks OK in dmesg, didn’t test further
iee1394/firewire: Looks OK in lspci, didn’t test further.
Fingerprint reader: Looks OK in lsusb, didn’t test further
Camera: Looks OK in lsusb, no driver installed.
Blue FN key presses; some work OK
Volume up/down OK
Mute OK, doesn’t un-mute
Brightness does nothing
Page Up/Page down OK
Didn’t test the others.
Right hand side of touchpad for scrolling works well.
CPU gets high, pretty much any time you do anything with the browser. It doesn’t seem to slow down the OS really from a user experience perspective, though. Right now, I guess anti-virus updates happened, and it’s using 100% of a single core doing regular updates. Overall, a nice little compact Linux laptop.
Battery life test will be difficult, it’s going to take a while to finish charging. I’m not really sure if it even still holds a charge.
Browsing generally feels OK, and modern. Youtube plays a music video smooth with no skips, although CPU is high. Works full screen too.
Now I didn’t expect Netflix to work, and I wasn’t disappointed. Before I started streaming, just after I logged in, RAM usage spiked enough to start swapping ~100MB. Once I tried to start streaming, it threw an error saying HTML5 support was needed. I guess Seamonkey doesn’t have support / correct support. Quick Google seems to show this as a known problem. I launched the Lubuntu Software Center, and grabbed Firefox from there. No dice, same issue.
Charging the battery took a long time; It’s 88% now and wants 27 minutes to fill. It was 0% (and off for years) when I started this. I switched out for a 16V 4a adapter I have from the 16V 2.2a and it only dropped to 25 minute charge time from 27 – I guess it just takes a while to charge. From 89% to empty, it’s giving an estimate of 3h 51m remaining. It looks like this thing still holds a charge!
Started on battery at 17:54
Had a game of DreamChess .. still 89%
Game of CriticalMass still 89%
I am now editing the remainder of this blog post from the laptop itself via Seamonkey. Works well, the screen is really nice.
Down to 87% remaining and an estimate of 3 hours.
Still only using 20% cpu and 450MB RAM.
Have 4 desktop spaces open, with just the Seamonkey browser on one half of the screen. The keyboard is still pretty nice to type on, except for me having a missing tab key cap.
Pandora is playing in another tab now, through the speakers at 50%. CPU 16.3%, RAM 553MB (27%) – pretty impressive memory footprint, really. 86% battery.
Went back up the blog post and edited the section adding in the blue FN key info. Down to 84%. Pandora must be dragging the battery down a bit now.
Opened the software center to see what games I can download..
Descent 1 Rebirth
Even while installing packages, Pandora didn’t skip, and I was still able to type and edit this post.
Pandora wanted me to sign in, so I launched the built-in Guayadeque Music Player to stream some radio instead.
78% after the software all installed.
Freedoom: silky smooth
Freedroid RPG – what is this game? I love it.
FreeCol ground the machine to a halt. I guess Java is a no-no. Rebooting, going to try again. 75% battery when I get back into desktop.
FreeCol starts but when I try to click past the introduction video, it sorta just hangs. I gave it a good 60 seconds to sort itself out before I got impatient and rebooted again.
It’s now 18:36 and I’m back on the Macbook to edit the blog.
FreeCiv.. works great, still 73%
Descent 1 doesn’t start
Heading back to the software store to find some more intensive games. Installing quite a lot actually, 3G of stuff downloaded, 5G installed. I killed the radio at the start of installation too.
After installing and playing a bunch of games.. generally what you could say “heavy use”, at 20:20, there’s 25% battery (estimate 1h 4m remaining).
89% to 25% battery – 2h 25m of heavy use.
Charge estimate of 25% to full – 3h 18m
Not bad at all for a laptop nearly a decade old.
Boot time: 1m 20s (usable as soon as desktop appears with no slowdown)
Wifi performance: 23Mb down/50Mb up
Usable for: basic web browsing, remote administration, Linux development, open source gaming, portability, those times where you need old port connectivity and optical drive in a nice tiny package – almost impossible to find now…
If you feel nostalgic for a bit of Windows 9x action, or you just want to play some old games that are between DOS and Windows XP, you can either build a retro PC gaming rig, or you can test the water with VirtualBox.
Once it’s all done, you too can see how pointless it all is. 🙂
What you will need:
Windows 98SE ISO (unfortunately, I can’t help you here)
SCITech Display Doctor (this will be the video driver) – https://docs.google.com/file/d/0BycgkMZbeQOzWXE5NUhnWGRycVE/edit?pli=1