manac ham chơi

4 May, 2014

change icon theme (windowmanager, gtkrc-2.0)

Filed under: linux-unix — manac @ 1:36 am

$ sudo apt-get install tango-icon-theme tango-icon-theme-extras
$ nano .gtkrc-2.0
put
gtk-icon-theme-name = “Tango”

Advertisements

5 May, 2012

Boot Multiple ISO from USB via Grub2 using Linux

Filed under: linux-unix — manac @ 12:23 am

Boot ISO Files directly from USB using Grub2 from Linux. Here is one way to create a Multiboot USB Flash Drive from a running Ubuntu (I used the Live CD). You may eventually need a large Flash Drive or USB Hard Drive in order to include every bootable ISO entry. I will add more Bootable ISO files to the grub.cfg file as I find time to test them. Contact me to submit working Bootable Linux ISO grub.cfg entries for inclusion.

I. Format your USB Flash Drive to use a Single Partition:

Open a terminal and type sudo su
Type fdisk -l (and note which device is your USB Drive)
Type fdisk /dev/sdx (replacing x with your actual usb device)
Type d (to delete the existing partition)
Type n (to create a new partition)
Type p (for primary partition)
Type 1 (to create the first partition)
Press Enter (to use the first cylinder)
Press Enter again (to use the default value as the last cylinder)
Type a (for active)
Type 1 (to mark the first partition active “bootable”)
Type w (to write the changes and close fdisk)

II. Create a Fat32 Filesystem on the USB Flash Drive:

Type umount /dev/sdx1 (to unmount the mounted partition)
Type mkfs.vfat -F 32 -n MULTIBOOT /dev/sdx1 (to format the partition as fat32)

III. Install Grub2 on the USB Flash Drive:

Type mkdir /media/MULTIBOOT (to create a directory for the mountpoint)
Type mount /dev/sdx1 /media/MULTIBOOT (to mount the USB)
Type grub-install –force –no-floppy –root-directory=/media/MULTIBOOT /dev/sdx (to install Grub2)
Type cd /media/MULTIBOOT/boot/grub (to change directory)
Type wget pendrivelinux.com/downloads/multibootlinux/grub.cfg (to get the grub.cfg file)

IV. Test to make sure your USB Device Boots into Grub2:

Reboot your Computer, and enter your BIOS or Boot Menu. Set the Boot Order to boot from the USB Device. Save your changes and Reboot. If all goes well, you should be presented with a Grub2 Boot Menu.

V. Adding the Bootable ISO files:

Type cd /media/MULTIBOOT (assuming USB is still mounted here)
Follow the instructions for the ISO Distro you would like to add below. Simply click to expand the instructions.

Ubuntu 10.10 IS0

Type wget “releases.ubuntu.com/10.10/ubuntu-10.10-desktop-i386.iso” -O ubuntu.iso

Or rename your existing ISO ubuntu.iso and copy it to the USB device
Linux Mint 10 Gnome IS0

Type wget ftp.heanet.ie/pub/linuxmint.com/stable/10/linuxmint-10-gnome-cd-i386.iso -O linuxmint10.iso

Or rename your existing ISO linuxmint10.iso and copy it to the USB device
DBAN IS0

Type wget “downloads.sourceforge.net/project/dban/dban/dban-2.2.6/dban-2.2.6_i586.iso?r=&ts=1292340298&use_mirror=surfnet” -O dban.iso

Or rename your existing ISO dban.iso and copy it to the USB device
TinyCore IS0

Type wget “distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/tinycore-current.iso” -O tinycore.iso

Or rename your exisitng ISO tinycore.iso and copy it to your USB device
Memtest86+
Type wget memtest.org/download/4.10/memtest86+-4.10.zip
Type unzip memtest86+-4.10.zip
Type cp memtest86+-4.10.bin memtest86+.bin

Or extract the contents of your memtest86+ zip. Rename the bin to memtest86+.bin and copy it to your USB device

Link: http://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/

8 March, 2012

Timed Random Wallpapers in Fluxbox

Filed under: linux-unix — manac @ 7:47 am

Make wallpaper-loop.sh at home folder

#!/bin/bash

while true
do
fbsetbg -r /home/steve/.fluxbox/backgrounds
sleep 360
done

Sleep 360 same 6m change wallpaper
Run wallpaper-loop.sh startup on fluxbox, add line below to ~/.fluxbox/startup
...
/home/folder/wallpaper-loop.sh &
exec fluxbox
...

Source: Timed Random Wallpapers in Fluxbox
Fluxbox

4 August, 2009

vmware ubuntu 9.04 keys problem

Filed under: linux-unix — manac @ 2:27 am

Just add following line

xkeymap.nokeycodeMap = true

to /etc/vmware-server-console/config or ~/.vmare/config
and restart console/player. There is no need to restart server.

link:http://informationideas.com/news/2009/04/27/ubuntu-904-vmware-arrow-keys-problem/ (Sergey Solyanik)

22 February, 2009

New desktop

Filed under: linux-unix — manac @ 5:59 am

flux_desk1

flux_desk2

flux_desktop

fluxbox, conky, fbpager, idesk, …

24 October, 2008

Managing Services in Fedora

Filed under: linux-unix — manac @ 7:31 am

Runlevel

# /sbin/runlevel
# cat /etc/inittab | grep :initdefault:
id:5:initdefault:

To switch runlevels, you can run the following, replace RUNLEVEL with the appropriate number (3, 5, etc.):
# /sbin/init RUNLEVEL

Enable/Disabling Services

# /sbin/chkconfig --list
# /sbin/chkconfig --level 35 crond on

Controlling Services

# /sbin/service --status-all
# /sbin/service crond status
crond (pid 1604) is running...
[root@charon ~]# service crond
Usage: /etc/init.d/crond {start|stop|status|reload|restart|condrestart}
[root@charon ~]# service crond stop
Stopping crond:                                            [  OK  ]
[root@charon ~]# service crond start
Starting crond:                                            [  OK  ]
[root@charon ~]# service crond restart
Stopping crond:                                            [  OK  ]
Starting crond:                                            [  OK  ]

# /etc/init.d/crond status

http://www.mjmwired.net/resources/mjm-fedora-manage-services.html

16 October, 2008

Linux package management

Filed under: linux-unix — manac @ 2:02 am
Task apt (deb)
Debian, Ubuntu
zypp (rpm)
openSUSE
yum (rpm)
Fedora, CentOS
urpmi (rpm)
Mandriva
Managing software
Install new software from package repository apt-get install pkg zypper install pkg yum install pkg urpmi pkg
Install new software from package file dpkg -i pkg zypper install pkg yum localinstall pkg urpmi pkg
Update existing software apt-get install pkg zypper update -t pkg yum update pkg urpmi pkg
Remove unwanted software apt-get remove pkg zypper remove pkg yum erase pkg urpme pkg
Updating the system
Update package list apt-get update zypper refresh yum check-update urpmi.update -a
Update system apt-get upgrade zypper update yum update urpmi –auto-select
Searching for packages
Search by package name apt-cache search pkg zypper search pkg yum list pkg urpmq pkg
Search by pattern apt-cache search pattern zypper search -t pattern pattern yum search pattern urpmq –fuzzy pkg
Search by file name apt-file search path zypper wp file yum provides file urpmf file
List installed packages dpkg -l rpm -qa rpm -qa rpm -qa
Configuring access to software repositories
List repositories cat /etc/apt/sources.list zypper repos yum repolist urpmq –list-media
Add repository (edit /etc/apt/sources.list) zypper addrepo path name (add repo to /etc/yum.repos.d/) urpmi.addmedia name path
Remove repository (edit /etc/apt/sources.list) zypper removerepo name (remove repo from /etc/yum.repos.d/) urpmi.removemedia media
Task pkgtools
Slackware
slackpkg
Slackware
slapt-get
Vector
Managing software
Install new software from package repository slackpkg install pkg slapt-get install pkg
Install new software from package file installpkg pkg slackpkg install pkg slapt-get install pkg
Update existing software upgradepkg pkg slackpkg install pkg slapt-get install pkg
Remove unwanted software removepkg pkg slackpkg remove pkg slapt-get remove pkg
Updating the system
Update package list slackpkg update slapt-get update
Update system slackpkg upgrade-all slapt-get upgrade
Searching for packages
Search by package name slackpkg search pkg slapt-get –search pkg
Search by pattern slackpkg search pattern slapt-get –search pattern
Search by file name
List installed packages ls /var/log/packages/ ls /var/log/packages/ slapt-get –installed
Configuring access to software repositories
List repositories cat /etc/slackpkg/mirrors cat /etc/slapt-get/slapt-getrc
Add repository (edit /etc/slackpkg/mirrors) (edit /etc/slapt-get/slapt-getrc)
Remove repository (edit /etc/slackpkg/mirrors) (edit /etc/slapt-get/slapt-getrc)
Task equo
Sabayon
pacman
Arch
conary
rPath, Foresight
pisi
Pardus
Managing software
Install new software from package repository equo install pkg pacman -S pkg conary update pkg pisi install pkg
Install new software from package file equo install pkg pacman -U pkg conary update pkg pisi install pkg
Update existing software equo install pkg pacman -S pkg conary update pkg pisi install pkg
Remove unwanted software equo remove pkg pacman -R pkg conary erase pkg pisi remove pkg
Updating the system
Update package list equo update pacman -Sy pisi update-repo
Update system equo world pacman -Su conary updateall pisi upgrade
Searching for packages
Search by package name equo match pkg pacman -Ss pkg conary query pkg pisi search pkg
Search by pattern equo search pattern pacman -Ss pattern conary query pkg pisi search pkg
Search by file name equo belongs file pacman -Qo file conary query –path path pisi search-file path
List installed packages equo list pacman -Q conary query pisi list-installed
Configuring access to software repositories
List repositories equo repoinfo cat /etc/pacman.conf pisi list-repo
Add repository (edit /etc/pacman.conf) pisi add-repo name path
Remove repository (edit /etc/pacman.conf) pisi remove-repo name
Task smart
Mandriva, openSUSE
pkgcon
Fedora, Ubuntu, openSUSE, Mandriva
Managing software
Install new software from package repository smart install pkg pkcon install pkg
Install new software from package file smart install pkg pkcon install-file pkg
Update existing software smart install pkg pkcon update pkg
Remove unwanted software smart remove pkg pkcon remove pkg
Updating the system
Update package list smart update pkcon refresh
Update system smart upgrade pkcon upgrade
Searching for packages
Search by package name smart search pkg pkcon search name pkg
Search by pattern smart search pattern pkcon search details pattern
Search by file name smart query file pkcon what-provides file
List installed packages smart query –installed
Configuring access to software repositories
List repositories smart channel –show pkcon repo-list
Add repository smart channel –add name path
Remove repository smart channel –remove name
Task portage
Gentoo
lunar
Lunar
sorcery
Source Mage
Managing software
Install new software from package repository emerge pkg lin pkg cast pkg
Install new software from package file
Update existing software emerge pkg lin pkg cast pkg
Remove unwanted software emerge -aC pkg lrm pkg dispel pkg
Updating the system
Update package list emerge –sync lin moonbase scribe update
Update system emerge -NuDa world lunar update sorcery upgrade
Searching for packages
Search by package name emerge –search pkg lvu search pkg gaze search -name pkg
Search by pattern emerge –search pattern lvu search pattern gaze search pattern
Search by file name gaze from file
List installed packages find /var/db/pkg/ -mindepth 2 -maxdepth 2 -printf “%P\n” lvu installed gaze installed
Configuring access to software repositories
List repositories layman -L scribe index
Add repository layman -a repo scribe add repo
Remove repository layman -d repo scribe remove repo

