Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Scripts to Install programs

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
JohnBallard0313
Posts: 5
Joined: 2023-05-17 20:24

Scripts to Install programs

#1 Post by JohnBallard0313 »

Good Morning,

I am attempting to set some scripts up that when double clicked will open an xterm windows and echo to the user steps on what they need to input. The first one I am attempting is to change the computer name. Can someone help me out here? I think I just need a push in the general direction.

User avatar
ruwolf
Posts: 643
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 41 times
Been thanked: 30 times

Re: Scripts to Install programs

#2 Post by ruwolf »

By BASH (or DASH) you can (in terminal emulator) echo messages, read input from user and execute commands, too.
But only root can change host name.

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1418
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 80 times
Been thanked: 191 times

Re: Scripts to Install programs

#3 Post by steve_v »

Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

reinob
Posts: 1198
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: Scripts to Install programs

#4 Post by reinob »

To change the computer name (hostname) easily, you can use hostnamectl.

Or you do this "by hand" by (stream) editing /etc/hostname, /etc/mailname (if you run a mail server), and /etc/hosts (the entry for 127.0.1.1).

Post Reply