Skip to main content

Posts

More fun with Linux

There are two things that can help you to have some fun with Linux. The first is VirtualBox . Since you are not using it for commercial purposes, you may download and install the full-featured version for your host operating system. If you are a MS Windows user curious about Linux, this is ideal for you. If you are a Linux user curious about different distros, this works as well. After you install VirtualBox on your host operating system, you need to learn how to use it. the VirtualBox site has excellent documentation . My suggestion for configuration are give the virtual machine the maximum amount of RAM and video memory that is practical and set the network choice to "bridged" rather than "NAT". Next stop is to download the NetbootCD . This CD contains enough of an OS to enable wired Ethernet connectivity and download and install several Linux distros via FTP. What can you install? Ubuntu Debian GNU/Linux Fedora openSUSE Mandriva Linux Scientific ...

Mageia

The first release of Mageia 1 is out. You can download it from here and read the release notes here . If you've used Mandriva Linux , you'll feel right at home with Mageia. Mandriva has always had a reputation of working well for both the novice user and the power user. Installation is typically easy and hardware support is among the best of any distro. The user and administrative tools are comprehensive and easy to use. Of course, under the hood, it's all Linux and all configuration files are plain text files and all a competent administrator needs do is to choose a shell and a text editor. Mandriva has also been known for excellent default fully-featured configurations of the KDE, GNOME, XFCE and LXDE desktop environments as well as a broad range of available applications. Mageia is no exception in this regard. For the average user, the changes are mostly cosmetic. The Mageia art, colors and graphics are very well done (and contributed by the Mageia user communi...

Reverse SSH Tunneling

I have a small auto shop and having Internet access there comes in handy when I need to find auto-related information, order parts or just surf the web and do some email. Until recently, I've used a EVDO modem and got 10x dial-up speeds, but at $65 a month, it just got to be too great an expense for such low speeds. My next-door neighbor came to the rescue and allowed me to share his fiber-optic Internet access via a wireless connection. But that arrangement came with a downside. Previously, I left the EVDO connection open and could ssh into my work computer (all my systems run Linux). But now I had no access to his router/firewall and when I asked my friendly neighbor about port-forwarding an ssh connection, all I got was a blank stare. Luckily, Jason from my TWUUG group suggested tunneling over ssh , diagrammed in the image above. This is how it's done. On my shop computer, I run: $ ssh -R 2222:localhost:22 hoyt@home.ip.net and then on my home computer, I run: ...

Changing File and Directory Permission en masse.

Running msec on one of my Mageia Linux machines turned up a number of world-writable files. These are potential security problems, especially on a machine that faces the Internet. The obvious solution was to use chmod to remove any world writable permissions. But there's the problem. The chmod command has a recursive directive, -R , that would work except that it would change permissions on the directories as well. After all in *NIX, all directories are files. Thanks to my friends at TWUUG , I discovered that the find command, used with its -exec directive could accomplish what I wanted. find /xxx -type f -exec chmod o=-w {} + ; Breaking this down: find - the find command itself. Depending on what files you are modifying, you may need to be root. /xxx - the path to where the files are located. -type f - this tells find to look for files; type d would tell it to look for directories. -exec - this directive tells find to execute the command that follows, in ...

Going Postal with Postal2

I have always enjoyed computer games that are out of the ordinary. Postal2 by Running With Scissors is certainly that. It is both amusing and offensive in a very politically incorrect way, featuring Gary Coleman, the Taliban and dead cow heads. At postal2.maximumhoyt.com , I am in the process of documenting how to install and run the game on a Linux computer as well as run the win32-only 1409X version of the dedicated Postal2 server. The site is also providing me with experience in site development using SSI ( Server Side Includes ) and Cascading Style Sheets ( CSS ). UPDATE I have no made any progress other than to realize that the 1409X version can only run well under MS Windows, so it looks like a VirtualBox WindowsXP instance would do the trick, but my webserver lacks the computing power to do that, so it looks like I'm waiting on a hardware upgrade to move forward.

A screen-like command for X applications

The screen command has been very useful for running programs on remote machines because you can detach the sessions and log out of the remote machine and the application is still running remotely. It would be nice to do that with a graphical application since you can connect to a remote graphical application via X or VNC or similar applications, any graphical application terminates when you close the session. That's changed with xpra . Connecting to an X server (the special Xvfb server, basically an X server minus any video drivers so it can run on a headless computer -- yes, X with no video card) as a compositing window manager on the remote computer allowing you to log in later (even from a third computer), re-attach the session and the program is still running. The parent project that includes xpra is partiwm , a tiling window manager. The current version of xpra has many enhancements from the version originally reported here. Compiling and Installing on Mandriv...

Mandriva InstantOn

Mandriva InstantOn is a variant of their main distro based on their commercial product named "Mini". InstantOn is a boot-in-20-seconds minimalist Mandriva 2010.0-based distro aimed at providing a few applications (web browser, email, Skype, instant messaging, video and pictures) with a simple interface (just a few icons to single-click on). The InstantOn iso image is an install image which can be transferred to a flash drive or a CD, whichever you prefer to boot from. It will install itself by default into a 1.8GB partition # 1 that it will create on your hard drive. You may choose to use custom partitioning or use the existing partitions. To gain admin access in InstantOn, click on the Multimedia icon, then the Home icon. Navigate to /usr/bin and click on the xterm icon. "su" to root: the password is "mini". To add software, use vi to edit /etc/mandriva-release to Mandriva Linux release 2010.0 (Official) for i586 , then add the 2010.0 reposit...