To add user on ubuntu we can use useradd command, which has some options. For example we want to create new user named “cooluser” with password “usercool”, and we want to make the home directory in /home/cooluser
[php]useradd cooluser -p usercool -m [/php]
this command will create new directory in /home/cooluser
Sometimes we need to determine what version of our OS. Mostly for all unix, linux os we can do it with ‘uname’ command. for FreeBSD it works well and we can see directly what version our FreeBSD is, but for ubuntu and centos we can get it straight what we need because instead of display OS version its just will display the kernel version.
kinit: Client not found in Kerberos database while getting initial credentials
we need to write user after kinit
root@krb:/home/user# kinit root/admin
Password for root/admin@EXAMPLE.COM :
2. Error krb5-rsh Client
root@krb:/home/user# krb5-rsh -x -PN krb.example.com
error getting credentials: Server not found in Kerberos database
we need to add princ “host” that is associated with krb services
users and the services must have an appropriate principal entry in the Kerberos database. While users are in form of NAME/ROLE, services are in form SERVICE-NAME/HOSTNAME. So we need to add a principal for service “host” (common name for all shell services), on host where the service is provided — krb.example.com.
Authenticating as principal root/admin@EXAMPLE.COM with password.
error: Building GCC requires GMP 4.2 , MPFR 2.3.1 and MPC 0.8.0 .Try the –with-gmp, –with-mpfr and/or –with-mpc options to specifytheir locations. Source code for these libraries can be found attheir respective hosting sites as well as at…
i found this problem when i tried to install gcc for avr development on ubuntu
when i went to download site and tried to install it by source i still got problem. i might miss some parameter when i run ./configure.
just to save my time i prefer to do installation by apt-get, fortunately these package of GMP, MPFR, and MPC
after i install fglrx by downloading via amd homepage i got above error on my ubuntu 11.10. apparently there are some miss-configurations after the installation process.
so as suggested by some sites, i uninstall fglrx by running
# cd /usr/share/ati
# sudo sh ./fglrx-uninstall.sh
and once again i reboot my laptop expecting i can get my normal screen, but again
Fatal server error:
no screeen found
if u experience the same problem you may do this :
1. press ctrl+alt+f1 this will bring you to terminal
2. i decide to reinstall fglrx and get new configurations for my display so i run this command
[php]sudo apt-get –reinstall install fglrx[/php]
3. reboot, u should get your normal screen back 🙂
Proxy Setting for Apt is needed for us who work behind proxy. It is needed for ubuntu update, package installation, and ubuntu upgrade. This proxy setting used by apt can be configured with apt.conf and if it’s not configured ubuntu will use or read proxy configuration environtmen. read this post setting proxy bactrack or ubuntu to set proxy environtmen.
On ubuntu 10.04 we can find apt.conf in /etc/apt, but on ubuntu 11.04 i can’t find this file. Reading from some articles i found out that ubuntu 11.04 will still read apt.conf configuration if this file is exist. so i just create file apt.conf in /etc/apt/
Cron is one of the most useful utilities in FreeBSD. Cron is application that running in background that checks file /etc/crontab constantly, it is usually used for automatic commands execution. Using cron and this crontab file you can also start any service you want automatically or scheduled.
1. to change crontab or edit crontab file (using ee or vi)