 |
 |
 |
 |
| Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that. |

21st February 2011, 11:16 PM
|
 |
Registered User
|
|
Join Date: Jan 2011
Location: Odisha, India
Age: 21
Posts: 55

|
|
Fedora Utils for Getting things done
I've made a simple script which uses zenity for its GUI. It is based on my previous Fedora postinstall script. It is similar to AutoPlus and easyLife. But there are many differences, such as, - You can select many items and Fedora Utils will do one by one.
- It supports command-line arguments for most tasks, so you can use it in scripts too.
- It has auto-update built-in, so that you always run the latest.
- The downloaded files are saved automatically, so you need not download them again.
- System files are backed up before modification, so reverting is easier.
- Built-in logging mode make debugging easier.
- The ongoing operations are described more precisely.
- It won't try to redo already done things, saving from loss of time.
- Fedora Utils can add your username to sudoers file, but only when it detects that you executed it as normal user.
Features: - Add current user to sudoers
- Enable autologin for current user
- Set yum to keep cache
- Install yum tidy-cache plugin
- Add repositories - RPMFusion, Google, Adobe, Chromium, Skype
- Enable touchpad clicks
- Install multimedia codecs
- Install Adobe Flash
- Install Java Runtime Environment
- Install wine with gecko
- Install Google Talk plugin
- Add colors and fortune messages to Terminal
- Set SELinux in permissive mode
- Install Microsoft fonts
- Install Jockey driver installer (From Parsidora repo)
- Install essential software
- Fixes - Fix font smoothing, Fix bad theme in root apps, Fix rpmdb error, Fix gnome keyring, Fix picasa not starting, Fix anaconda causing revisor not to start, Fix MPlayer driver error, Fix ntfs-config not starting
- Install Gnome Shell Extensions - GPaste, Media Player, Weather, Alternate Status Menu, Dock Extension, Places Menu, User Theme, Window Navigator, Zeitgeist
- Install Software - Google Chrome, Picasa, Google Earth, HandBrake, Skype, WinFF, Unico Theme Engine
- Clean up system
- Optimize boot by turning off unnecessary services
- Show system info
And More
Project Page: fedorautils.sf.net
Last edited by satya164; 8th December 2011 at 11:10 AM.
|

24th February 2011, 07:09 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Location: Athens
Age: 29
Posts: 2

|
|
|
Re: Fedora Utils for Getting things done
i have two PC on my netbook is all ok but in my Desktop i take this error
sudo ./fedorautils-*
Verifying minimum requirements...
Distro Verified
(notify-send:27619): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Architecture Verified
(notify-send:27627): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Root User Verified
mirage Registered as Logged in User
(notify-send:27635): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
(notify-send:27642): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Internet Connection Verified
(notify-send:27723): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Zenity Verified
(notify-send:27728): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Curl Verified
(notify-send:27734): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Temporary Directory Created
(notify-send:27759): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Initializing...
No protocol specified
(zenity:27765): Gtk-WARNING **: cannot open display: :0.0
Temporary Directory Cleaned
Program Terminated
(notify-send:27775): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
No protocol specified
(zenity:27781): Gtk-WARNING **: cannot open display: :0.0
|

25th February 2011, 01:51 AM
|
 |
Registered User
|
|
Join Date: Jan 2011
Location: Odisha, India
Age: 21
Posts: 55

|
|
|
Re: Fedora Utils for Getting things done
Quote:
Originally Posted by DiMi
i have two PC on my netbook is all ok but in my Desktop i take this error
sudo ./fedorautils-*
Verifying minimum requirements...
Distro Verified
(notify-send:27619): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Architecture Verified
(notify-send:27627): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Root User Verified
mirage Registered as Logged in User
(notify-send:27635): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
(notify-send:27642): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Internet Connection Verified
(notify-send:27723): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Zenity Verified
(notify-send:27728): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Curl Verified
(notify-send:27734): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Temporary Directory Created
(notify-send:27759): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Initializing...
No protocol specified
(zenity:27765): Gtk-WARNING **: cannot open display: :0.0
Temporary Directory Cleaned
Program Terminated
(notify-send:27775): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
No protocol specified
(zenity:27781): Gtk-WARNING **: cannot open display: :0.0
|
It seems to be any problem with your system. The script relies on Zenity for GUI. There is nothing in the script that should produce the error. Have you tried upgrading your system first with "yum -y update" ?
---------- Post added at 07:21 AM ---------- Previous post was at 07:17 AM ----------
Also try su -c "./fedorautils-*". Reply if it works.
---------- Post added at 07:21 AM ---------- Previous post was at 07:21 AM ----------
Also try su -c "./fedorautils-*". Reply if it works.
|

25th February 2011, 01:54 AM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,612

|
|
|
Re: Fedora Utils for Getting things done
really it looks to me like he needs to run it in a root logon shell as opposed to using sudo.
try this
Code:
su -
(root password)
./fedorautils-*
actually, I would try running it as a regular user instead. not use sudo or su at all.
Last edited by DBelton; 25th February 2011 at 01:59 AM.
|

25th February 2011, 02:17 AM
|
 |
Registered User
|
|
Join Date: Jan 2011
Location: Odisha, India
Age: 21
Posts: 55

|
|
|
Re: Fedora Utils for Getting things done
Quote:
Originally Posted by DBelton
really it looks to me like he needs to run it in a root logon shell as opposed to using sudo.
try this
Code:
su -
(root password)
./fedorautils-*
actually, I would try running it as a regular user instead. not use sudo or su at all.
|
Yes, security comes first, but you are free to verify the script by opening it in gedit. Without root access you won't be able to do administrative tasks.
|

25th February 2011, 02:54 AM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,612

|
|
|
Re: Fedora Utils for Getting things done
Quote:
Originally Posted by satya164
Yes, security comes first, but you are free to verify the script by opening it in gedit. Without root access you won't be able to do administrative tasks.
|
then if it needs root access I would use "su -" instead of sudo and see if that corrects the error.
and of course you were correct in suggesting a full yum update as well. it is possible there are some version conflicts in there someplace.
|

28th February 2011, 07:20 AM
|
|
Registered User
|
|
Join Date: Jan 2008
Location: Athens
Age: 29
Posts: 2

|
|
|
Re: Fedora Utils for Getting things done
i have update my system and login as root!!!i have the same problem.probable the problem is with my system i thing something with GTK!
|

28th February 2011, 10:55 AM
|
 |
Registered User
|
|
Join Date: Jan 2011
Location: Odisha, India
Age: 21
Posts: 55

|
|
|
Re: Fedora Utils for Getting things done
Can you do other things as root? Like launching nautilus?
|

2nd March 2011, 09:40 AM
|
|
Registered User
|
|
Join Date: Jun 2007
Posts: 35

|
|
|
Re: Fedora Utils for Getting things done
Hello satya,
I've tried the "final" release ,and bumped some obstacles
To start with , I lost the horizontal menu bar in most app's .
(the one that normally sits under the title bar)
gnome-terminal , yumex and gedit etc...
Didn't got time for now , but will examine the script .
Also ,I have some ideas ( ads , but also improvements )
For instance ,I don't like the idea to put Selinux down , the script
should work with Selinux in enforced mode .
There are more glitches , for witch I will do some research .
For instance ,on the screen it says : the downloads will end up
on the desktop under a folder "Downloads" .
Happily it does stock the downloads , but in my locale the Desktop
is called "Bureaublad" , so they end in a folder "Desktop" in the users
home directory .
Not a big deal , but confusing for the starters .
Also , I had an error on line 829 :
Quote:
|
zenity --info --title "System Information" --text "Distribution: $(lsb_release -ircs)\nKernel: $(uname -s -r)\nArchitecture: $(uname -i)\nGraphics: $(lspci -s 00:02.0)\nHard Disk:\n$(df)"
|
the error said : command not found "lsb release"
And to be honest , I don't now what is meant with it .
The last ( for now ) thing I would like to change , is the yum keep cache
issue .
I have the "yum-plugin-local" installed ,so everything yum downloads ,
is kept in a _local cache . No need to have all rpm's on two locations .
The yum-plugin creates a _local.repo file , and the databases are well
maintained . But then its better to leave yum.conf with keep cache = 0.
So , for now , I'll need to find a solution to grab my menu bars back .
Keep the good work alive and thanks
Martin
|

2nd March 2011, 11:23 AM
|
 |
Registered User
|
|
Join Date: Jan 2011
Location: Odisha, India
Age: 21
Posts: 55

|
|
Re: Fedora Utils for Getting things done
Quote:
Originally Posted by martin-tack
Hello satya,
I've tried the "final" release ,and bumped some obstacles
To start with , I lost the horizontal menu bar in most app's .
(the one that normally sits under the title bar)
gnome-terminal , yumex and gedit etc...
Didn't got time for now , but will examine the script .
Also ,I have some ideas ( ads , but also improvements )
For instance ,I don't like the idea to put Selinux down , the script
should work with Selinux in enforced mode .
There are more glitches , for witch I will do some research .
For instance ,on the screen it says : the downloads will end up
on the desktop under a folder "Downloads" .
Happily it does stock the downloads , but in my locale the Desktop
is called "Bureaublad" , so they end in a folder "Desktop" in the users
home directory .
Not a big deal , but confusing for the starters .
Also , I had an error on line 829 :
the error said : command not found "lsb release"
And to be honest , I don't now what is meant with it .
The last ( for now ) thing I would like to change , is the yum keep cache
issue .
I have the "yum-plugin-local" installed ,so everything yum downloads ,
is kept in a _local cache . No need to have all rpm's on two locations .
The yum-plugin creates a _local.repo file , and the databases are well
maintained . But then its better to leave yum.conf with keep cache = 0.
So , for now , I'll need to find a solution to grab my menu bars back .
Keep the good work alive and thanks
Martin
|
Thanks for your detailed and great feedback. Here is how to fix the menubar.
1. Right Click a panel
2. Select "Add to Panel"
3. Choose "Global Menu Panel Applet"
4. Now after the applet added, right click it and select "Preferences"
5. Now uncheck "Enable Global Menu for GTK Applications"
This should fix your issue. This happened because it is in the default settings of global menu and the script has installed global menu. However I understand the problems and try to find a solution in next version.
The "Downloads" folder can be changed inside the script by changing the variable $DOWNLOADSDIR. I don't know about folder names in other languages. You can help me if you want.
The command
Code:
zenity --info --title "System Information" --text "Distribution: $(lsb_release -ircs)\nKernel: $(uname -s -r)\nArchitecture: $(uname -i)\nGraphics: $(lspci -s 00:02.0)\nHard Disk:\n$(df)"
should give a output like this,
Quote:
Distribution: Fedora 14 Laughlin
Kernel: Linux 2.6.35.11-83.fc14.i686
Architecture: i386
Graphics: 00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
Hard Disk:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_inspiron-lv_root
22092316 9469848 12398068 44% /
tmpfs 1528408 828 1527580 1% /dev/shm
/dev/sda5 495844 31641 438603 7% /boot
/dev/sda3 104857596 64346924 40510672 62% /media/Satya
/dev/sda4 148324348 129416940 18907408 88% /media/Tools
|
Something might be accidentally changed by you in the script. Probably the "underscore(_)" has been removed.
About turning SELinux to enforcing mode, I do so because it does prevent some apps from runnning in my system. But it is upto you if you check that box or not to turn it to enforcing.
Also, the yum cache is also fullly upto you. I might however give some warning in the script if you already have yum-plugin-local installed.
You are welcome to give more suggestions. Thank you.
Regards,
Satya
|

2nd March 2011, 12:26 PM
|
 |
Retired Administrator
|
|
Join Date: Oct 2006
Posts: 21,509

|
|
|
Re: Fedora Utils for Getting things done
Quote:
Originally Posted by martin-tack
Hello satya,
I've tried the "final" release ,and bumped some obstacles
To start with , I lost the horizontal menu bar in most app's .
(the one that normally sits under the title bar)
gnome-terminal , yumex and gedit etc...
Didn't got time for now , but will examine the script .
Also ,I have some ideas ( ads , but also improvements )
For instance ,I don't like the idea to put Selinux down , the script
should work with Selinux in enforced mode .
There are more glitches , for witch I will do some research .
For instance ,on the screen it says : the downloads will end up
on the desktop under a folder "Downloads" .
Happily it does stock the downloads , but in my locale the Desktop
is called "Bureaublad" , so they end in a folder "Desktop" in the users
home directory .
Not a big deal , but confusing for the starters .
Also , I had an error on line 829 :
the error said : command not found "lsb release"
And to be honest , I don't now what is meant with it .
The last ( for now ) thing I would like to change , is the yum keep cache
issue .
I have the "yum-plugin-local" installed ,so everything yum downloads ,
is kept in a _local cache . No need to have all rpm's on two locations .
The yum-plugin creates a _local.repo file , and the databases are well
maintained . But then its better to leave yum.conf with keep cache = 0.
So , for now , I'll need to find a solution to grab my menu bars back .
Keep the good work alive and thanks
Martin
|
It looks like the script has a missing dependency to me.
Code:
su
yum install redhat-lsb
|

