Jul 4 2012

New user created as:

groupadd mygroup
useradd -s /bin/bash -g myuser -m -k /dev/null myuser

When trying to log in:

[root@vserver~]# su - myuser
su: /bin/bash: Permission denied

Solution:

[root@vserver~]# chmod 755 /bin
[root@vserver~]# su - myuser
[myuser@vserver~]$
Apr 24 2012

Supose you want to use Linux and OpenSSH to automize your tasks or you just don't want to type the password everytime you connect to a server.
You can solve this issue by doing this.

Scenario:
skyline wants to connect to veyron using ssh without password.

By default the ssh command has an order to check for autentications: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password

Tags: 
Apr 10 2012

Headup Portage Tree

This portage tree is for apps that are not inside the official portage repository and some other packages with some hacks.
If you would like to contribute, report some bugs or send me suggestions, you can send me an email: alvaro[at]headup[dot]ws

Starting Points

Apr 5 2012

As a sysadmin, I need to generate lots of passwords and sometimes if you do so without an script the generated password becomes really easy to guess and also is hard to build a safe password.

Because of this I use this script to generate pseudo randomly passwords, is not an un-crackable method but solves the main problem.
You can put this code at the end of your .bashrc file, in order to make it like a system command, please do not remove the other lines in the file.

Tags: 
Apr 3 2012

Subversion is a software versioning and revision control system.
Every copy of source code received from subversion repository has .svn folders, which store metadata.

This is a simple example of a unix command, which recursively deletes subversion .svn folders, these folders are often not necessary, if you want to distribute the source code.
You can put this code at the end of your .bashrc file, in order to make it like a system command, please do not remove the other lines in the file.

Tags: 

I'm using an old kernel because is the last stable to use with VServer patch.

Dec 21 2011

First, Check you squid.conf file and locate the location of you cache directory, you should have line starting with "cache_dir"

1) Shutdown your squid server
squid -k shutdown

2) Remove the cache directory
rm -r /squid/cache/*

3) Re-Create the squid cache directory
squid -z

4) Start the squid

Dec 12 2011

The Internet Communications Engine, or Ice, is an object-oriented middleware that provides object-oriented Remote Procedure Call, grid computing and Publish/subscribe functionality developed by ZeroC and dual-licensed under the GNU GPL and a proprietary license. It supports C++, Java, .NET-languages (such as C# or Visual Basic), Objective-C, Python, PHP and Ruby on most major operating systems such as Linux, Solaris, Windows and Mac OS X. A light variant of ICE runtime, called Ice-e, may run inside mobile phones.

Error:
createdb: database creation failed: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.

Solution:
createdb my_prod -E UTF8 -T template0

First we need to check if we have a 64Bits Kernel running.
Some linux distros use a release file to save the version, codename, and other information

alvaro@linux-a77o:~> cat /etc/SuSE-release
openSUSE 11.4 (x86_64)
VERSION = 11.4
CODENAME = Celadon

Or check the system information using uname

alvaro@linux-a77o:~> uname -a
Linux linux-a77o 2.6.37.1-1.2-desktop #1 SMP PREEMPT 2011-02-21 10:34:10 +0100 x86_64 x86_64 x86_64 GNU/Linux

Or something a little more standart...

Tags: 

Pages

Subscribe to RSS - linux