Raspbian Operation System Set-up


Step 1 Initial screen
Step 2 Set password
Step 3 Update status



Initial Screen

At the very first time, you need to connect a USB keyboard, mouse and a HDMI monitor as the PI will boot into an initial config screen.

Here select the followings:
Expand: yes
Overscan: No
Configure keyboard: Whatever you have
Change pass: yes
Time zone: yes change to your time zone
Memory split: No
Ssh: Yes
Boot behavior : No (you can always start it from the prompt with startx.
Update: Yes (takes about 10 minutes, LAN cable should be connected)


Initial Screem

Set Password

From now on you can use the SSH method to connect to Raspberry PI through Putty.exe in windows. Take your pick.

Find the IP address of the Raspberry after it has booted. You have to log into your home router and check which IP address has been assigned to the new LAN device. Ususally your router IP address is 192.168.0.1 or 192.168.1.1

Once you know the IP address of the Raspberry PI, you can SSH into the machine using pi as the username – The password is raspberry

Execute:
$ sudo su
Then change the su root password by executing:
$ passwd
So now we have both a user "pi" as well as the user "root" account under control.

Note: I advice to install all software as root, since you are going to have it run unattended, and auto login is always as root

If you are going to use the serial port to connect the TNC-Pi to the Raspberry Pi, you will need to make a couple of changes to the Pi configuration. Edit the cmdline.txt file in the boot directory and make the following changes:

1. Remove the following: console=ttyAMA0, 115200
2. Remove the following: kgdboc=ttyAMA0, 115200
Then edit the inittab file in the etc directory and remove the line that says:

T0:23:respawn:/sbin/getty –L ttyAMA0 115200 vt100

After removing these lines you will have to reboot the Pi so they can take effect.

$ sudo apt-get update

Since we are going to install dixprs, we require python 2…. (already installed, but also the python-serial as well as sqlite3 modules)

$ sudo apt-get install python-serial sqlite3 libax25 screen git build-essential gcc pkg-config python-dev libax25-dev



Update the Raspberry to the latest status

$ sudo apt-get update
Since we are going to install dixprs, we require python 2…. (already installed, but also the python-serial as well as sqlite3 modules)

$ sudo apt-get install python-serial sqlite3 libax25 screen git build-essential gcc pkg-config python-dev libax25-dev


Since you most likely wish to run the digipeater autonomous, also in case of a restart, I suggest we move to the root user right now

$ sudo su

Emulation for Raspberry Pi on Windows
File System: Short Description of the Linux File System
Commands: Selection of Linux/Application Commands
Configuration with WinSCP and config file locations


Emulator for Raspberry Pi

Download the qemu.zip from here.:

http://sourceforge.net/projects/rpiqemuwindows/files/

and just start the "run.bat" and do the installation as you normally do.

Linux File System

/bin Common programs, shared by the system, the system administrator and the users.

/boot The startup files and the kernel, vmlinuz. In some recent distributions also grub data. Grub is the GRand Unified Boot loader and is an attempt to get rid of the many different boot-loaders we know today.

/dev Contains references to all the CPU peripheral hardware, which are represented as files with special properties.

/etc Most important system configuration files are in /etc, this directory contains data similar to those in the Control Panel in Windows

/home Home directories of the common users.

/initrd (on some distributions) Information for booting. Do not remove!

/lib Library files, includes files for all kinds of programs needed by the system and the users.

/lost+found Every partition has a lost+found in its upper directory. Files that were saved during failures are here.

/misc For miscellaneous purposes.

/mnt Standard mount point for external file systems, e.g. a CD-ROM or a digital camera.

/net Standard mount point for entire remote file systems

/opt Typically contains extra and third party software.

/proc A virtual file system containing information about system resources. More information about the meaning of the files in proc is obtained by entering the command man proc in a terminal window. The file proc.txt discusses the virtual file system in detail.

/root The administrative user's home directory. Mind the difference between /, the root directory and /root, the home directory of the root user.

/sbin Programs for use by the system and the system administrator.

/tmp Temporary space for use by the system, cleaned upon reboot, so don't use this for saving any work!

/usr
Programs, libraries, documentation etc. for all user-related programs.

/var
Storage for all variable files and temporary files created by users, such as log files, the mail queue, the print spooler area, space for temporary storage of files downloaded from the Internet, or to keep an image of a CD before burning it.

System Commands:

root@raspberrypi ~ # apt-get update (update paket description - no installation)

root@raspberrypi ~ # passwd (change password)

root@raspberrypi ~ # reboot

root@raspberrypi ~ # ifconfig (show IP info incl. Pi's IP-Address)

root@raspberrypi ~ # startx (change to graphical UI)
go back with Logout

root@raspberrypi ~ # df (show memory)

root@raspberrypi ~ # dpkg -l (show installed applications)

root@raspberrypi ~ # uptime (show uptime)

Initiate Speed Test:

pi@raspberrypi ~ $ cd speedtest-cli/
pi@raspberrypi ~/speedtest-cli $ python speedtest_cli.py

Remote Operation with ConnectBot-Android app

Webcam:

root@raspberrypi ~ # sudo motion service start
root@raspberrypi ~ # sudo motion service stop

Install another browser:

root@raspberrypi ~ # sudo apt-get install iceweasel (install ICEWEASEL browser)
root@raspberrypi ~ # sudo apt-get install iceweasel/browser-plugin-gnash (install flash)

Editing config files

You can use WinSCP for easy access and editing config files. Therefore it is recommended to install the FTP server VSFTPD first.

WinSCP: Editing config

APRS IGate

usr/local/dixprs/

more config file locations:

FTP Server
etc/vsftpd.conf

Samba

etc/samba/smb.conf

Webcam
etc/motion/motion.config

VPN
etc/openvpn/easy-rsa/vars

Weather Station Interface
home/pi/WX





Freitag, 20. Dezember 2013
SSH client 'JuiceSSH'

JuiceSSH better than ConnectBot because of rotation, groups and letter size by volume control (tablets)

Donnerstag, 19. Dezember 2013
Add: Access from outside

fixed IP address or server like DynDNS

Donnerstag, 19. Dezember 2013
Add: PUTTY to step 2/3 or after 'config' register

also any ssh client such as the Android 'ConnectBot'

Admim