Monthly Archives: July 2011

here are my favorite modifikations for gnome3

1. show the date beside the time

shell: gsettings set org.gnome.shell.clock show-date true

gnome3_clock2. autostart some applications: gnome-session-properties

3. extract archives in nautilus from the context menu

shell: yum install file-roller-nautilus

4. a menu with some shortcuts to my favorite applications see: gnome3: gnome-shell-extension additional menu (here in the blog 🙂

gnome-shell-extension_sub-menu5. extension to disable the IM, the accessiblity icon and the alternative menu

shell: yum install gnome-shell-extension-noim gnome-shell-extension-remove-accessibility-icon gnome-shell-extensions-alternative-status-menu

6. extension to move the gnote icon to upper panel:

http://www.fpmurphy.com/gnome-shell-extensions/gnote.tar.gz

7. extension to show the cpu and network usage:

https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet

important: to disable some informations you can comment out eg “swap: Swap.instance” in the main() function from extension.js (~/.local/share/gnome-shell/extensions/system-monitor\@paradoxxx.zero.gmail.com/extension.js)

gnome3_system-monitor8. extension to copy the favorite tab to the upper main panel, you can find it here: http://intgat.tigress.co.uk/rmy/extensions/index.html

after you extract the archive you can find the extension
Panel_Favorites@rmy.pobox.com

gnome3_favorite_paneladditional hints:

  • refresh gnome 3 without closeing all applications
    alt+f2: r

create mirror repository for fedora

how to create a mirror repository for your local lan.

  1. create a destination folder eg: /var/www/html/repo/
  2. create subfolders for fedora eg: /var/www/html/repo/f15/x86_64/updates/repodata
  3. download the files from repository to local folder. i use the following line to copy the files from an official repository, this may take a little time

    rsync -av –delete –exclude=debug rsync://mirror.ovh.net/download.fedora.redhat.com/linux/updates/15/x86_64/ /var/www/html/repo/f15/x86_64/updates/repodata/

  4. create the informations for yum:

    createrepo /var/www/html/repo/f15/x86_64/updates/

  5. configure apache to display the entries from /var/www/html/repo/
  6. create the repo config on a client /etc/yum.repos.d/fedora-updates-cache.repo

    [cache-updates] name=Fedora $releasever – $basearch – Updatesfailovermethod=priority baseurl=http://reposerver.mydomain/repo/f$releasever/$basearch/updates/ enabled=1 gpgcheck=0priority=10

  7. try to reinstall an application or update
  8. create a job with crontab to run the rsync command every day

    # min hour day month weekday user command # — update cacherepo 00 00 * * * /bin/nice -n 15 /root/scripts/update-repo.sh &>/dev/null

below i uploaded my configs for the daily job to mirror some different repos. this way should also work for centos.

files:

fedora-updates-cache.repo

update-repo.sh

gnome 3: gnome-shell-extension additional menu

after upgrading to gnome3 i missed my additional menu with shortcut’s to rdesktop and vnc. then i researched a little bit and found some usefull links, see below.

here you can see my first little menu, i minimized entries so that the code fit to the weblog.

  1. create an extension with “gnome-shell-extension-tool –create-
    extension”
  2. name: menu
  3. description: my first menu
  4. uuid: menu@localhost (you can put any name here, but remember
    the name)
  5. edit ~/.local/share/gnome-shell/extensions/menu\@localhost
    /extension.js
  6. you can find the source below

here you can see how the menu should look:

gnome-shell-extension_sub-menu

full source:

menu@localhost.tar

useful links:

http://www.fedorawiki.de/index.php?title=Gnome_3_Extensions&
oldid=15089
https://live.gnome.org/GnomeShell/Extensions
http://blog.fpmurphy.com/2011/04/gnome-3-shell-extensions.html
and take a look at: /usr/share/gnome-shell/js/ui