78 lines
1.4 KiB
Markdown
Executable File
78 lines
1.4 KiB
Markdown
Executable File
## System Update
|
|
We can use this cmd in terminal to make system update
|
|
|
|
$sudo apt-get update
|
|
|
|
## Change Date & Time
|
|
|
|
0
|
|
The command date
|
|
|
|
|
|
$ date
|
|
Tue Jun 9 18:04:30 EEST 2015
|
|
|
|
The command zdump used to echo the time in a specified time zone.
|
|
|
|
$ zdump EEST
|
|
EEST Tue Jun 9 15:05:17 2015 EEST
|
|
|
|
hwclock
|
|
|
|
$ sudo hwclock
|
|
Tue 09 Jun 2015 06:05:55 PM EEST -0.656710 seconds
|
|
|
|
clock but needs to install xview-clients
|
|
|
|
sudo apt-get install xview-clients
|
|
|
|
using ntpdate command. ntpdate is used to set system time but using without sudo will just print the time and date.
|
|
|
|
$ ntpdate
|
|
|
|
30 July 7:
|
|
0
|
|
|
|
#Date and change using terminal
|
|
|
|
$timedatectl
|
|
$sudo timedatectl set-timezone Asia/Yangon
|
|
|
|
## Change Launguage
|
|
|
|
Edit two files:
|
|
|
|
sudoedit /etc/default/locale:
|
|
|
|
LANG="en_US"
|
|
LANGUAGE="en_US:en"
|
|
|
|
sudoedit ~/.pam_environment:
|
|
|
|
LANG=en_US
|
|
LANGUAGE=en_US
|
|
|
|
## Add custom to Dock
|
|
- add custom program to favourite of ubuntu Dock
|
|
- first create [.desktop] under directory [sudo nano /usr/share/applications/yourapp.desktop]
|
|
|
|
```
|
|
#!/usr/bin/env xdg-open
|
|
[Desktop Entry]
|
|
Version=1.0
|
|
Type=Application
|
|
Terminal=false
|
|
Exec=/path/to/yourapp
|
|
Name=YourApp
|
|
Comment=Description of YourApp
|
|
Icon=/path/to/yourapp.png
|
|
```
|
|
|
|
- Make this file executable
|
|
```sudo chmod +x /usr/share/applications/yourapp.desktop```
|
|
|
|
- Log out and log in
|
|
|
|
link>>https://averagelinuxuser.com/ubuntu_custom_launcher_dock/
|
|
|