Sponsors
Tags
Apache Apple audio avast bash Chromium command line dell Distro Review fedora firefox flac gadgets gnome google google chrome grub GStreamer HowTo HP humor ImageMagick jaunty karmic koala LAMP linux Linux Mint Lucid Lynx mp3 Nautilus netbook network news ogg open source opinion phpMyAdmin review security text edit Ubuntu usb web development windows WordPress
Change the Week Start Day in Ubuntu
A while back I showed how to change the week start day in the Hamster Applet time tracker. Today I'm going to show how to change the week start day to Monday for Ubuntu in general. This will affect various applications in Ubuntu including the default clock applet on the panel. I figured some of this out by reading this post on the Ubuntu forums.
The time and date formats in Ubuntu are controlled by the locale settings. First you need to find out the current locale being used to control your time and date settings. Open a terminal and enter the following command.
You should see a result that looks something like
which in my case is English US.
Now you're ready to make your adjustments. Change to the locale directory and copy the current locale file to create a new custom file.
sudo cp en_US en_US_custom
Adjust the above copy command for your locale that you found in the previous step.
Now edit the new custom file.
Find the line that says
and change it to
then save the file and close the editor.
The final step is to make the change in /etc/environment to point to your new custom file.
Add a line like this to the bottom of the file making sure to adjust it for the custom locale file you want to use.
LC_TIME="en_US_custom.UTF-8"That's it. Log out and log back in and you should see the change in the panel calendar and other applications such as Evolution.
Comments
10 Responses to “Change the Week Start Day in Ubuntu”
Leave a Reply Cancel reply
Subscribe by email
Top Content
- 6 Things To Do After Installing Ubuntu 13.04
- How To Control Fan Speeds in Ubuntu
- Remove Old Kernels In Ubuntu With One Command
- Send Gmail from the Linux Command Line
- How To Rotate The Screen in Ubuntu With The Nvidia Driver
- How to Configure Apache Web Server on Linux
- Fade Out Images with GIMP
- Install SSH and SFTP on Ubuntu or Linux Mint
- Review: Linux Mint 14 MATE Edition
- Installing a LAMP Server on Ubuntu
Categories
-
Archives
- ▼ 2013 (6)
- ► 2012 (19)
- ► 2011 (25)
- ► 2010 (56)
- ► Dec (4)
- ► Nov (3)
- ► Oct (4)
- ► Sep (4)
- ► Aug (3)
- ► Jul (5)
- ► Jun (4)
- ► May (8)
-
- How To Rotate The Screen in Ubuntu With The Nvidia Driver
- Lynx: A Text Only Web Browser
- Midori - A Lightweight Web Browser
- From The "WTF, Apple?" Dept.
- There's Always One Bad Apple
- Ubuntu on "The Big Bang Theory"
- Organize Your Recipes with Gourmet Recipe Manager
- Add an Open Terminal Button to Nautilus
- ► Apr (6)
- ► Mar (5)
- ► Feb (3)
- ► Jan (7)
- ► 2009 (88)
- ► Dec (4)
- ► Nov (5)
- ► Oct (7)
- ► Sep (6)
- ► Aug (13)
-
- Enable The RT2860STA Linux Wireless Driver
- Fade Out Images with GIMP
- Command Line Basics: Redirecting Output
- Command Line Basics: View Files With cat
- Command Line Basics: Determine File MIME Types
- Batch Watermark Images in Linux
- How To Watermark Images With ImageMagick in Linux
- Nautilus Script to Launch a Terminal
- SUSE Studio Screenshot Tour
- Edit Your GNOME Configuration
- Open Source Apps for Windows to Introduce Users to FOSS
- Name The Next Apple Product
- Fast Boot Your PC With Xandros Presto
- ► Jul (5)
- ► Jun (7)
- ► May (11)
-
- Command Line Basics: Create Custom Commands with Alias
- Command Line Basics: List Files with ls
- Space Saving Tips for Your GNOME Desktop
- Windows Web Browser Shootout
- Command Line Basics: Navigating the File System
- Bash to Basics: Print Text with echo
- Command Line Basics: echo
- Install the Firefox 3.5 Beta in Linux
- Create a Bootable USB Drive with Ubuntu and FreeDOS
- Revert the Update Behavior in Jaunty to the Old Way
- Who Needs Windows?
- ► Apr (11)
-
- Install Picasa 3.0 for Linux (beta)
- Eight Reasons Your Next Computer Should Run Linux
- Jaunty Boots 32% Faster on the MSI Wind
- The Jackalope is Jaunting!
- Windows 7 Won't Close the Door For Linux
- Upgrade Ubuntu with a CD Image
- Get a Jump on Jaunty Jackalope
- Secure File Transfer in Nautilus with SFTP
- Add the NT Backup Tool to Windows XP
- Why I hate Dell
- How To Install AVG Antivirus 7.5 in Ubuntu
- ► Mar (13)
-
- Create an Encrypted Folder in Ubuntu with Cryptkeeper
- How To Create Multiple Firefox Profiles in Windows
- Install the Fedora 10 Desktop Theme in Ubuntu
- Download the Fedora 10 Wallpaper
- How To Install the Echo Icon Theme in Ubuntu
- How To Install the Nodoka Theme Engine in Ubuntu
- Create Your Own .deb Packages with Checkinstall
- Install Your Own Ringtones with Ubuntu and BitPim
- Install Multimedia Codecs in Ubuntu 8.04
- Use Linux to Solve the Linux Journal Scramble
- Dvorak Rings Death Knell for Microsoft's Business Model
- Microsoft to Release Windows Linux!
- Review: Sabrent 68 in 1 Internal Card Reader
- ► Feb (2)
- ► Jan (4)
- ► 2008 (37)
- ► Dec (8)
-
- Update: Logitech LX8 in Ubuntu
- Create a Button to Restart USB in Ubuntu
- Create an Ubuntu Live USB Drive
- Install Fedora Cursor Theme in Ubuntu
- Change the Week Start Day in Ubuntu
- Automatically Update the ClamAV Virus Database
- Add On-Demand Virus Scanning to Nautilus
- Put Your Own Face on Tux - Wii Fit Review
- ► Nov (6)
- ► Oct (8)
-
- Ubuntu 8.10 is Out!
- Split mp3 Files With mp3splt
- How To Install RealPlayer 11 in Ubuntu
- How To Install Free42 in Ubuntu
- Review - Sony MDR-NC6 Noise Canceling Headphones
- How To Set Up a Home Network With Ubuntu, Part 3
- How To Set Up a Home Network With Ubuntu, Part 2
- How To Set Up a Home Network With Ubuntu, Part 1
- ► Sep (6)
- ► Aug (9)
-
- How To Control Fan Speeds in Ubuntu
- How To Install avast! Antivirus in Windows XP
- How to Launch a Program in Ubuntu Without Using The Menu
- Review - Logitech LX8 in Windows XP
- Google Starts "Free The Airwaves" PR Campaign
- Review - Logitech LX8 Cordless Laser Mouse
- Subway Doesn't Like Linux!
- How To Add An Item To Ubuntu's Menu
- How to resample MP3 audio files on Linux using LAME
Favorite Sites




