Linux4UnMe Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Sabayon and Easytether - A HOWTO to get your networking installed and update your machine!

Go down

Sabayon and Easytether -  A HOWTO to get your networking installed and update your machine! Empty Sabayon and Easytether - A HOWTO to get your networking installed and update your machine!

Post  kd5ob Fri May 24, 2013 11:18 pm

I wrote this article this week and posted it ot Sabayon user forums.

https://forum.sabayon.org/viewtopic.php?f=52&t=30024

I sincerely hope this will help people with Easytether and Sabayon and also teach them something.

The entire purpose of this document is to help users installing Sabayon who can’t seem to get networking going via either a WIFI or Ethernet due to proprietary drivers which are not included on the install DVD.

http://www.sabayon.org/

I’m assuming you’ve already gone to the Sabayon website and downloaded their DVD and installed it on your machine and have discovered you just can’t get networking going.
Well, if you have a droid phone and have installed Easytether on that phone, help is on the way!

How to get Sabayon 13.04 working on laptops with proprietary wifi drivers like Broadcom using
KNOPPIX and Easytether and a ANDroid phone.

Knoppix is a live CD/DVD which allows you to bootup a working linux desktop without having to install any software to your hard drive. It is available from the following link.

http://knoppix.net/

I have the DVD version downloaded and burned to a DVD ISO.
When you run the DVD you will notice under the KNOPPIX menu that you can install KNOPPIX to a usbflash drive. This will also allow you to create your own encrypted/private
home directory. I’ve done this on a 32gb usbflash drive and will be using it during this writeup.

You can download the Easytether .deb file using your Droid phone after you’ve installed the Easytether.apk via the droid software store built into your phone. There is a link in there to take
you directly to the website to download it. If you still can’t seem to find it, I am providing the link to Easytether website and you can enter that directly on the working machine of your choice.

http://www.mobile-stream.com/

From this website, just click on the android link first. Next click on the link “ download desktop drivers for PC“ And it should take you to this page.

http://easytether.blogspot.com/2010/10/easytether-drivers.html

I have the AMD64 version of Sabayon installed as I’m on an Ivy Bridge processor here.
You may also note that when you boot up knoppix you may enter “KNOPPIX64“ at the boot prompt to get a 64 bit kernel working for you.

Notice how they have labeled the file I need, “ubuntu 10.4+ AMD64“ . This .deb package will
actually work on 64 bit debian as well! And it will also install to knoppix in a terminal so you
can use Easytether and your DROID phone to establish networking within KNOPPIX!

If you downloaded this .deb package using your phone, simply plug the phone into your computer after you get knoppix loaded and engage USB CONNECTED from the menu. You must have the DROID phone plugged into the computer with the supplied USB cable when doing this. As soon as you’ve hit this option on your DROID phone, the KDE desktop in KNOPPIX will sense a new drive has been connected and prompt you to open it with the file browser “Dolphin”. Do so...

You will notice the phones file system is not mounted in KNOPPIX.
Open a terminal like “KONSOLE” and enter the SU command to become root.
KNOPPIX has no password for root so, it won’t ask you for one.

Do a DF command next and you will see where the system mounted your phone pretty quickly.
Change directories into the phone under the downloads area and you will find the easytether.deb file. Install the easytether package using “dpkg -” easytether...whatever.deb it’s called.

Go ahead and open up another KONSOLE terminal for me and enter the following command, “easytether connect” This should get easytether to connect up with the phone via the network manager automatically and give you internet access.

You should be able to webbrowse now from KNOPPIX using your DROID phone!
PLEASE MAKE SURE KNOPPIX IS CONNECTED TO THE INTERNET BEFORE PROCEEDING WITH THIS DOCUMENT!!!!!!

Now, if you’ve installed Sabayon the way I did, you chose encrypted volumes. I have a laptop here and need that feature. So, I’m giving the instructions for the encryption option.

Using the “KONSOLE” you’ve opened up for root access with the SU command, please
cd to /mnt for me.

Create a sabayon mount point, “mkdir sabayon”

# su
# cd /mnt
# mkdir sabayon


