diff options
Diffstat (limited to 'README.org')
-rw-r--r-- | README.org | 55 |
1 files changed, 52 insertions, 3 deletions
@@ -69,7 +69,7 @@ Use =-DCMAKE_INSTALL_PREFIX= when running cmake to change the install path. # make a build directory and enter it > mkdir ~/ck_build; cd ~/ck_build; # run cmake - > cmake ~/code/ck + > cmake ~/code/ck # run make > make # install it @@ -235,15 +235,64 @@ This section is an example usage. $ ck del emacs init.el # restore all links (on a new instalation) - $ ck restore all + $ ck restore --all # restore a program's links - $ ck r -p emacs + $ ck r emacs # get help for an action $ ck h add $ ck --help e #+END_SRC +** Copying configs to a different linux system + +Using the method described below one can use ck +to copy the configs to a different linux system. +In this example we assume we have the ck instance we created +above and we want to copy some configs to our new VPS. + +We will also assume that the VPS' username is different +that the one on our desktop (=ckuser= in our example). + +**** Start at the desktop by exporting the ck files +#+BEGIN_SRC sh + you@desktop -> ck export +#+END_SRC + +**** Copy the resulting tar file to the server +#+BEGIN_SRC sh + you@desktop -> scp ck.tar.gz ckuser@server:/home/ckuser +#+END_SRC + +**** Now we ssh to the server +#+BEGIN_SRC sh + you@desktop -> ssh ckuser@server +#+END_SRC + +**** Start by untaring the archive & installing ck +#+BEGIN_SRC sh + ckuser@server -> tar zxf ck.tar.gz +#+END_SRC + +**** Move the //version_control_dir// and //secer_dir// to where you want them to be +**** Move the //ckrc// and //ckdb// files where you want ck config home to be +**** Edit //ckrc// and change the *home_dir* to /home/ckuser +**** Also change //secret_dir// and //version_control_dir// to where you placed them before +**** Make sure ck will find your config by default by setting the $CK_CONFIG environment variable + Edit bashrc to make this permanent. + #+BEGIN_SRC sh + ckuser@server -> export CK_CONFIG=/where/you/have/ckrc/and/ckdb + #+END_SRC + + Note, you might not have to use this if you use one of the default config locations. + ck will first check $XDG_CONFIG_HOME/ck and then $HOME/.ck so using either one of these will do. +**** Remove any existing conflicting configs +**** Restore your configs +#+BEGIN_SRC sh + ckuser@server -> ck restore zsh + ckuser@server -> ck restore emacs +#+END_SRC + * manpage :PROPERTIES: :CUSTOM_ID: manpage |