Quantcast

Forums | MacLife

You are not logged in.

#26 2008-01-13 4:32 pm

Chickenhawk
Snark Snark Snark Snark
From: Being Snarky
Registered: 2005-06-01
Posts: 5821

Re: Linux- anyone....anyone....

Synaptic (System -> Administration -> Synaptic Package Manager) for a GUI, and apt-get in the commandline

Code:

$sudo apt-get install [packagename]

The recent medical controversy over whether vaccinations cause autism reveals a habit of human cognition—thinking anecdotally comes naturally, whereas thinking scientifically does not. -- Michael Shermer

Offline

 

#27 2008-01-13 4:34 pm

CrashingtehWarehouse
Dismember
From: The Frozen Tundra
Registered: 2006-08-11
Posts: 1134

Re: Linux- anyone....anyone....

I'll try that when I get home.  Thanks CH.


Alright, now, who wants to be transistorized?

Offline

 

#28 2008-01-18 10:07 pm

CrashingtehWarehouse
Dismember
From: The Frozen Tundra
Registered: 2006-08-11
Posts: 1134

Re: Linux- anyone....anyone....

Ok, So, why can't  I visit some sites like, nbc.com, abc.com, fox.com, etc?  I get the ads but not the good stuff.  I think I'm turning into an idiot on this OS.


Alright, now, who wants to be transistorized?

Offline

 

#29 2008-01-18 10:51 pm

CrashingtehWarehouse
Dismember
From: The Frozen Tundra
Registered: 2006-08-11
Posts: 1134

Re: Linux- anyone....anyone....

Okay, so I'm trying to get Java on this thing, but when I open up Terminal and follow the instructions on this site http://www.java.com/en/download/help/5000010500.xml#rpm
I get stuck on the Root Password bit.  I've been trying to use the one and only password that I have on this computer but no go. 

What am I doing wrong? ...besides dealing with Java.


Alright, now, who wants to be transistorized?

Offline

 

#30 2008-01-19 12:45 am

FutureDreamz
1.1.2.3.5.8.13.21.34.55
From: カナダ
Registered: 2007-01-07
Posts: 4511

Re: Linux- anyone....anyone....

CrashingtehWarehouse wrote:

Okay, so I'm trying to get Java on this thing, but when I open up Terminal and follow the instructions on this site http://www.java.com/en/download/help/5000010500.xml#rpm
I get stuck on the Root Password bit.  I've been trying to use the one and only password that I have on this computer but no go. 

What am I doing wrong? ...besides dealing with Java.

::notes the zing against a Canadain invention::
:takes offense::

Last edited by FutureDreamz (2008-01-19 12:45 am)


Thanks for clicking.

Offline

 

#31 2008-01-19 3:46 am

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50397
Website

Re: Linux- anyone....anyone....

CrashingtehWarehouse wrote:

Okay, so I'm trying to get Java on this thing, but when I open up Terminal and follow the instructions on this site http://www.java.com/en/download/help/5000010500.xml#rpm
I get stuck on the Root Password bit.  I've been trying to use the one and only password that I have on this computer but no go. 

What am I doing wrong? ...besides dealing with Java.

If I recall - ubuntu is one of those backwards operating systems that initially does not have a root password - you either use sudo with your user password, or create a root password.

sudo passwd root

should do it - but I don't know.

See if icedtea has been packaged for ubuntu - it works quite for me in CentOS - it's a free java implementation that includes a browser plugin. It might already be in your ubuntu package repositories.

It's not as fully functional (yet) as sun java, but it works for most things - everything I've encountered on the web. I know it fails with *some* java desktop applications.


In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor

Offline

 

#32 2008-01-19 9:31 am

CrashingtehWarehouse
Dismember
From: The Frozen Tundra
Registered: 2006-08-11
Posts: 1134

Re: Linux- anyone....anyone....

Creating a new password worked! Thanks Res.


Alright, now, who wants to be transistorized?

Offline

 

#33 2008-01-19 10:49 am

Chickenhawk
Snark Snark Snark Snark
From: Being Snarky
Registered: 2005-06-01
Posts: 5821

Re: Linux- anyone....anyone....

ugh, you should have just used sudo -s. That would have given you a root shell. I don't agree with the sentiment that Ubuntu (or any other sudo) using distros are 'backwards' because they use sudo instead of having a root account. I could go on and on for the advantages of sudo over root account + su.


The recent medical controversy over whether vaccinations cause autism reveals a habit of human cognition—thinking anecdotally comes naturally, whereas thinking scientifically does not. -- Michael Shermer

Offline

 

#34 2008-01-19 10:54 am

Chickenhawk
Snark Snark Snark Snark
From: Being Snarky
Registered: 2005-06-01
Posts: 5821

Re: Linux- anyone....anyone....

or sudo su, or sudo -i. I don't like having the root account enabled because that is one of the common usernames which skiddies try to brute force.


The recent medical controversy over whether vaccinations cause autism reveals a habit of human cognition—thinking anecdotally comes naturally, whereas thinking scientifically does not. -- Michael Shermer

Offline

 

#35 2008-01-19 10:59 am

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50397
Website

Re: Linux- anyone....anyone....

Creating a root account does not remove the ability to use sudo.

Properly configured sudo will not allow the user to spawn a shell. These backwards distributions that set up sudo to do anything are mis-configured.

In the event of a user account password sniff (or brute force), the cracker can get root. If sudo is disabled or configured to only allow a few apps (that can not spawn a shell), the cracker who sniffs or brute forces a user account can not get root.

The common argument is that all important data on a box is in the home directory so root doesn't matter - but it does, because if they get root on a box, they can set up a spam server, modify logs, alter binaries, and other stuff that can't be done w/o root.

root privileges are rarely ever needed, pretty much only to install software and system wide configurations. Therefore allowing user passwords to get a root shell is not necessary.

Last edited by resedit (2008-01-19 11:00 am)


In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor

Offline

 

#36 2008-01-19 11:11 am

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50397
Website

Re: Linux- anyone....anyone....

Chickenhawk wrote:

or sudo su, or sudo -i. I don't like having the root account enabled because that is one of the common usernames which skiddies try to brute force.

Then your ssh daemon is mis-configured.
Simply put

Code:

PermitRootLogin no

into /etc/ssh/sshd_config

and no one can ssh into the root account on your box - even if they have the right password.

That's actually the default configuration from upstream - but most distributions stupidly change it to yes. The reason is to make it easier with remote installs and automated kickstart installs where a console may not be available. That way it allows the admin to directly ssh into the freshly installed box that may not have any user accounts. But they should do that only for those types of installs.

Also configure your login manager (typically gdm) to not allow gui root login.
I believe gdm never allows it for remote xdmcp gui login - but some distros may stupidly patch that out (I don't know any that do, but it wouldn't surprise me).

Usually xdmcp is off by default though.

Last edited by resedit (2008-01-19 11:13 am)


In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor

Offline

 

#37 2008-01-19 11:15 am

Chickenhawk
Snark Snark Snark Snark
From: Being Snarky
Registered: 2005-06-01
Posts: 5821

Re: Linux- anyone....anyone....

My ssh daemon is properly configured, however, it is not that way by default, I think. I also use deny hosts, in the rare possibility that somebody figures out the port I have on my router forwarding ssh to my desktop, and figures out my username. Again, I find the stories of sudo's insecurity highly exaggerated.


The recent medical controversy over whether vaccinations cause autism reveals a habit of human cognition—thinking anecdotally comes naturally, whereas thinking scientifically does not. -- Michael Shermer

Offline

 

#38 2008-01-19 11:25 am

Chickenhawk
Snark Snark Snark Snark
From: Being Snarky
Registered: 2005-06-01
Posts: 5821

Re: Linux- anyone....anyone....

One huge advantage to sudo is its logging. If you're on a system with multiple administrators, you can examine the logs to see what everybody modified in the past week if something goes tits up, as well as for a single admin  system, you can see if somebody has been abusing your account. This includes obtaining root shells, I believe, but it won't tell you what was executed in those shells. There are programs out there which will allow that as well, however.


The recent medical controversy over whether vaccinations cause autism reveals a habit of human cognition—thinking anecdotally comes naturally, whereas thinking scientifically does not. -- Michael Shermer

Offline

 

#39 2008-01-19 11:35 am

Chickenhawk
Snark Snark Snark Snark
From: Being Snarky
Registered: 2005-06-01
Posts: 5821

Re: Linux- anyone....anyone....

Also, vim > emacs, GNOME > KDE tongue


The recent medical controversy over whether vaccinations cause autism reveals a habit of human cognition—thinking anecdotally comes naturally, whereas thinking scientifically does not. -- Michael Shermer

Offline

 

#40 2008-01-19 1:01 pm

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50397
Website

Re: Linux- anyone....anyone....

emacs > vim for some things (ie LaTeX) but vim > emacs for most edits.
AbiWord/Gnumeric > OpenOffice

The sudo logging argument is valid on multi admin machines

