Re: Sharing "things" between Ubuntu Studio 11.10 and...

2012-02-18 Thread Ralf Mardorf
# gedit /home/spinymouse/adhoc
# cat /home/spinymouse/adhoc
#! /bin/sh
# sh ./adhoc
# https://help.ubuntu.com/community/WifiDocs/Adhoc

device=wlan0
sudo service network-manager stop
sudo ip link set $device down
sudo iwconfig $device mode ad-hoc
sudo iwconfig $device channel 4
sudo iwconfig $device essid 'oz'
sudo iwconfig $device key 1324354657
# sudo dhclient $device
sudo ip addr add 169.254.34.2/16 dev $device

#
http://www.linuxquestions.org/questions/slackware-14/routing-ip-masquerade-nat-question-880715/

# default policies
/usr/sbin/iptables -t nat -P POSTROUTING ACCEPT
/usr/sbin/iptables -t nat -P OUTPUT ACCEPT
/usr/sbin/iptables -t nat -P PREROUTING ACCEPT
/usr/sbin/iptables -t filter -P INPUT DROP
/usr/sbin/iptables -t filter -P FORWARD DROP
/usr/sbin/iptables -t filter -P OUTPUT DROP

# NAT on behalf of secondary LAN 
/usr/sbin/iptables -t nat -A POSTROUTING -s 192.168.2.0/255.255.255.0 -j
SNAT
--to-source 192.168.1.xxx

# forward packets from/to secondary LAN
/usr/sbin/iptables -t filter -A FORWARD -s 192.168.2.0/255.255.255.0 -j
ACCEPT
/usr/sbin/iptables -t filter -A FORWARD -d 192.168.2.0/255.255.255.0 -j
ACCEPT

exit 0

# sh /home/spinymouse/adhoc
network-manager stop/waiting
/home/spinymouse/adhoc: 18: /usr/sbin/iptables: not found
/home/spinymouse/adhoc: 19: /usr/sbin/iptables: not found
/home/spinymouse/adhoc: 20: /usr/sbin/iptables: not found
/home/spinymouse/adhoc: 21: /usr/sbin/iptables: not found
/home/spinymouse/adhoc: 22: /usr/sbin/iptables: not found
/home/spinymouse/adhoc: 23: /usr/sbin/iptables: not found
/home/spinymouse/adhoc: 26: /usr/sbin/iptables: not found
/home/spinymouse/adhoc: 27: --to-source: not found
/home/spinymouse/adhoc: 30: /usr/sbin/iptables: not found
/home/spinymouse/adhoc: 31: /usr/sbin/iptables: not found

FWIW, the iPad still can connect to "oz" and I assume connecting to the
Internet still won't work. Perhaps better, as long as there isn't a
password required. Judges of my hometown Oberhausen Rheinland pronounce
people guilty if something forbidden happens, even if everything was
protected and somebody cracked the protection. It's the owner's fault if
somebody was able to hack the protection.

# synaptic

Ok, it's installed to /sbin.

# gedit /home/spinymouse/adhoc
# cat /home/spinymouse/adhoc
#! /bin/sh
# sh ./adhoc
# https://help.ubuntu.com/community/WifiDocs/Adhoc

device=wlan0
sudo service network-manager stop
sudo ip link set $device down
sudo iwconfig $device mode ad-hoc
sudo iwconfig $device channel 4
sudo iwconfig $device essid 'oz'
sudo iwconfig $device key 1324354657
# sudo dhclient $device
sudo ip addr add 169.254.34.2/16 dev $device

#
http://www.linuxquestions.org/questions/slackware-14/routing-ip-masquerade-nat-question-880715/

# default policies
sudo iptables -t nat -P POSTROUTING ACCEPT
sudo iptables -t nat -P OUTPUT ACCEPT
sudo iptables -t nat -P PREROUTING ACCEPT
sudo iptables -t filter -P INPUT DROP
sudo iptables -t filter -P FORWARD DROP
sudo iptables -t filter -P OUTPUT DROP

# NAT on behalf of secondary LAN 
sudo iptables -t nat -A POSTROUTING -s 192.168.2.0/255.255.255.0 -j SNAT
\
--to-source 192.168.1.xxx

# forward packets from/to secondary LAN
sudo iptables -t filter -A FORWARD -s 192.168.2.0/255.255.255.0 -j
ACCEPT
sudo iptables -t filter -A FORWARD -d 192.168.2.0/255.255.255.0 -j
ACCEPT

exit 0

Intended to run as user, anyway ...

# sh /home/spinymouse/adhoc
stop: Unknown instance: 
RTNETLINK answers: File exists
iptables v1.4.10: Bad IP address "192.168.1.xxx"

Try `iptables -h' or 'iptables --help' for more information.

# ifconfig
eth0  Link encap:Ethernet  HWaddr 00:1e:8c:80:2a:eb  
  inet6 addr: fe80::21e:8cff:fe80:2aeb/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:53230 errors:0 dropped:0 overruns:0 frame:0
  TX packets:44777 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:50841001 (50.8 MB)  TX bytes:6468092 (6.4 MB)
  Interrupt:43 Base address:0x8000 

loLink encap:Local Loopback  
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:16 errors:0 dropped:0 overruns:0 frame:0
  TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:1296 (1.2 KB)  TX bytes:1296 (1.2 KB)

ppp0  Link encap:Point-to-Point Protocol  
  inet addr:85.182.19.232  P-t-P:213.191.89.25
Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  RX packets:52025 errors:0 dropped:0 overruns:0 frame:0
  TX packets:43534 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:3 
  RX bytes:49624075 (49.6 MB)  TX bytes:5467008 (5.4 MB)

The iPad still claims it's connected to "oz", for DHCP and BootIP it shows:

IP-Adresse: 169.254.187.135
Teilnetzmaske: 255.255.0.0 (I

Re: Sharing "things" between Ubuntu Studio 11.10 and...

2012-02-18 Thread Ralf Mardorf
On Wed, 2012-02-15 at 12:13 -0700, Gustin Johnson wrote:
> You need to set up your Ubuntu box as a router, do a google search for
> linux masquerade router

Should I add some IP thingy to ...

# cat /home/spinymouse/adhoc
#! /bin/sh
# sh ./adhoc
# https://help.ubuntu.com/community/WifiDocs/Adhoc

device=wlan0
sudo service network-manager stop
sudo ip link set $device down
sudo iwconfig $device mode ad-hoc
sudo iwconfig $device channel 4
sudo iwconfig $device essid 'oz'
sudo iwconfig $device key 1324354657
# sudo dhclient $device
sudo ip addr add 169.254.34.2/16 dev $device
exit 0

... ?

I already tried 2 howtos, but they soon stopped when I should run
something in /etc/init.d that doesn't exist [1]

Regards,
Ralf

### FIRST TRIAL 

http://ubuntuforums.org/showthread.php?t=111972

# synaptic
Install: dhcp3-server

# ifconfig
eth0  Link encap:Ethernet  HWaddr 00:1e:8c:80:2a:eb  
  inet6 addr: fe80::21e:8cff:fe80:2aeb/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:47187 errors:0 dropped:0 overruns:0 frame:0
  TX packets:38532 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:46745545 (46.7 MB)  TX bytes:5440817 (5.4 MB)
  Interrupt:43 Base address:0x8000 

loLink encap:Local Loopback  
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:16 errors:0 dropped:0 overruns:0 frame:0
  TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:1296 (1.2 KB)  TX bytes:1296 (1.2 KB)

ppp0  Link encap:Point-to-Point Protocol  
  inet addr:85.182.19.232  P-t-P:213.191.89.25
  Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  RX packets:46205 errors:0 dropped:0 overruns:0 frame:0
  TX packets:37514 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:3 
  RX bytes:45670049 (45.6 MB)  TX bytes:4579201 (4.5 MB)

wlan0 Link encap:Ethernet  HWaddr 00:0a:eb:22:ef:b3  
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# gedit /etc/dhcp/dhcpd.conf
# cat /etc/dhcp/dhcpd.conf
#
# Sample configuration file for ISC dhcpd for Debian
#
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
#
#

# The ddns-updates-style parameter controls whether or not the server
will
# attempt to do a DNS update when a lease is confirmed. We default to
the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style ad-hoc;

# option definitions common to all supported networks...
option domain-name "oz.com";
option domain-name-servers 192.168.1.1, 192.168.2.1;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# No service will be given on this subnet, but declaring it helps the 
# DHCP server to understand the network topology.

#subnet 10.152.187.0 netmask 255.255.255.0 {
#}

# This is a very basic subnet declaration.

#subnet 10.254.239.0 netmask 255.255.255.224 {
#  range 10.254.239.10 10.254.239.20;
#  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
#}

# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.

#subnet 10.254.239.32 netmask 255.255.255.224 {
#  range dynamic-bootp 10.254.239.40 10.254.239.60;
#  option broadcast-address 10.254.239.31;
#  option routers rtr-239-32-1.example.org;
#}

# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
#  range 10.5.5.26 10.5.5.30;
#  option domain-name-servers ns1.internal.example.org;
#  option domain-name "internal.example.org";
#  option routers 10.5.5.1;
#  option broadcast-address 10.5.5.31;
#  default-lease-time 600;
#  max-lease-time 7200;
#}

# Hosts which require special configuration options can be listed in
# host statements.   If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.

#host passacaglia {
#  hardware ethernet 0:0:c0:5d:bd:95;
#  filename "vmunix.passacaglia";
#  server-name "toccata.fugue.com";
#}

# Fixed IP addresses can also be specified for hosts.   These addresses
# should not also 

Re: (rant) Is there any hope

2012-02-18 Thread Ralf Mardorf
On Wed, 2012-02-15 at 13:02 -0600, Scott Lavender wrote:
> The following would then see improvements in the user experience.
> These might include better pulse audio <-> jack integration (either
> seemless and transparent or one-click transition) and project
> automation for work flows (e.g. ladish for audio projects), along with
> other potential areas.

You are aware that many sound cards don't have audio output when
pulseaudio is installed, even if it's killed? I need my sound card also
when jackd isn't running.

Those ugly session handlers need a patched version of jackd. I hope you
don't add the "refuse-connections-patch" as a default to jackd.

LTS versions shouldn't have flaws. I only installed Oneiric because I
can't wait until April. I suddenly get a job and have no time to set up
Arch Linux to become a DAW. If I would have more time, I would prefer
Arch Linux at the moment and wait for the release of the next LTS of
Ubuntu in April.

> Lastly, I would like for everyone to keep in mind that we work within
> the ecosystem of Ubuntu.  This means that we are restricted to their
> policies for the repositories, etc.  Therefore, we are limited on
> which packages can ship, e.g. the RT kernel and those that do not
> comply for licensing reasons.  Of course we also get a huge amount of
> benefit from Ubuntu/Canonical in terms of hosting, image building,
> testing, ad naseum, so please do not misconstrue that I am resentful
> of this situation, as my feeling are quite the opposite.  But users
> should recognize that Ubuntu Studio may be limited on what we can
> either do or the timing of which we can do it in.

There wouldn't be licensing issues if you would add the FLOSS nv
graphics driver. The nouveau driver anyway is borked and doesn't work
for half of the community. Some people might need the FLOSS nv or
proprietary nvidia driver if hard real time is needed, even if the
nouveau driver should work on their machines.

Pardon, I call it "borked", but official it's called "experimental".

2 Cents,
Ralf

> 
> I hope this quick email helps explain some of the situations in better 
> context.
> 
> Please let me know if you have further questions.
> 
> ScottL
> 
> working within the paradigm of ubuntu
> 




-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: (rant) Is there any hope

2012-02-18 Thread Ralf Mardorf
On Wed, 2012-02-15 at 12:03 -0500, Rick Green wrote:
> Yeah, that was the first, worst regression down this slippery slope. 
> What happened?  I would think that packaging an -rt kernel would be job 1 
> for a 'studio' distro.  Especially since the RT patches were accepted into 
> mainline.  I was comfortable compiling and installing kernels way back in 
> the days of LILO and Linux 1.x, but I could probably count on one hand the 
> number of times I've attempted it since 2.0, and I'm nowhere up to speed 
> on the complexities of grub2 and initrd's, so I'm now dependent on 
> distributor's packages.
>My portable recording rig runs on an early AMD_64 laptop.  The TI 
> firewire and Broadcom Wifi share an IRQ, so I've long ago learned to turn 
> off the Wifi before I start jack.

I agree that at least a full preempt kernel with threadirqs set as boot
parameter should be available, since the rt patch comes with 3 system
calls that only can be used with the proprietary nvidia driver, if the
GPL will be offended. OTOH even if there shouldn't be this license
issue, you won't get perfect orthopedic shoes off the shelf and I've
seen some pre-build kernel-rt that where build with myths at the back of
the maintainer's mind. Those kernels are useless for all of my needs,
e.g. the Arch's kernel-rt that comes without hrtimer/HPET module.

I'm using GRUB legacy, but I compiled kernel-rt for usage with GRUB2
like this:

http://lists.debian.org/debian-user/2012/01/msg01985.html
http://lists.debian.org/debian-user/2012/01/msg02032.html
http://lists.debian.org/debian-user/2012/01/thrd5.html

> Right now, I've got the default package, ISTR jackdmp v1.9.2 or 
> thereabouts. (the machine's not booted at the moment).  This confuses me, 
> I thought jackdmp = jack2, and jackd would show v 1.x.x.  My machine is 
> just single-core, so I don't need jackdmp.  Is there a package for Jack1, 
> and might it be appropriate to switch to it?

Open Synaptic and use the "Quick filter" to search for "jackd". It will
then show you "jackd2" and "jackd1" packages.  The package "jackd" is a
dummy, all apps needing jackd depend to that dummy and not directly to
jackd1 or jackd2.

Regards,
Ralf


-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users