Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5,214
» Latest member: topupaman
» Forum threads: 4,029
» Forum posts: 16,404
Full Statistics
|
Online Users |
There are currently 546 online users. » 0 Member(s) | 543 Guest(s) Applebot, Bing, Yandex
|
Latest Threads |
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 406
|
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 85,422
|
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 39,756
|
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,857
|
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,326
|
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 41,317
|
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 115,543
|
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 53,531
|
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 43,812
|
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 41,735
|
|
|
Fujifiilm Finepix Software |
Posted by: mizzy - 2006-04-27, 09:57 AM - Forum: Fedora Core Release 4
- Replies (2)
|
 |
Anybody know of a similar kind of software that will work on FC4? I've checked the fuji website, but they only make it for Mac & windoze.
With this software, when I connect up a digital camera, I can auto save it and this software makes a folder and re-names each photo to my chosen name or date etc.
Would appreciate if anybody could recommend an appz that will work in a similar way :)
Cheers guys! :)
|
|
|
A unique setup |
Posted by: gobblox - 2006-04-26, 06:36 PM - Forum: How Do I?
- Replies (2)
|
 |
I built and set up a pc for the sole purpose of displaying video on a TV either off the hard drive or LAN.
The idea is to have maximum "couch friendlyness", so that you never have to use the keyboard, and only a wireless mouse. Which isnt a very difficult task, excecpt for the login you complete after a boot. While the user could just leave it on (its a fairly stripped down low power system), at some point or another it will need to be rebooted by the user.
Is there a way to automattically login a user with very limited rights if no action is taken in a certain amount of time? or perhaps automatically unless a certain combination of buttons are pressed at boot time?
I havent done much looking around on the subject yet, but the first 3 google searches didnt turn anything up, if someone could point me in the right direction it would be appreciated.
I'm currently running FC5 on my test box, but if someone thinks another distro would work out better I'm all ears.
The idea is for non-linux users to use it, so any kind of preparation i can do for them is good.
Another alternate idea that would solve this problem, is if there were a way to have the bottom of the screen display a keyboard so the user could click letters into textboxes like many pda's allow this would give a kind of failsafe if a user wants to poke around beyond playing videos and doesnt want to bust out a keyboard or otherwise ends up where they shouldnt be.
My post turned into a short novel, thanks for getting this far :)
|
|
|
port forwarding in lan |
Posted by: wizzard - 2006-04-26, 05:12 PM - Forum: Network Problems
- Replies (1)
|
 |
i have a linux server with 2 interfaces eth0 wan interface and eth1 lan interface
in lan i have 192.168.1.0/24 and the ip for eth1 is 192.168.1.1
i want that all trafic from lan which came on eth1 on port 21 to be redirected in lan on another ip lets say 192.168.1.2 port 21
if 192.168.1.4 want to acces 192.168.1.1 on port 21 (ftp) that request to te redirected on 192.168.1.2 port 21
how i can do that ?
|
|
|
Fedora Core 5 Install video |
Posted by: hybrid - 2006-04-26, 05:25 AM - Forum: Fedora Core Release 5
- Replies (4)
|
 |
I've made a small video showing the installation process of Fedora Core 5. Hopefully it'll show people who don't use Linux that it isn't that scary.
Tell me what you think (there's meant to be no audio at the moment).
If this goes down well, I might do more videos, showing you how to add the Fedora extras etc.
<div><iframe width="459" height="344" src="https://www.youtube.com/embed/mMQOpseC-4g?feature=oembed" frameborder="0" allowfullscreen="true"></iframe></div>
|
|
|
changed distros now getting Grub error 17 |
Posted by: ron - 2006-04-26, 04:49 AM - Forum: Grub and Lilo
- Replies (11)
|
 |
I am seriously hoping that someone here can help me or point me in the right direction. I am trying to dual boot Fedora Core 5 and Windows XP. I had no problems with installation but on reboot I keep getting Grub Loading Stage1.5. Loading, Please wait... Error 17. Then it just hangs. Here is my hardware setup: I have Windows XP installed on HDA with a NTFS filesystem. HDA is a 30GB HD. HDB is a 120GB HD with 3 partitions. hdb1 is a NTFS partition. Fedora setup hdb2 as Linux and hdb3 as Linux LVM. I edited grub.conf and changed root from root (hd1,1) to root (hd1,2) but that did not change anything. I then proceeded to change root in grub.conf to a number of different values but all met with the same fate. Here are all the other values of root that I tried in grub.conf... (hd1,0) , (hd1,1), (hd1,2), (hd1,3). I tried grub-install /dev/hda but get a error saying "/dev/hdb2 does not have any corresponding BIOS drive." I don't know what else to try. I can't boot anything, so I am seriously hoping that someone will be able to help me. Thanks in advance for all your trouble.
|
|
|
iptable problem kernel 2.6.16-r3 |
Posted by: enigma - 2006-04-26, 03:13 AM - Forum: Gentoo
- Replies (4)
|
 |
I've just installed kernel 2.6.16-r3 on my gentoo box, only to run in to a strange problem...
rivendale ~ # /etc/init.d/iptables start
* Loading iptables state and starting firewall ...
FATAL: Module ip_tables not found.
iptables-restore v1.3.4: iptables-restore: unable to initializetable 'nat'
Error occurred at line: 2
Try `iptables-restore -h' or 'iptables-restore --help' for more informat [ !! ]
I recieved the following error while booting into this new kernel so I then checked to see if it was set as a module...
rivendale ~ # grep -i netfilter /usr/src/linux/.config
CONFIG_NETFILTER=y <-------
# CONFIG_NETFILTER_DEBUG is not set
# Core Netfilter Configuration
# CONFIG_NETFILTER_NETLINK is not set
# CONFIG_NETFILTER_XTABLES is not set
# IP: Netfilter Configuration
then i did the following:
rivendale ~ # echo "ip_tables" >> /etc/modules.autoload.d/kernel-2.6.16-gentoo-r3 && modules-update
rivendale ~ # modprobe ip_tables
FATAL: Module ip_tables not found.
i'd appreciate any ideas on how to fix this little problem thanks in advance...
|
|
|
apache in a chroot |
Posted by: hijinks - 2006-04-25, 06:07 PM - Forum: LAMP
- Replies (1)
|
 |
I took a script that I use to easily make a chroot enviroment for a user. I edited it to install a currently installed apache setup inside a chroot enviroment for added security. So I have only tested this out on centOS 4.3 with the http rpm installed and also php5. Now in theory it does check for php4 so give it a try.. it shouldn't break anything.
So in theory this script should work on any redhat/centos/fedora system out there. Look below the script to find install instructions
Code: #!/bin/sh
#
# (c) Copyright by Wolfgang Fuschlberger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# ( http://www.fsf.org/licenses/gpl.txt )
# first Release: 2004-07-30
# latest update: 2006-04-20
# Jy update: 2006-04-25 (apache chroot)
#
# The latest version of the script is available at
# http://www.fuschlberger.net/programs/ssh-scp-chroot-jail/
#
# Feedback is welcome!
#
# Thanks for Bugfixes / Enhancements to
# Michael Prokop <http://www.michael-prokop.at/chroot/>,
# Randy K., Randy D. and Jonathan Hunter.
#
# Features:
# - enable scp and sftp in the chroot-jail
# - use one directory (default /home/jail/) as chroot for all users
################################################################################
if [ "$(whoami)" != "root" ]; then
echo "Error: You must be root to run this command." >&2
exit 1
fi
# Specify the apps you want to copy to the jail
APPS="/bin/bash /bin/cp /usr/bin/dircolors /bin/ls /bin/sh /bin/su /usr/bin/id /usr/bin/nc /usr/sbin/httpd /usr/lib/httpd/modules/libphp5.so /usr/lib/httpd/modules/libphp4.so"
# Check if we are called with username or update
if [ -z "$1" ]; then
echo
echo "Error: Parameter missing. Did you forget the apache chroot dir?"
echo
echo "Creating new chrooted account:"
echo "Usage: $0 dir"
echo
exit
fi
# Check existence of necessary files
echo -n "Checking for chroot... "
if [ `which chroot` ];
then
echo "OK";
else
echo "failed
Please install chroot-package/binary!
"
exit 1
fi
JAILPATH=/chroot/$1
# make common jail for everybody if inexistent
if [ ! -d $JAILPATH ]; then
mkdir -p $JAILPATH
echo "Creating $JAILPATH"
fi
cd $JAILPATH
# Create directories in jail that do not exist yet
JAILDIRS="dev etc bin home sbin usr usr/bin usr/sbin var/log/httpd lib var/lib/php/session usr/lib/php/modules var/run usr/lib/httpd/modules usr/lib/httpd/build"
for directory in $JAILDIRS; do
if [ ! -d "$JAILPATH/$directory" ]; then
mkdir -p $JAILPATH/"$directory"
echo "Creating $JAILPATH/$directory"
fi
done
echo
# Creating necessary devices
[ -r $JAILPATH/dev/urandom ] || mknod $JAILPATH/dev/urandom c 1 9
[ -r $JAILPATH/dev/null ] || mknod $JAILPATH/dev/null c 1 3
[ -r $JAILPATH/dev/zero ] || mknod $JAILPATH/dev/zero c 1 5
[ -r $JAILPATH/dev/tty ] || mknod $JAILPATH/dev/tty c 5 0 && chmod 666 $JAILPATH/dev/tty
# Copy the apps and the related libs
echo "Copying necessary library-files to jail (may take some time)"
# The original code worked fine on RedHat 7.3, but did not on FC3.
# On FC3, when the 'ldd' is done, there is a 'linux-gate.so.1' that
# points to nothing (or a 90xb.....), and it also does not pick up
# some files that start with a '/'. To fix this, I am doing the ldd
# to a file called ldlist, then going back into the file and pulling
# out the libs that start with '/'
#
# Randy K.
#
# The original code worked fine on 2.4 kernel systems. Kernel 2.6
# introduced an internal library called 'linux-gate.so.1'. This
# 'phantom' library caused non-critical errors to display during the
# copy since the file does not actually exist on the file system.
# To fix re-direct output of ldd to a file, parse the file and get
# library files that start with /
#
if [ -x /root/ldlist ]; then
mv /root/ldlist /root/ldlist.bak
fi
if [ -x /root/lddlist2 ]; then
mv /root/lddlist2 /root/lddlist2.bak
fi
for app in $APPS; do
# First of all, check that this application exists
if [ -x $app ]; then
# Check that the directory exists; create it if not.
app_path=`echo $app | sed -e 's#\(.\+\)/[^/]\+#\1#'`
if ! [ -d .$app_path ]; then
mkdir -p .$app_path
fi
# If the files in the chroot are on the same file system as the
# original files you should be able to use hard links instead of
# copying the files, too. Symbolic links cannot be used, because the
# original files are outside the chroot.
cp -p $app .$app
# get list of necessary libraries
ldd $app >> /root/ldlist
fi
done
# Clear out any old temporary file before we start
if [ -e /root/ldlist2 ]; then
rm /root/ldlist2
fi
for libs in `cat /root/ldlist`; do
frst_char="`echo $libs | cut -c1`"
if [ "$frst_char" = "/" ]; then
echo "$libs" >> /root/ldlist2
fi
done
for lib in `cat /root/ldlist2`; do
mkdir -p .`dirname $lib` > /dev/null 2>&1
# If the files in the chroot are on the same file system as the original
# files you should be able to use hard links instead of copying the files,
# too. Symbolic links cannot be used, because the original files are
# outside the chroot.
cp $lib .$lib
done
#
# Now, cleanup the 2 files we created for the library list
#
/bin/rm -f /root/ldlist
/bin/rm -f /root/ldlist2
# Necessary files that are not listed by ldd
cp /lib/libnss_compat.so.2 /lib/libnsl.so.1 /lib/libnss_files.so.2 /lib/libcap.so.1 /lib/libnss_dns.so.2 ./lib/
# if you are using PAM you need stuff from /etc/pam.d/ in the jail,
echo "Copying files from /etc/pam.d/ to jail"
cp -r /etc/pam.d ./etc/
# ...and of course the PAM-modules...
echo "Copying PAM-Modules to jail"
cp -r /lib/security ./lib/
# ...and something else useful for PAM
#echo "Copying /etc/security to jail"
cp -r /etc/security ./etc/
cp /etc/login.defs ./etc/
cp -rf /etc/host.conf /etc/nsswitch.conf /etc/resolv.conf ./etc
echo "Copying over the apache/php configs"
cp -rf /etc/httpd ./etc/
cp -rf /etc/php.d ./etc/
cp -rf /etc/php.ini ./etc/
cp /etc/mime.types ./etc/
cp -rf /usr/lib/php/modules/* ./usr/lib/php/modules/
cp -rf /usr/lib/httpd/modules/* ./usr/lib/httpd/modules/
cp -rf /usr/lib/httpd/build/* ./usr/lib/httpd/build/
chown apache:apache ./var/lib/php/session
echo $2
if [ -n "$2" ]
then
echo "Copying over the doc root: $2"
cp -rf $2 .$2
else
mkdir -p ./var/www
mkdir -p ./var/www/cgi-bin
cp -rf /var/www/error ./var/www
cp -rf /var/www/icons ./var/www
mkdir -p ./var/www/html
fi
echo "Copying over the logs"
cp -rf /var/log/httpd ./var/log/
echo "Grabbing the apache user"
grep apache /etc/passwd > ./etc/passwd
grep apache /etc/group > ./etc/group
exit
Ok now put the script into a file.. This wants to install the base enviroment into the /chroot dir. You don't need to create it but if you want it on another partition then you should create a nice little symlink
So to create a basic setup which includes moving over all your html files from your root dir you would run the following command
Code: sh make_chroot_jail.sh httpd /var/www/
You can run it without the /var/www and it will not move anything over but create the basic layout in /var/www like your basic install would
So now we need to do some things with syslog to make apache log. So edit /etc/sysconfig/syslog and look for a line with SYSLOGD_OPTIONS and make it look something like this
Code: SYSLOGD_OPTIONS="-m 0 -a /chroot/httpd/dev/log"
You would change httpd to the name you used in the sh make_chroot_jail command. So restart syslog with the following command
Code: service syslog restart
Now lets test starting apache
Code: chroot /chroot/httpd /usr/sbin/httpd
You might have to stop the normal apache from running or it won't beind to the port.
hope this helps some people out!
now on a side note you will see it running as /usr/sbin/httpd in a ps aux. Now this is normal since its running in a chroot here is an example
Code: [root@fx-ws-sop-110 www]# ps aux | grep httpd
root 20627 0.0 0.3 16496 6840 ? Ss 15:00 0:00 /usr/sbin/httpd
apache 20628 0.0 0.3 16496 6960 ? S 15:00 0:00 /usr/sbin/httpd
apache 20629 0.0 0.3 16500 6976 ? S 15:00 0:00 /usr/sbin/httpd
apache 20630 0.0 0.3 16496 6956 ? S 15:00 0:00 /usr/sbin/httpd
apache 20631 0.0 0.3 16496 6956 ? S 15:00 0:00 /usr/sbin/httpd
apache 20632 0.0 0.3 16500 6976 ? S 15:00 0:00 /usr/sbin/httpd
apache 20633 0.0 0.3 16496 6956 ? S 15:00 0:00 /usr/sbin/httpd
apache 20634 0.0 0.3 16496 6956 ? S 15:00 0:00 /usr/sbin/httpd
apache 20635 0.0 0.3 16496 6856 ? S 15:00 0:00 /usr/sbin/httpd
To verify its running correctly grab the PID of the httpd process that is running as root and do something like this
Code: ls /proc/20627/root/
It should show you the directory structure of /chroot/httpd
|
|
|
Trouble playing certain videos with mplayer(codec issue) |
Posted by: shadowphone - 2006-04-24, 02:43 PM - Forum: SUSE
- Replies (3)
|
 |
Hello I have a problem i'm trying to sort out. I have suse 10 and I use mplayer to play my videos. Most play fine but there are certain disks I have that simply don't work even tho I have the win32codec pack installed on my system. I'm kinda lost as to what to do next so any help would be appreciated. When I run the file which is either an mpeg or a .avi I get an audi codec error and garbage shown in the screen. If I run mplayer from the console I get the output below.
RAWDV file format detected.
VIDEO: [DVSD] 720x480 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening audio decoder: [libdv] Raw DV Audio Decoder
Unknown/missing audio format -> no sound
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Cannot find codec 'dvaudio' in libavcodec...
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x56444152.
Read DOCS/HTML/en/codecs.html!
==========================================================================
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 UYVY
Decoder is capable of YUV output (flags 0x9)
VDec: vo config request - 720 x 480 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x480 => 720x480 Packed YUY2
Selected video codec: [qdv] vfm:dshow (Sony Digital Video (DV))
==========================================================================
Audio: no sound
Starting playback...
No bind found for key MOUSE_BTN0
V: 61.0 1830/1830 58% 7% 0.0% 0 0
|
|
|
|