Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Saturday, January 9, 2021

How to Install Sketchup 2017 Make in Linux

Bottom Line Up Front:  This post provides a how-to install SketchUp Make 2017 in Linux using Wine.  The result is fully function with everything I tested, including the "sketchup-webhelper.exe" program.  Installation is time consuming, but woth it. 



Background:  Recently, due to COVID, I have found myself down the YouTube rabbit hole and interested in traditional hand-tool woodworking.  It is interesting.  A common tool people use is Sketchup to create to scale 3-d models for their projects.  I was disappointed to learn that it does not have a Linux version and there is no TRUE alternative to Sketchup in Linux.  I tried an alternative first then gave up and tried sketchup after a quick YouTube tutorial to get me over the short learning curve for basic usage.  I decided that Sketchup was fantastic and worth using.

The options I had were:

1.  Use a different program.  The closest native program was FreeCAD; however, the learning curve is quite steep.  I already said it was not intuitive for me.  It does have some features that Sketchup doesn't; however, I will return to learn it if/when I need that capability.

2.  Boot into Windows to install / run there.  That is OK, but my primary useage and programs are in Linux, so it is a bit inconvenient to do that.  Still, my dual boot session does have it installed.

3.  The Web version of SketchUp worked fine; however, once the trial period expires, the functionality is more limited than the SketchUp Make 2017 free version.  I also did not see myself using Sketchup enough to justify a subscription.

4.  Try using WINE to install and run SketchUp Make 2017.  WINE works and I do keep it installed on my computer.  Heck, I use it for some of my older windows programs and games but not everything works flawlessly in Wine.  For that reason, I try to stick with native Linux software.  

Given the choices I had, I opted to try WINE.  The project keeps improving and getting better all the time and programs that used to fail suddenly start working sometimes.  

My initial search for using Sketchup Make under Wine looked promising.  Some posts said it was garbage (people to try the standard install and quit if the installation software fails).  Some posts said it installed but some items didn't work.  I did fine one that  said it worked flawlessly.  I set out to install SketchUp Make 2017 and it was a tough start.  I had errors from the start trying to get it installed and I spent hours upon hours between my primary computer and a second computer.  I was successful and everything works in my installation with minor exceptions.  Here is a screen shot of Sketchup in Linux running with the 3D Warehouse and Plugin Warehouse visibly running.



This BLOG post is to share my success installing the program in an effort to make it less tedious for you, as it is a tedious process to begin with.  I did post my results at WINEhq.org; however, it won't be long before my notes are hidden and people don't look at my post.  Hopefully Google will pick this post up in their search engine.

When finished, what works?:

Everything I have tested.  That includes the SketchUp Warehouse part of the program ( sketchup-webhelper.exe ). .  A quick list of most items I have tested: 

  • Installation
  • Drawing Tools
  • Plug-ins (Most... although the plugin from Sketucation website did not work... but plugins from there were downloaded and installed (Fredo6 series primarily).
  • Opening
  • Saving
  • Editing
Installation:

Up front, this process takes a while, but it is worth it.  If you try and run the installation file, it will fail on its own.  It took me well over 8 hours and a few different attempts to get a near-flawless installation for the software.  The following steps should work.  I am using Ubuntu Linux 20.04 LTS and my instructions are based on that.  If you are using a different distribution your packages may be named different.

1.  Preparation:

Before you install anything, I recommend you head over to www.sketchup.com and click login.  Create a Tremble account.  That is necessary because Sketchup Make 2017 no longer supports other password validation options. 


Getting started you should have installed Winetricks and Wine (32 & 64 bit versions).  The specific software versions I used for your reference.  These were all installed from my default Linux repository.

- Linux:  Ubuntu 20.04 LTS

- Wine 5.0.3 (from repository)

- Wine Tricks:  0.0+20200412-1 (from repository)

*  For your information, my initial attempt was using "Play On Linux."  Play on Linux did not work easily and when I did get it installed using Play on Linux, the installation had issues as many other reports indicated.

NOTE:  

For a couple steps, WineTricks did not re-open so you may need to 'restart' WineTricks... but give it a little while as some steps run in background take a few minutes.

You will get a lot of warnings because it is a 64 bit arch... but those are OK.  WineTricks is just telling you (excessively) that things may not work as expected in 64-bit software.

Friday, February 22, 2019

Linux On Dex

Yes! Linux On Dex

Being a non-traditional (not Microsoft or Apple) road warrior is very difficult when you try to rely on Android and your main computer Operating System is Linux.  It can be very frustrating indeed.  Frankly, at times, I have just wanted to throw up my hands and retreat to a Microsoft Surface Table and windows.  Yes, Windows Subsystem for Linux (WSL) is nice and I have played with it some and even integrate an xServer to get graphical apps running and frankly, most of the open source solutions I use do have Windows (or Mac) support -- but I really like the workflow I have become accustomed to in Linux.  Now, I hear you, just take your laptop with you, but I would like to travel light!  There are no pure road-warrior based products out there.  I did have high hopes for Ubuntu's mobile and convergence, but that has fallen by the wayside.

Enter Linux on Dex (LoD / LOD).  I have been and remain a Galaxy Note fan since version 1 of the Note.  I have a Galaxy Note Tablet and until a week ago, a Galaxy Note 5 phone.  I was pleased to hear of the LOD being developed and really longed to try out the feature when it was released last year.  A week ago, I made the plunge to the Note 9 and also got a DEX pad.  The Galaxy just got so much bigger for me because of increased capability and fairly good "convergence".

Samsung Galaxy Devices (S8 / Note 8 and up) and DEX

The concept is that your phone is a phone until it is plugged into a DEX station, pad, compatible usb-c 3.1 dock, or usb-c/HDMI cable.  When that occurs, your TV, Monitor, or other display device can change to an Android-based, desktop environment that is quite capable when used with a keyboard and input device (mouse, touchpad).  It is MUCH more than attaching a keyboard to an Android phone/tablet and mirroring to the screen.

In the version I am using, I am able to use my phone as a touchpad (multi-touch) or as an extended Screen (partly like KVM sharing because you can't drag apps between displays -- presently).  This is a nice feature because now you can have your phone beside the computer and use it to view additional information!

DEXter meets Linux (LOD)

The current BETA for LOD is closed and they are hopefully working on making updates and changes.  There is not a large community out there that post regarding LOD and my experience is that LOD is not a full Linux so a general Linux solution may not work in LOD. 

My initial experience with LOD is positive though and I believe it is a potential solution for a Linux Light, Mobile, Road Warrior.

Future Posts

In the future, I will post more about my experience with LOD, some issues, solutions (hopefully), and some best-practices that work for me.

Saturday, March 7, 2009

Acerhk, Ubuntu, and acerhkgui


In my previous blog, I posted about my experiences with programming. In this post I'll post a bit more about my experience and motivation to program. For those readers -- and I hope there are readers -- that may be interested in only a portion of this post, the sections in order of presentation are:
  • Ubuntu
  • Python
  • Acer Hot Key (acerhk) and AcerHK GUI (acerhkgui)
Ubuntu:
Ubuntu has been my number one choice for Linux distribution for quite some time. In my next post, I will post with regard to why I choose Linux and why I finally settled on Ubuntu Linux as my choice for a distribution. For the purpose of this post, discussion of Ubuntu is limited to how it has motivated me to dip my toes back into programming.

Ubuntu is a great distribution and is increasingly becoming the face of Linux for the masses. It has had the distinct advantage of having a benefactor, Mark Shuttleworth, who believes in the value of benefits from Open Source Software (OSS). While I could blog on and on about who he is and what he has done, I am posting a link to a interview with Mark Shuttleworth from a few years ago, so when you hear "Ubunut is 2 years old" in the video, it is now several years on and not even the Ubuntu I remember.

A huge criticism of Linux in general is that it is "too hard" for the average user. That Linux still requires the user to drop to the command prompt --the black screen with white letters where you have to remember what to type, get your spelling correct, and control variations of what happens with additional input on the same line and possibly never see a graphic result of what you have done. The abstract nature of this is frightening for many people. For other people, they just aren't interested in that aspect of a computer -- "Hey, just show me where to point and click." Well, I am not frightened of the command prompt and have no problem diving in to that. I do, however, tend to agree that if the system requires certain tasks to be performed from the command prompt, it is still not ripe for the masses. Well, for the vast, vast, majority of tasks in Ubuntu, the command prompt never has to be seen. Mater of fact, it is typically the "early power user" and not the common user that finds they need to drop to the command prompt and are lost. I say this because the average user will be able to install and start Ubuntu and do all of their ordinary tasks and programs from the GUI and require no complex configuration at the command prompt level. But, if you find yourself there, don't worry, it isn't that difficult and you can find information and help in the Ubuntu Forums as well as other places. I recommend the Ubuntu Forums because of the friendliness of the users and the vast amounts of knowledge able to be obtained from there.

The term Power User is a person who pushes the limits of what they do with a computer because they are always asking "What if... " or "Can I..." or "I'd like to..." or "I bet I can..." For the most part, they are somewhere between a normal user and a system programmer. For me, an early power user is a person who has just started to get off the beaten path of a typical computer user who turns on a computer, runs a few games (possibly), uses a few standard applications, email and internet.

I do agree that for Linux to become mainstream for the average user, the common tasks and configuration options should NOT require going to the command prompt. That is critical because most users don't want to see a command prompt. Early on, I found that I had not choice but to drop to the command prompt if I wanted to address configuration of my computer's hardware and get it working exactly like I wanted to. I really found very little that wasn't working right out of the box, however, not everything did. For example, my initial hardware issues were with my tablet PC screen's digitizer was not recognized and that my bluetooth was not active. No, I didn't have a problem with my network card being recognized (wireless or wired).

Still, thinking where linux has come from and where it has gone on its own and without a large corporate backing. No doubt, Linux can hold its own with any of todays operating systems. People, however, feel that they because it is unfamiliar for them, it doesn't work. It does.

So, anyway, my bluetooth hardware was not comming on by default and my buttons didn't work to activate the hardware. Through internet search, I found out that if I issued a command from the command line to the acerhk driver, I could turn on the device. So I installed the device driver through the repository and then from the command line, I issued the following command:

echo "on" > /proc/driver/acerhk/blueled

That was just too much for me and I never seamed to remember it when I wanted to turn my device on. This is the type of issue that still needs to be refined in Linux; however, the vast majority of people would not have this issue.

Python
This is where Python came in. During my readings, I discovered that Python was quite a powerful programming language that was primely suited for developing Graphical User Interfaces to interact with command line programs. Basically, it serves as a shell to the command line interface. I also liked that the programming language was cross platform and widely accepted for use on Windows, Linux, Mac and others. I'll go into my discussion of cross platform in a future blog.

Anyway, Python caught my attention for the first language I really wanted to learn. So, I began to learn with a purpose of creating those GUI interfaces between users and the command line and to reduce the need to work from the command line. Goal... to help bridge the gap between Linux today and a widely accepted and used Linux.

AcerHK and AcerHK GUI (acerhk / acerhkgui)
Acer laptop computes came with hardware that was software controlled. The issue with Linux was that Acer didn't release software for the Linux platform. Frankly, I am not even sure if they offered specifications of the hardware... but anyway. AcerHK was written to enable the Linux platform to utilize the Acer hardware.

As I mentioned before, to be able to turn the hardware on and off, it requried a command line input to the driver. This isn't alltogether bad, as it can be setup once in the load scripts to always turn on the hardware; however, for me I feel that isn't the best solution given the amount of air travel these days and a need to activate / deactivate radios. Also, I don't always use my bluetooth, so I don't like the blue LED flashing at me all the time... so I turn it off.

There are a couple of links that I would recommend for users of the acer comptuers and who wonder if you are using the driver or if you need the driver. Note that not all Acer computers use the acerhk driver for the hardware. Also note that the acerhk driver does work with other laptops besides the Acer.

Acerhk and Ubuntu Update
RF (Radio) Switch Guide

The RF Swithc Guide provides a list of computer models by vendor and the solution for activating the hardware.

So, as I started learning Python, I learned enough to begin working on my first program. Yes, I know I gave it a very creative name -- "acerhkgui" (Acer Hot Key Graphical User Interface). Enough of showing my Text Colorcreativity. LOL.

The program I wrote is one that can be installed to Ubuntu or any other Linux distribution to provide a simple GUI to interface with the acerhk driver. I have included a screen shot of the program as it looks on my computer.

I have a "road map" for development of the application. Sure, it doesn't have far to go, but I can already see where I can extend the functionality of the GUI as there are a couple of other computers that utilize a very similar interface to the RF hardware.

I have published the software and it is available in Ubuntu / Debian (.deb), ReadHat/Fedora/Other (.rpm) and Generic Linux (.zip) You can access the download for the software from my SourceForge.net site.

I highly recommend that use the .deb or .rpm version if you want a painless installation. The .deb / .rpm file will provide the user with a launcher that is recognized automatically by the GNOME / LXDE / Other desktop environments and available in the menu system.

Also, the driver does not enable the wireless LED automatically. You can read my post on the Ubuntu Forums for details about getting the LED to work for the Wireless. So, where can you get it? Here: AcerHK GUI

Conclusion
Well, Linux is a very good platform for the average user as well as the advanced users. The early power user may be stumped and unless they are willing to dig and learn, they will back out to what they are familiar with. Finally, Ubuntu / Linux provide a motivation to learn and grow. As it has for me, I now have an application that I have written, use daily, and others are using. I released the software a little over a month ago and I already have over 100 downloads. It is fabulous to be able to contribute back to the open source community and bridge the gap between the common user and Linux. Finally, you can contribute by using Linux (in one form or another) because the greater the user base, the more hardware / vendor support there will be and the more users the greater the likelihood that commercial software publishers will produce native software and games for Linux.

Well, back on the road less traveled. :)