Difference between revisions of "User:Scott/02"

From FreekiWiki
Jump to navigation Jump to search
 
(64 intermediate revisions by the same user not shown)
Line 1: Line 1:
Description of this page and its usefulness.
+
'''Tech Support'''
 
+
--------------------------------
[[user:scott]]
+
Home Page      [[user:scott]]
 +
Tech Support  [[user:scott/02]]
 +
Dir & Files    [[user:scott/03]]
 +
Network        [[user:scott/04]]
 +
Troubleshoot  [[user:scott/05]]
 +
Laptops        [[user:scott/06]]
 +
Resources      [[user:scott/07]]
 +
Notes          [[user:scott/08]]
 +
Open-SSH      [[user:scott/09]]
 +
A.T            [[user:scott/22]]
  
 
{{TOC limit|limit=1}}
 
{{TOC limit|limit=1}}
 
__TOC__
 
__TOC__
  
=Header H1=
+
<h5>PRINTME - /var/lib/freegeek-extras/printme</h5>
  
{| border="1" fontname="Nimbus Sans" fontsize="12" cellpadding="5" cellspacing="1"
+
=Password=
|-
+
==Backup Password==
|width="15%" align="center"|<h3>SideBar H2</h3>
+
*cp /etc/shadow /etc/shadow.bak - (hash of root + user)
|align="center"|<h2>Notes to Self</h2>
+
*cat /etc/passwd (UID + GID)
|-
 
!Bold Sidebar 1
 
||
 
more notes to self
 
|-
 
!Bold Sidebar 2
 
||
 
more notes to self
 
|-
 
!Bold Sidebar 2
 
||
 
more notes to self
 
|-
 
|}
 
  
=Header H1=
+
==Change Password==
 +
passwd [username]
 +
passwd –e [username] – (change on startup)
  
