I try to write how to configure the development environment from very first time on Mac. this blog is a series. if you want to know other development environment, see other blog posts.
Outline
in here, I’ll introduce how to configure iTerm and zsh on Mac.
iTerm Installation
click the link below to go to
iTerm download page.
you can see the screen like below, click
Stable Releases to download.
File system formats available in Disk Utility on Mac. Disk Utility on Mac supports several file system formats: Apple File System (APFS): The file system used by macOS 10.13 or later. Mac OS Extended: The file system used by macOS 10.12 or earlier. MS-DOS (FAT) and ExFAT: File systems that are compatible with Windows. Open Disk Utility for me. Just drag and drop your files and folders to the Dock icon or the Keka window to create a slimmer version of them. Keka needs a helper to set itself as the default application. Simply download and extract it, move it to the desktop and then open it. Download KekaDefaultApp v1.0.2-r.8. File can be encrypted with multiple public keys (presuming multiple people are allowed to access the file) if Alice wants to encrypt file so that only Bob can decrypt it she needs to ask Bob to send his public key and select only this key when encrypting file; One of the matching Private keys is required to decrypt (unlock) the file.
unzip
zip file you downloaded and install it.
if iTerm asks you
Full Disk Access permission, click Open System Preferences on the right bottom.
you can see the nice explanation and
Security & Privacy is activated. click the lock shape on the left bottom, and insert your password to make editable.
select
Privacy on the top tab, and click Full Disk Accesss on the left list.
click
+ button on the right side. go to Applications , and select iTerm and click Open .
if Mac asks you that you want to quit
iTerm , click Quit Now to quit iTerm .
after it, check iTerm is executed.
zsh
zsh makes Terminal easier to use. if you want to know more details, click the link below.
you can find the installation on zsh official site like below.
open iTerm or Terminal and execute the command below.
after installing, you can see the screen like below.
Configure zsh to iTerm Default Terminal
iTerm’s default is to use the basic shell. let’s set iTerm uses basically zsh.
execute iTerm and click
iTerms2 > Preferences... on the left top.
you can see the screen like above. click
Profiles tab on the top. insert /bin/zsh in Command on Command section on the right middle.
after it, restart iTerm. you can see
zsh is executed by default.
Configure iTerm Theme.
there are many themes for iTerm. you can configure the theme what you want. in here, I’ll introduce how to set
iterm2-solarized theme.
click the link below to download the theme.
when you click the link above, you can see the theme file contents. push
command + s to save it.
before you download it, change to
All Files on Format on the bottom. and check the end of the file is .itermcolors .
open Preferences of iTerm again.
click
Profiles > Colors like above, and click Color Preset... > import... on the right bottom.
select
Solarized Dark - Patched.itermcolors file you downloaded above.
select
Color Preset... again, you can see Solarized Dark . click it to change the theme.
Configure Powerlevel9k
to show more information on zsh, let’s configure
Powerlevel9k . you can see the screen like below, when you execute current iTerm.
execute the command below to download
Powerlevel9k .
zsh’s configuration file is
~/.zshrc . open it and set Powerlevel9k.
find the theme configuration.
change the theme from
ZSH_THEME='robbyrussell' to ZSH_THEME='powerlevel9k/powerlevel9k' and save it.
to restart iTerm, you can see the screen like below.
you can see user information and
? . the question mark is shown up when the font is not set. click the link below to go to the font download site.
when you click the link above, you can see the screen lik below. click
View Raw to download the font.
after downloading it, click the font file to execute it.
Draw Io Mac Download
click
Install Font on the right bottom to install it. after installing, open Preference on iTerm again and click Profiles > Text > Change Font .
select
Meslo LG M Regular for Powerline what we downloaded above.
when you execute iTerm, you can see the screen like above.
I don’t like to show my long username, so I configured it not showing up. execute the command below if you want to hide it.
add the content below to the bottom.
or you can customize it like below.
you can see the details about the option on the official site.
restart iTerm. you can see the user name not displayed.
Connect vscode and zsh
in here, we’ll set
code command of vscode on zsh, and zsh to vscode’s default terminal on vscode.
Configure vscode command to zsh
execute the command below to open zsh configuration file.
add the content below to the bottom of the settings file.
restart iTerm and execute the command below to check vscode activated.
Configure zsh to vscode
click
Code > Preferences > Settings on the left top of the vscode.
search
shell and change /bin/bash to /bin/zsh on Terminal > Integrated > Shell: Osx .
if you see
Edit in settings.json instead of the screen above, click the link and add the content below.
also, search
fontfamily and set Meslo LG M for Powerline on it like below.
after it, to execute Terminal on vscode, you can see zsh executed.
Github Sponsor
Was my blog helpful? Please leave a comment at the bottom. it will be a great help to me!
Introduction
What is Stud.io?
Bricklink Stud.io (SIO) is a freeware computer program produced by BrickLink Limited; it is available for macOS and Windows (32-bit and 64-bit), and it allows users to build models and scenes using virtual Lego bricks, in a computer-aided design like manner.
What is an IO file?
A three-dimensional model or scene created by Bricklink Stud.io (SIO); it is saved in a password protected compressed .ZIP format and contains six files:
What is a scene?
One or more models can be put into a scene, with additional floor and background, one or more light sources and a camera that determines how is the scene is viewed. An .io file can contain a single model, but it can also contain many different models, for example a self-build LEGO city.
What is this Guide to Stud.io?
Rebrickable has about 8,500 MOCs (My Own Creation), new and unique LEGO models designed by fans, which you can build once you own one or more official LEGO sets. The building instructions for these MOCs can come in the form of an .io file, and if you have no idea what to do with such a file, this guide is your answer. It will show you how to download and install the Stud.io program, how to load the .io file, and how view or generate the building guide.
This guide also contains links to useful video tutorials, a tips & tricks section and chapters on how to get help and how to connect SIO to other available programs. The guide is one of a three part series (Guide to LDD, Guide to Stud.io and Guide to Rendering) with a seperate general introduction on Virtual Building.
The latest version of Bricklink Stud.io, 1.0.0_153, is available at Bricklink.com. The program comes in three versions, one for MAC OSx (OSX 10.8 or higher) and two for Microsoft Windows (32-bit and 64-bit). The 32-bit Windows version will run flawlessly on Linux under Wine. Click on the Download button for the Mac version or the alternate version links for Windows to download the desired version.
For Windows: save and run the installation program stud.io.exe (64-bit - 105.8 MB) or stud.io_32.exe (32-bit 112.6 - MB). The program will then unzip and start the installer. Make sure that the licence agreement is ticked and then click next. If needed, add a shortcut to the desktop. After clicking Install the software will be extracted. This might take quite a long time, as Stud.io contains the entire LDraw parts library and each part has to extracted. Then click Finish to end the installer. You should now have a Stud.io option in your main menu.
For Linux: open the installation program stud.io_32.exe with the Wine Windows Program Loader. Make sure Wine is fully initialized before starting the installation (run Configure Wine at least once). Then follow the procedure above.
For MAC: save and double-click the installation package stud.io.pkg (170.2 MB). Once the installer starts, follow the procedure above.
First Steps
Each time the program is started, it connects to the Internet and checks for any updates. If a newer version is found, you have the option to install it immediately. Stud.io contains a special program (Patcher.exe) which can update both the main Stud.io program as well as the LDraw part libraries. The Menu > Help > About stud.io box shows the version number (1.0) and the current build (148).
The opening dialog (also available under Menu > Help > Welcome to Stud.io) shows four main start options:
Below the start options the dialog shows the last four models, and on the right there is a series of links to help pages, the Bricklink Gallery and the Stud.io Forum. At the bottom there is a Start Tutorial button to learn about camera controls and basic features. The Tutorial is interactive and can be ended and restarted at any time.
SIO follows the common 'left-click is select' convention, while right-click & drag is used to alter the angle of the 3D view. The mouse scroll-wheel is used to zoom in and out. Holding the space bar while lift- or right-dragging allow moving of the 3D work area horizontally or vertically. In Menu > Edit > Preferences > Input you can set keyboard shortcuts for camera control, zoming and more.
The bottom area of the screen contains the parts library. By pressing the tab-key this area is enlarged. The parts library can be organized into Bricklink Categories (about 70) or shapes, similar to LDD categories (about 35). Right-click to select and drag the part to its place. Parts will automatically snap to the grid and connect to other parts.
The menu bar contains common options such as File, Edit, View and Help, as well as a Model menu to add and remove steps; create, edit and release submodels; and to hide and show bricks. The toolset (only available as icons below the menu bar) consists of:
The left panel contains a color selection box, a favorite colors box, a content color box and a Step list, an important part of documenting and being able to share the model. By assigning parts to steps, you can tell the story of how to build your creation.
For a more detailed description of camera control, the icon and menu bar, and building tools and palette, see Getting Help.
The Stud.io User Manual is included with the software and stored in Program Files (x86)/Stud.io/Stud.io/Manual/introduction.html. The manual is only available in English, and can be displayed by any browser.
A quick start guide of Stud.io is available at bricklink.com
If you encounter any problems, refer to the User Manual first. If needed, check the Stud.io Beta Forum in the Useful Links below. If the problem remains, post a question in our Help Forum.
Import/Export
Contrary to LDD, when you open a .io in Stud.io, the model is added to the current scene. This also applies to the Import functions. Stud.io can import files with the following extension:
More importantly, and arguably one of the best features of Stud.io, is the ability to import official LEGO sets. Available under Icon Bar > Open > Import official LEGO set, you can enter the set-number of any LEGO set in the Bricklink set catalog, and then import all the parts within that set directly to the 3D work area. So instead of having to search and select each individual part in the part library, you have immediate access to all the parts. The contents of a set can also be stored as a pallette.
Stud.io has the following export options:
Using Menu > Model > Model Info you can access a complete part list of your model, which can also be upload to a Bricklink Wanted list.
Whereas LDD can only create screenshots of a model, the Stud.io software package includes a specially compiled version of POV-Ray 3.8, to create photo-realistic images of the model or scene. The Render Image dialog (only accessable through the Icon Bar) allows you to select the final render quality, light position and image size, and where to store the final image (by default in the same folder as the model). The image can be either in .png, .jpg or .bmp format, with a specified color or transparant background. More about rendering in the Guide to Rendering.
Tutorials
As Stud.io is relatively new (and still in beta) there are very few video tutorial yet available. These are the most informative:
Go File Io
Conclusion
Bricklink Stud.io is a good program, and it offers several functions that LDD lacked from the very start. Most importantly the Import official LEGO set and Render Image functionality. The Step system might be a good start for creating good looking instructions. However, the program is not yet completely stable, many parts are still undefined, and some of the very cool features of LDD, such as the Flex tool, are completely absent. The good thing is that Stud.io is completely dependant on LDraw, and it seems reasonable to presume that the LDraw OpenContent License (OPL) applies to the full package. The LDraw OPL states:
Upload File Io
If identifiable sections of that work are not derived from the OC, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the OC, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
If so, the main Stud.io part database StudioPartDefinition2.txt is also OpenContent, and can be updated at will. (Be warned, the Stud.io Patcher will create a real mess if you update anything manually.) This will, at least, ensure the usability of the program even if or when Bricklink decides to abandon it.
Tips & Tricks
Linux File Io
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |