Difference between pages "Netbsd vpn gateway basic setup" and "Media Player"

From ENTS
(Difference between pages)
Jump to: navigation, search
m (prep to recompile the kernel)
 
 
Line 1: Line 1:
 +
[[Category:Media Player]]
 +
'''Media Player'''<br>
 +
In an effort to provide an excuse to socialize, provide background noise when needed and to build some community and restart Dinner and a Movie nights, RenderMan has donated the use of a XIOS DS Media Play! box for use in the space on the TV in the front lounge area.
 +
<br>
 +
<br>
 +
'''Media Player Specifics'''<br>
 +
The player is a small white box running Android.  It immediatly boots into XBMC.  '''PLEASE DO NOT HACK OR TRY TO REFLASH THE MEDIA PLAYER''' we want to keep it working for everyone and it is still the property of RenderMan.
  
===basic setup after vanilla install===
+
The device can play 1080p video very nicely (some slight stuttering on our current network, plans to upgrade the switch are pending) and display nearly any file formt.
  
---
+
Menus can be accessed using the accompanying white remote control.  If you are unsure of how to navigate, please ask someone else or google it or check out the XBMC wiki: [http://wiki.xbmc.org/index.php?title=XBMC_Quick_Start_Guide http://wiki.xbmc.org/index.php?title=XBMC_Quick_Start_Guide XBMC Wiki]
  
vi /root/.profile
+
The TV must be changed to source 'HDMI 1' and the HDMI cable from the device plugged in to 'HDMI 1'.  Periodically another member may unplug the HDMI or power cables and not put them back.  Those people suck.  Simply plug in the cables and leave it in working order for the next person if this is the case.
  
change the path for the pkgsrc repo to:<br />  
+
<br>
ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All/
+
'''Media'''<br>
  
  pkg_add lynx<br />
+
Media can be played from many sources. The primary is over the network from our file server 'Atlas' which you can reach via the name or the IP of 10.20.0.7 from the ENTS network
pkg_add pico<br />
+
pkg_add screen
+
  
---
+
Media uploaded to //Atlas/media and the appropriate directory will be added to the XBMC database periodically and be available to play.  This includes movies, TV shows, conference videos, documentaries, photo's and music.  If you think it is of interest to members, upload it and share it!
  
vi /etc/ifconfig.fxp0
+
<br>
 
+
'''Copyright'''<br>
192.168.0.20{1,2} netmask 255.255.255.0
+
Inevitably, the question of copyright will come up. ENTS or its directors has no control, nor cares what is uploaded to the media server and made available to other membersThis system is provided for the benefit of the community and is a public mediumMembers are assumed to abide by nessecary laws and that they are mature enough not to abuse it.
 
+
---
+
 
+
vi /etc/sysctl.conf
+
 
+
net.inet.ip.forwarding=1
+
 
+
---
+
 
+
vi /etc/resolv.conf
+
 
+
nameserver 64.59.184.13
+
 
+
---
+
 
+
vi /etc/rc.conf
+
 
+
hostname=chaosvpn{1,2}.440bx.net<br />
+
defaultroute=192.168.0.1<br />
+
sshd=yes
+
 
+
---
+
 
+
useradd -m -G wheel chaosvpn_user<br />
+
passwd chaosvpn_user
+
 
+
---
+
 
+
continue with the steps at:
+
 
+
https://wiki.hamburg.ccc.de/ChaosVPN:NetBSDHowto
+
 
+
 
+
---
+
 
+
===prep to recompile the kernel===
+
 
+
make directories
+
 
+
mkdir /usr/src
+
chown chaosvpn_user /usr/src
+
 
+
get the actual source
+
+
ftp -i ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-5.2/source/sets/
+
mget *.tgz
+
+
extract
+
 
+
  for i in *.tgz
+
do
+
tar -xzf $i
+
done
+
 
+
after you realize youve extracted to the wrong dir
+
 
+
mv /usr/src/usr/src/* /usr/src
+
 
+
copy config stuff
+
 
+
cd /usr/src/sys/arch/i386
+
cp GENERIC i686_CVPN_x300
+
 
+
start editing
+
 
+
pico i686_CVPN_x300
+
 
+
reference
+
 
+
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
+
 
+
CFLAGS:
+
 
+
  CPUFLAGS="-march=pentium3m -mtune=pentium3m"
+
+
Uncommented:
+
 
+
PERFCTRS #since this is going to be non-smp kernel (may or may not ever use this)
+
GATEWAY
+
IPSEC
+
IPSEC_ESP
+
IPSEC_NAT_T
+
 
+
Might dig more into "tuning" later.
+
 
+
Time to start building the new kernel
+
 
+
config ./i686_CVPN_x300
+
cd ../compile/i686_CVPN_x300
+
make depend && make
+

Revision as of 18:32, 18 August 2013

Media Player
In an effort to provide an excuse to socialize, provide background noise when needed and to build some community and restart Dinner and a Movie nights, RenderMan has donated the use of a XIOS DS Media Play! box for use in the space on the TV in the front lounge area.

Media Player Specifics
The player is a small white box running Android. It immediatly boots into XBMC. PLEASE DO NOT HACK OR TRY TO REFLASH THE MEDIA PLAYER we want to keep it working for everyone and it is still the property of RenderMan.

The device can play 1080p video very nicely (some slight stuttering on our current network, plans to upgrade the switch are pending) and display nearly any file formt.

Menus can be accessed using the accompanying white remote control. If you are unsure of how to navigate, please ask someone else or google it or check out the XBMC wiki: http://wiki.xbmc.org/index.php?title=XBMC_Quick_Start_Guide XBMC Wiki

The TV must be changed to source 'HDMI 1' and the HDMI cable from the device plugged in to 'HDMI 1'. Periodically another member may unplug the HDMI or power cables and not put them back. Those people suck. Simply plug in the cables and leave it in working order for the next person if this is the case.


Media

Media can be played from many sources. The primary is over the network from our file server 'Atlas' which you can reach via the name or the IP of 10.20.0.7 from the ENTS network

Media uploaded to //Atlas/media and the appropriate directory will be added to the XBMC database periodically and be available to play. This includes movies, TV shows, conference videos, documentaries, photo's and music. If you think it is of interest to members, upload it and share it!


Copyright
Inevitably, the question of copyright will come up. ENTS or its directors has no control, nor cares what is uploaded to the media server and made available to other members. This system is provided for the benefit of the community and is a public medium. Members are assumed to abide by nessecary laws and that they are mature enough not to abuse it.

Personal tools
Namespaces

Variants
Actions
Navigation
Members
Toolbox