2nd March 2011, 11:21 PM
|
 |
Administrator
|
|
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,848

|
|
|
Re: Fedora Utils for Getting things done
Just a note
On flash-plugin i386 you are missing -y also you dont need nspluginwrapper (line 463)
|

3rd March 2011, 12:49 PM
|
 |
Registered User
|
|
Join Date: Jan 2011
Location: Odisha, India
Age: 21
Posts: 55

|
|
|
Re: Fedora Utils for Getting things done
Quote:
Originally Posted by Dangermouse
Just a note
On flash-plugin i386 you are missing -y also you dont need nspluginwrapper (line 463)
|
Thanks for pointing out. I''l add that.
---------- Post added at 06:19 PM ---------- Previous post was at 12:53 PM ----------
I just released a new version. Check it out.
Changelog 1.2- A "Fix Problems" section added
- Option to enable touchpad click added
- Option to add Transmission Torrent Client(Minimized) to startup added
- Tweak to improve bandwidth added
- The sytem configuration files are now backed up first before modification
- More softwares added
Last edited by satya164; 4th March 2011 at 09:11 AM.
|

3rd July 2011, 03:31 PM
|
 |
Registered User
|
|
Join Date: Jan 2011
Location: Odisha, India
Age: 21
Posts: 55

|
|
|
Re: Fedora Utils for Getting things done
A new version is out. Check now.
Changelog 1.4
- Updated packages to latest versions
- Logging can be enabled now
- Changes specific to Gnome Shell
- Better notifications
However, I no longer use Fedora. So please let me know if any bugs occur. Also now instructions are available to revert the changes too. Check the project page.
|

5th November 2011, 08:47 AM
|
 |
Registered User
|
|
Join Date: Jan 2011
Location: Odisha, India
Age: 21
Posts: 55

|
|
|
Update: Fedora Utils 1.7.5
Hi all. I've released Fedora Utils 1.7.5 yesterday. The complete changelog can be found here.
The latest version can be always found at fedorautils.sf.net.
Current version of Fedora Utils supports following features,
- Add current user to sudoers
- Enable autologin for current user
- Set yum to keep cache
- Install yum tidy-cache plugin
- Add repositories - RPMFusion, Google, Adobe, Chromium, Skype
- Enable touchpad clicks
- Install multimedia codecs
- Install Adobe Flash
- Install Java Runtime Environment
- Install wine with gecko
- Install Google Talk plugin
- Add colors and fortune messages to Terminal
- Set SELinux in permissive mode
- Install Microsoft fonts
- Install Jockey driver installer (From Parsidora repo)
- Install essential software
- Fixes - Fix font smoothing, Fix bad theme in root apps, Fix rpmdb error, Fix gnome keyring, Fix picasa not starting, Fix anaconda causing revisor not to start, Fix MPlayer driver error, Fix ntfs-config not starting
- Install Gnome Shell Extensions - GPaste, Media Player, Weather, Alternate Status Menu, Dock Extension, Places Menu, User Theme, Window Navigator, Zeitgeist
- Install Software - Google Chrome, Picasa, Google Earth, HandBrake, Skype, WinFF, Unico Theme Engine
- Clean up system
- Optimize boot by turning off unnecessary services
- Show system info
Also it now has many code optimization, better handling of installations, auto update, command-line arguments and many more features.
And not to mention, Fedora 16 support.
I have also made a RPM package for those willing to install fedorautils. Thanks for your support
Last edited by satya164; 5th November 2011 at 09:29 AM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 03:07 (Friday, 24-05-2013)
|
|
 |
 |
 |
 |
|
|