Manjaro Difference between pages "Manjaro Mirrors" and "Basic Tips for conky"

Difference between pages "Manjaro Mirrors" and "Basic Tips for conky"

From Manjaro
(Difference between pages)
imported>Kaimahi
(proper format)
 
imported>Excalibur1234
 
Line 1: Line 1:


=What's a Mirror?=
=Installation=


In the GNU/Linux distro world (& other systems too) a mirror is a server that hosts an up to date copy of a distro's software packages, stored in repositories (repos). There exist repos that are maintained by the distro administration - official - & other's. The Arch User Repository (AUR) being a good example of a non-official user maintained repo.
Conky can be installed with this command:
sudo pacman -S conky


There are usually multiple repos in a mirror, holding software packages in categories, such as Manjaro's - core, extra, community & multilib repos. These repos will be duplicated with package content to suit both 32bit & 64bit installations, as well as for any & all the variety of releases that a distro may support. In Manjaro's case that is quite a number when all of the different Desktop & Window Manager titled front ends are considered.


The distro has package maintainers in its administration. They manage the contents of the repos, keeping it up to date, patching packages if required. Some distros, like Manjaro, have certain packages that are unique to it only - like mhwd for example.
=.conkyrc file=


The entire conky is created from one file. by default, it is called <code>.conkyrc</code> file and it's path is:
~/.conkyrc
or a longer file path:
/home/<username>/.conkyrc
Replace <code><username></code> with your user/account name.


=Why do we need more mirrors?=
All file names starting with a dot <code>.</code> are hidden files. If you want to see hidden files in your file manager, you need to make them visible. In most file managers you need to press <code>CTRL + H</code> to do that.


The more mirrors we have the faster Manjaro's users can upgrade their systems. Some parts of the world have much faster internet speeds than others. In some circumstances, having a server in your country, or better yet, in your city, can make a world of difference to your download speeds.


=Code=
The <code>.conkyrc</code> file can be edited with every text editor. It's code is split into two parts:


=How does Manjaro know what mirror(s) to use?=
==First Part==
The first/upper part contains all the configuration settings for the entire conky. Things like the position of the conky on your screen, transparency settings, border settings, the default font and it's size, and how often your conky gets updated.


There is a file /etc/pacman.d/mirrorlist which lists all of the available mirrors.
===Examples:===
'''1.''' This will set the default font color of your conky to white. Additionally, a <code>color1</code> gets set using a [http://html-color-codes.info/ Html Color Code]to a light blue:
default_color white
color1 0ab1ff


There is another file called /etc/pacman-mirrors.conf that by default is configured to re-write your mirrorlist in a list with the fastest at the top, descending to the slowest, when the system is given the Terminal command:
'''2.''' This enables Xft and sets the default Xft font (DejaVuSansCondensed) and it's size (11):
use_xft yes
xftfont DejaVuSansCondensed:weight=Bold:pixelsize=11


  sudo pacman-mirrors -g
'''3.''' In order to position your conky on your screen, modify these settings:
  alignment top_right
gap_x 18
gap_y 20
Your conky gets placed in the top right corner of your desktop with a horizontal gap of 18 pixels (to your right screen edge) and a vertical gap of 20 pixels (to your top screen edge).


This is a remarkably streamlined system compared to the ways that it has been in the past for the pacman rolling release system to manage its mirrors, let alone to rank their speed.


A great [http://conky.sourceforge.net/config_settings.html documentation]of all possible configuration settings and their arguments is available.
This part ends with a code line containing only one word: <code>TEXT</code>


=How do we get more mirrors?=
==Second Part==
The second part contains the displayed conky code. Every code line after the <code>TEXT</code> separator corresponds to one displayed line on your desktop. There are a lot of [http://conky.sourceforge.net/variables.html variables]available for displaying and modifying all kinds of information.


I'm glad you asked that question. This is the advice of '''Philip Muller''', Lead developer of Manjaro Linux:
===Examples:===
'''1.''' You can choose the color of your font using one of the following variables:
$color
${color1}
Every variable is marked with a <code>$</code> sign and by <code>{ }</code> brackets (only needed, if the variable contains more than one word).


<blockquote>'Some people still ask me how I got 5 mirrors in one week before 0.8.0 came out. It is simple. Just write 100 mails to universities and companies supporting Linux. Go to Arch linux and grab their mirrorlist. Crawl through their servers and get their contact data. Write an email and see what response you get. Here is some more info about it.'</blockquote>
'''2.''' You can call the default font (and it's size) with this command:
$font
If you want a different font (DejaVuSerif) and font size (9) in your conky, use this command in your <code>.conkyrc</code> code:
${font DejaVuSerif:size=9}


'''4.''' This code line displays the kernel you are using (using <code>$alignr</code> just yields a nicer formatting, it is not necessary):
Kernel: $alignr$kernel


=What is the size of the Manjaro database?=
'''5.''' This variable gives you the latest 3 manjaro blog entry titles (using rss). It checks for updates every 60 minutes.
${rss http://manjaro.org/feed/ 60 item_titles 3}


We are at around 50 GB. 100 GB or higher would be better.
'''6.''' Information about the root partition <code>/</code> of your manjaro installation is displayed using
Root: ${alignr}${fs_used /} of ${fs_size /}


=How is the mirror synchronized?=
'''7.''' Instead of example 4, you can use the following code to display the exact same information:
Kernel: $alignr${execi 3600 uname -r}
The variable <code>${execi 3600 XXXX}</code> runs the <code>XXXX</code> bash code in your terminal every 3600 seconds and displays the result in your conky. The result of the <code>uname -r</code> bash command is your currently used kernel name.


'''Via the following Rsync-Services:'''
Use any bash command instead of <code>XXXX</code> you can think of. The bash commands can be as long and complicated as you want.


<br clear="all" />
Warning: Using complicated bash commands (e.g. which call other programs or use large files) with low intervals (e.g. <code>${execi 2 XXXX}</code> runs the <code>XXXX</code> code once every 2 seconds and displays it's result in your conky) can use a lot of hardware resources and/or make your computer unresponsive.
BR / Brasil:
rsync://rsync.las.ic.unicamp.br/pub/manjarolinux/
Asia / Japan:
rsync://mirrors.ispros.com.bd/manjaro
rsync://ftp.tsukuba.wide.ad.jp/manjaro
Europe / Germany:
rsync://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/
rsync://ftp.halifax.rwth-aachen.de/manjaro/
Europe / Sweden:
rsync://ftp.lysator.liu.se/pub/manjaro/
Europe / Italy:
rsync://http://manjaro.mirror.garr.it/manjaro/
Europe / United Kingdom:
rsync://rsync.mirrorservice.org/repo.manjaro.org/repos/
RU / Russian Federation:
rsync://mirror.yandex.ru/mirrors/manjaro/
US / United States:
rsync://rsync.gtlib.gatech.edu/pub/manjaro/
rsync://mirror.jmu.edu/manjaro/
rsync://vm1.sorch.info/manjaro/


''It is always recommend to sync from the nearest location. To sync from our own manjaro.org server we need the IP of your server so it can be white-listed at our end. Please mail [http://manjaro.org/the-team/ Philip Mueller directly]. There is a recommended script for use with our server, so please contact the Manjaro administration in this regard. ''


=How do you ask an organisation with servers to create a Manjaro mirror?=
=Running conky=


If you want to display a conky on your desktop a <code>.conkyrc</code> file with code in it is required. Next, open a terminal and run conky:
conky
or
conky -d
if you want to run conky as a background daemon.


'''Write them an email like this (in your native language):'''


If you want to run conky automatically after each boot of your computer, you need to find out how to autostart a program. This depends on the Desktop Manager you are using. Putting one of the following commands into your autostart folder/file/script/command should work:
conky


Dear Sir or Madam,
sleep 20 && conky


My name is [Your Name], I wish to ask you to please spare me a few minutes to read this letter & consider its contents.
sh -c "sleep 20 && conky"
<code>sleep 20</code> delays the start of conky by 20 seconds after your Desktop Environment has started. adjust this value to your liking.


I'd like to introduce you to a relative new comer to the world of Linux distributions - Manjaro Linux. Manjaro is a new user-friendly Linux distribution based on the highly regarded Arch Linux. We are currently searching for mirrors to host our packages.


Although new, we are already one of the top 10 most popular Linux Distributions in the world, as listed in the DistroWatch.com top 100.
If you want to reload conky with the latest <code>.conkyrc</code> file (e.g. you changed a variable and want to see the consequences) use one of the following commands:
killall conky && conky


Manjaro Linux is based on well tested snapshots of the Arch Linux repositories, and is 100% compatible with Arch itself. We manage our repositories with our own in-house tool called BoxIt, which is designed like git.
pkill conky && conky


Our aim is to create a light Linux distribution which is simple, up to date, fast, user friendly and which follows the K.I.S.S (Keep It Simple, Stupid) principle.  As such, Manjaro Linux provides a more user friendly installation process, utilities for managing graphic drivers, and pre-configured desktop environments.


Our repository is at the size of around 40 GB. We have between 50 GB and 100 GB granted on other mirrors hosting our packages.
=More=
Currently it is possible to sync from the following rsync services:


After having read everything about conky, it is time to create your own. The easiest way for beginners is to look at screenshots of conkys (and the corresponding <code>.conkyrc</code> files) and copy and paste the parts you like into your own <code>.conkyrc</code> file. Later, you can modify your <code>.conkyrc</code> code to your liking.
A dedicated conky thread in the Manjaro Forum with a lot of <code>.conkyrc</code> files and screenshots is available [https://forum.manjaro.org/index.php?topic=2991.0 here]. A massive conky thread is available in the [http://ubuntuforums.org/showthread.php?t=281865 Ubuntu forum]. Searching on the Internet for <code>.conkyrc</code> can yield a lot of great <code>.conkyrc</code> files, too.


BR / Brasil:
A detailed [https://wiki.archlinux.org/index.php/conky Arch Wiki entry]exists. It contains a lot of useful information and links.
rsync://rsync.las.ic.unicamp.br/pub/manjarolinux/
Asia / Japan:
rsync://mirrors.ispros.com.bd/manjaro
rsync://ftp.tsukuba.wide.ad.jp/manjaro
Europe / Germany:
rsync://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/
rsync://ftp.halifax.rwth-aachen.de/manjaro/
Europe / Sweden:
rsync://ftp.lysator.liu.se/pub/manjaro/
Europe / Italy:
rsync://http://manjaro.mirror.garr.it/manjaro/
Europe / United Kingdom:
rsync://rsync.mirrorservice.org/repo.manjaro.org/repos/
RU / Russian Federation:
rsync://mirror.yandex.ru/mirrors/manjaro/
US / United States:
rsync://rsync.gtlib.gatech.edu/pub/manjaro/
rsync://mirror.jmu.edu/manjaro/
rsync://vm1.sorch.info/manjaro/


If possible, please sync from the nearest rsync-service to your location. Also, it is recommended to use a similar script as that we provide for our Tier1-Servers, to sync from our server:
The [http://conky.sourceforge.net/ homepage]of the conky project can be interesting, especially the [http://conky.sourceforge.net/documentation.html documentation].


https://github.com/manjaro/boxit/blob/master/manjaroreposync
A forum discussion thread about this Manjaro Wiki page is available [https://forum.manjaro.org/index.php?topic=16844.0 here]


Thank you for your time and consideration,


[Your Name]
=Troubleshooting & Tips=


=Current Size Required for a Manjaro Mirror=
==Missing rings==
If (often colored) rings are missing in your conky, please install the following package:
yaourt -S conky-lua
[https://wiki.manjaro.org/index.php?title=AUR#Searching_for_and_Installing_Software_From_the_AUR Here]is help for installing packages from the Arch User Repository, in case you need it.


''(last checked 2015-12-27 11:20 CET)''
==Missing network information==
<br clear="all" />
If network information is missing like download speed or network name (SSID), you need to replace the network card name in network variables in the <code>.conkyrc</code> file with your network card name.
1.6M ./testing/multilib/x86_64
1.6M ./testing/multilib
540K ./testing/core/i686
640K ./testing/core/x86_64
1.2M ./testing/core
13M ./testing/extra/i686
15M ./testing/extra/x86_64
28M ./testing/extra
19M ./testing/community/i686
21M ./testing/community/x86_64
39M ./testing/community
70M ./testing
1.6M ./stable/multilib/x86_64
1.6M ./stable/multilib
540K ./stable/core/i686
640K ./stable/core/x86_64
1.2M ./stable/core
13M ./stable/extra/i686
15M ./stable/extra/x86_64
28M ./stable/extra
19M ./stable/community/i686
21M ./stable/community/x86_64
39M ./stable/community
69M ./stable
1.6M ./unstable/multilib/x86_64
1.6M ./unstable/multilib
540K ./unstable/core/i686
640K ./unstable/core/x86_64
1.2M ./unstable/core
14M ./unstable/extra/i686
15M ./unstable/extra/x86_64
28M ./unstable/extra
19M ./unstable/community/i686
21M ./unstable/community/x86_64
39M ./unstable/community
70M ./unstable
44G ./pool/sync
4.2G ./pool/overlay
48G ./pool
49G .


=Check here before you send a request for mirror hosting=
Open a terminal and enter
   
  ip a
Following is a list that will be updated when required.
in order to see all available network cards in your computer. A sample output looks like this:
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> ....
2: enp9s0: <BROADCAST,MULTICAST,UP,LOWER_UP> .....
3: wlp2s0: <BROADCAST,MULTICAST> .....
In this case, <code>enp9s0</code> is the name of your ethernet card and <code>wlp2s0</code> is the name of your wireless network card. Replace all network card names (e.g. <code>wlan0</code>, <code>eth0</code>) in network variables in your <code>.conkyrc</code> file with your preferred network card name.


It is very important that we don't send requests to anyone on this list, as they will consider it spam & could have Manjaro's IP addresses blocked by organisations who's business is to attempt to control spam.
==FAQ==
A detailed FAQ is available [http://conky.sourceforge.net/faq.html here]


So when you are trying to organise new mirrors DO NOT bother hosters who have already denied us support:


<br clear="all" />
23-05-2013
Canada
----------------------
csclub.uwaterloo.ca  - We are not currently
interested in mirroring Manjaro Linux.




It is a good idea to check this thread: [http://forum.manjaro.org/index.php?topic=4545.0] to be sure that the wiki is up to date & also if you have been denied a request to post it in the same thread for obvious reasons.
=Alternative: Conky Manager=


For everybody, who does not like to look at conky code and mess around in config files or who just wants a quick and simple conky, Conky Manager is great. Conky Manager offers a simple GUI for managing and customizing conkys. Additional theme packs are available, too.


=Do You Manage a Potential Manjaro Mirror Server?=
==Installation==
yaourt -S conky-manager
[https://wiki.manjaro.org/index.php?title=AUR#Searching_for_and_Installing_Software_From_the_AUR Here]is help for installing packages from the Arch User Repository.


If so, here are some guidelines for you to think about, as putting up such a Mirror requires a certain commitment & perseverance.
==Additional information==
Recently, a new version of [http://www.teejeetech.in/2014/06/conky-manager-v2-released.html Conky Manager]has been released. Shortly after, a couple of [http://www.teejeetech.in/2014/06/conky-manager-v2-themes.html theme][http://www.teejeetech.in/2014/07/my-conky-themes-update-2.html packs].


The Manjaro community is better off not having a mirror, if it isn't kept functioning & up to date.
There are also [http://www.teejeetech.in/2013/07/super-conky-package.html theme][http://www.teejeetech.in/2013/07/deluxe-conky-theme-pack.html packs]available for the previous version. Full compatibility is not guaranteed, but they are definitely worth a try.
So if you aren't in it for the long run, don't do it. You will only create disappointment.


Do you have enough bandwidth for the job?
A [https://www.youtube.com/watch?v=Va2rnyZJe10 Youtube]video with basic tips is available as well.
Do you pay for traffic? Your traffic may increase a lot. If you don't have enough bandwidth, you will end up offering at best a slow mirror, at worst an unreachable mirror.
 
Do you have enough disk space? You will need 50GB, though being able to offer 100GB would be great for the future. If your drive fills up you will not be able to rsync your mirror, it will become out of date & cause problems.
 
Sync every six hours. Being a rolling release system Manjaro's repos are very dynamic. So mirrors need to be updated multiple times per day.
 
Keep an eye on your sync scripts. Make sure that your mirror updates are functioning correctly. Users depend on your data to be all there & current.
 
Watch the Manjaro forum for announcements re. changes that may effect the mirror/repo system. The Manjaro administration will send you an email for any important changes. Though it often helps to be primed & ready for a change.
 
 
If you can supply a new Manjaro mirror, post in this thread: [http://forum.manjaro.org/index.php?topic=683.0]
 
[[Category:Contents Page]]

Revision as of 11:55, 26 October 2014

Installation

Conky can be installed with this command:

sudo pacman -S conky


.conkyrc file

The entire conky is created from one file. by default, it is called .conkyrc file and it's path is:

~/.conkyrc

or a longer file path:

/home/<username>/.conkyrc

Replace <username> with your user/account name.

All file names starting with a dot . are hidden files. If you want to see hidden files in your file manager, you need to make them visible. In most file managers you need to press CTRL + H to do that.


Code

The .conkyrc file can be edited with every text editor. It's code is split into two parts:

First Part

The first/upper part contains all the configuration settings for the entire conky. Things like the position of the conky on your screen, transparency settings, border settings, the default font and it's size, and how often your conky gets updated.

Examples:

1. This will set the default font color of your conky to white. Additionally, a color1 gets set using a Html Color Codeto a light blue:

default_color white
color1 0ab1ff

2. This enables Xft and sets the default Xft font (DejaVuSansCondensed) and it's size (11):

use_xft yes
xftfont DejaVuSansCondensed:weight=Bold:pixelsize=11

3. In order to position your conky on your screen, modify these settings:

alignment top_right
gap_x 18
gap_y 20

Your conky gets placed in the top right corner of your desktop with a horizontal gap of 18 pixels (to your right screen edge) and a vertical gap of 20 pixels (to your top screen edge).


A great documentationof all possible configuration settings and their arguments is available. This part ends with a code line containing only one word: TEXT

Second Part

The second part contains the displayed conky code. Every code line after the TEXT separator corresponds to one displayed line on your desktop. There are a lot of variablesavailable for displaying and modifying all kinds of information.

Examples:

1. You can choose the color of your font using one of the following variables:

$color
${color1}

Every variable is marked with a $ sign and by { } brackets (only needed, if the variable contains more than one word).

2. You can call the default font (and it's size) with this command:

$font

If you want a different font (DejaVuSerif) and font size (9) in your conky, use this command in your .conkyrc code:

${font DejaVuSerif:size=9}

4. This code line displays the kernel you are using (using $alignr just yields a nicer formatting, it is not necessary):

Kernel: $alignr$kernel

5. This variable gives you the latest 3 manjaro blog entry titles (using rss). It checks for updates every 60 minutes.

${rss http://manjaro.org/feed/ 60 item_titles 3}

6. Information about the root partition / of your manjaro installation is displayed using

Root: ${alignr}${fs_used /} of ${fs_size /}

7. Instead of example 4, you can use the following code to display the exact same information:

Kernel: $alignr${execi 3600 uname -r}

The variable ${execi 3600 XXXX} runs the XXXX bash code in your terminal every 3600 seconds and displays the result in your conky. The result of the uname -r bash command is your currently used kernel name.

Use any bash command instead of XXXX you can think of. The bash commands can be as long and complicated as you want.

Warning: Using complicated bash commands (e.g. which call other programs or use large files) with low intervals (e.g. ${execi 2 XXXX} runs the XXXX code once every 2 seconds and displays it's result in your conky) can use a lot of hardware resources and/or make your computer unresponsive.


Running conky

If you want to display a conky on your desktop a .conkyrc file with code in it is required. Next, open a terminal and run conky:

conky

or

conky -d

if you want to run conky as a background daemon.


If you want to run conky automatically after each boot of your computer, you need to find out how to autostart a program. This depends on the Desktop Manager you are using. Putting one of the following commands into your autostart folder/file/script/command should work:

conky
sleep 20 && conky
sh -c "sleep 20 && conky"

sleep 20 delays the start of conky by 20 seconds after your Desktop Environment has started. adjust this value to your liking.


If you want to reload conky with the latest .conkyrc file (e.g. you changed a variable and want to see the consequences) use one of the following commands:

killall conky && conky
pkill conky && conky


More

After having read everything about conky, it is time to create your own. The easiest way for beginners is to look at screenshots of conkys (and the corresponding .conkyrc files) and copy and paste the parts you like into your own .conkyrc file. Later, you can modify your .conkyrc code to your liking. A dedicated conky thread in the Manjaro Forum with a lot of .conkyrc files and screenshots is available here. A massive conky thread is available in the Ubuntu forum. Searching on the Internet for .conkyrc can yield a lot of great .conkyrc files, too.

A detailed Arch Wiki entryexists. It contains a lot of useful information and links.

The homepageof the conky project can be interesting, especially the documentation.

A forum discussion thread about this Manjaro Wiki page is available here


Troubleshooting & Tips

Missing rings

If (often colored) rings are missing in your conky, please install the following package:

yaourt -S conky-lua

Hereis help for installing packages from the Arch User Repository, in case you need it.

Missing network information

If network information is missing like download speed or network name (SSID), you need to replace the network card name in network variables in the .conkyrc file with your network card name.

Open a terminal and enter

ip a

in order to see all available network cards in your computer. A sample output looks like this:

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> ....
2: enp9s0: <BROADCAST,MULTICAST,UP,LOWER_UP> .....
3: wlp2s0: <BROADCAST,MULTICAST> .....

In this case, enp9s0 is the name of your ethernet card and wlp2s0 is the name of your wireless network card. Replace all network card names (e.g. wlan0, eth0) in network variables in your .conkyrc file with your preferred network card name.

FAQ

A detailed FAQ is available here



Alternative: Conky Manager

For everybody, who does not like to look at conky code and mess around in config files or who just wants a quick and simple conky, Conky Manager is great. Conky Manager offers a simple GUI for managing and customizing conkys. Additional theme packs are available, too.

Installation

yaourt -S conky-manager

Hereis help for installing packages from the Arch User Repository.

Additional information

Recently, a new version of Conky Managerhas been released. Shortly after, a couple of themepacks.

There are also themepacksavailable for the previous version. Full compatibility is not guaranteed, but they are definitely worth a try.

A Youtubevideo with basic tips is available as well.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.