steps

Quick-Tip: Linux / Raspberry Pi Update und Speicher bereinigen & Zugriff über SSH Putty, MacOS, ChromeOS

Update

 

sudo apt-get update

sudo apt-get dist-upgrade

 

Säubern

am einfachsten ist Linux über BleachBit zu reinigen

sudo apt-get autoremove && sudo apt-get -y autoclean
sudo apt-get clean

und noch zusätzlich

Cache

sudo du -sh /var/cache/apt

 

Thumbnail Cache

anzeigen:

du -sh ~/.cache/thumbnails

löschen:

rm -rf ~/.cache/thumbnails/*

 

Cronjob anlegen

 

sudo crontab -e 

0 0 1 * * sudo apt-get autoremove && sudo apt-get clean && sudo apt-get -y autoclean
5 15 * * 1-5sudo du -sh /var/cache/apt

 

[ Con­trol-X ]
[ y ]
[ Enter ]
 

Unter https://crontab.guru oder http://corntab.com/ oder https://www.bennetrichter.de/tools/crontab-generator/ kann man sich cron­jobs erstel­len las­sen.

 

 


 

Raspberry Pi: SSH einrichten – so geht’s

Auf einem Raspberry Pi läuft traditionell eine Version von Linux. In der Praxis bedeutet dies, dass viele Funktionen auf dem Pi über das Terminal verwaltet werden können, beispielsweise die Installation von neuen Programmen oder Updates oder auch Serverfunktionen des Pis. Der Vorteil: Das funktioniert nicht nur direkt am Raspberry Pi, sondern auch aus der Ferne, also von einem anderen PC im Netzwerk. Dabei kommt Secure Shell oder kurz SSH zum Einsatz. Das Protokoll ermöglicht eine verschlüsselte Verbindung zum Raspi und die Ausführung von Terminal-Befehlen aus der Ferne. Auch Dateitransfers von und zum Pi lassen sich per SSH-Verbindung realisieren.

 

Hinweis: Durch SSH besteht ein Sicherheitsrisiko, falls der RPi Zugang zum Internet hat. Ändern Sie daher unbedingt das Standard-Passwort über den Befehl passwd.

SSH auf dem Raspberry Pi installieren

Aktuelle Versionen von Raspbian oder auch den meisten alternativen Linux-Distributionen kommen ab Werk mit einem SSH-Server. Diesen müssen Sie nur noch aktivieren (s. unten). Falls Sie eine ältere Version von Raspbian oder eine Distribution ohne vorinstallierten SSH-Server verwenden, können Sie diesen schnell nachinstallieren. Öffnen Sie dazu am Raspberry Pi ein Terminal und geben Sie diesen Befehl ein:

sudo apt-get install ssh

Nun müssen Sie den SSH-Server nur noch starten. Dazu geben Sie diesen Befehl ein:

sudo /etc/init.d/ssh start

Damit Sie den SSH-Server nicht jedes Mal manuell starten müssen, können Sie ihn auch automatisch beim Booten aufrufen. 

 

 Enable SSH

As of the November 2016 release, Raspberry Pi OS has the SSH server disabled by default. It can be enabled manually from the desktop:

  1. Enter sudo raspi-config in a terminal window
  2. Select Interfacing Options
  3. Navigate to and select SSH
  4. Choose Yes
  5. Select Ok
  6. Choose Finish

Alternatively, use systemctl to start the service

sudo systemctl enable ssh
sudo systemctl start ssh

When enabling SSH on a Pi that may be connected to the internet, you should change its default password to ensure that it remains secure. See the Security page for more details.

Ab sofort ist der Raspberry Pi dauerhaft für den SSH-Zugriff gerüstet.

 

 

SSH unter Windows nutzen

Windows musste lange ohne einen eigenen SSH-Client auskommen. Beginnend mit dem Fall Creators Update von 2017 hat Microsoft aber eine SSH-Implementierung auf Basis von OpenSSH in die neue Kommandozeile PowerShell integriert. Öffnen Sie also einfach über das Startmenü die PowerShell und geben Sie diesen Befehl ein:

ssh benutzername@IPAdressedesPi

Wie bereits erwähnt ist der Standard-Benutzername “pi”. Die IP-Adresse des Raspis finden Sie beispielsweise über Ihren Router heraus. Am Raspberry Pi selbst gibt der Terminal-Befehl “ifconfig” die aktuellen Netzwerkeinstellungen und damit auch die IP-Adresse aus. Bei der ersten Verbindung müssen Sie die SSH-Schlüssel des Pis bestätigen, wozu Sie einfach “yes” eintippen. Nach Eingabe des Benutzerpassworts können Sie die Fernwartung des Pis komfortabel direkt unter Windows durchführen.

In älteren Windows-Versionen bzw. auf Windows-10-Systemen, die noch nicht mit den neueren Systemupdates versorgt wurden, müssen Sie für die SSH-Verbindung zum Pi auf externe Programme zurückgreifen. Der wohl populärste SSH-Client für Windows ist PuTTY. Das kostenlose Programm öffnet in einem Terminalfenster eine SSH-Verbindung zu Ihrem Pi (oder natürlich jeden anderen SSH-Server). Tragen Sie dazu einfach die IP-Adresse des Pis in das Feld “Host Name” ein, wählen Sie bei “Connection Type” den Punkt “SSH” und klicken Sie auf “Open”. Im nun geöffneten Fenster geben Sie den Benutzernamen und das Passwort ein. Nun können Sie das Terminal des Raspberry Pi von Windows aus bedienen. Natürlich können Sie PuTTY auch unter Windows 10 als Alternative zur Powershell verwenden.

 

 

SSH-Verbindung unter Linux oder macOS nutzen

Arbeiten Sie unter einer Linux-Distribution oder mit dem Mac, ist die SSH-Verbindung zum Pi deutlich einfacher. Beide Systeme kommen ab Werk mit einer SSH-Implementierung. Öffnen Sie einfach das Linux- bzw. macOS-Terminal und geben Sie den entsprechenden Befehl ein. Standardmäßig verbinden Sie sich beispielsweise mit folgendem Befehl per SSH zum Raspberry Pi:

ssh benutzername@IPAdressedesPi

Nun können Sie sich genau wie bei Windows auf der Kommandozeile des Raspberry Pis austoben.

 

Chromebook SSH Client

Secure Shell Extension

The easiest method of using SSH from a Chromebook is by way of a third-party extension, called Secure Shell Extension. With this add-on, you can not only login to your remote machines (via the ssh command), you can also securely copy files to and from those same remote machines (using the Secure FTP command, sftp).

 

How do you install that extension? Easy. Here are the steps:

 
  1. Open the Chrome browser on your Chromebook.

     
  2. Click the Menu button and then click More tools Extensions.

    Screenshot of the chromebook menu.
  3. Click the three horizontal lines in the upper left corner and then select Open Chrome Web Store.

    Screenshot of the Open Chrome Web Store link.
  4. Type Secure Shell Extension in the search bar.

     
  5. Click the Add to Chrome button associated with Secure Shell Extension.

    Screenshot of the Add to Chrome button.
  6. When prompted, click Add extension.

    Screenshot of the Add Extension button.

How to Use Secure Shell Extension

You should now see a new icon in your Chrome browser toolbar. Follow these steps to create a new connection:

 
  1. Click the Secure Shell Extension icon in the Chrome toolbar.

    Screenshot of the Secure Shell Extension icon.
  2. From the drop-down, click Connection Dialog.

    Screenshot of the Connection Dialog entry.
  3. In the resulting window, fill out the necessary information for the connection.

     

In order to create a new connection, you’re only required to fill out the following details:

 

Username@hostname – For this entry, type the username you’ll login with and either the IP address or domain of the remote host. For example, if you need to log into a remote machine with the IP address 192.168.1.166, with a username jack, type jack@192.168.1.166.

 
Screenshot of the New Connection window.

Once you fill out that information, the extension will automatically fill out the username and hostname below the username@hostname line. After you’ve filled out that line, click Enter on your keyboard and, when prompted, click Allow (to give the extension permission to open ssh links).

 
Screenshot of the Allow button.

After giving the extension the necessary permissions, follow these steps to complete the connection:

 
  1. Type yes and click Enter on your keyboard to continue with the connection, type the password for the remote user, and click Enter on your keyboard.

    Screenshot of the SSH password prompt.
  2. You should now find yourself on the terminal window of the remote machine.

     

When you’re finished working on the remote machine, type exit and click Enter on your keyboard. You will then be prompted to type x to complete the exit from the extension.

 

Reconnecting

One nice thing about the Secure Shell Extension is that it will remember your connections. Click on the extension icon (in the Chrome toolbar) and you’ll see your saved connections listed. Click on an entry and type the remote user password for that machine to login.

 
Screenshot of the newly added connections.

If, instead, you need to connect to a different machine, open the Connection Dialog and click [New Connection]. Fill out the same information you did before (with the username/IP address for the new remote machine) and your new connection is ready. When you have more than one connection saved, all of those connections will be listed (for quick access) in the Secure Shell Extension drop-down.

 

That’s all there is to it. With the assistance of a simple third-party extension, you can gain easy and secure access to your remote machines … all from your user-friendly Chromebook.

SEO in Adobe Muse (Search Engine Optimization)

As an increasing number of great websites made with Adobe Muse pop up all over the web, occasionally I see designers missing one of the most critical factors in building and launching a successful website – SEO, which stands for search engine optimization.  For print designers new to the web, there are a few essential tasks that you must do in order to help search engines understand the structure of your website, and identify keywords that could yield a stream of search traffic.

1. Metadata

Within every Muse website, designers have the ability to input specific metadata that is unique to each page on the site.  This metadata includes the webpage title, description, and keywords, which are all important factors in how your site appears in search results.

Metadata in Adobe Muse

On a specific page of your Muse site, click PAGE > PAGE PROPERTIES > METADATA

Description: include a brief description of what your site is all about.  Try and use keywords that are relevant to your site’s content, and be sure to keep this description brief.  150-160 characters is said to be ideal, so keep it short and powerful.  Make sure your description accurately describes what is on the webpage – don’t try and trick Google by stuffing this full of keywords.

Keywords: this isn’t as essential as the meta description, however it’s still helpful to include relevant terms to your websites content.  Don’t bother piling this full of 1,000 keywords and phrases.  It won’t help your rankings.

Page Title: When editing the page title settings, be sure to uncheck “same as page name”.   The page name is what Adobe Muse will call your page within it’s site plan, as well as on the navigation bar. The page title however is what search engines will read, and what will display in the top of your browsers window.  Your page title should briefly describe the content of the page – users want information fast when browsing the web, so don’t try and make them read any more than they have to.

I can’t stress enough, the reason Google is a great search engine is because it truly gives you relevant, quality results for your search. If it was possible to trick it into displaying any average website, nobody would use Google because it returned garbage results.  Focus on making the site easier for users to navigate and understand, and the search engines will appreciate it.

2. Headings

Websites are built with a specific hierarchy of information, and search engines look for this structure to understand the content of your site.  You’re probably using descriptive titles and headings within your site (if not, you should be!) however unless you’ve mapped those headings to a “Headline Style” then your efforts will be significantly diminished.

Heading 1 Tag Muse-Themes.com

Here’s how to set a proper heading style:

  • Create and style a new block of text, that contains your section heading (e.g. ABOUT US)
  • Highlight the text, and create a new paragraph style for the text.  Give it a name such as “Heading 1”
  • Within the style options dialog box, select the dropdown menu titled “Paragraph Tag” and choose an appropriate heading style to map it to.  In this example, we should pick Headline 1 (h1).

Style Options in Muse

The next time Muse outputs the code for your website, it will generate the proper HTML tags that let search engines know to reference this block of text as a true headline.

 

3. Alt Text and Image Titles

When placing images in Muse, you need to go one step further and assign a title and brief description of each image within the website.  After placing an image, right click (control-click) and select “Add Title”.  This brings up the image properties dialogue box, where you can provide some brief information about what the image is about.

Image Title: this is a straightforward description of the image.  It should follow the same guidelines as other titles – keep it brief, concise and accurate.  Most browsers will reveal this text if you hover over an image with your cursor.

Add Title to Images Muse SEO

Alt Text: the alt text is intended to help users who may not be able to see the image to understand what it is all about (perhaps due to a visual impairment).  While it’s not as essential as the headline tags or metadata, Google does crawl alt text and you should try and include it where possible.

Title Images - Muse-Themes.com

 

Image Optimization

One of the most important elements on your website are the images. Yet, search engines do not have eyes to analyze the images or categorize them for image search results. Therefore, you need to consider applying SEO techniques to optimize the graphic elements of the website.

While the image file name should be descriptive, the Alt tag and Tooltip are also important bits of information to add to the images. The Alt tag lets you add a description of the image in a few words, so the search engine crawlers can understand and categorize the image based on the Alt information.

The Tooltip is a small text that appears when the site visitors roll over the image. This tip is important from the usability side which affects the general optimization of the website.

You can add the Alt and Tooltip in Adobe Muse by following these steps:

  1. Select the image from the layout
  2. Go to the Assets panel, right click the image and choose Image Properties
  3. Add the Alt and Tooltip text in the dialog box and click OK

 

 

 

4. Real text vs. images

In order for search engines to crawl your site and „read“ the written content, you need to make sure that you’re using as much real text (rather than images) as possible.  This might seem obvious for body copy, however with the addition of Typekit and web fonts within Adobe Muse, there is no reason why headings, navigation bars, and block quotes can’t also be styled using HTML text.

An easy way to test whether or not a search engine can crawl the text on your site is by trying to highlight and copy it into another document.  Images won’t let you select a specific word or letter (you can only save the entire image).  This was one of the early limitations in websites built entirely in Flash – text was enclosed inside a flash movie, and search spiders could not read any of the written content.

With the latest advancements in HTML / CSS and Adobe Muse, there’s almost nothing that you could do to an image button that you can’t do to a real text button.

Web Fonts, Web Safe Fonts or System Fonts?

There are 3 options for working with text in Adobe Muse. When it comes to Search Engine Optimization it’s best to use web fonts or web safe fonts. Here’s why:

Web Safe Fonts: Prior to the creation of services like Adobe Typekit, web designers were limited to using only the fonts that came preinstalled with a user’s specific operating system. These fonts had to be common between old and new versions of both Windows and Mac, leaving designers with only 5-10 good options for type. If you needed to use a specific typeface that wasn’t included with the OS (perhaps to meet corporate brand guidelines) your only option was to create an image from the text, and place that in your website. This violates the SEO best practice of using real text outlined above, and increases bandwidth use due to the image download.

The “web safe fonts” listed in Adobe Muse are the fonts that are commonly installed with modern operating systems.

Sticking with the limited web-safe list above will certainly test your creativity!

Web Fonts: Web fonts are a fairly recent development in web design, and they have given designers the ability to use custom or commercial fonts on websites without worrying about whether the visitor has it installed on their system. The use of web fonts can be achieved in a variety of ways (typically using CSS or Javascript) however the most popular method is through font subscription services such as Typekit. Web font service companies store these fonts on their own servers and your website will automatically access and download the font, which has been optimized for on screen display.

The “Web Fonts” listed in Adobe Muse are a collection of over 400 typefaces – they look great in all modern browsers, and are easily read by search engines.

Webfonts available directly in Adobe Muse – a really powerful feature!

System Fonts (exports as image): These are the fonts that a user has installed on their computer, and may not be common among all visitors to your website. When using a system font within Adobe Muse, the text will be automatically rasterized and converted to an image format when published. This means it cannot be indexed by search engines, and will increase website load times due to the file size of the image. The use of text images is often avoided in modern web design (due to the SEO & accessibility limitations), however there is still occasionally a use for it within certain applications (elaborate buttons perhaps).

For more information on Font options available in Muse, visit the following Adobe website:
http://www.adobe.com/products/muse/font-types.html

***

At the end of the day, having good quality relevant content will likely be the most essential factor in your search engine rankings. Write content with important keywords in mind, and keep your site current (update it regularly!).  SEO is a vast subject, and there a variety of tips and tactics that you can use to improve your rankings, however if you follow the tips above you should see a huge impact in your Muse websites rankings.

Always remember that Google’s job is to find the truth, and if you want your site to reach the top spot for a particular keyword, then you need to make sure it actually deserves to be there. 

How to sync Safari 5 Extensions in 10 easy steps

after getting the safari 5 update the first thing i did is i went out and downloaded some extensions. then it occurred to me that i use 3 macs at various times and i want to keep track of the extensions i use and to save time on installing them on all 3 systems and remembering to do so with each new extension i stumbled upon a way to sync my extensions between all 3 systems i use easily. and here is how (i will update with screenshots tomorrow if people want me to)

1 – download and install/setup safari 5 – http://www.apple.com/safari/download/

2 – download and install dropbox – my referral link https://www.dropbox.com/referrals/NTY4NjE3MzI5 or use the standard link if you don’t want to help me http://www.dropbox.com

3 – download and install symbolic linker – http://www.macupdate.com/info.php/id…symboliclinker

4 – make sure safari isn’t open and go into your dropbox folder and create the folder „Extensions“ (or drag it from /Users/NAME/Library/Safari/ )

5 – right click on the extensions folder once it is in your dropbox folder and click make symbolic link

6 – drag the new folder it makes called „Extensions symlink“ to your /Users/Name/Library/Safari/ folder and rename it to just „Extensions“ – if there is already an extensions folder there because you didn’t drag it over in step 4 delete it as long as there are no extension files in there otherwise move the extension files to the new folder in your dropbox folder before deleting it.

7 – open safari and check it still works with all your extensions. if not try the steps again but it should of worked first time like it did for me

8 – goto your other computer/computers with safari 5 newly installed and install dropbox and symbolic linker and login to your dropbox so that your dropbox files are synced

9 – once that is done follow steps 5 onwards again for each additional computer

10 – after installing an extension on one computer it may be necessary to close and reopen safari on other computers for it to appear and take effect

and thats how to automatically keep your safari 5 extensions in 10 easy steps – i hope this helps others as much as it has helped me