- Published:
- February 21, 2011 – 10:35 pm
- Author:
- By Dave
I’ve been busy lately on a number of projects, one of which is a programming class I am currently taking. The class itself is interesting, we are learning about the different types of programming languages. For our latest project, we were tasked with writing a simple program in Pascal. Pascal isn’t used too much any more since it lacks some of the features that most modern languages have, but it is good to know at least a little bit about it in case you ever run across some old Pascal programs in the wild. The syntax for pascal is a bit verbose, that is the main complaint about it. There are a number of others, but that is beyond the scope of this howto. Installing The Pascal Compiler on Ubuntu Installing Pascal in modern Ubuntu is a cinch. The Free Pascal Compiler, or fpc, is all that you need to….
Categories: Code Samples,Other Code,Ubuntu
Tagged: pascal, programming, Ubuntu
- Published:
- February 8, 2010 – 9:05 pm
- Author:
- By Dave
This is my admittedly minor but I hope useful contribution to the TinyOS development community. TinyOS is an Operating System and development framework for Wireless Sensor Networks and other platforms which has a small footprint and is very energy conscious. The TinyOS source code is available for free online for many operating systems, however it takes a long time to get the environment set up and it is not portable at all. I came across XubunTOS but it did not seem to be in active development anymore, so I endeavored to install TinyOS 2.1 and 2.x from source into a regular Ubuntu image. The most help came from Matt Keally’s Blog. While doing this, I thought it might be useful to many others who wish to develop in the TinyOS framework but might not have the skills necessary to install it. Therefore, I developed this VirtualBox image so that you can….
Categories: Programs,Software,Ubuntu
Tagged: tinyos, ubuntos, Ubuntu, virtualbox
- Published:
- December 23, 2009 – 9:26 pm
- Author:
- By Dave
We recently did some speed testing on a few of the servers on our network, and we were not receiving the speeds expected considering they were sitting on a physical 100mbps ethernet port. The servers were indeed on physical 100mbps connection, however wget (TCP/IP, HTTP Port 80) download tests showed only a max of about 1.5MB/sec (note the 8bit/byte conversion, so this translates to about 12mbits).
Categories: Linux,Software,System Administration,Ubuntu
Tagged: Ethernet, kernel, Linux, network, speed, tcp/ip
- Published:
- October 30, 2009 – 6:40 am
- Author:
- By Dave
I put this together for a project in a class I am taking, and thought it would be handy for others as well. The goal is to access a Windows filesystem and reset the password for a user, for example if someone forgot the Administrator password or the account is locked out from too many bad password login attempts. This works on all modern Windows Operating Systems: Windows 2000, 2003, XP, Vista, Win7 etc. Make sure to create a backup if you want to make sure you don’t corrupt your Windows install, as it can happen. Tools used: Unetbootin Ubuntu 9.10 Desktop ISO One flash drive, 1 gig or larger chntpw Accessing the Filesystem First we use unetbootin to install Ubuntu 9.10 to a flash drive. The flash drive needs to be at least 1GB to install the image. Select “Diskimage” and then the .iso file we downloaded of the….
Categories: Other Technology,Software,System Administration,Ubuntu,Windows
Tagged: chntpw, livecd, password, Ubuntu, Windows
- Published:
- October 16, 2009 – 9:12 am
- Author:
- By Dave
Did you ever have a situation where you needed to access a website that had an IP restriction in place? I recently had a situation where I needed to access the web via my university connection (due to IP restrictions placed on accessing databases of research papers). They do not have a VPN setup so it is hard to do this off-campus. I do however have access to a linux machine on campus. I am familiar with port forwarding using SSH but I had never used it to actually tunnel web traffic using a web browser on Windows. Turns out it is surprisingly easy! The ssh command to use is: 1ssh -C2qTnN -D 8080 username@remote_host This command sshes to the remote_host, and creates a tunnel on your localhost, port 8080. Note that you need to have private key authentication already set up for this host – it will not work….
Categories: CentOS,Linux,Security,Software,System Administration,Ubuntu
Tagged: Linux, proxy, Shell, VPN
- Published:
- May 21, 2009 – 7:22 pm
- Author:
- By Dave
It is easy to do an in-place upgrade of Ubuntu Server from 8.10 ‘Intrepid Ibex‘ to 9.04 ‘Jaunty Jackalope‘. You can do this remotely over ssh or whatever you use to control your server. Best practices say to make sure to backup your server before doing the upgrade. I’ve done several servers this way with no issues! Issue the command: 1sudo apt-get update; sudo apt-get upgrade; sudo apt-get install update-manager-core; sudo do-release-upgrade Follow any prompts to first upgrade the current distribution with the newest packages, then do the release upgrade.
Categories: Linux,Shell,System Administration,Ubuntu
Tagged: System Administration, Ubuntu
- Published:
- May 6, 2009 – 11:10 pm
- Author:
- By Dave
I recently came across a typo that existed in a bunch of html files on my web server. I thought it should be easy enough to change, but since it was in a number of files, editing it by hand would be time consuming. Fortunately, there is an easy, one liner command to replace the text in multiple files in a sub directory using recursion. grep -lr -e ‘<oldword>’ * | xargs sed -i ‘s/<oldword>/<newword>/g’ This command broken down: grep for the word in a files, use recursion (to find files in sub directories), and list only file matches | xargs passes the results from the grep command to sed sed -i uses a regular expression (regex) to evaluate the change: s (search) / search word / target word / g (global replace) For more information, see man pages for grep, sed, and xarg. Also it is very handy to….
Categories: CentOS,Other Code,Shell,System Administration,Ubuntu
Tagged: command line, Linux, tips