{"id":559,"date":"2019-05-30T12:10:43","date_gmt":"2019-05-30T11:10:43","guid":{"rendered":"https:\/\/notiz.comanet.xyz\/?p=559"},"modified":"2019-05-30T23:46:59","modified_gmt":"2019-05-30T22:46:59","slug":"linux-rsync-raspberry-pi","status":"publish","type":"post","link":"https:\/\/notiz.comanet.xyz\/?p=559","title":{"rendered":"Linux &#8211; Raspberry Pi &#8211; RSync"},"content":{"rendered":"<p>https:\/\/www.raspberrypi.org\/downloads\/<\/p>\n<p>Install NTFS RPi Support<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-563\" src=\"https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2019\/05\/rpi_ntfs_install-300x188.jpg\" alt=\"\" width=\"300\" height=\"188\" srcset=\"https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2019\/05\/rpi_ntfs_install-300x188.jpg 300w, https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2019\/05\/rpi_ntfs_install-768x482.jpg 768w, https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2019\/05\/rpi_ntfs_install-850x533.jpg 850w, https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2019\/05\/rpi_ntfs_install.jpg 1007w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<pre>$ rsync \r\n$ sudo apt install rsync<\/pre>\n<header class=\"entry-header\">\n<h1 class=\"entry-title\">Gadmintools \u2013 GADMIN-RSYNC<\/h1>\n<\/header>\n<div class=\"entry-content\">\n<p>GAdminRsync is a C\/GTK+ graphical user interface for the rsync Client and Server. <a href=\"https:\/\/mange.dynalias.org\/linux\/gadmin-rsync\">https:\/\/mange.dynalias.org\/linux\/gadmin-rsync<\/a><\/p>\n<pre>$ sudo apt-get install gadmin-rsync<\/pre>\n<\/div>\n<p>Run Gadmin-Rsync<\/p>\n<pre>$ sudo gadmin-rsync<\/pre>\n<h1 class=\"page-title\">Desktop Shortcuts<\/h1>\n<pre>[Desktop Entry]\r\nName=Gadmin-Rsync\r\nComment=Rsync GUI\r\nIcon=\/usr\/share\/pixmaps\/openbox.xpm\r\nExec=sudo gadmin-rsync\r\nType=Application\r\nEncoding=UTF-8\r\nTerminal=false\r\nCategories=None;<\/pre>\n<h4>Adding A New Desktop Shortcut<\/h4>\n<p>Create a new text file called yourname.desktop in the \/home\/pi\/Desktop\/ directory, e.g. \/home\/pi\/Desktop\/yourname.desktop<\/p>\n<p>It should contain the following:<\/p>\n<pre><code>\r\n[Desktop Entry]\r\nName=My Name\r\nComment=My application which does this\r\nIcon=\/usr\/share\/pixmaps\/openbox.xpm\r\nExec=\/usr\/bin\/leafpad\r\nType=Application\r\nEncoding=UTF-8\r\nTerminal=false\r\nCategories=None;\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>Name \u2013 The name you want displayed<\/p>\n<p>Comment \u2013 Your comment<\/p>\n<p>Icon \u2013 A file to use for the icon. \u00a0Your own or have a look in the \/usr\/share\/pixmaps\/ directory for something suitable.<\/p>\n<p>Exec \u2013 The executable (can include sudo if your executable uses the IO). Can be the name of an executable program, or more complex, e.g. Exec=lxterminal \u2013command &#8220;less \/root\/README.TXT&#8221;<\/p>\n<h4>Executing A Command In LX Terminal<\/h4>\n<p>The following will open LX terminal, wait\u00a0for 5 seconds and then it will close:<\/p>\n<pre><code>\r\n\r\n[Desktop Entry]\r\nName=Name to be shown on desktop\r\nComment=My comment\r\nIcon=\/usr\/share\/pixmaps\/openbox.xpm\r\nExec=lxterminal -t \"Tile to display\" -e sleep 5\r\nType=Application\r\nEncoding=UTF-8\r\nTerminal=false\r\nCategories=None;\r\n<\/code><\/pre>\n<p>LX Terminal will auto close once the command is complete. \u00a0You can&#8217;t give more than 1 command in the -e launch options (you can&#8217;t give it &#8220;-e dosomething ; sleep 5&#8221; for instance as a way to make it hold showing the result after dosomething.<\/p>\n<h4>Stopping The LX Terminal Auto Closing Or Doing Multiple Things<\/h4>\n<p>The simple way to get round the Lxterminal only being able to take one command is to have it run a bash script.<\/p>\n<h5>The .desktop file<\/h5>\n<pre><code>\r\n[Desktop Entry]\r\nName=Name to be shown on desktop\r\nComment=My comment\r\nIcon=\/usr\/share\/pixmaps\/openbox.xpm\r\nExec=lxterminal -t \"Sending Crack The Code MAIN Leader Board To Internet\" --working-directory=\/home\/pi\/projects\/scripts\/ -e .\/myscript.sh \r\nType=Application\r\nEncoding=UTF-8\r\nTerminal=false\r\nCategories=None;\r\n<\/code><\/pre>\n<h5>The .sh script<\/h5>\n<pre><code>\r\n#!\/bin\/bash\r\n\r\necho \"Starting upload of database\"\r\nread dummy\r\necho \"next\"\r\nmysqldump -h localhost -u user1 -p123456789 mydatabase tbl_universities | mysql -h mydomain.com -u user1 -p123456789 mydatabase\r\necho \"Complete. Press return to exit\"\r\nread dummy\r\n<\/code><\/pre>\n<p>Remember to set the files permissions so it is executable (right click &gt; properties in the file manager)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.raspberrypi.org\/downloads\/ Install NTFS RPi Support &nbsp; $ rsync $ sudo apt install rsync Gadmintools \u2013 GADMIN-RSYNC GAdminRsync is a C\/GTK+ graphical user interface for the rsync Client and Server. https:\/\/mange.dynalias.org\/linux\/gadmin-rsync $ sudo apt-get install gadmin-rsync Run Gadmin-Rsync $ sudo gadmin-rsync Desktop Shortcuts [Desktop Entry] Name=Gadmin-Rsync Comment=Rsync GUI Icon=\/usr\/share\/pixmaps\/openbox.xpm Exec=sudo gadmin-rsync Type=Application Encoding=UTF-8 Terminal=false Categories=None; Adding&#8230;<\/p>\n","protected":false},"author":1,"featured_media":578,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[],"class_list":["post-559","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-s","category-linux"],"_links":{"self":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=559"}],"version-history":[{"count":8,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/559\/revisions"}],"predecessor-version":[{"id":571,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/559\/revisions\/571"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/media\/578"}],"wp:attachment":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}