On multi-user machines - BSD su > GNU su (BSD su doesn't let you su to root unless you are in the wheel group)

That was one thing I liked about OS X over Linux.
You can compile BSD su on Linux, but no or few distros ship that way.


In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor

Offline

 

#41 2008-01-19 1:48 pm

CrashingtehWarehouse
Dismember
From: The Frozen Tundra
Registered: 2006-08-11
Posts: 1134

Re: Linux- anyone....anyone....

confused


Okay..... lets join the hand holding already in progress.


So, Um, back to my lack of knowledge in this department.  After I was able to successfully put in a password I needed to type in a directory location....everything I typed was rejected.  What now?


Alright, now, who wants to be transistorized?

Offline

 

#42 2008-01-19 1:49 pm

CrashingtehWarehouse
Dismember
From: The Frozen Tundra
Registered: 2006-08-11
Posts: 1134

Re: Linux- anyone....anyone....

FutureDreamz wrote:

CrashingtehWarehouse wrote:

Okay, so I'm trying to get Java on this thing, but when I open up Terminal and follow the instructions on this site http://www.java.com/en/download/help/5000010500.xml#rpm
I get stuck on the Root Password bit.  I've been trying to use the one and only password that I have on this computer but no go. 

What am I doing wrong? ...besides dealing with Java.

::notes the zing against a Canadain invention::
:takes offense::

Right, you've never dissed an American one? Eh? Eh?


Alright, now, who wants to be transistorized?

Offline

 

#43 2008-01-19 1:52 pm

CrashingtehWarehouse
Dismember
From: The Frozen Tundra
Registered: 2006-08-11
Posts: 1134

Re: Linux- anyone....anyone....

Chickenhawk wrote:

ugh, you should have just used sudo -s. That would have given you a root shell. I don't agree with the sentiment that Ubuntu (or any other sudo) using distros are 'backwards' because they use sudo instead of having a root account. I could go on and on for the advantages of sudo over root account + su.

Why do I want one of those?

I'm beginning to think I'm not cut out for Ubuntu.


Alright, now, who wants to be transistorized?

Offline

 

#44 2008-01-19 1:54 pm

Chickenhawk
Snark Snark Snark Snark
From: Being Snarky
Registered: 2005-06-01
Posts: 5821

Re: Linux- anyone....anyone....

a root shell is what the java installation is asking for. You can also just preface every command they give you with 'sudo'


The recent medical controversy over whether vaccinations cause autism reveals a habit of human cognition—thinking anecdotally comes naturally, whereas thinking scientifically does not. -- Michael Shermer

Offline

 

#45 2008-01-19 11:00 pm

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50397
Website

Re: Linux- anyone....anyone....

CrashingtehWarehouse wrote:

Chickenhawk wrote:

ugh, you should have just used sudo -s. That would have given you a root shell. I don't agree with the sentiment that Ubuntu (or any other sudo) using distros are 'backwards' because they use sudo instead of having a root account. I could go on and on for the advantages of sudo over root account + su.

Why do I want one of those?

I'm beginning to think I'm not cut out for Ubuntu.

Setting up a machine is the hardest part.
It gets easier. Much easier.


In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor

Offline

 

#46 2008-01-19 11:01 pm

Chickenhawk
Snark Snark Snark Snark
From: Being Snarky
Registered: 2005-06-01
Posts: 5821

Re: Linux- anyone....anyone....

Yeah, once its set up, you don't deal with most of this, until you break something.


The recent medical controversy over whether vaccinations cause autism reveals a habit of human cognition—thinking anecdotally comes naturally, whereas thinking scientifically does not. -- Michael Shermer

Offline

 

#47 2008-01-20 12:00 pm

CrashingtehWarehouse
Dismember
From: The Frozen Tundra
Registered: 2006-08-11
Posts: 1134

Re: Linux- anyone....anyone....

ha ha.


So what about this directory business for Java.  Why won't it let me put it anywhere?  What's the proper syntax for directory?

I've only ever used Terminal once...about ten years ago.  And I was walked through it.


Alright, now, who wants to be transistorized?

Offline

 

#48 2008-01-20 12:13 pm

Chickenhawk
Snark Snark Snark Snark
From: Being Snarky
Registered: 2005-06-01
Posts: 5821

Re: Linux- anyone....anyone....

either /usr/java or /usr/local/java will work. I generally only use /usr/local for whenever I install something manually. For example, I have matlab in my /usr/local directory, but no custom directories in /usr.


The recent medical controversy over whether vaccinations cause autism reveals a habit of human cognition—thinking anecdotally comes naturally, whereas thinking scientifically does not. -- Michael Shermer

Offline

 

#49 2008-01-20 8:43 pm

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50397
Website

Re: Linux- anyone....anyone....

My philosophy -

/usr - stuff installed by native package manager
/usr/local - stuff installed outside of native package manager
/opt - some vendors will have packages that install there (IE adobe acrobat reader) - installing into /opt usually requires a symlink in /usr/local/bin or /usr/bin


In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor

Offline

 

#50 2008-01-20 8:47 pm

CrashingtehWarehouse
Dismember
From: The Frozen Tundra
Registered: 2006-08-11
Posts: 1134

Re: Linux- anyone....anyone....

Chickenhawk wrote:

either /usr/java or /usr/local/java will work. I generally only use /usr/local for whenever I install something manually. For example, I have matlab in my /usr/local directory, but no custom directories in /usr.

I get "bash: blah blah blah: No such file or directory"


Alright, now, who wants to be transistorized?

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson