Tutorial

Create personalized iso based on GoBang

Help: Link

In this tutorial I will present several scenarios for rebuilding an iso gobang for their own purposes.
It is a very broad topic, I introduced the basic issues related to the construction of an image using Remastersys.
This guide is aimed at persons willing to convert easily GoBang ISO image, for their own purposes.
I will try where possible to expand tutorial. People willing to take the focus can count on my help.
Images created by users will be added to the list of alternative images for the download.
Kindly please contact the person interested in and information about their productions:
– Description of the changes
– Homepage
– The address for download
– Author
The first scenario represents the total change of language in the image.
Procedure and stores paths to configuration files when building the ISO image with the defined language.
The description applies to build the Polish version of the ISO image.
Procedures can be used to change the language to any.
And so we begin !!!

1. Installation of the system of virtual machine.
– Downloaded the iso image in the English language version.
– Install the system in a virtual machine in accordance with this guide.
(User name „gobang”, password „gobang”)
– Do not perform procedures post-installation script.
(Close the terminal window after restarting the system installed)
2. Basic important files:
/etc/environment
/etc/default/locale
/etc/default/keyboard
/etc/default/keyboard.pre-ubiquity
/etc/skel
/home/$USER
/root
These are the places worth a look.
– File Contents (/etc/environment) Live CD version
PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games”
RUNNING_UNDER_GDM=”yes”
LANG=”en_US.UTF-8″
– File Contents (/etc/default/locale) Live CD version
LANG=”en_US.UTF-8″
– File Contents (/etc/default/keyboard) Live CD version
# Check /usr/share/doc/keyboard-configuration/README.Debian for
# documentation on what to do after having modified this file.

# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.

XKBMODEL=”pc105″
XKBLAYOUT=”us”
XKBVARIANT=””
XKBOPTIONS=””

# If you don’t want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
– File Contents (/etc/default/keyboard.pre-ubiquity) Live CD version
# Check /usr/share/doc/keyboard-configuration/README.Debian for
# documentation on what to do after having modified this file.

# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.

XKBMODEL=”pc105″
XKBLAYOUT=”us”
XKBVARIANT=””
XKBOPTIONS=””

# If you don’t want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
– File Contents (/etc/skel/.dmrc) Live CD version
[Desktop]
Session=openbox
– File Contents (/etc/root/.dmrc) Live CD version
[Desktop]
Session=openbox
The contents of these files may vary, depending on how you install the system.
3. Installation of the selected language and removing unnecessary translations.
(Example based on the Polish language)
– Open a terminal and issue the command [sudo gnome-language-selector]
(Complete the installation of the Polish language, remove unnecessary language English)
– After the completion, issue the command [gnome-language-selector]
(Make sure the language setting of the user’s system)
4. Edit files that the content was consistent with the model.
– /home/gobang/.pam_environment
LANGUAGE=pl_PL.UTF-8
LANG=pl_PL.UTF-8
LC_NUMERIC=pl_PL.UTF-8
LC_TIME=pl_PL.UTF-8
LC_MONETARY=pl_PL.UTF-8
LC_PAPER=pl_PL.UTF-8
LC_NAME=pl_PL.UTF-8
LC_ADDRESS=pl_PL.UTF-8
LC_TELEPHONE=pl_PL.UTF-8
LC_MEASUREMENT=pl_PL.UTF-8
LC_IDENTIFICATION=pl_PL.UTF-8
– /etc/environment
PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games”
RUNNING_UNDER_GDM=”yes”
LANG=”pl_PL.UTF-8″
LANGUAGE=”pl_PL.UTF-8″
LC_NUMERIC=”pl_PL.UTF-8″
LC_TIME=”pl_PL.UTF-8″
LC_MONETARY=”pl_PL.UTF-8″
LC_PAPER=”pl_PL.UTF-8″
LC_NAME=”pl_PL.UTF-8″
LC_ADDRESS=”pl_PL.UTF-8″
LC_TELEPHONE=”pl_PL.UTF-8″
LC_MEASUREMENT=”pl_PL.UTF-8″
LC_IDENTIFICATION=”pl_PL.UTF-8″
– /etc/default/locale
LANG=”pl_PL.UTF-8″
LANGUAGE=”pl_PL.UTF-8″
LC_NUMERIC=”pl_PL.UTF-8″
LC_TIME=”pl_PL.UTF-8″
LC_MONETARY=”pl_PL.UTF-8″
LC_PAPER=”pl_PL.UTF-8″
LC_NAME=”pl_PL.UTF-8″
LC_ADDRESS=”pl_PL.UTF-8″
LC_TELEPHONE=”pl_PL.UTF-8″
LC_MEASUREMENT=”pl_PL.UTF-8″
LC_IDENTIFICATION=”pl_PL.UTF-8″
– /etc/default/keyboard
# Check /usr/share/doc/keyboard-configuration/README.Debian for
# documentation on what to do after having modified this file.

# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.

XKBMODEL=”pc105″
XKBLAYOUT=”pl”
XKBVARIANT=””
XKBOPTIONS=””

# If you don’t want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
– /etc/default/keyboard.pre-ubiquity
# Check /usr/share/doc/keyboard-configuration/README.Debian for
# documentation on what to do after having modified this file.

# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.

XKBMODEL=”pc105″
XKBLAYOUT=”pl”
XKBVARIANT=””
XKBOPTIONS=””

# If you don’t want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
5. Edit the login screen [MENU -> Config -> Edit the login screen]
– Security
(Disable automatic login, disable automatic login from the delay)
6. Restart the machine.
– The login screen [language selection and session]. Logging on
– Copy the file (/home/gobang/.dmrc, /home/gobang/.pam_environment) to /etc/skel/ , /root
(Content dmrc in the Polish language version of the default Openbox session)
[Desktop]
Session=openbox
Language=pl_PL.UTF-8
– Final entries starting with [# Path LC_ALL =] on file: /home/gobang/.bashrc , .profile
must be removed
# Path LC_ALL=
LANG=$( cat ~/.dmrc | grep Language | cut -d= -f2 | cut -c 1-11 )
export LC_ALL=$LANG
export LANG=$LANG
export LANGUAGE=$LANG
7. Install Remastersys and final setting
– [Menu -> GUI -> System -> Backup -> Install Remastersys]
– Edit the login screen [MENU -> Config -> Edit the login screen -> Security]
(Enable automatic login, enable automatic login from the delay)
8. Restart the system to save the settings, cleaning
– Checking files copied and edited for rights [owner: root, group: root]
– Cleaning items from the clipboard manager Parcellite.
– remove entries in the file (/root/.config/geany/geany.conf) everything is located under the line ([files])
– Quick way to clean, run [Menu -> GUI -> System -> BleachBit]
(select all items, except [Locations language, memory])
– rmove /root/.bash_history
– Open a terminal and enter
[sudo aptitude purge]
[sudo aptitude autoclean]
[sudo aptitude clean]
[sudo apt-get clean]
[sudo remastersys clean]
[sudo remastersys dist]
9. After the process of our ISO image can be found in /home/remastersys/
10. Why not check out:
/etc/skel/.config/openbox
/usr/bin/gb-start
man xgo
man obprofile
man remastersys

Referring to what I said earlier , this is a quick and easy way for converting ISO images and prepare a personalized system .
I am not able to predict all the scenarios and the vision of the finished product .
There are many tricks and configuration files , you should take the time to describe .
For my part, I will try to provide information and help solve problems.
Every new idea will be described and supported .
In the near future I will try to make a video tutorial in which consideration of other target image GoBang .
I encourage you to contact people who want to modify the ISO , to your own personal goals , educational …

Reklamy
Documents, Help, Tutorial

Installation GoBang

1. Start the machine from the CD or USB.
2. After starting the system, right click on the desktop.
Menu -> Terminal.
Enter [ubiquity].
1
3. Language Selection Installer.
2
4. Selecting the installation method.
3
5. Selecting the disk partitioning.
4
5. Selecting the location of the world.
5
6. Language Selection System.
6
7. Creating a User.
7
8. After that the installer performs copying files.
Window informing about the completion of the installation process.
8
9. Restart the machine, logon screen.
9
10. Important, language selector.
10
11. Approval of the selection as the default for the system.
11
12. The first launch of the system and start post-installation script.
12
13. Basic procedures needed for proper system operation.
13
14
13. Despite the language selection during installation, not all language packs are installed and set as default.
Completion of installation or removal of unnecessary languages.
15
16
17
14. Setting the language selection by, grab a drop in the highest position.
18
19
15. The keyboard layout.
20
21
22
23
25
28
29
15. Performing further procedures pos-installation script. Then reboot the machine to save the changes.
30
31
32
16. That would be enough to GoBang work properly 😉 !!!

Tutorial

Configuration

Configuration family systems linux.
Written on the subject more than one a book and given to more than one web page.
I’m leaving on the assumption that there is no use prescribe something that is already written. I’ll try to slowly expand this guide for more topics related to GoBang Linux.
Starting adventure of gobang, it is good to know the basics of the environment on which it was based.
In my opinion, the most transparent and digestible knowledge can be found at this link. In addition, I recommend a look at the guides man obprofile and xgo.
In the nearest future I will try to link interesting topics.
The great Library of knowledge can be found in the page header tutorial on the blog.

Tutorial

Command line

System:
Running kernel and system information:

# uname -a # Get the kernel version (and BSD version)
# lsb_release -a # Full release info of any LSB distribution
# cat /etc/debian_version # Get Debian version
Use /etc/DISTR-release with DISTR= lsb (Ubuntu) /etc/issue.
# uptime # Show how long the system has been running + load
# hostname # system’s host name
# hostname -i # Display the IP address of the host.
# man hier # Description of the file system hierarchy
# last reboot # Show system reboot history

Hardware Informations:
Kernel detected hardware:

# dmesg # Detected hardware and boot messages
# lsdev # information about installed hardware
# dd if=/dev/mem bs=1k skip=768 count=256 2>/dev/null | strings -n 8 # Read BIOS

# cat /proc/cpuinfo # CPU model
# cat /proc/meminfo # Hardware memory
# grep MemTotal /proc/meminfo # Display the physical memory
# watch -n1 ‚cat /proc/interrupts’ # Watch changeable interrupts continuously
# free -m # Used and free memory (-m for MB)
# cat /proc/devices # Configured devices
# lspci -tv # Show PCI devices
# lsusb -tv # Show USB devices
# lshal # Show a list of all devices with their properties
# dmidecode # Show DMI/SMBIOS: hw info from the BIOS

Load, statistics and messages:
The following commands are useful to find out what is going on on the system.

# top # display and update the top cpu processes
# mpstat 1 # display processors related statistics
# vmstat 2 # display virtual memory statistics
# iostat 2 # display I/O statistics (2 s intervals)
# systat -vmstat 1 # BSD summary of system statistics (1 s intervals)
# systat -tcp 1 # BSD tcp connections (try also -ip)
# systat -netstat 1 # BSD active network connections
# systat -ifstat 1 # BSD network traffic through active interfaces
# systat -iostat 1 # BSD CPU and and disk throughput
# tail -n 500 /var/log/messages # Last 500 kernel/syslog messages
# tail /var/log/warn # System warnings messages see syslog.conf

Users:

# id # Show the active user id with login and group
# last # Show last logins on the system
# who # Show who is logged on the system
# groupadd admin # Add group „admin” and user colin
# useradd -c „Colin Barschel” -g admin -m colin
# usermod -a -G # Add existing user to group (Debian)
# userdel colin # Delete user colin
# pw groupmod admin -m newmembe r # Add a new member to a group
# pw useradd colin -c „Colin Barschel” -g admin -m -s /bin/tcsh
# pw userdel colin; pw groupdel admin

Kernel modules:

# lsmod # List all modules loaded in the kernel
# modprobe isdn # To load a module (here isdn)

Compile Kernel

# cd /usr/src/linux
# make mrproper # Clean everything, including config files
# make oldconfig # Reuse the old .config if existent
# make menuconfig # or xconfig (Qt) or gconfig (GTK)
# make # Create a compressed kernel image
# make modules # Compile the modules
# make modules_install # Install the modules
# make install # Install the kernel
# reboot

Repair grub:

So you broke grub? Boot from a live cd, [find your linux partition under /dev and use fdisk to find the linux partion] mount the linux partition, add /proc and /dev and use grub-install /dev/xyz. Suppose linux lies on /dev/sda4:

# mount /dev/sda6 /mnt # mount the linux partition on /mnt
# mount –bind /proc /mnt/proc # mount the proc subsystem into /mnt
# mount –bind /dev /mnt/dev # mount the devices into /mnt
# chroot /mnt # change root to the linux partition
# grub-install /dev/sda # reinstall grub with your old settings

Listing and PIDs:

Each process has a unique number, the PID. A list of all running process is retrieved with ps.
# ps -auxefw # Extensive list of all running process

However more typical usage is with a pipe or with pgrep:

# ps axww | grep cron
586 ?? Is 0:01.48 /usr/sbin/cron -s
# ps axjf # All processes in a tree format
# ps aux | grep ‚ss[h]’ # Find all ssh pids without the grep pid
# pgrep -l sshd # Find the PIDs of processes by (part of) name
# echo $$ # The PID of your shell
# fuser -va 22/tcp # List processes using port 22 (Linux)
# pmap PID # Memory map of process (hunt memory leaks) (Linux)
# fuser -va /home # List processes accessing the /home partition
# strace df # Trace system calls and signals
# truss df # same as above

Signals/Kill:

Terminate or send a signal with kill or killall.

# kill -s TERM 4712 # same as kill -15 4712
# killall -1 httpd # Kill HUP processes by exact name
# pkill -9 http # Kill TERM processes by (part of) name
# pkill -TERM -u www # Kill TERM processes owned by www
# fuser -k -TERM -m /home # Kill every process accessing /home (to umount)

Important signals are:

1 HUP (hang up)
2 INT (interrupt)
3 QUIT (quit)
9 KILL (non-catchable, non-ignorable kill)
15 TERM (software termination signal)

Permissions:

Change permission and ownership with chmod and chown. The default umask can be changed for all users in /etc/profile for Linux. The default umask is usually 022. The umask is subtracted from 777, thus umask 022 results in a permission 0f 755.

1 –x execute # Mode 764 = exec/read/write | read/write | read
2 -w- write # For: |– Owner –| |- Group-| |Oth|
4 r– read
ugo=a u=user, g=group, o=others, a=everyone
# chmod [OPTION] MODE[,MODE] FILE # MODE is of the form [ugoa]*([-+=]([rwxXst]))
# chmod 640 /var/log/maillog # Restrict the log -rw-r—–
# chmod u=rw,g=r,o= /var/log/maillog # Same as above
# chmod -R o-r /home/* # Recursive remove other readable for all users
# chmod u+s /path/to/prog # Set SUID bit on executable (know what you do!)
# find / -perm -u+s -print # Find all programs with the SUID bit
# chown user:group /path/to/file # Change the user and group ownership of a file
# chgrp group /path/to/file # Change the group ownership of a file
# chmod 640 `find ./ -type f -print` # Change permissions to 640 for all files
# chmod 751 `find ./ -type d -print` # Change permissions to 751 for all directories

Disk information:

# hdparm -I /dev/sda # information about the IDE/ATA disk (Linux)
# fdisk /dev/ad2 # Display and manipulate the partition table
# smartctl -a /dev/ad2 # Display the disk SMART info

System mount points/Disk usage

# mount | column -t # Show mounted file-systems on the system
# df # display free disk space and mounted devices
# cat /proc/partitions # Show all registered partitions

# du -sh * # Directory sizes as listing
# du -csh # Total directory size of the current directory
# du -ks * | sort -n -r # Sort everything by size in kilobytes

Who has which files opened:

This is useful to find out which file is blocking a partition which has to be unmounted and gives a typical error of:

# umount /home/
umount: unmount of /home # umount impossible because a file is locking home
failed: Device busy
# ls -lSr # Show files, biggest last

Find opened files on a mount point with fuser or lsof:

# fuser -m /home # List processes accessing /home
# lsof /home

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
tcsh 29029 eedcoba cwd DIR 0,18 12288 1048587 /home/cipi (cipi:/home)
lsof 29140 eedcoba cwd DIR 0,18 12288 1048587 /home/cipi (cipi:/home)

About an application:

ps ax | grep Xorg | awk ‚{print $1}’
3324
# lsof -p 3324
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
Xorg 3324 root 0w REG 8,6 56296 12492 /var/log/Xorg.0.log
About a single file:
# lsof /var/log/Xorg.0.log
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
Xorg 3324 root 0w REG 8,6 56296 12492 /var/log/Xorg.0.log

Mount/remount a file system
For example the cdrom. If listed in /etc/fstab:

# mount /cdrom
# mount -t auto /dev/cdrom /mnt/cdrom # typical cdrom mount command
# mount /dev/hdc -t iso9660 -r /cdrom # typical IDE
# mount /dev/scd0 -t iso9660 -r /cdrom # typical SCSI cdrom
# mount /dev/sdc0 -t ntfs-3g /windows # typical SCSI
Entry in /etc/fstab:
/dev/cdrom /media/cdrom subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec 0 0

Add swap on-the-fly
Suppose you need more swap (right now), say a 2GB file /swap2gb

# dd if=/dev/zero of=/swap2gb bs=1024k count=2000
# mkswap /swap2gb # create the swap area
# swapon /swap2gb # activate the swap. It now in use
# swapoff /swap2gb # when done deactivate the swap
# rm /swap2gb

Mount an SMB share

Suppose we want to access the SMB share myshare on the computer smbserver, the address as typed on a Windows PC is \\smbserver\myshare\. We mount on /mnt/smbshare. Warning> cifs wants an IP or DNS name, not a Windows name.

# smbclient -U user -I 192.168.16.229 -L //smbshare/ # List the shares
# mount -t smbfs -o username=winuser //smbserver/myshare /mnt/smbshare
# mount -t cifs -o username=winuser,password=winpwd //192.168.16.229/myshare /mnt/share
Additionally with the package mount.cifs it is possible to store the credentials in a file, for example /home/user/.smb:
username=winuser
password=winpwd
And mount as follow:
# mount -t cifs -o credentials=/home/user/.smb //192.168.16.229/myshare /mnt/smbshare

Mount an image:

# mount -t iso9660 -o loop file.iso /mnt # Mount a CD image
# mount -t ext3 -o loop file.img /mnt # Mount an image with ext3 fs

Create a memory file system:
A memory based file system is very fast for heavy IO application. How to create a 64 MB partition mounted on /memdisk:

# mount -t tmpfs -osize=64m tmpfs /memdisk

Disk performance:

Read and write a 1 GB file on partition ad4s3c (/home)

# time dd if=/dev/ad4s3c of=/dev/null bs=1024k count=1000
# time dd if=/dev/zero bs=1024k count=1000 of=/home/1Gb.file
# hdparm -tT /dev/hda # Linux only

Networking:

# ethtool eth0 # Show the ethernet status (replaces mii-diag)
# ethtool -s eth0 speed 100 duplex full # Force 100Mbit Full duplex
# ethtool -s eth0 autoneg off # Disable auto negotiation
# ethtool -p eth1 # Blink the ethernet led – very useful when supported
# ip link show # Display all interfaces on Linux (similar to ifconfig)
# ip link set eth0 up # Bring device up (or down). Same as „ifconfig eth0 up”
# ip addr show # Display all IP addresses on Linux (similar to ifconfig)
# ip neigh show # Similar to arp -a

Ports in use:
Listening open ports:

# netstat -an | grep LISTEN
# lsof -i # List all Internet connections
# socklist # Display list of open sockets
# netstat -anp –udp –tcp | grep LISTEN
# netstat -tup # List active connections to/from system
# netstat -tupl # List listening ports from system

Firewall
Check if a firewall is running (typical configuration only):

# iptables -L -n -v # For status Open the iptables firewall
# iptables -P INPUT ACCEPT # Open everything
# iptables -P FORWARD ACCEPT
# iptables -P OUTPUT ACCEPT
# iptables -Z # Zero the packet and byte counters in all chains
# iptables -F # Flush all chains
# iptables -X # Delete all chains

IP Forward for routing
Check and then enable IP forward with:

# cat /proc/sys/net/ipv4/ip_forward # Check IP forward 0=off, 1=on
# echo 1 > /proc/sys/net/ipv4/ip_forward
or edit /etc/sysctl.conf with:
net.ipv4.ip_forward = 1

Network Address Translation

# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # to activate NAT
# iptables -t nat -A PREROUTING -p tcp -d 78.31.70.238 –dport 20022 -j DNAT \
–to 192.168.16.44:22 # Port forward 20022 to internal IP port ssh
# iptables -t nat -A PREROUTING -p tcp -d 78.31.70.238 –dport 993:995 -j DNAT \
–to 192.168.16.254:993-995 # Port forward of range 993-995
# ip route flush cache
# iptables -L -t nat # Check NAT status

DNS

The DNS entries are valid for all interfaces and are stored in /etc/resolv.conf. The domain to which the host belongs is also stored in this file. A minimal configuration is:

nameserver 66.63.128.84
search cipi.net intern.lab
domain cipi.org
Check the system domain name with:
# hostname -d # Same as dnsdomainname

DHCP

# dhcpcd -n eth0 # Trigger a renew (does not always work)
# dhcpcd -k eth0 # release and shutdown
The lease with the full information is stored in:
/var/lib/dhcpcd/dhcpcd-eth0.info

tar
The command tar (tape archive) creates and extracts archives of file and directories. The archive .tar is uncompressed, a compressed archive has the extension .tgz or .tar.gz (zip) or .tbz (bzip2). Do not use absolute path when creating an archive, you probably want to unpack it somewhere else. Some typical commands are:

Create

# cd /
# tar -cf home.tar home/ # archive the whole /home directory (c for create)
# tar -czf home.tgz home/ # same with zip compression
# tar -cjf home.tbz home/ # same with bzip2 compression
Only include one (or two) directories from a tree, but keep the relative structure. For example archive /usr/local/etc and /usr/local/www and the first directory in the archive should be local/.
# tar -C /usr -czf local.tgz local/etc local/www
# tar -C /usr -xzf local.tgz # To untar the local dir into /usr
# cd /usr; tar -xzf local.tgz # Is the same as above

Extract

# tar -tzf home.tgz # look inside the archive without extracting (list)
# tar -xf home.tar # extract the archive here (x for extract)
# tar -xzf home.tgz # same with zip compression (-xjf for bzip2 compression)
# remove leading path gallery2 and extract into gallery
# tar –strip-components 1 -zxvf gallery2.tgz -C gallery/
# tar -xjf home.tbz home/colin/file.txt # Restore a single file

More advanced

# tar c dir/ | gzip | ssh user@remote ‚dd of=dir.tgz’ # arch dir/ and store remotely.
# tar cvf – `find . -print` > backup.tar # arch the current directory.
# tar -cf – -C /etc . | tar xpf – -C /backup/etc # Copy directories
# tar -cf – -C /etc . | ssh user@remote tar xpf – -C /backup/etc # Remote copy.
# tar -czf home.tgz –exclude ‚*.o’ –exclude ‚tmp/’ home/

Find

Some important options:
-x (on BSD) -xdev (on Linux) Stay on the same file system (dev in fstab).
-exec cmd {} \; Execute the command and replace {} with the full path
-iname Like -name but is case insensitive
-ls Display information about the file (like ls -la)
-size n n is +-n (k M G T P)
-cmin n File’s status was last changed n minutes ago.
# find . -type f ! -perm -444 # Find files not readable by all
# find . -type d ! -perm -111 # Find dirs not accessible by all
# find /home/user/ -cmin 10 -print # Files created or modified in the last 10 min.
# find . -name ‚*.[ch]’ | xargs grep -E ‚expr’ # Search ‚expr’ in this dir and below.
# find / -name „*.core” | xargs rm # Find core dumps and delete them (also try core.*)
# find / -name „*.core” -print -exec rm {} \; # Other syntax
# Find images and create an archive, iname is not case sensitive. -r for append
# find . \( -iname „*.png” -o -iname „*.jpg” \) -print -exec tar -rf images.tar {} \;
# find . -type f -name „*.txt” ! -name README.txt -print # Exclude README.txt files
# find /var/ -size +10M -exec ls -lh {} \; # Find large files > 10 MB
# find /var/ -size +10M -ls # This is simpler
# find . -size +10M -size -50M -print
# find /usr/ports/ -name work -type d -print -exec rm -rf {} \; # Clean the ports
# Find files with SUID; those file are vulnerable and must be kept secure
# find / -type f -user root -perm -4000 -exec ls -l {} \;

Miscellaneous

# which command # Show full path name of command
# time command # See how long a command takes to execute
# time cat # Use time as stopwatch. Ctrl-c to stop
# set | grep $USER # List the current environment
# cal -3 # Display a three month calendar
# date [-u|–utc|–universal] [MMDDhhmm[[CC]YY][.ss]]
# date 10022155 # Set date and time
# whatis grep # Display a short info on the command or word
# whereis java # Search path and standard directories for word
# setenv varname value # Set env. variable varname to value (csh/tcsh)
# export varname=”value” # set env. variable varname to value (sh/ksh/bash)
# pwd # Print working directory
# mkdir -p /path/to/dir # no error if existing, make parent dirs as needed
# mkdir -p project/{bin,src,obj,doc/{html,man,pdf},debug/some/more/dirs}
# rmdir /path/to/dir # Remove directory
# rm -rf /path/to/dir # Remove directory and its content (force)
# rm — -badchar.txt # Remove file whitch starts with a dash (-)
# cp -la /dir1 /dir2 # Archive and hard link files instead of copy
# cp -lpR /dir1 /dir2 #
# cp unixtoolbox.xhtml{,.bak} # Short way to copy the file with a new extension
# mv /dir1 /dir2 # Rename a directory
# ls -1 # list one file per line
# history | tail -50 # Display the last 50 used commands
# cd – # cd to previous ($OLDPWD) directory

Help, Tutorial

How to Run Live CD

If you have a first contact with the live CD and need help please read tem start guide.
It shows the three ways to start:

At the beginning of what is Live CD
Start the computer from a CD or USB flash drive
Creating a bootable flash drive with the ability to save the settings
Booting ISO in the virtual machine


Setting the startup of the machine

Please refer to the user manual of your machine „PC or Laptop”.
Will be important ways to boot the machine from the media „CD or USB”
Most computers have the ability to quickly select media for booting. This happens when pressing the power button and selecting the appropriate kawisza, which displays a list of boot options. This is usually one of the function keys „F..”
If your machine does not have this function, set the boot method in the BIOS.
How to enter the BIOS setup can be found in the device manual.
In the BIOS, the boot section, specify – Which media will be used as the first to launch.
If the machine will start from the CD or USB and display the boot selection screen. Please select the first option from the list.
If you need to change or re-login session. It will need a user name and password.
You will then be prompted to enter:
– Username „gobang”
– Password „leave blank and press Enter”

Creating a bootable flash drive with the ability to save the settings

Go to the site: http://unetbootin.sourceforge.net/
And follow the instructions.
UNetbootin allows you to create a bootable pendriwe to write the system settings. To do this, prepare stick „4GB, 8GB”, in the program window UNetbootin in „Space used to preserve files across reboots” specify the amount of space that will be used to preserve your system setup and software installation.
When you create a bootable flash drive, follow the instructions above.

Booting ISO in the virtual machine

Go to the page: https://www.virtualbox.org/
Download VirtualBox.
Please read the documentation on this page.
https://wbootww.virtualbox.org/manual/UserManual.html

After starting the virtual machine and display the boot selection screen. Please select the first option from the list.
If you need to change or re-login session. It will need a user name and password.
You will then be prompted to enter:
– Username „gobang”
– Password „leave blank and press Enter”

If you want to install GoBang in a virtual machine, do the following:
Open Terminal and type [ubiquity]
Follow the installation guide.
After installation, the system reboots,
IMPORTANT! Before logging set language.

Tutorial

Effects Dasktop GoBang

In this case, was used for Cairo Composite Manager, it is also possible to use „xcompmgr”, but more on that another time.
Enable cairo-compmgr; [ Menu->Conf->Compositing->Enable Compositing with cairo-compmgr ]
To get a clean operation, you need to edit a few entries.

  • Edit autostart.
    [ Menu->Conf->Openbox->Edit autostart ]
    In the file „autostart” was given an example of
    – „Enable Eyecandy …”, but it may not always be a good one for you.
    If you have a problem with shadow, border in tint2, follow these changes.
    Find an entry:

    ## Launch panel
    tint2 &

    replace it with the:

    ## cairo-compmgr
    gb-compmgr --cairo-compmgr

    ## Launch panel
    (sleep 3s && tint2) &

    Now tint2 should not have decorations.

  • The second file is „. conkyrc”.
    To „Conky” was not regarded as a window, you have to put an entry in the file header „.conkyrc”
    [ Menu->Conf->Config Layout->conky->Edit .conkyrc]

    ## no compositor
    #own_window_type override
    #own_window_argb_visual no

    ## xcompmgr
    #own_window_type override
    #own_window_argb_visual yes

    ## cairo-compmgr
    own_window_type desktop
    own_window_argb_visual yes

  • If you are using Obprofile, you must add an entry in the file:
    [ Menu->Conf->Openbox->Edit profile apps ]
    and place the entry:

    gb-compmgr --cairo-compmgr

That would be enough to quickly configure.
Manage Composite Cairo has a number of features and accessories, not all are able to work together properly.What is needed is a personal check and test the ability of CCM.
Enjoy your work and greet.

Tutorial

Installation of additional software

At the beginning of remembering is the latest update GoApps.
This update brought greater understanding of mini-scripts [Menu-> GoApps-> System-> Scripts-mini1, MINI2].

What is it?

Mini-scripts are designed to build the basic system, the GUI + Applications.

How does it work?

Scripts concern themselves with automation software to install,
add repositories and configuration environment.
Was designed to image the Ubuntu minimal, but very well in GoBang.
Their function is able to do a lot of:
construction, reconstruction, installation of additional software.

Brief description of scripting – more files REDAME

mini1


Supported desktop environments:

Kubuntu
Kde4 Classic
Unity
GNOME Shell (version Classic or Mint)
Mate (version Mint)
Xubuntu
Xfce Classic
Lubuntu
LXDE Classic
e17

More to add:
Cynamon
Razor-QT
KDE3-trinity

Apps = 188

Desktop optional
================
Update-Notifier
Overlay-Scrollbars (Except All KDE and Unity) –
Cups-Server – Common UNIX Printing System-server
Samba-Server – SMB/CIFS file, print, and login server for Unix
Gufw-Firewall-Manager –
USB-Creator –
Kde4-Version-4-8-0 (ALL KDE) –
Oxygen-Gtk-Support (KDE4-BASIC) –
Plasma-Widgets-Addons (KDE4-BASIC) – Install additional plasma widgets
MyUnity-Configuration (Unity) –
Unity-Mail (Unity) –
Dash-Youtube-Lens (Unity) –
Ask-Ubuntu-Lens (Unity) –
Mint-Update (Mint) –
Mint-Software-Manager (Mint) –
Mint-Backup (Mint) –
Mint-Recontructor (Mint) –
Mint-Nanny (Mint) –
Mint-Wifi (Mint) –
Enable-Composition (LXDE,Lubuntu) –

Bugfixes
========
Unmanaged-Network-Bugfix –
Alsa-Mute-Bugfix –

Terminal Emulators
==================
Yakuake – A Quake-style terminal emulator for the KDE desktop
Gnome-terminal – Terminal emulator for the GNOME desktop
Xfce4-Terminal – Terminal emulator for the XFCE desktop
LXTerminal – Terminal emulator for the LXDE desktop
Sakura – Terminal emulator based on GTK and VTE
Terminator – Cross-platform GPL terminal emulator
ROXTerm – GTK based Terminal emulator
Eterm – Very light and fast Terminal emulator

File Managers
=============
Konqueror – Full-featured file manager, web browser and more
Krusader – Twin-panel File Manager for KDE desktop
Nautilus – File manager and graphical shell for GNOME desktop
Thunar – File manager for the XFCE desktop
PCManFm – Extremely fast and lightweight file manager
xfe – A lightweight file manager for X11
ROX-Filer – Very lightweight & minimalistic File manager
Gnome-commander – Two-pane graphical file manager for the GNOME desktop

Text editors
============
Gedit – The official text editor of the GNOME desktop
Leafpad – Simple GTK+ text editor
Scribes – Simple And Powerful Text Editor for GNOME
SciTE – SCIntilla based Text Editor
Geany – GTK based Text editor & IDE

Image Viewers
=============
Gwenview – The default image viewer for the KDE desktop
gThumb – Gtk based Image viewer
Eye-Of-Gnome – Image viewer for GNOME desktop
Ristretto – Lightweight Image viewer for the XFCE desktop
Gpicview – Lightweight Image viewer
Viewnior – a GTK+ based image viewer (from maverick repo)
Mirage – Lightweight Image viewer

Package & Compression managers
==============================
Ubuntu-Software-Center – Software manager for GNOME desktop
Lubuntu-Software-Center – Software manager for LXDE desktop
Synaptic – Graphical package manager
Aptitude-gtk – Gtk frontend for aptitude package manager
Gnome-Disk-Utility – Simple partition manager
Gparted – Advanced partition manager
Xarchiver – GTK+ based compression tool
File-Roller – An archive manager for GNOME desktop
Squeeze – Modern and advanced archive manager for XFCE
DejaDup – A simple backup tool
SBackup – A simple backup solution for linux

Internet Browsers
=================
Arora – Simple webkit based webbrowser using the Qt toolkit
Rekonq – Webkit based web browser for the KDE desktop
Firefox – Mozilla Firefox Browser
Chromioum – The base of Google Chrome browser
Midori – Lightweight Firefox clone
Seamonkey – Seamonkey internet suite
Epiphany – Lightweight browser

Mail Clients
============
KMail – Full featured graphical email client for KDE
Thunderbird – Mozilla Thunderbird mail client
Evolution – Evolution mail client
Sylpheed – Lightweight mail client
Claws – Lightweight mail client

Office utils and tools
======================
LibreOffice-Writer – Office productivity suite- Word processor
LibreOffice-Calc – Office productivity suite- Spreadsheet
LibreOffice-Impress – Office productivity suite- Presentation
LibreOffice-Draw – Office productivity suite- Drawing
LibreOffice-Base – Office productivity suite- Database
KOffice – KDE Full Office Suite
Abiword – Efficient, featureful word processor
Gnumeric – Spreadsheet application for GNOME
Gnucash – Small-business financial-accounting software
KOrganizer – Calendar and personal organizer for KDE
qOrganizer – Lightweight QT4 based graphical organizer
Osmo – Personal organizer for GTK+
Okular – Universal document viewer for KDE
Acroread – Adobe Reader
Evince – Document (postscript, pdf) viewer
XPDF – Simple PDF Viewer for X desktop
ePDFView – Lightweight pdf viewer
PDFedit – Editor for manipulating PDF documents
knotes – Sticky notes application for KDE
Tomboy – Desktop note taking program
Xpad – Sticky note application for X
KCalc – Simple and scientific calculator for KDE
gcalctool – GNOME desktop calculator
Galculator – A GTK+ 2.0 based calculator
SpeedCrunch – High precision QT4 based calculator

Social media
============
Kopete – Chat client for the KDE desktop
Empathy – GNOME multi-protocol chat and call client
Skype – Make voice and video calls and chats over the Internet
Pidgin – Pidgin social client
Gwibber – Gwibber social client
KMess – Live Messenger chat client for KDE desktop
Emesene – A clone of msn messanger
Konversation – IRC client for the KDE desktop
Quassel – Qt-based IRC client for the KDE desktop
KVIrc – KDE-based next generation IRC client with module support
XChat – IRC client for X similar to AmIRC

File sharing
============
Vuze – Heavyweight full-featured Java based bittorent client
KTorrent – BitTorrent client for the KDE desktop
Deluge – Bittorrent client written in Python/PyGTK
qBittorrent – Qt4 Lightweight bittorent client similar to utorrent
Transmission – Simple and lightweight BitTorrent client
KGet – Download manager for the KDE desktop
Giver – simple file sharing desktop application
Gwget – Front-end for wget download manager
Uget – Easy-to-use GTK+2 download manager
MultiGet – Graphical download manager
KFTPgrabber – Ftp client for the KDE desktop
gFTP – Gtk based multithreaded FTP client

Multimedia players
==================
Kaffeine – Versatile media player for KDE
DragonPlayer – Simple media player for the KDE desktop
Bangarang – Multimedia player with a lightweight ui for KDE desktop
Vlc – Video Lan multimedia player
Gnome-Mplayer – Mplayer frontend for GNOME desktop
Totem – A simple media player for the GNOME desktop
Parole – Media player for the XFCE desktop
SMplayer – Complete front-end for MPlayer
AmaroK – Easy to use media player based on the KDE Platform
Clementine – Multiplatform music player inspired by Amarok 1.4
JuK – Music jukebox/music player for the KDE desktop
Rhythmbox – Music player and organizer for GNOME desktop
Listen – An audio player written in Python
Exaile – Full featured music player written for GTK+
Tomahawk – Social media player
Gmusicbrowser – Graphic jukebox for large collections of music files
Audacious – Audio player similar to Winamp
DeaDBeeF – Lightweight audio player for GNU/Linux systems with X11
Decibel – Lightweight audio player
KRadio – Comfortable radio application for KDE

CD/DVD Burning
===============
K3B – CD/DVD Burn utility for KDE desktop
Brasero – User friendly CD/DVD Burn utility
Gnomebaker – CD/DVD Burn utility for Gnome desktop
Xfburn – Lightweight CD/DVD Burn utility
IsoMaster – A graphical CD image editor

Photo & Printing utils
======================
DigiKam – Advanced digital photo management application for KDE
KPhotoAlbum – Indexing, searching and viewing images in KDE desktop
Shotwell – Digital photo organizer
Fspot – Personal photo management application
Fotoxx – Easy-to-use digital photo editor
Skanlite – Image scanner for KDE 4 based on the KSane backend
Simple-Scan – Simple scanning application
Flegita – Easy to use Scanning Utility
KSnapshot – Screen capture tool for the KDE desktop
Kgrab – Screenshot utility for KDE4

Graphic editing utils
=====================
Krita – Open Source Digital Painting and Drawing Suite
Gimp – The GNU Image Manipulation Program
RawTherapee – Digital Photo Processing Application
Darktable – Good alternative to Adobe Lightroom
ImageMagick – Image manipulation program
Pinta – Lightweight image editor for Linux
Inkscape – Vector-based drawing program
Xara-LX – Heavyweight vector graphics, illustration and DTP Program
Kolourpaint – Simple image editor for the KDE desktop
MyPaint – Fast and easy graphics application for digital painters
mtPaint – Simple painting program
FontForge – Font editor

Video editing utils
================
Kdenlive – Non-linear video editor for KDE
Openshot – Create and edit videos and movies
Pitivi – Non-linear audio/video editor using GStreamer
Avidemux – Lightweight and cross-platform video editor
DVDRip – Full featured DVD ripping program written in Perl
RecordItNow – Desktop recorder for KDE
RecordMyDesktop – Screen Audio-Video capturing

Audio editing utils
================
Audacity – Fast, cross-platform audio editor
Ardour – Digital audio workstation
LMMS – Linux MultiMedia Studio
Rosegarden – Music editor and MIDI-audio sequencer

Multimedia Codecs
=================
Adobe-Flash-Player – Adobe Flash support for several internet browsers
W32-64Codecs – Support for Divx3-4, Mp4, Quicktime, Realaudio/video, WMV, Cinepak
Libdvdcss2 – Support for Playing Encrypted DVDs
Mp3-plugin – Mp3 audio files support

Extras
======
ClamTk – Gui for ClamAv. An antivirus software for linux
Remastersys – Create a Live bootable iso of your current system
Virtualbox-ose – x86 virtualization solution (Open source version)
Wine-1.3 – Microsoft Windows Compatibility Layer v1.3
Wine-1.2 – Microsoft Windows Compatibility Layer v1.2
Q4Wine – Qt4 GUI for Wine
PlayOnLinux – Front-end for Wine

mini2


The script is adapted form Perfectbuntu
Robbie Ferguson.
http://andyduffell.com/techblog/?page_id=396
The current version
1.4.1

This script supports Precise and Quantal minimal installs.
You can install the following desktop environments:
Gnome Shell
Kubuntu desktop
Xubuntu desktop
XFCE4
Lubuntu desktop
LXDE
Myth TV

The following software is also available:
Graphical package managers (eg: Synaptic or kpackagekit)
Printing support
Bluetooth
Libre Office, Zoho Office, or Gnome Office
Kmail, Evolution, Thunderbird or Webmail integration
Smplayer, VLC, Amarok, Banshee, Parole, Rhythmbox
Flash
Multimedia codecs
Fonts
DVD support
Preload
Avant Window Navigator
Miro
Virtualbox
Archive support
Wine
Skype
Email spam filters
Firefox (latest release), Chrome, Opera, Chromium
Compiz Config Settings Manager
Synaptic
XBMC and Moovida
Caffeine

As you can see I’m not the author of the code, flexible function has been checked, but not everything I could find out.
Remember, common sense, and read what happens during operation, avoid unnecessary problems
In case of problems, please contact us, I will try to help.
<<RETURN]