Get rid of the master-branch @ github

Written by  on October 30, 2016

issue:

solution:

  1. create a fake branch and push it
  2. go to github > $your_repo > settings > branches > default branch and make the fake branch the current one
  3. delete master
  4. push new master
  5. revert the default branch

share a folder via SMB on CLI

Written by  on October 23, 2016

The missing counter-part for this post.

    • create new smb-user pi: “$ sudo smbpasswd -a pi
    • create directory: “$ mkdir freigabeATminipc
    • set rights: “$ sudo chmod 770 freigabeATminipc/
    • edit config: “$ sudo nano /etc/samba/smb.conf
      add at end of the file the following and save-quit (CTRL+X; y)

  • restart: “$ sudo service smbd restart
  • check if everything fits: “$ testparm

Mixing SVN and Git

Written by  on October 23, 2016

When you join a new team, you don’t enforce your view of best tools of trade – instead you adapt to the new environment. Even if that means that you have to switch from your favorite CVS (Git) to something you used last time in 2008 (Subversion) …
I am aware, that the Git-client is fully backward-compatible to SVN and also able to do the most common tasks. But for me it was the branching model, the stashes and also the GUI from SmartGit, which lead me to the idea: why not mix both version-controls in one directory?

steps:

  1. clone the repository via SVN (TortoiseSVN)
  2. run $ git init
  3. add the following stuff to your .gitignore:
  4. add the following exclusions to your TortoiseSVN > Settings > General > Subversion > Global ignore-pattern:
  5. stash, branch, stage as much as you want – use TortoiseSVN for the final commit, which should be published to the team

I use this set-up now for some weeks and it works. Saved me lots of hassles. Because I have not figured out (yet?) how to create local “mile-stones” as safety-backup with SVN.

RPi: force certain resolution for VNC in headless mode

Written by  on October 7, 2016

Edit /boot/config.txt (maybe via “$ sudo nano /boot/config.txt”) and add the following two lines:

Other sources suggest also to tinker with the hdmi_mode, but for my Raspberry Pi 3 this was sufficient.

Full official manual for config.txt.

mount a smb-share (not via fstab!)

Written by  on October 7, 2016

Don’t know how often I did this on several systems and still always(!) have to pick the parameters.

Check for available shares in the network via “smbtree”.