[SOLVED] Trouble adding Tun module


 
Thread Tools Search this Thread
Operating Systems Linux [SOLVED] Trouble adding Tun module
# 1  
Old 07-03-2013
[SOLVED] Trouble adding Tun module

So I have Ubuntu running on a sheevaplug develop kit, but the damn kernel thing doesn't come with /dev/tun enabled. It was suggested that I look into using module assistant to compile & get this set up but I'm having issues.
Linux ubuntu 2.6.39.4 #2 PREEMPT Fri Aug 5 19:05:11 MDT 2011 armv5tel GNU/Linux
edit: I Updated the Kernel!
Linux 3.8.8 #3 PREEMPT Wed Apr 17 04:31:18 MDT 2013 armv5tel GNU/Linux

Using this page
Building Kernel Modules With Module-Assistant On Debian Lenny | HowtoForge - Linux Howtos and Tutorials
Code:
#m-a prepare

installs about 16 things.
Done!

#sudo ma-update

.....................................................................................
Updated infos about 85 packages

#cat /sources.list
deb Index of /ubuntu jaunty main restricted universe multiverse
deb Index of /ubuntu jaunty-updates main restricted universe multiverse
deb Index of /ubuntu jaunty-security main restricted universe multiverse
deb-src Index of /ubuntu jaunty main restricted universe multiverse
deb-src Index of /ubuntu jaunty-updates main restricted universe multiverse
deb-src Index of /ubuntu jaunty-security main restricted universe multiverse

#update
More downloads,
done!

#sudo m-a a-i tun
tun, what is tun?

sudo m-a list
ABBREVIATED FOR SPACE!
rt2400-source 
rt2500-source 
rt2570-source 
rtai-source 
sl-modem-source 
squashfs-source 
sysprof-module-source 
virtualbox-ose-source
zaptel-source

Being that the plug is a embeded platform I realize this is an older kernel & dist but Is there anyway I can do this?
Thanks!

Last edited by dpreviti; 07-04-2013 at 06:32 PM.. Reason: updated kernel version
# 2  
Old 07-04-2013
i checked debian 7 and tun is still not included nor can it be found in the repositories ... however, i did find vtun and was able to install it ... vtun is tun's new name so try that first ... if not what you wanted, your only other option is to download the source code and build tun ... google tun download ...
# 3  
Old 07-04-2013
Unfortionatly I don't think openvpn and vtun work together, but I did find a src file for the tun device from the vtun link you gave me so I'll try and compile it.


checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gawk... gawk
checking for a BSD compatible install... /usr/bin/install -c
configure: error: Unsupported OS


Add suck it, no love for me.

Last edited by dpreviti; 07-04-2013 at 04:52 PM.. Reason: add compile notes
# 4  
Old 07-04-2013
Are you positive you don't have tun? You may just need to force it to load, modprobe tun, since not being a hardware device it won't be autodetected...
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 07-04-2013
Your a little faster then my re-post but that plus an additional error was the issue.

I noticed I was still using the /lib/modules/2.6. So I dropped & untarred /zipped my newer linux-3.8.8-modules.gz into /lib/modules and ran:

#modprobe tun
nothing just a prompt.

ran openvpn & it complained about setting /dev/tun permissions

#sudo openvpn --mktun --dev tun --user root

nothing! holding breath

#sudo openvpn --config vpn.ovpn --auth-user-pass

lots of text &
Thu Jul 4 21:17:08 2013 Initialization Sequence Completed

Opened another term & did a traceroute & my provider is no longer in the response. I have tun!

Thanks everyone!

Last edited by dpreviti; 07-04-2013 at 06:45 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Unable to connect guest VM to internet (QEMU via both 'User-mode networking' and 'TUN/TAP')

Hello, I installed FreeBSD 10.3 on AQEMU. I can't connect to internet in none of the modes of "Default, User-Mode Networking" and "TUN/TAP Networking". I am able to ping my host in the TAP networking mode (192.168.1.33 which is my IP addr in guest), but getting 'no route to host' for any... (1 Reply)
Discussion started by: temp-usr
1 Replies

2. UNIX for Dummies Questions & Answers

[Solved] Having trouble with simple grep search

I have a text file (allWords.txt), that I would like to search through. Here is a snippet of what it looks like... a aah aahed aahing aahs aardvark aardvarks aardwolf ab abaci aback abacus abacuses abaft ...... I would like to use the grep search to search, line by line, for... (8 Replies)
Discussion started by: blackvelvet
8 Replies

3. Hardware

[solved] Sun Netra X1 - Adding a Second Hard Drive

As the title suggests, I'm trying to install a second drive (really want an OS mirror) on a Sun Netra X1. I've taken the spacer out, and had a go at with the drill-press so now I have a nice HDD tray. Have installed an IDE drive in the tray, plugged in the power and data cables that were... (0 Replies)
Discussion started by: Smiling Dragon
0 Replies

4. Shell Programming and Scripting

[Solved] Password query even after adding public key

Dears I am running a shell script to backup (transfer) files to a networked External HDD. Even though the public key has been added it still asks for the password before starting the transfer. Any suggestions? Thanks in advance. (8 Replies)
Discussion started by: BrownBob
8 Replies

5. HP-UX

[Solved] Adding a column.

Hi, Please see the output below. CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND 0 ? 92 root 152 20 144K 128K run 667:31 1.85 1.85 fcachedaemon 22 ? 10957 patrol 154 30 68036K 35704K sleep 571:43 1.53 1.53 PatrolAgent 0... (22 Replies)
Discussion started by: mohtashims
22 Replies

6. Shell Programming and Scripting

[Solved] adding email option to KSH

Hi, I wanted to add a email option to this script. and was wondering if anyone could help me out. #!/bin/ksh echo "Finding hdisk" <DIR>/find-disk i=1 b=0 p=0 while ... (2 Replies)
Discussion started by: vpundit
2 Replies

7. UNIX for Dummies Questions & Answers

[Solved] Adding time stamp to file name

I have the awk awk -F\* '$1=="ST",$1=="SE"{if($1=="ST"){close(f);f="sample" ++i} ; $1=$1; print>f}' OFS=\| <filename> How to add the time stamp to the file name mentioned as "sample" Please view this code tag video for how to use code tags when posting code and data. (6 Replies)
Discussion started by: atlantis_yy
6 Replies

8. IP Networking

iptables specific ip routing via tun

hi guys! I was searching few days for a solution to my problem but haven't found one or I'm too dumb to understand. Here's what happened: I have a linux server used as a router. It has an eth0 and eth1 (local interface). I just installed openvpn (I need it only as a client), I configured it and... (0 Replies)
Discussion started by: shamora
0 Replies

9. Solaris

Solaris 10 crashes upon boot after TUN driver installed

Hey! I compiled TUN 1.1 driver on my Solaris 10 64bit, and everything was working fine, all the commands for installation were successfull (add_drv, devfsadm -i tun ... etc.) and the driver was working fine as I got OpenVPN server up and running with successful clients attached. My only problem... (2 Replies)
Discussion started by: TomSu
2 Replies

10. Linux

How to convert Linux Kernel built-in module into a loadable module

Hi all, I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/. I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies
Login or Register to Ask a Question