The ipfire firewall is built on a linux system running as a router
and firewall, similar to ipcop. Ipfire is a fork of the ipcop firewall.
history is here
http://en.wikipedia.org/wiki/IPFire
Installing
ipfire for use on the raspberry pi is covered elsewhere, this covers
notes relative to bringing up the firewall options that are useful on
ipcop on ipfire.
1.
port change 444 to other.
On ipcop you use setreservedports to change 445 to another.
On ipfire you have to edit two files in the apache config, and restart apache:
ipfire listens by default on port 81 (non ssl ) and 444 (ssl). the ports are listed in
/etc/httpd/conf/listen.conf Edit them as needed and save.
The server hosts are defined in
/etc/httpd/conf/vhosts.d/ipfire-interface-ssl.conf
/etc/httpd/conf/vhosts.d/ipfire-interface.conf
the ssl one has the definition for 444 (default) and the other defines 81. Both listen and these file have to be changed.
2.
set up ipfire box as an openvpn client (use the ipfire pi as a field hot spot router, for example)
http://forum.ipfire.org/index.php?topic=8056.0
quoting entry:
I'm currently struggeling to get my IPFire server working as OpenVPN
client. The machine is set up inside a rather closed-down network and I
would like to connect to an external server using OpenVPN.
However,
all the help I can find either helps one configure the IPFire machine
as an OpenVPN server or the help for a client configuration is rather
limited.
Can anyone please help me out (or point me in the right direction) to get my IPFire machine working as an OpenVPN client?
Thanks in advance.
SOLVED: After running openvpn with the created configuration file:
/usr/bin/openvpn --config /var/ipfire/ovpn/client.ovpn
it created the network "tun0"
All I needed to do after that (I have a 10.13.0.0 255.255.0.0 network) is:
iptables -t nat -A POSTROUTING -s 10.13.0.0/16 -o tun0 -j MASQUERADE
to make sure all the traffic on my network (starting with a 10.13 IP address) goes through the tun0 interface
Wednesday, November 6, 2013
Friday, November 1, 2013
Bad google (Setting up Gregarius online RSS aggregator to replace iGoogle)
I used iGoogle for reading a variety of page feeds, otherwise know as RSS feeds and now it is gone. I didn't use the other features, which resemble apps on Android, or plugins in Chrome. I don't think they realized how useful the rss aggregation was when they obsoleted it.
I could go to this page from any device and have my own sites all summarized with one liner entries, which was updated with refreshes. The Google backend handled all the rss reading and formatting, not my local device, so the only heavy lifting required by the device was when I clicked thru to a page to read it.
I found this aggregator and struggled to get it set up on linux, there were a couple of vague references I had to do a bit of experimenting with to get going.
the setup I elected is to run it on a LAMP (Linux, Apache, MySql, PHP) server. It can be run with apache and php standalone on a local device.
it lacks individual user support near as I can tell, so you get a single list of pages batched up from this server. At least I have a central place for my pasteup and i can export the web page from my local system to any of my devices.
These are notes on how to set up the system filling in the gaps I found in the instructions. I have found a couple of nice pages explaining the setup, but they suffered in assuming I knew what they were talking about in setting up the database and a few other details.
Gregarius is a bit of a puzzle to set up. It can be downloaded here gregarius
there are some assumptions which for some are maybe simple for some, but baffled me a bit.
here is a tutorial for setting up the thing
http://www.phpbuilder.com/columns/ian_gilfillan20060103.php3
Problems:
not obvious is the database creation.
I used mysql, and the setups were pretty plain for that. However they asked for username and password in the install script, and also for admin password.
The install can be run via a gui or you can create a database init yourself manually. If you are running by gui a file with the dbinnit is created for download to your apache server. Once you have that, and install it in the rss file you can create the sql with another script, install.php
Turns out the admin password and account asked for in the gui are for the mysql so it can encode the mysql output with proper passwords for the setup it outputs.
A script called schema.php has to then be run to output a sql configured for your database, account system and tables. That file can then run and create the database and configure it.
another problem is some of the weblinks don't pass back to the rss pages on apache.
Individual feeds when you access it w/o any apache work go thru to the target sites, but the "group" jumps which the aggregator creates result in a 404. Searching for that. Looks like it is pointed at /rss (my sublocation on apache) and the apache isn't redirecting.
This may be the fix for that (from link above)
After you've created some feeds and you attempt to view them (below), you may find that you are getting 404 errors. The most likely reason for this is that your server is not running the Apache mod-rewrite module, so the short url's Gregarius uses by default are not being accepted. Simply go to Admin/Config and change the rss.output.usemodrewrite setting (second from the bottom) to false (screenshot).
I could go to this page from any device and have my own sites all summarized with one liner entries, which was updated with refreshes. The Google backend handled all the rss reading and formatting, not my local device, so the only heavy lifting required by the device was when I clicked thru to a page to read it.
I found this aggregator and struggled to get it set up on linux, there were a couple of vague references I had to do a bit of experimenting with to get going.
the setup I elected is to run it on a LAMP (Linux, Apache, MySql, PHP) server. It can be run with apache and php standalone on a local device.
it lacks individual user support near as I can tell, so you get a single list of pages batched up from this server. At least I have a central place for my pasteup and i can export the web page from my local system to any of my devices.
These are notes on how to set up the system filling in the gaps I found in the instructions. I have found a couple of nice pages explaining the setup, but they suffered in assuming I knew what they were talking about in setting up the database and a few other details.
Gregarius is a bit of a puzzle to set up. It can be downloaded here gregarius
there are some assumptions which for some are maybe simple for some, but baffled me a bit.
here is a tutorial for setting up the thing
http://www.phpbuilder.com/columns/ian_gilfillan20060103.php3
Problems:
not obvious is the database creation.
I used mysql, and the setups were pretty plain for that. However they asked for username and password in the install script, and also for admin password.
The install can be run via a gui or you can create a database init yourself manually. If you are running by gui a file with the dbinnit is created for download to your apache server. Once you have that, and install it in the rss file you can create the sql with another script, install.php
Turns out the admin password and account asked for in the gui are for the mysql so it can encode the mysql output with proper passwords for the setup it outputs.
A script called schema.php has to then be run to output a sql configured for your database, account system and tables. That file can then run and create the database and configure it.
another problem is some of the weblinks don't pass back to the rss pages on apache.
Individual feeds when you access it w/o any apache work go thru to the target sites, but the "group" jumps which the aggregator creates result in a 404. Searching for that. Looks like it is pointed at /rss (my sublocation on apache) and the apache isn't redirecting.
This may be the fix for that (from link above)
After you've created some feeds and you attempt to view them (below), you may find that you are getting 404 errors. The most likely reason for this is that your server is not running the Apache mod-rewrite module, so the short url's Gregarius uses by default are not being accepted. Simply go to Admin/Config and change the rss.output.usemodrewrite setting (second from the bottom) to false (screenshot).
Wednesday, October 30, 2013
debian 8 for wandboard
http://wandboard.wordpress.com/
debian 8 for wandboard
You can download the image using the following links
http://www39.zippyshare.com/v/9043871/file.html (part1)
http://www39.zippyshare.com/v/86491193/file.html (part2)
http://www39.zippyshare.com/v/31872725/file.html (part4)
http://www64.zippyshare.com/v/48319927/file.html (part3)
Thank you Martin for the great job.
access:
ssh debian@192.168.1.155 or ssh root@192.168.1.155
password: debian (for both, “debian” and “root” users)
The running webservices can be accessed by doing :
Owncloud —> 192.168.1.155/owncloud
Ampache —> 192.168.1.155/ampache
Aria2 —-> 192.168.1.155/aria2
Webmin —-> https://192.168.1.155:10000
Phpmyadmin —> 192.168.1.155/phpmyadmin
fix for message in kernel on wandboard (silences it anyway)
to get rid of messages about voltage changes
COULD NOT SET SOC VOLTAGE BACK!!!!echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governorhttp://forums.wandboard.org/viewtopic.php?f=12&t=97
Hello There,
I am using 12.04.2 LTS, and I keep getting this error on console "COULD NOT SET SOC VOLTAGE BACK!!!!", it is flooding the logs.
Any idea what it is, and how to stop?
-Yogesh
I am using 12.04.2 LTS, and I keep getting this error on console "COULD NOT SET SOC VOLTAGE BACK!!!!", it is flooding the logs.
Any idea what it is, and how to stop?
-Yogesh
- yogeshj
- Posts: 3
- Joined: Thu Oct 03, 2013 6:49 am
-
Re: Keep getting error on console COULD NOT SET SOC VOLTAGE BACK
An unfortunate "bug" in the kernel. It is not
dangerous, just someone at freescale making unexpected behaviour sound
worse than it is.
Try changing the scaling governor, that usually makes it quiet:
Try changing the scaling governor, that usually makes it quiet:
- Code: Select all
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Saturday, October 26, 2013
ffmpeg transcode of h.264 and ac3 encoded files to play on more devices
many devices won't play ac3 coded media. this a discussion of recoding
Its been done, and you don't even need to whitelist your chromecast, you just have to enable 'developer mode' in the Google Cast extension. The guy even made a VLC transcoding option, but I just quickly repackage my files with FFmpeg if needed before playback.http://forum.xda-developers.com/showthread.php?t=2398804
Its been done, and you don't even need to whitelist your chromecast, you just have to enable 'developer mode' in the Google Cast extension. The guy even made a VLC transcoding option, but I just quickly repackage my files with FFmpeg if needed before playback.http://forum.xda-developers.com/showthread.php?t=2398804
I would first use mediainfo to see what your file is already, and check against the list of supported codecs for the Chromecast.
Assuming that you do need to convert, you need to figure out what exactly. For example, a lot of scene(aka pirate) releases that are in MKV are H.264 video(which works just fine on the Chromecast) and AC3 audio(which does not work on the Chromecast). So in a lot of cases, you will just be repacking the audio.
Depending on your FFmpeg, you will have different encoding and decoding libraries. The most surefire way is to just build it yourself - but I think if you're on Ubunut you can install packages for encoders.
But generally, what I do is repack the video(no conversion), and convert the audio to either AAC(preferred), or MP3(a better fallback option if you're using Windows).
I do:
Edit: If you convert from a non-H.264 file, the audio may already be in MP3, and then you would only need to convert the video, like so:
Assuming that you do need to convert, you need to figure out what exactly. For example, a lot of scene(aka pirate) releases that are in MKV are H.264 video(which works just fine on the Chromecast) and AC3 audio(which does not work on the Chromecast). So in a lot of cases, you will just be repacking the audio.
Depending on your FFmpeg, you will have different encoding and decoding libraries. The most surefire way is to just build it yourself - but I think if you're on Ubunut you can install packages for encoders.
But generally, what I do is repack the video(no conversion), and convert the audio to either AAC(preferred), or MP3(a better fallback option if you're using Windows).
I do:
ffmpeg -i <input file> -c:v copy -c:a libfdk_aac <output file>
if converting to MP3 audio, you need to specify a specific bitrate:ffmpeg -i <input file> -c:v copy -c:a libmp3lame -b:a 320k <output file>
And lastly, if you video didn't come in H.264 to begin with, go ahead and just re-encode like this:ffmpeg -i <input file> -c:v libx264 -c:a libfdk_aac <output file>
Hope this helps!Edit: If you convert from a non-H.264 file, the audio may already be in MP3, and then you would only need to convert the video, like so:
ffmpeg -i <input file> -c:v libx264 -c:a copy <output file>
chromecast discussion
comment in thread about vlc stream to
It's actually not very
hard, since VLC already supports transcoding and streaming to a socket. I
found a Java project that was experimenting with it, but I don't have
the link available at the moment. I tested it out by running VLC like
this:
(you need to write a custom app for that part), and it mostly-worked. I was having problems with video/audio sync, but that might be something I did wrong, I didn't spend very long on it. I imagine once we can release apps somebody will write a simple one that takes a URL and tells the Chromecast to stream it, and that's really all you need
vlc -Irc --sout="#transcode{vcodec=VP80,vb=1000,width=500,acodec=vorb,ab=128,audio-sync,channels=2,samplerate=44100}:http{mux=webm,dst=:8000/cast.webm}"
And then told my Chromecast to stream http://machine-running-vlc:8000/cast.webm(you need to write a custom app for that part), and it mostly-worked. I was having problems with video/audio sync, but that might be something I did wrong, I didn't spend very long on it. I imagine once we can release apps somebody will write a simple one that takes a URL and tells the Chromecast to stream it, and that's really all you need
Friday, October 4, 2013
snow leopard on virtual box 4
from:
http://virtualbox-snow-leopard.blogspot.com/
http://virtualbox-snow-leopard.blogspot.com/
Guide
Prerequisites:
1) VirtualBox 4
2) iBoot and Multibeast.
3) An ISO of Snow Leopard retail version.
4) The DMG of the latest (10.6.6) combo updater.
Instructions:
1) Make a new OSX Server image in Virtualbox, call it "OSX", use all the defaults except make a bigger disk than 20GB - 40GB is a better number.
2) Go to settings and untick the "Enable EFI setting" in the System pane.
3) Mount iBoot.iso and boot from CD drive (you might have to press F12, then 'c').
4) Unmount iBoot, mount Snow Leopard ISO.
5) Press F5, then Enter. It will launch the SL installer.
6) Open Disk Utility. Partition your disk - GUID, Mac OS Journaled. Close Disk Utility. Select the new drive partition you made, and let the install continue.
7) After installation, mount iBoot.iso again and this time choose your new SL installation which will boot.
8) Run the 10.6.6 combo updater, do not allow it to reboot.
9) Run Multibeast, select EasyBeast and the System Utilities. Install it.
10) Unmount the iBoot iso in Virtualbox and reboot into Snow Leopard. iBoot is now no longer required.
Optional Virtualbox settings:
1) Raise the Video memory to 128MB and enable 3D acceleration.
2) Raise the main RAM to 2GB or more if you can spare it.
3) Install the Virtualbox Extension Pack to enable USB device support.
Known issues:
1) "About This Mac" will crash the Finder. System Profiler works properly when invoked directly.
2) Shut down/restart etc. will always kernel panic.
3) There is no choice of resolutions in the Display settings. Use the Virtualbox command line to do e.g. VBoxManage setextradata “OSX” “CustomVideoMode1″ “1600×960×32”
4) Shared Virtualbox folders can't be used due to there being no Virtualbox Guest Additions for Mac (yet?)
5) Sometimes fails to boot and sits on the Apple splash screen spinner forever. Just reset it.
6) Spotlight sometimes hangs, and sometimes has to do a full reindex for no apparent reason.
Links:
http://www.virtualbox.org
http://tonymacx86.com/
http://store.apple.com/us/product/MC573Z/A
http://support.apple.com/kb/dl1349
1) VirtualBox 4
2) iBoot and Multibeast.
3) An ISO of Snow Leopard retail version.
4) The DMG of the latest (10.6.6) combo updater.
Instructions:
1) Make a new OSX Server image in Virtualbox, call it "OSX", use all the defaults except make a bigger disk than 20GB - 40GB is a better number.
2) Go to settings and untick the "Enable EFI setting" in the System pane.
3) Mount iBoot.iso and boot from CD drive (you might have to press F12, then 'c').
4) Unmount iBoot, mount Snow Leopard ISO.
5) Press F5, then Enter. It will launch the SL installer.
6) Open Disk Utility. Partition your disk - GUID, Mac OS Journaled. Close Disk Utility. Select the new drive partition you made, and let the install continue.
7) After installation, mount iBoot.iso again and this time choose your new SL installation which will boot.
8) Run the 10.6.6 combo updater, do not allow it to reboot.
9) Run Multibeast, select EasyBeast and the System Utilities. Install it.
10) Unmount the iBoot iso in Virtualbox and reboot into Snow Leopard. iBoot is now no longer required.
Optional Virtualbox settings:
1) Raise the Video memory to 128MB and enable 3D acceleration.
2) Raise the main RAM to 2GB or more if you can spare it.
3) Install the Virtualbox Extension Pack to enable USB device support.
Known issues:
1) "About This Mac" will crash the Finder. System Profiler works properly when invoked directly.
2) Shut down/restart etc. will always kernel panic.
3) There is no choice of resolutions in the Display settings. Use the Virtualbox command line to do e.g. VBoxManage setextradata “OSX” “CustomVideoMode1″ “1600×960×32”
4) Shared Virtualbox folders can't be used due to there being no Virtualbox Guest Additions for Mac (yet?)
5) Sometimes fails to boot and sits on the Apple splash screen spinner forever. Just reset it.
6) Spotlight sometimes hangs, and sometimes has to do a full reindex for no apparent reason.
Links:
http://www.virtualbox.org
http://tonymacx86.com/
http://store.apple.com/us/product/MC573Z/A
http://support.apple.com/kb/dl1349
****************************************
version 2
Prerequisites:
1) Virtualbox 4 with the Oracle VM VirtualBox Extension Pack installed.
2) Snow Leopard retail DVD or ISO.
Instructions:
1) Make a new OSX Server image in Virtualbox, call it "OSX", use all the defaults except make a bigger disk than 20GB - 40GB is a better number.
2) Go into the settings.
3) If you have enough RAM, change the RAM to 2048MB, but no more.
4) Change the Video RAM to 64MB, and enable 3D Acceleration.
5) Make sure that the Audio is set to Intel HDA, and make sure that the DVD is ahead of the Hard Disk in the boot device order.
6) In the Storage tab, either mount the Snow Leopard ISO, or direct it to your physical DVD drive with the Snow Leopard disk in it.
7) Quit the Virtualbox manager.
8) Open a command prompt and 'cd' to your Virtualbox install directory (Probably "c:/Program Files/Oracle/Virtualbox".
9) (The following step might not be necessary, or actually do anything. Unconfirmed)... If you are on a 64 bit host type: VboxManage modifyvm "OSX" --firmware efi64
10) Type: VBoxManage setextradata "OSX" VBoxInternal2/EfiGopMode 4
Alternatively use 0, 1, 2 or 3 to set the video resolution according to:
0 - 640x480
1 - 800x600
2 - 1024x768
3 - 1280x1024
4 - 1440x900
11) In a text editor, edit the OSX.vbox file found in ~USERNAME/VirtualBox VMs/OSX/
12) Find the line that says ExtraDataItem name="VBoxInternal2/EfiGopMode" value="4"/
13) Below this line, paste the following (exactly, all on one line, inside angled quotes as with the other entries*)
ExtraDataItem name="VBoxInternal2/SmcDeviceKey" value="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"/
14) Save the file and close your text editor.
15) Double click on the OSX.vbox file to launch the virtual machine.
16) After a little while, the Snow Leopard installer will start.
17) Open Disk Utility. Partition your disk - GUID, Mac OS Journaled. Close Disk Utility. Select the new drive partition you made, and let the install continue.
18) Optionally customize your install to remove language support, X11 support, printer drivers etc.
19) At the end of installation, it may crash when trying to reboot. In any case, unmount the DVD or ISO before either rebooting or resetting the Virtual machine.
20) Snow Leopard will boot from hard disk, go through the initial setup steps such as choosing timezone.
21) Run Software Update and bring everything up to date.
22) Take a backup of the OSX.vbox file in case Virtualbox manager later makes a change to it that causes your installation not to boot (e.g. removing the SmcDeviceKey line).
After installation (optional, maybe risky):
1) If CPU usage is always 100%, delete /System/Library/Extensions/AppleIntelCPUPowerManagement.kext and run 'sudo kextcache -system-caches' and reboot.
2) Edit the OSX.vbox file and raise the VRAM to 128MB.
3) If you deleted the kext above, you can add an extra CPU in Virtualbox manager.
4) EpiGopMode 5 is 1920x1200 if you have a big enough monitor.
5) Enable 64 bit Kernel by editing /Library/Preferences/SystemConfiguration/com.apple.Boot.plist
Change
Kernel Flags
to
Kernel Flags
arch=x86_64
Known issues:
1) Bootup is a verbose textual process rather than the Apple logo and spinner. Seems to be due to '-v' being hardcoded as a boot option in the emulated NVRAM.
2) Shared Virtualbox folders can't be used due to there being no Virtualbox Guest Additions for Mac (yet?)
* Blogspot won't let me enter things that look like raw HTML/XML.
1) Virtualbox 4 with the Oracle VM VirtualBox Extension Pack installed.
2) Snow Leopard retail DVD or ISO.
Instructions:
1) Make a new OSX Server image in Virtualbox, call it "OSX", use all the defaults except make a bigger disk than 20GB - 40GB is a better number.
2) Go into the settings.
3) If you have enough RAM, change the RAM to 2048MB, but no more.
4) Change the Video RAM to 64MB, and enable 3D Acceleration.
5) Make sure that the Audio is set to Intel HDA, and make sure that the DVD is ahead of the Hard Disk in the boot device order.
6) In the Storage tab, either mount the Snow Leopard ISO, or direct it to your physical DVD drive with the Snow Leopard disk in it.
7) Quit the Virtualbox manager.
8) Open a command prompt and 'cd' to your Virtualbox install directory (Probably "c:/Program Files/Oracle/Virtualbox".
9) (The following step might not be necessary, or actually do anything. Unconfirmed)... If you are on a 64 bit host type: VboxManage modifyvm "OSX" --firmware efi64
10) Type: VBoxManage setextradata "OSX" VBoxInternal2/EfiGopMode 4
Alternatively use 0, 1, 2 or 3 to set the video resolution according to:
0 - 640x480
1 - 800x600
2 - 1024x768
3 - 1280x1024
4 - 1440x900
11) In a text editor, edit the OSX.vbox file found in ~USERNAME/VirtualBox VMs/OSX/
12) Find the line that says ExtraDataItem name="VBoxInternal2/EfiGopMode" value="4"/
13) Below this line, paste the following (exactly, all on one line, inside angled quotes as with the other entries*)
ExtraDataItem name="VBoxInternal2/SmcDeviceKey" value="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"/
14) Save the file and close your text editor.
15) Double click on the OSX.vbox file to launch the virtual machine.
16) After a little while, the Snow Leopard installer will start.
17) Open Disk Utility. Partition your disk - GUID, Mac OS Journaled. Close Disk Utility. Select the new drive partition you made, and let the install continue.
18) Optionally customize your install to remove language support, X11 support, printer drivers etc.
19) At the end of installation, it may crash when trying to reboot. In any case, unmount the DVD or ISO before either rebooting or resetting the Virtual machine.
20) Snow Leopard will boot from hard disk, go through the initial setup steps such as choosing timezone.
21) Run Software Update and bring everything up to date.
22) Take a backup of the OSX.vbox file in case Virtualbox manager later makes a change to it that causes your installation not to boot (e.g. removing the SmcDeviceKey line).
After installation (optional, maybe risky):
1) If CPU usage is always 100%, delete /System/Library/Extensions/AppleIntelCPUPowerManagement.kext and run 'sudo kextcache -system-caches' and reboot.
2) Edit the OSX.vbox file and raise the VRAM to 128MB.
3) If you deleted the kext above, you can add an extra CPU in Virtualbox manager.
4) EpiGopMode 5 is 1920x1200 if you have a big enough monitor.
5) Enable 64 bit Kernel by editing /Library/Preferences/SystemConfiguration/com.apple.Boot.plist
Change
to
Known issues:
1) Bootup is a verbose textual process rather than the Apple logo and spinner. Seems to be due to '-v' being hardcoded as a boot option in the emulated NVRAM.
2) Shared Virtualbox folders can't be used due to there being no Virtualbox Guest Additions for Mac (yet?)
* Blogspot won't let me enter things that look like raw HTML/XML.
Subscribe to:
Posts (Atom)