Typically you install to /dev/sda, but your situation might be different. Check with FDISK quickly.


******************************************************************************
root@Microknoppix:/mnt# fdisk /dev/sda

The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

Command (m for help): p

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000bb325

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 1465147391 732060672 83 Linux

Command (m for help):

*****************************************************************************


Sabayon does a really good job of partitioning and installing I think.

/dev/sda1 is your boot partition and for me it used 500 mb which is plenty of room.
/dev/sda2 is where all your encrypted stuff is.

What we are going to do is first open up and mount the /root and /boot drives and even activate swap for KNOPPIX using our sda drive where we installed Sabayon.

Go ahead and enter q in FDISK and quit, if you haven’t already.

Enter these commands.

# cryptsetup luksOpen /dev/sda2 sabayon

it will then ask you for the encryption password you used when you installed Sabayon.

# pvscan
# lvscan
# lvchange -ay /dev/vg_roam/lv_root
# lvchange -ay /dev/vg_roam/lv_swap

My terminal looks like this so far:

******************************************************************************
root@Microknoppix:/mnt# cryptsetup luksOpen /devsda2 sabayon
Device /devsda2 doesn't exist or access denied.
root@Microknoppix:/mnt# cryptsetup luksOpen /dev/sda2 sabayon
Enter passphrase for /dev/sda2:
root@Microknoppix:/mnt# pvscan
PV /dev/mapper/sabayon VG vg_roam lvm2 [698.12 GiB / 0 free]
Total: 1 [698.12 GiB] / in use: 1 [698.12 GiB] / in no VG: 0 [0 ]
root@Microknoppix:/mnt# lvscan
inactive '/dev/vg_roam/lv_root' [50.00 GiB] inherit
inactive '/dev/vg_roam/lv_swap' [7.72 GiB] inherit
inactive '/dev/vg_roam/lv_home' [640.41 GiB] inherit
root@Microknoppix:/mnt# lvchange -ay /dev/vg_roam/lv_root
root@Microknoppix:/mnt# lvchange -ay /dev/vg_roam/lv_swap
root@Microknoppix:/mnt#
*****************************************************************************



We can now activate swap for KNOPPIX as we might need it.

#swapon /dev/mapper/vg_roam-lv_swap

Mount the root directory of Sabayon and sda to KNOPPIX.

# mount /dev/mapper/vg_roam-lv_root /mnt/sabayon/

My terminal looks like this so far:
*****************************************************************************

root@Microknoppix:/mnt# swapon /dev/mapper/
control sabayon vg_roam-lv_root vg_roam-lv_swap
root@Microknoppix:/mnt# swapon /dev/mapper/vg_roam-lv_swap
root@Microknoppix:/mnt# free
total used free shared buffers cached
Mem: 6014772 1449372 4565400 0 19900 922088
-/+ buffers/cache: 507384 5507388
Swap: 12287992 0 12287992
root@Microknoppix:/mnt# mount /dev/mapper/
control sabayon vg_roam-lv_root vg_roam-lv_swap
root@Microknoppix:/mnt# mount /dev/mapper/vg_roam-lv_root /mnt/sabayon/
root@Microknoppix:/mnt# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 31249472 8107392 23142080 26% /mnt-system
tmpfs 4808704 0 4808704 0% /ramdisk
/dev/cloop 9742394 9742394 0 100% /KNOPPIX
/dev/mapper/KNOPPIX-DATA 4031680 799188 3232492 20% /KNOPPIX-DATA
unionfs 4031680 799188 3232492 20% /UNIONFS
unionfs 4031680 799188 3232492 20% /usr
unionfs 4031680 799188 3232492 20% /home
tmpfs 10240 64 10176 1% /UNIONFS/var/run
tmpfs 20480 2848 17632 14% /run
tmpfs 10240 0 10240 0% /UNIONFS/var/lock
tmpfs 102400 68 102332 1% /UNIONFS/var/log
tmpfs 2097152 28 2097124 1% /tmp
udev 20480 4 20476 1% /dev
tmpfs 2097152 4 2097148 1% /dev/shm
/dev/mapper/vg_roam-lv_root 51606140 7210560 41774140 15% /mnt/sabayon
root@Microknoppix:/mnt#
******************************************************************************


Next we can mount /boot

# mount /dev/sda1 /mnt/sabayon/boot/

So the terminal looks like this on my end:
*****************************************************************************
root@Microknoppix:/mnt# mount /dev/sda1 /mnt/sabayon/boot/
root@Microknoppix:/mnt# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 31249472 8107392 23142080 26% /mnt-system
tmpfs 4808704 0 4808704 0% /ramdisk
/dev/cloop 9742394 9742394 0 100% /KNOPPIX
/dev/mapper/KNOPPIX-DATA 4031680 799192 3232488 20% /KNOPPIX-DATA
unionfs 4031680 799192 3232488 20% /UNIONFS
unionfs 4031680 799192 3232488 20% /usr
unionfs 4031680 799192 3232488 20% /home
tmpfs 10240 64 10176 1% /UNIONFS/var/run
tmpfs 20480 2848 17632 14% /run
tmpfs 10240 0 10240 0% /UNIONFS/var/lock
tmpfs 102400 68 102332 1% /UNIONFS/var/log
tmpfs 2097152 28 2097124 1% /tmp
udev 20480 4 20476 1% /dev
tmpfs 2097152 4 2097148 1% /dev/shm
/dev/mapper/vg_roam-lv_root 51606140 7210560 41774140 15% /mnt/sabayon
/dev/sda1 495844 49674 420570 11% /mnt/sabayon/boot
root@Microknoppix:/mnt#
**************************************************************************

If you have a separate home directly, we won’t worry about mounting that as we don’t need it.
In my install, I just have a /boot /root and /home directly. If you have a /usr or other separate file systems, you need to get them mounted now.

Now! You can change directory into /mnt /sabayon from KNOPPIX in your terminal and
have a look around at what the Sabayon install DVD did for you!

Again, the view from my terminal!
************************************************************************
root@Microknoppix:/mnt# cd /mnt/sabayon/
root@Microknoppix:/mnt/sabayon# ls
bin dev home lib32 lost+found mnt proc run sys usr
boot etc lib lib64 media opt root sbin tmp var
root@Microknoppix:/mnt/sabayon#
***********************************************************************

So far, so good!

Next, we are going to chroot into Sabayon from KNOPPIX so that we can install some software and do some updates as if we were running Sabayon with actual working NETWORKING!!!
Enter the following commands please.

# cp -L /etc/resolv.conf /mnt/sabayon/etc/

It will ask you if you want to overwrite the file, just say "y" for yes.
resolv.conf is created by the network manager anyway.. If you have trouble
then delete the resolv.conf in /mnt/sabayon/etc and run the copy command again
without the -L option.

# mount -o bind /proc /mnt/sabayon/proc
# mount --rbind /sys /mnt/sabayon/sys
# mount --rbind /dev /mnt/sabayon/dev
# chroot /mnt/sabayon /bin/env -i TERM=$TERM /bin/bash
# su -l

Again, here is how my terminal appears as I’ve entered those commands.

***************************************************************************
root@Microknoppix:/mnt/sabayon# cp -L /etc/resolv.conf /mnt/sabayon/etc/cp: overwrite `/mnt/sabayon/etc/resolv.conf'? y
root@Microknoppix:/mnt# cat /mnt/sabayon/etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
root@Microknoppix:/mnt/sabayon# mount -o bind /proc /mnt/sabayon/proc
root@Microknoppix:/mnt/sabayon# mount --rbind /sys /mnt/sabayon/sys
root@Microknoppix:/mnt/sabayon# mount --rbind /dev /mnt/sabayon/dev
root@Microknoppix:/mnt/sabayon# chroot /mnt/sabayon /bin/env -i TERM=$TERM /bin/bash
Microknoppix / # env-update
PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting from make.globals is invalid: 'bzip2'
>>> Regenerating /etc/ld.so.cache...
Microknoppix / # source /etc/profile
Microknoppix / # su -l
Microknoppix ~ #
***********************************************************************

Congratulations! You’ve just used Knoppix to actually RUN your Sabayon installation just as if you had booted it up with networking actually RUNNING!! Now you can actually run some Sabayon commands and update the system.

Let’s try our first command!

# equo update

From my terminal we see:
**********************************************************************
Microknoppix etc # equo update
>> Repository sabayon-weekly hasn't been downloaded yet.
>> Repository sabayon-weekly is not available. Cannot validate
>> RepositoryError()
>> !!! Please update your repositories now in order to remove this message!
>> @@ Repositories synchronization ...
>> # Sabayon Linux Official Repository
>> # Repository URL: http://pkg.sabayon.org/standard/sabayon-weekly/database/amd64/5 [bz2]
>> # Repository URL: http://pkg.repo.sabayon.org/standard/sabayon-weekly/database/amd64/5 [bz2]
>> # Repository local path: /var/lib/entropy/client/database/amd64/sabayon-weekly/standard/amd64/5
>> # Repository API: 2
>> # (1/2) Scanning URL: http://pkg.sabayon.org/standard/sabayon-weekly/datab>> # Selected URL: http://pkg.sabayon.org/standard/sabayon-weekly/database/amd64/5 [bz2]
>> Downloading repository ...
>> Downloading checksum packages.db.dumplight.bz2.md5 ...
>> packages.db.meta: available, w00t!.
>> << unpacked meta file: 00-sabayon.package.keywords
>> << unpacked meta file: 00-sabayon.package.mask
>> << unpacked meta file: 00-sabayon.package.unmask
>> << unpacked meta file: 00-sabayon.package.use
>> << unpacked meta file: cross-armv7a-hardfloat-linux-gnueabi
>> << unpacked meta file: eapi
>> << unpacked meta file: make.conf
>> << unpacked meta file: make.profile
>> << unpacked meta file: packages.db.critical
>> << unpacked meta file: packages.db.fallback_mirrors
>> << unpacked meta file: packages.db.keywords
>> << unpacked meta file: packages.db.lic_whitelist
>> << unpacked meta file: packages.db.mask
>> << unpacked meta file: packages.db.mirrors
>> << unpacked meta file: packages.db.post_update.sh
>> << unpacked meta file: packages.db.post_upgrade.sh
>> << unpacked meta file: packages.db.restricted
>> << unpacked meta file: packages.db.revision
>> << unpacked meta file: packages.db.system_mask
>> << unpacked meta file: packages.db.webservices
>> << unpacked meta file: parent
>> << unpacked meta file: signature.asc
>> Downloading GPG signature of repository metafile packages.db.meta.asc ..>> packages.db.meta.asc: not available, it's ok.
>> notice.rss: available, w00t!.
>> Repository revision: 2930
>> Downloaded repository status: OK
>> GPG key seems already installed but not properly recorded, resetting
>> Successfully installed GPG key for repository: sabayon-weekly
>> Fingerprint: F96DEF6B01C5BDAEB1BADB8CB116DA6F114D935D
>> Make sure to verify the imported key and set an appropriate trust level:
>> $ gpg --homedir '/etc/entropy/client-gpg-keys' --edit-key 'F96DEF6B01C5BDAEB1BADB8CB116DA6F114D935D'
>> Unpacking database to packages.db.dumplight ...
>> Injecting downloaded dump packages.db.dumplight, please wait ...
>> Indexing Repository metadata ...
>> @@ Security Advisories: getting latest advisories ...
>> # Security Advisories: verification successful.
>> # Security Advisories: installing ...
>> @@ Security Advisories: updated successfully
>> @@ Notice board: sabayon-weekly
>> [0] [Thu, 20 Sep 2012 09:15:44 +0000] Title: Important: Sabayon needs your donation NOW
>> [1] [Sun, 14 Oct 2012 20:12:39 +0000] Title: Important AMD GPU related changes in Linux Kernel 3.6+
>> [2] [Sun, 17 Mar 2013 07:53:22 +0000] Title: Beware AMD Radeon legacy and NVIDIA GeForce legacy users
>> [3] [Fri, 12 Apr 2013 05:38:05 +0000] Title: SystemD replacing Udev, don't panic!
Microknoppix etc #
**************************************************************************

Please do not do an "equo upgrade --ask" at this time unless you don't intend
to install Easytether.
But you can install your wifi drivers if you choose using this command
and then verifying they were installed using equo search.
I will remind you at the end of this document to run this command as the
last thing we do before we reboot...


Next, we work on getting Easytether installed so we can do some networking/mobile work.

From the following website, I found this ebuild which is what I used to create my install
instructions.

http://code.google.com/p/theebuilds/source/browse/trunk/net-misc/easytether/easytether-0.7.0.ebuild?r=88

The contents of this ebuild I will cut and past out here:
******************************************************************************

DESCRIPTION=""
HOMEPAGE="http://www.mobile-stream.com/easytether/android.html"

SRC_URI="http://www.mobile-stream.com/beta/easytether-${PV}_i386.deb
http://www.mobile-stream.com/beta/easytether-${PV}_amd64.deb"

SLOT="0"
KEYWORDS="~x86 ~amd64"

DEPEND="dev-libs/libusb
app-arch/deb2targz"

RDEPEND="${DEPEND}"

FILENAME="easytether-${PV}_i386"

src_unpack() {
if use amd64; then
FILENAME="easytether-${PV}_amd64"
fi

deb2targz ${DISTDIR}/$FILENAME.deb
unpack $FILENAME.tar.gz
}

src_install() {
exeinto /usr/bin
doexe usr/bin/easytether
}

***************************************************************************

Now, I’ve tried using layman to just run this ebuild by and I’ve failed.
I’m sure that somebody, who is more experienced with Sabayon or Gentoo can tell
us how to add this to the external repo’s for this distribution but,,, I can’t.
I’ve never run Sabayon before. This is my first time. I have some Gentoo experience
but not with third party repos. So, if anyone reading this can tell us how to add this repo
and make this install of Easytether more efficient then please tell us/me how.......

From the 50,000 foot level, it appears to me that just getting into the Easytether website using
the supplied link is forbidden. Maybe they’ve moved stuff around, I dunno
And I have absolutely no success in running this ebuild using emerge or layman in Sabayon as a
copied file to the root directory directly. Emerge keeps saying direct path ebuilds are no longer
supported.

So, I’ve had to do this the manual way..... And that’s my excuse...


The LONG of the SHORT of this ebuild is divided into 5 simple operations.

First thing is first here. Step #1 is we have to get the easytether.deb package that we’ve loaded
into KNOPPIX and installed, copied down into the Sabayon root directory. In order to do this,
we will open up another “KONSOLE” terminal and become root.

I’ve downloaded my easytether package using “ICEWEASEL” as I already had an older version installed on my KNOPPIX usbdrive. You will copy this file from where ever you put it on your KNOPPIX system...

Here’s my screen output in the NEW terminal I’ve opened. Don’t try this in the working Sabayon terminal please!!! Use a NEW KONSOLE TERMINAL!!!!

***********************************************************************
knoppix@Microknoppix:~$ su
root@Microknoppix:/home/knoppix# cd Downloads/
root@Microknoppix:/home/knoppix/Downloads# ls
easytether_0.7.4-1_amd64.deb
root@Microknoppix:/home/knoppix/Downloads# cp easytether_0.7.4-1_amd64.deb /mnt/sabayon/
root@Microknoppix:/home/knoppix/Downloads# cd /mnt/sabayon/
root@Microknoppix:/mnt/sabayon# ls
bin easytether_0.7.4-1_amd64.deb lib lost+found opt run tmp
boot etc lib32 media proc sbin usr
dev home lib64 mnt root sys var
root@Microknoppix:/mnt/sabayon#

****************************************************************************

When you’ve done this you can just close that terminal. We don’t need it around anymore.



Going back to our working Sabayon install terminal, we have to perform a few tasks.
If you haven’t run the "equo update" command already do so now.
Look above for my examples equo update. You must get
the system synced to Sabayon before doing these next 2 commands...

# equo i dev-libs/libusb

**************************************************************************

Microknoppix etc # equo i dev-libs/libusb
>> @@ Calculating dependencies...
>> ## [R] [sabayonlinux.org->sabayon-weekly] dev-libs/libusb-1.0.9|0 [1.0.9|0]
>> @@ Packages needing to be installed/updated/downgraded: 1
>> @@ Packages needing to be removed: 0
>> @@ Download size: 54.1kB
>> @@ Freed disk space: 0.0b
>> @@ You need at least: 108.1kB of free space
>> ::: >>> (1/1) 1 package
>> ## Downloading: 1 archive
>> ## ( mirror #1 ) [dev-libs:libusb-1.0.9~0.tbz2] @ http://na.mirror.garr.it
>> ## Aggregated download: 1 item
>> # [1] na.mirror.garr.it => dev-libs:libusb-1.0.9~0.tbz2
>> ## ( mirror #1 ) [dev-libs:libusb-1.0.9~0.tbz2] success @ http://na.mirror.garr.it
>> ## Aggregated transfer rate: 34.6kB/second
>> ## Package checksum matches: dev-libs:libusb-1.0.9~0.tbz2
>> : GPG matches
>> : SHA1 matches
>> : SHA256 disabled
>> : SHA512 disabled
>> +++ >>> (1/1) dev-libs/libusb-1.0.9
>> ## Unpacking: dev-libs:libusb-1.0.9~0.tbz2
>> ## Installing package: dev-libs/libusb-1.0.9
>> ## [Userspace access to USB devices]
>> ## Updating database: dev-libs/libusb-1.0.9
>> ## Cleaning previously installed application data.
>>> Regenerating /etc/ld.so.cache...
>>> Regenerating /etc/ld.so.cache...
>> ## Cleaning: dev-libs/libusb-1.0.9
>> @@ Installation complete.
>> @@ No configuration files to update.
Microknoppix etc #
****************************************************************************

# equo i app-arch/deb2targz

***************************************************************************
Microknoppix etc # equo i app-arch/deb2targz
>> @@ Calculating dependencies...
>> ## [N] [sabayon-weekly] app-arch/deb2targz-1-r2|0
>> @@ Packages needing to be installed/updated/downgraded: 1
>> @@ Packages needing to be removed: 0
>> @@ Download size: 25.6kB
>> @@ Used disk space: 1.9kB
>> @@ You need at least: 53.1kB of free space
>> ::: >>> (1/1) 1 package
>> ## Downloading: 1 archive
>> ## ( mirror #1 ) [app-arch:deb2targz-1-r2~0.tbz2] @ http://na.mirror.garr.it
>> ## Aggregated download: 1 item
>> # [1] na.mirror.garr.it => app-arch:deb2targz-1-r2~0.tbz2
>> ## ( mirror #1 ) [app-arch:deb2targz-1-r2~0.tbz2] success @ http://na.mirror.garr.it
>> ## Aggregated transfer rate: 23.7kB/second
>> ## Package checksum matches: app-arch:deb2targz-1-r2~0.tbz2
>> : GPG matches
>> : SHA1 matches
>> : SHA256 disabled
>> : SHA512 disabled
>> +++ >>> (1/1) app-arch/deb2targz-1-r2
>> ## Unpacking: app-arch:deb2targz-1-r2~0.tbz2
>> ## Installing package: app-arch/deb2targz-1-r2
>> ## [Convert a .deb file to a .tar.gz archive]
>> ## Updating database: app-arch/deb2targz-1-r2
>> ## Cleaning previously installed application data.
>> ## Cleaning: app-arch/deb2targz-1-r2
>> @@ Installation complete.
>> @@ No configuration files to update.
Microknoppix etc #
******************************************************************************

Next, I decided to add a couple of more packages we can and will use.

I’m adding Midnight commander, a really super file manager for console apps.

# equo i mc

*****************************************************************************
Microknoppix etc # equo i mc
>> @@ Calculating dependencies...
>> ## [N] [sabayon-weekly] app-misc/mc-4.8.7-r1|4
>> @@ Packages needing to be installed/updated/downgraded: 1
>> @@ Packages needing to be removed: 0
>> @@ Download size: 1.7MB
>> @@ Used disk space: 8.2MB
>> @@ You need at least: 11.6MB of free space
>> ::: >>> (1/1) 1 package
>> ## Downloading: 1 archive
>> ## ( mirror #1 ) [app-misc:mc-4.8.7-r1~4.tbz2] @ http://na.mirror.garr.it
>> ## Aggregated download: 1 item
>> # [1] na.mirror.garr.it => app-misc:mc-4.8.7-r1~4.tbz2
>> ## ( mirror #1 ) [app-misc:mc-4.8.7-r1~4.tbz2] success @ http://na.mirror.garr.it
>> ## Aggregated transfer rate: 75.1kB/second
>> ## Package checksum matches: app-misc:mc-4.8.7-r1~4.tbz2
>> : GPG matches
>> : SHA1 matches
>> : SHA256 disabled
>> : SHA512 disabled
>> +++ >>> (1/1) app-misc/mc-4.8.7-r1
>> ## Unpacking: app-misc:mc-4.8.7-r1~4.tbz2
>> ## Installing package: app-misc/mc-4.8.7-r1
>> ## [GNU Midnight Commander is a text based file manager]
>> ## Updating database: app-misc/mc-4.8.7-r1
>> ## Cleaning previously installed application data.
>> ## Package phase: postinstall
* To enable exiting to latest working directory,
* put this into your ~/.bashrc:
* . /usr/libexec/mc/mc.sh
>> ## Cleaning: app-misc/mc-4.8.7-r1
>> @@ Installation complete.
>> @@ No configuration files to update.
Microknoppix etc #
*****************************************************************************

The next package I’m throwing in is lynx. It’s a console based web browser which is handy to
have if everything on the box fails and you need to access a website.

# equo i lynx

******************************************************************************

Microknoppix etc # equo i lynx
>> @@ Calculating dependencies...
>> ## [R] [sabayonlinux.org->sabayon-weekly] www-client/lynx-2.8.8_pre15|1 [2.8.8_pre15|1]
>> @@ Packages needing to be installed/updated/downgraded: 1
>> @@ Packages needing to be removed: 0
>> @@ Download size: 1.7MB
>> @@ Freed disk space: 0.0b
>> @@ You need at least: 3.5MB of free space
>> ::: >>> (1/1) 1 package
>> ## Downloading: 1 archive
>> ## ( mirror #1 ) [www-client:lynx-2.8.8_pre15~2.tbz2] @ http://na.mirror.garr.it
>> ## Aggregated download: 1 item
>> # [1] na.mirror.garr.it => www-client:lynx-2.8.8_pre15~2.tbz2
>> ## ( mirror #1 ) [www-client:lynx-2.8.8_pre15~2.tbz2] success @ http://na.mirror.garr.it
>> ## Aggregated transfer rate: 99.7kB/second
>> ## Package checksum matches: www-client:lynx-2.8.8_pre15~2.tbz2
>> : GPG matches
>> : SHA1 matches
>> : SHA256 disabled
>> : SHA512 disabled
>> +++ >>> (1/1) www-client/lynx-2.8.8_pre15
>> ## Unpacking: www-client:lynx-2.8.8_pre15~2.tbz2
>> ## Package phase: setup
>> ## Installing package: www-client/lynx-2.8.8_pre15
>> ## [An excellent console-based web browser with ssl support]
>> ## Updating database: www-client/lynx-2.8.8_pre15
>> ## Cleaning previously installed application data.
>> ## Cleaning: www-client/lynx-2.8.8_pre15
>> @@ Installation complete.
>> @@ No configuration files to update.
Microknoppix etc #
*****************************************************************************

Now we can deal with the easytether package directly.
Earlier, we copied the ..deb file to the root directory of Sabayon.

***************************************************************************
Microknoppix / # ls
bin easytether_0.7.4-1_amd64.deb lib lost+found opt run tmp
boot etc lib32 media proc sbin usr
dev home lib64 mnt root sys var
Microknoppix / #
**************************************************************************

We need to run the deb2tar conversion so we can later explode this file into the proper directories. The output of which I’ve listed below for you to examine.

# deb2targz easytether_0.7.4-1_amd64.deb

************************************************************************
Microknoppix / # ls
bin easytether_0.7.4-1_amd64.deb lib lost+found opt run tmp
boot etc lib32 media proc sbin usr
dev home lib64 mnt root sys var
Microknoppix / # deb2targz easytether_0.7.4-1_amd64.deb
deb2targz: converting 'easytether_0.7.4-1_amd64.deb' ...
deb2targz: skipping section 'debian-binary'
deb2targz: skipping section 'control.tar.gz'
deb2targz: wrote 'easytether_0.7.4-1_amd64.tar.gz'
Microknoppix / # ls
bin easytether_0.7.4-1_amd64.deb home lib64 mnt root sys var
boot easytether_0.7.4-1_amd64.tar.gz lib lost+found opt run tmp
dev etc lib32 media proc sbin usr
Microknoppix / #
*****************************************************************

We can run the ‘which’ command to see where easytether is installed on our system and we see
that the system can’t find that program currently.

# which easytether

*****************************************************************
Microknoppix / # which easytether
which: no easytether in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2)
Microknoppix / #
****************************************************************




Now, just for grins, go ahead an start up Midnight commander .

# mc

Using your arrow keys on your keyboard, move the highlight down over the
easytether_0.7.4-1_amd64.tar.gz file listed in this program.

Next, using your mouse, hit the 2Menu on the bottom of Midnight commander
and hit ‘x’ to explode the contents of this file into the proper directories.

Next, using your mouse, hit 10Quit and say ‘yes’ to exit using your mouse.

Wasn’t that fun! I just love using Midnight commander on a desktop!

Now, let’s look for easytether again using our which command.

# which easytether

****************************************************************************
Microknoppix / # which easytether
/usr/bin/easytether
Microknoppix / #
***************************************************************************

If you’ve got the same output as me, I think you’ve just installed Easytether.!

Now, let’s store away our Easytether stuff to the root users area for safe keeping.

# mkdir /root/Easytether
# mv easytether_0.7.4-1_amd64.* /root/Easytether/

*************************************************************************
Microknoppix / # mkdir /root/Easytether
Microknoppix / # mv easytether_0.7.4-1_amd64.* /root/Easytether/
Microknoppix / # ls
bin dev home lib32 lost+found mnt proc run sys usr
boot etc lib lib64 media opt root sbin tmp var
Microknoppix / # cd /root
Microknoppix ~ # ls
anaconda-ks.cfg Easytether
Microknoppix ~ # cd Easytether/
Microknoppix Easytether # ls
easytether_0.7.4-1_amd64.deb easytether_0.7.4-1_amd64.tar.gz
Microknoppix Easytether #
*************************************************************************

We have one last editing task to perform.
In order to actually use Easytether with Sabayon 13.04 we have to load
the 'tun' module at boot time.

# nano /etc/conf.d/modules

add the following line to the bottom of this file please

modules="tun"

Then save this file.

You will also notice that since your root on the Sabayon system,
you can do a passwd and change your root passwd without troubles.
You can also use this setup to resize our lvm system, do maintenance,
run file system checks and much more.

Finally, we should run the last command before we reboot.

# equo upgrade --ask

This command is interactive and has a ton of output.
It will update the entire system for you.


Now, it’s time to reboot and try it out. Don’t forget to remove your knoppix dvd or usbdrive
so we boot into Sabayon properly...

As the system reboots, start up your droid phone and engage the easytether program
you've installed on it, then hook the phone via the usb cable up to your
computer.

When you have rebooted and logged into your desktop,
start up a "KONSOLE" terminal and just type,,,
# easytether connect

The output of such should look like this.

*************************************************************************
kd5ob@roam ~ $ easytether connect
trying legacy service port (this is not an error)
connected as easytether0, wait while network-manager configures it

or run 'sudo dhclient easytether0' if you do not use network-manager

press Ctrl-C when you are done with the connection

************************************************************************

And you will notice within a second or two the networking manager will
get a lease off your phone and your suddenly on the internet.


I love KNOPPIX!!! Can't live without it....











kd5ob
kd5ob

Posts : 47
Join date : 2012-12-12
Age : 62
Location : Oklahoma

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum