Red Hat / Fedora :: DST Change Over Not Working As Expected

Mar 24, 2010

I'm trying to test whether some software that I am using will behave as expected when DST change over occurs. I'm specifically testing it for the GB timezone when it enters British Summer Time (BST) and then reverts to GMT. From the information I have, BST starts: Sunday 28 March 01:00 GMT (02:00 BST)and ends: Sunday 31 October 02:00 BST (01:00 GMT )To do this test I wrote a shell script that sets the date, runs the program, checks some logs and then reverts the time.

Entering BST was fairly straight forward as all I had to do was the following: export TZ=GB
date 032800582010This set the date to be 28th March and the time to be 00:58 in the GB (GMT) timezone. As expected, the date then rolled forward to 02:00 BST. However, when I tried to do the same for coming out of BST into GMT, the time did not work out as expected. export TZ=GB
date 103101582010Setting the time as above put the time straight into GMT and not BST even though it was two minutes before the time should have rolled-over.

However if I put the following: export TZ=GB
date 103100582010the date was reported as BST!
How can I setup the time so that I don't have to wait for hour before BST ends?

View 2 Replies


ADVERTISEMENT

OpenSUSE :: Use Of Setfacl Not Working As Expected

Jun 4, 2010

I used setfacl to set permissions as follows:

As you can see all settings lead to permissions 777 but that's not what happens. What happens if I say, touch a file, I get: 666 as this shows:

Same for files that are not obviously scripts such as just a.txt.

My umask is 0022.

Does anyone know why this is? Is it changeable for specific directories?

This is a special world viewed directory required by a piece of software... in other words, no, I am not in a habit of setting file permissions to 777 so please no comments about you shouldn't be using such permissions.

Truthfully, I can probably get away with permissions 666 and will if I can but right now I just want to know why it's happening this way and how to control it.

View 4 Replies View Related

General :: Locale Adjustment Not Working As Expected?

May 13, 2011

On Slackware64 13.1 the as-installed en_GB locale gave Sunday as the first day of the week. This was not an issue until Xfce's Orage calendar was used when its display of Sunday as the first day of the week was offputting for someone used to Monday. A minor inconvenience but expected to be easy to fix.

At the command line:
Code:
c@CW8:~$ export LANG=en_GB <== same for en_GB.utf8

[code]....

View 2 Replies View Related

Networking :: Cannot Login Using Ssh (iptables Not Working As Expected)

Jun 20, 2010

On the computer on which I have to login, Shoreline is installed.I know I can add rule to /etc/shoreline/rules but I decided to manually enter an iptable rule by typing:

Quote:

/sbin/iptables -A local2fw -s 10.100.98.74 -p tcp -m tcp --dport 22 -j ACCEPT

Then why am I not able to login using 10.100.98.74... I get connection refused error...

View 3 Replies View Related

Security :: SSH Login Without Password Not Working As Expected?

May 5, 2010

There is this one server running CentOS5.4 Final which has certain application like Bugzilla. I have setup ssh on it and setup is for password less authentication. Have also setup PasswordAuthentication to no. So with password authentication should succeed. But it is. Though password less authentication is working fine, but I am also able to login using password.

Code:

RSAAuthentication yes
PubkeyAuthentication yes
PermitEmptyPasswords no
PasswordAuthentication no

View 4 Replies View Related

Programming :: Awk Computed Regex Not Working As Expected

May 31, 2011

So those of you that know me will agree that when it comes to awk I don't usually ask a lot of questions ... however this one has me stumped. I am guessing I have missed something obvious but for the life of me (and I have tested at great length) I cannot find it So the scenario is this: The following awk code should identify all versions of libgpg-error within the attached file (see below) and only show one for each version:

[Code]...

View 12 Replies View Related

CentOS 5 Server :: Openldap Acl Not Working As Expected?

Jun 22, 2009

CentOS 5.2. Openldap server-2.3.27-8.el5_2.4 I'm trying to get the server to do two things. One is allow authentication--that is, if a client is configured to use openldap for authentication, it should be able to access this server.

In other words, on machine_2, a client, doing getent passwd (as a quick test) will show the users in the openldap database. The more or less out of the box configuration works for this. However, as soon as I start trying to add ACLs, it stops working. For example, I want to restrict access to an address book which is also in the database. So I have

access to base.dn(changing base to subtree makes no difference) "ou=addressbook,dc=example, dc=com"
by users read by anonymous auth Now, even though this is just the address book, after that, an ldap client can no longer get the names of users in ou=People, and using the ldap server for authentication doesn't work.

I don't understand what I'm missing. ACLs are supposed to work first match wins. *IF* I add under that, access to * by * read, it will work, but the address book can then be accessed without a bind dn.

I am not sure what I'm overlooking. If I put in any sort of access control, the only way that clients can continue to use the server for authentication is adding that access to * (or to dc=example,dc=com"), by * read. I tried using access to ou=Group and ou=Peoplle by * read, thinking that would allow the clients to authenticate, but that doesn't work either, The idea is to allow any machine configured as a client to use it for authentication, but also to restrict viewing the address book only to those with a proper bind dn name.

View 4 Replies View Related

Ubuntu :: Folder View Screenlet Not Working As Expected?

Mar 4, 2010

I want to try out the screenlet called Folder View:[URL]I have downloaded and installed it fine. However, when I double-click on it (or use the Start/Stop button) there is a momentary flash and then nothing interesting. I have checked on the widget layer and on all desktops and I have tried various settings in Options all to no avail

View 2 Replies View Related

Ubuntu Servers :: Postfix+dovecot Not Working As Expected?

Nov 9, 2010

I have tried to find solution in existing posts but could not specifically find any with my kind of issues and hence a new post on oft repeated subject !! -- and apologies for a long long post here.Here is where I am ..On a AMD 64bit machine - I have ubuntu 10.10 desktop installed. I want this development machine to support virtual mailboxes so that I can use them from multiple apps and create real life deployment situations.I installed postfix + dovecot following the tutorials available here and current state is - I can send mails using telnet sessions and I see that the mail files are getting created in /Maildir form as I have directed in the conf files. I have configured Thunderbird mail client as well.

Issue #1: Mail sending works from Thunderbird but it always responds back with 'No mail on server' message when I try to receive mails. SMTP is configured with STARTTLS and POP3 with None (i.e. plain text password)Issue #2: Also, while going thru conf, logs and during testing - I found a few things which defer in this installation for authentication. I have given the session transcripts here.Issue #3: That being major issue - I also want to configure my virtual users to use TB client to access their mails - I did not find any tutorials or pointers towards that in my search for past few days. If I send mails to a non-Unix virtual user - the mail gets stored into /home/vmail/<domain>/<user>/new directory.Here are the conf files.main.cf for postfix

Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first

[code]....

View 1 Replies View Related

General :: Bulk File Rename Not Working As Expected?

Jun 25, 2011

Y want to rename a bunch of files and directories to remove the space on the names, easy enough right?

Code:
for source in $(find ./); do target=$(echo "$source"|sed -e 's/ /_/g'); mv -f "$source" $target; done

Well, I thought that should have work but the problem is that $source comes up broken, when I run it with echo instead of mv I get the echo with broken names.

Code:
In this case "$source"="This is the file I want to rename"
$ echo "$source"

[Code]....

View 3 Replies View Related

Ubuntu :: Rsyslog Upstart Script Not Working As Expected?

Mar 13, 2011

Not sure if this is the correct area to ask this question as it pertains to Upstart but not necessarily to Ubuntu.

Anyhoo, I have made a small alteration (obviously the cause of error ) but not really sure why it does not work.

rsyslog.conf:
Code:
# rsyslog - system logging daemon
#
# rsyslog is an enhanced multi-threaded replacement for the traditional
# syslog daemon, logging messages from applications

[Code].....

View 3 Replies View Related

Networking :: Setting Up Network Card / Eth(n) Pairings, Not Working As Expected?

Mar 12, 2010

I haven't done a great deal of networking with Linux so bear with me if the solution seems obvious.I've got four machines with two Ethernet cards each; one on-board and one PCI. I'm trying to get it set up so that the PCI card is eth0, then the on-board eth1. This.. isn't going as easily as I would have thought. I expected I could just go to network configuration, switch to the "Hardware" tab... change the on-board card to be device eth1, change the PCI to be device eth0... then go to the "Devices" tab and change the nickname to match the device.

This has decidedly not worked at all. Additionally, on some of the machines that I haven't messed with, the device name for the PCI card isn't ethn, it's something like "Intelnnnnn" (some string of numbers that I don't have in front of me). Something more specific to the card I'm sure, but while I can assign that device a nickname, I can't use it.. I can ping -I Intelnnnn ip.add.re.ss, but I can't ping -I eth3 ip.add.re.ess.

Where am I going wrong here? I've looked at a few tutorials online but they look extremely more complicated (read_device_bus_id? qeth device?) than should be necessary for just what I'm trying to do

View 7 Replies View Related

General :: Monitor Not Working As Expected With LiveDistros - Screen Is Totally Dead ?

Feb 27, 2010

I have an Acer Aspire 6930g with an nVidia GeForce 9300m GS which has a broken screen. I have been using an external monitor for some time using Linux Mint, without issue.

I initially set this up with great difficulty using the small parts of the screen that would still display an image at the time. Now, however the screen is totally dead, I have since disconnected the laptop monitor in order to not cause issues.

The issue I am currently having is trying to use live distros.

I'll give you example: I boot ubuntu 9.10 32bit and it gets to the initial boot menu. I choose "Try Ubuntu..." It shows the loading screen. Screen goes blank when going to desktop

I tried Ctrl+Alt+F1 to get to a terminal, but the screen stays blank. The same thing happens with both Knoppix and Backtrack 4 as well. The display goes blank upon switching to the desktop.

View 2 Replies View Related

Ubuntu Installation :: Preseed-file Not Working As Expected On Lucid Desktop Install - Read

Jul 30, 2010

I have a problem to get it to work. The installer seems to read the preseed-file alright, and some of the values defined in the preseed-file are taken into account. The questions regarding locale, keyboard layout and time zone are answered using the preseed-file, but in the user account creation-step the process goes wrong. The Full name-field is obtained from the preseed-file, but the login-name is generated by the installer and not read from the preseed. Also the password-fields are empty and not filled in. Also the script that I've defined with preseed/late_command is never run.

I tried searching the forums but no-one had exactly this kind of problem, so it makes me think that this has to be some trivial error I'm doing. Could someone take a look at these configs and see if there's something wrong with them? How should I continue resolving this?

[Code]....

View 1 Replies View Related

Fedora Networking :: MTU Change Not Working?

Dec 26, 2009

I have fedora 12. xfce

My internet not working because i need to change mtu.On ubuntu, before it worked when I changed the MTU to 1400.

Fedora:

I followed the instructions:

Changing the MTU size permanently under CentOS / RHEL / Fedora Linux
Edit /etc/sysconfig/network-scripts/ifcfg-eth0, enter
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Add MTU, settings:
MTU="9000"
Save and close the file. Restart networking:

[Code]....

View 2 Replies View Related

Red Hat / Fedora :: SSH Via Putty Not Working After Ip Change?

Mar 29, 2010

Running Fedora 5

We changed ip's the other day and now ssh is not working. SSH/Putty was working fine before the ip change. Everything else is working fine on the machine. The sshd_config file has not been touched at all since I've been working on the machine.

var/log/messages shows this: Code: bind to port 22 on 0.0.0.0 failed address already in use netstat -an shows that tcp is listening on 0.0.0.0:22 with no port conflicts.

View 9 Replies View Related

Fedora :: Change The MOBO And Trying To Get The Serial Port Working?

