FoxyRoxyLinux Joins the Team

Special files or links to 3rd party application programs

FoxyRoxyLinux Joins the Team

Postby jbv » Sat Aug 31, 2013 9:19 am

TeamViewer8.jpg
TeamViewer8.jpg (18.42 KiB) Viewed 12169 times

Remote Access at it's finest.
With this injection, you can control computers even if they are running Windows, Mac OS, or Android.
You can also control your FoxyRoxyLinux machine remotely using any of the aforementioned devices.

Version 8 of TeamViewer has undergone extensive testing using FoxyRoxyLinux as both a host and remote node.
With this little gem, you can easily take over Windows and Mac machines, while keeping that Android in it's place.

This add-on is complete with a 99-snap extension to save all of your passwords, remote machine details, and configuration data into 05-FoxyConfig.
Also included is 15-inject, a script to inject the FoxyTeamViewer into your FoxyDesktop.

The 18Mb file can be downloaded by <clicking this link>

You will need to rename the extension and remove .noload before restarting for TeamViewer to run.

TeamViewer will appear in the [TaskBar Menu] --> [Internet]

This add-on includes a slightly "tweaked" /etc/rc.local which will dynamically fixs the dpkg database using our new and improved dpkg handler.
- have a look in /var/lib/dpkg and all should become as clear as mud.

As usual, the add-on includes extensions for 99-snap and a smart 15-inject which will integrate the add-on into your FoxyDesktop while also patching your dpkg database.

For more information on TeamViewer or to find the appropriate installers for other operating systems, visit the TeamViewer WebSite by <clicking this link>

TeamViewer is Free for personal use.
If used commercially, you should purchase the appropriate license.
jbv
 
Posts: 600
Joined: Sat Jul 14, 2012 2:02 am
Location: Sydney, Australia

Re: FoxyRoxyLinux Joins the Team

Postby saintless » Sun Sep 01, 2013 4:39 am

Thanks, Brenton.

I will try to test it and play more with it in the next few days.

Cheers, Toni
User avatar
saintless
 
Posts: 246
Joined: Sat Jul 14, 2012 7:01 am
Location: Bulgaria

Re: FoxyRoxyLinux Joins the Team

Postby KazzaMozz » Tue Sep 03, 2013 11:48 am

This looks very interesting.
Nice work!
My main test machine just died and I'm attempting to resurrect her so I can play again. Must be that time of year when PCs turn up their toes. Anyway I hope to also get it sorted this week and have some time to trial this out too.
More hours in the day would be good.
Cheers

Kazza
User avatar
KazzaMozz
 
Posts: 332
Joined: Tue Aug 21, 2012 9:59 pm
Location: Australia

Re: FoxyRoxyLinux Joins the Team

Postby saintless » Tue Sep 03, 2013 4:22 pm

Hi, Brenton.

Wonderful little program!
The remote connection between FoxyRoxy and KDpup (with older version of Teamviewer - v6.1) works well from FoxyRoxy machine.
I can control KDpup machine and I can send files to it without any further settings. I just have to start TeamViewer and to fill in the connection ID and password. But I can't do the connection from KDpup to FoxyRoxy because KDpup has the older version of TeamViewer.
Also the control operations from FoxyRoxy are a little bit slow but this is because of my old hardware I guess.

Cheers, Toni

Image
User avatar
saintless
 
Posts: 246
Joined: Sat Jul 14, 2012 7:01 am
Location: Bulgaria

Re: FoxyRoxyLinux Joins the Team

Postby jbv » Wed Sep 04, 2013 11:22 am

Hi Toni,

Thanks for the feedback. I threw this together the night before I moved North. Prior to the actual move, it was the only way I could control all of the machines in my Sydney home (all running Windows) while I was using my little Acer Netbook (running Foxy). Occasionally I would chat with the family using Skype (FoxyRoxy to FoxyRoxy). However, cleaning it up and making it fit for human consumption was only done last week.

Glad to hear that I cleaned it up properly.
Can you confirm that I got all of the 99-snap (save config/login/etc) correct?

Cheers, Brenton
jbv
 
Posts: 600
Joined: Sat Jul 14, 2012 2:02 am
Location: Sydney, Australia

Re: FoxyRoxyLinux Joins the Team

Postby saintless » Wed Sep 04, 2013 2:21 pm