Sorry commenting out of subject, but I could't find a "contact" link.
In past December you posted about how to "Change the Week Start Day in Ubuntu". It is not working for me in Jaunty. Does it change something from Hardy or I'm doing something wrong? Did you try in Jaunty? Same way? Thanks a lot.
Fer - I have not tried this yet in Jaunty. I'll try to take a look at it tonight and see what's going on.
Fer - I just tried this on Jaunty and it worked for me. My computer has been upgraded from 8.04 to 8.10 to 9.04. I don't know if it would be different on a fresh install.
My /etc/environment file looks like this:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LC_TIME=”en_US_custom.UTF-8?
Ohhh I forgot to change my /etc/environment
That did the trick.
By the way, during the search I also found that editing the file /etc/defaults/locale this way (adding the last three lines):
$ sudo gedit /etc/default/locale
LANG="en_US.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
I will get American english, but time, paper size and units in British i.e. weeks starting with Mondays, A4, metric.
(In this case is not necessary edit the /etc/environment)
Thanks a lot
In 9.10 do not change environment OR /etc/defaults/locale
For example ccsm will not run after that !!!
After you change and save:
first_weekday 2
run in terminal
sudo locale-gen
then log out and log in
Wollaaaa
Editing /etc/default/locale worked perfectly for me.
@Denis: maybe you did the same mistake as I - the quotation marks shown in Fer's comment are "typographical", as opposed to "standard" plain old quotes (ASCII 34); I blame WordPress. If you copied from the browser and pasted, the locale variables will include the funny characters and for example "cal" will say:
cal: setlocale: No such file or directory
I ran "sudo vi /etc/default/locale", replaced the quotes (in this particular case the quotes aren't even needed), logged out/in, and everything's peachy.
thanks for the tutorial.
- it is unable to start NetBeans (v6.7.1) after the path to LC_TIME is changed to a custom file.
there is just one minor issue
This didn't work for me at all.
I tried changing it in /etc/environment and in /etc/default/locale, and neither worked.
I also tried the locale-gen trick mentioned above, but that failed too.
At one point, the change had been made, but Firefox complained about an unknown locale, and wouldn't start. Undoing the changes fixed the problem.
This really ought to be easy.
I followed the instructions in this post and rebooted, but Sunday was still displayed as the first day of the week, and now manual pages don't display certain characters correctly and man(1) shows this error:
man: can't set the locale; make sure $LC_* and $LANG are correct
Total fail.
OMG!! - Ubuntu is destroying the spirit of the well constructed shell