Apr 20, 2011

I've just had to change the MOBO and trying to get the serial port working, I see from previous posts there are some problems lurking in the past.

setserial -g /dev/ttyS*
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

but I'm not seeing anything from a GPS receiver in NMEA at 4800 no par 1 stp I know that was working about a year ago. I think udev was not helping ,as I was getting permission denied to the com port, I added myself to group dialout. and no message on startup now

I need to be able to talk to a piece of kit with 9600 baud and nothing. I have win32 s/w to drive it , but it falls over in wine. My laptop still has win7 on it in a tiny partition but no 9w d connector and I'm waiting for a USB converter cable. Too many variables ! I'd forgotten all the hassle of having to install drivers just to get basic things running. But as the stupid thing couldn't manage using the driver for my NIC, I was stuck with hyper-terminal, and nothing from the GPS board @4800 or another piece of equipment running at 9600. I suspect the com port on the new mobo doesn't wan to play

View 2 Replies View Related

Fedora Installation :: Texinfo 4.9 From Texinfo-4.9.tar.bz2 - Info.c:161: Error: Expected Expression Before '/' Token

Mar 17, 2011

I'm using fedora 12 with sun virtualbox and I want to install texinfo 4.9 from texinfo-4.9.tar.bz2

-I extracted the archive in a folder..........ok
-In a terminal: ./configure......................ok
-In the terminal: make...........................error

I am getting:

info.c: In function 'main':
info.c:161: error: expected expression before '/' token
info.c:327: error: expected expression before '/' token
info.c:327: error: too few arguments to function 'info_add_path' ...

and a lot more. For some personnal reasons I must install it this way, I can't upgrade fedora, gcc...

View 14 Replies View Related

Fedora Hardware :: "Drive Failure Expected In Less Than 24 Hours. Save All Data Immediately"

Nov 21, 2009

I have a 500GB Hitachi external hard drive that I use for backup. It's about 17 months old and has barely been used. Two partitions reside on it: a 446.2GB ext4 partition I use for backup and an LVM partition that contains an NTFS partition and another ext4 partition.

I started it and connected it to my laptop today (after not using for 4 months). A libnotify message warned that "drive failure [was] expected in less than 24 hours." Palimpset shows "Reallocated Sector Count" with status "FAILING" and value "343 sectors" and "Current Pending Sector Count" with value "1556" and status "FAILING". At first I figured it was just the self-check being programmed for NTFS only (not unheard of). But then I saw that Palimpset has the Linux partition labelled as "unrecognized". The temperature is normal (about 20�C). What's going on here?I have not mounted the drive yet and the data is largely unimportant, so I'm more concerned about the hardware (even though hardware damage seems the unlikely possibility). To prevent or minimize hardware damage, what would my best course of action be?

View 12 Replies View Related

General :: Awk Does Not Print The Value Of The Variable As Expected

Apr 4, 2011

I have this simple awk program but it not prints var_cab whe^E or ^S or ^M after he finds the second ^C

/^C/ { var_cab = substr($0,1,28); ent = 0 ; print "estoy en cabecera" var_cab;}
/^E/ { if ( ent ==0 ) var_fech = substr($0,4,8) ; ent ++;
print var_cab var_fech $0; }
/^S/ { print var_cab var_fech $0; }
/^M/ { print var_cab var_fech $0; }
END { print var_cab,ent}

the input file is many lines like this, every new block stats with ^CAB

CABES3000088888880000007EAMB
ENT20090706D060709-888 0028560000000012VALLE CA'ZULIA5501, 5502, 5498 y 5535
SAL201008250000134900000321V1202935-MU

[code]....

View 4 Replies View Related

Programming :: C Code Not Running As Expected / Cause Of It?

Apr 27, 2010

I was wondering why this code only returns me the same value ten times instead of valuate the conta+0.1 value code...

View 6 Replies View Related

OpenSUSE :: Backup With Yast Does Not Name The Files As Expected

Mar 8, 2011

When i create a backup with yast using the option to manually create it, i select the file name /mnt/Backup/system-full-$(date +%F).tar which results later on in two files, the xml file and the tar file with different names:

for example
/mnt/Backup/system-full-2011-03-08.tar, /mnt/Backup/system-full-$(date +%F).xml

this is not acceptable. both files should have the same suffix. Is this the expected behavior or should i report a bug?

View 6 Replies View Related

Ubuntu :: Sudo Does Not Preserve PATH As Expected?

Jun 11, 2010

I'm attempting to add a directory to PATH so it's available when I sudo. (I do not want to sudo -i), but it's not behaving as I expect.I've added a line to add the directory to PATH in all of these files:

Code:
/etc/environment
/etc/bash.bashrc

[code]....

View 4 Replies View Related

Ubuntu :: Gksudo Doesn't Work As Expected

Oct 7, 2010

I am running following command- $ gksudo ./myscript

It doesnt do anything. If i run sudo, then it works perfectly fine.

View 4 Replies View Related

General :: Bareword Found Where Operator Expected?

Oct 14, 2010

$dec93 = 93;
$ser = SERVO;
$lbit = uc(sprintf("%02x
", $dec93));
if($lbit == 5D){
print DATA "Byte11: $fbits11=$bstr11 Bits:[95-88] $ser
";
}else{
sleep(1);
}

Why do I get this error? Bareword found where operator expected at C:Perl ScriptsLbits.pl line 64, near "5D" (Missing operator before D?)

View 2 Replies View Related

Programming :: Why The Expected =, ,, ;, Asm Or __attribute__ Before Typedef Error

Feb 2, 2010

Can you tell me why gcc on LINUX is giving me this error (works find on our SCO machine)/us4/prw/include/vv_sys.h:797: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'

797 typedef struct node_struct /*NODE STRUCTURE */
798 {
799 struct node_struct *prev_ndp; /*previous node pointer */

[code]....

View 8 Replies View Related

Ubuntu :: Python - IndentationError - Expected An Indented Block

Aug 23, 2010

I am trying to do my first Python program and I am having a little bit of trouble. I get this "IndentationError: expected an indented block".

Here is the code:

Code:

View 8 Replies View Related

Ubuntu Networking :: Ethernet Not Reaching Expected Speed?

Sep 13, 2010

I have been doing a variety of speed tests on my ethernet connection in preparation for upgrading my service and found that the connection on my dell d630 is not getting expected download speeds. In fact, it is getting about a third of the expected speed. This machine is running Lucid. It also dual boots Windows Vista. Checking Vista a moment ago, the speed is fine. What could be the problem that is preventing the ethernet from working at 100%?

View 7 Replies View Related

Ubuntu :: Gnome-settings-daemon Does Not Work As Expected?

Oct 28, 2010

I just installed Ubuntu 10.10 on a brand new HP EliteBook 8540w with an Nvidia card. To get the machine to work at all I have to use the proprietary nvidia driver. The downside is that when I use this driver gnome-settings-daemon seems to crash when I start the machine which results in a ugly theme. To fix this I have to run the following command:

Code:
sudo gnome-settings-daemon

After this the theme is re-applied. If I try to run gnome-settings-daemon as my regular user I get the following messages:

Code:
** (gnome-settings-daemon:2187): WARNING **: Failed to acquire org.gnome.SettingsDaemon
** (gnome-settings-daemon:2187): WARNING **: Could not acquire name

[Code]...

View 1 Replies View Related

General :: Access Time For Ramdisk Is Not As Fast As Expected?

Feb 18, 2010

I am trying to use the Linux Ramdisk y machine and followed the instructions oninux/Ramdisk/ramdisk.html to create a 4GB ramdisk (total memory is 8GB, linux 2.6.9)The issue is that it is taking me almost exactly the same time to read a 1GB file from ramdisk as it is from disk. I was expecting it to be atleast twice as fast.Has anyone encountered this before?

View 1 Replies View Related







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