30 December, 2013

Debian på Samsung 220 N

Debian Image for the System

The "recipe" on the Debian site skips one important step:

  1. umount /dev/sdbX
  2. cp debian-image /dev/sdbX
  3. sync
Then the USB is ready.

NB: What is mounted where?


# mount

Result:

# /dev/sdb1 on /media/perFoto type vfat ... etc.

En MacBook kan med andre ord administreres med de samme redskaber som ethvert andet Unix / Linux system.

Copy files from Linux to Mac

Use sftp along these lines in a commandline window:

# sftp userName@192.168.XXX.YYY 
# password: ************** 

 Then use something like:

 # get -r *

Yderligere tips: enable ssh on Mac:

Kort version:

  1. System > Preferences
  2. Enable "Remote Login"

07 December, 2013

Git from the commandline

How to use Git in a terminal window:
   git init
   git add *
   git config --global user.name "yourUserName"
   git config --global user.email "your@email.web"
   git add *
   git commit -m 'First upload'
   git push origin master
It's more easy than using the GUI client.