Debian :: PHP Info Command - Fluctuating Default Timezone
Feb 24, 2010
I have an issue when running the phpinfo() command on a webpage. Occasionally the Default timezone setting shows 'utc', at others it show 'Europe/Berlin'. To prove I'm not going mad I screen captured a short video of the display changing while all I was doing was pressing F5.
The system is set to a European timezone i.e. both date and hwclock commands show 'CET'. There was an update to the Debian tzdata package which I installed at the beginning of February 2010. I'm not aware of there being a problem before that but I could be wrong about that.
I was wondering if there is a way of knowing what is the current set timezone for a linux server. I know that "date +%Z" gives the 3 letter abbreviation of the timezone, but then CST can be interpreted as Central Standard Time (US) and as China Standard Time. I'm looking for a way I could tell what is the real timezone, e.g. "Asia/Jerusalem", "Europe/London", etc. I know that I can set the timezone by symlinking /usr/share/zoneinfo/<Timezone Name> to /etc/localtime, but when I freshly install CentOS and choose my timezone, /etc/localtime isn't a symlink at all so I can't use this info...
i am having a problem with the installation with ubuntu 10.10 during the installation, i was entering my setup info (login password, timezone, etc.) when everything stopped working, it wouldnt let me continue, the forward button wouldnt work. i let it set for a good 30 minutes but it wouldnt do anything.
so unable to continue, i restarted and tried to boot from my cd drive and now it wont boot from the drive, and since i let ubuntu delete my windows partition, i cant boot from it so i basically have a blank hard drive. the cd drive will boot other cds because i booted hirens boot cd in an attempt to make sure the cd drive was functioning and ran diagnostics to make sure the drive was alright.
Is there a command line utility to tell me about what's inside a video file? Say I have a .mpg file. I want to know about the video stream and the various audio streams, the codec used for the video stream, the bitrate of the video stream, and so on.
I'm trying to install Symfony to Debian 7 amd64 LAMP Server and I have some lil problems
When I run php my_project_name/app/check.php
It says: [ERROR] Your system is not ready to run Symfony2 projects Fix the following mandatory requirements
* date.timezone setting must be set > Set the "date.timezone" setting in php.ini* (like Europe/Paris).
I already tried to edit php.ini with command : sudo nano /etc/php5/apache2/php.ini
I deleted ; and so under [Date] section is now following sentence: date.timezone = Europe/Helsinki after that restarted apache /etc/init.d/apache2 restart
What are the default tools used by most distributions? This includes, embedded distros, BSD's systems, Unix-like...I'm asking this because nowadays distributions come with more and more software. But as far as I know "binutils", "bash", "grep", "ed" and "awk" are standards. What are the standards utilities to start learning that are most cross-platform [i.e.: the "shells", "services", "editors" and others].
When I an in Emacs, I want to call info pages like in terminal. E.g., info date will call the date info page, but when I in Emacs, I can only use M-x info call the complete info pages, but I only want to see the date info page. Then which command I should execute in emacs.
I am very new to Linux and am taking a class on Introduction to Linux, but I am not familiar with Command Script. Can anyone direct me to a place where I can find more info (for a two year old) on command script programming? I want to be able to understand what it all means.
I'm using CentOS 5.4 x86_64 on my Dell Inspiron 1440. Is there any way I can get information about the battery(charge) through command line without X server.
I am trying to find a linux cmd line utility that will read info from an iso file. The problem I have is that the file is always corrupt so I cannot mount it because I only have around 100k of it but all I need is to extract the headers of what the iso contains. how I can achieve this I have searched the internet with no look at all.
I've been searching high and low for a solution to my problem, and have not had much luck as to yet!The situation is: I have two files containing bits of info that both need to be included in a single command, such as a for loop, but as separate elements. What I need to do is basically this:Code:ssh <servers in list a> ls -la | grep <items in list b>Does anyone have any thoughts on how I might do this? Is it possible to do using bash scripting alone?
I cannot install Kubuntu 8.04LTS. When I run the Live CD and click to install it gets me the box that should show me my hard drives and possible partitions but the box is empty. I get the same when booting to the Live CD and clicking on install. I have had this CD since Kubuntu 8.04 was released. So not knowing what might be wrong I figure I will ask here for what to type in a command line to install it. I know it is an old version but it is the last one with KDE 3.5.
i'm trying to setup my server box.. it's being setup as a web server, file server, and setup for me to be able to access it remotely (aka i do pc repair for windows users and it'd be nice to just know where ALL of my software tools are and get to them from there)anyways.. these things are almost all setup right now.. but the one thing i'm having issues with.. is the fact that this box does have 2 hard drives in it and i want to use both of them.. now i'm running straight command line and i can't find the info i need to reformat the second HDD (which is currently NTFS formated) and use it in this system... i'm running 9.04 as a server.. NO GUI INSTALLED! i need this with straight command line...What do i need to look for to figure this out? i'm having trouble figuring this out and it's really getting annoying..
I down loaded Debian 5.0.4 and burned it to CD (several times I might add till it was right) and now the computer I'm putting it on wont acknowledge it as a boot disk and load. It does not have a problem with my windows cd, which has a crack and the start of all my problems, But not the Debian CD-1 disk. what now? The computer is an IBM thinkpad a22p. Everything works as far as I can tell. But I was going to reinstall Windows and failed in that because of a small crack on the edge of the disk that stopped the install and any hope of accessing the file on the laptop. Microsoft does not support windows xp any longer, you must buy windows 7, but the ibm will not run it due to processor speed and ram limitations. But it will run linux and I'm willing to try it just to get out of microsoft control.
Idon't know what else to do. This is the link to where I downloaded the software ( [URL] ). The others five that i downloaded were on the same page that I got this one. Are there bad files here? Is there a missing file in the disc?
so i cannot install anything because update-info-dir file is missing from /var/lib/dpkg/info/ .. I've searched for the last day and a half for a way to fix this, but nothing. can't even update dpkg because of this. so how do I bypass or fix this so I can install stuff (this is a fresh install of ubuntu 10.04 lts Lucid Lynx).
I'm running Debian unstable on amd64 with KDE4 desktop. I know there exists KDE integration package, that enables iceweasel to use KDE file dialogs. In ubuntu its called kmozillahelper. There was similar packages in Debian (called differently as far as I remember). I happily used it in unstable, but several weeks ago it disappeared for some reason and I can not find it.info on iceweasel + KDE integration in Debian?
There is lot of iso, and the kernel is the very important thing for the install since the hardware is depending, directly. Unfortunately kernels are changing and it could be interesting to have the information for each iso cdrom. I guess it might be somewhere but that's not so obvious and easy to find (never found where). Debian is cool, nicest distro ever !
I am running Wheezy 7.9 and recently created a file, in xorg.conf.d, to set the monitor configuration because the EDID is not always read from the monitor. Everything works great but when the EDID is not read the monitor name, as shown in System Settings>Displays, shows as Unknown. I have the vendor info and modelname in the config file but they do not show in the Display GUI. Is there some variable that I can set in order to get a good monitor name displayed?
Probably should include some more information. I am using the Gnome Classic desktop and gdm manager. Here is the monitor conf file that I put in /etc/X11/xorg,conf.d
Code: Select allSection "Monitor" Â Identifier "Monitor0" Â VendorName "VSC" Â ModelName "VA912b" Â DisplaySize 376 301 Â HorizSync 30.0 - 82.0 Â VertRefresh 50.0 - 85.0 Â [Code] ....
After entering an aptitude command: Processing triggers for shared-mime-info ... Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' Unknown media type in type 'uri/mms' Unknown media type in type 'uri/mmst' Unknown media type in type 'uri/mmsu' Unknown media type in type 'uri/pnm' Unknown media type in type 'uri/rtspt' Unknown media type in type 'uri/rtspu' Unknown media type in type 'fonts/package' Unknown media type in type 'interface/x-winamp-skin'
Note that '/usr/share' is not in the search path set by the XDG_DATA_HOME and XDG_DATA_DIRS environment variables, so applications may not be able to find it until you set them. The directories currently searched are: - /root/.local/share - /opt/kde/share - /opt/kde/share - Processing triggers for hicolor-icon-theme ...
Most of the time whenever I run dpkg -l I get cryptic output. For instance
[Code]...
Because I normally use it to see only one file (while multiple files are possible as well), was wondering if there was a way to tell dpkg to show couple of lines as output. I do see that there is a /etc/dpkg/dpkg.cfg file as well as /etc/dpkg/dpkg.cfg.d directory as well. Looking forward to info. on the same.
I can't seem to update the repository indexes regardless of which official server/mirror I use. I pick one server from the built-in software sources list and then I get this:
W:Failed to fetch ftp://ftp.fi.debian.org/debian/dists/squeeze/updates/contrib/source/Sources.gz Unable to fetch file, server said 'Failed to open file. ' [IP: 130.230.54.99 21], W:Failed to fetch ftp://ftp.fi.debian.org/debian/dists/squeeze/updates/non-free/source/Sources.gz Unable to fetch file, server said 'Failed to open file. ' [IP: 130.230.54.99 21], W:Failed to fetch http: [URL] 404 Not Found [IP: 128.30.2.36 80], W:Failed to fetch http: [URL] 404 Not Found [IP: 128.30.2.36 80], W:Failed to fetch http: [URL] 404 Not Found [IP: 128.30.2.36 80], W:Failed to fetch ftp://ftp.fi.debian.org/debian/dists/squeeze/updates/main/source/Sources.gz Unable to fetch file, server said 'Failed to open file. ' [IP: 130.230.54.99 21], E:Some index files failed to download, they have been ignored, or old ones used instead.
Now how can that be? Shouldn't the built-in repository addresses be correct? My installation is one week old clean install. Since then I've installed broadcom wlan-drivers (I tried repo update w/ wired connection too) and Dropbox but other than that I'm pretty clean.
I've created a local repository, my web server (apache) is up and running and my repo is inside it, so I want to install debian using it, in the stage of enter manually the info of the debian mirror I put:
But after this, the installation tell me that it doesn't find the repo, I tried several ways, like: http://192.168.10.1; /repo/; /repo/ binary/ but nothing. What is the correct syntax to use my local repo?
How can I know about the debian files I've installed from the internet via command line? Is there any command to have info about debian files? I've installed google chrome, opera, etc...I want to what debian files I've installed? Can I know there locations?
The following packages will be upgraded: libldap-2.4-2 time 2 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 243kB of archives. After unpacking 53.2kB will be freed. Do you want to continue? [Y/n/?]