General :: Ksh93 Versus Pdksh88: Custom PS1 Prompt Not Working?

Jan 19, 2011

I have to work with a NFS user id between two hosts: A running Ksh 93 and B running pdksh 88. Both host run RedHat. My problem has to do with the custom prompt I created on A: it works like a charm and display colors:

Code:

PS1="$'E[46;31m'`logname`@$'E[1;33m'`hostname -s`:$'E[0m>"

But I switch over to B, it all goes to hell (private info removed). The prompt fails to display colors like host A ; instead, the color codes are displayed "in clear".

Code:

$'E[46;31m'NFS_user_name@$'E[1;33m'host_name_for_B:$'E[0m>

The prompt on host B is not displaying colors like host A so I want B to display a basic prompt instead. To get around the problem, I edited my .kshrc file to add this code at the end

Code:

export NODE=`uname -n`
case $NODE in
host_name_for_B)

[code]...

The case statement does not work: PS1 does not switch to `PS1="[`logname`@`uname -n`]>"`.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Make A Custom Debian Package Prompt For A Restart After Installation

Jun 29, 2011

I am wondering how to add a need to restart notification in a Debian package, so upon installation, it'd pop up something to tell the user to restart the computer for changes to take effect. Perhaps something like what happens with some packages through the update-manager when it prompts the user to restart for the changes to take effect.

Is there any way to do that? Perhaps adding something at the end of a "postinst" file?

Thinking about it, I could just add something like this at the end of the "postinst" file:

Code:
notify-send -t 86400000 -i /usr/share/icons/gnome/32x32/status/info.png "Please restart the computer for all changes to take effect."

It'd work, but not as well. For instance, if the person isn't by their computer at the time.

Another option could be using a Zenity dialog box. That might work. Though, if done, wouldn't a yes/no question box keep the actual package from technically finishing until the user would select yes/no to restart?

View 6 Replies View Related

General :: Export Is Not Working On Command Prompt?

Aug 26, 2010

The command export is working inside a shell script, but when I type it at the command prompt / terminal it doesn't work. "export: The command not found" error is displayed instead.

I tried this:

cat test.sh

Code:

abc=123
export abc
echo "Exit status of export abc: $?"

[code]....

I tried it before on my RHEL system and it was working. I have checked

Code:

echo $PATH

which is okay. What could be the problem?

View 7 Replies View Related

General :: HTTPS Not Working On Custom Port?

Aug 19, 2011

I am doing this as a test for bigger deployment. I have Apache running on CentOS5 in a clean VM (just a few tools installed, PHP and such).If mod_ssl is set to listen on 443 in /etc/httpd/conf.d/ssl.conf the the site at https://192.168.1.137 loads just fine.If I change the listen port to eg. 9443 in ssl.conf and reload httpd the page wont load athttps://192.168.1.137:9443 - I set the eth0 to be trusted and disabled SElinux in case that was interfering but still no luck.

View 1 Replies View Related

Ubuntu :: Login Prompt - Virtual Terminals Not Working?

Feb 6, 2010

Usually I get a login prompt on Ctrl+Alt+F[1-6], but now I just see a blinking cursor in all of them, along with some boot messages in the first virtual terminal.

Code:
fsck from util-linux-ng 2.6
init: bootchart main process (462) terminated with status 2
init: bootchart post-stop process (474) terminated with status 127
/dev/sda2: clean, (integer)/(integer) files, (integer)/(integer) blocks
init: ureadahead-other main process (870) terminated with status 4

What's even weirder about this is that I uninstalled bootchart a few months ago. Whether that's related or not is beyond me, but the virtual terminals did stop working somewhere around that time. I solved this by reverting to my original /etc/network/interfaces file. Without the loopback "lo" device, the runlevel was never set, and virtual terminals never loaded.

This should be somewhere in the interfaces file:
Code:
auto lo
iface lo inet loopback

View 1 Replies View Related

Ubuntu :: Custom Keyboard Shortcut Not Working For Some Applications?

Dec 21, 2010

i am trying to set some custom keyboard shortcuts using compiz in the commands section...but it is not working. For example , i want to use kaffeine and i am using as command the word kaffeine. When i use it in the custom commpand of compiz it is not working at all. Just to be sure that the command is indeed "kaffeine" i execute it via terminal using the word "kaffeine" and it is executed normaly. I am 100% sure that the command is only for terminal use and as general launcher. The same behavior is observed for other applications. The strange thing is that when i want to put a custom keyboard shortcut in compiz for a python script then the command "python xxx.py" is working!

View 8 Replies View Related

General :: GUI Versus RPM And APT

Apr 6, 2010

Why should I concern myself only with a graphical front end rather than learning APT or RPM? Or are those really, really hard to learn?

View 7 Replies View Related

Ubuntu :: Stopped Working Again - Boots To A Console Login Prompt?

Mar 6, 2010

Ubuntu has stopped booting correctly. Now it shows the Ubuntu logo and then, instead of GDM, it shows a console login prompt. How do I go about troubleshooting this?'m in Windows XP (which I like a lot better than Ubuntu, because it actually works) but all my files and work are on my Linux partition.

View 9 Replies View Related

Fedora Servers :: DHCP Server - Custom Options Not Working

Apr 8, 2010

I am trying to get custom options to work.

This is my Dhcpd.conf file

This shows that I have 3 custom option in RED.

Now when I try to pull an Ip from the 96.63.0.0/24 subnet I do not see the options in the DHCPACK from the server. The client gets an IP 96.63.0.12 but no options are present in the DHCPACK or any other DHCP transaction. I have confirmed this trhough tcpdumps on the server and client.

The server version I am using is:

The version of the DHCP server is :

Internet Systems Consortium DHCP Server V3.0.6-Fedora

View 1 Replies View Related

Fedora :: Custom Font Configuration For Korean Fonts (not Working)

Aug 21, 2010

My goal is when test should be drawn using mono, sans serif family fonts, Korean font should be picked up.I have added below entry in fonts.conf and the font is also installed under fonts directory.

Using FC_DEBUG flag, I checked that score for this font is not coming the "Best Score".I am not sure what the problem is, If I expect fontconfig to just replace sans with my font, it should take that.

View 4 Replies View Related

General :: Get Away From The # Prompt And To The $ Prompt?

Mar 19, 2010

I'm logging on my server via PuTTY but I'm getting the bash # prompt and I can't call the few commands I know i.e.: lynx

How do I get the more familiar $ prompt?

View 4 Replies View Related

General :: Bash Versus Pinyin ?

Aug 23, 2010

I am trying my hand at Bash scripting. I have a file with lots of pinyin, which is the romanized version of Chinese characters and words. A typical entry looks like this,

"7 shuo1 to speak"

Seven is the number of the entry shuo is the pinyin, 1 is the tone mark and is the Chinese character.

What I would like to do is change the format so that it looks more like this:

7 shuo 1

Each field needs to be re-assigned to a variable in an array and then printed to the screen and saved to a file in the same order it was input. This is to prepare the data for another project I am working on in imagemagick.

I have spent all day looking at linux man pages and have very little to show for my efforts. What is the best way to approach this? grep, awk, sed...?

View 1 Replies View Related

General :: Slackware Versus Archlinux ?

May 19, 2010

I have a Dvd of Slackware as well as an Iso image of Arch.

All i know about the difference between Slackware and Arch is the stability, i.e. Slackware is more stable than Arch !

Is that all or there is some other difference which should be considered ?

Which one out of the above two, should i go for and why ?

View 14 Replies View Related

General :: Unmount Versus Hide

Oct 25, 2009

trying to do a multiboot, just for fun Now I installed Foresight Linux, which was not such a good.Foresight is based on rpath and uses Conary as update system Now Conary destroyed all other linux systems installed on the other partitions. Now I found that there is something such as hide and unmount but have read several pages full of it but still have no idea what is the difference between the two and more important, how to use this as most explanations seem to complicated How can I hide partitions for a booted linux operating system so it is unable to see it, use it or even mount it when it tries

View 2 Replies View Related

General :: Sudo Versus SU - SAX2 Command?

Jun 3, 2010

I've been using SuSE for a while and something has been bugging me. Not a show stopper, but nevertheless, an interesting one. Most tutorials, forum posts, etc. recommend using a sudo command to accomplish stuff. For example:

Code:
sudo make install
sudo vi file

However, this does not always work. For instance, I was recently working on a resolution problem with my ViewSonic VX922 - it would only display at 1024x768 rather than the native 1280x1024. Viewing some posts, I found the command "sudo sax2 -r". What I discovered is that there seems to be a big difference between sudo and su

Code:
drkhelmt@SPACEBALL1:">sudo sax2
root's password:
sudo: sax2: command not found
drkhelmt@SPACEBALL1:">su
Password:
SPACEBALL1:/home/drkhelmt: #sax2
SaX: Checking update status for intel driver
SaX: initialization already done
SaX: cal [ sax2 -r ] if your system has been changed !
SaX: startup
SaX: X server:0.0-> grant
SaX: importing current configuration
SPACEBALL1:/home/drkhelmt: #

So the question, why does the command sax2 (and others) work when after the su command rather than a sudo?

View 5 Replies View Related

General ::Building From Source Versus Yum Install Or RPM

Nov 7, 2010

I'd like to clear up my misconception towards various types of installations. Is one better than the other? Do more senior people prefer compiling from source code? Hows does is compare to yum install or install from rpm?

View 7 Replies View Related

General :: Knoppix Versus Ubuntu Installation CD

Feb 12, 2010

On my ms windows machine, the OS went out of order, and I wanted to salvage all my pictures, and decided to use a live CD and move some of my media files to my mp3 player... its storage is 8 gigabytes I tried a latest Knoppix first, it did not provide me a nice GUI. Instead, it provide me with a humble looking, less than friendly, menu-based interface which I gave up on in about 3 minutes. I was thinking for a minute, and when I tried to install Ubuntu in the past, one of the options I was provided when I ran the Ubuntu installation CD was "Try Ubuntu without installing it" and I thought it meant the Ubuntu installation CD could also be used a live CD. And I put together an Ubuntu CD and attempted to use it as a live CD! ah man it was beautiful. It even recognized the video card on my machine. I am never going back to knoppix. From now on, when someone ever mentions Knoppix to me, my response will be, "what is Knoppix?"

View 11 Replies View Related

General :: Version Versus Release RPM Package

Apr 6, 2011

Trying to understand version nr. of RPM package and release nr.I have the following package e.g.

tree-1.5.3-2.el6.x86_64.rpm.
tree ---> package name
1.5.3 ---> version
2 ---> release
e16 ---> operating system major version
x86_64 ---> cpu architecture

What is the difference between version nr vs release nr ?

View 4 Replies View Related

General :: Xserver Versus Nvidia Geforce Mx 440

Jun 17, 2011

just installed slackware 13.37... i did a bit of configuration by myself but im having trouble making my graphics card running correctly under X.I installed the latest drivers correctly from the nvidia website.

Here's the lspci:

Quote:

00:00.0 Host bridge: Intel Corporation 82845 845 [Brookdale] Chipset Host Bridge (rev 04)
00:01.0 PCI bridge: Intel Corporation 82845 845 [Brookdale] Chipset AGP Bridge (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 05)
00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 05)

[code]....

Right now with this .conf im able to start up X but find it not accelerated...

View 22 Replies View Related

Fedora Installation :: Erratic Install Results W/initrd - Custom Spins With Custom Drivers - Modules?

Dec 28, 2009

Just spent three whole days barking up the wrong tree, solving Fedora 11 and Fedora 12 boot failures because the correct hypothesis was illogical: installation did not update/modify the initrd.

The first couple of times I installed Fedora 11 on the HighPoint Technologies RocketRaid 2640x4, the installation inserted my "custom" driver module (rr26xx) into the initrd, permanently, so that the system booted off the controller card for which the custom driver was inserted. (I yelled about this success in this thread: [url]

My most recent installs of BOTH F11 and F12 on the RocketRaid failed to properly set up the boot. It turns out that the "rr2640" module I "slipstreamed" into the installation process was *NOT* permanently added to the initrd by anaconda. (F12 gave me "no root device found boot has failed, sleeping forever", on boot; F11 hung also, without such error, I presume, during the init script execution). Because of limited resources and time, I only know for sure the module was missing from the F11 initrd, and am ASSUMING the same was the case with F12.

The only difference between the successful installs and the ones with failed boot is that the successful installs were made on a single-drive (JBOD) mode on the controller; whereas, the failed ones were placed on RAID 5. But, AFAIK, the created logical device for the card is "/dev/sda", in both cases, and the kernel can not distinguish between the two cases (or can it?). Thus, the inconsistency cost me a lot of time, and is still inexplicable to me.

Question: What is the best way to deal with custom drivers, today? There are custom spins, and many tools, like isomaster. Stupid question: Is there a way to modify the initrd inside an installer ISO -- be it for CD/DVD/USBboot drive -- beefing the init RAM disk with whatever modules you'd like, for the boot process (using, say, isomaster)?

And what makes anaconda understand that a module must be added to the initrd ? How can one force anaconda to do so?

How does moving to dracut as the initrd tool affect any/all of the above?

View 1 Replies View Related

Red Hat :: Command Line Prompt But Not The Correct Bash Prompt?

Feb 2, 2011

I'm running Red Hat Linux 5.4 on HP DL580 server with 16 processors and 64 GB of RAM. I'm connecting to the server remotely through SSH. after entering the password, it takes time to return the command line, if I click ctrl+c during this time, I'll have the command line prompt but not the correct bash prompt (I have to run bash to pass to my correct prompt).I tried to install Apache on the server, ./configure took 4 hours to finish instead of 1 or two minutes, Oracle installation same behavior. Server Disks are mirrored using RAID controller.

View 6 Replies View Related

General :: Monitor Disk Reads Versus Writes?

Jul 2, 2010

We are graphing various system parameters using Cacti. One of our graphs shows hard drive reads and writes. A question came up: why do we need this graph?

View 3 Replies View Related

General :: Laptop - Standalone Versus Dual Boot

Aug 1, 2011

Doing some research I was leaning towards buying an inexpensive laptop and either install linux or buy one already installed (maybe Debian or Ubunutu). The uses for this laptop would be for developing linux device drivers and having the option to control the OS for any customized applications which I could develop. Didn't want to go the dual boot with Windows approach.

View 1 Replies View Related

General :: Kickstart Versus Windows Deployment Service

Mar 15, 2010

Need comparison of features and performance of Kickstart to Windows Deployment Service? (What do they have in common).

View 4 Replies View Related

General :: Label Versus UUID In Fstab And Menu.lst?

Jan 2, 2010

I realized that my understanding of UUIDs in Linux to specifying hard disk partitions may be erroneous.

The proverbial wisdom is that one should not use hard-coded device specifications in fstab and in the boot menu.lst, such as /dev/sda1 etc. The reason normally given is that if hard disk order changes or the order of partitions change, then the entries will be incorrect since they are hardcoded to partitions following a specific order.

So my understanding was that using hard disk labels, in the form of LABEL=xxxx, or UUIDs in the form of UUID=some-uuid, would prevent these problems when disk order or partition order changed.

I decided to avoid the use of LABEL in case I wanted to change the LABEL on a partition to make the names of partitions more easily identifiable. I then thought that UUID was ideal since it never changed for a partition no matter even if I moved that partition to another drive or added another hard drive and thus changes the order of hard drives on my computer. I essentially thought that once UUID was determined for a partition, it never changed but was somehow part of the partition in the hardware of my computer.

Then I became curious of how a UUID was determined. I did this because I often make backups of partitions on external SATA drives and wanted to make sure that somehow the backup would not duplicate whatever Linux considers the UUID of a partition and present a Linux distribution with two UUIDS which are somehow the same and therefore confuse the Linux distribution to the point that I could not use it. I am aware that UUID means a unique id, but I wanted to make sure I understand how that unique id is determined in Linux. This is especially true since the tool I use to make backups of an entire partition is a Windows application, and not a Linux application, and I wanted to make sure that the backup partition UUID would not duplicate that of an existing partition.

In my very brief research in how a UUID is generated under Linux it appears that it is not something that is part of the hardware of the partition itself but rather a number generated by some parameters of the partition, one of which is the partition order.

If it is, it means to me that if I move a partition from one place to another, even on the same hard drive, or to another hard drive, a Linux distribution will no longer find the partition based on the UUID. In that case it seems as if the UUID is subject to the same weakness as the device specification in fstab and menu.lst in that the order of a partition or the placement of a partition on a particular hard drive will cause the designation to no longer refer to the same partition. In which case it appears to me that only the LABEL parameter is not subject to this weakness and as long as I keep distinct labels for all partitions on my hard drive I could theoretically move them around at will and a Linux distribution will find them correctly. I am aware of course that my computer must always find the boot partition to be able to boot a Linux distribution, so moving Linux parttions where I want them is subject to the ability of my computer to find them from the MBR of my hard drives. But in the main it now appears to me that the best way to insure that moving partitions does not keep a Linux distribution from botting correctly is to use LABEL, and not UUID, in fstab and menu.lst, and of course to make sure that if I decide to change the LABEL of a partition that I must change its entry in fstab and possibly menu.lst before rebooting that distribution.

If I have been wrong in my latest surmises I would appreciate being corrected, as the information I found on UUIDs and how they are generated may not be correct. Also if there is more exact information on exactly how partition UUIDs are generated in Linux I would appreciating anyone pointing it out to me.

View 10 Replies View Related

General :: Different Space Usage (Discus Program Versus Command)

Mar 24, 2011

I have a debian linux on my server. My disk space is only 10GB. When I check the space usage with discus program, it says:

Mount Total Used Avail Prcnt Graph
/ 9.39 GB 8.30 GB 1.10 GB 88.3% [*********-]
+ib/init/rw 124.3 MB 0 KB 124.3 MB 0.0% [----------]
/sys 0 KB 0 KB 0 KB 0.0% [----------]
/dev 120.1 MB 92 KB 120.0 MB 0.1% [----------]
/dev/shm 124.3 MB 0 KB 124.3 MB 0.0% [----------]

But when I use this command:
du / --max-depth=0
It says:
1860864 /

Why the stats of discuss is not like du command?

View 5 Replies View Related

General :: KDE3.5 Versus KDE4 - Difference In Memory Requirements?

Feb 7, 2010

Does kde3.5 differ much in memory requirements from kde4? I'm running kde4 on an old thinkpad with 256mb ram and everything is a little slow...

View 8 Replies View Related

General :: Static Versus Shared Libraries (Linking C Program With GCC)

Mar 16, 2010

I have a third party static library (libSTATIC.a) that I cannot recompile into a shared library. I want to create a shared library (libSHARED.so) that uses the C functions in the static library. Is it possible to do this? In other words, when linking a C program with gcc by using the -shared flag, is it necessary that all all libraries invoked in the program (even low level libraries such as libc for example) be available as shared libraries as well?

View 2 Replies View Related

General :: Pros And Cons Of Virtual Hosting Versus Separate Machine

Feb 9, 2011

I am having vitural hosting around three websites using Centos. I need to type in the full domain name include www to enter the 2 of the vitural hosting sites. Pros and Cons of vitural hosting vs separate machine? I got a questions about static IP. Assume I having a linksys router with port forwarding function, I have three seperate machines with different private address connect to the same linksys router. Can I entry all private address forward to port 80? Does it work? If I insist to host website on three machines, does that mean I need 3 static IP and 3 linksys router? I got two conventional web services only showing information but one got mysql db for user to input data, thats why I asking if it is good idea to seperate web page on different machines.

View 14 Replies View Related

General :: Synaptic Package Manager Versus Ubuntu Software Center

Feb 21, 2011

This is my first Linux experience so probably at the prenewbie level. I have installed Xubuntu and played with it for a couple weeks. The question is about software download attempts from Ubuntu Software center. When I attempt to use it I get the error messages:
Failed to lock the package manager

Check if you are currently running another software management tool, e.g. Synaptic or aptitude. Only one tool is allowed to make changes at a time. The package indexes are currently changed by apt-get. Does this mean that SPM is active and the Software Center will not function until I change enablement between the two? If so, how do I accomplish the task?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved