Skip to content

Curly Braces

Golden nuggets where no entry is longer than my expected attention span

  • Articles
  • Contact Me!
  • Policy
  • Internal

Category: Linux

Setting Up a Mail Server with Postfix: A Step-by-Step Guide

Posted on October 1, 2024 by Peter Andersson

When setting up a mail server on Linux, Postfix is one of the most popular choices for a mail transfer agent (MTA). Whether you’re sending […]

Continue reading »
0
bash, Development, Linux, Network

SSH – Secure Shell Tips and Tricks in 2023

Posted on March 9, 2023 by Peter Andersson

What you need to know There are several benefits of using SSH (Secure Shell) for remote access and file transfer: Overall, SSH is a powerful […]

Continue reading »
0
bash, Development, Linux, Network

Running a Python Flask application under Apache

Posted on August 15, 2022 by Peter Andersson

When developing a Flask application, you normally run it from the terminal using flask run or in the code app.run() But when the app is […]

Continue reading »
1
Apache, Development, Linux, Network, Python

About Volatility

Posted on June 18, 2022 by Peter Andersson

Volatility is one of the most important attributes of any tradeable instrument. It indicates how volatile, or ‘risky’ if you will, the price is. But […]

Continue reading »
0
Development, Linux, Math, Trading

Howto setup a Python Flask application as a system service on Linux

Posted on June 9, 2022 by Peter Andersson

With Flask you can have your backend coded in minutes, and with for example a Linode server you can get a $10/month-server up and running […]

Continue reading »
0
bash, Development, Linux, Network, Python

A simple JWT example with NodeJS and Python (part 1)

Posted on June 6, 2022 by Peter Andersson

The following example is built using a Python Flask backend, a CURL-script to test it, and a simple React frontend that logs in, gets an […]

Continue reading »
0
Development, Javascript, Linux, Node, Python

Why Windows Suck

Posted on October 14, 2021 by Peter Andersson

Why it sucks? The TL;DR is “It’s not Linux”. I really want to like Windows. And God knows I have tried. A couple of times […]

Continue reading »
0
Development, Linux, Microsoft, Thoughts, Web

Creating a bigger swap file on Linux Mint

Posted on January 5, 2021 by Peter Andersson

For some reason, Linux Mint (and other variants probably?) creates a measily 2GB swap file, which is too small IMHO when you have 16GB or […]

Continue reading »
0
Linux

PATH

Posted on December 1, 2020 by Peter Andersson

