LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2015, 06:31 PM   #16
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 214

Original Poster
Rep: Reputation: 8

yeah. i tried everything but it keeps giving me this
(gedit:16196): Gtk-WARNING **: Calling Inhibit failed: GDBus.Errorrg.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
 
Old 02-05-2015, 06:46 PM   #17
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 214

Original Poster
Rep: Reputation: 8
i restarted the machin e and got this ( im aware that dellrefurb is an optional name and i can call it what ever i want. i left it like this for clarity sake. i can alter it when i understand whats up)
does this mean ive done it right?

user@dellrefurb:~$ sudo gedit /etc/hostname
sudo: unable to resolve host dellrefurb
[sudo] password for user:
Sorry, try again.
[sudo] password for user:
 
Old 02-05-2015, 08:14 PM   #18
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,023

Rep: Reputation: 203Reputation: 203Reputation: 203
I tried it and got
Code:
** (gedit:8184): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
But I also got a graphical text editor (gedit) opening and running correctly.

That WARNING was because you started your text editor in a slightly non-standard way.
It can be safely ignored.

To check what happened, enter this command:-
Code:
cat /etc/hostname
It should display dellrefurb.

Can you confirm that if you type
Code:
sudo gedit /etc/hostname
(don't make any changes - just close the text editor). You get
Quote:
sudo: unable to resolve host dellrefurb
plus some other stuff (BTW you should type your current password in if sudo asks for it).
IF THIS IS THE CASE, sudo is seriously fouled up.
It's not immensely difficult to retrieve the situation - but you need to know whats causing the problem.

Just a thought? Could you also do a copy and paste of the results of
Code:
cat /etc/hosts
 
Old 02-06-2015, 04:16 AM   #19
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18 MATE, antiX-16.1, MX-16
Posts: 1,968
Blog Entries: 8

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
dunnery,

My apologies for causing you grief at a crucial stage.

In this particular case you should use gksudo instead of sudo.

The difference is explained here:
http://psychocats.net/ubuntu/graphicalsudo

Code:
gksudo gedit /etc/hostname
You also need to edit the /etc/hosts file and change the 127.0.1.1 entry from user to dellrefurb, then save the file.

Code:
gksudo gedit /etc/hosts

Last edited by beachboy2; 02-06-2015 at 04:31 AM.
 
Old 02-06-2015, 04:48 PM   #20
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 214

Original Poster
Rep: Reputation: 8
it worked

i just want to let everyone know that it work AFTER i restarted the computer/ I got the above error message and then restarted and when i logged inot the terminal it did indeed say user@dellrefurb
i will change it again to what i originally intended. thank you everyone for helping out
 
Old 02-06-2015, 04:57 PM   #21
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 214

Original Poster
Rep: Reputation: 8
the cat thing

user@dellrefurb:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 user

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
user@dellrefurb:~$

---------- Post added 02-06-15 at 04:58 PM ----------

guys, im lost. i havent a clue. i dont know if its right wroing left or down!!!!!!
should i reinstall ubuntu?
 
Old 02-06-2015, 05:41 PM   #22
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18 MATE, antiX-16.1, MX-16
Posts: 1,968
Blog Entries: 8

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Using:

Code:
gksudo gedit /etc/hosts
change user to dellrefurb in the /etc/hosts file as follows:

From this:

Code:
127.0.1.1 user
to this:

Code:
127.0.1.1 dellrefurb
and then Save the file.

If you still have errors, then reinstall and create some decent names for username and hostname, plus a good password.

It does not take long.

Last edited by beachboy2; 02-06-2015 at 06:27 PM.
 
Old 02-06-2015, 05:56 PM   #23
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 214

Original Poster
Rep: Reputation: 8
re install

how do i re install ?
do i need to make anm iso boot disk?
 
Old 02-06-2015, 05:57 PM   #24
cynwulf
Senior Member
 
Registered: Apr 2005
Location: Walsall, UK
Posts: 1,809
Blog Entries: 5

Rep: Reputation: 871Reputation: 871Reputation: 871Reputation: 871Reputation: 871Reputation: 871Reputation: 871
Do not run graphical applications as root. Forget gksu, gksudo, pkexec, etc - just don't do it.

Use a command line text editor to edit such files. You've opened a terminal, you've entered a command to get that far - is using a command line editor that hard?

I prefer the vi editor, but it's not something I'd recommend to new users. If you want something dead easy, then just use the nano editor.
 
1 members found this post helpful.
Old 02-06-2015, 07:28 PM   #25
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,023

Rep: Reputation: 203Reputation: 203Reputation: 203
Try a reboot to see if @beachboy2 has fixed your problem.

If/when you reinstall, the installer will prompt you for the name of your machine.
Think carefully.
It will also ask you for your name and password, so that it can create an account for you.
Think carefully.

I would recommend that you don't use auto-login - but that's up to you.
 
1 members found this post helpful.
Old 02-06-2015, 08:08 PM   #26
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 214

Original Poster
Rep: Reputation: 8
ok computer

the problem is guys that im being told lots of different stuff. i m very computer savvy on macs and pcs and i can run ubuntu like a car when im using the GUI. however, the CLI is pretty daunting and with all due respect, you guys are throwing terms at me like i know what Im talking about. I have to decipher what you are saying and then try and execute it. on top of that yopu often disagree with each other or have another remedy for my question. thats isnt a criticism, im just trying to help you understand where im at. i m really happy to do anything you tell me but if you look at the threads there are a few differences. it may be that there are different ways to remedy my query but Im so green I do not know that.

im not having any problems with the computer. it works fine. i just wanted to change the name of the computer which i have done but I have followed a bunch of command actions that you guys told me to type and now I dont know where im at?

I have downloaded an iso file from the ubuntu site, i dont have any files whatsoever that i need to keep because i only got the computer 2 days ago so i can completely wipe it or i can reset it if you give me the correct things to type into the CLI.

does this make sense? or am i way off the mark?
 
Old 02-06-2015, 08:16 PM   #27
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 214

Original Poster
Rep: Reputation: 8
progress

ive changed the setting that beachboy??? told me and now im going to re start
 
Old 02-06-2015, 08:21 PM   #28
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 214

Original Poster
Rep: Reputation: 8
i restarted. how do i test to see if everything is working properly
 
Old 02-07-2015, 05:30 AM   #29
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18 MATE, antiX-16.1, MX-16
Posts: 1,968
Blog Entries: 8

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
dunnery,

I am assuming that you now have the following (or something similar that you have chosen yourself):

username: user

hostname: dellrefurb

user password: impossibletoguess

Start the PC.

Enter the password impossibletoguess

Open the Terminal and you should see:

Code:
user@dellrefurb:~$
If you now execute:

Code:
gksudo gedit /etc/hosts
you should see this:

Code:
127.0.0.1	localhost
127.0.1.1	dellrefurb

# The following lines are desirable for IPv6 capable hosts
 etc etc................
However, if you see user instead of dellrefurb, then change it to dellrefurb

Then click on File. Click on Save. Close the file.

Close the Terminal.

If the PC is running fine then just use it.

Just stick to the GUI for now and read up on command line basics in due course.


Here is a single page “cheat-sheet” for Ubuntu, from FOSS, which you may find helpful to print and keep handy:

http://files.fosswire.com/2008/04/ubunturef.pdf

NB Package Management, System Services and Firewall all require the sudo prefix.

Commands in Konsole (Terminal) for Beginners in Kubuntu :

https://www.kubuntuforums.net/showth...sole-Beginners

Differences:
http://askubuntu.com/questions/42562...ir-differences

Also Kubuntu uses the text editor kate as opposed to Ubuntu's gedit.

Last edited by beachboy2; 02-07-2015 at 04:26 PM.
 
1 members found this post helpful.
Old 02-08-2015, 10:12 AM   #30
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 214

Original Poster
Rep: Reputation: 8
That's what I got. Thank you for all you help. I'll check out the CLI manual. Phew. It's tough being a geek.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting root password dunnery Linux - Newbie 1 02-04-2015 10:42 AM
setting root password in slackware 9 kryptozapper Linux - Newbie 9 08-12-2012 08:23 AM
How to : Find Root Password Age Setting avklinux Solaris / OpenSolaris 2 12-12-2008 02:08 PM
setting root password during install jimbrechin Ubuntu 4 05-17-2005 05:06 AM
Setting root password saxophobe Linux - Newbie 11 01-17-2004 01:33 PM


All times are GMT -5. The time now is 05:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration