Root# stty -onclr -echo echonl
This post was directed to Linc Davis , but I can't seem to get his attention , so if anyone can please direct him to take a look at this post , I would greatly appreciate it , and of course , any one can take a look at this as well .
Hey Linc Davis
First , thank you for your contributions to the Apple Forum . You are very helpful , to say the least .
Next , I have something for you to please take a look at :
This may or may not have any relation to posts on regarding Apple Mac Graphics Memory And Virtual Memory problems posted in the forum , but any way here we go :
Problems are happening on my Mountain Lion OS X Mac .
Upon trying to get an understanding of what's going on , I started at the BIOS EFI UEFI level , and found something :
I did a startup with this , ie Verbose Mode And Single User :
Power + Command + V + S
And what I got was :
root#
And then I looked around at the Verbose Mode And Single User , tried to understand what was going on in there , and then I simply moved up with the arrow key , Up Arrow .
Of course , just like in Terminal , when you go up you find the history or past .
What I find in my first line in the root# is this :
root# stty -onclr -echo echonl
Will you please let me know if you do or don't know what this line is ?
Oui or No .
Please explain in detail if Oui .
Merci beaucoup
--OSX128bit
See https://discussions.apple.com/thread/4947606?tstart=0
One post.
Has a "to Linc" content but not in title.
I did not understand the question so moved on despite the "Messages" tag.
10:41 PM Saturday; April 6, 2013
iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad
"Limit the Logs to the Bits above Binary Images." No, Seriously
Similar Messages
-
:/ root# /usr/bin/atos -p "1" -printHeader
All of the your contributions to the Apple Forum is greatly appreciated .
This is continued from the last inquiry.
This may or may not have any relation to posts on regarding Apple Mac Graphics Memory And Virtual Memory problems posted in the forum , but here we go :
Problems are happening on my Mountain Lion OS X Mac .
Upon trying to get an understanding of what's going on , I started at the BIOS EFI UEFI level , and found something :
I did a startup with this , ie Verbose Mode And Single User :
Power + Command + V + S
And what I got was :
root#
And then I looked around at the Verbose Mode And Single User , tried to understand what was going on in there , and then I simply moved up with the arrow key , Up Arrow .
Of course , just like in Terminal , when you go up you find the history or past .
What I find in all of my lines in the root# is this :
:/ root# stty -onclr -echo echonl
:/ root# /usr/bin/atos -p "1" -printHeader
:/ root# /usr/bin/atos -p "10" -printHeader
:/ root# /usr/bin/atos -p "11" -printHeader
:/ root# /usr/bin/atos -p "13" -printHeader
:/ root# /usr/bin/atos -p "14" -printHeader
:/ root# /usr/bin/atos -p "15" -printHeader
:/ root# /usr/bin/atos -p "16" -printHeader
:/ root# /usr/bin/atos -p "17" -printHeader
:/ root# /usr/bin/atos -p "18" -printHeader
:/ root# /usr/bin/atos -p "19" -printHeader
:/ root# /usr/bin/atos -p "20" -printHeader
:/ root# /usr/bin/atos -p "21" -printHeader
:/ root# /usr/bin/atos -p "22" -printHeader
:/ root# /usr/bin/atos -p "26" -printHeader
:/ root# /usr/bin/atos -p "27" -printHeader
:/ root# /usr/bin/atos -p "29" -printHeader
:/ root# /usr/bin/atos -p "33" -printHeader
:/ root# /usr/bin/atos -p "35" -printHeader
:/ root# /usr/bin/atos -p "36" -printHeader
:/ root# /usr/bin/atos -p "38" -printHeader
:/ root# /usr/bin/atos -p "39" -printHeader
:/ root# /usr/bin/atos -p "41" -printHeader
:/ root# /usr/bin/atos -p "43" -printHeader
:/ root# /usr/bin/atos -p "47" -printHeader
:/ root# /usr/bin/atos -p "51" -printHeader
:/ root# /usr/bin/atos -p "58" -printHeader
:/ root# /usr/bin/atos -p "70" -printHeader
:/ root# /usr/bin/atos -p "83" -printHeader
:/ root# /usr/bin/atos -p "85" -printHeader
:/ root# /usr/bin/atos -p "88" -printHeader
:/ root# /usr/bin/atos -p "89" -printHeader
:/ root# /usr/bin/atos -p "104" -printHeader
:/ root# /usr/bin/atos -p "114" -printHeader
:/ root# /usr/bin/atos -p "116" -printHeader
:/ root# /usr/bin/atos -p "120" -printHeader
:/ root# /usr/bin/atos -p "126" -printHeader
:/ root# /usr/bin/atos -p "129" -printHeader
:/ root# /usr/bin/atos -p "130" -printHeader
:/ root# /usr/bin/atos -p "133" -printHeader
:/ root# /usr/bin/atos -p "137" -printHeader
:/ root# /usr/bin/atos -p "138" -printHeader
:/ root# /usr/bin/atos -p "140" -printHeader
:/ root# /usr/bin/atos -p "144" -printHeader
:/ root# /usr/bin/atos -p "146" -printHeader
:/ root# /usr/bin/atos -p "153" -printHeader
:/ root# /usr/bin/atos -p "154" -printHeader
:/ root# /usr/bin/atos -p "155" -printHeader
:/ root# /usr/bin/atos -p "156" -printHeader
:/ root# /usr/bin/atos -p "158" -printHeader
:/ root# /usr/bin/atos -p "159" -printHeader
:/ root# /usr/bin/atos -p "160" -printHeader
:/ root# /usr/bin/atos -p "162" -printHeader
:/ root# /usr/bin/atos -p "165" -printHeader
:/ root# /usr/bin/atos -p "166" -printHeader
:/ root# /usr/bin/atos -p "168" -printHeader
:/ root# /usr/bin/atos -p "170" -printHeader
:/ root# /usr/bin/atos -p "171" -printHeader
:/ root# /usr/bin/atos -p "172" -printHeader
:/ root# /usr/bin/atos -p "173" -printHeader
:/ root# /usr/bin/atos -p "178" -printHeader
:/ root# /usr/bin/atos -p "179" -printHeader
:/ root# /usr/bin/atos -p "181" -printHeader
:/ root# /usr/bin/atos -p "182" -printHeader
:/ root# /usr/bin/atos -p "184" -printHeader
:/ root# /usr/bin/atos -p "187" -printHeader
:/ root# /usr/bin/atos -p "209" -printHeader
:/ root# /usr/bin/atos -p "210" -printHeader
:/ root# /usr/bin/atos -p "257" -printHeader
:/ root# /usr/bin/atos -p "266" -printHeader
:/ root# /usr/bin/atos -p "342" -printHeader
:/ root# /usr/bin/atos -p "358" -printHeader
:/ root# /usr/bin/atos -p "362" -printHeader
Will you please explain what these lines mean ?
--OSX128bitHi,
Tagging the Post with "everything" from the Category list is not helpful.
Categories: Account & Login, Finder & Dock, Getting Online & Networking, Messages, Notes & Reminders, Installation & Setup, Mail & Contacts, Printing, faxing, and scanning, Time Machine, Universal Access, Using OS X Mountain Lion
Some of us only reply to Posts tagged with what we know about.
I was looking for ones about the Messages app.
8:41 PM Sunday; April 7, 2013
iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad
"Limit the Logs to the Bits above Binary Images." No, Seriously -
:/ root# /usr/bin/atos -p "BezelUIServer" -printHeader
All of the your contributions to the Apple Forum is greatly appreciated .
This is continued from the last inquiry.
This may or may not have any relation to posts on regarding Apple Mac Graphics Memory And Virtual Memory problems posted in the forum , but here we go :
Problems are happening on my Mountain Lion OS X Mac .
Upon trying to get an understanding of what's going on , I started at the BIOS EFI UEFI level , and found something :
I did a startup with this , ie Verbose Mode And Single User :
Power + Command + V + S
And what I got was :
root#
And then I looked around at the Verbose Mode And Single User , tried to understand what was going on in there , and then I simply moved up with the arrow key , Up Arrow .
Of course , just like in Terminal , when you go up you find the history or past .
What I find in all of my lines in the root# is this :
:/ root# stty -onclr -echo echonl
:/ root# /usr/bin/atos -p "1" -printHeader
:/ root# /usr/bin/atos -p "10" -printHeader
:/ root# /usr/bin/atos -p "11" -printHeader
:/ root# /usr/bin/atos -p "13" -printHeader
:/ root# /usr/bin/atos -p "14" -printHeader
:/ root# /usr/bin/atos -p "15" -printHeader
:/ root# /usr/bin/atos -p "16" -printHeader
:/ root# /usr/bin/atos -p "17" -printHeader
:/ root# /usr/bin/atos -p "18" -printHeader
:/ root# /usr/bin/atos -p "19" -printHeader
:/ root# /usr/bin/atos -p "20" -printHeader
:/ root# /usr/bin/atos -p "21" -printHeader
:/ root# /usr/bin/atos -p "22" -printHeader
:/ root# /usr/bin/atos -p "26" -printHeader
:/ root# /usr/bin/atos -p "27" -printHeader
:/ root# /usr/bin/atos -p "29" -printHeader
:/ root# /usr/bin/atos -p "33" -printHeader
:/ root# /usr/bin/atos -p "35" -printHeader
:/ root# /usr/bin/atos -p "36" -printHeader
:/ root# /usr/bin/atos -p "38" -printHeader
:/ root# /usr/bin/atos -p "39" -printHeader
:/ root# /usr/bin/atos -p "41" -printHeader
:/ root# /usr/bin/atos -p "43" -printHeader
:/ root# /usr/bin/atos -p "47" -printHeader
:/ root# /usr/bin/atos -p "51" -printHeader
:/ root# /usr/bin/atos -p "58" -printHeader
:/ root# /usr/bin/atos -p "70" -printHeader
:/ root# /usr/bin/atos -p "83" -printHeader
:/ root# /usr/bin/atos -p "85" -printHeader
:/ root# /usr/bin/atos -p "88" -printHeader
:/ root# /usr/bin/atos -p "89" -printHeader
:/ root# /usr/bin/atos -p "104" -printHeader
:/ root# /usr/bin/atos -p "114" -printHeader
:/ root# /usr/bin/atos -p "116" -printHeader
:/ root# /usr/bin/atos -p "120" -printHeader
:/ root# /usr/bin/atos -p "126" -printHeader
:/ root# /usr/bin/atos -p "129" -printHeader
:/ root# /usr/bin/atos -p "130" -printHeader
:/ root# /usr/bin/atos -p "133" -printHeader
:/ root# /usr/bin/atos -p "137" -printHeader
:/ root# /usr/bin/atos -p "138" -printHeader
:/ root# /usr/bin/atos -p "140" -printHeader
:/ root# /usr/bin/atos -p "144" -printHeader
:/ root# /usr/bin/atos -p "146" -printHeader
:/ root# /usr/bin/atos -p "153" -printHeader
:/ root# /usr/bin/atos -p "154" -printHeader
:/ root# /usr/bin/atos -p "155" -printHeader
:/ root# /usr/bin/atos -p "156" -printHeader
:/ root# /usr/bin/atos -p "158" -printHeader
:/ root# /usr/bin/atos -p "159" -printHeader
:/ root# /usr/bin/atos -p "160" -printHeader
:/ root# /usr/bin/atos -p "162" -printHeader
:/ root# /usr/bin/atos -p "165" -printHeader
:/ root# /usr/bin/atos -p "166" -printHeader
:/ root# /usr/bin/atos -p "168" -printHeader
:/ root# /usr/bin/atos -p "170" -printHeader
:/ root# /usr/bin/atos -p "171" -printHeader
:/ root# /usr/bin/atos -p "172" -printHeader
:/ root# /usr/bin/atos -p "173" -printHeader
:/ root# /usr/bin/atos -p "178" -printHeader
:/ root# /usr/bin/atos -p "179" -printHeader
:/ root# /usr/bin/atos -p "181" -printHeader
:/ root# /usr/bin/atos -p "182" -printHeader
:/ root# /usr/bin/atos -p "184" -printHeader
:/ root# /usr/bin/atos -p "187" -printHeader
:/ root# /usr/bin/atos -p "209" -printHeader
:/ root# /usr/bin/atos -p "210" -printHeader
:/ root# /usr/bin/atos -p "257" -printHeader
:/ root# /usr/bin/atos -p "266" -printHeader
:/ root# /usr/bin/atos -p "342" -printHeader
:/ root# /usr/bin/atos -p "358" -printHeader
:/ root# /usr/bin/atos -p "362" -printHeader
:/ root# /usr/bin/atos -p "BezelUIServer" -printHeader
Will you please explain by chance what BezelUIServer means ?
--OSX128bitThis is not a forum for asking random questions like you have been. It is a user to user tech support forum. If you have a problem with your Mac or Apple Software, please ask.
For answers to your current crop of questions, please purchase a book or peruse the Apple Developer Reference Library.
https://developer.apple.com/library/mac/ -
/sbin/fsck -fy /sbin/mount -uw /
All of the your contributions to the Apple Forum is greatly appreciated .
This is continued from the last inquiry.
This may or may not have any relation to posts on regarding Apple Mac Graphics Memory And Virtual Memory problems posted in the forum , but here we go :
Problems are happening on my Mountain Lion OS X Mac .
Upon trying to get an understanding of what's going on , I started at the BIOS EFI UEFI level , and found something :
I did a startup with this , ie Verbose Mode And Single User :
Power + Command + V + S
And what I got was :
root#
And then I looked around at the Verbose Mode And Single User , tried to understand what was going on in there , and then I simply moved up with the arrow key , Up Arrow .
Of course , just like in Terminal , when you go up you find the history or past .
What I find before my lines of the root# is this :
BSD root: disk0s2, major 1, minor 2
FireWire (OHCI) Lucent ID
Kernel is LP64
com.apple.launchd 1 com.apple.launchd 1 *** launchd[1] has started up in single-user mode. ***
com.apple.launchd 1 com.apple.launchd *** Verbose boot, will log to /dev/console. ***
com.apple.launchd 1 com.apple.launchd *** Shutdown logging is enables. ***
AppleUSBMultitouchDriver::checkStatus - received Status Packet, Payload 2: device was reinitialized
Singleuser boot -- fsck not done
Root device is mounted read-only
If you want to make modifications to files:
/sbin/fsck -fy
/sbin/mount -uw /
If you wish to boot the system:
exit
:/ root#
:/ root# stty -onclr -echo echonl
:/ root# /usr/bin/atos -p "1" -printHeader
:/ root# /usr/bin/atos -p "BezelUIServer" -printHeader
Will you please explain what the fsck not done , and also the Root device is mounted read-only means ?
Also , please advise what should I try first -fy or -uw / ?
I have backed up my data. Thanks everyone for the useful Apple Forum tips on how to exactly get the data you choose to backup. Excellent.
--OSX128bitIf you have to ask those questions then you really should not be booting into single user mode. You can cause real damage to your system.
Briefly fsck is a program to check and repair disk drives. The root device mounted read only means the root disk is not writeable,
If you thing there is problems with your system boot into safe mode (hold the shift key while booting) and see if the problems go away or change.
BTW you never said why it is you are booting into single user.
good luck -
[SOLVED] Installing on ZFS root: "ZFS: cannot find bootfs" on boot.
I have been experimenting with ZFS filesystems on external HDDs for some time now to get more comfortable with using ZFS in the hopes of one day reinstalling my system on a ZFS root.
Today, I tried installing a system on an USB external HDD, as my first attempt to install on ZFS (I wanted to try in a safe, disposable environment before I try this on my main system).
My partition configuration (from gdisk):
Command (? for help): p
Disk /dev/sdb: 3907024896 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 2FAE5B61-CCEF-4E1E-A81F-97C8406A07BB
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907024862
Partitions will be aligned on 8-sector boundaries
Total free space is 0 sectors (0 bytes)
Number Start (sector) End (sector) Size Code Name
1 34 2047 1007.0 KiB EF02 BIOS boot partition
2 2048 264191 128.0 MiB 8300 Linux filesystem
3 264192 3902828543 1.8 TiB BF00 Solaris root
4 3902828544 3907024862 2.0 GiB 8300 Linux filesystem
Partition #1 is for grub, obviously. Partition #2 is an ext2 partition that I mount on /boot in the new system. Partition #3 is where I make my ZFS pool.
Partition #4 is an ext4 filesystem containing another minimal Arch system for recovery and setup purposes. GRUB is installed on the other system on partition #4, not in the new ZFS system.
I let grub-mkconfig generate a config file from the system on partition #4 to boot that. Then, I manually edited the generated grub.cfg file to add this menu entry for my ZFS system:
menuentry 'ZFS BOOT' --class arch --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux zfs=bootfs zfs_force=1 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
My ZFS configuration:
# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
External2TB 1.81T 6.06G 1.81T 0% 1.00x ONLINE -
# zpool status :(
pool: External2TB
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
External2TB ONLINE 0 0 0
usb-WD_Elements_1048_575836314135334C32383131-0:0-part3 ONLINE 0 0 0
errors: No known data errors
# zpool get bootfs
NAME PROPERTY VALUE SOURCE
External2TB bootfs External2TB/ArchSystemMain local
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
External2TB 14.6G 1.77T 30K none
External2TB/ArchSystemMain 293M 1.77T 293M /
External2TB/PacmanCache 5.77G 1.77T 5.77G /var/cache/pacman/pkg
External2TB/Swap 8.50G 1.78T 20K -
The reason for the above configuration is that after I get this system to work, I want to install a second system in the same zpool on a different dataset, and have them share a pacman cache.
GRUB "boots" successfully, in that it loads the kernel and the initramfs as expected from the 2nd GPT partition. The problem is that the kernel does not load the ZFS:
ERROR: device '' not found. Skipping fsck.
ZFS: Cannot find bootfs.
ERROR: Failed to mount the real root device.
Bailing out, you are on your own. Good luck.
and I am left in busybox in the initramfs.
What am I doing wrong?
Also, here is my /etc/fstab in the new system:
# External2TB/ArchSystemMain
#External2TB/ArchSystemMain / zfs rw,relatime,xattr 0 0
# External2TB/PacmanCache
#External2TB/PacmanCache /var/cache/pacman/pkg zfs rw,relatime,xattr 0 0
UUID=8b7639e2-c858-4ff6-b1d4-7db9a393578f /boot ext4 rw,relatime 0 2
UUID=7a37363e-9adf-4b4c-adfc-621402456c55 none swap defaults 0 0
I also tried to boot using "zfs=External2TB/ArchSystemMain" in the kernel options, since that was the more logical way to approach my intention of having multiple systems on different datasets. It would allow me to simply create separate grub menu entries for each, with different boot datasets in the kernel parameters. I also tried setting the mount points to "legacy" and uncommenting the zfs entries in my fstab above. That didn't work either and produced the same results, and that was why I decided to try to use "bootfs" (and maybe have a script for switching between the systems by changing the ZFS bootfs and mountpoints before reboot, reusing the same grub menuentry).
Thanks in advance for any help.
Last edited by tajjada (2013-12-30 20:03:09)Sounds like a zpool.cache issue. I'm guessing your zpool.cache inside your arch-chroot is not up to date. So on boot the ZFS hook cannot find the bootfs. At least, that's what I assume the issue is, because of this line:
ERROR: device '' not found. Skipping fsck.
If your zpool.cache was populated, it would spit out something other than an empty string.
Some assumptions:
- You're using the ZFS packages provided by demizer (repository or AUR).
- You're using the Arch Live ISO or some version of it.
On cursory glance your configuration looks good. But verify anyway. Here are the steps you should follow to make sure your zpool.cache is correct and up to date:
Outside arch-chroot:
- Import pools (not using '-R') and verify the mountpoints.
- Make a copy of the /etc/zfs/zpool.cache before you export any pools. Again, make a copy of the /etc/zfs/zpool.cache before you export any pools. The reason for this is once you export a pool the /etc/zfs/zpool.cache gets updated and removes any reference to the exported pool. This is likely the cause of your issue, as you would have an empty zpool.cache.
- Import the pool containing your root filesystem using the '-R' flag, and mount /boot within.
- Make sure to copy your updated zpool.cache to your arch-chroot environment.
Inside arch-chroot:
- Make sure your bootloader is configured properly (i.e. read 'mkinitcpio -H zfs').
- Use the 'udev' hook and not the 'systemd' one in your mkinitcpio.conf. The zfs-utils package does not have a ported hook (as of 0.6.2_3.12.6-1).
- Update your initramfs.
Outside arch-chroot:
- Unmount filesystems.
- Export pools.
- Reboot.
Inside new system:
- Make sure to update the hostid then rebuild your initramfs. Then you can drop the 'zfs_force=1'.
Good luck. I enjoy root on ZFS myself. However, I wouldn't recommend swap on ZFS. Despite what the ZoL tracker says, I still ran into deadlocks on occasion (as of a month ago). However, I cannot say definitely the cause of the issue; but it resolved when I moved swap off ZFS to a dedicated partition.
Last edited by NVS (2013-12-29 14:56:44) -
[root@doc java]# java heu.class
Sorry for trivial question. I compile and try to run simple application Hello World. Why I got this error?
Exception in thread "main" java.lang.NoClassDefFoundError: heu/class
[root@doc java]# echo $CLASSPATH
/usr/java/j2sdk1.4.0/:/usr/java/j2sdk1.4.0/jre/lib/rt.jar
[root@doc java]# echo $JAVA_HOME
/usr/java/j2sdk1.4.0/Easy:
Just add the actual path (.) to the classpath and don't run java heu.class but java heu (without ".class") -
HELP! Unable to run root.sh
I have just started to install the Oracle 8.0.5 for Linux and
have run into a little problem (I am using RedHat 5.1). I setup
the proper oracle user and group and set up the proper env
variables in the .profile of the oralce user I setup like so:
LD_LIBRARY_PATH="$ORACLE_HOME/lib"
ORACLE_BASE="/u01/app/oracle"
TMP_DIR="/tmp"
ORACLE_TERM="vt100"
PATH="$PATH:/$ORACLE_HOME/bin"
ORACLE_SID="doug"
export LD_LIBRARY_PATH ORACLE_BASE TMP_DIR ORACLE_TERM ORACLE_SID
PATH
I then went in as the Oracle user and in /cdrom/orainst I looked
for the file orainst like the instructions say but instead find:
00_TRANS.TBL crora.sh* install* root.sh
I am not sure where the orainst file is but I run install
instead, it asks me a few questions (mentions that it will
require only 300MB of disk space - this seems small) - what is
the ORACLE_HOME and ORACLE_SID and then says "extracting from the
CD". Then it says:
Do you want to create a database now? [n]
y
Saving listener.ora -> listener.ora.sav
Saving tnsnames.ora -> tnsnames.ora.sav
Creating listener.ora ...
Creating tnsnames.ora ...
Creating database ...
Environment settings are in file in /opt/oracle/.env
To set environment :
$ cd $ORACLE_HOME; . ./.env
Installation complete.
Login as root and run root.sh
This is where all the problems start. I log into another term as
root, set the env settings like it says (for both the oracle dba
user and root just to be safe) with the .env script and then I
try to run root.sh as root and receive the message:
[root@localhost orainst]# ./root.sh
Please set ORACLE_HOME, ORACLE_SID environment variables before
invoking this and run this as root
/bin/chmod: oracle: No such file or directory
/bin/chmod: oracle: No such file or directory
[root@localhost orainst]#
The problem that I have here is that the ORACLE_HOME and
ORACLE_SID are set. When I echo these variables they are set:
[root@localhost orainst]# echo $ORACLE_HOME
/opt/oracle
[root@localhost orainst]# echo $ORACLE_SID
doug
What seems to be the problem here? The one other thing here is
that I have verified that the oratab file has been created. I was
not able to find the oratab.sh script but I found a oratab in
/etc. I read in the documentation that this should be in
/var/opt/oracle. I have copied the /etc/oratab to this location
just to make sure. Can anyone tell me what it is that I need to
do to run root.sh and exactly what the next step is in this crasy
install process.
Thank you for your time.
nullTry to run JDK demo's jar file in win98-cn ,does it ok?
Can you use "java ..." command to complie any java file ?
Please check you jdk setting in win98. -
I cant reboot. Shutdown freezes at sending SIGTERM to processes
I could use some advice. For the past 4 months or so I have not been able to do a full shutdown or reboot. When I run the shutdown -r now or reboot commands the process starts but freezes at Sending SIGTERM to processes. At this point I can switch to diffrent terminals with Ctrl+Alt+F? but I cant type.The only thing I can do is hold my power button down to shut off. I have been searching online fore awhile and restored my rc.shutdown script to the original backup I have from months ago but I am still having the same issues. Ill attach my local and shutdown scripts
Thanks for taking a look.
rc.local
#!/bin/bash
# /etc/rc.local: Local multi-user startup script.
#/bin/plymouth quit --retain-splash
alsactl -f /var/lib/alsa/asound.state restore
#rm /tmp/.X25-lock
mount LABEL=Backup /home/ahron/Dropbox/Backup
mount LABEL=FatBackup '/home/ahron/Backup Images'
#su ahron -c "vncserver -geometry 800x600 -alwaysshared -localhost -dpi 96 :25"
rc.shutdown
#!/bin/bash
# /etc/rc.shutdown
. /etc/rc.conf
. /etc/rc.d/functions
# avoid staircase effect
stty onlcr
echo " "
printhl "Initiating Shutdown..."
echo " "
run_hook shutdown_start
[[ -x /etc/rc.local.shutdown ]] && /etc/rc.local.shutdown
stop_all_daemons
run_hook shutdown_prekillall
kill_all
run_hook shutdown_postkillall
stat_busy "Saving Random Seed"
RANDOM_SEED=/var/lib/misc/random-seed
install -TDm 0600 <(:) $RANDOM_SEED
POOL_FILE=/proc/sys/kernel/random/poolsize
if [[ -r $POOL_FILE ]]; then
read POOL_SIZE < $POOL_FILE
else
POOL_SIZE=512
fi
dd if=/dev/urandom of=$RANDOM_SEED count=1 bs=$POOL_SIZE &>/dev/null
stat_done
[[ $TIMEZONE ]] &&
status "Saving Time Zone" \
cp --remove-destination "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime
# Write to wtmp file before unmounting
halt -w
status "Deactivating Swap" swapoff -a
# stop monitoring of lvm2 groups before unmounting filesystems
[[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) && -d /sys/block ]] &&
status "Deactivating monitoring of LVM2 groups" \
vgchange --monitor n &>/dev/null
# if we don't have devtmpfs support, /dev is mounted as tmpfs, so don't unmount it
status "Unmounting Filesystems" \
umount -a -r -t nodevtmpfs,notmpfs,nosysfs,noproc,nodevpts -O no_netdev
run_hook shutdown_postumount
# Kill non-root encrypted partition mappings
if [[ -f /etc/crypttab && $CS ]] && grep -q ^[^#] /etc/crypttab; then
stat_busy "Deactivating encrypted volumes:"
# Maybe someone has LVM on an encrypted block device
# executing an extra vgchange is errorless
[[ $USELVM = [Yy][Ee][Ss] ]] && vgchange --sysinit -a n &>/dev/null
do_lock() {
stat_append "${1}.."
if $CS remove "$1" &>/dev/null; then
stat_append "ok "
else
stat_append "failed "
fi
read_crypttab do_lock
stat_done
fi
[[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) && -d /sys/block ]] &&
status "Deactivating LVM2 groups" vgchange --sysinit -a n &>/dev/null
status "Remounting Root Filesystem Read-only" \
lsof /
mount -n -t ext4 --verbose -o remount,ro /dev/sda3 /
reboot -d -f -i
run_hook shutdown_poweroff
# Power off or reboot
printsep
if [[ $RUNLEVEL = 0 ]]; then
printhl "${C_H2}POWER OFF"
poweroff -d -f -h -i
else
printhl "${C_H2}REBOOTING"
# if kexec is installed and a kernel is loaded, use it
[[ -x $(type -P kexec) ]] && kexec -e &>/dev/null
fi
# End of file
# vim: set ts=2 sw=2 noet:
Last edited by ahronzombi (2011-11-12 17:10:43)So installing the testing initscripts seems to fix the reboot command, but still the most commonly used command shutdown -r now still wont do a full reboot.
/etc/rc.local.shutdown
#!/bin/bash
# /etc/rc.local.shutdown: Local shutdown script.
#killall dropbox
#umount /home/ahron/Dropbox/Backup
#killall Xvnc
#fuser -vm /
/etc/rc.d/functions
NETFS="nfs,nfs4,smbfs,cifs,codafs,ncpfs,shfs,fuse,fuseblk,glusterfs,davfs,fuse.glusterfs"
# Check local filesystems
fsck_all() {
fsck -A -T -C"$FSCK_FD" -a -t "no${NETFS//,/,no},noopts=_netdev" $FORCEFSCK
# Single-user login and/or automatic reboot after fsck (if needed)
fsck_reboot() {
# $1 = exit code returned by fsck
# Ignore conditions 'FS errors corrected' and 'Cancelled by the user'
(( ($1 | 33) == 33 )) && return 0
if (( $1 & 2 )); then
echo
echo "********************** REBOOT REQUIRED *********************"
echo "* *"
echo "* The system will be rebooted automatically in 15 seconds. *"
echo "* *"
echo "************************************************************"
echo
sleep 15
else
echo
echo "***************** FILESYSTEM CHECK FAILED ****************"
echo "* *"
echo "* Please repair manually and reboot. Note that the root *"
echo "* file system is currently mounted read-only. To remount *"
echo "* it read-write type: mount -n -o remount,rw / *"
echo "* When you exit the maintenance shell the system will *"
echo "* reboot automatically. *"
echo "* *"
echo "************************************************************"
echo
sulogin -p
fi
echo "Automatic reboot in progress..."
umount -a
mount -n -o remount,ro /
reboot -f
exit 0
mount_all() {
mount -a -t "nosysfs,no${NETFS//,/,no}" -O no_netdev
umount_all() {
# $1: restrict to fstype
local mounts
while read -r target fstype options; do
# match only targetted fstypes
if [[ $1 && $1 != "$fstype" ]]; then
continue
fi
# don't unmount API filesystems
if [[ $target = /@(proc|sys|run|dev|dev/pts) ]]; then
continue
fi
# avoid networked devices
IFS=, read -ra opts <<< "$options"
if in_array _netdev "${opts[@]}"; then
continue
fi
mounts+=("$target")
done < <(findmnt -runRo TARGET,FSTYPE,OPTIONS / | tac)
umount -r "${mounts[@]}"
remove_leftover() {
stat_busy "Removing Leftover Files"
# handle this separately until we declare the non-symlinks obsoleted
[[ ! -L /var/lock ]] && rm -rf /var/lock/*
if [[ ! -L /var/run && -d /var/run ]]; then
find /var/run/ \! -type d -delete
ln -s /run/daemons /var/run/daemons
fi
/usr/lib/initscripts/arch-tmpfiles --create --remove && stat_done || stat_fail
bootlogd_stop() {
[[ -f /run/bootlogd.pid ]] || return 0
touch /var/log/boot
kill $(< /run/bootlogd.pid)
rm -f /run/bootlogd.pid
sed -i -r -e 's/\^\[\[[0-9]?;?[0-9]?[0-9]?;?[0-9]?[0-9]?[ms]//g' \
-e 's/\^\[(\[1?[0-9][0-9]|%)G//g' -e 's/\^\[\[0;1//g' /var/log/boot
# Custom hooks in initscripts #
# Hooks can be used to include custom code in various places in the rc.* scripts
# Define a hook function in a functions.d file using:
# function_name() {
# add_hook hook_name function_name
# It is allowed to register several hook functions for the same hook
# Is is also allowed to register the same hook function for several hooks
# Currently, the following hooks exist:
# sysinit_start: at the beginning of rc.sysinit
# multi_start: at the beginning of rc.multi
# single_start: at the beginning of rc.single
# shutdown_start: at the beginning of rc.shutdown
# sysinit_end: at the end of rc.sysinit
# multi_end: at the end of rc.multi
# single_end: at the end of rc.single
# sysinit_udevlaunched: after udev has been launched in rc.sysinit
# single_udevlaunched: after udev has been launched in rc.single
# sysinit_udevsettled: after uevents have settled in rc.sysinit
# single_udevsettled: after uevents have settled in rc.single
# sysinit_premount: before local filesystems are mounted, but after root is mounted read-write in rc.sysinit
# sysinit_postmount: after local filesystems are mounted
# shutdown_prekillall: before all processes are being killed in rc.shutdown
# single_prekillall: before all processes are being killed in rc.single
# shutdown_postkillall: after all processes have been killed in rc.shutdown
# single_postkillall: after all processes have been killed in rc.single
# shutdown_postumount: after filesystems are unmounted
# shutdown_poweroff: directly before powering off in rc.shutdown
# Declare add_hook and run_hook as read-only to prevent overwriting them.
# Too bad we cannot do the same thing with hook_funcs
if (( RC_FUNCTIONS_HOOK_FUNCS_DEFINED != 1 )); then
declare -A hook_funcs
add_hook() {
[[ $1 && $2 ]] || return 1
hook_funcs[$1]+=" $2"
run_hook() {
[[ $1 ]] || return 1
local func
for func in ${hook_funcs["$1"]}; do
"${func}"
done
declare -fr add_hook run_hook
declare -r RC_FUNCTIONS_HOOK_FUNCS_DEFINED=1
fi
# Function for setting console font if required
set_consolefont() {
[[ $CONSOLEFONT ]] || return 0
stat_busy "Loading Console Font: $CONSOLEFONT"
#CONSOLEMAP in UTF-8 shouldn't be used
[[ $CONSOLEMAP && ${LOCALE,,} =~ utf ]] && CONSOLEMAP=""
local i
for i in /dev/tty[0-9]*; do
setfont ${CONSOLEMAP:+-m "${CONSOLEMAP}"} \
"$CONSOLEFONT" -C ${i} &>/dev/null
done
if (( $? )); then
stat_fail
elif [[ $CONSOLEMAP ]]; then
cat <<"EOF" >>/etc/profile.d/locale.sh
if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033(K"; fi
EOF
stat_done
else
stat_done
fi
if [[ $DAEMON_LOCALE = [yY][eE][sS] ]]; then
LANG=${LOCALE:-C}
if [[ -r /etc/locale.conf ]]; then
parse_envfile /etc/locale.conf "${localevars[@]}"
fi
else
export LANG=C
fi
# set colors
if [[ $USECOLOR = [yY][eE][sS] ]]; then
if tput setaf 0 &>/dev/null; then
C_CLEAR=$(tput sgr0) # clear text
C_MAIN=${C_CLEAR}$(tput bold) # main text
C_OTHER=${C_MAIN}$(tput setaf 4) # prefix & brackets
C_SEPARATOR=${C_MAIN}$(tput setaf 0) # separator
C_BUSY=${C_CLEAR}$(tput setaf 6) # busy
C_FAIL=${C_MAIN}$(tput setaf 1) # failed
C_DONE=${C_MAIN} # completed
C_BKGD=${C_MAIN}$(tput setaf 5) # backgrounded
C_H1=${C_MAIN} # highlight text 1
C_H2=${C_MAIN}$(tput setaf 6) # highlight text 2
else
C_CLEAR="\e[m" # clear text
C_MAIN="\e[;1m" # main text
C_OTHER="\e[1;34m" # prefix & brackets
C_SEPARATOR="\e[1;30m" # separator
C_BUSY="\e[;36m" # busy
C_FAIL="\e[1;31m" # failed
C_DONE=${C_MAIN} # completed
C_BKGD="\e[1;35m" # backgrounded
C_H1=${C_MAIN} # highlight text 1
C_H2="\e[1;36m" # highlight text 2
fi
fi
# prefixes:
PREFIX_REG="::"
PREFIX_HL=" >"
# Source additional functions at the end to allow overrides
for f in /etc/rc.d/functions.d/*; do
[[ -e $f ]] && . "$f"
done
# Exit current shell if user is not root
need_root() {
(( EUID )) && printf 'You need to be root.\n' && exit 1
# Quit script if it's not running by root
# This can be disabled in scripts sourcing functions by setting NEED_ROOT=0
# A local call to need_root can be done to ensure part of script need root privilege
(( ${NEED_ROOT:-0} == 1 )) && need_root
# End of file
# vim: set ts=2 sw=2 noet: -
[new] webmin(-minimal)
Heya all,
since there were quite some requests for this. I made a PKGBUILD for webmin. I have to say ... this wasn't an easy one for me. I choose for webmin-minimal so that peopel can add the modules they want.
However, when you look at the code, you'll see that it needs improvements ...
What is done:
it builds and installs. It creates a new user and group, both called webmin. these groups will be deleted when you uninstall the package (see comments if this is good or bad).
~Todo:
* No SSL can be used ... this is pretty critical I think. There is an SSLeay package in testing I saw, but webmin couldn't find it.
* I also get an error in the webmin-log that it can find a/the perl PAM-module ...
* The web-interface seems to function, but you can't request a proces-list: this is maybe a bug in the program?? Webmin requests "proc/index_.cgi", but that file doesn't exist. The file "proc/index.cgi" exists however.
* I've written code the generate a random initial password. However, this code doesn't seem to function. For the moment there is a static password ... but I suppose you'll change it when you install webmin. Anyway, Ithink it would be better if the initial one would be a random password. This code belongs in the install-file to my opinion and not in the PKGVUILD like now, but this requires some effort to implement since there is some code for setting up the password in the setup-file.
* A lot of comments in the code ...
Now it's time to sleep ... .
PKGBUILD:
#Michel Branbants <[email protected]>
pkgname=webmin
pkgver=1.170
pkgrel=1
pkgdesc="Webmin is a web-based interface for system administration for Unix. Using any browser that supports tables and forms (and Java for the File Manager module), you can setup user accounts, Apache, DNS, file sharing and so on. Webmin consists of a simple web server, and a number of CGI programs which directly update system files like /etc/inetd.conf and /etc/passwd. The web server and all CGI programs are written in Perl version 5, and use no non-standard Perl modules."
url="http://www.webmin.com"
depends=('perl>=5.0' 'coreutils')
backup=('etc/webmin/miniserv.conf')
install=webmin.install
source=(http://belnet.dl.sourceforge.net/sourceforge/webadmin/$pkgname-$pkgver-minimal.tar.gz
setup.sh.patch
copyconfig.pl.patch
webmin.install)
md5sums=('a2bc5d04524c52af8955c703179e8af4' '0332a42a04a9c522d483e8d2d61fcee1'
'72f5472f6b8fedf02cf8222cf962053b' '521d14ee48a8203f3765cadc9fbd9379')
build() {
cd $startdir/src/$pkgname-$pkgver
patch ./setup.sh $startdir/setup.sh.patch
patch ./copyconfig.pl $startdir/copyconfig.pl.patch
declare -r local installDir="/usr/share/webmin"
#configdir must be an absolute path
declare -r local configDir="/etc/webmin"
#this is the var_dir-variable
declare -r local logAndPidDir="/var/webmin"
#I added 2 new dirs to the setup-script, but I'm not completely sure if I just may add them. And what's var_dir's purpose now?So, for the log and run-files these directories should be used
declare -r local logDir="/var/log/webmin"
declare -r local pidDir="/var/run/webmin"
declare -r local os_type="generic-linux"
declare -r local os_version="2.6"
declare -r local real_os_type="Generic Linux"
declare -r local real_os_version="2.6"
declare -r local webminServerport="10000"
#username maybe not contain a ':' or a ' '(a space :)) and may not be "webmin"
declare -r local adminLoginname="admin"
#password may not contain a ':'.
#dit moet eigenlijk in de install-file
echo "generating initial administrator password ..."
declare -r local adminpass=$(genPassword 8)
echo "#The first and last quote of the loginpass-value are only to delimit the password and aren't part of the password!
initial webmin administrator-account:
loginname:$adminLoginname
loginpass:"$adminpass"" > $startdir/SHRED or REMOVE ME-webminAdminAccount
echo "info written to "SHRED or REMOVE ME-webminAdminAccount""
#no SSL need SSLeay installed somewhere perl can find it!
#post-setup-script: (line 735) setup-post.sh
./setup.sh "$installDir" "$startdir/pkg" "$configDir" "$logAndPidDir" "$webminServerport" "$adminLoginname" "$adminpass" "$os_type" "$os_version" "$real_os_type" "$real_os_version" "$logDir" "$pidDir"
echo "administrator-account-info written to "$startdir/SHRED or REMOVE ME-webminAdminAccount""
#$1 = length of Password. Must be AT LEAST 8 CHARACTERS. Some people will say this is not necessary maybe or not enough. Anyway this password is the initial password.
genPassword() {
declare -r local passLength=$1
if [[ 8 -gt $passLength ]]; then
#writing to stderr
echo "password length needs to be at least 8 characters" 1>&2
return 1
fi
declare local pass=$(genRandomString $passLength)
#the password may not contain ':'.
#Replace all occurences of ':' with another character. Mayeb first check if there is a problem ...
#could be endless loop .. but I would suppose it is a random generator ... I try maximum 3 times
#to avoid an endless loop, else the character 'A' will be chosen to replace ':'
declare local replacement=':';
declare -i local iter=1;
while [[ ':' == $replacement ]] && [[ $iter -le 3 ]]; do
replacement=`head -c 1 /dev/random`
iter=$iter+1
done
if [[ ':' == $replacement ]]; then
replacement='A'
fi
pass=${pass//:/$replacement}
echo "$pass"
return 0
#$1 = length of string.
genRandomString() {
declare -ri local stringLength=$1;
#/dev/random instead od /dev/urandom will be used for more chance on a good random values.
#/dev/random can however block if not enough input is available
declare local string
read -n $stringLength string < /dev/random
#echo "$string"
echo "QueCeraCera"
webmin.install:
#Contributor: Michel Brabants <[email protected]>
# This is a default template for a post-install scriptlet. You can
# remove any functions you don't need (and this header).
# arg 1: the new package version
pre_install() {
/bin/true
# arg 1: the new package version
post_install() {
declare -r local USER="webmin"
declare -r local GROUP="webmin"
#searching for free gid in range of 1-100 : error should be captured : todo
declare -ri freeGid=$(getFreeGid);
echo -n "Creating group $GROUP : ";
if [[ 0 -eq `/usr/sbin/groupadd -g $freeGid $GROUP` ]]; then
echo " OK";
else
echo " FAILED";
fi
#searching for free uid in range of 1-1000 : error should be captured : todo
declare -ri freeUid=$(getFreeUid);
echo -n "Creating user $USER with primary group $GROUP";
if [[ 0 -eq `/usr/sbin/useradd -c "user for webmin" -g "$GROUP" -G "$AUDIO_GROUP" -s "/bin/false" -u $freeUid $USER` ]]; then
echo " OK";
else
echo " FAILED;"
fi
update_permissions $USER $GROUP;
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
/bin/true
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
#we don't add the user again ... or should we check if it still exists?
declare -r local USER="webmin"
declare -r local GROUP="webmin"
update_permissions $USER $GROUP;
# arg 1: the old package version
pre_remove() {
/bin/true
# arg 1: the old package version
post_remove() {
rm -rf /var/log/webmin
rm -rf /var/run/webmin
declare -r local USER="webmin"
declare -r local GROUP="webmin"
#delete the webmin user. Mayeb to tricky? Somebody may be using it already
#userdel seems to delete the user and the group
echo -n "Deleting user $USER and group $GROUP: ";
if [[ 0 -eq `/usr/sbin/userdel $USER` ]]
then
echo " OK";
else
echo " FAILED";
fi
#echo -n "Deleting group $GROUP : ";
#if [[ 6 -eq `/usr/sbin/groupdel $GROUP` ]]
#then
# echo " OK";
# else
# echo " FAILED";
#fi
# arg 1: username
# arg 2: groupname
#would be better if we used the file-list that is in the package?
update_permissions() {
declare -r local USER=$1;
declare -r local GROUP=$2;
echo "Setting owner:group of webmin-files to $USER:$GROUP and setting permissions ...";
#change file- and directory-permissions
chown -R $USER:$GROUP /etc/webmin
chmod -R o= /etc/webmin
chown -R $USER:$GROUP /usr/share/webmin
chmod -R o= /usr/share/webmin
chown -R $USER:$GROUP /var/log/webmin
chmod u+s,g+s,o=,o+t /var/log/webmin
chown -R $USER:$GROUP /var/run/webmin
chmod u+s,g+s,o=,o+t /var/run/webmin
echo "Setting owner:group and permissions : DONE"
#the almighty bash :). You can use functions together with pipes :).
getFreeUid() {
echo "$(uidRangeFilter 1 1000 | sort -g | getFreeId 1 1000)";
getFreeGid() {
echo "$(gidRangeFilter 1 100 | sort -g | getFreeId 1 100)"
#give all existing uid's back within the range of $1-$2
uidRangeFilter() {
#going into restricted mode
set -r;
declare -ri local minId=$1;
declare -ri local maxId=$2;
if [[ $maxId -lt $minId ]]; then
echo "maximum rangebound is smaller than minimum rangebound.";
echo "command: ./uidRangeFilter minimumBound maximumBound"
exit 1;
fi
#should mayeb check on overflow. Surely since this is a critical file
#IFS = internal field separator/delimiter
IFS=:;
while read name passwd uid theRest; do
if [[ $uid -ge $minId ]] && [[ $uid -le $maxId ]]; then
echo "$uid";
fi;
done < /etc/passwd;
#give all existing gid's back within the range of $1-$2
gidRangeFilter() {
#going into restricted mode
set -r;
declare -ri local minId=$1;
declare -ri local maxId=$2;
if [[ $maxId -lt $minId ]]; then
echo "maximum rangebound is smaller than minimum rangebound.";
echo "command: ./gidRangeFilter minimumBound maximumBound"
exit 1;
fi
#should mayeb check on overflow. Surely since this is a critical file
#IFS = internal field separator/delimiter
IFS=:;
while read name passwd gid theRest; do
if [[ $gid -ge $minId ]] && [[ $gid -le $maxId ]]; then
echo "$gid";
fi;
done < /etc/group;
#find a freeId that is in the range of $1-$2 given that the input-stream contains already occupied id's, sorted from small to big.
getFreeId() {
#enter restricted mode
set -r;
declare -ri local minId=$1;
declare -ri local maxId=$2;
if [[ $maxId -lt $minId ]]; then
echo "maximum id is smaller than minimum id.";
echo "command: ./freeId minimumId maximumId"
exit 1;
fi;
declare -i local freeId=$minId;
#uid's are within the requested range and sorted from small to big
while read uid; do
#userId is occupied
if [[ $freeId -eq $uid ]]; then
let freeId+=1;
else
echo "$freeId";
return;
fi;
done
if [[ $maxId -ge $freeId ]]; then
echo "$freeId";
return;
fi;
#no free userId found
echo "";
return;
op=$1
shift
$op $*
setup.sh.patch:
--- setup.sh 2004-12-03 01:19:35.000000000 +0100
+++ setup-new.sh 2004-12-03 01:53:42.000000000 +0100
@@ -32,6 +32,22 @@
PERLLIB="$PERLLIB:$perllib"
fi
+declare -r local DESTDIR=$2;
+declare -r local config_dir=$3;
+#what is the purpose for var_dir?
+declare -r local var_dir=$4;
+#what is the influence of placing the log- and pid-files in another directory than var_dir?
+declare -r local os_type=$8;
+#leaned something new: from $9 paramters need to be surrounded by brackets!!
+declare -r local os_version=${9};
+declare -r local real_os_type=${10};
+declare -r local real_os_version=${11};
+declare -r local port=$5;
+declare -r local login=$6;
+declare -r local password=$7;
+declare -r local log_dir=${12};
+declare -r local pid_dir=${13};
+
echo "***********************************************************************"
echo "* Welcome to the Webmin setup script, version $ver *"
echo "***********************************************************************"
@@ -40,40 +56,40 @@
echo ""
# Only root can run this
-id | grep "uid=0(" >/dev/null
-if [ $? != "0" ]; then
- uname -a | grep -i CYGWIN >/dev/null
- if [ $? != "0" ]; then
- echo "ERROR: The Webmin install script must be run as root";
- echo "";
- exit 1;
- fi
-fi
+#id | grep "uid=0(" >/dev/null
+#if [ $? != "0" ]; then
+# uname -a | grep -i CYGWIN >/dev/null
+# if [ $? != "0" ]; then
+# echo "ERROR: The Webmin install script must be run as root";
+# echo "";
+# exit 1;
+# fi
+#fi
# Use the supplied destination directory, if any
if [ "$1" != "" ]; then
wadir=$1
- echo "Installing Webmin from $srcdir to $wadir ..."
- if [ ! -d "$wadir" ]; then
- mkdir "$wadir"
+ echo "Installing Webmin from $srcdir to $DESTDIR$wadir ..."
+ if [ ! -d "$DESTDIR$wadir" ]; then
+ mkdir -p "$DESTDIR$wadir"
if [ "$?" != "0" ]; then
- echo "ERROR: Failed to create $wadir"
+ echo "ERROR: Failed to create $DESTDIR$wadir"
echo ""
exit 1
fi
else
# Make sure dest dir is not in use
- ls "$wadir" | grep -v rpmsave >/dev/null 2>&1
- if [ "$?" = "0" -a ! -r "$wadir/setup.sh" ]; then
- echo "ERROR: Installation directory $wadir contains other files"
+ ls "$DESTDIR$wadir" | grep -v rpmsave >/dev/null 2>&1
+ if [ "$?" = "0" -a ! -r "$DESTDIR$wadir/setup.sh" ]; then
+ echo "ERROR: Installation directory $DESTDIR$wadir contains other files"
echo ""
exit 1
fi
fi
else
- echo "Installing Webmin in $wadir ..."
+ echo "Installing Webmin in $DESTDIR$wadir ..."
fi
-cd "$wadir"
+cd "$DESTDIR$wadir"
# Validate source directory
allmods=`cd "$srcdir"; echo */module.info | sed -e 's//module.info//g'`
@@ -108,16 +124,16 @@
echo ""
exit 2
fi
-if [ ! -d $config_dir ]; then
- mkdir $config_dir;
+if [ ! -d $DESTDIR$config_dir ]; then
+ mkdir -p $DESTDIR$config_dir;
if [ $? != 0 ]; then
- echo "ERROR: Failed to create directory $config_dir"
+ echo "ERROR: Failed to create directory $DESTDIR$config_dir"
echo ""
exit 2
fi
fi
-if [ -r "$config_dir/config" ]; then
- echo "Found existing Webmin configuration in $config_dir"
+if [ -r "$DESTDIR$config_dir/config" ]; then
+ echo "Found existing Webmin configuration in $DESTDIR$config_dir"
echo ""
upgrading=1
fi
@@ -197,9 +213,9 @@
rm -f $config_dir/module.infos.cache
else
# Config directory exists .. make sure it is not in use
- ls $config_dir | grep -v rpmsave >/dev/null 2>&1
+ ls $DESTDIR$config_dir | grep -v rpmsave >/dev/null 2>&1
if [ "$?" = "0" -a "$config_dir" != "/etc/webmin" ]; then
- echo "ERROR: Config directory $config_dir is not empty"
+ echo "ERROR: Config directory $DESTDIR$config_dir is not empty"
echo ""
exit 2
fi
@@ -223,14 +239,55 @@
exit ""
exit 3
fi
- if [ ! -d $var_dir ]; then
- mkdir $var_dir
+ if [ ! -d $DESTDIR$var_dir ]; then
+ mkdir -p $DESTDIR$var_dir
if [ $? != 0 ]; then
- echo "ERROR: Failed to create directory $var_dir"
+ echo "ERROR: Failed to create directory $DESTDIR$var_dir"
echo ""
exit 3
fi
fi
+
+ abspath=`echo $log_dir | grep "^/"`
+ if [ "$abspath" = "" ]; then
+ echo "Log-file-directory(log_dir) must be an absolute path"
+ echo ""
+ exit 3
+ fi
+ if [ "$log_dir" = "/" ]; then
+ echo "Log directory(log_dir) cannot be /"
+ echo ""
+ exit 3
+ fi
+ if [ ! -d $DESTDIR$log_dir ]; then
+ mkdir -p $DESTDIR$log_dir;
+ if [[ $? != 0 ]]; then
+ echo "ERROR: Failed to create directory $DESTDIR$log_dir"
+ echo ""
+ exit 3
+ fi
+ fi
+
+ abspath=`echo $pid_dir | grep "^/"`
+ if [ "$abspath" = "" ]; then
+ echo "Pid-file-directory(pid_dir) must be an absolute path"
+ echo ""
+ exit 3
+ fi
+ if [ "$pid_dir" = "/" ]; then
+ echo "Pid directory(pid_dir) cannot be /"
+ echo ""
+ exit 3
+ fi
+ if [ ! -d $DESTDIR$pid_dir ]; then
+ mkdir -p $DESTDIR$pid_dir;
+ if [[ $? != 0 ]]; then
+ echo "ERROR:Failed to create directory $DESTDIR$log_dir"
+ echo ""
+ exit 3
+ fi
+ fi
+
echo ""
# Ask where perl is installed
@@ -256,7 +313,7 @@
fi
else
printf "Full path to perl (default $perldef): "
- read perl
+# read perl
if [ "$perl" = "" ]; then
perl=$perldef
fi
@@ -386,6 +443,7 @@
echo ""
exit 14
fi
+
printf "Login password: "
if [ "$password" = "" -a "$crypt" = "" ]; then
stty -echo
@@ -425,82 +483,84 @@
fi
# Ask whether to run at boot time
- if [ "$atboot" = "" ]; then
- initsupp=`grep "^os_support=" "$srcdir/init/module.info" | sed -e 's/os_support=//g' | grep $os_type`
- atboot=0
- if [ "$initsupp" != "" ]; then
- printf "Start Webmin at boot time (y/n): "
- read atbootyn
- if [ "$atbootyn" = "y" -o "$atbootyn" = "Y" ]; then
- atboot=1
- fi
- else
- echo "Webmin does not support being started at boot time on your system."
- fi
- fi
+ #if [ "$atboot" = "" ]; then
+ # initsupp=`grep "^os_support=" "$srcdir/init/module.info" | sed -e 's/os_support=//g' | grep $os_type`
+ # atboot=0
+ # if [ "$initsupp" != "" ]; then
+ # printf "Start Webmin at boot time (y/n): "
+ # read atbootyn
+ # if [ "$atbootyn" = "y" -o "$atbootyn" = "Y" ]; then
+ # atboot=1
+ # fi
+ # else
+ # echo "Webmin does not support being started at boot time on your system."
+ # fi
+ #fi
+ #user has to decide this for him/herself
+ atboot=0
makeboot=$atboot
# Copy files to target directory
echo "***********************************************************************"
- if [ "$wadir" != "$srcdir" ]; then
- echo "Copying files to $wadir .."
- (cd "$srcdir" ; tar cf - . | (cd "$wadir" ; tar xf -))
+ if [ "$DESTDIR$wadir" != "$srcdir" ]; then
+ echo "Copying files to $DESTDIR$wadir .."
+ (cd "$srcdir" ; tar cf - . | (cd "$DESTDIR$wadir" ; tar xf -))
echo "..done"
echo ""
fi
# Create webserver config file
- echo $perl > $config_dir/perl-path
- echo $var_dir > $config_dir/var-path
+ echo $perl > $DESTDIR$config_dir/perl-path
+ echo $var_dir > $DESTDIR$config_dir/var-path
echo "Creating web server config files.."
cfile=$config_dir/miniserv.conf
- echo "port=$port" >> $cfile
- echo "root=$wadir" >> $cfile
- echo "mimetypes=$wadir/mime.types" >> $cfile
- echo "addtype_cgi=internal/cgi" >> $cfile
- echo "realm=Webmin Server" >> $cfile
- echo "logfile=$var_dir/miniserv.log" >> $cfile
- echo "errorlog=$var_dir/miniserv.error" >> $cfile
- echo "pidfile=$var_dir/miniserv.pid" >> $cfile
- echo "logtime=168" >> $cfile
- echo "ppath=$ppath" >> $cfile
- echo "ssl=$ssl" >> $cfile
- echo "env_WEBMIN_CONFIG=$config_dir" >> $cfile
- echo "env_WEBMIN_VAR=$var_dir" >> $cfile
- echo "atboot=$atboot" >> $cfile
- echo "logout=$config_dir/logout-flag" >> $cfile
- echo "listen=10000" >> $cfile
- echo "denyfile=\.pl$" >> $cfile
- echo "log=1" >> $cfile
- echo "blockhost_failures=5" >> $cfile
- echo "blockhost_time=60" >> $cfile
- echo "syslog=1" >> $cfile
+ echo "port=$port" >> $DESTDIR$cfile
+ echo "root=$wadir" >> $DESTDIR$cfile
+ echo "mimetypes=$wadir/mime.types" >> $DESTDIR$cfile
+ echo "addtype_cgi=internal/cgi" >> $DESTDIR$cfile
+ echo "realm=Webmin Server" >> $DESTDIR$cfile
+ echo "logfile=$log_dir/miniserv.log" >> $DESTDIR$cfile
+ echo "errorlog=$log_dir/miniserv.error" >> $DESTDIR$cfile
+ echo "pidfile=$pid_dir/miniserv.pid" >> $DESTDIR$cfile
+ echo "logtime=168" >> $DESTDIR$cfile
+ echo "ppath=$ppath" >> $DESTDIR$cfile
+ echo "ssl=$ssl" >> $DESTDIR$cfile
+ echo "env_WEBMIN_CONFIG=$config_dir" >> $DESTDIR$cfile
+ echo "env_WEBMIN_VAR=$var_dir" >> $DESTDIR$cfile
+ echo "atboot=$atboot" >> $DESTDIR$cfile
+ echo "logout=$config_dir/logout-flag" >> $DESTDIR$cfile
+ echo "listen=10000" >> $DESTDIR$cfile
+ echo "denyfile=\.pl$" >> $DESTDIR$cfile
+ echo "log=1" >> $DESTDIR$cfile
+ echo "blockhost_failures=5" >> $DESTDIR$cfile
+ echo "blockhost_time=60" >> $DESTDIR$cfile
+ echo "syslog=1" >> $DESTDIR$cfile
if [ "$allow" != "" ]; then
- echo "allow=$allow" >> $cfile
+ echo "allow=$allow" >> $DESTDIR$cfile
fi
if [ "$session" != "" ]; then
- echo "session=$session" >> $cfile
+ echo "session=$session" >> $DESTDIR$cfile
else
- echo "session=1" >> $cfile
+ echo "session=1" >> $DESTDIR$cfile
fi
if [ "$pam" != "" ]; then
- echo "pam=$pam" >> $cfile
+ echo "pam=$pam" >> $DESTDIR$cfile
fi
md5pass=`$perl -e 'print crypt("test", "\$1\$A9wB3O18\$zaZgqrEmb9VNltWTL454R/") eq "\$1\$A9wB3O18\$zaZgqrEmb9VNltWTL454R/" ? "1n" : "0n"'`
ufile=$config_dir/miniserv.users
if [ "$crypt" != "" ]; then
- echo "$login:$crypt:0" > $ufile
+ echo "$login:$crypt:0" > $DESTDIR$ufile
else
if [ "$md5pass" = "1" ]; then
- $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "$1$XXXXXXXX"),":0n"' "$login" "$password" > $ufile
+ $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "$1$XXXXXXXX"),":0n"' "$login" "$password" > $DESTDIR$ufile
else
- $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "XX"),":0n"' "$login" "$password" > $ufile
+ $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "XX"),":0n"' "$login" "$password" > $DESTDIR$ufile
fi
fi
- chmod 600 $ufile
- echo "userfile=$ufile" >> $cfile
+ chmod 600 $DESTDIR$ufile
+ echo "userfile=$ufile" >> $DESTDIR$cfile
kfile=$config_dir/miniserv.pem
openssl version >/dev/null 2>&1
@@ -517,74 +577,74 @@
root@$host
EOF
if [ "$?" = "0" ]; then
- cat $tempdir/cert $tempdir/key >$kfile
+ cat $tempdir/cert $tempdir/key >$DESTDIR$kfile
fi
rm -f $tempdir/cert $tempdir/key
fi
if [ ! -r $kfile ]; then
# Fall back to the built-in key
- cp "$wadir/miniserv.pem" $kfile
+ cp "$DESTDIR$wadir/miniserv.pem" $DESTDIR$kfile
fi
- chmod 600 $kfile
- echo "keyfile=$config_dir/miniserv.pem" >> $cfile
+ chmod 600 $DESTDIR$kfile
+ echo "keyfile=$config_dir/miniserv.pem" >> $DESTDIR$cfile
- chmod 600 $cfile
+ chmod 600 $DESTDIR$cfile
echo "..done"
echo ""
echo "Creating access control file.."
afile=$config_dir/webmin.acl
- rm -f $afile
+ rm -f $DESTDIR$afile
if [ "$defaultmods" = "" ]; then
- echo "$login: $allmods" >> $afile
+ echo "$login: $allmods" >> $DESTDIR$afile
else
- echo "$login: $defaultmods" >> $afile
+ echo "$login: $defaultmods" >> $DESTDIR$afile
fi
- chmod 600 $afile
+ chmod 600 $DESTDIR$afile
echo "..done"
echo ""
if [ "$login" != "root" -a "$login" != "admin" ]; then
# Allow use of RPC by this user
- echo rpc=1 >>$config_dir/$login.acl
+ echo rpc=1 >>$DESTDIR$config_dir/$login.acl
fi
fi
if [ "$noperlpath" = "" ]; then
echo "Inserting path to perl into scripts.."
- (find "$wadir" -name '*.cgi' -print ; find "$wadir" -name '*.pl' -print) | $perl "$wadir/perlpath.pl" $perl -
+ (find "$DESTDIR$wadir" -name '*.cgi' -print ; find "$DESTDIR$wadir" -name '*.pl' -print) | $perl "$DESTDIR$wadir/perlpath.pl" $perl -
echo "..done"
echo ""
fi
echo "Creating start and stop scripts.."
-rm -f $config_dir/stop $config_dir/start $config_dir/restart
-echo "#!/bin/sh" >>$config_dir/start
-echo "echo Starting Webmin server in $wadir" >>$config_dir/start
-echo "trap '' 1" >>$config_dir/start
-echo "LANG=" >>$config_dir/start
-echo "export LANG" >>$config_dir/start
-echo "#PERLIO=:raw" >>$config_dir/start
-echo "unset PERLIO" >>$config_dir/start
-echo "export PERLIO" >>$config_dir/start
-echo "PERLLIB=$PERLLIB" >>$config_dir/start
-echo "export PERLLIB" >>$config_dir/start
+rm -f $DESTDIR$config_dir/stop $DESTDIR$config_dir/start $DESTDIR$config_dir/restart
+echo "#!/bin/sh" >>$DESTDIR$config_dir/start
+echo "echo Starting Webmin server in $wadir" >>$DESTDIR$config_dir/start
+echo "trap '' 1" >>$DESTDIR$config_dir/start
+echo "LANG=" >>$DESTDIR$config_dir/start
+echo "export LANG" >>$DESTDIR$config_dir/start
+echo "#PERLIO=:raw" >>$DESTDIR$config_dir/start
+echo "unset PERLIO" >>$DESTDIR$config_dir/start
+echo "export PERLIO" >>$DESTDIR$config_dir/start
+echo "PERLLIB=$PERLLIB" >>$DESTDIR$config_dir/start
+echo "export PERLLIB" >>$DESTDIR$config_dir/start
uname -a | grep -i 'HP/*UX' >/dev/null
if [ $? = "0" ]; then
- echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf &" >>$config_dir/start
+ echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf &" >>$DESTDIR$config_dir/start
else
- echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf" >>$config_dir/start
+ echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf" >>$DESTDIR$config_dir/start
fi
-echo "#!/bin/sh" >>$config_dir/stop
-echo "echo Stopping Webmin server in $wadir" >>$config_dir/stop
-echo "pidfile=`grep "^pidfile=" $config_dir/miniserv.conf | sed -e 's/pidfile=//g'`" >>$config_dir/stop
-echo "kill `cat $pidfile`" >>$config_dir/stop
+echo "#!/bin/sh" >>$DESTDIR$config_dir/stop
+echo "echo Stopping Webmin server in $wadir" >>$DESTDIR$config_dir/stop
+echo "pidfile=`grep "^pidfile=" $config_dir/miniserv.conf | sed -e 's/pidfile=//g'`" >>$DESTDIR$config_dir/stop
+echo "kill `cat $pidfile`" >>$DESTDIR$config_dir/stop
-echo "#!/bin/sh" >>$config_dir/restart
-echo "$config_dir/stop && $config_dir/start" >>$config_dir/restart
+echo "#!/bin/sh" >>$DESTDIR$config_dir/restart
+echo "$config_dir/stop && $config_dir/start" >>$DESTDIR$config_dir/restart
-chmod 755 $config_dir/start $config_dir/stop
+chmod 755 $DESTDIR$config_dir/start $DESTDIR$config_dir/stop
echo "..done"
echo ""
@@ -593,13 +653,13 @@
else
echo "Copying config files.."
fi
-$perl "$wadir/copyconfig.pl" "$os_type" "$os_version" "$wadir" $config_dir "" $allmods
+$perl "$DESTDIR$wadir/copyconfig.pl" "$os_type" "$os_version" "$wadir" $config_dir "$DESTDIR" "" $allmods
if [ "$upgrading" != 1 ]; then
# Store the OS and version
- echo "os_type=$os_type" >> $config_dir/config
- echo "os_version=$os_version" >> $config_dir/config
- echo "real_os_type=$real_os_type" >> $config_dir/config
- echo "real_os_version=$real_os_version" >> $config_dir/config
+ echo "os_type=$os_type" >> $DESTDIR$config_dir/config
+ echo "os_version=$os_version" >> $DESTDIR$config_dir/config
+ echo "real_os_type=$real_os_type" >> $DESTDIR$config_dir/config
+ echo "real_os_version=$real_os_version" >> $DESTDIR$config_dir/config
if [ -r /etc/system.cnf ]; then
# Found a caldera system config file .. get the language
source /etc/system.cnf
@@ -608,61 +668,62 @@
elif [ "$CONF_LST_LANG" = "uk" ]; then
CONF_LST_LANG=en
fi
- grep "lang=$CONF_LST_LANG," "$wadir/lang_list.txt" >/dev/null 2>&1
+ grep "lang=$CONF_LST_LANG," "$DESTDIR$wadir/lang_list.txt" >/dev/null 2>&1
if [ "$?" = 0 ]; then
- echo "lang=$CONF_LST_LANG" >> $config_dir/config
+ echo "lang=$CONF_LST_LANG" >> $DESTDIR$config_dir/config
fi
fi
# Turn on logging by default
- echo "log=1" >> $config_dir/config
+ echo "log=1" >> $DESTDIR$config_dir/config
else
# one-off hack to set log variable in config from miniserv.conf
- grep log= $config_dir/config >/dev/null
+ grep log= $DESTDIR$config_dir/config >/dev/null
if [ "$?" = "1" ]; then
- grep log= $config_dir/miniserv.conf >> $config_dir/config
- grep logtime= $config_dir/miniserv.conf >> $config_dir/config
- grep logclear= $config_dir/miniserv.conf >> $config_dir/config
+ grep log= $DESTDIR$config_dir/miniserv.conf >> $DESTDIR$config_dir/config
+ grep logtime= $DESTDIR$config_dir/miniserv.conf >> $DESTDIR$config_dir/config
+ grep logclear= $DESTDIR$config_dir/miniserv.conf >> $DESTDIR$config_dir/config
fi
fi
-echo $ver > $config_dir/version
+echo $ver > $DESTDIR$config_dir/version
echo "..done"
echo ""
# Set passwd_ fields in miniserv.conf from global config
for field in passwd_file passwd_uindex passwd_pindex passwd_cindex passwd_mindex; do
- grep $field= $config_dir/miniserv.conf >/dev/null
+ grep $field= $DESTDIR$config_dir/miniserv.conf >/dev/null
if [ "$?" != "0" ]; then
- grep $field= $config_dir/config >> $config_dir/miniserv.conf
+ grep $field= $DESTDIR$config_dir/config >> $DESTDIR$config_dir/miniserv.conf
fi
done
-grep passwd_mode= $config_dir/miniserv.conf >/dev/null
+grep passwd_mode= $DESTDIR$config_dir/miniserv.conf >/dev/null
if [ "$?" != "0" ]; then
- echo passwd_mode=0 >> $config_dir/miniserv.conf
+ echo passwd_mode=0 >> $DESTDIR$config_dir/miniserv.conf
fi
# If Perl crypt supports MD5, then make it the default
if [ "$md5pass" = "1" ]; then
- echo md5pass=1 >> $config_dir/config
+ echo md5pass=1 >> $DESTDIR$config_dir/config
fi
# Set a special theme if none was set before
if [ "$theme" = "" ]; then
- theme=`cat "$wadir/defaulttheme" 2>/dev/null`
+ theme=`cat "$DESTDIR$wadir/defaulttheme" 2>/dev/null`
fi
-oldthemeline=`grep "^theme=" $config_dir/config`
+oldthemeline=`grep "^theme=" $DESTDIR$config_dir/config`
oldtheme=`echo $oldthemeline | sed -e 's/theme=//g'`
-if [ "$theme" != "" ] && [ "$oldthemeline" = "" ] && [ -d "$wadir/$theme" ]; then
- echo "theme=$theme" >> $config_dir/config
- echo "preroot=$theme" >> $config_dir/miniserv.conf
+if [ "$theme" != "" ] && [ "$oldthemeline" = "" ] && [ -d "$DESTDIR$wadir/$theme" ]; then
+ echo "theme=$theme" >> $DESTDIR$config_dir/config
+ echo "preroot=$theme" >> $DESTDIR$config_dir/miniserv.conf
fi
# Set the product field in the global config
-grep product= $config_dir/config >/dev/null
+grep product= $DESTDIR$config_dir/config >/dev/null
if [ "$?" != "0" ]; then
- echo product=webmin >> $config_dir/config
+ echo product=webmin >> $DESTDIR$config_dir/config
fi
+#I disbled makeboot. If enabled, then $DESTIDIR needs tp be added to this section
if [ "$makeboot" = "1" ]; then
echo "Configuring Webmin to start at boot time.."
(cd "$wadir/init" ; WEBMIN_CONFIG=$config_dir WEBMIN_VAR=$var_dir "$wadir/init/atboot.pl")
@@ -671,8 +732,8 @@
fi
if [ "$nouninstall" = "" ]; then
- echo "Creating uninstall script $config_dir/uninstall.sh .."
- cat >$config_dir/uninstall.sh <<EOF
+ echo "Creating uninstall script $DESTDIR$config_dir/uninstall.sh .."
+ cat >$DESTDIR$config_dir/uninstall.sh <<EOF
#!/bin/sh
printf "Are you sure you want to uninstall Webmin? (y/n) : "
read answer
@@ -688,89 +749,91 @@
echo "Done!"
fi
EOF
- chmod +x $config_dir/uninstall.sh
+ chmod +x $DESTDIR$config_dir/uninstall.sh
echo "..done"
echo ""
fi
echo "Changing ownership and permissions .."
-chown -R root $config_dir
-chgrp -R bin $config_dir
-chmod -R og-rw $config_dir
-chmod 755 $config_dir/{sendmail,qmailadmin,postfix}*/config >/dev/null 2>&1
-chmod 755 $config_dir/{sendmail,qmailadmin,postfix}*/autoreply.pl >/dev/null 2>&1
-chmod 755 $config_dir/{sendmail,qmailadmin,postfix}*/filter.pl >/dev/null 2>&1
-chmod 755 $config_dir/squid*/squid-auth.pl >/dev/null 2>&1
-chmod 755 $config_dir/squid*/users >/dev/null 2>&1
-chmod +r $config_dir/version
+chown -R root $DESTDIR$config_dir
+chgrp -R bin $DESTDIR$config_dir
+chmod -R og-rw $DESTDIR$config_dir
+chmod 755 $DESTDIR$config_dir/{sendmail,qmailadmin,postfix}*/config >/dev/null 2>&1
+chmod 755 $DESTDIR$config_dir/{sendmail,qmailadmin,postfix}*/autoreply.pl >/dev/null 2>&1
+chmod 755 $DESTDIR$config_dir/{sendmail,qmailadmin,postfix}*/filter.pl >/dev/null 2>&1
+chmod 755 $DESTDIR$config_dir/squid*/squid-auth.pl >/dev/null 2>&1
+chmod 755 $DESTDIR$config_dir/squid*/users >/dev/null 2>&1
+chmod +r $DESTDIR$config_dir/version
if [ "$nochown" = "" ]; then
- chown -R root "$wadir"
- chgrp -R bin "$wadir"
- chmod -R og-w "$wadir"
- chmod -R a+rx "$wadir"
-fi
-if [ $var_dir != "/var" ]; then
- chown -R root $var_dir
- chgrp -R bin $var_dir
- chmod -R og-rwx $var_dir
+ chown -R root "$DESTDIR$wadir"
+ chgrp -R bin "$DESTDIR$wadir"
+ chmod -R og-w "$DESTDIR$wadir"
+ chmod -R a+rx "$DESTDIR$wadir"
+fi
+if [ $DESTDIR$var_dir != "/var" ]; then
+ chown -R root $DESTDIR$var_dir
+ chgrp -R bin $DESTDIR$var_dir
+ chmod -R og-rwx $DESTDIR$var_dir
fi
echo "..done"
echo ""
# Save target directory if one was specified
-if [ "$wadir" != "$srcdir" ]; then
- echo $wadir >$config_dir/install-dir
+if [ "$DESTDIR$wadir" != "$srcdir" ]; then
+ echo $wadir >$DESTDIR$config_dir/install-dir
else
- rm -f $config_dir/install-dir
+ rm -f $DESTDIR$config_dir/install-dir
fi
-if [ "$nopostinstall" = "" ]; then
- echo "Running postinstall scripts .."
- (cd "$wadir" ; WEBMIN_CONFIG=$config_dir WEBMIN_VAR=$var_dir "$wadir/run-postinstalls.pl")
- echo "..done"
- echo ""
-fi
+#This is not for now ... this is for in the install-script
+#if [ "$nopostinstall" = "" ]; then
+# echo "Running postinstall scripts .."
+# (cd "$wadir" ; WEBMIN_CONFIG=$config_dir WEBMIN_VAR=$var_dir "$wadir/run-postinstalls.pl")
+# echo "..done"
+# echo ""
+#fi
# Run package-defined post-install script
-if [ -r "$srcdir/setup-post.sh" ]; then
- . "$srcdir/setup-post.sh"
-fi
-if [ "$nostart" = "" ]; then
- if [ "$inetd" != "1" ]; then
- echo "Attempting to start Webmin mini web server.."
- $config_dir/start
- if [ $? != "0" ]; then
- echo "ERROR: Failed to start web server!"
- echo ""
- exit 14
- fi
- echo "..done"
- echo ""
- fi
- echo "***********************************************************************"
- echo "Webmin has been installed and started successfully. Use your web"
- echo "browser to go to"
- echo ""
- host=`hostname`
- if [ "$ssl" = "1" ]; then
- echo " https://$host:$port/"
- else
- echo " http://$host:$port/"
- fi
- echo ""
- echo "and login with the name and password you entered previously."
- echo ""
- if [ "$ssl" = "1" ]; then
- echo "Because Webmin uses SSL for encryption only, the certificate"
- echo "it uses is not signed by one of the recognized CAs such as"
- echo "Verisign. When you first connect to the Webmin server, your"
- echo "browser will ask you if you want to accept the certificate"
- echo "presented, as it does not recognize the CA. Say yes."
- echo ""
- fi
-fi
+#if [ -r "$srcdir/setup-post.sh" ]; then
+# . "$srcdir/setup-post.sh"
+#fi
+
+#don't start the webserver
+#if [ "$nostart" = "" ]; then
+# if [ "$inetd" != "1" ]; then
+# echo "Attempting to start Webmin mini web server.."
+# $config_dir/start
+# if [ $? != "0" ]; then
+# echo "ERROR: Failed to start web server!"
+# echo ""
+# exit 14
+# fi
+# echo "..done"
+# echo ""
+# fi
+
+# echo "***********************************************************************"
+# echo "Webmin has been installed and started successfully. Use your web"
+# echo "browser to go to"
+# echo ""
+# host=`hostname`
+# if [ "$ssl" = "1" ]; then
+# echo " https://$host:$port/"
+# else
+# echo " http://$host:$port/"
+# fi
+# echo ""
+# echo "and login with the name and password you entered previously."
+# echo ""
+# if [ "$ssl" = "1" ]; then
+# echo "Because Webmin uses SSL for encryption only, the certificate"
+# echo "it uses is not signed by one of the recognized CAs such as"
+# echo "Verisign. When you first connect to the Webmin server, your"
+# echo "browser will ask you if you want to accept the certificate"
+# echo "presented, as it does not recognize the CA. Say yes."
+# echo ""
+# fi
+#fi
if [ "$oldwadir" != "$wadir" -a "$upgrading" = 1 -a "$deletedold" != 1 ]; then
echo "The directory from the previous version of Webmin"
copyconfig.pl.patch:
--- copyconfig.pl 2004-12-02 23:17:37.000000000 +0100
+++ copyconfig-new.pl 2004-12-03 01:00:26.000000000 +0100
@@ -9,12 +9,13 @@
$ver = $ARGV[1];
$wadir = $ARGV[2];
$confdir = $ARGV[3];
+$DESTDIR = $ARGV[4];
# Find all clones
-opendir(DIR, $wadir);
+opendir(DIR, $DESTDIR.$wadir);
foreach $f (readdir(DIR)) {
- if (readlink("$wadir/$f")) {
- @st = stat("$wadir/$f");
+ if (readlink("$DESTDIR.$wadir/$f")) {
+ @st = stat("$DESTDIR.$wadir/$f");
push(@{$clone{$st[1]}}, $f);
@@ -24,7 +25,7 @@
@mods = @ARGV[4..$#ARGV];
foreach $m (@mods) {
# Find any range-number config files
- $srcdir = "$wadir/$m";
+ $srcdir = "$DESTDIR.$wadir/$m";
$rangefile = undef;
opendir(DIR, $srcdir);
while($f = readdir(DIR)) {Goto settings general usage there u will see your apps and under documents &data u will see wot each app uses, the only way to get rid of it is by deleting the app and reinstalling this will free up space..
-
NetInstall - Grey screen after logging in for user created during install
I am creating a NetInstall of 10.8 for mass deployment in my workplace. I am currently having difficulty with a user account that was created by a script that runs in place of the Setup Assistant.
I am trying to skip the Setup Assistant, and as such, the script touches the /var/db/.AppleSetupDone file (which doesn't exist at this point).
This works, with the installation progressing straight on to the login screen where the user 'administrator' has been created, and is available for login.
However, when the user logs in, they are presented with a grey screen & the mouse cursor. No dock, desktop, no finder menu bar.
I am at a loss as to what is going wrong as this had worked perfectly fine in the developer preview.
The script is as below: (certain sections have been removed for security purposes)
Any pointers would be much appreciated.
#!/bin/sh
############# SET VARIABLES ###################
. /etc/rc.common
#set primary network interface
interface=`netstat -r -f inet | awk '/default/{print $6}' | head -1`
#set server address for packages
pkgserver='macimaging.blah.qld.edu.au'
#Get default route's interface's ip address
ip=`ifconfig $interface | grep "inet 10." | sed -e 's/^.*inet 10/10/' -e 's/ netmask.*$//'`
#get version number of Mac OS X
macversion=`sw_vers | awk '/^ProductVersion/{split($2, MINOR, "."); print MINOR[2]}'`
############# CHECK ADMIN PASSWORD ###################
shadow=blah
i=0
# initialise variable
passwd=""
# if machine is set to automatically image
if [ `nvram -p | grep -c reimage-key` -eq 1 ]; then
# remove verbose boot arguments from nvram
nvram -d boot-args
# collect admin password
passwd=`nvram reimage-key | awk '{print $2}' | openssl enc -aes-256-cbc -pass "pass:Aut0mat1cR31mag3" -a -d`
# check it was successfully decrypted
if [ $? -ne 0 ]; then
osascript -e beep
echo "Automatic imaging key failed. Press enter to continue."
read
passwd=""
fi
# remove key from nvram
nvram -d reimage-key
fi
# if the admin password wasn't successfully collected
if [ "$passwd" = "" ]; then
#clear the screen
clear
say -v Victoria "Please enter the Administrator's password"
while [ $i = 0 ]
do
echo "Please enter Administrator's password: (Note: Input is hidden)"
#read password from stin but don't show
stty_orig=`stty -g`
stty -echo
read passwd
stty $stty_orig
hash=`echo $passwd | shasum -a 512 | awk '{print $1}'`
if [ $shadow = $hash ]; then
#password is correct; continue with setup
i=1
else
echo "Incorrect. Please try again"
fi
done
fi
#clear the screen
clear
echo "Log:"
############# SET EFI PASSWORD ###################
echo "Setting EFI password"
#to create a new EFI password, initially set it on a test machine with the GUI utility, then extract its value with: `nvram -p | awk '/security-password/{print $2}'`. Put that value in this command (also replacing our admin password) to generate hash for below: `echo "pass_from_nvram" | openssl enc -aes-256-cbc -pass "pass:ourcurrentadminpassword" -a`
nvshadow=`echo "blah" | openssl enc -aes-256-cbc -pass "pass:$passwd" -a -d`
nvram security-mode=command
nvram security-password=$nvshadow
#reset running variable for security
nvshadow=""
############# GENERATE RC SHADOW FILE ###################
#if you don't know how the following lines work, get a pillow ready for screaming into
#the admin key (which is decrypted below) is used to decrypt publicly distributed packages to change the admin account's password (without having the password in the package in clear text)
decypted_admin_private_key=`echo "blah" | openssl enc -aes-256-cbc -pass "pass:$passwd" -a -d`
admin_private_key_hash=`echo "$decypted_admin_private_key" | shasum -a 512 | awk '{print $1}'`
echo "$admin_private_key_hash $decypted_admin_private_key" >> /var/root/RC_admin_private_key
chmod 600 /var/root/RC_admin_private_key
#this keeps a record of the administrator password set on imaging
RC_admin_pass_hash=`echo "$passwd" | shasum -a 512 | awk '{print $1}'`
RC_admin_pass_encrypted=`echo "$passwd" | openssl enc -aes-256-cbc -pass "pass:$decypted_admin_private_key" -a`
echo "$RC_admin_pass_hash $RC_admin_pass_encrypted" >> /var/root/RC_admin_shadow
#a few security measures
chmod 600 /var/root/RC_admin_shadow
RC_admin_pass_encrypted=""
decypted_admin_private_key=""
############# SETUP PARTITIONS ###################
echo "Updating file system table to mount data partition on boot for user accounts"
#Find if Home or Data partition exists (N.B. If Bootcamp is used the following awk commands need to be modified to only look for [Hh]ome and not [Dd]ata)
partname=`diskutil list | awk '/([Hh]ome)|([Dd]ata)/{print $3}' | head -1`
partdev=`diskutil list | awk '/([Hh]ome)|([Dd]ata)/{print $6}' | head -1`
#If a Data partition exists
if [ "$partdev" ]; then
#Mount it on boot to /Users
echo "LABEL=$partname /Users hfs rw" > /etc/fstab
#mount Data drive to /Users
diskutil umount /dev/$partdev
mount -t hfs /dev/$partdev /Users
fi
############# CREATE ADMIN ACCOUNT ###################
echo "Creating Administrator account"
#create administrator account
dscl . create /Users/administrator
dscl . create /Users/administrator RealName "Administrator"
dscl . create /Users/administrator PrimaryGroupID 20
dscl . create /Users/administrator UniqueID 501
dscl . create /Users/administrator NFSHomeDirectory /Users/administrator
dscl . create /Users/administrator UserShell /bin/bash
dscl . passwd /Users/administrator $passwd
dscl . append /Groups/admin GroupMembership administrator
dscl . append /Groups/_lpadmin GroupMembership administrator
dscl . append /Groups/admin GroupMembership administrator
dscl . create /Users/administrator picture "/Library/User Pictures/Sports/8ball.tif"
dscl . delete /Users/administrator jpegphoto
#reset running variable for security
passwd=""
############# SET blah NETWORK LOCATION ###################
echo "Setting up blah network location"
networksetup -createlocation blah populate
networksetup -switchtolocation blah
echo ""
############# SET HOSTNAME ###################
sleep 10
dhcphostname=`host $ip | sed -e 's/^.* domain name pointer //' -e 's/\..*blah.*$//' -e 's/-wstudent$//' -e 's/-wstaff$//'`
#while [ $? -ne 0 ]
#do
# sleep 5
# dhcphostname=`host $ip | sed -e 's/^.* domain name pointer //' -e 's/\..*blah.*$//' -e 's/-wstudent$//' -e 's/-wstaff$//'`
#done
echo "Setting host name"
#set host name from dhcp
scutil --set HostName "$dhcphostname"
scutil --set LocalHostName "$dhcphostname"
systemsetup -setcomputername "$dhcphostname"
############# SET TIME ###################
echo "Setting time zone"
#set time zone
systemsetup -settimezone Australia/Brisbane
#set system's locale
echo "Setting system's locale"
defaults write "Apple Global Domain" AppleLocale "en_AU"
echo "Syncing with time server"
#sync time with local time server
ntpdate ntp.blah.qld.edu.au
############# INSTALL FTP CLIENT ###################
echo "Downloading and installing ftp client"
curl -O ftp://$pkgserver/install/ncftp.tar.gz
tar -xzf ncftp.tar.gz -C /usr/bin/
rm ncftp.tar.gz
############# INSTALL POLICY MANAGER AND UPDATE POLICY ###################
echo "Downloading and installing Policy Manager"
#download and install policy manager
echo 'get -R "pool/Policy Manager.pkg"' | ncftp $pkgserver; installer -verbose -target / -pkg "Policy Manager.pkg"
rm -R "Policy Manager.pkg"
echo "Downloading and installing Update Policy"
#download and install update policy
echo 'get -R "pool/Update Policy.pkg"' | ncftp $pkgserver; installer -verbose -target / -pkg "Update Policy.pkg"
rm -R "Update Policy.pkg"
############# INSTALL MAC UPDATE COMBO ###################
echo "Downloading and installing most recent Mac update combo package"
#download and install the most recent combo update
echo "get -R pool/MacOSXUpdCombo10.$macversion.Latest.pkg" | ncftp $pkgserver
chmod -R u+x MacOSXUpdCombo10.$macversion.Latest.pkg
installer -verbose -target / -pkg MacOSXUpdCombo10.$macversion.Latest.pkg
rm -R MacOSXUpdCombo10.$macversion.Latest.pkg
############# INSTALL ADDITIONAL PACKAGES ###################
echo "Downloading and installing additional post install packages"
mkdir postinstall
cd postinstall
echo "get -R postinstall/common/*" | ncftp $pkgserver
echo "get -R postinstall/10.$macversion/*" | ncftp $pkgserver
chmod -R u+x *
# save and change IFS
OLDIFS=$IFS
IFS=$'\n'
# read all file names into an array
fileArray=($(ls))
# restore it
IFS=$OLDIFS
# get length of the array
tLen=${#fileArray[@]}
#install each package
for (( i=0; i<${tLen}; i++ )); do
installer -verbose -target / -pkg "${fileArray[$i]}"
done
cd ..
rm -R postinstall
############# FINISH SETUP ASSISTANT ###################
#load Policy Manager LaunchDaemon to run on boot
launchctl load /Library/LaunchDaemons/au.edu.qld.blah.policymanager.plist
#give time for policy to load
sleep 2
#set flag so OS X knows not to run Setup Assistant on next boot
echo "<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n <key>Address</key>\n <dict>\n <key>CountryName</key>\n <string>Australia</string>\n </dict>\n</dict>\n</plist>" > /var/db/.AppleSetupDone
#set flag so blah Updater knows this machine's just been imaged
echo "setup done" > /var/root/blahSetupDone
#remove self
rm /var/root/setup.sh
echo "\nI will now reboot; please wait"
say -v Victoria "I will now reboot; please wait"
rebootmattn wrote:
(1) You cannot run the installer program while booted into your primary partition; you must boot into the DVD. Restart the computer while holding down the C key until the DVD boots.
This isn't true. The retail Snow Leopard DVD is designed to start the install procedure while started up normally. When you do this, after performing some checks on the target partition it writes some pre-install files to it before restarting automatically from the DVD. This speeds up the install procedure.
(2) You cannot install Snow Leopard on this computer from a DVD that came with another computer; you must use, as it were, a free-standing commercial Snow Leopard installer DVD.
The exception is, as Xian Rinpoche correctly surmised, a Mac model released after the currently available retail Snow Leopard DVD became available. The newest Macs require a later version of the OS than what is included on the retail DVD, which is why it won't work with the new i5 & i7 models. (See Don't install a version of Mac OS X earlier than that which came with your Mac for more about this.)
As a general rule, use either the installer that came with the Mac on its grey system discs or a retail disc released after that Mac model was released. You can also refer to this handy chart of the OS version that ships with each Mac model. -
Can't open mail and this morning couldn't open Safari
Can someone review this for me to tell me what is going on? I installed Leopard in late October, 2007 and no problems, really until last night when I started having some problems keeping Safari pages open. Then this morning I could not open Safari-I opened it and then it suddenly quit & without the usual message if I wanted to report it to Apple. Then tonight the same with Mail. I have copied my system log to see if someone could tell me what is going on.
I appreciate your help.
golden
SYSTEM LOG: (name replaced with **)
CSRHIDTransitionDriver[0x6daa600](IOUSBCompositeDevice) GetFullConfigDescriptor(0) returned NULL
Feb 4 18:33:24 Macintosh-2 kernel[0]: CSRHIDTransitionDriver... done
Feb 4 18:33:24 Macintosh-2 kernel[0]: E:[AppleUSBBluetoothHCIController][FindInterfaces] mInt0InterruptMaxPacketSize = 16
Feb 4 18:33:24 Macintosh-2 kernel[0]: Jettisoning kernel linker.
Feb 4 18:33:24 Macintosh-2 kernel[0]: Resetting IOCatalogue.
Feb 4 18:33:24 Macintosh-2 kernel[0]: GFX0: family specific matching fails
Feb 4 18:33:24 Macintosh-2 kernel[0]: Matching service count = 1
Feb 4 18:33:24 Macintosh-2 kernel[0]: Matching service count = 2
Feb 4 18:33:24: --- last message repeated 4 times ---
Feb 4 18:33:24 Macintosh-2 kernel[0]: NVDANV50HAL loaded and registered.
Feb 4 18:33:24 Macintosh-2 kernel[0]: GFX0: family specific matching fails
Feb 4 18:33:24 Macintosh-2 kernel[0]: ath_attach: devid 0x24
Feb 4 18:33:24 Macintosh-2 kernel[0]: Override HT40 CTL Powers. EEPROM Version is 14.4, Device Type 5
Feb 4 18:33:24 Macintosh-2 kernel[0]: athdescdmasetup: tx dddescpaddr = 0x1532f000, length 0x46500(288000) bytes
Feb 4 18:33:24 Macintosh-2 kernel[0]: athdescdmasetup: beacon dddescpaddr = 0x15863000, length 0x90(144) bytes
Feb 4 18:33:24 Macintosh-2 kernel[0]: mac 12.10 phy 8.1 radio 12.0
Feb 4 18:33:24 Macintosh-2 kernel[0]: yukon: Ethernet address *****************
Feb 4 18:33:24 Macintosh-2 kernel[0]: AirPort_Athr******* Ethernet address **************
Feb 4 18:33:24 Macintosh-2 kernel[0]: 11D beacon causing regdomain change to CC 840
Feb 4 18:33:24 Macintosh-2 kernel[0]: en1: 802.11d country code set to 'US'.
Feb 4 18:33:24 Macintosh-2 kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 149 153 157 161 165
Feb 4 18:33:26 Macintosh-2 loginwindow[25]: Login Window Started Security Agent
Feb 4 18:33:27 Macintosh-2 org.ntp.ntpd[14]: Error : nodename nor servname provided, or not known
Feb 4 18:33:27 Macintosh-2 ntpdate[75]: can't find host time.apple.com
Feb 4 18:33:27 Macintosh-2 ntpdate[75]: no servers can be used, exiting
Feb 4 18:33:29 Macintosh-2 kernel[0]: AppleYukon2: 00000000,00000000 sk98osx_dnet - recovering from missed interrupt
Feb 4 18:33:35 Macintosh-2 kernel[0]: AppleYukon2: 00000000,00000000 sk98osx_dnet - recovering from missed interrupt
Feb 4 18:36:44 Macintosh-2 ntpd[14]: time reset +0.807506 s
Feb 4 18:37:40 Macintosh-2 authorizationhost[73]: MechanismInvoke 0x126da0 retainCount 2
Feb 4 18:37:41 Macintosh-2 SecurityAgent[74]: MechanismInvoke 0x103cb0 retainCount 1
Feb 4 18:37:41 Macintosh-2 SecurityAgent[74]: NSSecureTextFieldCell detected a field editor ((null)) that is not a NSTextView subclass designed to work with the cell. Ignoring...
Feb 4 18:37:41 Macintosh-2 loginwindow[25]: Login Window - Returned from Security Agent
Feb 4 18:37:41 Macintosh-2 SecurityAgent[74]: MechanismDestroy 0x103cb0 retainCount 1
Feb 4 18:37:41 Macintosh-2 authorizationhost[73]: MechanismDestroy 0x126da0 retainCount 2
Feb 4 18:37:42 Macintosh-2 loginwindow[25]: USER_PROCESS: 25 console
Feb 4 18:37:42 Macintosh-2 com.apple.launchd[1] (com.apple.UserEventAgent-LoginWindow[68]): Exited: Terminated
Feb 4 18:37:42 Macintosh-2 com.apple.launchd[1] (com.apple.ScreenSharing.server[67]): Exited: Terminated
Feb 4 18:37:42 Macintosh-2 com.apple.launchctl.Aqua[91]: launchctl: Please convert the following to launchd: /etc/machinit_peruser.d/RemoteUI.plist
Feb 4 18:37:46 Macintosh-2 /System/Library/CoreServices/coreservicesd[45]: SFLSharePointsEntry::CreateDSRecord: dsCreateRecordAndOpen(********** Public Folder) returned -14135
Feb 4 18:37:47 Macintosh-2 Dock[99]: Could not create a directory for <DOCKFolderTile: 0x23f3a0> error = Error Domain=NSOSStatusErrorDomain Code=-43 "Operation could not be completed. (OSStatus error -43.)" (File not found)
Feb 4 18:37:55 Macintosh-2 SoftwareUpdateCheck[110]: Checking for updates
Feb 4 18:38:04 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Mon Feb 4 18:38:04 MST 2008 LCC Engine: Starting LCC Engine (202).
Feb 4 18:38:04 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Mon Feb 4 18:38:04 MST 2008 LCC Engine: Restoring Clipboard contents.
Feb 4 18:38:05 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Mon Feb 4 18:38:05 MST 2008 LCC Engine: next maintenance run: 2/5/08 9:00 PM
Feb 4 18:38:08 Macintosh-2 mDNSResponder[24]: sendChallengeResponse: 3 failed attempts for LLQ dm-notification.udp.************************************
Feb 4 18:38:12 Macintosh-2 hdiejectd[133]: running
Feb 4 18:38:13 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Mon Feb 4 18:38:13 MST 2008 LCC Engine: Saving Clipboard contents.
Feb 4 18:38:14 Macintosh-2 fseventsd[30]: bumping event counter to: 0x7b0967f (current 0xf70) from log file '0000000007ac8c8c'
Feb 4 18:38:17 Macintosh-2 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer[1 02]: CPSGetProcessInfo(): This call is deprecated and should not be called anymore.
Feb 4 18:38:17 Macintosh-2 /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer[1 02]: CPSPBGetProcessInfo(): This call is deprecated and should not be called anymore.
Feb 4 18:38:35 Macintosh-2 su[146]: **mac account name******* on /dev/ttys000
Feb 4 18:38:36 Macintosh-2 /usr/sbin/ocspd[152]: starting
Feb 4 18:38:36 Macintosh-2 su[153]: *********************** on /dev/ttys000
Feb 4 18:38:37 Macintosh-2 su[157]: ************** on /dev/ttys000
Feb 4 18:38:37 Macintosh-2 FileSyncAgent[106]: MKCOL /.FileSync (FAILED), httpStatusCode:405, errorType:100, transactionState:5, txnId:87EF1444-3CFD-464D-925D-7866AC39EF66, auto-retries=0, manual-retries=0
Feb 4 18:38:38 Macintosh-2 sudo[158]: ******: TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/echo openrootshell
Feb 4 18:38:38 Macintosh-2 sudo[159]: ******** : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/sh
Feb 4 18:38:38 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Feb 4, 2008 6:38 PM: sudo /usr/bin/renice -15 -p 103
Feb 4 18:38:48 Macintosh-2 mDNSResponder[24]: mDNSPlatformSendUDP sendto failed to send packet on InterfaceID 00000000 unicast/4 to 17.250.248.161:0 skt 7 error -1 errno 49 (Can't assign requested address) 43902531
Feb 4 18:38:50 Macintosh-2 mDNSResponder[24]: mDNSPlatformSendUDP sendto failed to send packet on InterfaceID 00000000 unicast/4 to 17.250.248.161:0 skt 7 error -1 errno 49 (Can't assign requested address) 43904531
Feb 4 18:38:54 Macintosh-2 mDNSResponder[24]: mDNSPlatformSendUDP sendto failed to send packet on InterfaceID 00000000 unicast/4 to 17.250.248.161:0 skt 7 error -1 errno 49 (Can't assign requested address) 43908531
Feb 4 18:39:00 Macintosh-2 mDNSResponder[24]: sendChallengeResponse: 3 failed attempts for LLQ dm-notification.udp.**********.mac.com.
Feb 4 18:39:08 Macintosh-2 su[177]: **** on /dev/ttys000
Feb 4 18:39:08 Macintosh-2 sudo[178]: *****: TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/echo openrootshell
Feb 4 18:39:08 Macintosh-2 sudo[179]: ***** : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/sh
Feb 4 18:39:08 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Feb 4, 2008 6:39 PM: sudo /usr/bin/renice -15 -p 173
Feb 4 18:39:12 Macintosh-2 com.apple.launchd[89] ([0x0-0x10010].SoftwareUpdateCheck[110]): Exited with exit code: 102
Feb 4 18:41:36 Macintosh-2 su[241]: **** on /dev/ttys000
Feb 4 18:41:37 Macintosh-2 sudo[242]: *** : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/echo openrootshell
Feb 4 18:41:37 Macintosh-2 sudo[243]: **** : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/sh
Feb 4 18:41:37 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Feb 4, 2008 6:41 PM: sudo /usr/bin/renice -15 -p 103
Feb 4 18:41:43 Macintosh-2 su[249]: ***** on /dev/ttys000
Feb 4 18:41:43 Macintosh-2 sudo[250]: *** : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/echo openrootshell
Feb 4 18:41:43 Macintosh-2 sudo[251]: *****: TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/sh
Feb 4 18:41:43 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Feb 4, 2008 6:41 PM: sudo /usr/bin/renice -15 -p 173
Feb 4 18:42:28 Macintosh-2 su[269]: ** on /dev/ttys000
Feb 4 18:42:28 Macintosh-2 sudo[270]: ** : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/echo openrootshell
Feb 4 18:42:28 Macintosh-2 sudo[271]: ** : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/sh
Feb 4 18:42:28 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Feb 4, 2008 6:42 PM: sudo /usr/bin/renice -15 -p 266
Feb 4 18:42:40 Macintosh-2 su[279]: **** on /dev/ttys000
Feb 4 18:42:40 Macintosh-2 sudo[280]: ***: TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/echo openrootshell
Feb 4 18:42:40 Macintosh-2 sudo[281]: *** : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/sh
Feb 4 18:42:40 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Feb 4, 2008 6:42 PM: sudo /usr/bin/renice -15 -p 173
Feb 4 18:43:04 Macintosh-2 su[294]: **** on /dev/ttys000
Feb 4 18:43:04 Macintosh-2 sudo[295]: *** : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/echo openrootshell
Feb 4 18:43:04 Macintosh-2 sudo[296]: : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/sh
Feb 4 18:43:04 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Feb 4, 2008 6:43 PM: sudo /usr/bin/renice -15 -p 103
Feb18:44:04 Macintosh-2 su[321]: ** to *** on /dev/ttys000
Feb 4 18:44:04 Macintosh-2 sudo[322]: ***: TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/echo openrootshell
Feb 4 18:44:04 Macintosh-2 sudo[323]: **** : TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/sh
Feb 4 18:44:05 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Feb 4, 2008 6:44 PM: sudo /usr/bin/renice -15 -p 266
Feb 4 18:45:01 Macintosh-2 /usr/sbin/ocspd[347]: starting
Feb 4 18:49:10 Macintosh-2 su[442]: ****to *** on /dev/ttys000
Feb 4 18:49:11 Macintosh-2 su[448]: ***** on /dev/ttys000
Feb 4 18:52:55 Macintosh-2 /usr/sbin/ocspd[539]: starting
Feb 4 18:54:12 Macintosh-2 su[574]: **** on /dev/ttys000
Feb 4 18:54:12 Macintosh-2 sudo[575]: ****: TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/echo openrootshell
Feb 4 18:54:12 Macintosh-2 sudo[576]: ****: TTY=ttys000 ; PWD=/ ; USER=root ; COMMAND=/bin/sh
Feb 4 18:54:12 Macintosh-2 [0x0-0x16016].com.northernsw.nswCCEngine[118]: Feb 4, 2008 6:54 PM: sudo /usr/bin/renice -15 -p 571Hi! Unhook all external devices except the keyboard and mouse then boot from the install disc, go past the language screen and use the pull down menus to get to the disk utility, repair the disk (multiple times if errors are reported) then reboot and repair permissions in disk utility. Tom
-
How can i set a long String to a xmltype field in oracle9i use PHP?
i can set xml String to xmltype field with:
$sql_insert_sql = "insert into g_province (p_id,p_regionid,p_provincenameobj,solt)
values (g_province_q.nextval,'".$_GET['region_id']."',sys.XMLTYPE.createXML('".$xml_con."'),0)";
but if $xml_con too long,i can not set this content into xmltype fields.
then , i use :
<?
//(tabel_name:articles)DDL; //just for test;
//create table articles (id number(11),content sys.xmltype);
//----------This is insert test----------------------------------
$conn = @OCILogon("in_user","user_in","bigfish");
$stmt = @OCIParse($conn,"insert into articles (id,content) values(1,xmltype(EMPTY_CLOB())) RETURNING content INTO:CONTENT");
$clob = @OCINewDescriptor($conn,OCI_D_LOB);
OCIBindByName($stmt,':CONTENT',&$clob,"1",OCI_B_CLOB);
OCIExecute($stmt,OCI_DEFAULT);
if ($clob->save("<root><a>JUST TEST</a></root>")){
OCICommit($conn);
echo "Insert succes!";
else{
echo "Insert default!";
//---------------Insert end-----------------------------------------
//---------------Select start---------------------------------------
$sql = "select content from articles order by id desc";
$stmt = @OCIParse($conn,$sql);
@OCIExecute($stmt,OCI_DEFAULT);
@OCIFetchInto($stmt,&$rows,OCI_RETURN_LOBS);
echo "<br>Content is:\"".$rows[0]."\"";
//---------------Select end-----------------------------------------
?>
run it ,display these errors:
Warning: ociexecute(): OCIStmtExecute: ORA-22816: unsupported feature with RETURNING clause in /home/www/bigfish/sgtest/testclob.php on line 12
Warning: save(): OCILobWrite: OCI_INVALID_HANDLE in /home/www/bigfish/sgtest/testclob.php on line 13
Insert default!
Content is:""
Warning: Unknown(): ociclose_session: OCISessionEnd: ORA-00600: internal error code, arguments: [729], [28], [space leak], [], [], [], [], [] in Unknown on line 0
how can i set long content to xmltype fields??geng sun,
Ora-00600 is an internal Oracle error. You will need to open a tar with Oracle. -
How can i set a long String to a xmltype field use PHP?
i can set xml String to xmltype field with:
$sql_insert_sql = "insert into g_province (p_id,p_regionid,p_provincenameobj,solt)
values (g_province_q.nextval,'".$_GET['region_id']."',sys.XMLTYPE.createXML('".$xml_con."'),0)";
but if $xml_con too long,i can not set this content into xmltype fields.
then , i use :
<?
//(tabel_name:articles)DDL; //just for test;
//create table articles (id number(11),content sys.xmltype);
//----------This is insert test----------------------------------
$conn = @OCILogon("in_user","user_in","bigfish");
$stmt = @OCIParse($conn,"insert into articles (id,content) values(1,xmltype(EMPTY_CLOB())) RETURNING content INTO:CONTENT");
$clob = @OCINewDescriptor($conn,OCI_D_LOB);
OCIBindByName($stmt,':CONTENT',&$clob,"1",OCI_B_CLOB);
OCIExecute($stmt,OCI_DEFAULT);
if ($clob->save("<root><a>JUST TEST</a></root>")){
OCICommit($conn);
echo "Insert succes!";
else{
echo "Insert default!";
//---------------Insert end-----------------------------------------
//---------------Select start---------------------------------------
$sql = "select content from articles order by id desc";
$stmt = @OCIParse($conn,$sql);
@OCIExecute($stmt,OCI_DEFAULT);
@OCIFetchInto($stmt,&$rows,OCI_RETURN_LOBS);
echo "<br>Content is:\"".$rows[0]."\"";
//---------------Select end-----------------------------------------
?>
run it ,display these errors:
Warning: ociexecute(): OCIStmtExecute: ORA-22816: unsupported feature with RETURNING clause in /home/www/bigfish/sgtest/testclob.php on line 12
Warning: save(): OCILobWrite: OCI_INVALID_HANDLE in /home/www/bigfish/sgtest/testclob.php on line 13
Insert default!
Content is:""
Warning: Unknown(): ociclose_session: OCISessionEnd: ORA-00600: internal error code, arguments: [729], [28], [space leak], [], [], [], [], [] in Unknown on line 0
how can i set long content to xmltype fields??geng sun,
Ora-00600 is an internal Oracle error. You will need to open a tar with Oracle. -
[Solved] Installing and using GRUB on LVM
New installation, no more windows, using LVM.
pvdisplay :
--- Physical volume ---
PV Name /dev/sda1
VG Name DesktopLVM
PV Size 243.14 MiB / not usable 3.14 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 60
Free PE 0
Allocated PE 60
PV UUID 9LXTZW-zZNI-dQ3W-RMTD-C3Fl-5blw-TbPwOo
--- Physical volume ---
PV Name /dev/sda2
VG Name DesktopLVM
PV Size 19.07 GiB / not usable 4.15 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 4882
Free PE 0
Allocated PE 4882
PV UUID bgu0dD-seVt-nz7i-3Vdi-PZ4U-MKKa-pk3i6V
--- Physical volume ---
PV Name /dev/sda3
VG Name DesktopLVM
PV Size 7.63 GiB / not usable 4.86 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 1952
Free PE 0
Allocated PE 1952
PV UUID lybKyF-aqIM-3tTA-FEH3-LRPn-cjI5-qqhG75
--- Physical volume ---
PV Name /dev/sda4
VG Name DesktopLVM
PV Size 438.82 GiB / not usable 3.84 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 112337
Free PE 0
Allocated PE 112337
PV UUID l1h3Hh-BkzT-Fj0q-9mDH-1IGx-DtI0-v8AGgS
lvdisplay :
--- Logical volume ---
LV Path /dev/DesktopLVM/boot
LV Name boot
VG Name DesktopLVM
LV UUID Je7Lat-TOzj-vWei-5fLe-4cc8-ZAUF-J2IGAu
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:03 +0000
LV Status available
# open 1
LV Size 256.00 MiB
Current LE 64
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Path /dev/DesktopLVM/root
LV Name root
VG Name DesktopLVM
LV UUID xRK2SN-4IG1-RjNV-RHAl-qeXL-R8F3-k4SDQt
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:12 +0000
LV Status available
# open 1
LV Size 20.00 GiB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
--- Logical volume ---
LV Path /dev/DesktopLVM/var
LV Name var
VG Name DesktopLVM
LV UUID Ej5zmm-7Q2x-HubD-JCBp-rg3F-g1oo-4rGBEn
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:21 +0000
LV Status available
# open 1
LV Size 8.00 GiB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:3
--- Logical volume ---
LV Path /dev/DesktopLVM/home
LV Name home
VG Name DesktopLVM
LV UUID jU5Fdz-Tgdl-wPeE-ePOB-NaZk-CsGN-Xc8rkn
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:37 +0000
LV Status available
# open 1
LV Size 437.50 GiB
Current LE 111999
Segments 4
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:4
The problem is when using grub-install :
sh-4.2# grub-install --recheck /dev/sda
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
/usr/bin/grub-bios-setup: warning: your core.img is unusually large. It won't fit in the embedding area.
/usr/bin/grub-bios-setup: error: embedding is not possible, but this is required for RAID and LVM install.
cat /boot/grub/grub.cfg :
# DO NOT EDIT THIS FILE
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/DesktopLVM-root'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/DesktopLVM-root' b881e4e6-ad72-495c-8ae1-610ec15d27c8
else
search --no-floppy --fs-uuid --set=root b881e4e6-ad72-495c-8ae1-610ec15d27c8
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-b881e4e6-ad72-495c-8ae1-610ec15d27c8' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/DesktopLVM-boot'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/DesktopLVM-boot' edf3011c-e581-448e-baad-d1e03d5fb8f6
else
search --no-floppy --fs-uuid --set=root edf3011c-e581-448e-baad-d1e03d5fb8f6
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=/dev/mapper/DesktopLVM-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-b881e4e6-ad72-495c-8ae1-610ec15d27c8' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/DesktopLVM-boot'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/DesktopLVM-boot' edf3011c-e581-448e-baad-d1e03d5fb8f6
else
search --no-floppy --fs-uuid --set=root edf3011c-e581-448e-baad-d1e03d5fb8f6
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=/dev/mapper/DesktopLVM-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###
Partially related, fdisk -l :
Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x1bbed4e9
Device Boot Start End Blocks Id System
/dev/sda1 * 63 498014 248976 8e Linux LVM
/dev/sda2 498015 40499864 20000925 8e Linux LVM
/dev/sda3 40499865 56500604 8000370 8e Linux LVM
/dev/sda4 56500605 976773167 460136281+ 8e Linux LVM
Disk /dev/mapper/arch_root-image: 1494 MB, 1494220800 bytes, 2918400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-boot: 268 MB, 268435456 bytes, 524288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-root: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-var: 8589 MB, 8589934592 bytes, 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-home: 469.8 GB, 469757853696 bytes, 917495808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
How do i install grub now ?
L.E. : do not include the boot partition into LVM.
Last edited by psycho (2013-08-01 18:58:18)Your first partition starts at block 63. Grub has gotten so bloated that it now writes to not only the MBR, but also to the space from the MBR (after sector 0) to the start of the first partition, which these days is sector 2048. This new start point is for alignment purposes.
You either need to recreate your first partition and let fdsik align it to sector 2048, or you need to create a grub bios boot partition (as though you were using GPT).
Honestly, although grub2 can handle this, I think putting /boot inside the LVM is a bad idea. It just makes you totally reliant on grub2 with no other bootloader choice. For example, if something in some poorly designed program decided to write some crap to the area between the MBR and the first partition (which applications have been known to do), and you had a USB flash drive with syslinux on it (which the Arch live media has), then you could not set it up to boot your disc.
I think you should use the pvremove command to take that first partition out temporarily, then create two new partitions. One for /boot and one to add back. But this is not going to be very straight forward since you already have four primary partitions. It might be better to convert your partitions to GPT (which is super easy using gdisk) because then you are limited to only 128 primary partitions instead of a measly four. If you do that though, then you will have to make three new partitions if you want to continue to use grub2. You will additionally need the grub bios partition mentioned above. The grub2 wiki page had more info on this. But then you should make the /boot partition and then the partition to add back.
At the very least, you are going to have to remove the first partition so that it can be resized, and then add it back. Hopefully, you have not already filled the LVM space, so that you can easily shift things around. -
11gR2 2 node RAC/ASM hanging
Hi,
I am attempting to install 11gR2 on two nodes.
Things seem to be going quite well from the first node, including running of root.sh
On the second node however, when running root.sh it hangs at this point :
==================================================
[root@vore /]# /u01/app/11.2.0/grid/root.sh
Running Oracle 11g root script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/11.2.0/grid
Enter the full pathname of the local bin directory: [usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
==================================================================
It doesnt budge (I left it there for 3 hours at one point)
Any ideas where I should look?
Thanks
jm
Edited by: 871764 on Jul 12, 2011 2:00 PMThanks
Here is the output (the last part of it anyways..)
++ '[' -f /u01/app/11.2.0/grid/install/oratab ']'
++ /bin/chown oracle:oinstall /etc/oratab
++ /bin/chmod 664 /etc/oratab
+++ /bin/grep '^*:/u01/app/11.2.0/grid:' /etc/oratab
++ FOUND_OLD=
++ '[' -n '' ']'
++ echo 'Entries will be added to the /etc/oratab file as needed by'
++ /usr/bin/tee -a /u01/app/11.2.0/grid/install/root_vore.supnet.local_2011-07-11_16-31-14.log
Entries will be added to the /etc/oratab file as needed by
++ echo 'Database Configuration Assistant when a database is created'
++ /usr/bin/tee -a /u01/app/11.2.0/grid/install/root_vore.supnet.local_2011-07-11_16-31-14.log
Database Configuration Assistant when a database is created
++ '[' -f /u01/app/11.2.0/grid/install/oratab -a true = true ']'
++ echo 'Finished running generic part of root script.'
++ /usr/bin/tee -a /u01/app/11.2.0/grid/install/root_vore.supnet.local_2011-07-11_16-31-14.log
Finished running generic part of root script.
++ echo 'Now product-specific root actions will be performed.'
++ /usr/bin/tee -a /u01/app/11.2.0/grid/install/root_vore.supnet.local_2011-07-11_16-31-14.log
Now product-specific root actions will be performed.
+ /u01/app/11.2.0/grid/network/install/sqlnet/setowner.sh
+ /u01/app/11.2.0/grid/rdbms/install/rootadd_rdbms.sh
+ /u01/app/11.2.0/grid/rdbms/install/rootadd_filemap.sh
+ /u01/app/11.2.0/grid/crs/config/rootconfig.sh
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Maybe you are looking for
-
HELLO, 1. WHAT IS OSS. 2. EXPLAIN THE CONCEPT OF CTS. REGARDS BALEEQ
-
FCP 5 & Quicksilver 733 - bad idea?
Hi! I've got a Quicksilver 733 and wanted to know if it's stupid to even think of buying FCP even if: a.) i upgrade my processor, b.) upgrade my video cards c.) upgrade to Tiger I'm going to make the upgrades at least a & b no matter what... Advice,
-
Customize Graph Palette buttons
Is there a way to customize the Graph Palette buttons in a XYGraph with LabVIEW 8.2.1? I'm able to select and customize the cursor movement arrows (I imported two customized images for the ON and OFF state, for example); but when I select in the same
-
Hi, Please kindly send me the Plan Table CREATE TABLE script for Release 9.0.1.0.0 Since I have only client on my machine, i have not found the script in my local folder. Regards Ashish
-
I tried to customize the Envy 15t but I can't proceed on upgrading the following. Error 24GB SSD Acceleration Cache requires purchase only up to 8GB System Memory. Why can't I use the 16GB DDR3 System Memory (2 Dimm) with 24GB flash Hard Drive Accel