==Supported Devices==
+
[[#top|top]]
*A600 (cricket)
 
*UTStarcom UM100C (cricket)
 
*UM185C (cricket)
 
*U300 (Sprint)
 
*USBConnect Lightnight/Sierra Wireless (AT&T)
 
*Cricket Series S/ Sierra Aircard 250U
 
*T-Mobile webConnect Rocket 2.0
 
*Sierra Wireless Overdrive 3G/4G mobile hotspot (Sprint, Cricket?): This is our recommended model as it works out of the box with Linux and provides a wireless connection for other computers.
 
  
==Easy way (10.04)==
+
=User Name (Add-Delete)=
 +
adduser [username]
 +
adduser [username] admin
 +
userdel [username]
  
  sudo apt-get install usb-modeswitch usb-modeswitch-data
+
=Updates & Fix Broken Packages=
 +
  apt-get update
 +
apt-get dist-upgrade
  
*Remove the wireless adapter then reboot
+
apt-get install --fix-broken
 +
apt-get autoremove
 +
apt-get install ubuntu-desktop
  
==Unsupported Devices==
+
apt-get purge xxx
*Clear
 
  
==Basic Setup==
+
[[#top|top]]
In Ubuntu 9.10 some cards will work automatically after running the mobile broadband wizard in the network manager. This option only shows up when ubuntu detects a mobile broadband card, some devices will need additional setup, in which case you should check if there are specific instructions for your card.
 
  
===Notes===
+
=File System Check=
*Before some cards will work, they need to be activated on a Windows on Mac system. If a card is detected in ubuntu but wont connect, it probably hasnt been activated yet.
+
  fdisk -l
*If a card is not specifically listed here, then we dont know if it works.  
 
  
==Installing Cricket Series S/ Sierra Aircard 250U==
+
  fsck -fyv /dev/sda1 (f=force y=fix)
The Cricket Series S is a 3G/4G device combining a Sierra 3G usb device and a Beceem 4G device.  ATM the 4G device doesn't have any Linux drivers but the 3G device works. The device is switched correctly after installing usb-modeswitch and usb-modeswitch-data but the driver for the 3G device still isn't loaded correctly.  There probably a better way to do this but this is the only solution I have found.
 
sudo nano /etc/modules
 
option
 
  
  sudo nano /etc/rc.local
+
  shutdown -rF now (reboot, forcing fsck on root filesystem)
echo "1199 0301" > /sys/bus/usb-serial/drivers/option1/new_id
 
  
==Easy Method for Installing A600==
+
=Mount & Un-Mount Devices=
===10.04 (Lucid Lynx)===
 
Install usb_modeswitch
 
In the Ubuntu Software Center search for modeswitch and install both packages (usb-modeswitch usb-modeswitch-data).
 
  
Alternatively in the termnial type
+
df -h          (show boot partition)
  sudo apt-get install usb-modeswitch usb-modeswitch-data
+
ls /media      (device mounted from GUI)
 +
cat /etc/fstab (partitions and devices that mount on start-up)
  
Next restart your computer.
+
mount
  
Enable Mobile Broadband by right clicking on the network icon on the top panel. Chose add a new mobile connection and follow the instructions.
+
mount /dev/sdb1 /mnt/xxx
  
 +
umount /dev/sdb1 (sudo)
  
N.B. You will still need to initialize the modem form a Windows or Mac box. Tech Support can do this for you.
+
==FSTAB - Mount HDD==
 +
[http://www.youtube.com/watch?v=4G7B1Wmvz_0 mount HDD]
  
===8.04 (Hardy Heron)===
+
sudo mount to see what is mounted
Step 1:
+
sudo mount -a to mount all entries in fstab
Download the .deb file & install it: http://freegeek.errtech.com/cricket/cricket_flip_i386.deb
 
  
Step 2:
+
un-mount drive (close apps using drive first)
Download flipflop.sh: http://freegeek.errtech.com/cricket/flipflop.sh
+
 +
sudo mkdir /media/sjn8GigMount
 +
 +
sudo fdisk -l or Disk utility to get "Device Name" such as (/dev/sdc1)
  
Now right click on the file and select "properties". Click over to the "permissions" tab, and check the box "allow executing file as a program". Now double click it and select "Run", enter your password. Wait a few moments and poof! Your 3g modem should now be appearing in your network manager.
+
gksudo gedit /etc/fstab
 +
 +
select Edit -> Preferences -> Editor
 +
create a backup copy before saving file
  
*You will need to run the .sh file every time you connect your modem.
+
Example 1. old-school
 +
[device]    [mount point]    [file system]  [options]              [dump] [fsck order]
 +
/dev/sdb1  /mnt/sjn8GigMount  auto        rw.username.auto.exec.utf8  0        0
  
=== Installing from Source for automatic switching (A600 Only)===
+
Example 2. new-school
 +
[device]              [mount point]    [file system]  [options]              [dump][fsck order]
 +
UUID=34C4DFF9C4DF8876  /mnt/sjn8GigMount  auto        rw.username.auto.exec.utf8  0        0
  
Building the newest version of usb_modeswitch (1.1.0) is slightly more involved but should enable your A600 modem to be automatically switched using udev instead of having to run the flipflop.sh script every time you plug the device in.
+
  #File Systems [auto] [ext4] [jfs] [reiser4] [swap] [iso9660] [FAT 32] [NTFS]
 +
#Note [ntfs-3g] necessary for write access
  
 +
Re-Start machine
  
Step 1:
+
==Mount - NTFS HDD(on tsbackup)==
  
Download the source archive (http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.2.tar.bz2) and extract the contents to your preferred directory.
+
sudo ntfs-config (open + and dbl clk on device)
 +
see - "Mounting_Disks.README" on Desktop
  
Open up terminal and use cd to change into the directory of the extracted files.
+
[[#top|top]]
cd usb-modeswitch-1.*
 
  
Step 2:
+
=Badblocks=
 +
badblocks -nvs /dev/sda1
  
Install the dependencies required to make usb_modeswitch.
+
=Network Backup Procedures=
sudo apt-get install build-essential libusb-dev
+
[http://wiki.freegeek.org/index.php/Network_backup Network_backup_wiki.freegeek]
  
Step 3:
+
=Backup a Home Directory=
 +
*date format (e.g. 20121223 for Dec 23 2012)
  
Install usb_modeswitch.
+
==ssh into backup server==
  sudo make install
+
ssh tsbackup@tsbackup
 +
ls /var/tsbackup
 +
ssh -XC tsbackup@tsbackup (.fglan nautilus)
 +
  ctrl-c (to back-out)
  
Step 4:
+
==ssh to tsbackup - nautalus==
 +
ssh://tsbackup@tsbackup
  
Download the data archive (http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20100418.tar.bz2) and extract the contents to your preferred directory.
+
==rsync from customer box==
 +
sudo cp /etc/passwd /etc/shadow /etc/group /home/
 +
dpkg --get-selections > dpkg.out
 +
sudo mv dpkg.out /home/
 +
sudo tar -czf /home/etc.backup.tar.gz /etc/
 +
sudo rsync -avzh /home/ tsbackup@tsbackup:/var/tsbackup/[date-ticketnumber] 2>rsync.log
  
Open up terminal and use cd to change into the directory of the extracted files.
+
less rsync.log (view error log)
cd usb_modeswitch-data*
 
  
Step 5:
+
<pre>Note: on the '''data recovery box'''
 +
      determine mount point of device to backup
 +
      use "fdisk l" or "Disk utility"
 +
      mount /mnt/sdb?
  
Install usb_modeswitch-data
+
      add /mnt/sdb? in front of /home
sudo make install
+
      this avoids the need to chroot.</pre>
  
Step 6:
 
  
Plug in your Cricket A600 to an open USB port, wait a moment for it to be detected and for usb-modeswitch to do it's magic. Your device should now show up in network-manager. You '''may''' need to restart your computer for it to work.
 
  
===Trouble Shooting===
+
[[#top|top]]
  
If at this point your device is not appearing in network-manager you should:
+
==rsync from tsData box==
  sudo make uninstall
+
sudo cp /mnt/sdb?/etc/passwd /mnt/sdb?/etc/shadow /mnt/sdb?/etc/group /mnt/sdb?/home/
and use the instructions under [[3G Mobile Broadband Internet#Easy Method for Installing A600]]
+
dpkg --get-selections --admindir=/mnt/sdb?/var/lib/dpkg >dpkg.out
 +
sudo mv dpkg.out /mnt/sdb?/home/
 +
  sudo tar -czf /mnt/sdb?/home/etc.backup.tar.gz /mnt/sdb?/etc/
 +
sudo rsync -avzh /mnt/sdb?/home/ tsbackup@tsbackup:/var/tsbackup/[date-ticketnumber] 2>rsync.log
  
Before this guide will work for you, you do need to load the device on a Windows/Mac system and install the software for the device and activate it. (I have a Windows VM for just such occasions, it worked fine)
+
==Restore from Backup==
 +
sudo rsync -avzh  tsbackup@tsbackup:/var/tsbackup/[date-ticketnumber]/ /home
 +
sudo dpkg --set-selections < /home/dpkg.out
 +
sudo apt-get -u dselect-upgrade
  
If this guide does not work for you try first opening up the flipflop.sh and increasing the sleep time from 10 seconds to 20 - some systems require a longer delay.
+
copy (user passwd) hash from original /etc/shadow
  
If the card establishes a connection to cricket, but is not able to ping (or do anything else), it may require an update. The quickest way to do this is using a Mac system (which already has the software installed).
+
==Restore User Permissions==
 +
*Create a New User (oem or Bob or Mark) - with Admin. Privileges
 +
Change From: drwxr-xr-x 23 1001 1001 4096 2011-07-07 13:28 oem
 +
 +
Change To:  chown -R oem:oem /home/oem (recursively for all sub directories)
  
==Easy Method for Installing UM185C==
+
=File Permissions=
 +
chmod 774 dir-name (dir)  rwxrwxr--
 +
chmod 664 filename (files) rw-rw-r--
  
Step 1:
+
chmod ugo+rwx /dir/file
Download the .deb file & install it: http://freegeek.errtech.com/cricket/cricket_flip_i386.deb
+
chmod ugo-rwx /dir/file
  
Step 2:
+
[[#top|top]]
Download cricketum185c.sh http://freegeek.errtech.com/cricket/cricketum185c.sh
 
  
Now we just need to execute the cricketum185c.sh, it is in the directory of files you extracted, by running the following:
+
=Stress Test CPU and Chipset=
Code:
+
*[http://wiki.freegeek.org/index.php/CPU_Temperature CPU Temperature]
  
  chmod +x cricketum185c.sh
+
  stress --cpu 8 --io 4 --vm  2 --vm-bytes 128M  --timeout 4h
  sudo ./cricketum185c.sh
+
 +
  (add --hdd 2 to stress the hard drive as well, though this shouldn't be necessary)
  
 +
==Temperature Test/Display==
  
==T-Mobile webConnect Rocket 2.0==
+
while  [[ true ]] ; do uptime ; sensors ; sleep 30s; done | tee temp_load.log
 +
 +
Load lm sensor "utility to read temp/fan"
 +
-from software center
  
This T-Mobile unit can be initialized and set up directly from Linux
+
=Hardware & Resource Identification=
  
The T-Mobile usb device comes with a variety of chipsets. These instructions have only been tested with the "ONDA Communication S.p.A." unit. To determine the chipset on the device run lsusb
+
==lshw==
  don@freegeek:~$ lsusb
+
  sudo lshw (hardware config)
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 
Bus 003 Device 002: ID 19d2:1201 ONDA Communication S.p.A.
 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 
  
Install usb_modeswitch
+
==CPU==
  sudo apt-get install usb-modeswitch usb-modeswitch-data
+
  cat /proc/cpuinfo or more /proc/cpuinfo
  
Create a file /etc/usb_modeswitch.d/19d2:1201 with this content
+
==Disk Usage==
# t-mobile ZTE MF691  Rocket 2
+
  du -sh (-s disk usage)
+
  du -sh /home/bob/Downloads/ (disk usage for Downloads)
DefaultVendor= 0x19d2
+
 
DefaultProduct= 0x1201
+
[[#top|top]]
   
 
  TargetVendor=  0x19d2
 
TargetProduct=  0x1203
 
 
MessageContent="5553424392020000000000000000061B000000020000000000000000000000"
 
  
Add the following line to /lib/udev/rules.d/40-usb_modeswitch.rules:
+
==Available Memory==
# t-mobile ZTE MF691  Rocket 2
+
free –l (available memory)
ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1201", RUN+="usb_modeswitch '%b/%k'"
 
  
Remove the device and reboot.
+
cat /proc/meminfo
  
Insert the usb modem. a T-Mobile icon will appear on the desktop.
+
=Devices in Use=
 +
To see a list of devices currently in use
 +
cat /proc/devices
  
After a moment the wireless indicator will search for a network and connect to T-Mobile.
+
=AlsaMixer=
 +
alsamixer
  
===Troubleshooting===
+
=Printer Linux Foundation=
 +
http://www.linuxfoundation.org/
 +
Workgroups -> Open Printing -> Printers
  
If the usb device doesn't connect automatically:
+
==HPLIP==
 +
http://hplipopensource.com/hplip-web/downloads.html
  
Left-click on the wireless indicator.
+
[[#top|top]]
If the wireless indicator does not offer connect to "mobile broadband" as a choice then the usb-modeswitch has not functioned correctly. In this case right-click on the T-Mobile icon and select "eject"
 
The wireless indicator should search for a network and connect to T-mobile.
 
  
NetworkManager does not support this device very well yet.
+
=WineHQ Database=
Occasionally the device will be recognized but NM will turn off "mobile broadband" instead of turning it on.
+
http://www.winehq.org/
Right click on the wireless indicator and check "enable mobile broadband"
+
 +
[http://appdb.winehq.org/objectManager.php?sClass=application&sTitle=Browse%20Applications&sOrderBy=appName&bAscending=true wineDB]
 +
 +
[http://www.winehq.org/download/ubuntu Download-Wine]
  
All of the above troubleshooting steps may need to be performed several times to get it right.
+
=Photorec=
Several reboots and connections are recommended before releasing the unit from tech support.
 
  
{| border = "1"
+
=Burn DVD tsbackup=
|-
+
wodim dev=/dev/sr1 isodir/DiscSpan_15.iso (15 = disk #)
! Operation
+
;beep
! Files
 
! Directories
 
|-
 
| Create
 
| touch
 
| mkdir
 
|-
 
| Remove
 
| rm
 
| rmdir or rm -r
 
|-
 
| Copy
 
| cp
 
| cp -r
 
|-
 
| Move
 
| mv
 
| mv
 
|}
 

Latest revision as of 17:12, 20 January 2012

Tech Support

--------------------------------
Home Page      user:scott
Tech Support   user:scott/02
Dir & Files    user:scott/03
Network        user:scott/04
Troubleshoot   user:scott/05
Laptops        user:scott/06
Resources      user:scott/07
Notes          user:scott/08 
Open-SSH       user:scott/09
A.T            user:scott/22

Template:TOC limit

PRINTME - /var/lib/freegeek-extras/printme

Password

Backup Password

  • cp /etc/shadow /etc/shadow.bak - (hash of root + user)
  • cat /etc/passwd (UID + GID)

Change Password

passwd [username]
passwd –e [username] – (change on startup)

top

User Name (Add-Delete)

adduser [username]
adduser [username] admin
userdel [username]

Updates & Fix Broken Packages

apt-get update
apt-get dist-upgrade
apt-get install --fix-broken
apt-get autoremove
apt-get install ubuntu-desktop
apt-get purge xxx

top

File System Check

fdisk -l
fsck -fyv /dev/sda1 (f=force y=fix)
shutdown -rF now (reboot, forcing fsck on root filesystem)

Mount & Un-Mount Devices

df -h          (show boot partition)
ls /media      (device mounted from GUI)
cat /etc/fstab (partitions and devices that mount on start-up)
mount 
mount /dev/sdb1 /mnt/xxx
umount /dev/sdb1 (sudo)

FSTAB - Mount HDD

mount HDD
sudo mount to see what is mounted
sudo mount -a to mount all entries in fstab
un-mount drive (close apps using drive first)

sudo mkdir /media/sjn8GigMount

sudo fdisk -l or Disk utility to get "Device Name" such as (/dev/sdc1)
gksudo gedit /etc/fstab

select Edit -> Preferences -> Editor
create a backup copy before saving file
Example 1. old-school
[device]    [mount point]     [file system]  [options]      	         [dump] [fsck order]
/dev/sdb1   /mnt/sjn8GigMount   auto         rw.username.auto.exec.utf8   0        0
Example 2. new-school
[device]               [mount point]    [file system]  [options]              [dump][fsck order]
UUID=34C4DFF9C4DF8876  /mnt/sjn8GigMount   auto         rw.username.auto.exec.utf8   0        0
#File Systems [auto] [ext4] [jfs] [reiser4] [swap] [iso9660] [FAT 32] [NTFS]
#Note [ntfs-3g] necessary for write access
Re-Start machine

Mount - NTFS HDD(on tsbackup)

sudo ntfs-config (open + and dbl clk on device)
see - "Mounting_Disks.README" on Desktop

top

Badblocks

badblocks -nvs /dev/sda1

Network Backup Procedures

Network_backup_wiki.freegeek

Backup a Home Directory

  • date format (e.g. 20121223 for Dec 23 2012)

ssh into backup server

ssh tsbackup@tsbackup
ls /var/tsbackup
ssh -XC tsbackup@tsbackup (.fglan nautilus)
ctrl-c (to back-out)

ssh to tsbackup - nautalus

ssh://tsbackup@tsbackup

rsync from customer box

sudo cp /etc/passwd /etc/shadow /etc/group /home/
dpkg --get-selections > dpkg.out
sudo mv dpkg.out /home/
sudo tar -czf /home/etc.backup.tar.gz /etc/
sudo rsync -avzh /home/ tsbackup@tsbackup:/var/tsbackup/[date-ticketnumber] 2>rsync.log
less rsync.log (view error log)
Note: on the '''data recovery box''' 
      determine mount point of device to backup
      use "fdisk l" or "Disk utility"
      mount /mnt/sdb?

      add /mnt/sdb? in front of /home 
      this avoids the need to chroot.


top

rsync from tsData box

sudo cp /mnt/sdb?/etc/passwd /mnt/sdb?/etc/shadow /mnt/sdb?/etc/group /mnt/sdb?/home/
dpkg --get-selections --admindir=/mnt/sdb?/var/lib/dpkg >dpkg.out
sudo mv dpkg.out /mnt/sdb?/home/
sudo tar -czf /mnt/sdb?/home/etc.backup.tar.gz /mnt/sdb?/etc/
sudo rsync -avzh /mnt/sdb?/home/ tsbackup@tsbackup:/var/tsbackup/[date-ticketnumber] 2>rsync.log

Restore from Backup

sudo rsync -avzh  tsbackup@tsbackup:/var/tsbackup/[date-ticketnumber]/ /home
sudo dpkg --set-selections < /home/dpkg.out
sudo apt-get -u dselect-upgrade
copy (user passwd) hash from original /etc/shadow

Restore User Permissions

  • Create a New User (oem or Bob or Mark) - with Admin. Privileges
Change From: drwxr-xr-x 23 1001 1001 4096 2011-07-07 13:28 oem

Change To:   chown -R oem:oem /home/oem (recursively for all sub directories)

File Permissions

chmod 774 dir-name (dir)   rwxrwxr--
chmod 664 filename (files) rw-rw-r--
chmod ugo+rwx /dir/file
chmod ugo-rwx /dir/file

top

Stress Test CPU and Chipset

stress --cpu 8 --io 4 --vm  2 --vm-bytes 128M  --timeout 4h

(add --hdd 2 to stress the hard drive as well, though this shouldn't be necessary)

Temperature Test/Display

while  true  ; do uptime ; sensors ; sleep 30s; done | tee temp_load.log

Load lm sensor "utility to read temp/fan" 
-from software center 

Hardware & Resource Identification

lshw

sudo lshw (hardware config)

CPU

cat /proc/cpuinfo or more /proc/cpuinfo

Disk Usage

du -sh (-s disk usage)
du -sh /home/bob/Downloads/ (disk usage for Downloads)

top

Available Memory

free –l (available memory)
cat /proc/meminfo

Devices in Use

To see a list of devices currently in use

cat /proc/devices

AlsaMixer

alsamixer

Printer Linux Foundation

http://www.linuxfoundation.org/
Workgroups -> Open Printing -> Printers

HPLIP

http://hplipopensource.com/hplip-web/downloads.html

top

WineHQ Database

http://www.winehq.org/

wineDB

Download-Wine

Photorec

Burn DVD tsbackup

wodim dev=/dev/sr1 isodir/DiscSpan_15.iso (15 = disk #)
;beep