Ubuntu + Virtual Machine + Synology

Tips and tricks

Jul
28

– First login into your synology NAS server.
– Go to Package Centre.
– Click on ‘Settings’ button and select the ‘Beta’ tab.
– Tick the checkbox ‘Yes, I want to see beta versions!’.
– Next, go to ‘Utilities’ and find ‘Virtual Machine Manager’.
– Click on ‘Virtual Machine Manager’ and hit the ‘Install’ button.
– Once installed, Launch the app.

Install guest-agent
open terminal in Ubuntu and run the following command:
sudo apt-get install qemu-guest-agent

Jul
26
Posted by Paul Costan at 11:41 am

If you have installed jmeter with homebrew can run these commands in terminal

brew install jmeter

or

brew install jmeter --with-plugins
with plugins

If you are running jmeter 3.2, you can found your jmeter CA Certificate here.

/usr/local/Cellar/jmeter/3.2/libexec/bin

The simplest way to installing this certificate is by opening the directory and double clicking on the file. By default it will be added to your list for certificate but not trusted. If you right click you will have the option to trust where you will need to type in your machine password.

Jul
17

In ‘phpMyAdmin’ under sql tab copy and paste below script and hit go!.

UPDATE wp_options SET option_value = replace(option_value, 'http://old-url', 'http://new-url') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://old-url', 'http://new-url');

UPDATE wp_posts SET post_content = replace(post_content, 'http://old-url', 'http://new-url');

UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://old-url', 'http://new-url');

Jul
17
Posted by Paul Costan at 8:15 am

The other day I need to migrate files over to my new NAS, to do this I had to SSH in to the box and run a SCP command to copy over files. But at the sametime I wanted to keep their timestamp. To do this you need to run the following command

First ssh into your box and go the fold where you want to copy files to then run this command:

$ scp -r [username]@[ip-address]:[path-of-files] .

if you would like to keep timestamp run this command. notice I added ‘p’ after the ‘-r’.

$ scp -rp [username]@[ip-address]:[path-of-files] .

‘-r’ is recursive ‘p’ is for preserve (file details).

May
24

First ssh in to pi and cd in to Downloads directory.

$ cd ~/Downloads

Next you need to download the nodejs tar. Checkout the version you desire http://nodejs.org/dist/ make sure you download the the version with the last string ending ‘linux-armv6l.tar.gz’. Raspberry Pi Zero support only ARMv6.

$ wget http://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-armv6l.tar.gz

Once downloaded cd in to usr/local

cd /usr/local

Extract tar here

sudo tar xzvf ~/Downloads/node-v6.10.3-linux-armv6l.tar.gz --strip=1

And finally remove default npm, node and nodejs.

sudo apt-get remove --purge npm node nodejs

Now check the version

$node -v && npm -v

Apr
27
Posted by Paul Costan at 6:57 pm

Only recently I needed to access my iMac GUI whilst I was away aboard. I’ve always ssh to my iMac being a geek. But for this particular occasion I needed to demo things on my iMac.
Anyways I did a little research and here are my findings and conclusion.

Like I said I’ve always ssh in to my box via VPN, takes awhile to setup if you know what you’re doing, but very useful if you want connect to your home network whilst your in another country.

VNC Viewer

If you have VPN the best app to use is VNC viewer and this is free.

On your Mac you first need to download VNC Connect client. See step by step instructions here.

Next download VNC Viewer on you iPad/iPhone. If you sign up and add your mac details and your way!

Usability is ok, I find it a bit slow compare to the other Remote Desktops apps. I feel it’s very graphic heavy and may eat in to your data plan.

Teamviewer

Teamviewer is free for personal use only… But you if you have several machine you like to connect to, you are advice to purchase a licence, which I think is fair.

Teamviewer is very simple to install. Again it is best to sign up and user your login to your both desktop and mobile apps:
Desktop – Teamviewer client
iPad/iPhone – Teamviewer app

By far, I think the usability on the iPad/iPhone is very simple compare to all the rest for Remote Desktops apps. The app is optimise to your reduces your mobile bandwidth.

Google Chrome Remote desktop

Google is new to the game. I know Google had done similar in the past using their web browser, but this did not fly too well as it was very sluggish. Chrome Remote Desktop is the new and improve version. Works very well. You do not need VPN enable. You can access again on your iPad/iPhone.

The navigation works very similar to VNC viewer. The app is also optimised to your reduces your mobile bandwidth.

Apple Screenshare

Apple Screenshare is pretty recent with the new macOS Sierra. Screenshare is already intergated to the system. all you need to do is make use you are signed in to iMessage and thats it.

Search Screenshare by holding down Command and spacebar and type in ‘Screenshare’. put in the ip address if you have VPN and your in.

The other way is by sharing your screen or taking control of your friend/family desktop is by going to iMessage select the your user message and click on the ‘i’ icon and you will see the overlapping windows icon. Click on this and you will be presented the two options. Control or view.

Join.me

Is Join.me is simple Remote desktop app which is web based.

Jul
03
Posted by Paul Costan at 1:09 pm

I had issue running Drush after upgrading MAMP 3.0.5 on PHP5.5.10

To fix this you need to edit .bash_profile. Run these commands in terminal

sudo nano ~/.bash_profile

Add the following line

export PATH="/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php5.5.10/bin:$PATH"

Exit and save… next run

source ~/.bash_profile

Restart machine…

Job DONE! to test drush is working correctly

drush status

May
23
Posted by Paul Costan at 9:38 am

Copy and past below the following terminal commands to see all hidden files on your mac.

defaults write com.apple.finder AppleShowAllFiles YES

Mar
24
Posted by Paul Costan at 3:19 pm

1. Sublime Text 3
The must popular IDE to write up your HTML and CSS.

2. iTerm / terminal
All front-end mush have some knowledge of using terminal for example using Compass to compile your SASS to CSS. Or using Git and Drush commands to commit or revert features.

3. Adobe Photoshop
As a front-end developer you need Photoshop to help create your fabulous and create designs.

4. Adobe Fireworks
Fireworks is a great way to export your prefect graphical elements such as icons in to PNGs or JPG. Firework can optimise this graphic to reduce download time.

5. Adobe Illustrator
Illustrator is a prefect tool to create your vector to SVG… commonly used now for retina displays and mobile devices.

6. VMWare Fusion for Mac / VMWare Player for PC
To test IE browsers you will need virtual machines. Starting from WindowsXP (ie6/7), WindowsVista (ie8/9) Windows7 (ie9/10) and Windows8 (ie11). Optionally you can install Ubuntu, centos, android and so forth.

7. Browsers – Google Chrome / Firefox / Safari
All your broswers should now have debugging tools to debug javascript, html and CSS. Firebug is a great extensions to debug code. Webdeveloper tools extension is a good one to.

8. MAMP for Mac / xamp for PC
These apps are a great tool to recreate your web environment on your local machines; which is a web service including Apache / MySQL (LAMP)

9. Github / SourceTree / Subversion / Tower
All developers needs Repository to store all their code files. Pulling and Pushing your files to github cloud Repository is the best way to share and collaborations.

10. Balsamiq / Auxure wireframes
Awesome tools to build up quick wireframes for UX

Mar
07
Posted by Paul Costan at 11:21 am

Here are my top tips for frontend developers who works with Sublime

1. Sorting CSS
By highlighting your CSS you can hiting F5 to organise your css in alphabetical order.

subl

2. Command Palette
Installing syntax i.e HTML,HTML5, CSS, CSS3, LESS and SASS snippets which helps you code up fasters

3. Tab Spacing
Convert indentation tab spacing to two spacing.

Mar
06
Posted by Paul Costan at 4:01 pm

I’ve been using Compass for awhile now… the best tool to compile your SASS. Below are some plugins I use to help create that perfect website.

To get started you first need to install ‘Ruby’ and ‘Compass’ and the below plugins… So when you start writing up your SASS you can call in Mixins from any of those plugins. The rest is magic!!!

Insert these to your ‘config.rb’ file.

# Require any additional compass plugins here.

require ‘compass-recipes’
require ‘compass-css-arrow’
require ‘breakpoint’
require ‘susy’
require ‘rgbapng’
require ‘compass-normalize’
require ‘animate-sass’
require ‘toolkit’
require ‘sassy-buttons’
require ‘font-awesome-sass’
//require ‘bootstrap-sass’ // Some of you would like to use Bootstrap framework

————————————

Add these to your ‘_layout.scss’ file.

//Compass Mixins
@import ‘compass’;
@import ‘compass/reset’;
@import ‘breakpoint’;
@import ‘compass-css-arrow’;
@import ‘rgbapng’;
@import ‘bootstrap’;
@import ‘toolkit’;
@import ‘sassy-buttons’;
@import ‘font-awesome’;
@import ‘susy’;
@import ‘toolkit/fluid-media’;
@import ‘toolkit/nested-context’;
@import ‘animate/shared’;
@import ‘animate/animations/attention-seekers’;
@import ‘animate/animations/flippers’;
@import ‘animate/animations/fading-entrances’;
@import ‘recipes/effect/ribbon’;

Nov
15
Posted by Paul Costan at 3:50 pm

I came across this site, whilst enhancing my SASS skill. Amazing what we can do with HTML, CSS and Javascript.

http://codepen.io/

See the Pen Tear-able Cloth by suffick (@stuffit) on CodePen