Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

8/10/2015

How to change system language on Fedora 22 and Debian 8 ?

Fedora 22:


In Root terminal:

Show current setting:
[root@fedora22~]# echo $LANG
en_US.UTF-8

Change current setting:
[root@fedora22~]# vi /etc/locale.conf
LANG="en_US.UTF-8"

Modify language setting:
LANG="en_US.UTF-8"
e.g. LANG="hu_HU.UTF-8"

Apply new setting:
[root@fedora22~]# source /etc/locale.conf

Show current setting:
[root@fedora22~]# echo $LANG
LANG="hu_HU.UTF-8"

Table of locales:
https://docs.moodle.org/dev/Table_of_locales

http://www.server-world.info/en/note?os=Fedora_20&p=locale


Debian 8:

In Root terminal:

vi /etc//default/locale

Modify language setting:
LANG="en_US.UTF-8"
e.g. LANG="hu_HU.UTF-8"

Apply new setting:
dpkg-reconfigure locales

Table of locales:
https://docs.moodle.org/dev/Table_of_locales

https://wiki.debian.org/ChangeLanguage



8/07/2015

How to set proxy in Google Chrome on Linux?

Right click on the Chromium desktop icon and click on properties.
In the dialog box that opens, add this line after the %U in the command field:

--proxy-server=<host:port>

(Where "host" is your proxy server name or address, and "port" is your proxy server port.)


6/05/2015

Fedora 22 proxy settings

Yum:
sudo vi /etc/yum.conf

proxy=http://proxy.server.name:port

and if you need:
proxy_username=youruser
proxy_password=yourpassword

(If you define a proxy server in /etc/yum.conf, all users connect to the proxy server.)

dnf:
sudo vi /etc/dnf/dnf.conf
proxy=http://proxy.server.name:port

Yum Extender
Edit
Preferences
Yum
Proxy

Export:
export http_proxy=”http://proxy.server.name:port”
export ftp_proxy=”http://proxy.server.name:port”

7/10/2014

How to setup the default OS in GRUB dual boot system (eg. Ubuntu and Windows)?

Of course it works with Ubuntu, Linux Mint, Linux Mint Debian Edition, or other Ubuntu based linux distro.

When system starts write down exactly each rows of GRUB menu (e.g.: Linux, recovery mode, memtest86+, Windows).
Or type in Terminal:
fgrep menuentry /boot/grub/grub.cfg

Choose which OS you want to start as default.
Write down the line number of the Operating System you want to boot first.
The first line starts from 0

eg:

Ubuntu, Linux 2.6.31-14-generic
Ubuntu, Linux 2.6.31-14-generic (recovery mode)
memory test (memtest86+)
memory test (memtest86+, serial console 115200)
Windows 7 (loader) (on /dev/sda1)

Where
"Ubuntu, Linux 2.6.31-14-generic" is 0 (zero row ) and
"Windows 7 (loader) (on /dev/sda1)" is 4 (4th row)

Open a Terminal, and type:
# sudo nano /etc/default/grub
(of course you can use other editor as well)

Search *GRUB_DEFAULT* row, change the default value (which is 0) to the value you wrote down before.

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10

In grub config file, you can also change the GRUB default time out length.
Then save the GRUB file.

Don't forget to update GRUB.
Run a command in the terminal:

# sudo update-grub

If you want to do these steps with GUI, you can use GRUB customizer software.
Read more about it here.

Source: NAM HUY LINUX

3/13/2014

Install Microsoft TrueType Core Fonts on Linux

Install Microsoft TrueType Core Fonts on Linux (e.g. after installing Windows based program on wine).
Distributions: Linux Mint, Ubuntu or Debian

$ sudo apt-get install ttf-mscorefonts-installer

More information: LinuxG.net

11/24/2012

Wiping a drive, erase data permanently

Boot from a Linux Live CD.
Open a terminal as root.

Run:
# cat /dev/zero > /dev/hda

(Suppose that HDD or partition is hda.)

If you are not sure about it, than:
# fdisk -l

But you can use these Windows based softwares also:

Hard Disk Wipe Tool

Disk Wipe