Software tutorials primarily focusing on useful Linux server configurations but also a few older ones on CAD packages like Revit and AutoCAD.

Network Scanning with SANE and Linux

This afternoon I thought I would have a play with Sane (the Linux scanner interface) to see how hard it is to create a network scanner from any old scanner as long as it is supported by SANE.
It turned out to be far easier than I envisioned. In my case I was running SuSE 9.2.

Install the software

You will need to ensure you have sane, saned (the network daemon) and xinetd (or inetd) installed on your system. Follow the sane docs to setup your scanner locally. This is usually just a case of finding the right sane-backend for your particular scanner.

Fixing Samba/CUPS Permission Issues

I have found that Samba < 3.0.9 has a few permissions issues with CUPS when using the printing tools from Windows desktops. It turns out that there is a few issues with CUPS permissions and Samba but these apparently have been fixed in Samba versions 3.0.12 onwards.
In the interim to fix the issue you must edit the cupsd.conf file and comment out a few lines so that you have the following:

<Location /admin>
#  AuthType BasicDigest
#  AuthClass Group
#  AuthGroupName sys
  Order Deny,Allow
  Deny From All
  Allow From 127.0.0.1
</Location>

Customised Netlogon scripts for Samba

When logging into a Windows domain there is the option to run a script on the desktop to setup drives, synchronize time and anything else that maybe required.

Unfortunately the power of these scripts are reduced by the limited functionality of the client side scripting language and Samba's inability to produce tailored batch files for each user.

AutoCAD - RayFront Importing


The 10 step guide for getting your AutoCAD model into RayFront for rendering:

1. Open your drawing

2. If the model is not in meters scale it
Command: scale  (Enter)
Select objects: all  (Enter)
Select objects:  (Enter)
Specify base point: 0,0,0  (Enter)
Specify scale factor (or reference): 0.001  (Enter)

3. Move the model to to World UCS origin
View -> Zoom -> Extents
Switch to World UCS
Command: ucs  (Enter)
Enter an option: world  (Enter)
Command: move  (Enter)
Select objects: all  (Enter)
Select objects:  (Enter)
Specify base point or displacement: Click on the corner of your model
Specify second point of displacement: 0,0,0  (Enter)
Pan to the World origin to find the model.

4. Export to a 3DS file
Menu: File -> Export
In dialog set type to 3D Studio (*.3ds).
Set a location and name for the file. Press Save
Select objects: all  (Enter)
Select objects:  (Enter)
Accept default settings for export.

5. Make new file
Menu: File -> New
Menu: Insert -> 3D Studio
In the dialog browse to the file and open it.
In the import dialog press the Add All button and press OK

6. Set up a perspective view
Menu: View -> 3D Views -> SW Isometric
Command: dview  (Enter)
Select objects: all (Enter)
Select objects:  (Enter)
Camera/Target/Distance/Points/../Twist/Clip/Hide/Off/Undo: points  (Enter)
Click on the bottom right and top left corners of the model.
Camera/Target/Distance/Points/../Twist/Clip/Hide/Off/Undo:  (Enter)

7. Save new file as a DXF
Menu: File -> Save As..
In the dialog set type to AutoCAD 2000 DXF (*.dxf)
Enter a destination and name and press the Save button.

8. Open Rayfront and create a new Project

9. Bring in the AutoCAD dxf file
Menu -> Import -> DXF Geometry
Browse to the location of the DXF file and open it.
In the Import Geometry from DXF dialog enable Closed 2D PLINEs as Polygons and press OK.
In the next dialog ensure all objects will be imported and press OK

10. Run a preview to check it all works
In the Simulations tab press Run Preview.
In the dialog press the Start Job button and wait.

If all goes well a window should appear with part of the model visible.
Move around the model and save some interesting views

From the menu: File -> Append View to rif File

Pages