Thứ Tư, 17 tháng 10, 2012
Thứ Năm, 6 tháng 9, 2012
Ubuntu ~ vsftp add user account to www root
不像windows用ftp程式架ftp
是在程式裡新增account跟指定目錄
vsftp是新增一個系統的user
sudo adduser YOUR_USER_NAME
像我新增使用者bitty就是
sudo adduser bitty
然後登入的目錄是在/home/bitty/
要修改成在/var/www/
下指令
sudo vim /etc/passwd
把剛新增的user
我是叫bitty.....
後面的目錄改成
/var/www/
這樣用bitty登入就會直接到網頁上的跟目錄
reference
http://blog.udn.com/nigerchen/2261345
http://www.berecursive.com/2011/amazon-ec2/installing-vsftpd-on-an-amazon-ec2-ubuntu-instance
Thứ Tư, 5 tháng 9, 2012
Ubuntu ~ set user, vsftp authority, vsftp can't write file
就是成功把user登入的目錄換到/var/www/
可是沒權限寫入檔案XD
下這指令就解決了~
我的user名稱是bitty
chown -R bitty /var/www
修改vsftpd.conf
guest_username=btty
reference
http://blog.csdn.net/debehe/article/details/4154755
Thứ Ba, 4 tháng 9, 2012
Ubuntu ~ install LAMP
sudo apt-get install tasksel
sudo tasksel
select LAMP server
and install
reference
http://www.unixmen.com/install-lamp-with-1-command-in-ubuntu-1010-maverick-meerkat/
Ubuntu ~ enable apache mod_rewrite
然後再restart apache
sudo /etc/init.d/apache2 restart
reference
http://thinkdiff.net/ubuntu-linux/ubuntu-enable-mod_rewrite-in-apache-server/
vi command
會這三招應該簡單的修改都可以辦到了XD
i為進入編輯模式
按Esc打:w為儲存
按Esc打:q!為離開
http://www.washington.edu/computing/unix/vi.html
Chủ Nhật, 24 tháng 1, 2010
Linux Network Printing from progeCAD using Samba
One common network configuration for business file storage and printing is the use of Linux file and print servers on low-cost PC hardware. The advantages of UNIX & Linux servers in an SMB office automation environment are:
- Linux (also some UNIX, i.e. Solaris) is free to download
- Linux is secure, fast and stable
- Linux is scalable and highly configurable
Microsoft Windows, on the other hand, does work very well for supporting graphical end-user applications. progeCAD is a strongly graphical, end-user application for AutoCAD-compatible Computer Aided Design. To connect Windows PCs to a Linux back-office, we use Samba server. Samba is free Linux server software for sharing Windows folders or printers on a network:
However, Samba will slow progeCAD's performance if not correctly configured. Samba is packaged for a wide variety of Linux types ("distributions") and installation is best carried out with free packages available for your version of Linux. Here are some more tips for setting up a network USB printer.
Once the USB printer is itself correctly configured by the local Linux printing subsystem (CUPS, LPRNG, UNIX LPR) the printer is then "shared" by its queue name onto the Windows SMB network in the Samba configuration (usually smb.conf, section shown here for Debian Linux - see Samba website for complete configuration details):
[printers]
comment = Sample Printers
path = /var/spool/samba
create mode = 0700
browseable = yes
writable = yes
guest ok = yes
public = yes
printable = yes
use client driver = no
printer admin = root
[My5500]
comment = Demo Example HP 5500 colour (change this with your own printer)
path = /var/spool/samba
browseable = yes
writable = no
guest ok = yes
printable = yes
default devmode = yes
use client driver = no
printer admin = root, administrator
Explanation: Driver configuration can either be client-side or server-side. We strongly recommend server-side drivers (default devmode = yes, use client driver = no) for speed and reliability. Only the Linux administrator is here given permission to "set up" the printer on the server side (printer admin = root). However this creates some challenges. The Windows driver will need to be "uploaded" to the Linux server. We will need to create an additional Samba configuration for allowing this:
[PRINT$]
path = /var/lib/samba/printers
guest ok = yes
browseable = yes
read only = yes
write list = root
admin users = root
create mask = 0644
directory mask = 0755
Once smb.conf is saved, Samba needs to be restarted. A quick network browse of our Linux machine from Windows (i.e. from Windows Explorer type '\\server-name') should list the shared printers and folders on that 'server-name'. NOTE: For security purposes we have only allowed "root" (and administrator) any kind of admin rights to the Samba printers. Our problem is that Windows doesn't have a UNIX user called "root". We get around this by initially connecting to our new shared printer from the DOS / Command prompt as follows:
runas /netonly /user:root "rundll32 printui.dll,PrintUIEntry /p /t3 /n \\server-name\printername" (i.e. \\pc123\My5510 in this example)
You should be prompted for the Linux password for "root", and then prompted whether you want to select a Windows driver at this time - click "No".
A spartan Properties Box for this printer should appear. Click on the "Advanced" tab along the top of the box and click the "New Driver.." button. Select a 'Generic -> Ms Publisher Color Printer' if you want to send Postscript to your Linux printer (this is a good idea, CUPS will automatically reformat Postscript files to something usable by the actual USB printer hardware if correctly configured). Windows should begin uploading the local driver from your PC to the Samba server. Now click the "Apply" button at the bottom of the properties box and you should see several more tabs appear in this dialogue box if everything goes as planned. You may now close this Properties Box.
Because "administrator" is also listed as an admin for our My5500 printer, Windows administrator can make centrally-stored changes to this Samba printer (like setting paper size from Letter to A4, or changing the Postscript mode). NOTE that we have thus far only highlighted steps to configure Samba printers on the server side. Now we can finally add this as a Windows printer by navigating to \\server-name in Windows Explorer, right-clicking the printer and clicking "connect" from the drop-down menu that appears.
This post does not completely cover Samba configuration, only those tips found best practice for printing. We have found the above approach to offer best performance and reliability for printing to Samba server on Linux in progeCAD IntelliCAD (as well as Microsoft Office applications) from Windows. However other procedures may work better for different plotters and we welcome your comments here.
Thứ Hai, 22 tháng 6, 2009
Joy of progeCAD 2009 under Wine in Debian Linux
We were able to accomplish several things following these steps: install progeCAD, activate progeCAD (online method), load a file, etc. Our test involved using a stand-alone license key (although NLM client might also work). progeCAD runs stable but slow (depending on your core(s) speed and OpenGL acceleration). Here we go:
1) Update to the latest WineHQ (1.1.x). Debian users can add the following line to /etc/apt/sources.list:
deb http://wine.budgetdedicated.com/apt etch main
2) apt-get install libwine wine wine-dev
okay you really don't need wine-dev development packages, but like isn't that the whole point of Linux .. whatever .. okay next step...
3) Install IE6. No joke. A platform like progeCAD often connects to a lot of the same dependencies as the world's most favorite web browser ..okay ..whatever.. we use ies4linux for this. Please visit the site for download directions specific to your favorite distro and get lovely IE6 and friends rocking in your local .wine profile.
4) Install VBA. This is possible now because ies4linux already set up DCOM libs for us. Winetricks is probably the best trick for this:
wget http://www.kegel.com/wine/winetricks
and run the ./winetricks GUI and pick what you want, but at least pick the VBA6 runtime. Winetricks should do the rest for you.
5) Install progeCAD. You can download progeCAD HERE.
6) progeCAD install seems to go well right up to the VBA installation at the end it flops (so far - we are working on it). But no matter, you can always reinstall Windows VBA for progeCAD IntelliCAD by sorting into your local subdirectory:
~/.wine/drive_c/Program\ Files/progeSOFT/progeCAD\ 2009\ Pro\ ENG/vba/
and installing VBA manually:
msiexec /i VBAOF11.MSI
WINE actually sets up a KDE icon on the desktop for you to launch progeCAD, we didn't try GNOME or XFCE. Otherwise you may have to create an action leading to the icad.exe executable in your .wine profile. So progeCAD should work now as so...

