Miralinux Blog

  • Home
  • Linux
    • Scripts
    • CentOS
  • Apple
  • Microsoft
    • Features
    • Office
    • Windows
  • Learning
  • Games
  • Multimedia
    • XBMC
  • Other
    • About WordPress
  • Links
    • General
    • Software
      • Autocad
    • Hardware
      • BIOS
    • Linux
    • WiKieS

Category Archives: Linux

Linux | OpenMediaVault.org

Posted on 2014/11/15 by arno Posted in Linux

Open Media Vault

OpenMediaVault.org (OMV) | WikiPedia | Download | Wiki | Forum | Virtualbox |

Plugins | Install OMV-extras plugin | Latest Updates |
Plugins Github | Developers |

OMV-extras.org | how-to install


Plugins

Deluge | Install howto | GitHub | Manual install
PXE-Boot | Forum |
Mumble | OMV-Extras |

Pooling | aufs | hddfs | userpost | userpost aufs vs hddfs |

Spotweb | Manual setup | api-call configuration


Howto / Documentation

Links to Guides and Tutorials | Problems?! | Step by step installation

Privileges and permissions explained under OMV
Upload Logfile via WebGUI on OpenMediaVault 1.x for Support
Increase Software RAID5 write speed


Custom tweaks

spotweb api calls | edit /etc/nginx/sites-enabled/openmediavault-nginx | location /spotweb { if ($uri !~ “api/”){ rewrite api/?$ /spotweb/index.php?page=newznabapi last; } }
change the foldername spotweb to the correct location (if there is no folder use / )

sabnzbd does not start in https mode | in file /etc/init.d/sabnzbd , comment-out # OPTIONS=”$OPTIONS –server $SERVER”


PXE

PXE linux | Sanitarium.net

configurations | PXEubuntu

forum | OMV | Openelec.PXE / NFS |

KB | Search for PXE |

Apps | Acronis | WinPE / Synology


Help

Web-console stuck in “The web server software is running but no content has been added, yet.”

Service apache2 stop
update-rc.d -f apache2 remove
service nginx restart


Projects

My-single-drive-silent-NAS-HP-T5740-thin-client-build

Linux | FreeNAS

Posted on 2014/07/13 by arno Posted in Linux, Services

FreeNAS.org | download

Documentation | Videos | Volume Management

 

 

 

Firewall Subnets

Posted on 2012/12/13 by arno Posted in Linux

Vodafone

http://as.robtex.com/as15480.html#bgp

KPN

 

t-prutsMobile

 

Linux WiFi access

Posted on 2012/05/18 by arno Posted in Linux

source: http://blog.sudonetworks.com/2010/03/configuring-wpawpa2-on-linux-clients.html

Configuring WPA/WPA2 for WiFi access on Linux Clients

Configuring a Linux WiFi client is not always as easy as with Windows or MAC OS X. In this first post I will show you how to configure your Linux client to associate with an access point. For this example, I use Ubuntu version 8.x. This procedure may vary from one Linux variant to another. The SSID I want to connect to is APN and my WiFi interface is wlan1. Here are the steps for WPA/WPA2 PSK (commands are in boldface):

1. Generate your WPA/WPA2 passphrase

~# wpa_passphrase [APN]
# reading passphrase from stdin
[enter yoursecretkey]
network={
ssid="APN"
#psk="yoursecretkey"
psk=9ae7a5f631ecc688db8dcc6bbf317b4a551b39e9ee9c20effb5393e342bd954b
}

2. Copy your wpa_passphrase

output to /etc/wpa_supplicant/wpa_supplicant.conf from the above step, it starts with “Network={” and ends with a closing curly brace “}”.
You may want delete the comment “#psk=yoursecretkey”

~# wpa_passphrase [APN] > /etc/wpa_supplicant/wpa_supplicant.conf
[enter yoursecretkey]
~# vi /etc/wpa_supplicant/wpa_supplicant.conf

3. Enable your wireless interface

~# ifconfig wlan1 up

4. Scan for existing WLANs or SSIDs

~# iwlist wlan1 scanning | grep -i essid

ESSID:”BELL078″
ESSID:”APN”
ESSID:”2mix”

You now have a confirmation your target SSID APN is detected.

5. Configure your wireless interface for your specific SSID

~# iwconfig wlan1 essid APN

6. Start WPA/WPA2 authentication

~# wpa_supplicant -i wlan1 -c /etc/wpa_supplicant/wpa_supplicant.conf
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:25:4b:0a:a3:f5 (SSID='APNSmallBang' freq=2437 MHz)
CTRL-EVENT-SCAN-RESULTS
Associated with 00:25:4b:0a:a3:f5
WPA: Key negotiation completed with 00:25:4b:0a:a3:f5 [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to 00:25:4b:0a:a3:f5 completed (auth) [id=0 id_str=]

7. Assign IP address via DHCP

Open a new shell to type the following command:

~# dhclient wlan1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan1/00:c0:ca:2f:94:0d
Sending on   LPF/wlan1/00:c0:ca:2f:94:0d
Sending on   Socket/fallback
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 172.16.22.5 from 172.16.22.1
DHCPREQUEST of 172.16.22.5 on wlan1 to 255.255.255.255 port 67
DHCPACK of 172.16.22.5 from 172.16.22.1
bound to 172.16.22.5 -- renewal in 33064 seconds.

8. Check if IP address assigned correctly

ifconfig wlan1

wlan1     Link encap:Ethernet  HWaddr 00:c0:ca:2f:94:0d
inet addr:172.16.22.5  Bcast:172.16.22.255  Mask:255.255.255.0
inet6 addr: fe80::2c0:caff:fe2f:940d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1092 (1.0 KB)  TX bytes:1580 (1.5 KB)

At this point, you should be connected to your AP

Linux

Scripting and Unix tools for windows

Posted on 2012/05/09 by arno Posted in Linux, Scripts

GNU utilities for Win32

unxutils at sourceforge | download

Python

Google’s Python Class

BASH

IF – http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html

https://wiki.archlinux.org/index.php/Bash#Shell_and_environment_variables

http://www.linuxtutorialblog.com/post/tutorial-conditions-in-bash-scripting-if-statements

http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/

http://www.64-bit.de/dokumentationen/howto/en/html/Bash-Prompt-HOWTO.html#toc5

http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/string-manipulation.html

AKW

http://www.grymoire.com/Unix/Awk.html

GREP

http://www.commandlinefu.com/commands/view/3877/grep-v-with-multiple-patterns.

GRUB

http://www.911cd.net/forums//index.php?showtopic=18838&st=20

Links

http://faculty.plattsburgh.edu/jan.plaza/computing/help/


Basic UNIX/Linux commands

Custom commands available on departmental Linux computers but not on 
Linux systems elsewhere have descriptions marked by an *asterisk. 
Notice that for some standard Unix/Linux commands, friendlier versions 
have been implemented; on departmental Linux computers the names of such 
custom commands end with a period.
------------------------------------------------------------------------------
INTERACTIVE FEATURES
TAB                         Command completion !!! USEFUL !!!
UPARROW                     Command history !!! USEFUL !!!

CTRL-C                      Interrupt/kill current process.

CTRL-D                      (at the beginning of the input line) end input.
CTRL-D CTRL-D               (in the middle of the input line) end input.
------------------------------------------------------------------------------
WILDCARDS AND DIRECTORIES USED IN COMMANDS
*                           Replaces any string of characters in a file name
                            except the initial dot.
?                           Replaces any single character in a file name
                            except the initial dot.
~                           The home directory of the current user.
~abcde001                   The home directory of the user abcde001.
..                          The parent directory.
.                           The present directory.
/                           The root directory

Example:
ls ~/files/csc221/*.txt
------------------------------------------------------------------------------
REDIRECTIONS AND PIPES

COMMAND < FILE              Take input from FILE instead of from the keybaord.
COMMAND > FILE              Put output of COMMAND to FILE
COMMAND >> FILE             Append the output of COMMAND to FILE COMMAND 2> FILE             Put error messages of COMMAND to FILE.
COMMAND 2>> FILE            Append error messages of COMMAND to FILE.
COMMAND > FILE1 2> FILE2    Put output and error messages in separate files.
COMMAND >& FILE             Put output and error messages in the same FILE.
COMMAND >>& FILE            Append output and error messages of COMMAND to FILE.

COMMAND1 | COMMAND2         Output of COMMAND1 becomes input for COMMAND2.
COMMAND | more              See the output of COMMAND page by page.
COMMAND | sort | more       See the output lines of COMMAND sorted and page by page.
------------------------------------------------------------------------------
ONLINE HELP

h                           *Custom help.
COMMAND --help | more       Basic help on a Unix COMMAND (for most commands).
COMMAND -h | more           Basic help on a Unix COMMAND (for some commands).
whatis COMMAND              One-line information on COMMAND.
man COMMAND                 Display the UNIX manual page on COMMAND.
info COMMAND                Info help on COMMAND.
xman                        Browser for Unix manual pages (under X-windows).
apropos KEYWORD | more      Find man pages relevant to COMMAND.
help COMMAND		    Help on a bash built-in COMMAND.
perldoc                     Perl documentation.
------------------------------------------------------------------------------
FILES AND DIRECTORIES

ls                          List contents of current directory.
ls -l                       List contents of current directory in a long form.
ls -a                       Same as ls but .* files are displayed as well.
ls -al                      Combination of ls -a and ls -l 
ls DIRECTORY                List contents of DIRECTORY (specified by a path).
ls SUBDIRECTORY             List contents of SUBDIRECTORY.
ls FILE(S)                  Check whether FILE exists (or what FILES exist).

pwd                         Display absolute path to present working directory.

mkdir DIRECTORY             Create DIRECTORY (i.e. a folder)

cd                          Change to your home directory.
cd ..                       Change to the parent directory.
cd SUBDIRECTORY             Change to SUBDIRECTORY.
cd DIRECTORY                Change to DIRECTORY (specified by a path).
cd -                        Change to the directory you were in previously.
cd. ARGUMENTS               *Same as cd followed by ls

cp FILE NEWFILE             Copy FILE to NEWFILE.
cp -r DIR NEWDIR            Copy DIR and all its contents to NEWDIR.
cp. ARGUMENTS *Same as cp -r but preserving file attributes.

mv FILE NAME                Rename FILE to new NAME.
mv DIR NAME                 Rename directory DIR to new NAME.
mv FILE DIR                 Move FILE into existing directory DIR.
swap FILE1 FILE2 *Swap contents of FILE1 and FILE2.
ln -s FILE LINK Create symbolic LINK (i.e. shortcut) to existing FILE.

quota                       Displays your disk quota.
quota.                      *Displays your disk quota and current disk usage.

rm FILE(S)                  Remove FILE(S).
rmdir DIRECTORY             Remove empty DIRECTORY.
rm -r DIRECTORY             Remove DIRECTORY and its entire contents.
rm -rf DIRECTORY            Same as rm -r but without asking for confirmations.
clean                       *Remove non-essential files, interactively 
clean -f                    *Remove non-essential files, without interaction.
junk FILE                   *Move FILE to ~/junk instead of removing it. 
find. FILE(S)               *Search current dir and its subdirs for FILE(S).
touch FILE                  Update modification date/time of FILE.
file FILE                   Find out the type of FILE.
gzip                        Compress or expand files.
zip                         Compress or expand files.
compress                    Compress or expand files.
tar                         Archive a directory into a file, or expand such a file.
targz DIRECTORY             *Pack DIRECTORY into archive file *.tgz 
untargz ARCHIVE.tgz         *Unpack *.tgz archive into a directory.

------------------------------------------------------------------------------
TEXT FILES

more FILE                   Display contents of FILE, page by page.
less FILE                   Display contents of FILE, page by page.
cat FILE                    Display a file. (For very short files.)
head FILE                   Display first lines of FILE.
tail FILE                   Display last lines of FILE.

pico FILE                   Edit FILE using a user-friendly editor. 
nano FILE                   Edit FILE using a user-friendly editor. 
kwrite FILE                 Edit FILE using a user-friendly editor under X windows.
gedit FILE                  Edit FILE using a user-friendly editor under X windows.
kate FILE                   Edit FILE using a user-friendly editor under X windows.
emacs FILE                  Edit FILE using a powerful editor.
vim FILE                    Edit FILE using a powerful editor with cryptic syntax.
aspell -c FILE              Check spelling in text-file FILE.
ispell FILE                 *Check spelling in text-file FILE.

cat FILE1 FILE2 > NEW       Append FILE1 and FILE2 creating new file NEW.
cat FILE1 >> FILE2          Append FILE1 at the end of FILE2.

sort FILE > NEWFILE         Sort lines of FILE alphabetically and put them in NEWFILE.

grep STRING FILE(S)         Display lines of FILE(S) which contain STRING.
grep. STRING FILE(S)        *Similar to that above, but better. 
wc FILE(S)                  Count characters, words and lines in FILE(S).
diff FILE1 FILE2 | more     Show differences between two versions of a file.

filter FILE NEWFILE         *Filter out strange characters from FILE.

COMMAND | cut -b 1-9,15     Remove sections from each line.
COMMAND | uniq              Omit repeated lines.
------------------------------------------------------------------------------
PRINTING

lpr FILE                    In Hawk153B or Redcay 141A, print FILE from a workstation. 
lprint1 FILE                *Print text-file on local printer; see help printing
lprint2 FILE                *Print text-file on local printer; see help printing

------------------------------------------------------------------------------
PROGRAMMING LANGUAGES
python                      Listener of Python 2.x programming language.
python3                     *Listener of Python 3.x programming language.
idle                        IDE for Ptyhon 2.x.
idle3                       *IDE for Ptyhon 3.x.
cc -g -Wall -o FILE FILE.c  Compile C source FILE.c into executable FILE.
gcc -g -Wall -o FILE FILE.c Compile C source FILE.c into executable FILE.
c++ -g -Wall -o FIL FIL.cxx Compile C++ source FIL.cxx into executable FIL.
g++ -g -Wall -o FIL FIL.cxx Compile C++ source FIL.cxx into executable FIL.
gdb EXECUTABLE              Start debugging a C/C++ program.
make FILE                   Compile and link C/C++ files specified in makefile
m                           *Same as make but directs messages to a log file.
c-work                      *Repeatedly edit-compile-run a C program.
javac CLASSNAME.java        Compile a Java program.
java CLASSNAME              Run a Java program.
javadoc CLASSNAME.java      Create an html documentation file for CLASSNAME.
appletviewer CLASSNAME      Run an applet.

scheme                      *Listener of Scheme programming language.
lisp                        *Listener of LISP programming language.
prolog                      *Listener of Prolog programming language.
------------------------------------------------------------------------------
INTERNET
lynx                        Web browser (for text-based terminals).
firefox                     Web browser.
konqueror                   Web browser.
BROWSER                     Browse the Internet (with one of the browsers above.
BROWSER FILE.html           Display a local html file.
BROWSER FILE.pdf            Display a local pdf file.

mutt                        Text-based e-mail manager.
pine                        Text-based e-mail manager (on some systems).

ssh HOST                    Open interactive session on HOST using secure shell.
sftp HOST                   Open sftp (secure file transfer) connection to HOST.
rsync ARGUMENTS             Synchronize directories on local and remote host.
------------------------------------------------------------------------------
UNDER X-WINDOWS
libreoffice                 LibreOffice productiveity suite
soffice                     OpenOffice productivity suite

acroread FILE.pdf           Display pdf FILE.pdf
epdfviewer FILE.pdf         Display pdf FILE.pdf
okular FILE                 Display FILE (pdf, postscript, ...)

xterm                       A shell window
konsole                     A better shell window
xcalc                       A calculator
xclock                      A clock
xeyes                       They watch you work and report to the Boss :-)
------------------------------------------------------------------------------
RESET

xfwm4                       Reset the windows manager on Lab and MiniLab computers.
Ctrl-Alt-Backspace          Restart the X-server. (You may need to do that twice.)
clear                       Clear shell window.
xrefresh                    Refresh X-windows.
reset                       *Reset session.
setup-account               *Set up or reset your account (Dr. Plaza's customizations)
------------------------------------------------------------------------------
MISCELLANEOUS

exit                        Exit from any shell.
logout                      Exit from the login shell and terminate session.

svn                         Version control system. 

date                        Display date and time.
------------------------------------------------------------------------------
COURSEWORK IN DR. PLAZA'S COURSES
Commands and directory names related to csc219 have 219 as a suffix. 
By changing the suffix you will obtain commands for other courses.
ls $csc319                  *List files related to csc319. 
cd $csc319                  *change into instructor's public directory for csc319. 
cp $csc319/FILE .           *Copy FILE related to csc319 to the current directory
cp -r $csc319/SUBDIR .      *Copy SUBDIR of csc319 to the current directory.
submit                      *Submit a directory with files for an assignment. 
grades                      *See your grades. Used in some courses only.
------------------------------------------------------------------------------
PROCESS CONTROL
Notes: A process is a run of a program; 
       One program can be used to create many concurrent processes.
       A job may consist of several processes with pipes and redirections.
       Processes are managed by the kernel. 
       Jobs are managed by the shell.

CTRL-Z                      Suspend current foreground process.
fg                          Bring job suspended by CTRL-Z to the foreground.
bg JOB Restart suspended JOb in the background.
ps                          List processes.
ps.                         *List processes.
jobs                        List current jobs (A job may involve many processes).
kill PROCESS                Kill PROCESS (however some processes may resist).
ctrl-C                      Kill the foreground process (but it may resist).
kill -9 PROCESS             Kill PROCESS (no process can resist.)
kill. PROCESS               *Kill PROCESS; same as kill -9.
COMMAND &                   Run COMMAND in the background. 
------------------------------------------------------------------------------
ENVIRONMENT VARIABLES IN BASH
env | sort | more           List all the environment variables with values.
echo $VARIABLE List the value of VARIABLE.
unset VARIABLE              Remove VARIABLE. export VARIABLE=VALUE Create environment variable VARIABLE and set to VALUE.
------------------------------------------------------------------------------

Linux | servers

Posted on 2012/03/19 by arno Posted in Linux, Services

AirVideo Server

http://www.inmethod.com/forum/posts/list/1856.page

http://wiki.birth-online.de/know-how/hardware/apple-iphone/airvideo-server-linux

http://www.inmethod.com/forum/posts/list/120/34.page#5252

Icecast

http://www.icecast.org/download.php

http://boomshadow.net/tech/installs/icecast-installation/

http://www.yolinux.com/TUTORIALS/LinuxTutorialAudioStreaming.html

Growl

Growl | wiki

Mac OS X | google code

Windows | google code

Linux | Github

iPhone | Prowl | howl | Boxcar

Android | NotifyMyAndroid | Squealer

WP7 | Toasty

Samba

Anonymous shares

https://micheljansen.org/blog/entry/182

Symlinks

http://forums.whirlpool.net.au/archive/1403035

Links

http://en.wikipedia.org/wiki/List_of_UPnP_AV_media_servers_and_clients

Linux | servers games

Posted on 2012/03/19 by arno Posted in Linux

Unreal tournament

http://en.wikipedia.org/wiki/Unreal_Tournament

http://www.r3uk.com/index.php/home/38-software/17-setting-up-a-dedicated-linux-unreal-tournament-server

http://www.dragonbe.be/index.php?module=unreal_tournament

http://ut.congiman.com/settingup.html

Script – Repositories

Posted on 2012/03/17 by arno Posted in Scripts

Repositories

epel – Extra Packages for Enterprise Linux

source: http://blog.miralinux.net/files/linux/local/install/yumrepo.epel.sh

[include]../../../files/linux/local/install/yumrepo.epel.sh[/include]

firewall builder

[include]../../../files/linux/local/install/yumrepo.fwbuilder.sh[/include]

rpmforge

http://blog.miralinux.net/files/linux/local/install/yumrepo.rpmforge.sh

[include]../../../files/linux/local/install/yumrepo.rpmforge.sh[/include]

webmin

http://blog.miralinux.net/files/linux/local/install/yumrepo.webmin.sh

[include]../../../files/linux/local/install/yumrepo.webmin.sh[/include]

virtualbox

http://blog.miralinux.net/files/linux/local/install/yumrepo.virtualbox.sh

[include]../../../files/linux/local/install/yumrepo.virtualbox.sh[/include]

pkgbox

http://blog.miralinux.net/files/linux/local/install/yumrepo.pkgbox.sh

[include]../../../files/linux/local/install/yumrepo.pkgbox.sh[/include]

Script – aliases

Posted on 2012/01/29 by arno Posted in Scripts

Aliases

source: http://blog.miralinux.net/files/linux/scripts/aliases

[include]../../../files/linux/scripts/aliases[/include]

Script: mkmotd – create motd

Posted on 2012/01/27 by arno Posted in Scripts

Create message of the day

mkmotd.sh

The contents of /etc/motd are displayed by login(1) after a successful login but just before it executes the login shell.

source: http://blog.miralinux.net/files/linux/local/bin/mkmotd.sh

[include]../../../files/linux/local/bin/mkmotd.sh[/include]

Creates an output like:

Linux hostname.domain.tld 2.6.0-120.3.2.el6.i686 #1 SMP Tue Mar 6 21:21:22 GMT 2012 i686 i686 i386 GNU/Linux
**************************************************************
* Welcome @ hostname.domain.tld
*-------------------------------------------------------------
* Intel(R) Xeon(R) CPU            3040  @ 1.86GHz
* 7984 Mb memory
*-------------------------------------------------------------
* /dev/sda 42°C [3.00TB] Western Digital #WD-W29345798346#
* /dev/sdb 43°C [3.00TB] Western Digital #WD-W34208573245#
* /dev/sdc 50°C [2.00TB] Hitachi Deskstar #JK134825798342#
* /dev/sdd 49°C [2.00TB] Hitachi Deskstar #JK348957345334#
* /dev/sde 00°C [64.0GB] JMicron based #039485739845#
* /dev/sdf 41°C [2.00TB] Western Digital #WD-WCAZ49573453#
* /dev/sdg 40°C [3.00TB] Western Digital #WD-WMA394759834#
*-------------------------------------------------------------
* inet (00:00:00:00:00:00) lo   127.0.0.1/8 scope host
* inet (00:ff:00:ff:00:81) eth0 192.168.41.10/24 brd 192.168.41.255
*-------------------------------------------------------------
* update(17:04 26-07-2012)                Copyright 1973/2012
**************************************************************

changelog:

201207, added harddisk temperatures, timestamp and changed layout ethernet addresses.

201206, added reading of hardwareinfo, harddrives, raid, network information automaticly.

201203, created a script that outputs text, hostname and year to the /etc/motd file.

Script – Rescan Linux SCSI bus

Posted on 2012/01/26 by arno Posted in Scripts

Rescan Linux SCSI bus

using the scsi add-single-device mechanism

source: http://bash.cyberciti.biz/diskadmin/rescan-linux-scsi-bus/
source: http://blog.miralinux.net/files/linux/local/bin/rescan-scsi-bus.sh

[include]../../../files/linux/local/bin/rescan-scsi-bus.sh[/include]

Firewall – Script

Posted on 2012/01/26 by arno Posted in Scripts

Startup script Firewall (fwbuilder)

source: http://blog.miralinux.net/files/linux/local/etc/init.d/firewall

[include]../../../files/linux/local/etc/init.d/firewall[/include]

PFsense

http://www.smallnetbuilder.com/security/security-howto/31433-build-your-own-utm-with-pfsense-part-1

Script – samba

Posted on 2012/01/26 by arno Posted in Scripts

Script samba (smbd & nmbd in one)

source: http://blog.miralinux.net/files/linux/local/etc/init.d/samba

[include]../../../files/linux/local/etc/init.d/samba[/include]

Script – pptp VPN server

Posted on 2012/01/26 by arno Posted in Scripts

Startup script VPN Server (pptpd daemon)

source: http://blog.miralinux.net/files/linux/local/etc/init.d/pptpd

[include]../../../files/linux/local/etc/init.d/pptpd[/include]

Firewall Linux iptables

Posted on 2011/12/30 by arno Posted in Linux

Tools

http://ports.my-addr.com/tcp_port-udp_port-application-and-description.php
http://www.subnetonline.com/pages/subnet-calculators/ipv4-to-ipv6-converter.php

pf

http://pfsense.org

iptables

http://serverfault.com/questions/244036/iptables-rules-to-allow-l2tp-ipsec-vpn-behind-firewall

Custom applications

iOS: Understanding Notifications

Links

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables

http://netfilter.org/ (iptables)

www.linuxhomenetworking.com – Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables

http://lindesk.com/2007/04/internet-connection-sharing-using-iptables/

Linux Advanced Routing & Traffic Control HOWTO – Classifying packets with filters

L7-filter – Application Layer Packet Classifier for Linux

wiki-Deep_packet_inspection

Intel AMT Manageability Ports

Speedguide – Port reference

Linux tips

Posted on 2011/09/21 by arno Posted in Linux

Terminal

tmux – Cheatsheet | Shortcuts (screen like program) – Hawkhost

tmux Tutorial | Split terminal window easily | Split Tutorial – Shortcuts

Sync – rsync / csync / etc

http://everythinglinux.org/rsync/
http://linux.about.com/library/cmd/blcmdl1_rsync.htm

http://www.csync.org/
http://www.openlogic.com/wazi/bid/188061/Unison-Makes-Two-Way-File-Sync-Simple
http://anouar.im/2011/12/how-to-backup-with-rsync-tar-gpg-on-osx.html

Assigning multiple addresses

IP Help – http://linux-ip.net/html/tools-ip-address.html

Using the following command, we can configure Virtual IPs in the Linux box at run-time without re-booting the machine or re-starting the network.

/sbin/ip addr add 172.19.1.2/32 dev eth0
/sbin/ip addr add 172.19.1.3/32 dev eth0

The same interfaces can be made down by using the following command.

/sbin/ip addr del 172.19.1.2/32 dev eth0
/sbin/ip addr del 172.19.1.3/32 dev eth0

TCPDUMP Command Examples

Packet Analyzer: 15 TCPDUMP Command Examples

Linux CentOS 6.x

Posted on 2011/08/30 by arno Posted in CentOS, Linux

Repositories

RPM packages for Red Hat Enterprise Linux (RPMforge) | NTFS support# yum install fuse-ntfs-3g |

Extra Packages for Enterprise Linux (EPEL) | collectd | Icecast |

pkgbox | collectd plugins |

CentOS 6.x mount NTFS file systems

source: http://www.cyberciti.biz/faq/redhat-fedora-enable-ntfs3g-support/

1. open the terminal window with the root account.

2. setup rpmforge for centos 6 to your system:

http://xmodulo.com/2013/01/how-to-set-up-rpmforge-repoforge-repository-on-centos.html

3. just install/update the package fuse-ntfs-3g:

# yum update fuse-ntfs-3g

CentOS 6.x howtos

Virtualization With Xen On CentOS 6.2 (x86_64)

PXE_setup

HowToForge.com – Create A Kickstart File | Linuxmoz.com – Kickstartguide |

Create a LiveDVD/USB from custom build Centos 6.2

CentOS Apple Time Machine

Collectd

Clone Disk

OpenVPN

https://safesrv.net/install-openvpn-on-centos/

http://www.guizmovpn.com/index.php?option=com_content&view=article&id=3&Itemid=3

CentOS 6.x Kickstart

Append the kickstart file location to the boot parameters.

linux initrd=initrd.img ks=http://domain.tld/ks-type-v1.cfg

http://www.howtoforge.com/how-to-create-a-kickstart-file-for-centos-fedora-redhat-rhel

CentOS 6.x disable IPv6

#/etc/sysctl.conf
# disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1

Reload the sysctl configuration:

~# sysctl -p

CentOS 6.x disable APIPA

#/etc/sysconfig/network
# disable APIPA
NOZEROCONF=yes

service network restart

CentOS 6.x disable SELINUX

at installation add “selinux=0” to the installation options

Gnome keyring DISABLE!

source: http://www.linuxquestions.org/questions/linux-software-2/how-to-disable-gnome-keyring-361545/

# killall gnome-keyring-manager
edit /etc/gconf/schemas/gnome-keyring.schemas as root,
and search for “TRUE” in text, there should be one for ssh and one for pkcs,
substitute “TRUE” with “FALSE” and ur done..

Gnome’s Keyring – Remove Password File

source: http://essayboard.com/2009/06/24/gnomes-keyring-tip-how-to-disable-keyring-or-remove-password-file/

Some people complain how Gnome’s Keyring keeps asking them for password whenever they try to get connect to wireless router.

Here is a trick of how to stop Keyring from bothering you for good.
Go to System > Preferences > Startup Applications, disable the check box “Gnome Keyring Daemon.”
That’s it, everything should go as plan if you done this correctly!
I tested this trick on Fedora Core 11 and Ubuntu 9.04, both Linux distribution work fine with this trick.

How to reset Keyring’s password if you forgot it?
“cd ~/.gnome2/keyrings/“  (without the double quotes), then you have to delete login.keyring or any other file that has unwanted Keyring’s encrypted passwords that you want to get rid of.

Kickstart

http://www.centos.org/docs/5/html/Installation_Guide-en-US/ch-kickstart2.html

http://blog.crazytje.be/create-a-kickstart-netinstall-with-centos/

http://smorgasbork.com/component/content/article/35-linux/58-building-a-custom-centos-5-kickstart-disc-part-1

http://www.cyberciti.biz/faq/kvm-install-centos-redhat-using-kickstart-ks-cfg/

Services

Linux 101: A comprehensive list of available Linux services

http://www.cyberciti.biz/faq/linux-default-services-which-are-enabled-at-boot/

Firefox Sync Server | https://wiki.mozilla.org/QA/Sync/Sync_Server_Install_CentOS

Cron

yum-cron (autoupdate)

yum install yum-cron ; vi /etc/sysconfig/yum-cron ; chkconfig yum-cron on ; service yum-cron start

YUM_PARAMETER=”-x kernel*” | mailto=foo@bar.com

Daemons

Deluge – bittorent (web) client

Deluge | CentOS howto

Transmission – bittorent (web) client

Site – http://www.transmissionbt.com | Wiki | Config | configfiles

Sickbeard – TVshow manager

Site – http://sickbeard.com |

sabnzbd – nzb download web client

Site – http://sabnzbd.org | command-line | folders | CentOS howto

Linux

Linux – NAS tools

Posted on 2011/07/30 by arno Posted in CentOS, Linux

rSync

http://dailycupoftech.com/windows-backup-with-rsync-and-freenas/

torrent client

http://markus.revti.com/2009/11/installing-libtorrent-and-rtorrent-on-linux-centos/

http://libtorrent.rakshasa.no/

http://rtwi.jmk.hu/

nzbget daemons

http://nzbget.sourceforge.net/

http://www.techsono.com/supernzb/screenshot.html

http://www.techsono.com/usenet/faqs/nzb-o-matic-plus-nomp

Linux

Scripts – Linux startup, custom, aliaseses

Posted on 2011/07/29 by arno Posted in Linux, Scripts

Howto

Creating Custom init Scripts

BASH Programming – Introduction HOW-TO

Scripts

Script – Repositories

Script – aliases

Script: mkmotd – create motd

Scripts – init.d

Firewall – Script

Script – samba

Script – pptp VPN server

Linux Ubuntu 10.04 first steps

Posted on 2011/05/01 by arno Posted in Linux, Uncategorized

Introduction to fstab

http://www.techsupportalert.com/content/ubuntu-tips-and-tricks.htm#Customize-the-Panel

Configure resolution

https://wiki.ubuntu.com/X/Config/Resolution

http://www.ubuntugeek.com/how-change-display-resolution-settings-using-xrandr.html

http://www.thinkwiki.org/wiki/Xorg_RandR_1.2

http://jamesmcdonald.id.au/it-tips/getting-higher-screen-resolution-for-a-ubuntu-11-04-guest-in-virtual-box

 

disable Gnome Keyring

Gnome Keyring is a small utility to authorize applications before opening them. But sometimes it feels really annoying when it starts to prompt to enter keyring password every time when you open some application. So this small tutorial teaches you eliminate the need of entering keyring password over and over again.

This method will work both for keyring with a password being set at some point of time by you and as well as default password being set without your knowledge. Follow the steps:

Step 1. If your keyring password is different from your login password, do this before you proceed to step 2, else skip this step.

a) Open your terminal and from navigate to:
cd .gnome2/keyrings/

b) Make sure there is a file called “default.keyring” in the directory by typing:
ls -l

c) Now remove the file by typing the below command:
rm default.keyring

Step 2: Open your terminal and follow these steps:

– Install libpam-keyring:
sudo apt-get install libpam-keyring

– Now to modify gdm login:
sudo gedit /etc/pam.d/gdm

– Now it will open an file, add this line at the end:
@include common-pamkeyring

That’s it. Now restart your Ubuntu and open any app that used to prompt you to enter keyring password. If you had done the above steps properly, it will now prompt you to set a new password. If you want to enter a new password, better set the same password as of your login password or just leave it empty if you totally want to get rid of keyring.

Linux
Next Page »
  • Login
  • Mother of all Portals
  • .Handy .Handig
  • Links – wikis – wikies

Archives

  • June 2022
  • October 2021
  • June 2021
  • September 2016
  • April 2016
  • March 2016
  • November 2014
  • September 2014
  • August 2014
  • July 2014
  • April 2014
  • March 2014
  • November 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • February 2013
  • December 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
CyberChimps ©2025