Showing posts with label fedora. Show all posts
Showing posts with label fedora. Show all posts

Monday, December 29, 2014

Change screen resolution in Fedora

You can use xrandr to set specific resolutions.
  1. First generate a modeline. This is very easy using cvt. For example, to create a mode for 1920x1080 you would run
    cvt 1920 1080 60 -r
    
    The 60 corresponds to a 60Hz refresh rate (a common refresh rate for modern monitors). The -r means to enable reduced blanking, which is useful for LCD monitors.
  2. Add the new mode to your mode list using xrandr. Copy the output of cvt (except the word "Modeline") and paste it after xrandr --newmode
    xrandr --newmode "1920x1080R"  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync
    
  3. Add the new mode to the proper connector. If the monitor is connected to the first HDMI port on your video card, the command would be
    xrandr --addmode HDMI1 1920x1080R
    
    A list of valid connector names is given in the output of running xrandr with no arguments.
  4. Enable the new mode. Sometimes the new mode is automatically enabled after step three. If not, you can enable it by opening "Settings" and clicking on "Displays", or through xrandr
    xrandr --output HDMI1 --mode 1920x1080R

Monday, April 1, 2013

hide login username from the login screen in Fedora 18

I using Fedora 18 - Gnome 3.6.2

I have ten user accounts (created for testing purposes) i dont want the username listed or shown to anyone trying to login to my laptop.

i came across a solution updating gconf database

go to


 touch or create a file called 01.mysettings






vi 01.mysettings







update the dconf database




Wednesday, December 12, 2012

remote desktop from fedora to windows 7 using rdesktop

i wanted to remote desktop from Fedora to Windows


Machine A - Fedora 16
Machine B - Windows 7 Ultimate

 step 1: make sure users can remotely access the pc

 step 2: add the standard user to the remote desktop user group in

now go to the linux pc

make sure you have rdesktop install else

yum install rdesktop

rdesktop-1.7.0.fc16.i686 153kb size


after you successfully install it

run this command in the terminal

rdesktop 192.168.1.7 -u userone -p mypassword -f

-f to run in full screen

to switch back to linux

pres Ctrl + Alt + Return

Sunday, March 11, 2012

Installing Fedora 16 on 512MB laptop

this weekend project was to get a old laptop working. so i decided to install XP home.. the cd didnt work :( well it was the choir master's laptop

laptop configuration: DELL Inspiron 6000 512 MB RAM 40GB HDD

i tried installing Fedora 16 as my usual practice never bothered to read the "system requirements" :)) the live usb feodra didnt allow me.. gave error message "Insufficient Memory". again without reading the minimum system requirement for Fedora 15 LXDE version downloaded it, tried installing again the same error.

this time i googled what could be done.. thanks "Google" :)

this is the solution:

vi /usr/sbin/anaconda

search for needed_ram = int((isys.MIN_RAM + extra_ram) / 1024)
change that to 

needed_ram = 0 # int((isys.MIN_RAM + extra_ram) / 1024) 

or 
needed_ram = 0 

click the "install to hard disk" button. 

my next weekend project would be modify a yii web app to be fully ajax website..

Saturday, June 11, 2011

Fedora 15 - Adding Date to your clock

Alt + F2 --> gnome-terminal
gsettings set org.gnome.shell.clock show-date true




if want to add seconds use the following command 
gsettings set org.gnome.shell.clock show-seconds true


FEDORA - 15 - Lovelock

Friday, April 1, 2011

create an encrypted flash drive in Fedora 13

its so easy to create a encrypted flash drive in Fedora 13. well not only flash drives any drive/partition :)

right click on the flash drive
select the type as "Encrypted, compatible with Linux (FAT)"
and Name any thing you want 
and click the Format button

 enter the password... and click the Create button
done.. 
you should see icon change something like this.. well the padlock should be locked.

Thursday, January 27, 2011

mount command

Linux file system or file hierarchy is a tree structure. It starts with the root directory / and branches out to other directories. Unlike windows in linux you can change the root directory using chroot command, you probably use in the rescue mode.

Everything in linux is a file.

mount command attaches file systems. see man mount for more details.
mount -t [type] [device/source] [directory/destination]
mount -t ntfs-3g /dev/sda3 /mnt/data

mount iso image files mount -o loop /mnt/data/Videos/Expendables.iso /mnt/data
finally use umount command to detach the filesystem umount /mnt/data

Thursday, January 20, 2011

Installing mysql on Fedora 13

Installing mysql Fedora 13 - Goddard

change user to root su -
yum install mysql
yum install mysql-server
yum install mysql-devel

after installation.. files will be available on /var/lib/mysql
and user group called mysql will be created.. change the group ownership and permissions
chgrp -R mysql /var/lib/mysql/
chmod -R 770 /var/lib/mysql/

the next step is not necessary.. add the service in desired runlevel
chkconfig | grep mysqld
chkconfig mysqld on

start the service service mysqld start
set the passwords. (note single quote is important)
mysqladmin -u root password 'new-password'
mysqladmin -u root -h hostname password '
new-password'
login to mysql mysql -u root -p

show databases;
use mysql;
show tables;
describe user;
select user, password, host from user;
update user set password = '******' where user = 'root' and host = '127.0.0.1';

Wednesday, September 15, 2010

ways to diasble rm in fedora


[jerome@localhost ~]$ vi /home/jerome/.bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi


# User specific aliases and functions
alias rm='echo command disabled for file '

About

Blogger templates