source: http://distrowatch.com/weekly.php?issue=20081013#feature

30 June, 2008

pidgin music status

Filed under: linux-unix — manac @ 6:44 am

Đua đòi theo đứa bạn do tối ngày thấy nó để status 🙂
http://www.kde-apps.org/content/show.php/AmarokPidgin?content=48025
http://people.cs.uct.ac.za/~smtkee002/AmarokPidgin.html
error dbus -> install python-dbus
pidgin change status “Media”

12 April, 2008

nvidia+widescreen monitor fix xorg.conf

Filed under: linux-unix — manac @ 12:50 am

Section “Monitor”
# HorizSync source: edid, VertRefresh source: edid
Identifier “Monitor0”
VendorName “Unknown”
ModelName “DELL SE178WFP”
HorizSync 30.0 – 83.0
VertRefresh 50.0 – 77.0
Option “DPMS”
EndSection

Section “Device”
Identifier “Videocard0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce 7300 GT”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Videocard0”
Monitor “Monitor0”
DefaultDepth 24
Option “metamodes” “nvidia-auto-select +0+0; 1440×900 +0+0; 1152×864 +0+0; 1024×768 +0+0; 800×600 +0+0; 640×480 +0+0”
SubSection “Display”
Depth 24
Modes “1600×1200” “1280×1024” “1024×768” “800×600” “640×480”
EndSubSection
EndSection

25 January, 2008

FuseSMB

Filed under: linux-unix — manac @ 8:46 am
sudo adduser <your login username> fuse  
mkdir ~/.smb

cp /usr/share/doc/fusesmb/examples/fusesmb.conf.ex ~/.smb/fusesmb.conf

chmod 600 ~/.smb/fusesmb.conf 
nano ~/.smb/fusesmb.conf      https://help.ubuntu.com/community/FuseSmb
Older Posts »

Create a free website or blog at WordPress.com.