LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 02-13-2019, 10:32 AM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
wrapper not working in /usr/local/bin for grub.


Hello again,

trying to make my hack to update grub work in this distro. it is just a wrapper for updating grub.
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
put into a file and named update-grub and given executable permissions in /usr/local/bin

here is what I am seeing.

Code:
[userx@centoast ~]$ ls /usr/local/bin
update-grub
[userx@centoast ~]$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/userx/.local/bin:/home/userx/bin

[userx@centoast ~]$ update-grub
grub2-mkconfig: You must run this as root


[userx@centoast ~]$ sudo update-grub
sudo: update-grub: command not found

# make a bash file in /usr/local/bin to see if that works
[userx@centoast ~]$ sudo nano /usr/local/bin/saysomething

echo "I am in $(pwd)"

[userx@centoast ~]$ sudo chmod +x  /usr/local/bin/saysomething
[userx@centoast ~]$ saysomething
I am in /home/userx
so what limitations has been put on this simple wrapper for the grub command ??????

(still working on getting automount to work in kde) jeez... updated grub to get a menu to show on boot...

Aaaaaahhhhh crap never mind... I added /usr/local/bin to sudoers default path..

Last edited by BW-userx; 02-13-2019 at 10:35 AM.
 
Old 02-13-2019, 10:50 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
well now I got the menu showing too.... instead of just my HP logo and nothing else... added image, fonts , custom rez , text high-lights etc..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
[SOLVED] Kickoff Application Launches from /usr/bin rather than /usr/local/bin Tim Johnson Slackware 2 05-26-2010 09:36 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration