Ubuntu School – Get Rolling with Webmin on Ubuntu Server 11.10

Projects
Even if some Linux purists would have you believe the command-line is the only way to go, the pragmatist in me will always take an appropriate GUI over a complicated command-line any day. You can run a lot of powerful services for your home network using one or more Ubuntu server machines. With the right tools you don't need to be a Linux expert to make that happen. The tool of choice is [Webmin](http://webmin.com/ "Webmin"). This is a set of web-based tools which allow you to control virtually every piece of server-side software on you Ubuntu server. The GUI is intuitive and straight-forward, the documentation is excellent, and the project is under active development. Because Webmin isn't in the standard repositories you will have to do a couple of quick…
Read More

Siri Cheat Sheets

Articles
Right after I picked up my iPhone 4s late last year I found myself wondering if there was a list of valid "commands" for Siri. Since it's supposed to provide "natural language" support, I was really looking for a comprehensive list of the things that Siri was supposed to be able to do for me. I found a link to a blogger who has collected together a nice [cheat-sheet of Siri commands](http://segwayne.com/apple-and-tech-stuff/siri-cheatsheets/ "Siri Cheat Sheet"). Available in both PDF and DOCX formats. While I haven't tried everything Siri can do ([I live in Canada after all](http://www.iphoneincanada.ca/iphone-4s/siri-in-canada-hands-on-no-restaurants-maps-and-directions-video/ "Siri crippled in Canada")), I've tried a lot of them, and everything that "should" work, does work.
Read More

Ubuntu School – Add an Existing User to a Group

Projects
Occasionally you need to grant an existing user some additional permissions to files, directories or applications. This typically means some kind of change in your permissions settings for the object in question. But because you can only have a single owner for a given object you need to be careful making these changes. Something you can do, though, is extend the permissions on the object to a set of users by way of a group. Logically, a group is nothing more than a named collection of users who all have the same access (by way of that group) to some resource. Users in Ubuntu typically carry one primary, and one or more secondary groups (I won't get into the differences here). By adding group permissions to your resources (ie give…
Read More

Ubuntu School – sudo Your Last Command

Projects
Sometimes we just forget that we need to specify elevated privileges on our Ubuntu machines. I do it all the time, particularly when I'm setting up a new machine. Thankfully there's a shortcut for those of us who are forgetful. If I want to restart the box I can use a command like: ``` shutdown -r now ``` But of course that command requires elevated privileges: ``` shutdown: Need to be root ``` With the fantastic `!!` argument for sudo you can repeat your last terminal command: ``` sudo !! ``` Now you can quickly and efficiently re-run that last command you forgot to sudo.
Read More

Ubuntu School – DHCP Release and Renew

Projects
It's not uncommon to need to release/renew the IP address for a given machine. This is particularly true if you're doing any kind of maintenance on your network, or are troubleshooting pretty much any kind of Internet problem. I never seem to remember how to do this, so I'm including this post as much for my own benefit as anything. What I'm talking about is the Ubuntu equivalent of these windows commands ``` ipconfig /release ipconfig /renew `` From an Ubuntu terminal type: ``` sudo dhclient -r sudo dhclient ``` Much like the Windows equivalents you can also specify these actions for a specific interface if your situation requires. ``` sudo dhclient eth0 ```
Read More

Ubuntu School – Creating a New User

Projects
There are two built-in commands for creating a user from the command-line in Ubuntu: useradd and adduser. useradd is the older command which has, for the most part, been deprecated in favour of the more user-friendly adduser command. Both will allow you to create new user accounts, set up home directories and generally move in the right direction, but adduser will prompt you for information you didn't include whereas useradd will assume you didn't want those things (ie create the home directory). ``` sudo adduser theboss ``` will produce an output similar to ``` Adding user 'theboss' ... Adding new group 'theboss' (1001) ... Adding new user 'theboss' (1001) with group 'theboss' ... Creating home directory '/home/theboss' ... Copying files from '/etc/skel' ... Enter new UNIX password: Retype new UNIX…
Read More