(package (name"guile-json") (version"4.3.2") (home-page"https://github.com/aconchillo/guile-json") (source (origin (method url-fetch) (uri (string-append"mirror://savannah/guile-json/guile-json-" version ".tar.gz")) (sha256 (base32 "0255c7f053z4p9mqzhpxwbfx3y47j9nfvlgnm8xasdclyzmjl9y2")))) (build-system gnu-build-system) (native-inputs `(("pkg-config" ,pkg-config) )) (inputs `(("guile" ,guile-3.0))) (synopsis"JSON module for Guile") (description "Guile-JSON supports parsing and building JSON documents according to the specification. These are the main features: @itemize @item Strictly complies to @uref{http://json.org, specification}. @item Build JSON documents programmatically via macros. @item Unicode support for strings. @item Allows JSON pretty printing. @end itemize\n")
;; Version 1.2.0 switched to GPLv3+ (from LGPLv3+). (license gpl3+))
To see all the files the package installed onto your system, do this: dpkg-query -L
To see the files a .deb file will install dpkg-query -c <package_name.deb>
To see the files contained in a package NOT installed, do this once (if you haven’t installed apt-file already: sudo apt-get install apt-file sudo apt-file update
;;----install sources----- ;; Now, first get the source package: apt-get source foo ;;and change to the source tree: cd foo-* ;;Then install needed build-dependencies (if any): sudo apt-get build-dep foo ;;Then create a dedicated version of your own build (so that you won't get confused later when Debian itself releases a new version) dch -l local 'Blah blah blah' ;;And finally build your package debuild -us -uc ;;If everything worked out fine, you should now be able to install your package by running sudo dpkg -i ../*.deb $ tar zxf file.tar.gz $ tar zxf file.tgz $ tar jxf file.tar.bz2 $ tar jxf file.tbz2 $ tar xf file.tar.xz ;;Now change directory $ ls $ cd path-to-software/ # ./configure # make # make install
dpkg-source -x foo_version-revision.dsc
will extract the package into a directory called foo-version.
If you want just to compile the package, you may cd into foo-version directory and issue the command
dpkg-buildpackage -rfakeroot -b
to build the package (note that this also requires the fakeroot package), and then
In the past I have used Ubuntu One until it went out of business, then ownCloud, until it went out of business. I have been looking for a method to perform bidirectional backup to a directory on my Hostgator shared server. Osync initially looked promising, but SSHs into the server too many times, exceeding the 12 allowable attempts per IP per 90 seconds imposed by Hostgator. I fell back to rsync, and had to hack the “bidirectional” feature in an unsatisfactory way.
Rsync
See here for setting up SSH keys. The command to upload from a local directory ~/syncd/ to Hostgator, preserving directory structure:
1 2 3 4 5
cd ~/syncd/ rsync -avzP --delete --rsh='ssh -p2222' /home/mbc/syncd mbcladwell@123.123.123.123:/home2/mbcladwell/public_html/
-q quiet - use with cron -v verbose -r recursive -R relative -t times must be used to transfer only modified files in future backups -a equivalent to -rlptgoD -o owner -g group -p permissions -D devices - transfer char and block device info -z compress -P same as -partial -progress -partial retain partially transferred files -progress show progress (should also use -v )
Create 2 batch files, one for upload and one for download. I will use the upload syntax to register a cron job. The job will run every 15 minutes and back up to the cloud.
If I use a second computer, manually run rsync-download.sh upon login. When returning to the primary computer, again manually run rsync-download.sh to capture any changes made on the auxilliary machine. As a reminder, I created a batch file that will prompt me on login. Add a new autostart with the Applications / Settings / Settings manager / Session and startup / Application autostart dialog with the command: xfce4-terminal -e “bash /home/pl/check-for-download.sh” –hold
check-for-download.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash
## xfce4-terminal -e "bash /home/pl/check-for-download.sh" --hold ## by default input assigned to the variable REPLY echo"Run download script? [Y|n]:" read
if [[ ("$REPLY" == "Y") || ( "$REPLY" == "" ) ]]; then echo"starting download!" ./rsync-download.sh else echo"Download canceled." fi
Backup to USB
I don’t want private keys in the cloud so I backup personal directories and files to a local USB.
$ git clone https://github.com/deajan/osync $ cd osync # sh install.sh [root@xps osync]# ./install.sh Created directory [/etc/osync]. Copied osync.sh to [/usr/local/bin]. Copied osync-batch.sh to [/usr/local/bin]. Copied ssh_filter.sh to [/usr/local/bin]. Created osync-srv service in [/lib/systemd/system] and [/etc/systemd/user]. Can be activated with [systemctl start osync-srv@instance.conf] where instance.conf is the name of the config file in /etc/osync. Can be enabled on boot with [systemctl enable osync-srv@instance.conf]. In userland, active with [systemctl --user start osync-srv@instance.conf]. osync installed. Use with /usr/local/bin/osync In order to make install statistics, the script would like to connect to http://instcount.netpower.fr?program=osync&version=1.2-beta3&os=Linux%20unknown%20unknown%20GNU%2FLinux No data except those in the url will be send. Allow [Y/n]
As mentioned above, osync repeatedly confirms SSH accessibility, exceeding the login limits allowed by my provider. Insert a sleep statement in the CheckConnectivityRemoteHost function to slow the script down. Hostgator allows 12 SSH logins per 90 seconds, with a fresh allocation of logins every 90 seconds.
osync.sh
1 2 3 4 5 6 7
function CheckConnectivityRemoteHost { sleep 10 local retval
A debian image contains Xfce4 as the default, so installation is easy. Good selection of software without all the crapware that comes with Gnome. If you prefer Arch, Manjaro Arch using Xfce4 as the default window manager. More comprehnsive utilities than stripped down WMs like I3.
When installing Debian, there is a special image for automatically installing Xfce4 (instead of Gnome). downloaded torrent from http://cdimage.debian.org/debian-cd/7.4.0/i386/bt-cd/ use sha256sum debian-7.4.0-i386-xfce-CD-1.iso to verify
elect special installation to be able to install with Xfce Selecting encrypted hard drive will start a >10 hour random write to disk which you can cancel out of and continue the install.
Select “Guided – use entire disk and set up LVM”; this is for the xfce window manager installation Partition all files in one partition. Once installed, modify the sources and UPGRADE to the latest packages.
upgrade: used to install the newest versions of all packages currently installed on the system. dist-upgrade: in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages.
Add to startup
Go into settings > settings manager > session and startup > application autostart > add name: MyStartItem command: bash /home//mystartupscript.sh
Another option is to modify /etc/lightdm/lightdm.conf to add the following options:
display-setup-script > calls your mycustomloginvideo.sh before the login screen appears session-setup-script > calls your mycustomdesktopvideo.sh before the user desktop session starts
[SeatDefaults] greeter-session=unity-greeter user-session=ubuntu ;;for your login screen, e.g. LightDM (Ubuntu 11.10) or GDM (11.04 or earlier) display-setup-script=/usr/share/mycustomloginvideo.sh ;;for your desktop session session-setup-script=/usr/share/mycustomdesktopvideo.sh
Repair shutdown button
Need to make the following 2 files and paste in contents