Some comments, progeCAD is a lot less demanding on system resources than AutoCAD, so it was actually possible for us to still work with progeCAD under this emulated environment. Real time pan and zoom function using the mouse buttons worked too but was so slow on the machine with on board graphics it could hardly be called real time anymore. The command interpreter disappeared once while minimizing / maximizing the progeCAD Window in KDE, but moving the window a bit around somehow brought it back again. Go figure..
Thứ Hai, 30 tháng 3, 2009
VariCAD 2009 CAD for Linux and Windows Includes Parametrics
- support for parameters
- support for geometric constraints
- enhanced possibilities for insertion and transformation of solids
- new possibilities for editing shells
- improved work with true type fonts in 2D
- improved STEP file compatibility
- improved DWG file compatibility and more

The documentation includes several new Adobe flash video demonstration tutorials for learning the VariCAD Parametric system. Linux 3D CAD users should especially appreciate these new features on a native VariCAD Linux system. Debian/Ubuntu .deb and RH .rpm distributions will be available for download. For Microsoft Windows VariCAD can be downloaded free for 30 days HERE.
Thứ Ba, 25 tháng 3, 2008
VariCAD 2008 1.03 3D CAD for Linux and Windows Released
- support for 3D threads (threads at bolts, screws and nuts, including library parts; threaded holes, etc.)
- improvements in shells and surface development
- new 3D kernel capabilities (e.g. Boolean intersection, improved 3D chamfer tool)
a new tool for spherical solids - new BOM and title blocks' features
- further impoved STEP file compatibility
- a possibility of setting antialiasing for better display in 3D (graphic card settings)
and more.
VariCAD can be downloaded for free and used for 30 days before buying a license. VariCAD is ideal for small 3D sheet metal, industrial jig and fixture design, as well as more general drafting projects. There are a number of tutorial videos online to help users learn CAD design with VariCAD.
