jedipi
Members-
Content Count
345 -
Joined
-
Last visited
Everything posted by jedipi
-
Strange Opendir Problem does not work for /home directory
jedipi replied to jedipi's topic in Websites and Web Designing
After a few day, the problem was fixed finally.My friend just tell me to disable SELINUX.After SELINUX is disable, the test script runs well.to qwijibow: you are quite right. I should design my script to work more securely. However, I just started to learn perl about two weeks ago.I will spend more time on it.Thanks for your help. -
Install jdk1.5.0 under Fedora core 4 I used to use JDK1.4.2. However JDK 1.5.0 was released long time ago. Today, I got it updated. Here are the steps for newbies: 1. Download Jdk1.5.0. This is a must . Everone know where to get it. anyway, here is the address: http://www.oracle.com/technetwork/java/index.html The newest version is JDK 5.0 Update 4. you can choose Linux self-extracting file or Linux RPM in self-extracting file. For me, I use Linux self-extracting file (jdk-1_5_0_04-linux-i586.bin) 2. Change the directory to where you save the .bin file. then run/execute it. CONSOLE ./jdk-1_5_0-linux-i586.bin A directory jdk1.5.0_04 will be extracted automatically. After that, move the directory jdk1.5.0_04 to /usr/local/. Easy!!?? 3.Setup evironment variable. For normal user, you need to edit your user profile it locates in your home directory, ~/.bashrc use you favorite text editor to open it, and add the follow content into it. JAVA_HOME=/usr/local/jddk1.5.0_04PATH=$PATH:$JAVA_HOME/binCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport JAVA_HOME PATH CLASSPATH 4.install java plugin for firefox CONSOLE ln -s /usr/local/dk1.5.0_04/jre/plugin/i386/ns7/libjavaplugin_oji.so /root/.mozilla/plugins/
-
Strange Opendir Problem does not work for /home directory
jedipi replied to jedipi's topic in Websites and Web Designing
I did a test on RHEL, but fail.It is the same problem. /home directory cannot be accessed.But why??? :)Even the permission is set to 777. It just does not work.is it anything to do with the setting of apache???I did not change any setting of my apache server. Default setting is used. -
The following is the content of my test.cgi. Permission is 777, #!/usr/bin/perlprint "Content-type: text/plain\n\n";$ss="/home";if (opendir(DIR, $ss)){ print "open $ss ok\n";}else { print "fail open $ss !\n";} after run this scripte, the result is : fail open /home ! It works if I change the value of $ss from /home to /tmp. Why does it not work when the value of $ss is /home?? How can I make it work for /home directory?? Please help. Thank you.
-
thanks moonwitch for adding the console tag.I did try to add it before I click post button.but it did look good in preveiw (even now). --- 1 line statement become 2 lines.thats why I did do that.and thanks for the suggestion...however, the problem still remain.MSN still can online.any other ideas???
-
I am trying to block MSN. The following is my config: CONSOLE iptables -A FORWARD -d gateway.messenger.hotmail.com -j DROPiptables -A FORWARD --protocol tcp --dport 1863 -j REJECT --reject-with tcp-resetfor i in `cat /etc/msnserverlist`;do /sbin/iptables -A FORWARD -d $i -j DROP;donefor i in `cat /etc/msnserverlist`;do /sbin/iptables -A FORWARD -s $i -j DROP;donemsnserverlist:207.46.4.55207.46.4.161207.46.0.74207.46.4.40207.46.6.101207.46.4.93207.46.4.38207.46.0.48207.46.0.144207.46.4.59207.46.6.29207.46.6.176207.46.0.22207.46.0.5465.54.239.20207.46.0.92207.46.0.68207.46.0.46207.46.6.186207.46.2.161207.46.0.81207.46.6.20165.54.239.140207.46.0.9661.129.45.63207.46.0.57207.46.0.75207.46.0.83207.46.0.151207.46.0.147iptables -A FORWARD -d 64.4.12.200 -p udp --dport 7001 -j DROPiptables -A FORWARD -d 64.4.12.201 -p udp --dport 7001 -j DROPiptables -A FORWARD -d 65.54.226.247 -p udp --dport 443 -j DROPiptables -A FORWARD -d 207.46.104.20 -p udp --dport 1863 -j DROPiptables -A FORWARD -d 207.46.106.99 -p udp --dport 1863 -j DROPiptables -A FORWARD -d 207.46.110.254 -p udp --dport 80 -j DROPiptables -A FORWARD -s 64.4.12.200 -p udp --sport 7001 -j DROPiptables -A FORWARD -s 64.4.12.201 -p udp --sport 7001 -j DROPiptables -A FORWARD -s 65.54.226.247 -p udp --sport 443 -j DROPiptables -A FORWARD -s 207.46.104.20 -p udp --sport 1863 -j DROPiptables -A FORWARD -s 207.46.106.99 -p udp --sport 1863 -j DROPiptables -A FORWARD -s 207.46.110.254 -p udp --sport 80 -j DROPiptables -A FORWARD -d 64.4.12.200 -p tcp --dport 7001 -j DROPiptables -A FORWARD -d 64.4.12.201 -p tcp --dport 7001 -j DROPiptables -A FORWARD -d 65.54.226.247 -p tcp --dport 443 -j DROPiptables -A FORWARD -d 207.46.104.20 -p tcp --dport 1863 -j DROPiptables -A FORWARD -d 207.46.106.99 -p tcp --dport 1863 -j DROPiptables -A FORWARD -d 207.46.110.254 -p tcp --dport 80 -j DROPiptables -A FORWARD -s 64.4.12.200 -p tcp --sport 7001 -j DROPiptables -A FORWARD -s 64.4.12.201 -p tcp --sport 7001 -j DROPiptables -A FORWARD -s 65.54.226.247 -p tcp --sport 443 -j DROPiptables -A FORWARD -s 207.46.104.20 -p tcp --sport 1863 -j DROPiptables -A FORWARD -s 207.46.106.99 -p tcp --sport 1863 -j DROPiptables -A FORWARD -s 207.46.110.254 -p tcp --sport 80 -j DROPBut they do not work. MSN still can connect to the server.Does anyone know how to block it?? Notice from moonwitch: put console tag in, adjusted credits
-
echo $_SERVER['DOCUMENT_ROOT']; It return the file system path to your root directory by examining a server variable. echo getcwd(); It return the file system path to the directory that run this command. echo $_SERVER['PHP_SELF']; It return the Absolute Path to the file
-
/dev/null Permission Problem under a chroot environment
jedipi replied to jedipi's topic in Websites and Web Designing
The error appear when a filesystem is mounted with the "nodev" mount option and then chrooting into it. This option can be overrided by editting /etc/fstab and appending ",dev" to the options column. In my /etc/fstab, I added the "users" option in order to allow normal user to mount the specific partition: CONSOLE #cat /etc/fstab |grep /dev/hda8 /dev/hda8 /mnt/hda8 ext3 noauto,users,exec 0 0 However, the "users" mount option implies "noexec", "nosuid" and "nodev" (unless overridden by subsequent options). Therefore, when I attempt to mount /dev/hda8, I got: CONSOLE #mount /dev/hda8 #mount |grep /dev/hda8 /dev/hda8 on /mnt/hda8 type ext3 (rw,nosuid,nodev) Here, noexec is overridden by my exec option in /etc/fstab To solve the problem, I must get rid of the nodev option. I may append a ",dev" option to my /etc/fstab or mount my chroot filesystem as below: #mount /dev/hda8 /mnt/hda8 -o rw Now, the mount option is changed: #mount |grep /dev/hda8 /dev/hda8 on /mnt/hda8 type ext3 (rw) #chroot /mnt/hda8 /bin/sh sh-3.00#ls > /dev/null sh-3.00# Problem solved. Cheers! Further reference: http://knoppix.net/wiki3/index.php?title=Dev_null_permission_denied -
I logged in as Administrator and do a search with spybot search&destroy and adaware.Now my system should be clean.But the problem remains.Yea. why am I still on SP1?? I don;t know.I may Upgrad my system to SP2.Thanks for you guys suggestions.Your problem could be resolved by upgrading to SP2.
-
/dev/null Permission Problem under a chroot environment
jedipi replied to jedipi's topic in Websites and Web Designing
I did try login as root.But still got this problem#mount -t ext3 /dev/hda8 /mnt/hda8#chroot /mnt/hda8 /bin/shsh-3.00#whoamirootsh-3.00#ls -l /dev/nullcrw-rw-rw- 1 root root 1, 3 May 30 17:18 /dev/nullsh-3.00#ls > /dev/nullsh: /dev/null: Permission deniedsh-3.00#any ideas???? -
My system is Windows XP SP1.The icon of sound volume control in task bar disappeared.It does appear after I tick the "Place volume icon in the taskbar" in Control Panel -> Sound and Audio Devices.But it disppears when the system is rebooted next time.How can I fix this problem??
-
Hello Dear,I installed Kanotix successfully on a USB HDD.everything is working fine and no problems in booting. I have installed another source based distro in it but this time I got trouble. When I chroot into it, I am unable to build the initrd under a chroot environment because of the /dev/null permission problem.In a bash shell, if I run: CONSOLE jedipi@Xen#ls.......(list of files)...jedipi@Xen#ls > /dev/nulljedipi@Xen#So, this is normal.However, under a chroot environment, e.g.CONSOLE jedipi@Xen#mount -t ext3 /dev/hda8 /mnt/hda8jedipi@Xen#chroot /mnt/hda8 /bin/shsh-3.00#ls > /dev/nullsh: /dev/null: Permission deniedsh-3.00#Why is that?How can I use /dev/null under a chroot environment?
-
I always need to creat PowerPoint slides. Most of my Powerpoint slides are about 20~30MB as they contain a lot of pictures, graphs. Usually, I save them as PDF files. The size of PDF file is smaller than ppt. And it is more secure compare to PPT. Anyways, when the slides are shared inside the organisation, PPT format is must. sending out a (or a few)20~30MB PPT file is a painful, time consumed. WinZip、WinRar does not help too much. Today, I found a special software that can help me on this. It is NXPowerLite. It can reduce the size of PPT files radically. A 20MB PPT file can be reduce to 1.7MB after it is processed by NXPowerLite. The quality of pictures and graphs look ok on the screen. I have not try to print them out. I think the printing quality should be ok as well. One more thing, NXPower can be run direactly as it is single, stand-alone file that does not need to be installed ** Highly recommened Platform: Win9x/Me/NT/2000/XP Website: http://www.neuxpower.com/?ld=n
-
You hard disk may have some problmes such as bad sectors.If this happen, no much chances for you to get the notes back.anyway, you can try Live CD. If you don;t have one and you have another PC, install that hard diskto your another PC as slave drive. That should be allow you to access the notes on it.
-
Hey guys, The new version Mozilla Firefox 1.0.5 was released. This is a security update only. Don;t expect any new feature. I recommend to install this latest version since it has several security fixes and improvements to stability. I just updated from 1.0.4 and had no problems with my existing settings and extensions: Adblock Plus 0.5.8 CuteMenus 0.4 Menu Editor 1.2 Slim Extension List 0.1 Tabbrowser extension Mouse Gestures 1.0 Anyway, if you want to have new feature, try Deer Park build. Deer Park is the code name for Firefox 1.1. Download here Firefox 1.0.5
-
Drivers Using Cellphone cellphones can maximise accidents
jedipi replied to atm's topic in Science and Technology
in hong kong, it is illegal.How about in other countries??? -
I am looking for a good and free password manager software.it seems a lot of this kind of software.Which one do you use?Could you guys give me some recommendation? What I am using is Password Agent 2.3.3.BUt I am not quite happy with it.Jedi.
-
Vim Error Xlib: connection to :0.0 refused
jedipi replied to jedipi's topic in Websites and Web Designing
Thanks for you guys' helpProblme fixed.... -
I have this problem as well here are the error messages ... And I don;t why all me post are invisible.... I could not see them after I made the post..
-
Please help.Currently, all my new post (new topic or reply) are invisible???Why does this happen?? I didn't change any setting of my account.and I use Firefox 1.04 with Windows XP
-
Vim Error Xlib: connection to :0.0 refused
jedipi replied to jedipi's topic in Websites and Web Designing
Thank you for your help....I wonder to know how to made invisible post...for this topic, I just click on NEW THREAD buttom, fill in, preview, then post..I dont know why it was invisible.for this reply, I use "fast reply". will it invisible?? lets try -
Winning Eleven 9, 4 august 2005 ON SALE http://www.konami.jp/404.html Play Movie somehow, I have a litle bit TIRED on WE series..... release new one for LIITLE change only.. konami is adding improvement little by little in every episode. continue to complain, continue to buy..... finally, there are real kits for chelsea!! yeah!!
-
under normal user, vim command (in terminal) did not have any error.However, after I su to root, vim gave me error messages CONSOLE jedi@debian:~$ vim my.lstjedi@debian:~$ vim my.lstjedi@debian:~$ suPassword:debian:/home/jedi# vim my.lstXlib: connection to ":0.0" refused by serverXlib: No protocol specifiedXlib: connection to ":0.0" refused by serverXlib: No protocol specifiedXlib: connection to ":0.0" refused by serverXlib: No protocol specifieddebian:/home/jedi#what does cause this problem?? How can I fix it??Thank you.
-
Partitioning A Drive Can someone explain to me how?
jedipi replied to Trojan's topic in Websites and Web Designing
yes....too many ways to do this job...I use fdisk. it is a dos program which is include in win95/98/ME boot disk.it is a very simple:1. use win95/98/ME boot disk to boot up your computer.2. issuse fdisk command. it looks like this CONSOLE A:> fdisk3.Create a Primary partition4.Create extension partion5.create logic partion.That's it. Try it.