Skip to content

Ask Sheldon Tech Blog

- next level braining -

  • Home
  • Publications
  • Interesting stuff
  • About
  • Contact
  • Imprint
  • Privacy Policy
  • Delete Request

Category: Linux

Xubuntu – Fix black screen after wakeup from suspend mode

30 September 20153 October 2015 SheldonNo Comments

On Xubuntu 14.04.3 LTS I got a black screen after wakeup the machine from suspend mode. This didn’t happen all the time. It was more of a sporadic phenomenon happening after entering the credentials to unlock the machine. Under these circumstances the screen got black and the machine didn’t react on any actions any more. I could got to […]

Read More…

Deleting multiple lines with nano

24 September 201524 September 2015 SheldonNo Comments

That’s not as easy as you might think with nano. Mainly because of the stage keystroke-philosophy of nano. Here is the way I cut out multiple lines, whole paragraphs or also huge text blocks with nano (Xubuntu 14.04, MacOS X 10.9.5). Open file in nano: $> nano -c textFileToEdit.txt -c shows line-numbers. Alternatively you can press […]

Read More…

Run dnsmasq as a local DNS Server (Arch Linux)

13 September 20155 March 2022 Sheldon4 Comments

Dnsmasq is a very handy and easy to install DNS / DHCP server implementation, that uses the local hosts file to determine hostname to IP mappings. I use a local DNS to be able to call my local machines by a memorable domain instead of their IP. Additionally dnsmasq works as an DNS Cache. Installation of dnsmasq […]

Read More…

Change shell keymap for Arch Linux or Ubuntu (Debian)

13 September 2015 SheldonNo Comments

To switch you shells keymap on Arch Linux or Ubuntu to another language you can use localectl. You can print the actual settings with the following command: $> localectl status To get a list of possible keymaps use: $> localectl list-keymaps And finally you can set the respective keymap with (de-QUERZ layout in this example): $> […]

Read More…

Batch resize images with ImageMagic

6 August 2015 SheldonNo Comments

Recently I had to reduce the size of many images for uploading  them to a website. Unfortunately I didn’t find any tool like IrfanView on Ubuntu, which I’ve used for such problems in my Windows days. But there is a much smarter way to batch resize images on Linux. You simply can use the convert command from […]

Read More…

Flatten directory structure

18 July 20153 October 2015 SheldonNo Comments

Recently I brought a mp3 player that wasn’t able to shuffle the track through all folders. That’s why I had to bring all tracks to the root directory of the player (flatten directory structure). I did it with the following command, that flattens the whole structure by searching all files in the structure and copying […]

Read More…

Resolve problems with authorized_keys permissions

18 July 2015 SheldonNo Comments

Sometimes I had problems to connect to a server via public key authentication. In most cases I could solve them by setting up the right permissions for the file and path of the authorized_keys file. This can be done as shown below: $> chmod 700 $HOME/.ssh $> chmod 600 $HOME/.ssh/authorized_keys $> chmod go-w $HOME $HOME/.ssh […]

Read More…

Simple rsync based backup script

11 July 201530 September 2024 SheldonNo Comments

This simple bash script is able to backup all given files and folders to a backup destination. I use it to backup all my Raspberry Pis, Banana Pis and also my notebook to my Synology NAS. Example call: If you want to run it as a crontab, you can use key based authentication (see SSH key […]

Read More…

Recursively set permissions

10 July 20153 August 2015 Sheldon1 Comment

To change the permissions of all files and / or folders insight the current folder recursively you can run one of  the following command: $> sudo find . -type d -exec chmod 644 {} \; #all folders get 644 $> sudo find . -exec chmod g+r {} \; #all files and folders get group read rights […]

Read More…

Recursively assign ownership to files and folders

10 July 201510 July 2015 SheldonNo Comments

To change the ownership of all files and folders with a certain group and / or user insight the current folder recursively you can run the following command: $> sudo find . -group OLDGROUP -user OLDUSER -exec chown NEWUSER:NEWGROUP {} \; This way you can set the owning group and / or user.

Read More…

Posts navigation

Older posts
Newer posts


Hosted by:
ALL-INKL.COM - Webhosting Server Hosting Domain Provider

Categories

  • 3D (4)
  • Akaneo (1)
  • Apache (18)
    • .htaccess (12)
    • Information (2)
    • Webserver configuration (6)
  • Arduino (2)
  • Automation (2)
    • PuPHPet (1)
    • Puppet (1)
    • Vagrant (1)
  • AWS (Amazon Webservices) (1)
    • Elastic Beanstalk (1)
  • Contao (3)
  • Cool stuff (5)
  • CSS (2)
    • SASS (1)
  • Docker (2)
  • DokuWiki (3)
  • Electronic fun (2)
  • Facebook (1)
    • API (1)
  • Facts (2)
  • Fritzbox (3)
  • Home Automation (5)
    • FHEM (3)
      • Hardware (1)
    • HomeMatic (1)
  • Interesting stuff (27)
  • Java (1)
  • JavaScript (5)
  • Linux (98)
    • Automation (1)
    • Backup (1)
    • Bash Scripting (12)
    • Encryption (1)
    • File opereations (14)
    • File transport (3)
    • Filesystem Operations (20)
    • Hardware (7)
    • Imageprocessing (1)
    • ISPConfig (2)
    • Multimedia-Tools (1)
    • Network Stuff (18)
      • Mounting (1)
    • Plesk (6)
      • Bugs (1)
      • Infomation (1)
      • Troubleshooting (1)
    • Settings (2)
    • SSH (16)
      • Errors (2)
      • Filesystem Operations (5)
    • Statistics and information (8)
    • Tools (12)
    • Troubleshooting (13)
      • Bugs (1)
      • Performance (2)
      • Recovery (2)
    • Video-Processing (1)
  • MacSecrets (3)
  • Magento (78)
    • CMS (1)
    • configuration (1)
    • Layout (5)
    • Module Development (54)
      • adminhtml.xml Snippets (2)
      • api2.xml Snippets (1)
      • config.xml Snippets (10)
      • Gid Column Renderer (2)
      • PHP snippets (33)
        • Setup script snippets (5)
        • Shell scripts (2)
      • system.xml Snippets (4)
        • System configuration fields (2)
      • Widget Development (1)
    • Performance Optimization (3)
    • REST-API (3)
    • Tools (6)
      • Magerun (1)
    • Troubleshooting (10)
    • Useful queries (6)
    • Useful Snippets (2)
  • Magento2 (2)
    • layout (1)
    • Module Development (1)
  • Markup Languages (2)
    • Markdown (1)
    • YAML (1)
  • Microboards (16)
    • Banana Pi (12)
      • Bananian (2)
      • Cases (1)
      • Raspbian (5)
    • IDE's (1)
    • Raspberry Pi (9)
      • Arch Linux (1)
      • LibreELEC (1)
      • OpenELEC (2)
      • Raspbian (5)
  • MySQL (25)
    • Debugging (6)
    • Information (4)
    • Permissions and settings (1)
    • Tips and Tricks (5)
    • Troubleshooting (2)
    • Useful queries (9)
  • OpenOffice / LibreOffice / Excel (1)
  • PHP (17)
    • Composer (1)
    • Helper (5)
      • Image Processing (1)
      • Strings (3)
    • On the commandline (1)
    • Webservices (1)
      • REST (1)
  • PHPStorm / IntelliJ (1)
  • Publications (7)
  • Python (6)
    • Frameworks (2)
    • Helper (4)
      • CGI-Scripts (1)
    • Useful tools (1)
  • Ruby (1)
    • Remote Operations (1)
  • Skype (1)
  • SQL (1)
  • Subversion (11)
    • GIT (11)
      • Gitlab (1)
  • Synology (3)
    • Tips&Tricks (2)
    • Troubleshoot (2)
  • Syntax and structures (1)
  • Typo3 (3)
    • Settings (1)
    • TypoScript (1)
  • Uncategorised (1)
  • VirtualBox (5)
  • Windows (3)
    • Filesystem (1)
    • PowerShell (1)
  • Wordpress (5)
    • Development (2)
    • Woocommerce (1)
      • Development (1)

Tag Cloud

.htaccess 3D alias apache Arch Linux Attributes AWS Backend Banana Pi Bash Contao convert Database find Git grep Grid ISPConfig javascript Linux loop Magento Magento Snippet Magerun Modelling MySQL Performance PHP Plesk Python Raspberry Pi Raspbian redirect setup Shell ssh ssh-keygen static IP System configuration Typo3 Ubuntu VBoxManage Virtualbox Wordpress xargs

Categories Cloud

.htaccess Apache Banana Pi Bash Scripting config.xml Snippets Cool stuff Debugging File opereations Filesystem Operations Filesystem Operations GIT Hardware Helper Home Automation Interesting stuff JavaScript Layout Linux Magento Microboards Module Development MySQL Network Stuff PHP PHP snippets Plesk Publications Python Raspberry Pi Raspbian Raspbian Setup script snippets SSH Statistics and information Subversion Tips and Tricks Tools Tools Troubleshooting Troubleshooting Useful queries Useful queries VirtualBox Webserver configuration Wordpress

Archives

  • February 2025 (2)
  • December 2024 (1)
  • November 2024 (1)
  • January 2024 (1)
  • August 2023 (1)
  • May 2021 (1)
  • December 2020 (1)
  • August 2020 (1)
  • January 2020 (2)
  • October 2019 (1)
  • May 2019 (1)
  • January 2019 (2)
  • November 2018 (2)
  • August 2018 (2)
  • May 2018 (3)
  • April 2018 (5)
  • March 2018 (1)
  • February 2018 (5)
  • January 2018 (3)
  • December 2017 (2)
  • October 2017 (4)
  • September 2017 (5)
  • August 2017 (2)
  • July 2017 (3)
  • June 2017 (3)
  • April 2017 (3)
  • March 2017 (1)
  • February 2017 (1)
  • January 2017 (2)
  • December 2016 (4)
  • October 2016 (5)
  • September 2016 (4)
  • August 2016 (1)
  • July 2016 (3)
  • June 2016 (2)
  • May 2016 (6)
  • April 2016 (6)
  • March 2016 (4)
  • January 2016 (3)
  • December 2015 (1)
  • November 2015 (16)
  • October 2015 (6)
  • September 2015 (6)
  • August 2015 (5)
  • July 2015 (10)
  • June 2015 (5)
  • May 2015 (16)
  • April 2015 (11)
  • March 2015 (12)
  • February 2015 (9)
  • January 2015 (6)
  • December 2014 (9)
  • November 2014 (16)
  • October 2014 (4)
  • September 2014 (1)
  • July 2014 (2)
  • June 2014 (2)
  • May 2014 (3)
  • April 2014 (3)
  • March 2014 (1)
  • February 2014 (3)
  • January 2014 (1)
  • December 2013 (4)
  • November 2013 (2)
  • October 2013 (3)
  • September 2013 (5)
  • August 2013 (2)
  • July 2013 (1)
  • June 2013 (1)
  • May 2013 (1)
  • April 2013 (1)
  • March 2013 (2)
  • February 2013 (2)
  • December 2012 (1)
  • November 2012 (1)
  • October 2012 (1)
  • September 2012 (3)
  • July 2012 (2)
  • May 2012 (3)
  • April 2012 (5)
  • March 2012 (4)
  • February 2012 (1)
  • January 2012 (4)
  • November 2011 (1)
  • September 2011 (1)
  • February 2011 (1)
  • November 2010 (2)
  • May 2010 (3)
  • April 2010 (2)
  • March 2010 (2)
  • February 2010 (1)
  • January 2010 (3)
  • January 2009 (1)
  • December 2008 (1)
  • October 2008 (1)
  • September 2008 (1)
  • January 2008 (1)

Recent Posts

  • Make an electrical junction box cap
  • Velociraptor Resonating Chamber Stand
  • SQL: Query after GUID field
  • Find and shorten file and folder names with a certain length
  • Flush DNS Cache for PowerShell and WSL

Recent Comments

  • planetrocky on Find and shorten file and folder names with a certain length
  • Sheldon on Find and shorten file and folder names with a certain length
  • planetrocky on Find and shorten file and folder names with a certain length
  • Sheldon on Create a bcrypt hash on commandline
  • Sheldon on Create a bcrypt hash on commandline
May 2026
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Feb    
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Cookie Policy
Ask Sheldon Tech Blog
Privacy Policy / Proudly powered by WordPress Theme: Decode.

Loading Comments...

    To change your privacy setting, e.g. granting or withdrawing consent, click here: Settings