Run cvt and give resolution as params:
$ cvt 1280 1024
Cvt prints out mode line for xorg.conf. Paste this line as an argument for xrandr:
$ xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
Add new mode to list of available modes:
$ xrandr --verbose --addmode VGA1 "1280x1024_60.00"
Set new mode for appropriate output:
$ xrandr --output VGA1 --mode 1280x1024_60.00
Resources:
UbuntuForums
AutoStart of dual monitor mode: ThinkWiki
2010-06-18
2010-04-23
Linux nohup running process
How to nohup already running process?
Put it to background:
Ctrl+Z
bg
Run disown:
disown
source: stackoverflow
Put it to background:
Ctrl+Z
bg
Run disown:
disown
source: stackoverflow
2010-02-26
Ubuntu latest original Flash plugin
How to install latest version of original Flash plugin in Ubuntu.
Do under root:
Remove Ubuntu Flash package:
# apt-get remove flashplugin-nonfree
Install required libraries:
# apt-get install libnspr4-dev libnss3-dev
Download latest Flash plugin from:
http://get.adobe.com/flashplayer/
Install downloaded plugin:
# dpkg -i install_flash_player_10_linux.deb
Do under root:
Remove Ubuntu Flash package:
# apt-get remove flashplugin-nonfree
Install required libraries:
# apt-get install libnspr4-dev libnss3-dev
Download latest Flash plugin from:
http://get.adobe.com/flashplayer/
Install downloaded plugin:
# dpkg -i install_flash_player_10_linux.deb
Debian Ubuntu dual monitor KDE
KDE dual monitor setup short guide:
Start ControlPanel from KDE menu or by Alt+F2 or from console:
$ ControlPanel
Choose:
System settings / Display / Multiple monitors / Show unmanaged windows on
Choose your default monitor for new windows.
You can set positions, resolutions and rotation for each output by xrandr:
In console:
xrandr --output LVDS --auto --rotate normal --pos 0x0 --output VGA-0 --auto --rotate normal --right-of LVDS
xrandr --output VGA-0 --auto --rotate normal --pos 0x0 --output LVDS --auto --rotate normal --right-of LVDS
Set equal contents for both outputs:
xrandr --output LVDS --same-as VGA-0
If the following error occurs:
xrandr: screen cannot be larger than 1280x1280 (desired size 2560x1024)
you have to change virtual desktop resolutions:
Open file /etc/X11/xorg.conf
Add to section "Screen" - SubSection "Display" item Virtual x y
where x and y is new resolution required by xrandr.
For example, if xrandr outputs:
xrandr: screen cannot be larger than 1280x1280 (desired size 2560x1024)
Add following line:
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 2560 1024
EndSubSection
EndSection
If you don't have any xorg.conf, you can (re)generate xorg.conf
Stop X Window:
Do as root from console:
# /etc/init.d/kdm stop
# /etc/init.d/gdm stop
# /etc/init.d/xdm stop
# killall X
# killall Xorg
Reconfigure:
# dpkg-reconfigure xserver-xorg
or:
# Xorg -configure
Done.
You can restart your X Window and reconfigure resolutions, positions and rotations for your monitors.
Start ControlPanel from KDE menu or by Alt+F2 or from console:
$ ControlPanel
Choose:
System settings / Display / Multiple monitors / Show unmanaged windows on
Choose your default monitor for new windows.
You can set positions, resolutions and rotation for each output by xrandr:
In console:
xrandr --output LVDS --auto --rotate normal --pos 0x0 --output VGA-0 --auto --rotate normal --right-of LVDS
xrandr --output VGA-0 --auto --rotate normal --pos 0x0 --output LVDS --auto --rotate normal --right-of LVDS
Set equal contents for both outputs:
xrandr --output LVDS --same-as VGA-0
If the following error occurs:
xrandr: screen cannot be larger than 1280x1280 (desired size 2560x1024)
you have to change virtual desktop resolutions:
Open file /etc/X11/xorg.conf
Add to section "Screen" - SubSection "Display" item Virtual x y
where x and y is new resolution required by xrandr.
For example, if xrandr outputs:
xrandr: screen cannot be larger than 1280x1280 (desired size 2560x1024)
Add following line:
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 2560 1024
EndSubSection
EndSection
If you don't have any xorg.conf, you can (re)generate xorg.conf
Stop X Window:
Do as root from console:
# /etc/init.d/kdm stop
# /etc/init.d/gdm stop
# /etc/init.d/xdm stop
# killall X
# killall Xorg
Reconfigure:
# dpkg-reconfigure xserver-xorg
or:
# Xorg -configure
Done.
You can restart your X Window and reconfigure resolutions, positions and rotations for your monitors.
Ubuntu Linux WebCam
WebCam Acer TravelMate 5720.
Install under root:
# apt-get install luvcview guvcview
# depmod -ae
Done.
Test under regular user:
$ guvcview
Install under root:
# apt-get install luvcview guvcview
# depmod -ae
Done.
Test under regular user:
$ guvcview
2009-12-14
Ubuntu boot without external monitor
I could not boot my laptop without external monitor connected to D-Sub interface.
After choosing OS in grub the screen became black but nothing else happened, no harddisk activity. It seemed there was problem with splash screen initialization. I wanted to turn it off but it was impossible to even boot to rescue mode.
Final solution was done in two steps
Change the boot loader settings.
Store boot settings permanently after successfull boot.
Change your boot loader settings
If you are using grub choose your operating system and press "e" for editing. Then find line beginning with "kernel" or "linux", press "end" and delete options "quiet splash". Press Ctrl+x. Your system should boot correctly without graphical splash screen.
Save your settings permanently
For smooth start you should save your settings to grub configuration. Open file /boot/grub/menu.lst or /etc/default/grub AND /etc/grub/grub.cfg - depending on your grub version and disable splash screen:
For grub version 1 open /etc/grub/menu.lst and delete all words "splash"
For grub version 2 open /etc/grub/grub.cfg and delete option "splash" from option GRUB_CMDLINE_LINUX_DEFAULT. Then open /etc/grub/grub.cfg and delete word "splash" from your boot profile.
Done.
After choosing OS in grub the screen became black but nothing else happened, no harddisk activity. It seemed there was problem with splash screen initialization. I wanted to turn it off but it was impossible to even boot to rescue mode.
Final solution was done in two steps
Change the boot loader settings.
Store boot settings permanently after successfull boot.
Change your boot loader settings
If you are using grub choose your operating system and press "e" for editing. Then find line beginning with "kernel" or "linux", press "end" and delete options "quiet splash". Press Ctrl+x. Your system should boot correctly without graphical splash screen.
Save your settings permanently
For smooth start you should save your settings to grub configuration. Open file /boot/grub/menu.lst or /etc/default/grub AND /etc/grub/grub.cfg - depending on your grub version and disable splash screen:
For grub version 1 open /etc/grub/menu.lst and delete all words "splash"
For grub version 2 open /etc/grub/grub.cfg and delete option "splash" from option GRUB_CMDLINE_LINUX_DEFAULT. Then open /etc/grub/grub.cfg and delete word "splash" from your boot profile.
Done.
Debian Ubuntu missing menu.lst
On latest ubuntu I could not find my grub configuration file. I was looking for it in standard path /boot/grub/menu.lst but it was not in the file system at all.
First I thought it was mount-related problem but the answer is much easier.
Grub version 2 does not have menu.lst. It uses much more beautiful /boot/grub/grub.cfg stored in the same path. This file is on my Ubuntu auto generated from templates stored in /etc/grub.d and settings from /etc/default/grub therefore it shoultn't be edited directly because these changes will be overwriten next time.
First I thought it was mount-related problem but the answer is much easier.
Grub version 2 does not have menu.lst. It uses much more beautiful /boot/grub/grub.cfg stored in the same path. This file is on my Ubuntu auto generated from templates stored in /etc/grub.d and settings from /etc/default/grub therefore it shoultn't be edited directly because these changes will be overwriten next time.
Subscribe to:
Posts (Atom)