| nafanja |
|
Темы:
94
Сообщения:
9252
Участник с: 02 июня 2012
заблокирован
|
<mousebind action="Click" button="C-A-Up">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind action="Click" button="C-A-Down">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind action="Click" button="A-S-Up">
<action name="SendToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind action="Click" button="A-S-Down">
<action name="SendToDesktop">
<to>next</to>
</action>
</mousebind>
</context>
<context name="Titlebar">
<mousebind action="Drag" button="Left">
<action name="Move"/>
</mousebind>
<mousebind action="DoubleClick" button="Left">
<action name="ToggleMaximize"/>
</mousebind>
<mousebind action="Click" button="Up">
<action name="if">
<shaded>no</shaded>
<then>
<action name="Shade"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
<action name="Lower"/>
</then>
</action>
</mousebind>
<mousebind action="Click" button="Down">
<action name="if">
<shaded>yes</shaded>
<then>
<action name="Unshade"/>
<action name="Raise"/>
</then>
</action>
</mousebind>
</context>
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
<mousebind action="Press" button="Left">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind action="Press" button="Middle">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind action="Press" button="Right">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="Top">
<mousebind action="Drag" button="Left">
<action name="Resize">
<edge>top</edge>
</action>
</mousebind>
</context>
<context name="Left">
<mousebind action="Drag" button="Left">
<action name="Resize">
<edge>left</edge>
</action>
</mousebind>
</context>
<context name="Right">
<mousebind action="Drag" button="Left">
<action name="Resize">
<edge>right</edge>
</action>
</mousebind>
</context>
<context name="Bottom">
<mousebind action="Drag" button="Left">
<action name="Resize">
<edge>bottom</edge>
</action>
</mousebind>
<mousebind action="Press" button="Right">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="TRCorner BRCorner TLCorner BLCorner">
<mousebind action="Press" button="Left">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind action="Drag" button="Left">
<action name="Resize"/>
</mousebind>
</context>
<context name="Client">
<mousebind action="Press" button="Left">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind action="Press" button="Middle">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind action="Press" button="Right">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Icon">
<mousebind action="Press" button="Left">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
<mousebind action="Press" button="Right">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="AllDesktops">
<mousebind action="Press" button="Left">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind action="Click" button="Left">
<action name="ToggleOmnipresent"/>
</mousebind>
</context>
<context name="Shade">
<mousebind action="Press" button="Left">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind action="Click" button="Left">
<action name="ToggleShade"/>
</mousebind>
</context>
<context name="Iconify">
<mousebind action="Press" button="Left">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind action="Click" button="Left">
<action name="Iconify"/>
</mousebind>
</context>
<context name="Maximize">
<mousebind action="Press" button="Left">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind action="Press" button="Middle">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind action="Press" button="Right">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind action="Click" button="Left">
<action name="ToggleMaximize"/>
</mousebind>
<mousebind action="Click" button="Middle">
<action name="ToggleMaximize">
<direction>vertical</direction>
</action>
</mousebind>
<mousebind action="Click" button="Right">
<action name="ToggleMaximize">
<direction>horizontal</direction>
</action>
</mousebind>
</context>
<context name="Close">
<mousebind action="Press" button="Left">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind action="Click" button="Left">
<action name="Close"/>
</mousebind>
</context>
<context name="Desktop">
<mousebind action="Click" button="Up">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind action="Click" button="Down">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind action="Click" button="A-Up">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind action="Click" button="A-Down">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind action="Click" button="C-A-Up">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind action="Click" button="C-A-Down">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind action="Press" button="Left">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind action="Press" button="Right">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Root">
<!-- Menus -->
<mousebind action="Press" button="Middle">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</mousebind>
<mousebind action="Press" button="Right">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</mousebind>
</context>
<context name="MoveResize">
<mousebind action="Click" button="Up">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind action="Click" button="Down">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind action="Click" button="A-Up">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind action="Click" button="A-Down">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
</context>
</mouse>
<menu><showIcons>yes</showIcons><!-- You can specify more than one menu file in here and they are all loaded,
just don't make menu ids clash or, well, it'll be kind of pointless --><!-- default menu file (or custom one in $HOME/.config/openbox/) --><file>menu.xml</file><hideDelay>200</hideDelay><!-- if a press-release lasts longer than this setting (in milliseconds), the
menu is hidden again --><middle>no</middle><!-- center submenus vertically about the parent entry --><submenuShowDelay>100</submenuShowDelay><!-- time to delay before showing a submenu after hovering over the parent
entry.
if this is a negative value, then the delay is infinite and the
submenu will not be shown until it is clicked on --><submenuHideDelay>400</submenuHideDelay><!-- time to delay before hiding a submenu when selecting another
entry in parent menu -->
if this is a negative value, then the delay is infinite and the
submenu will not be hidden until a different submenu is opened -->
<applicationIcons>yes</applicationIcons>
<!-- controls if icons appear in the client-list-(combined-)menu -->
<manageDesktops>yes</manageDesktops>
<!-- show the manage desktops section in the client-list-(combined-)menu -->
</menu>
<applications>
<!--
# this is an example with comments through out. use these to make your
# own rules, but without the comments of course.
# you may use one or more of the name/class/role/title/type rules to specify
# windows to match
<application name="the window's _OB_APP_NAME property (see obxprop)"
class="the window's _OB_APP_CLASS property (see obxprop)"
role="the window's _OB_APP_ROLE property (see obxprop)"
title="the window's _OB_APP_TITLE property (see obxprop)"
type="the window's _OB_APP_TYPE property (see obxprob)..
(if unspecified, then it is 'dialog' for child windows)">
# you may set only one of name/class/role/title/type, or you may use more
# than one together to restrict your matches.
# the name, class, role, and title use simple wildcard matching such as those
# used by a shell. you can use * to match any characters and ? to match
# any single character.
# the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
# or desktop
# when multiple rules match a window, they will all be applied, in the
# order that they appear in this list
# each rule element can be left out or set to 'default' to specify to not
# change that attribute of the window
<decor>yes</decor>
# enable or disable window decorations
<shade>no</shade>
# make the window shaded when it appears, or not
<position force="no">
# the position is only used if both an x and y coordinate are provided
# (and not set to 'default')
# when force is "yes", then the window will be placed here even if it
# says you want it placed elsewhere. this is to override buggy
# applications who refuse to behave
<x>center</x>
# a number like 50, or 'center' to center on screen. use a negative number
# to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
# right edge (or bottom).
<y>200</y>
<monitor>1</monitor>
# specifies the monitor in a xinerama setup.
# 1 is the first head, or 'mouse' for wherever the mouse is
</position>
<focus>yes</focus>
# if the window should try be given focus when it appears. if this is set
# to yes it doesn't guarantee the window will be given focus. some
# restrictions may apply, but Openbox will try to
<desktop>1</desktop>
# 1 is the first desktop, 'all' for all desktops
<layer>normal</layer>
# 'above', 'normal', or 'below'
<iconic>no</iconic>
# make the window iconified when it appears, or not
<skip_pager>no</skip_pager>
# asks to not be shown in pagers
<skip_taskbar>no</skip_taskbar>
# asks to not be shown in taskbars. window cycling actions will also
# skip past such windows
<fullscreen>yes</fullscreen>
# make the window in fullscreen mode when it appears
<maximized>true</maximized>
# 'Horizontal', 'Vertical' or boolean (yes/no)
</application>
# end of the example
-->
</applications>
</openbox_config>
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874 |
| nafanja |
|
Темы:
94
Сообщения:
9252
Участник с: 02 июня 2012
заблокирован
|
6.4) Настраиваем конфиг openbox
chroot /mnt/newSystem nano /etc/skel/.config/openbox/rc.xml
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
apply -->
<followMouse>no</followMouse>
<!-- move focus to a window when you move the mouse into it -->
<focusLast>yes</focusLast>
<!-- focus the last used window when changing desktops, instead of the one
under the mouse pointer. when followMouse is enabled -->
<underMouse>no</underMouse>
<!-- move focus under the mouse, even when the mouse is not moving -->
<focusDelay>200</focusDelay>
<!-- when followMouse is enabled, the mouse must be inside the window for
this many milliseconds (1000 = 1 sec) before moving focus to it -->
<raiseOnFocus>no</raiseOnFocus>
<!-- when followMouse is enabled, and a window is given focus by moving the
mouse into it, also raise the window -->
</focus>
<placement>
<policy>Smart</policy>
<!-- 'Smart' or 'UnderMouse' -->
<center>yes</center>
<!-- whether to place windows in the center of the free area found or
the top left corner -->
<monitor>Primary</monitor>
<!-- with Smart placement on a multi-monitor system, try to place new windows
on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
the active window is, 'Primary' - only on the primary monitor -->
<primaryMonitor>1</primaryMonitor>
<!-- The monitor where Openbox should place popup dialogs such as the
focus cycling popup, or the desktop switch popup. It can be an index
from 1, specifying a particular monitor. Or it can be one of the
following: 'Mouse' - where the mouse is, or
'Active' - where the active window is -->
</placement>
<theme>
<name>Orang</name>
<titleLayout>NLIMC</titleLayout>
<!--
available characters are NDSLIMC, each can occur at most once.
N: window icon
L: window label (AKA title).
I: iconify
M: maximize
C: close
S: shade (roll up/down)
D: omnipresent (on all desktops).
-->
<keepBorder>yes</keepBorder>
<animateIconify>yes</animateIconify>
<font place="ActiveWindow">
<name>Sans</name>
<size>10</size>
<!-- font size in points -->
<weight>Bold</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveWindow">
<name>Sans</name>
<size>10</size>
<!-- font size in points -->
<weight>Bold</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuHeader">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuItem">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="ActiveOnScreenDisplay">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveOnScreenDisplay">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
</theme>
<desktops>
<!-- this stuff is only used at startup, pagers allow you to change them
during a session
these are default values to use when other ones are not already set
by other applications, or saved in your session
use obconf if you want to change these without having to log out
and back in -->
<number>4</number>
<firstdesk>1</firstdesk>
<names>
<!-- set names up here if you want to, like this:
<name>desktop 1</name>
<name>desktop 2</name>
-->
</names>
<popupTime>875</popupTime>
<!-- The number of milliseconds to show the popup for when switching
desktops. Set this to 0 to disable the popup. -->
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Nonpixel</popupShow>
<!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
<popupPosition>Center</popupPosition>
<!-- 'Center', 'Top', or 'Fixed' -->
<popupFixedPosition>
<!-- these are used if popupPosition is set to 'Fixed' -->
<x>10</x>
<!-- positive number for distance from left edge, negative number for
distance from right edge, or 'Center' -->
<y>10</y>
<!-- positive number for distance from top edge, negative number for
distance from bottom edge, or 'Center' -->
</popupFixedPosition>
</resize>
<!-- You can reserve a portion of your screen where windows will not cover when
they are maximized, or when they are initially placed.
Many programs reserve space automatically, but you can use this in other
cases. -->
<margins>
<top>0</top>
<bottom>0</bottom>
<left>0</left>
<right>0</right>
</margins>
<dock>
<position>TopLeft</position>
<!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
<floatingX>6</floatingX>
<floatingY>8</floatingY>
<noStrut>yes</noStrut>
<stacking>Above</stacking>
<!-- 'Above', 'Normal', or 'Below' -->
<direction>Horizontal</direction>
<!-- 'Vertical' or 'Horizontal' -->
<autoHide>no</autoHide>
<hideDelay>300</hideDelay>
<!-- in milliseconds (1000 = 1 second) -->
<showDelay>300</showDelay>
<!-- in milliseconds (1000 = 1 second) -->
<moveButton>Middle</moveButton>
<!-- 'Left', 'Middle', 'Right' -->
</dock>
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
<keybind key="C-A-Left">
<action name="GoToDesktop"/>
</keybind>
<keybind key="C-A-Right">
<action name="GoToDesktop"/>
</keybind>
<keybind key="C-A-Up">
<action name="GoToDesktop"/>
</keybind>
<keybind key="C-A-Down">
<action name="GoToDesktop"/>
</keybind>
<keybind key="S-A-Left">
<action name="SendToDesktop">
<desktop>1</desktop>
</action>
</keybind>
<keybind key="S-A-Right">
<action name="SendToDesktop">
<desktop>1</desktop>
</action>
</keybind>
<keybind key="S-A-Up">
<action name="SendToDesktop">
<desktop>1</desktop>
</action>
</keybind>
<keybind key="S-A-Down">
<action name="SendToDesktop">
<desktop>1</desktop>
</action>
</keybind>
<keybind key="A-F1">
<action name="Execute">
<command>konsole</command>
<startupnotify>
<enabled>yes</enabled>
<name>Execute</name>
</startupnotify>
</action>
</keybind>
<keybind key="A-F2">
<action name="Execute">
<command>gmrun</command>
<startupnotify>
<enabled>yes</enabled>
<name>Execute</name>
</startupnotify>
</action>
</keybind>
<keybind key="A-F3">
<action name="Execute">
<command>dolphin</command>
<startupnotify>
<enabled>yes</enabled>
<name>Execute</name>
</startupnotify>
</action>
</keybind>
<keybind key="A-F5">
<action name="Execute">
<command>opera</command>
<startupnotify>
<enabled>yes</enabled>
<name>Execute</name>
</startupnotify>
</action>
</keybind>
<keybind key="C-A-Delete">
<action name="Execute">
<command>oblogout</command>
<startupnotify>
<enabled>yes</enabled>
<name>Execute</name>
</startupnotify>
</action>
</keybind>
<keybind key="W-F1">
<action name="Desktop">
<desktop>1</desktop>
</action>
</keybind>
<keybind key="W-F2">
<action name="Desktop">
<desktop>2</desktop>
</action>
</keybind>
<keybind key="W-F3">
<action name="Desktop">
<desktop>3</desktop>
</action>
</keybind>
<keybind key="W-F4">
<action name="Desktop">
<desktop>4</desktop>
</action>
</keybind>
<keybind key="W-d">
<action name="ToggleShowDesktop"/>
</keybind>
<keybind key="A-F4">
<action name="Close"/>
</keybind>
<keybind key="A-Escape">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</keybind>
<keybind key="A-space">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</keybind>
<keybind key="A-Tab">
<action name="NextWindow"/>
</keybind>
<keybind key="A-S-Tab">
<action name="PreviousWindow"/>
</keybind>
<keybind key="C-A-Tab">
<action name="NextWindow">
<panels>yes</panels>
<desktop>yes</desktop>
</action>
</keybind>
<keybind key="W-S-Right">
<action name="DirectionalCycleWindows"/>
</keybind>
<keybind key="W-S-Left">
<action name="DirectionalCycleWindows"/>
</keybind>
<keybind key="W-S-Up">
<action name="DirectionalCycleWindows"/>
</keybind>
<keybind key="W-S-Down">
<action name="DirectionalCycleWindows"/>
</keybind>
<keybind key="W-e">
<action name="Execute">
<command>kfmclient openProfile filemanagement</command>
<startupnotify>
<enabled>yes</enabled>
<name>Konqueror</name>
</startupnotify>
</action>
</keybind>
</keyboard>
<mouse>
<dragThreshold>1</dragThreshold>
<!-- number of pixels the mouse must move before a drag begins -->
<doubleClickTime>200</doubleClickTime>
<!-- in milliseconds (1000 = 1 second) -->
<screenEdgeWarpTime>400</screenEdgeWarpTime>
<!-- Time before changing desktops when the pointer touches the edge of the
screen while moving a window, in milliseconds (1000 = 1 second).
Set this to 0 to disable warping -->
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
<!-- Set this to TRUE to move the mouse pointer across the desktop when
switching due to hitting the edge of the screen -->
<context name="Frame">
<mousebind action="Press" button="A-Left">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind action="Click" button="A-Left">
<action name="Unshade"/>
</mousebind>
<mousebind action="Drag" button="A-Left">
<action name="Move"/>
</mousebind>
<mousebind action="Press" button="A-Right">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind action="Drag" button="A-Right">
<action name="Resize"/>
</mousebind>
<mousebind action="Press" button="A-Middle">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind action="Click" button="A-Up">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind action="Click" button="A-Down">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874 |
| nafanja |
|
Темы:
94
Сообщения:
9252
Участник с: 02 июня 2012
заблокирован
|
файл 6 openbox
6) УСТАНАВЛИВАЕМ OPENBOX
6.1) Устанавливаем нужные пакеты для openbox
pacman -S -r /mnt/newSystem nitrogen tint2 volumeicon numlockx conky archlinux-wallpaper gmrun
pacman -S -r /mnt/newSystem obconf obkey-git oblogout obmenu openbox openbox-menu openbox-themes
yaourt -S -r /mnt/newSystem xcompmgr-dana tintwizard
6.2) Настраиваем автозапуск при старте openbox
chroot /mnt/newSystem mkdir -p /etc/skel/.config/openbox/
chroot /mnt/newSystem nano /etc/skel/.config/openbox/autostart.sh
#!/bin/bash
# /etc/skel/.config/openbox/autostart.sh
nitrogen --restore &
sleep 1
xcompmgr -CcFf &
sleep 1
tint2 &
volumeicon &
numlockx &
sleep 3 && conky -c ~/.config/conky/conkyrc1 -q &
sleep 4 && conky -c ~/.config/conky/conkyrc2 -q &
sleep 5 && conky -c ~/.config/conky/conkyrc3 -q &
sleep 6 && conky -c ~/.config/conky/conkyrc4 -q &
exit 0
chroot /mnt/newSystem chmod +x /etc/skel/.config/openbox/autostart.sh
6.3) Настраиваем меню openbox
chroot /mnt/newSystem nano /etc/skel/.config/openbox/menu.xml
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Openbox 3.5">
<showIcons>yes</showIcons>
<item label="Install">
<action name="Execute">
<execute>
urxvt -e sudo install
</execute>
</action>
</item>
<separator/>
<menu execute="openbox-menu /etc/xdg/menus/lxde-applications.menu" id="desktop-app-lxde" label="Applications-lxde"/>
<menu execute="openbox-menu /etc/xdg/menus/kde-applications.menu" id="desktop-app-kde" label="Applications-kde"/>
<menu execute="bash ~/.config/openbox/pipemenus/obrecent.sh ~/" id="recent" label="Recent Files"/>
<menu id="Preferences" label="Preferences">
<menu execute="bash ~/.config/openbox/pipemenus/xcompmgr.sh" id="xcompmgr" label="Eye Candy"/>
<menu id="root-menu-525118" label="Openbox Config">
<item label="Edit autostart">
<action name="Execute">
<execute>
kate ~/.config/openbox/autostart.sh
</execute>
</action>
</item>
<item label="GUI Menu Editor">
<action name="Execute">
<execute>
obmenu
</execute>
</action>
</item>
<item label="GUI Config Tool">
<action name="Execute">
<execute>
obconf
</execute>
</action>
</item>
<item label="Key Editor">
<action name="Execute">
<execute>
obkey
</execute>
</action>
</item>
<item label="Reconfigure">
<action name="Reconfigure"/>
</item>
<item label="Restart">
<action name="Restart"/>
</item>
</menu>
<item label="Tint Wizard">
<action name="Execute">
<execute>
tintwizard
</execute>
</action>
</item>
<item label="Edit /etc/rc.conf">
<action name="Execute">
<execute>
kdesu kate /etc/rc.conf
</execute>
</action>
</item>
<item label="Wallpaper">
<action name="Execute">
<execute>
nitrogen
</execute>
</action>
</item>
</menu>
<separator/>
<item label="Exit">
<action name="Execute">
<execute>
oblogout
</execute>
</action>
</item>
</menu>
</openbox_menu>
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874 |
| nafanja |
|
Темы:
94
Сообщения:
9252
Участник с: 02 июня 2012
заблокирован
|
файл 6 kde
6) УСТАНАВЛИВАЕМ KDE
Заметка!!!
"?" - можно поставить, а можно и нет
"!" - лучше не ставить
">" - обязательно поставить
6.1) Устанавливаем kde оболочку и регулятор громкости
pacman -S -r /mnt/newSystem kdebase-plasma phonon-gstreamer kde-wallpapers kdemultimedia-kmix
6.2) Устанавливаем kdepim
Заметка!!!
Можно не устанавливать, а воспользоваться похожими но не использующими akonadi
Хотя в данном списке есть и достойные представители, но akonadi
использует много памяти даже когда этими прогами не пользуются!!!
[extra]
? :: 15 объектов в группе kdepim:
1) kdepim-akonadiconsole
2) kdepim-akregator
3) kdepim-blogilo
4) kdepim-console
5) kdepim-kaddressbook
6) kdepim-kalarm
7) kdepim-kjots
8) kdepim-kleopatra
9) kdepim-kmail
10) kdepim-knode
11) kdepim-knotes
12) kdepim-kontact
13) kdepim-korganizer
14) kdepim-kresources
15) kdepim-ktimetracker
pacman -S -r /mnt/newSystem kdepim
6.3) Устанавливаем пакеты для подключения сети из KDE
Заметка!!!
networkmanager [extra] Network Management daemon
modemmanager [extra] Mobile broadband modem management service
dhclient [extra] dhclient is standalone client from the dhcp package
dnsmasq [extra] Lightweight, easy to configure DNS forwarder and DHCP server
bluez [extra] Libraries and tools for the Bluetooth protocol stack
kdeplasma-applets-networkmanagement [extra] KDE control panel and widget network connections
networkmanager-openconnect [extra] NetworkManager VPN integration for openconnect
networkmanager-openvpn [extra] NetworkManager VPN plugin for OpenVPN
networkmanager-pptp [extra] NetworkManager VPN plugin for pptp
networkmanager-vpnc [extra] NetworkManager VPN plugin for vpnc
openresolv [community] resolv.conf management framework (resolvconf
pacman -S -r /mnt/newSystem networkmanager modemmanager dhclient dnsmasq bluez
pacman -S -r /mnt/newSystem kdeplasma-applets-networkmanagement
pacman -S -r /mnt/newSystem networkmanager-openconnect networkmanager-openvpn
pacman -S -r /mnt/newSystem networkmanager-pptp networkmanager-vpnc openresolv
Заметка!!!
включаем networkmanager, редактируем /etc/rc.conf
chroot /mnt/newSystem nano /etc/rc.conf
DAEMONS=(${DAEMONS[*]} !network !ppp !net-profiles networkmanager !iptables)
6.4) Устанавливаем kdenetwork
[extra]
?:: 7 объектов в группе kdenetwork:
1) kdenetwork-filesharing
2) kdenetwork-kdnssd
!! 3) kdenetwork-kget
!! 4) kdenetwork-kopete
5) kdenetwork-kppp
6) kdenetwork-krdc
7) kdenetwork-krfb
pacman -S -r /mnt/newSystem kdenetwork-filesharing kdenetwork-kdnssd kdenetwork-kppp
pacman -S -r /mnt/newSystem kdenetwork-krdc kdenetwork-krfb
6.5) Настройка авто расшифровки папки пользователя при графическом входе
Заметка!!!
дописать эти строки в /etc/pam.d/kde что бы при графическом входе автоматически
расшифровывалась домашняя папка
chroot /mnt/newSystem nano /etc/pam.d/kde
auth optional pam_ecryptfs.so unwrap
password optional pam_ecryptfs.so
session optional pam_ecryptfs.so unwrap
6.6) Настраиваем запуск графической оболочки для входа в систему
chroot /mnt/newSystem nano /etc/inittab
# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
6.7) Настраиваем Grub что бы по умолчанию входить в графическом режиме
chroot /mnt/newSystem nano /boot/grub/menu.lst
# general configuration:
timeout 5
#default 0
default 2
color light-blue/black light-cyan/blue
Заметка!!!
Для уменьшения нагрузки и потребляемой памяти нужно отключить nepomuk и aconadi
nepomuk отключается в настройках, искать на панели снизу в правом углу выбрать
Desktop Search File...
aconadi отключается в ~/.config/akonadi/akonadiserverrc
ServerPath=/usr/bin/mysqld
#StartServer=true
StartServer=false
но с ним отключаются и другие программы из группы kdepim!!!
Переходим к файлу "7"
Arch AnTAVR
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874 |
| nafanja |
|
Темы:
94
Сообщения:
9252
Участник с: 02 июня 2012
заблокирован
|
файл 5
5) УСТАНАВЛИВАЕМ ОЧЕНЬ НУЖНЫЕ ПРОГРАММЫ
5.1) Устанавливаем файловый менеджер и консоль
pacman -S -r /mnt/newSystem kdebase-dolphin kdebase-kdialog kdebase-konsole phonon-gstreamer
5.2) Устанавливаем некоторые административные программы
pacman -S -r /mnt/newSystem kdeadmin-kcron kdeadmin-ksystemlog kdeadmin-kuser kdebase-kdepasswd
5.3) Устанавливаем пакеты из группы kdesdk
[extra]
:: 20 объектов в группе kdesdk:
? 1) kdesdk-cervisia
> 2) kdesdk-dolphin-plugins
3) kdesdk-kapptemplate
> 4) kdesdk-kate
5) kdesdk-kcachegrind
6) kdesdk-kdeaccounts-plugin
7) kdesdk-kdepalettes
8) kdesdk-kioslave
9) kdesdk-kmtrace
> 10) kdesdk-kompare
11) kdesdk-kpartloader
12) kdesdk-kprofilemethod
13) kdesdk-kstartperf
14) kdesdk-kuiviewer
15) kdesdk-lokalize
16) kdesdk-okteta
17) kdesdk-poxml
18) kdesdk-scripts
19) kdesdk-strigi-analyzer
20) kdesdk-umbrello
[extra]
1) jre7-openjdk
pacman -S -r /mnt/newSystem kdesdk-dolphin-plugins kdesdk-kate kdesdk-kompare
Заметка!!!
Можно не устанавливать так как пакеты для разработки!!!
pacman -S -r /mnt/newSystem kdesdk jre7-openjdk
5.4) Устанавливаем пакеты из группы kdeutils
[extra]
:: 14 объектов в группе kdeutils:
1) kdeutils-ark
! 2) kdeutils-filelight
3) kdeutils-kcalc
! 4) kdeutils-kcharselect
! 5) kdeutils-kdf
! 6) kdeutils-kfloppy
7) kdeutils-kgpg
! 8) kdeutils-kremotecontrol
9) kdeutils-ksecrets
10) kdeutils-ktimer
11) kdeutils-kwallet
! 12) kdeutils-printer-applet
! 13) kdeutils-superkaramba
! 14) kdeutils-sweeper
pacman -S -r /mnt/newSystem kdeutils-ark kdeutils-kcalc kdeutils-kgpg kdeutils-ksecrets
pacman -S -r /mnt/newSystem kdeutils-ktimer kdeutils-kwallet
5.5) Устанавливаем пакеты из группы kdewebdev
Заметка!!!
Для веб разработки, можно не ставить
[extra]
?:: 4 объектов в группе kdewebdev:
1) kdewebdev-kfilereplace
2) kdewebdev-kimagemapeditor
3) kdewebdev-klinkstatus
4) kdewebdev-kommander
pacman -S -r /mnt/newSystem kdewebdev
5.6) Русификация KDE
pacman -S -r /mnt/newSystem kde-l10n-ru
5.7) Устанавливаем просмотр графически файлов, скриншоты, просмотр разных документов, пасьянс
pacman -S -r /mnt/newSystem kdegraphics-okular kdegraphics-ksnapshot kdegraphics-gwenview kdegames-kpatience
5.8) Устанавливаем дополнения для dolphin
pacman -S -r /mnt/newSystem kdemultimedia-ffmpegthumbs kdemultimedia-mplayerthumbs
yaourt -S -r /mnt/newSystem rootactions-servicemenu-kde4
5.9) Устанавливаем хорошей плеер для мультимедиа, тв-тюнер, радио-тюнер,
конвертер видео аудио и запись видео с рабочего стола
Заметка!!!
diffuse - очень нужная прога для сравнения двух файлов, для сравнения конфигов!
pacman -S -r /mnt/newSystem smplayer tvtime kradio avidemux-qt mkvtoolnix-gtk xvidcap diffuse
5.10) Устанавливаем утилиты разбития винтов на разделы,
запись CD дисков, 7zip упаковщик, информация о системе, GUI git
pacman -S -r /mnt/newSystem gparted k3b p7zip hardinfo qgit
Заметка!!!
дополнения для k3b
pacman -S -r /mnt/newSystem dvd+rw-tools vcdimager transcode emovix
5.11) Устанавливаем проверку орфографии
pacman -S -r /mnt/newSystem aspell-ru aspell-uk aspell-en
5.12) Сохраняем в git настроенные конфиги в /etc/
chroot /mnt/newSystem
cd /etc/ && git add -A && git commit -m $(date +%Y-%m-%d-%H%M%S)
exit
Переходим к файлу "6 kde"
и/или
Переходим к файлу "6 openbox"
Arch AnTAVR
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874 |
| nafanja |
|
Темы:
94
Сообщения:
9252
Участник с: 02 июня 2012
заблокирован
|
файл 4
4) СТАВИМ ГРАФИЧЕСКИЙ СЕРВЕР
4.1) Устанавливаем xorg
Заметка!!!
xorg - X сервер для графический оболочек
ttf-dejavu ttf-liberation - шрифты для xorg
Заметка!!!
xf86-input-acecad [extra]
xf86-input-aiptek
xf86-input-evdev
xf86-input-joystick
xf86-input-keyboard
xf86-input-mouse
xf86-input-synaptics
xf86-input-vmmouse
xf86-input-void
xf86-video-apm
xf86-video-ark
xf86-video-ast
xf86-video-ati
xf86-video-chips
xf86-video-cirrus
xf86-video-dummy
xf86-video-fbdev
xf86-video-glint
xf86-video-i128
xf86-video-i740
xf86-video-intel
xf86-video-mach64
xf86-video-mga
xf86-video-neomagic
xf86-video-nv
xf86-video-r128
xf86-video-rendition
xf86-video-s3
xf86-video-s3virge
xf86-video-savage
xf86-video-siliconmotion
xf86-video-sis
xf86-video-sisusb
xf86-video-tdfx
xf86-video-trident
xf86-video-tseng
xf86-video-v4l
xf86-video-vesa
xf86-video-vmware
xf86-video-voodoo
xorg-bdftopcf
xorg-docs
xorg-font-util
xorg-fonts-100dpi
xorg-fonts-75dpi
xorg-fonts-encodings
xorg-iceauth
xorg-luit
xorg-mkfontdir
xorg-mkfontscale
xorg-server
xorg-sessreg
xorg-setxkbmap
xorg-smproxy
xorg-x11perf
xorg-xauth
xorg-xbacklight
xorg-xcmsdb
xorg-xcursorgen
xorg-xdpyinfo
xorg-xdriinfo
xorg-xev
xorg-xgamma
xorg-xhost
xorg-xinput
xorg-xkbcomp
xorg-xkbevd
xorg-xkbutils
xorg-xkill
xorg-xlsatoms
xorg-xlsclients
xorg-xmodmap
xorg-xpr
xorg-xprop
xorg-xrandr
xorg-xrdb
xorg-xrefresh
xorg-xset
xorg-xsetroot
xorg-xvinfo
xorg-xwd
xorg-xwininfo
xorg-xwud
pacman -S -r /mnt/newSystem xorg xorg-xinit ttf-dejavu ttf-liberation
4.2) Настраиваем переключение клавиатуры
Заметка!!!
Настраиваем переключение клавиатуры и индикацию rus/lat
на клавиатурном индикаторе Scroll Lock для Xorg
chroot /mnt/newSystem nano /etc/X11/xorg.conf.d/01-keyboard-layout.conf
Section "InputClass"
Identifier "keyboard-layout"
Driver "evdev"
MatchIsKeyboard "yes"
Option "XkbLayout" "us, ru"
Option "XkbVariant" ","
Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll"
EndSection
4.3) Настраиваем разрешение монитора для Xorg
chroot /mnt/newSystem nano /etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
EndSection
Section "Device"
Identifier "Device0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
Переходим к файлу "5"
Arch AnTAVR
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874 |
| nafanja |
|
Темы:
94
Сообщения:
9252
Участник с: 02 июня 2012
заблокирован
|
файл 3 hdd
3) НАСТРАИВАЕМ GRUB
3.1) Устанавливаем GRUB в загрузочный раздел
chroot /mnt/newSystem cp -a /usr/lib/grub/i386-pc/* /boot/grub
chroot /mnt/newSystem
grub
Заметка!!!
или если /boot не отдельным разделом
find /boot/grub/stage1
find /grub/stage1
Заметка!!!
покажет например (hd2,1) у вас может отличаться, дальше по тексту изменить на нужное!!!
если выдаст ошибку то ничего страшного
можно самим просчитать нужное
sda = hd0, sdb = hd1, sdc = hd2
sda2 = hd0,1, sdb3 = hd1,2, sdc1 = hd2,0
в root (hd2,0) указывается радел boot!
root (hd1,0)
setup (hd1)
quit
exit
Заметка!!!
Возможны не критические ошибки, игнорируем!
3.2) Настраиваем GRUB
Заметка!!!
ipv6.disable_ipv6=1 выключаем использование ipv6 если нужно
если /boot не отдельным разделом то /boot/initramfs-linux.img /boot/vmlinuz-linux
посмотреть UUID команда blkid
UUID=ed0bdd05-679b-4c23-b795-1f4c73d46af6 - UUID раздела, у вас свое, дальше по тексту изменить на нужное!!!
chroot /mnt/newSystem nano /boot/grub/menu.lst
# (0) Arch Linux
#title Arch Linux [/boot/vmlinuz-linux]
#root (hd0,0)
#kernel /vmlinuz-linux root=/dev/sda3 ro
#initrd /initramfs-linux.img
# (1) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1
# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz-linux root=UUID=2127f714-35ca-4929-86f3-ac935bc794a1 ro ipv6.disable_ipv6=1 nomodeset vga=792 video=1024x768 quiet console=tty1 fastboot splash=verbose
initrd /initramfs-linux.img
# (1) Arch Linux
title Arch Linux fallback
root (hd0,0)
kernel /vmlinuz-linux root=UUID=2127f714-35ca-4929-86f3-ac935bc794a1 ro
initrd /initramfs-linux-fallback.img
# (2) Arch Linux
title Arch Linux + KDE
root (hd0,0)
kernel /vmlinuz-linux root=UUID=2127f714-35ca-4929-86f3-ac935bc794a1 ro ipv6.disable_ipv6=1 nomodeset vga=792 video=1024x768 quiet console=tty1 fastboot splash=verbose 5
initrd /initramfs-linux.img
Заметка!!!
Для загрузки Windows
# (3) Windows
#title Windows
#map (hd0) (hd1)
#map (hd1) (hd0)
#rootnoverify (hd0,0)
#makeactive
#chainloader +1
3.3) Добавляем в /etc/fstab запись о корневой фс
chroot /mnt/newSystem nano /etc/fstab
Заметка!!!
монтируем с опциями
relatime - устанавливать время последнего доступа к файлам и папкам
только при изменении
для винта SSD использовать опцию монтирования discard для ext4 или ssd для btrfs
tmpfs /var/tmp tmpfs defaults 0 0
UUID=76c1a477-2f8f-4b21-b127-dd92483e6dfc / ext4 defaults,relatime 0 1
UUID=76c1a477-2f8f-4b21-b127-dd9248dfgbsd /boot ext4 defaults,relatime 0 1
UUID=76csdfg7-2f8f-4b21-b127-dd9248dfg234 /home ext4 defaults,relatime 0 1
3.4) Устанавливаем пользователю root пароль
Заметка!!!
используем сложный пароль минимум 8 символов, используем символы в верхнем
и нижнем регистре, числа и знаки!!!
chroot /mnt/newSystem passwd
3.5) Сохраняем в git настроенные конфиги в /etc/
chroot /mnt/newSystem
cd /etc/ && git add -A && git commit -m $(date +%Y-%m-%d-%H%M%S)
exit
Если графические программы не требуются то заканчиваем установку и переходим к файлу 9 hdd
Переходим к файлу "4"
Arch AnTAVR
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874 |
| nafanja |
|
Темы:
94
Сообщения:
9252
Участник с: 02 июня 2012
заблокирован
|
файл 3 flash
3) НАСТРАИВАЕМ GRUB
3.1) Устанавливаем GRUB в загрузочный раздел
chroot /mnt/newSystem cp -a /usr/lib/grub/i386-pc/* /boot/grub
chroot /mnt/newSystem
grub
Заметка!!!
или если /boot не отдельным разделом
find /boot/grub/stage1
find /grub/stage1
Заметка!!!
покажет например (hd2,1) у вас может отличаться, дальше по тексту изменить на нужное!!!
если выдаст ошибку то ничего страшного
можно самим просчитать нужное
sda = hd0, sdb = hd1, sdc = hd2
sda2 = hd0,1, sdb3 = hd1,2, sdc1 = hd2,0
в root (hd2,0) указывается радел boot!
root (hd1,0)
setup (hd1)
quit
exit
Заметка!!!
Возможны не критические ошибки, игнорируем!
3.2) Настраиваем GRUB
Заметка!!!
ipv6.disable_ipv6=1 выключаем использование ipv6 если нужно
если /boot не отдельным разделом то /boot/initramfs-linux.img /boot/vmlinuz-linux
посмотреть UUID команда blkid
UUID=ed0bdd05-679b-4c23-b795-1f4c73d46af6 - UUID раздела, у вас свое, дальше по тексту изменить на нужное!!!
chroot /mnt/newSystem nano /boot/grub/menu.lst
# (0) Arch Linux
#title Arch Linux [/boot/vmlinuz-linux]
#root (hd0,0)
#kernel /vmlinuz-linux root=/dev/sda3 ro
#initrd /initramfs-linux.img
# (1) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1
# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz-linux root=UUID=0aff1ffa-6b1f-4653-a538-d5240a683626 ro ipv6.disable_ipv6=1 nomodeset vga=792 video=1024x768 quiet console=tty1 fastboot splash=verbose elevator=noop
initrd /initramfs-linux-fallback.img
#initrd /initramfs-linux.img
# (1) Arch Linux
title Arch Linux fallback
root (hd0,0)
kernel /vmlinuz-linux root=UUID=0aff1ffa-6b1f-4653-a538-d5240a683626 ro
initrd /initramfs-linux-fallback.img
# (2) Arch Linux
title Arch Linux + KDE
root (hd0,0)
kernel /vmlinuz-linux root=UUID=0aff1ffa-6b1f-4653-a538-d5240a683626 ro ipv6.disable_ipv6=1 nomodeset vga=792 video=1024x768 quiet console=tty1 fastboot splash=verbose elevator=noop 5
initrd /initramfs-linux-fallback.img
#initrd /initramfs-linux.img
3.3) Добавляем в /etc/fstab запись о фс
chroot /mnt/newSystem nano /etc/fstab
Заметка!!!
монтируем с опциями
noatime,nodiratime - не устанавливать время последнего доступа к файлам и папкам
discard - правильно работать с SSD
tmpfs /var/tmp tmpfs defaults 0 0
tmpfs /var/cache/pacman/pkg tmpfs defaults 0 0
tmpfs /var/log tmpfs defaults 0 0
UUID=0aff1ffa-6b1f-4653-a538-d5240a683626 / ext4 defaults,noatime,nodiratime,discard 0 1
UUID=FEB9-7229 /boot vfat defaults,noatime,nodiratime 0 1
#/usbUsr.sfs /usr squashfs loop,ro 0 0
3.4) Устанавливаем пользователю root пароль
Заметка!!!
используем простой пароль, так как это временная live система
chroot /mnt/newSystem passwd
3.5) Сохраняем в git настроенные конфиги в /etc/
chroot /mnt/newSystem
cd /etc/ && git add -A && git commit -m $(date +%Y-%m-%d-%H%M%S)
exit
Если графические программы не требуются то заканчиваем установку и переходим к файлу 9 flash
Переходим к файлу "4"
Arch AnTAVR
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874 |
| nafanja |
|
Темы:
94
Сообщения:
9252
Участник с: 02 июня 2012
заблокирован
|
2.13) Настраиваем /etc/resolv.conf вписываем DNS сервер
Заметка!!!
Используйте свой выданный провайдером или общественные предоставляемые google
8.8.8.8 или 8.8.4.4
chroot /mnt/newSystem nano /etc/resolv.conf
#nameserver <ip>
nameserver 8.8.8.8
nameserver 8.8.4.4
# End of file
2.14) Корректируем /etc/mkinitcpio.conf и генерируем новый образ ядра
Заметка!!!
добавляем в хук для поддержки загрузки с usb перед filesystems
для винта это тоже не повредит
Заметка!!!
squashfs loop - для сжатой флешки, для винта можно не использовать
chroot /mnt/newSystem nano /etc/mkinitcpio.conf
MODULES="squashfs loop"
#HOOKS="base udev autodetect pata scsi sata filesystems usbinput fsck"
HOOKS="base udev autodetect pata scsi sata usb filesystems usbinput fsck"
Заметка!!!
Включаем компрессию xz - самый лучший компрессор, очень сильно жмет,
но потребляет много памяти и процессорного времени при сжатии
#COMPRESSION="xz"
COMPRESSION="xz"
Заметка!!!
Настраиваем xz на максимальное сжатие
#COMPRESSION_OPTIONS=""
COMPRESSION_OPTIONS="-9eT 2"
chroot /mnt/newSystem mkinitcpio -p linux
2.15) Разрешаем использование sudo пользователям в групе wheel
chroot /mnt/newSystem
EDITOR=nano visudo
## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
exit
2.16) Настраиваем зеркала pacman
Заметка!!!
копируем на самый верх списка украинские сервера и раскомментируем
chroot /mnt/newSystem nano /etc/pacman.d/mirrorlist
## Ukraine
Server = ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/$arch
Server = ftp://mirrors.mithril.org.ua/linux/archlinux/$repo/os/$arch
Server = http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/$arch
Server = http://mirrors.mithril.org.ua/linux/archlinux/$repo/os/$arch
2.17) Добавляем репозиторий archlinuxfr
Заметка!!!
Добавляем репозиторий archlinuxfr и раскомментируем
все репозитории кроме всех testing
chroot /mnt/newSystem nano /etc/pacman.conf
[archlinuxfr]
SigLevel = PackageRequired
Server = http://repo.archlinux.fr/$arch
2.18) Обновляем базу pacman
Заметка!!!
Обновляем базу pacman, устанавливаем цветной pacman и yaourt - тот же pacman
но с прозрачной работой с AUR
Заметка!!!
upx [community] Ultimate executable compressor
сжатие исполняемых файлов
aurvote [archlinuxfr] Tool to vote for favorite AUR packages
Пакет для голосования для понравившиеся программы из AUR,
и от количество голосов зависит попадет ли ваш
понравившийся пакев в [community]
customizepkg [archlinuxfr] A tool to modify automatically PKGBUILD
Для автоматического изменения PKGBUILD перед компиляцией
pacman-color [archlinuxfr] A color patched command-line frontend for libalpm
цветной pacman
chroot /mnt/newSystem pacman -Syy
chroot /mnt/newSystem pacman-key --init
chroot /mnt/newSystem pacman-key --populate archlinux
chroot /mnt/newSystem pacman -S pacman-color yaourt upx customizepkg aurvote
2.19) Настраиваем сборку и сохранение откомпилированных пакетов пользователя и AUR
Заметка!!!
Создаем папку для сохранения откомпилированных пакетов, и даем доступ всем на чтение и запись
chroot /mnt/newSystem mkdir /home/packages
chroot /mnt/newSystem chmod -R 777 /home/packages
chroot /mnt/newSystem nano /etc/makepkg.conf
#-- upx: Compress binary executable files using UPX
#
#OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
OPTIONS=(strip docs libtool emptydirs zipman purge upx)
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
PKGDEST=/home/packages
2.20) Соответственно настраиваем yaourt
chroot /mnt/newSystem nano /etc/yaourtrc
# Build
#EXPORT=0 # Export to 1: EXPORTDIR or PKGDEST
EXPORT=1 # Export to 1: EXPORTDIR or PKGDEST
# Command
#PACMAN="pacman"
PACMAN="pacman-color"
2.21) Настройка авто расшифровки папки пользователя при входе в консоле
Заметка!!!
При входе пользователя через консоль будет прозрачно расшифровываться его домашняя папка
Для шифрования загружаем модуль
modprobe ecryptfs
выполняем
ecryptfs-migrate-home -u yourname
и дальше действуем по инструкции которая будет выведена на экран!!!
chroot /mnt/newSystem nano /etc/pam.d/login
auth optional pam_ecryptfs.so unwrap
password optional pam_ecryptfs.so
session optional pam_ecryptfs.so unwrap
2.22) Шифрованный swap файл
Заметка!!!
создаем исполняемый скрипт который создаст и будет активировать swap при загрузке системы
chroot /mnt/newSystem nano /usr/local/sbin/swapfile
#!/bin/bash
SWPFILE='/swap001.swp' # Путь к файлу подкачки
SWPDEV='swap001' # Уникальное имя в /dev/mapper
LOOPD='/dev/loop6' # loop-устройство
SWPSIZE='bs=8M count=32' # размер файла подкачки 256MB
start() {
echo '----- Start CryptoSWAP -----'
if [ ! -f $SWPFILE ]; then
echo '----- Create CryptoSWAP -----'
dd if=/dev/urandom of=$SWPFILE $SWPSIZE
fi
losetup $LOOPD $SWPFILE
cryptsetup --key-file=/dev/urandom --key-size 256 --cipher blowfish-cbc-essiv:sha256 create $SWPDEV $LOOPD
mkswap -f /dev/mapper/$SWPDEV
swapon /dev/mapper/$SWPDEV
}
stop() {
echo '----- Stop CryptoSWAP -----'
swapoff /dev/mapper/$SWPDEV
echo ''
cryptsetup remove $SWPDEV
# sleep 2
losetup -d $LOOPD
}
del() {
stop
echo '----- Delete CryptoSWAP -----'
rm /swap001.swp
}
list() {
swapon -s
}
echo '===== CryptoSWAP Script for ['$SWPFILE'] --> ['$LOOPD'] --> ['$SWPDEV'] ====='
case "$1" in
start)
start;;
stop)
stop;;
del)
del;;
list)
list;;
--help)
echo 'Use with start, stop, del, list options';;
*)
SWPLINE=`swapon -s | grep /dev/mapper/$SWPDEV`
if [ -n "$SWPLINE" ]; then
stop
else
start
fi
esac
exit 0
Заметка!!!
делаем исполняемым
chroot /mnt/newSystem chmod +x /usr/local/sbin/swapfile
Заметка!!!
добавить в /etc/rc.conf в секцию модулей aes loop
хотя мы уже добавили это выше так что можно пропустить
chroot /mnt/newSystem nano /etc/rc.conf
MODULES=(aes loop)
Заметка!!!
для флешки swap незачем, так что хоть и добавляем в файлы эти записи
но за комментируем их!
для винта нужно раскомментировать!!!
Заметка!!!
добавить в /etc/rc.local
chroot /mnt/newSystem nano /etc/rc.local
#swapfile start
Заметка!!!
добавить в /etc/rc.local.shutdown
chroot /mnt/newSystem nano /etc/rc.local.shutdown
#swapfile stop
2.23) Устанавливаем пакеты для проверки и восстановления файловых систем
Заметка!!!
gpart [extra] Partition table rescue/guessing tool
testdisk [extra] Checks and undeletes partitions + PhotoRec, signature based recovery tool
mtools [extra] A collection of utilities to access MS-DOS disks
ddrescue [extra] GNU data recovery tool
pacman -S -r /mnt/newSystem gpart testdisk mtools ddrescue
2.24) Проводим тюнинг системы
Заметка!!!
отключаем ненужные консоли # 4 5 6
и в первой консоле отключаем стирание сообщений при загрузке опция --noclear
chroot /mnt/newSystem nano /etc/inittab
# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux --noclear
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
#c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
#c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
#c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
2.25) Устраняем глюк при выходе из ждущего режима дописываем в /etc/rc.local
Заметка!!!
Может не потребоваться
chroot /mnt/newSystem nano /etc/rc.local
echo USB0 > /proc/acpi/wakeup
echo '1' > /proc/sys/kernel/panic
Заметка!!!
Включаем Nul Lock во всех консолях
for tty in /dev/tty?; do /usr/bin/setleds -D +num < "$tty"; done
2.26) Устанавливаем русские страницы man помощь и обновляем базы помощи
pacman -S -r /mnt/newSystem man-pages-ru
chroot /mnt/newSystem mandb
2.27) Добавить в /etc/skel/.bashrc для некоторой коррекции в консоле
Заметка!!!
/etc/skel/ - папка для настроек по умолчанию для создаваемых пользователей
chroot /mnt/newSystem nano /etc/skel/.bashrc
Заметка!!!
создаем алиасы
alias pacman='pacman-color'
alias xterm='konsole'
Заметка!!!
красим командную строку
ROOT_UID=0
PS1='31'
if [ "$UID" -ne "$ROOT_UID" ]
then
PS1='32'
fi
export PS1='\[\e[1;'$PS1'm\][\[email protected]\h \W]\$\[\e[0m\]\[\e[1;37m\] '
Заметка!!!
export LESS="-e -r -X"
export EDITOR="nano"
export XZ_OPT="-9eT 2"
Переходим к файлу "3 flash"
или
Переходим к файлу "3 hdd"
Arch AnTAVR
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874 |
| nafanja |
|
Темы:
94
Сообщения:
9252
Участник с: 02 июня 2012
заблокирован
|
файл 2
2) УСТАНАВЛИВАЕМ БАЗОВУЮ СИСТЕМУ
2.1) Создаем папку для pacman и обновляем базу данных пакетов
Заметка!!!
В командах pacman используется параметр "-r /mnt/newSystem" для указания корневой
так как производим установку из рабочей системы, при обычной установке указывать не нужно!!!
"chroot /mnt/newSystem" и "exit" команду так же указывать не нужно при обычной установке!!!
mkdir -p /mnt/newSystem/var/lib/pacman
pacman -Syy -r /mnt/newSystem
2.2) Устанавливаем базовую систему
Заметка!!!
base [core]
Заметка!!!
bash [core] The GNU Bourne Again shell
bzip2 [core] A high-quality data compression program
coreutils [core] The basic file, shell and text manipulation utilities of the GNU operating system
cronie [core] Daemon that runs specified programs at scheduled times and related tools
cryptsetup [core] Userspace setup tool for transparent encryption of block devices using dm-crypt
device-mapper [core] Device mapper userspace library and tools
dhcpcd [core] RFC2131 compliant DHCP client daemon
diffutils [core] Utility programs used for creating patch files
e2fsprogs [core] Ext2/3/4 filesystem utilities
file [core] File type identification utility
filesystem [core] Base filesystem
findutils [core] GNU utilities to locate files
gawk [core] GNU version of awk
gcc-libs [core] Runtime libraries shipped by GCC
gettext [core] GNU internationalization library
glibc [core] GNU C Library
grep [core] A string search utility
grub [core] A GNU multiboot boot loader
gzip [core] GNU compression utility
heirloom-mailx [core] A commandline utility for sending and receiving email
inetutils [core] A collection of common network programs
initscripts [core] System initialization/bootup scripts
iputils [core] IP Configuration Utilities (and Ping)
jfsutils [core] JFS filesystem utilities
less [core] A terminal based program for viewing text files
licenses [core] The standard licenses distribution package
linux [core] The Linux Kernel and modules
logrotate [core] Rotates system logs automatically
lvm2 [core] Logical Volume Manager 2 utilities
man-db [core] A utility for reading man pages
man-pages [core] Linux man pages
mdadm [core] A tool for managing/monitoring Linux md device arrays, also known as Software RAID
nano [core] Pico editor clone with enhancements
pacman [core] A library-based package manager with dependency support
pciutils [core] PCI bus configuration space access library and tools
pcmciautils [core] Utilities for inserting and removing PCMCIA cards
perl [core] A highly capable, feature-rich programming language
ppp [core] A daemon which implements the Point-to-Point Protocol for dial-up networking
procps-ng [core] Utilities for monitoring your system and processes on your system
psmisc [core] Miscellaneous procfs tools
reiserfsprogs [core] Reiserfs utilities
sed [core] GNU stream editor
shadow [core] Password and account management tool suite with support for shadow files and PAM
sysfsutils [core] System Utilities Based on Sysfs
syslog-ng [core] Next-generation syslogd with advanced networking and filtering capabilities
sysvinit [core] Linux System V Init
tar [core] Utility used to store, backup, and transport files
texinfo [core] Utilities to work with and produce manuals, ASCII text, and on-line documentation from a single source file
udev [core] The userspace dev tools (udev)
usbutils [core] USB Device Utilities
util-linux [core] Miscellaneous system utilities for Linux
vi [core] The original ex/vi text editor
wget [core] A network utility to retrieve files from the Web
which [core] A utility to show the full path of commands
wpa_supplicant [core] A utility providing key negotiation for WPA wireless networks
xfsprogs [core] XFS filesystem utilities
pacman -S -r /mnt/newSystem base
2.3) Устанавливаем git
Заметка!!!
git [extra] the fast distributed version control system
Заметка!!!
использование git облегчит поиск ошибок при изменении конфигов системы,
да и вообще git лучшая система контроля версий
pacman -S -r /mnt/newSystem git
2.4) Устанавливаем программы для компиляции пакетов из AUR
Заметка!!!
base-devel [core]
Заметка!!!
autoconf [core] A GNU tool for automatically configuring source code
automake [core] A GNU tool for automatically creating Makefiles
binutils [core] A set of programs to assemble and manipulate binary and object files
bison [core] The GNU general-purpose parser generator
fakeroot [core] Gives a fake root environment, useful for building packages as a non-privileged user
flex [core] A tool for generating text-scanning programs
gcc [core] The GNU Compiler Collection - C and C++ frontends
libtool [core] A generic library support script
m4 [core] The GNU macro processor
make [core] GNU make utility to maintain groups of programs
patch [core] A utility to apply patch files to original sources
pkg-config [core] A system for managing library compile/link flags
pacman -S -r /mnt/newSystem base-devel
2.5) Сохраняем в git стандартные еще не настроенные конфиги в /etc/
chroot /mnt/newSystem
cd /etc/ && git init && git add -A && git commit -m $(date +%Y-%m-%d-%H%M%S)
exit
2.6) Устанавливаем пакеты для системы
Заметка!!!
hdparm [core] A shell utility for manipulating Linux IDE drive/driver parameters
настройка винтов
sudo [core] Give certain users the ability to run some commands as root
выполнение команд обычным пользователем как root
gpm [core] A mouse server for the console and xterm
мышка в консоле, запускается /etc/rc.d/gpm start
hwdetect [extra] Hardware detection script with loading modules and mkinitcpio.conf / rc.conf support
детект устройств в системе
ntp [extra] Network Time Protocol reference implementation
обновление локального времени через инет
rsync [extra] A file transfer program to keep remote files in sync
синхронизация файлов
lsof [extra] Lists open files for running Unix processes
показывает занятые файлы и кто их держит
lirc [extra] Linux Infrared Remote Control kernel modules for stock arch kernel
acpid [community] A daemon for delivering ACPI power management events with netlink support
демон для реакции на ACPI события,
например, реакция на нажатие кнопки питания или закрытия крышки ноутбука
mc [community] Midnight Commander is a text based filemanager/shell that emulates Norton Commander
очень удобная псевдо-графическая программа для работы в консоли
hwinfo [community] Hardware detection tool from openSUSE
информация о системе
pacman -S -r /mnt/newSystem hdparm sudo gpm hwdetect ntp rsync lsof lirc acpid mc hwinfo
Заметка!!!
дополнения для mc
pacman -S -r /mnt/newSystem unace unarj cabextract unrar
2.7) Устанавливаем пакеты для файловых систем
Заметка!!!
btrfs-progs [core] btrfs filesystem utilities
поддержка btrfs файловой системы
nfs-utils [core] Support programs for Network File Systems
nilfs-utils [core] A log-structured file system supporting continuous snapshotting (userspace utils)
dosfstools [extra] DOS filesystem utilities
ntfsprogs [extra] NTFS filesystem utilities
avfs [extra] A virtual filesystem that allows browsing of compressed files
cifs-utils [extra] CIFS filesystem user-space tools
exfat-utils [community] Utilities for exFAT file system
squashfs-tools [community] Tools for squashfs, a highly compressed read-only filesystem for Linux.
ecryptfs-utils [community] Enterprise-class stacked cryptographic filesystem for Linux
anyfs-tools [community] unix-way toolset for recovering and converting filesystems
pacman -S -r /mnt/newSystem btrfs-progs nfs-utils nilfs-utils dosfstools ntfsprogs
pacman -S -r /mnt/newSystem avfs cifs-utils exfat-utils squashfs-tools ecryptfs-utils anyfs-tools
2.8) Устанавливаем пакеты для сети
Заметка!!!
netcfg [core] Network configuration and profile scripts
для настройки сети, очень удобные профили
net-tools [core] Configuration tools for Linux networking
настройка и управление сетевыми подключениями
wireless_tools [core] Wireless Tools
настройка и управление сетевыми подключениями
isdn4k-utils [core] User space administration programs and tools for ISDN
bridge-utils [core] Utilities for configuring the Linux ethernet bridge
настройка и управление сетевыми подключениями
wpa_actiond [core] Daemon that connects to wpa_supplicant and handles connect and disconnect events
pptpclient [core] Client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP
Для автоматизации настройки VPN PPTP
openvpn [core] An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)
rp-pppoe [core] Roaring Penguin's Point-to-Point Protocol over Ethernet client
iptables [core] Linux kernel packet control tool
Нечто большее чем файрвол
openconnect [extra] Open client for Cisco AnyConnect VPN
ifplugd [extra] A daemon which brings up/down network interfaces upon cable insertion/removal
samba [extra] Tools to access a server's filespace and printers via SMB
позволяют обращаться к сетевым дискам и принтерам
на различных операционных системах по протоколу SMB/CIFS
vpnc [extra] VPN client for cisco3000 VPN Concentrators
wifi-select [community] Tool for selecting wifi networks in console
консольная программа ля выбора беспроводных сетей "на лету" (в стиле NetworkManager).
Эту программу удобно использовать в Интернет-кафе или других местах, которые вы посещаете
в первый (и, может быть, в последний) раз. Используя эту программу вам не нужно
предварительно создавать сетевой профиль, просто наберите в терминале
sudo wifi-select wlan0 и выберите ту сеть, которая Вам нужна в данный момент
pacman -S -r /mnt/newSystem netcfg net-tools wireless_tools isdn4k-utils bridge-utils
pacman -S -r /mnt/newSystem wpa_actiond pptpclient openvpn rp-pppoe iptables openconnect
pacman -S -r /mnt/newSystem ifplugd samba vpnc wifi-select
2.9) Устанавливаем пакеты для саундов
Заметка!!!
alsa-utils [extra] An alternative implementation of Linux sound support
драйвера для саундов и управление звуком
alsa-oss [extra] OSS compatibility library
драйвера для саундов и управление звуком
pacman -S -r /mnt/newSystem alsa-utils alsa-oss
2.10) Редактируем /etc/rc.conf
Заметка!!!
Для выбора HARDWARECLOCK ( UTC | localtime )
Для выбора TIMEZONE смотрим /usr/share/zoneinfo
Для выбора KEYMAP смотрим /usr/share/kbd/keymaps
команда легко покажет возможные раскладки
find /usr/share/kbd/keymaps/ -name "*ru*"
Для выбора CONSOLEFONT смотрим /usr/share/kbd/consolefonts
FONT в /etc/vconsole.conf имеет приоритет!!!
команда легко покажет возможные шрифты для языка
find /usr/share/kbd/consolefonts/ -name "*ru*"
find /usr/share/kbd/consolefonts/ -name "*cyr*"
Для выбора CONSOLEMAP смотрим /usr/share/kbd/consoletrans
FONT_MAP в /etc/vconsole.conf имеет приоритет!!!
команда легко покажет возможные шрифты для языка
find /usr/share/kbd/consoletrans/ -name "*ru*"
Для выбора LOCALE смотрим /etc/locale.gen
LANG в /etc/locale.conf имеет приоритет!!!
Для более продвинутого контроля, оставьте пустым и установите соответствующие настройки в /etc/locale.conf.
Если этот файл не существует, он может быть легко заполнен с текущими настройками:
locale > /etc/locale.conf
chroot /mnt/newSystem nano /etc/rc.conf
# LOCALIZATION
# ------------
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Simferopol"
KEYMAP="ru"
CONSOLEFONT="cyr-sun16"
CONSOLEMAP=
LOCALE="ru_RU.UTF-8"
DAEMON_LOCALE="yes"
USECOLOR="yes"
Заметка!!!
loop aes - для шифрования
snd-mixer-oss - для поддержки программ использующих oss
# HARDWARE
# --------
MODULES=(loop aes snd-mixer-oss)
USEDMRAID="no"
Заметка!!!
myhost - заменить на имя вашего компа
# NETWORKING
# ----------
HOSTNAME="myhost"
Заметка!!!
Настраиваем сеть если нужно!!!
network - network - стандартное подключение к сети, ограничение только одна
сетевая карта, статичное или DHCP подключение!!!
Static IP Example
interface=eth0
address=192.168.0.2
netmask=255.255.255.0
broadcast=192.168.0.255
gateway=192.168.0.1
DHCP example
interface=eth0
address=
netmask=
gateway=
Заметка!!!
ppp - поднимает VPN
net-profiles - очень удобные профили подключения к сети можно подключать много
сетевых карт и разных типов подключения!!!
демки тут /etc/network.d/examples/ скопировать нужную в /etc/network.d/, переименовать как нужно
и прописать созданный профиль /etc/conf.d/netcfg через пробел NETWORKS=(menu)
menu - выбирать из списка уже созданных профилей, но не удобно, так что не используем!
networkmanager - для настройки сети из KDE
iptables - файрвол если нужно!!!
# DAEMONS
# -------
#
#DAEMONS=(syslog-ng network crond)
DAEMONS=(syslog-ng dbus)
DAEMONS=(${DAEMONS[*]} network !ppp !net-profiles !networkmanager !iptables)
DAEMONS=(${DAEMONS[*]} !netfs)
DAEMONS=(${DAEMONS[*]} @acpid @crond @alsa @ntpdate @samba @avahi-daemon !sshd @gpm)
Заметка!!!
знак перед демоном "!" - не загружать, знак "@" - не ждать полной загрузки,
а продолжить загружать следующие демоны
2.11) Выбираем и генерируем новую локаль
chroot /mnt/newSystem nano /etc/locale.gen
#ru_RU.UTF-8 UTF-8
ru_RU.UTF-8 UTF-8
chroot /mnt/newSystem locale-gen
2.12) Редактируем /etc/hosts добавляем такой же HOSTNAME и address как и в /etc/rc.conf
Заметка!!!
У вас свое!!!
chroot /mnt/newSystem nano /etc/hosts
192.168.0.2 myhost.mydomain myhost
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874 |