» Embedding Network Camera Video on a Website Network Camera Critic. I’ve been asked many times, how do I embed the video from my camera on a public web page. It seems like it would be so simple, you can connect to your camera from a browser, how hard can it be to take that video and put it on a web page so it works with just about any browser. Here’s the problem, most network cameras spit out RTSP (Real Time Streaming Protocol), the standard for surveillance cameras but website don’t understand that protocol, so you have to convert it to a protocol acceptable to most web browsers and that’s RTMP (Real Time Messaging Protocol).
There are ways to make your camera display on a website, but consider that many require ActiveX controls making it only work with Internet Explorer, then you have local PC permission issues and putting your camara directly on a website just doesn’t work for a public website. The other consideration is how fast your internet upload speed is. You may have to limit resolution and frame rate to suit your internet connection speed. How To : Turn the Raspberry Pi Into a Shaping WiFi Router » The Rantings and Ravings of a Madman. I recently got my Raspberry Pi to act as a WiFi Router with shaping by using hostapd, tc, and iptables together to broadcast as an Access Point, apply shaping rules, and apply packet marking respectively. This can be done on any device with 2 NICs but this may come in useful for anyone using the Pi as a router but doesn’t want people using all the bandwidth.
I will be going through the iptables and tc configuration in this post, but I won’t go through the hostapd setup as that was the same as part 3 of my Raspi WiFi Access point guide. tc is the program that is in charge of setting up the shaping rules. Firstly, we will setup the default rule for the interface, which is wlan0 in this instance. These 2 commands sets the default policy on wlan0 to shape everyone’s download speed to 64 kilobytes a second. Next, we’ll setup another class to shape certain addresses to a higher speed. Once that class is setup, we’ll need to setup iptables to mark the specific packets we want to shape as such. Usb - Using the Raspberry Pi as a Router. I've been using my model B as a router with traffic shaping, using just the one Ethernet port it comes with. Here's a quick-and-dirty on how: Enable IPv4 Forwarding, so your Pi acts as a router by forwarding any traffic it receivesConfigure your Pi with static network configuration so it will not be influenced by DHCP changes suggested below.
Here are the contents of my /etc/network/interfaces as reference: # pi@flux:/home/pi/projects/adsl/rrdlogger (master *) # cat /etc/network/interfaces auto lo iface lo inet loopback #iface eth0 inet dhcp iface eth0 inet static address 192.168.1.1 netemask 255.255.255.0 gateway 192.168.1.254 # IP of my ADSL router box allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp Now change your network's DHCP settings such that the default gateway/router is your Pi.
This likely means changing the settings on your existing ADSL router box. In my example above, my Pi's IP address is 192.168.1.1. How to : Configure Ubuntu as a Router ~ Your Own Linux..! Introduction If you are having two network interface cards or some other component that connects you to the internet along with a network interface card installed in your ubuntu system, it can be transformed into an immensely powerful router. You can establish basic NAT (Network Address Translation), activate port forwarding, form a proxy, and prioritize traffic observed by your system so that your downloading stuff do not intervene with gaming. This article will explicate setting up your ubuntu system as a router which can later be configured as a firewall with prior knowledge of 'IPTables'.
The resulting setup will help you to control traffic over ports and make your system less vulnerable to security breaches. Gateway Setup Pre-requisites:Computer with Ubuntu OSTwo network cardsInternet connectivityKnowledge of iptables We will need two network cards installed in the computer. Host A (192.168.1.8) ⇐⇒ Eth1 ⇐⇒ Ubuntu Gateway ⇐⇒ Eth0 ⇐⇒ Host B (10.10.6.205) In summary: 1. 2. 3. How to Create a Network Share Via Samba Via CLI (Command-line interface/Linux Terminal) - Uncomplicated, Simple and Brief Way! In this text, I teach how to create a network share via Samba using the CLI (Command-line interface/Linux Terminal) in an uncomplicated, simple and brief way targeting Windows users. All commands must be done as root (precede each command with 'sudo' or use 'sudo su'). Install Samba sudo apt-get update sudo apt-get install sambaSet a password for your user in Samba sudo smbpasswd -a <user_name>Note: Samba uses a separate set of passwords than the standard Linux system accounts (stored in /etc/samba/smbpasswd), so you'll need to create a Samba password for yourself.
This tutorial implies that you will use your own user and it does not cover situations involving other users passwords, groups, etc...Tip1: Use the password for your own user to facilitate.Tip2: Remember that your user must have permission to write and edit the folder you want to share. Howto: Backup and restore your system!
Systems Architect » Automated backups to Google Drive with PHP API. Where do you keep backups? I guess that depends on what do you backup. You might have a very clever answer for a business critical data but what about less important content? The best example would be a private blog. It will hurt if you lose your data but the odds are you’re not willing to pay for any reliable storage. If you care enough to backup it’s going to be to another server (if you own one), your own laptop or external hard drive. Press “Create Project” button and select services you want to use with the project.
Once the service is enabled click on API Access from the left hand side navigation. Click on “Create an OAuth 2.0 client ID” button. Press “Create client ID” button. Now your service account it created. There is one important thing you need to be aware of. If for some reason you need to have files uploaded directly to your account you can’t use the service account. Now when your API project is created you can download an example script I prepared for this post. <? CronHowto. Cron is a system daemon used to execute desired tasks (in the background) at designated times. A crontab file is a simple text file containing a list of commands meant to be run at specified times.
It is edited using the crontab command. The commands in the crontab file (and their run times) are checked by the cron daemon, which executes them in the system background. Each user (including root) has a crontab file. The cron daemon checks a user's crontab file regardless of whether the user is actually logged into the system or not. To display the on-line help for crontab enter: man crontab or further information is available from the OpenGroup specifications. On Gnome-based Ubuntu systems Gnome Scheduled tasks tool (from the gnome-schedule package) in Applications --> System Tools provides a graphical interface with prompting for using Cron.
Sudo apt-get install gnome-schedule in a terminal. crontab -e Edit the crontab using the format described in the next sections. Man 5 crontab sudo crontab -e. Shell script to backup all of your SVN repositories | www.hossainkhan.info. Quick Setup - SABnzbd. Windows & OSX Download the latest build listed on our download page. For Windows we suggest the installer exe, for OSX we suggest the dmg.
Ubuntu Linux (Releases after 9.04 Jaunty) Install from Apt: sudo apt-get install sabnzbdplus If apt does not offer a recent enough version, see here for details on how to install from JCFP's unofficial repository. This method may also work for most other distributions using apt. Other Unix/Linux distributions Get the latest Python Source Zip listed on our download page. Windows Run the installer, follow the prompts. Double-click the .dmg, drag the .app to Applications.
Ubuntu Linux You already installed it via apt. For all operating systems, to upgrade SABnzbd simply shut down SABnzbd and re-install. On all operating systems, on first-launch of SABnzbd you'll be presented with our quick-start wizard, which will hopefully get you up and running as soon as possible. Language Selection Theme Selection Access Options Server Setup Index Site Options Restart.
Executing Linux / UNIX commands from web page. A Web interfaces is almost used by routers and many other sophisticated programs such as webmin. However, why go for a web interface or execute commands from web page? For automation purpose, you need to use a web interfaces. Another advantage is you can access your web-based interface from any computer, running any operating system, anytime in the world :D In this first part, you will see how to use simple bash (shell) script from web page.
In order to execute commands or shell script from a webpage you need: CGI support with Apache / lighttpd web server.I'm assuming that you have a properly configured web server. You need to store program in cgi-bin directory. . $ cd /usr/lib/cgi-bin $ vi first.cgi first.cgi code listing: #! Save and close the file. . $ chmod +x first.cgi Fire up your web browser and test the script, for example type url or You need to send headers, first three lines are almost same for all your script: #!
#! Setting up Apache HTTP Server with SSL support on Ubuntu/Debian | Software in a bottle. I need to set up a server to host our subversion in a secured fashion and to make it available on the Web. Therefore, I first install the Apache HTTP Server (httpd) and configure it to allow for SSL connections only. If there are mistakes in this post, please comment. I’m eager to improve it and learn. It took me quite some time to find some proper documentation on how to configure Apache2 on Ubuntu/Debian.
I came across that interesting page on the apache Web site that pointed me to a README file: /usr/share/doc/apache2/README.Debian.gz that contains information on how to configure Apache2 on Debian. Step 1: Install the Apache2 package There is an Apache httpd package readily available for aptitude under the name apache2. To test that the package was properly installed, open the following address in your browser: It works! Step 2: Configure httpd to support SSL The module mod_ssl ( provides SSL/TLS support to httpd. How to Configure Apache Web Server on Linux : Tux Tweaks.
I've shown previously how to install a LAMP server in Ubuntu. If the purpose of your LAMP installation was to set up your own web development environment, then you may want to do some further configuration to your system. This Apache howto is not intended to cover Apache configuration in depth. This is just some basic configuration to help you set up a web development environment in Linux. For more information, see the official Apache documentation. By default, Apache is set up for your web site's files to be in the /var/www directory.
This is fine if you only want to work on one website and access it through I prefer to build websites in a directory under my own ID. Creating a Web Development Directory Lets start off by creating a folder structure for the development environment. Affiliate Link cd mkdir webdev cd webdev mkdir site1 site2 We now have a directory called webdev under our home directory. Create Some Test Files cd ~/webdev/site1 echo 'Site1 works! ' Related. How to Install And Configure Apache In Ubuntu. Transparent Multi-hop SSH. It is often necessary to SSH through one host to get to another host. This article will walk you through configuring SSH so that the intermediate step is transparent. Example Network For our example, we're going to use the network pictured below: From your computer at home you wish to log in to the host called 'tongariro' on the LAN at your office.
All connections into the office LAN must pass through the firewall host 'aoraki'. The firewall host will only accept connections from the bastion host 'ruapehu'. Doing It Manually These are the steps we plan to automate: To connect to 'tongariro' you must first ssh to 'ruapehu'. Ssh -A ruapehu.example.com Now that you're logged in to a shell prompt on 'ruapehu', you'll need to connect to 'aoraki'. Ssh -A aoraki Finally, you can connect to the target host 'tongariro': ssh -A tongariro Quick and Dirty Automation The manual steps outlined above use three chained SSH connections to pass through two intermediate hosts. A Better Way gedit ~/.ssh/config. How To Install Linux Kernel 3.11 RC2 On Ubuntu, Linux Mint, Debian & Derivates. Hello Linux Geeksters. The second release candidate of Linux Kernel 3.11 has been released today. It brings some new features since the first RC version.
For more information, see the mailing lists. In this article I will show you how to install the Linux Kernel 3.11 RC2 on Ubuntu 13.10 Saucy Salamander, Ubuntu 13.04 Raring Ringtail, Ubuntu 12.10 Quantal Quetzal, Ubuntu 12.04 Precise Pangolin, Linux Mint 16 Petra, Linux Mint 15 Olivia, Linux Mint 14 Nadia, Linux Mint 13 Maya, Debian Jessie, Debian Sid, Debian Wheezy, Debian Squeeze, Deepin, CrunchBang OS and many other Debian / Ubuntu derivates. Instructions for 32 bit systems. Install Linux Kernel 3.11 RC2: $ sudo dpkg -i *.deb Instructions for 64 bit systems. Related Posts Share and Enjoy. Linux and Open source How to configure postfix as smtp relay for Gmail on Archlinux. Original article by AlexioBash, posted in Italian on the website It can be very convenient, for those who use services such as zoneminder, rtorrent, etc., to have a “Gmail Relay” to send maisl from your Gmail account.
In this guide we will see how to configure postfix to send email with our account firstname.lastname@example.org. The guide is based on ArchLinux, but apart the installation of the packages, the configuration is the same also on other distributions such as Debian or Centos. As first thing we need to install the packages with : Once the installation is complete go into the directory where postfix keep its configuration files : And do a copy of the default configuration, just to be sure. Now open the file main.cf with your favorite editor and delete everything (with vi just type 1000 dd and copy this configuration: Save the file as main.cf and don’t forget to substitute myrealdomain.com with your real domain name, for me this would be linuxaria.com. Guess what ? Using a dedicated Hard Drive.
On many installs you may wish to dedicate a hard drive or partition for Zoneminder events. There are many reasons why you may want to change the storage location - security, data segregation, preventing encroachment onto OS partition by zoneminder etc. It's not terribly difficult to do, but may be non-obvious to the untaught so here's a brief guide. Some commands here are based on Debian/Ubuntu installs 1. Become root or "sudo -s" to gain root privs. 2. 3. Note this new partition can be a local drive, raid partition, lvm/md device, external NAS, SAN, NFS share or SMB share. 4. If you wish to copy the data across, MOVE the events and images directories to /newdrive (Note this will take a long time on systems with many events). If you don't wish to preserve the data, it is MUCH faster to simply delete or rename the original events and images dirs and create new directories in /newdrive and link to them from the original locations.
Eg: mkdir /newdrive/events or in some cases, Install zoneminder (1.25) on ubuntu (12.04) CustomXSession.