Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a small uCLinux system, how do I set the timezone on uCLinux?
Thanks,
Fred
If the system uses BusyBox, add this command to /etc/inittab:
setenv TZ PDT
If not using busybox, just set an environment variable in your application's initialization code:
putenv ("TZ=PDT");
I have chosen US Pacific Daylight Time for these examples, but maybe that does not apply to you.
I export TZ=PDT (my system doesn't have setenv), and TZ is definitely being set and is available to the subsequent script that runs the ntpclient. The log entries in /var/log/messages are all in UTC, as is the output of the date command.
export TZ=PST8PDT
Edit $HOME/.profile or $HOME/.bash_profile appending the following line:
TZ='Asia/Kolkata'; export TZ
Then log out and log in again.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
New kali linux terminal starts with a bash error:
bash: ‘export: command not found
I think I messed up my bash environment when workin on a jsnode installation and do not know how to fix it.
I think I need to fix my environment variable, but do not know where that is in Kali. Appreciate any help.
There seems to be a typo in a command. It should be export but instead it's ‘export. The errant character is Unicode U+2018, LEFT SINGLE QUOTATION MARK.
The first place to look is your .bashrc, then depending on your OS, .profile or .bash_profile, then any number of other Bash startup scripts that might get called like .bash_functions, or higher up the chain like /etc/bash.bashrc.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
To clarify, when entering the default shell in OS X it appears as:
pcname:~ username$
and changing directories appears as:
pcname:myFolder~ username$
however, in my experience with linux distros, the shell appears as:
username#pcname:~$
what is the purpose for the differences in syntax?
What I do is the following: On the system that has the promt the way I want it, I type:
echo $PS1
I copy the result, say, \u#\h \w\a \$ and then edit the ~/.bashrc on the system that I want to use with the line:
export PS1="\u#\h \w\a \$ "
And then I get the same prompt on that system as well.
If you want to get creative, have a look here
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Any possibility to changes user wise time zone in Linux.
Which user (a web client, or someone remotely logged thru ssh)? He could set the TZ environment variable, perhaps by adding a line like
export TZ='Europe/Paris'
in his ~/.bashrc file if bash is his login shell.
See environ(7) and tzselect(8)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Using buildroot 2013.05 (with Freescale i.MX6 CPU).
When I change date/time from console, e.g.: date -s "2013-11-26 02:11", this setting will lost during reboot. I'd learned, that I have to call hwclock -wu afterwards.
But what's the way to configure my buildroot-based linux that the hwclock is set automatically after date/time has been changed (regardless if date/time changed from linux console or via libc call from a C program).
The standard way to handle the hwclock on linux systems is to save the system time to the hardware clock during reboot, and restore it on boot. This is done through init scripts.
So in buildroot, you would add an init script that ends up in /etc/init.d/Sxxhwclock, typically using a rootfs overlay, or alternatively with a completely custom target skeleton.
See http://buildroot.uclibc.org/downloads/manual/manual.html#rootfs-custom for more info on customizing the target rootfs.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a (little?) problem on my Debian.
When it boots, the X does not load automaticlly.
I need to log on the terminal (in any tty) and after run the command startx.
After run this command, everything works.
So, I think that I just need to configure anything to make the Debian run this command.
Debian has a script for that. To make X start on boot, execute (as root or with sudo):
update-rc.d xdm defaults
For more info, read it's manpage:
man update-rc.d
If you are using Gnome, you'll probably want to use gdm instead of xdm.
Ensure that your x-server is active in your current init level.
Have a look at your /etc/inittab for your default runlevel.
Further you should have something like
x:5:respawn:/usr/sbin/gdm -nodaemon