December, 2011
Change user password from the command line – Win7
If you would like to quickly change user password without having to enter the control panel: 1. Open command line with administrative rights 2. Issue the following command: net user username password examples: net user akarpouzas 12345678 do not use so simple passwords, this is just an example and, net user “Thanos Karpouzas” 12345678 if [...]
How to add a linux user
To add a new user in your linux system (useradd): who belongs to users group (-gusers), with password of xxxxxxxx (-pxxxxxxxx), which has a home directory (-d/home/vanesa -m), and her login name is vanesa (vanesa): useradd -gusers -pxxxxxxxx -d/home/vanesa -m vanesa IMPORTANT! The command above needs administrative rights!
Delete System Service in Windows 7
Before you delete any service you have to know its real name, not the displayed one. 1. Open services by executing: services.msc 2. Locate your desired service for deletion 3. Right click on it and select Properties 4. On Tab General, there is a field called Service Name. That’s the name that you will provide [...]
Installing Opera on Ubuntu
If you like Opera, like i do, then you are a few steps away from installing it on Ubuntu! 1. Keep a backup for file /etc/apt/sources.list 2. Append to this file the lines below: #opera deb http://deb.opera.com/opera/ stable non-free 3. Add the Opera PGP Key wget -qO – http://deb.opera.com/archive.key | sudo apt-key add – 4. [...]
Backup SQL Server Database
To create a Full Database Backup using transact sql is simple. The following sql code does the trick: USE database_name; GO BACKUP DATABASE database_name TO DISK = ‘D:\DatabaseBackups\database_name.bak’ WITH FORMAT, MEDIANAME = ‘D_Backups’, NAME = ‘Full Backup of database_name‘; GO
User is not in the sudoers file
If you are getting this message while you are trying to run a command that needs administrative rights, then your user probably is not allowed to use the sudo command! The solution is simple. First of all, keep a backup of file /etc/sudoers. Then, Either you run the visudo command with administrative rights to edit [...]
Backup MySQL Database
If you would like to take a mysql database backup from the terminal, all you have to do is to type the command below: mysqldump –opt -h localhost –user=root –password=your_password database_name > database_name_backup.sql that’s it!