How the system path is set is quite complicated, depending on your system and shell setup. But for the most common one (Linux Mint/Bash in […]

Continue reading »
0
bash, Development, Linux

Great color themes for your Linux terminal

Posted on October 25, 2020 by Peter Andersson

The major difference between Linux and Windows is the quality of the terminal. I would say the comparison is like comparing a with a But […]

Continue reading »
0
Development, Linux

Fixing CUPS error on Linux Mint

Posted on August 18, 2020 by Peter Andersson

I had terrible problems connecting to my Wifi printer Canon MG5450. It worked perfectly from my Imac, but from my Linux Box I got “server-error-internal-error” […]

Continue reading »
0
Linux

Monitoring using iotop

Posted on November 20, 2019 by Peter Andersson

iotop is installed via sudo apt install iotop and is a great tool for monitoring I/O in your box.   Here are a few tips […]

Continue reading »
0
Linux

Customizing a new Linux Mint setup

Posted on November 17, 2019 by Peter Andersson

So it finally happened. After years of usage I managed to f**k up my linux boot. I suspect the HDD was about to give up […]

Continue reading »
0
Git, Linux

Configuring the Spring Boot Actuator

Posted on October 25, 2019 by Peter Andersson

The Actuator is a great tool. The documentation and history of changed configuration and implementation is however a big big mess. To cut a LONG […]

Continue reading »
0
Development, Java, Linux

The Top Command

Posted on May 12, 2019 by Peter Andersson

You now the command top? The one you use when you want to see if there is one process hogging all the CPU? But there […]

Continue reading »
0
Linux

Setting up Apache with Letsencrypt certificates

Posted on March 25, 2019 by Peter Andersson

Since you need a domain name, and I almost always use dynamic domain services, I recommend setting up ddclient so that the dynamic DNS is […]

Continue reading »
0
Apache, Development, Linux, Network

No thank you!

Posted on March 12, 2019 by Peter Andersson

Putting a server on the internet is today similar to walking alone at night in a part of the city you know nothing about, where […]

Continue reading »
0
Development, Linux, Network

Administrate your Linux system using your web browser

Posted on December 13, 2018 by Peter Andersson

Linux is great, but granted, sometime it can feel a little complicated. Installing and configuring software always start with a Google: “howto install XXX Ubuntu […]

Continue reading »
0
Linux, Network

Asymmetric Key Cryptography

Posted on October 26, 2018 by Peter Andersson

I know, it’s a mouthful! I never thought I’d understand asymmetric cryptography, partly because I tend to stay away from REALLY complicated stuff, and partly […]

Continue reading »
0
Development, Linux, Math

Bringing some order in your data files

Posted on October 8, 2018 by Peter Andersson

Lots of harddisk space leads to…. lots of files. Why throw stuff away when keeping it is so cheap? I always end up with a […]

Continue reading »
0
Development, Linux, OSX, Video

Mounting a SMB Disk from a Linux Terminal

Posted on April 30, 2018 by Peter Andersson

(since I always forget the username part) mkdir MyDir sudo mount -t cifs -o username=myusername,password=mysecretpass //<ip-address>/SHARE MyDir/ Reference: https://access.redhat.com/solutions/448263  

Continue reading »
0
Linux, Network

Adding a new website under Apache

Posted on April 18, 2018 by Peter Andersson

Apache Apache is a great piece of website software. What I like the best, is that it is mature and reliable. It is also easy […]

Continue reading »
0
Apache, Development, Linux, Wordpress

Useful Linux commands

Posted on April 3, 2018 by Peter Andersson

Note: All commands must be prefixed with “sudo” in case your user account doesn’t have enough privileges. System $ uname -a Displays Linux system information […]

Continue reading »
0
Development, Linux, Network

Setting up a DNS-server on Ubuntu 16.04

Posted on March 30, 2018 by Peter Andersson

ref: https://tecadmin.net/configure-dns-server-on-ubuntu-linuxmint/ BIND9 If you have a “normally complex” network at home, You usually have an internet router which takes care of DNS-resolutions. However the downside […]

Continue reading »
0
Linux

Installing node.js on Ubuntu (16.04 specifically)

Posted on March 26, 2018 by Peter Andersson

how-to-install-node-js-on-ubuntu-16-04 has a great explanation, but long, about the details. The short version come here: Do NOT use the ubuntu package version. It´s old and named […]

Continue reading »
0
Javascript, Linux

Video editing! In Linux !! from the Terminal !!!!

Posted on March 25, 2018 by Peter Andersson

I love this blog post from Daniel Clark, who normally writes little nuggets about Ruby on Rails. But here he describes how to edit video […]

Continue reading »
0
Linux, Video

Sending mail from Ubuntu 16.04

Posted on March 20, 2018 by Peter Andersson

This worked for me: https://askubuntu.com/questions/522431/how-to-send-an-email-using-command-line With CERT fixes from here: https://stackoverflow.com/questions/39341137/postfix-must-issue-a-starttls-command-first  

Continue reading »
0
Linux, Network

Creating a Ubuntu/Linux user

Posted on March 8, 2018 by Peter Andersson

sudo adduser alpha Answer all quesions, I isually hit Enter on all except Full Name If you want to make this a sudo-able user, add […]

Continue reading »
0
Linux

Saving GIT passwords

Posted on February 28, 2018 by Peter Andersson

Saving your git password lets you skip giving username/password at every checkin Normally you use git config –global credential.helper store  but this is not very […]

Continue reading »
0
Development, Git, Linux

Setting up MYSQL, Apache2 and WordPress

Posted on February 26, 2018 by Peter Andersson

MySQL/MariaDB Remember to change bind-address to 0.0.0.0. By default it is set to 127.0.0.1 and then you can’t connect remotely! Exactly which config file it […]

Continue reading »
0
Apache, Development, Linux, MySQL, Network, Wordpress

SSH Login without password

Posted on February 24, 2018 by Peter Andersson

http://www.linuxproblem.org/art_9.html Basically you add the content of your own ~/.ssh/id_rsa.pub to the targets ~/.ssh/authorized_keys file. (Replace ‘a’ with your username, A with your hostname or […]

Continue reading »
0
Development, Linux, Network

Setting up Oracle Java 9 on Ubuntu

Posted on February 23, 2018 by Peter Andersson

Since Oracles own instructions (https://docs.oracle.com/javase/9/install/installation-jdk-and-jre-linux-platforms.htm)  sucks big time, I can recommend this one instead: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04 Simple and easy to follow. And it WORKS!

Continue reading »
0
Development, Java, Linux

Setting up Samba on Ubuntu

Posted on February 23, 2018 by Peter Andersson

First of all, check the documentation: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server then go ahead: sudo apt-get install samba decide which LINUX user should be used (or create a new). […]

Continue reading »
0
Linux, Network, Samba

What you need to know about AWK

Posted on February 20, 2018 by Peter Andersson

General structure BEGIN { print “BEGIN” }       /filter1/ { print $0 }      /$6 == “Nov”/ { print $1, $2 } […]

Continue reading »
0
Development, Linux

Running a script “later”

Posted on February 5, 2018 by Peter Andersson

You know how it is, you need to download a 3GB install kit, but don’t want to disturb the missuz by clogging all the bandwidth. […]

Continue reading »
0
Development, Linux, Network, Ruby on Rails

How to setup a Raspberry Pi as a NAS using Samba

Posted on April 29, 2017 by Peter Andersson

http://www.simonthepiman.com/how_to_setup_windows_file_server.php

Continue reading »
0
Linux, Network, Raspberry Pi, Samba

Test and Maximize network thruput

Posted on March 18, 2017 by Peter Andersson

I had to transfer lots (LOTS) of video files from my IMAC where I had catptured a bunch of older DV tapes. Since space ran […]

Continue reading »
0
Linux, Network, OSX

A workflow to sort pictures and movies by date captured (EXIF data)

Posted on March 14, 2017 by Peter Andersson

I have lots and lots of home made movies, mostly in the form of DV-tapes and SD-cards. (This workflow also works for photos and other […]

Continue reading »
0
Imaging, Linux, OSX, Photo, Video

Från bloggen

AI Ajax Apache bash Development Docker Git Google Gradle Heroku HTML and CSS Imaging IOS Java Javascript Linux Math MIcroservices Microsoft MySQL Network Node OSX Palmemordet Patterns Photo PHP Python Raspberry Pi React Ruby Ruby on Rails Samba Spring Boot Tankar Thoughts Trading Uncategorized Video Visual Studio Code Vue Web Wordpress XCode
May 2025
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Mar    

Articles

Favourite Links

  • A Rock Solid Rails 5 API App with a React Frontend
  • Rails 5.1's form_with tag
  • Complex Rails forms
  • Rails is scalable

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Powered by WordPress and Momentous.