jbv wrote:Can you confirm that I got all of the 99-snap (save config/login/etc) correct?

Hi, Brenton.

Give me a day or two to test the scripts proper and I will write back.

Cheers, Toni
User avatar
saintless
 
Posts: 246
Joined: Sat Jul 14, 2012 7:01 am
Location: Bulgaria

Re: FoxyRoxyLinux Joins the Team

Postby saintless » Wed Sep 04, 2013 8:01 pm

Hi, Brenton.

15-load and 15-save scripts work OK.
As far as I can see 99-snap-FoxyTeamViewer script also is working as it should.
We have a problem with 15-inject and I think we have the same problem with 11-inject for Skype. I need to test it proper to confirm.
15-inject script does the job from the terminal message and it looks like it is true at first look:
Code: Select all
root@debian:~# /scripts/15-inject
*** This will INJECT 15-FoxyTeamViewer.squashfs into FoxyRoxy
***
*** After applying this injection, the packages contained within
*** 15-FoxyTeamViewer.squashfs will load as part of FoxyRoxyLinux
***
*** To stop reloading, 15-FoxyTeamViewer.squashfs will be renamed
*** You can delete the .noload file to recover disk space
*** The dpkg database will be updated to show injected packages.
***

Press Any Key to Continue...

***
*** Load: /live/image/live/02-FoxyDesktop.squashfs
*** Into: /live/image/sqf-inject
*** Inject: /live/image/live/15-FoxyTeamViewer.squashfs
***
Press Any Key to Continue...
Parallel unsquashfs: Using 1 processor
17095 inodes (16977 blocks) to write

[==========================================================-] 16977/16977 100%
created 12088 files
created 1957 directories
created 5007 symlinks
created 0 devices
created 0 fifos
Parallel unsquashfs: Using 1 processor
321 inodes (708 blocks) to write

[==============================================================|] 708/708 100%
created 270 files
created 110 directories
created 51 symlinks
created 0 devices
created 0 fifos
... Updating dpkg
... Found additions - updating available
... Found additions - updating status
... dpkg has been updated
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /live/image/02-FoxyDesktop.squashfs, block size 131072.
[==========================================================|] 12611/12611 100%
Exportable Squashfs 4.0 filesystem, data block size 131072
   compressed data, compressed metadata, compressed fragments
   duplicates are removed
Filesystem size 157373.39 Kbytes (153.68 Mbytes)
   37.36% of uncompressed filesystem size (421263.98 Kbytes)
Inode table size 176441 bytes (172.31 Kbytes)
   24.99% of uncompressed inode table size (706135 bytes)
Directory table size 187579 bytes (183.18 Kbytes)
   39.38% of uncompressed directory table size (476376 bytes)
Number of duplicate files found 2547
Number of inodes 19447
Number of files 12348
Number of fragments 1048
Number of symbolic links  5058
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 2041
Number of ids (unique uids + gids) 2
Number of uids 2
   root (0)
   man (6)
Number of gids 1
   root (0)
... Flushing disk buffers ...
*** Renaming the injection file to stop it loading as an Overlay
*** Rename: /live/image/live/15-FoxyTeamViewer.squashfs
*** to be : /live/image/live/15-FoxyTeamViewer.squashfs.noload


***
*** The Injection process is complete
***
*** Your system will now be restarted
***

Press Any Key to Continue...

After restart TeamViewer is working but the dpkg database is not really updated.
Here is the terminal message after successful apt-get update command:
Code: Select all
root@debian:~# apt-get install teamviewer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package teamviewer
root@debian:~#


I can't find any information about TeamViewer in /var/lib/dpkg/available or status files.

I did the test twice.

Here is the message with separate TeamViewer squashfile loaded:
Code: Select all
root@debian:~# apt-get install teamviewer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
teamviewer is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 117 not upgraded.
root@debian:~#


At first I thought there is a mistake here:
cat "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-available.new >> "$sqf_work"/var/lib/dpkg/available

and it should be this way:
cat "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-available.new > "$sqf_work"/var/lib/dpkg/available

But I was wrong. It does not solve the dpkg database update.
Continue testing.

Cheers, Toni
User avatar
saintless
 
Posts: 246
Joined: Sat Jul 14, 2012 7:01 am
Location: Bulgaria

Re: FoxyRoxyLinux Joins the Team

Postby jbv » Thu Sep 05, 2013 10:01 am

Thanks Toni,

If you could play a little more, I'd appreciate it. I will have a closer look on the weekend also.

Cheers, Brenton
jbv
 
Posts: 600
Joined: Sat Jul 14, 2012 2:02 am
Location: Sydney, Australia

Re: FoxyRoxyLinux Joins the Team

Postby saintless » Thu Sep 05, 2013 6:02 pm

Hi, Brenton.

The 15-inject script mystery is solved, but it leads us to bigger one now :(

The update part of the script has to be changed from this:
echo "... Updating dpkg"
if [ -f "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-available.new ]; then
echo "... Found additions - updating available"
cp -f "$sqf_work"/var/lib/dpkg/available "$sqf_work"/var/lib/dpkg/available-old
cat "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-available.new >> "$sqf_work"/var/lib/dpkg/available
rm -f "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-available.new
fi
if [ -f "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-status.new ]; then
echo "... Found additions - updating status"
cp -f "$sqf_work"/var/lib/dpkg/status "$sqf_work"/var/lib/dpkg/status-old
cat "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-status.new >> "$sqf_work"/var/lib/dpkg/status
rm -f "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-status.new
fi
echo "... dpkg has been updated"


to this (for example):
echo "... Updating dpkg"
if [ -f "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-available.new ]; then
echo "... Found additions - updating available"
cp -f "$sqf_work"/var/lib/dpkg/available "$sqf_work"/var/lib/dpkg/available-old
cat "$sqf_work"/var/lib/dpkg/available-old "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-available.new > "$sqf_work"/var/lib/dpkg/available
rm -f "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-available.new
fi
if [ -f "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-status.new ]; then
echo "... Found additions - updating status"
cp -f "$sqf_work"/var/lib/dpkg/status "$sqf_work"/var/lib/dpkg/status-old
cat "$sqf_work"/var/lib/dpkg/status-old "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-status.new > "$sqf_work"/var/lib/dpkg/status
rm -f "$sqf_work"/var/lib/dpkg/"$sqf_loadseq"-status.new
fi
echo "... dpkg has been updated"



With the above (last) modification /var/lib/dpkg/available and /var/lib/dpkg/status files in 02-FoxyDesktop have all the information about TeamViewer, but for some reason FoxyRoxy does not load them and uses available.old and status.old files.

To make it more clear - the rebuild 02-FoxyDesktop has the TeamViewer information in /var/lib/dpkg/available and /var/lib/dpkg/status files, but the loaded on the fly files on the working system doesn't have TeamViewer inside. Strange but true :shock:

The same thing happen after the original 15-inject script is executed, but the difference is /var/lib/dpkg/available and /var/lib/dpkg/status files have only TeamViewer information inside. The same way then FoxyRoxy uses available.old and status.old files instead. I have no idea way yet. I guess TeamViewer package makes some confusion in dpkg for some reason.

I haven't test the other injections this way yet but I will try to do it soon to confirm or reject if the problem is common.

Cheers, Toni
User avatar
saintless
 
Posts: 246
Joined: Sat Jul 14, 2012 7:01 am
Location: Bulgaria

Re: FoxyRoxyLinux Joins the Team

Postby saintless » Thu Sep 05, 2013 6:36 pm

Just a quick test which can give us some clue:
When I copy the information from 15-available.new in available and from 15-status.new in status and run in terminal:
Code: Select all
dpkg --configure -a

After this:
Code: Select all
apt-get update

and
Code: Select all
apt-get install teamviewer

the result is OK and the changes can be saved after reboot.
I think we are missing some step of the dpkg update process. It needs more testing but it does not look good to me. I'm afraid the problem can be very difficult to be solved. We can't include dpkg --configure command in injection script, because the changes from it will be written in /live/cow and we need them inside 02-FoxyDesktop.
Possible solution will be to use one available.new and one status.new file for all injections instead of /var/lib/dpkg/available and status. It also need testing.

Cheers, Toni
User avatar
saintless
 
Posts: 246
Joined: Sat Jul 14, 2012 7:01 am
Location: Bulgaria

Next

Return to FoxyRoxyLinux - Addons



Who is online

Users browsing this forum: No registered users and 1 guest

cron